1 2001-08-19 Richard Henderson <rth@redhat.com>
3 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
5 (ASM_NAME_TO_STRING): Remove.
6 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
7 in the same string. Remove support for expressions.
9 2001-08-19 Richard Henderson <rth@redhat.com>
11 * config/i386/i386.md (tablejump): Make an expander; handle
12 pic relative addressing here.
13 (tablejump_1): Rename from tablejump_pic.
16 2001-08-19 Richard Henderson <rth@redhat.com>
18 * regclass.c (fix_register): Fix typo.
20 2001-08-18 Richard Henderson <rth@redhat.com>
22 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
23 (struct _Unwind_Context): Expand br_loc to hold it.
24 (uw_frame_state_for): Handle leaf functions better.
25 (uw_update_reg_address): Update for br_loc change.
27 2001-08-18 Richard Henderson <rth@redhat.com>
29 * crtstuff.c: Move list heads before code that uses them.
30 (__JCR_LIST__): Remove initial null.
31 (frame_dummy, __frame_dummy): Do java registration here ...
32 (__do_global_ctors_aux): ... not here.
34 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
35 (__do_global_dtors_aux): Update to match.
36 (__JCR_LIST__, __do_jv_register_classes): New.
38 * config/ia64/crtend.asm (__JCR_END__): New.
39 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
40 instead of an indirect LTOFF22 reloc.
42 2001-08-18 Richard Henderson <rth@redhat.com>
44 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
45 * regclass.c (init_reg_sets_1): Fix typo.
46 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
47 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
48 (ia64_compute_frame_size): Make ar.unat live when in use.
49 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
50 for ar.pfs; remove ar.unat handling.
51 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
53 (PREDICATE_CODES): Add ar_pfs_reg_operand.
54 * config/ia64/ia64-protos.h: Update decls.
55 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
56 (sibcall_pic): Likewise.
58 2001-08-18 Richard Henderson <rth@redhat.com>
60 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
61 pred_rel_mutex when searching for insn_group_barrier.
62 * config/ia64/ia64.md (cycle_display): Combine the expander
65 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
66 bit before asm as needed.
68 2001-08-18 Richard Henderson <rth@redhat.com>
70 * timevar.def (TV_MACH_DEP): New.
71 * toplev.c (rest_of_compilation): Use it.
72 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
74 2001-08-18 Zack Weinberg <zackw@panix.com>
76 * unwind-dw2.c (execute_stack_op): Add default aborts to
77 the inner switches to prevent warnings.
79 2001-08-18 Richard Henderson <rth@redhat.com>
81 * timevar.h (struct timevar_time_def): Change element type to float.
82 (ticks_to_msec, clocks_to_msec): Likewise.
83 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
85 (timevar_print): Adjust zero check and printing to match.
87 2001-08-18 Zack Weinberg <zackw@panix.com>
89 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
90 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
91 Eliminate overfull or underfull hboxes.
93 2001-08-18 Zack Weinberg <zackw@panix.com>
95 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
97 2001-08-18 Zack Weinberg <zackw@panix.com>
99 * haifa-sched.c: Convert to target hooks. Macros replaced
100 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
101 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
102 MD_SCHED_FINISH, and HAVE_cycle_display.
103 * target-def.h (TARGET_SCHED_ADJUST_COST,
104 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
105 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
106 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
107 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
108 New hook #defines to be overridden.
109 (TARGET_SCHED): Bring them all together.
110 (TARGET_INITIALIZER): Update.
111 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
112 instead of 'struct rtx_def *' throughout.
113 (struct sched): New set of hooks for the scheduler.
114 * Makefile.in (haifa-sched.o): Depend on target.h.
115 * doc/tm.texi: Document the new scheduler hooks, together in
116 their own section, instead of scattered around.
117 Fix a bunch of underfull/overfull hboxes.
119 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
120 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
121 sparc.h: Don't define any of the old scheduler macros.
123 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
124 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
125 sparc.c: Create hook functions from code extracted from
126 corresponding target header, or make existing hooks static, as
127 appropriate. Set the appropriate entries in targetm.
129 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
130 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
131 rs6000-protos.h, s390-protos.h, sparc-protos.h:
132 Remove prototypes for functions which are now static.
134 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
135 related gunk; the Haifa scheduler is now the only choice.
137 2001-08-18 Zack Weinberg <zackw@panix.com>
139 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
140 * genopinit.c: Put floating point divide insns in sdiv_optab.
141 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
142 * config/gofast.h, config/c4x/c4x.h,
143 config/ia64/hpux_longdouble.h, config/mips/mips.h,
144 config/pa/long_double.h, config/rs6000/sysv4.h,
145 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
146 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
147 (init_optabs): Use init_optabv for overflow-trapping optabs.
148 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
149 cmp_optab RTX codes so have_insn_for can find them.
151 * optabs.c (expand_simple_binop, expand_simple_unop,
152 have_insn_for, gen_sub3_insn): New interfaces.
153 * expr.h: Prototype new functions.
154 (enum optab_methods): Move here from optabs.h.
156 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
157 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
158 Use new functions instead of working directly with optabs.
159 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
160 unroll.c: Don't include optabs.h.
161 * caller-save.c, combine.c, function.c, stmt.c: Just include
162 insn-codes.h, not optabs.h.
163 * Makefile.in: Update dependencies.
165 * combine.c (make_compound_operation, simplify_comparison):
166 Fix typos testing for this or that instruction.
168 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
170 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
173 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175 * except.c (TYPE_HASH): Delete.
177 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
180 * tree.c (TYPE_HASH): Delete.
182 * tree.h (TYPE_HASH): Define.
184 2001-08-18 Graham Stott <grahams@redhat.com>
186 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
188 (adddi3_internal_2+2): Likewise.
189 (eh_set_lr_di+1): Likewise.
191 2001-08-17 Richard Henderson <rth@redhat.com>
193 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
194 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
195 * dwarf2asm.c: ... here.
196 * dwarfout.c: Remove them.
198 * varasm.c (assemble_integer): Add align parameter.
199 (assemble_real, output_constant, output_constructor): Likewise.
200 * output.h: Update decls.
201 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
202 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
203 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
204 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
205 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
208 * final.c (end_final): Abort profile block generation if we
209 havn't layed it out properly.
210 * output.h (assemble_eh_integer): Remove stale decl.
211 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
213 (assemble_integer): Handle unaligned data.
214 (assemble_real): Abort on unaligned data.
215 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
217 (default_dtor_section_asm_out_destructor): Use assemble_align.
218 (default_named_section_asm_out_constructor): Likewise.
219 (default_ctor_section_asm_out_constructor): Likewise.
220 * config/darwin.c (machopic_asm_out_constructor): Likewise.
221 (machopic_asm_out_destructor): Likewise.
222 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
223 (nextstep_asm_out_destructor): Likewise.
224 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
225 (vms_asm_out_destructor): Likewise.
227 2001-08-17 Richard Henderson <rth@redhat.com>
229 * config/mips/iris6.h (TARGET_IRIX6): New.
230 (current_section_name, current_section_flags): New.
231 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
232 (MAX_OFILE_ALIGNMENT): New.
233 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
234 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
235 (copy_file_data): Split out from
236 (mips_asm_file_end): ... here.
237 (mips_asm_file_start): Remove extra .section directive. Use
238 tmpfile instead of mips_make_temp_file.
239 (mips_unique_section): Use const char * as needed for warnings.
240 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
241 re-add align parameter.
242 (iris6_asm_named_section): New.
243 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
244 (iris6_asm_output_align, iris6_section_align_1): New.
245 (iris6_asm_file_start, iris6_asm_file_end): New.
246 * config/mips/mips-protos.h: Update decls.
248 2001-08-17 Janis Johnson <janis187@us.ibm.com>
250 * doc/install.texi (Install GCC): Add links to build status pages.
252 (Final install): Ditto; request updates for specific info
254 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
256 * cpperror.c (print_location): Don't take a file name; use the
258 (_cpp_begin_message): Similarly.
259 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
260 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
261 (cpp_pedwarn_with_file_and_line): Remove.
262 * cppfiles.c (stack_include_file): Update; set filename to stdin
263 here when appropriate.
264 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
265 (_cpp_begin_message): Don't take a file name.
266 * cppinit.c: Add comment.
267 * cpplex.c: Fix end-of-directive indicator.
268 * cpplib.c: Don't include intl.h.
269 (run_directive, do_diagnostic): Update.
270 (do_line): Update to not use nominal_fname.
271 (cpp_push_buffer): Don't take a filename.
272 * cpplib.h (struct ht): Remove.
273 (cpp_push_buffer): Don't take a filename.
274 (cpp_pedwarn_with_file_and_line): Remove.
275 * cppmacro.c (struct cpp_macro): Remove file.
276 (builtin_macro): Update.
277 (_cpp_create_definition): Update.
278 * cppmain.c: Correct comment.
279 * fix-header.c (read_scan_file): Update.
281 2001-08-17 Kazu Hirata <kazu@hxi.com>
283 * sbitmap.c: Fix comment formatting.
284 * sched-deps.c: Likewise.
285 * sibcall.c: Likewise.
286 * simplify-rtx.c: Likewise.
288 * ssa-ccp.c: Likewise.
289 * stor-layout.c: Likewise.
290 * timevar.c: Likewise.
291 * toplev.c: Likewise.
292 * unwind-dw2.c: Likewise.
293 * unwind-dw2-fde.c: Likewise.
294 * varasm.c: Likewise.
296 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
298 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
299 or larger than an integer in memory.
301 2001-08-17 Zack Weinberg <zackw@panix.com>
303 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
304 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
305 * rtl.h: Don't forward-declare union tree_node here. Don't
306 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
307 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
308 and tree respectively.
309 * tree.h: Don't forward-declare struct rtx_def here. Don't
310 typedef tree here. Change all uses of struct rtx_def *,
311 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
312 and tree respectively.
314 2001-08-17 Richard Henderson <rth@redhat.com>
316 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
317 config/mips/openbsd.h: Fix typos last change.
319 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
321 * doc/invoke.texi (Optimize Options): The default for
322 -finline-limit is 600.
324 2001-08-17 Richard Henderson <rth@redhat.com>
326 * varasm.c (text_section): Allow TEXT_SECTION to override the
327 printing of TEXT_SECTION_ASM_OP.
328 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
329 (DATA_SECTION, BSS_SECTION): Remove.
330 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
331 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
332 Rename from s/_NAME//.
333 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
334 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
335 (TEXT_SECTION): ... here. New.
336 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
337 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
338 * config/mips/openbsd.h: Likewise.
339 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
340 (mips_asm_file_end): Likewise test.
341 (mips_output_function_epilogue): Likewise. Switch back to data
342 section after emitting the function.
344 * doc/tm.texi (Sections): Document TEXT_SECTION.
346 2001-08-17 Richard Henderson <rth@redhat.com>
348 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
349 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
351 2001-08-17 Richard Henderson <rth@redhat.com>
353 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
354 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
355 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
356 Add aligned attribute.
358 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
360 * config/sh/sh.md: Add modes to unspecs in first insn to match
363 * Makefile.in: Fix collect2 copy for Cygwin.
365 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
367 Install the proper patch.
368 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
369 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
370 (expand_function_start): Likewise.
371 * stmt.c (expand_decl): Likewise.
372 * varasm.c (make_decl_rtx): Likewise.
374 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
376 * final.c: Undo my previous accidental checkin.
377 * output.h: Likewise.
380 2001-08-16 Richard Henderson <rth@redhat.com>
382 * varasm.c (named_section_flags): Remove align parameter.
383 * varasm.c, dwarf2out.c: Update all callers.
384 * output.h: Update prototypes.
386 * target.h (target.asm_out.named_section): Remove align parameter.
387 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
388 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
389 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
390 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
391 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
393 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
394 (get_named_section_flags, set_named_section_flags): New.
395 (named_section_flags): Use them.
396 (named_section): Do decl vs section flags check here...
397 (default_section_type_flags): ... not here.
398 (init_varasm_once): Create in_named_htab.
399 (resolve_unique_section): Mark reloc unused.
401 2001-08-16 Richard Henderson <rth@redhat.com>
403 * varasm.c (force_const_mem): Keep pool alignment in bits.
404 (output_constant_pool): Use assemble_align.
406 2001-08-16 Zack Weinberg <zackw@panix.com>
408 * doc/tm.texi: Remove extra @table command.
410 2001-08-16 Zack Weinberg <zackw@panix.com>
412 * final.c (shorten_branches): Clear the end of the label_align
413 array only if we made it larger. Break up messy expressions
416 * diagnostic.c (internal_error): Check for error recursion
417 before doing ICE suppression.
419 * timevar.c: Timing variables now count in milliseconds.
420 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
421 (get_time): Not here.
422 (timevar_print): Don't print any timer whose user, cpu, and
423 wall times are all zero as displayed.
424 * timevar.h: Update comment aboout units. Make timevar
427 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
429 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
430 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
431 (expand_function_start): Likewise.
432 * stmt.c (expand_decl): Likewise.
433 * varasm.c (make_decl_rtx): Likewise.
435 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
437 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
438 (finalize_record_size): Don't set TYPE_USER_ALIGN.
440 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
442 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
445 2001-08-16 Andreas Jaeger <aj@suse.de>
447 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
450 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
452 * rtl.h (only_sets_cc0_p): New prototype.
453 * jump.c (sets_cc0_p): Handle INSN.
454 (only_sets_cc0_p): New function.
455 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
456 (tidy_fallthru_edge): Likewise.
457 * integrate.c (copy_insn_list): Likewise.
458 * unroll.c (unroll_loop): Likewise.
459 (copy_loop_body): Likewise.
461 2001-08-15 Jason Eckhardt <jle@redhat.com>
463 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
465 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
467 * predict.c (struct block_info_def): Remove nvisited.
468 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
469 (estimate_bb_frequencies): Call mark_dfs_back_edges.
471 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
472 (ix86_adjust_cost): Teach scheduler that latency to load operand can
475 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
477 * predict.def: Update hitrates.
479 2001-08-15 Richard Henderson <rth@redhat.com>
481 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
483 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
485 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
486 note from its associated jump.
488 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
490 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
491 also on 64-bit s390x targets.
493 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
495 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
497 (arm_expand_prologue): Handled nested functions which take a
498 variable argument list.
499 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
500 macro with an invocation of
501 arm_compute_initial_elimination_offset.
502 * config/arm/arm-protos.h: Prototype
503 arm_compute_initial_elimination_offset.
505 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
507 * doc/install.texi (Specific, avr): Fix markup.
508 (Specific, c4x): Ditto.
510 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
512 * predict.c (dump_prediction): Change `bool' parameter to `int'.
514 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
516 * Makefile.in (OBJS): Add rtl-error.o
517 (rtl-error.o): New rule.
518 (diagnostic.o): Adjust dependency.
519 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
520 error_for_asm, _fatal_insn, _fatal_insn_not_found,
521 warning_for_asm): Move to...
522 rtl-error.c: ...here. New file.
524 2001-08-14 Richard Henderson <rth@redhat.com>
526 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
527 if USING_SJLJ_EXCEPTIONS.
529 2001-08-14 Steve Ellcey <sje@cup.hp.com>
531 * tlink.c (scan_linker_output): Check string for unsatisfied in
532 addition to undefined and unresolved.
534 2001-08-14 Graham Stott <grahams@redhat.com>
536 * libgcc2.c (*): Replace EH_FRAME_SECTION with
537 EH_FRAME_SECTION_NAME.
539 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
541 * genattrtab.c (simplify_test_exp_in_temp): New function.
542 (simplify_test_exp): Avoid explicit use of temporary obstack.
543 (simplify_cond, insert_right_side, evaluate_eq_attr,
544 simplify_and_tree, simplify_or_tree, eliminate_known_true):
545 Use simplify_test_exp_in_temp.
546 (optimize_attrs): Iterate until expression stabilizes.
548 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
550 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
551 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
553 2001-08-13 Richard Henderson <rth@redhat.com>
555 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
556 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
557 * config/arm/conix-elf.h: Likewise.
559 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
561 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
563 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
565 * gcse.c (hash_scan_set): Expressions that are set as part of
566 jump instructions are not available.
568 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
570 * config/s390/s390.c (print_operand, s390_function_prologue,
571 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
573 2001-08-13 Richard Henderson <rth@redhat.com>
575 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
576 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
577 * doc/tm.texi (Exception Region Output): Document it.
579 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
581 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
582 DWARF2 instead of stabs by default.
584 2001-08-13 David Edelsohn <edelsohn@gnu.org>
586 * config/rs6000/rs6000.c: Include optabs.h.
588 2001-08-13 David Edelsohn <edelsohn@gnu.org>
590 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
591 save/restore routines.
592 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
594 2001-08-13 Andreas Jaeger <aj@suse.de>
596 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
597 the english is correct.
599 2001-08-13 Zack Weinberg <zackw@panix.com>
601 * expr.h: Split out optab- and libfunc-related code to...
602 * optabs.h, libfuncs.h: ... these new headers.
604 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
606 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
608 * mkconfig.sh: Don't include insn-codes.h from config.h.
610 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
611 enum insn_code is available. Move reload_in_optab and
612 reload_out_optab array declarations to optabs.h.
613 * regmove.c (gen_add3_insn): Move to optabs.c, export from
614 there, prototype in expr.h.
615 * gencodes.c: Cleanup: zap global variables, don't use
616 printf where puts will do, don't bother defining MAX_INSN_CODE
617 which nothing uses, let CODE_FOR_nothing get its value implicitly.
619 * genemit.c, genopinit.c: Include optabs.h in generated file.
620 * genoutput.c: Include insn-codes.h in generated file.
621 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
622 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
623 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
624 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
625 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
626 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
628 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
629 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
630 config/m88k/m88k.c, config/sparc/sparc.c:
632 * reload.c: Include expr.h and optabs.h before reload.h.
633 * config/alpha/alpha.c: Include tree.h before reload.h.
634 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
635 and reload.h in that order.
636 * config/sparc/sparc.c: Include debug.h.
637 * recog.c: Include insn-codes.h.
639 2001-08-13 Andreas Jaeger <aj@suse.de>
641 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
644 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
646 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
647 * gcc.c (init_spec): Fix typo in comment.
648 * varasm.c (data_section): Fix typo in comment.
650 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
652 * predict.c (dump_prediction): New argument "USED".
653 (combine_predictions_for_insn): Determine the used heuristics,
654 output the case no heuristic applied.
655 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
657 2001-08-13 Andreas Jaeger <aj@suse.de>
659 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
662 2001-08-13 Kazu Hirata <kazu@hxi.com>
664 * jump.c: Fix formatting.
666 2001-08-13 Kazu Hirata <kazu@hxi.com>
668 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
671 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
673 * loop.c (check_dbra_loop): Use condjump_label to compute
676 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
677 to better document the files they're in.
679 2001-08-12 Zack Weinberg <zackw@panix.com>
681 * recog.h (struct insn_operand_data): Shrink 'mode' field
684 2001-08-12 Kazu Hirata <kazu@hxi.com>
686 * gcc.c: Fix comment formatting.
687 * gccspec.c: Likewise.
690 * genemit.c: Likewise.
691 * gengenrtl.c: Likewise.
692 * genrecog.c: Likewise.
693 * gensupport.c: Likewise.
694 * ggc-page.c: Likewise.
695 * global.c: Likewise.
698 * integrate.c: Likewise.
700 * libgcc2.c: Likewise.
702 * mbchar.c: Likewise.
703 * optabs.c: Likewise.
704 * predict.c: Likewise.
705 * prefix.c: Likewise.
706 * profile.c: Likewise.
707 * protoize.c: Likewise.
710 * regclass.c: Likewise.
711 * regmove.c: Likewise.
712 * reg-stack.c: Likewise.
713 * reload1.c: Likewise.
714 * resource.c: Likewise.
715 * rtlanal.c: Likewise.
718 2001-08-12 Kazu Hirata <kazu@hxi.com>
720 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
721 a tree representing a constant is passed to the macro.
723 2001-08-12 Richard Henderson <rth@redhat.com>
725 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
726 (rs6000_elf_asm_out_destructor): New.
727 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
728 (DTORS_SECTION_ASM_OP): Remove.
729 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
730 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
732 2001-08-12 David Edelsohn <edelsohn@gnu.org>
735 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
736 * gcc.c (set_collect_gcc_options): New function, split out from
738 Ignore elided switches.
739 (do_spec_1): Invoke before executing command.
742 * gcc.h (set_input): ... here.
743 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
746 2001-08-12 Richard Henderson <rth@redhat.com>
748 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
749 thinko wrt TARGET_RELOCATABLE.
751 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
753 * fix-header.c (cb_file_change): Update prototype.
755 2001-08-11 Zack Weinberg <zackw@panix.com>
757 * toplev.c (set_float_handler): Make static.
758 * toplev.h: Don't prototype set_float_handler.
760 * simplify-rtx.c: Don't include setjmp.h.
761 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
763 (simplify_unary_operation, simplify_binary_operation): Use them,
764 via do_float_handler.
766 * fold-const.c: Don't include setjmp.h.
767 (exact_real_inverse_1): New function.
768 (exact_real_inverse): Use it, via do_float_handler.
770 * varasm.c: Don't include setjmp.h.
771 (assemble_real_1): New function.
772 (assemble_real): Use it, via do_float_handler.
773 Call internal_error if we get a trap here.
775 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
776 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
778 2001-08-11 Zack Weinberg <zackw@panix.com>
780 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
781 STACK_BOUNDARY if not already defined.
783 * calls.c, function.c, reload1.c, explow.c: Don't default
784 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
785 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
787 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
790 * doc/tm.texi: Document that STACK_BOUNDARY is required;
791 clarify difference between it and PREFERRED_STACK_BOUNDARY.
793 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
795 * cppmacro.c (enter_macro_context): Push macro expansions even
798 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
800 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
801 (rs6000_elf_section_type_flags): Actually return a value.
803 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
805 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
806 Clean up code: add missing comments and prototypes, fix warnings,
807 remove obsolete code, fix spacing to conform to coding style.
809 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
811 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
812 and TARGET_ASM_CLOSE_PAREN.
813 (regclass_map): CC register belongs to class NO_REGS.
814 (legitimize_pic_address): Don't generate unnecessary moves
815 (to avoid confusing loop optimization).
816 (check_and_change_labels): Replace jump_long by indirect_jump.
817 (s390_final_chunkify): Don't start a new literal pool on section
818 switch in 64-bit code.
819 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
821 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
822 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
823 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
825 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
826 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
827 (CONST_COSTS): Fixed incorrect costs.
829 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
830 Use emit_jump instead of emit_jump_insn (gen_jump).
831 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
832 (to avoid confusing flow analysis).
833 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
834 (casesi, casesi_jump): New.
835 (jump_long): Removed. Functionality merged into indirect_jump.
836 (indirect_jump): Accept address_operand, not just register_operand.
837 (cjump_long, icjump_long): Use same logic as indirect_jump.
838 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
839 Fixed broken setjmp/longjmp handling.
840 (do_builtin_setjmp_setup): Removed.
842 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
843 broken GNU as versions that don't accept .quad with large
844 negative values. Use hexadecimal output instead.
845 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
846 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
847 FUNCTION_EPILOGUE): Removed. Now in targetm.
849 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
851 * config/s390/fixdfdi.h: Add missing copyright statement.
852 Fix type conflicts on 64-bit. Add missing SFmode routines.
854 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
857 2001-08-11 Richard Henderson <rth@redhat.com>
859 * rtl.h (REG_EH_RETHROW): Remove.
860 * rtl.c (reg_note_name): Update.
861 * combine.c (distribute_notes): Don't check for it.
863 2001-08-11 Richard Henderson <rth@redhat.com>
865 * combine.c (distribute_notes): Place REG_SETJMP.
867 2001-08-11 Richard Henderson <rth@redhat.com>
869 * doc/extend.texi (Arrays and pointers implementation): Discourage
870 relying on sign-extension of pointers.
872 2001-08-11 H.J. Lu <hjl@gnu.org>
874 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
876 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
877 RDATA_SECTION_ASM_OP.
879 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
881 * doc/install.texi (Specific, c4x): Fix cross-reference to the
882 main manual to work both for info and HTML versions.
884 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
885 Matt Kraai <kraai@alumni.carnegiemellon.edu>
887 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
888 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
889 (struct cpp_pool): New member first.
890 * cppinit.c (append_include_chain): Plug memory leaks.
891 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
892 Allocate pragma structures from the (aligned) macro pool to
893 avoid leaking memory.
894 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
895 so we don't leak memory.
896 * hashtable.c (ht_destroy): New.
897 * hashtable.h (ht_destroy): New.
899 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
900 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
902 * c-lex.c (map): Make const.
903 (cb_file_change): Update for callback passing a line map.
904 Don't assume we have a previous map. Remove sanity check
905 about popping too many files.
906 * cpperror.c (print_location): Make map const.
907 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
908 (cpp_make_system_header): Similarly.
909 (search_from): Similarly.
910 (_cpp_execute_include): Don't remember where we came from.
911 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
912 (struct cpp_reader): Make map const.
913 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
914 * cpplib.c (do_line): Update; line maps now hold sysp.
915 (cpp_push_buffer): Similarly.
916 (_cpp_do_file_change): Similarly; callback with map instead.
917 (cpp_get_line_maps): Constify return value.
918 (_cpp_pop_buffer): Update.
919 * cpplib.h (struct cpp_file_change): Remove.
920 (struct cpp_callbacks): Update.
921 (cpp_get_line_maps): Constify return value.
922 * cppmacro.c (_cpp_create_definition): Update.
923 * cppmain.c (struct printer): Constify map.
924 (maybe_print_line): Similarly.
925 (print_line): Similarly. Deduce flags 1 and 2 here.
926 (cb_file_change): Update.
927 * line-map.c (free_line_maps): Warn regardless.
928 (add_line_map): Return pointer to const. When passed NULL to_file
929 with LC_LEAVE, use the obvious values for the return point so the
930 caller doesn't have to figure them out.
931 (lookup_line): Return pointer to const.
932 (print_containing_files): Take pointer to const.
933 * line-map.h (struct line_map): New members reason, sysp.
934 (add_line_map): Return pointer to const.
935 (lookup_line): Similarly.
936 (print_containing_files): Take pointer to const.
938 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
939 Richard Henderson <rth@redhat.com>
941 * regmove.c (regmove_optimize): Avoid setting a register twice in
944 2001-08-10 Richard Henderson <rth@redhat.com>
946 * doc/extend.texi (Arrays and pointers implementation): Document
947 behavior of pointer/integer conversion.
949 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
951 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
953 2001-08-10 Richard Henderson <rth@redhat.com>
955 * doc/extend.texi (C Implementation): New chapter.
956 * doc/gcc.texi (Top): Link it in.
958 2001-08-10 Andrew Cagney <ac131313@redhat.com>
960 * doc/install.texi (Specific): Fix CVS merge botch.
962 2001-08-10 Richard Henderson <rth@redhat.com>
964 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
965 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
967 2001-08-10 Zack Weinberg <zackw@stanford.edu>
969 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
970 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
971 this macro is now required.
973 * cselib.c (cselib_process_insn), flow.c (propagate_block),
974 loop.c (find_and_verify_loops), reload.c (reload): Check
975 for rtx code of CALL_INSN, not CALL, when deciding if we
976 need to check for REG_SETJMP note.
978 * gcse.c (compute_hash_table, compute_store_table): Update
979 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
982 * config/avr/avr.c: Fix typo.
983 * config/convex/convex.c (expand_movstr): Use adjust_address.
984 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
986 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
987 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
989 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
990 Do define STACK_BOUNDARY.
991 * config/i370/i370.c: Include expr.h.
992 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
993 config/pa/som.h, config/v850/v850.h: Take in_ctors and
994 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
995 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
996 * config/m88k/m88k.c: Include c-tree.h after expr.h.
997 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
998 * config/romp/romp.c: Include expr.h after tree.h.
1000 (output_fpop): Use xmalloc, not oballoc.
1001 * config/we32k/we32k.c: Include expr.h.
1003 2001-08-10 Kazu Hirata <kazu@hxi.com>
1005 * config/h8300/h8300.h: Fix formatting.
1007 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
1009 * c-common.h (RETURN_NULLIFIED_P): Lose.
1010 * c-semantics.c (genrtl_return_stmt): Don't check it.
1012 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1014 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
1015 (mips_annotate_frame_insn): New function.
1016 (mips_emit_frame_related_store): New function.
1017 (save_restore_insns): Don't mark instructions that set up the base
1018 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
1019 the store instructions instead.
1020 (mips_expand_prologue): If the stack size is moved into a temporary
1021 register, do not mark that move as frame-related. Add a
1022 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
1024 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1026 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
1027 stack slot as unchanging if current_function_calls_eh_return.
1029 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1031 * config/mips/mips.md (reload_outcc): Use HARD_REGNO_NREGS to
1032 access the second half of the TFmode scratch operand.
1034 2001-08-10 Anthony Green <green@redhat.com>
1036 * java/class.c (emit_register_classes): Conditionalize code on
1039 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1041 * doc/install.texi (Specific, avr): Fix cross-reference to the
1042 main manual to work both for info and HTML versions.
1044 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
1046 * stmt.c (expand_null_return_1): Remove code to generate simple returns
1047 and "use_goto" argument.
1048 (expand_null_return, expand_value_return): Update all callers.
1049 * function.c (expand_function_end): Remove code to generate simple
1051 * config/vax/vax.md (epilogue): New expander for function return.
1052 * doc/md.texi (epilogue): Remove "if defined".
1054 2001-08-09 Zack Weinberg <zackw@stanford.edu>
1056 * Makefile.in: Partially revert my previous change:
1057 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
1058 of the hashtab.o and safe-ctype.o rules.
1060 2001-08-09 Richard Henderson <rth@redhat.com>
1062 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
1063 (USE_COLLECT2): Remove duplicate definition.
1064 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
1065 (use_collect2): Remove dead code.
1066 * configure.in (use_collect2): Remove will_use_collect2 and
1067 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
1068 * configure: Rebuild.
1070 * target.h (targetm.asm_out.constructor): New.
1071 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
1072 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
1073 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
1074 * varasm.c (in_ctors, in_dtors): New.
1075 (assemble_constructor, assemble_destructor): Remove.
1076 (default_stabs_asm_out_destructor): New.
1077 (default_named_section_asm_out_destructor): New.
1078 (dtors_section, default_dtor_section_asm_out_destructor): New.
1079 (default_stabs_asm_out_constructor): New.
1080 (default_named_section_asm_out_constructor): New.
1081 (ctors_section, default_ctor_section_asm_out_constructor): New.
1082 * output.h: Update declarations.
1083 * c-decl.c (c_expand_body): Use target hooks instead of
1084 assemble_constructor and assemble_destructor.
1085 * profile.c (output_func_start_profiler): Likewise.
1086 * objc/objc-act.c (finish_objc): Likewise.
1087 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
1088 for the constructor.
1089 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
1091 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
1092 (DTORS_SECTION_ASM_OP): Likewise.
1093 (__CTOR_LIST__): Use attribute section when possible.
1094 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
1096 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
1097 ASM_OUTPUT_CONSTRUCTOR.
1099 * config/darwin.c (machopic_asm_out_constructor): New.
1100 (machopic_asm_out_destructor): New.
1101 * config/darwin-protos.h: Update declarations.
1102 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1103 (ASM_OUTPUT_DESTRUCTOR): Remove.
1104 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1105 * config/nextstep.c (nextstep_asm_out_constructor): New.
1106 (nextstep_asm_out_destructor): New.
1107 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1108 (ASM_OUTPUT_DESTRUCTOR): Remove.
1109 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1110 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
1111 ASM_OUTPUT_*STRUCTOR.
1112 * config/i386/aix386ng.h: Likewise.
1114 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
1115 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
1116 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
1117 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1118 * config/lynx.h: Likewise.
1119 * config/netware.h: Likewise.
1120 * config/psos.h: Likewise.
1121 * config/alpha/alpha-interix.h: Likewise.
1122 * config/alpha/elf.h: Likewise.
1123 * config/arc/arc.h: Likewise.
1124 * config/arm/aof.h: Likewise.
1125 * config/arm/coff.h: Likewise.
1126 * config/arm/elf.h: Likewise.
1127 * config/c4x/c4x.h: Likewise.
1128 * config/h8300/h8300.h: Likewise.
1129 * config/i386/cygwin.h: Likewise.
1130 * config/i386/djgpp.h: Likewise.
1131 * config/i386/i386-coff.h: Likewise.
1132 * config/i386/i386-interix.h: Likewise.
1133 * config/i386/sco5.h: Likewise.
1134 * config/i386/vsta.h: Likewise.
1135 * config/i386/win32.h: Likewise.
1136 * config/i960/i960-coff.h: Likewise.
1137 * config/ia64/sysv4.h: Likewise.
1138 * config/m68hc11/m68hc11.h: Likewise.
1139 * config/m68k/coff.h: Likewise.
1140 * config/m68k/mot3300.h: Likewise.
1141 * config/m88k/m88k.h: Likewise.
1142 * config/mcore/mcore-pe.h: Likewise.
1143 * config/mcore/mcore.h: Likewise.
1144 * config/mips/elf.h: Likewise.
1145 * config/mips/elf64.h: Likewise.
1146 * config/mips/iris6.h: Likewise.
1147 * config/pa/pa64-hpux.h: Likewise.
1148 * config/rs6000/sysv4.h: Likewise.
1149 * config/sh/sh.h: Likewise.
1150 * config/sparc/litecoff.h: Likewise.
1152 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
1153 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
1154 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1155 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1156 (ASM_OUTPUT_DESTRUCTOR): Remove.
1157 * config/a29k/a29k.c: Move include of tree.h.
1158 * config/a29k/udi.h: Delete file.
1159 * config/alpha/alpha.c (vms_asm_out_constructor): New.
1160 (vms_asm_out_destructor): New.
1161 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
1162 (EXTRA_SECTION_FUNCTIONS): Likewise.
1163 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1164 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1165 * config/c4x/c4x.c: Move include of tree.h.
1166 * config/clipper/clipper.c (clix_asm_out_constructor): New.
1167 (clix_asm_out_destructor): New.
1168 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1169 (ASM_OUTPUT_DESTRUCTOR): Remove.
1170 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1171 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1172 (TARGET_ASM_CONSTRUCTOR): New.
1173 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
1174 (sco_asm_out_constructor): New.
1175 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
1176 * config/i386/svr3gas.h: Remove stack grows up code.
1177 Remove code duplicated from i386/sysv3.h.
1178 (TARGET_ASM_CONSTRUCTOR): New.
1179 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
1180 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
1181 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1182 (TARGET_ASM_CONSTRUCTOR): New.
1183 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
1184 (m68hc11_asm_out_destructor): New.
1185 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
1186 (TARGET_ASM_DESTRUCTOR): New.
1187 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
1188 * config/m68k/dpx2.h: Properly undef all the bits inherited from
1189 config/svr3.h pertaining to section manipulation.
1190 * config/m68k/dpx2g.h: Remove #if 0 code.
1191 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
1192 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
1193 (ASM_OUTPUT_CONSTRUCTOR): Remove.
1194 (TARGET_ASM_CONSTRUCTOR): New.
1195 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
1196 (m88k_svr3_asm_out_constructor): New.
1197 (m88k_svr3_asm_out_destructor): New.
1198 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1199 (ASM_OUTPUT_DESTRUCTOR): Remove.
1200 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1201 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
1202 * config/rs6000/aix.h: Likewise.
1203 * config/mips/rtems64.h: Don't undef removed constructor related bits.
1204 * config/mips/vxworks.h: Likewise.
1205 * config/rs6000/lynx.h: Likewise.
1206 * config/sh/elf.h: Likewise.
1207 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
1208 (DTORS_SECTION_ASM_OP): New.
1209 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1210 (ASM_OUTPUT_DESTRUCTOR): Remove.
1211 * config/sparc/sol2-sld-64.h: Likewise.
1212 * config/vax/vax.c (vms_asm_out_constructor): New.
1213 (vms_asm_out_destructor): New.
1214 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
1215 (ASM_OUTPUT_DESTRUCTOR): Remove.
1216 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1218 * doc/tm.texi (@node Initialization): Update.
1220 2001-08-09 Richard Henderson <rth@redhat.com>
1222 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
1223 (__do_global_dtors_aux): Use gp-relative static data to avoid
1224 one dynamic relocation.
1225 (__do_frame_setup): Register Java classes.
1226 * config/alpha/crtend.asm (__JCR_END__): New.
1228 2001-08-09 Zack Weinberg <zackw@stanford.edu>
1230 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
1231 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
1232 (GEN, STAGESTUFF): Add new files.
1233 (insn-constants.h, s-constants, tm-preds.h, s-preds,
1234 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
1235 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
1236 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
1237 as well as insn-codes.h and insn-flags.h in config.h; and no
1238 extra headers in tconfig.h and hconfig.h.
1240 * gencodes.c: Eliminate code to generate predicate declarations
1241 or #defines for md-file constants.
1242 * genconstants.c, genpreds.c: New files.
1244 * i386.md: Re-order guard expressions such that TARGET_64BIT
1245 comes first, when this permits better optimization. Add
1246 TARGET_64BIT to more x86-64 patterns. Add comment explaining
1247 why this is desirable.
1249 2001-08-09 Jakub Jelinek <jakub@redhat.com>
1251 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
1252 (find_fde_for_dso): Remove.
1253 (_Unwind_IteratePhdrCallback): New.
1254 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
1255 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
1257 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1259 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
1260 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
1262 2001-08-09 Graham Stott <grahams@redhat.com>
1264 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
1265 (vis_no_unit): Use it.
1266 (visualize_no_unit): Add the insn only if room exists.
1268 2001-08-09 Graham Stott <grahams@redhat.com>
1270 * predict.c (estimate_probability): Replace magic numbers with
1271 appropriate enumeration.
1273 2001-08-09 Graham Stott <grahams@redhat.com>
1275 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
1277 (EXTRACT_FLAGS): Likewise.
1279 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
1281 * config/mips/mips.c (mips_legitimate_address_p): Check for
1282 CONST_INT in last patch.
1284 2001-08-08 Anthony Green <green@redhat.com>
1286 * java/class.c (emit_register_classes): Use assemble_jcr if
1287 possible. Keep the original mechanism as a fallback.
1288 * defaults.h (JCR_SECTION_NAME): Define if we have named section
1289 and weak symbol support.
1290 * crtstuff.c (__JCR_LIST__): Define.
1291 (__JCR_END__): Define.
1292 (_Jv_RegiserClasses): Define weak symbol if possible.
1293 (__do_global_ctors_aux): Register classes for ELF targets with
1294 weak symbol support.
1296 2001-08-08 Kazu Hirata <kazu@hxi.com>
1298 * dbxout.c: Fix comment formatting.
1299 * dependence.c: Likewise.
1301 * diagnostic.c: Likewise.
1302 * dominance.c: Likewise.
1303 * doprint.c: Likewise.
1304 * dwarf2out.c: Likewise.
1305 * dwarfout.c: Likewise.
1306 * emit-rtl.c: Likewise.
1307 * except.c: Likewise.
1308 * explow.c: Likewise.
1309 * expmed.c: Likewise.
1312 * fold-const.c: Likewise.
1313 * function.c: Likewise.
1315 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1317 * global.c (retry_global_alloc): Avoid shadowing allocno.
1319 2001-08-08 Mark Mitchell <mark@codesourcery.com>
1321 * except.c (remove_fixup_regions): Fix typo.
1323 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
1325 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
1326 unsigned HOST_WIDE_INT to avoid warning.
1327 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
1328 * flow.c (set_block_for_new_insns): Likewise.
1330 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
1332 * sibcall.c (return_value_pseudo): New static variable.
1333 (skip_copy_to_return_value): Handle return_value_pseudo.
1334 (call_ends_block_p): Ensure that return_value_pseudo is set.
1335 (optimize_sibling_and_tail_recursive_call): Discover the
1336 load of pseudo return value in alternate exit block.
1338 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
1340 * calls.c (ECF_ALWAYS_RETURN): New constant.
1341 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
1342 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
1343 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
1344 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
1345 * rtl.c (reg_note_name): New name.
1346 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
1348 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
1350 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
1352 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
1354 * alias.c (get_alias_set): Return a previously calculated
1355 alias set for a VAR_DECL.
1356 * function.c (gen_mem_addressof): Calculate the alias set before
1359 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
1361 * predict.def: Set hitrates according our experimental run.
1363 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
1365 * i386.h (HARD_REGNO_RENAME_OK): New macro.
1367 2001-08-08 H.J. Lu <hjl@gnu.org>
1369 * config/mips/mips.c (mips_unique_section): New. Copied from
1372 * config/mips/mips-protos.h (mips_unique_section): New
1375 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
1377 * config/mips/little.h: New. Generic little endian mips
1378 targets. Only mips*-*-linux* is converted to use it so far.
1380 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
1381 (WCHAR_TYPE): Defined
1382 (WCHAR_TYPE_SIZE): Likewise.
1383 (INIT_SUBTARGET_OPTABS): Likewise.
1384 (BSS_SECTION_ASM_OP): Likewise.
1385 (SBSS_SECTION_ASM_OP): Likewise.
1386 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1387 (ASM_DECLARE_OBJECT_NAME): Likewise.
1388 (UNIQUE_SECTION): Likewise.
1389 (EXTRA_SECTIONS): Likewise.
1390 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
1391 (ASM_OUTPUT_DESTRUCTOR): Likewise.
1392 (ASM_OUTPUT_DEF): Likewise.
1393 (HANDLE_SYSV_PRAGMA): Removed.
1394 (NO_IMPLICIT_EXTERN_C): Likewise.
1395 (TARGET_MEM_FUNCTIONS): Likewise.
1396 (STARTFILE_SPEC): Likewise.
1397 (ENDFILE_SPEC): Likewise.
1398 (LIB_SPEC): Likewise.
1399 (INVOKE__main): Likewise.
1400 (CTOR_LIST_BEGIN): Likewise.
1401 (CTOR_LIST_END): Likewise.
1402 (DTOR_LIST_BEGIN): Likewise.
1403 (DTOR_LIST_END): Likewise.
1404 (SET_ASM_OP): Likewise.
1405 (ASM_OUTPUT_SOURCE_LINE): Likewise.
1406 (ASM_OUTPUT_DEF): Likewise.
1407 (ASM_OUTPUT_IDENT): Likewise.
1409 * config/mips/mips.h (ASM_SPEC): Undefine before define.
1410 (CPLUSPLUS_CPP_SPEC): Likewise.
1411 (ASM_APP_ON) Redefine only if not defined.
1412 (ASM_APP_OFF): Likewise.
1413 (ASM_OUTPUT_SOURCE_LINE): Likewise.
1414 (ASM_OUTPUT_IDENT): Likewise.
1416 * config.gcc: Update tm_file for Linux/mips.
1418 2001-08-08 Bernd Schmidt <bernds@redhat.com>
1420 * cselib.c (cselib_record_sets): If insn is predicated, turn
1421 sources into IF_THEN_ELSEs.
1423 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
1424 Turn into define_insn_and_split.
1426 * sched-deps.c: Include "cselib.h".
1427 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
1428 Use cselib to turn memory addresses into VALUEs.
1429 (sched_analyze): Call cselib_init/cselib_finish if necessary.
1430 * sched-int.h (struct sched_info): New member USE_CSELIB.
1431 * sched-ebb.c (ebb_sched_info): Initialize it.
1432 * sched-rgn.c (rgn_sched_info): Likewise.
1433 * Makefile.in (sched-deps.o): Update dependencies.
1435 * cselib.h (cselib_subst_to_values): Declare.
1436 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
1437 that have no value and autoincs to be handled by generating a new
1440 2001-08-08 Graham Stott <grahams@redhat.com>
1442 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
1443 within fixed length SEQUENCE.
1445 2001-08-08 Graham Stott <grahams@redhat.com>
1447 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
1448 (diagnostic_prefixing_rule): Likewise.
1449 (diagnostic_line_cutoff): Likewise.
1450 (diagnostic_kind_count): Likewise.
1452 2001-08-08 Graham Stott <grahams@redhat.com>
1454 * alias.c (find_base_decl): Delete redundent assignment.
1456 2001-08-08 Graham Stott <grahams@redhat.com>
1458 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
1459 (abs): Uppercase and paranthesize macro parameter.
1460 (MEM_DEPENDENCY): Add whitespace.
1462 2001-08-08 Graham Stott <grahams@redhat.com>
1464 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
1465 failure check for CONST_INT
1467 2001-08-08 Graham Stott <grahams@redhat.com>
1469 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
1470 (libcall_dead_p): Likewise.
1472 (mark_used_regs): Constify fmt.
1473 (find_use_as_address): Likewise.
1475 2001-08-08 Graham Stott <grahams@redhat.com>
1477 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
1480 2001-08-08 Graham Stott <grahams@redhat.com>
1482 * combine.c (combine_simplify_rtx): Update comment and
1483 remove erroneous test.
1485 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
1487 * cppinit.c (cpp_finish): Pop the final buffer without comment.
1488 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
1489 take care to avoid multiple no-newline at EOF warnings in that
1492 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
1494 * calls.c (expand_call): Do not emit INSN_SETJMP note.
1495 (emit_library_call_value_1): Likewise.
1496 (emit_call_1): Emit REG_SETJMP note.
1497 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
1499 * cselib.c (cselib_process_insn): Likewise.
1500 * flow.c (propagate_block): Likewise.
1501 * loop.c (find_and_verify_loops): Likewise.
1502 * reload.c (find_equiv_regs): Likewise.
1503 * reload1.c (reload): Likewise.
1504 * resource.c (mark_referenced_resources,
1505 mark_set_resources): Likewise.
1506 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
1507 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
1508 * haifa-sched.c (unlink_other_notes): Likewise.
1509 (reemit_notes): Likewise.
1510 * sched-ebb.c (sched_ebb): Likewise.
1511 * sched-rgc.c (sched_region): Likewise.
1512 * rtl.c (note_insn_name): Likewise.
1513 (reg_note_name): Add REG_SETJMP
1514 * rtl.h (reg_note): Add REG_SETJMP.
1515 (insn_note): Remove NOTE_INSN_SETJMP.
1517 * profile.c (branch_prob): Add fake edges for setjmp.
1519 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
1521 * config.gcc: Quote target_cpu_default2 correctly for
1522 powerpc*-*-* targets.
1524 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
1526 * cpplib.h, line-map.h: Update comments.
1527 * cppmain.c (printer_init): Move inline.
1528 (maybe_print_line, print_line): Take a map pointer.
1529 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
1530 (cb_file_change): Don't use prior value of print.map.
1532 2001-08-07 David Edelsohn <edelsohn@gnu.org>
1534 * doc/install.texi: Document fine-grained multilib configuration.
1536 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
1538 * rtlanal.c (find_first_parameter_load): Call note_stores
1539 only on the instructions.
1541 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
1543 * alias.c (nonlocal_mentioned_p):
1544 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
1545 * calls.c (emit_call_1): Likewise.
1546 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
1547 * cselib.c (cselib_process_insn): Likewise.
1548 * df.c (df_insns_modify): Likewise.
1549 * flow.c (need_fake_edge_p): Likewise.
1550 (propagate_one_insn): Likewise.
1551 * haifa-sched.c (reemit_notes): Likewise.
1552 * integrate.c (copy_insn_list): Likewise.
1553 * jump.c (delete_prior_computation): Likewise.
1554 * local-alloc.c (validate_equiv_mem): Likewise.
1555 * loop.c (scan_loop): Likewise.
1556 * predict.c (estimate_probability): Likewise.
1557 * reload.c (reload): Likewise.
1558 * sched-deps (sched_analyze): Likewise.
1559 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
1560 * gcse.c (compute_hash_table): Likewise.
1561 (mark_call): Likewise.
1562 (store_killed_in_insn): Likewise.
1564 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
1566 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
1568 2001-08-06 Richard Henderson <rth@redhat.com>
1570 * varasm.c (assemble_gc_entry): Remove.
1571 * output.h: Likewise.
1573 2001-08-06 Richard Henderson <rth@redhat.com>
1575 * varasm.c (assemble_constructor): Take a symbol_ref and a
1576 priority instead of a bare string. Move priority handling
1577 here from cp/decl2.c.
1578 * output.h: Update decls.
1580 * c-decl.c (c_expand_body): Update calls to assemble_constructor
1581 and assemble_destructor.
1582 * profile.c (output_func_start_profiler): Likewise.
1583 * objc/objc-act.c (finish_objc): Likewise.
1584 (build_module_descriptor): Return the symbol not the symbol name.
1586 2001-08-06 David Edelsohn <edelsohn@gnu.org>
1588 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
1589 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
1590 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
1591 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
1592 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
1593 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
1595 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
1597 * cpperror.c (print_containing_files): Moved to line-map.c.
1598 (print_location): line-map.c handles re-listing or otherwise.
1599 * cpphash.h (struct lexer_state): Remove next_bol.
1600 (struct cpp_buffer): Remove include_stack_listed.
1601 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
1602 Remove faked buffer handling.
1603 (_cpp_do_file_change): Tweak.
1604 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
1605 * cppmain.c (struct printer): Remove filename.
1606 (print_line, cb_file_change): Update accordingly.
1607 * line-map.c: Include intl.h.
1608 (init_line_maps): Initialize last_listed.
1609 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
1610 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
1611 (print_containing_files): New.
1612 * line-map.h (struct line_maps): New member last_listed.
1613 (print_containing_files, INCLUDED_FROM): New.
1614 * Makefile.in: Update.
1615 * po/POTFILES.in: Add line-map.c.
1617 2001-08-06 Richard Henderson <rth@redhat.com>
1619 * except.c (convert_from_eh_region_ranges_1): Never mark
1620 USE or CLOBBER insns as throwing.
1622 * expr.c (store_constructor): Don't clobber memory targets.
1624 2001-08-06 Andreas Jaeger <aj@suse.de>
1626 * profile.c (branch_prob): Remove unused variable insn.
1628 * Makefile.in (local-alloc.o): Add dependency on except.h.
1630 * local-alloc.c: Include except.h for can_throw_internal prototype.
1632 2001-08-06 Richard Henderson <rth@redhat.com>
1634 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
1635 * function.c (expand_main_function): Implement it.
1636 * doc/tm.texi: Document it.
1638 2001-08-06 Stan Shebs <shebs@apple.com>
1640 * doc/install.texi: Document powerpc-*-darwin* details.
1642 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
1644 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
1645 (ASM_CPU_SPEC): Move back to rs6000.h
1646 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
1648 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
1650 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
1653 * config/rs6000/linux64.h: Ditto.
1655 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
1656 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
1659 Remove accidently readded definitions of FUNCTION_PROLOGUE,
1660 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
1662 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
1665 2001-08-05 Richard Henderson <rth@redhat.com>
1667 * local-alloc.c (update_equiv_regs): Do not move insns that
1670 2001-08-05 Jan Hubicka <jh@suse.cz>
1672 * Makefile.in (reload1.o): Add dedendancy on except.h
1673 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
1675 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
1676 indicating wehther edges has been cleaned up.
1677 * reload1.c: Inlucde except.h
1678 (fixup_abnormal_edges): Accept deleted insns.
1679 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
1682 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
1684 * cpplib.c (do_line): Correct line number after pop_buffer.
1686 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
1688 PR preprocessor/3824
1689 * line-map.c: Update comments.
1690 * line-map.h: Update comments.
1691 * tradcif.y: Don't consider large numbers unsigned.
1693 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
1695 PR preprocessor/3081
1696 * c-lex.c (map): New.
1697 (cb_file_change): Update map and use it.
1698 (cb_def_pragma, cb_define, cb_undef): Use map and line.
1699 (c_lex): Update to use map.
1700 * cpperror.c (print_location): Move to using logical line numbers.
1701 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
1702 (cpp_make_system_header): Similarly.
1703 (_cpp_execute_include): Stop line numbering hacks. Store the
1704 line we will return to.
1705 * cpphash.h (CPP_BUF_LINE): Remove.
1706 (struct cpp_buffer): Remove lineno and pseudo_newlines.
1707 Add map and return_to_line.
1708 (_cpp_do_file_change): Update.
1709 * cppinit.c (cpp_start_read): Update line kludge.
1710 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
1711 (trigraph_ok): Use logical line numbers for diagnostics.
1712 (skip_block_comment): Likewise.
1713 (skip_whitespace): Likewise.
1714 (skip_line_comment): Use pfile->line instead.
1715 (_cpp_lex_token): Update to use logical line numbering exclusively.
1716 Handle BOL locally. Accept new lines in directives, but keep
1717 pfile->line decremented. Diagnostics use logical lines. Update
1719 * cpplib.c (SEEN_EOL): New.
1720 (skip_rest_of_line, check_eol): Use it.
1721 (end_directive): Increase line number when accepting the newline
1722 at the end of a directive.
1723 (run_directive): Simplify.
1724 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
1725 (_cpp_do_file_change): Update to take buffer line number as an
1726 argument, and store the current map in the cpp_reader. Remove
1727 line number kludges.
1728 (_cpp_do__Pragma): Restore output position after a _Pragma.
1729 (cpp_push_buffer): Don't set output line or lineno.
1730 (_cpp_pop_buffer): Transfer more info from a faked buffer.
1731 Remove line kludge. Set output_line.
1732 * cppmacro.c (builtin_macro): Update handling of __LINE__.
1733 (parse_arg): Use logical lines.
1734 (save_lookahead_token): Save EOFs too now.
1735 * cppmain.c (struct printer): Fix comments.
1736 (printer_init): Simplify, let caller do errors.
1737 (scan_translation_unit, check_multiline_token, dump_macro): Update.
1738 (maybe_print_line): Simplify.
1739 (print_line): Don't print a linemarker if -P.
1740 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
1741 (cb_file_change): Simplify.
1742 * line-map.h (LAST_SOURCE_LINE): Fix.
1743 (CURRENT_LINE_MAP): New.
1745 2001-08-05 Bernd Schmidt <bernds@redhat.com>
1747 * doloop.c (doloop_modify_runtime): Properly compute number of
1748 iterations if loop was unrolled.
1750 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
1751 if their CSELIB_VAL_PTRs are.
1753 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
1754 (setup_spill_pointers): Initialize it.
1755 (spill_restore_mem): Set it.
1756 (do_spill, do_restore): Use it to add REG_INC note.
1757 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
1759 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
1760 asms if other insns are available.
1762 * config/ia64/ia64.c (condop_operator): New predicate.
1763 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
1764 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
1767 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
1768 temporary register than directly using a MEM.
1770 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
1772 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
1773 parameter in last change.
1775 2001-08-04 Zack Weinberg <zackw@panix.com>
1777 * sparc.md: Don't use #if inside C test expression.
1779 2001-08-04 Richard Henderson <rth@redhat.com>
1781 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
1783 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
1785 * cpphash.h (struct cpp_reader): New member directive_line.
1786 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
1787 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
1788 do_pragma): Pass line to callbacks.
1789 (start_directive): Record line of directive.
1790 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
1791 cb_include): Similarly.
1792 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
1795 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
1797 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
1800 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
1802 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
1804 * reload1.c (fixup_abnormal_edges): New static function.
1807 * flow.c (need_fake_edge_p): New function.
1808 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
1809 avoid call insn to be very last insn in the insn stream.
1811 * profile.c (branch_prob): Call flow_call_edges_add instead of
1812 doing that by hand; cleanup cfg to re-merge basic blocks once
1815 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1817 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
1818 are also on line-map.h.
1819 * cppfiles.c (stack_include_file): Update.
1820 * cpphash.h (struct cpp_buffer): New member return_at_eof.
1821 (_cpp_pop_buffer): New.
1822 * cppinit.c (cpp_destroy, cpp_finish): Update.
1823 (do_includes): Mark each buffer to return at EOF.
1824 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
1825 return as requested.
1826 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
1827 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
1828 * cpplib.h (cpp_pop_buffer): Remove.
1829 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
1830 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
1832 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
1834 (do_preprocessing): Update.
1835 * fix-header.c (read_scan_file): Update. No need to pop buffers.
1836 * c-parse.in (_yylex): Similarly.
1837 * scan-decls.c (scan_decls): Similarly.
1838 * line-map.h: Update comments.
1840 * objc/Make-lang.in (objc-act.o): Update dependencies.
1842 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1844 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
1845 and soft register for operand 0.
1846 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
1848 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1850 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
1851 register for operand 0.
1852 ("bitcmpqi_z_used"): Allow memory for operand 0.
1853 (split "bitcmpqi"): New split to handle address reg as operand 1.
1855 2001-08-04 Andreas Jaeger <aj@suse.de>
1857 * gcse.c: Revert Daniel's last patch.
1859 2001-08-03 Zack Weinberg <zackw@stanford.edu>
1861 * sparc-protos.h: Add prototypes for fp_zero_operand and
1863 * sh-protos.h: Add prototype for fpul_operand.
1865 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
1867 * doc/extend.texi (Other Builtins): Fix typo in last change.
1869 2001-08-03 Richard Henderson <rth@redhat.com>
1871 * target.h (gcc_target): Add asm_out.named_section,
1872 section_type_flags, have_named_sections.
1873 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
1874 (TARGET_HAVE_NAMED_SECTIONS): New.
1875 (TARGET_SECTION_TYPE_FLAGS): New.
1877 * Makefile.in (toplev.o): Depend on TARGET_H.
1878 (varasm.o, dbxout.o): Likewise.
1879 * c-common.c (decl_attributes): Check targetm.have_named_sections
1880 instead of ifdef ASM_OUTPUT_SECTION_NAME.
1881 * dbxout.c (dbxout_function_decl): Likewise.
1882 (dbxout_function_end): Likewise.
1883 * toplev.c (compile_file): Likewise.
1884 * varasm.c (exception_section): Likewise.
1885 * cp/decl2.c (finish_objects): Likewise.
1887 * defaults.h (EH_FRAME_SECTION): Remove.
1888 (EH_FRAME_SECTION_ASM_OP): Remove.
1889 (EH_FRAME_SECTION_NAME): New.
1890 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
1891 (UNIQUE_SECTION_P): Remove.
1892 * dwarf2out.c (SECTION_FORMAT): Remove.
1893 (ASM_OUTPUT_SECTION): Remove.
1894 (output_call_frame_info): Use named_section_flags.
1895 (output_comp_unit, dwarf2out_start_source_file): Likewise.
1896 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
1897 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
1898 * varasm.c (in_eh_frame, eh_frame_section): Remove.
1899 (named_section_flags): New.
1900 (named_section): Use it and targetm.section_type_flags.
1901 (resolve_unique_section): New.
1902 (assemble_start_function): Use it.
1903 (asm_emit_uninitialised, assemble_variable): Likewise.
1904 (default_section_type_flags): New.
1905 (default_no_named_section, default_elf_asm_named_section): New.
1906 (default_coff_asm_named_section, default_pe_asm_named_section): New.
1907 * output.h: Update varasm.c decls.
1908 (SECTION_*): New flags.
1910 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
1911 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
1913 * config/elfos.h (UNIQUE_SECTION_P): Remove.
1914 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
1915 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
1916 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1917 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
1918 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
1919 * config/mips/elf.h, config/mips/elf64.h: Likewise.
1920 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
1921 * config/pa/pa64-hpux.h,
1923 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
1924 (TARGET_ASM_NAMED_SECTION): New.
1925 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
1926 * config/alpha/vms.h, config/arm/coff.h: Likewise.
1927 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
1928 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
1929 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
1930 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
1931 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1932 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
1933 * config/i386/sco5.h, config/i386/win32.h: Likewise.
1934 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
1935 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
1936 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
1937 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
1938 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
1939 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
1940 * config/sparc/sysv4.h: Likewise.
1942 * config/nextstep.h: Error until named sections implemented.
1944 * config/a29k/a29k.c (a29k_asm_named_section): New.
1945 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
1946 (vms_section_type_flags, vms_asm_named_section): New.
1947 * config/arm/arm.c (arm_elf_asm_named_section): New.
1948 * config/avr/avr.c (asm_output_section_name): Remove.
1949 * config/avr/avr-protos.h: Update.
1950 * config/c4x/c4x.c (c4x_asm_named_section): New.
1951 * config/h8300/h8300.c (h8300_asm_named_section): New.
1952 * config/i386/i386.c (sco_asm_named_section): New.
1953 * config/i386/winnt.c (SECTION_PE_SHARED): New.
1954 (i386_pe_section_type_flags): New.
1955 (i386_pe_asm_named_section): New.
1956 * config/i386/i386-protos.h: Update.
1957 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
1958 * config/mcore/mcore.c (mcore_asm_named_section): New.
1959 * config/mips/mips.c (iris6_asm_named_section): New.
1960 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
1961 instead of UNIQUE_SECTION_P.
1962 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
1963 (xcoff_asm_named_section): New.
1964 * config/sh/sh.c (sh_asm_named_section): New.
1965 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
1967 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
1968 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
1969 (EH_FRAME_SECTION_NAME): New.
1970 (EXCEPTION_SECTION): New.
1971 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
1972 (DEBUG_*_SECTION): Remove.
1973 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
1974 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
1975 (EH_FRAME_SECTION_ASM_OP): Remove.
1977 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
1978 (ASM_OUTPUT_SECTION_NAME): Remove.
1979 (TARGET_ASM_NAMED_SECTION): New.
1980 (TARGET_HAVE_NAMED_SECTIONS): New.
1981 (TARGET_SECTION_TYPE_FLAGS): New.
1982 (EH_FRAME_SECTION_ASM_OP): Remove.
1983 (EH_FRAME_SECTION_NAME): New.
1985 2001-08-03 Zack Weinberg <zackw@stanford.edu>
1987 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
1988 for complex expressions when cfun == 0.
1989 * doc/extend.texi: Document that __builtin_constant_p can be
1990 used in data initializers as well as functions.
1992 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
1994 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
1995 variable I locally, instead of expecting a declaration in the
1998 2001-08-03 Richard Henderson <rth@redhat.com>
2000 * except.c (collect_one_action_chain): Add an explicit cleanup
2001 action if regions surrounding a catch were encoded entirely
2002 within the call-site entry.
2004 2001-08-03 Richard Henderson <rth@redhat.com>
2006 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
2007 don't take REGNO of a non-register.
2009 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2011 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
2012 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
2013 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
2014 (__gthread_mutex_init_function): New function for mutex initialization.
2016 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
2018 * Makefile.in: Revert screwed up commit.
2020 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2022 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
2023 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
2024 merged by linker script to get a final _exit().
2025 (__do_global_dtors): New for destructor handling in specific exit
2027 (__do_global_ctors): New for constructors in specific install section.
2028 (__map_data_section): Map data sections before running constructors.
2029 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
2030 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
2031 (DTORS_SECTION_ASM_OP): Likewise.
2032 (CTORS_SECTION_FUNCTION): Define to force a reference to
2034 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
2036 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
2038 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
2040 * Makefile.in: Add df.h to gcse.c dependencies.
2042 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2044 * varasm.c (output_constant_def_contents): Use for the length of a
2045 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
2046 depending on which is larger.
2048 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
2050 * gcse.c: Include df.h for use as a dataflow analyzer.
2052 Declaration of reg_set_info: gone.
2053 New df_analyzer variable used by store motion.
2054 (reg_set_info): Deleted.
2055 (mark_mem_regs): New function, analyze regs used by a mem.
2056 (store_ops_ok): Use dataflow analyzer results to determine if
2057 necessary regs are changed in the block.
2058 (find_moveable_store): Remove check for symbol ref, we can handle
2059 much more complex expressions now.
2060 (compute_store_table): Remove most of the code, it's unnecessary
2061 now that the dataflow analyzer records the info for us.
2062 (store_killed_after): Add parameter to say whether to do the
2063 store_ops_okay test, used to speed up testing when we already know
2064 the answer, and just want to know if the store itself was killed.
2065 (build_store_vector): Largely rewritten to calculate the various
2066 vectors properly, and somewhat optimized.
2067 (store_motion): Init the df_analyzer, get REG_DEF chains.
2068 Also handle trapping expressions (since mems almost always trap)
2069 (simple_mem): Redefine what a simple mem is.
2071 2001-08-03 DJ Delorie <dj@redhat.com>
2073 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
2074 set from a constant part of the condition.
2076 2001-08-01 Andrew Cagney <ac131313@redhat.com>
2078 * mkdeps.c (deps_add_default_target): Make local variable
2079 ``start'' a const char pointer.
2080 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
2082 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2084 * doc/install.texi (Configuration): Fix markup.
2085 (Specific, i?86-*-udk): Likewise.
2086 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
2088 Document --enable-threads and --enable-libgcj status.
2089 (Specific, mips-sgi-irix*): Canonicalize triples.
2090 (Specific, mips-sgi-irix5): Warn about problems with this config.
2091 Mention required GNU as patch.
2092 Native assembler problems are fixed.
2093 (Specific, mips-sgi-irix6): Update O32 ABI support status.
2094 Document --enable-threads and --enable-libgcj status.
2096 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
2098 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
2101 2001-08-03 Richard Henderson <rth@redhat.com>
2103 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
2106 2001-08-03 Richard Henderson <rth@redhat.com>
2108 * rtlanal.c (find_first_parameter_load): Stop if we
2109 reach a CODE_LABEL at BOUNDARY.
2111 2001-08-03 Richard Henderson <rth@redhat.com>
2113 * config/alpha/alpha.md (force_movdi): New insn.
2114 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
2115 Tweek FRP marking of VMS prologue insns.
2116 * config/alpha/vms.h (EPILOGUE_USES): New.
2118 2001-08-02 Richard Henderson <rth@redhat.com>
2120 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
2122 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
2124 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
2125 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
2126 config/convex/convex.h, config/d30v/d30v.c,
2127 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
2128 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
2129 config/mips/mips.h, config/mn10200/mn10200.h,
2130 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
2131 config/v850/v850.h, config/vax/openbsd.h,
2132 config/vax/openbsd1.h, config/vax/ultrix.h,
2133 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
2134 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
2135 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
2136 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
2137 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
2138 in comments and documentation.
2140 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2144 * Makefile.in (line-map.o): New.
2145 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
2146 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
2147 * cpperror.c (print_containing_files): Similarly.
2148 (print_location): Update. Don't output a space before _Pragma.
2149 * cppfiles.c (stack_include_file): Set to line 1 immediately.
2150 (stack_include_filee, cpp_make_system_header): Update.
2151 (_cpp_execute_include): Get logical line number right for calling
2152 as-yet-unterminated #include.
2153 * cpphash.h (struct cpp_reader): Add line_maps.
2154 (_cpp_do_file_change): Update.
2155 * cppinit.c (cpp_create_reader): Initialize line maps.
2156 (cpp_destroy): Destroy line maps.
2157 (cpp_start_read): Get logical line number right.
2158 * cpplex.c (parse_string): Only warn once for multi-line strings.
2159 Use boolean variable for null warning.
2160 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
2162 (do_include_common): End the directive early.
2163 (do_line): Don't warn about out-of-range lines in preprocessed
2164 source. Update. Remove unused variables.
2165 (_cpp_do_file_change): Update for new line mapping.
2166 (pragma_cb): New typedef.
2167 (cpp_register_pragma): Stop looking ahead before calling the
2169 (do_pragma_system_header): End directive early.
2170 (cpp_get_line_maps): New.
2171 (cpp_pop_buffer): Fudge logical line. Update.
2172 * cpplib.h: Include line-map.h
2173 (enum cpp_fc_reason): Remove.
2174 (struct cpp_file_change): Update.
2175 (cpp_get_line_maps): New.
2176 * cppmain.c (struct_printer): New member map.
2177 (cb_file_change): Update for new mappings.
2178 * fix-header.c (cb_file_change): Similarly.
2180 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
2182 * Makefile.in (libgcc.mk): Define mkinstalldirs.
2183 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
2185 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
2187 * config/vax/vax.c: include expr.h.
2189 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
2191 * Makefile.in ($(srcdir)/configure): Only rebuild in
2193 ($(srcdir)/config.in): Only define in maintainer mode.
2194 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
2196 2001-08-02 David Edelsohn <edelsohn@gnu.org>
2198 * doc/install.texi (Install GCC: Binaries): Update Bull info.
2200 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2202 * gcc.c (set_collect_gcc_options): New function, split out from
2204 Ignore elided switches.
2205 (do_spec_1): Invoke before executing command.
2206 (set_input): Export.
2207 Move declaration ...
2208 * gcc.h (set_input): ... here.
2209 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2212 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
2215 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
2217 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
2219 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
2221 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
2222 for the unnamed instructions it expands to.
2224 2001-08-02 Richard Henderson <rth@redhat.com>
2226 * regclass.c (call_really_used_regs): Conditionally define.
2227 (init_reg_sets_1): Don't use it if not defined.
2228 (fix_register): Similarly, don't set it.
2230 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2232 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
2233 Correct comment that had been missed in the previous change.
2235 2001-08-01 Stan Shebs <shebs@apple.com>
2237 * config/darwin.c (machopic_stub_name): Try matching by name.
2238 (update_stubs): New function.
2239 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
2242 2001-08-01 Richard Henderson <rth@redhat.com>
2244 * except.c (output_function_exception_table): Use assemble_align.
2245 * varasm.c (assemble_eh_label): Remove.
2246 (assemble_eh_align, assemble_eh_integer): Remove.
2248 2001-08-01 Robert Lipe <robertl@caldera.com>
2250 * dwarfout.c: Remove reference to README.DWARF.
2252 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
2254 * regclass.c (call_really_used_regs): New array for registers which
2255 are actually used by a call.
2256 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
2258 (fix_register): Set call_really_used too.
2259 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
2260 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
2262 2001-08-01 Richard Henderson <rth@redhat.com>
2264 * read-rtl.c (read_name): Consider \r whitespace.
2266 2001-07-11 Andrew Cagney <ac131313@redhat.com>
2268 * config.gcc: Recognize powerpc-*-netbsd*.
2270 * doc/install.texi (Host/target specific installation notes for
2271 GCC): Mention powerpc-*-netbsd*.
2273 * config/rs6000/netbsd.h: New file.
2274 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
2275 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
2276 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
2277 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
2278 (TARGET_VERSION): Redefine.
2280 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
2281 mcall-netbsd as a match for mcall-sysv.
2282 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
2283 (ncrti.S, ncrtn.S): New targets.
2284 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
2286 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
2287 "netbsd' as a V4 ABI.
2288 (ASM_SPEC): Check for -mcall-netbsd.
2289 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
2290 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
2291 (LIB_SPEC, ENDFILE_SPEC): Ditto.
2292 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
2293 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
2294 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
2295 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
2297 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
2298 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
2300 2001-08-01 Mark Kettenis <kettenis@gnu.org>
2302 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
2303 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
2304 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
2305 including "unwind-pe.h".
2307 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
2309 * rs6000.md (define_splits): Kill unused constraints.
2311 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
2312 Jan Hubicka <jh@suse.cz>
2314 * function.c (thread_prologue_and_epilogue_insns): Kill code
2315 dealing with non-existent CFG.
2317 2001-08-01 Kazu Hirata <kazu@hxi.com>
2319 * alias.c: Fix comment formatting.
2320 * bitmap.c: Likewise.
2321 * builtins.c: Likewise.
2322 * calls.c: Likewise.
2323 * c-common.c: Likewise.
2324 * c-decl.c: Likewise.
2325 * c-dump.c: Likewise.
2326 * c-lex.c: Likewise.
2327 * collect2.c: Likewise.
2328 * combine.c: Likewise.
2329 * conflict.c: Likewise.
2330 * cppfiles.c: Likewise.
2331 * cppinit.c: Likewise.
2332 * cpplex.c: Likewise.
2333 * cpplib.c: Likewise.
2334 * cppmacro.c: Likewise.
2335 * cppspec.c: Likewise.
2336 * c-pragma.c: Likewise.
2337 * crtstuff.c: Likewise.
2339 * cselib.c: Likewise.
2340 * c-semantics.c: Likewise.
2341 * c-typeck.c: Likewise.
2343 2001-08-01 H.J. Lu <hjl@gnu.org>
2345 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
2347 2001-08-01 H.J. Lu <hjl@gnu.org>
2349 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
2351 2001-08-01 Ziemowit Laski <zlaski@apple.com>
2353 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
2354 contextualizing Objective-C class name lookup by the lexer.
2355 (typespec_reserved_nonattr): Disable ObjC class name lookup after
2357 (protocoldef): Add support for forward @protocol declarations.
2358 (yylexname): Suppress ObjC class name lookup in certain contexts;
2359 re-enable after lookup is complete.
2360 (_yylex): Re-enable ObjC class name lookup when certain
2361 punctuation marks are seen.
2363 * objc/objc-act.c (check_protocol_recursively): New function used
2364 for finding circular dependencies in protocols.
2365 (objc_declare_protocols): New function for handling forward
2366 @protocol declarations.
2367 (receiver_is_class_object): Detect the case when 'self' is used
2368 inside of a class method.
2369 (build_message_expr): Issue a warning if class method is desired
2370 but instance method is found instead.
2371 (conforms_to_protocol): Streamline.
2372 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
2373 protocol Foo, even if 'Bar foo' does not.
2374 (check_protocols): Streamline.
2375 (start_protocol): Add checks for circular and duplicate protocol
2377 (encode_aggregate_within): For typedefs of structs, encode the
2379 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
2380 (objc_declare_protocols): New prototype.
2382 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2384 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
2385 * cpplex.c (handle_newline): Update prototype. Maintain logical
2387 (skip_escaped_newlines, skip_block_comment, parse_string):
2389 (_cpp_lex_token): Update, and store token position within the token.
2390 * cpplib.h (struct cpp_token): Add line and column entries.
2391 * cppmacro.c (replace_args): Position stringified tokens correctly.
2393 2001-08-01 Andreas Jaeger <aj@suse.de>
2395 * basic-block.h: Add prototype for last_loop_beg_note.
2397 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
2399 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
2400 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
2402 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
2403 while handling WITH_CLEANUP_EXPR node. Use second operand calling
2404 expand_decl_cleanup.
2405 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
2407 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
2408 operand while calling simple_cst_equal.
2409 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
2410 operand is the cleanup expression, the third is the RTL_EXPR.
2411 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
2413 2001-07-31 Jeff Sturm <jsturm@one-point.com>
2415 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
2417 2001-07-31 matthew green <mrg@eterna.com.au>
2419 * config.gcc (i386-*-netbsdelf): New description.
2420 * config/i386/netbsd-elf.h: New file.
2422 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
2424 * loop.c (check_dbra_loop): Use single_set to compute
2427 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
2429 PowerPC reorg and support for powerpc64-*-linux*.
2431 Also fixes emitting of constants on 32 bit and 64 bit
2434 * config.gcc: powerpc64-*-linux* is a new target.
2435 Things that needed aix.h now also include xcoff.h
2437 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
2439 Move AIX specific stuff into aix.h.
2440 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
2441 with more than just XCOFF now.
2442 (SET_ASM_OP): Remove, now defined where needed.
2443 (FUNCTION_PROLOGUE): New macro definition.
2444 (FUNCTION_EPILOGUE): New macro definition.
2445 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
2447 * config/rs6000/xcoff.h: New file.
2449 * config/rs6000/linux64.h: New file.
2451 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
2453 2001-07-31 Alan Modra <amodra@bigpond.net.au>
2455 * rs6000.c (print_operand_address): Handle ELF syntax.
2456 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
2457 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
2458 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
2460 2001-07-31 David Edelsohn <edelsohn@gnu.org>
2462 * rs6000.c (rs6000_override_options): Only disable
2463 flag_function_sections for XCOFF.
2464 (exact_log2_cint_operand): New predicate.
2465 (reg_or_{add,sub}_cint64_operand): New predicates.
2466 (add_operand): Compare CONST_INT with fewer function calls.
2467 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
2468 (print_operand, case 'p'): Ensure positive operand.
2469 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
2470 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
2471 (PREDICATE_CODES): Add new predicates.
2472 * rs6000.md (addsi3): Split 32-bit constants more correctly.
2473 (divsi3, modsi3): Ensure positive power-of-2.
2474 (adddi3): Use new predicate. Split 32-bit constants more
2475 correctly. Re-arrange splitter to handle any constant.
2476 (subdi3): Use new predicate.
2477 (divdi3, moddi3): Ensure positive power-of-2.
2478 (movdi): Use rs6000_emit_set_const.
2479 (load_toc_v4_pic_di): Delete.
2481 2001-07-31 Graham Stott <grahams@redhat.com>
2483 * function.c (pad_below): Revert 2001-07-26 patch.
2485 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
2487 * reg-stack (convert_regs_1): Fix best edge condition.
2489 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
2491 * jump.c (duplicate_loop_exit_test): Better test for jumps
2492 entering the loop; create loop pre_header.
2494 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
2496 * doc/install.texi: Add s390 and s390x as new targets.
2497 * doc/invoke.texi: Add documantation of S/390 and zSeries
2499 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
2501 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
2503 * config/m68k/m68k.md: Replace all general_operand with
2504 nonimmediate_operand for all destinations.
2505 * config/m68k/m68k.c (not_sp_operand): Likewise.
2507 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
2509 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
2511 2001-07-30 Richard Henderson <rth@redhat.com>
2513 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
2514 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
2516 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
2518 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
2519 Add missing doc strings
2520 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
2521 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
2523 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
2525 * i386.c (ix86_output_main_function_alignment_hack): New function.
2526 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
2528 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
2529 edges by EDGE_DFS_BACK flag.
2530 (dump_edge_info): Add dfs_back flag.
2531 * basic-block.h (EDGE_DFS_BACK): New constant.
2532 (mark_dfs_back_edges): Declare.
2533 * alias.c (loop_p): Remove.
2534 (mark_constant_function): Use mark_dfs_back_edges.
2536 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
2537 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
2538 (compensate_edge): Break out from ...
2539 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
2540 (convert_regs_2): Set block_done once block is really done;
2541 Do updating of the predecesors counts.
2543 * toplev.c (rest_of_compilation): Recompute block_for_insn
2544 before post-reload cfg_cleanup.
2545 * function.c (thread_prologue_epilogue_insns):
2546 Call set_block_for_new_insns when emitting prologue directly.
2548 2001-07-30 Andreas Jaeger <aj@suse.de>
2550 * jump.c: Add prototype for mark_modified_reg.
2552 * cse.c (set_live_p): Add unused attribute.
2554 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
2556 (scan_for_source_files): Use long for count to avoid overflow.
2557 (output_data): Likewise.
2558 (output_data): Don't use string concatatenation to silence gcc
2561 * predict.c: Fix typos and grammar.
2563 * gcse.c (insert_insn_end_bb): Remove unused variables.
2565 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
2567 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
2568 (attempt_auto_inc): LIkewise.
2569 (mark_used_reg): Likewise.
2570 (try_pre_increment_1): Likewise.
2571 * regclass.c (regclass): Likewise.
2572 * global.c (allocno_compare): Update comment; change scaling factor.
2573 * local-alloc.c (QTY_CMP_PRI): Likewise.
2574 * regs.h (REG_FREQ_FROM_BB): New.
2575 (REG_FREQ_MAX): Likewise.
2577 2001-07-30 H.J. Lu <hjl@gnu.org>
2579 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
2582 2001-07-30 H.J. Lu (hjl@gnu.org)
2584 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
2585 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
2586 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
2588 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2590 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
2591 as -mthumb-interwork when -mcpu=arm7 is specified.
2593 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
2595 * predict.def (noreturn, loop branch, loop exit): Mark as first
2598 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
2600 * combine.c (try_combine): Avoid barrier after noop jumps.
2602 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2604 * cpphash.h (struct cpp_reader): Remove import_warning.
2605 * cpplib.c (skip_rest_of_line): Don't bother turning off
2607 (parse_include): Move include handling to...
2608 (do_include_common): ... here. Move import warning from...
2609 (do_import): ... here.
2610 (do_pragma_poison): Don't do a callback for poison identifiers.
2611 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
2612 * cppmain.c (setup_callbacks): Similarly.
2614 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
2616 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
2617 handle multiple sets.
2618 * except.c (sjlj_mark_call_sites): .... here.
2619 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
2621 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
2623 Suggested by Richard Henderson and Richard Kenner:
2624 * combine.c (recog_for_combine): Use the fake recog
2625 only if instruction does not match.
2626 * rtl.h (NOOP_MOVE_INSN_CODE): New.
2627 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
2629 * combine.c (try_combine): Discover noop jump as direct jump.
2631 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
2633 * df.c (df_rd_global_compute): Add successors to worklist, not
2635 (df_ru_global_compute): Ditto.
2637 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
2639 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
2640 increment REG_N_SETS.
2642 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
2644 * sbitmap.h: New prototype for sbitmap_a_xor_b.
2646 * sbitmap.c (sbitmap_a_xor_b): New function.
2647 ifdef the basic block stuff on IN_GCC.
2649 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2651 * cppexp.c (parse_defined): Always record the macro name.
2652 (lex): Don't worry about identifiers, or special-case
2654 (_cpp_parse_expr): Figure out at the end of the routine
2655 whether we saw a valid !defined() expression.
2656 * cppfiles.c (stack_include_file): Update for mi_valid.
2657 (_cpp_pop_file_buffer): Similarly.
2658 * cpplex.c (_cpp_lex_token): Similarly.
2659 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
2660 mi_if_not_defined, mi_lexed): Remove.
2662 * cpplib.c (do_if): Simplify.
2663 (do_endif, push_conditional, _cpp_handle_directive): Update
2664 for renaming of mi_state to mi_valid.
2666 * cpp.texi: Add index entries for digraphs, and add comment
2667 that C++ refers to them as alternative tokens.
2669 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
2671 * basic-block.h (CLEANUP_PRE_LOOP): New.
2672 * except.c (finish_eh_generation): Update call of cleanup_cfg.
2673 * sibcall.c (optimize_sibling_calls): Likewise.
2674 * toplev.c (rest_of_compilation): Likewise.
2675 * flow.c (try_forward_edges): Take argument MODE;
2676 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
2677 (try_optimize_cfg): Update call of try_forward_edges.
2679 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
2680 Jan Hubicka <jh@suse.cz>
2682 * (validate_replace_rtx_1): Fix simplification of MINUS.
2684 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
2686 PR preprocessor/3669
2687 * cppinit.c (init_dependency_output): Turn off dump requests
2688 if sending dependencies to stdout.
2690 2001-07-28 Richard Henderson <rth@redhat.com>
2692 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
2695 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
2697 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
2699 2001-07-28 Kazu Hirata <kazu@hxi.com>
2701 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
2702 is VAR_DECL first to prevent an ICE.
2704 2001-07-28 Richard Henderson <rth@redhat.com>
2706 * varasm.c (immed_real_const_1): Don't elide special cases for
2708 (clear_const_double_mem): Clear const_tiny_rtx too.
2710 2001-07-28 Richard Henderson <rth@redhat.com>
2712 * dwarf2out.c (dw_val_class_offset): New.
2713 (struct dw_ranges_struct, dw_ranges_ref): New.
2714 (ranges_table, ranges_table_allocated): New.
2715 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
2716 (add_AT_offset, add_ranges, output_ranges): New.
2717 (print_die, output_die): Handle dw_val_class_offset.
2718 (attr_checksum, size_of_die, value_format): Likewise.
2719 (gen_lexical_block_die): Handle non-contiguous blocks.
2720 (gen_block_die): Likewise.
2721 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
2722 if needed. Dump the ranges table.
2723 * final.c (final_start_function): Remove unnecessary notes and
2724 rebuild the block tree before numbering the blocks.
2725 * function.c (reorder_blocks_0): Walk the existing block tree
2726 to unmark all blocks.
2727 (reorder_blocks_1): Create block fragments when duplicate block
2729 (reorder_fix_fragments): New.
2730 (reorder_blocks): Call it.
2731 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
2733 2001-07-28 Richard Henderson <rth@redhat.com>
2735 * emit-rtl.c (adjust_address): Make a copy of the memory address.
2737 2001-07-28 Richard Henderson <rth@redhat.com>
2739 * flow.c (add_to_mem_set_list): New function.
2740 (init_propagate_block_info): Use it.
2741 (mark_set_1): Likewise.
2742 (insn_dead_p): Canonicalize memory address for dead store
2743 comparison. Allow wider mode stores to kill narrower mode stores.
2744 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
2745 (invalidate_mems_from_set): Don't handle MEMs.
2747 2001-07-28 Kazu Hirata <kazu@hxi.com>
2749 * config/h8300/h8300.h: Fix formatting.
2751 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
2753 * basic-block.h (EDGE_FREQUENCY): New macro.
2754 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
2756 * flow.c (find_sub_basic_blocks): Likewise.
2757 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
2758 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
2760 * predict.c (DEF_PREDICTOR): New argument FLAGS.
2761 (HITRATE): New macro.
2762 (PRED_FLAG_FIRST_MATCH): New constant.
2763 (predictor_info): New field flgags.
2764 (combine_predictions_for_insn): Use DS theory to combine
2765 probabilities; set the edge probabilities when finished.
2766 (estimate_probability): Avoid duplicated matches
2767 of LOOP_BRANCH heuristics for nested loops; update comment.
2768 * predict.def: Add flags for each prediction, set probabilities
2769 according to B&L paper.
2770 * predict.h (DEF_PREDICTOR): New argument FLAGS.
2772 * profile.c (compute_branch_probabilities): Cleanup way the edge
2773 probabilities are computed and REG_BR_PROB notes are dropped; if
2774 values does not match, emit error.
2775 (init_branch_prob): Do error instead of warning when profile driven
2776 feedback is missing or corrupt.
2778 2001-07-27 DJ Delorie <dj@redhat.com>
2780 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
2781 against a constant, try to adjust the compare to have the desired
2782 constant in it so that min/max optimizations happen more often.
2784 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
2786 * flow.c (last_loop_beg_note): New function.
2787 (redirect_edge_and_branch): Use it.
2788 (split_edge): Likewise.
2790 * alias.c (loop_p): Avoid uninitialized memory access.
2792 * flow.c (try_forward_edges): Avoid accessing freed memory.
2794 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
2797 2001-07-26 Andrew Haley <aph@redhat.com>
2798 Joern Rennecke <amylaar@redhat.com>
2800 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
2801 (SUBTARGET_CPP_ENDIAN_SPEC): New.
2802 (SUBTARGET_CPP_SPEC): New.
2804 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
2805 (SUBTARGET_CPP_PTR_SPEC): New.
2806 (CPP_DEFAULT_CPU_SPEC): New.
2807 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
2808 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
2809 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
2810 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
2811 (SUBTARGET_CPP_SPEC): Define as an empty string.
2813 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2815 * doc/install.texi (Configuration): Properly link the host
2816 specific instructions also when generating HTML.
2818 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
2820 * flow.c (redirect_edge_and_branch_force): Test
2821 target->global_live_at_start.
2823 2001-07-26 Richard Henderson <rth@redhat.com>
2825 * simplify-rtx.c (avoid_constant_pool_reference): Export.
2826 * rtl.h (avoid_constant_pool_reference): Declare it.
2827 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
2828 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
2830 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
2832 * rtl.h (cleanup_barriers): Declare.
2833 * jump.c (cleanup_barriers): New function.
2834 * toplev.c (rest_of_compilation): Call cleanup_barriers
2835 before loop optimizer and after bb_reorder.
2837 * flow.c (back_edge_of_syntactic_loop_p): New.
2838 (split_edge): Use it.
2840 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2842 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
2844 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
2846 * cse.c (cse_process_notes): Replace any registers if the address
2849 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
2851 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
2852 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
2853 (propagate_block): Update prototype.
2854 * flow.c (update_life_info): Simplify the CFG and
2855 recalculate the global regs which are alive when
2856 removing dead code during a global update.
2857 (propagate_block): Return non-zero if an INSN is
2860 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2862 * Makefile.in (LIBICONV): Define.
2864 2001-07-26 Catherine Moore <clm@redhat.com>
2866 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
2867 of conditional to avoid tree checking errors.
2869 2001-07-26 Kazu Hirata <kazu@hxi.com>
2871 * regmove.c (regmove_optimize): Don't replace a reg with
2872 another reg of a different mode.
2874 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
2876 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
2877 limit length of dependancy flush list.
2878 * params.h (MAX_PENDING_LIST_LENGTH): Define.
2879 * sched-int.h (struct deps): Add pending_flush_length field.
2880 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
2881 has 1 element in it.
2882 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
2883 (sched_analyze): After a jump, if the pending memory flush list is too
2884 large, flush the pending lists.
2885 (init_deps): Initialize pending_flush_length to 0.
2886 * doc/invoke.texi (max_pending_list_length): Document parameter.
2888 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
2890 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
2891 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
2892 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
2894 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2896 * cpphash.h (struct_lexer_state): Delete was_skipping.
2897 Move skipping here from struct cpp_reader.
2898 * cpplex.c (parse_identifier): Update.
2899 (_cpp_lex_token): Don't skip tokens in a directive.
2900 * cpplib.c (struct if_stack): Update.
2901 (start_directive, end_directive): Don't change skipping state.
2902 (_cpp_handle_directive): Update.
2903 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
2904 (do_else, do_endif): Update; only check for excess tokens if not
2905 in a skipped conditional block.
2906 (push_conditional): Update for new struct if_stack.
2908 2001-07-26 Graham Stott <grahams@redhat.com>
2910 * function.c (locate_and_pad_parm): Also pad initial offset
2911 so that the total argument size also includes the padding.
2913 2001-07-26 Graham Stott <grahams@redhat.com>
2915 * gensupport.c (alter_output_for_insn): Correct enable checking failure
2916 change XSTR to XTMPL.
2918 (process_one_cond_exec): Likewise
2920 2001-07-25 Richard Henderson <rth@redhat.com>
2922 * varasm.c (assemble_variable): Create DECL_RTL before setting
2925 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
2927 * predict.c (estimate_probability): Avoid duplicated predictions.
2929 * loop.c (find_and_verify_loops): Grok multiple barriers.
2931 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2933 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
2935 * dbxout.c: Consistently use putc instead of fputc.
2936 (print_wide_int): New function; call instead of direct fprintf.
2937 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
2938 (dbxout_type_fields, dbxout_type_method_1): Likewise.
2939 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
2940 (print_int_cst_octal): Likewise.
2941 (print_octal): Show we wrote characters.
2942 (dbxout_type): Set have_used_extensions in more places.
2944 2001-07-25 Catherine Moore <clm@redhat.com>
2946 * config/v850/v850.c (v850_va_arg): Use addr
2947 instead of valist to build incr.
2949 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
2951 * flow.c (delete_dead_jumptables): New function.
2952 (life_analyzis): Call it.
2953 * bb-reorder.c (skip_insns_after_block): Handle contradictory
2956 2001-07-25 Richard Henderson <rth@redhat.com>
2958 * except.c (reachable_handlers): Handle a region being removed
2959 out from under a RESX.
2961 2001-07-25 Richard Henderson <rth@redhat.com>
2963 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
2964 swap GE/GT if it is an fp comparison.
2966 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
2968 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
2971 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
2973 * ssa.c (rename_insn_1): Do not wrap an assignment to a
2974 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
2977 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
2979 (visit_expression): When attempting to simplify an expression,
2980 retrieve any modes for arguments before they are simplified
2983 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
2984 Janis Johnson <janis@us.ibm.com>
2986 * stmt.c (expand_goto): A nonlocal goto can be a call too.
2987 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
2988 pointer parameters to match documented usage of nonlocal_goto.
2989 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
2990 parameters to their correct order.
2991 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
2992 parameters to their correct order.
2994 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
2996 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
2998 2001-07-25 Jan Hubicka <jh@suse.cz>
2999 Richard Henderson <rth@redhat.com>
3001 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
3003 (make_edges): New argument update_p; populate the edge cache if set.
3004 (find_basic_blocks): Update make_edges invocation.
3006 2001-07-24 Joel Sherrill <joel@OARcorp.com>
3008 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
3010 2001-07-24 Joel Sherrill <joel@OARcorp.com>
3012 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
3013 -Acpu and -Amachine.h.
3014 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
3015 Corrected header to say ELF not a.out.
3016 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
3017 when given -msoft-float.
3019 2001-07-24 Joel Sherrill <joel@OARcorp.com>
3021 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
3022 extra multilib parts like arm-elf.
3023 (i960-*-coff*, i960-*-rtems): Should not use collect2.
3024 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
3025 crtfini.o as extra multilib parts.
3027 2001-07-24 Joel Sherrill <joel@OARcorp.com>
3029 * configure.in: Add rtems as a supported thread model.
3030 * gthr-rtems.h: Add missing entry point __gthread_active_p.
3031 * configure: Rebuilt.
3033 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
3035 * stor-layout.c (get_mode_alignment): make it work when
3036 BITS_PER_UNIT is not a power of two.
3037 * builtins.c (get_pointer_alignment): Likewise.
3039 2001-07-24 Richard Henderson <rth@redhat.com>
3041 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
3042 the retrieved constant into the expected mode.
3044 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
3046 * flow.c (try_simplify_condjump): Avoid duplicated edges.
3047 (verify_flow_info): Check for duplicated edges; clarify
3050 * flow.c (block_label): Update basic_block_for_insn.
3051 (commit_edge_insertions): Call compute_bb_for_insn.
3053 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
3056 * flow.c (redirect_edge_and_branch,
3057 try_optimize_cfg): Use redirect_edge_succ_nodup
3058 (redirect_edge_succ_nodup): New.
3059 * basic_block.h (redirect_edge_succ_nodup): Declare.
3061 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
3064 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
3066 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
3067 (try_crossjump_to_edge): Update commetns.
3068 (try_crossjump_bb): Likewise.
3070 2001-07-24 Richard Henderson <rth@redhat.com>
3072 * combine.c (distribute_notes): Move set of need_refresh
3073 for noop_move_p down to catch all cases.
3075 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
3077 * recog.c (split_all_insns_noflow): New.
3078 * rtl.h (split_all_insns_noflow): Declare.
3079 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
3080 * m68hc11.c (m68hc11_reorg): Likewise.
3081 * sh.c (machine_dependent_reorg): Likewise.
3082 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
3085 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
3087 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
3088 (ashlsi3_n splitter): Likewise.
3089 (lshrsi3_n splitter): Likewise.
3091 (GOTaddr2picreg): Make const SImode.
3092 (sym_label2reg): Likewise.
3093 (symGOT2reg): Likewise.
3094 (symGOTOFF2reg) Likewise.
3096 (casesi_worker_0): Make unspec SImode.
3098 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
3100 * config/sh/sh.c (barrier_align): Check that an operand really is
3101 an insn before extracting its INSN_CODE.
3103 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
3105 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
3108 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
3109 for SImode to prevent overflow.
3111 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3113 * config/mips/irix6-libc-compat.c: New file.
3114 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
3115 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
3118 2001-07-24 lars brinkhoff <lars@nocrew.org>
3120 * rtl.texi (REG_POINTER): Document.
3121 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
3122 QFmode, HFmode, TQFmode, QCmode, and HCmode.
3124 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
3126 * flow.c (delete_noop_moves): Do not confuse libcall regions.
3128 2001-07-23 Richard Henderson <rth@redhat.com>
3130 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
3132 2001-07-23 Kazu Hirata <kazu@hxi.com>
3134 * config/h8300/h8300-protos.h: Add a prototype for
3135 general_operand_dst_push.
3136 * config/h8300/h8300.c (general_operand_dst_push): New.
3137 * config/h8300/h8300.h (OK_FOR_T): New.
3138 (EXTRA_CONSTRAINT): Use it.
3139 * config/h8300/h8300.md (movqi_push): Remove and integrate into
3140 the existing movqi pattern.
3141 (movhi_push): Likewise.
3143 * reload.c: Fix comment typos.
3145 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
3147 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
3149 2001-07-23 H.J. Lu (hjl@gnu.org)
3151 * doc/extend.texi: Update __builtin_return_address and
3152 __builtin_frame_address.
3154 2001-07-23 Richard Henderson <rth@redhat.com>
3156 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
3158 * config/i386/i386.md: New setcc+movzbl peephole2.
3160 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3162 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
3163 * objc/objc-act.c: Include debug.h.
3164 (synth_module_prologue): Save and restore debug hooks too.
3166 2001-07-23 lars brinkhoff <lars@nocrew.org>
3168 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
3169 and C4X_FLOAT_FORMAT.
3170 (BOOL_TYPE_SIZE): Document.
3172 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
3174 * unroll.c (loop_iterations): Fix miscalculation of initial
3177 2001-07-13 Andrew Haley <aph@redhat.com>
3179 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
3180 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
3181 * config/sh/sh.c (sh_can_redirect_branch): New function.
3182 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
3183 * reorg.c (steal_delay_list_from_target): Use
3184 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
3186 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
3188 * flow.c (try_simplify_condjump): Unlink insn chain on
3189 fallthru edge; use can_fallthru.
3191 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
3193 * basic-block.h (find_sub_basic_block): Declare.
3194 * flow.c (make_edges): New arguments MIN and MAX;
3195 (find_sub_basic_blocks): Revamp to use make_edges
3196 and purge_dead_edges.
3197 (find_basic_blocks): Update call of find_sub_basic_block.
3199 * recog.c (split_all_insns): Always expect CFG to be consistent;
3200 call find_sub_basic_blocks in case something has changed.
3201 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
3204 * basic-block.h (delete_noop_moves): Declare.
3205 * combine.c (combine_instructions): Call it.
3206 (recog_for_combine): Tolerate noop moves
3207 (distribute_notes): Force refresh when register dies at noop move.
3208 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
3210 (life_analysis): Update delete_noop_moves call.
3211 (set_noop_p): Move too ...
3212 * rtlanal.c (noop_move_p): ... here.
3213 * rtl.h (noop_move_p): Declare.
3215 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
3216 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
3218 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
3219 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
3221 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
3223 * reload.c (push_reload): Fix typo in comment.
3224 (find_reloads_address): Ditto.
3225 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
3227 2001-07-22 Richard Henderson <rth@redhat.com>
3229 * flow.c: Grammar check and clarify a lot of comments.
3230 (try_simplify_condjump): Rename variables to be clearer.
3231 (try_forward_edges): Skip complex and fallthru edges.
3232 Rearrange tests to avoid duplicate checks.
3233 (flow_find_cross_jump): Likewise.
3234 (outgoing_edges_match): Allow match if neither branch has
3235 probability data. Loosen probability match to 5%.
3236 (try_crossjump_to_edge): Hoist repeated indirection into
3238 (try_crossjump_bb): Don't check complex edges. Eliminate
3239 redundant crossjump tests.
3240 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
3241 checks before more expensive checks.
3243 2001-07-22 Richard Henderson <rth@redhat.com>
3245 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
3246 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
3249 2001-07-22 Richard Henderson <rth@redhat.com>
3251 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
3252 (const_sint32_operand): Likewise.
3253 * m68k.md (anon mulsi pattern): Use const_int_operand not
3254 const_sint32_operand.
3255 (umulsi3_highpart): Zero extend a constant input.
3256 (smulsi3_highpart): Don't bother checking SImode constant.
3257 (const_umulsi3_highpart): Give op3 DImode.
3258 (const_smulsi3_highpart): Likewise.
3260 2001-07-22 Richard Henderson <rth@redhat.com>
3262 * flow.c (split_block): Make sure bb_note is included in the
3263 new block when splitting before a label.
3265 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
3267 * basic-block.h (redirect_edge_and_branch_force,
3268 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
3269 * flow.c (redirect_edge_and_branch_force,
3270 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
3271 (redirect_edge_and_branch_force): Fix copying of lifeness information.
3272 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
3273 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
3274 instead of label; update CFG after transformation.
3275 (find_if_case_1): Update call, use redirect_edge_and_branch_force
3276 for finishing the transformation; handle even case where ELSE
3277 does not follow THEN.
3278 (find_if_case_2): Update call of dead_or_predictable; simplify
3281 * emit-rtl.c (split_branch_probability): New global variable.
3282 (try_split): Take care to set split_branch_probability and
3283 create REG_BR_PROB note for new jump insns.
3284 * md.texi (define_split): Document new feature.
3286 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
3288 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
3290 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
3291 (asm_out_file): Remove redundant declaration.
3292 (assemble_asm): Remove old #if 0 block.
3293 (assemble_variable): Remove end of function; debug output is
3294 now handled with global_decl. Remove old #if 0 block. Update.
3295 Remove saved_in_section and associated no-op code.
3296 * Makefile.in (varasm.o): Correct dependencies.
3298 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
3300 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3301 the definition in defaults.h.
3303 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
3305 * jump.c: Update comments.
3306 (delete_barrier_successors, delete_unreferenced_labels,
3307 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
3308 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
3309 jump_optimize, jump_optimize_minimal): Kill.
3310 (rebuild_jump_labels): Move code from jump_optimize_1.
3311 (purge_line_number_notes): Likewise.
3312 (copy_loop_headers): Likewise.
3313 * reg-stack.c: Update comment.
3315 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
3316 JUMP_AFTER_REGSCAN): Kill.
3317 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
3318 purge_line_number_notes and copy_loop_headers.
3320 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
3321 Richard Henderson <rth@redhat.com>
3323 * dbxout.c (dbxout_global_decl): New.
3324 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
3325 * sdbout.c (sdbout_finish): New.
3326 (sdbout_debug_hooks): Use it, add comments.
3327 (sdbout_global_decl): Defer initialised public vars to
3329 * varasm.c (assemble_variable): Don't output debug information
3330 for file-scope variables.
3332 2001-07-22 Richard Henderson <rth@redhat.com>
3334 * config/alpha/alpha.c (get_trap_mode_suffix): New.
3335 (get_round_mode_suffix): New.
3336 (print_operand): Use them for [/]. Remove support for [&'`()+].
3337 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
3338 * config/alpha/alpha.md (attr round_suffix): New.
3339 (attr trap_suffix): New.
3340 (all insns): Set them appropriately. Use %/ instead of the
3343 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3345 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
3347 2001-07-22 Richard Henderson <rth@redhat.com>
3349 * regrename.c (regrename_optimize): Compute nregs for each
3350 potential target register.
3352 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
3353 Richard Henderson <rth@redhat.com>
3355 * dbxout.c (dbxout_global_decl): New.
3356 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
3357 * sdbout.c (sdbout_finish): New.
3358 (sdbout_debug_hooks): Use it, add comments.
3359 (sdbout_global_decl): Defer initialised public vars to
3361 * varasm.c (assemble_variable): Don't output debug information
3362 for file-scope variables.
3364 2001-07-21 H.J. Lu (hjl@gnu.org)
3366 * config/mips/mips.c (mips_cpu): Moved into ...
3367 (override_options): Here.
3369 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
3371 (mips_cpu): Removed.
3373 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3375 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
3376 ("iorqi3"): Likewise.
3377 ("xorqi3"): Likewise.
3378 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
3379 ("*subhi3_sp): Likewise.
3380 ("*subhi3"): Likewise.
3381 ("extendhisi2"): Accept D, X and Y as source operand to avoid
3384 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
3386 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
3387 * config/freebsd.h: Likewise.
3388 * config/linux.h: Likewise.
3389 * config/openbsd.h: Likewise.
3390 * config/alpha/linux-elf.h: Likewise.
3391 * config/arm/linux-elf.h: Likewise.
3392 * config/d30v/d30v.h: Likewise.
3393 * config/fr30/fr30.h: Likewise.
3394 * config/ia64/aix.h: Likewise.
3395 * config/ia64/ia64.h: Likewise.
3396 * config/mips/linux.h: Likewise.
3397 * config/pj/pj.h: Likewise.
3398 * config/rs6000/linux.h: Likewise.
3399 * config/sparc/linux.h: Likewise.
3400 * config/sparc/linux64.h: Likewise.
3402 2001-07-20 Bruce Korb <bkorb@gnu.org>
3404 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
3405 because getc() and char* may disagree on signedness.
3407 2001-07-20 Richard Henderson <rth@redhat.com>
3409 * doc/rtl.texi (REG_DEAD): Update for current semantics.
3411 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
3412 insns to delete in the presence of cc0 in a jump insn.
3414 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
3415 Jan Hubicka <jh@suse.cz>
3417 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
3418 of doing the change by hand.
3420 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
3422 * rtlanal.c (set_noop_p): Return true for noop jumps.
3424 * expr.c (emit_single_push_insn): Add call to push expander.
3425 * expr.h (optab_index): Add OTI_push
3426 (push_optab): New constant.
3427 * genopinit.c (optabs): Add push_optab.
3428 * optabs.c (init_optab): Init push optab.
3429 * md.texi (push??1): Document
3431 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3433 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
3434 expand to emit the pattern; put a REG_INC note for push/pop
3436 ("movdf", "movdf_internal"): Likewise.
3437 ("movsi", "movsi_internal"): Likewise.
3438 ("movsf", "movsf_internal"): Likewise.
3439 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
3441 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3443 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
3446 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
3448 * params.def: Change default max inline insns to 100.
3450 2001-07-20 Diego Novillo <dnovillo@redhat.com>
3452 * combine.c (combine_simplify_rtx): Generate a new shift operation
3453 when simplifying the first operand of a (neg (ashift)) expression.
3455 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
3457 * regclass.c (N_REG_INTS): Use only 32 bits per element.
3459 2001-07-20 Kelley Cook <kelley.cook@home.com>
3461 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
3462 information. Move rest into ...
3463 (*-*-solaris): ... here. Eliminate redundant information and
3464 reword necessary packages section. Delete 4.x assembler bug info.
3465 (sparc-sun-*): Merge into ...
3466 (sparc-sun-sunos*): here.
3468 2001-07-20 Catherine Moore <clm@redhat.com>
3470 * config/v850/v850.md (casesi): Generate LABEL_REF
3473 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
3475 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
3476 * i386.c (ix86_zero_extend_to_Pmode): Make global.
3477 * i386.md (strclrsi expander): Use it.
3479 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
3481 * integrate.c (copy_insn_list): handle
3482 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
3483 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
3484 identically as to CODE_LABEL.
3486 * fold-const (fold): Convert A/B/C to A/(B*C) and
3489 * except.c (connect_post_landing_pads): Delete the RESX insns.
3491 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
3493 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
3495 * config/mips/mips.md (nmadd/nmsub): Use macro.
3497 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
3499 * cppinit.c (remove_dup_dir): Make static.
3500 (remove_dup_dirs): Make static. Only warn about preempting a
3501 system directory with a non-system directory.
3503 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
3505 * ifcvt.c (noce_try_store_flag_constants): Correct order
3506 of parameters to trunc_int_for_mode.
3508 2001-07-19 Mark Mitchell <mark@codesourcery.com>
3510 * reorg.c (fill_simple_delay_slots): If an instruction might throw
3511 an exception that will be caught within this function, do not fill
3512 its delay slot with any subsequent instruction.
3514 2001-07-19 Steve Ellcey <sje@cup.hp.com>
3516 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
3517 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
3518 pointer extension instruction.
3519 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
3520 * simplify-rtx.c (simplify_unary_operation) Likewise.
3521 * explow.c (convert_memory_address) Check value of
3522 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
3524 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
3525 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
3526 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
3527 Add Multilib Support.
3528 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
3529 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
3530 Add Multilib Support.
3531 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
3533 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
3534 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
3535 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
3537 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
3539 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
3540 old and new operands in `<', `3' and `b'.
3542 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3544 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
3545 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
3546 (toplev.o): Don't depend on xcoffout.h.
3547 * c-decl.c: Include debug.h
3548 (duplicate_decls): Use debug hook.
3549 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
3550 (dbx_debug_hooks, xcoff_debug_hooks): Update.
3551 (dbxout_types): Remove.
3552 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
3553 * debug.c (do_nothing_debug_hooks): Update.
3554 (debug_true_tree, debug_nothing_rtx): New.
3555 * debug.h (struct rtx_def): New.
3556 (struct gcc_debug_hooks): New hooks ignore_block,
3557 outlining_inline_function and label.
3558 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
3559 dwarf2out_frame_finish): New.
3560 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
3561 Make static, update prototype.
3562 (dwarf2_debug_hooks): Update.
3563 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
3564 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
3565 * dwarfout.c (dwarf_debug_hooks): Update.
3566 * emit-rtl.c: Include debug.h.
3567 (remove_unnecessary_notes): Use debug hook.
3568 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
3569 (final_scan_insn): Use debug hook.
3570 * integrate.c (output_inline_function): Use debug hook.
3571 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
3572 (sdb_debug_hooks): Update.
3573 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
3574 * toplev.c: Don't include xcoffout.h.
3575 (note_outlining_of_inline_function, debug_ignore_block): Remove.
3576 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
3578 * tree.h (dwarf2out_do_frame): Remove.
3580 2001-07-19 Catherine Moore <clm@cygnus.com>
3582 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
3584 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
3586 * reload1.c (eliminate_regs_in_insn): When updating a set
3587 to the frame pointer to the hardware frame pointer, perform
3588 the update always not just when REPLACE is set.
3590 * reload1.c (choose_reload_regs): Don't inherit a reload
3591 that crosses multiple registers if registers past the first
3592 don't fit in the desired class.
3594 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
3595 when negating constants.
3597 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
3599 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
3600 * doc/tree.texi: Ditto.
3602 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
3603 Jakub Jelinek <jakub@redhat.com>
3605 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
3606 (extract_cie_info): Handle "eh" augmentation properly,
3608 (struct frame_state, __frame_state_for): New.
3610 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3612 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
3613 HANDLE_SYSV_PRAGMA): Define.
3614 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
3616 (copy_object): Caller changed.
3618 2001-07-19 Andreas Schwab <schwab@suse.de>
3620 * configure.in (assembler dwarf2 debug_line support): Define nop
3622 * configure: Regenerated.
3624 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3626 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
3628 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
3629 to conditionally compiled block.
3630 (dbx_debug_hooks, xcoff_debug_hooks): Update.
3631 * dbxout.h (dbxout_function): Remove.
3632 * debug.c (do_nothing_debug_hooks): Update.
3633 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
3634 global_decl, deferred_inline_function.
3635 * dwarf2out.c (dwarf2_debug_hooks): Update.
3636 (dwarf2out_global_decl): New.
3637 * dwarfout.c: Don't include dwarfout.h.
3638 (dwarfout_global_decl, dwarfout_function_decl,
3639 dwarfout_deferred_inline_function): New.
3640 (dwarf_debug_hooks): Update.
3641 * dwarfout.h: Remove.
3642 * final.c: Don't include dwarfout.h.
3643 * sdbout.c (sdbout_global_decl): New.
3644 (sdbout_debug_hooks): Update.
3645 * toplev.c: Don't include dwarfout.h.
3646 (check_global_declarations, rest_of_compilation): Use new debug hooks.
3647 (note_deferral_of_defined_inline_function): Remove.
3648 * toplev.h (note_deferral_of_defined_inline_function): Remove.
3649 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
3650 * ch/lex.c: Don't include dwarfout.h.
3651 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
3652 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
3653 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
3654 * cp/optimize.c: Include debug.h.
3655 (maybe_clone_body): Use debug hook.
3656 * cp/semantics.c: Include debug.h.
3657 (expand_body): Use debug hook.
3658 * po/POTFILES.in: Remove dwarfout.h.
3660 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
3662 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
3663 * c-parse.in (yyerror, _yylex): Similarly.
3664 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
3665 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
3667 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
3668 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
3670 2001-07-18 Jeff Sturm <jsturm@one-point.com>
3672 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
3673 in-class declaration at -g1. Fixes c++/2814.
3675 2001-07-18 Richard Henderson <rth@redhat.com>
3677 * doc/md.texi (reload_in/out): Document restrictions in predicates
3678 and constraints for these patterns. Document empty string matching
3681 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3683 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
3685 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
3687 * cse.c: Undo my previous patch.
3689 2001-07-18 Tom Tromey <tromey@redhat.com>
3692 * configure: Rebuilt.
3693 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
3695 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
3697 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
3698 Jan Hubicka <jh@suse.cz>
3700 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
3701 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
3702 * jump.c (mark_jump_label): Do not forward branches.
3704 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
3706 * cse.c (delete_trivially_dead_insns): Delete the libcall block
3707 when return value is unused.
3709 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
3711 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
3713 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
3715 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
3716 on error. We can't blindly return the result of
3717 pthread_mutex_trylock because it returns a positive number on
3718 error, while we must return -1 on error.
3719 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
3721 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
3723 2001-07-18 Andreas Jaeger <aj@suse.de>
3725 * integrate.c (output_inline_function): Correct type of debug_hooks.
3727 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
3729 * combine.c (combine_simplify_rtx): DIV can be treated
3730 associatively for floats if unsafe math optimisations are enabled.
3732 2001-07-17 Richard Henderson <rth@redhat.com>
3734 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
3736 2001-07-17 Richard Henderson <rth@redhat.com>
3738 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
3739 don't force the function address into a register.
3740 (expand_call, emit_library_call_value_1): Update callers.
3741 * builtins.c (expand_builtin_apply): Likewise.
3742 * expr.h (prepare_call_address): Update decl.
3744 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
3746 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
3748 * config/i386/chorus.h: Move up.
3749 * config/sparc/chorus.h: Likewise.
3750 * config/rs6000/chorus.h: Likewise.
3751 * config/chorus.h: Moved here.
3753 2001-07-17 Andreas Schwab <schwab@suse.de>
3755 * configure.in (assembler eh_frame optimization): Handle big
3757 * configure: Regenerated.
3759 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
3761 * expr.c (epxand_expr): Convert divisions into multiplications by
3762 reciprocals if -ffast-math.
3764 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
3766 * dbxout.c (dbxout_really_begin_function): Rename to
3767 dbxout_begin_function.
3768 (dbx_debug_hooks, xcoff_debug_hooks): Update.
3769 (dbxout_begin_function): Remove.
3770 (dbxout_function): Update.
3771 (dbxout_source_line): Update prototype.
3772 * dbxout.h (dbxout_begin_function): Remove.
3773 * debug.c (do_nothing_debug_hooks): Update.
3774 (debug_nothing_tree): Update.
3775 (debug_nothing_charstar_rtx): Remove.
3776 * debug.h (union tree_node): Declare.
3777 (struct rtx_def): Remove.
3778 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
3779 begin_function. Change source_line prototype.
3780 (debug_nothing_tree): New.
3781 (debug_nothing_charstar_rtx): Delete.
3782 (dwarf2out_begin_prologue): Moved from ...
3784 * dwarf2out.c (dwarf2_debug_hooks): Update.
3785 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
3786 debug info, call dwarf2out_source_line.
3787 (dwarf2out_souce_line): Update prototype.
3788 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
3789 Change prototype, make static.
3790 (dwarfout_source_line): Update prototype.
3791 (dwarf_debug_hooks): Update.
3792 * dwarfout.h (dwarfout_begin_function): Remove.
3793 * final.c (final_start_function, final_scan_insn): Use appropriate
3794 debug hooks, update to use notice_source_line.
3795 (output_source_line): Rename notice_source_line. Don't call the
3796 source_line debug hook.
3797 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
3798 make static, update prototype.
3799 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
3801 (sdbout_end_prologue): New.
3802 (sdbout_source_line): Update prototype.
3803 (sdbout_debug_hooks): Update.
3804 (sdbout_symbol): Remove unused var.
3805 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
3807 * varasm.c: Include debug.h.
3808 (assemble_start_function): Use begin_function debug_hook.
3809 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
3810 update with prototype.
3811 (xcoffout_source_line): Update prototype.
3812 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
3814 (xcoffout_source_line): Update prototype.
3816 2001-07-17 Richard Henderson <rth@redhat.com>
3818 * c-typeck.c (build_binary_op): Do not shorten unsigned
3819 right shift after sign extension.
3821 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
3823 * combine.c (combine_simplify_rtx): Attempt to simplify
3824 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
3826 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
3827 (simplify_binary_operation, simplify_unary_operation,
3828 simplify_relational_operation): Use it.
3830 * combine.c (combine_simplify_rtx): Don't do associative law
3831 on divisions; allow associative law on floats.
3833 2001-07-17 H.J. Lu <hjl@gnu.org>
3834 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3836 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
3837 ASM_OUTPUT_WEAK_ALIAS are defined.
3838 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
3839 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
3841 * config/mips/iris5.h: ... here.
3842 (HANDLE_SYSV_PRAGMA): Defined as 1.
3843 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
3844 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
3847 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
3849 * c-parse.in (all_prefix_attributes): New variable.
3850 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
3851 (maybe_resetattrs): New production.
3852 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
3853 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
3854 notype_initdcl, nested_function, notype_nested_function,
3855 component_decl, components, components_notype,
3856 component_declarator, component_notype_declarator,
3857 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
3858 ivars, mydecl, myparm): Update. Avoid prefix attributes just
3859 after a comma being applied to more than one declarator.
3860 * doc/extend.texi (Attribute Syntax): Update. Remove
3861 documentation of bugs that are no longer present.
3863 2001-07-13 Eric Christopher <echristo@redhat.com>
3865 * config/mips/mips.h: Change TUNE_MIPS* options to use
3867 (EXTRA_SPECS): Add cc1_cpu_spec.
3868 * config/mips/mips.md (muldf3): Fix typo.
3870 2001-07-16 Richard Henderson <rth@redhat.com>
3872 * config/m68k/m68k.c: Include expr.h and reload.h.
3873 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
3874 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
3876 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
3877 Richard Henderson <rth@redhat.com>
3879 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
3880 (insn_live_p): Fix fall off end of function.
3881 (dead_libcall_p): Remove COUNTS argument; update callers.
3882 (delete_trivially_dead_insns): Remove unused variables.
3884 2001-07-17 Andreas Jaeger <aj@suse.de>
3886 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
3889 * lcm.c (optimize_mode_switching): Avoid warning for unused
3890 variable if !NORMAL_MODE.
3892 * flow.c (try_crossjump_to_edge): Remove unused variable.
3894 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3896 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
3897 atexit declaration in stdlib.h.
3899 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
3901 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
3903 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
3905 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
3906 * except.c (finish_eh_generation): Update call of cleanup_cfg;
3907 do rebuild_jump_labels instead of jump_optimize
3908 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
3909 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
3910 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
3912 * flow.c: Include timevar.h
3913 (find_basic_block): Push/pop timevar;
3914 (cleanup_cfg): Likewise.
3915 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
3916 * Makefile: Add dependencies on timevar.h
3918 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
3919 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
3921 * rtl.h (delete_trivially_dead_insns): Add new parameter.
3922 * toplev.c (rest_of_compilation): Update calls.
3923 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
3924 (delete_trivially_dead_insns): ... here; accept new argument
3925 preserve_basic_blocks; preserve basic blocks if set.
3927 * reg-stack.c (stack_regs_mentioned): Return 0 if
3928 stack_regs_mentioned_data is not initialized.
3929 (reg_to_stack): Make stack_regs_mentioned survive after the
3930 reg-stack is completted; do not call cleanup_cfg.
3931 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
3932 make cleanup_cfg after bb-reorder to output to debug file.
3934 2001-07-16 Richard Henderson <rth@redhat.com>
3936 * regclass.c (init_reg_sets): Use only 32 bits per initializer
3937 from int_reg_class_contents.
3939 2001-07-16 Richard Henderson <rth@redhat.com>
3941 * hard-reg-set.h (regs_invalidated_by_call): Declare.
3942 * regclass.c (regs_invalidated_by_call): Move from cse.c.
3943 (init_reg_sets_1): Move initialization from cse_main.
3944 * cse.c (regs_invalidated_by_call): Move to regclass.c.
3945 (cse_main): Move its initialization also.
3946 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
3947 * flow.c (propagate_one_insn): Likewise.
3948 * gcse.c (compute_hash_table): Likewise.
3949 (compute_kill_rd, compute_store_table): Likewise.
3950 * sched-deps.c (sched_analyze_1): Likewise.
3952 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
3954 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
3957 2001-07-16 Steve Ellcey <sje@cup.hp.com>
3959 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
3960 in if statement so we don't access undefined memory.
3962 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
3964 * gcse.c: Update comment at top.
3965 Update comment on mem handling.
3966 mem_last_set, mem_first_set, mem_set_in_block: gone.
3967 Declaration of reg_set_info: gone.
3968 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
3969 pointless with load_killed_in_block_p (they are *more*
3970 conservative then it, not less, and less accurate).
3971 (oprs_not_set_p): Ditto.
3972 (alloc_gcse_mem): Don't allocate mem_set_in_block
3973 (free_gcse_mem): Don't free it, either.
3974 (record_last_mem_set_info): Update comment in front, remove
3975 mem_*set_* stuff. Note the reason we don't handle stores directly
3977 (compute_hash_table): Update comments to reflect reality. Remove
3978 mem_*set_* references.
3979 (reset_opr_set_tables): Remove mem_*set_* references.
3981 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
3982 (mark_clobber): Ditto (on both parts, we double set here too).
3983 (expr_killed_p): Remove mem_set_in_block test.
3984 (compute_transp): Remove mem_set_in_block test.
3986 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
3987 of edge, and removal of phi alternative to dump file.
3988 (ssa_ccp_substitute_constants): Add note about register now being
3989 constant, and which uses were replaced in what insns to dump file.
3991 2001-07-16 Andreas Jaeger <aj@suse.de>
3993 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
3994 variables of type HOST_WIDEST_INT.
3996 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
3997 (__bb_exit_func): Correct type of count_max to avoid overflow.
3998 (num_digits): Handle long long argument.
4000 * combine.c (gen_lowpart_for_combine): Remove unused variable.
4002 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4004 * output.h (sdb_begin_function_line): Restore as an extern
4006 * sdbout.c (sdb_begin_function_line): Make extern.
4008 2001-07-15 Richard Henderson <rth@redhat.com>
4010 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
4011 * genrecog.c (maybe_both_true_mode): New.
4012 (maybe_both_true_2): Use it.
4013 (write_switch): Don't put Pmode in a switch.
4014 * rtl.c (mode arrays): Don't explicitly size them.
4016 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
4018 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
4019 handling; move unconditional splitting before mode switching.
4021 * i386.md (type): Add fistp type.
4022 (i387, length_attr, scheduling definitions): Handle this type.
4023 (fix_trunc?f?i2): Revamp to use mode switching.
4024 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
4025 * i386.h (fp_cw_mode): New enum
4026 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
4027 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
4029 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4031 * Makefile.in (integrate.o): Add debug.h.
4032 * integrate.c (debug.h): Add.
4033 (output_inline_function): Save, reset, and restore debug_hooks.
4035 2001-07-15 Richard Henderson <rth@redhat.com>
4037 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
4038 instead of COMPARE for the EQUIV expression.
4040 2001-07-15 Richard Henderson <rth@redhat.com>
4042 * flow.c (redirect_edge_and_branch_force): Initialize
4043 global_live_at_start and global_live_at_end.
4044 (allocate_bb_life_data): Export.
4045 * basic-block.h (allocate_bb_life_data): Declare.
4046 * toplev.c (rest_of_compilation): Call it.
4048 2001-07-15 Richard Henderson <rth@redhat.com>
4050 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
4051 (alpha_tablejump_best_label): New.
4052 * config/alpha/alpha-protos.h: Declare them.
4053 * config/alpha/alpha.md: Use braced strings for code blocks.
4054 (tablejump_osf): Break out add with r29.
4055 (tablejump_osf_internal): Remove.
4056 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
4057 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
4059 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
4061 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
4064 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
4066 * i386-protos.h (ix86_split_fp_branch): Update prototype.
4067 (ix86_fp_jump_nontrivial_p): New.
4068 * i386.md (fp_jcc_?): Update call of split_fp_branch;
4069 use ix86_fp_jump_nontrivial_p.
4070 * i386.c (ix86_fp_jump_nontrivial_p): New.
4071 (ix86_split_fp_branch): Accept code instead of rtx.
4072 (ix86_expand_compare): Expand comparison early in case
4073 doing so is resonably cheap.
4075 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
4077 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
4079 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
4080 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
4082 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
4084 * dbxout.c (dbxout_source_line): Make static, update prototype.
4085 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
4086 (dbxout_init, dbxout_finish, dbxout_source_line,
4087 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
4088 * dbxout.h (dbxout_source_line): Delete.
4089 * debug.c (debug_nothing_file, debug_nothing_file_int,
4090 debug_nothing_file_charstar_rtx): New.
4091 (do_nothing_debug_hooks): Update.
4092 (debug_nothing_void, debug_nothing_charstar_rtx,
4093 dwarf2out_end_epilogue): New.
4094 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
4095 * debug.h (struct rtx_def): Declare.
4096 (gcc_debug_hooks): New hooks source_line, end_epilogue
4098 (debug_nothing_void, debug_nothing_charstar_rtx,
4099 dwarf2out_end_epilogue): New.
4100 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
4101 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
4102 (dwarf2_debug_hooks): Update.
4103 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
4104 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
4105 * dwarf2out.h (dwarf2out_source_line): Remove.
4106 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
4107 Make static, update prototype.
4108 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
4109 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
4110 (dwarf_debug_hooks): Update.
4111 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
4112 dwarfout_end_function): Remove.
4113 * final.c (profile_function): Use debug hooks for ending functions
4115 (output_source_line, final_end_function): Update prototype,
4117 (final_start_function, final_scan_insn): Update.
4118 * output.h (sdb_begin_function_line): Remove.
4119 (final_end_function): Update prototype.
4120 * sdbout.c (sdb_begin_function_line): Make static.
4121 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
4122 (sdbout_source_line): New.
4123 (sdbout_end_epilogue, sdbout_end_function): Make static, update
4125 (sdb_debug_hooks): Update.
4126 (sdbout_init, sdbout_source_line,
4127 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
4128 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
4129 * toplev.c (compile_file, rest_of_compilation): Update.
4130 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
4131 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
4132 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
4133 Update for prototype changes.
4134 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
4135 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
4137 2001-07-15 Richard Henderson <rth@redhat.com>
4139 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
4140 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
4141 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
4142 * config/alpha/alpha.c: Likewise.
4143 * config/alpha/alpha.md: Likewise.
4144 * config/alpha/alpha32.h: Likewise.
4145 * config/alpha/vms.h: Likewise.
4148 2001-07-14 Richard Henderson <rth@redhat.com>
4150 * config/alpha/alpha.md: Use define_constants for unspec values.
4151 Substitute throughout.
4153 2001-07-14 Tim Josling <tej@melbpc.org.au>
4155 * tree.def (EXPON_EXPR) remove. Never supported anyway.
4157 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
4159 * pa.md: Remove unused constraints from define_split's.
4161 2001-04-14 Richard Henderson <rth@redhat.com>
4163 * ifcvt.c (find_cond_trap): Test for exit block.
4165 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
4167 Re-install recently reverted patch.
4168 * emit-rtl.c (try_split): Update mark_jump_label call.
4169 * flow.c (find_sub_basic_blocks): Likewise.
4170 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
4172 (mark_all_labels): Kill second parameter.
4173 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
4174 (rebuild_jump_labels, jump_optimize_minimal): Update call
4176 (jump_optimize_1): Kill crossjumping code.
4177 (mark_jump_label): Kill cross_jump parameter.
4178 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
4179 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
4180 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
4182 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
4184 (dump_file_info): Likewise.
4185 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
4186 reorganize passes to do reg-stack first, bb-reorder second.
4187 * invoke.texi (-d letters doc): Remove the jump2 pass.
4189 2001-07-14 Richard Henderson <rth@redhat.com>
4191 * ifcvt.c (find_cond_trap): New.
4192 (find_if_header): Call it.
4193 (merge_if_block): Relax existing jump sanity check.
4194 * jump.c (jump_optimize_1): Remove conditional trap handling.
4196 2001-07-14 Alan Modra <amodra@bigpond.net.au>
4198 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
4200 (insn_refs_are_delayed): Correct comment.
4201 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
4202 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
4203 instead of r31. Make associated insn !TARGET_64BIT, and
4204 provide an additional 64-bit insn that clobbers r2.
4206 (udivsi3): Likewise.
4208 (umodsi3): Likewise.
4210 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
4212 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
4214 * flow.c (redirect_edge_and_branch_force, split_edge,
4215 try_crossjump_to_edge): Use set_block_for_new_insns.
4216 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
4218 2001-07-13 H.J. Lu (hjl@gnu.org)
4220 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
4223 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
4225 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
4227 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
4229 * c-common.c (decl_attributes): Take a pointer to the node to
4230 which attributes are to be attached, and a flags argument.
4231 * c-common.h (enum attribute_flags): New.
4232 (decl_attributes): Update prototype.
4233 * c-decl.c (start_decl, push_parm_decl, finish_struct,
4234 finish_enum, start_function): Update calls to decl_attributes.
4235 * c-parse.in (component_declarator, component_notype_declarator,
4236 label): Update calls to decl_attributes.
4238 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
4240 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
4241 * config/avr/avr.c (legitimate_address_p): Return value changed
4242 from letter to register classes. For better debugging.
4244 2001-07-13 Kazu Hirata <kazu@hxi.com>
4246 * jump.c (reversed_comparison_code_parts): Fix comment typos.
4248 2001-07-13 H.J. Lu (hjl@gnu.org)
4250 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
4252 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
4254 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
4255 correctly for shared configurations.
4256 * config/t-libgcc-pic: New.
4257 * config/{i386,m68k,sparc}/t-openbsd: New.
4258 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
4259 Support -shared. Support debugging libraries with -g.
4260 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
4261 frame information does not emit pointer diffs.
4262 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
4265 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
4267 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
4269 2001-07-13 David Edelsohn <edelsohn@gnu.org>
4271 * combine.c (try_combine): Ensure const_int pow2 is positive.
4273 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
4275 * config.gcc: Add configuration for s/390.
4276 * config/s390/s390.c: New. Subroutines for code generation.
4277 * config/s390/s390.h: New. Definitions for s/390.
4278 * config/s390/s390-protos.h: New. Prototypes.
4279 * config/s390/linux.h: New. Definitions for linux for s/390.
4280 * config/s390/linux64.h: New. Definitions for linux for zSeries.
4281 * config/s390/t-linux: New. Makefile fragment.
4282 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
4283 * config/s390/fixdfdi.h: New. Fix L_fix*di.
4285 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
4287 * emit-rtl.c (try_split): Update mark_jump_label call.
4288 * flow.c (find_sub_basic_blocks): Likewise.
4289 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
4291 (mark_all_labels): Kill second parameter.
4292 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
4293 (rebuild_jump_labels, jump_optimize_minimal): Update call
4295 (jump_optimize_1): Kill crossjumping code.
4296 (mark_jump_label): Kill cross_jump parameter.
4297 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
4298 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
4299 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
4301 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
4303 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
4304 reorganize passes to do reg-stack first, bb-reorder second.
4305 * invoke.texi (-d letters doc): Remove the jump2 pass.
4307 2001-07-12 Steve Ellcey <sje@cup.hp.com>
4309 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
4311 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4313 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
4315 (verify_flow_info): Make diagnostics prettier.
4317 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
4319 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
4321 * flow.c (outgoing_edges_match): Return early if condition reversal
4324 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
4326 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
4327 (mips_move_2words): When splitting a move into two instructions,
4328 prefix the second address operand with '%D'.
4330 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
4332 * Makefile.in (final.o): Depend on debug.h.
4333 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
4334 (dbx_debug_hooks): Add new hooks.
4335 (xcoff_debug_hooks): New.
4336 * debug.c (debug_nothing_file_int_int): New.
4337 (do_nothing_debug_hooks): Update.
4338 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
4339 (debug_nothing_file_int_int): New.
4340 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
4341 static, update prototype.
4342 (dwarf2_debug_hooks): Update.
4343 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
4344 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
4345 static, update prototype.
4346 (dwarf_debug_hooks): Update.
4347 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
4348 * final.c: Include debug.h.
4349 (final_scan_insn): Use debug hooks when beginning and ending blocks.
4350 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
4351 static, update prototype.
4352 (sdb_debug_hooks): Update.
4353 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
4354 * toplev.c: Distinguish between xcoff and dbx.
4356 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
4357 Call all debug hooks, not just dwarf ones.
4359 2001-07-11 Timothy Wall <twall@redhat.com>
4361 * config.gcc: Add configuration for AIX5/IA64.
4362 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
4363 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
4364 support prefix/suffix code.
4365 * config/ia64/t-aix: New. Makefile fragment.
4366 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
4368 2001-07-11 Kazu Hirata <kazu@hxi.com>
4370 * recog.c (validate_change): Fix a comment typo.
4372 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
4374 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
4375 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
4377 * dbxout.c (dbx_debug_hooks): Add new hooks.
4378 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
4380 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
4382 * dbxout.h (dbxout_start_new_source_file,
4383 dbxout_resume_previous_source_file): Delete.
4384 * debug.c (do_nothing_debug_hooks): Add new hooks.
4385 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
4386 (debug_nothing_int_charstar, debug_nothing_int): New.
4387 * debug.h (gcc_debug_hooks): New hooks define, undef,
4388 start_source_file and end_source_file.
4389 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
4390 (debug_nothing_int_charstar, debug_nothing_int): New.
4391 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
4392 the conditionally compiled section.
4393 (dwarf2out_start_source_file, dwarf2out_end_source_file,
4394 dwarf2out_define, dwarf2out_undef): Make static.
4395 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
4396 dwarf2out_define, dwarf2out_undef): Remove.
4397 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
4398 (dwarfout_start_source_file, dwarfout_end_source_file,
4399 dwarfout_define, dwarfout_undef): Make static.
4400 (dwarfout_start_source_file_check,
4401 dwarfout_end_source_file_check): New.
4402 (dwarfout_define, dwarfout_finish): Update.
4403 * dwarfout.h (dwarfout_start_new_source_file,
4404 dwarfout_resume_previous_source_file, dwarfout_define,
4405 dwarfout_undef): Remove.
4406 * sdbout.c (sdb_debug_hooks): Add new hooks.
4407 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
4409 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
4410 make static, take an arg.
4411 * sdbout.h (sdbout_start_new_source_file,
4412 sdbout_resume_previous_source_file): Delete.
4413 * toplev.c (debug_start_source_file, debug_end_source_file,
4414 debug_define, debug_undef): Delete.
4415 * toplev.h (debug_start_source_file, debug_end_source_file,
4416 debug_define, debug_undef): Delete.
4418 * java/jcf-parse.c: Include debug.h.
4419 (parse_class_file): Update to use debug hooks directly.
4420 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
4422 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4424 * alias.c (set_mem_alias_set): New function.
4425 * rtl.h (set_mem_alias_set): Declare it.
4426 * builtins.c (expand_builtin_return_addr): Call it instead of
4427 using MEM_ALIAS_SET accessor.
4428 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
4429 (get_memory_rtx, expand_builtin_va_arg): Likewise.
4430 (expand_builtin_va_copy):Likewise.
4431 * caller-save.c (setup_save_areas): Likewise.
4432 * calls.c (compute_argument_addresses): Likewise.
4433 * explow.c (set_mem_attributes): Likewise.
4434 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
4435 (expand_assignment, store_constructor_field, store_field): Likewise.
4436 (expand_expr_unaligned): Likewise.
4437 * function.c (assign_stack_temp_for_type): Likewise.
4438 (put_reg_into_stack, gen_mem_addressof): Likewise.
4439 * ifcvt.c (noce_try_cmove_arith): Likewise.
4440 * reload1.c (reload, alter_reg): Likewise.
4441 * config/alpha/alpha.c (get_aligned_mem): Likewise.
4442 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
4443 (alpha_expand_unaligned_store): Likewise
4444 (alpha_expand_unaligned_load_words): Likewise.
4445 (alpha_expand_unaligned_store_words): Likewise.
4446 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
4447 (alpha_expand_epilogue): Likewise.
4448 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4449 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
4450 * config/i386/i386.c (legitimize_pic_address): Likewise.
4451 * config/i960/i960.c (setup_incoming_varargs): Likewise.
4452 * config/ia64/ia64.c (spill_restore_mem): Likewise.
4453 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4454 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
4455 * config/mips/mips.c (mips_va_arg): Likewise.
4456 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4457 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4458 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4459 (setup_incoming_varargs, rs6000_va_arg): Likewise.
4460 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
4461 (rs6000_emit_epilogue): Likewise.
4462 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
4463 * config/sparc/sparc.c (sparc_va_arg): Likewise.
4464 * config/v850/v850.c (v850_va_arg): Likewise.
4466 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
4468 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
4469 when fallthru edge is present.
4470 (mege_blocks): Handle case where creation of jump insn
4473 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
4474 CLEANUP_POST_REGSTACK): New constants.
4475 * except.c (finish_eh_generation): Update call of cleanup_cfg,
4476 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
4477 * output.h (cleanup_cfg): Update prototype.
4478 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
4479 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
4480 cleanup_cfg call; kill missleading comment.
4481 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
4482 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
4483 parameter; control optimizations performed using it.
4484 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4485 try_crossjump_bb): New functions.
4487 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4489 * pa.c (pa_output_function_prologue): Delete prototype. Make function
4491 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
4492 pa_output_function_prologue.
4493 * pa-protos.h (pa_output_function_prologue): New prototype.
4495 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4497 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
4498 and low to get correct sign extension in low+high test.
4500 2001-07-11 Janis Johnson <janis@us.ibm.com>
4502 * gcov.c (arcdata): Use gcov_type to fix branch percentage
4503 for large hit count.
4505 * profile.c (branch_prob): Fix .bbg info for computed gotos
4508 2001-07-11 Mark Mitchell <mark@codesourcery.com>
4510 * stmt.c (parse_output_constraint): New function, split out
4512 (expand_asm_operands): ... here. Use parse_output_constraint.
4513 * tree.h (parse_output_constraint): Declare it.
4515 2001-07-11 Richard Henderson <rth@redhat.com>
4517 * bitmap.c: Comment some functions; fiddle whitespace.
4518 (bitmap_free): Don't export.
4519 (bitmap_element_allocate): Use memset.
4520 * bitmap.h (bitmap_free): Don't declare.
4522 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
4524 * gcse.c, lcm.c, sched-deps.c:
4525 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
4527 * flow.c (flow_loops_find): Free dom if we found no loops, since
4528 we aren't going to save it.
4530 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
4533 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
4535 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
4537 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4539 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
4540 #ifndef DWARF2_DEBUGGING_INFO.
4542 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
4544 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
4546 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
4548 * config/mips/mips.c (gen_int_relational): Tell the caller not to
4549 reverse a branch if a NE comparison is implemented with GTU.
4551 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
4552 H.J. Lu <hjl@gnu.org>
4554 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
4556 (call_internal2): Likewise.
4557 (call_value_internal1): Likewise.
4558 (call_value_internal2): Likewise.
4559 (call_value_multiple_internal1): Likewise.
4560 (call_value_multiple_internal2): Likewise.
4562 2001-07-10 Kazu Hirata <kazu@hxi.com>
4564 * calls.c (emit_library_call_value_1): Fix a comment typo.
4565 * dwarf2out.c (mem_loc_descriptor): Likewise.
4566 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
4568 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
4570 * simplify-rtx.c (simplify_subreg): Fix typo in comment
4572 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4574 * recog.c (offsettable_address_p): Handle LO_SUM case.
4575 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
4576 instead of plus_constant.
4578 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4580 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
4581 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
4583 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4585 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
4586 adjust_address_nv instead of plus_constant.
4588 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
4590 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
4591 dwarf2out.o): Depend on debug.h, wrap long lines.
4592 * dbxout.c: Include debug.h.
4593 (dbx_debug_hooks): New.
4594 (dbxout_init): Make static, take just 2 args.
4595 (dbxout_finish): Make static.
4596 * dbxout.h (dbxout_init, dbxout_finish): Delete.
4597 * debug.c: New file.
4598 * debug.h: New file.
4599 * dwarf2out.c: Include debug.h.
4600 (dwarf2_debug_hooks): New.
4601 (dwarf2out_init): Make static.
4602 (dwarf2out_finish): Make static, take 2 args.
4603 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
4604 * dwarfout.c: Include debug.h.
4605 (dwarf_debug_hooks): New.
4606 (dwarfout_init): Make static.
4607 (dwarfout_finish): Make static, take 2 args.
4608 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
4609 * sdbout.c: Include debug.h.
4610 (sdb_debug_hooks): New.
4611 (sdbout_init): Make static, take 2 args.
4612 * sdbout.h (sdbout_init): Delete.
4613 * toplev.c: Include debug.h.
4615 (compile_file): Set deubg_hooks based on command line options.
4616 Use the hooks unconditionally rather than conditional compilation.
4618 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
4620 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
4621 first_insn_after_basic_block_note instead.
4623 * df.c (df_bb_refs_unlink): #if 0 out for now.
4625 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
4627 * ssa.h: Add prototype for ssa_const_prop
4628 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
4629 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
4630 (ssa_fast_dce): Remove unused variable
4632 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4634 * diagnostic.c (finish_diagnostic): Rename to
4635 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
4638 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
4640 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
4643 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
4644 (dump_file): Only pad the demangled name with spaces if the
4645 mangled name was padded with spaces.
4647 2001-07-10 Bernd Schmidt <bernds@redhat.com>
4649 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
4652 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4654 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
4655 extraction if no direct load if either EXPAND_CONST_ADDRESS or
4658 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
4659 whether can put offset inside LO_SUM to check mode alignment, not size.
4661 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4663 * doc/tm.texi (Misc): Fix thinko.
4665 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
4667 * regmove.c (replace_in_call_usage): Fix warnings.
4668 * sched-deps.c (add_dependence): Fix warnings.
4669 * simplify-rtx.c (simplify_subreg): Likewise.
4670 Return NULL_RTX instead of NULL.
4672 * reg-stack.c (emit_swap_insn): Eliminate warnings.
4673 (subst_asm_stack_regs): Likewise.
4675 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
4678 * dwarf2out.c (output_call_frame_info): Declare i as int.
4679 (build_abbrev_table): Declare n_alloc as int.
4680 (dwarf2out_finish): Initialize die.
4681 * except.c: Declare sjlj_funcdef_number as unsigned.
4682 (connect_post_landing_pads): Declare j as unsigned.
4683 (convert_to_eh_region_ranges): Initialize call_site.
4684 (output_function_exception_table): Initialize tt_format_size.
4685 * expr.c (move_by_pieces_1): Initialize to1.
4686 (store_constructor): Initialize minelt and maxelt.
4687 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
4688 * function.c (instantiate_decls): Avoid signed/unsigned warning.
4690 * c-decl.c (combine_parm_decls): Unused, remove.
4691 * c-tree.h: Remove prototype for combine_parm_decls.
4693 * reload.c (push_reload): Fix warning.
4694 (regno_clobbered_p): Likewise.
4695 * reload1.c (replace_pseudos_in_call_usage): Likewise.
4696 (reload_combine): Likewise.
4698 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
4699 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
4701 * bitmap.c (bitmap_operation): Change user.
4702 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
4704 2001-07-10 Eric Christopher <echristo@redhat.com>
4706 * config/mips/mips.c (override_options): Fix typo.
4708 2001-07-09 Stan Shebs <shebs@apple.com>
4710 * target.h (struct gcc_target): New fields init_builtins and
4712 * target-def.h (TARGET_INIT_BUILTINS): New macro.
4713 (TARGET_EXPAND_BUILTIN): New macro.
4714 (TARGET_INITIALIZER): Add them.
4715 * builtins.c: Include target.h.
4716 (expand_builtin): Use targetm.expand_builtin.
4717 (default_init_builtins): New function.
4718 (default_expand_builtin): New function.
4719 * expr.h (default_init_builtins): Declare.
4720 (default_expand_builtin): Declare.
4721 * c-common.c (c_common_nodes_and_builtins): Use
4722 targetm.init_builtins.
4723 * defaults.h (MD_INIT_BUILTINS): Remove.
4724 * Makefile.in (builtins.o): Depend on target.h.
4726 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
4727 (TARGET_EXPAND_BUILTIN): Define.
4728 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
4729 (MD_EXPAND_BUILTIN): Remove.
4731 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
4732 (TARGET_EXPAND_BUILTIN): Define.
4733 (c4x_init_builtins): Make endlink arg a local.
4734 (c4x_print_operand): Fix typos in adjust_address usages.
4735 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
4736 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
4737 (MD_EXPAND_BUILTIN): Remove.
4739 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
4740 (TARGET_EXPAND_BUILTIN): Define.
4741 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
4742 (ix86_init_builtins): Call new function only if TARGET_MMX.
4743 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
4744 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
4745 (MD_EXPAND_BUILTIN): Remove.
4747 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
4748 (TARGET_EXPAND_BUILTIN): Define.
4749 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
4750 (MD_EXPAND_BUILTIN): Remove.
4752 * doc/tm.texi: Document these changes.
4754 2001-07-09 Diego Novillo <dnovillo@redhat.com>
4756 * basic-block.h (tree_node): Forward declare if needed.
4757 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
4758 (BLOCK_HEAD_TREE): Define.
4759 (BLOCK_END_TREE): Define.
4760 (struct loops): Rename field 'tree' to 'tree_root'.
4761 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
4763 (flow_loops_tree_build): Rename reference to field 'tree' to
4765 (flow_loops_level_compute): Ditto.
4766 * predict.c (estimate_bb_frequencies): Ditto.
4767 * tree.h (struct tree_common): Add field 'aux'.
4769 2001-07-09 Stan Shebs <shebs@apple.com>
4771 * config/darwin.c (darwin_encode_section_info): Don't mark any
4772 DECL_EXTERNAL node as defined.
4774 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4776 * pa.c (pa_init_machine_status, pa_mark_machine_status,
4777 pa_free_machine_status, hppa_init_pic_save): Delete.
4778 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
4779 (hppa_profile_hook): Use hppa_pic_save_rtx.
4780 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
4781 hppa_init_pic_save): Delete.
4782 (hppa_pic_save_rtx): Declare.
4783 * pa.md (call, call_value, sibcall, sibcall_value,
4784 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
4786 2001-07-09 Kazu Hirata <kazu@hxi.com>
4788 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
4789 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
4791 2001-07-09 Andreas Jaeger <aj@suse.de>
4793 * output.h: Add declaration of final_forward_branch_p.
4795 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
4797 * varray.c: Include errors.h for internal_error and trim_filename
4800 * Makefile.in (varray.o): Add errors.h.
4802 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
4804 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
4805 * optabs.c (have_add2_insn): Check whether the add insn chosen
4806 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
4807 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
4809 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
4811 * Makefile.in (OBJS): Add ssa-ccp.o
4812 (ssa-ccp.o): Add dependencies.
4813 * toplev.c (DFI_ssa_ccp): New dump file enum.
4814 (dump_file): Add entry for dumping after SSA CCP.
4815 (flag_ssa_ccp): New flag variable.
4816 (f_options): Add -fssa-ccp.
4817 (rest_of_compilation): Run SSA CCP if requested.
4818 * timevar.def (TV_SSA_CCP): New timevar.
4819 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
4820 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
4821 Fix minor typo in SSA DCE documentation.
4822 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
4823 Add documentation for new dump option. Renumber dump files
4826 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4828 * emit-rtl.c (gen_highpart_mode): New.
4829 * rtl.h (gen_highpart_mode): Declare.
4830 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
4831 operand can be VOIDmode constant.
4833 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
4835 * flow.c (redirect_edge_and_branch_force): New.
4836 (can_fallthru): Ensure that basic blocks are succeeding.
4837 (try_optimize_cfg): Do not delete basic block if it is the last one.
4839 * flow.c (try_redirect_by_replacing_jump): Do not remove
4840 jumps with side effects, unlink chain on fallthru edge;
4841 set block for new jump instruction; avoid basic block to
4842 over by line number note.
4844 * flow.c (try_simplify_condjump): Verify that the condjump
4845 is not always falling trought.
4848 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
4850 * flow.c (forwarder_block_p): Fix for fallthru blocks.
4851 (try_redirect_by_replacing_jump): Update properly the count
4852 and frequency information.
4854 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4856 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
4857 address that is a LO_SUM specially.
4858 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
4860 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
4862 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
4863 (operand_subword): Use them.
4864 (change_address_1): Renamed from change_address; new arg VALIDATE.
4865 * expr.h: Reflect above changes; change_address now macro.
4866 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
4868 * cselib.c (add_mem_for_addr): Likewise.
4869 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
4870 * regmove.c (try_apply_stack_adjustment): Likewise.
4871 * reload.c (push_reload, make_memloc): Likewise.
4872 * reload1.c (eliminate_regs): Likewise.
4873 * simplify-rtx.c (simplify_replace_rtx): Likewise.
4874 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
4876 * combine.c (make_extraction, simplify_shift_const): Likewise.
4877 (gen_lowpart_for_combine): Likewise.
4878 * cse.c (gen_lowpart_if_possible): Likewise.
4879 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
4880 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
4881 * optabs.c (gen_move_insn): Likewise.
4882 * reload1.c (alter_reg): Likewise.
4883 * simplify-rtx.c (simplify_subreg): Likewise.
4884 * stmt.c (expand_anon_union_decl): Likewise.
4885 * recog.c (validate_replace_rtx_1): Likewise.
4887 * Makefile.in (recog.o): Add $(EXPR_H).
4888 * explow.c (stabilize): Call replace_equiv_address.
4889 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
4890 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
4892 2001-07-03 Andrew Haley <aph@redhat.com>
4894 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
4895 the mode of the memory location.
4897 2001-07-09 Bo Thorsen <bo@suse.co.uk>
4899 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
4901 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
4903 * final.c (output_addr_const): Use target opening and
4904 closing parentheses.
4905 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
4906 defaults, add to TARGET_ASM_OUT.
4907 * target.h (struct gcc_target): Add open_paren and close_paren.
4908 * doc/md.texi: Update.
4909 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
4910 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
4911 TARGET_ASM_CLOSE_PAREN.
4912 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4914 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4916 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4917 * config/a29k/a29k.h: Similarly.
4918 * config/alpha/alpha.h: Similarly.
4919 * config/arc/arc.h: Similarly.
4920 * config/arm/aof.h: Similarly.
4921 * config/arm/aout.h: Similarly.
4922 * config/avr/avr.h: Similarly.
4923 * config/c4x/c4x.h: Similarly.
4924 * config/clipper/clipper.h: Similarly.
4925 * config/convex/convex.h: Similarly.
4926 * config/d30v/d30v.h: Similarly.
4927 * config/dsp16xx/dsp16xx.h: Similarly.
4928 * config/elxsi/elxsi.h: Similarly.
4929 * config/fr30/fr30.h: Similarly.
4930 * config/h8300/h8300.h: Similarly.
4931 * config/i370/i370.h: Similarly.
4932 * config/i386/i386.h: Similarly.
4933 * config/i860/i860.h: Similarly.
4934 * config/i960/i960.h: Similarly.
4935 * config/ia64/ia64.h: Similarly.
4936 * config/m32r/m32r.h: Similarly.
4937 * config/m68hc11/m68hc11.h: Similarly.
4938 * config/m68k/m68k.h: Similarly.
4939 * config/m88k/m88k.h: Similarly.
4940 * config/mcore/mcore.h: Similarly.
4941 * config/mips/mips.h: Similarly.
4942 * config/mn10200/mn10200.h: Similarly.
4943 * config/mn10300/mn10300.h: Similarly.
4944 * config/ns32k/ns32k.h: Similarly.
4945 * config/pa/pa.h: Similarly.
4946 * config/pdp11/pdp11.h: Similarly.
4947 * config/pj/pj.h: Similarly.
4948 * config/romp/romp.h: Similarly.
4949 * config/rs6000/rs6000.h: Similarly.
4950 * config/sh/sh.h: Similarly.
4951 * config/sparc/sparc.h: Similarly.
4952 * config/v850/v850.h: Similarly.
4953 * config/vax/vax.h: Similarly.
4954 * config/we32k/we32k.h: Similarly.
4956 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
4958 * doc/c-tree.texi: Document representation of attributes.
4960 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
4962 * doc/tm.texi: Update some places for the rename of target to
4965 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
4967 * target.h (struct gcc_target): Add insert_attributes.
4968 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
4969 (TARGET_INITIALIZER): Update.
4970 * tree.c, tree.h (default_insert_attributes): New function.
4971 Update comments on other default functions to refer to targetm,
4973 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
4974 TARGET_INSERT_ATTRIBUTES.
4975 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
4976 * c-common.c (decl_attributes): Use targetm.insert_attributes.
4977 Don't use PRAGMA_INSERT_ATTRIBUTES.
4978 * Makefile.in (c-common.o): Depend on $(TARGET_H).
4979 * c-decl.c (start_decl, start_function): Don't call
4980 SET_DEFAULT_DECL_ATTRIBUTES.
4981 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4982 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
4984 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
4985 (c4x_check_attribute): Avoid modifying attribute list itself.
4986 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
4988 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
4989 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
4991 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
4992 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
4994 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4995 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
4997 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
4998 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
4999 Adjust parameters. Make static.
5001 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
5003 * c-common.c (decl_attributes): Only take a single attributes
5005 * c-common.h (decl_attributes): Update prototype.
5006 * c-decl.c (start_decl, start_function): Only take a single
5007 attributes parameter. Update calls to decl_attributes.
5008 (finish_struct, finish_enum): Update calls to decl_attributes.
5009 (push_parm_decl): Expect unified list of attributes. Update call
5011 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
5012 notype_nested_function, component_declarator,
5013 component_notype_declarator, label): Update calls to
5015 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
5016 lists that are passed to push_parm_decl.
5017 * c-tree.h (start_function, start_decl): Update prototypes.
5018 * config/sh/sh-protos.h, config/sh/sh.c
5019 (sh_pragma_insert_attributes): Only take a single attributes
5021 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
5022 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
5023 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
5024 build_module_descriptor, generate_static_references,
5025 generate_strings, build_selector_translation_table,
5026 generate_descriptor_table, generate_protocols,
5027 generate_ivars_list, generate_dispatch_table,
5028 generate_protocol_list, generate_category,
5029 generate_shared_structures, really_start_method, add_objc_decls,
5030 generate_classref_translation_entry): Update calls to start_decl
5032 (build_tmp_function_decl, start_method_def): Unify attribute lists
5033 that are passed to push_parm_decl.
5035 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
5037 * final.c (no_asm_to_stream): New.
5038 (final_scan_insn): Use target structures for prologue ends
5039 and epilogue starts.
5040 * output.h (no_asm_to_stream): New.
5041 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
5042 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
5043 (TARGET_ASM_OUT): Update.
5044 * target.h (struct gcc_target): New members function_end_prologue
5045 and function_begin_epilogue.
5046 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
5047 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
5048 * config/alpha/alpha.c (output_end_prologue): Rename to
5049 alpha_output_function_end_prologue. Use in target struct
5051 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
5052 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
5053 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
5054 ia64_output_function_end_prologue. Use in target struct
5056 (ia64_function_prologue, ia64_funciton_epilogue): Rename
5057 mistyped prototypes.
5058 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
5059 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
5061 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
5062 an use in target struct, make static.
5063 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
5066 2001-07-08 Richard Henderson <rth@redhat.com>
5068 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
5070 2001-07-08 Richard Henderson <rth@redhat.com>
5072 * config/i386/i386.md: Remove constraints strings from define_split
5073 and define_peephole2 patterns.
5074 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
5075 (eh_return): Use them.
5077 2001-07-08 Richard Henderson <rth@redhat.com>
5079 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
5080 Document MD_FALLBACK_FRAME_STATE_FOR.
5082 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5084 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
5085 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
5087 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
5089 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
5091 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
5092 of the label inside NAME as opposed to just the end of NAME.
5094 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
5096 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
5097 * config/alpha/alpha.c (alpha_init_machine_status,
5098 alpha_mark_machine_status, alpha_free_machine_status): Delete.
5099 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
5100 (vms_valid_decl_attribute_p): Make static, conditionally compile.
5101 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
5103 2001-07-06 Stan Shebs <shebs@apple.com>
5105 * target.h (targetm): Rename global from "target", so as not to
5106 conflict with local variables.
5108 * c-typeck.c: Ditto.
5112 * cp/decl2.c: Ditto.
5113 * cp/typeck.c: Ditto.
5114 * 1750a/1750a.c: Ditto.
5115 * a29k/a29k.c: Ditto.
5119 * clipper/clipper.c: Ditto.
5120 * convex/convex.c: Ditto.
5121 * d30v/d30v.c: Ditto.
5122 * dsp16xx/dsp16xx.c: Ditto.
5123 * elxsi/elxsi.c: Ditto.
5124 * fr30/fr30.c: Ditto.
5125 * h8300/h8300.c: Ditto.
5126 * i370/i370.c: Ditto.
5127 * i386/i386.c: Ditto.
5128 * i860/i860.c: Ditto.
5129 * i960/i960.c: Ditto.
5130 * ia64/ia64.c: Ditto.
5131 * m32r/m32r.c: Ditto.
5132 * m68hc11/m68hc11.c: Ditto.
5133 * m68k/m68k.c: Ditto.
5134 * m88k/m88k.c: Ditto.
5135 * mips/mips.c: Ditto.
5136 * ns32k/ns32k.c: Ditto.
5138 * pdp11/pdp11.c: Ditto.
5139 * romp/romp.c: Ditto.
5140 * rs6000/rs6000.c: Ditto.
5142 * sparc/sparc.c: Ditto.
5144 * we32k/we32k.c: Ditto.
5145 * doc/tm.texi: Update the manual to match.
5147 2001-07-06 Richard Henderson <rth@redhat.com>
5149 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
5150 DWARF2_UNWIND_INFO not just whether it is defined.
5152 2001-07-06 Diego Novillo <dnovillo@redhat.com>
5154 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
5155 call to simplify_binary_operation returns a new pattern.
5157 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5159 * glimits.h (__SHRT_MAX__): New.
5160 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
5161 (SHRT_MAX): Define in terms of __SHRT_MAX__.
5163 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
5165 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
5168 2001-07-06 Richard Henderson <rth@redhat.com>
5170 * bitmap.c (bitmap_release_memory): Move adjacent to the
5171 allocation functions.
5172 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
5173 the implementation. Binary search for the set bit.
5174 (bitmap_union_of_diff): Allocate the temporary on the stack
5175 instead of using xmalloc.
5177 2001-07-06 Richard Henderson <rth@redhat.com>
5179 * genrecog.c (validate_pattern): Warn for constraints in
5180 define_{expand,split,peephole2}. Remove strict_low_part
5181 before looking up match_dup.
5183 2001-07-06 DJ Delorie <dj@redhat.com>
5185 * doc/gcc.texi (Makefile): Rename to be a more general purpose
5186 chapter about various build hints and history. Add section
5187 talking about the various types of native and cross builds.
5189 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
5191 * Makefile.in (final.o): Depend on target.h.
5192 * final.c: Include target.h.
5193 (default_function_pro_epilogue): New.
5194 (final_start_function): Use target structure for function prologues.
5195 (final_end_function): Use target structure for function epilogues.
5196 * fold-const.c (real_hex_to_f): Constify s and p.
5197 * output.h (default_function_pro_epilogue): New.
5198 * real.h (real_hex_to_f): Update prototype.
5199 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
5200 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
5201 (TARGET_INITIALIZER): Update.
5202 * target.h (gcc_target): Add struct asm_out.
5203 * doc/tm.texi: Update.
5206 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
5207 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
5208 in cpu/cpu.c, or rename old functions consistently. Take
5209 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
5210 redundant macros and prototypes. Make new functions static.
5212 * 1750a/1750a.c: Similarly.
5213 * 1750a/1750a.h: Similarly.
5214 * a29k/a29k-protos.h: Similarly.
5215 * a29k/a29k.c: Similarly.
5216 * a29k/a29k.h: Similarly.
5217 * arc/arc-protos.h: Similarly.
5218 * arc/arc.c: Similarly.
5219 * arc/arc.h: Similarly.
5220 * arm/arm-protos.h: Similarly.
5221 * arm/arm.c: Similarly.
5222 * arm/arm.h: Similarly.
5223 * avr/avr-protos.h: Similarly.
5224 * avr/avr.c: Similarly.
5225 * avr/avr.h: Similarly.
5226 * clipper/clipper-protos.h: Similarly.
5227 * clipper/clipper.c: Similarly.
5228 * clipper/clipper.h: Similarly.
5229 * convex/convex.c: Similarly.
5230 * convex/convex.h: Similarly.
5231 * d30v/d30v-protos.h: Similarly.
5232 * d30v/d30v.c: Similarly.
5233 * d30v/d30v.h: Similarly.
5234 * d30v/d30v.md: Similarly.
5235 * dsp16xx/dsp16xx-protos.h: Similarly.
5236 * dsp16xx/dsp16xx.c: Similarly.
5237 * dsp16xx/dsp16xx.h: Similarly.
5238 * elxsi/elxsi.c: Similarly.
5239 * elxsi/elxsi.h: Similarly.
5240 * fr30/fr30.c: Similarly.
5241 * fr30/fr30.md: Similarly.
5242 * h8300/h8300-protos.h: Similarly.
5243 * h8300/h8300.c: Similarly.
5244 * h8300/h8300.h: Similarly.
5245 * i370/i370-protos.h: Similarly.
5246 * i370/i370.c: Similarly.
5247 * i370/i370.h: Similarly.
5248 * i386/i386.c: Similarly.
5249 * i386/osf1elf.h: Similarly.
5250 * i386/osfrose.h: Similarly.
5251 * i860/i860-protos.h: Similarly.
5252 * i860/i860.c: Similarly.
5253 * i860/i860.h: Similarly.
5254 * i960/i960-protos.h: Similarly.
5255 * i960/i960.c: Similarly.
5256 * i960/i960.h: Similarly.
5257 * ia64/ia64-protos.h: Similarly.
5258 * ia64/ia64.c: Similarly.
5259 * ia64/ia64.h: Similarly.
5260 * m32r/m32r-protos.h: Similarly.
5261 * m32r/m32r.c: Similarly.
5262 * m32r/m32r.h: Similarly.
5263 * m68hc11/m68hc11-protos.h: Similarly.
5264 * m68hc11/m68hc11.c: Similarly.
5265 * m68hc11/m68hc11.h: Similarly.
5266 * m68k/crds.h: Similarly.
5267 * m68k/dpx2.h: Similarly.
5268 * m68k/m68k-protos.h: Similarly.
5269 * m68k/m68k.c: Similarly.
5270 * m68k/m68k.h: Similarly.
5271 * m68k/news.h: Similarly.
5272 * m88k/m88k-protos.h: Similarly.
5273 * m88k/m88k.c: Similarly.
5274 * m88k/m88k.h: Similarly.
5275 * mips/mips-protos.h: Similarly.
5276 * mips/mips.c: Similarly.
5277 * mips/mips.h: Similarly.
5278 * ns32k/merlin.h: Similarly.
5279 * ns32k/ns32k.c: Similarly.
5280 * ns32k/ns32k.h: Similarly.
5281 * ns32k/tek6000.h: Similarly.
5282 * pa/pa-protos.h: Similarly.
5283 * pa/pa.c: Similarly.
5284 * pa/pa.h: Similarly.
5285 * pdp11/2bsd.h: Similarly.
5286 * pdp11/pdp11-protos.h: Similarly.
5287 * pdp11/pdp11.c: Similarly.
5288 * pdp11/pdp11.h: Similarly.
5289 * romp/romp-protos.h: Similarly.
5290 * romp/romp.c: Similarly.
5291 * romp/romp.h: Similarly.
5292 * rs6000/rs6000-protos.h: Similarly.
5293 * rs6000/rs6000.c: Similarly.
5294 * rs6000/rs6000.h: Similarly.
5295 * rs6000/sysv4.h: Similarly.
5296 * sh/sh-protos.h: Similarly.
5297 * sh/sh.c: Similarly.
5298 * sh/sh.h: Similarly.
5299 * sparc/sparc-protos.h: Similarly.
5300 * sparc/sparc.c: Similarly.
5301 * sparc/sparc.h: Similarly.
5302 * vax/vax.c: Similarly.
5303 * vax/vax.h: Similarly.
5304 * vax/vms.h: Similarly.
5305 * we32k/we32k.c: Similarly.
5306 * we32k/we32k.h: Similarly.
5308 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
5310 * basic-block.h (first_insn_after_basic_block_note): Declare.
5311 * flow.c (first_insn_after_basic_block_note): Define. Moved
5313 * ssa.c (first_insn_after_basic_block_note): Remove.
5314 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
5316 (ssa_eliminate_dead_code): Properly update the CFG and PHI
5317 nodes when we find a dead conditional branch. Insert BARRIERs
5318 after any blocks with no successors, but which do not have
5321 2001-07-06 Zack Weinberg <zackw@stanford.edu>
5323 * varray.c (varray_check_failed): Use internal_error.
5325 2001-07-05 Andrew Haley <aph@redhat.com>
5327 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
5328 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
5329 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
5331 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
5333 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
5334 reference if the target constant is also a SYMBOL_REF.
5336 2001-07-05 Eric Christopher <echristo@redhat.com>
5338 * config/mips/mips.h (MASK_MIPS3900): Remove.
5339 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
5340 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
5341 (TARGET_MIPS3900): Change to use mips_arch.
5342 (TARGET_MIPS4000): New.
5343 (TARGET_MIPS4100): New.
5344 (TARGET_MIPS4300): New.
5345 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
5346 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
5348 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
5349 (ISA_HAS_BRANCHLIKELY): To here.
5350 (CC1_CPU_SPEC): New.
5351 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
5352 (mips_arch_string): Declare.
5353 (mips_arch): Declare.
5354 (TARGET_OPTIONS): Add -march and -mtune.
5356 * config/mips/mips.c (mips_arch_string): New.
5358 (override_options): Handle -march for codegen and -mtune
5359 for scheduling. Use mips_arch. Move tx39 target default here.
5360 (mips_parse_cpu): Move error message to override_options.
5362 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
5364 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
5366 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
5367 (MIPS Options): Ditto. Change mcpu entry to historical text.
5369 2001-07-05 H.J. Lu (hjl@gnu.org)
5371 * config/mips/mips.c (mips_parse_cpu): New function to parse
5374 2001-07-05 Jim Wilson <wilson@redhat.com>
5376 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
5377 * config/ia64/t-ia64: Likewise.
5378 (LIB1ASMFUNCS): Update comment.
5380 2001-07-05 David Edelsohn <edelsohn@gnu.org>
5382 * doc/install.texi (Install GCC: Binaries): Fix typo.
5384 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5386 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
5387 reference using the stack pointer, adjust it since we push Y
5389 ("*ashrsi3"): Likewise.
5390 ("*lshrsi3"): Likewise.
5392 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5394 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
5395 when -fomit-frame-pointer is used.
5397 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
5399 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
5400 (try_redirect_by_replacing_jump): Reverse updating properly the
5401 count and frequency information. Reverse removing cc0 setter.
5402 (forwarder_block_p): Reverse fixing for fallthru blocks.
5404 2001-07-05 DJ Delorie <dj@redhat.com>
5406 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
5407 (translate_options): If the above is defined, use it to map
5408 given options to new options.
5409 * doc/tm.texi: Document it.
5411 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
5412 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5414 * doc/invoke.texi (Optimize Options): Document that -fgcse may
5415 cause programs using computed gotos to run more slowly.
5417 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5419 * doc/install.texi (Specific): Markup, spelling and typo fixes.
5421 Consistently require binutils 2.11.2, not prereleases.
5422 (Specific, decstation-*): Canonicalize as mips-dec-*.
5423 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
5425 (Specific, m68k-altos): Removed reference to README.altos, deleted.
5426 (Specific, mips-*): Reword MIPS C compiler requirements.
5427 (Specific, powerpc*-*-*): New, mention --with-cpu once.
5428 (Specific, sunv5): Removed, obsolete.
5430 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
5432 * dwarf2out.c (output_loc_list): Use an all ones mask for
5433 .text asm output and don't rely on long long
5434 literals. Reformat some long lines.
5436 2001-07-05 Andreas Jaeger <aj@suse.de>
5438 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
5441 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
5443 * dwarf2out.c (dwarf2out_define): Update comment.
5444 (dwarf2out_undef): Ditto.
5445 (dwarf2out_start_source_file): Ditto.
5446 (dwarf2out_end_source_file): Ditto.
5447 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
5448 since we never call the start/end debug hook for the primary file.
5450 2001-07-04 Kazu Hirata <kazu@hxi.com>
5452 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
5455 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
5457 * cppinit.c (remove_dup_dirs): Inform if a system include
5458 directory is being reordered.
5459 * doc/invoke.texi (Directory Options): GCC warns if you hide a
5461 * doc/cpp.texi (Search Paths): Likewise.
5462 * doc/gcc.texi (Interoperation): Remove information about
5465 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
5467 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
5468 (VARRAY_TOP_CHAR_PTR): Likewise.
5470 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5472 * gcc.c (process_command): Don't assign elements of a const char*.
5474 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5476 * emit-rtl.c (change_address): Don't abort if invalid address while
5477 reload is in progress.
5479 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
5481 * c-lex.c (cb_file_change): Pass line number to
5482 debug_start_source_file.
5483 (cb_undefine): Pass correct line number to debug_undef.
5485 * toplev.c (debug_start_source_file): Add line number to
5486 parameters. Pass it along to dwarf2out_start_source_file.
5487 (decode_g_option): Stop resetting debug level back to normal when
5488 we change debug formats, unless the current level is
5489 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
5492 * toplev.h (debug_start_source_file): Add line number to
5495 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
5498 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
5500 Output debug_macinfo data for starting file if requested.
5501 (dwarf2out_end_source_file): Output debug_macinfo data for ending
5503 (dwarf2out_define): Output debug_macinfo data for defining a macro
5505 (dwarf2out_undef): Output debug_macinfo data for undefining a
5507 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
5508 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
5509 (macinfo_section_label): New. DWARF2 macro info section label.
5510 (dwarf2out_init): If we want macro info, output the start label
5512 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
5513 attribute to the compilation unit die pointing to the macro info.
5515 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
5517 * dwarf2out.c (new_loc_list): Move to inside #ifdef
5518 DWARF2_DEBUGGING_INFO.
5519 (add_loc_descr_to_loc_list): Ditto.
5520 (output_loc_list): Ditto.
5521 Also, fix thinko in curr not being initialized.
5522 (gen_internal_sym): Ditto.
5524 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5526 * emit-rtl.c (replace_equiv_address): New function.
5527 * expr.h (replace_equiv_address): New declaration.
5528 * explow.c (validize_mem): Call it instead of change_address and
5529 also call if -fforce-addr and address is constant.
5530 * expr.c: Replace more calls to change_address with adjust_address
5531 and/or replace_equiv_address or to validize_mem.
5532 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
5533 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
5534 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
5535 * config/i370/i370.md, config/i860/i860.md: Likewise.
5536 * config/i960/i960.md, config/mips/mips.c: Likewise.
5537 * config/mips/mips.md, config/pa/pa.md: Likewise.
5538 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
5539 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
5541 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5543 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
5545 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
5548 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
5550 * doc/include: New directory.
5551 * doc/fdl.texi: Move to doc/include/fdl.texi.
5552 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
5553 * doc/include/funding.texi, doc/include/gpl.texi: New files.
5554 * doc/gcc.texi: Use funding.texi and gpl.texi.
5555 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
5556 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
5557 Update dependencies and use -I $(docdir)/include.
5559 2001-07-04 Anthony Green <green@redhat.com>
5561 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
5563 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5565 * doc/install.texi (sparc64-*-*): Remove garbage.
5567 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
5569 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
5570 Fix typo in last change to use adjust_address.
5572 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5574 * doc/install.texi (Specific): Update information for *-*-solaris*.
5576 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5578 * explow.c (plus_constant_wide): Reinitialize Y for restart.
5580 2001-07-03 Stan Shebs <shebs@apple.com>
5582 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
5583 case for flag_no_mach_text_sections.
5584 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
5585 * config/darwin.c (flag_no_mach_text_sections): Remove.
5586 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
5588 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5590 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
5591 and avoid checking for constant as first operand.
5592 * recog.c (find_constant_term_loc): No longer static.
5593 (adj_offettable_operand): Delete.
5594 * rtl.h (adj_offsettable_operand): Delete declaration.
5595 (find_constant_term): Add declaration.
5596 * caller-save.c: Replace calls to adj_offsettable_operand with calls
5598 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
5599 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
5600 * config/i386/i386.c, config/i386/i386.md: Likewise.
5601 * config/i860/i860.c, config/i960/i960.c: Likewise.
5602 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
5603 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
5604 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
5605 * config/mips/mips.c, config/mips/mips.md: Likewise.
5606 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
5607 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
5608 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
5609 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
5610 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
5611 * config/ns32k/ns32k.md: Likewise.
5613 2001-07-03 Zack Weinberg <zackw@stanford.edu>
5615 * rtl.c (copy_rtx): Handle 'T' format letter.
5616 * gensupport.c (collect_insn_data): Likewise.
5617 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
5619 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
5621 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
5622 -B option. Use 'dir' not 'foo' as example directory name.
5624 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5626 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5627 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
5629 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
5631 * doc/cppinternals.texi: Improve formatting and logical markup.
5633 2001-07-03 Andreas Jaeger <aj@suse.de>
5635 * Makefile.in (insn-recog.o): Add dependency on reload.h.
5637 * genrecog.c (write_header): Include reload.h for prototypes in
5640 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
5643 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
5644 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5645 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
5646 i386_pe_valid_type_attribute_p): Add.
5647 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
5648 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
5650 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5652 * explow.c (plus_constant_wide, case LO_SUM): New case.
5653 (plus_constant_for_output_wide): Delete.
5654 * rtl.h (plus_constant_for_output): Delete.
5655 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
5656 instead of plus_constant_for_output.
5657 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
5658 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
5659 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
5660 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
5661 * config/sparc/sparc.md: Likewise.
5662 Convert some change_address calls to adjust_address.
5664 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
5666 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
5667 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
5668 documentation of -std and -Wwrite-strings.
5670 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
5672 * cse.c (canon_hash): Don't register registers in very small
5673 register classes, as extending their lifetime might cause
5676 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5678 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
5680 * flow.c (forwarder_block_p): Fix for fallthru blocks.
5681 (try_redirect_by_replacing_jump): Update properly the count
5682 and frequency information.
5684 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
5686 * toplev.c (dump_file_index): Move SSA dumps just after first
5688 (dump_file): Corresponding changes.
5689 (rest_of_compilation): Move SSA path to just after the first
5691 * doc/gcc.texi (Passes): Update due to movement of SSA path.
5692 * doc/invoke.texi: Update dump file #s as they were completely
5693 out of date with reality.
5695 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
5697 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
5699 * expr.c (emit_move_insn_1): Deal with non-default
5702 * expr.c (emit_single_push_insn): Fix warning.
5704 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5706 * expr.c (emit_move_insn_1): Avoid modifying
5707 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
5709 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5711 * emit-rtl.c (adjust_address): New function.
5712 * expr.h (adjust_address): Add declaration.
5713 * builtins.c: Replace some calls to change_address with calls to it
5715 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
5716 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
5717 * config/arm/arm.c, config/convex/convex.c: Likewise.
5718 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
5719 * config/i386/i386.c, config/i386/i386.md: Likewise.
5720 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
5721 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
5722 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
5723 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
5724 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
5726 2001-07-02 Jim Wilson <wilson@redhat.com>
5728 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
5730 2001-07-02 Steve Ellcey <sje@cup.hp.com>
5732 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
5733 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
5735 2001-07-02 Zack Weinberg <zackw@stanford.edu>
5737 * cppinit.c (lang_defaults): New table.
5738 (set_lang): Just read from lang_defaults into the live options
5741 2001-07-02 Zack Weinberg <zackw@stanford.edu>
5743 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
5744 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
5745 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
5747 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5749 * doc/install.texi: Various spelling and markup fixes.
5750 (Installing GCC): Component specific installation instructions are
5753 Warn about removing old install dir in the presence of shared libs.
5754 (Configuration): Invoke with options target to match configure
5756 Consistently refer to gas, gld pathnames.
5757 Invert --enable-multilib documentation.
5758 Remove references to old compiler versions.
5760 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5762 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
5764 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5766 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
5768 (Specific, mips*-sgi-irix5): Note IDO download.
5769 Reworded MIPS C hints.
5770 Use GNU as instead of GAS.
5772 Removed SGI Freeware reference, IRIX 6 only.
5773 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
5774 Note N64 library requirement/workaround.
5776 Complete list of structure passing bug victims.
5778 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5780 * doc/install.texi: Remove CVS Id.
5782 2001-07-02 Andreas Jaeger <aj@suse.de>
5784 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
5785 (find_inherently_necessary): Remove unused variable.
5787 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
5789 * c-common.h (TDI_inlined): New ast dump phase.
5790 (dump_flag_name): New function.
5791 * c-dump.c (dump_files): Add inlined phase.
5792 (dump_flag_name): Define.
5793 * doc/invoke.texi (-fdump-ast-inlined): Document.
5795 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5797 * stor-layout.c (layout_decl): Revert change to handling of alignment
5800 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5802 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
5805 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
5807 * doc/tm.texi (FUNCTION_ARG): Document that the last call
5810 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
5812 * tlink.c (recompile_files): Remove COMPILER_PATH and
5813 LIBRARY_PATH from the environment.
5815 2001-07-01 Zack Weinberg <zackw@stanford.edu>
5817 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
5818 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
5820 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
5822 * c-parse.in (OBJC_STRING): Kill.
5823 (objc_string): Decompose to [objc_string] '@' STRING.
5824 (reswords): Take the leading '@' off all the Objective C keywords.
5825 (objc_rid_sans_at): Kill.
5826 (init_reswords): Don't initialize it.
5827 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
5828 (_yylex): Kill reconsider label. Look ahead one token after
5829 an '@'; if we get an identifier, check whether it's an
5830 Objective C @-keyword. If so, return the keyword. Otherwise,
5831 put back the token and return the '@' as a terminal.
5833 * cpplib.c (lex_macro_node): Remove unnecessary check for
5834 leading '@' on identifier. Clarify control flow and commentary.
5836 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5838 * cse.c (new_label_ref): Variable deleted.
5839 (insert): Remove set of new_label_ref.
5840 (check_for_label_ref): New function.
5841 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
5843 See ChangeLog.5 for earlier changes.