1 2001-11-29 Nick Clifton <nickc@cambridge.redhat.com>
3 * config/arm/crti.asm (_init): Add .thumb_func if compiled
5 (_fini): Add .thumb_func if compiled with -mthumb.
7 2001-11-28 Eric Christopher <echristo@redhat.com>
9 * config/mips/mips.c (override_options): Fix thinko in mips_tune
10 for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
12 Thu Nov 29 00:24:15 EST 2001 John Wehle (john@feith.com)
14 * alpha.md (tablejump): Use pic_offset_table_rtx
15 instead of gen_rtx_REG.
17 Wed Nov 28 15:36:13 2001 Jeffrey A Law (law@cygnus.com)
19 * expr.c (store_expr): When copying a string constant into an
20 array, reset the known alignment of the MEM for the section to
21 be cleared to BITS_PER_UNIT.
23 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
25 * config/cris/cris.c: Remove whitespace at end of line.
27 Wed Nov 28 14:51:23 2001 Douglas B. Rupp <rupp@gnat.com>
29 * config.gcc (i[34567]86-*-interix3*): New case.
30 * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
33 2001-11-28 Richard Henderson <rth@redhat.com>
35 * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
36 symbolic_operand as the predicate.
38 2001-11-28 Richard Henderson <rth@redhat.com>
40 * doloop.c (doloop_modify_runtime): Properly select induction
41 variable; skip late entry test if biv initializer created by loop.
43 Wed Nov 28 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
45 * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
46 EXPR_WITH_FILE_LOCATION, so change checks and documentation.
48 * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
50 * tree.h: Add missing checks on some macros; make formatting more
53 * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
54 level; only add to pending_sizes if find it.
56 * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
58 * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
59 Add casts to remove warnings.
61 * Makefile.in (OBJS): Sort alphabetically.
63 * print-rtl.c (print_rtx): If RTX code is bad, just say so.
66 Wed Nov 28 06:52:27 2001 Arnaud Charlet <charlet@ACT-Europe.FR>
68 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
69 (FLAGS_TO_PASS): Add STAGE_PREFIX.
70 (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
73 Wed Nov 28 10:42:19 CET 2001 Jan Hubicka <jh@suse.cz>
75 * cse.c (true_dependence_in_rtx): New function.
78 * c-common.h (GOTO_FAKE_P): New macro.
79 * tree-inline.c (GOTO_FAKE_P): Set.
80 * c-tree.texi (GOTO_FAKE_P): Document.
82 * varasm.c (assemble_variable): Set reloc to 3 for error_mark
84 (output_addressed_constants): Check for local/external relocations.
85 * elfos.h (SELECT_SECTION): Classify data section.
86 * tm.texi (SELECT_SECTION): Update documentation.
88 * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
89 (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
91 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
93 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
94 UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
97 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
99 * config/cris/cris.c: Tweak spacing for prototypes.
100 (LOSE_AND_RETURN): New macro.
101 (cris_operand_lossage): New function.
102 (cris_print_index, cris_print_base): Use cris_operand_lossage
103 rather than fatal_insn.
104 (cris_print_operand, cris_print_operand_address): Use
105 LOSE_AND_RETURN rather than fatal_insn and internal_error.
106 (cris_output_addr_const): Use LOSE_AND_RETURN and
107 output_operand_lossage rather than fatal_insn and internal_error
108 for valid but unexpected rtx expressions.
110 * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
111 for a SUBREG in src or dest, abort instead.
113 2001-11-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
115 * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
118 2001-11-27 Jakub Jelinek <jakub@redhat.com>
120 * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
121 preprocessor define. If only DBX_DEBUGGING_INFO or only
122 DWARF2_DEBUGGING_INFO is supported for the target, provide
123 appropriate definitions.
125 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
127 * Makefile.in: Update, and add c-objc-common.o dependencies.
128 * c-lang.c: Remove unnecessary includes.
129 (c_init): Move bulk of code to c_objc_common_init, and call it.
130 (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
131 inline_forbidden_p, c_cannot_inline_tree_fn): Move to
133 * c-objc-common.c: New. Mostly pulled from c-lang.c.
134 * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
135 c_objc_common_init, c_missing_noreturn_ok_p): New.
136 * toplev.c: Update comment.
137 * doc/passes.texi: Update.
139 * ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
140 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
141 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
142 (objc_init): Update to use c_objc_common_init.
144 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
146 * cpphash.c (_cpp_init_hashtable): Update.
147 * cpphash.h (struct spec_nodes): Remove n_L.
148 * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
150 2001-11-17 Richard Henderson <rth@redhat.com>
152 * unroll.c (loop_iterations): Move last change ...
153 * doloop.c (doloop_modify_runtime): ... here.
155 2001-11-17 Corey Minyard <minyard@acm.org>
156 Richard Henderson <rth@redhat.com>
158 * unroll.c (loop_iterations): Detect one situation in which we
159 overestimate the number of iterations.
161 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
163 * gcc.c (set_input): Export.
165 gcc.h (set_input): ... here.
167 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
169 * gcc.c (set_collect_gcc_options): New function, split out from
171 Ignore elided switches.
172 (do_spec): Invoke before executing command.
173 (do_spec_1): Likewise.
176 2001-11-27 Hans-Peter Nilsson <hp@axis.com>
178 * config/cris/cris.h (INT_ASM_OP): Remove.
180 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
182 * config/i386/sol2.h (WINT_TYPE): Redefine.
183 (WINT_TYPE_SIZE): Likewise.
185 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
187 * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
188 (dup2): Make static and add prototype.
189 * m68k/plexus.h: Don't define NO_DUP2.
190 * configure.in (AC_CHECK_FUNCS): Add dup2.
191 * config.in, configure: Regenerate.
193 * ia64/aix.h (REG_SIZE): Don't #undef.
194 * sparc.h (REG_SIZE): Delete.
195 * flow.c (mark_used_regs): Don't use REG_SIZE.
196 * regs.h (REG_SIZE): Delete.
198 2001-11-27 Andreas Schwab <schwab@suse.de>
200 * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
201 PREFERRED_DEBUGGING_TYPE.
203 Tue Nov 27 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
205 * Makefile.in (c-lang.o): Depends on langhooks-def.h.
206 (expr.o, varasm.o): Depends on langhooks.h.
207 * c-common.c (c_safe_from_p): Always declare.
208 (c_expand_expr): Refine when declared.
209 * c-lang.c (c-common.h): Now include.
210 (LANG_HOOKS_SAFE_FROM_P): Define new hook.
211 (c_init): Don't set lang_safe_from_expr.
212 * expr.c (langhooks.h): Now include.
213 (lang_safe_from_p): No longer define.
214 (safe_from_p): Use lang hook.
215 (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
216 (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
217 * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
218 * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
219 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
220 * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
221 * langhooks.h (struct lang_hooks): New fields expand_constant
223 * output.h (output_constant): Size arg is HOST_WIDE_INT.
224 * stmt.c (expand_decl_init): No longer need to expand constant
226 * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
227 * toplev.c (lang_expand_constant): Delete var.
228 * tree.c (save_expr): Don't put another SAVE_EXPR around simple
229 operations on SAVE_EXPR.
230 * varasm.c (langhooks.h): Now include.
231 (compare_constant_1): Use lang_hooks, not lang_expand_constant.
232 (record_constant_1, output_addressed_constants): Likewise.
233 (initializer_constant_valid_p, output_constant): Likewise.
234 (output_constant_def): Process no-defer of string constant.
235 (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
236 (output_constant): Strip more conversions.
237 Track our size and pad for the rest.
238 (array_size_for_constructor): Remove code for non-byte STRING_CST.
239 (output_constructor): SIZE now HOST_WIDE_INT.
241 2001-11-27 Richard Henderson <rth@redhat.com>
243 * ifcvt.c (noce_try_store_flag_constants): Test for overflow
246 2001-11-27 Zack Weinberg <zack@codesourcery.com>
248 * cppfiles.c (read_include_file): Add comment.
250 2001-11-26 Richard Henderson <rth@redhat.com>
252 * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
254 2001-11-26 Richard Henderson <rth@redhat.com>
256 * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
257 * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
258 commented out override.
260 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
262 * cppfiles.c (stack_include_file): Don't optimize zero-length
264 (read_include_file): NUL-terminate read files.
265 * cpplex.c (handle_newline, skip_escaped_newlines,
266 get_effective_char, skip_whitespace, parse_identifier,
267 parse_identifier_slow, parse_number, parse_string,
268 _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
270 * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
271 Be sure buffers are NUL terminated.
272 * cppmacro.c (warn_of_redefinition): Kill compile warning.
274 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
276 * c-common.c: Include tree-inline.h.
277 (c_language): Move separate definitions here.
278 (c_common_init_options, c_common_post_options): New.
279 (c_common_lang_init): Rename c_common_init.
280 * c-common.h (c_common_lang_init): Similarly.
281 (c_common_init_options, c_common_post_options): New.
282 * c-lang.c (c_post_options): Move body to c_common_post_options.
283 (c_init_options): Use c_common_init_options.
285 * langhooks.def: Rearrange.
286 * langhooks.h: Rearrange, and improve comments.
287 * toplev.c (do_compile): New function.
288 (toplev_main): Use it.
289 (lang_independent_f_options, parse_options_and_default_flags,
290 process_options): Remove trailing periods.
291 * Makefile.in: Update.
292 objc: * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
296 2001-11-26 Richard Henderson <rth@redhat.com>
298 * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
300 2001-11-26 DJ Delorie <dj@redhat.com>
302 * expr.c (store_constructor): Actually use the value computed
303 if WORD_REGISTER_OPERATIONS.
305 2001-11-26 Richard Henderson <rth@redhat.com>
307 * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
310 2001-11-26 David Edelsohn <edelsohn@gnu.org>
312 * rs6000.c (output_mi_thunk): Handle minimal-toc and call
313 correct function on AIX.
315 2001-11-26 Alexandre Oliva <aoliva@redhat.com>
317 * toplev.c (process_options): Don't force
318 flag_optimize_sibling_calls to zero just because exceptions are
321 Mon Nov 26 12:37:05 2001 Jeffrey A Law (law@cygnus.com)
323 * df.h (transfer_function_sbitmap): Use PARAMS around argument
324 list in function prototypes.
325 (transfer_function_bitmap): Likewise.
327 2001-11-26 Loren J. Rittle <ljrittle@acm.org>
329 * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
330 * config/i386/netbsd-elf.h: Likewise.
332 2001-11-26 David Edelsohn <edelsohn@gnu.org>
334 * doc/trouble.texi: Remove outdated RS/6000 comments.
336 Mon Nov 26 13:49:41 CET 2001 Jan Hubicka <jh@suse.cz>
338 * final.c (walk_alter_subreg): Fix return value.
340 Mon Nov 26 11:36:20 CET 2001 Jan Hubicka <jh@suse.cz>
342 * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
344 * sparc.md (post-reload splitters): Do not call alter_subreg.
345 * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
347 2001-11-25 Aldy Hernandez <aldyh@redhat.com>
349 * regclass.c (choose_hard_reg_mode): Handle vector arguments.
351 2001-11-26 Alan Modra <amodra@bigpond.net.au>
353 * final.c: (insn_lengths): Make it an int *, so that large jump
354 tables don't overflow.
356 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
358 * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
359 (format_types): Use it for scanf.
360 (dollar_arguments_pointer_p): New.
361 (init_dollar_format_checking): Store details of which arguments
363 (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
364 (finish_dollar_format_checking): Take extra parameter
365 pointer_gap_ok. Treat unused arguments differently if
366 pointer_gap_ok and the unused arguments are pointers.
367 (check_format_info_main): Pass extra argument to
368 finish_dollar_format_checking.
369 * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
370 unused arguments are present between used arguments with operand
373 2001-11-25 Daniel Berlin <dan@cgsoftware.com>
375 * df.c: Add prototypes for hybrid_search_bitmap and
376 hybrid_search_sbitmap.
377 (hybrid_search_bitmap): New function.
378 (hybrid_search_sbitmap): New function.
379 (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
380 (iterative_dataflow_bitmap): Ditto.
382 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
384 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
385 address computations.
387 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
389 * config/m68hc11/m68hc11.c (d_register_operand): Must accept
390 register b (low part of d).
392 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
394 * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
397 Sun Nov 25 06:22:09 2001 Douglas B. Rupp <rupp@gnat.com>
399 * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
400 * config/alpha/x-vms: New file, to compile the above.
401 * config.gcc (alpha*-dec-vms*): Add x-vms.
403 2001-11-24 Hans-Peter Nilsson <hp@axis.com>
405 * genextract.c (main): Set ro_loc for peepholes.
407 Sat Nov 24 17:04:10 2001 Douglas B. Rupp <rupp@gnat.com>
409 * fix-header.c (main): Move inf_buffer termination and inf_limit
410 calculation to after read.
412 * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
413 (__UNIX_FOPEN): Define.
415 Sat Nov 24 16:11:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
417 * function.c (assign_stack_temp_for_type): Clear alias set before
420 2001-11-23 David Edelsohn <edelsohn@gnu.org>
422 * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
424 * rs6000.md (cmptf): Fix typo.
426 2001-11-23 Richard Sandiford <rsandifo@redhat.com>
428 * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
429 * varasm.c (output_constructor): Use assemble_integer rather
430 than ASM_OUTPUT_BYTE.
432 2001-11-23 Andreas Jaeger <aj@suse.de>
434 * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
437 2001-11-23 Nick Clifton <nickc@cambridge.redhat.com>
439 * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
441 (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
442 (MULTILIB_DEFAULTS): Remove previous definition.
444 2001-11-23 Neil Booth <neil@daikokuya.demon.co.uk>
446 * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
447 * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
449 2001-11-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
451 * cris.h: Revert thinko in last patch.
453 2001-11-23 Joseph S. Myers <jsm28@cam.ac.uk>
455 * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
456 FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
457 cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
458 dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
459 explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
460 sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
462 * predict.c, reg-stack.c: Fix spelling errors.
464 2001-10-09 Andrew Haley <aph@redhat.com>
466 * calls.c (check_sibcall_argument_overlap): Use slot_offset for
469 2001-11-22 Graham Stott <grahams@redhat.com>
471 * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
472 replacement jump after original jump.
474 (verify_flow_info): Remove redundent initialisation.
475 Handle reaching end of insn list before finding a BARRIER.
476 Only issue one missing barrier diagnostic.
478 2001-11-22 Graham Stott <grahams@redhat.com>
480 * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
482 Thu Nov 22 06:49:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
484 * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
487 2001-11-22 Nick Clifton <nickc@cambridge.redhat.com>
489 * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
490 Fix typo -mm32rx=> -m32rx.
492 * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
495 * config.gcc (xscale-coff): Add necessary header files to
498 2001-11-20 Zack Weinberg <zack@codesourcery.com>
500 * rs6000.c (output_cbranch): Use $, not %$, in output template.
502 2001-11-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
504 * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
505 (lang_type_quals): Declare.
506 (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
507 retrieve language-specific qualifiers for a type node, instead of
508 C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
510 * tree-dump.h: Rename from c-dump.h.
511 * c-common.h (C_TYPE_QUALS): Removed.
512 Move declarations for tree-dump.c interface to...
513 * tree.h: ... here. Remove lang_dump_tree.
514 * langhooks.h (struct lang_hooks_for_tree_dump): New.
515 (struct lang_hooks): Add tree_dump hooks.
516 * langhooks.c (lhd_tree_dump_dump_tree): New function.
517 (lhd_tree_dump_type_quals): New function.
518 * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
520 (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
521 * Makefile.in: Move tree-dump.o to language-independent back-end.
523 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
525 * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
526 * alpha.h (DBX_REGISTER_NUMBER): Likewise.
527 * arc.h (DBX_REGISTER_NUMBER): Likewise.
528 * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
529 * avr.h (DBX_REGISTER_NUMBER): Likewise.
530 * c4x.h (DBX_REGISTER_NUMBER): Likewise.
531 * clipper.h (DBX_REGISTER_NUMBER): Likewise.
532 * convex.h (DBX_REGISTER_NUMBER): Likewise.
533 * cris.h (DBX_REGISTER_NUMBER): Likewise.
534 * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
535 * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
536 * fr30.h (DBX_REGISTER_NUMBER): Likewise.
537 * h8300.h (DBX_REGISTER_NUMBER): Likewise.
538 * i370.h (DBX_REGISTER_NUMBER): Likewise.
539 * i860.h (DBX_REGISTER_NUMBER): Likewise.
540 * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
541 * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
542 * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
543 * m32r.h (DBX_REGISTER_NUMBER): Likewise.
544 * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
545 * m88k.h (DBX_REGISTER_NUMBER): Likewise.
546 * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
547 * mcore.h (DBX_REGISTER_NUMBER): Likewise.
548 * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
549 * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
550 * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
551 * romp.h (DBX_REGISTER_NUMBER): Likewise.
552 * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
553 * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
554 * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
555 * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
556 * v850.h (DBX_REGISTER_NUMBER): Likewise.
557 * vax.h (DBX_REGISTER_NUMBER): Likewise.
558 * we32k.h (DBX_REGISTER_NUMBER): Likewise.
560 * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
561 * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
563 2001-11-21 H.J. Lu <hjl@gnu.org>
565 * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
567 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
569 * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
570 emit_cmp_and_jump_insns.
572 * stormy16.c (xstormy16_expand_builtin_va_arg,
573 xstormy16_expand_casesi): Likewise.
575 Wed Nov 21 17:37:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
577 * function.c (keep_stack_depressed): Major rework.
578 (handle_epilogue_set, emit_equiv_load): New functions.
579 (thread_prologue_and_epilogue_insns): keep_stack_depressed now
581 * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
582 * rtl.h (SET_IS_RETURN_P): New macro.
584 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
585 and also support TREE_ADDRESSABLE.
586 * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
588 2001-11-21 David Edelsohn <edelsohn@gnu.org>
590 * rs6000.md (cmptf_internal1): Replace %$ with $.
592 Wed Nov 21 16:44:01 2001 Douglas B. Rupp <rupp@gnat.com>
594 * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
595 (read_include_file): Use STAT_SIZE_TOO_BIG.
597 * cppinit.c (INO_T_COPY): Define.
598 (INO_T_EQ): Uppercase parameters.
599 (append_include_chain): Use INO_T_COPY.
601 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
603 * cfg.c: Fix typos and formatting in the introductory comment.
605 Wed Nov 21 12:38:37 CET 2001 Jan Hubicka
607 * profile.c (compute_branch_probabilites): Compute probabilities
608 for entry/exit edges; estimate probabilities for zero counts.
610 2001-11-21 Jakub Jelinek <jakub@redhat.com>
612 * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
613 to emit_library_call.
614 * function.c (expand_main_function, expand_function_start,
615 expand_function_end): Likewise.
616 * profile.c (output_func_start_profiler): Likewise.
617 * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
618 second argument to emit_library_call.
619 * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
620 as second argument to emit_library_call.
621 * calls.c (emit_library_call): Update fn_type description.
623 2001-11-21 Jakub Jelinek <jakub@redhat.com>
625 * c-decl.c (c_expand_deferred_function): Only call c_expand_body
626 if fndecl is still DECL_INLINE and has DECL_RESULT.
628 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
630 * clipper.c (clipper_movstr): Avoid uninitialized warning.
631 * i960.c (is_mask, legitimize_address): Likewise.
632 * m88k.c (m88k_expand_prologue): Likewise.
634 * mcore.c (emit_new_cond_insn): Likewise.
635 * stormy16.c (xstormy16_emit_cbranch): Likewise.
637 2001-11-20 Zack Weinberg <zack@codesourcery.com>
639 * config.gcc: Delete powerpcle-*-solaris2* stanza.
640 * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
641 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
642 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
643 config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
644 config/rs6000/t-ppcos: Expunge all references to Solaris.
646 * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
648 * config/rs6000/rs6000.md: Replace '%$' with '$' in all
650 * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
651 and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
653 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
655 * sh.md: Avoid uninitialized warnings.
656 * vax.c (vax_rtx_cost): Likewise.
658 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
660 * rs6000.c (direct_return): Check if we are saving altivec
662 (first_altivec_reg_to_save): New.
663 Updated stack frame layout comments.
664 (rs6000_stack_info): Calculate altivec register save size.
665 Save link register if we saved some altivec registers.
666 (rs6000_stack_info): Align save size to 16 if altivec abi or
668 (rs6000_stack_info): Calculate altivec register offsets.
669 (rs6000_stack_info): Add altivec info to save_size.
670 (debug_stack_info): Add altivec debug info.
671 (rs6000_emit_prologue): Save altivec registers and vrsave.
672 (compute_vrsave_mask): New.
673 (altivec_expand_builtin): Remove unused variables.
674 (rs6000_parse_abi_options): Add static qualifier.
675 (rs6000_expand_builtin): Remove unused parameters.
676 (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
677 (altivec_init_builtins): Same.
678 (is_altivec_return_reg): New.
679 (vrsave_operation): New.
680 (ALTIVEC_REG_BIT): New.
681 (generate_set_vrsave): New.
683 * rs6000.md (get_vrsave): New.
685 (*set_vrsave_internal): New.
687 * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
688 altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
689 altivec_padding_size, vrsave_mask.
690 (TOTAL_ALTIVEC_REGS): New.
691 (EPILOGUE_USES): Add VRSAVE_REGNO.
693 2001-11-20 Jeff Law <law@redhat.com>
695 * unroll.c (copy_loop_body): Update LABEL_NUSES for the
696 exit label as necessary.
698 2001-11-20 Brad Kaiser <bkaiser@acelink.net>
700 * reload1.c (elimination_effects): Use function_invariant_p
701 instead of CONSTANT_P when considering register equivalences.
703 2001-11-20 David O'Brien <obrien@FreeBSD.org>
705 * config.gcc: Add FreeBSD/PowerPC target.
706 (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
707 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
708 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
709 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
710 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
711 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
712 freebsd-spec.h to tm_file.
713 (rs6000-*-lynxos*): Add lynx.h to tm_file.
714 * config/freebsd.h: Tidy up.
715 (USING_CONFIG_FREEBSD): Define.
716 (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
717 FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
718 FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
719 (TARGET_HAS_F_SETLKW): Define.
720 (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
721 * config/freebsd-spec.h: New file.
722 * config/rs6000/freebsd.h: New file.
723 * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
724 * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
725 USING_SVR4_H to know when to turn on ELF support.
726 * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
727 define only if not already defined.
729 * config/rs6000/aix.h (TARGET_VERSION): Define.
730 * config/rs6000/beos.h: Likewise.
731 * config/rs6000/darwin.h: Likewise.
732 * config/rs6000/mach.h: Likewise.
733 * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
734 Don't include lynx.h directly.
736 2001-11-20 Graham Stott <grahams@redhat.com>
738 * unwind-dw2-fde.c (__deregister_frame_info_bases):
739 Fix lossage in last change return OB.
741 Tue Nov 20 11:56:12 2001 Douglas B. Rupp <rupp@gnat.com>
743 * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
744 Remove unneeded exit related macros.
746 2001-11-20 David Edelsohn <edelsohn@gnu.org>
748 * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
750 * rs6000.c (rs6000_emit_move): Add TFmode case.
751 * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
752 LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
753 LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
754 * rs6000.h: ... to here.
755 * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
756 trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
757 fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
759 Tue Nov 20 06:41:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
761 * emit-rtl.c (get_mem_attrs): Fix typo.
763 2001-11-20 Jakub Jelinek <jakub@redhat.com>
765 * c-lang.c (finish_file): Backout 2001-11-16
766 changes, instead set DECL_DEFER_OUTPUT for static inline functions
767 before calling c_expand_deferred_function.
769 2001-11-20 Jakub Jelinek <jakub@redhat.com>
771 * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
772 Don't register empty .eh_frame sections.
773 (__deregister_frame_info_bases, __deregister_frame): Don't
774 unregister them either.
776 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
778 * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
779 (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
780 * configure: Regenerate.
781 * config.in: Add dummy definitions of new flags.
782 * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
783 * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
784 * gcc.c (ASM_DEBUG_SPEC): New macro.
785 (asm_debug): New static variable.
786 (default_compilers): Add asm_debug when assembling from
788 (static_specs): Add asm_debug.
790 2001-11-20 Loren J. Rittle <ljrittle@acm.org>
792 * config.gcc (*-*-freebsd*): Remove configuration block.
794 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
797 * configure.in: Setup ability to run ./stage[1234]/xgcc in
798 fixinc *as if* it were a proper lang subdirectory.
799 * configure: Rebuilt.
801 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
803 * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
805 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
807 * 1750a.md: Don't use hex format for a const_int.
809 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
811 * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
813 2001-11-19 Zack Weinberg <zack@codesourcery.com>
815 * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
816 defined (prevents link errors when gettext isn't in the system
819 2001-11-19 DJ Delorie <dj@redhat.com>
821 * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
822 (validate_const_int): New.
823 (read_rtx): Validate constant integers.
824 * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
826 2001-11-19 Jakub Jelinek <jakub@redhat.com>
828 * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
830 Mon Nov 19 16:57:44 2001 Douglas B. Rupp <rupp@gnat.com>
832 * toplev.c (DUMPFILE_FORMAT): Define default.
833 (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
834 (close_dump_file, compile_file): Likewise.
835 * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
836 * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
838 2001-11-19 Jeff Law <law@redhat.com>
840 * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
843 2000-11-19 Neil Booth <neil@daikokuya.demon.co.uk>
845 * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
846 Don't fall off the base token run.
848 2001-11-19 Jason Wilkins <fenix@io.com>
850 * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
852 Mon Nov 19 15:13:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
854 * tree.def (VIEW_CONVERT_EXPR): New tree code.
855 * tree.h (handled_component_p): New declaration.
856 * alias.c (handled_component_p): Move function from here ...
857 * expr.c (handled_component_p): ... to here and non longer static.
858 (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
859 (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
860 (get_inner_reference): Handle VIEW_CONVERT_EXPR.
861 (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
862 (expand_expr, case VIEW_CONVERT_EXPR): New case.
863 (expand_expr, cse ADDR_EXPR): No need to copy if already
865 * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
866 * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
867 (output_constant): Handle VIEW_CONVERT_EXPR.
868 * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
869 Add new case for VIEW_CONVERT_EXPR.
871 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
873 * a29k/unix.h (ASM_FILE_START): Const-ify.
874 * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
875 * i386/isc.h (ASM_FILE_START): Const-ify.
876 * i386/sun386.h (ASM_FILE_START): Likewise.
878 * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
879 * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
880 * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
881 * mn10200.md: Initialize variable.
883 Mon Nov 19 18:06:21 CET 2001 Jan Hubicka <jh@suse.cz>
885 * gcse.c (try_replace_reg): Copy RTX before creating note.
887 * df.h (df_ref_flags): New uenum.
888 (DF_REF_FLAGS): New macro.
889 (struct ref): Add field "flags".
890 * df.c (HANDLE_SUBREG): Remove.
891 (df_ref_create): Likewise; set flags field of ref.
892 (df_def_record_1): Strip down read_write subreg; remove
893 commented out code; set READ_WRITE flag.
894 (read_modify_subreg_p): New static function.
895 (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
896 new argument "flags".
897 (df_insn_refs_record): Update call of df_uses_record.
898 (df_insn_modify): Avoid #if 0 around comment.
899 (df_dump): Dump the read/write flag.
901 * predict.c (propagate_freq): Make cyclic_probability and frequency
904 * i386.c (ix86_cc_mode): Accept USE.
906 * cfgrtl.c (purge_dead_edges): Cleanup EDGE_ABNORMAL flag if computed
907 jump is turned into simplejump.
909 2001-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
911 * doc/fragments.texi, doc/trouble.texi: Remove links to old
912 installation chapter.
913 * doc/gcc.texi: Don't claim that this manual documents
914 installation. Mark Installation menu entry as being out of date.
916 Mon Nov 19 07:21:35 2001 Douglas B. Rupp <rupp@gnat.com>
918 * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
919 (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
920 * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
922 2001-11-19 Jason Merrill <jason@redhat.com>
924 * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
925 cur_token, not after.
927 * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
928 Lose ASM_OUTPUT_CONSTRUCTOR.
929 * system.h: Poison it and INT_ASM_OP.
930 * c-lang.c (finish_file): Don't check for it.
931 * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
933 2001-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
935 * mmix.c (mmix_cc1_ignored_option): Const-ify.
936 (mmix_init_machine_status): Make static to match declaration.
937 (mmix_unique_section): Const-ify.
938 (mmix_output_quoted_string): Avoid automatic aggregate
940 (mmix_output_register_setting): Likewise.
941 (mmix_output_shiftvalue_op_from_str): Likewise.
943 * mmix.h (mmix_cc1_ignored_option): Const-ify.
944 (ASM_OUTPUT_BYTE): Fix format specifier warning.
945 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
947 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
950 * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
951 name __objc_thread_exit_status so that it matches the
952 variable defined in objc/thr.h.
954 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
957 * mklibgcc.in: Add missing semi-colons.
960 Sun Nov 18 16:47:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
962 * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
963 after re-laying out decl in incomplete case.
964 (expand_expr, case ADDR_EXPR): Fix typo in copy case.
966 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
968 * doc/install-old.texi: Move some sections out to ...
969 * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
970 ... here. New files. Make into chapters rather than sections.
971 * doc/gcc.texi: Include the new files and add menu entries for
973 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
975 Sun Nov 18 14:13:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
977 * tree.h (TYPE_ALIGN_OK): New flag.
978 * emit-rtl.c (set_mem_attributes): Handle it.
979 * expr.c (emit_single_push_insn): Only set to alias set 0 if
980 doing sibcall optimization.
981 (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
983 (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
984 (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
986 * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
988 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
990 * c-decl.c (c_decode_option): Give deprecation warning for
992 * doc/invoke.texi (-traditional): Note that this option is
995 Sun Nov 18 07:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
997 * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
998 arg to HOST_WIDE_INT, not long.
1000 * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
1001 (HAS_INIT_SECTION): Define.
1002 (REAL_ARITHMETIC): Don't undefine.
1004 2001-11-18 Egor Duda <deo@logos-m.ru>
1006 * config/i386/cygwin.h: Strip leading '*' from name, if any.
1008 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
1010 * Makefile.in (c-parse.o, c-common.o): Update dependencies.
1011 * c-common.c: Include diagnostic.h.
1012 (c_common_finish): New.
1013 * c-common.h (c_common_finish): New.
1014 * c-lang.c (LANG_HOOKS_FINISH): Override.
1015 * c-parse.in: Don't include diagnostic.h.
1016 (finish_parse): Remove.
1017 * langhooks.h: Update comments.
1018 * toplev.c (lang_dependent_init): New prototype.
1020 (compile_file): Split cleanup code out to finalize.
1021 (lang_dependent_init): Stop if lang_hooks.init fails.
1022 (toplev_main): Update.
1023 * tree.h (finish_parse): Remove.
1025 * objc-act.c (LANG_HOOKS_FINISH): Override.
1027 Sat Nov 17 23:30:44 2001 Douglas B. Rupp <rupp@gnat.com>
1029 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
1030 * config/alpha/vms_tramp.asm: New file.
1031 * config/alpha/vms-tramp.asm: Removed.
1033 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1035 * c-common.c (struct disabled_builtin, disabled_builtins,
1036 disable_builtin_function, builtin_function_disabled_p): New.
1037 (builtin_function_2): Check for disabled built-in functions.
1038 * c-common.h (disable_builtin_function): Declare.
1039 * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
1040 * doc/invoke.texi: Document -fno-builtin-FUNCTION.
1041 * doc/extend.texi: Mention -fno-builtin-FUNCTION.
1043 2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
1046 * config.gcc: Remove reference to va-clipper.h.
1048 2001-11-17 Stan Shebs <shebs@apple.com>
1050 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1051 AltiVec-related bitfields.
1053 Sat Nov 17 12:06:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1055 * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1056 (mark_eh_region, case ERT_UKNONW): New case.
1058 2001-11-17 Christopher Faylor <cgf@redhat.com>
1059 Corinna Vinschen <vinschen@redhat.com>
1061 * config/i386/cygwin.h: Search target specific include directory for
1062 w32api stuff, if appropriate.
1064 Sat Nov 17 08:20:44 2001 Douglas Rupp <rupp@gnat.com>
1066 * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1068 2001-11-16 Aldy Hernandez <aldyh@redhat.com>
1070 * config/rs6000/rs6000.md: Change all ldvx to lvx.
1072 2001-11-16 Alexandre Oliva <aoliva@redhat.com>
1074 * gensupport.c (process_rtx): Don't assume filename is the first
1075 argument of any rtl.
1077 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1079 * vax-protos.h (reg_was_0_p): New prototype.
1080 * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1081 * vax.c (follows_p, reg_was_0_p): New functions.
1083 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1085 * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1086 (casesi1): Likewise. Define new pattern which arises by simplification
1087 when operand 1 is a constant int. Correct pattern which arises by
1088 simplification when operand 1 is zero.
1090 2001-11-16 David O'Brien <obrien@FreeBSD.org>
1092 * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1093 arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1094 arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1095 arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1096 arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1097 arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1098 xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1099 * config/arm/aof.h: Don't include arm.h.
1100 * config/arm/aout.h: Likewise.
1101 * config/arm/coff.h: Don't include semi.h and aout.h.
1102 * config/arm/elf.h: Don't include aout.h.
1103 * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1104 (TARGET_VERSION): Undef before defining.
1105 (ARM_OS_NAME): Likewise
1106 (TARGET_DEFAULT): Likewise
1107 (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1108 * config/arm/pe.h: Don't include arm/coff.h.
1109 * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1110 SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1111 * config/arm/riscix1-1.h: Likewise.
1112 * config/arm/rix-gas.h: Don't include riscix.h.
1113 (DBX_CONTIN_LENGTH): Undef before defining.
1114 * config/arm/semi.h: Don't include aout.h.
1115 * config/arm/semiaof.h: Don't include aof.h.
1116 * config/arm/strongarm-coff.h: Don't include coff.h.
1117 * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1118 * config/arm/vxarm.h: Don't include arm/coff.h.
1119 * config/arm/xscale-coff.h: Don't include coff.h.
1121 Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1123 * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1126 2001-11-16 Andreas Jaeger <aj@suse.de>
1128 * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1130 (fixup_fallthru_exit_predecessor): ... this.
1131 Change callers and prototype.
1133 2001-11-16 Bernd Schmidt <bernds@redhat.com>
1135 * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1136 hand; don't use gen_setcc_2.
1137 (ix86_expand_builtin): Fix pshufw.
1138 * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1139 case UNORDERED to emit the right assembler instruction.
1140 (mmx_pshufw): Lose operand 2.
1141 (cvtsi2ss): Fix representation.
1143 (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1145 2001-11-16 Joseph S. Myers <jsm28@cam.ac.uk>
1147 * doc/include/linux-and-gnu.texi: Remove.
1148 * doc/gnu.texi: New.
1149 * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1150 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1152 2001-11-16 Kazu Hirata <kazu@hxi.com>
1154 * config/a29k/a29k.c: Fix comment formatting.
1155 * config/a29k/a29k.h: Likewise.
1156 * config/arc/arc.c: Likewise.
1157 * config/arc/arc.h: Likewise.
1158 * config/vax/vax.c: Likewise.
1159 * config/vax/vax.h: Likewise.
1160 * config/we32k/we32k.c: Likewise.
1161 * config/we32k/we32k.h: Likewise.
1163 2001-11-16 Jeff Law <law@redhat.com>
1165 * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1166 creating a new jump insn.
1168 Fri Nov 13 09:06:25 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1170 * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1171 copy misaligned data.
1172 * varasm.c (assemble_variable): Set alignment into MEM when changed.
1174 2001-11-16 Graham Stott <grahams@redhat.com>
1176 * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1179 2001-11-16 Olivier Hainque <hainque@act-europe.fr>
1181 * except.c: Support for catching a list of types with a single handler
1182 (struct eh_region): Change type and filter to lists for catch regions.
1183 (mark_eh_region): Mark the filter list for GC also.
1184 (expand_start_catch): Always build a list if argument not NULL and
1185 register each type of the list through add_type_for_runtime.
1186 (duplicate_eh_region_1): Change type into type_list for catch regions.
1187 (assign_filter_values): Assign a filter to each type associated with a
1188 catch region. Assign filter for NULL types in a unique entry in the
1190 (build_post_landing_pads): Emit compare and jump for each filter of
1191 the list associated with a catch region.
1192 (reachable_next_level): When the type thrown is known, stop the search
1193 as soon as one type within a catch list matches. Also, a handler is
1194 potentially reachable only if at least one of the types it catches
1195 has not been previously caught.
1196 (collect_one_action_chain): Retrieve the filter for a NULL type list
1197 from the first filter list entry. For non NULL type lists, add an
1198 action record for every filter assigned.
1199 * except.h: Reflect changes in comment before expand_start_catch.
1201 Fri Nov 16 07:12:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1203 * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1206 Fri Nov 16 06:37:05 2001 Andreas Tobler <a.tobler@schweiz.ch>
1208 * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1210 2001-11-16 Jakub Jelinek <jakub@redhat.com>
1212 * c-lang.c (finish_file): Don't emit static inline functions if
1213 they weren't referenced.
1215 2001-11-15 Stan Shebs <shebs@apple.com>
1217 * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1219 2001-11-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1221 * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1223 * config/i386/i386.md: Likewise.
1225 Thu Nov 15 21:40:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1227 * timevar.c (rtl.h): Include so get fancy abort.
1229 2001-11-15 Dale Johannesen <dalej@apple.com>
1231 * config/darwin.h (SELECT_RTX_SECTION): Force address
1232 initializers into 'const' section
1233 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fix mode of
1234 if_then_else to match result, not operands
1236 Thu Nov 15 17:57:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1238 * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1239 * emit-rtl.c (change_address): Fix typo in default alignment.
1240 (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1241 * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1242 * rtl.h (REGNO_PTR_FRAME_P): New macro.
1244 * expr.c (store_field): Pass tree instead of max size; callers changed.
1245 Change handling of alignment.
1246 Only copy to_rtx if is TARGET.
1247 (expand_expr_unaligned): Delete; callers now use expand_expr.
1248 (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1249 (expand_assignment): Change handling of alignment.
1250 Only copy to_rtx if was original.
1251 (get_inner_reference): No longer return alginment; callers changed.
1252 (expand_expr, case COMPONENT_REF): Change handling of alignment.
1253 (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1254 (compare_from_rtx): Delete ALIGN parm; all callers changed.
1255 (do_compare_rtx_and_jump): Likewise.
1256 * expr.h: Reflect above changes.
1258 * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1259 to get_inner_reference.
1260 * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1261 * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1262 * optabs.c: Likewise.
1263 (prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
1264 (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1265 * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1266 compare_rtx_and_jump, and emit_cmp_jump_insns.
1267 * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1268 * function.c (assign_stack_temp_for_type): No longer static.
1269 * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1270 (prepare_cmp_insn): Delete declaration.
1271 * rtl.h (assign_stack_temp_for_type): Add declaration.
1272 * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1273 * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1274 * config/i386/i386.c,config/mips/mips.c: Likewise.
1275 * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1276 * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1278 2001-11-15 Stan Shebs <shebs@apple.com>
1280 * config/rs6000/rs6000.h: Fix a comment typo.
1281 (RTX_COSTS): Sort processor versions better.
1283 2001-11-15 Kazu Hirata <kazu@hxi.com>
1285 * config/h8300/h8300.md: Fix insn length of bit insns.
1287 2001-11-15 Jason Merrill <jason@redhat.com>
1289 * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1290 DIEs if there were errors in the source.
1292 * config/alpha/alpha-interix.h, config/alpha/elf.h,
1293 config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1294 config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1295 config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1296 config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1297 config/elfos.h, config/lynx.h, config/netware.h,
1298 config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1299 config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1300 uses to use ASM_LONG.
1302 2001-11-15 Alan Matsuoka <alanm@redhat.com>
1304 * gensupport.c process_include : Change call to alloca to
1307 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
1309 * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1312 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1314 * final.c (alter_subreg): If simplify_subreg can't do anything,
1315 handle REG ourselves and abort for others.
1317 2001-11-15 Richard Hodson <hodsonr@dionecorp.com>
1319 * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1322 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1324 * fix-header.c (read_scan_file): Update.
1326 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1328 * toplev.c (toplev_main): Don't start timing until after
1329 command-line options are parsed.
1331 2001-11-15 Andreas Schwab <schwab@suse.de>
1333 * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1334 makefile frag, not host makefile frag.
1335 (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1336 (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1338 (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1339 * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1340 * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1341 * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1342 * config/i386/t-dgux (STMP_FIXPROTO): Define.
1343 * config/x-interix: Don't define STMP_FIXPROTO and
1345 * config/t-interix: New file, define STMP_FIXPROTO.
1346 * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1347 * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1348 * config/t-svr4 (FIXPROTO_DEFINES): Define.
1349 * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1350 * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1351 * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1352 * config/m68k/t-hp3200: Renamed from x-hp3200.
1353 * config/i370/t-oe: Renamed from x-oe.
1354 * config/mips/t-iris: Renamed from x-iris.
1355 * config/pa/t-bsd: Renamed from x-pa.
1356 * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1357 * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1358 config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1359 config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1360 config/rs6000/x-cygwin: Remove files.
1362 * configure.in: Check for target objdump and use that in eh_frame
1364 * configure: Regenerated.
1366 2001-11-15 Jakub Jelinek <jakub@redhat.com>
1368 * jump.c (squeeze_notes): Return true if no real insns were found.
1369 * rtl.h (squeeze_notes): Adjust prototype.
1370 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1371 squeeze_notes finds no real instructions, abort.
1372 (merge_blocks_move_successor_nojumps): Likewise.
1373 * loop.c (find_and_verify_loops): Likewise.
1374 * stmt.c (expand_end_case): Likewise.
1375 * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1376 find any real instructions.
1378 * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1380 * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1381 conditional jump, request updating life into for the block
1382 containing it. Fix a typo which prevented life info update.
1383 Clear blocks bitmap before using it.
1385 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1387 * c-common.c: Include c-lex.h.
1388 (c_common_lang_init): Change prototype. Call init_c_lex and
1389 init_pragma from here.
1390 * c-common.h (c_common_lang_init): Change prototype.
1391 * c-decl.c (init_decl_processing): Rename. Call c_parse_init.
1392 * c-lang.c (c_init): Change prototype. Update.
1393 (c_init_options): Update.
1394 * c-lex.c (cpp_filename): Remove.
1395 (init_c_lex): Update. Read the main file, and get the original
1397 (yyparse): Finish the command line options.
1398 * c-parse.in (c_parse_init): Call init_reswords here.
1399 (init_parse): Remove.
1400 * c-tree.h (c_init_decl_processing): New.
1401 * cpphash.c (_cpp_init_hashtable): After initializing the hash
1403 * cppinit.c (read_original_filename, cpp_finish_options): New.
1404 (cpp_create_reader): New prototype. Defer hash table initialization.
1405 (cpp_start_read): Rename cpp_read_main_file. Initialize the
1406 hash table. Get the original filename.
1407 * cpplib.h (cpp_create_reader): Update.
1408 (cpp_start_read): Remove.
1409 (cpp_read_main_file, cpp_finish_options): New.
1410 * cppmain.c (main, do_preprocessing): Update.
1411 * langhooks.h (struct langhooks): Update init prototype.
1412 * toplev.c (general_init, parse_options_and_default_flags,
1413 process_options, lang_indpendent_init, lang_dependent_init,
1414 init_asm_output): New; perform the bulk of initialization.
1415 (compile_file): Move most of initialization to above functions.
1416 (debug_hooks): Initialize statically.
1417 (set_Wunused): Relocate.
1418 (toplev_main): Move most of initialization to other init functions.
1419 Have a clear logic flow.
1420 * tree.h (init_parse, init_decl_processing): Remove.
1422 * objc-act.c (objc_init): Update prototype, combine with old
1424 (objc_init_options): Update.
1427 2001-11-15 Andreas Jaeger <aj@suse.de>
1429 * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1431 * basic-block.h: Adjust prototype.
1433 2001-11-15 Kazu Hirata <kazu@hxi.com>
1435 * config/rs6000/aix31.h: Fix comment formatting.
1436 * config/rs6000/beos.h: Likewise.
1437 * config/rs6000/darwin.h: Likewise.
1438 * config/rs6000/eabi.asm: Likewise.
1439 * config/rs6000/linux.h: Likewise.
1440 * config/rs6000/linux64.h: Likewise.
1441 * config/rs6000/lynx.h: Likewise.
1442 * config/rs6000/netbsd.h: Likewise.
1443 * config/rs6000/rs6000.c: Likewise.
1444 * config/rs6000/rs6000.h: Likewise.
1445 * config/rs6000/rs6000.md: Likewise.
1446 * config/rs6000/sol2.h: Likewise.
1447 * config/rs6000/tramp.asm: Likewise.
1448 * config/rs6000/xcoff.h: Likewise.
1449 * config/rs6000/xm-beos.h: Likewise.
1451 2001-11-14 Alan Matsuoka <alanm@redhat.com>
1453 * rtl.def (INCLUDE) : Define.
1454 * gensupport.c (init_include_reader, process_include,
1455 save_string) : New functions to implement an include facility
1457 * gensupport.h : Add prototype for init_md_reader_args.
1458 * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1459 genextract.c genflags.c genopinit.c genoutput.c
1460 genpeep.c genrecog.c: Change call to init_md_reader to
1461 init_md_reader_args.
1462 * md.texi: Document (include "path") and -I directives for RTL
1465 2001-11-14 DJ Delorie <dj@redhat.com>
1467 * integrate.c (get_hard_reg_initial_reg): New.
1468 * integrate.h (get_hard_reg_initial_reg): Prototype.
1469 * local-alloc.c (block_alloc): Don't tie pseudos that
1470 represent call-saved hard regs' initial values.
1472 2001-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1474 * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1477 2001-11-14 Roger Sayle <roger@eyesopen.com>
1479 * fold-const.c (fold): Optimize strlen comparisons against zero.
1481 2001-11-14 David O'Brien <obrien@FreeBSD.org>
1483 * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1484 sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1485 sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1486 sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1487 sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1488 sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1489 sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1490 Include various CPU headers via tm_file. a.out based platforms now
1491 properly include sparc/aout.h. sol2.h usage now implies including
1492 elfos.h, svr4.h, and sparc/sysv4.h.
1493 * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1495 * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1496 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1497 DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1498 Remove. They are a.out specific and belong in sparc/aout.h.
1499 * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1500 ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1501 DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define. Moved here from
1503 * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1504 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
1505 Moved here from sparc/sparc.h.
1506 * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
1508 * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
1509 * config/sparc/lynx.h: Don't include lynx.h.
1510 (SELECT_SECTION): Do not undef.
1511 * config/sparc/openbsd.h: Don't include sparc/sparc.h.
1512 * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
1514 * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
1515 * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define. Get from
1517 * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1518 Don't undef, there is no need.
1519 * config/sparc/splet.h (CPP_PREDEFINES): Define.
1520 * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
1521 * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
1522 Don't include sparc/sparc.h.
1523 * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
1524 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1525 DATA_SECTION_ASM_OP): Don't undef, there is no need now. Don't include
1527 (TARGET_VERSION): Define.
1528 * config/sparc/vxsim.h (TARGET_VERSION): Define.
1530 Wed Nov 14 19:46:08 CET 2001 Jan Hubicka <jh@suse.cz>
1532 * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
1533 (cfg_layout_finalize): Use it.
1534 * bb-reorder.c (HAVE_epilogue): Remove.
1535 (make_reorder_chain): Do not care special placement of
1538 * predict.c (expected_value_to_br_prob): Delete the note
1541 * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
1542 measure integration time separately.
1544 Wed Nov 14 12:30:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1546 * function.c (struct temp_slot): ALIGN now unsigned.
1548 2001-11-14 Kazu Hirata <kazu@hxi.com>
1550 * config/dsp16xx/dsp16xx.c: Fix comment formatting.
1551 * config/dsp16xx/dsp16xx.h: Likewise.
1552 * config/dsp16xx/dsp16xx.md: Likewise.
1554 2001-11-14 Kazu Hirata <kazu@hxi.com>
1556 * config/h8300/h8300.c (get_shift_alg): Reorganize the code
1557 that deals with 7-bit shifts in HImode.
1559 Wed Nov 14 14:17:05 CET 2001 Jan Hubicka <jh@suse.cz>
1561 * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
1562 * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
1563 (final_scan_insn): Update call of alter_subreg.
1564 (cleanup_subreg_operands): Likewise.
1565 (alter_subreg): Rewrite using simplify_subreg.
1566 (output_address, output_operand): Update call of alter_subreg.
1567 * output.h (alter_subreg): Update prototype.
1568 * sdbout.c (sdbout_symbol): Update call of alter_subreg.
1569 * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
1570 * Makefile.in (final.o): Add dependency on expr.h
1572 Wed Nov 14 06:37:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1574 * c-lang.c (finish_file): Make I unsigned to eliminate warning.
1576 2001-11-13 Jeff Sturm <jsturm@one-point.com>
1578 * doc/install.texi (sparc-*-linux*): Mention requirements for
1581 2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
1583 * Makefile.in (POD2MAN): Don't include --section=1.
1584 (manext): Rename to man1ext. All users changed.
1587 (generated-manpages): Also depend on $(docdir)/gfdl.7,
1588 $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1589 ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1590 --section=1 in calls to $(POD2MAN).
1591 ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1592 (maintainer-clean, install, uninstall): Handle the new man pages.
1593 ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1594 (installdirs): Create man7dir.
1595 * doc/cpp.texi: Include GFDL in this manual. In the man page,
1596 refer to gfdl(7) for the GFDL. Apply Front Cover and Back Cover
1597 texts to man page. Include gpl(7), gfdl(7) and fsf-funding(7) in
1598 the SEE ALSO man page section.
1599 * doc/gcov.texi: Apply GFDL to man page. Include gpl(7), gfdl(7)
1600 and fsf-funding(7) in the SEE ALSO man page section.
1601 * doc/invoke.texi: Apply GFDL to man page. Include gpl(7),
1602 gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1603 * doc/include/fdl.texi, doc/include/funding.texi,
1604 doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1605 * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1607 2001-11-13 Richard Henderson <rth@redhat.com>
1609 * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1610 as appropriate for the artificial decl.
1612 2001-11-13 Richard Henderson <rth@redhat.com>
1614 * loop.c (combine_movables): Turn off combination until
1615 move_movables validation bugs are fixed.
1617 2001-11-13 DJ Delorie <dj@redhat.com>
1619 * config.gcc (powerpc|rs6000): Set default cpp options based
1620 on --with-cpu settings.
1621 * config/rs6000/softfloat.h: New.
1623 2001-11-13 Kazu Hirata <kazu@hxi.com>
1625 * config/h8300/h8300.c (shift_alg_si): Use special code for
1626 25-bit shifts on H8/S.
1627 (get_shift_alg): Generate special code for 25-bit shifts on
1630 2001-11-13 Jakub Jelinek <jakub@redhat.com>
1632 * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1633 (adjust_automodify_address_1): New.
1634 * expr.h (adjust_address, adjust_address_nv): Adjust.
1635 (adjust_automodify_address, adjust_automodify_address_nv): Define.
1636 (adjust_address_1): Update prototype.
1637 (adjust_automodify_address_1): Add prototype.
1638 * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1639 (store_by_pieces_2): Likewise.
1641 Tue Nov 13 05:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1643 * Makefile.in (explow.o): Now depends on ggc.h.
1644 * explow.c (ggc.h): Include.
1645 (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1647 * Makefile.in (expr.o): Depends on insn-attr.h.
1648 * expr.c (insn-attr.h): New include.
1649 (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1651 (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1652 (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1653 clean up related usage in ADDR_EXPR.
1654 (expand_expr_unaligned): Likewise.
1656 * emit-rtl.c (change_address): Fix typo in alias setting.
1658 2001-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1660 * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1662 2001-11-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1665 * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1666 GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1668 2001-11-12 David O'Brien <obrien@FreeBSD.org>
1670 * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1671 sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1672 sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1673 sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1674 sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1675 sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1676 sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1677 sparc64-*-linux*): Include various CPU headers via tm_file.
1678 * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1679 (SELECT_SECTION): Likewise.
1680 (SELECT_RTX_SECTION): Likewise.
1681 * config/sparc/sparc_bi.h: New file.
1682 * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1683 * config/sparc/linux-aout.h: Likewise.
1684 * config/sparc/linux.h: Don't include sparc/sysv4.h.
1685 * config/sparc/linux64.h: Likewise.
1686 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
1687 * config/sparc/lite.h: Don't include sparc/sparc.h and gofast.h.
1688 * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1690 (ASM_OUTPUT_IDENT): Do not #undef.
1691 (SELECT_SECTION): Likewise.
1692 (SELECT_RTX_SECTION): Likewise.
1693 * config/sparc/liteelf.h: Don't include gofast.h.
1694 * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1695 * config/sparc/lynx.h: Don't include sparc/sparc.h.
1696 * config/sparc/pbd.h: Likewise.
1697 * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1698 * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1699 * config/sparc/rtemself.h: Don't include rtems.h.
1700 * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1701 * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1703 * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1704 * config/sparc/sol2.h: Include sparc/sparc.h directly.
1705 * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1706 * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1707 * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1708 * config/sparc/sp86x-elf.h: Don't include gofast.h.
1709 * config/sparc/splet.h: Don't include sparc/aout.h.
1710 * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1711 * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1712 * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1713 * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1714 * config/sparc/vxsparc64.h: Don't include gofast.h.
1715 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
1717 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1719 * doc/standards.texi: Mention C99 TC1.
1721 2001-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1723 * mips-protos.h (mips_output_conditional_branch): Const-ify.
1724 * mips.c (mips_output_conditional_branch): Likewise.
1726 2001-11-12 Kazu Hirata <kazu@hxi.com>
1728 * config/h8300/h8300.c (shift_alg_si): Use special code for
1729 15-bit logical shifts and 31-bit logical shifts.
1730 (get_shift_alg): Generate special code for 15-bit and 31-bit
1733 2001-11-12 Kazu Hirata <kazu@hxi.com>
1735 * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1736 doing 6-bit logical shifts on H8/S.
1737 (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1738 (get_shift_alg): Generate special code for 21-bit shifts on
1741 2001-11-12 Kazu Hirata <kazu@hxi.com>
1743 * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1746 Mon Nov 12 11:58:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1748 * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1749 if both size and offset known.
1751 2001-11-12 David O'Brien <obrien@FreeBSD.org>
1753 * config/ia64/freebsd.h: Fix misspelling.
1755 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1757 * doc/gcc.texi: Move several chapters out to ...
1758 * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1759 doc/include/linux-and-gnu.texi, doc/interface.texi,
1760 doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1761 ... here. New files.
1762 * doc/gcc.texi, doc/contrib.texi: Move section headings into
1764 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1766 2001-11-12 Kazu Hirata <kazu@hxi.com>
1768 * config/alpha/alpha-interix.h: Fix comment formatting.
1769 * config/alpha/alpha.c: Likewise.
1770 * config/alpha/alpha.h: Likewise.
1771 * config/alpha/alpha32.h: Likewise.
1772 * config/alpha/freebsd.h: Likewise.
1773 * config/alpha/unicosmk.h: Likewise.
1774 * config/alpha/vms.h: Likewise.
1776 2001-11-12 Kazu Hirata <kazu@hxi.com>
1778 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1780 2001-11-12 Jakub Jelinek <jakub@redhat.com>
1782 * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1785 Mon Nov 12 05:18:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1787 * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1789 (replace_equiv_address): Call update_temp_slot_address.
1791 * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1793 * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1795 2001-11-12 Kazu Hirata <kazu@hxi.com>
1797 * config/h8300/h8300.c (shift_alg_qi): New.
1798 (shift_alg_hi): Likewise.
1799 (shift_alg_si): Likewise.
1800 (get_shift_alg): Change the type of count to unsigned int.
1803 2001-11-11 Alexandre Oliva <aoliva@redhat.com>
1805 * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1806 * c-decl.c (c_expand_body): Take argument can_defer_p. Use it
1807 to decide whether to defer a function.
1808 (finish_function): Adjust.
1809 (c_expand_deferred_function): New function.
1810 * c-lang.c (deferred_fns): New variable.
1811 (c_init): Initialize it, and mark it as a root.
1812 (defer_fn): New function.
1813 (finish_file): Expand all deferred functions.
1814 * c-tree.h (defer_fn): Declare.
1815 (c_expand_deferred_function): Likewise.
1816 * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1817 * objc-act.c (deferred_fns): New variable.
1818 (objc_init): Initialize it, and mark it as a root.
1819 (defer_fn): New function.
1820 (finish_file): Expand all deferred functions.
1822 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1824 * alpha.c (unicosmk_special_name): Prototype.
1825 (unicosmk_ssib_name): Delete unused variable.
1826 * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1827 * alpha/vms.h (PREFIX): Undef before defining.
1828 * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1829 * i370/i370.c (mvs_hash_alias): Prototype. Wrap with macro
1830 controlling usage. Const-ify.
1831 (alias_number): Delete unused variable.
1832 * m32r/m32r.c (m32r_sched_init): Add missing argument.
1833 (m32r_expand_block_move): Fix uninitialized warnings.
1834 * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1835 always true' warnings.
1836 * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1837 * sh/sh.c: Include "integrate.h".
1838 (output_far_jump): Fix uninitialized warning.
1839 * final.c (shorten_branches): Avoid automatic aggregate
1841 * integrate.c (subst_constants): Likewise.
1843 2001-11-11 Kazu Hirata <kazu@hxi.com>
1845 * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1846 (get_shift_alg): Remove redundant code.
1848 2001-11-11 Kazu Hirata <kazu@hxi.com>
1850 * config/pa/milli64.S: Fix comment formatting.
1851 * config/pa/pa-64.h: Likewise.
1852 * config/pa/pa-linux.h: Likewise.
1853 * config/pa/pa-protos.h: Likewise.
1854 * config/pa/pa.c: Likewise.
1855 * config/pa/pa.h: Likewise.
1856 * config/pa/pa32-linux.h: Likewise.
1857 * config/pa/pa32-regs.h: Likewise.
1858 * config/pa/pa64-hpux.h: Likewise.
1859 * config/pa/pa64-regs.h: Likewise.
1860 * config/pa/som.h: Likewise.
1862 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1864 * doc/gcc.texi: Move several chapters out to ...
1865 * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1866 doc/service.texi, doc/standards.texi, doc/trouble.texi,
1867 doc/vms.texi: ... here. New files.
1868 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1870 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1872 * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1873 cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1874 collect2.c, combine.c, config.in, configure, configure.in,
1875 conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1876 genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1877 reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1880 Sun Nov 11 05:56:01 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1882 * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1883 Adjust operand number in CONST_DOUBLE.
1885 * expmed.c (extract_bit_field): No longer pass in alignment.
1886 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1887 (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1889 * expr.c (store_constructor, store_constructor_field): Likewise.
1890 (store_field, emit_group_load, emit_group_store): Likewise.
1891 * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1892 (store_bit_field, extract_bit_field): Likewise.
1893 * calls.c, expr.c, function.c: Change calls to above functions.
1894 * ifcvt.c, stmt.c: Likewise.
1896 * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1897 constant and one is on frame.
1898 If know memref offset, adjust size from decl.
1900 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1902 * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1903 format specifier warning.
1904 * convex.h (ASM_OUTPUT_BYTE): Likewise.
1905 * elfos.h (ALIGN_ASM_OP): Undef before defining.
1906 * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1908 * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1909 * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1910 * i386-interix.h (gen_stdcall_suffix): Prototype.
1911 * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1912 * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1913 ASM_OUTPUT_LONG_DOUBLE): Likewise.
1914 * i386/interix.c (gen_stdcall_suffix): Const-ify.
1915 * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1916 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1918 * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1919 * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1920 ASM_OUTPUT_LONG_DOUBLE): Likewise.
1921 * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1922 * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1923 * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1924 * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1925 * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1926 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1927 * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1928 * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1930 * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1932 * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1933 * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1934 ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1936 * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1938 * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1940 * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1941 * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1942 * m68k/news.h (PRINT_OPERAND): Likewise.
1943 * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1944 ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1945 * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1946 * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1948 * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1949 ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1950 ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1951 * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1952 * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1953 ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1954 PRINT_OPERAND): Likewise.
1955 * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1957 * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1958 * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1959 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1960 * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1961 * mips.c (mips_output_external_libcall): Mark parameter with
1963 (mips_asm_file_start): Move variable into the scope where it's
1965 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1966 * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1967 * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1968 * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1969 * ns32k.c (print_operand): Likewise.
1970 * pa.c (print_operand, output_div_insn): Likewise.
1971 * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1972 ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1973 * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1974 * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1976 * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1977 * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1978 (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1979 * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1981 * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1983 * sdbout.c (sdbout_end_epilogue): Mark parameter with
1985 * varasm.c (assemble_global): Likewise.
1987 2001-11-11 H.J. Lu <hjl@gnu.org>
1989 * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1991 Sun Nov 11 01:26:00 CET 2001 Jan Hubicka <jh@suse.cz>
1993 * final.c (*_MAX_SKIP): Use *_max_skip variables.
1994 * flags.h (align_loops_max_skip, align_jumps_max_skip,
1995 align_labels_max_skip): New global variables.
1996 * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1997 align_labels_max_skip): New global variables.
1998 (toplev_main): Set new variables.
1999 * i386.c (override_options): Set max_skip values.
2001 2001-11-10 Geoffrey Keating <geoffk@redhat.com>
2003 * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
2004 * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
2005 * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
2006 don't print an @fptr for labels either.
2007 (xstormy16_output_addr_vec): Don't print @fptr here.
2008 * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
2010 Sat Nov 10 08:50:50 2001 Jeffrey A Law (law@cygnus.com)
2012 * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
2013 an ANSI/ISO definitino.
2014 (ssa_const_prop): Likewise.
2016 2001-11-10 Aldy Hernandez <aldyh@redhat.com>
2018 * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
2021 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2023 * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
2024 * cpplex.c (hex_digit_value): Use hex_p/hex_value.
2025 * cppmain.c (general_init): Call hex_init.
2026 * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
2028 * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
2030 * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
2031 of dgux.c:output_file_start().
2033 * i386/dgux.c: Delete file.
2035 2001-11-09 Richard Henderson <rth@redhat.com>
2037 * config/alpha/alpha.c (decl_in_text_section): New.
2038 (current_file_function_operand): Use it.
2039 (alpha_encode_section_info, alpha_end_function): Likewise.
2041 2001-11-07 David O'Brien <obrien@FreeBSD.org>
2043 * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
2044 * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
2045 they are OS specific. Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
2046 so OS specific files and use CPP_PREDEFINES for their needs.
2047 * config/i64/elf.h (TARGET_VERSION): Add. Also, move inclusion of
2048 target headers to tm_file.
2049 * config/ia64/aix.h (TARGET_VERSION): Likewise.
2050 * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2051 * config/ia64/linux.h (TARGET_VERSION): Likewise.
2052 (FUNCTION_PROFILER): Remove.
2053 * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2054 version in config/ia64/linux.h.
2055 * config/ia64/freebsd.h: New file.
2056 * config/freebsd.h: Tidy up.
2057 (_USING_CONFIG_FREEBSD): Define.
2058 (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2059 (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2060 (FBSD_STARTFILE_SPEC): Likewise.
2061 (FBSD_ENDFILE_SPEC): Likewise.
2062 (FBSD_LIB_SPEC): Likewise.
2063 (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2064 (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2065 set an ELF-improper one.
2067 2001-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2069 * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2070 constant can be loaded in a single instruction to a register. When
2071 loading immediate constants, use PLUS instead of HIGH/LO_SUM. Use
2072 depdi for insertion of most significant 32-bits on 64-bit hosts.
2073 * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2074 with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2075 * pa.md: New addmove pattern for adding constant_int to HImode
2076 register and moving result to HImode register. Remove HImode HIGH
2077 and LO_SUM patterns.
2079 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2081 * Makefile.in: Update.
2082 * c-decl.c (print_lang_decl, print_lang_type): Remove.
2083 (print_lang_identifier): Rename c_print_identifier.
2084 * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2085 (print_lang_statistics, lang_print_xnode): Remove.
2086 * c-parse.in (set_yydebug): Rename c_set_yydebug.
2087 * c-tree.h (c_set_yydebug, c_print_identifier): New.
2088 * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2089 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2090 LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2091 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2092 (LANG_HOOKS_INITIALIZER): Update.
2093 * langhooks.h (struct lang_hooks): New members.
2094 (lang_print_tree_hook): New.
2095 * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2096 * print-tree.c: Include langhooks.h.
2097 (print_node): Update.
2098 * toplev.c (decode_d_option): Update.
2099 * tree.c: Include langhooks.h.
2100 (dump_tree_statistics): Update.
2101 * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2102 print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2104 * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2105 LANG_HOOKS_SET_YYDEBUG): Override.
2106 (lang_print_xnode, print_lang_statistics): Remove.
2108 2001-11-09 Richard Henderson <rth@redhat.com>
2110 * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2111 on the symbol string.
2113 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2115 * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2116 ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2117 * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2119 * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2121 * tlink.c (recompile_files): Copy strings passed to `putenv'.
2123 2001-11-09 Geoffrey Keating <geoffk@redhat.com>
2125 * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2126 (TYPE_READONLY): Likewise.
2128 * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2130 * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2131 don't pass --gdwarf2 to the assembler if the compiler will also
2134 * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2137 Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2139 * alias.c (nonoverlapping_memrefs_p): New function.
2140 (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2142 * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2144 2001-11-09 Aldy Hernandez <aldyh@redhat.com>
2146 * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2147 (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2148 generating altivec code.
2149 (FIXED_REGISTERS): VRSAVE is fixed.
2150 (CALL_USED_REGISTERS): VRSAVE is call used.
2152 2001-11-09 Jason Eckhardt <jle@rice.edu>
2154 * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2155 code the branch target as ".+16/.+12", but rather use labels.
2157 Fri Nov 9 11:27:42 2001 Jeffrey A Law (law@cygnus.com)
2159 * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2160 to work around limitations of certain versions of GAS.
2162 * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2163 (muldi3): Update due to SUBREG_BYTE changes.
2164 (casesi): Similarly.
2166 2001-11-09 Zack Weinberg <zack@codesourcery.com>
2168 * doc/invoke.texi: Remove comment referring to -xf77-version.
2170 2001-11-09 Kazu Hirata <kazu@hxi.com>
2172 * config/convex/convex.c: Fix comment formatting.
2173 * config/convex/convex.h: Likewise.
2175 2001-11-08 Zack Weinberg <zack@codesourcery.com>
2177 * Makefile.in (.po.pox): Look both in srcdir and builddir
2179 (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2180 to the source directory.
2182 2001-11-09 Ben Elliston <bje@redhat.com>
2183 Michael Meissner <meissner@redhat.com>
2184 Andrew MacLeod <amacleod@redhat.com>
2185 Richard Henderson <rth@redhat.com>
2186 Nick Clifton <nickc@redhat.com>
2187 Catherine Moore <clm@redhat.com>
2189 * m32r.c: Add support for m32rx processor.
2193 * m32r-protos.h: Add prototypes for m32rx functions.
2194 * doc/invoke.texi: Document -m32rx option.
2196 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2198 * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2201 2001-11-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2203 * doc/install.texi2html: Use $MAKEINFO --no-split.
2205 2001-11-09 Andreas Schwab <schwab@suse.de>
2207 * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2208 $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2209 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2210 $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2211 $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2213 2001-11-09 H.J. Lu <hjl@gnu.org>
2215 * config/mips/mips.c (mips_output_function_prologues): Cast
2216 `tsize' to long for output.
2218 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2220 * c-lang.c (LANG_HOOKS_NAME): New.
2221 (lang_hooks): Constify.
2222 (c_init_options): Update.
2223 (lang_identify): Remove.
2224 * c-parse.in (language_string): Remove.
2225 * dbxout.c: Include langhooks.h.
2226 (dbxout_symbol_location): Update.
2227 * dwarf2out.c: Include langhooks.h.
2228 (gen_compile_unit_die): Update.
2229 * dwarfout.c: Include langhooks.h.
2230 (prototyped_attribute, output_compile_unit_die): Update.
2231 * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2232 (LANG_HOOKS_INITIALIZER): Update.
2233 * langhooks.h (struct lang_hooks): New members. Constify.
2234 * stringpool.c: Don't include toplev.h.
2235 (set_identifier_size): Remove.
2236 * toplev.c (toplev_main): Initialize identifier size.
2237 (print_version): Update.
2238 * tree.h (language_string, init_lex, lang_identify,
2239 set_identifier_size): Remove.
2240 * Makefile.in: Update dependencies.
2241 * config/darwin.c: Include langhooks.h.
2242 (func_name_maybe_scoped): Update.
2243 * config/darwin.h (ASM_END_FILE): Update.
2244 * config/nextstep.h (ASM_END_FILE): Update.
2245 * config/nextstep21.h (ASM_END_FILE): Update.
2246 * config/i386/sun386.h (ASM_END_FILE): Update.
2247 * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2248 (rs6000_output_function_epilogue): Update.
2250 * objc-act.c (LANG_HOOKS_NAME): Override.
2251 (struct lang_hooks): Constify.
2252 (objc_init_options): Update.
2253 (lang_identify): Remove.
2255 Fri Nov 9 00:25:18 EST 2001 John Wehle (john@feith.com)
2257 * fold-const.c (lshift_double): Honor PREC.
2258 (rshift_double): Likewise.
2260 2001-11-08 Kazu Hirata <kazu@hxi.com>
2262 * config/1750a/1750a.c: Fix comment formatting.
2263 * config/1750a/1750a.h: Likewise.
2265 2001-11-08 Phil Edwards <pedwards@disaster.jaj.com>
2267 * configure.in (--enable-languages): Be more permissive about
2268 syntax. Check for empty lists better. Warn about $LANGUAGES.
2269 * configure: Regenerated.
2271 2001-11-08 Richard Henderson <rth@redhat.com>
2273 * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2275 2001-11-08 Geoffrey Keating <geoffk@redhat.com>
2277 * config.gcc: Rename stormy16 to xstormy16.
2278 * config/stormy16/stormy-abi: Likewise.
2279 * config/stormy16/stormy16-protos.h: Likewise.
2280 * config/stormy16/stormy16.c: Likewise.
2281 * config/stormy16/stormy16.h: Likewise.
2282 * config/stormy16/stormy16.md: Likewise.
2284 2001-11-06 Geoffrey Keating <geoffk@redhat.com>
2286 * tree.h (TYPE_VOLATILE): Add enable-checking code.
2287 (TYPE_READONLY): Likewise.
2289 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2291 * reload1.c (reload): Don't delete equiv insn if can throw.
2293 * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2294 (clear_storage): Likewise, for OBJECT.
2296 Thu Nov 8 16:23:51 2001 Jeffrey A Law (law@cygnus.com)
2298 * pa.c (emit_move_sequence): Fix SUBREG expression to
2299 use proper byte offset when extending a constant from
2302 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2304 * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2307 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2309 * explow.c (convert_memory_address, case SUBREG): Only return
2310 inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2312 2001-11-08 Richard Henderson <rth@redhat.com>
2314 * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2315 (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2316 (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2318 2001-11-08 Aldy Hernandez <aldyh@redhat.com>
2320 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2322 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2324 * dwarf2out.c (debug_str_hash): New.
2325 (struct indirect_string_node): New.
2326 (struct dw_val_struct): Change type of val_str to it.
2327 (DEBUG_STR_SECTION_FLAGS): Define.
2328 (add_AT_string): Push string into hashtable, increment reference
2330 (AT_string): Return string from ht_identifier.
2331 (AT_string_form): New.
2332 (free_AT): For dw_val_class_str, just decrement reference counter.
2333 (size_of_string): Remove.
2334 (size_of_die): Use AT_string_form to decide what size the string
2336 (size_of_pubnames): Use strlen instead of size_of_string.
2337 (value_format): Use AT_string_form for dw_val_class_str.
2338 (output_die): Output DW_FORM_strp strings using
2339 dw2_asm_output_offset.
2340 (indirect_string_alloc, output_indirect_string): New.
2341 (dwarf2out_finish): Emit .debug_str strings if there are any.
2343 2001-11-08 Andreas Franck <afranck@gmx.de>
2345 * configure.in: Add AC_ARG_PROGRAM to support program name
2346 transformation with --program-prefix, --program-suffix and
2347 --program-transform-name.
2348 * configure: Regenerated.
2349 * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2350 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2351 GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2352 PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2353 program_transform_name the way suggested by autoconf.
2354 (GCC_TARGET_INSTALL_NAME): Define.
2355 (install-driver): Use the transformed target alias name.
2357 2001-11-08 Richard Henderson <rth@redhat.com>
2359 * config/mips/mips.c (save_restore_insns): Remove GP from the
2360 restore registers mask early instead of special casing it inside
2363 2001-11-08 Neil Booth <neil@daikokuya.demon.co.uk>
2365 * cp/decl.c (shadow_warning): New function.
2366 (pushdecl): Improve -Wshadow warnings. Don't give both a warning
2367 and an error when a block scope decl shadows a parameter.
2369 2001-11-08 Richard Henderson <rth@redhat.com>
2371 * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2374 2001-11-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2376 * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2377 to implement floating negation on processors prior to PA 2.0.
2379 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2381 * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2382 (USE_LINKONCE_INDIRECT): Define.
2383 (dw2_output_indirect_constant_1): Try to output indirect constants
2384 into linkonce sections if possible.
2385 (dw2_force_const_mem): Likewise. Register indirect_pool with GGC.
2386 (dw2_output_indirect_constants): Likewise.
2388 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2390 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2392 2001-11-07 Neil Booth <neil@daikokuya.demon.co.uk>
2394 * c-decl.c (pushdecl): Remove file and line.
2395 * c-typeck.c (pop_init_level): Remove size.
2397 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2399 * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2402 * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2403 (TARGET_ALTIVEC): New.
2404 (TARGET_SWITCHES): Add altivec.
2405 (FIRST_PSEUDO_REGISTER): Change to 109.
2406 (CALL_USED_REGISTERS): Same.
2407 (FIRST_ALTIVEC_REGNO): New.
2408 (LAST_ALTIVEC_REGNO): New.
2409 (ALTIVEC_REGNO_P): New.
2410 (UNITS_PER_ALTIVEC_WORD): New.
2411 (ALTIVEC_VECTOR_MODE): New.
2412 (FIXED_REGISTERS): Add altivec registers.
2413 (REG_ALLOC_ORDER): Same.
2414 (HARD_REGNO_NREGS): Adjust for altivec registers.
2415 (HARD_REGNO_MODE_OK): Same.
2416 (MODES_TIEABLE_P): Same.
2417 (REGISTER_MOVE_COST): Same.
2418 (REGNO_REG_CLASS): Same.
2419 (reg_class): Add ALTIVEC_REGS.
2420 (REG_CLASS_NAMES): Same.
2421 (REG_CLASS_CONTENTS): Same.
2422 (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2423 (ALTIVEC_ARG_RETURN): New.
2424 (FUNCTION_VALUE): Handle VECTOR_TYPE.
2425 (LIBCALL_VALUE): Handle altivec vector modes.
2426 (VECTOR_MODE_SUPPORTED_P): New.
2427 (ALTIVEC_ARG_MIN_REG): New.
2428 (ALTIVEC_ARG_MAX_REG): New.
2429 (ALTIVEC_ARG_NUM_REG): New.
2430 (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2431 (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2432 (REGISTER_NAMES): Add altivec regs.
2433 (DEBUG_REGISTER_NAMES): Same.
2434 (ADDITIONAL_REGISTER_NAMES): Same.
2435 (rs6000_builtins): New.
2436 (MD_EXPAND_BUILTIN): New.
2437 (MD_INIT_BUILTINS): New.
2438 (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2439 for AltiVec instructions.
2440 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2441 (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2443 (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2444 (TARGET_SWITCHES): Add no-altivec.
2445 (DATA_ALIGNMENT): Align vectors to 128 bits.
2446 (TARGET_OPTIONS): Add abi= option.
2447 Add rs6000_abi_string extern.
2448 (LOCAL_ALIGNMENT): New.
2449 (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2450 (MASK_ALTIVEC_ABI): New.
2451 (TARGET_ALTIVEC_ABI): New.
2452 (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2454 (STACK_BOUNDARY): Adjust for altivec.
2455 (BIGGEST_ALIGNMENT): Same.
2456 (rs6000_args): Add vregno.
2457 (USE_ALTIVEC_FOR_ARG_P): New.
2458 (FIXED_REGISTERS): Add vrsave register.
2459 (CALL_USED_REGISTERS): Same.
2460 (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2461 (VRSAVE_REGNO): New.
2462 (reg_class): Add VRSAVE_REGS.
2463 (REG_CLASS_NAMES): Same.
2464 (REG_CLASS_CONTENTS): Same.
2465 (REGNO_REG_CLASS): Same.
2467 * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2468 (ABI_STACK_BOUNDARY): Same.
2469 (BIGGEST_ALIGNMENT): Same.
2470 (ADJUST_FIELD_ALIGN): Remove undef. Define anew.
2471 (ROUND_TYPE_ALIGN): Same.
2473 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2476 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2479 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2482 * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2483 (altivec_expand_builtin): New.
2484 (altivec_init_builtins): New.
2485 (TARGET_EXPAND_BUILTIN): New.
2486 (TARGET_INIT_BUILTINS): New.
2487 (rs6000_init_builtins): New.
2488 (struct builtin_description): New.
2490 (rs6000_reg_names): Add altivec registers.
2491 (alt_reg_names): Same.
2492 (secondary_reload_class): Altivec regs can hold altivec regs and
2494 (rs6000_emit_move): Force constants into memory for AltiVec moves.
2495 (print_operand): Add 'y' case for printing altivec memory
2497 (rs6000_legitimize_address): Legitimize vector addresses into
2499 (altivec_expand_binop_builtin): New.
2500 New string rs6000_current_abi.
2501 (rs6000_override_options): Call rs6000_parse_abi_options.
2502 (rs6000_parse_abi_options): New.
2503 (function_arg_boundary): Vector arguments must be 16
2505 (function_arg_advance): Handle vector arguments.
2506 (function_arg_partial_nregs): Same.
2507 (init_cumulative_args): Same.
2508 (function_arg): Same.
2510 * config/rs6000/rs6000.md (altivec_lvx): New.
2511 (type): Add altivec attribute.
2513 (*movv4si_internal): New.
2515 (*movv16qi_internal): New.
2517 (*movv8hi_internal1): New.
2519 (*movv4sf_internal1): New.
2520 (altivec_stvx): New.
2636 2001-11-07 Daniel Berlin <dan@cgsoftware.com>
2638 * Makefile.in (df.o): Add fibheap.h to dependencies.
2640 * df.h: Add prototypes for transfer functions, iterative_dataflow
2642 (enum df_flow_dir): New enum.
2643 (enum df_confluence_op): New enum.
2644 (struct df): Add inverse_rts_map.
2646 * df.c: Add sbitmap.h to the list of includes.
2647 (df_rd_global_compute): Removed.
2648 (df_ru_global_compute): Removed.
2649 (df_lr_global_compute): Removed.
2650 (df_rd_transfer_function): New function.
2651 (df_ru_transfer_function): New function.
2652 (df_lr_transfer_function): New function.
2653 (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2654 Use iterative_dataflow_bitmap instead of df_*_global_compute.
2655 (iterative_dataflow_sbitmap): New function.
2656 (iterative_dataflow_bitmap): New function.
2658 2001-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2660 * doc/gcc.texi: Move terminology and spelling conventions to
2661 htdocs/codingconventions.html.
2663 2001-11-07 Graham Stott <grahams@redhat.com>
2665 * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2667 Wed Nov 7 13:33:34 CET 2001 Jan Hubicka <jh@suse.cz>
2669 * expmed.c (expand_mult): Force operand to register before computing
2671 * i386.c (x86_decompose_lea): New global vairable.
2672 * i386.h (x86_decompose_lea): Declare.
2673 (TARGET_DECOMPOSE_LEA): New macro.
2674 (RTX_COST): Handle leas properly.
2676 2001-11-06 Richard Henderson <rth@redhat.com>
2678 * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2679 defined for a CONSTRUCTOR; don't check it.
2681 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
2683 * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2684 test for absolute pathnames.
2686 2001-11-06 Olivier Hainque <hainque@act-europe.fr>
2688 * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2689 instructions up to the target pc inclusive.
2691 2001-11-06 Steve Christiansen <smc@us.ibm.com>
2693 * loop.c (loop_regs_scan): Don't invalidate PIC register.
2695 2001-11-06 Eric Christopher <echristo@redhat.com>
2697 * config/mips/mips.md(movdf_internal2): Add constraints for float
2698 to general register move.
2699 * config/mips/elf64.h: Add default ABI.
2701 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2703 * alias.c:: Include langhooks.h.
2704 * emit-rtl.c: Similarly.
2705 * toplev.c: Similarly.
2706 * tree-inline.c: Similarly.
2707 * langhooks-def.h: New, the old langhooks.h. Give the default
2708 hooks a common prefix.
2709 * langhooks.h: Contents extracted from toplev.h.
2710 * toplev.h: Move langhook stuff to langhooks.h.
2711 * langhooks.c: Give default hooks a common prefix.
2713 * c-lang.c: Include langhooks-def.h.
2714 * objc/objc-act.c: Similarly.
2715 * Makefile.in: Update.
2716 * objc/Make-lang.in: Update.
2718 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
2720 * doc/install.texi: Document that configure options not listed in
2721 this file are unsupported. Document --with-system-zlib.
2723 Tue Nov 6 09:21:34 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2725 * rtl.h (mem_for_const_double): New declaration.
2726 * varasm.c (mem_for_const_double): New function.
2727 * config/convex/convex.md (movdf): Use it.
2728 * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2729 * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2730 * config/m68k/m68kv4.h: Likewise.
2732 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2733 of new GP reg classes.
2735 * expr.c (store_field): When making temp object for unaligned
2736 component, set it to alias set 0.
2738 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
2740 * c-common.c (c_expand_expr_stmt): Apply default conversions to
2741 non-lvalue arrays if C99.
2742 * c-typeck.c (default_conversion): Split out code handling
2743 array-to-pointer and function-to-pointer conversions into a
2744 separate default_function_array_conversion function.
2745 (default_function_array_conversion): New function. Keep track of
2746 whether any NON_LVALUE_EXPRs were stripped. Return non-lvalue
2747 arrays unchanged outside C99 mode instead of giving an error for
2749 (build_component_ref): Use pedantic_non_lvalue when handling
2750 COMPOUND_EXPR. Don't handle COND_EXPR specially.
2751 (convert_arguments): Use default_function_array_conversion.
2752 (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2754 (unary_complex_lvalue): Likewise.
2755 (internal_build_compound_expr): Use
2756 default_function_array_conversion. Apply default conversions to
2757 function in compound expression.
2758 (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2759 Use default_function_array_conversion.
2760 * doc/extend.texi: Update documentation of subscripting non-lvalue
2764 2001-11-05 Zack Weinberg <zack@codesourcery.com>
2766 * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2767 (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2768 corresponding to the complete set of .po and .gmo files in
2769 the source directory's po subdir, modified by LINGUAS. Don't
2770 look at ALL_LINGUAS.
2771 * configure.in: Don't set ALL_LINGUAS.
2772 * configure: Regenerate.
2774 * Makefile.in (.po.gmo): Don't move into source directory.
2775 (.po.pox): Clarify comments.
2776 (install-po): Look for .gmo files in both srcdir and objdir;
2777 don't fail if a file is totally missing.
2778 (distclean): rmdir ada subdirectory too.
2780 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
2782 * config/rs6000/rs6000.c (rs6000_select_section): Handle
2783 CONSTRUCTORs _correctly_.
2785 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2787 * c-decl.c (delete_block): Remove.
2788 * c-tree.h (delete_block): Remove.
2790 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2792 * cppexp.c (lex, parse_defined): Update warning about defined.
2794 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
2796 * config/rs6000/rs6000.c (rs6000_select_section): Handle
2799 2001-11-05 Nick Clifton <nickc@cambridge.redhat.com>
2801 * config/arm/arm.c (arm_return_in_memory): Cope with
2802 int_size_in_bytes returning -1.
2804 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2807 Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz>
2809 * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
2810 remove unneeded dependencies;
2812 * cfglayout.c, cfglayout.h: New files; break out from ...
2813 * bb-reorder.c: ... here; Remove unneeded includes;
2815 2001-11-04 Alan Modra <amodra@bigpond.net.au>
2817 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2819 2001-11-04 David Edelsohn <edelsohn@gnu.org>
2821 * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2822 mode as well. Do not explicitly create intermediate regs.
2824 2001-11-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2826 * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2827 (common_section): Delete unused variable.
2828 (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2829 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2830 * arm-protos.h (arm_poke_function_name, aof_add_import,
2831 aof_delete_import): Const-ify.
2832 * arm.c (legitimize_pic_address): Wrap variables in the macro
2833 controlling their usage.
2834 (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2835 (arm_poke_function_name, pic_chain, import, aof_add_import,
2836 aof_delete_import): Const-ify.
2837 * i386.c (ix86_osf_output_function_prologue): Const-ify.
2838 * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2839 ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2840 * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2841 * i860/sysv3.h: Add missing comment closure.
2842 * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2843 * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2844 to symbolic_operand.
2846 * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2847 (i960-*-*): Set tmake_file.
2848 (sparc86x-*-elf*): Fix typo in header name.
2850 * sched-rgn.c (schedule_insns): Delete unused variable.
2852 2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2855 * c-typeck.c (lookup_field): Rework to return a chain down to
2856 the looked-up field.
2857 (build_component_ref): Use the new lookup_field to handle
2858 nested anonymous entities correctly.
2860 Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2862 * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2863 Change parameters to gen_rtx_CONST_DOUBLE.
2864 (GEN_INT64, sparc_emit_set_const64): Likewise.
2865 * config/sparc/sparc.md (movdf split): Likewise.
2867 2001-11-03 Geoffrey Keating <geoffk@redhat.com>
2869 * unroll.c (calculate_giv_inc): Use find_last_value rather
2870 than just hoping the last instruction is the right SET.
2871 [Fixes 990604-1.c on stormy16.]
2873 * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2874 library at all if -T is used.
2876 * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2877 some uses of uninitialized variables in error cases.
2879 * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2880 look at 'temp' if we won't be using it.
2882 * config/stormy16/stormy16.h (CONST_COSTS): Define.
2883 (RTX_COSTS): Define.
2884 (ADDRESS_COST): Define.
2885 (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2887 * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2889 * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2890 stormy16_asm_output_mi_thunk.
2891 * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2893 * config/stormy16/stormy16-protos.h
2894 (stormy16_asm_output_mi_thunk): New prototype.
2896 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2898 * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2899 FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2900 caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2901 cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2902 sched-int.h, toplev.c, config/alpha/alpha.c,
2903 config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2904 config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2905 config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2906 config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2907 config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2908 config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2909 config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2911 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2913 * Makefile.in (dbxout.o): Depend on function.h.
2914 * collect2.c (is_in_list): Hide unused function.
2915 * dbxout.c: Include function.h.
2916 (source_label_number, dbxout_source_line, dbxout_source_file,
2917 dbxout_function_end, dbxout_begin_function): Wrap/move inside
2918 macros controlling usage.
2919 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2920 * output.h (exports_section): Prototype.
2922 * convex.c (convex_output_function_prologue): Fix format specifier
2924 (asm_declare_function_name): Fix signed/unsigned warning.
2925 (print_operand): Fix format specifier warning.
2926 * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2927 * dsp16xx-protos.h (uns_comparison_operator,
2928 num_1600_core_shifts): Prototype.
2929 * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2930 (frame_size, frame_pointer_offset): Delete.
2931 (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2932 Make static. Fix format specifier warnings.
2933 * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2934 (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2935 * dsp16xx.md: Add default case in switches.
2936 * fr30.h (IN_RANGE): Delete.
2937 * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2938 * mcore-protos.h (mcore_output_cmov): Const-ify.
2939 * mcore.c (mcore_output_cmov): Likewise.
2940 * mcore.h (switch_to_section): Make static and prototype.
2941 * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2942 unsigned>=0 warnings.
2943 * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2944 * rs6000-protos.h (read_only_data_section,
2945 read_only_private_data_section): Prototype.
2946 * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2947 * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2948 * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2950 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2952 * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2954 * final.c (final_scan_insn): Add brackets around body of if-stmt.
2955 * gcc.c (convert_filename): Add static prototype. Const-ify.
2956 Wrap variable in macros controlling its use.
2957 * output.h (sdata_section): Add prototype.
2959 * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2960 (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2961 * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2962 (ASM_FILE_START): Const-ify.
2963 (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2965 * c4x.md: Don't use the 'U' integer suffix.
2966 * clipper.md (clipper_movstr): Delete declaration.
2967 * d30v-protos.h (d30v_move_2words): Const-ify.
2968 (debug_stack_info): Add prototype.
2969 * d30v.c: Include "integrate.h".
2970 (d30v_function_arg_boundary, d30v_function_arg,
2971 d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2972 signed/unsigned warnings.
2973 (d30v_print_operand_memory_reference, d30v_move_2words):
2975 * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2976 * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2977 * fr30.md: Const-ify.
2978 * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2979 * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2980 (mvs_get_label_page): Hide unused static function.
2981 * i860.c (current_function_original_name): Const-ify.
2982 * i860/sysv3.h (current_function_original_name): Likewise.
2983 * i860/sysv4.h (current_function_original_name): Likewise.
2984 * i960.md: Add default case in switches. Remove unused variable.
2985 * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2986 * m32r.md: Const-ify.
2987 * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2988 * m68hc11.c: Include "reload.h".
2989 (static_chain_reg, print_options, m68hc11_asm_file_start):
2991 * m68hc11.md: Delete unused variable. Const-ify. Add parens
2992 around & in comparison.
2993 * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2994 * mn10200.c (shift_mode): Remove trailing comma.
2995 * mn10300-protos.h (output_tst): Const-ify.
2996 * mn10300.c (output_tst): Likewise.
2997 * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2999 * pa-protos.h (output_ascii): Use regular char *, not unsigned.
3000 * pa.c (output_ascii): Likewise.
3001 * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3002 * pdp11.md (expand_unop): Delete declarations.
3003 * pj-protos.h (pj_output_addsi3): Const-ify.
3004 * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
3005 pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
3006 unique_src_operand): Add prototypes.
3007 (pj_output_store_into_lval): Make definition static.
3008 (pj_function_incoming_arg): Don't use unary plus.
3009 (pj_output_addsi3): Const-ify.
3010 * romp.md (get_symref): Delete declarations.
3011 * v850-c.c (mark_current_function_as_interrupt): Don't return
3012 value from void function.
3013 * v850.c: Include "integrate.h".
3014 * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
3015 * vax-protos.h (const_section): Add prototype.
3017 2001-11-03 Aldy Hernandez <aldyh@redhat.com>
3019 * machmode.def: Add documentation for the seventh argument in
3022 2001-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3024 * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
3026 <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
3027 <-melf>: Don't have markup for ELF acronym.
3029 2001-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3031 * config.gcc (mmix-*-*): New target.
3032 * doc/invoke.texi: Document MMIX options.
3033 * doc/contrib.texi: Add note about MMIX port to my entry.
3034 * config/mmix/t-mmix: New file.
3035 * config/mmix/mmix.h: New file.
3036 * config/mmix/mmix-protos.h: New file.
3037 * config/mmix/mmix.c: New file.
3038 * config/mmix/mmix.md: New file.
3039 * config/mmix/crti.asm: New file.
3040 * config/mmix/crtn.asm: New file.
3042 2001-11-03 Kazu Hirata <kazu@hxi.com>
3044 * config/sparc/linux-aout.h: Fix comment formatting.
3045 * config/sparc/linux.h: Likewise.
3046 * config/sparc/linux64.h: Likewise.
3047 * config/sparc/lynx.h: Likewise.
3048 * config/sparc/pbd.h: Likewise.
3049 * config/sparc/sol2-sld-64.h: Likewise.
3050 * config/sparc/sol2.h: Likewise.
3051 * config/sparc/sparc.c: Likewise.
3052 * config/sparc/sparc.h: Likewise.
3053 * config/sparc/sparc.md: Likewise.
3054 * config/sparc/sunos4.h: Likewise.
3055 * config/sparc/vxsim.h: Likewise.
3056 * config/sparc/vxsparc.h: Likewise.
3057 * config/sparc/vxsparc64.h: Likewise.
3059 Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3061 * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3062 reference to CONST_DOUBLE_MEM in comment.
3063 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3064 (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3065 (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3066 * function.c (pop_function_context_from): Don't call
3067 restore_varasm_status.
3068 * function.h (restore_varasm_status): Delete declaration.
3069 * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3071 * rtl.def (CONST_DOUBLE): Update comment.
3072 * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3073 (CONST_DOUBLE_CHAIN): Likewise.
3074 (CONST_DOUBLE_MEM): Delete.
3075 (gen_rtx_CONST_DOUBLE): Update parameters.
3076 * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3077 Remove reference to CONST_DOUBLE_MEM.
3078 (const_alias_set): New variable.
3079 (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3080 (immed_real_const_1): Adjust tests for 0, 1, and 2.
3081 Don't set CONST_DOUBLE_MEM.
3082 (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3083 (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3084 Put constant in const_alias_set.
3085 (struct pool_constant): ALIGN now unsigned.
3086 OFFSET now HOST_WIDE_INT.
3088 (restore_varasm_status): Deleted.
3089 (mark_pool_constant): Mark desc->rtl.
3090 (force_const_mem): Rework to store rtl in hash table,
3091 not CONST_DOUBLE_MEM.
3092 Put constant in const_alias_set.
3093 (find_pool_constant): Check desc->rtl.
3094 (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3095 (init_varasm_once): Initialize const_alias_set.
3097 * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3100 * reload.c (combine_reloads): Don't combine an output reload if there
3101 are other reloads around for part of the output.
3103 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3104 constant expression.
3105 (set_mem_decl): New function.
3106 * expr.h (set_mem_decl): New declaration.
3107 * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3108 (output_asm_operand_names): Add tab.
3109 * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3111 * builtins.c (get_memory_rtx): Properly set MEM alias set and
3114 2001-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
3116 * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3117 Use "invalid" instead of "illegal". Use @r in comments in
3120 2001-11-02 Neil Booth <neil@daikokuya.demon.co.uk>
3122 * c-decl.c (pushdecl): Move block inside if conditional to remove
3123 possibility of a segfault. Lookup block-level extern
3124 variables in enclosing scopes correctly.
3126 * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3128 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
3130 * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3131 SUBREG so we avoid SUBREGing memory.
3133 * expmed.c (store_bit_field): Same.
3135 2001-11-02 DJ Delorie <dj@redhat.com>
3137 * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3138 using FP registers for DImode mem-mem moves is acceptable.
3140 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
3142 * builtins.c (apply_args_size): Handle vector arguments.
3143 (apply_result_size): Same.
3145 * machmode.def: Set WIDER mode field for all vector entries.
3147 2001-11-02 Graham Stott <grahams@redhat.com>
3149 * recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
3151 2001-11-01 Eric Christopher <echristo@redhat.com>
3153 * config.gcc: Revert part of earlier patch.
3154 * config/mips/linux.h: Ditto.
3155 * df.c: Include tm_p.h to avoid warnings.
3156 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust
3158 * config/mips/mips.c: Define mips_abi regardless.
3159 (mips_output_function_prologues): Add long casts for .frame
3161 (override_options): Allow use of ABI_32.
3163 2001-11-01 Kazu Hirata <kazu@hxi.com>
3165 * config/m68hc11/m68hc11.c: Fix comment formatting.
3166 * config/m68hc11/m68hc11.h: Likewise.
3167 * config/m68hc11/m68hc11.md: Likewise.
3169 2001-11-01 Neil Booth <neil@daikokuya.demon.co.uk>
3171 * c-typeck.c (default_conversion): Retain the original expression
3173 * gcc.dg/Wparentheses.c: New tests.
3175 2001-11-01 David S. Miller <davem@redhat.com>
3177 * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3178 64-bit Sparc description more in line with reality.
3180 2001-11-01 Joseph S. Myers <jsm28@cam.ac.uk>
3182 * Makefile.in (GCOV_OBJS): Add version.o.
3183 * gcov.c: Include "version.h" and <getopt.h>.
3184 (gcov_version_string): Remove.
3185 (print_usage): Take a parameter to determine whether this is a
3186 call from --help or an error message. Give fuller output that
3187 follows the GNU Coding Standards for --help.
3188 (print_version): New function.
3190 (process_args): Use getopt_long. Support long options. Follow
3191 GNU Coding Standards for --help and --version.
3192 * doc/gcov.texi: Document long options.
3193 Addresses part of PR other/704.
3195 2001-11-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
3197 * pa.c (output_move_double): Fix typo in double load.
3199 2001-11-01 Kazu Hirata <kazu@hxi.com>
3201 * config/h8300/h8300.c (h8300_encode_label): Compute a string
3202 before passing it to ggc_alloc_string.
3204 2001-11-01 Kazu Hirata <kazu@hxi.com>
3206 * config/m68k/3b1.h: Fix comment formatting.
3207 * config/m68k/3b1g.h: Likewise.
3208 * config/m68k/a-ux.h: Likewise.
3209 * config/m68k/amix.h: Likewise.
3210 * config/m68k/apollo68.h: Likewise.
3211 * config/m68k/atari.h: Likewise.
3212 * config/m68k/aux-exit.c: Likewise.
3213 * config/m68k/ccur-GAS.h: Likewise.
3214 * config/m68k/crds.h: Likewise.
3215 * config/m68k/dpx2.h: Likewise.
3216 * config/m68k/dpx2g.h: Likewise.
3217 * config/m68k/hp310.h: Likewise.
3218 * config/m68k/hp320.h: Likewise.
3219 * config/m68k/isi.h: Likewise.
3220 * config/m68k/linux.h: Likewise.
3221 * config/m68k/lynx.h: Likewise.
3222 * config/m68k/m68k-psos.h: Likewise.
3223 * config/m68k/m68k.c: Likewise.
3224 * config/m68k/m68k.h: Likewise.
3225 * config/m68k/m68k.md: Likewise.
3226 * config/m68k/m68kelf.h: Likewise.
3227 * config/m68k/m68kv4.h: Likewise.
3228 * config/m68k/mot3300.h: Likewise.
3229 * config/m68k/news.h: Likewise.
3230 * config/m68k/next.h: Likewise.
3231 * config/m68k/pbb.h: Likewise.
3232 * config/m68k/plexus.h: Likewise.
3233 * config/m68k/sgs.h: Likewise.
3234 * config/m68k/sun3.h: Likewise.
3235 * config/m68k/tower.h: Likewise.
3236 * config/m68k/vxm68k.h: Likewise.
3238 2001-10-31 DJ Delorie <dj@redhat.com>
3240 * config/mips/mips.h (mips_cache_flush_func): Prototype.
3241 (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3242 (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3243 * config/mips/mips.c (mips_cache_flush_func): New.
3244 * doc/invoke.texi: Document the new options.
3246 2001-10-31 Hans-Peter Nilsson <hp@axis.com>
3248 * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3249 * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3251 * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3253 * config/cris/cris.c: Include output.h after tree.h but before
3256 2001-10-31 Zack Weinberg <zack@codesourcery.com>
3258 * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3259 (INTL_SUBDIRS): Just intl.
3260 (.SUFFIXES): Add .gmo .po .pox.
3261 (native): Also depend on build-@POSUB@.
3262 (intl.all, intl.install): Depend on config.h and things it includes.
3263 (po-generated): New target; depend on c-parse.c and tradcif.c.
3264 (install-normal): Also depend on install-@POSUB@.
3265 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3266 (build-, install-, build-po, update-po, install-po,
3267 .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3269 * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3270 * configure.in: Don't munge XGETTEXT. Don't generate
3272 * configure: Regenerate.
3274 * exgettext: Delete.
3275 * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3276 * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3278 2001-10-31 Kazu Hirata <kazu@hxi.com>
3280 * config/h8300/h8300.md (two anonymous patterns): New.
3282 2001-10-31 Aldy Hernandez <aldyh@redhat.com>
3284 * tree.h (tree_index): Add support for V16QI and V8HI.
3285 (V8HI_type_node): New.
3286 (V16QI_type_node): New.
3288 * tree.c (build_common_tree_nodes_2): Same.
3290 * c-common.c (type_for_mode): Same.
3292 2001-10-31 Kazu Hirata <kazu@hxi.com>
3294 * config/i386/att.h: Fix comment formatting.
3295 * config/i386/beos-elf.h: Likewise.
3296 * config/i386/bsd.h: Likewise.
3297 * config/i386/bsd386.h: Likewise.
3298 * config/i386/crtdll.h: Likewise.
3299 * config/i386/cygwin.asm: Likewise.
3300 * config/i386/cygwin.h: Likewise.
3301 * config/i386/djgpp.h: Likewise.
3302 * config/i386/freebsd-aout.h: Likewise.
3303 * config/i386/freebsd.h: Likewise.
3304 * config/i386/gas.h: Likewise.
3305 * config/i386/i386-interix.h: Likewise.
3306 * config/i386/i386-protos.h: Likewise.
3307 * config/i386/i386.c: Likewise.
3308 * config/i386/i386.h: Likewise.
3309 * config/i386/i386.md: Likewise.
3310 * config/i386/i386elf.h: Likewise.
3311 * config/i386/interix.c: Likewise.
3312 * config/i386/isc.h: Likewise.
3313 * config/i386/isccoff.h: Likewise.
3314 * config/i386/iscdbx.h: Likewise.
3315 * config/i386/linux.h: Likewise.
3316 * config/i386/lynx.h: Likewise.
3317 * config/i386/mingw32.h: Likewise.
3318 * config/i386/netbsd-elf.h: Likewise.
3319 * config/i386/next.h: Likewise.
3320 * config/i386/osf1elf.h: Likewise.
3321 * config/i386/osfrose.h: Likewise.
3322 * config/i386/sco5.h: Likewise.
3323 * config/i386/seq-gas.h: Likewise.
3324 * config/i386/seq-sysv3.h: Likewise.
3325 * config/i386/sequent.h: Likewise.
3326 * config/i386/sol2.h: Likewise.
3327 * config/i386/sun386.h: Likewise.
3328 * config/i386/uwin.asm: Likewise.
3329 * config/i386/uwin.h: Likewise.
3330 * config/i386/vxi386.h: Likewise.
3331 * config/i386/win32.h: Likewise.
3332 * config/i386/winnt.c: Likewise.
3333 * config/i386/xm-cygwin.h: Likewise.
3334 * config/i386/xm-mingw32.h: Likewise.
3336 2001-10-31 Kazu Hirata <kazu@hxi.com>
3338 * builtins.def: Fix comment typos.
3339 * config/alpha.c: Likewise.
3340 * config/arm/arm.c: Likewise.
3341 * config/avr/avr.h: Likewise.
3342 * config/d30v/d30v.c: Likewise.
3343 * config/d30v/d30v.h: Likewise.
3344 * config/d30v/d30v.md: Likewise.
3345 * config/dsp16xx/dsp16xx.c: Likewise.
3346 * config/fr30/fr30.c: Likewise.
3347 * config/fr30/fr30.md: Likewise.
3348 * config/i386/i386.c: Likewise.
3349 * config/i860/i860.c: Likewise.
3350 * config/i960/i960.c: Likewise.
3351 * config/ia64/ia64.c: Likewise.
3352 * config/mips/mips.c: Likewise.
3353 * config/pa/pa.c: Likewise.
3354 * config/rs6000/rs6000.c: Likewise.
3355 * config/s390/s390.c: Likewise.
3356 * config/sparc/sparc.c: Likewise.
3358 2001-10-30 Kazu Hirata <kazu@hxi.com>
3360 * config/mips/elf.h: Fix comment formatting.
3361 * config/mips/elf64.h: Likewise.
3362 * config/mips/iris5.h: Likewise.
3363 * config/mips/iris5gas.h: Likewise.
3364 * config/mips/iris6.h: Likewise.
3365 * config/mips/isa3264.h: Likewise.
3366 * config/mips/linux.h: Likewise.
3367 * config/mips/mips.c: Likewise.
3368 * config/mips/mips.h: Likewise.
3369 * config/mips/mips.md: Likewise.
3370 * config/mips/mips16.S: Likewise.
3371 * config/mips/netbsd.h: Likewise.
3372 * config/mips/osfrose.h: Likewise.
3373 * config/mips/r3900.h: Likewise.
3374 * config/mips/sni-svr4.h: Likewise.
3375 * config/mips/svr4-t.h: Likewise.
3376 * config/mips/ultrix.h: Likewise.
3378 2001-10-30 Daniel Berlin <dan@cgsoftware.com>
3380 * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3381 when we update head->current.
3383 2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
3385 * tree.c (id_string_size): Remove.
3386 (dump_tree_statistics): Update.
3387 * toplev.c (compile_file): If dumping stats, dump tree stats too.
3389 Tue Oct 30 19:00:43 CET 2001 Jan Hubicka <jh@suse.cz>
3391 * sched-rgn.c (schedule_insns): Fix comment.
3393 2001-10-30 Zack Weinberg <zack@codesourcery.com>
3395 * configure.in: Correct previous change: don't assume that
3396 gas's version number _isn't_ the last thing on the line, or
3397 isn't the only number on the line, either.
3398 * configure: Regenerate.
3400 2001-10-30 Kazu Hirata <kazu@hxi.com>
3402 * cfgcleanup.c: Fix a comment typo.
3404 2001-10-30 Kazu Hirata <kazu@hxi.com>
3406 * alias.c: Fix comment formatting.
3407 * recog.c: Likewise.
3408 * config/cris/cris.c: Likewise.
3409 * config/cris/cris.h: Likewise.
3410 * config/i960/i960.c: Likewise.
3411 * config/i960/i960.h: Likewise.
3413 2001-10-30 Kazu Hirata <kazu@hxi.com>
3415 * config/arm/arm.c: Fix a comment typo.
3416 * config/arm/arm.h: Likewise.
3417 * config/ia64/ia64.c: Likewise.
3419 2001-10-30 Jakub Jelinek <jakub@redhat.com>
3421 * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3422 REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
3423 * rtl.h (set_unique_reg_note): Change return value.
3424 * gcse.c (try_replace_reg): Use set_unique_reg_note.
3425 * cse.c (cse_insn): Likewise.
3426 * expr.c (emit_move_insn): Likewise.
3427 * explow.c (force_reg): Likewise.
3428 * local-alloc (update_equiv_regs): Likewise.
3429 * loop.c (move_moveables, load_mems): Likewise.
3430 * reload (find_reloads): Likewise.
3432 2001-10-30 Paolo Bonzini <bonzini@gnu.org>
3435 * c-decl.c (parmlist_tags_warning, start_struct,
3436 check_for_loop_decls): Separate messages for struct, union and
3437 enum cases to allow for languages in which they have different
3439 * c-format.c (scanf_flag_specs): Separate short and long name of
3440 the assignment suppression feature.
3441 (check_format_types): Localize "pointer" and "different types"
3443 * c-lex.c (lex_number): Localize "an unsigned long int" and
3445 (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3447 * c-typeck.c (build_unary_up): Separate messages for increment and
3448 decrement cases to allow for languages in which they use different
3449 articles. Localize the strings "increment" and "decrement" in one
3452 Tue Oct 30 11:08:11 CET 2001 Jan Hubicka <jh@suse.cz>
3454 * lcm.c (optimize_mode_switching): Do not rebuild liveness information
3455 when no changes has been made.
3457 * gcse.c (reg_set_bitmap): Turn into reg_set.
3458 (modify_mem_list_set, canon_modify_mem_list_set)
3459 (clear_modify_mem_tables, free_modify_mem_tables): New.
3460 (gcse_main); Use free_modify_mem_tables.
3461 (free_gcse_mem): Likewise; free the bitmaps.
3462 (alloc_gcse_main): Initialize the bitmaps.
3463 (canon_list_insert): Set canon_modify_mem_list_set.
3464 (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3465 (compute_hash_table): Use clear_modify_mem_tables.
3466 (reset_opr_set_tables): Likewise.
3467 (oprs_not_set_p): reg_set_bitmap is regset.
3468 (mark_set, mark_clobber): Likewise.
3470 * df.h (DF_EQUIV_NOTES): New constant.
3471 (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3474 * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3475 (init_regions, schedule_insns): Conditionalize the checking
3476 code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3478 Tue Oct 30 11:02:31 CET 2001 Jan Hubicka <jh@suse.cz>
3480 * i386.md (movti_rex64 splitter): Fix condition.
3482 2001-10-29 Zack Weinberg <zack@codesourcery.com>
3484 * configure.in: Do not assume that gas's version number is the
3485 last thing on the first line of as --version output.
3486 * configure: Regenerate.
3488 * tradcpp.c: Include intl.h. Rename WARNING, ERROR, FATAL to
3489 MT_WARNING, MT_ERROR, MT_FATAL.
3490 (main): Call gcc_init_libintl.
3491 (v_message): Call gettext on msgid and "warning: "
3492 * tradcif.y: Include intl.h.
3493 (yyerror): Make parameter definition consistent with
3494 prototype. Call gettext on msgid argument.
3496 2001-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3498 * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3501 * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3503 Mon Oct 29 19:22:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3505 * reload1.c (eliminate_regs): Test for reg_renumber being allocated
3506 before referencing it.
3508 2001-10-26 DJ Delorie <dj@redhat.com>
3510 * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
3511 override -G, and force -G0.
3513 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3515 * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
3516 FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
3517 c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
3518 timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
3520 * loop.h (struct induction): Rename ext_dependant to
3522 * loop.c: Change all uses.
3523 (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
3524 All callers changed.
3525 * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
3527 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3529 * c-parse.in (expr_no_commas, primary), c-typeck.c
3530 (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
3532 2001-10-29 David Edelsohn <edelsohn@gnu.org>
3534 Undo assemble_name change in earlier patch.
3536 Mon Oct 29 21:11:40 2001 Nicola Pero <n.pero@mi.flashnet.it>
3538 * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
3539 determining the type of the receiver, do not check that TREE_CODE
3540 of receiver is CALL_EXPR before calling receiver_is_class_object().
3541 (receiver_is_class_object): For the GNU runtime: recognize
3542 the case that the receiver is self in a class method context.
3543 Check that TREE_CODE of receiver is CALL_EXPR when checking that
3544 the receiver is a call to objc_get_class.
3546 2001-10-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3548 * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
3550 Mon Oct 29 07:23:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3552 * Makefile.in (OBJS): Put all files in alphabetical order.
3554 * dwarf2out.c (add_const_value_attribute): Fix error in last
3557 Mon Oct 29 12:43:06 CET 2001 Jan Hubicka <jh@suse.cz>
3559 * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
3560 * cfgcleanup.c (merge_blocks): Update the life flag after merging;
3562 * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
3563 (life_analysis): call purge_all_dead_edges after deleting noops.
3564 (delete_noop_move): Do not purge CFG.
3565 * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
3567 2001-10-28 David Edelsohn <edelsohn@gnu.org>
3569 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
3570 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
3571 (ASM_GLOBALIZE_LABEL): Use assemble_name.
3572 (ASM_OUTPUT_COMMON): Likewise.
3573 * config/rs6000/rs6000.c (print_operand): Use assemble_name.
3574 (rs6000_output_function_epilogue): Likewise.
3575 (output_mi_thunk): Fix typo.
3576 (rs6000_output_symbol_ref): Use assemble_name.
3577 (output_toc): Likewise.
3578 * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
3579 * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
3580 assemble_name calls STRIP_NAME_ENCODING.
3581 (ASM_OUTPUT_LABEL): Use assemble_name.
3582 (ASM_GLOBALIZE_LABEL): Likewise.
3583 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3584 (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op. Use assemble_name.
3585 (ASM_OUTPUT_LOCAL): Likewise.
3587 Sun Oct 28 15:45:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3589 * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3590 (expand_builtin_apply, expand_builtin_return): Likewise.
3591 (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3593 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3595 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3596 ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3597 c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3598 configure, configure.in, except.c, except.h, flow.c, function.c,
3599 gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3600 predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3601 sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3602 unroll.c: Fix spelling errors.
3604 * doc/extend.texi, doc/invoke.texi: Fix spelling.
3606 * doc/gcc.texi: Document use of "dependent" and American spelling.
3608 Sun Oct 28 17:05:36 CET 2001 Jan Hubicka <jh@suse.cz>
3610 * expr.c (emit_group_load): Support CONCATs by storing them to memory
3613 Sun Oct 28 09:59:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3615 * expr.c (store_constructor_field): Only call adjust_address on MEM.
3617 Sun Oct 28 16:48:09 CET 2001 Jan Hubicka <jh@suse.cz>
3619 * genrecog.c (write_switch): Output if before switch for
3620 DT_elt_zero_wide_safe.
3622 2001-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3624 * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3625 * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3626 (FUNCTION_PROFILER): Const-ify.
3627 * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3628 (eliminate_constant_term, assemble_name, output_addr_const):
3629 Remove declarations.
3630 (ptr_half_pic_address_p, half_pic_hash): Prototype.
3631 (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3632 half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3633 * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3634 (half_pic_declare, half_pic_external): Const-ify.
3635 * toplev.c: Include "halfpic.h".
3637 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3639 * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3640 config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3641 config/i386/i386.c, config/i386/i386-interix.h,
3642 config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3643 config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3644 config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3645 config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3646 config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3647 config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3648 config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3651 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3652 ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3653 c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3654 collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3655 haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3656 regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3657 system.h, toplev.c: Fix spelling errors.
3659 Sat Oct 27 17:32:04 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3661 * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3663 * dwarf2out.c (reg_number): Abort if pseudo.
3664 (reg_loc_descriptor): Return 0 if pseudo.
3665 (is_based_loc): Return 0 if pseudo.
3666 (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3668 (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3669 (loc_descriptor): Return 0 if can't find location and handle 0
3670 return from recursive calls.
3671 (loc_descriptor_from_tree): Likewise.
3672 Fix handling of indirect.
3673 Also return 0 for PLACEHOLDER_EXPR.
3674 Clean up COMPONENT_REF cases.
3675 (add_AT_location_descriptor): Simplify, but handle 0 return from
3677 (add_const_value_attribute): Avoid shift count warning.
3678 (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3679 Set comp_unit_die as context if not in function.
3681 * config/mips/mips-protos.h: Break up long lines.
3682 Remove needless #ifdef/#endif blocks.
3683 Don't declare functions declared in file made by genpreds or recog.h.
3684 * config/mips/mips.c (mips_output_function_prologue): TSIZE
3685 is now HOST_WIDE_INT; delete unneeded casts.
3686 * config/mips/mips.h: Don't use #elif.
3688 * expr.c (stor_constructor_field): Always call adjust_address.
3689 Copy TARGET before changing its alias set.
3690 (store_field): Likewise, for TO_RTX.
3691 (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3693 (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3694 (find_placeholder): Return 0 if can't find object.
3695 (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3698 Sat Oct 27 16:31:23 CEST 2001 Jan Hubicka <jh@suse.cz>
3700 * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3702 Sat Oct 27 12:12:09 CEST 2001 Jan Hubicka <jh@suse.cz>
3704 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3705 merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3706 (merge_blocks): Properly udpate life after making edge nonfallthru.
3707 * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3709 2001-10-26 Kazu Hirata <kazu@hxi.com>
3711 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3713 2001-10-26 Neil Booth <neil@daikokuya.demon.co.uk>
3715 * c-typeck.c (convert_arguments): When comparing for enumeral
3716 type equality, use TYPE_MAIN_VARIANT.
3717 * gcc.dg/Wconversion.c: New tests.
3719 2001-10-26 Kazu Hirata <kazu@hxi.com>
3721 * s390/s390.c: Fix comment typos.
3722 * s390/s390.h: Likewise.
3723 * s390/s390.md: Likewise.
3725 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3727 * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3728 (walk_tree): Use it for tail calls where appropriate.
3730 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3732 * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3733 non-local label_refs.
3735 2001-10-26 Kazu Hirata <kazu@hxi.com>
3737 * config/h8300/h8300.md (4 anonymous patterns): New.
3739 2001-10-26 Kazu Hirata <kazu@hxi.com>
3741 * config/h8300/h8300.c (get_shift_alg): Clean up. Return the
3742 algorithm through the shift_info structure.
3743 (emit_a_shift): Update the use of get_shift_alg.
3745 2001-10-27 Daniel Berlin <dan@cgsoftware.com>
3747 * sched-rgn.c: Remove bitset typedef.
3748 Change bitset to sbitmap in prototypes / variable types.
3750 Remove edgeset_bits.
3751 Remove edgeset_size.
3752 s/BITSET_ADD/SET_BIT/g
3753 s/BITSET_INVERT/sbitmap_ones/g
3754 s/BITSET_INTER/sbitmap_a_and_b/g
3755 s/BITSET_UNION/sbitmap_a_or_b/g
3756 s/BITSET_DIFFER/sbitmap_difference/g
3757 s/bitset_member/TEST_BIT/g
3758 (BITSET_*): Removed.
3759 (bitset_member): Removed.
3760 (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3761 EXECUTE_IF_SET_IN_SBITMAP.
3762 (split_edges): Rewrite, use sbitmap functions instead of bitset
3764 (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3766 2001-10-26 Andreas Schwab <schwab@suse.de>
3768 * reload1.c (emit_input_reload_insns): Fix parens in last
3769 (undocumented) change that was supposed to change only whitespace.
3771 Fri Oct 26 07:18:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3773 * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3775 * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3778 2001-10-26 Andreas Jaeger <aj@suse.de>
3780 * flow.c (clear_log_links): Remove unused variable.
3781 * cfgcleanup.c (cleanup_cfg): Likewise.
3783 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3785 * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3786 (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3788 2001-10-26 Richard Henderson <rth@redhat.com>
3790 * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3791 rename PV_REG to R27_REG.
3792 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3793 (REG_CLASS_FROM_LETTER): Update.
3794 (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3795 * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3796 (udivsi3, modsi3, umodsi3): Likewise.
3797 (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3799 2001-10-26 Richard Henderson <rth@redhat.com>
3801 * cfg.c (clear_aux_for_blocks): Split out of ...
3802 (free_aux_for_blocks): here.
3803 (clear_aux_for_edges): Split from ...
3804 (free_aux_for_edges): here.
3805 * basic-block.h: Declare them.
3806 * lcm.c (compute_antinout_edge): Use them.
3807 (compute_laterin, compute_available, compute_nearerout): Likewise.
3808 (optimize_mode_switching): Likewise.
3810 2001-10-26 Richard Henderson <rth@redhat.com>
3812 * Makefile.in (unstage*): Remove as, ld, collect-ld before
3813 moving everything back to the main build directory.
3815 2001-10-26 Christopher Faylor <cgf@redhat.com>
3817 * config/i386/cygwin.h: Search target specific include directory, if
3820 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3822 * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3823 of macro guards. Fix #endif comment.
3825 * output.h (default_exception_section, default_eh_frame_section):
3826 Move prototypes outside of macro guard.
3828 * crtstuff.c: Fix #endif comment.
3830 Thu Oct 25 12:21:58 2001 Jeffrey A Law (law@cygnus.com)
3832 * doc/md.texi (movMM): Clarify semantics of storing into a
3833 non-paradoxical SUBREG.
3835 2001-10-25 Zack Weinberg <zack@codesourcery.com>
3837 * langhooks.c (lang_hook_default_clear_binding_stack): New.
3838 (lang_hook_default_get_alias_set): Move next to other alias
3840 * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3841 (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3842 (LANG_HOOKS_INITIALIZER): Add it.
3843 * toplev.h (struct lang_hooks): Add clear_binding_stack.
3844 * toplev.c (compile_file): Call lang_hooks.clear_binding_stack
3845 instead of a loop calling poplevel.
3847 2001-10-25 Nick Clifton <nickc@cambridge.redhat.com>
3849 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3850 occurrences of #elif with #if...#endif.
3852 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3854 * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3856 Thu Oct 25 08:46:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3858 * alias.c (can_address_p): No longer static.
3859 * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3860 Return 0 if all parameters are default values.
3861 (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3862 (adjust_address_1): Try harder to compute a size.
3863 * expr.c (expand_assignment, store_constructor): If can't address,
3864 set MEM_KEEP_ALIAS_SET_P.
3865 (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3866 (store_field): Likewise.
3867 (store_constructor): Simplify call to store_constructor_field.
3868 * expr.h (can_address_p): New declaration.
3869 * gensupport.c (gen_rtx_CONST_INT): New function.
3870 * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3871 (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3872 (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3874 * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3876 2001-10-24 Christopher Faylor <cgf@redhat.com>
3878 * config/i386/cygwin.h: Use proper path for mingw crt files when
3881 Wed Oct 24 18:43:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3883 * dwarf2out.c (file_info_cmp): Always return consistent results.
3885 2001-10-24 Roger Sayle <roger@eyesopen.com>
3887 * stmt.c (expand_end_case): Index jumptables from zero for
3888 suitably small values of minval.
3890 2001-10-24 Jakub Jelinek <jakub@redhat.com>
3892 * stor-layout.c (place_union_field): If any field was aligned with
3893 attribute aligned, set record type's TYPE_USER_ALIGN.
3894 (place_field): Likewise.
3895 (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3896 (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3898 2001-10-24 Zack Weinberg <zack@codesourcery.com>
3900 * c-common.h (struct c_common_identifier): Remove rid_code field.
3901 (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3903 * c-typeck.c (constructor_designated): New local flag.
3904 (struct constructor_stack): Add "designated" field to match.
3905 (start_init): Clear it.
3906 (really_start_incremental_init, push_init_level): Push and
3908 (pop_init_level): Pop it.
3909 (set_designator): Set it.
3911 (pop_init_level): Suppress "missing initializer" warnings if
3912 constructor_designated is true.
3913 (process_init_element): Suppress warning about union
3914 initialization under traditional C, if constructor_designated
3917 Wed Oct 24 15:35:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3919 * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3922 Wed Oct 24 13:26:12 2001 Jeffrey A Law (law@cygnus.com)
3924 * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3926 2001-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3928 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3929 the node was already a set to a constant.
3931 Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3933 * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3934 * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3936 2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3938 * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3939 (ASM_OUTPUT_ASCII): Const-ify. Fix signed/unsigned warning.
3940 (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3941 * s390.c (s390_final_chunkify): Don't use string concatenation.
3942 (s390_function_prologue, s390_function_epilogue): Const-ify.
3943 * s390.h (FUNCTION_PROFILER): Remove unused variable.
3945 2001-10-24 Jakub Jelinek <jakub@redhat.com>
3947 * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3950 2001-10-23 Stan Shebs <shebs@apple.com>
3952 * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3953 -traditional-cpp in first-stage compilation.
3955 Tue Oct 23 21:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3957 * gensupport.c (target_flags): Add.
3959 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
3961 * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3963 (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3964 * except.c (expand_builtin_frob_return_addr): Likewise.
3965 (expand_builtin_eh_return): Likewise.
3966 * stmt.c (expand_computed_goto): Likewise.
3967 * explow.c (memory_address): Likewise.
3968 (allocate_dynamic_stack_space): Clean up predicate testing.
3969 (probe_stack_range): Convert SIZE to Pmode.
3970 * calls.c (rtx_for_function_call): Only call convert_memory_address
3972 Pass function call operand as ptr_mode, not Pmode.
3973 * expr.c (expand_assignment): Clean up calls to convert_memory
3974 address by only doing so when needed and making offsets Pmode.
3975 (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3976 * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3977 is in Pmode, not ptr_mode.
3979 2001-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3981 * darwin-protos.h (constructor_section, destructor_section,
3982 mod_init_section, mod_term_section): Prototype.
3983 * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3985 * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3987 (SECTION_FUNCTION): Prototype `FUNCTION'. Delete
3988 objc_section_init declaration.
3989 (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3990 (objc_section_init, try_section_alias): Make static.
3991 (alias_section): Make static and hide unused function.
3992 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3994 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3996 * alias.c (can_address_p): Compnonents are not addressable if
3997 the containing type has alias set 0.
3998 (get_alias_set): Rework to use STRIP_NOPS.
3999 Only call front-end routine on object, type, or object with
4000 NOPs stripped, not inner values.
4001 Use language hook to call front-end routine.
4002 * builtins.c (get_memory_rtx): Always call set_mem_attributes.
4003 (expand_builtin_apply): Call set_mem_align on MEMs we make.
4004 Don't pass alignment to emit_block_move.
4005 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4006 (expand_builtin_memset): Likewise, but for clear_storage.
4007 * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
4008 and remove C++ specific parts.
4009 * c-common.h (c_common_get_alias_set): Add declaration.
4010 * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
4011 * calls.c (emit_call_1): Fix typo in sibcall_pop case.
4012 (save_fixed_argument_area): Call set_mem_align.
4013 Remove alignment in call to emit_block_move.
4014 (emit_library_call_value_1, store_one_arg): Likewise.
4015 (target_for_arg): Remove; disabled long ago.
4016 * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
4017 once and similar cleanups.
4018 (offset_address): Use proper introductory comment.
4019 * expr.c (emit_block_move): Use alignment from that of MEM args, not
4020 from explicit operand; all callers changed.
4021 (clear_storage): Likewise.
4022 (expand_assignment): Don't call set_mem_alias_set on to_rtx.
4023 (store_field): Remove kludge on alias set used for to_rtx.
4024 (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
4025 (expand_expr_unaligned): Call set_mem_attributes instead of
4027 * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
4028 * function.c (assign_stack_temp_for_type): Set MEM alignment.
4029 (expand_function_end): Track MEM attributes of trampolines.
4030 * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
4031 * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
4032 attributes from original.
4033 * langhooks.c (lang_hook_default_get_alias_set): New function.
4034 (hook_get_alias_set_0): New function.
4035 * langhooks.h (hook_get_alias_set_0): New declaration.
4036 (lang_hook_default_get_alias_set): Likewise.
4037 (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
4038 * reload1.c (alter_reg): Use adjust_address_nv.
4039 * rtl.c (get_mode_alignment): Moved to here.
4040 * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
4041 change default if unknown from 1 to BITS_PER_UNIT.
4042 * stor-layout.c (get_mode_alignment): Remove from here.
4043 * toplev.h (struct lang_hoks): Add get_alias_set field.
4044 * tree.h (lang_get_alias_set): Delete declaration.
4045 * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
4046 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4047 (ix86_va_arg): Likewise.
4048 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4049 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4050 * config/sparc/sparc.c (sparc_va_arg): Likewise.
4051 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4052 (expand_block_move_mem): Remove dead code.
4054 2001-10-22 Neil Booth <neil@daikokuya.demon.co.uk>
4056 * c-common.c (warn_div_by_zero): New.
4057 * c-common.h (warn_div_by_zero): New.
4058 * c-decl.c (c_decode_option): Take it on the command line.
4059 * c-typeck.c (build_binary_op): Warn about division by zero.
4060 * doc/invoke.texi: Document the new command line option, fix
4061 documentation of -Wmultichar.
4062 * testsuite/gcc.dg/divbyzero.c: New tests.
4063 * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4065 Tue Oct 23 15:30:23 CEST 2001 Jan Hubicka <jh@suse.cz>
4067 * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4069 * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4070 to avoid update_life_info call.
4071 * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4072 * cfgcleanup.c (bb_flags): New enum.
4073 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4074 (notice_new_block, update_forwarder_flag): New functions.
4075 (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4076 (try_forward_edges): Likewise; update flags.
4077 (merge_blocks): Likewise.
4078 (outgoing_edges_match): Likewise.
4079 (try_crossjump_to_edge): Likewise.
4080 (try_optimize_cfg): Likewise; initialize and clear the flags;
4081 recompute life info if needed.
4082 (cleanup_cfg): No need to clear aux pointers.
4084 2001-10-23 Alexandre Oliva <aoliva@redhat.com>
4086 * config/i386/i386.c (override_options): Default to minimum
4087 stack alignment when optimizing for code size.
4088 * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4091 * config/i386/i386.c (override_options): Set upper limit of
4092 -mpreferred-stack-boundary to 12.
4094 2001-10-22 Zack Weinberg <zack@codesourcery.com>
4096 * recog.c (peephole2_optimize): Add default case to switch.
4098 2001-10-23 Joseph S. Myers <jsm28@cam.ac.uk>
4100 * doc/gcc.texi (Sending Patches): Remove.
4102 2001-10-22 Hans-Peter Nilsson <hp@bitrange.com>
4104 * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4105 fields when comparing.
4107 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4109 * arm.h (HOST_INT, HOST_UINT): Delete. Remove all uses.
4110 * arm.c (HOST_INT, HOST_UINT): Likewise.
4112 2001-10-22 Stan Shebs <shebs@apple.com>
4114 * config/darwin-protos.h (darwin_exception_section): Declare.
4115 (darwin_eh_frame_section): Declare.
4117 Mon Oct 22 18:21:25 CEST 2001 Jan Hubicka <jh@suse.cz>
4119 * i386.md (movti_rex64): Fix mode.
4121 2001-10-22 Stan Shebs <shebs@apple.com>
4123 * target.h (struct gcc_target): Add asm_out.exception_section,
4124 asm_out.eh_frame_section.
4125 * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4126 (TARGET_ASM_EH_FRAME_SECTION): New.
4127 (TARGET_INITIALIZER): Update.
4128 * output.h (default_exception_section): Declare.
4129 (default_eh_frame_section): Declare.
4130 * dwarf2out.c: Include target.h.
4131 (output_call_frame_info): Call target hook for eh frames.
4132 (default_eh_frame_section): New function.
4133 * except.c: Include target.h.
4134 (output_function_exception_table): Call target hook for exception
4136 * varasm.c (default_exception_section): Rename from
4137 exception_section, remove EXCEPTION_SECTION macro.
4139 * config/darwin.h (darwin_eh_frame_section): New function.
4140 (EXCEPTION_SECTION): Remove.
4141 (TARGET_ASM_EXCEPTION_SECTION): Define.
4142 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4143 (nextstep_exception_section): New function.
4144 (nextstep_eh_frame_section): New function.
4145 (TARGET_ASM_EXCEPTION_SECTION): Define.
4146 (TARGET_ASM_EH_FRAME_SECTION): Define.
4148 * config/pa/som.h (EXCEPTION_SECTION): Remove.
4149 (TARGET_ASM_EXCEPTION_SECTION): Define.
4150 * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4151 (EXCEPTION_SECTION): Remove.
4152 (TARGET_ASM_EXCEPTION_SECTION): Define.
4153 * config/stormy16/stormy16.h: Remove comments referencing
4154 EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4156 * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4157 TARGET_ASM_EH_FRAME_SECTION.
4159 2001-10-22 Nick Clifton <nickc@cambridge.redhat.com>
4161 * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4164 * c-format.c: Fix spelling typo in comment.
4166 * sched-int.h: Fix typo in GCC preamble.
4168 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
4171 * doc/invoke.texi: Remove references to -fdump-translation-unit.
4173 2001-10-22 Richard Henderson <rth@redhat.com>
4175 * config/i386/i386.c (ix86_expand_clear): New.
4176 * config/i386/i386-protos.h: Declare it.
4177 * config/i386/i386.md (setcc peep2s): Use it.
4178 (movsi_xor): Unexport.
4180 2001-10-22 Richard Henderson <rth@redhat.com>
4182 * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4183 free_EXPR_LIST_list for LOG_LINKS.
4185 2001-10-21 Robert Lipe <robertlipe@usa.net>
4187 * config/i386/i386.c (sco_asm_named_section): Delete.
4188 (sco_asm_out_constructor): Delete.
4189 * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4190 (ASM_OUTPUT_DOUBLE_INT): Likewise.
4191 (TARGET_ASM_CONSTRUCTOR): Delete. Use default.
4192 (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4193 (EXCEPTION_SECTION): Delete EH scn renaming hack.
4195 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4197 * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4198 and/or fold extra calls into fewer ones.
4199 * collect2.c (dump_file): Likewise.
4200 * cppexp.c (parse_number): Likewise.
4201 * cpplex.c (_cpp_lex_direct): Likewise.
4202 * final.c (output_asm_insn, asm_fprintf): Likewise.
4203 * fix-header.c (inf_scan_ident, main): Likewise.
4204 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4206 * fold-const.c (real_hex_to_f): Likewise.
4207 * gen-protos.c (parse_fn_proto): Likewise.
4208 * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4209 * genrecog.c (change_state, write_action): Likewise.
4210 * gensupport.c (shift_output_template): Likewise.
4211 * local-alloc.c (requires_inout): Likewise.
4212 * mips-tfile.c (IS_ASM_IDENT): Likewise.
4213 * protoize.c (is_id_char, main): Likewise.
4214 * real.c (asctoeg): Likewise.
4215 * recog.c (asm_operand_ok): Likewise.
4216 * reload.c (find_reloads): Likewise.
4217 * scan.c (scan_identget_token): Likewise.
4218 * sched-vis.c (print_value): Likewise.
4219 * stringpool.c (ggc_alloc_string): Likewise.
4220 * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4221 * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4222 * tradcpp.c (rescan): Likewise.
4223 * tree.c (clean_symbol_name): Likewise.
4224 * varasm.c (decode_reg_name): Likewise.
4226 * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4227 * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4228 * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4229 * m88k.c (output_ascii): Likewise.
4230 * m88k.h (OVERRIDE_OPTIONS): Likewise.
4231 * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4232 * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4233 * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4235 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4237 * langhooks.c (lang_hook_default_do_nothing,
4238 lang_hook_default_decode_option): New defaults.
4239 * langhooks.h: Make hooks unconditional and non-NULL.
4240 * toplev.c (compile_file, toplev_main): Update.
4241 * toplev.h: Update comments.
4242 * objc/objc-act.c (lang_hooks): Update to new paradigm.
4244 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4246 * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4248 * system.h (IN_RANGE): New macro.
4250 2001-10-21 Zack Weinberg <zack@codesourcery.com>
4252 * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4253 INTLDEPS variable, which does not include $LIBICONV.
4254 * Makefile.in: Use INTLDEPS in LIBDEPS.
4255 * configure: Regenerate.
4257 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4259 * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4260 * cpplex.c (lex_percent, lex_dot): Remove.
4261 (get_effective_char, skip_block_comment, skip_line_comment,
4262 parse_identifier_slow, parse_number, parse_string, save_comment,
4263 _cpp_lex_direct): Update to do lookback freely.
4264 (IF_NEXT_IS, BACKUP): New macros.
4265 * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4266 * cppmacro.c (paste_tokens): Update.
4268 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
4270 * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4272 2001-10-20 Hans-Peter Nilsson <hp@axis.com>
4274 * reload1.c (reload): Check CONSTANT_P before calling
4275 LEGITIMATE_PIC_OPERAND_P.
4276 * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4277 workaround of 2001-10-13.
4279 Sat Oct 20 15:16:10 CEST 2001 Jan Hubicka <jh@suse.cz>
4281 * i386.c (split_di): Handle splitting of DFmode.
4283 Sat Oct 20 07:27:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4285 * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4286 (adjust_address_1, offset_address): Likewise.
4288 * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4289 (output_asm_insn): Call it for each line output.
4290 Don't record an operand more than once.
4292 * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4293 * main.c: Include config.h and system.h, but not ansidecl.h.
4294 * Makefile.in (main.o): Update accordingly.
4296 Sat Oct 20 12:05:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4298 * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4300 Sat Oct 20 12:01:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4302 * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4303 * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4305 (find_sub_basic_blocks): ... here;
4306 (find_many_sub_basic_blocks): New.
4307 * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4309 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4311 * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4313 * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4315 * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4316 * flow.c (update_life_info): Measure time.
4317 * c-decl.c: Include timevar.h
4318 (c_expand_body): Measure time.
4319 * toplev.c (rest_of_compilation): Measure time of mode switching
4321 * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4323 * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4324 (lang_independent_options): Add asynchronous-unwind-tables
4325 (toplev_main): flag_asynchronous_unwind_tables implies
4327 * flags.h (flag_asynchronous_unwind_tables): Declare.
4328 * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4329 flag_asynchronous_unwind_tables.
4330 (output_call_frame_info): Likewise.
4331 * invoke.texi (-fasynchronous-unwind-tables): Document.
4332 * i386.c (optimization_options): Enable
4333 flag_asynchronous_unwind_tables.
4335 * i386.c (ix86_expand_setcc): Always expect target to be QImode.
4336 * i386.md (s* expanders): Destination is QImode.
4338 * toplev.c (rest_of_compilation): Do not call clear_log_links.
4339 * rtl.h (clear_log_links): Kill.
4340 * flow.c (clear_log_links): Make static; accept blocks parameter;
4341 do no clear life info.
4342 (update_life_info): Call clear_log_links.
4344 * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4346 2001-10-20 Neil Booth <neil@daikokuya.demon.co.uk>
4348 * cpplex.c (handle_newline, skip_escaped_newlines,
4349 get_effective_char, skip_block_comment, skip_line_comment,
4350 parse_identifier_slow, parse_number, parse_string,
4351 _cpp_lex_direct): Update to do more stepping back.
4352 (trigraph_ok): Similarly. Rename trigraph_p.
4353 (SAVE_STATE, RESTORE_STATE): Remove.
4354 (BUFF_SIZE_UPPER_BOUND): Tweak. Add sanity check.
4356 * cpplib.c (destringize): Rename destringize_and_run, and
4357 call run_directive directly.
4358 (_cpp_do__Pragma): Simplify.
4360 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4362 * pe.c (arm_pe_unique_section): Const-ify.
4363 * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4364 (switch_to_section): Add static prototype.
4366 * output.h (drectve_section): Prototype.
4368 2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4370 * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4371 fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4372 parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4373 i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4374 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4375 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4376 i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4377 i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4378 i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4379 i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4380 i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4381 i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4382 ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4383 mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4384 powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4385 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4386 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4387 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4388 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4389 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4390 rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4391 sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4392 v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4393 cris-*-none, cris-*-linux*: Update ${tmfile} list.
4394 (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4395 i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4396 mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4397 powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4398 v850-*-*): Delete superflous ${cpu_type} setting.
4399 * config/linux.h: Delete svr4.h include.
4400 (SET_ASM_OP): Delete.
4401 * config/netware.h (INT_ASM_OP): Undef before define.
4402 * config/ptx4.h: Delete elfos.h include.
4403 (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4404 * config/svr4.h: Delete elfos.h include. Update commentary.
4405 * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4406 config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4407 config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4408 config/v850/v850.h: Delete svr4.h include.
4409 * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4410 config/m68k/m68kv4.h, config/m88k/sysv4.h,
4411 config/sparc/sysv4.h: Update includes.
4412 * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4413 config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4414 config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4415 config/m88k/dguxbcs.h: Delete includes.
4416 * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4417 (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4418 * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4420 * config/m88k/dgux.h: Delete include.
4421 (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
4423 * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4424 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4425 * config/sh/elf.h: Update include.
4426 (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4427 DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4429 2001-10-19 Catherine Moore <clm@redhat.com>
4431 * config/stormy16/stormy-abi: Updates to varargs descriptions.
4432 * config/stormy16/stormy16.c (stormy16_build_va_list): Reverse
4433 base and count fields.
4434 (stormy16_expand_builtin_va_start): last_reg_count changed to
4435 size_of_reg_args. Use count + size in first comparison.
4437 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4439 * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4440 * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4441 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4442 TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4443 Set alignment from type if INDIRECT_REF.
4444 (adjust_address_1, offset_address): Simplify alignment compuitation.
4445 * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4446 here; done by set_mem_attributes.
4448 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4450 * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4451 * arm-protos.h (rdata_section, zero_init_section, common_section):
4453 * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4454 * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4455 traditional mode stringification.
4456 * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4457 in macros controling its use.
4458 * rtlanal.c: Include tm_p.h.
4459 * varasm.c (asm_output_aligned_bss): Mark parameter with
4461 (assemble_constant_align, assemble_start_function, assemble_align,
4462 assemble_variable, assemble_trampoline_template,
4463 output_constant_def_contents): Wrap potentially empty if-stmt body
4466 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4468 * a29k-protos.h (literal_section): Prototype.
4469 * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4470 * a29k.md: Ensure function pointers are prototyped.
4471 * genattrtab.c (write_eligible_delay): Mark parameter with
4474 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4476 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4477 * 1750a.c (print_operand): Fix format specifier warning.
4478 * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4479 * 1750a.md: Likewise.
4480 * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4481 * genemit.c (output_add_clobbers): Mark parameter with
4483 * genrecog.c (write_subroutine): Likewise.
4484 * integrate.c (expand_inline_function): Delete unused variable.
4485 * varasm.c (remove_from_pending_weak_list): Wrap with
4488 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4490 * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4491 field is different to previous argument's neg field.
4493 * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4495 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4497 * final.c (get_decl_from_op): New function.
4498 (output_asm_insn): Call it; write "*" when item with decl is address.
4500 2001-10-19 Janis Johnson <janis187@us.ibm.com>
4502 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4503 about 64-bit support from the 3.0_branch version.
4505 2001-10-19 Zack Weinberg <zack@codesourcery.com>
4507 * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
4508 USE_INCLUDED_LIBINTL when appropriate.
4509 * configure, config.in: Regenerate.
4510 * Makefile.in (datadir): Set to @datadir@.
4511 (intl.o): Also depend on $(CONFIG_H) and system.h.
4513 * intl.c: Factor out common gettext initialization sequence.
4514 (gcc_init_libintl): New function.
4515 * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
4516 otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
4517 off NLS. Add multiple include guard. No need to #ifdef-guard
4518 an #undef. Prototype gcc_init_libintl here.
4520 * collect2.c (main), cppmain.c (general_init), gcc.c (main),
4521 gcov.c (main), protoize.c (main), toplev.c (toplev_main):
4522 Use gcc_init_libintl.
4524 2001-10-19 Catherine Moore <clm@redhat.com>
4526 * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
4528 * config/stormy16/stormy16.c (stormy16_split_move): Make
4529 sure that REG_INC notes are present for auto_inc operands.
4531 2001-10-19 Andreas Jaeger <aj@suse.de>
4533 * configure: Regenerated.
4534 * configure.in: Add x86_64 to switch statements.
4536 2001-10-18 Richard Henderson <rth@redhat.com>
4538 * config/alpha/alpha.md (sibcall_osf_1): Load destination
4539 address into $27 explicitly.
4540 (sibcall_value_osf_1): Likewise.
4542 Thu Oct 18 16:07:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4544 * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
4545 (offset_address): New function.
4546 (free_emit_status): Free regno_decl.
4547 (init_emit): Pass proper number of elements to xcalloc.
4548 Allocate regno_decl.
4549 (mark_emit_status): Mark regno_decl values.
4550 * expr.c (highest_pow2_factor): New function.
4551 (expand_assigment): Use it and offset_address.
4552 Properly handle ptr_mode vs. Pmode in offset calculation.
4553 (store_constructor, expand_expr_unaligned): Likewise.
4554 (expand_expr, case COMPONENT_EXPR): Likewise.
4555 * expr.h (offset_address): New decl.
4556 * function.h (struct emit_status): Add regno_decl.
4557 (REGNO_DECL): New macro.
4558 * final.c (output_asm_name): Move in file and don't conditionalize
4559 on flag_print_asm_name.
4560 (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
4561 Output names of operands, if known.
4562 * function.c (assign_parms): Set REGNO_DECL.
4563 * integrate.c (integrate_decl_tree): Likewise.
4564 * stmt.c (expand_decl): Likewise.
4565 * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
4567 2001-10-18 Alexandre Oliva <aoliva@redhat.com>
4569 * attribs.c (handle_noinline_attribute): New function.
4570 (handle_used_attribute): Likewise.
4571 (c_common_attribute_table): Added noinline and used.
4572 * doc/extend.texi (Function Attributes): Document them.
4573 * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
4574 Warn when merging inline with attribute noinline.
4575 (start_decl, start_function): Warn if inline and attribute
4576 noinline appear in the same declaration.
4578 2001-10-17 Neil Booth <neil@daikokuya.demon.co.uk>
4580 * config.gcc: Update c4x and i370 for C front end-specific
4582 * config/c4x/c4x-c.c: New.
4583 * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
4584 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4586 * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4587 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4589 (c4x_init_pragma): Remove.
4590 (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4591 c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4592 c4x_pr_ignored): Move to c4x-c.c.
4593 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4594 * config/c4x/t-c4x: Update.
4595 * config/i370/i370-c.c: New.
4596 * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4597 (i370_pr_map): Move to i370-c.c.
4598 * config/i370/t-i370: New.
4600 * doc/tm.texi: Update.
4602 2001-10-17 Stan Shebs <shebs@apple.com>
4604 * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4605 typo fixes throughout.
4606 (machopic_output_stub): Remove some dead code.
4608 2001-10-17 Richard Earnshaw <rearnsha@arm.com>
4610 * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4613 Wed Oct 17 05:26:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4615 * Makefile.in (print-rtl.o): Depend on TREE_H.
4616 * alias.c (get_alias_set): Make two passes over objects to first
4617 see if inner object is access via restricted pointer.
4618 Defer allocating alias set for restricted pointer until here.
4619 Call find_placeholder with second arg nonzero.
4621 * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4622 set for restricted pointer types.
4623 * emit-rtl.c (set_mem_attributes): Set more attributes.
4624 (set_mem_align, change_address, adjust_address_1): New functions.
4625 (change_address_1): Now static.
4626 (adjust_address, adjust_address_nv): Deleted.
4627 (replace_equiv_address): Call change_address_1.
4628 * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4629 (find_placeholder): Get starting point from PLIST arg.
4630 (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4631 * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4632 (adjust_address, adjust_address_nv): New macros.
4633 * print-rtl.c (tree.h): New include.
4634 (print_rtx, case MEM): Print all memory attributes.
4636 2001-10-17 Richard Henderson <rth@redhat.com>
4638 * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4640 2001-10-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
4642 * c-tree.texi: Eliminate duplicated word.
4643 * cpp.texi: Likewise.
4644 * install.texi: Likewise.
4645 * invoke.texi: Likewise.
4646 * tm.texi: Likewise.
4648 2001-10-17 Michael Collison <collison@isisinc.net>
4650 * dsp16xx.c: Fix comment formatting to match GNU standards.
4651 (dsp16xx_output_function_prologue): Change type of 'size'
4652 parameter from 'int' to HOST_WIDE_INT.
4653 (dsp16xx_output_function_epilogue): Change type of 'size'
4654 parameter from 'int' to HOST_WIDE_INT.
4656 2001-10-16 Richard Henderson <rth@redhat.com>
4658 * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4659 * configure, config.in: Rebuild.
4661 * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4662 (ix86_output_addr_diff_elt): New.
4663 * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4664 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4665 (JUMP_TABLES_IN_TEXT_SECTION): New.
4666 * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4667 * config/i386/i386-protos.h: Update.
4669 * config/i386/386bsd.h, config/i386/beos-elf.h,
4670 config/i386/freebsd-aout.h, config/i386/freebsd.h,
4671 config/i386/i386-interix.h, config/i386/i386elf.h,
4672 config/i386/linux.h, config/i386/netbsd-elf.h,
4673 config/i386/netbsd.h, config/i386/openbsd.h,
4674 config/i386/ptx4-i.h, config/i386/rtemself.h,
4675 config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4676 (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4678 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
4680 * stmt.c (expand_asm_operands): Update commentary.
4682 2001-10-16 Stan Shebs <shebs@apple.com>
4684 * config/darwin.h (GCC_NAME): Remove, no longer used.
4685 (NO_MATH_LIBRARY): Ditto.
4686 (MATH_LIBRARY): Define to emptiness.
4687 (DWARF2_DEBUGGING_INFO): Define.
4688 (PREFERRED_DEBUGGING_TYPE): Define.
4689 (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4690 (EXCEPTION_SECTION): Define.
4691 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4692 * config/darwin.c (darwin_encode_section_info): Handle case of
4693 DECL_INITIAL being error_mark_node.
4695 2001-10-16 Richard Henderson <rth@redhat.com>
4697 * alpha.c (current_file_function_operand): Don't fail for profiling.
4698 (direct_call_operand): New.
4699 * alpha-protos.h: Declare it.
4700 * alpha.h (EXTRA_CONSTRAINT): Use it.
4701 (PREDICATE_CODES): Add it.
4702 (ASM_OUTPUT_MI_THUNK): Remove.
4703 * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4704 * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4706 2001-10-16 Krister Walfridsson <cato@df.lth.se>
4708 * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4709 (JUMP_TABLES_IN_TEXT_SECTION): Define.
4711 Wed Oct 17 00:21:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4713 * cfg.c (free_edge): Break out from ....
4714 (remove_edge): ... here.
4715 (clear_edges): Use free_edge.
4717 * att.h (ASM_QUAD): Add comment.
4718 * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4720 Wed Oct 17 00:01:02 CEST 2001 Jan Hubicka <jh@suse.cz>
4722 * i386.c (split_ti): New function.
4723 (ix86_split_to_parts): Support TImodes.
4724 * i386.h (VALID_INT_MODE_P): Add TImode.
4725 * i386.md (movdi splitter): Fix.
4726 (movti): Support 64bit integer registers.
4727 (movti_rex64): New function and splitter.
4729 * i386.c (*_cost): Add movsx/movzx cost.
4730 * i386.h (struct processor_costs): Add movsx/movzx fields.
4731 (RTX_COSTS): Handle zero/sign extend + avoid believing that
4732 64bit operations require split on 64bit machine.
4733 (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4735 * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4736 (ix86_expand_move): Avoid pushes of memory if size does not match;
4737 move long constants to register.
4738 (x86_initialize_trampoline): Fix mode.
4739 * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4740 Use ASM_QUAD on 64bit.
4741 * i386.md (test pattern): Disallow impossible constants.
4742 (tablejump PIC expander): Fix emitting of sum.
4743 (movdicc_rex64): Rename to movdicc.
4744 * linux64.h (LINK_SPEC): Add missing '%'.
4746 2001-10-16 Alexandre Oliva <aoliva@redhat.com>
4748 * tree-inline.c (inlinable_function_p): Leave it up to the
4749 front-end to turn -finline-functions into DECL_INLINE set for all
4752 2001-10-16 Stan Shebs <shebs@apple.com>
4754 * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4756 2001-10-16 Alan Modra <amodra@bigpond.net.au>
4758 * recog.c: Formatting and comment typo fixes.
4760 * configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas
4761 version in single tree build.
4762 * configure: Regenerate.
4764 2001-10-15 David Edelsohn <edelsohn@gnu.org>
4766 * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4767 MODE arguments to gen_rtx and compare operand with const0_rtx.
4769 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
4771 * system.h: Poison old unused target macros.
4772 * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4773 * config/stormy16/stormy16.c: Update references to obsolete macros.
4774 * config/stormy16/stormy16.h: Similarly.
4775 * config/stormy16/stormy16.md: Similarly.
4776 * config/cris/cris.h: Similarly.
4778 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
4780 * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4781 (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4782 cpp_register_pragma): Update accordingly.
4784 2001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
4786 * c-pragma.h (cpp_register_pragma_space): Remove.
4787 * cpplib.h (cpp_register_pragma_space): Remove.
4788 * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4789 (cpp_register_pragma_space): Remove.
4790 (cpp_register_pragma): Simplify using lookup_pragma_entry,
4792 (do_pragma): Similarly.
4793 (_cpp_init_internal_pragmas): Don't register namespaces.
4795 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4796 Don't register namespaces.
4797 * cp/lex.c (init_cp_pragma): Similarly.
4798 * doc/tm.texi: Update.
4800 2001-10-10 Craig Rodrigues <rodrigc@gcc.gnu.org>
4803 * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4805 2001-10-13 Michael Collison <collison@dhcp-12-114.townisp.com>
4807 * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4808 add scheduling support.
4809 * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4810 * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4811 * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4814 2001-10-13 Hans-Peter Nilsson <hp@axis.com>
4816 * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4817 missing CONSTANT_P test in core GCC.
4819 2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk>
4821 * cppmain.c (struct printer): New member source.
4822 (scan_translation_unit): Fix spacing at start of lines.
4823 (cb_line_change): Update.
4825 * gcc.dg/cpp/spacing2.c: New test.
4827 2001-10-12 Hans-Peter Nilsson <hp@axis.com>
4829 * config/cris/arit.c: Use __builtin_labs, not abs.
4831 * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4833 * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4834 misplaced sprintf and fprintf argument.
4836 2001-10-12 Zack Weinberg <zack@codesourcery.com>
4838 * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4839 * configure.in, Makefile.in: Take out obsolete check-po logic.
4840 * configure, config.in: Regenerate.
4842 2001-10-12 Ziemowit Laski <zlaski@apple.com>
4844 * objc/objc-act.c (finish_objc): Correct precondition for emitting
4845 symtab declarations.
4847 2001-10-12 Stan Shebs <shebs@apple.com>
4849 * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4850 declarations of arguments and local variables.
4852 2001-10-12 Christopher Faylor <cgf@redhat.com>
4854 * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4855 ENDFILE_SPEC definition.
4857 2001-10-12 Kazu Hirata <kazu@hxi.com>
4859 * gthr-dce.h: Fix comment formatting.
4860 * gthr-posix.h: Likewise.
4861 * gthr-single.h: Likewise.
4862 * gthr-solaris.h: Likewise.
4863 * gthr-vxworks.h: Likewise.
4864 * gthr-win32.h: Likewise.
4866 2001-10-12 Jakub Jelinek <jakub@redhat.com>
4868 * final.c (output_asm_insn): Make sure assembly dialects are
4869 terminated, not nested. Output `|' and `}' characters if they
4870 don't appear inside assembly dialect selection.
4871 * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4872 rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4873 rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4874 strsetsi_rex_1): Add {} braces.
4876 2001-10-11 Zack Weinberg <zack@codesourcery.com>
4878 * toplev.c (compile_file): Ignore return value from yyparse.
4879 Always pop any nested binding levels after yyparse returns.
4881 2001-10-11 Richard Henderson <rth@redhat.com>
4883 * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4885 2001-10-11 Richard Henderson <rth@redhat.com>
4887 * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4888 fall back to add_AT_long_long for large CONST_INT.
4890 2001-10-11 Richard Henderson <rth@redhat.com>
4892 * config/i386/i386.md (setcc splitters): Add four splitters to
4893 simplify compound compares that simplify_comparison can't handle.
4895 2001-10-11 Zack Weinberg <zack@codesourcery.com>
4897 * cpplex.c (digraph_spellings, token_spellings): Make static.
4899 2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4901 * unroll.c (loop_iterations): Fixup last patch.
4903 2001-10-11 Richard Henderson <rth@redhat.com>
4905 * rtl.h (REG_VTABLE_REF): New.
4906 * rtl.c (reg_note_name): Add it.
4907 * combine.c (distribute_notes): Handle it.
4908 * final.c (final_scan_insn): Handle it.
4909 * tree.def (VTABLE_REF): New.
4910 * expr.c (expand_expr): Handle it.
4911 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4912 * output.h: Declare them.
4914 2001-10-11 Richard Henderson <rth@redhat.com>
4916 * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4919 2001-10-11 David Edelsohn <edelsohn@gnu.org>
4921 * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4922 available in 64-bit mode.
4924 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
4926 * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4927 cris-*-linux* cases.
4928 * config/cris/cris-protos.h: New file.
4929 * config/cris/cris.c: New file.
4930 * config/cris/cris.h: New file.
4931 * config/cris/cris.md: New file.
4932 * config/cris/linux.h: New file.
4933 * config/cris/aout.h: New file.
4934 * config/cris/arit.c: New file.
4935 * config/cris/cris_abi_symbol.c: New file.
4936 * config/cris/mulsi3.asm: New file.
4937 * config/cris/t-aout: New file.
4938 * config/cris/t-cris: New file.
4939 * config/cris/t-elfmulti: New file.
4940 * config/cris/t-linux: New file.
4941 * doc/invoke.texi: Add CRIS options.
4942 * doc/install.texi (Specific): Add blurb for CRIS.
4944 2001-10-10 Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4946 * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4948 * config/float/i32.h: Likewise.
4949 * config/float-i386.h: Likewise.
4950 * config/float-i64.h: Likewise.
4951 * config/float-m68k.h: Likewise.
4952 * config/float-sh.h: Likewise.
4953 * config/float-sparc.h: Likewise.
4955 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
4957 * doc/contrib.texi: Add note about CRIS port to my entry.
4959 2001-10-11 Kazu Hirata <kazu@hxi.com>
4961 * basic-block.h: Fix formatting.
4962 * bitmap.h: Likewise.
4963 * cpplib.h: Likewise.
4964 * c-tree.h: Likewise.
4965 * diagnostic.h: Likewise.
4966 * flags.h: Likewise.
4968 * longlong.h: Likewise.
4970 * reload.h: Likewise.
4974 2001-10-10 Richard Henderson <rth@redhat.com>
4976 * c-parse.in (asm_operand): Allow named operands.
4977 * genconfig.c (max_recog_operands): Set to 29.
4978 * local-alloc.c (requires_inout): Skip multiple digits.
4979 * recog.c (asm_operand_ok): Likewise.
4980 (preprocess_constraints): Use strtoul for matching constraints.
4981 (constrain_operands): Likewise.
4982 * regmove.c (find_matches): Likewise.
4983 * reload.c (find_reloads): Likewise.
4984 * stmt.c (parse_output_constraint): Don't reject in-out
4985 constraint on operands > 9. Reject '[' in constraint.
4986 (expand_asm_operands): Handle named operands. Use strtoul
4987 for matching constraints.
4988 (check_operand_nalternatives): Split out from expand_asm_operands.
4989 (check_unique_operand_names): New.
4990 (resolve_operand_names, resolve_operand_name_1): New.
4992 * doc/extend.texi (Extended Asm): Document named operands.
4993 * doc/md.texi (Simple Constraints): Document matching constraints
4996 2001-10-10 Richard Henderson <rth@redhat.com>
4998 * combine.c (try_combine): Handle a SEQUENCE of one insn.
5000 * i386.c (test splitter): Narrow tests vs paradoxical subregs.
5001 (jcc splitters): Add two splitters to simplify compound compares
5002 that simplify_comparison can't handle.
5004 2001-10-10 Richard Henderson <rth@redhat.com>
5006 * langhooks.c: Include langhooks.h.
5007 * Makefile.in (langhooks.o): Depend on it.
5009 Wed Oct 10 23:49:06 EDT 2001 John Wehle (john@feith.com)
5011 * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
5012 should not be considered as a no-op.
5013 * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
5015 2001-10-10 Stan Shebs <shebs@apple.com>
5017 * alias.c: Remove uses of "register" specifier in declarations
5018 of arguments and local variables.
5019 * c-common.c: Ditto.
5020 * c-convert.c: Ditto.
5022 * c-format.c: Ditto.
5023 * c-semantics.c: Ditto.
5024 * c-typeck.c: Ditto.
5025 * caller-save.c: Ditto.
5028 * cfgbuild.c: Ditto.
5030 * collect2.c: Ditto.
5034 * cppfiles.c: Ditto.
5037 * defaults.h: Ditto.
5039 * dwarf2out.c: Ditto.
5040 * dwarfout.c: Ditto.
5041 * emit-rtl.c: Ditto.
5046 * fix-header.c: Ditto.
5047 * floatlib.c: Ditto.
5049 * fold-const.c: Ditto.
5050 * function.c: Ditto.
5053 * gen-protos.c: Ditto.
5054 * genattrtab.c: Ditto.
5055 * gencheck.c: Ditto.
5056 * genconfig.c: Ditto.
5058 * genextract.c: Ditto.
5059 * genflags.c: Ditto.
5060 * gengenrtl.c: Ditto.
5061 * genoutput.c: Ditto.
5063 * genrecog.c: Ditto.
5064 * gensupport.c: Ditto.
5068 * haifa-sched.c: Ditto.
5069 * hard-reg-set.h: Ditto.
5071 * integrate.c: Ditto.
5074 * local-alloc.c: Ditto.
5076 * mips-tdump.c: Ditto.
5077 * mips-tfile.c: Ditto.
5080 * print-rtl.c: Ditto.
5081 * read-rtl.c: Ditto.
5084 * reg-stack.c: Ditto.
5085 * regclass.c: Ditto.
5090 * resource.c: Ditto.
5094 * sched-deps.c: Ditto.
5095 * sched-rgn.c: Ditto.
5097 * simplify-rtx.c: Ditto.
5099 * stor-layout.c: Ditto.
5106 * xcoffout.c: Ditto.
5108 2001-10-10 Richard Henderson <rth@redhat.com>
5110 * rtl.h (can_reverse_comparison_p): Remove.
5112 2001-10-10 Christopher Faylor <cgf@redhat.com>
5114 * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5117 2001-10-10 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5119 * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5120 (Thanks to Chris Faylor for suggesting macro name).
5121 (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5123 (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5124 (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5125 (MATH_LIBRARY): Undef before definition.
5126 (OUTPUT_QUOTED_STRING): Likewise.
5127 * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5129 2001-10-10 Richard Henderson <rth@redhat.com>
5131 * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5132 (fde_unencoded_compare): Likewise. Don't use subtraction to get
5133 a tristate comparison value.
5134 (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5136 2001-10-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5139 * unroll.c (loop_iterations): Ignore insns generated by loop
5142 * config.gcc (mips*-*-gnu*): Delete support.
5143 * config/mips/gnu.h: Remove.
5145 2001-10-10 Kazu Hirata <kazu@hxi.com>
5147 * calls.c: Fix formatting.
5148 * c-decl.c: Likewise.
5149 * cfgcleanup.c: Likewise.
5150 * combine.c: Likewise.
5151 * cppfiles.c: Likewise.
5152 * cpplib.c: Likewise.
5153 * cppmacro.c: Likewise.
5154 * crtstuff.c: Likewise.
5156 * dwarf2out.c: Likewise.
5157 * expmed.c: Likewise.
5159 * fold-const.c: Likewise.
5160 * function.c: Likewise.
5162 * genattrtab.c: Likewise.
5163 * ggc-page.c: Likewise.
5164 * integrate.c: Likewise.
5165 * libgcc2.c: Likewise.
5167 * optabs.c: Likewise.
5168 * profile.c: Likewise.
5169 * protoize.c: Likewise.
5171 * recog.c: Likewise.
5172 * reload1.c: Likewise.
5173 * reload.c: Likewise.
5174 * reorg.c: Likewise.
5175 * resource.c: Likewise.
5176 * sched-rgn.c: Likewise.
5177 * sdbout.c: Likewise.
5179 * toplev.c: Likewise.
5180 * varasm.c: Likewise.
5182 2001-10-10 Janis Johnson <janis187@us.ibm.com>, Alexandre Oliva <aoliva@redhat.com>
5184 * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5185 * Makefile.in (langhooks.o): Add dependencies.
5187 Wed Oct 10 00:41:29 EDT 2001 John Wehle (john@feith.com)
5189 * rs6000.c (rs6000_emit_load_toc_table): Don't
5190 strdup the toc label.
5191 (create_TOC_reference): Likewise.
5193 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5195 * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5198 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5200 * config/i386/i386.c (ix86_attribute_table): Correct
5201 min_len, max_len fields for dllimport, dllexport and shared.
5203 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
5205 * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5206 doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5207 Consistently use "nonzero" instead of "non-zero".
5209 2001-10-09 Kazu Hirata <kazu@hxi.com>
5211 * acconfig.h: Fix comment formatting.
5212 * c-dump.h: Likewise.
5213 * c-tree.h: Likewise.
5214 * conditions.h: Likewise.
5216 * function.h: Likewise.
5218 * hwint.h: Likewise.
5219 * integrate.h: Likewise.
5222 * optabs.h: Likewise.
5224 2001-10-09 Kazu Hirata <kazu@hxi.com>
5226 * c-common.h: Fix comment formatting.
5227 * c-dump.c: Likewise.
5229 * diagnostic.h: Likewise.
5230 * except.c: Likewise.
5232 * gcov-io.h: Likewise.
5233 * genattrtab.c: Likewise.
5234 * output.h: Likewise.
5235 * predict.h: Likewise.
5236 * reload1.c: Likewise.
5237 * reload.h: Likewise.
5238 * resource.h: Likewise.
5240 * system.h: Likewise.
5242 * tree-inline.c: Likewise.
5243 * tsystem.h: Likewise.
5244 * varasm.c: Likewise.
5245 * xcoffout.h: Likewise.
5247 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5249 * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5251 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5253 * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5254 config/i386/i386elf.h, config/i386/netbsd-elf.h,
5255 config/i386/netware.h, config/mcore/gfloat.h,
5256 config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5257 config/netware.h, gccbug.in: Update FSF address.
5259 2001-10-09 Kazu Hirata <kazu@hxi.com>
5261 * c-common.c: Fix comment typos.
5262 * cfgrtl.c: Likewise.
5263 * collect2.c: Likewise.
5264 * cpplex.c: Likewise.
5265 * doloop.c: Likewise.
5266 * dwarf2out.c: Likewise.
5267 * dwarfout.c: Likewise.
5269 * fold-const.c: Likewise.
5273 * global.c: Likewise.
5274 * ifcvt.c: Likewise.
5276 * optabs.c: Likewise.
5277 * protoize.c: Likewise.
5278 * regclass.c: Likewise.
5279 * reorg.c: Likewise.
5283 * doc/cpp.texi: Likewise.
5284 * doc/c-tree.texi: Likewise.
5285 * doc/extend.texi: Likewise.
5286 * doc/invoke.texi: Likewise.
5287 * doc/objc.texi: Likewise.
5288 * doc/tm.texi: Likewise.
5290 2001-10-08 Richard Henderson <rth@redhat.com>
5292 * varasm.c (set_named_section_flags): Initialize "declared".
5294 2001-10-08 Robert Lipe <robertlipe@usa.net>
5296 * varasm.c (struct in_named_entry): Add declared.
5297 (named_section_first_declaration): New function.
5298 (default_elf_asm_named_section): Use it.
5299 * output.h (named_section_first_declaration): New.
5301 2001-10-08 Richard Henderson <rth@redhat.com>
5303 * i386.md (movsi_xor): Export.
5304 (setcc peep2): Use it when available; add an alternative to
5305 match zero_extendhisi2_and.
5307 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5309 * romp-protos.h (romp_initialize_trampoline): New function.
5310 * romp.c (romp_initialize_trampoline): Likewise.
5311 * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5312 romp_initialize_trampoline.
5314 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5316 * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5317 * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5318 * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5319 * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5321 2001-10-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5323 * unroll.c (loop_iterations): Extend check for multiple back edges.
5325 2001-10-08 Alexandre Oliva <aoliva@redhat.com>
5327 * langhooks.h: New file.
5328 * Makefile.in (OBJS): Added langhooks.o.
5329 (c-lang.o): Depend on langhooks.h.
5330 (c-common.o): Don't depend on tree-inline.h.
5331 (tree-inline.o): Depend on toplev.h.
5332 (langhooks.o): New rule.
5333 * c-common.c: Don't include tree-inline.h.
5334 (c_mark_lang_decl): Mark argument c as unused.
5335 (c_common_lang_init): Don't initialize hooks here.
5336 * c-lang.c: Include langhooks.h, then override some macros.
5337 (lang_hooks): Initialize with macros in langhooks.h.
5338 (c_init): Don't initialize hooks here.
5339 * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5340 (struct lang_hooks): Add tree_inlining. Refer to langhooks.h.
5341 * tree-inline.c: Include toplev.h. Don't define hook variables.
5342 * tree-inline.h: Don't define hook types nor declare hook
5343 variables. Move macros to...
5344 * langhooks.c: ... new file, as functions. Adjust all callers.
5346 2001-10-08 Jeffrey A Law <law@cygnus.com>
5348 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5349 purge_mem_unchanging_flag on all instructions, not just on those
5350 before NOTE_INSN_FUNCTION_BEG.
5352 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5354 * cppmacro.c (_cpp_create_definition): Leave comments off.
5356 * doc/cpp.texi: Update.
5358 2001-10-08 DJ Delorie <dj@redhat.com>
5360 * c-decl.c (grokfield): Make sure the only unnamed fields
5361 we're allowing are either structs or unions.
5362 * doc/extend.texi: Add documentation for the unnamed field
5365 2001-10-08 Zack Weinberg <zack@codesourcery.com>
5367 * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5368 * configure.in: Use it.
5369 * configure: Regenerated.
5370 * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5371 config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5373 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5375 * cppfiles.c (open_file): Don't mark zero-length files
5376 never-reread here. Don't output diagnostics here either.
5377 (stack_include_file): Mark them never-reread here.
5378 (_cpp_read_file): Update.
5380 2001-10-08 Richard Henderson <rth@redhat.com>
5382 * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5384 2001-10-08 Richard Henderson <rth@redhat.com>
5386 * expr.c (store_expr): When converting a CONST_INT for storage
5387 in a SUBREG, convert it to both SUBREG modes before stripping
5390 2001-10-08 Richard Henderson <rth@redhat.com>
5392 * varasm.c (restore_varasm_status): New.
5393 * function.h: Declare it.
5394 * function.c (pop_function_context_from): Call it.
5396 2001-10-08 Richard Henderson <rth@redhat.com>
5398 * c-common.h (struct c_lang_decl): Add declared_inline.
5399 * c-tree.h (DECL_DECLARED_INLINE_P): New.
5400 * c-lang.c (c_disregard_inline_limits): Use it.
5401 * c-decl.c (duplicate_decls): Likewise.
5402 (pushdecl, redeclaration_error_message): Likewise.
5403 (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5404 (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P.
5405 Set DECL_INLINE if -finline-functions.
5406 (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5408 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5410 * cppmacro.c (funlike_invocation_p): Move some logic to caller
5411 in enter_macro_context. Create a padding token in its own context
5412 if necessary when the search for '(' fails.
5413 (enter_macro_context): Update.
5415 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5417 * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5418 genmultilib, toplev.c: Fix spelling errors of "separate" as
5419 "seperate", and corresponding spelling errors of related words.
5421 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5423 * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5424 * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5426 * c-dump.c (dump_option_value_info): Likewise.
5427 * c-format.c (format_length_info, format_char_info,
5428 format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5429 * collect2.c (names): Likewise.
5430 * cppdefault.h (default_include): Likewise.
5431 * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5432 * flow.c (life_analysis): Likewise.
5433 * gcc.c (dir_separator_str, modify_target, option_map,
5434 target_option_translations, spec_list_1, extra_specs_1,
5435 init_spec): Likewise.
5436 * gcov.c (gcov_version_string): Likewise.
5437 * genattr.c (write_units): Likewise.
5438 * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5439 * gengenrtl.c (rtx_definition, defs): Likewise.
5440 * genrecog.c (pred_table): Likewise.
5441 * global.c (global_alloc): Likewise.
5442 * lcm.c (optimize_mode_switching): Likewise.
5443 * local-alloc.c (find_free_reg): Likewise.
5444 * params.h (param_info): Likewise.
5445 * predict.c (predictor_info): Likewise.
5446 * protoize.c (unexpansion_struct): Likewise.
5447 * real.c (bmask): Likewise.
5448 * recog.h (insn_operand_data, insn_data): Likewise.
5449 * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5450 * stmt.c (expand_nl_goto_receiver): Likewise.
5451 * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5452 target_switches, target_options): Likewise.
5453 * tradcif.y (token, tokentab2, yylex): Likewise.
5454 * tree.h (attribute_spec): Likewise.
5456 * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5458 * arc.c (arc_output_function_epilogue): Likewise.
5459 * arm.c (processors, all_cores, all_architectures,
5460 arm_override_options, isr_attribute_arg, isr_attribute_args,
5461 arm_isr_value): Likewise.
5462 * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5464 * c4x.c (c4x_int_reglist): Likewise.
5465 * d30v.c (override_options): Likewise.
5466 * h8300.c (shift_insn): Likewise.
5467 * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5468 pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5469 ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5470 builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5471 ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5472 * i386.h (processor_costs, ix86_cost): Likewise.
5473 * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5474 * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5475 * m68k.c (codes_68881, codes_FPA): Likewise.
5476 * m88k.c (mode_from_align, max_from_align, all_from_align,
5477 best_from_align, m_options): Likewise.
5478 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5479 * mcore.c (mode_from_align): Likewise.
5480 * mips/elf64.h (UNIQUE_SECTION): Likewise.
5481 * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5482 * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5483 * mips.h (mips_regno_to_class): Likewise.
5484 * ns32k.c (scales): Likewise.
5485 * pa.c (import_string, magic_milli): Likewise.
5486 * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5487 * sparc.c (leaf_reg_remap, sparc_override_options,
5488 reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5490 * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5492 2001-10-07 Dale Johannesen <dalej@apple.com>
5494 * reload1.c (reload_reg_free_p): Teach register interference
5495 checking that multiple output reloads are emitted in
5497 reload1.c (reload_reg_reaches_end_p): Ditto.
5498 reload1.c (reloads_conflict): Ditto.
5500 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5502 * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5503 NULL_TREE inside @code.
5505 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5507 * doc/gcc.texi: Document consistent style of "32-bit",
5508 "Objective-C", and "@code{NULL}".
5510 2001-10-06 Zack Weinberg <zack@codesourcery.com>
5512 * cpplex.c (enum spell_type): Add SPELL_NUMBER.
5513 (cpp_token_len, cpp_spell_token, cpp_output_token,
5514 _cpp_equiv_tokens): Handle it.
5515 * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
5516 CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
5517 * cppexp.c (_cpp_parse_expr): Use the correct operator code in
5520 Sat Oct 6 07:42:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5522 * gcc.c (default_compilers): Remove .ada.
5524 2001-10-06 Neil Booth <neil@daikokuya.demon.co.uk>
5526 * doc/cppinternals.texi: Update.
5528 2001-10-06 Zack Weinberg <zack@codesourcery.com>
5530 * gcc.c (main): Set this_file_error if the appropriate
5531 compiler for a language has not been installed.
5533 2001-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5535 * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
5537 2001-10-05 Joseph S. Myers <jsm28@cam.ac.uk>
5539 * gccbug.in (CATEGORIES): Add ada.
5541 2001-10-05 Catherine Moore <clm@redhat.com>
5543 * config/stormy16/stormy-abi: Document abi changes.
5544 * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
5545 (ICALL_REGS): New register class.
5546 (NUM_ARGUMENT_REGISTERS): Now 6.
5547 (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
5549 (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
5550 * config/stormy16.md (call_internal, call_value_internal,
5551 indirect_jump): Use new 'z' constraint.
5553 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
5555 * doc/cppinternals.texi: Update.
5557 2001-10-05 Richard Henderson <rth@redhat.com>
5559 * dwarf2out.c (FRAME_BEGIN_LABEL): New.
5560 (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
5561 the gas section-name-as-label feature.
5563 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
5565 * doc/cppinternals.texi: Update.
5567 Fri Oct 5 08:17:46 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5569 * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
5570 to ensure valid SImode constants.
5572 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
5574 * Makefile.in (c-decl.o): Depend on tree-inline.h.
5575 (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
5576 * c-decl.c: Include tree-inline.h.
5577 (c_expand_body): Call optimize_inline_calls. Determine whether
5578 a function is inlinable upfront, and only clear
5579 DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
5580 * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
5581 (c_disregard_inline_limits): New function.
5582 (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
5583 (c_post_options): Enable tree inlining if inlining is enabled.
5584 Don't inline trees when instrumenting functions.
5585 (c_init): Initialize lang_disregard_inline_limits and
5586 lang_cannot_inline_tree_fn.
5587 * tree-inline.c (initialize_inlined_parameters): Handle calls
5588 with fewer arguments than declared parameters, and fewer
5589 parameters than passed arguments. Don't assume value is a
5591 (declare_return_variable): Convert return value back to the
5592 original type, if it was promoted.
5593 (tree_inlinable_function_p): New function.
5594 (inlinable_function_p): Don't look at DECL_INLINE if we're
5595 inlining all functions. Make it work with a NULL id.
5596 Re-check DECL_UNINLINABLE after language-specific checks.
5597 * tree-inline.h (tree_inlinable_function_p): Declare it.
5598 * integrate.c (save_for_inline): Don't bother to prepare argvec
5600 * cse.c (check_for_label_ref): Don't check deleted labels.
5602 * Makefile.in (tree-inline.o): Depend on newly-included headers.
5603 * tree-inline.c: Include headers needed for the functions moved in.
5604 (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5605 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5606 (copy_body, initialize_inlined_parameters): Likewise.
5607 (declare_return_variable, inlinable_function_p): Likewise.
5608 (expand_call_inline, expand_calls_inline): Likewise.
5609 (optimize_inline_calls, clone_body): Likewise.
5610 (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5611 (copy_tree_r, remap_save_expr): Likewise.
5613 2001-10-04 Alexandre Oliva <aoliva@redhat.com>
5615 * Makefile.in (OBJS): Added tree-inline.o.
5616 (c-common.o): Depend on tree-inline.h.
5617 (tree-inline.o): New target.
5618 * c-common.c: Include tree-inline.h.
5619 (c_mark_lang_decl): Don't mark saved_tree.
5620 (c_common_lang_init): Set lang_anon_aggr_type_p.
5621 * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5622 (struct c_lang_decl): Moved saved_tree to tree_decl.
5623 * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5624 * integrate.h (function_attribute_inlinable_p): Declare it.
5625 * integrate.c (function_attribute_inlinable_p): Export it.
5626 * tree-inline.c: New file. Define variables declared in...
5627 * tree-inline.h: New file. Declare functions to be moved to
5628 tree-inline.c. Define macros and declare types and hooks for
5629 language-specific tree inlining.
5630 (flag_inline_trees): Moved definition from cp/decl2.c.
5631 * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5632 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5633 (struct tree_decl): Moved saved_tree from c_lang_decl and
5634 inlined_fns from C++'s lang_decl.
5636 2001-10-04 Loren J. Rittle <ljrittle@acm.org>
5638 * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5639 propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5641 2001-10-04 Neil Booth <neil@daikokuya.demon.co.uk>
5643 * doc/cppinternals.texi: Update.
5645 2001-10-04 Eric Christopher <echristo@redhat.com>
5647 * config/mips/mips.c (init_cumulative_args): Remember to set
5649 * config.gcc: Redo linux configuration. Add target_cpu_default
5650 of soft-float to all mipsisa32 combinations and tx39.
5651 * config/mips/linux.h: Remove include of mips.h.
5653 2001-10-03 Loren J. Rittle <ljrittle@acm.org>
5655 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5656 HOST_LDFLAGS and HOST_CPPFLAGS.
5658 2001-10-03 Ziemowit Laski <zlaski@apple.com>
5660 * c-parse.in (objc_inherit_code, objc_pq_context,
5661 objc_public_flag): Make static.
5662 (objc_interface_context, objc_implementation_context,
5663 objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5664 global tree array in objc/objc-act.[ch].
5665 (methoddef): Remove unnecessary code.
5667 * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5668 Hoist struct definitions to objc-act.h.
5669 (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5670 cat_count): Place declaration in objc-act.h.
5671 (objc_tree_index): Move enumeration to objc-act.h.
5672 (objc_global_trees): Place declaration and macro accessors in
5674 (implementation_context): Remove duplicate; use
5675 objc_implementation_context instead:
5676 (method_context): Remove duplicate; use objc_method_context
5678 (objc_ellipsis_node, objc_method_prototype_template,
5679 implemented_classes, function_type): Move global vars to
5681 (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5682 (build_message_expr): Move actual construction of ObjC message
5683 send nodes to finish_message_expr.
5684 (finish_message_expr): New routine, contains code formerly in
5686 * objc/objc-act.h (finish_message_expr): New prototype.
5687 (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5688 declarations; these vars are now part of objc_global_trees.
5689 (objc_tree_index, objc_global_trees): Move definitions from
5691 * objc/objc-tree.def: Update copyright info.
5693 Wed Oct 3 12:22:11 EDT 2001 John Wehle (john@feith.com)
5695 * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5697 * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5698 only if TARGET_ARCH64.
5700 2001-10-02 Bernd Schmidt <bernds@redhat.com>
5702 * doc/extend.texi: Fix some problems with previous checkin.
5703 * doc/invoke.texi: Likewise.
5705 2001-10-02 Neil Booth <neil@daikokuya.demon.co.uk>
5707 * cpphash.h: Update comments.
5708 (cpp_context): Update.
5709 (spec_nodes): Remove n__Pragma.
5710 * cppinit.c (cpp_create_reader): Update.
5711 (builtin_array): Add _Pragma.
5712 * cpplib.h: Update comments.
5713 (NODE_DISABLED, BT_PRAGMA): New.
5714 (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5715 * cppmacro.c (struct cpp_macro): Remove disabled.
5716 (builtin_macro): Return int, handle _Pragma, push the new token
5717 on the context stack.
5718 (funlike_invocation_p): Unconstify, update.
5719 (enter_macro_context): Handle builtins here.
5720 (replace_args, push_token_context, push_ptoken_context):
5721 Update for prototype changes.
5722 (_cpp_pop_context): Update.
5723 (cpp_get_token): Don't handle buitins, nor _Pragma here.
5724 (cpp_sys_macro_p): Update.
5725 (_cpp_free_definition): Clear disabled flag.
5726 (_cpp_create_definition): Upate.
5727 * cppmain.c: Update comments.
5729 Tue Oct 2 12:46:01 CEST 2001 Bo Thorsen <bo@suse.co.uk>,
5730 Andreas Jaeger <aj@suse.de>,
5731 Jan Hubicka <jh@suse.cz>
5733 * doc/invoke.texi (i386 Options): Document x86-64 options.
5734 (i386 and x86-64 Options): Rename i386 options section.
5736 * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5737 (TARGET_SWITCHES): Add -munwind-info.
5738 (MASK_NO_UNWIND_INFO): New.
5739 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5741 (ASM_OUTPUT_DOUBLE_INT): New.
5743 * config/i386/linux64.h: New spec file for Linux x86-64 support.
5744 * config.gcc: Fix tm_file settings for x86-64.
5745 * config/i386/x86-64.h: New file with OS independent x86-64
5747 * config/i386/biarch64.h: New file used to configure compiler
5748 to biarch/64bit compilation.
5750 * config/i386/i386.c: (override_options): Set flags default
5751 for 64bit compilation.
5753 Tue Oct 2 12:46:01 CEST 2001 Jan Hubicka <jh@suse.cz>
5755 * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5756 (ix86_expand_int_movcc): Optimize DImode conditional moves with
5757 constants on x86_64.
5758 (ix86_attr_length_immediate_default): Support MODE_DI.
5759 * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5761 (indirect_jump, tablejump): Turn into expander.
5763 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5765 * c-common.c (c_format_attribute_table): Make format and
5766 format_arg attributes apply to function types rather than to
5768 (is_valid_printf_arglist): Construct an attribute list and pass
5769 that to check_function_format rather than a name.
5770 * c-common.h (check_function_format): Adjust prototype.
5771 * c-decl.c (duplicate_decls): Preserve attributes from type of
5772 built-in decl when allowing for harmless conflict in types.
5773 * c-format.c (record_function_format,
5774 record_international_format, function_format_list,
5775 international_format_info, international_format_list): Remove.
5776 (function_format_info): Remove next, name and assembler_name.
5777 Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5778 (decode_format_attr): New.
5779 (handle_format_attribute): Handle receiving a type rather than a
5780 decl. Call decode_format_attr. Store format information in a
5781 function_format_info.
5782 (handle_format_arg_attribute): Correct comment. Handle receiving
5783 a type rather than a decl. Use unsigned HOST_WIDE_INT for
5785 (check_format_info_recurse, check_format_info_main): Take argument
5786 numbers as unsigned HOST_WIDE_INT.
5787 (check_function_format): Take a list of attributes from the
5788 function type rather than a name or assembler name. Check for
5789 format attributes in that list and the attributes on the type of
5790 the current function rather than looking through
5791 function_format_list.
5792 (check_format_info): Use unsigned HOST_WIDE_INT for argument
5794 (check_format_info_recurse): Take format_arg attributes from the
5795 type of the function calls rather than using
5796 international_format_list. Allow for multiple format_arg
5798 * c-typeck.c (build_function_call): Pass type attributes to
5799 check_function_format rather than name or assembler name. Don't
5800 require there to be a name or assembler name to check formats.
5802 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5804 * attribs.c (decl_attributes): Possibly call
5805 insert_default_attributes to insert default attributes on
5806 functions in a lazy manner.
5807 * builtin-attrs.def: New file; define the default format and
5808 format_arg attributes.
5809 * c-common.c (c_format_attribute_table): Move to earlier in the
5811 (c_common_nodes_and_builtins): Initialize format_attribute_table.
5812 (enum built_in_attribute, built_in_attributes,
5813 c_attrs_initialized, c_init_attributes,
5814 c_common_insert_default_attributes): New.
5815 (c_common_lang_init): Don't initialize format_attribute_table. Do
5816 call c_init_attributes.
5817 * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5818 * c-common.h (init_function_format_info): Don't declare.
5819 (c_common_insert_default_attributes): Declare.
5820 * c-decl.c (implicitly_declare, builtin_function): Call
5822 (init_decl_processing): Don't call init_function_format_info.
5823 (insert_default_attributes): New.
5824 * c-format.c (handle_format_attribute,
5825 handle_format_arg_attribute): Be quiet about inappropriate
5826 declaration when applying default attributes.
5827 (init_function_format_info): Remove.
5828 * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5829 (insert_default_attributes): Declare.
5831 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5833 * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5835 2001-10-01 Jim Wilson <wilson@redhat.com>
5837 * sched-deps.c (add_dependence): When elide conditional dependence,
5838 check that insn doesn't modify cond2.
5840 2001-10-01 Dale Johannesen <dalej@apple.com>
5842 * config/rs6000/rs6000.h (enum processor_type): Add support
5843 for 7400 (G4) and 7450.
5845 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5846 (rs6000_issue_rate): Ditto.
5847 (rs6000_adjust_cost): Fix cycle counts for compares.
5848 (debug_stack_info): Fix an obvious typo.
5849 * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5850 * doc/invoke.texi: Document.
5851 * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5853 (PROCESSOR_DEFAULT): Ditto.
5855 2001-10-01 Loren J. Rittle <ljrittle@acm.org>
5857 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5858 (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5859 later recursive make invocation.
5861 2001-10-01 Hans Boehm <boehm@acm.org>
5863 * optabs.c (emit_libcall_block): When using non-call exceptions,
5864 don't add REG_LIBCALL reg notes to trapping calls.
5866 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
5868 * flow.c (propagate_block_delete_libcall): Remove unused first arg
5869 (propagate_one_insn): Update for above change
5871 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
5873 * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5874 _Unwind_GetTextRelBase): Argument is unused.
5876 Mon Oct 1 19:20:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5878 * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5879 Loop through NOPs, placeholders, and components.
5880 Don't go through NOPs if change mode.
5881 (record_alias_subset): Do nothing if SUBSET and SET are the same.
5882 * emit-rtl.c (set_mem_alias_set): Enable check.
5883 * expr.c (find_placeholder): New function.
5884 (expand_expr, case PLACEHOLDER_EXPR): Use it.
5885 (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5886 to modify it and avoid unneeded copies.
5887 * expr.h (expand_expr): Always define.
5888 (find_placeholder): New declaration.
5890 2001-10-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5892 * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5893 operand 2 is the stack pointer.
5894 ("addr-peephole"): Fix address computation peephole when operand 2
5895 is the stack pointer.
5897 Mon Oct 1 09:26:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5899 * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5900 (ix86_setup_incoming_varargs): Likewise.
5902 2001-10-01 Jason Merrill <jason_merrill@redhat.com>
5904 * stor-layout.c (layout_type): Don't complain about too-large
5907 Mon Oct 1 06:43:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5909 * function.c (keep_stack_depressed): Don't use delete_insn.
5911 * expr.h (set_mem_alias_set): Move decl to here.
5912 * rtl.h (mem_attrs): New typedef and struct.
5913 (union rtunion_def): Add field for mem_attrs.
5914 (X0MEMATTR, MEM_ATTRS): New macros.
5915 (MEM_ALIAS_SET): Use MEM_ATTRS.
5916 (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5917 (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5918 (set_mem_alias_set): Delete decl from here.
5920 * alias.c (set_mem_alias_set): Delete from here.
5921 * emit-rtl.c (mem_attrs_htab): New variable.
5922 (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5923 (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5924 (mem_attrs_mark, get_mem_attrs): Likewise.
5925 (gen_rtx_MEM): Clear MEM_ATTRS.
5926 (set_mem_attributes): Move to here.
5927 (set_mem_alias_set): Likewise, and call get_mem_attrs.
5928 (init_emit_once): const_int_htab now deletable htab.
5929 Initialize mem_attrs_htab.
5930 * explow.c (set_mem_attributes): Delete from here.
5931 * function.c (put_var_into_stack): Clear MEM_ATTRS.
5932 (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5933 * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5934 * reload1.c (reload): Rework changing REG to MEM.
5936 2001-09-30 H.J. Lu <hjl@gnu.org>
5938 * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5939 * config.in: Rebuild.
5941 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5943 * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5944 ("tsthi_1"): Avoid allocation in register y.
5945 ("*movqi_68hc12"): Reorganize and fix constraints.
5946 ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5947 ("addqi3"): Likewise.
5948 ("addhi3"): Fix constraints.
5949 ("*logicalhi3_zexthi"): Disparage soft registers.
5951 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5953 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5956 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5958 * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5959 that we use setjmp/longjmp exceptions.
5961 2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
5963 * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5964 POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5965 struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5966 _cpp_pool_alloc, _cpp_next_chunk): Remove.
5967 (_cpp_extend_buff, BUFF_ROOM): Update.
5968 (_cpp_append_extend_buff): New.
5969 (struct cpp_reader): Remove macro_pool, add a_buff.
5970 * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5972 (cpp_destroy): Free a_buff instead of macro_pool.
5973 * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5974 new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5975 _cpp_pool_alloc, ): Remove.
5976 (parse_number, parse_string): Update use of _cpp_extend_buff.
5977 (_cpp_extend_buff): Update.
5978 (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5979 * cpplib.c (glue_header_name, parse_answer):
5980 Update use of _cpp_extend_buff.
5981 (cpp_register_pragma, cpp_register_pragma_space): Use
5983 (do_assert, do_unassert): Check for EOL, update.
5984 * cppmacro.c (stringify_arg, collect_args): Update to use
5985 _cpp_extend_buff and _cpp_append_extend_buff.
5986 (save_parameter, parse_params, alloc_expansion_token,
5987 _cpp_create_definition): Rework memory management.
5989 2001-09-29 Andris Pavenis <pavenis@lanet.lv>
5991 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5992 update md_exec_prefix.
5993 (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5996 2001-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5998 * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5999 (SELECT_CC_MODE): Use s390_select_ccmode.
6000 * config/s390/s390-protos.h (s390_select_ccmode): Add.
6001 * config/s390/s390.c (s390_select_ccmode): New.
6002 (s390_match_ccmode): Add CCLmode.
6003 (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
6004 (output_branch_condition, output_inverse_branch_condition): Removed.
6005 (print_operand): Use s390_branch_condition_mnemonic.
6006 * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
6007 subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
6008 (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
6010 * config/s390/s390.c (check_and_change_labels): Preserve CC mode
6011 when converting conditional branches to far branches.
6012 * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
6013 cmpint_di): Use CCSmode instead of CCUmode.
6015 * config/s390/s390.c (legitimate_la_operand_p): New.
6016 * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
6017 * config/s390/s390.md (movsi): Convert load address patterns to
6018 arithmetic operations when necessary.
6019 (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
6020 (do_la): Renamed to *do_la and use legitimate_la_operand_p.
6021 (*do_la_reg_0): Don't use before reload.
6023 * config/s390/s390.c (legitimize_address): Make more efficient
6024 use of two-register addressing mode.
6026 * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
6027 with -mno-backchain in some corner cases.
6029 * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
6031 2001-09-29 Alexandre Oliva <aoliva@redhat.com>
6033 * reload.c (find_reloads): Mark new USE insns with QImode.
6034 (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
6035 find_reloads_subreg_address): Likewise.
6036 * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
6038 * reload1.c (reload_combine_note_use): Likewise, inside USEs and
6040 (reload): Make sure there are no USEs with mode other than
6041 VOIDmode. At the end, remove those marked with QImode.
6043 2001-09-29 Per Bothner <per@bothner.com>
6045 * cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
6046 * Makefile.in (includedir): Rename to local_includedir.
6047 (includedir): Define as $(prefix)/include.
6048 * config.in (PREFIX_INCLUDE_DIR): New variable.
6049 * configure.in (PREFIX_INCLUDE_DIR): Test for new variable.
6051 2001-09-29 Bernd Schmidt <bernds@redhat.com>
6053 * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6055 * doc/extend.texi (Vector Extensions): New node.
6056 * doc/invoke.texi (Machine Dependent Options): Add documentation for
6057 i386 -mmmx, -msse, -m3dnow.
6059 Sat Sep 29 15:08:16 CEST 2001 Jan Hubicka <jh@suse.cz>
6061 * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6063 2001-09-29 Hans-Peter Nilsson <hp@axis.com>
6065 * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6067 * doc/invoke.texi (Optimize Options): Delete spurious @table.
6069 2001-09-28 Richard Henderson <rth@redhat.com>
6071 * varasm.c (assemble_integer): Bound alignment check by
6074 * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6076 2001-09-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6078 * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6080 2001-09-25 Bernd Schmidt <bernds@redhat.com>
6082 Mostly from Graham Stott <grahams@redhat.com>
6083 * c-common.c (type_for_mode): Add support for V2SFmode.
6084 * tree.c (build_common_tree_nodes_2): Likewise.
6085 * tree.h (enum tree_index, global_trees): Likewise.
6086 * config/i386/i386.c (x86_3dnow_a): New variable.
6087 (override_options): Support 3Dnow extensions.
6088 (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6089 Athlon's version of 3Dnow.
6090 (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6091 (ix86_expand_builtin): Handle them.
6092 (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6093 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6094 TARGET_3DNOW_A): New macros.
6095 (TARGET_SWITCHES): Add 3Dnow switches.
6096 (VALID_MMX_REG_MODE_3DNOW): New macro.
6097 (VECTOR_MODE_SUPPORTED_P): Use it.
6098 (enum ix86_builtins): Add entries for 3Dnow builtins.
6099 * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6100 pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6101 pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6102 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6103 pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6104 pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6105 (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6106 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6107 mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6108 sfence_insn, prefetch): Make these available if TARGET_SSE or
6111 Fri Sep 28 19:18:40 CEST 2001 Jan Hubicka <jh@suse.cz>
6113 * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6114 ix86_va_start, ix86_build_va_list): Declare.
6115 * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6116 ix86_va_start, ix86_build_va_list): New global functions.
6117 * i386.md (sse_prologue_save_insn): New insn.
6118 (sse_prologue_save): New expander.
6119 * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6120 BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6122 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
6124 * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6125 Use size_t everywhere, make definitions consistent with
6128 Fri Sep 28 14:59:34 CEST 2001 Jan Hubicka <jh@suse.cz>
6130 * gcse.c (replace_store_insn): Use delete_insn.
6131 * loop.c (move_movables): Likewise; avoid delete_insn
6132 from clobbering notes moved elsewhere.
6133 (check_dbra_loop): Use delete_insn.
6134 * ssa.c (convert_from_ssa): Likewise.
6135 * cse.c (cse_insn): Use delete_insn.
6137 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
6139 * cpphash.h (struct cpp_buff): Make unsigned.
6140 (_cpp_get_buff): Take length of size_t.
6141 (_cpp_unaligned_alloc): New.
6142 (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6143 (struct cpp_reader): Remove ident_pool. Add u_buff.
6144 * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6145 (cpp_destroy): Destroy u_buff, not ident_pool.
6146 * cpplex.c (parse_number, parse_string, save_comment,
6147 cpp_token_as_text): Update to use the unaligned buffer.
6148 (new_buff): Make unsigned.
6149 (_cpp_unaligned_alloc): New.
6150 * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6151 * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6153 (collect_args): Make unsigned.
6155 2001-09-27 Zack Weinberg <zack@codesourcery.com>
6157 * cpplex.c (cpp_output_token): Use a putc loop for
6158 SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6160 * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6161 * configure, config.in: Regenerate.
6162 * system.h: Replace fwrite and fprintf with their unlocked
6163 variants if available.
6165 2001-09-27 Richard Henderson <rth@redhat.com>
6167 * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6168 in favour of .eh_frame.
6170 2001-09-27 Aldy Hernandez <aldyh@redhat.com>
6172 * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6174 (LIBCALL_VALUE): Likewise.
6176 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
6178 * cpphash.h: Update comment.
6179 * cpplex.c: Update comments.
6180 (_cpp_can_paste): Remove.
6181 * cpplib.h (_cpp_can_paste): Remove.
6182 * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6183 lexer rather than _cpp_can_paste.
6185 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
6187 * doc/cppinternals.texi: Update.
6189 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6191 * cpphash.h (struct cpp_pool): Remove locks and locked.
6192 (struct cpp_context): Add member buff.
6193 (struct cpp_reader): Remove member argument_pool.
6194 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6195 * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6196 * cpplex.c (chunk_suitable): Remove pool argument.
6197 (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6198 (new_buff, _cpp_extend_buff): Update.
6199 (_cpp_get_buff): Fix silly pointer bug. Be more selective about
6200 which buffer is returned.
6201 (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6202 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6203 * cppmacro.c (lock_pools, unlock_pools): Remove.
6204 (push_ptoken_context): Take a _cpp_buff.
6205 (enter_macro_context): Pool locking removed.
6206 (replace_args): Use a _cpp_buff for the replacement list with
6208 (push_token_context): Clear buff.
6209 (expand_arg): Use _cpp_pop_context.
6210 (_cpp_pop_context): Free a context's buffer, if any.
6212 2001-09-26 DJ Delorie <dj@redhat.com>
6214 * c-typeck.c (digest_init): Check for sizeless arrays.
6216 2001-09-26 Richard Henderson <rth@redhat.com>
6218 * optabs.c (init_one_libfunc): Create a dummy function type
6219 instead of using error_mark_node.
6221 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6223 * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6224 _cpp_extend_buff, _cpp_free_buff): New.
6225 (struct cpp_reader): New member free_buffs.
6226 * cppinit.c (cpp_destroy): Free buffers.
6227 * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6228 _cpp_extend_buff, _cpp_free_buff): New.
6229 * cpplib.h (struct cpp_options): Remove unused member.
6230 * cppmacro.c (collect_args): New. Combines the old parse_arg
6231 and parse_args. Use _cpp_buff for memory allocation.
6232 (funlike_invocation_p, replace_args): Update.
6234 Wed Sep 26 13:20:51 CEST 2001 Jan Hubicka <jh@suse.cz>
6236 * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6238 2001-09-25 Andrew Haley <aph@cambridge.redhat.com>
6240 * except.c (sjlj_mark_call_sites): Change address inside sequence.
6242 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6244 * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6247 2001-09-25 Janis Johnson <janis187@us.ibm.com>
6248 Jim Wilson <wilson@redhat.com>
6250 * doc/install.texi (Specific, ia64-*-linux): Document.
6252 Tue Sep 25 17:13:56 CEST 2001 Jan Hubicka <jh@suse.cz>
6254 * Makefile.in (cfgrtl.o): Add.
6255 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6256 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6257 free_aux_for_edge): Declare.
6259 (HAVE_return): Undefine.
6260 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6261 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6262 free_aux_for_edge): New global functions.
6263 (first_delete_block): New static variable.
6264 (init_flow): Clear first_delete_block.
6265 (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6266 can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6267 try_redirect_by_replacing_jump, last_loop_beg_note,
6268 back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6269 delete_insn, delete_insn_chain, create_basic_block_structure,
6270 create_basic_block, flow_delete_block, compute_bb_for_insn,
6271 free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6272 set_block_for_new_insns, split_block, merge_blocks_nomove,
6273 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6274 redirect_edge_and_branch, force_nonfallthru_and_redirect,
6275 force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6276 tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6277 commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6278 debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6279 purge_all_dead_edges): Move to ....
6280 * cfgrtl.c: New file; .... Here.
6282 * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6283 (reroder_basic_block): Use alloc_aux_for_blocks.
6284 * predict.c (estimate_bb_frequencies): Likewise; use
6285 alloc_aux_for_edges.
6286 * profile.c (compute_branch_probabilities): Likewise.
6287 (branch_prob): Likewise.
6288 * reg-stack.c (reg_to_stack): Likewise.
6290 * emit-rtl.c (emit_insns_after): Never return NULL.
6292 * basic-block.h (set_block_for_new_insns): Delete.
6293 * cfgrtl.c (set_block_for_new_insns): Delete.
6295 * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6296 calls when crossjumping.
6298 * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6299 * unroll.c (copy_loop_body): Use delete_insn.
6301 * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6302 * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6303 keep_stack_depressed): Likewise.
6304 * gcse.c (cprop_cc0_jump): Likewise.
6305 * local-alloc.c (update_equiv_regs): Likewise.
6306 * loop.c (scan_loop, loop_delete_insns): Likewise.
6307 * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6308 * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6309 delete_output_reload, delete_address_reloads_1,
6310 reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6312 * sibcall.c (replace_call_placeholder): Likewise.
6313 * cse.c (cse_insn): Likewise.
6315 2001-09-25 Bernd Schmidt <bernds@redhat.com>
6317 From Graham Stott <grahams@redhat.com>
6318 (def_builtin): Only define builtins appropriate for target_flags. All
6320 (builtin_decsription): Add new field mask which is used to determine
6321 when to define the builtin via the macro def_builtin.
6323 (bdesc_comi): Initialise new mask fields.
6324 (bdesc_2srg): Likewise.
6325 (bdesc_1arg): Likewise.
6327 * config/i386/i386.c (ix86_init_builtins): Correct return type
6328 building v4hi_ftype_v4hi_int_int tree node.
6329 (ix86_expand_sse_comi): Fix typo swapping operands.
6330 Don't swap comparision condition, it is already swapped.
6331 (ix86_expand_sse_compare): Before swapping operands
6332 move operand 1 into new rtx and not the target rtx.
6333 Don't swap comparison condition, it is already swapped.
6334 Always check whether we need to create a new TARGET.
6336 * config/i386/i386.md: (sse_comi) Fix typos.
6337 (sse_ucomi): Likewise.
6338 (cvtss2si): Fix operand 0 contraint.
6339 (cvttss2si): Likewise.
6340 (sse_unpckhps): Fix mode for operand 2.
6341 (sse_unpcklps): Likewise.
6343 2001-09-25 Graham Stott <grahams@redhat.com>
6345 * sibcall.c (skip_copy_to_return_value): Tighten return value
6348 2001-09-24 David Edelsohn <edelsohn@gnu.org>
6350 * rs6000.c (lwa_operand): Address must be word aligned.
6352 Mon Sep 24 18:57:59 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6354 * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6355 number has been set.
6356 (type_hash_mark): Mark type itself.
6358 2001-09-24 Neil Booth <neil@daikokuya.demon.co.uk>
6360 * c-lex.c (cb_def_pragma): Update.
6361 (c_lex): Update, and skip padding.
6362 * cppexp.c (lex, parse_defined): Update, remove unused variable.
6363 * cpphash.h (struct toklist): Delete.
6364 (union utoken): New.
6365 (struct cpp_context): Update.
6366 (struct cpp_reader): New members eof, avoid_paste.
6367 (_cpp_temp_token): New.
6368 * cppinit.c (cpp_create_reader): Update.
6369 * cpplex.c (_cpp_temp_token): New.
6370 (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6371 (cpp_output_token): Don't print leading whitespace.
6372 (cpp_output_line): Update.
6373 * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6374 do_include_common, do_line, do_ident, do_pragma,
6375 do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6376 parse_assertion): Update.
6377 (get_token_no_padding): New.
6378 * cpplib.h (CPP_PADDING): New.
6379 (AVOID_LPASTE): Delete.
6380 (struct cpp_token): New union member source.
6381 (cpp_get_token): Update.
6382 * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6383 (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6384 replace_args, quote_string, stringify_arg, parse_arg, next_context,
6385 enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6386 _cpp_backup_tokens, _cpp_create_definition): Update.
6387 (push_arg_context): Delete.
6388 (padding_token, push_token_context, push_ptoken_context): New.
6389 (make_string_token, make_number_token): Update, rename.
6390 (cpp_get_token): Update to handle tokens as pointers to const,
6391 and insert padding appropriately.
6392 * cppmain.c (struct printer): New member prev.
6393 (check_multiline_token): Constify.
6394 (do_preprocessing, cb_line_change): Update.
6395 (scan_translation_unit): Update to handle spacing.
6396 * scan-decls.c (get_a_token): New.
6397 (skip_to_closing_brace, scan_decls): Update.
6398 * fix-header.c (read_scan_file): Update.
6400 * doc/cpp.texi: Update.
6402 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6404 * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid
6405 leak by passing malloc'ed pointer to reconcat, not concat.
6407 2001-09-24 DJ Delorie <dj@redhat.com>
6409 * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6411 2001-09-24 Ulrich Weigand <uweigand@de.ibm.com>:
6413 * flow.c (delete_dead_jumptables): Delete jumptable if the only
6414 reference is from the literal pool.
6416 2001-09-24 Janis Johnson <janis187@us.ibm.com>
6418 * doc/install.texi (Final install): Request additional information
6419 in mail about successful builds.
6421 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6423 * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero. Use
6424 initial value of return pointer register instead of value in frame-20.
6427 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6429 * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6430 (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6431 the libcall if there isn't a referenced identifier for the symbol.
6433 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6435 * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6436 non 64-bit machines. Use these as a plabel for the trampoline.
6437 (TRAMPOLINE_SIZE): Adjust size for new words.
6438 (INITIALIZE_TRAMPOLINE): Initialize new words.
6439 (TRAMPOLINE_ADJUST_ADDRESS): New. Adjust address to make it a
6440 pointer to the plabel in the trampoline.
6442 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6444 * pa.c (function_arg): Pass floating arguments in both general and
6445 floating registers in indirect (dynamic) calls when generating code
6446 for the 32 bit ABI and the HP assembler.
6448 2001-09-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6450 * doc/install.texi: Markup fixes.
6451 Use Solaris 2, SunOS 4 as appropriate.
6452 (Specific, *-*-solaris2*): Explain this.
6453 Unconditionally warn against /usr/ucb tools.
6454 Remove Sun as warning, obsolete.
6455 Move X11 header bug workaround here, update patches.
6456 (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6457 (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6459 2001-09-23 Zack Weinberg <zack@codesourcery.com>
6461 * errors.h (warning, error, fatal, internal_error): Don't mark
6462 with ATTRIBUTE_PRINTF_n.
6463 * toplev.h (internal_error, fatal_io_error, warning, error,
6464 pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6465 error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6468 Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6470 * function.c (pop_function_context_from): var_refs_queue
6471 and temp slots now in GC memory.
6472 (mark_function_status, free_after_compilation): Likewise;
6473 also struct function now in GC memory.
6474 (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6475 (combine_temp_slots): Likewise.
6476 (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6477 (prepare_function_start): Use GC memory for struct function.
6478 (mark_temp_slot): Deleted.
6479 (gcc_mark_struct_function): struct function now in GC memory.
6481 * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6482 code for division, not modulus.
6484 * rtl.def (MEM): Remove obsolete part of comment.
6486 2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
6488 * c-format.c (init_function_format_info): Check __builtin_printf
6489 and __builtin_fprintf even if -ffreestanding. Check C99 functions
6492 Sat Sep 22 09:09:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6494 * c-common.c (format_attribute_table): Remove decl.
6495 * tree.h (format_attribute_table, lang_attribute_table): New decls.
6496 (lang_attribute_common): Likewise.
6498 * function.c (fix_lexical_address): Use set_mem_alias_set.
6499 (expand_function_start): Likewise.
6500 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6502 * varasm.c (output_constant): Fix unused variable warning.
6504 * attribs.c: New file, from c-common.c.
6505 (attribute_tables): Now four elements.
6506 (format_attribute_table, lang_attribute_common): New variables.
6507 (init_attributes): Reflect above changes.
6508 (handle_mode_attribute): Delete check for wider than uintmax.
6509 * c-common.c: Delete parts moved to attribs.c.
6510 (enum attrs): Deleted; unused.
6511 (c_format_attribute_table): New variable.
6512 (c_common_lang_init): Initialize format_attribute_table with it.
6513 * c-common.h (decl_attributes): Remove decl.
6514 * tree.h (decl_attribute): Move it to here.
6515 * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
6516 (attribs.o): New rule.
6518 2001-09-22 Andreas Jaeger <aj@suse.de>
6520 * builtins.c (c_getstr): Remove unused variable.
6522 2001-09-21 Richard Henderson <rth@redhat.com>
6524 * reload1.c (reload): Use delete_insn instead of splatting
6527 2001-09-21 Richard Henderson <rth@redhat.com>
6529 * reload.c (push_secondary_reload): Don't check for "=" in output
6530 constraint after ""->ALL_REGS check.
6532 2001-09-21 Richard Henderson <rth@redhat.com>
6534 * predict.c (expected_value_to_br_prob): Use pc_set.
6536 * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
6537 ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
6539 2001-09-21 Richard Henderson <rth@redhat.com>
6541 * rtl.h (LCT_RETURNS_TWICE): New.
6542 * calls.c (emit_call_1): Set current_function_calls_setjmp for
6544 (emit_library_call_value_1): Map LCT_RETURNS_TWICE
6545 to ECF_RETURNS_TWICE.
6546 * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
6549 * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
6551 * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
6552 (JMP_BUF_SIZE): New.
6554 2001-09-21 Richard Henderson <rth@redhat.com>
6556 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
6559 2001-09-21 Richard Henderson <rth@redhat.com>
6561 * tree.def (FDESC_EXPR): New.
6562 * expr.c (expand_expr): Handle it.
6563 * varasm.c (initializer_constant_valid_p): Likewise.
6564 (output_constant): Likewise.
6565 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6566 * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6567 (ASM_OUTPUT_FDESC): New.
6568 * doc/tm.texi: Document the new macros.
6570 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
6572 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
6573 ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
6574 once merging is complete.
6576 Fri Sep 21 11:20:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6578 * integrate.c (allocate_initial_values): Eliminate unused arg warning.
6580 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
6582 * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
6583 that would be invalid after a merge.
6585 Fri Sep 21 14:24:29 CEST 2001 Jan Hubicka <jh@suse.cz>
6587 * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6588 * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6590 (flow_delete_insn): This one.
6591 (delete_insn_chain): Rename from ...; do not care labels.
6592 (flow_delete_insn_chain): ... this one.
6593 (flow_delete_block): Remove the insns one BB has been expunged.
6594 (merge_blocks_nomove): Likewise.
6595 (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6596 updating BB boundaries.
6597 (tidy_fallthru_edge): Likewise.
6598 (commit_one_edge_insertion): Likewise.
6599 * cfgbuild.c (find_basic_block): Likewise.
6600 (find_basic_blocks_1): Likewise.
6601 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6602 (try_crossjump_to_edge): Likewise.
6603 (try_optimize_cfg): Likewise.
6604 * cse.c (delete_trivially_dead_insns): Likewise.
6605 * df.c (df_insn_delete): Likewise.
6606 * doloop.c (doloop_modify): Use delete_related_insns.
6607 * emit-rtl.c (try_split): Likewise.
6608 (remove_insn): Update BB boundaries.
6609 * expect.c (connect_post_landing_pads): Use delete_related_insns.
6610 * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6611 updating BB boundaries.
6612 (propagate_block_delete_insn): Likewise.
6613 (propagate_block_delete_libcall): Likewise.
6614 * function.c (delete_handlers): Use delete_related_insns.
6615 (thread_prologue_and_epilogue_insns): Likewise.
6616 * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6617 * genpeep.c (gen_peephole): Use delete_related_insns.
6618 * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6620 (find_cond_trap): Likewise.
6621 * integrate.c (save_for_inline): Use delete_related_insns.
6622 (copy_insn_list): Likewise.
6623 * jump.c (pruge_linie_number_notes): Likewise.
6624 (duplicate_loop_exit_test): Likewise.
6625 (delete_computation): Likewise.
6626 (delete_related_insn): Rename from ...; use delete_insn
6627 (delete_insn): ... this one.
6628 (redirect_jump): Use delete_related_insns.
6629 * loop.c (scan_loop): Likewise.
6630 (move_movables): Likewise.
6631 (find_and_verify_loops): Likewise.
6632 (check_dbra_loop): Likewise.
6633 * recog.c (peephole2_optimize): Likewise.
6634 * reg-stack.c (delete_insn_for_stacker): Remove.
6635 (move_for_stack_reg): Use delete_insn.
6636 * regmove.c (combine_stack_adjustments_for_block): Likewise.
6637 * reload1.c (delete_address_reloads): Use delete_related_insns.
6638 (fixup_abnormal_edges): Use delete_insn.
6639 * recog.c (emit_delay_sequence): Use delete_related_insns.
6640 (delete_from-delay_slot): Likewise.
6641 (delete_scheduled_jump): likewise.
6642 (optimize_skip): Likewise.
6643 (try_merge_delay_insns): Likewise.
6644 (full_simple_delay_slots): Likewise.
6645 (fill_slots_from_thread): Likewise.
6646 (relax_delay_slots): Likewise.
6647 (make_return_insns): Likewise.
6648 (dbr_schedule): Likewise.
6649 * rtl.h (delete_insn): Rename to delete_related_insns.
6650 (delete_insn, delete_insn_chain): New prototypes.
6651 * ssa-ccp (sse_fast_dce): Remove deleting of DEF, as it is done
6652 by df_insn_delete already.
6653 * ssa-dce.c (delete_insn_bb): Use delete_insn.
6654 * ssa.c (convert_from_ssa): Use delete_related_insns.
6655 * unroll.c (unroll_loop): Likewise.
6656 (calculate_giv_inc): Likewise.
6657 (copy_loop_body): Likewise.
6659 * i386-protos.h (ix86_libcall_value, ix86_function_value,
6660 ix86_function_arg_regno_p, ix86_function_arg_boundary,
6661 ix86_return_in_memory, ix86_function_value): Declare.
6662 * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6663 new static valurables.
6664 (x86_64_reg_class): New enum
6665 (x86_64_reg_class_name): New array.
6666 (classify_argument, examine_argument, construct_container,
6667 merge_classes): New static functions.
6668 (optimization_options): Enable flag_omit_frame_pointer and disable
6669 flag_pcc_struct_return on 64bit.
6670 (ix86_libcall_value, ix86_function_value,
6671 ix86_function_arg_regno_p, ix86_function_arg_boundary,
6672 ix86_return_in_memory, ix86_function_value): New global functions.
6673 (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6674 (function_arg_advance): Handle x86_64 passing conventions.
6675 (function_arg): Likewise.
6676 * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6677 (RETURN_IN_MEMORY): Move offline.
6678 (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6679 (FUNCTION_VALUE_REGNO_P): New macro.
6680 (FUNCTION_ARG_REGNO_P): Move offline.
6681 (struct ix86_args): Add maybe_vaarg.
6682 * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6683 * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6685 2001-09-21 Hartmut Penner <hpenner@de.ibm.com>
6687 * s390.md: Changed attributes for scheduling.
6688 * s390.c: (s390_adjust_cost, s390_adjust_priority)
6691 2001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
6693 Table-driven attributes.
6694 * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6695 config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6696 config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6697 config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6698 config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6699 config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6700 doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6701 tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6702 * tree.h (struct tree_decl): Change machine_attributes to
6704 * doc/c-tree.texi: Document that all attributes are now attached
6706 * c-common.c (add_attribute, attrtab, attrtab_idx,
6707 default_valid_lang_attribute, valid_lang_attribute): Remove.
6708 (attribute_tables, attributes_initialized,
6709 c_common_attribute_table, default_lang_attribute_table): New
6711 (handle_packed_attribute, handle_nocommon_attribute,
6712 handle_common_attribute, handle_noreturn_attribute,
6713 handle_unused_attribute, handle_const_attribute,
6714 handle_transparent_union_attribute, handle_constructor_attribute,
6715 handle_destructor_attribute, handle_mode_attribute,
6716 handle_section_attribute, handle_aligned_attribute,
6717 handle_weak_attribute, handle_alias_attribute,
6718 handle_no_instrument_function_attribute,
6719 handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6720 handle_no_limit_stack_attribute, handle_pure_attribute): New
6722 (init_attributes, decl_attributes): Rewrite to implement
6723 table-driven attributes.
6724 * c-common.h (enum attribute_flags): Move to tree.h.
6725 * c-format.c (decl_handle_format_attribute,
6726 decl_handle_format_arg_attribute): Rename to
6727 handle_format_attribute and handle_format_arg_attribute. Update
6728 for table-driven attributes.
6729 * c-common.h (decl_handle_format_attribute,
6730 decl_handle_format_arg_attribute): Remove prototypes.
6731 (handle_format_attribute, handle_format_arg_attribute): Add
6733 * c-decl.c (grokdeclarator): Handle attributes nested inside
6735 * c-parse.in (setattrs, maybe_setattrs): Remove.
6736 (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6737 Update to handle nested attributes properly.
6738 (maybe_resetattrs, after_type_declarator,
6739 parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6740 absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6742 (make_pointer_declarator): Update to handle nested attributes
6744 * doc/extend.texi: Update documentation of limits of attributes
6745 syntax. Warn about problems with attribute semantics in C++.
6746 * target.h (struct target): Remove valid_decl_attribute and
6747 valid_type_attribute. Add attribute_table and
6748 function_attribute_inlinable_p.
6749 * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6750 TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6751 (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6753 (TARGET_INITIALIZER): Update.
6754 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6756 (function_attribute_inlinable_p): New function. Check for the
6757 presence of any machine attributes before using
6758 targetm.function_attribute_inlinable_p.
6759 (function_cannot_inline_p): Update.
6760 * Makefile.in (integrate.o): Update dependencies.
6761 * doc/tm.texi: Update documentation of target attributes and
6762 example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6763 * tree.c (default_valid_attribute_p, valid_machine_attribute):
6765 (default_target_attribute_table,
6766 default_function_attribute_inlinable_p): New.
6767 (lookup_attribute): Update comment to clarify handling of multiple
6768 attributes with the same name.
6769 (merge_attributes, attribute_list_contained): Allow multiple
6770 attributes with the same name but different arguments to appear in
6771 the same attribute list.
6772 * tree.h (default_valid_attribute_p): Remove prototype.
6773 (struct attribute_spec): New.
6774 (default_target_attribute_table): Declare.
6775 (enum attribute_flags): Move from c-common.h. Add
6776 ATTR_FLAG_TYPE_IN_PLACE.
6777 (default_function_attribute_inlinable_p): Declare.
6778 * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6779 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6780 (TARGET_ATTRIBUTE_TABLE): Define.
6781 (vms_attribute_table): New.
6782 * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6783 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6784 (TARGET_ATTRIBUTE_TABLE): Define.
6785 (arc_attribute_table, arc_handle_interrupt_attribute): New.
6786 * config/arm/arm.c (arm_valid_type_attribute_p,
6787 arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6789 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6791 (TARGET_ATTRIBUTE_TABLE): Define.
6792 (arm_attribute_table, arm_handle_fndecl_attribute,
6793 arm_handle_isr_attribute): New.
6794 * config/avr/avr.c (avr_valid_type_attribute,
6795 avr_valid_decl_attribute): Remove.
6796 (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6798 (TARGET_ATTRIBUTE_TABLE): Define.
6799 (avr_attribute_table, avr_handle_progmem_attribute,
6800 avr_handle_fndecl_attribute): New.
6801 * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6802 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6803 (TARGET_ATTRIBUTE_TABLE): Define.
6804 (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6805 * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6806 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6807 (TARGET_ATTRIBUTE_TABLE): Define.
6808 (h8300_attribute_table, h8300_handle_fndecl_attribute,
6809 h8300_handle_eightbit_data_attribute,
6810 h8300_handle_tiny_data_attribute): New.
6811 * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6812 i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6814 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6816 * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6817 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6819 (TARGET_ATTRIBUTE_TABLE): Define.
6820 (ix86_attribute_table, ix86_handle_cdecl_attribute,
6821 ix86_handle_regparm_attribute): New.
6822 * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6823 i386_pe_valid_type_attribute_p): Remove.
6824 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6825 * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6826 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6827 (TARGET_ATTRIBUTE_TABLE): Define.
6828 (ia64_attribute_table): New.
6829 * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6830 interrupt_ident2, model_ident1, model_ident2): Remove.
6831 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6832 (TARGET_ATTRIBUTE_TABLE): Define.
6833 (init_idents): Update.
6834 (m32r_attribute_table, m32r_handle_model_attribute): New.
6835 * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6837 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6838 (TARGET_ATTRIBUTE_TABLE): Define.
6839 (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6840 * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6841 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6842 (TARGET_ATTRIBUTE_TABLE): Define.
6843 (mcore_attribute_table, mcore_handle_naked_attribute): New.
6844 * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6845 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6846 (TARGET_ATTRIBUTE_TABLE): Define.
6847 (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6848 * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6849 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6850 (TARGET_ATTRIBUTE_TABLE): Define.
6851 (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6852 * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6853 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6854 (TARGET_ATTRIBUTE_TABLE): Define.
6855 (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6856 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6858 * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6860 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6861 (TARGET_ATTRIBUTE_TABLE): Define.
6862 (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6864 * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6865 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6866 (TARGET_ATTRIBUTE_TABLE): Define.
6867 (v850_attribute_table, v850_handle_interrupt_attribute,
6868 v850_handle_data_area_attribute): New.
6869 * config/v850/v850-c.c (mark_current_function_as_interrupt):
6870 Return void. Call decl_attributes instead of
6871 valid_machine_attribute.
6873 Fri Sep 21 01:49:41 2001 J"orn Rennecke <amylaar@redhat.com>
6875 * sh-protos.h (sh_pr_n_sets): Declare.
6876 * sh.c (calc_live_regs): If the initial value for PR has been copied,
6877 look at the copy to determine if PR needs to be saved.
6878 sh_pr_n_sets: New function.
6879 * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6880 (ALLOCATE_INITIAL_VALUE): Define.
6882 * sh.c (initial_elimination_offset):
6883 Fix RETURN_ADDRESS_POINTER_REGNUM case.
6885 Fri Sep 21 01:13:56 2001 J"orn Rennecke <amylaar@redhat.com>
6887 * integrate.c (allocate_initial_values): New function.
6888 * integrate.h (allocate_initial_values): Declare.
6889 * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6891 * reload1.c (reload): And initialization of reg_equiv_memory_loc
6893 * toplev.c (rest_of_compilation): To here.
6894 Call allocate_initial_values.
6895 * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6897 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6899 * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6901 2001-09-20 DJ Delorie <dj@redhat.com>
6903 * c-typeck.c (really_start_incremental_init): Discriminate
6904 between zero-length arrays and flexible arrays.
6905 (push_init_level): Detect zero-length arrays and handle them
6906 like fixed-sized arrays.
6907 * expr.c (store_constructor): Handle zero-length arrays and
6908 flexible arrays correctly.
6909 * doc/extend.texi: Update zero-length array notes.
6911 2001-09-20 Jim Wilson <wilson@redhat.com>
6913 * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6914 (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6915 for issue port conflicts.
6916 (cycle_end_fill_slots): TYPE_L instructions take two slots.
6918 2001-09-20 Andrew MacLeod <amacleod@redhat.com>
6920 * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6923 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6925 * fold-const.c (hashtab.h): Include.
6926 (int_const_binop): Remove FORSIZE arg and compute from type; all
6928 Call size_int_type_wide for all single-word constants.
6929 (size_htab_hash, size_htab_eq): New functions.
6930 (size_int_type_wide): Rework to use hash table.
6931 * ggc-common.c (hashtab.h): Include.
6932 (struct d_htab_root): New struct.
6933 (d_htab_roots): New variable.
6934 (ggc_add_deletable_htab, ggc_htab_delete): New functions
6935 (ggc_mark_roots): Handle deletable htabs.
6936 * ggc-page.c (ggc_marked_p): New function.
6937 * ggc-simple.c (ggc_marked_p): Likewise.
6938 * ggc.h: Reformatting throughout.
6939 (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6940 * tree.c (init_obstacks): Make type_hash_table a deletable root.
6941 (type_hash_add): Allocate struct type_hash from GC memory.
6942 (mark_hash_entry, mark_type_hash): Deleted.
6943 (type_hash_marked_p, type_hash_mark): New functions.
6944 * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6946 Thu Sep 20 12:49:34 2001 J"orn Rennecke <amylaar@redhat.com>
6948 * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6951 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6953 * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6954 array-too-large test for signed sizetype.
6956 Thu Sep 20 12:19:36 CEST 2001 Jan Hubicka <jh@suse.cz>
6958 * i386.md (indirect_jump): Allow Pmode operand.
6959 (tablejump): LIkewise; perform expansion to 64bit mode.
6960 * i386.c (symbolic_operand): Allow 64bit PIC references.
6961 (pic_symbolic_operand): Likewise.
6962 (ix86_find_base_term): Strip the 64bit PIC references.
6963 (legitimate_pic_address_disp_p): Handle 64bit PIC.
6964 (legitimize_pic_address): Likewise.
6965 (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6966 * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6968 2001-09-19 Alexandre Petit-Bianco <apbianco@redhat.com>
6970 * stringpool.c (get_identifier_with_length): New function.
6971 * tree.h (get_identifier_with_length): New prototype.
6973 2001-09-19 Alan Modra <amodra@bigpond.net.au>
6974 David Edelsohn <edelsohn@gnu.org>
6977 * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6978 already sign-extended.
6980 * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6981 * config/rs6000/rs6000.c (logical_operand): Always compare op as
6983 (rs6000_emit_set_long_const): Avoid unnecessary shift.
6984 (output_profile_hook): Declare label_name const.
6985 * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6986 to match constraints.
6988 2001-09-19 Stan Shebs <shebs@apple.com>
6990 * alias.c: Fix typos in comments.
6991 * sched-rgn.c (init_ready_list): Ditto.
6992 * unwind-dw2.c (uw_frame_state_for): Ditto.
6993 * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6994 * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6995 * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6997 2001-09-19 Richard Henderson <rth@redhat.com>
6999 * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
7001 * Makefile.in (cfg.o): Depend on TM_P_H.
7003 2001-09-19 Richard Henderson <rth@redhat.com>
7005 * config/alpha/alpha.c (local_symbol_p): Split out from ...
7006 (local_symbolic_operand): ... here.
7007 (small_symbolic_operand): Check mode.
7008 (global_symbolic_operand): New.
7009 (input_operand): Reject symbolics if explicit relocs.
7010 (call_operand): Tidy.
7011 (alpha_legitimize_address): Use movdi_er_high_g.
7012 (alpha_expand_mov): Likewise.
7013 * config/alpha/alpha-protos.h: Update.
7014 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7015 * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
7016 (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
7017 (UNSPECV_LDGP2): Remove.
7018 (all call patterns): Use 's' not 'i' for symbolic constraint.
7019 (call_osf call_value_osf): Use call_operand.
7020 (all osf call patterns): Use $gp. New peepholes for explicit relocs.
7021 (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
7022 (prologue_ldgp_1_er): Remove.
7023 (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
7024 (builtin_setjmp_receiver_er patterns): Use them.
7025 (exception_receiver_er): Likewise.
7027 2001-09-19 Richard Henderson <rth@redhat.com>
7029 * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
7031 * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
7032 and NON_LOCAL_GOTO notes.
7033 * recog.c (peephole2_optimize): Likewise. Handle EH_REGION;
7034 copy over CALL_INSN_FUNCTION_USAGE.
7036 2001-09-18 Catherine Moore <clm@redhat.com>
7038 * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
7041 2001-09-18 Ulrich Weigand <uweigand@de.ibm.com>:
7043 * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
7044 new-style tm_file specification. Specify correct tm_p_file,
7045 md_file, and out_file for s390x.
7047 * config/s390/linux.h, linux64.h: Don't include other target
7048 macro header files. Now handled via tm_file.
7050 * config/s390/linux.h, s390.h: (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7051 TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7052 are defined before use.
7054 Tue Sep 18 09:51:11 2001 Eric Christopher <ecechristo@redhat.com>
7056 * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7057 code generation only for Gnu assembler.
7059 2001-09-18 Catherine Moore <clm@redhat.com>
7061 * config/stormy16 (LIB_SPEC): Remove -lnosys.
7063 2001-09-18 Richard Sandiford <rsandifo@redhat.com>
7065 * config/mips/mips.c (mips_frame_set): New.
7066 (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7067 a parallel frame-related expression with a set for each register.
7069 2001-09-18 Philip Blundell <philb@gnu.org>
7071 * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7074 2001-09-17 Dale Johannesen <dalej@apple.com>
7076 * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7077 * config/rs6000/aix.h (FIXED_R2): Define.
7078 * config/rs6000/darwin.h (FIXED_R2): Define.
7079 * config/rs6000/sysv4.h (FIXED_R2): Define.
7081 2001-09-17 Jeff Sturm <jsturm@one-point.com>
7083 * except.c (dw2_build_landing_pads): New local
7084 clobbers_hard_regs. Emit an ASM_INPUT as a scheduling
7085 barrier after clobbers. Fixes c++/4012.
7087 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7089 * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7091 2001-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
7093 * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7094 patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7096 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7098 * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7101 2001-09-17 Neil Booth <neil@daikokuya.demon.co.uk>
7103 * cpphash.h (_cpp_lex_direct): New.
7104 * cpplex.c (_cpp_lex_token): Update.
7105 (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7106 and increment that pointer.
7107 * cppmacro.c (alloc_expansion_token): New.
7108 (lex_expansion_token): Lex macro expansion directly into
7111 2001-09-16 Brad Lucier <lucier@math.purdue.edu>
7113 * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7115 Sun Sep 16 21:59:46 CEST 2001 Jan hubicka <jh@suse.cz>
7117 * basic-block.h (free_bb_for_insn): Declare.
7118 * bb-reorder.c (label_for_bb): Use block_label.
7119 (emit_jump_to_block_after): Remove.
7120 (insert_intra_1): Do not update block_for_insn.
7121 (insert_inter_bb_scope_notes): Likewise; update bb->end
7122 * cfg.c (free_bb_for_insn): New.
7123 (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7124 (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7125 (commit_one_edge_insertion): Likewise.
7126 (commit_one_edge_insertion): Do not update BB boundary.
7127 (commit_edge_insertions): Do not call compute_bb_for_insn.
7128 * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7129 * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7130 (merge_blocks_move_successor_nojumps): Likewise.
7131 (try_crossjump_to_edge): Do not update block_for_insn.
7132 * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7133 * df.c (df_pattern_emit_later): Do not update BB boundary.
7134 (df_jump_pattern_emit_after): Likewise.
7135 (df_insn_move_before): Use emit_insn_before.
7136 * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7138 (add_insn_after, add_insn_before, emit_insns_after): Update BB
7139 boundaries and basic_block_for_insn.
7140 (reorder_insns_nobb): Rename from reorder_insns.
7141 (reorder_insns): New.
7142 (emit_block_insn_before, emit_block_insn_after): Kill.
7143 * flow.c (check_function_return_warnings): Do not call
7144 compute_bb_for_insn; Do not free basic_block_for_insn.
7145 (attempt_auto_inc): Do not update basic_block_for_insn.
7146 * function.c (emit_return_into_block): Likewise;
7147 do not update BB boundaries.
7148 * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7149 (insert_insn_end_bb): Use emit_insn_before; Likewise.
7150 (pre_insert_copy_insn): Likewise.
7151 (update_ld_motion_notes): Likewise.
7152 (insert_insn_start_bb): Likewise.
7153 (replace_store_insn): Likewise.
7154 * ifcvt.c (noce_process_if_block): Likewise.
7155 (if_convert): Do not call compute_bb_for_insn.
7156 * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7157 Use emit_insn_before and emit_insn_after.
7158 * recog.c (split_all_insns): Do not update BB boundaries;
7159 Do not call compute_bb_for_insn.
7160 (peephole2_optimize): Do not update BB boundaries.
7161 * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7163 (emit_swap_insn): Likewise.
7164 (convert_regs_1): Likewise.
7165 * reload1.c (reload): Call compute_bb_for_insn.
7166 * rtl.h (reorder_insns_nobb): Declare.
7167 * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7168 * toplev.c (rest_of_compilation): Call free_bb_for_insn
7169 at places CFG is invalidated; do not call compute_bb_for_insn.
7171 * cfg.c (expunge_block): Invalidate BB structure.
7173 * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7176 * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7178 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7180 * cpphash.h (_cpp_lex_token): Update prototype.
7181 * cpplex.c (_cpp_lex_token): New prototype.
7182 * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7183 lex_macro_node, read_flag, do_pragma_poison): Update.
7184 * cppmacro.c (cpp_get_token, parse_params,
7185 lex_expansion_token): Update.
7187 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7189 * cppmain.c (scan_translation_unit): Don't worry about
7190 putting a space after hashes.
7191 * cpplib.c (directive_diagnostics): New.
7192 (_cpp_handle_directive): Update to use directive_diagnostics.
7193 (run_directive): Don't toggle prevent_expansion.
7194 (do_line): Backup in case of the line extension.
7195 * cpplib.h (cpp_lexer_pos): Remove.
7196 * cppmacro.c (_cpp_create_definition): Precede a leading #
7199 2001-09-15 Richard Henderson <rth@redhat.com>
7201 * c-typeck.c (comptypes): Handle zero-length arrays properly.
7203 2001-09-15 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7205 * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7207 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7209 PR preprocessor/3571
7210 * tradcpp.c (handle_directive): Skip non-vertical space.
7212 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7214 * cppmain.c (setup_callbacks): Set line callback only
7215 if outputting preprocessed source.
7217 2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7219 * collect2.c (main): Const-ification.
7220 * gcc.c (translate_options, process_command): Use xstrdup in
7221 lieu of xmalloc/strcpy.
7222 (main): Use concat in lieu of xmalloc/strcpy/strcat.
7224 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7226 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7229 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7231 * scan-decls.c (scan_decls): Fix typo.
7233 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7235 * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7236 Split mlstring_pos into mls_line and mls_col.
7237 * cppinit.c (cpp_create_reader): Initialize line to 1.
7238 (cpp_destroy): Free tokenruns.
7239 (push_include): Don't update lexer_pos.
7240 * cpplex.c (unterminated, parse_string): Update.
7241 (lex_token): Don't update lexer_pos, update.
7242 * cpplib.c (if_stack): Save line instead of line + col.
7243 (start_directive, _cpp_do__Pragma, do_else, do_elif,
7244 push_conditional, _cpp_pop_buffer): Update.
7245 * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7246 (_cpp_create_definition): Update.
7248 2001-09-15 Eric Christopher <echristo@redhat.com>
7250 * config/mips/abi64.h: Add support for MEABI.
7252 2001-09-15 Eric Christopher <echristo@redhat.com>
7254 * config/mips/mips.md: Add unspec #2.
7256 (reload_outdi): Ditto.
7257 (reload_outsi): Ditto.
7260 2001-09-15 Eric Christopher <echristo@redhat.com>
7261 Jason Eckhardt <jle@redhat.com>
7263 * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7264 * config/mips/isa32-linux.h: New file.
7265 * config/mips/isa3264.h: Ditto.
7266 * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7267 * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7268 (output_block_mode): Support MEABI.
7269 (function_arg): Ditto. Fix floating point arg passing.
7270 (mips_va_start): Ditto.
7271 (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7273 (mips_asm_file_start): Add new section to pass abi to gdb.
7274 (function_arg_pass_by_reference): Support MEABI.
7275 (mips_parse_cpu): Support mips32 and mips64 processors.
7276 * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7277 TARGET_MIPS5KC. Support isa32 and isa64.
7278 (processor_type): Add r4kc, r5kc, r20kc.
7279 (GENERATE_MULT3_SI): New.
7280 (GENERATE_MULT3_DI): Ditto.
7281 (GENERATE_MULT3): Remove.
7282 (ISA_HAS_64BIT_REGS): Add isa == 64.
7283 (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7284 (ISA_HAS_MADD_MSUB): New.
7285 (ISA_HAS_CLZ_CLO): Ditto.
7286 (ISA_HAS_DCLZ_DCLO): Ditto.
7287 (ABI_GAS_ASM_SPEC): New.
7288 (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7291 (SUBTARGET_CC1_SPEC): Ditto.
7292 (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7293 (PAD_VARARGS_DOWN): Support MEABI.
7294 (HARD_REGNO_NREGS): Move to mips.c.
7295 (ASM_OUTPUT_IDENT): Add #undef.
7296 * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7297 (mulsi3): Use GENERATE_MULT3_SI.
7298 (mulsi3_mult3): Ditto. Support mips32, mips64.
7299 (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7300 (mul_sub_si): New pattern.
7301 (unnamed splitters): New.
7302 (muldi3): Use GENERATE_MULT3_DI.
7303 (muldi3_internal2): Ditto.
7304 (movdicc): Support mips32.
7305 * config/mips/t-isa3264: New file.
7307 2001-09-15 Hans-Peter Nilsson <hp@axis.com>
7309 * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7310 || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7311 || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7313 * reorg.c (fill_slots_from_thread): After call to
7314 steal_delay_list_from_target, update own_thread as new_thread may
7317 2001-09-14 Neil Booth <neil@daikokuya.demon.co.uk>
7319 * cpperror.c (print_location): Take line and column, for
7320 default positioning use the previously lexed token.
7321 (_cpp_begin_message): Take line and column.
7322 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7323 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7324 * cpphash.h (_cpp_begin_message): Update prototype.
7325 * cppinit.c (push_include): Don't set output line.
7326 * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7327 * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7328 (do_pragma): Kludge for front ends. Don't expand macros at all.
7329 * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7330 (struct cpp_token): Remove output_line.
7331 (struct cpp_callbacks): New member line_change.
7332 * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7333 cpp_get_token): Preserve BOL flag.
7334 (cpp_get_line): Remove.
7335 (_cpp_backup_tokens): Remove useless abort().
7336 * cppmain.c (cb_line_change): New.
7337 (scan_translation_unit): Don't worry about starting new lines here.
7338 * scan-decls.c (scan_decls): Update.
7339 * c-lex.c (c_lex, init_c_lex): Update.
7340 (cb_line_change, src_lineno): New.
7342 Fri Sep 14 13:54:50 EDT 2001 John Wehle (john@feith.com)
7344 * tree.c (append_random_chars): Generate the random
7345 characters in a reproducable fashion.
7347 2001-09-14 Richard Henderson <rth@redhat.com>
7349 * config/i386/i386.c (internal_label_prefix): New.
7350 (internal_label_prefix_len): New.
7351 (override_options): Set them.
7352 (local_symbolic_operand): New.
7353 (legitimate_pic_address_disp_p): Use it.
7354 (legitimize_pic_address): Likewise.
7356 2001-09-14 Marc Espie <espie@openbsd.org>
7358 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Generate reference to GOT
7361 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7363 * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7364 * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7366 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
7368 * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7369 invocation of SUBREG_REGNO_OFFSET.
7371 * haifa-sched.c: Fix typo in FSF copyright statement.
7372 * sched-deps.c: Fix typo in FSF copyright statement.
7373 * sched-ebb.c: Fix typo in FSF copyright statement.
7374 * sched-rgn.c: Fix typo in FSF copyright statement.
7375 * sched-vis.c: Fix typo in FSF copyright statement.
7377 * config.gcc: Move inclusion of arm elf specific header files
7378 from the files themselves into the tm_file variable. Make
7379 sure that elfos.h is included before target specific elf
7381 * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7383 (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7384 * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7385 ASM_OUTPUT_CASE_LABEL): Protect definition.
7386 (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7387 not already defined.
7388 * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7389 LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7390 Remove duplicate definition.
7391 (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7392 (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7393 (RDATA_SECTION_FUNCTION): Remove redundant definition.
7394 (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7395 Remove inclusion of arm/elf.h.
7396 * config/arm/unknown-elf.h: as for conix-elf.h.
7397 (STARTFILE_SPEC): Include crti.o and crtn.o.
7398 * config/arm/linux-elf.h: as for conix-elf.h.
7399 * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7400 * config/arm/strongarm-elf.h: Remove inclusion of
7402 * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7403 * config/arm/unknown-elf-oabi.h: Remove inclusion of
7404 unknown-elf.h and elf.h.
7405 * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7406 * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7407 ASM_WEAKEN_LABEL): Remove redundant definition.
7408 * config/arm/elf.h: Test for inclusion of elfos.h
7409 (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7410 ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7411 SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7412 EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7413 redundant definition.
7414 (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7415 ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7416 ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7417 * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7418 Add rules to build crti.o and crtn.o
7419 * crti.asm: New file.
7420 * crtn.asm: New file.
7422 2001-09-13 Neil Booth <neil@daikokuya.demon.co.uk>
7424 * c-parse.in (_yylex): Use _cpp_backup_tokens.
7425 * cpphash.h (struct tokenrun): Add prev.
7426 (struct lexer_state): Remove bol.
7427 (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7428 (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7430 * cppinit.c (cpp_create_reader): Don't set bol.
7431 (cpp_destroy): Don't free lookaheads.
7432 * cpplex.c (lex_directive): Remove.
7433 (next_tokenrun): Update.
7434 (_cpp_lex_token): Clean up logic.
7435 (lex_token): Update to return a pointer to lexed token, since it
7436 can move to the start of the buffer. Simpify newline handling.
7437 * cpplib.c (SEEN_EOL): Update.
7438 (skip_rest_of_line): Remove lookahead stuff.
7439 (end_directive): Line numbers are already incremented. Revert
7440 to start of lexed token buffer if we can.
7441 (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7442 parse_answer): Use _cpp_backup_tokens.
7443 (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7444 instead. Don't check for EOL.
7445 (do_include_common, do_line, do_pragma_system_header): Use
7447 * cpplib.h (BOL, _cpp_backup_tokens): New.
7448 * cppmacro.c (save_lookahead_token, take_lookahead_token,
7449 alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7450 cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7451 (builtin_macro): Don't use cpp_get_line.
7452 (cpp_get_line): Short term kludge.
7453 (parse_arg): Handle directives in arguments here. Back up when
7454 appropriate. Store EOF at end of argument list.
7455 (funlike_invocation_p): Use _cpp_backup_tokens.
7456 (push_arg_context): Account for EOF at end of list.
7457 (cpp_get_token): Remove lookahead stuff. Update.
7459 2001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7461 * c-parse.in (yyerror): Const-ification and/or static-ization.
7462 * c-typeck.c (push_member_name): Likewise.
7463 * collect2.c (main): Likewise.
7464 * dbxout.c (dbxout_parms): Likewise.
7465 * diagnostic.c (format_with_decl): Likewise.
7466 * dwarf2out.c (output_ranges): Likewise.
7467 * dwarfout.c (fundamental_type_code): Likewise.
7468 * except.c (dw2_output_call_site_table): Likewise.
7469 * gcc.c (do_spec_1): Likewise.
7470 * genopinit.c (optabs): Likewise.
7471 * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7472 gen_declaration_1, handle_impent): Likewise.
7473 * protoize.c (default_include, in_system_include_dir, abspath):
7475 * sched-vis.c (visualize_stall_cycles): Likewise.
7476 * sdbout.c (plain_type_1, sdbout_end_function,
7477 sdbout_end_epilogue): Likewise.
7478 * varasm.c (decode_reg_name): Likewise.
7480 * 1750a.c (mod_regno_adjust): Likewise.
7481 * alpha.c (alpha_write_one_linkage,
7482 unicosmk_output_default_externs): Likewise.
7483 * arm.c (arm_condition_codes): Likewise.
7484 * arm.h (arm_condition_codes): Likewise.
7485 * avr.c (output_movsisf, encode_section_info): Likewise.
7486 * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7488 * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7489 * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7490 * m88k.c (output_function_profiler): Likewise.
7491 * mips.c (mips_output_conditional_branch): Likewise.
7492 * ns32k.c (ns32k_out_reg_names): Likewise.
7493 * ns32k.h (ns32k_out_reg_names): Likewise.
7494 * pj.c (pj_output_rval): Likewise.
7495 * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7496 * sparc.c (sparc_flat_function_prologue,
7497 sparc_flat_function_epilogue): Likewise.
7499 2001-09-13 Markus Werle <numerical.simulation@web.de>
7500 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7502 * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7503 Aachen University of Technology".
7505 2001-09-13 Andreas Schwab <schwab@suse.de>
7507 * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
7510 2001-09-13 Richard Henderson <rth@redhat.com>
7512 * config/alpha/alpha.c (small_symbolic_operand): New.
7513 (override_options): Set MASK_SMALL_DATA based on pic/PIC.
7514 (some_operand, input_operand): Don't handle HIGH.
7515 (alpha_legitimize_address): Use it. Emit HIGH with PLUS gp.
7516 (alpha_expand_mov): Likewise.
7517 (print_operand) [H]: Just print HIGH symbol.
7518 (print_operand_address): Handle small data.
7519 * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
7520 (TARGET_SWITCHES): Add -msmall-data/large-data.
7521 (PIC_OFFSET_TABLE_REGNUM): New.
7522 (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
7523 (PREDICATE_COES): Update.
7524 * config/alpha/alpha.md (adddi_er_high): New.
7525 (adddi_er_low): Handle small data.
7526 * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
7527 prefer .sdata to .rodata.
7528 (SELECT_RTX_SECTION): Likewise.
7530 2001-09-12 Josh Martin <josh.martin@abq.sc.philips.com>
7532 * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
7533 defining __size_t and leaving size_t undefined.
7535 2001-09-12 Diego Novillo <dnovillo@redhat.com>
7537 * basic-block.h (expunge_block): Declare.
7538 * cfg.c (expunge_block): Remove static declaration.
7540 2001-09-12 Richard Henderson <rth@redhat.com>
7542 * integrate.c (copy_insn_list): Copy label name from
7543 NOTE_INSN_DELETED_LABEL.
7545 2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7547 * c-common.c (c_tree_code_name): Const-ification.
7548 * c-decl.c (c_decode_option): Likewise.
7549 * c-typeck.c (warn_for_assignment): Likewise.
7550 * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
7552 * cppinit.c (output_deps): Likewise.
7553 * dependence.c (dependence_string, direction_string): Likewise.
7554 * dwarf2out.c (output_ranges): Likewise.
7555 * fixinc/fixfixes.c (emit_gnu_type): Likewise.
7556 * fixinc/gnu-regex.c (re_error_msgid): Likewise.
7557 * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
7558 standard_startfile_prefix, standard_startfile_prefix_1,
7559 standard_startfile_prefix_2, tooldir_base_prefix,
7560 standard_bindir_prefix, find_a_file): Likewise.
7561 * genattrtab.c (make_length_attrs): Likewise.
7562 * gencheck.c (tree_codes): Likewise.
7563 * genemit.c (gen_split): Likewise.
7564 * genrecog.c (special_mode_pred_table): Likewise.
7565 * graph.c (graph_ext): Likewise.
7566 * protoize (default_include): Likewise.
7567 * reload.c (reload_when_needed_name): Likewise.
7568 * sched-vis.c (visualize_stall_cycles): Likewise.
7569 * tlink.c (recompile_files): Likewise.
7570 * toplev.c (decode_g_option): Likewise.
7571 * tradcpp.c (output_deps): Likewise.
7572 * varasm.c (decode_reg_name): Likewise.
7574 * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
7577 * avr.c (avr_regnames, encode_section_info): Likewise.
7578 * c4x.c (float_reg_names): Likewise.
7579 * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
7580 * elfos.h (const_section): Likewise.
7581 * i386.c (ix86_comp_type_attributes): Likewise.
7582 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
7583 * ia64/aix.h (UNIQUE_SECTION): Likewise.
7584 * ia64.c (type_names): Likewise.
7585 * m68hc11.c (reg_class_names): Likewise.
7586 * m88k.c (m_options): Likewise.
7587 * mips.c (mips_output_conditional_branch, mips_unique_section):
7589 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7590 * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7591 ultra_code_names): Likewise.
7592 * sparc.h (OVERRIDE_OPTIONS): Likewise.
7594 2001-09-12 Jakub Jelinek <jakub@redhat.com>
7596 * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7597 Use --fatal-warnings option for gas.
7598 * configure: Rebuilt.
7600 2001-09-12 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7602 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7604 2001-09-11 Jim Wilson <wilson@redhat.com>
7606 * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7608 2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7610 * builtins.c (c_strlen): Treat an offset too large for a
7611 HOST_WIDE_INT as out of range.
7613 Tue Sep 11 18:57:47 CEST 2001 Jan Hubicka <jh@suse.cz>
7615 * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7616 (EDGE_CRITICAL_P): New predicate.
7617 * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7619 (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7620 (dump_edge_info): Remove "crit".
7621 * cfganal.c (mark_critical_edges): Kill.
7622 * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7623 * cfgcleanup.c (cleanup_cfg): Likewise.
7624 * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7625 (find_spanning_tree): Likewise.
7626 * reg-stack.c (convert_regs_1): Likewise.
7627 * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7629 * basic-block.h (create_basic_block_structure): New.
7630 (create_basic_block): Update prototype.
7631 (force_nonfallthru): New.
7632 * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7633 * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7634 handle updating of block_for_insn, creating of empty BBs and BBs at
7635 the end of INSN chain.
7636 (create_basic_block): New function.
7637 (split_block): Use create_basic_block.
7638 (force_nonfallthru_and_redirect): Break out from ...; cleanup
7639 (redirect_edge_and_branch_force): ... here.
7640 (force_nonfallthru): New.
7641 (split_edge): Rewrite to use force_nonfallthru and create_block.
7642 * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7643 (find_basic_blocks): Free basic_block_for_insn.
7644 * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7646 * cfg.c: Fix formating.
7647 * cfgcleanup.c: Fix formating.
7648 (merge_blocks, tail_recursion_label_p): Return bool.
7649 (merge_blocks_move_predecessor_nojumps,
7650 merge_blocks_move_successor_nojumps): Return void.
7652 2001-09-11 Jakub Jelinek <jakub@redhat.com>
7654 * configure.in: Check whether assembler supports section merging.
7655 * config.in: Rebuilt.
7656 * configure: Rebuilt.
7657 * varasm.c (variable_section, output_constant_pool): Pass alignment
7658 to SELECT_SECTION and SELECT_RTX_SECTION.
7659 (mergeable_string_section): New.
7660 (mergeable_constant_section): New.
7661 (default_elf_asm_named_section): Output SECTION_MERGE and
7662 SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7663 * output.h (mergeable_string_section): New.
7664 (mergeable_constant_section): New.
7665 (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7666 * toplev.c (flag_merge_constants): New.
7667 (f_options): Add -fmerge-constants and -fmerge-all-constants
7669 (toplev_main): Default to -fno-merge-constants if not optimizing.
7670 * flags.h (flag_merge_constants): Add extern.
7671 * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7672 * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7674 * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7675 Define if assembler has working .subsection -1 support.
7676 (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7677 Put constant into special SHF_MERGE sections if the linker should
7678 attempt to merge duplicates.
7679 * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7681 Put constant into special SHF_MERGE sections if the linker should
7682 attempt to merge duplicates.
7683 * config/alpha/elf.h: Likewise.
7684 (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7685 has working .subsection -1 support.
7686 * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7688 * config/svr3.h: Likewise.
7689 * config/darwin.h: Likewise.
7690 * config/arm/aof.h: Likewise.
7691 * config/arm/linux-elf.h: Likewise.
7692 * config/avr/avr.h: Likewise.
7693 * config/c4x/c4x.h: Likewise.
7694 * config/d30v/d30v.h: Likewise.
7695 * config/i386/dgux.h: Likewise.
7696 * config/i386/osfrose.h: Likewise.
7697 * config/i386/sco5.h: Likewise.
7698 * config/i386/svr3gas.h: Likewise.
7699 * config/ia64/aix.h: Likewise.
7700 * config/m32r/m32r.h: Likewise.
7701 * config/m68k/m68k.h: Likewise.
7702 * config/m88k/dgux.h: Likewise.
7703 * config/m88k/m88k.h: Likewise.
7704 * config/mcore/mcore-pe.h: Likewise.
7705 * config/mips/mips.h: Likewise.
7706 * config/pa/pa.h: Likewise.
7707 * config/pa/pa-linux.h: Likewise.
7708 * config/romp/romp.h: Likewise.
7709 * config/rs6000/sysv4.h: Likewise.
7710 * config/rs6000/xcoff.h: Likewise.
7711 * config/s390/linux.h: Likewise.
7712 * config/sparc/sparc.h: Likewise.
7713 * config/sparc/sysv4.h: Likewise.
7714 * config/stormy16/stormy16.h: Likewise.
7715 * config/v850/v850.h: Likewise.
7716 * config/vax/vms.h: Likewise.
7717 * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7718 and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7719 * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7720 default_elf_asm_named_section for SHF_MERGE sections.
7722 Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka <jh@suse.cz>
7724 * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7727 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
7729 * c-common.c (split_specs_attrs): Allow for empty attributes with
7730 empty TREE_PURPOSE. Fixes PR c/4294.
7732 Tue Sep 11 11:37:52 CEST 2001 Jan Hubicka <jh@suse.cz>
7734 * basic-block.h (cached_make_edge, make_single_succ): New.
7735 (make_edge): Remove first parameter.
7736 * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7737 * cfg.c (cached_make_edge): Rename from make_edge; return newly
7738 created edge; use obstack allocation.
7739 (make_edge, make_single_succ_edge): New.
7740 (first_removed_edge): New static variable.
7741 (init_flow): Initialize first_removed_edge and n_edges.
7742 (clear_edges): Use remove_edge.
7743 (flow_delete_block): Likewise.
7744 (remove_edge): Add removed edges to the removed edges list.
7745 (split_block, redirect_edge_and_branch_force, split_edge):
7747 * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7748 (add_noreturn_fake_exit_edges): Likewise.
7749 (connect_infinite_loops_to_exit): Liekwise.
7750 * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7751 Use cached_make_edge.
7752 * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7753 * profile.c (branch_prob): Update make_edge call.
7754 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7756 2001-09-11 Richard Henderson <rth@redhat.com>
7758 * config/alpha/alpha.c: Tidy formatting.
7759 (local_symbolic_operand): Verify mode.
7760 (alpha_sa_mask): Ignore unicos for eh_return.
7761 (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7762 * config/alpha/alpha.md (umk divsi patterns): Remove.
7763 (extendsfdf2): Remove unicos check.
7764 (tablejump): Merge vms and unicos code; always use direct set
7767 2001-09-11 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7769 * config.gcc (alpha*-*-unicosmk*): New target.
7771 * config/alpha/alpha-protos.h (symbolic_operand,
7772 unicosmk_add_call_info_word, unicosmk_add_extern,
7773 unicosmk_defer_case_vector, unicosmk_unique_section,
7774 unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7775 unicosmk_asm_file_start, unicosmk_asm_file_end,
7776 unicosmk_output_common): Declare.
7778 * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7779 direct_return, function_arg, alpha_va_start, alpha_va_arg,
7780 alpha_does_function_need_gp, alpha_end_function): Support Cray
7782 (alpha_init_machine_status, alpha_mark_machine_status,
7783 alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7784 unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7785 unicosmk_asm_named_section, unicosmk_insert_attributes,
7786 unicosmk_section_type_flags, symbolic_operand,
7787 unicosmk_output_module_name, unicosmk_output_default_externs,
7788 unicosmk_output_dex, unicosmk_output_externs,
7789 unicosmk_output_addr_vec, unicosmk_ssib_name,
7790 unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7791 unicosmk_asm_file_end, unicosmk_output_common,
7792 unicosmk_section_type_flags, unicosmk_unique_section,
7793 unicosmk_add_call_info_word, unicosmk_text_section,
7794 unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7795 unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7796 unicosmk_dex_count, unicosmk_special_name): New.
7797 (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7798 TARGET_ABI_UNICOSMK.
7799 (get_aligned_mem, alpha_expand_unaligned_load,
7800 alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7801 alpha_expand_unaligned_store_words): Support big-endian mode.
7802 (print_operand): Likewise. New format specifier 't'. Use
7803 TARGET_AS_SLASH_BEFORE_SUFFIX.
7804 (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7805 (alpha_pv_save_size): Update with above change.
7806 (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7807 alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7810 * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7811 (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7812 (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7813 (EXTRA_CONSTRAINT): New constraint 'U'.
7814 (PREDICATE_CODES): Add symbolic_operand.
7816 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7817 UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7818 (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7819 (integer division and modulus patterns): Split in default and
7821 (*divmodsi_internal, *divmoddi_internal): Disable for
7822 TARGET_ABI_UNICOSMK.
7823 (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7824 little-endian and big-endian versions.
7825 (ext, ins, msk): Likewise.
7826 (extv, extzv, insv): Support big-endian mode.
7827 (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7828 (call_umk, call_value_umk, *call_umk, tablejump_umk,
7829 *tablejump_umk_internal, *call_value_umk): New.
7830 (*movdi_nofix): Add pattern for loading an address into a register on
7831 TARGET_ABI_UNICOSMK.
7832 (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7833 (umk_mismatch_args, arg_home_umk): New.
7834 (various insns): Don't use mov, fmov, nop, fnop and unop.
7835 (realign): Support TARGET_ABI_UNICOSMK.
7837 * config/alpha/unicosmk.h: New file.
7838 * config/alpha/t-unicosmk: New file.
7840 * fixinc/inclhack.def (unicosmk_restrict): New.
7841 * fixinc/fixincl.x: Regenerate.
7843 * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7844 (wchar_t): Check for and define __WCHAR_T__.
7846 2001-09-11 Richard Sandiford <rsandifo@redhat.com>
7848 * combine.c (simplify_shift_const): Treat shifts by the mode
7851 2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
7853 * cpphash.h (struct tokenrun): New.
7854 (struct cpp_context): New member bol.
7855 (struct cpp_reader): New members.
7856 (_cpp_init_tokenrun): New.
7857 * cppinit.c (cpp_create_reader): Set up the token runs.
7858 * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7859 (lex_token): New internalised version of _cpp_lex_token. Don't
7860 handle directives or the multiple include optimization here any
7861 more. Simply lex a token.
7862 * cpplib.c (run_directive): Clear bol.
7863 (_cpp_pop_buffer): Set bol.
7864 * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7867 2001-09-11 Michael Meissner <meissner@redhat.com>
7869 * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7870 give an error if the user uses -mfp32.
7871 (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7873 (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7874 floating point register size.
7875 (EXTRA_SPECS): Add CPP_FPR_SPEC.
7877 * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7878 HOST_WIDE_INT_PRINT_DEC to properly print the result of
7880 * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7881 * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7883 2001-09-11 Hans-Peter Nilsson <hp@axis.com>
7885 * dbxout.c (dbxout_parms): Fix typo in comment.
7886 * unroll.c (loop_find_equiv_value): Ditto.
7887 * toplev.c (rest_of_compilation): Ditto.
7888 * loop.c (scan_loop): Ditto.
7889 * dwarf2out.c (struct dw_fde_struct): Ditto.
7891 2001-09-10 Zack Weinberg <zackw@panix.com>
7893 * cpplex.c (parse_identifier): Fast-path optimize. Avoid
7894 copying identifier when we're just going to throw it away.
7895 (parse_identifier_slow): New routine to handle abnormal cases.
7896 (_cpp_lex_token): Update call site.
7898 * hashtable.c (ht_lookup): Don't assume that the string we've
7899 been given is NUL-terminated.
7900 * system.h: #define __builtin_expect(a, b) to (a) if not
7903 2001-09-10 Michael Meissner <meissner@redhat.com>
7905 * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7908 2001-09-10 David Edelsohn <edelsohn@gnu.org>
7910 * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7912 Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7914 * builtins.c (c_getstr): Correct thinko in last change and further
7917 2001-09-10 Tim Freeman <tim@fungibole.com>
7919 * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7920 into varray's and register them as roots with the garbage
7921 collector so they are not collected too soon.
7923 Mon Sep 10 14:21:26 CEST 2001 Jan Hubicka <jh@suse.cz>
7925 * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7927 * basic-block.h (flow_obstack, label_value_list,
7928 tail_recursion_label_list): Declare
7929 (tidy_fallthru_edges): Declare.
7930 (expunge_block, last_loop_beg_note): Delete.
7931 (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7933 (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7934 (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7935 init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7936 flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7937 expunge_block, flow_delete_block, compute_bb_for_insn,
7938 update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7939 make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7940 redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7941 try_redirect_by_replacing_jump, last_loop_beg_note,
7942 redirect_edge_and_branch, redirect_edge_and_branch_force,
7943 tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7944 split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7945 commit_edge_insertions, dump_flow_info, debug_flow_info,
7946 dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7947 verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7948 Move here from flow.c
7949 * cfganal.c: New file.
7950 (forwarder_block_p, can_fallthru, mark_critical_edges,
7951 mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7952 find_unreachable_blocks, create_edge_list, free_edge_list,
7953 print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7954 flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7955 add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7956 flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7957 flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7958 flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7959 Move here from flow.c
7960 * cfgbuild.c: New file
7961 (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7962 make_edges, find_basic_blocks_1, find_basic_blocks,
7963 find_sub_basic_blocks): Move here from flow.c
7964 * cfgcleanup.c: New file.
7965 (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7966 merge_blocks_move_predecessor_nojumps,
7967 merge_blocks_move_successor_nojumps, merge_blocks,
7968 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7969 try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7970 (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7972 * cfgloop.c: New file
7973 (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7974 flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7975 flow_loop_exit_edges_find, flow_loop_nodes_find,
7976 flow_loop_pre_header_scan, flow_loop_pre_header_find,
7977 flow_loop_tree_node_add, flow_loops_tree_build,
7978 flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7979 flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7980 Move here from flow.c
7981 * flow.c: Remove everything moved elsewhere
7982 * output.h (cleanup_cfg): Return bool.
7984 * bb-reorder.c (reorder_block_def): Remove 'index'.
7985 (insert_intra_1): Add argument BB, set block for new note.
7986 (make_reorder_chain): Do not depdent on BB indexes.
7987 (make_reorder_chain_1): Do not use BB indexes.
7988 (label_for_bb): Likewise; set BB for new insn.
7989 (emit_jump_to_block_after): Likewise.
7990 (fixup_reorder_chain): Sanity check that all basic blocks
7991 are chained; verify newly created insn chain; remove
7992 undocnitional jump simplifying; Do not use BB indexes;
7993 properly initialize count and frequency information;
7994 dump reordered sequence.
7995 (insert_intra_bb_scope_notes): update call of insert_intra_1.
7996 (insert_inter_bb_scope_notes): Set block for new insn.
7997 (reorder_basic_blocks): Dump flow info before reoredering.
7999 Mon Sep 10 06:47:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8001 * alias.c (clear_reg_alias_info): Use K&R format definition.
8002 Avoid unsigned warning.
8003 * builtins.c: Use "unsigned int", not "unsigned".
8004 (target_char_cast): Use host_integerp and tree_low_cst.
8005 (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
8006 (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
8007 (c_getstr): Likewise.
8008 (std_expand_builtin_va_arg): Use int_size_in_bytes.
8009 (builtin_memcpy_read_str): Avoid unsigned warning.
8010 (expand_builtin_memcpy): Alignments are unsigned.
8011 (expand_builtin_strncpy, expand_builtin_memset): Likewise.
8012 (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
8013 * predict.c (expensive_function_p): LIMIT now unsigned.
8014 * resource.c (mark_target_live_regs): Make some vars unsigned.
8015 * sdbout.c: Use "unsigned int", not "unsigned".
8016 (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
8017 (sdbout_source_line): Likewise.
8018 (sdbout_record_type_name): Remove "const" for NAME declaration.
8019 * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
8021 2001-09-10 Richard Sandiford <rsandifo@redhat.com>
8023 * calls.c (store_one_arg): Expand comment.
8025 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8027 * calls.c (store_one_arg): Make sure that the entire argument is
8028 pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
8030 2001-09-09 Richard Henderson <rth@redhat.com>
8032 * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
8034 Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
8036 * loop.c (combine_givs): Fix computing of benefit once giv is combined.
8038 2001-09-09 Richard Henderson <rth@redhat.com>
8040 * config/alpha/alpha.c (alpha_next_sequence_number): New.
8041 (alpha_this_literal_sequence_number): New.
8042 (alpha_this_gpdisp_sequence_number): New.
8043 (some_operand, input_operand): Add HIGH.
8044 (local_symbolic_operand): New.
8045 (alpha_encode_section_info): New.
8046 (alpha_legitimate_address_p): Allow LO_SUM.
8047 (alpha_legitimize_address): Generate HIGH+LO_SUM.
8048 (alpha_expand_mov): Likewise.
8049 (secondary_reload_class): Check memory_operand not general_operand
8051 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8052 (alpha_expand_unaligned_store): Likewise.
8053 (alpha_expand_unaligned_load_words): Likewise.
8054 (alpha_expand_unaligned_store_words): Likewise.
8055 (alpha_expand_block_clear): Likewise.
8056 (print_operand): Handle %#, %*, %H.
8057 (print_operand_address): Handle LO_SUM.
8059 (alpha_does_function_need_gp): Use it.
8060 (alpha_expand_block_move): Fix signed compare warnings.
8061 (alpha_sa_mask, alpha_align_insns): Likewise.
8062 * config/alpha/alpha-protos.h: Update.
8063 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8064 (MASK_EXPLICIT_RELOCS): New.
8065 (TARGET_SWITCHES): Add -mexplicit-relocs.
8066 (EXTRA_CONSTRAINT): Add 'T'.
8067 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8068 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8069 (ENCODE_SECTION_INFO): Out line.
8070 (REDO_SECTION_INFO_P): New.
8071 (STRIP_NAME_ENCODING): New.
8072 (ASM_OUTPUT_LABELREF): New.
8073 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8074 (PREDICATE_CODES): Update.
8075 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8076 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8077 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8078 builtin_setjmp_receiver_er, exception_receiver_1_er,
8079 call_value_osf_1_er): New patterns.
8080 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8081 (movqi, movhi, movsi): Add explicit $31 base register to lda.
8082 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8083 (FINAL_PRESCAN_INSN): New.
8085 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
8087 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8089 2001-09-08 Andreas Jaeger <aj@suse.de>
8091 * i386.h (TARGET_SWITCHES): Fix description.
8093 2001-09-07 David Edelsohn <edelsohn@gnu.org>
8095 * rs6000.c (num_insns_constant): Compute number of instructions
8098 * doc/install.texi: Explain AIX exception handling work-around.
8099 Update URL for AIX fixes.
8101 2001-09-07 Jim Wilson <wilson@redhat.com>
8103 * alias.c (clear_reg_alias_info): New.
8104 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8105 * rtl.h (clear_reg_alias_info): Declare.
8107 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8109 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8111 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8112 (m16m,edivm,emulm): Change declaration to match definition.
8114 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8116 * reload.c (push_reload): Check for subreg_lowpart_p instead of
8117 SUBREG_BYTE being 0 when determining if the inner part of a subreg
8120 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8122 * c-common.c (signed_or_unsigned_type): Handle machine mode types
8123 which have no corresponding C type.
8124 * fold_const.c (target_isinf,target_isnan,target_negative): Update
8125 the representation of 64-bit doubles to work with 64-bit ints.
8127 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
8129 * config/mips/mips.c (override_options): Do not override ISA when ABI
8130 specified if MIPS_CPU_STRING_DEFAULT was specified.
8132 2001-09-07 Richard Henderson <rth@redhat.com>
8134 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8135 (express_from_1): Wrap lines.
8136 * rtlanal.c (commutative_operand_precedence): Rename from
8137 operand_preference; export.
8138 * rtl.h: Declare it.
8139 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8140 (simplify_binary_operation): Invoke simplify_plus_minus on
8141 (CONST (PLUS ...)) as well.
8142 (struct simplify_plus_minus_op_data): New.
8143 (simplify_plus_minus_op_data_cmp): New.
8144 (simplify_plus_minus): Use them. Avoid infinite recursion with
8145 simplify_binary_operation wrt CONST.
8147 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
8149 * h8300-protos.h (general_operand_dst_push): Remove.
8150 * h8300.c (general_operand_dst_push): Likewise.
8151 * h8300.h (OK_FOR_T): Likewise.
8152 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8153 * h8300.md (pushqi_h8300): New.
8154 (pushqi_h8300hs): Likewise.
8156 (pushhi_h8300): Likewise.
8157 (pushhi_h8300hs): Likewise.
8160 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8162 * genattrtab.c (attr_printf): First arg is unsigned.
8163 Clean up formatting of callers.
8165 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
8167 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8170 2001-09-07 Andreas Jaeger <aj@suse.de>
8172 * i386.h (TARGET_SWITCHES): Fix descriptions.
8174 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
8176 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8178 2001-09-06 Ira Ruben <ira@apple.com>
8180 Remove OP_IDENTIFIER.
8181 * tree.def (OP_IDENTIFIER): Remove.
8182 * tree.c (tree_node_kind enum): Remove op_id_kind.
8183 (tree_node_kind_names): Remove "op_identifiers".
8184 (make_node): Remove OP_IDENTIFIER test.
8185 (build_op_identifier): Removed because it isn't being used.
8186 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8187 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8189 2001-09-06 Richard Henderson <rth@redhat.com>
8191 * simplify-rtx.c (simplify_binary_operation): Revert last change.
8193 2001-09-06 Richard Henderson <rth@redhat.com>
8195 * simplify-rtx.c (simplify_binary_operation): Simplify contents
8198 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8200 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8201 number used for CR register.
8203 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8204 Joern Rennecke (amylaar@cygnus.com)
8206 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8207 * h8300.c (initial_offset): Handle offset between RP and FP.
8208 (h8300_return_addr_rtx): New function.
8209 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8211 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8212 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8213 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8214 (CAN_ELIMINATE, REGISTER_NAMES):
8215 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8217 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
8219 Remove TYPE_NONCOPIED_PARTS.
8220 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8221 (struct tree_type): Remove noncopied_parts.
8222 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8223 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8224 (fixed_type_p): Remove.
8225 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8226 (expand_expr, MODIFY_EXPR): Likewise.
8227 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8228 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8230 2001-09-06 Alan Modra <amodra@bigpond.net.au>
8232 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8234 (mask64_operand): Likewise.
8235 (includes_rldic_lshift_p): Likewise.
8236 (includes_rldicr_lshift_p): Likewise.
8238 2001-09-05 Ziemowit Laski <zlaski@apple.com>
8240 * objc/objc-act.c (build_message_expr): If a class method cannot
8241 be found, do not issue a warning if a corresponding instance
8242 method exists in the root class.
8244 2001-09-05 Richard Henderson <rth@redhat.com>
8246 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8248 2001-09-05 Zack Weinberg <zack@codesourcery.com>
8250 * function.c (ggc_mark_struct_function): Mark f->outer.
8251 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8252 * integrate.c (output_inline_function): ... not here.
8254 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
8256 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8258 * i386.c (size_cost): New static variable.
8259 (override_function): Use size_cost when -Os is specified.
8261 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8262 properly; Use current_function_calls_eh_return.
8263 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8264 use leave to avoid dependency chain.
8266 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8267 get BB loop_depth instead of computing it from LOOP notes.
8269 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8271 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8273 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8274 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8275 UNALIGNED_DOUBLE_INT_ASM_OP): Define
8277 2001-09-05 Jeffrey A Law (law@cygnus.com)
8278 Jason Merrill (jason@redhat.com)
8280 * stor-layout.c (layout_type): Complain if an array's size can
8281 not be represented in a size_t.
8283 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8285 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
8287 * gcc.c: (process_command) Add parentheses around assignment
8288 used as truth value.
8290 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8292 * config/mips/mips.c (save_restore_insns): Don't mark any register
8293 save slots as unchanging if current_function_calls_eh_return.
8295 2001-09-05 Richard Henderson <rth@redhat.com>
8297 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8298 * config/alpha/alpha-protos.h: Declare it.
8299 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8300 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8301 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8302 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8303 (REG_OK_FOR_BASE_P): Select one of the above.
8305 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8307 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8308 (crti.o): Prefix name of object file with $(T).
8311 2001-09-05 David S. Miller <davem@redhat.com>
8313 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8314 * config/sparc/linux64.h: Likewise.
8316 2001-09-05 Andreas Jaeger <aj@suse.de>
8318 * doc/invoke.texi (i386 Options): -mwide-multiply is not
8319 available anymore, remove the documentation.
8320 (i386 Options): Fix typo, cleanup index entries.
8322 * prefix.c (concat): Remove, we can use the version from liberty.
8324 2001-09-05 Richard Henderson <rth@redhat.com>
8326 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8327 New functions split out of md file expanders.
8328 * config/alpha/alpha-protos.h: Declare them.
8329 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8331 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
8333 * cppmacro.c (funlike_invocation_p): No need to restore context.
8335 2001-09-04 Richard Henderson <rth@redhat.com>
8337 * reload.c (push_reload): Export.
8338 * reload.h (push_reload): Declare it.
8340 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8341 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8342 * config/alpha/alpha.c (alpha_legitimize_address): New.
8343 (alpha_legitimize_reload_address): Likewise.
8344 * config/alpha/alpha-protos.h: Declare them.
8346 2001-09-04 Stan Shebs <shebs@apple.com>
8348 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8349 * config/darwin.c (machopic_stub_name): Account for internally
8350 generated lib calls such as memcpy.
8352 2001-09-04 Richard Henderson <rth@redhat.com>
8354 * unwind.h (_UA_END_OF_STACK): New flag.
8355 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8357 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8359 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8361 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
8363 * config/mips/mips.c (save_restore_insns): Change base_offset to
8364 fp_offset in second call to mips_emit_frame_related_store.
8366 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
8368 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8369 sometimes be represented as a NOTE of type
8370 NOTE_INSN_DELETED_LABEL.
8371 (Insns): Document NOTE_INSN_DELETED_LABEL.
8373 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
8375 * c-common.h (tree_dump_index): Add more comments.
8376 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8377 (dump_option_value_info): New struct.
8378 (dump_options): New array.
8379 (dump_switch_p): Parse switch options symbolically.
8380 * doc/invoke.texi (-fdump-ast): Rename to ...
8381 (-fdump-tree): ... here. Document that options are symbolic, and
8382 not all are applicable.
8384 2001-09-04 David S. Miller <davem@redhat.com>
8386 * config/sparc/sparc.md (define_splits): Kill constraints.
8388 Cleanup redundant and unused insn attributes.
8389 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8390 binary, and move. Mark ialu as default.
8391 (commented out define_function_unit "alu"): Kill.
8392 (define_attr "use_clobbered"): Kill.
8393 (whole file): Kill address insn type references. Replace
8394 all unary/binary/move references with ialu.
8395 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8396 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
8399 Simplify length insn attribute and make more judicious use
8400 of insn attribute defaulting.
8401 * config/sparc/sparc.md (all insns with length > one): Mark as
8402 insn type multi if real instructions, else use default if
8403 it is a forced splitter.
8404 (all insns with length == one): Use default insn length.
8405 (all insns of type ialu): Use default insn type.
8407 Fix erroneous insn attribute settings.
8408 (addx): Set insn type to misc.
8409 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8410 const_umulsidi3_sp64): Set insn type to imul.
8412 Track SFmode vs DFmode insns according to UltraSPARC
8414 * config/sparc/sparc.md ("fptype"): New attribute, default
8416 (all DFmode single insns): Mark as fptype "double".
8418 2001-09-03 Jakub Jelinek <jakub@redhat.com>
8420 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8422 2001-09-03 Richard Henderson <rth@redhat.com>
8424 * function.h (struct function): Add arg_pointer_save_area_init.
8425 * function.c (expand_function_end): Init arg_pointer_save_area.
8426 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8427 when called from a nested function.
8429 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
8431 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8434 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
8436 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8438 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
8440 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8441 (emit_push_insn): Use specified padding direction when
8442 STACK_PUSH_CODE is POST_INC.
8444 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8446 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8448 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8450 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
8452 * cppinit.c (cpp_start_read): Free the imacros list as we
8453 traverse it. Don't free the chains before returning.
8454 (_cpp_push_next_buffer): Only try pushing buffers if we've
8455 completed -imacros handling.
8457 2001-08-31 Eric Christopher <echristo@redhat.com>
8459 * gcc.c (handle_braces): Add explaination for abort.
8461 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
8463 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8464 move adjustment of bitpos instead.
8466 2001-08-31 Zack Weinberg <zack@codesourcery.com>
8468 * function.c: Remove all_functions. Make outer_function_chain
8470 (init_function_start): Don't add new function structure to
8472 (find_function_data, push_function_context_to,
8473 pop_function_context_from, put_var_into_stack,
8474 trampoline_address): Update for changed structure element names.
8475 (push_function_context_to): Disentangle.
8476 (free_after_compilation): Also free F.
8477 (expand_dummy_function_end): Don't free cfun here.
8478 (put_var_into_stack): Comment why we can't use find_function_data here.
8479 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8480 (mark_function_chain): Split into maybe_mark_struct_function and
8481 ggc_mark_struct_function. Export the latter.
8482 (init_function_once): Mark from cfun and outer_function_chain;
8485 * function.h (struct function): Kill next_global. Rename next
8486 to outer. All users updated to match.
8487 (all_functions, outer_function_chain): Don't declare.
8489 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8490 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8491 don't touch f->inlinable, after calling rest_of_compilation.
8493 * tree.h: Forward-declare struct function. Prototype
8494 ggc_mark_struct_function.
8496 2001-08-31 Kazu Hirata <kazu@hxi.com>
8498 * config/h8300/h8300.md (*andorhi3): Fix typos.
8500 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8502 * calls.c (emit_library_call_value): Don't use a fixed
8503 argument after VA_CLOSE, i.e. out of scope in traditional C.
8505 * emit-rtl.c (gen_rtvec): Likewise.
8507 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8509 * Makefile.in (c-pragma.o): Depend on output.h.
8510 (reorg.o): Depend on except.h.
8512 * c-pragma.c: Include output.h.
8514 * reorg.c: Include except.h.
8516 * unwind-dw2.c: Call __builtin_alloca, not alloca.
8518 2001-08-31 Richard Henderson <rth@redhat.com>
8520 * sched-deps.c (add_dependence): Don't elide dependency if the
8521 conditional used by insn is modified in elem.
8523 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
8525 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
8527 2001-08-31 Diego Novillo <dnovillo@redhat.com>
8529 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
8532 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
8534 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
8536 (stormy16_asm_out_constructor): New function.
8537 (TARGET_ASM_CONSTRUCTOR): Define.
8538 (TARGET_ASM_DESTRUCTOR): Define.
8540 2001-08-31 Andreas Jaeger <aj@suse.de>
8542 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
8543 * loop.c (add_label_notes): Likewise.
8544 * reload.c (find_reloads): Likewise.
8545 * config/sh/sh.c (machine_dependent_reorg): Likewise.
8547 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
8549 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
8550 code here. Take _Unwind_{W,Sw}ord*.
8551 (read_encoded_value_with_base): Use them.
8552 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
8554 (extract_cie_info): Simplify read_?leb128 handling.
8555 (execute_stack_op, execute_cfa_program): Likewise.
8556 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
8558 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
8560 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
8561 the frame pointer to pop the stack if convenient.
8563 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
8564 Don't use post-increment before combine.
8565 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
8566 a call-saved register.
8568 2001-08-31 Andreas Jaeger <aj@suse.de>
8570 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
8573 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
8575 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
8576 not DIV/MOD, of course.
8578 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
8580 * rtl.def: Undo my patch commited 2001-08-27.
8582 * genattrtab.c: Ditto.
8586 * sched-int.h: Ditto.
8588 * target-def.h: Ditto.
8592 * haifa-sched.c: Ditto.
8594 * sched-rgn.c: Ditto.
8596 * sched-vis.c: Ditto.
8598 * Makefile.in: Ditto.
8600 * doc/md.texi: Ditto.
8602 * doc/tm.texi: Ditto.
8604 * doc/contrib.texi: Ditto.
8606 * doc/gcc.texi: Ditto.
8608 * genattrtab.h: Remove it.
8610 * genautomata.c: Remove it.
8612 * genattr.c: Undo my patch and Richard Henderson's patch commited
8615 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
8617 * config.gcc (h8300-*-elf*): New case.
8618 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8619 (SUBTARGET_CPP_SPEC): Define.
8620 (EXTRA_SPECS): Define.
8621 (SUBTARGET_EXTRA_SPECS): Define.
8622 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8623 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8625 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
8627 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8628 (LIB2FUNCS_EXTRA): Define.
8629 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8630 config/h8300/fixunssfsi.c: New file.
8632 2001-08-30 Kazu Hirata <kazu@hxi.com>
8634 * config/h8300/h8300.md (zero_extendqihi2): Changes to
8635 define_expand to accommodate target-specific attributes.
8636 (anonymous zero_extendqihi2 patterns): New.
8638 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
8640 * h8300.md (*andorhi3): New pattern.
8642 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
8644 * h8300.c (dosize): Fix test for "sub".
8646 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
8648 * c-typeck.c (pointer_diff): Try to eliminate common term before
8651 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
8653 * config/arm/arm.c (arm_compute_initial_elimination_offset):
8654 Account for the saves of the FP registers.
8656 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8657 (TEXT_SECTION_ASM_OP): Define.
8658 (INIT_SECTION_ASM_OP): Define.
8659 (FINI_SECTION_ASM_OP): Define.
8660 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8661 (RDATA_SECTION_FUNCITON): Provide prototype.
8663 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
8665 * reload1.c (move2add_note_store): Correct typo checking for
8668 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
8670 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8671 note should not be considered outside the libcall block.
8673 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8675 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8677 2001-08-29 Kazu Hirata <kazu@hxi.com>
8679 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8681 2001-08-29 Kazu Hirata <kazu@hxi.com>
8683 * config/h8300/h8300-protos.h: Add a prototype for
8685 * config/h8300/h8300.c (emit_logical_op): New.
8686 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8693 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
8695 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8696 comparison with rtx INTVAL.
8697 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8699 * pa.h (FUNCTION_ARG_SIZE): Likewise.
8701 2001-08-29 Kazu Hirata <kazu@hxi.com>
8703 * config/h8300/lib1funcs.asm: Update the copyright. Fix
8706 2001-08-29 Kazu Hirata <kazu@hxi.com>
8708 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8709 (reg n) to (mem (pre_dec (reg n))
8710 (anonymous movsi pattern): Likewise.
8712 2001-08-29 Kazu Hirata <kazu@hxi.com>
8714 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8716 2001-08-29 Kazu Hirata <kazu@hxi.com>
8718 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8719 several special constants.
8721 2001-08-29 Kazu Hirata <kazu@hxi.com>
8723 * config/h8300/lib1funcs.asm: Fix comment typos.
8725 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8727 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8728 Fix format specifier warnings.
8730 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8731 inet_makeaddr, semctl): Prototype.
8733 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8734 (save_restore_insns): Use base_offset, not gp_offset.
8736 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8737 (ASM_OUTPUT_BYTE): Fix format specifier warning.
8739 2001-08-29 Richard Henderson <rth@redhat.com>
8741 * bb-reorder.c (function_tail_eff_head): New.
8742 (record_effective_endpoints): Set it.
8743 (fixup_reorder_chain): Use it.
8745 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8747 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8749 2001-08-28 Dale Johannesen <dalej@apple.com>
8751 * config/darwin.c (machopic_function_base_name): Add const
8752 qualifier to a string.
8753 (darwin_encode_section_info): Ditto.
8755 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8757 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8758 function definition.
8760 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
8762 * df.h (struct df): Add rts_order variable.
8764 * df.c (df_visit_next_rts): New function.
8765 (df_visit_next): Renamed to df_visit_next_rc
8766 (df_analyse_1): Allocate/compute/free rts_order as well.
8767 (df_rd_global_compute): Use df_visit_next_rc instead of
8769 (df_ru_global_compute): Use df_visit_next_rts instead of
8772 * flow.c (flow_reverse_top_sort_order_compute): New function.
8774 * basic-block.h: Add prototype.
8776 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
8778 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8779 blocks, the BB_REACHABLE is now set, rather than aux being
8780 non-NULL. Update the test to reflect this.
8782 2001-08-28 Eric Christopher <echristo@redhat.com>
8784 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8785 config/mips/crti.asm: Ditto.
8787 2001-08-28 Eric Christopher <echristo@redhat.com>
8788 Richard Henderson <rth@redhat.com>
8790 * c-pragma.h (add_weak): Move prototype from here...
8791 * output.h (add_weak): ... to here.
8792 * varasm.c (add_weak): Fix typo.
8793 * config/mips/crti.asm: New file.
8794 * config/mips/crtn.asm: Ditto.
8795 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8796 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8797 (INVOKE__main): Ditto.
8798 (INIT_SECTION_ASM_OP): New.
8799 (FINI_SECTION_ASM_OP): Ditto.
8800 (STARTFILE_SPEC): Add crti.
8801 (ENDFILE_SPEC): Add crtn.
8802 * config/mips/elf64.h: Same.
8803 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8805 * config/mips/vxworks.h: Ditto.
8806 * config/mips/t-elf: Support crti and crtn.
8808 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8810 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8813 2001-08-28 Richard Henderson <rth@redhat.com>
8815 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8816 (one_cmplbi2 splitter): Remove redundant test.
8818 2001-08-28 Dale Johannesen <dalej@apple.com>
8820 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8822 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
8824 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8826 2001-08-28 Stan Shebs <shebs@apple.com>
8828 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8829 (UNALIGNED_SHORT_ASM_OP): Define.
8830 (UNALIGNED_INT_ASM_OP): Define.
8832 2001-08-28 Will Cohen <wcohen@redhat.com>
8834 * config/rs6000/rs6000.md (store_multiple): Correct RTL
8835 generation for first set.
8837 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8839 * flow.c (redirect_edge_succ_nodup): Return new edge.
8840 (try_simplify_condjump): Use new edge.
8841 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8843 * cse.c (cse_basic_block): Skip note instructions.
8845 2001-08-27 Richard Henderson <rth@redhat.com>
8847 * combine.c (combine_simplify_rtx): Don't reverse condition
8848 if there is no reverse for the condition.
8849 (simplify_comparison): Don't simplify subregs from INT to FP.
8851 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8852 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8853 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8854 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8855 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8856 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8858 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8860 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8861 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8863 (adddi_dilshr32, adddi_dishl32): Only data register can be
8864 source for mem destination.
8866 * expmed.c (store_bit_field): Ignore adjustment to bitpos
8867 and use bitnum to decide about register move.
8869 2001-08-27 Richard Henderson <rth@redhat.com>
8871 * genattr.c (main): Emit state_t even when not doing scheduling.
8873 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8874 Richard Henderson <rth@redhat.com>
8876 * gcse.c (reg_first_set, reg_last_set): Replace with ...
8877 (reg_avail_info, current_bb): ... these.
8878 (oprs_unchanged_p, record_last_reg_set_info): Use them.
8879 (compute_hash_table): Likewise.
8881 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8883 * flow.c (verify_flow_info): Use checksums to verify edges.
8885 2001-08-27 Richard Henderson <rth@redhat.com>
8887 * genautomata.c (expand_automata): Always create a description.
8889 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
8891 * optabs.c (expand_binop): Correctly handle the carry in multiword
8892 add/subtract operations.
8894 2001-08-27 Fred Fish <fnf@be.com>
8896 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8899 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
8901 * reload.c (find_reloads_toplev): Back out this change:
8903 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
8905 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8906 mem if the address is a mode_dependent_address_p.
8908 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8910 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8911 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8912 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8915 * genattr.c (main): New variable num_insn_reservations. Increase
8916 it if there is DEFINE_INSN_RESERVATION. Output automaton based
8917 pipeline hazard recognizer interface.
8919 * genattrtab.h: New file.
8921 * genattrtab.c: Include genattrtab.h.
8922 (attr_printf, check_attr_test, make_internal_attr,
8923 make_numeric_value): Move protypes into genattrtab.h. Define them
8925 (num_dfa_decls): New global variable.
8926 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8927 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8928 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8929 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
8931 * genautomata.c: New file.
8933 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8935 * sched-int.h: (curr_state): Add the external definition for
8936 automaton pipeline interface.
8937 (haifa_insn_data): Add comments for members blockage and units.
8939 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8940 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8941 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8942 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8943 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8944 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8945 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8947 (TARGET_SCHED): Use the new macros.
8949 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8950 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8951 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8952 dfa_bubble): New members in gcc_target.sched.
8954 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8955 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8956 (insn_queue): Redefine it as pointer to array.
8957 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8959 (max_insn_queue_index_macro_value): New variable.
8960 (curr_state, dfa_state_size, ready_try): New varaibles for
8961 automaton interface.
8962 (ready_element, ready_remove, max_issue): New function prototypes
8963 for automaton interface.
8964 (choose_ready): New function prototype.
8965 (insn_unit, blockage_range): Add comments.
8966 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8967 FUNCTION_UNITS_SIZE == 0.
8968 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8969 actual_hazard, potential_hazard): Add comments.
8970 (insn_cost): Use cost -1 as undefined value. Remove
8971 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
8973 (ready_element, ready_remove): New functions for automaton
8975 (schedule_insn): Add new code for automaton pipeline interface.
8976 (queue_to_ready): Add new code for automaton pipeline interface.
8977 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8978 (debug_ready_list): Print newline when the queue is empty.
8979 (max_issue): New function for automaton pipeline interface.
8980 (choose_ready): New function.
8981 (schedule_block): Add new code for automaton pipeline interface.
8982 Print ready list before scheduling each insn.
8983 (sched_init): Add new code for automaton pipeline interface.
8984 Initiate insn cost by -1.
8985 (sched_finish): Free the current automaton state and finalize
8986 automaton pipeline interface.
8988 * sched-rgn.c: Include target.h.
8989 (init_ready_list, new_ready, debug_dependencies): Add new code for
8990 automaton pipeline interface.
8992 * sched-vis.c: Include target.h.
8993 (get_visual_tbl_length): Add code for automaton interface.
8994 (target_units, print_block_visualization): Add comments.
8996 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8997 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8998 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8999 (getruntime.o, genautomata.o): New entries.
9000 (genattrtab.o): Add new dependency file genattrtab.h.
9001 (genattrtab): Add new dependencies. Link it with `libm.a'.
9002 (getruntime.o, hashtab.o): New entries for canadian cross.
9004 * doc/md.texi: Description of automaton based model.
9006 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9008 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9009 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9010 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9011 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9012 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9013 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9014 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9016 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9017 MAX_DFA_ISSUE_RATE): New macro descriptions.
9019 * doc/contrib.texi: Add dfa based scheduler contribution.
9021 * doc/gcc.texi: Add more information about genattrtab.
9023 2001-08-27 Diego Novillo <dnovillo@redhat.com>
9025 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
9028 2001-08-27 Richard Henderson <rth@redhat.com>
9030 * function.c (expand_function_end): Don't init arg_pointer_save_area.
9031 (get_arg_pointer_save_area): New. Create an init it here.
9032 (fix_lexical_addr): Use it.
9033 * function.h: Declare it.
9034 * builtins.c (expand_builtin_setjmp_receiver): Use it.
9035 * stmt.c (expand_nl_goto_receiver): Use it.
9037 2001-08-27 Richard Henderson <rth@redhat.com>
9039 * final.c (final_scan_insn): Don't enter APP_ON mode for
9042 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
9043 alignment for assemble_integer for DW_EH_PE_aligned.
9044 * except.c (output_function_exception_table): Likewise.
9046 2001-08-26 Andreas Jaeger <aj@suse.de>
9048 * c-tree.h: Add prototyp for c_sizeof_nowarn.
9050 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
9052 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9054 2001-08-27 Alan Modra <amodra@bigpond.net.au>
9056 * config/rs6000/rs6000.c (mask_operand): Rewrite without
9058 (mask64_operand): Likewise.
9059 (rldic_operand): Delete.
9060 (includes_lshift64_p): Delete.
9061 (includes_rldic_lshift_p): New function.
9062 (includes_rldicr_lshift_p): New function.
9063 (print_operand): Don't call rldic_operand in case 'W'.
9064 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9065 (includes_lshift64_p): Remove.
9066 (includes_rldic_lshift_p): Declare.
9067 (includes_rldicr_lshift_p): Declare.
9068 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9069 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9070 Replace match_operand rldic_operand predicate with
9071 const_int_operand. Replace includes_lshift64_p condition with
9072 includes_rldic_lshift_p.
9073 <ashldi3_internal 64 bit rldicr patterns>: New.
9075 2001-08-27 Andreas Jaeger <aj@suse.de>
9077 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9078 * errors.c: Likewise.
9079 * final.c: Likewise.
9080 * dwarf2asm.c: Likewise.
9081 * doprint.c (checkit): Likewise.
9082 * diagnostic.c: Likewise.
9083 * collect2.c: Likewise.
9084 * calls.c: Likewise.
9085 * c-semantics.c (build_stmt): Likewise.
9086 * c-format.c (status_warning): Likewise.
9087 * c-errors.c (pedwarn_c99): Likewise.
9088 * builtins.c (validate_arglist): Likewise.
9089 * config/pj/pj.c (pj_printf): Likewise.
9090 * fix-header.c: Likewise.
9092 * gcov.c (fnotice): Likewise.
9093 * gensupport.c (message_with_line): Likewise.
9094 * mips-tfile.c: Likewise.
9095 * protoize.c (notice): Likewise.
9096 * read-rtl.c (fatal_with_file_and_line): Likewise.
9097 * rtl-error.c: Likewise.
9098 * tradcpp.c: Likewise.
9100 * cp/tree.c (build_min_nt): Likewise.
9101 (build_min): Likewise.
9102 * cp/lex.c: Likewise.
9103 * cp/errfn.c: Likewise.
9104 * cp/rtti.c (create_pseudo_type_info): Likewise.
9106 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
9108 * df.c (df_uses_record): Return after recording all uses
9111 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
9113 * df.c (df_insn_modify): Realloc the INSN table here, if
9114 necessary, here, too.
9116 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
9118 * config/mips/mips.c (mips_function_value): Handle complex return
9121 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
9123 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9125 * reload.c (make_memloc): Copy result if it is still
9126 reg_equiv_memory_loc[regno] on return.
9127 (subst_reloads) [ENABLE_CHECKING]: Check that none of
9128 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9129 reg_equiv_mem are modified by the substitutions.
9131 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
9133 * predict.c (expensive_function_p): New.
9134 * rtl.h (expensive_function_p): Declare.
9135 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9136 (use_fast_prologue_epilogue): New static variable.
9137 (expand_prologue): Set it; emit short prologues if unset.
9138 (expand_epilogue): Likewise.
9140 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
9142 * config.gcc: Add stormy16-*-elf case.
9143 * config/stormy16/stormy-abi: New file.
9144 * config/stormy16/stormy16-lib2.c: New file.
9145 * config/stormy16/stormy16-protos.h: New file.
9146 * config/stormy16/stormy16.c: New file.
9147 * config/stormy16/stormy16.h: New file.
9148 * config/stormy16/stormy16.md: New file.
9149 * config/stormy16/t-stormy16: New file.
9151 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
9153 * i386.h (no-accumulate-outgoing-args): Use proper mask.
9155 2001-08-24 David Edelsohn <edelsohn@gnu.org>
9157 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9158 descriptor members are pointer size, not constant 4.
9159 * config/rs6000/rs6000.md (define_splits): Remove more unused
9162 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9164 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9166 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
9168 * cp/rtti.c (VPARAMS): Fix parameter.
9170 2001-08-24 Zack Weinberg <zackw@panix.com>
9172 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9174 (mode_for_extraction): No need for #ifdefs. Add default-case abort
9176 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
9177 in if controlling use of insv.
9178 (extract_bit_field): Likewise, for extv and extzv.
9180 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
9182 * i386.md (movcc peep2): Fix load of 0.
9184 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9186 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9187 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9189 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
9191 * c-pragma.h: Move weak_syms and weak_decls...
9192 * varasm.c: ...here. Now static.
9193 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9194 depend on HANDLE_PRAGMA_WEAK.
9196 * c-common.c (c_alignof, c_alignof_expr): Move here...
9197 * c-typeck.c: ...from here.
9198 * c-tree.h, c-common.h: Adjust.
9200 2001-08-23 Bernd Schmidt <bernds@redhat.com>
9202 * config/ia64/ia64.c (rws_update): If !pred, set write_count
9203 instead of incrementing it.
9205 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9206 asm ready, don't try to move them all into the same array element.
9208 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
9210 * function.c (thread_prologue_and_epilogue_insns): Avoid
9211 fallthru flag on edge to exit.
9213 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9215 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9218 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9220 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9221 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9222 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9225 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9227 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9228 replace "GNU CC" with "GCC".
9230 2001-08-23 Richard Henderson <rth@redhat.com>
9232 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9233 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
9234 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9235 Need GR between FR and not GR_AND_FR.
9236 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9237 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9238 AR regs before GR regs.
9239 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9240 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9241 (REGISTER_MOVE_COST): Update.
9242 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9244 2001-08-23 Richard Henderson <rth@redhat.com>
9246 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9249 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
9251 * reload1.c (emit_reload_insns): Don't look for notes
9252 on a NULL store_insn.
9254 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9256 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9257 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9258 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9259 format specifier warnings.
9260 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9262 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
9264 * config/i386/i386-protos.h: Correct declaration of
9265 i386_pe_asm_named_section.
9267 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
9269 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9271 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9273 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9275 * cpperror.c (print_location): Don't show _Pragma.
9276 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9277 and file change callback generation here.
9278 (stack_include_file): Update use of cpp_push_buffer.
9279 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9280 (struct cpp_buffer): Remove type, pfile members.
9281 * cppinit.c (cpp_handle_option): Use free_chain.
9282 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9283 (skip_escaped_newlines, get_effective_char, lex_percent): Take
9284 a cpp_reader rather than a cpp_buffer.
9285 (skip_escaped_newlines, get_effective_char, skip_block_comment,
9286 skip_line_comment, parse_string, lex_percent, lex_dot,
9287 _cpp_lex_token): Update accordingly.
9288 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9290 (cpp_push_buffer): Update prototype.
9291 (run_directive): Update use of cpp_push_buffer.
9292 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9293 handle_assertion): Update use of run_directive.
9294 * cpplib.h (enum cpp_buffer_type): Remove.
9295 (cpp_push_buffer): Update prototype.
9296 * fix-header.c (read_scan_file): Update.
9298 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9300 * gcc.c (struct prefix_list): Change prefix to const char *.
9302 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9304 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9306 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
9308 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9311 * jump.c (squeeze_notes): Take parms by reference. Handle END being
9314 * ifcvt.c (dead_or_predicable): Adjust.
9315 * loop.c (find_and_verify_loops): Adjust.
9316 * stmt.c (expand_end_case): Adjust.
9317 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
9318 head and end insn pointers in the basic block, not just local copies.
9319 (merge_blocks_move_predecessor_nojumps): Likewise.
9321 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
9323 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9324 bitmap.h, builtin-types.def, builtins.c, builtins.def,
9325 c-aux-info.c, c-common.c, c-common.def, c-common.h,
9326 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9327 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9328 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9329 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9330 conditions.h, config.gcc, configure.frag, configure.in,
9331 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9332 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9333 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9334 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9335 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9336 emit-rtl.c, errors.c, errors.h, except.c, except.h,
9337 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9338 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9339 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9340 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9341 gencheck.c, gencodes.c, genconfig.c, genemit.c,
9342 genextract.c, genflags.c, gengenrtl.c, genmultilib,
9343 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9344 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9345 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9346 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9347 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9348 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9349 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9350 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9351 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9352 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9353 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9354 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9355 params.h, predict.c, predict.def, predict.h, prefix.c,
9356 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9357 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9358 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9359 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9360 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9361 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9362 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9363 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9364 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9365 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9366 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9367 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9368 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9369 xcoffout.h: replace "GNU CC" with "GCC".
9371 2001-08-21 Richard Henderson <rth@redhat.com>
9373 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9374 (final_scan_insn): Consider jump tables data even if we have no
9375 independent text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
9377 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9378 (ASM_OUTPUT_CASE_END): Remove.
9379 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9380 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9381 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9383 2001-08-21 Richard Henderson <rth@redhat.com>
9385 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9386 at barrier insns. Emit stop bits before barriers.
9388 * flow.c (flow_find_cross_jump): Don't consider unconditional
9389 return insns for commoning.
9391 * final.c (compute_alignments): Fix typo.
9393 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9394 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9395 (store_bit_field): Use mode_for_extraction more places.
9396 (extract_bit_field): Likewise.
9398 2001-08-21 Zack Weinberg <zackw@panix.com>
9400 * caller-save.c: Don't include insn-codes.h.
9401 (reg_save_code, reg_restore_code): Make arrays of int.
9402 All uses updated to match.
9403 (insert_save, insert_restore): No need to initialize "code"
9404 variable upon declaration.
9405 * Makefile.in: update dependencies; fix typo in clean rule.
9407 2001-08-21 Richard Henderson <rth@redhat.com>
9409 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9410 (merge_if_block): Handle fallout from same.
9412 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9414 * builtins.c (type_to_class): Fix typo in last change.
9416 2001-08-21 Richard Henderson <rth@redhat.com>
9418 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9419 ia64_asm_output_label.
9421 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9422 copy of gp while the real gp register contains garbage.
9424 2001-08-21 Zack Weinberg <zackw@panix.com>
9426 * expmed.c (mode_for_extraction): New function.
9427 (store_bit_field, extract_bit_field): Use it.
9428 * expr.h: Prototype it and provide an enum for its first argument.
9430 * combine.c, function.c, recog.c: Don't include insn-codes.h.
9431 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9432 and digging through the insn_data tables.
9433 * Makefile.in: Update dependencies.
9435 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9437 * cppfiles.c (stack_include_file): line-map.c now handles include
9439 (handle_missing_handler): Similarly.
9440 (_cpp_execute_include): Similarly.
9441 (_cpp_pop_file_buffer): Similarly.
9442 * cpphash.h (struct cpp_reader): Remove system_include_depth,
9443 buffer_stack_depth and include_depth.
9444 * cpplib.c (do_include_common): line-map.c now handles include depth.
9445 (cpp_push_buffer): Similarly.
9446 (_cpp_pop_buffer): Similarly.
9447 * cppmacro.c (builtin_macro): Update.
9448 * line-map.c (init_line_maps): Set depth.
9449 (add_line_map): Increment "used" earlier. Update and use the
9451 (trace_include): Use the include depth.
9452 * line-map.h (struct line_maps): New member depth.
9454 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9456 * cppfiles.c (stack_include_file): Don't handle -H here.
9457 * cppinit.c (cpp_start_read): Set include tracing after
9458 cpp_post_options and after stacking the main file.
9459 * line-map.c (trace_include): New.
9460 (init_line_maps, add_line_map): Update.
9461 * line-map.h (struct line_maps): New member trace_includes.
9463 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9465 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9466 * cppfiles.c (stack_include_file): Only stack a file if there
9467 is something to do. Return a boolean indicating whether a
9468 buffer was stacked or not.
9469 (_cpp_execute_include): Similarly.
9470 (_cpp_read_file): Similarly.
9471 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9473 2001-08-21 Sam Steingold <sds@gnu.org>
9475 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9476 (RECACHE): keep obufp_before_macroname up to date
9478 2001-08-21 Zack Weinberg <zackw@panix.com>
9480 * stmt.c: Don't include insn-codes.h.
9481 (expand_end_case): Machine specific logic moved to expr.c.
9482 No need to worry about __builtin_classify_type.
9483 (check_for_full_enumeration_handling, emit_case_nodes):
9486 * builtins.o (expand_builtin_classify_type): Split up so code
9487 can be shared with fold_builtin_classify_type.
9488 (type_to_class, fold_builtin_classify_type): New functions.
9489 (fold_builtins): Handle __builtin_classify_type.
9491 * expr.c (do_tablejump): Now static.
9492 (case_values_threshold, try_casesi, try_tablejump): New;
9493 code mostly from stmt.c (expand_end_case).
9494 (expr.h): Update prototypes.
9496 * Makefile.in (stmt.o): Update dependencies.
9498 2001-08-21 Will Cohen <wcohen@redhat.com>
9500 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9501 declaration of variable i.
9502 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9503 declaration of variable i.
9505 2001-08-21 Richard Henderson <rth@redhat.com>
9507 * crtstuff.c: Fix thinko last change. Move list tails to start
9508 of CRT_END section. Tidy ifdefs.
9509 (__EH_FRAME_BEGIN__): Always static for ELF.
9510 (__do_global_ctors_1): Rename from __frame_dummy.
9511 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
9512 name change; don't hide __EH_FRAME_BEGIN__.
9514 2001-08-21 Richard Henderson <rth@redhat.com>
9516 * gdbinit.in: Move break on exit after break on fancy_abort.
9518 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
9521 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9523 * cpphash.h (_cpp_push_next_buffer): New.
9524 * cppinit.c (do_includes): Remove.
9525 (push_include, free_chain, _cpp_push_next_buffer): New.
9526 (cpp_start_read): Use them to rework command line option handling.
9527 (cpp_handle_option): Combine handling of -include and -imacros.
9528 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
9529 appropriate. Always insert missing \n at EOF.
9530 * cpplib.c (start_directive): Get the directive position right.
9531 * cppmain.c (cb_file_change): Always print the first line, unless
9534 2001-08-20 Andreas Jaeger <aj@suse.de>
9536 * profile.c (compute_branch_probabilities): Remove extra new-line
9538 * flow.c (verify_flow_info): Likewise.
9540 2001-08-20 Diego Novillo <dnovillo@redhat.com>
9542 * basic-block.h (basic_block): Add new field 'flags'.
9543 (BB_REACHABLE): Define.
9544 (expunge_block): Declare.
9545 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
9546 (EXIT_BLOCK_PTR): Ditto.
9547 (expunge_block): Remove static declaration.
9548 (cleanup_cfg): Clear bb->aux on every basic block.
9549 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
9550 computing reachability.
9551 (delete_unreachable_blocks): Delete block b if b->flags has
9554 2001-08-20 Diego Novillo <dnovillo@redhat.com>
9556 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
9558 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9560 * sparc.c (sparc_variable_issue): Fix typo in last change.
9562 2001-08-20 Richard Henderson <rth@redhat.com>
9564 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
9566 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
9568 * pa.h (RETURN_IN_MEMORY): Improve comment.
9570 2001-08-20 Janis Johnson <janis187@us.ibm.com>
9572 * doc/invoke.texi (Profiling options): Clarify the interactions
9573 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
9575 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
9577 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
9580 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9582 * gcc.c (make_relative_prefix): Allocate a sufficiently large
9585 2001-08-20 Richard Henderson <rth@redhat.com>
9587 * final.c (end_final): Fix typo last change.
9589 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
9591 * cppinit.c (init_standard_includes): The returned buffer
9592 is already malloc-ed.
9593 * gcc.c (add_prefix): Similarly.
9594 * prefix.c (translate_name): Update to support clear buffer
9596 (update_path): Similarly. Be sure to free any newly allocated
9597 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9599 * prefix.h (update_path): Update prototype and document.
9600 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9601 up and update to new buffer ownership rules.
9602 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9604 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
9606 * final.c (compute_alignments): New function.
9607 (init_insn_lengths): Do not care label_align.
9608 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9609 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9610 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9611 (shorted_branches): Realloc label_align array; do
9612 not call init_insn_lengths; Do not care about loop alignments.
9613 * output.h (compute_alignments): Declare.
9614 * toplev.c (rest_of_compilation): Call compute_alignments.
9615 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9617 * predict.c (block_info_def): Add npredecesors, remove nvisited;
9618 change visited to tovisit.
9619 (propagate_freq): Use faster traversing algorithm.
9620 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9621 to tovisit; reverse meaning.
9623 * predict.c (struct block_info_def): Remove nvisited.
9624 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9625 (estimate_bb_frequencies): Call mark_dfs_back_edges.
9627 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
9629 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9630 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9631 (TARGET_FUSED_MADD): New.
9632 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9633 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9634 the multiply-add instructions.
9636 2001-08-19 Richard Henderson <rth@redhat.com>
9638 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9639 is aligned to pointer size.
9641 2001-08-19 Richard Henderson <rth@redhat.com>
9643 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9644 display markers during final schedule.
9646 2001-08-19 Richard Henderson <rth@redhat.com>
9648 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9650 2001-08-19 Richard Henderson <rth@redhat.com>
9652 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9654 (ASM_NAME_TO_STRING): Remove.
9655 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9656 in the same string. Remove support for expressions.
9658 2001-08-19 Richard Henderson <rth@redhat.com>
9660 * config/i386/i386.md (tablejump): Make an expander; handle
9661 pic relative addressing here.
9662 (tablejump_1): Rename from tablejump_pic.
9665 2001-08-19 Richard Henderson <rth@redhat.com>
9667 * regclass.c (fix_register): Fix typo.
9669 2001-08-18 Richard Henderson <rth@redhat.com>
9671 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9672 (struct _Unwind_Context): Expand br_loc to hold it.
9673 (uw_frame_state_for): Handle leaf functions better.
9674 (uw_update_reg_address): Update for br_loc change.
9676 2001-08-18 Richard Henderson <rth@redhat.com>
9678 * crtstuff.c: Move list heads before code that uses them.
9679 (__JCR_LIST__): Remove initial null.
9680 (frame_dummy, __frame_dummy): Do java registration here ...
9681 (__do_global_ctors_aux): ... not here.
9683 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9684 (__do_global_dtors_aux): Update to match.
9685 (__JCR_LIST__, __do_jv_register_classes): New.
9687 * config/ia64/crtend.asm (__JCR_END__): New.
9688 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9689 instead of an indirect LTOFF22 reloc.
9691 2001-08-18 Richard Henderson <rth@redhat.com>
9693 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9694 * regclass.c (init_reg_sets_1): Fix typo.
9695 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9696 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9697 (ia64_compute_frame_size): Make ar.unat live when in use.
9698 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9699 for ar.pfs; remove ar.unat handling.
9700 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9702 (PREDICATE_CODES): Add ar_pfs_reg_operand.
9703 * config/ia64/ia64-protos.h: Update decls.
9704 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9705 (sibcall_pic): Likewise.
9707 2001-08-18 Richard Henderson <rth@redhat.com>
9709 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9710 pred_rel_mutex when searching for insn_group_barrier.
9711 * config/ia64/ia64.md (cycle_display): Combine the expander
9714 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9715 bit before asm as needed.
9717 2001-08-18 Richard Henderson <rth@redhat.com>
9719 * timevar.def (TV_MACH_DEP): New.
9720 * toplev.c (rest_of_compilation): Use it.
9721 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9723 2001-08-18 Zack Weinberg <zackw@panix.com>
9725 * unwind-dw2.c (execute_stack_op): Add default aborts to
9726 the inner switches to prevent warnings.
9728 2001-08-18 Richard Henderson <rth@redhat.com>
9730 * timevar.h (struct timevar_time_def): Change element type to float.
9731 (ticks_to_msec, clocks_to_msec): Likewise.
9732 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9733 (get_time): Likewise.
9734 (timevar_print): Adjust zero check and printing to match.
9736 2001-08-18 Zack Weinberg <zackw@panix.com>
9738 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9739 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9740 Eliminate overfull or underfull hboxes.
9742 2001-08-18 Zack Weinberg <zackw@panix.com>
9744 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9746 2001-08-18 Zack Weinberg <zackw@panix.com>
9748 * haifa-sched.c: Convert to target hooks. Macros replaced
9749 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9750 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9751 MD_SCHED_FINISH, and HAVE_cycle_display.
9752 * target-def.h (TARGET_SCHED_ADJUST_COST,
9753 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9754 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9755 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9756 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9757 New hook #defines to be overridden.
9758 (TARGET_SCHED): Bring them all together.
9759 (TARGET_INITIALIZER): Update.
9760 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
9761 instead of 'struct rtx_def *' throughout.
9762 (struct sched): New set of hooks for the scheduler.
9763 * Makefile.in (haifa-sched.o): Depend on target.h.
9764 * doc/tm.texi: Document the new scheduler hooks, together in
9765 their own section, instead of scattered around.
9766 Fix a bunch of underfull/overfull hboxes.
9768 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9769 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9770 sparc.h: Don't define any of the old scheduler macros.
9772 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9773 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9774 sparc.c: Create hook functions from code extracted from
9775 corresponding target header, or make existing hooks static, as
9776 appropriate. Set the appropriate entries in targetm.
9778 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9779 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9780 rs6000-protos.h, s390-protos.h, sparc-protos.h:
9781 Remove prototypes for functions which are now static.
9783 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9784 related gunk; the Haifa scheduler is now the only choice.
9786 2001-08-18 Zack Weinberg <zackw@panix.com>
9788 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9789 * genopinit.c: Put floating point divide insns in sdiv_optab.
9790 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9791 * config/gofast.h, config/c4x/c4x.h,
9792 config/ia64/hpux_longdouble.h, config/mips/mips.h,
9793 config/pa/long_double.h, config/rs6000/sysv4.h,
9794 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9795 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9796 (init_optabs): Use init_optabv for overflow-trapping optabs.
9797 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
9798 cmp_optab RTX codes so have_insn_for can find them.
9800 * optabs.c (expand_simple_binop, expand_simple_unop,
9801 have_insn_for, gen_sub3_insn): New interfaces.
9802 * expr.h: Prototype new functions.
9803 (enum optab_methods): Move here from optabs.h.
9805 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9806 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9807 Use new functions instead of working directly with optabs.
9808 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9809 unroll.c: Don't include optabs.h.
9810 * caller-save.c, combine.c, function.c, stmt.c: Just include
9811 insn-codes.h, not optabs.h.
9812 * Makefile.in: Update dependencies.
9814 * combine.c (make_compound_operation, simplify_comparison):
9815 Fix typos testing for this or that instruction.
9817 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9819 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9820 generating libgcc.a.
9822 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9824 * except.c (TYPE_HASH): Delete.
9826 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9829 * tree.c (TYPE_HASH): Delete.
9831 * tree.h (TYPE_HASH): Define.
9833 2001-08-18 Graham Stott <grahams@redhat.com>
9835 * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9837 (adddi3_internal_2+2): Likewise.
9838 (eh_set_lr_di+1): Likewise.
9840 2001-08-17 Richard Henderson <rth@redhat.com>
9842 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9843 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9844 * dwarf2asm.c: ... here.
9845 * dwarfout.c: Remove them.
9847 * varasm.c (assemble_integer): Add align parameter.
9848 (assemble_real, output_constant, output_constructor): Likewise.
9849 * output.h: Update decls.
9850 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9851 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9852 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9853 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9854 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9857 * final.c (end_final): Abort profile block generation if we
9858 haven't layed it out properly.
9859 * output.h (assemble_eh_integer): Remove stale decl.
9860 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9862 (assemble_integer): Handle unaligned data.
9863 (assemble_real): Abort on unaligned data.
9864 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9866 (default_dtor_section_asm_out_destructor): Use assemble_align.
9867 (default_named_section_asm_out_constructor): Likewise.
9868 (default_ctor_section_asm_out_constructor): Likewise.
9869 * config/darwin.c (machopic_asm_out_constructor): Likewise.
9870 (machopic_asm_out_destructor): Likewise.
9871 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9872 (nextstep_asm_out_destructor): Likewise.
9873 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9874 (vms_asm_out_destructor): Likewise.
9876 2001-08-17 Richard Henderson <rth@redhat.com>
9878 * config/mips/iris6.h (TARGET_IRIX6): New.
9879 (current_section_name, current_section_flags): New.
9880 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9881 (MAX_OFILE_ALIGNMENT): New.
9882 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9883 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9884 (copy_file_data): Split out from
9885 (mips_asm_file_end): ... here.
9886 (mips_asm_file_start): Remove extra .section directive. Use
9887 tmpfile instead of mips_make_temp_file.
9888 (mips_unique_section): Use const char * as needed for warnings.
9889 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9890 re-add align parameter.
9891 (iris6_asm_named_section): New.
9892 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9893 (iris6_asm_output_align, iris6_section_align_1): New.
9894 (iris6_asm_file_start, iris6_asm_file_end): New.
9895 * config/mips/mips-protos.h: Update decls.
9897 2001-08-17 Janis Johnson <janis187@us.ibm.com>
9899 * doc/install.texi (Install GCC): Add links to build status pages.
9901 (Final install): Ditto; request updates for specific info
9903 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
9905 * cpperror.c (print_location): Don't take a file name; use the
9907 (_cpp_begin_message): Similarly.
9908 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9909 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9910 (cpp_pedwarn_with_file_and_line): Remove.
9911 * cppfiles.c (stack_include_file): Update; set filename to stdin
9912 here when appropriate.
9913 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9914 (_cpp_begin_message): Don't take a file name.
9915 * cppinit.c: Add comment.
9916 * cpplex.c: Fix end-of-directive indicator.
9917 * cpplib.c: Don't include intl.h.
9918 (run_directive, do_diagnostic): Update.
9919 (do_line): Update to not use nominal_fname.
9920 (cpp_push_buffer): Don't take a filename.
9921 * cpplib.h (struct ht): Remove.
9922 (cpp_push_buffer): Don't take a filename.
9923 (cpp_pedwarn_with_file_and_line): Remove.
9924 * cppmacro.c (struct cpp_macro): Remove file.
9925 (builtin_macro): Update.
9926 (_cpp_create_definition): Update.
9927 * cppmain.c: Correct comment.
9928 * fix-header.c (read_scan_file): Update.
9930 2001-08-17 Kazu Hirata <kazu@hxi.com>
9932 * sbitmap.c: Fix comment formatting.
9933 * sched-deps.c: Likewise.
9934 * sibcall.c: Likewise.
9935 * simplify-rtx.c: Likewise.
9937 * ssa-ccp.c: Likewise.
9938 * stor-layout.c: Likewise.
9939 * timevar.c: Likewise.
9940 * toplev.c: Likewise.
9941 * unwind-dw2.c: Likewise.
9942 * unwind-dw2-fde.c: Likewise.
9943 * varasm.c: Likewise.
9945 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
9947 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9948 or larger than an integer in memory.
9950 2001-08-17 Zack Weinberg <zackw@panix.com>
9952 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9953 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
9954 * rtl.h: Don't forward-declare union tree_node here. Don't
9955 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
9956 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9957 and tree respectively.
9958 * tree.h: Don't forward-declare struct rtx_def here. Don't
9959 typedef tree here. Change all uses of struct rtx_def *,
9960 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9961 and tree respectively.
9963 2001-08-17 Richard Henderson <rth@redhat.com>
9965 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9966 config/mips/openbsd.h: Fix typos last change.
9968 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9970 * doc/invoke.texi (Optimize Options): The default for
9971 -finline-limit is 600.
9973 2001-08-17 Richard Henderson <rth@redhat.com>
9975 * varasm.c (text_section): Allow TEXT_SECTION to override the
9976 printing of TEXT_SECTION_ASM_OP.
9977 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9978 (DATA_SECTION, BSS_SECTION): Remove.
9979 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9980 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9981 Rename from s/_NAME//.
9982 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9983 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9984 (TEXT_SECTION): ... here. New.
9985 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9986 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9987 * config/mips/openbsd.h: Likewise.
9988 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9989 (mips_asm_file_end): Likewise test.
9990 (mips_output_function_epilogue): Likewise. Switch back to data
9991 section after emitting the function.
9993 * doc/tm.texi (Sections): Document TEXT_SECTION.
9995 2001-08-17 Richard Henderson <rth@redhat.com>
9997 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9998 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
10000 2001-08-17 Richard Henderson <rth@redhat.com>
10002 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
10003 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
10004 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
10005 Add aligned attribute.
10007 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
10009 * config/sh/sh.md: Add modes to unspecs in first insn to match
10010 those in the second.
10012 * Makefile.in: Fix collect2 copy for Cygwin.
10014 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
10016 Install the proper patch.
10017 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10018 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10019 (expand_function_start): Likewise.
10020 * stmt.c (expand_decl): Likewise.
10021 * varasm.c (make_decl_rtx): Likewise.
10023 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
10025 * final.c: Undo my previous accidental checkin.
10026 * output.h: Likewise.
10027 * tm.texi: Likewise.
10029 2001-08-16 Richard Henderson <rth@redhat.com>
10031 * varasm.c (named_section_flags): Remove align parameter.
10032 * varasm.c, dwarf2out.c: Update all callers.
10033 * output.h: Update prototypes.
10035 * target.h (target.asm_out.named_section): Remove align parameter.
10036 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
10037 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
10038 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
10039 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
10040 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
10042 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
10043 (get_named_section_flags, set_named_section_flags): New.
10044 (named_section_flags): Use them.
10045 (named_section): Do decl vs section flags check here...
10046 (default_section_type_flags): ... not here.
10047 (init_varasm_once): Create in_named_htab.
10048 (resolve_unique_section): Mark reloc unused.
10050 2001-08-16 Richard Henderson <rth@redhat.com>
10052 * varasm.c (force_const_mem): Keep pool alignment in bits.
10053 (output_constant_pool): Use assemble_align.
10055 2001-08-16 Zack Weinberg <zackw@panix.com>
10057 * doc/tm.texi: Remove extra @table command.
10059 2001-08-16 Zack Weinberg <zackw@panix.com>
10061 * final.c (shorten_branches): Clear the end of the label_align
10062 array only if we made it larger. Break up messy expressions
10065 * diagnostic.c (internal_error): Check for error recursion
10066 before doing ICE suppression.
10068 * timevar.c: Timing variables now count in milliseconds.
10069 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10070 (get_time): Not here.
10071 (timevar_print): Don't print any timer whose user, cpu, and
10072 wall times are all zero as displayed.
10073 * timevar.h: Update comment aboout units. Make timevar
10076 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
10078 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10079 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10080 (expand_function_start): Likewise.
10081 * stmt.c (expand_decl): Likewise.
10082 * varasm.c (make_decl_rtx): Likewise.
10084 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
10086 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10087 (finalize_record_size): Don't set TYPE_USER_ALIGN.
10089 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10091 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10094 2001-08-16 Andreas Jaeger <aj@suse.de>
10096 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10099 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
10101 * rtl.h (only_sets_cc0_p): New prototype.
10102 * jump.c (sets_cc0_p): Handle INSN.
10103 (only_sets_cc0_p): New function.
10104 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10105 (tidy_fallthru_edge): Likewise.
10106 * integrate.c (copy_insn_list): Likewise.
10107 * unroll.c (unroll_loop): Likewise.
10108 (copy_loop_body): Likewise.
10110 2001-08-15 Jason Eckhardt <jle@redhat.com>
10112 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10114 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
10116 * predict.c (struct block_info_def): Remove nvisited.
10117 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10118 (estimate_bb_frequencies): Call mark_dfs_back_edges.
10120 * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10121 (ix86_adjust_cost): Teach scheduler that latency to load operand can
10124 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
10126 * predict.def: Update hitrates.
10128 2001-08-15 Richard Henderson <rth@redhat.com>
10130 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10132 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
10134 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10135 note from its associated jump.
10137 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
10139 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10140 also on 64-bit s390x targets.
10142 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
10144 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10146 (arm_expand_prologue): Handled nested functions which take a
10147 variable argument list.
10148 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10149 macro with an invocation of
10150 arm_compute_initial_elimination_offset.
10151 * config/arm/arm-protos.h: Prototype
10152 arm_compute_initial_elimination_offset.
10154 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10156 * doc/install.texi (Specific, avr): Fix markup.
10157 (Specific, c4x): Ditto.
10159 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10161 * predict.c (dump_prediction): Change `bool' parameter to `int'.
10163 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
10165 * Makefile.in (OBJS): Add rtl-error.o
10166 (rtl-error.o): New rule.
10167 (diagnostic.o): Adjust dependency.
10168 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10169 error_for_asm, _fatal_insn, _fatal_insn_not_found,
10170 warning_for_asm): Move to...
10171 rtl-error.c: ...here. New file.
10173 2001-08-14 Richard Henderson <rth@redhat.com>
10175 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10176 if USING_SJLJ_EXCEPTIONS.
10178 2001-08-14 Steve Ellcey <sje@cup.hp.com>
10180 * tlink.c (scan_linker_output): Check string for unsatisfied in
10181 addition to undefined and unresolved.
10183 2001-08-14 Graham Stott <grahams@redhat.com>
10185 * libgcc2.c (*): Replace EH_FRAME_SECTION with
10186 EH_FRAME_SECTION_NAME.
10188 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
10190 * genattrtab.c (simplify_test_exp_in_temp): New function.
10191 (simplify_test_exp): Avoid explicit use of temporary obstack.
10192 (simplify_cond, insert_right_side, evaluate_eq_attr,
10193 simplify_and_tree, simplify_or_tree, eliminate_known_true):
10194 Use simplify_test_exp_in_temp.
10195 (optimize_attrs): Iterate until expression stabilizes.
10197 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
10199 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10200 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10202 2001-08-13 Richard Henderson <rth@redhat.com>
10204 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10205 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10206 * config/arm/conix-elf.h: Likewise.
10208 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10210 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10212 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10214 * gcse.c (hash_scan_set): Expressions that are set as part of
10215 jump instructions are not available.
10217 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
10219 * config/s390/s390.c (print_operand, s390_function_prologue,
10220 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10222 2001-08-13 Richard Henderson <rth@redhat.com>
10224 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10225 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10226 * doc/tm.texi (Exception Region Output): Document it.
10228 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10230 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10231 DWARF2 instead of stabs by default.
10233 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10235 * config/rs6000/rs6000.c: Include optabs.h.
10237 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10239 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10240 save/restore routines.
10241 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10243 2001-08-13 Andreas Jaeger <aj@suse.de>
10245 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10246 the english is correct.
10248 2001-08-13 Zack Weinberg <zackw@panix.com>
10250 * expr.h: Split out optab- and libfunc-related code to...
10251 * optabs.h, libfuncs.h: ... these new headers.
10253 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10255 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10257 * mkconfig.sh: Don't include insn-codes.h from config.h.
10259 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10260 enum insn_code is available. Move reload_in_optab and
10261 reload_out_optab array declarations to optabs.h.
10262 * regmove.c (gen_add3_insn): Move to optabs.c, export from
10263 there, prototype in expr.h.
10264 * gencodes.c: Cleanup: zap global variables, don't use
10265 printf where puts will do, don't bother defining MAX_INSN_CODE
10266 which nothing uses, let CODE_FOR_nothing get its value implicitly.
10268 * genemit.c, genopinit.c: Include optabs.h in generated file.
10269 * genoutput.c: Include insn-codes.h in generated file.
10270 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10271 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10272 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10273 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10274 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10275 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10277 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10278 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10279 config/m88k/m88k.c, config/sparc/sparc.c:
10280 Include libfuncs.h.
10281 * reload.c: Include expr.h and optabs.h before reload.h.
10282 * config/alpha/alpha.c: Include tree.h before reload.h.
10283 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10284 and reload.h in that order.
10285 * config/sparc/sparc.c: Include debug.h.
10286 * recog.c: Include insn-codes.h.
10288 2001-08-13 Andreas Jaeger <aj@suse.de>
10290 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10293 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10295 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10296 * gcc.c (init_spec): Fix typo in comment.
10297 * varasm.c (data_section): Fix typo in comment.
10299 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
10301 * predict.c (dump_prediction): New argument "USED".
10302 (combine_predictions_for_insn): Determine the used heuristics,
10303 output the case no heuristic applied.
10304 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10306 2001-08-13 Andreas Jaeger <aj@suse.de>
10308 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10311 2001-08-13 Kazu Hirata <kazu@hxi.com>
10313 * jump.c: Fix formatting.
10315 2001-08-13 Kazu Hirata <kazu@hxi.com>
10317 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10320 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
10322 * loop.c (check_dbra_loop): Use condjump_label to compute
10325 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10326 to better document the files they're in.
10328 2001-08-12 Zack Weinberg <zackw@panix.com>
10330 * recog.h (struct insn_operand_data): Shrink 'mode' field
10333 2001-08-12 Kazu Hirata <kazu@hxi.com>
10335 * gcc.c: Fix comment formatting.
10336 * gccspec.c: Likewise.
10337 * gcov.c: Likewise.
10338 * gcse.c: Likewise.
10339 * genemit.c: Likewise.
10340 * gengenrtl.c: Likewise.
10341 * genrecog.c: Likewise.
10342 * gensupport.c: Likewise.
10343 * ggc-page.c: Likewise.
10344 * global.c: Likewise.
10345 * graph.c: Likewise.
10346 * ifcvt.c: Likewise.
10347 * integrate.c: Likewise.
10349 * libgcc2.c: Likewise.
10350 * loop.c: Likewise.
10351 * mbchar.c: Likewise.
10352 * optabs.c: Likewise.
10353 * predict.c: Likewise.
10354 * prefix.c: Likewise.
10355 * profile.c: Likewise.
10356 * protoize.c: Likewise.
10357 * real.c: Likewise.
10358 * recog.c: Likewise.
10359 * regclass.c: Likewise.
10360 * regmove.c: Likewise.
10361 * reg-stack.c: Likewise.
10362 * reload1.c: Likewise.
10363 * resource.c: Likewise.
10364 * rtlanal.c: Likewise.
10367 2001-08-12 Kazu Hirata <kazu@hxi.com>
10369 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10370 a tree representing a constant is passed to the macro.
10372 2001-08-12 Richard Henderson <rth@redhat.com>
10374 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10375 (rs6000_elf_asm_out_destructor): New.
10376 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10377 (DTORS_SECTION_ASM_OP): Remove.
10378 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10379 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10381 2001-08-12 David Edelsohn <edelsohn@gnu.org>
10384 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10385 * gcc.c (set_collect_gcc_options): New function, split out from
10387 Ignore elided switches.
10388 (do_spec_1): Invoke before executing command.
10389 (set_input): Export.
10390 Move declaration ...
10391 * gcc.h (set_input): ... here.
10392 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10395 2001-08-12 Richard Henderson <rth@redhat.com>
10397 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10398 thinko wrt TARGET_RELOCATABLE.
10400 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
10402 * fix-header.c (cb_file_change): Update prototype.
10404 2001-08-11 Zack Weinberg <zackw@panix.com>
10406 * toplev.c (set_float_handler): Make static.
10407 * toplev.h: Don't prototype set_float_handler.
10409 * simplify-rtx.c: Don't include setjmp.h.
10410 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10412 (simplify_unary_operation, simplify_binary_operation): Use them,
10413 via do_float_handler.
10415 * fold-const.c: Don't include setjmp.h.
10416 (exact_real_inverse_1): New function.
10417 (exact_real_inverse): Use it, via do_float_handler.
10419 * varasm.c: Don't include setjmp.h.
10420 (assemble_real_1): New function.
10421 (assemble_real): Use it, via do_float_handler.
10422 Call internal_error if we get a trap here.
10424 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10425 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10427 2001-08-11 Zack Weinberg <zackw@panix.com>
10429 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10430 STACK_BOUNDARY if not already defined.
10432 * calls.c, function.c, reload1.c, explow.c: Don't default
10433 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
10434 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10436 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10439 * doc/tm.texi: Document that STACK_BOUNDARY is required;
10440 clarify difference between it and PREFERRED_STACK_BOUNDARY.
10442 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10444 * cppmacro.c (enter_macro_context): Push macro expansions even
10447 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10449 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10450 (rs6000_elf_section_type_flags): Actually return a value.
10452 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10454 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10455 Clean up code: add missing comments and prototypes, fix warnings,
10456 remove obsolete code, fix spacing to conform to coding style.
10458 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10460 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10461 and TARGET_ASM_CLOSE_PAREN.
10462 (regclass_map): CC register belongs to class NO_REGS.
10463 (legitimize_pic_address): Don't generate unnecessary moves
10464 (to avoid confusing loop optimization).
10465 (check_and_change_labels): Replace jump_long by indirect_jump.
10466 (s390_final_chunkify): Don't start a new literal pool on section
10467 switch in 64-bit code.
10468 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10470 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10471 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10472 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10474 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10475 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10476 (CONST_COSTS): Fixed incorrect costs.
10478 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10479 Use emit_jump instead of emit_jump_insn (gen_jump).
10480 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10481 (to avoid confusing flow analysis).
10482 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
10483 (casesi, casesi_jump): New.
10484 (jump_long): Removed. Functionality merged into indirect_jump.
10485 (indirect_jump): Accept address_operand, not just register_operand.
10486 (cjump_long, icjump_long): Use same logic as indirect_jump.
10487 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10488 Fixed broken setjmp/longjmp handling.
10489 (do_builtin_setjmp_setup): Removed.
10491 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10492 broken GNU as versions that don't accept .quad with large
10493 negative values. Use hexadecimal output instead.
10494 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10495 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10496 FUNCTION_EPILOGUE): Removed. Now in targetm.
10498 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10500 * config/s390/fixdfdi.h: Add missing copyright statement.
10501 Fix type conflicts on 64-bit. Add missing SFmode routines.
10503 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
10506 2001-08-11 Richard Henderson <rth@redhat.com>
10508 * rtl.h (REG_EH_RETHROW): Remove.
10509 * rtl.c (reg_note_name): Update.
10510 * combine.c (distribute_notes): Don't check for it.
10512 2001-08-11 Richard Henderson <rth@redhat.com>
10514 * combine.c (distribute_notes): Place REG_SETJMP.
10516 2001-08-11 Richard Henderson <rth@redhat.com>
10518 * doc/extend.texi (Arrays and pointers implementation): Discourage
10519 relying on sign-extension of pointers.
10521 2001-08-11 H.J. Lu <hjl@gnu.org>
10523 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
10525 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
10526 RDATA_SECTION_ASM_OP.
10528 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10530 * doc/install.texi (Specific, c4x): Fix cross-reference to the
10531 main manual to work both for info and HTML versions.
10533 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10534 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10536 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
10537 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
10538 (struct cpp_pool): New member first.
10539 * cppinit.c (append_include_chain): Plug memory leaks.
10540 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
10541 Allocate pragma structures from the (aligned) macro pool to
10542 avoid leaking memory.
10543 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
10544 so we don't leak memory.
10545 * hashtable.c (ht_destroy): New.
10546 * hashtable.h (ht_destroy): New.
10548 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10549 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10551 * c-lex.c (map): Make const.
10552 (cb_file_change): Update for callback passing a line map.
10553 Don't assume we have a previous map. Remove sanity check
10554 about popping too many files.
10555 * cpperror.c (print_location): Make map const.
10556 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
10557 (cpp_make_system_header): Similarly.
10558 (search_from): Similarly.
10559 (_cpp_execute_include): Don't remember where we came from.
10560 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
10561 (struct cpp_reader): Make map const.
10562 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
10563 * cpplib.c (do_line): Update; line maps now hold sysp.
10564 (cpp_push_buffer): Similarly.
10565 (_cpp_do_file_change): Similarly; callback with map instead.
10566 (cpp_get_line_maps): Constify return value.
10567 (_cpp_pop_buffer): Update.
10568 * cpplib.h (struct cpp_file_change): Remove.
10569 (struct cpp_callbacks): Update.
10570 (cpp_get_line_maps): Constify return value.
10571 * cppmacro.c (_cpp_create_definition): Update.
10572 * cppmain.c (struct printer): Constify map.
10573 (maybe_print_line): Similarly.
10574 (print_line): Similarly. Deduce flags 1 and 2 here.
10575 (cb_file_change): Update.
10576 * line-map.c (free_line_maps): Warn regardless.
10577 (add_line_map): Return pointer to const. When passed NULL to_file
10578 with LC_LEAVE, use the obvious values for the return point so the
10579 caller doesn't have to figure them out.
10580 (lookup_line): Return pointer to const.
10581 (print_containing_files): Take pointer to const.
10582 * line-map.h (struct line_map): New members reason, sysp.
10583 (add_line_map): Return pointer to const.
10584 (lookup_line): Similarly.
10585 (print_containing_files): Take pointer to const.
10587 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
10588 Richard Henderson <rth@redhat.com>
10590 * regmove.c (regmove_optimize): Avoid setting a register twice in
10593 2001-08-10 Richard Henderson <rth@redhat.com>
10595 * doc/extend.texi (Arrays and pointers implementation): Document
10596 behavior of pointer/integer conversion.
10598 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
10600 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10602 2001-08-10 Richard Henderson <rth@redhat.com>
10604 * doc/extend.texi (C Implementation): New chapter.
10605 * doc/gcc.texi (Top): Link it in.
10607 2001-08-10 Andrew Cagney <ac131313@redhat.com>
10609 * doc/install.texi (Specific): Fix CVS merge botch.
10611 2001-08-10 Richard Henderson <rth@redhat.com>
10613 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10614 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10616 2001-08-10 Zack Weinberg <zackw@stanford.edu>
10618 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10619 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
10620 this macro is now required.
10622 * cselib.c (cselib_process_insn), flow.c (propagate_block),
10623 loop.c (find_and_verify_loops), reload.c (reload): Check
10624 for rtx code of CALL_INSN, not CALL, when deciding if we
10625 need to check for REG_SETJMP note.
10627 * gcse.c (compute_hash_table, compute_store_table): Update
10628 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10631 * config/avr/avr.c: Fix typo.
10632 * config/convex/convex.c (expand_movstr): Use adjust_address.
10633 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10635 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10636 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10638 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10639 Do define STACK_BOUNDARY.
10640 * config/i370/i370.c: Include expr.h.
10641 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10642 config/pa/som.h, config/v850/v850.h: Take in_ctors and
10643 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10644 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10645 * config/m88k/m88k.c: Include c-tree.h after expr.h.
10646 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10647 * config/romp/romp.c: Include expr.h after tree.h.
10649 (output_fpop): Use xmalloc, not oballoc.
10650 * config/we32k/we32k.c: Include expr.h.
10652 2001-08-10 Kazu Hirata <kazu@hxi.com>
10654 * config/h8300/h8300.h: Fix formatting.
10656 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
10658 * c-common.h (RETURN_NULLIFIED_P): Lose.
10659 * c-semantics.c (genrtl_return_stmt): Don't check it.
10661 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10663 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10664 (mips_annotate_frame_insn): New function.
10665 (mips_emit_frame_related_store): New function.
10666 (save_restore_insns): Don't mark instructions that set up the base
10667 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
10668 the store instructions instead.
10669 (mips_expand_prologue): If the stack size is moved into a temporary
10670 register, do not mark that move as frame-related. Add a
10671 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10673 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10675 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10676 stack slot as unchanging if current_function_calls_eh_return.
10678 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10680 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10681 access the second half of the TFmode scratch operand.
10683 2001-08-10 Anthony Green <green@redhat.com>
10685 * java/class.c (emit_register_classes): Conditionalize code on
10688 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10690 * doc/install.texi (Specific, avr): Fix cross-reference to the
10691 main manual to work both for info and HTML versions.
10693 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10695 * stmt.c (expand_null_return_1): Remove code to generate simple returns
10696 and "use_goto" argument.
10697 (expand_null_return, expand_value_return): Update all callers.
10698 * function.c (expand_function_end): Remove code to generate simple
10700 * config/vax/vax.md (epilogue): New expander for function return.
10701 * doc/md.texi (epilogue): Remove "if defined".
10703 2001-08-09 Zack Weinberg <zackw@stanford.edu>
10705 * Makefile.in: Partially revert my previous change:
10706 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10707 of the hashtab.o and safe-ctype.o rules.
10709 2001-08-09 Richard Henderson <rth@redhat.com>
10711 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10712 (USE_COLLECT2): Remove duplicate definition.
10713 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10714 (use_collect2): Remove dead code.
10715 * configure.in (use_collect2): Remove will_use_collect2 and
10716 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10717 * configure: Rebuild.
10719 * target.h (targetm.asm_out.constructor): New.
10720 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10721 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10722 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10723 * varasm.c (in_ctors, in_dtors): New.
10724 (assemble_constructor, assemble_destructor): Remove.
10725 (default_stabs_asm_out_destructor): New.
10726 (default_named_section_asm_out_destructor): New.
10727 (dtors_section, default_dtor_section_asm_out_destructor): New.
10728 (default_stabs_asm_out_constructor): New.
10729 (default_named_section_asm_out_constructor): New.
10730 (ctors_section, default_ctor_section_asm_out_constructor): New.
10731 * output.h: Update declarations.
10732 * c-decl.c (c_expand_body): Use target hooks instead of
10733 assemble_constructor and assemble_destructor.
10734 * profile.c (output_func_start_profiler): Likewise.
10735 * objc/objc-act.c (finish_objc): Likewise.
10736 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
10737 for the constructor.
10738 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10740 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10741 (DTORS_SECTION_ASM_OP): Likewise.
10742 (__CTOR_LIST__): Use attribute section when possible.
10743 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10745 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10746 ASM_OUTPUT_CONSTRUCTOR.
10748 * config/darwin.c (machopic_asm_out_constructor): New.
10749 (machopic_asm_out_destructor): New.
10750 * config/darwin-protos.h: Update declarations.
10751 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10752 (ASM_OUTPUT_DESTRUCTOR): Remove.
10753 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10754 * config/nextstep.c (nextstep_asm_out_constructor): New.
10755 (nextstep_asm_out_destructor): New.
10756 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10757 (ASM_OUTPUT_DESTRUCTOR): Remove.
10758 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10759 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10760 ASM_OUTPUT_*STRUCTOR.
10761 * config/i386/aix386ng.h: Likewise.
10763 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10764 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10765 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10766 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10767 * config/lynx.h: Likewise.
10768 * config/netware.h: Likewise.
10769 * config/psos.h: Likewise.
10770 * config/alpha/alpha-interix.h: Likewise.
10771 * config/alpha/elf.h: Likewise.
10772 * config/arc/arc.h: Likewise.
10773 * config/arm/aof.h: Likewise.
10774 * config/arm/coff.h: Likewise.
10775 * config/arm/elf.h: Likewise.
10776 * config/c4x/c4x.h: Likewise.
10777 * config/h8300/h8300.h: Likewise.
10778 * config/i386/cygwin.h: Likewise.
10779 * config/i386/djgpp.h: Likewise.
10780 * config/i386/i386-coff.h: Likewise.
10781 * config/i386/i386-interix.h: Likewise.
10782 * config/i386/sco5.h: Likewise.
10783 * config/i386/vsta.h: Likewise.
10784 * config/i386/win32.h: Likewise.
10785 * config/i960/i960-coff.h: Likewise.
10786 * config/ia64/sysv4.h: Likewise.
10787 * config/m68hc11/m68hc11.h: Likewise.
10788 * config/m68k/coff.h: Likewise.
10789 * config/m68k/mot3300.h: Likewise.
10790 * config/m88k/m88k.h: Likewise.
10791 * config/mcore/mcore-pe.h: Likewise.
10792 * config/mcore/mcore.h: Likewise.
10793 * config/mips/elf.h: Likewise.
10794 * config/mips/elf64.h: Likewise.
10795 * config/mips/iris6.h: Likewise.
10796 * config/pa/pa64-hpux.h: Likewise.
10797 * config/rs6000/sysv4.h: Likewise.
10798 * config/sh/sh.h: Likewise.
10799 * config/sparc/litecoff.h: Likewise.
10801 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10802 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10803 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10804 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10805 (ASM_OUTPUT_DESTRUCTOR): Remove.
10806 * config/a29k/a29k.c: Move include of tree.h.
10807 * config/a29k/udi.h: Delete file.
10808 * config/alpha/alpha.c (vms_asm_out_constructor): New.
10809 (vms_asm_out_destructor): New.
10810 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10811 (EXTRA_SECTION_FUNCTIONS): Likewise.
10812 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10813 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10814 * config/c4x/c4x.c: Move include of tree.h.
10815 * config/clipper/clipper.c (clix_asm_out_constructor): New.
10816 (clix_asm_out_destructor): New.
10817 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10818 (ASM_OUTPUT_DESTRUCTOR): Remove.
10819 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10820 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10821 (TARGET_ASM_CONSTRUCTOR): New.
10822 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10823 (sco_asm_out_constructor): New.
10824 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10825 * config/i386/svr3gas.h: Remove stack grows up code.
10826 Remove code duplicated from i386/sysv3.h.
10827 (TARGET_ASM_CONSTRUCTOR): New.
10828 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10829 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10830 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10831 (TARGET_ASM_CONSTRUCTOR): New.
10832 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10833 (m68hc11_asm_out_destructor): New.
10834 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10835 (TARGET_ASM_DESTRUCTOR): New.
10836 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10837 * config/m68k/dpx2.h: Properly undef all the bits inherited from
10838 config/svr3.h pertaining to section manipulation.
10839 * config/m68k/dpx2g.h: Remove #if 0 code.
10840 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10841 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10842 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10843 (TARGET_ASM_CONSTRUCTOR): New.
10844 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10845 (m88k_svr3_asm_out_constructor): New.
10846 (m88k_svr3_asm_out_destructor): New.
10847 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10848 (ASM_OUTPUT_DESTRUCTOR): Remove.
10849 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10850 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10851 * config/rs6000/aix.h: Likewise.
10852 * config/mips/rtems64.h: Don't undef removed constructor related bits.
10853 * config/mips/vxworks.h: Likewise.
10854 * config/rs6000/lynx.h: Likewise.
10855 * config/sh/elf.h: Likewise.
10856 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10857 (DTORS_SECTION_ASM_OP): New.
10858 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10859 (ASM_OUTPUT_DESTRUCTOR): Remove.
10860 * config/sparc/sol2-sld-64.h: Likewise.
10861 * config/vax/vax.c (vms_asm_out_constructor): New.
10862 (vms_asm_out_destructor): New.
10863 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10864 (ASM_OUTPUT_DESTRUCTOR): Remove.
10865 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10867 * doc/tm.texi (@node Initialization): Update.
10869 2001-08-09 Richard Henderson <rth@redhat.com>
10871 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10872 (__do_global_dtors_aux): Use gp-relative static data to avoid
10873 one dynamic relocation.
10874 (__do_frame_setup): Register Java classes.
10875 * config/alpha/crtend.asm (__JCR_END__): New.
10877 2001-08-09 Zack Weinberg <zackw@stanford.edu>
10879 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10880 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10881 (GEN, STAGESTUFF): Add new files.
10882 (insn-constants.h, s-constants, tm-preds.h, s-preds,
10883 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10884 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10885 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10886 as well as insn-codes.h and insn-flags.h in config.h; and no
10887 extra headers in tconfig.h and hconfig.h.
10889 * gencodes.c: Eliminate code to generate predicate declarations
10890 or #defines for md-file constants.
10891 * genconstants.c, genpreds.c: New files.
10893 * i386.md: Re-order guard expressions such that TARGET_64BIT
10894 comes first, when this permits better optimization. Add
10895 TARGET_64BIT to more x86-64 patterns. Add comment explaining
10896 why this is desirable.
10898 2001-08-09 Jakub Jelinek <jakub@redhat.com>
10900 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10901 (find_fde_for_dso): Remove.
10902 (_Unwind_IteratePhdrCallback): New.
10903 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10904 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10906 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10908 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10909 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10911 2001-08-09 Graham Stott <grahams@redhat.com>
10913 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10914 (vis_no_unit): Use it.
10915 (visualize_no_unit): Add the insn only if room exists.
10917 2001-08-09 Graham Stott <grahams@redhat.com>
10919 * predict.c (estimate_probability): Replace magic numbers with
10920 appropriate enumeration.
10922 2001-08-09 Graham Stott <grahams@redhat.com>
10924 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10926 (EXTRACT_FLAGS): Likewise.
10928 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
10930 * config/mips/mips.c (mips_legitimate_address_p): Check for
10931 CONST_INT in last patch.
10933 2001-08-08 Anthony Green <green@redhat.com>
10935 * java/class.c (emit_register_classes): Use assemble_jcr if
10936 possible. Keep the original mechanism as a fallback.
10937 * defaults.h (JCR_SECTION_NAME): Define if we have named section
10938 and weak symbol support.
10939 * crtstuff.c (__JCR_LIST__): Define.
10940 (__JCR_END__): Define.
10941 (_Jv_RegiserClasses): Define weak symbol if possible.
10942 (__do_global_ctors_aux): Register classes for ELF targets with
10943 weak symbol support.
10945 2001-08-08 Kazu Hirata <kazu@hxi.com>
10947 * dbxout.c: Fix comment formatting.
10948 * dependence.c: Likewise.
10950 * diagnostic.c: Likewise.
10951 * dominance.c: Likewise.
10952 * doprint.c: Likewise.
10953 * dwarf2out.c: Likewise.
10954 * dwarfout.c: Likewise.
10955 * emit-rtl.c: Likewise.
10956 * except.c: Likewise.
10957 * explow.c: Likewise.
10958 * expmed.c: Likewise.
10959 * expr.c: Likewise.
10960 * flow.c: Likewise.
10961 * fold-const.c: Likewise.
10962 * function.c: Likewise.
10964 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10966 * global.c (retry_global_alloc): Avoid shadowing allocno.
10968 2001-08-08 Mark Mitchell <mark@codesourcery.com>
10970 * except.c (remove_fixup_regions): Fix typo.
10972 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
10974 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10975 unsigned HOST_WIDE_INT to avoid warning.
10976 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10977 * flow.c (set_block_for_new_insns): Likewise.
10979 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
10981 * sibcall.c (return_value_pseudo): New static variable.
10982 (skip_copy_to_return_value): Handle return_value_pseudo.
10983 (call_ends_block_p): Ensure that return_value_pseudo is set.
10984 (optimize_sibling_and_tail_recursive_call): Discover the
10985 load of pseudo return value in alternate exit block.
10987 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
10989 * calls.c (ECF_ALWAYS_RETURN): New constant.
10990 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10991 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10992 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10993 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10994 * rtl.c (reg_note_name): New name.
10995 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10997 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
10999 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
11001 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
11003 * alias.c (get_alias_set): Return a previously calculated
11004 alias set for a VAR_DECL.
11005 * function.c (gen_mem_addressof): Calculate the alias set before
11008 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
11010 * predict.def: Set hitrates according our experimental run.
11012 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
11014 * i386.h (HARD_REGNO_RENAME_OK): New macro.
11016 2001-08-08 H.J. Lu <hjl@gnu.org>
11018 * config/mips/mips.c (mips_unique_section): New. Copied from
11021 * config/mips/mips-protos.h (mips_unique_section): New
11024 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
11026 * config/mips/little.h: New. Generic little endian mips
11027 targets. Only mips*-*-linux* is converted to use it so far.
11029 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
11030 (WCHAR_TYPE): Defined
11031 (WCHAR_TYPE_SIZE): Likewise.
11032 (INIT_SUBTARGET_OPTABS): Likewise.
11033 (BSS_SECTION_ASM_OP): Likewise.
11034 (SBSS_SECTION_ASM_OP): Likewise.
11035 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11036 (ASM_DECLARE_OBJECT_NAME): Likewise.
11037 (UNIQUE_SECTION): Likewise.
11038 (EXTRA_SECTIONS): Likewise.
11039 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
11040 (ASM_OUTPUT_DESTRUCTOR): Likewise.
11041 (ASM_OUTPUT_DEF): Likewise.
11042 (HANDLE_SYSV_PRAGMA): Removed.
11043 (NO_IMPLICIT_EXTERN_C): Likewise.
11044 (TARGET_MEM_FUNCTIONS): Likewise.
11045 (STARTFILE_SPEC): Likewise.
11046 (ENDFILE_SPEC): Likewise.
11047 (LIB_SPEC): Likewise.
11048 (INVOKE__main): Likewise.
11049 (CTOR_LIST_BEGIN): Likewise.
11050 (CTOR_LIST_END): Likewise.
11051 (DTOR_LIST_BEGIN): Likewise.
11052 (DTOR_LIST_END): Likewise.
11053 (SET_ASM_OP): Likewise.
11054 (ASM_OUTPUT_SOURCE_LINE): Likewise.
11055 (ASM_OUTPUT_DEF): Likewise.
11056 (ASM_OUTPUT_IDENT): Likewise.
11058 * config/mips/mips.h (ASM_SPEC): Undefine before define.
11059 (CPLUSPLUS_CPP_SPEC): Likewise.
11060 (ASM_APP_ON) Redefine only if not defined.
11061 (ASM_APP_OFF): Likewise.
11062 (ASM_OUTPUT_SOURCE_LINE): Likewise.
11063 (ASM_OUTPUT_IDENT): Likewise.
11065 * config.gcc: Update tm_file for Linux/mips.
11067 2001-08-08 Bernd Schmidt <bernds@redhat.com>
11069 * cselib.c (cselib_record_sets): If insn is predicated, turn
11070 sources into IF_THEN_ELSEs.
11072 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11073 Turn into define_insn_and_split.
11075 * sched-deps.c: Include "cselib.h".
11076 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11077 Use cselib to turn memory addresses into VALUEs.
11078 (sched_analyze): Call cselib_init/cselib_finish if necessary.
11079 * sched-int.h (struct sched_info): New member USE_CSELIB.
11080 * sched-ebb.c (ebb_sched_info): Initialize it.
11081 * sched-rgn.c (rgn_sched_info): Likewise.
11082 * Makefile.in (sched-deps.o): Update dependencies.
11084 * cselib.h (cselib_subst_to_values): Declare.
11085 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
11086 that have no value and autoincs to be handled by generating a new
11089 2001-08-08 Graham Stott <grahams@redhat.com>
11091 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11092 within fixed length SEQUENCE.
11094 2001-08-08 Graham Stott <grahams@redhat.com>
11096 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11097 (diagnostic_prefixing_rule): Likewise.
11098 (diagnostic_line_cutoff): Likewise.
11099 (diagnostic_kind_count): Likewise.
11101 2001-08-08 Graham Stott <grahams@redhat.com>
11103 * alias.c (find_base_decl): Delete redundent assignment.
11105 2001-08-08 Graham Stott <grahams@redhat.com>
11107 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11108 (abs): Uppercase and paranthesize macro parameter.
11109 (MEM_DEPENDENCY): Add whitespace.
11111 2001-08-08 Graham Stott <grahams@redhat.com>
11113 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11114 failure check for CONST_INT
11116 2001-08-08 Graham Stott <grahams@redhat.com>
11118 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11119 (libcall_dead_p): Likewise.
11121 (mark_used_regs): Constify fmt.
11122 (find_use_as_address): Likewise.
11124 2001-08-08 Graham Stott <grahams@redhat.com>
11126 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11129 2001-08-08 Graham Stott <grahams@redhat.com>
11131 * combine.c (combine_simplify_rtx): Update comment and
11132 remove erroneous test.
11134 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
11136 * cppinit.c (cpp_finish): Pop the final buffer without comment.
11137 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11138 take care to avoid multiple no-newline at EOF warnings in that
11141 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
11143 * calls.c (expand_call): Do not emit INSN_SETJMP note.
11144 (emit_library_call_value_1): Likewise.
11145 (emit_call_1): Emit REG_SETJMP note.
11146 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11148 * cselib.c (cselib_process_insn): Likewise.
11149 * flow.c (propagate_block): Likewise.
11150 * loop.c (find_and_verify_loops): Likewise.
11151 * reload.c (find_equiv_regs): Likewise.
11152 * reload1.c (reload): Likewise.
11153 * resource.c (mark_referenced_resources,
11154 mark_set_resources): Likewise.
11155 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11156 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11157 * haifa-sched.c (unlink_other_notes): Likewise.
11158 (reemit_notes): Likewise.
11159 * sched-ebb.c (sched_ebb): Likewise.
11160 * sched-rgc.c (sched_region): Likewise.
11161 * rtl.c (note_insn_name): Likewise.
11162 (reg_note_name): Add REG_SETJMP
11163 * rtl.h (reg_note): Add REG_SETJMP.
11164 (insn_note): Remove NOTE_INSN_SETJMP.
11166 * profile.c (branch_prob): Add fake edges for setjmp.
11168 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
11170 * config.gcc: Quote target_cpu_default2 correctly for
11171 powerpc*-*-* targets.
11173 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
11175 * cpplib.h, line-map.h: Update comments.
11176 * cppmain.c (printer_init): Move inline.
11177 (maybe_print_line, print_line): Take a map pointer.
11178 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11179 (cb_file_change): Don't use prior value of print.map.
11181 2001-08-07 David Edelsohn <edelsohn@gnu.org>
11183 * doc/install.texi: Document fine-grained multilib configuration.
11185 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
11187 * rtlanal.c (find_first_parameter_load): Call note_stores
11188 only on the instructions.
11190 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
11192 * alias.c (nonlocal_mentioned_p):
11193 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11194 * calls.c (emit_call_1): Likewise.
11195 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11196 * cselib.c (cselib_process_insn): Likewise.
11197 * df.c (df_insns_modify): Likewise.
11198 * flow.c (need_fake_edge_p): Likewise.
11199 (propagate_one_insn): Likewise.
11200 * haifa-sched.c (reemit_notes): Likewise.
11201 * integrate.c (copy_insn_list): Likewise.
11202 * jump.c (delete_prior_computation): Likewise.
11203 * local-alloc.c (validate_equiv_mem): Likewise.
11204 * loop.c (scan_loop): Likewise.
11205 * predict.c (estimate_probability): Likewise.
11206 * reload.c (reload): Likewise.
11207 * sched-deps (sched_analyze): Likewise.
11208 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11209 * gcse.c (compute_hash_table): Likewise.
11210 (mark_call): Likewise.
11211 (store_killed_in_insn): Likewise.
11213 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
11215 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11217 2001-08-06 Richard Henderson <rth@redhat.com>
11219 * varasm.c (assemble_gc_entry): Remove.
11220 * output.h: Likewise.
11222 2001-08-06 Richard Henderson <rth@redhat.com>
11224 * varasm.c (assemble_constructor): Take a symbol_ref and a
11225 priority instead of a bare string. Move priority handling
11226 here from cp/decl2.c.
11227 * output.h: Update decls.
11229 * c-decl.c (c_expand_body): Update calls to assemble_constructor
11230 and assemble_destructor.
11231 * profile.c (output_func_start_profiler): Likewise.
11232 * objc/objc-act.c (finish_objc): Likewise.
11233 (build_module_descriptor): Return the symbol not the symbol name.
11235 2001-08-06 David Edelsohn <edelsohn@gnu.org>
11237 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11238 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11239 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11240 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11241 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11242 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11244 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11246 * cpperror.c (print_containing_files): Moved to line-map.c.
11247 (print_location): line-map.c handles re-listing or otherwise.
11248 * cpphash.h (struct lexer_state): Remove next_bol.
11249 (struct cpp_buffer): Remove include_stack_listed.
11250 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11251 Remove faked buffer handling.
11252 (_cpp_do_file_change): Tweak.
11253 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11254 * cppmain.c (struct printer): Remove filename.
11255 (print_line, cb_file_change): Update accordingly.
11256 * line-map.c: Include intl.h.
11257 (init_line_maps): Initialize last_listed.
11258 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11259 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11260 (print_containing_files): New.
11261 * line-map.h (struct line_maps): New member last_listed.
11262 (print_containing_files, INCLUDED_FROM): New.
11263 * Makefile.in: Update.
11264 * po/POTFILES.in: Add line-map.c.
11266 2001-08-06 Richard Henderson <rth@redhat.com>
11268 * except.c (convert_from_eh_region_ranges_1): Never mark
11269 USE or CLOBBER insns as throwing.
11271 * expr.c (store_constructor): Don't clobber memory targets.
11273 2001-08-06 Andreas Jaeger <aj@suse.de>
11275 * profile.c (branch_prob): Remove unused variable insn.
11277 * Makefile.in (local-alloc.o): Add dependency on except.h.
11279 * local-alloc.c: Include except.h for can_throw_internal prototype.
11281 2001-08-06 Richard Henderson <rth@redhat.com>
11283 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11284 * function.c (expand_main_function): Implement it.
11285 * doc/tm.texi: Document it.
11287 2001-08-06 Stan Shebs <shebs@apple.com>
11289 * doc/install.texi: Document powerpc-*-darwin* details.
11291 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
11293 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11294 (ASM_CPU_SPEC): Move back to rs6000.h
11295 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11297 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11299 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11302 * config/rs6000/linux64.h: Ditto.
11304 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11305 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11308 Remove accidently readded definitions of FUNCTION_PROLOGUE,
11309 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11311 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11314 2001-08-05 Richard Henderson <rth@redhat.com>
11316 * local-alloc.c (update_equiv_regs): Do not move insns that
11319 2001-08-05 Jan Hubicka <jh@suse.cz>
11321 * Makefile.in (reload1.o): Add dedendancy on except.h
11322 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11324 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11325 indicating wehther edges has been cleaned up.
11326 * reload1.c: Inlucde except.h
11327 (fixup_abnormal_edges): Accept deleted insns.
11328 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11331 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11333 * cpplib.c (do_line): Correct line number after pop_buffer.
11335 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11337 PR preprocessor/3824
11338 * line-map.c: Update comments.
11339 * line-map.h: Update comments.
11340 * tradcif.y: Don't consider large numbers unsigned.
11342 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11344 PR preprocessor/3081
11345 * c-lex.c (map): New.
11346 (cb_file_change): Update map and use it.
11347 (cb_def_pragma, cb_define, cb_undef): Use map and line.
11348 (c_lex): Update to use map.
11349 * cpperror.c (print_location): Move to using logical line numbers.
11350 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11351 (cpp_make_system_header): Similarly.
11352 (_cpp_execute_include): Stop line numbering hacks. Store the
11353 line we will return to.
11354 * cpphash.h (CPP_BUF_LINE): Remove.
11355 (struct cpp_buffer): Remove lineno and pseudo_newlines.
11356 Add map and return_to_line.
11357 (_cpp_do_file_change): Update.
11358 * cppinit.c (cpp_start_read): Update line kludge.
11359 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11360 (trigraph_ok): Use logical line numbers for diagnostics.
11361 (skip_block_comment): Likewise.
11362 (skip_whitespace): Likewise.
11363 (skip_line_comment): Use pfile->line instead.
11364 (_cpp_lex_token): Update to use logical line numbering exclusively.
11365 Handle BOL locally. Accept new lines in directives, but keep
11366 pfile->line decremented. Diagnostics use logical lines. Update
11367 directive handling.
11368 * cpplib.c (SEEN_EOL): New.
11369 (skip_rest_of_line, check_eol): Use it.
11370 (end_directive): Increase line number when accepting the newline
11371 at the end of a directive.
11372 (run_directive): Simplify.
11373 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
11374 (_cpp_do_file_change): Update to take buffer line number as an
11375 argument, and store the current map in the cpp_reader. Remove
11376 line number kludges.
11377 (_cpp_do__Pragma): Restore output position after a _Pragma.
11378 (cpp_push_buffer): Don't set output line or lineno.
11379 (_cpp_pop_buffer): Transfer more info from a faked buffer.
11380 Remove line kludge. Set output_line.
11381 * cppmacro.c (builtin_macro): Update handling of __LINE__.
11382 (parse_arg): Use logical lines.
11383 (save_lookahead_token): Save EOFs too now.
11384 * cppmain.c (struct printer): Fix comments.
11385 (printer_init): Simplify, let caller do errors.
11386 (scan_translation_unit, check_multiline_token, dump_macro): Update.
11387 (maybe_print_line): Simplify.
11388 (print_line): Don't print a linemarker if -P.
11389 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11390 (cb_file_change): Simplify.
11391 * line-map.h (LAST_SOURCE_LINE): Fix.
11392 (CURRENT_LINE_MAP): New.
11394 2001-08-05 Bernd Schmidt <bernds@redhat.com>
11396 * doloop.c (doloop_modify_runtime): Properly compute number of
11397 iterations if loop was unrolled.
11399 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11400 if their CSELIB_VAL_PTRs are.
11402 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11403 (setup_spill_pointers): Initialize it.
11404 (spill_restore_mem): Set it.
11405 (do_spill, do_restore): Use it to add REG_INC note.
11406 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11408 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11409 asms if other insns are available.
11411 * config/ia64/ia64.c (condop_operator): New predicate.
11412 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11413 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11416 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11417 temporary register than directly using a MEM.
11419 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11421 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11422 parameter in last change.
11424 2001-08-04 Zack Weinberg <zackw@panix.com>
11426 * sparc.md: Don't use #if inside C test expression.
11428 2001-08-04 Richard Henderson <rth@redhat.com>
11430 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11432 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
11434 * cpphash.h (struct cpp_reader): New member directive_line.
11435 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11436 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11437 do_pragma): Pass line to callbacks.
11438 (start_directive): Record line of directive.
11439 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11440 cb_include): Similarly.
11441 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11444 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11446 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11449 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
11451 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11453 * reload1.c (fixup_abnormal_edges): New static function.
11456 * flow.c (need_fake_edge_p): New function.
11457 (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11458 avoid call insn to be very last insn in the insn stream.
11460 * profile.c (branch_prob): Call flow_call_edges_add instead of
11461 doing that by hand; cleanup cfg to re-merge basic blocks once
11464 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11466 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11467 are also on line-map.h.
11468 * cppfiles.c (stack_include_file): Update.
11469 * cpphash.h (struct cpp_buffer): New member return_at_eof.
11470 (_cpp_pop_buffer): New.
11471 * cppinit.c (cpp_destroy, cpp_finish): Update.
11472 (do_includes): Mark each buffer to return at EOF.
11473 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
11474 return as requested.
11475 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11476 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
11477 * cpplib.h (cpp_pop_buffer): Remove.
11478 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11479 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
11481 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
11483 (do_preprocessing): Update.
11484 * fix-header.c (read_scan_file): Update. No need to pop buffers.
11485 * c-parse.in (_yylex): Similarly.
11486 * scan-decls.c (scan_decls): Similarly.
11487 * line-map.h: Update comments.
11489 * objc/Make-lang.in (objc-act.o): Update dependencies.
11491 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11493 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11494 and soft register for operand 0.
11495 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11497 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11499 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11500 register for operand 0.
11501 ("bitcmpqi_z_used"): Allow memory for operand 0.
11502 (split "bitcmpqi"): New split to handle address reg as operand 1.
11504 2001-08-04 Andreas Jaeger <aj@suse.de>
11506 * gcse.c: Revert Daniel's last patch.
11508 2001-08-03 Zack Weinberg <zackw@stanford.edu>
11510 * sparc-protos.h: Add prototypes for fp_zero_operand and
11512 * sh-protos.h: Add prototype for fpul_operand.
11514 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11516 * doc/extend.texi (Other Builtins): Fix typo in last change.
11518 2001-08-03 Richard Henderson <rth@redhat.com>
11520 * target.h (gcc_target): Add asm_out.named_section,
11521 section_type_flags, have_named_sections.
11522 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
11523 (TARGET_HAVE_NAMED_SECTIONS): New.
11524 (TARGET_SECTION_TYPE_FLAGS): New.
11526 * Makefile.in (toplev.o): Depend on TARGET_H.
11527 (varasm.o, dbxout.o): Likewise.
11528 * c-common.c (decl_attributes): Check targetm.have_named_sections
11529 instead of ifdef ASM_OUTPUT_SECTION_NAME.
11530 * dbxout.c (dbxout_function_decl): Likewise.
11531 (dbxout_function_end): Likewise.
11532 * toplev.c (compile_file): Likewise.
11533 * varasm.c (exception_section): Likewise.
11534 * cp/decl2.c (finish_objects): Likewise.
11536 * defaults.h (EH_FRAME_SECTION): Remove.
11537 (EH_FRAME_SECTION_ASM_OP): Remove.
11538 (EH_FRAME_SECTION_NAME): New.
11539 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
11540 (UNIQUE_SECTION_P): Remove.
11541 * dwarf2out.c (SECTION_FORMAT): Remove.
11542 (ASM_OUTPUT_SECTION): Remove.
11543 (output_call_frame_info): Use named_section_flags.
11544 (output_comp_unit, dwarf2out_start_source_file): Likewise.
11545 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
11546 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
11547 * varasm.c (in_eh_frame, eh_frame_section): Remove.
11548 (named_section_flags): New.
11549 (named_section): Use it and targetm.section_type_flags.
11550 (resolve_unique_section): New.
11551 (assemble_start_function): Use it.
11552 (asm_emit_uninitialised, assemble_variable): Likewise.
11553 (default_section_type_flags): New.
11554 (default_no_named_section, default_elf_asm_named_section): New.
11555 (default_coff_asm_named_section, default_pe_asm_named_section): New.
11556 * output.h: Update varasm.c decls.
11557 (SECTION_*): New flags.
11559 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
11560 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
11562 * config/elfos.h (UNIQUE_SECTION_P): Remove.
11563 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
11564 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
11565 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11566 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
11567 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
11568 * config/mips/elf.h, config/mips/elf64.h: Likewise.
11569 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
11570 * config/pa/pa64-hpux.h,
11572 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
11573 (TARGET_ASM_NAMED_SECTION): New.
11574 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
11575 * config/alpha/vms.h, config/arm/coff.h: Likewise.
11576 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
11577 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
11578 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
11579 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
11580 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11581 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
11582 * config/i386/sco5.h, config/i386/win32.h: Likewise.
11583 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
11584 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
11585 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
11586 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11587 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11588 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11589 * config/sparc/sysv4.h: Likewise.
11591 * config/nextstep.h: Error until named sections implemented.
11593 * config/a29k/a29k.c (a29k_asm_named_section): New.
11594 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11595 (vms_section_type_flags, vms_asm_named_section): New.
11596 * config/arm/arm.c (arm_elf_asm_named_section): New.
11597 * config/avr/avr.c (asm_output_section_name): Remove.
11598 * config/avr/avr-protos.h: Update.
11599 * config/c4x/c4x.c (c4x_asm_named_section): New.
11600 * config/h8300/h8300.c (h8300_asm_named_section): New.
11601 * config/i386/i386.c (sco_asm_named_section): New.
11602 * config/i386/winnt.c (SECTION_PE_SHARED): New.
11603 (i386_pe_section_type_flags): New.
11604 (i386_pe_asm_named_section): New.
11605 * config/i386/i386-protos.h: Update.
11606 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11607 * config/mcore/mcore.c (mcore_asm_named_section): New.
11608 * config/mips/mips.c (iris6_asm_named_section): New.
11609 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11610 instead of UNIQUE_SECTION_P.
11611 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11612 (xcoff_asm_named_section): New.
11613 * config/sh/sh.c (sh_asm_named_section): New.
11614 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11616 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11617 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11618 (EH_FRAME_SECTION_NAME): New.
11619 (EXCEPTION_SECTION): New.
11620 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11621 (DEBUG_*_SECTION): Remove.
11622 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11623 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11624 (EH_FRAME_SECTION_ASM_OP): Remove.
11626 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11627 (ASM_OUTPUT_SECTION_NAME): Remove.
11628 (TARGET_ASM_NAMED_SECTION): New.
11629 (TARGET_HAVE_NAMED_SECTIONS): New.
11630 (TARGET_SECTION_TYPE_FLAGS): New.
11631 (EH_FRAME_SECTION_ASM_OP): Remove.
11632 (EH_FRAME_SECTION_NAME): New.
11634 2001-08-03 Zack Weinberg <zackw@stanford.edu>
11636 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11637 for complex expressions when cfun == 0.
11638 * doc/extend.texi: Document that __builtin_constant_p can be
11639 used in data initializers as well as functions.
11641 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
11643 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11644 variable I locally, instead of expecting a declaration in the
11647 2001-08-03 Richard Henderson <rth@redhat.com>
11649 * except.c (collect_one_action_chain): Add an explicit cleanup
11650 action if regions surrounding a catch were encoded entirely
11651 within the call-site entry.
11653 2001-08-03 Richard Henderson <rth@redhat.com>
11655 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11656 don't take REGNO of a non-register.
11658 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11660 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11661 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11662 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11663 (__gthread_mutex_init_function): New function for mutex initialization.
11665 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11667 * Makefile.in: Revert screwed up commit.
11669 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11671 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11672 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11673 merged by linker script to get a final _exit().
11674 (__do_global_dtors): New for destructor handling in specific exit
11676 (__do_global_ctors): New for constructors in specific install section.
11677 (__map_data_section): Map data sections before running constructors.
11678 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11679 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11680 (DTORS_SECTION_ASM_OP): Likewise.
11681 (CTORS_SECTION_FUNCTION): Define to force a reference to
11683 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11685 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11687 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11689 * Makefile.in: Add df.h to gcse.c dependencies.
11691 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11693 * varasm.c (output_constant_def_contents): Use for the length of a
11694 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11695 depending on which is larger.
11697 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11699 * gcse.c: Include df.h for use as a dataflow analyzer.
11701 Declaration of reg_set_info: gone.
11702 New df_analyzer variable used by store motion.
11703 (reg_set_info): Deleted.
11704 (mark_mem_regs): New function, analyze regs used by a mem.
11705 (store_ops_ok): Use dataflow analyzer results to determine if
11706 necessary regs are changed in the block.
11707 (find_moveable_store): Remove check for symbol ref, we can handle
11708 much more complex expressions now.
11709 (compute_store_table): Remove most of the code, it's unnecessary
11710 now that the dataflow analyzer records the info for us.
11711 (store_killed_after): Add parameter to say whether to do the
11712 store_ops_okay test, used to speed up testing when we already know
11713 the answer, and just want to know if the store itself was killed.
11714 (build_store_vector): Largely rewritten to calculate the various
11715 vectors properly, and somewhat optimized.
11716 (store_motion): Init the df_analyzer, get REG_DEF chains.
11717 Also handle trapping expressions (since mems almost always trap)
11718 (simple_mem): Redefine what a simple mem is.
11720 2001-08-03 DJ Delorie <dj@redhat.com>
11722 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11723 set from a constant part of the condition.
11725 2001-08-01 Andrew Cagney <ac131313@redhat.com>
11727 * mkdeps.c (deps_add_default_target): Make local variable
11728 ``start'' a const char pointer.
11729 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11731 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11733 * doc/install.texi (Configuration): Fix markup.
11734 (Specific, i?86-*-udk): Likewise.
11735 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11737 Document --enable-threads and --enable-libgcj status.
11738 (Specific, mips-sgi-irix*): Canonicalize triples.
11739 (Specific, mips-sgi-irix5): Warn about problems with this config.
11740 Mention required GNU as patch.
11741 Native assembler problems are fixed.
11742 (Specific, mips-sgi-irix6): Update O32 ABI support status.
11743 Document --enable-threads and --enable-libgcj status.
11745 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11747 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11750 2001-08-03 Richard Henderson <rth@redhat.com>
11752 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11755 2001-08-03 Richard Henderson <rth@redhat.com>
11757 * rtlanal.c (find_first_parameter_load): Stop if we
11758 reach a CODE_LABEL at BOUNDARY.
11760 2001-08-03 Richard Henderson <rth@redhat.com>
11762 * config/alpha/alpha.md (force_movdi): New insn.
11763 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11764 Tweek FRP marking of VMS prologue insns.
11765 * config/alpha/vms.h (EPILOGUE_USES): New.
11767 2001-08-02 Richard Henderson <rth@redhat.com>
11769 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11771 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
11773 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11774 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11775 config/convex/convex.h, config/d30v/d30v.c,
11776 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11777 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11778 config/mips/mips.h, config/mn10200/mn10200.h,
11779 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11780 config/v850/v850.h, config/vax/openbsd.h,
11781 config/vax/openbsd1.h, config/vax/ultrix.h,
11782 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11783 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11784 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11785 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11786 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11787 in comments and documentation.
11789 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11793 * Makefile.in (line-map.o): New.
11794 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11795 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11796 * cpperror.c (print_containing_files): Similarly.
11797 (print_location): Update. Don't output a space before _Pragma.
11798 * cppfiles.c (stack_include_file): Set to line 1 immediately.
11799 (stack_include_filee, cpp_make_system_header): Update.
11800 (_cpp_execute_include): Get logical line number right for calling
11801 as-yet-unterminated #include.
11802 * cpphash.h (struct cpp_reader): Add line_maps.
11803 (_cpp_do_file_change): Update.
11804 * cppinit.c (cpp_create_reader): Initialize line maps.
11805 (cpp_destroy): Destroy line maps.
11806 (cpp_start_read): Get logical line number right.
11807 * cpplex.c (parse_string): Only warn once for multi-line strings.
11808 Use boolean variable for null warning.
11809 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11811 (do_include_common): End the directive early.
11812 (do_line): Don't warn about out-of-range lines in preprocessed
11813 source. Update. Remove unused variables.
11814 (_cpp_do_file_change): Update for new line mapping.
11815 (pragma_cb): New typedef.
11816 (cpp_register_pragma): Stop looking ahead before calling the
11818 (do_pragma_system_header): End directive early.
11819 (cpp_get_line_maps): New.
11820 (cpp_pop_buffer): Fudge logical line. Update.
11821 * cpplib.h: Include line-map.h
11822 (enum cpp_fc_reason): Remove.
11823 (struct cpp_file_change): Update.
11824 (cpp_get_line_maps): New.
11825 * cppmain.c (struct_printer): New member map.
11826 (cb_file_change): Update for new mappings.
11827 * fix-header.c (cb_file_change): Similarly.
11829 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11831 * Makefile.in (libgcc.mk): Define mkinstalldirs.
11832 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11834 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
11836 * config/vax/vax.c: include expr.h.
11838 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11840 * Makefile.in ($(srcdir)/configure): Only rebuild in
11842 ($(srcdir)/config.in): Only define in maintainer mode.
11843 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11845 2001-08-02 David Edelsohn <edelsohn@gnu.org>
11847 * doc/install.texi (Install GCC: Binaries): Update Bull info.
11849 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11851 * gcc.c (set_collect_gcc_options): New function, split out from
11853 Ignore elided switches.
11854 (do_spec_1): Invoke before executing command.
11855 (set_input): Export.
11856 Move declaration ...
11857 * gcc.h (set_input): ... here.
11858 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11861 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
11864 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11866 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11868 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
11870 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
11871 for the unnamed instructions it expands to.
11873 2001-08-02 Richard Henderson <rth@redhat.com>
11875 * regclass.c (call_really_used_regs): Conditionally define.
11876 (init_reg_sets_1): Don't use it if not defined.
11877 (fix_register): Similarly, don't set it.
11879 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11881 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11882 Correct comment that had been missed in the previous change.
11884 2001-08-01 Stan Shebs <shebs@apple.com>
11886 * config/darwin.c (machopic_stub_name): Try matching by name.
11887 (update_stubs): New function.
11888 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
11891 2001-08-01 Richard Henderson <rth@redhat.com>
11893 * except.c (output_function_exception_table): Use assemble_align.
11894 * varasm.c (assemble_eh_label): Remove.
11895 (assemble_eh_align, assemble_eh_integer): Remove.
11897 2001-08-01 Robert Lipe <robertl@caldera.com>
11899 * dwarfout.c: Remove reference to README.DWARF.
11901 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
11903 * regclass.c (call_really_used_regs): New array for registers which
11904 are actually used by a call.
11905 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11907 (fix_register): Set call_really_used too.
11908 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11909 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11911 2001-08-01 Richard Henderson <rth@redhat.com>
11913 * read-rtl.c (read_name): Consider \r whitespace.
11915 2001-07-11 Andrew Cagney <ac131313@redhat.com>
11917 * config.gcc: Recognize powerpc-*-netbsd*.
11919 * doc/install.texi (Host/target specific installation notes for
11920 GCC): Mention powerpc-*-netbsd*.
11922 * config/rs6000/netbsd.h: New file.
11923 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11924 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11925 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11926 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11927 (TARGET_VERSION): Redefine.
11929 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11930 mcall-netbsd as a match for mcall-sysv.
11931 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11932 (ncrti.S, ncrtn.S): New targets.
11933 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11935 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11936 "netbsd' as a V4 ABI.
11937 (ASM_SPEC): Check for -mcall-netbsd.
11938 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11939 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11940 (LIB_SPEC, ENDFILE_SPEC): Ditto.
11941 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11942 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11943 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11944 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11946 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11947 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11949 2001-08-01 Mark Kettenis <kettenis@gnu.org>
11951 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11952 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11953 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11954 including "unwind-pe.h".
11956 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
11958 * rs6000.md (define_splits): Kill unused constraints.
11960 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
11961 Jan Hubicka <jh@suse.cz>
11963 * function.c (thread_prologue_and_epilogue_insns): Kill code
11964 dealing with non-existent CFG.
11966 2001-08-01 Kazu Hirata <kazu@hxi.com>
11968 * alias.c: Fix comment formatting.
11969 * bitmap.c: Likewise.
11970 * builtins.c: Likewise.
11971 * calls.c: Likewise.
11972 * c-common.c: Likewise.
11973 * c-decl.c: Likewise.
11974 * c-dump.c: Likewise.
11975 * c-lex.c: Likewise.
11976 * collect2.c: Likewise.
11977 * combine.c: Likewise.
11978 * conflict.c: Likewise.
11979 * cppfiles.c: Likewise.
11980 * cppinit.c: Likewise.
11981 * cpplex.c: Likewise.
11982 * cpplib.c: Likewise.
11983 * cppmacro.c: Likewise.
11984 * cppspec.c: Likewise.
11985 * c-pragma.c: Likewise.
11986 * crtstuff.c: Likewise.
11988 * cselib.c: Likewise.
11989 * c-semantics.c: Likewise.
11990 * c-typeck.c: Likewise.
11992 2001-08-01 H.J. Lu <hjl@gnu.org>
11994 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11996 2001-08-01 H.J. Lu <hjl@gnu.org>
11998 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
12000 2001-08-01 Ziemowit Laski <zlaski@apple.com>
12002 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
12003 contextualizing Objective-C class name lookup by the lexer.
12004 (typespec_reserved_nonattr): Disable ObjC class name lookup after
12006 (protocoldef): Add support for forward @protocol declarations.
12007 (yylexname): Suppress ObjC class name lookup in certain contexts;
12008 re-enable after lookup is complete.
12009 (_yylex): Re-enable ObjC class name lookup when certain
12010 punctuation marks are seen.
12012 * objc/objc-act.c (check_protocol_recursively): New function used
12013 for finding circular dependencies in protocols.
12014 (objc_declare_protocols): New function for handling forward
12015 @protocol declarations.
12016 (receiver_is_class_object): Detect the case when 'self' is used
12017 inside of a class method.
12018 (build_message_expr): Issue a warning if class method is desired
12019 but instance method is found instead.
12020 (conforms_to_protocol): Streamline.
12021 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
12022 protocol Foo, even if 'Bar foo' does not.
12023 (check_protocols): Streamline.
12024 (start_protocol): Add checks for circular and duplicate protocol
12026 (encode_aggregate_within): For typedefs of structs, encode the
12028 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
12029 (objc_declare_protocols): New prototype.
12031 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12033 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
12034 * cpplex.c (handle_newline): Update prototype. Maintain logical
12036 (skip_escaped_newlines, skip_block_comment, parse_string):
12037 Update accordingly.
12038 (_cpp_lex_token): Update, and store token position within the token.
12039 * cpplib.h (struct cpp_token): Add line and column entries.
12040 * cppmacro.c (replace_args): Position stringified tokens correctly.
12042 2001-08-01 Andreas Jaeger <aj@suse.de>
12044 * basic-block.h: Add prototype for last_loop_beg_note.
12046 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
12048 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
12049 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12051 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12052 while handling WITH_CLEANUP_EXPR node. Use second operand calling
12053 expand_decl_cleanup.
12054 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12056 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12057 operand while calling simple_cst_equal.
12058 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12059 operand is the cleanup expression, the third is the RTL_EXPR.
12060 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12062 2001-07-31 Jeff Sturm <jsturm@one-point.com>
12064 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12066 2001-07-31 matthew green <mrg@eterna.com.au>
12068 * config.gcc (i386-*-netbsdelf): New description.
12069 * config/i386/netbsd-elf.h: New file.
12071 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
12073 * loop.c (check_dbra_loop): Use single_set to compute
12076 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
12078 PowerPC reorg and support for powerpc64-*-linux*.
12080 Also fixes emitting of constants on 32 bit and 64 bit
12083 * config.gcc: powerpc64-*-linux* is a new target.
12084 Things that needed aix.h now also include xcoff.h
12086 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12088 Move AIX specific stuff into aix.h.
12089 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12090 with more than just XCOFF now.
12091 (SET_ASM_OP): Remove, now defined where needed.
12092 (FUNCTION_PROLOGUE): New macro definition.
12093 (FUNCTION_EPILOGUE): New macro definition.
12094 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12096 * config/rs6000/xcoff.h: New file.
12098 * config/rs6000/linux64.h: New file.
12100 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12102 2001-07-31 Alan Modra <amodra@bigpond.net.au>
12104 * rs6000.c (print_operand_address): Handle ELF syntax.
12105 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
12106 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12107 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12109 2001-07-31 David Edelsohn <edelsohn@gnu.org>
12111 * rs6000.c (rs6000_override_options): Only disable
12112 flag_function_sections for XCOFF.
12113 (exact_log2_cint_operand): New predicate.
12114 (reg_or_{add,sub}_cint64_operand): New predicates.
12115 (add_operand): Compare CONST_INT with fewer function calls.
12116 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12117 (print_operand, case 'p'): Ensure positive operand.
12118 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12119 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12120 (PREDICATE_CODES): Add new predicates.
12121 * rs6000.md (addsi3): Split 32-bit constants more correctly.
12122 (divsi3, modsi3): Ensure positive power-of-2.
12123 (adddi3): Use new predicate. Split 32-bit constants more
12124 correctly. Re-arrange splitter to handle any constant.
12125 (subdi3): Use new predicate.
12126 (divdi3, moddi3): Ensure positive power-of-2.
12127 (movdi): Use rs6000_emit_set_const.
12128 (load_toc_v4_pic_di): Delete.
12130 2001-07-31 Graham Stott <grahams@redhat.com>
12132 * function.c (pad_below): Revert 2001-07-26 patch.
12134 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
12136 * reg-stack (convert_regs_1): Fix best edge condition.
12138 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
12140 * jump.c (duplicate_loop_exit_test): Better test for jumps
12141 entering the loop; create loop pre_header.
12143 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12145 * doc/install.texi: Add s390 and s390x as new targets.
12146 * doc/invoke.texi: Add documentation of S/390 and zSeries
12148 * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12150 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
12152 * config/m68k/m68k.md: Replace all general_operand with
12153 nonimmediate_operand for all destinations.
12154 * config/m68k/m68k.c (not_sp_operand): Likewise.
12156 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
12158 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12160 2001-07-30 Richard Henderson <rth@redhat.com>
12162 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12163 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12165 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
12167 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12168 Add missing doc strings
12169 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12170 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12172 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
12174 * i386.c (ix86_output_main_function_alignment_hack): New function.
12175 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12177 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12178 edges by EDGE_DFS_BACK flag.
12179 (dump_edge_info): Add dfs_back flag.
12180 * basic-block.h (EDGE_DFS_BACK): New constant.
12181 (mark_dfs_back_edges): Declare.
12182 * alias.c (loop_p): Remove.
12183 (mark_constant_function): Use mark_dfs_back_edges.
12185 * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12186 (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12187 (compensate_edge): Break out from ...
12188 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12189 (convert_regs_2): Set block_done once block is really done;
12190 Do updating of the predecessors counts.
12192 * toplev.c (rest_of_compilation): Recompute block_for_insn
12193 before post-reload cfg_cleanup.
12194 * function.c (thread_prologue_epilogue_insns):
12195 Call set_block_for_new_insns when emitting prologue directly.
12197 2001-07-30 Andreas Jaeger <aj@suse.de>
12199 * jump.c: Add prototype for mark_modified_reg.
12201 * cse.c (set_live_p): Add unused attribute.
12203 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12205 (scan_for_source_files): Use long for count to avoid overflow.
12206 (output_data): Likewise.
12207 (output_data): Don't use string concatatenation to silence gcc
12210 * predict.c: Fix typos and grammar.
12212 * gcse.c (insert_insn_end_bb): Remove unused variables.
12214 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
12216 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12217 (attempt_auto_inc): LIkewise.
12218 (mark_used_reg): Likewise.
12219 (try_pre_increment_1): Likewise.
12220 * regclass.c (regclass): Likewise.
12221 * global.c (allocno_compare): Update comment; change scaling factor.
12222 * local-alloc.c (QTY_CMP_PRI): Likewise.
12223 * regs.h (REG_FREQ_FROM_BB): New.
12224 (REG_FREQ_MAX): Likewise.
12226 2001-07-30 H.J. Lu <hjl@gnu.org>
12228 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12231 2001-07-30 H.J. Lu (hjl@gnu.org)
12233 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12234 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12235 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12237 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
12239 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12240 as -mthumb-interwork when -mcpu=arm7 is specified.
12242 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
12244 * predict.def (noreturn, loop branch, loop exit): Mark as first
12247 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
12249 * combine.c (try_combine): Avoid barrier after noop jumps.
12251 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12253 * cpphash.h (struct cpp_reader): Remove import_warning.
12254 * cpplib.c (skip_rest_of_line): Don't bother turning off
12256 (parse_include): Move include handling to...
12257 (do_include_common): ... here. Move import warning from...
12258 (do_import): ... here.
12259 (do_pragma_poison): Don't do a callback for poison identifiers.
12260 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12261 * cppmain.c (setup_callbacks): Similarly.
12263 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
12265 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12266 handle multiple sets.
12267 * except.c (sjlj_mark_call_sites): .... here.
12268 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12270 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
12272 Suggested by Richard Henderson and Richard Kenner:
12273 * combine.c (recog_for_combine): Use the fake recog
12274 only if instruction does not match.
12275 * rtl.h (NOOP_MOVE_INSN_CODE): New.
12276 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12278 * combine.c (try_combine): Discover noop jump as direct jump.
12280 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
12282 * df.c (df_rd_global_compute): Add successors to worklist, not
12284 (df_ru_global_compute): Ditto.
12286 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
12288 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12289 increment REG_N_SETS.
12291 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
12293 * sbitmap.h: New prototype for sbitmap_a_xor_b.
12295 * sbitmap.c (sbitmap_a_xor_b): New function.
12296 ifdef the basic block stuff on IN_GCC.
12298 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12300 * cppexp.c (parse_defined): Always record the macro name.
12301 (lex): Don't worry about identifiers, or special-case
12303 (_cpp_parse_expr): Figure out at the end of the routine
12304 whether we saw a valid !defined() expression.
12305 * cppfiles.c (stack_include_file): Update for mi_valid.
12306 (_cpp_pop_file_buffer): Similarly.
12307 * cpplex.c (_cpp_lex_token): Similarly.
12308 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12309 mi_if_not_defined, mi_lexed): Remove.
12311 * cpplib.c (do_if): Simplify.
12312 (do_endif, push_conditional, _cpp_handle_directive): Update
12313 for renaming of mi_state to mi_valid.
12315 * cpp.texi: Add index entries for digraphs, and add comment
12316 that C++ refers to them as alternative tokens.
12318 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
12320 * basic-block.h (CLEANUP_PRE_LOOP): New.
12321 * except.c (finish_eh_generation): Update call of cleanup_cfg.
12322 * sibcall.c (optimize_sibling_calls): Likewise.
12323 * toplev.c (rest_of_compilation): Likewise.
12324 * flow.c (try_forward_edges): Take argument MODE;
12325 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12326 (try_optimize_cfg): Update call of try_forward_edges.
12328 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
12329 Jan Hubicka <jh@suse.cz>
12331 * (validate_replace_rtx_1): Fix simplification of MINUS.
12333 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
12335 PR preprocessor/3669
12336 * cppinit.c (init_dependency_output): Turn off dump requests
12337 if sending dependencies to stdout.
12339 2001-07-28 Richard Henderson <rth@redhat.com>
12341 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12344 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
12346 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12348 2001-07-28 Kazu Hirata <kazu@hxi.com>
12350 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12351 is VAR_DECL first to prevent an ICE.
12353 2001-07-28 Richard Henderson <rth@redhat.com>
12355 * varasm.c (immed_real_const_1): Don't elide special cases for
12357 (clear_const_double_mem): Clear const_tiny_rtx too.
12359 2001-07-28 Richard Henderson <rth@redhat.com>
12361 * dwarf2out.c (dw_val_class_offset): New.
12362 (struct dw_ranges_struct, dw_ranges_ref): New.
12363 (ranges_table, ranges_table_allocated): New.
12364 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12365 (add_AT_offset, add_ranges, output_ranges): New.
12366 (print_die, output_die): Handle dw_val_class_offset.
12367 (attr_checksum, size_of_die, value_format): Likewise.
12368 (gen_lexical_block_die): Handle non-contiguous blocks.
12369 (gen_block_die): Likewise.
12370 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12371 if needed. Dump the ranges table.
12372 * final.c (final_start_function): Remove unnecessary notes and
12373 rebuild the block tree before numbering the blocks.
12374 * function.c (reorder_blocks_0): Walk the existing block tree
12375 to unmark all blocks.
12376 (reorder_blocks_1): Create block fragments when duplicate block
12378 (reorder_fix_fragments): New.
12379 (reorder_blocks): Call it.
12380 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12382 2001-07-28 Richard Henderson <rth@redhat.com>
12384 * emit-rtl.c (adjust_address): Make a copy of the memory address.
12386 2001-07-28 Richard Henderson <rth@redhat.com>
12388 * flow.c (add_to_mem_set_list): New function.
12389 (init_propagate_block_info): Use it.
12390 (mark_set_1): Likewise.
12391 (insn_dead_p): Canonicalize memory address for dead store
12392 comparison. Allow wider mode stores to kill narrower mode stores.
12393 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12394 (invalidate_mems_from_set): Don't handle MEMs.
12396 2001-07-28 Kazu Hirata <kazu@hxi.com>
12398 * config/h8300/h8300.h: Fix formatting.
12400 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12402 * basic-block.h (EDGE_FREQUENCY): New macro.
12403 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12405 * flow.c (find_sub_basic_blocks): Likewise.
12406 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12407 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12409 * predict.c (DEF_PREDICTOR): New argument FLAGS.
12410 (HITRATE): New macro.
12411 (PRED_FLAG_FIRST_MATCH): New constant.
12412 (predictor_info): New field flgags.
12413 (combine_predictions_for_insn): Use DS theory to combine
12414 probabilities; set the edge probabilities when finished.
12415 (estimate_probability): Avoid duplicated matches
12416 of LOOP_BRANCH heuristics for nested loops; update comment.
12417 * predict.def: Add flags for each prediction, set probabilities
12418 according to B&L paper.
12419 * predict.h (DEF_PREDICTOR): New argument FLAGS.
12421 * profile.c (compute_branch_probabilities): Cleanup way the edge
12422 probabilities are computed and REG_BR_PROB notes are dropped; if
12423 values does not match, emit error.
12424 (init_branch_prob): Do error instead of warning when profile driven
12425 feedback is missing or corrupt.
12427 2001-07-27 DJ Delorie <dj@redhat.com>
12429 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12430 against a constant, try to adjust the compare to have the desired
12431 constant in it so that min/max optimizations happen more often.
12433 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
12435 * flow.c (last_loop_beg_note): New function.
12436 (redirect_edge_and_branch): Use it.
12437 (split_edge): Likewise.
12439 * alias.c (loop_p): Avoid uninitialized memory access.
12441 * flow.c (try_forward_edges): Avoid accessing freed memory.
12443 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12446 2001-07-26 Andrew Haley <aph@redhat.com>
12447 Joern Rennecke <amylaar@redhat.com>
12449 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12450 (SUBTARGET_CPP_ENDIAN_SPEC): New.
12451 (SUBTARGET_CPP_SPEC): New.
12452 (CPP_SPEC): Remove.
12453 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12454 (SUBTARGET_CPP_PTR_SPEC): New.
12455 (CPP_DEFAULT_CPU_SPEC): New.
12456 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12457 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12458 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12459 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12460 (SUBTARGET_CPP_SPEC): Define as an empty string.
12462 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12464 * doc/install.texi (Configuration): Properly link the host
12465 specific instructions also when generating HTML.
12467 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
12469 * flow.c (redirect_edge_and_branch_force): Test
12470 target->global_live_at_start.
12472 2001-07-26 Richard Henderson <rth@redhat.com>
12474 * simplify-rtx.c (avoid_constant_pool_reference): Export.
12475 * rtl.h (avoid_constant_pool_reference): Declare it.
12476 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12477 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12479 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12481 * rtl.h (cleanup_barriers): Declare.
12482 * jump.c (cleanup_barriers): New function.
12483 * toplev.c (rest_of_compilation): Call cleanup_barriers
12484 before loop optimizer and after bb_reorder.
12486 * flow.c (back_edge_of_syntactic_loop_p): New.
12487 (split_edge): Use it.
12489 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12491 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12493 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
12495 * cse.c (cse_process_notes): Replace any registers if the address
12498 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
12500 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12501 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12502 (propagate_block): Update prototype.
12503 * flow.c (update_life_info): Simplify the CFG and
12504 recalculate the global regs which are alive when
12505 removing dead code during a global update.
12506 (propagate_block): Return non-zero if an INSN is
12509 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12511 * Makefile.in (LIBICONV): Define.
12513 2001-07-26 Catherine Moore <clm@redhat.com>
12515 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
12516 of conditional to avoid tree checking errors.
12518 2001-07-26 Kazu Hirata <kazu@hxi.com>
12520 * regmove.c (regmove_optimize): Don't replace a reg with
12521 another reg of a different mode.
12523 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
12525 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
12526 limit length of dependency flush list.
12527 * params.h (MAX_PENDING_LIST_LENGTH): Define.
12528 * sched-int.h (struct deps): Add pending_flush_length field.
12529 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
12530 has 1 element in it.
12531 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
12532 (sched_analyze): After a jump, if the pending memory flush list is too
12533 large, flush the pending lists.
12534 (init_deps): Initialize pending_flush_length to 0.
12535 * doc/invoke.texi (max_pending_list_length): Document parameter.
12537 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
12539 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
12540 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
12541 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
12543 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12545 * cpphash.h (struct_lexer_state): Delete was_skipping.
12546 Move skipping here from struct cpp_reader.
12547 * cpplex.c (parse_identifier): Update.
12548 (_cpp_lex_token): Don't skip tokens in a directive.
12549 * cpplib.c (struct if_stack): Update.
12550 (start_directive, end_directive): Don't change skipping state.
12551 (_cpp_handle_directive): Update.
12552 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
12553 (do_else, do_endif): Update; only check for excess tokens if not
12554 in a skipped conditional block.
12555 (push_conditional): Update for new struct if_stack.
12557 2001-07-26 Graham Stott <grahams@redhat.com>
12559 * function.c (locate_and_pad_parm): Also pad initial offset
12560 so that the total argument size also includes the padding.
12562 2001-07-26 Graham Stott <grahams@redhat.com>
12564 * gensupport.c (alter_output_for_insn): Correct enable checking failure
12565 change XSTR to XTMPL.
12567 (process_one_cond_exec): Likewise
12569 2001-07-25 Richard Henderson <rth@redhat.com>
12571 * varasm.c (assemble_variable): Create DECL_RTL before setting
12574 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
12576 * predict.c (estimate_probability): Avoid duplicated predictions.
12578 * loop.c (find_and_verify_loops): Grok multiple barriers.
12580 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12582 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
12584 * dbxout.c: Consistently use putc instead of fputc.
12585 (print_wide_int): New function; call instead of direct fprintf.
12586 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12587 (dbxout_type_fields, dbxout_type_method_1): Likewise.
12588 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12589 (print_int_cst_octal): Likewise.
12590 (print_octal): Show we wrote characters.
12591 (dbxout_type): Set have_used_extensions in more places.
12593 2001-07-25 Catherine Moore <clm@redhat.com>
12595 * config/v850/v850.c (v850_va_arg): Use addr
12596 instead of valist to build incr.
12598 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
12600 * flow.c (delete_dead_jumptables): New function.
12601 (life_analyzis): Call it.
12602 * bb-reorder.c (skip_insns_after_block): Handle contradictory
12605 2001-07-25 Richard Henderson <rth@redhat.com>
12607 * except.c (reachable_handlers): Handle a region being removed
12608 out from under a RESX.
12610 2001-07-25 Richard Henderson <rth@redhat.com>
12612 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12613 swap GE/GT if it is an fp comparison.
12615 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
12617 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12620 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
12622 * ssa.c (rename_insn_1): Do not wrap an assignment to a
12623 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
12626 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12627 throw an exception.
12628 (visit_expression): When attempting to simplify an expression,
12629 retrieve any modes for arguments before they are simplified
12632 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
12633 Janis Johnson <janis@us.ibm.com>
12635 * stmt.c (expand_goto): A nonlocal goto can be a call too.
12636 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12637 pointer parameters to match documented usage of nonlocal_goto.
12638 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12639 parameters to their correct order.
12640 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12641 parameters to their correct order.
12643 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
12645 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12647 2001-07-25 Jan Hubicka <jh@suse.cz>
12648 Richard Henderson <rth@redhat.com>
12650 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12652 (make_edges): New argument update_p; populate the edge cache if set.
12653 (find_basic_blocks): Update make_edges invocation.
12655 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12657 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12659 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12661 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12662 -Acpu and -Amachine.h.
12663 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12664 Corrected header to say ELF not a.out.
12665 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12666 when given -msoft-float.
12668 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12670 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12671 extra multilib parts like arm-elf.
12672 (i960-*-coff*, i960-*-rtems): Should not use collect2.
12673 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12674 crtfini.o as extra multilib parts.
12676 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12678 * configure.in: Add rtems as a supported thread model.
12679 * gthr-rtems.h: Add missing entry point __gthread_active_p.
12680 * configure: Rebuilt.
12682 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
12684 * stor-layout.c (get_mode_alignment): make it work when
12685 BITS_PER_UNIT is not a power of two.
12686 * builtins.c (get_pointer_alignment): Likewise.
12688 2001-07-24 Richard Henderson <rth@redhat.com>
12690 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12691 the retrieved constant into the expected mode.
12693 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
12695 * flow.c (try_simplify_condjump): Avoid duplicated edges.
12696 (verify_flow_info): Check for duplicated edges; clarify
12699 * flow.c (block_label): Update basic_block_for_insn.
12700 (commit_edge_insertions): Call compute_bb_for_insn.
12702 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12705 * flow.c (redirect_edge_and_branch,
12706 try_optimize_cfg): Use redirect_edge_succ_nodup
12707 (redirect_edge_succ_nodup): New.
12708 * basic_block.h (redirect_edge_succ_nodup): Declare.
12710 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12713 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
12715 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12716 (try_crossjump_to_edge): Update commetns.
12717 (try_crossjump_bb): Likewise.
12719 2001-07-24 Richard Henderson <rth@redhat.com>
12721 * combine.c (distribute_notes): Move set of need_refresh
12722 for noop_move_p down to catch all cases.
12724 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
12726 * recog.c (split_all_insns_noflow): New.
12727 * rtl.h (split_all_insns_noflow): Declare.
12728 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12729 * m68hc11.c (m68hc11_reorg): Likewise.
12730 * sh.c (machine_dependent_reorg): Likewise.
12731 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12734 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
12736 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12737 (ashlsi3_n splitter): Likewise.
12738 (lshrsi3_n splitter): Likewise.
12740 (GOTaddr2picreg): Make const SImode.
12741 (sym_label2reg): Likewise.
12742 (symGOT2reg): Likewise.
12743 (symGOTOFF2reg) Likewise.
12745 (casesi_worker_0): Make unspec SImode.
12747 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
12749 * config/sh/sh.c (barrier_align): Check that an operand really is
12750 an insn before extracting its INSN_CODE.
12752 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
12754 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12757 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12758 for SImode to prevent overflow.
12760 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12762 * config/mips/irix6-libc-compat.c: New file.
12763 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12764 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12765 passing workaround.
12767 2001-07-24 lars brinkhoff <lars@nocrew.org>
12769 * rtl.texi (REG_POINTER): Document.
12770 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12771 QFmode, HFmode, TQFmode, QCmode, and HCmode.
12773 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
12775 * flow.c (delete_noop_moves): Do not confuse libcall regions.
12777 2001-07-23 Richard Henderson <rth@redhat.com>
12779 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12781 2001-07-23 Kazu Hirata <kazu@hxi.com>
12783 * config/h8300/h8300-protos.h: Add a prototype for
12784 general_operand_dst_push.
12785 * config/h8300/h8300.c (general_operand_dst_push): New.
12786 * config/h8300/h8300.h (OK_FOR_T): New.
12787 (EXTRA_CONSTRAINT): Use it.
12788 * config/h8300/h8300.md (movqi_push): Remove and integrate into
12789 the existing movqi pattern.
12790 (movhi_push): Likewise.
12792 * reload.c: Fix comment typos.
12794 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
12796 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12798 2001-07-23 H.J. Lu (hjl@gnu.org)
12800 * doc/extend.texi: Update __builtin_return_address and
12801 __builtin_frame_address.
12803 2001-07-23 Richard Henderson <rth@redhat.com>
12805 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12807 * config/i386/i386.md: New setcc+movzbl peephole2.
12809 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12811 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12812 * objc/objc-act.c: Include debug.h.
12813 (synth_module_prologue): Save and restore debug hooks too.
12815 2001-07-23 lars brinkhoff <lars@nocrew.org>
12817 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12818 and C4X_FLOAT_FORMAT.
12819 (BOOL_TYPE_SIZE): Document.
12821 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
12823 * unroll.c (loop_iterations): Fix miscalculation of initial
12826 2001-07-13 Andrew Haley <aph@redhat.com>
12828 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12829 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12830 * config/sh/sh.c (sh_can_redirect_branch): New function.
12831 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12832 * reorg.c (steal_delay_list_from_target): Use
12833 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12835 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
12837 * flow.c (try_simplify_condjump): Unlink insn chain on
12838 fallthru edge; use can_fallthru.
12840 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
12842 * basic-block.h (find_sub_basic_block): Declare.
12843 * flow.c (make_edges): New arguments MIN and MAX;
12844 (find_sub_basic_blocks): Revamp to use make_edges
12845 and purge_dead_edges.
12846 (find_basic_blocks): Update call of find_sub_basic_block.
12848 * recog.c (split_all_insns): Always expect CFG to be consistent;
12849 call find_sub_basic_blocks in case something has changed.
12850 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12853 * basic-block.h (delete_noop_moves): Declare.
12854 * combine.c (combine_instructions): Call it.
12855 (recog_for_combine): Tolerate noop moves
12856 (distribute_notes): Force refresh when register dies at noop move.
12857 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12859 (life_analysis): Update delete_noop_moves call.
12860 (set_noop_p): Move too ...
12861 * rtlanal.c (noop_move_p): ... here.
12862 * rtl.h (noop_move_p): Declare.
12864 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12865 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12867 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12868 (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12870 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
12872 * reload.c (push_reload): Fix typo in comment.
12873 (find_reloads_address): Ditto.
12874 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12876 2001-07-22 Richard Henderson <rth@redhat.com>
12878 * flow.c: Grammar check and clarify a lot of comments.
12879 (try_simplify_condjump): Rename variables to be clearer.
12880 (try_forward_edges): Skip complex and fallthru edges.
12881 Rearrange tests to avoid duplicate checks.
12882 (flow_find_cross_jump): Likewise.
12883 (outgoing_edges_match): Allow match if neither branch has
12884 probability data. Loosen probability match to 5%.
12885 (try_crossjump_to_edge): Hoist repeated indirection into
12887 (try_crossjump_bb): Don't check complex edges. Eliminate
12888 redundant crossjump tests.
12889 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
12890 checks before more expensive checks.
12892 2001-07-22 Richard Henderson <rth@redhat.com>
12894 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12895 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12898 2001-07-22 Richard Henderson <rth@redhat.com>
12900 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12901 (const_sint32_operand): Likewise.
12902 * m68k.md (anon mulsi pattern): Use const_int_operand not
12903 const_sint32_operand.
12904 (umulsi3_highpart): Zero extend a constant input.
12905 (smulsi3_highpart): Don't bother checking SImode constant.
12906 (const_umulsi3_highpart): Give op3 DImode.
12907 (const_smulsi3_highpart): Likewise.
12909 2001-07-22 Richard Henderson <rth@redhat.com>
12911 * flow.c (split_block): Make sure bb_note is included in the
12912 new block when splitting before a label.
12914 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
12916 * basic-block.h (redirect_edge_and_branch_force,
12917 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12918 * flow.c (redirect_edge_and_branch_force,
12919 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12920 (redirect_edge_and_branch_force): Fix copying of lifeness information.
12921 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12922 * ifcvt.c (dead_or_predictable): Take BB as an new destination
12923 instead of label; update CFG after transformation.
12924 (find_if_case_1): Update call, use redirect_edge_and_branch_force
12925 for finishing the transformation; handle even case where ELSE
12926 does not follow THEN.
12927 (find_if_case_2): Update call of dead_or_predictable; simplify
12930 * emit-rtl.c (split_branch_probability): New global variable.
12931 (try_split): Take care to set split_branch_probability and
12932 create REG_BR_PROB note for new jump insns.
12933 * md.texi (define_split): Document new feature.
12935 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12937 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
12939 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12940 (asm_out_file): Remove redundant declaration.
12941 (assemble_asm): Remove old #if 0 block.
12942 (assemble_variable): Remove end of function; debug output is
12943 now handled with global_decl. Remove old #if 0 block. Update.
12944 Remove saved_in_section and associated no-op code.
12945 * Makefile.in (varasm.o): Correct dependencies.
12947 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
12949 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12950 the definition in defaults.h.
12952 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
12954 * jump.c: Update comments.
12955 (delete_barrier_successors, delete_unreferenced_labels,
12956 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12957 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12958 jump_optimize, jump_optimize_minimal): Kill.
12959 (rebuild_jump_labels): Move code from jump_optimize_1.
12960 (purge_line_number_notes): Likewise.
12961 (copy_loop_headers): Likewise.
12962 * reg-stack.c: Update comment.
12963 * stmt.c: Likewise.
12964 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12965 JUMP_AFTER_REGSCAN): Kill.
12966 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12967 purge_line_number_notes and copy_loop_headers.
12969 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
12970 Richard Henderson <rth@redhat.com>
12972 * dbxout.c (dbxout_global_decl): New.
12973 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12974 * sdbout.c (sdbout_finish): New.
12975 (sdbout_debug_hooks): Use it, add comments.
12976 (sdbout_global_decl): Defer initialised public vars to
12978 * varasm.c (assemble_variable): Don't output debug information
12979 for file-scope variables.
12981 2001-07-22 Richard Henderson <rth@redhat.com>
12983 * config/alpha/alpha.c (get_trap_mode_suffix): New.
12984 (get_round_mode_suffix): New.
12985 (print_operand): Use them for [/]. Remove support for [&'`()+].
12986 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12987 * config/alpha/alpha.md (attr round_suffix): New.
12988 (attr trap_suffix): New.
12989 (all insns): Set them appropriately. Use %/ instead of the
12990 myriad punctuators.
12992 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12994 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12996 2001-07-22 Richard Henderson <rth@redhat.com>
12998 * regrename.c (regrename_optimize): Compute nregs for each
12999 potential target register.
13001 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
13002 Richard Henderson <rth@redhat.com>
13004 * dbxout.c (dbxout_global_decl): New.
13005 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13006 * sdbout.c (sdbout_finish): New.
13007 (sdbout_debug_hooks): Use it, add comments.
13008 (sdbout_global_decl): Defer initialised public vars to
13010 * varasm.c (assemble_variable): Don't output debug information
13011 for file-scope variables.
13013 2001-07-21 H.J. Lu (hjl@gnu.org)
13015 * config/mips/mips.c (mips_cpu): Moved into ...
13016 (override_options): Here.
13018 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
13020 (mips_cpu): Removed.
13022 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13024 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
13025 ("iorqi3"): Likewise.
13026 ("xorqi3"): Likewise.
13027 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
13028 ("*subhi3_sp): Likewise.
13029 ("*subhi3"): Likewise.
13030 ("extendhisi2"): Accept D, X and Y as source operand to avoid
13033 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
13035 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
13036 * config/freebsd.h: Likewise.
13037 * config/linux.h: Likewise.
13038 * config/openbsd.h: Likewise.
13039 * config/alpha/linux-elf.h: Likewise.
13040 * config/arm/linux-elf.h: Likewise.
13041 * config/d30v/d30v.h: Likewise.
13042 * config/fr30/fr30.h: Likewise.
13043 * config/ia64/aix.h: Likewise.
13044 * config/ia64/ia64.h: Likewise.
13045 * config/mips/linux.h: Likewise.
13046 * config/pj/pj.h: Likewise.
13047 * config/rs6000/linux.h: Likewise.
13048 * config/sparc/linux.h: Likewise.
13049 * config/sparc/linux64.h: Likewise.
13051 2001-07-20 Bruce Korb <bkorb@gnu.org>
13053 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13054 because getc() and char* may disagree on signedness.
13056 2001-07-20 Richard Henderson <rth@redhat.com>
13058 * doc/rtl.texi (REG_DEAD): Update for current semantics.
13060 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13061 insns to delete in the presence of cc0 in a jump insn.
13063 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
13064 Jan Hubicka <jh@suse.cz>
13066 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13067 of doing the change by hand.
13069 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
13071 * rtlanal.c (set_noop_p): Return true for noop jumps.
13073 * expr.c (emit_single_push_insn): Add call to push expander.
13074 * expr.h (optab_index): Add OTI_push
13075 (push_optab): New constant.
13076 * genopinit.c (optabs): Add push_optab.
13077 * optabs.c (init_optab): Init push optab.
13078 * md.texi (push??1): Document
13080 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13082 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13083 expand to emit the pattern; put a REG_INC note for push/pop
13085 ("movdf", "movdf_internal"): Likewise.
13086 ("movsi", "movsi_internal"): Likewise.
13087 ("movsf", "movsf_internal"): Likewise.
13088 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13090 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13092 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13095 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
13097 * params.def: Change default max inline insns to 100.
13099 2001-07-20 Diego Novillo <dnovillo@redhat.com>
13101 * combine.c (combine_simplify_rtx): Generate a new shift operation
13102 when simplifying the first operand of a (neg (ashift)) expression.
13104 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
13106 * regclass.c (N_REG_INTS): Use only 32 bits per element.
13108 2001-07-20 Kelley Cook <kelley.cook@home.com>
13110 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13111 information. Move rest into ...
13112 (*-*-solaris): ... here. Eliminate redundant information and
13113 reword necessary packages section. Delete 4.x assembler bug info.
13114 (sparc-sun-*): Merge into ...
13115 (sparc-sun-sunos*): here.
13117 2001-07-20 Catherine Moore <clm@redhat.com>
13119 * config/v850/v850.md (casesi): Generate LABEL_REF
13122 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
13124 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13125 * i386.c (ix86_zero_extend_to_Pmode): Make global.
13126 * i386.md (strclrsi expander): Use it.
13128 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13130 * integrate.c (copy_insn_list): handle
13131 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13132 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13133 identically as to CODE_LABEL.
13135 * fold-const (fold): Convert A/B/C to A/(B*C) and
13138 * except.c (connect_post_landing_pads): Delete the RESX insns.
13140 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
13142 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13144 * config/mips/mips.md (nmadd/nmsub): Use macro.
13146 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
13148 * cppinit.c (remove_dup_dir): Make static.
13149 (remove_dup_dirs): Make static. Only warn about preempting a
13150 system directory with a non-system directory.
13152 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
13154 * ifcvt.c (noce_try_store_flag_constants): Correct order
13155 of parameters to trunc_int_for_mode.
13157 2001-07-19 Mark Mitchell <mark@codesourcery.com>
13159 * reorg.c (fill_simple_delay_slots): If an instruction might throw
13160 an exception that will be caught within this function, do not fill
13161 its delay slot with any subsequent instruction.
13163 2001-07-19 Steve Ellcey <sje@cup.hp.com>
13165 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13166 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13167 pointer extension instruction.
13168 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13169 * simplify-rtx.c (simplify_unary_operation) Likewise.
13170 * explow.c (convert_memory_address) Check value of
13171 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13173 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13174 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13175 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13176 Add Multilib Support.
13177 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
13178 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13179 Add Multilib Support.
13180 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13182 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13183 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13184 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13186 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
13188 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13189 old and new operands in `<', `3' and `b'.
13191 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13193 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13194 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13195 (toplev.o): Don't depend on xcoffout.h.
13196 * c-decl.c: Include debug.h
13197 (duplicate_decls): Use debug hook.
13198 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13199 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13200 (dbxout_types): Remove.
13201 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13202 * debug.c (do_nothing_debug_hooks): Update.
13203 (debug_true_tree, debug_nothing_rtx): New.
13204 * debug.h (struct rtx_def): New.
13205 (struct gcc_debug_hooks): New hooks ignore_block,
13206 outlining_inline_function and label.
13207 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13208 dwarf2out_frame_finish): New.
13209 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13210 Make static, update prototype.
13211 (dwarf2_debug_hooks): Update.
13212 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13213 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13214 * dwarfout.c (dwarf_debug_hooks): Update.
13215 * emit-rtl.c: Include debug.h.
13216 (remove_unnecessary_notes): Use debug hook.
13217 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13218 (final_scan_insn): Use debug hook.
13219 * integrate.c (output_inline_function): Use debug hook.
13220 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13221 (sdb_debug_hooks): Update.
13222 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13223 * toplev.c: Don't include xcoffout.h.
13224 (note_outlining_of_inline_function, debug_ignore_block): Remove.
13225 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13227 * tree.h (dwarf2out_do_frame): Remove.
13229 2001-07-19 Catherine Moore <clm@cygnus.com>
13231 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13233 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
13235 * reload1.c (eliminate_regs_in_insn): When updating a set
13236 to the frame pointer to the hardware frame pointer, perform
13237 the update always not just when REPLACE is set.
13239 * reload1.c (choose_reload_regs): Don't inherit a reload
13240 that crosses multiple registers if registers past the first
13241 don't fit in the desired class.
13243 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13244 when negating constants.
13246 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
13248 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13249 * doc/tree.texi: Ditto.
13251 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
13252 Jakub Jelinek <jakub@redhat.com>
13254 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13255 (extract_cie_info): Handle "eh" augmentation properly,
13257 (struct frame_state, __frame_state_for): New.
13259 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13261 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13262 HANDLE_SYSV_PRAGMA): Define.
13263 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13265 (copy_object): Caller changed.
13267 2001-07-19 Andreas Schwab <schwab@suse.de>
13269 * configure.in (assembler dwarf2 debug_line support): Define nop
13271 * configure: Regenerated.
13273 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13275 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13277 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13278 to conditionally compiled block.
13279 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13280 * dbxout.h (dbxout_function): Remove.
13281 * debug.c (do_nothing_debug_hooks): Update.
13282 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13283 global_decl, deferred_inline_function.
13284 * dwarf2out.c (dwarf2_debug_hooks): Update.
13285 (dwarf2out_global_decl): New.
13286 * dwarfout.c: Don't include dwarfout.h.
13287 (dwarfout_global_decl, dwarfout_function_decl,
13288 dwarfout_deferred_inline_function): New.
13289 (dwarf_debug_hooks): Update.
13290 * dwarfout.h: Remove.
13291 * final.c: Don't include dwarfout.h.
13292 * sdbout.c (sdbout_global_decl): New.
13293 (sdbout_debug_hooks): Update.
13294 * toplev.c: Don't include dwarfout.h.
13295 (check_global_declarations, rest_of_compilation): Use new debug hooks.
13296 (note_deferral_of_defined_inline_function): Remove.
13297 * toplev.h (note_deferral_of_defined_inline_function): Remove.
13298 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13299 * ch/lex.c: Don't include dwarfout.h.
13300 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13301 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13302 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13303 * cp/optimize.c: Include debug.h.
13304 (maybe_clone_body): Use debug hook.
13305 * cp/semantics.c: Include debug.h.
13306 (expand_body): Use debug hook.
13307 * po/POTFILES.in: Remove dwarfout.h.
13309 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13311 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13312 * c-parse.in (yyerror, _yylex): Similarly.
13313 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13314 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13316 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13317 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13319 2001-07-18 Jeff Sturm <jsturm@one-point.com>
13321 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13322 in-class declaration at -g1. Fixes c++/2814.
13324 2001-07-18 Richard Henderson <rth@redhat.com>
13326 * doc/md.texi (reload_in/out): Document restrictions in predicates
13327 and constraints for these patterns. Document empty string matching
13330 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13332 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13334 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
13336 * cse.c: Undo my previous patch.
13338 2001-07-18 Tom Tromey <tromey@redhat.com>
13341 * configure: Rebuilt.
13342 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13344 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13346 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
13347 Jan Hubicka <jh@suse.cz>
13349 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13350 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13351 * jump.c (mark_jump_label): Do not forward branches.
13353 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
13355 * cse.c (delete_trivially_dead_insns): Delete the libcall block
13356 when return value is unused.
13358 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13360 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13362 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
13364 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13365 on error. We can't blindly return the result of
13366 pthread_mutex_trylock because it returns a positive number on
13367 error, while we must return -1 on error.
13368 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13370 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13372 2001-07-18 Andreas Jaeger <aj@suse.de>
13374 * integrate.c (output_inline_function): Correct type of debug_hooks.
13376 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
13378 * combine.c (combine_simplify_rtx): DIV can be treated
13379 associatively for floats if unsafe math optimisations are enabled.
13381 2001-07-17 Richard Henderson <rth@redhat.com>
13383 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13385 2001-07-17 Richard Henderson <rth@redhat.com>
13387 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
13388 don't force the function address into a register.
13389 (expand_call, emit_library_call_value_1): Update callers.
13390 * builtins.c (expand_builtin_apply): Likewise.
13391 * expr.h (prepare_call_address): Update decl.
13393 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
13395 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13397 * config/i386/chorus.h: Move up.
13398 * config/sparc/chorus.h: Likewise.
13399 * config/rs6000/chorus.h: Likewise.
13400 * config/chorus.h: Moved here.
13402 2001-07-17 Andreas Schwab <schwab@suse.de>
13404 * configure.in (assembler eh_frame optimization): Handle big
13406 * configure: Regenerated.
13408 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
13410 * expr.c (epxand_expr): Convert divisions into multiplications by
13411 reciprocals if -ffast-math.
13413 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
13415 * dbxout.c (dbxout_really_begin_function): Rename to
13416 dbxout_begin_function.
13417 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13418 (dbxout_begin_function): Remove.
13419 (dbxout_function): Update.
13420 (dbxout_source_line): Update prototype.
13421 * dbxout.h (dbxout_begin_function): Remove.
13422 * debug.c (do_nothing_debug_hooks): Update.
13423 (debug_nothing_tree): Update.
13424 (debug_nothing_charstar_rtx): Remove.
13425 * debug.h (union tree_node): Declare.
13426 (struct rtx_def): Remove.
13427 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13428 begin_function. Change source_line prototype.
13429 (debug_nothing_tree): New.
13430 (debug_nothing_charstar_rtx): Delete.
13431 (dwarf2out_begin_prologue): Moved from ...
13432 * tree.h: ... here.
13433 * dwarf2out.c (dwarf2_debug_hooks): Update.
13434 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
13435 debug info, call dwarf2out_source_line.
13436 (dwarf2out_souce_line): Update prototype.
13437 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13438 Change prototype, make static.
13439 (dwarfout_source_line): Update prototype.
13440 (dwarf_debug_hooks): Update.
13441 * dwarfout.h (dwarfout_begin_function): Remove.
13442 * final.c (final_start_function, final_scan_insn): Use appropriate
13443 debug hooks, update to use notice_source_line.
13444 (output_source_line): Rename notice_source_line. Don't call the
13445 source_line debug hook.
13446 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13447 make static, update prototype.
13448 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13450 (sdbout_end_prologue): New.
13451 (sdbout_source_line): Update prototype.
13452 (sdbout_debug_hooks): Update.
13453 (sdbout_symbol): Remove unused var.
13454 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13456 * varasm.c: Include debug.h.
13457 (assemble_start_function): Use begin_function debug_hook.
13458 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13459 update with prototype.
13460 (xcoffout_source_line): Update prototype.
13461 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13463 (xcoffout_source_line): Update prototype.
13465 2001-07-17 Richard Henderson <rth@redhat.com>
13467 * c-typeck.c (build_binary_op): Do not shorten unsigned
13468 right shift after sign extension.
13470 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
13472 * combine.c (combine_simplify_rtx): Attempt to simplify
13473 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13475 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13476 (simplify_binary_operation, simplify_unary_operation,
13477 simplify_relational_operation): Use it.
13479 * combine.c (combine_simplify_rtx): Don't do associative law
13480 on divisions; allow associative law on floats.
13482 2001-07-17 H.J. Lu <hjl@gnu.org>
13483 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13485 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13486 ASM_OUTPUT_WEAK_ALIAS are defined.
13487 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13488 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13490 * config/mips/iris5.h: ... here.
13491 (HANDLE_SYSV_PRAGMA): Defined as 1.
13492 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13493 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13496 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
13498 * c-parse.in (all_prefix_attributes): New variable.
13499 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13500 (maybe_resetattrs): New production.
13501 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13502 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13503 notype_initdcl, nested_function, notype_nested_function,
13504 component_decl, components, components_notype,
13505 component_declarator, component_notype_declarator,
13506 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
13507 ivars, mydecl, myparm): Update. Avoid prefix attributes just
13508 after a comma being applied to more than one declarator.
13509 * doc/extend.texi (Attribute Syntax): Update. Remove
13510 documentation of bugs that are no longer present.
13512 2001-07-13 Eric Christopher <echristo@redhat.com>
13514 * config/mips/mips.h: Change TUNE_MIPS* options to use
13516 (EXTRA_SPECS): Add cc1_cpu_spec.
13517 * config/mips/mips.md (muldf3): Fix typo.
13519 2001-07-16 Richard Henderson <rth@redhat.com>
13521 * config/m68k/m68k.c: Include expr.h and reload.h.
13522 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
13523 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
13525 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
13526 Richard Henderson <rth@redhat.com>
13528 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
13529 (insn_live_p): Fix fall off end of function.
13530 (dead_libcall_p): Remove COUNTS argument; update callers.
13531 (delete_trivially_dead_insns): Remove unused variables.
13533 2001-07-17 Andreas Jaeger <aj@suse.de>
13535 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
13536 x86-64 pic support.
13538 * lcm.c (optimize_mode_switching): Avoid warning for unused
13539 variable if !NORMAL_MODE.
13541 * flow.c (try_crossjump_to_edge): Remove unused variable.
13543 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13545 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
13546 atexit declaration in stdlib.h.
13548 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
13550 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
13552 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
13554 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
13555 * except.c (finish_eh_generation): Update call of cleanup_cfg;
13556 do rebuild_jump_labels instead of jump_optimize
13557 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
13558 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
13559 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
13561 * flow.c: Include timevar.h
13562 (find_basic_block): Push/pop timevar;
13563 (cleanup_cfg): Likewise.
13564 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
13565 * Makefile: Add dependencies on timevar.h
13567 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
13568 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
13570 * rtl.h (delete_trivially_dead_insns): Add new parameter.
13571 * toplev.c (rest_of_compilation): Update calls.
13572 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
13573 (delete_trivially_dead_insns): ... here; accept new argument
13574 preserve_basic_blocks; preserve basic blocks if set.
13576 * reg-stack.c (stack_regs_mentioned): Return 0 if
13577 stack_regs_mentioned_data is not initialized.
13578 (reg_to_stack): Make stack_regs_mentioned survive after the
13579 reg-stack is completted; do not call cleanup_cfg.
13580 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
13581 make cleanup_cfg after bb-reorder to output to debug file.
13583 2001-07-16 Richard Henderson <rth@redhat.com>
13585 * regclass.c (init_reg_sets): Use only 32 bits per initializer
13586 from int_reg_class_contents.
13588 2001-07-16 Richard Henderson <rth@redhat.com>
13590 * hard-reg-set.h (regs_invalidated_by_call): Declare.
13591 * regclass.c (regs_invalidated_by_call): Move from cse.c.
13592 (init_reg_sets_1): Move initialization from cse_main.
13593 * cse.c (regs_invalidated_by_call): Move to regclass.c.
13594 (cse_main): Move its initialization also.
13595 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13596 * flow.c (propagate_one_insn): Likewise.
13597 * gcse.c (compute_hash_table): Likewise.
13598 (compute_kill_rd, compute_store_table): Likewise.
13599 * sched-deps.c (sched_analyze_1): Likewise.
13601 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
13603 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13606 2001-07-16 Steve Ellcey <sje@cup.hp.com>
13608 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13609 in if statement so we don't access undefined memory.
13611 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
13613 * gcse.c: Update comment at top.
13614 Update comment on mem handling.
13615 mem_last_set, mem_first_set, mem_set_in_block: gone.
13616 Declaration of reg_set_info: gone.
13617 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13618 pointless with load_killed_in_block_p (they are *more*
13619 conservative then it, not less, and less accurate).
13620 (oprs_not_set_p): Ditto.
13621 (alloc_gcse_mem): Don't allocate mem_set_in_block
13622 (free_gcse_mem): Don't free it, either.
13623 (record_last_mem_set_info): Update comment in front, remove
13624 mem_*set_* stuff. Note the reason we don't handle stores directly
13626 (compute_hash_table): Update comments to reflect reality. Remove
13627 mem_*set_* references.
13628 (reset_opr_set_tables): Remove mem_*set_* references.
13629 (mark_call): Ditto.
13630 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
13631 (mark_clobber): Ditto (on both parts, we double set here too).
13632 (expr_killed_p): Remove mem_set_in_block test.
13633 (compute_transp): Remove mem_set_in_block test.
13635 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13636 of edge, and removal of phi alternative to dump file.
13637 (ssa_ccp_substitute_constants): Add note about register now being
13638 constant, and which uses were replaced in what insns to dump file.
13640 2001-07-16 Andreas Jaeger <aj@suse.de>
13642 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13643 variables of type HOST_WIDEST_INT.
13645 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13646 (__bb_exit_func): Correct type of count_max to avoid overflow.
13647 (num_digits): Handle long long argument.
13649 * combine.c (gen_lowpart_for_combine): Remove unused variable.
13651 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13653 * output.h (sdb_begin_function_line): Restore as an extern
13655 * sdbout.c (sdb_begin_function_line): Make extern.
13657 2001-07-15 Richard Henderson <rth@redhat.com>
13659 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13660 * genrecog.c (maybe_both_true_mode): New.
13661 (maybe_both_true_2): Use it.
13662 (write_switch): Don't put Pmode in a switch.
13663 * rtl.c (mode arrays): Don't explicitly size them.
13665 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
13667 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13668 handling; move unconditional splitting before mode switching.
13670 * i386.md (type): Add fistp type.
13671 (i387, length_attr, scheduling definitions): Handle this type.
13672 (fix_trunc?f?i2): Revamp to use mode switching.
13673 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13674 * i386.h (fp_cw_mode): New enum
13675 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13676 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13678 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13680 * Makefile.in (integrate.o): Add debug.h.
13681 * integrate.c (debug.h): Add.
13682 (output_inline_function): Save, reset, and restore debug_hooks.
13684 2001-07-15 Richard Henderson <rth@redhat.com>
13686 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13687 instead of COMPARE for the EQUIV expression.
13689 2001-07-15 Richard Henderson <rth@redhat.com>
13691 * flow.c (redirect_edge_and_branch_force): Initialize
13692 global_live_at_start and global_live_at_end.
13693 (allocate_bb_life_data): Export.
13694 * basic-block.h (allocate_bb_life_data): Declare.
13695 * toplev.c (rest_of_compilation): Call it.
13697 2001-07-15 Richard Henderson <rth@redhat.com>
13699 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13700 (alpha_tablejump_best_label): New.
13701 * config/alpha/alpha-protos.h: Declare them.
13702 * config/alpha/alpha.md: Use braced strings for code blocks.
13703 (tablejump_osf): Break out add with r29.
13704 (tablejump_osf_internal): Remove.
13705 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13706 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13708 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
13710 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13713 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13715 * i386-protos.h (ix86_split_fp_branch): Update prototype.
13716 (ix86_fp_jump_nontrivial_p): New.
13717 * i386.md (fp_jcc_?): Update call of split_fp_branch;
13718 use ix86_fp_jump_nontrivial_p.
13719 * i386.c (ix86_fp_jump_nontrivial_p): New.
13720 (ix86_split_fp_branch): Accept code instead of rtx.
13721 (ix86_expand_compare): Expand comparison early in case
13722 doing so is resonably cheap.
13724 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
13726 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13728 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13729 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13731 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
13733 * dbxout.c (dbxout_source_line): Make static, update prototype.
13734 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13735 (dbxout_init, dbxout_finish, dbxout_source_line,
13736 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13737 * dbxout.h (dbxout_source_line): Delete.
13738 * debug.c (debug_nothing_file, debug_nothing_file_int,
13739 debug_nothing_file_charstar_rtx): New.
13740 (do_nothing_debug_hooks): Update.
13741 (debug_nothing_void, debug_nothing_charstar_rtx,
13742 dwarf2out_end_epilogue): New.
13743 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13744 * debug.h (struct rtx_def): Declare.
13745 (gcc_debug_hooks): New hooks source_line, end_epilogue
13747 (debug_nothing_void, debug_nothing_charstar_rtx,
13748 dwarf2out_end_epilogue): New.
13749 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13750 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13751 (dwarf2_debug_hooks): Update.
13752 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13753 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13754 * dwarf2out.h (dwarf2out_source_line): Remove.
13755 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13756 Make static, update prototype.
13757 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13758 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13759 (dwarf_debug_hooks): Update.
13760 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13761 dwarfout_end_function): Remove.
13762 * final.c (profile_function): Use debug hooks for ending functions
13764 (output_source_line, final_end_function): Update prototype,
13766 (final_start_function, final_scan_insn): Update.
13767 * output.h (sdb_begin_function_line): Remove.
13768 (final_end_function): Update prototype.
13769 * sdbout.c (sdb_begin_function_line): Make static.
13770 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13771 (sdbout_source_line): New.
13772 (sdbout_end_epilogue, sdbout_end_function): Make static, update
13774 (sdb_debug_hooks): Update.
13775 (sdbout_init, sdbout_source_line,
13776 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13777 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13778 * toplev.c (compile_file, rest_of_compilation): Update.
13779 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13780 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13781 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13782 Update for prototype changes.
13783 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13784 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13786 2001-07-15 Richard Henderson <rth@redhat.com>
13788 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13789 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13790 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13791 * config/alpha/alpha.c: Likewise.
13792 * config/alpha/alpha.md: Likewise.
13793 * config/alpha/alpha32.h: Likewise.
13794 * config/alpha/vms.h: Likewise.
13795 (OPEN_VMS): Remove.
13797 2001-07-14 Richard Henderson <rth@redhat.com>
13799 * config/alpha/alpha.md: Use define_constants for unspec values.
13800 Substitute throughout.
13802 2001-07-14 Tim Josling <tej@melbpc.org.au>
13804 * tree.def (EXPON_EXPR) remove. Never supported anyway.
13806 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
13808 * pa.md: Remove unused constraints from define_split's.
13810 2001-04-14 Richard Henderson <rth@redhat.com>
13812 * ifcvt.c (find_cond_trap): Test for exit block.
13814 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
13816 Re-install recently reverted patch.
13817 * emit-rtl.c (try_split): Update mark_jump_label call.
13818 * flow.c (find_sub_basic_blocks): Likewise.
13819 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13820 jump_back_p): Kill.
13821 (mark_all_labels): Kill second parameter.
13822 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13823 (rebuild_jump_labels, jump_optimize_minimal): Update call
13824 of jump_optimize_1.
13825 (jump_optimize_1): Kill crossjumping code.
13826 (mark_jump_label): Kill cross_jump parameter.
13827 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13828 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13829 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13831 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13833 (dump_file_info): Likewise.
13834 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13835 reorganize passes to do reg-stack first, bb-reorder second.
13836 * invoke.texi (-d letters doc): Remove the jump2 pass.
13838 2001-07-14 Richard Henderson <rth@redhat.com>
13840 * ifcvt.c (find_cond_trap): New.
13841 (find_if_header): Call it.
13842 (merge_if_block): Relax existing jump sanity check.
13843 * jump.c (jump_optimize_1): Remove conditional trap handling.
13845 2001-07-14 Alan Modra <amodra@bigpond.net.au>
13847 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13849 (insn_refs_are_delayed): Correct comment.
13850 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13851 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13852 instead of r31. Make associated insn !TARGET_64BIT, and
13853 provide an additional 64-bit insn that clobbers r2.
13854 (divsi3): Likewise.
13855 (udivsi3): Likewise.
13856 (modsi3): Likewise.
13857 (umodsi3): Likewise.
13859 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
13861 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13863 * flow.c (redirect_edge_and_branch_force, split_edge,
13864 try_crossjump_to_edge): Use set_block_for_new_insns.
13865 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13867 2001-07-13 H.J. Lu (hjl@gnu.org)
13869 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13872 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
13874 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13876 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
13878 * c-common.c (decl_attributes): Take a pointer to the node to
13879 which attributes are to be attached, and a flags argument.
13880 * c-common.h (enum attribute_flags): New.
13881 (decl_attributes): Update prototype.
13882 * c-decl.c (start_decl, push_parm_decl, finish_struct,
13883 finish_enum, start_function): Update calls to decl_attributes.
13884 * c-parse.in (component_declarator, component_notype_declarator,
13885 label): Update calls to decl_attributes.
13887 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
13889 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13890 * config/avr/avr.c (legitimate_address_p): Return value changed
13891 from letter to register classes. For better debugging.
13893 2001-07-13 Kazu Hirata <kazu@hxi.com>
13895 * jump.c (reversed_comparison_code_parts): Fix comment typos.
13897 2001-07-13 H.J. Lu (hjl@gnu.org)
13899 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13901 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
13903 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
13904 correctly for shared configurations.
13905 * config/t-libgcc-pic: New.
13906 * config/{i386,m68k,sparc}/t-openbsd: New.
13907 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
13908 Support -shared. Support debugging libraries with -g.
13909 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
13910 frame information does not emit pointer diffs.
13911 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
13912 emit pointer diffs.
13914 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
13916 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13918 2001-07-13 David Edelsohn <edelsohn@gnu.org>
13920 * combine.c (try_combine): Ensure const_int pow2 is positive.
13922 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
13924 * config.gcc: Add configuration for s/390.
13925 * config/s390/s390.c: New. Subroutines for code generation.
13926 * config/s390/s390.h: New. Definitions for s/390.
13927 * config/s390/s390-protos.h: New. Prototypes.
13928 * config/s390/linux.h: New. Definitions for linux for s/390.
13929 * config/s390/linux64.h: New. Definitions for linux for zSeries.
13930 * config/s390/t-linux: New. Makefile fragment.
13931 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13932 * config/s390/fixdfdi.h: New. Fix L_fix*di.
13934 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
13936 * emit-rtl.c (try_split): Update mark_jump_label call.
13937 * flow.c (find_sub_basic_blocks): Likewise.
13938 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13939 jump_back_p): Kill.
13940 (mark_all_labels): Kill second parameter.
13941 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13942 (rebuild_jump_labels, jump_optimize_minimal): Update call
13943 of jump_optimize_1.
13944 (jump_optimize_1): Kill crossjumping code.
13945 (mark_jump_label): Kill cross_jump parameter.
13946 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13947 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13948 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13950 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13952 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13953 reorganize passes to do reg-stack first, bb-reorder second.
13954 * invoke.texi (-d letters doc): Remove the jump2 pass.
13956 2001-07-12 Steve Ellcey <sje@cup.hp.com>
13958 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13960 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13962 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13964 (verify_flow_info): Make diagnostics prettier.
13966 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
13968 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13970 * flow.c (outgoing_edges_match): Return early if condition reversal
13973 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
13975 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13976 (mips_move_2words): When splitting a move into two instructions,
13977 prefix the second address operand with '%D'.
13979 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
13981 * Makefile.in (final.o): Depend on debug.h.
13982 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13983 (dbx_debug_hooks): Add new hooks.
13984 (xcoff_debug_hooks): New.
13985 * debug.c (debug_nothing_file_int_int): New.
13986 (do_nothing_debug_hooks): Update.
13987 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13988 (debug_nothing_file_int_int): New.
13989 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13990 static, update prototype.
13991 (dwarf2_debug_hooks): Update.
13992 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13993 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13994 static, update prototype.
13995 (dwarf_debug_hooks): Update.
13996 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13997 * final.c: Include debug.h.
13998 (final_scan_insn): Use debug hooks when beginning and ending blocks.
13999 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
14000 static, update prototype.
14001 (sdb_debug_hooks): Update.
14002 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
14003 * toplev.c: Distinguish between xcoff and dbx.
14005 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
14006 Call all debug hooks, not just dwarf ones.
14008 2001-07-11 Timothy Wall <twall@redhat.com>
14010 * config.gcc: Add configuration for AIX5/IA64.
14011 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
14012 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
14013 support prefix/suffix code.
14014 * config/ia64/t-aix: New. Makefile fragment.
14015 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
14017 2001-07-11 Kazu Hirata <kazu@hxi.com>
14019 * recog.c (validate_change): Fix a comment typo.
14021 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
14023 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
14024 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
14026 * dbxout.c (dbx_debug_hooks): Add new hooks.
14027 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
14029 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
14031 * dbxout.h (dbxout_start_new_source_file,
14032 dbxout_resume_previous_source_file): Delete.
14033 * debug.c (do_nothing_debug_hooks): Add new hooks.
14034 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14035 (debug_nothing_int_charstar, debug_nothing_int): New.
14036 * debug.h (gcc_debug_hooks): New hooks define, undef,
14037 start_source_file and end_source_file.
14038 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14039 (debug_nothing_int_charstar, debug_nothing_int): New.
14040 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
14041 the conditionally compiled section.
14042 (dwarf2out_start_source_file, dwarf2out_end_source_file,
14043 dwarf2out_define, dwarf2out_undef): Make static.
14044 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
14045 dwarf2out_define, dwarf2out_undef): Remove.
14046 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
14047 (dwarfout_start_source_file, dwarfout_end_source_file,
14048 dwarfout_define, dwarfout_undef): Make static.
14049 (dwarfout_start_source_file_check,
14050 dwarfout_end_source_file_check): New.
14051 (dwarfout_define, dwarfout_finish): Update.
14052 * dwarfout.h (dwarfout_start_new_source_file,
14053 dwarfout_resume_previous_source_file, dwarfout_define,
14054 dwarfout_undef): Remove.
14055 * sdbout.c (sdb_debug_hooks): Add new hooks.
14056 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14058 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14059 make static, take an arg.
14060 * sdbout.h (sdbout_start_new_source_file,
14061 sdbout_resume_previous_source_file): Delete.
14062 * toplev.c (debug_start_source_file, debug_end_source_file,
14063 debug_define, debug_undef): Delete.
14064 * toplev.h (debug_start_source_file, debug_end_source_file,
14065 debug_define, debug_undef): Delete.
14067 * java/jcf-parse.c: Include debug.h.
14068 (parse_class_file): Update to use debug hooks directly.
14069 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14071 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14073 * alias.c (set_mem_alias_set): New function.
14074 * rtl.h (set_mem_alias_set): Declare it.
14075 * builtins.c (expand_builtin_return_addr): Call it instead of
14076 using MEM_ALIAS_SET accessor.
14077 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14078 (get_memory_rtx, expand_builtin_va_arg): Likewise.
14079 (expand_builtin_va_copy):Likewise.
14080 * caller-save.c (setup_save_areas): Likewise.
14081 * calls.c (compute_argument_addresses): Likewise.
14082 * explow.c (set_mem_attributes): Likewise.
14083 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14084 (expand_assignment, store_constructor_field, store_field): Likewise.
14085 (expand_expr_unaligned): Likewise.
14086 * function.c (assign_stack_temp_for_type): Likewise.
14087 (put_reg_into_stack, gen_mem_addressof): Likewise.
14088 * ifcvt.c (noce_try_cmove_arith): Likewise.
14089 * reload1.c (reload, alter_reg): Likewise.
14090 * config/alpha/alpha.c (get_aligned_mem): Likewise.
14091 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14092 (alpha_expand_unaligned_store): Likewise
14093 (alpha_expand_unaligned_load_words): Likewise.
14094 (alpha_expand_unaligned_store_words): Likewise.
14095 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14096 (alpha_expand_epilogue): Likewise.
14097 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14098 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14099 * config/i386/i386.c (legitimize_pic_address): Likewise.
14100 * config/i960/i960.c (setup_incoming_varargs): Likewise.
14101 * config/ia64/ia64.c (spill_restore_mem): Likewise.
14102 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14103 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14104 * config/mips/mips.c (mips_va_arg): Likewise.
14105 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14106 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14107 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14108 (setup_incoming_varargs, rs6000_va_arg): Likewise.
14109 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14110 (rs6000_emit_epilogue): Likewise.
14111 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14112 * config/sparc/sparc.c (sparc_va_arg): Likewise.
14113 * config/v850/v850.c (v850_va_arg): Likewise.
14115 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
14117 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14118 when fallthru edge is present.
14119 (mege_blocks): Handle case where creation of jump insn
14122 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14123 CLEANUP_POST_REGSTACK): New constants.
14124 * except.c (finish_eh_generation): Update call of cleanup_cfg,
14125 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14126 * output.h (cleanup_cfg): Update prototype.
14127 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14128 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14129 cleanup_cfg call; kill missleading comment.
14130 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14131 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14132 parameter; control optimizations performed using it.
14133 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14134 try_crossjump_bb): New functions.
14136 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14138 * pa.c (pa_output_function_prologue): Delete prototype. Make function
14140 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14141 pa_output_function_prologue.
14142 * pa-protos.h (pa_output_function_prologue): New prototype.
14144 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14146 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14147 and low to get correct sign extension in low+high test.
14149 2001-07-11 Janis Johnson <janis@us.ibm.com>
14151 * gcov.c (arcdata): Use gcov_type to fix branch percentage
14152 for large hit count.
14154 * profile.c (branch_prob): Fix .bbg info for computed gotos
14157 2001-07-11 Mark Mitchell <mark@codesourcery.com>
14159 * stmt.c (parse_output_constraint): New function, split out
14161 (expand_asm_operands): ... here. Use parse_output_constraint.
14162 * tree.h (parse_output_constraint): Declare it.
14164 2001-07-11 Richard Henderson <rth@redhat.com>
14166 * bitmap.c: Comment some functions; fiddle whitespace.
14167 (bitmap_free): Don't export.
14168 (bitmap_element_allocate): Use memset.
14169 * bitmap.h (bitmap_free): Don't declare.
14171 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
14173 * gcse.c, lcm.c, sched-deps.c:
14174 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14176 * flow.c (flow_loops_find): Free dom if we found no loops, since
14177 we aren't going to save it.
14179 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14182 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
14184 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14186 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14188 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14189 #ifndef DWARF2_DEBUGGING_INFO.
14191 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14193 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14195 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14197 * config/mips/mips.c (gen_int_relational): Tell the caller not to
14198 reverse a branch if a NE comparison is implemented with GTU.
14200 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14201 H.J. Lu <hjl@gnu.org>
14203 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14204 constant addresses.
14205 (call_internal2): Likewise.
14206 (call_value_internal1): Likewise.
14207 (call_value_internal2): Likewise.
14208 (call_value_multiple_internal1): Likewise.
14209 (call_value_multiple_internal2): Likewise.
14211 2001-07-10 Kazu Hirata <kazu@hxi.com>
14213 * calls.c (emit_library_call_value_1): Fix a comment typo.
14214 * dwarf2out.c (mem_loc_descriptor): Likewise.
14215 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14217 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
14219 * simplify-rtx.c (simplify_subreg): Fix typo in comment
14221 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14223 * recog.c (offsettable_address_p): Handle LO_SUM case.
14224 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14225 instead of plus_constant.
14227 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14229 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14230 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14232 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14234 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14235 adjust_address_nv instead of plus_constant.
14237 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
14239 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14240 dwarf2out.o): Depend on debug.h, wrap long lines.
14241 * dbxout.c: Include debug.h.
14242 (dbx_debug_hooks): New.
14243 (dbxout_init): Make static, take just 2 args.
14244 (dbxout_finish): Make static.
14245 * dbxout.h (dbxout_init, dbxout_finish): Delete.
14246 * debug.c: New file.
14247 * debug.h: New file.
14248 * dwarf2out.c: Include debug.h.
14249 (dwarf2_debug_hooks): New.
14250 (dwarf2out_init): Make static.
14251 (dwarf2out_finish): Make static, take 2 args.
14252 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14253 * dwarfout.c: Include debug.h.
14254 (dwarf_debug_hooks): New.
14255 (dwarfout_init): Make static.
14256 (dwarfout_finish): Make static, take 2 args.
14257 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14258 * sdbout.c: Include debug.h.
14259 (sdb_debug_hooks): New.
14260 (sdbout_init): Make static, take 2 args.
14261 * sdbout.h (sdbout_init): Delete.
14262 * toplev.c: Include debug.h.
14263 (debug_hooks): New.
14264 (compile_file): Set deubg_hooks based on command line options.
14265 Use the hooks unconditionally rather than conditional compilation.
14267 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
14269 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
14270 first_insn_after_basic_block_note instead.
14272 * df.c (df_bb_refs_unlink): #if 0 out for now.
14274 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
14276 * ssa.h: Add prototype for ssa_const_prop
14277 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14278 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14279 (ssa_fast_dce): Remove unused variable
14281 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14283 * diagnostic.c (finish_diagnostic): Rename to
14284 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
14287 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
14289 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14292 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14293 (dump_file): Only pad the demangled name with spaces if the
14294 mangled name was padded with spaces.
14296 2001-07-10 Bernd Schmidt <bernds@redhat.com>
14298 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14301 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14303 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14304 extraction if no direct load if either EXPAND_CONST_ADDRESS or
14305 EXPAND_INITIALIZER.
14307 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14308 whether can put offset inside LO_SUM to check mode alignment, not size.
14310 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14312 * doc/tm.texi (Misc): Fix thinko.
14314 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
14316 * regmove.c (replace_in_call_usage): Fix warnings.
14317 * sched-deps.c (add_dependence): Fix warnings.
14318 * simplify-rtx.c (simplify_subreg): Likewise.
14319 Return NULL_RTX instead of NULL.
14321 * reg-stack.c (emit_swap_insn): Eliminate warnings.
14322 (subst_asm_stack_regs): Likewise.
14324 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14327 * dwarf2out.c (output_call_frame_info): Declare i as int.
14328 (build_abbrev_table): Declare n_alloc as int.
14329 (dwarf2out_finish): Initialize die.
14330 * except.c: Declare sjlj_funcdef_number as unsigned.
14331 (connect_post_landing_pads): Declare j as unsigned.
14332 (convert_to_eh_region_ranges): Initialize call_site.
14333 (output_function_exception_table): Initialize tt_format_size.
14334 * expr.c (move_by_pieces_1): Initialize to1.
14335 (store_constructor): Initialize minelt and maxelt.
14336 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14337 * function.c (instantiate_decls): Avoid signed/unsigned warning.
14339 * c-decl.c (combine_parm_decls): Unused, remove.
14340 * c-tree.h: Remove prototype for combine_parm_decls.
14342 * reload.c (push_reload): Fix warning.
14343 (regno_clobbered_p): Likewise.
14344 * reload1.c (replace_pseudos_in_call_usage): Likewise.
14345 (reload_combine): Likewise.
14347 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14348 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14350 * bitmap.c (bitmap_operation): Change user.
14351 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14353 2001-07-10 Eric Christopher <echristo@redhat.com>
14355 * config/mips/mips.c (override_options): Fix typo.
14357 2001-07-09 Stan Shebs <shebs@apple.com>
14359 * target.h (struct gcc_target): New fields init_builtins and
14361 * target-def.h (TARGET_INIT_BUILTINS): New macro.
14362 (TARGET_EXPAND_BUILTIN): New macro.
14363 (TARGET_INITIALIZER): Add them.
14364 * builtins.c: Include target.h.
14365 (expand_builtin): Use targetm.expand_builtin.
14366 (default_init_builtins): New function.
14367 (default_expand_builtin): New function.
14368 * expr.h (default_init_builtins): Declare.
14369 (default_expand_builtin): Declare.
14370 * c-common.c (c_common_nodes_and_builtins): Use
14371 targetm.init_builtins.
14372 * defaults.h (MD_INIT_BUILTINS): Remove.
14373 * Makefile.in (builtins.o): Depend on target.h.
14375 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14376 (TARGET_EXPAND_BUILTIN): Define.
14377 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14378 (MD_EXPAND_BUILTIN): Remove.
14380 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14381 (TARGET_EXPAND_BUILTIN): Define.
14382 (c4x_init_builtins): Make endlink arg a local.
14383 (c4x_print_operand): Fix typos in adjust_address usages.
14384 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14385 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14386 (MD_EXPAND_BUILTIN): Remove.
14388 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14389 (TARGET_EXPAND_BUILTIN): Define.
14390 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14391 (ix86_init_builtins): Call new function only if TARGET_MMX.
14392 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14393 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14394 (MD_EXPAND_BUILTIN): Remove.
14396 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14397 (TARGET_EXPAND_BUILTIN): Define.
14398 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14399 (MD_EXPAND_BUILTIN): Remove.
14401 * doc/tm.texi: Document these changes.
14403 2001-07-09 Diego Novillo <dnovillo@redhat.com>
14405 * basic-block.h (tree_node): Forward declare if needed.
14406 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14407 (BLOCK_HEAD_TREE): Define.
14408 (BLOCK_END_TREE): Define.
14409 (struct loops): Rename field 'tree' to 'tree_root'.
14410 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14412 (flow_loops_tree_build): Rename reference to field 'tree' to
14414 (flow_loops_level_compute): Ditto.
14415 * predict.c (estimate_bb_frequencies): Ditto.
14416 * tree.h (struct tree_common): Add field 'aux'.
14418 2001-07-09 Stan Shebs <shebs@apple.com>
14420 * config/darwin.c (darwin_encode_section_info): Don't mark any
14421 DECL_EXTERNAL node as defined.
14423 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14425 * pa.c (pa_init_machine_status, pa_mark_machine_status,
14426 pa_free_machine_status, hppa_init_pic_save): Delete.
14427 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
14428 (hppa_profile_hook): Use hppa_pic_save_rtx.
14429 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14430 hppa_init_pic_save): Delete.
14431 (hppa_pic_save_rtx): Declare.
14432 * pa.md (call, call_value, sibcall, sibcall_value,
14433 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14435 2001-07-09 Kazu Hirata <kazu@hxi.com>
14437 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14438 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14440 2001-07-09 Andreas Jaeger <aj@suse.de>
14442 * output.h: Add declaration of final_forward_branch_p.
14444 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14446 * varray.c: Include errors.h for internal_error and trim_filename
14449 * Makefile.in (varray.o): Add errors.h.
14451 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
14453 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14454 * optabs.c (have_add2_insn): Check whether the add insn chosen
14455 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
14456 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14458 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
14460 * Makefile.in (OBJS): Add ssa-ccp.o
14461 (ssa-ccp.o): Add dependencies.
14462 * toplev.c (DFI_ssa_ccp): New dump file enum.
14463 (dump_file): Add entry for dumping after SSA CCP.
14464 (flag_ssa_ccp): New flag variable.
14465 (f_options): Add -fssa-ccp.
14466 (rest_of_compilation): Run SSA CCP if requested.
14467 * timevar.def (TV_SSA_CCP): New timevar.
14468 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14469 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14470 Fix minor typo in SSA DCE documentation.
14471 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14472 Add documentation for new dump option. Renumber dump files
14475 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
14477 * emit-rtl.c (gen_highpart_mode): New.
14478 * rtl.h (gen_highpart_mode): Declare.
14479 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14480 operand can be VOIDmode constant.
14482 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
14484 * flow.c (redirect_edge_and_branch_force): New.
14485 (can_fallthru): Ensure that basic blocks are succeeding.
14486 (try_optimize_cfg): Do not delete basic block if it is the last one.
14488 * flow.c (try_redirect_by_replacing_jump): Do not remove
14489 jumps with side effects, unlink chain on fallthru edge;
14490 set block for new jump instruction; avoid basic block to
14491 over by line number note.
14493 * flow.c (try_simplify_condjump): Verify that the condjump
14494 is not always falling through.
14497 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14499 * flow.c (forwarder_block_p): Fix for fallthru blocks.
14500 (try_redirect_by_replacing_jump): Update properly the count
14501 and frequency information.
14503 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14505 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
14506 address that is a LO_SUM specially.
14507 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
14509 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
14511 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
14512 (operand_subword): Use them.
14513 (change_address_1): Renamed from change_address; new arg VALIDATE.
14514 * expr.h: Reflect above changes; change_address now macro.
14515 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
14517 * cselib.c (add_mem_for_addr): Likewise.
14518 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
14519 * regmove.c (try_apply_stack_adjustment): Likewise.
14520 * reload.c (push_reload, make_memloc): Likewise.
14521 * reload1.c (eliminate_regs): Likewise.
14522 * simplify-rtx.c (simplify_replace_rtx): Likewise.
14523 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
14525 * combine.c (make_extraction, simplify_shift_const): Likewise.
14526 (gen_lowpart_for_combine): Likewise.
14527 * cse.c (gen_lowpart_if_possible): Likewise.
14528 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
14529 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
14530 * optabs.c (gen_move_insn): Likewise.
14531 * reload1.c (alter_reg): Likewise.
14532 * simplify-rtx.c (simplify_subreg): Likewise.
14533 * stmt.c (expand_anon_union_decl): Likewise.
14534 * recog.c (validate_replace_rtx_1): Likewise.
14536 * Makefile.in (recog.o): Add $(EXPR_H).
14537 * explow.c (stabilize): Call replace_equiv_address.
14538 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14539 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
14541 2001-07-03 Andrew Haley <aph@redhat.com>
14543 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
14544 the mode of the memory location.
14546 2001-07-09 Bo Thorsen <bo@suse.co.uk>
14548 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
14550 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
14552 * final.c (output_addr_const): Use target opening and
14553 closing parentheses.
14554 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
14555 defaults, add to TARGET_ASM_OUT.
14556 * target.h (struct gcc_target): Add open_paren and close_paren.
14557 * doc/md.texi: Update.
14558 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
14559 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
14560 TARGET_ASM_CLOSE_PAREN.
14561 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14563 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14565 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
14566 * config/a29k/a29k.h: Similarly.
14567 * config/alpha/alpha.h: Similarly.
14568 * config/arc/arc.h: Similarly.
14569 * config/arm/aof.h: Similarly.
14570 * config/arm/aout.h: Similarly.
14571 * config/avr/avr.h: Similarly.
14572 * config/c4x/c4x.h: Similarly.
14573 * config/clipper/clipper.h: Similarly.
14574 * config/convex/convex.h: Similarly.
14575 * config/d30v/d30v.h: Similarly.
14576 * config/dsp16xx/dsp16xx.h: Similarly.
14577 * config/elxsi/elxsi.h: Similarly.
14578 * config/fr30/fr30.h: Similarly.
14579 * config/h8300/h8300.h: Similarly.
14580 * config/i370/i370.h: Similarly.
14581 * config/i386/i386.h: Similarly.
14582 * config/i860/i860.h: Similarly.
14583 * config/i960/i960.h: Similarly.
14584 * config/ia64/ia64.h: Similarly.
14585 * config/m32r/m32r.h: Similarly.
14586 * config/m68hc11/m68hc11.h: Similarly.
14587 * config/m68k/m68k.h: Similarly.
14588 * config/m88k/m88k.h: Similarly.
14589 * config/mcore/mcore.h: Similarly.
14590 * config/mips/mips.h: Similarly.
14591 * config/mn10200/mn10200.h: Similarly.
14592 * config/mn10300/mn10300.h: Similarly.
14593 * config/ns32k/ns32k.h: Similarly.
14594 * config/pa/pa.h: Similarly.
14595 * config/pdp11/pdp11.h: Similarly.
14596 * config/pj/pj.h: Similarly.
14597 * config/romp/romp.h: Similarly.
14598 * config/rs6000/rs6000.h: Similarly.
14599 * config/sh/sh.h: Similarly.
14600 * config/sparc/sparc.h: Similarly.
14601 * config/v850/v850.h: Similarly.
14602 * config/vax/vax.h: Similarly.
14603 * config/we32k/we32k.h: Similarly.
14605 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
14607 * doc/c-tree.texi: Document representation of attributes.
14609 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14611 * doc/tm.texi: Update some places for the rename of target to
14614 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14616 * target.h (struct gcc_target): Add insert_attributes.
14617 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14618 (TARGET_INITIALIZER): Update.
14619 * tree.c, tree.h (default_insert_attributes): New function.
14620 Update comments on other default functions to refer to targetm,
14622 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14623 TARGET_INSERT_ATTRIBUTES.
14624 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14625 * c-common.c (decl_attributes): Use targetm.insert_attributes.
14626 Don't use PRAGMA_INSERT_ATTRIBUTES.
14627 * Makefile.in (c-common.o): Depend on $(TARGET_H).
14628 * c-decl.c (start_decl, start_function): Don't call
14629 SET_DEFAULT_DECL_ATTRIBUTES.
14630 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14631 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14633 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14634 (c4x_check_attribute): Avoid modifying attribute list itself.
14635 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14637 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14638 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14640 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14641 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14643 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14644 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14646 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14647 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14648 Adjust parameters. Make static.
14650 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14652 * c-common.c (decl_attributes): Only take a single attributes
14654 * c-common.h (decl_attributes): Update prototype.
14655 * c-decl.c (start_decl, start_function): Only take a single
14656 attributes parameter. Update calls to decl_attributes.
14657 (finish_struct, finish_enum): Update calls to decl_attributes.
14658 (push_parm_decl): Expect unified list of attributes. Update call
14659 to decl_attributes.
14660 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14661 notype_nested_function, component_declarator,
14662 component_notype_declarator, label): Update calls to
14664 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14665 lists that are passed to push_parm_decl.
14666 * c-tree.h (start_function, start_decl): Update prototypes.
14667 * config/sh/sh-protos.h, config/sh/sh.c
14668 (sh_pragma_insert_attributes): Only take a single attributes
14670 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14671 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14672 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14673 build_module_descriptor, generate_static_references,
14674 generate_strings, build_selector_translation_table,
14675 generate_descriptor_table, generate_protocols,
14676 generate_ivars_list, generate_dispatch_table,
14677 generate_protocol_list, generate_category,
14678 generate_shared_structures, really_start_method, add_objc_decls,
14679 generate_classref_translation_entry): Update calls to start_decl
14680 and start_function.
14681 (build_tmp_function_decl, start_method_def): Unify attribute lists
14682 that are passed to push_parm_decl.
14684 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
14686 * final.c (no_asm_to_stream): New.
14687 (final_scan_insn): Use target structures for prologue ends
14688 and epilogue starts.
14689 * output.h (no_asm_to_stream): New.
14690 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14691 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14692 (TARGET_ASM_OUT): Update.
14693 * target.h (struct gcc_target): New members function_end_prologue
14694 and function_begin_epilogue.
14695 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14696 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14697 * config/alpha/alpha.c (output_end_prologue): Rename to
14698 alpha_output_function_end_prologue. Use in target struct
14700 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14701 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14702 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14703 ia64_output_function_end_prologue. Use in target struct
14705 (ia64_function_prologue, ia64_funciton_epilogue): Rename
14706 mistyped prototypes.
14707 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14708 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14710 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14711 an use in target struct, make static.
14712 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14715 2001-07-08 Richard Henderson <rth@redhat.com>
14717 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14719 2001-07-08 Richard Henderson <rth@redhat.com>
14721 * config/i386/i386.md: Remove constraints strings from define_split
14722 and define_peephole2 patterns.
14723 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14724 (eh_return): Use them.
14726 2001-07-08 Richard Henderson <rth@redhat.com>
14728 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14729 Document MD_FALLBACK_FRAME_STATE_FOR.
14731 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14733 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14734 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14736 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14738 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
14740 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14741 of the label inside NAME as opposed to just the end of NAME.
14743 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
14745 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14746 * config/alpha/alpha.c (alpha_init_machine_status,
14747 alpha_mark_machine_status, alpha_free_machine_status): Delete.
14748 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14749 (vms_valid_decl_attribute_p): Make static, conditionally compile.
14750 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14752 2001-07-06 Stan Shebs <shebs@apple.com>
14754 * target.h (targetm): Rename global from "target", so as not to
14755 conflict with local variables.
14757 * c-typeck.c: Ditto.
14760 * cp/decl.c: Ditto.
14761 * cp/decl2.c: Ditto.
14762 * cp/typeck.c: Ditto.
14763 * 1750a/1750a.c: Ditto.
14764 * a29k/a29k.c: Ditto.
14765 * arc/arc.c: Ditto.
14766 * arm/arm.c: Ditto.
14767 * avr/avr.c: Ditto.
14768 * clipper/clipper.c: Ditto.
14769 * convex/convex.c: Ditto.
14770 * d30v/d30v.c: Ditto.
14771 * dsp16xx/dsp16xx.c: Ditto.
14772 * elxsi/elxsi.c: Ditto.
14773 * fr30/fr30.c: Ditto.
14774 * h8300/h8300.c: Ditto.
14775 * i370/i370.c: Ditto.
14776 * i386/i386.c: Ditto.
14777 * i860/i860.c: Ditto.
14778 * i960/i960.c: Ditto.
14779 * ia64/ia64.c: Ditto.
14780 * m32r/m32r.c: Ditto.
14781 * m68hc11/m68hc11.c: Ditto.
14782 * m68k/m68k.c: Ditto.
14783 * m88k/m88k.c: Ditto.
14784 * mips/mips.c: Ditto.
14785 * ns32k/ns32k.c: Ditto.
14787 * pdp11/pdp11.c: Ditto.
14788 * romp/romp.c: Ditto.
14789 * rs6000/rs6000.c: Ditto.
14791 * sparc/sparc.c: Ditto.
14792 * vax/vax.c: Ditto.
14793 * we32k/we32k.c: Ditto.
14794 * doc/tm.texi: Update the manual to match.
14796 2001-07-06 Richard Henderson <rth@redhat.com>
14798 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14799 DWARF2_UNWIND_INFO not just whether it is defined.
14801 2001-07-06 Diego Novillo <dnovillo@redhat.com>
14803 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14804 call to simplify_binary_operation returns a new pattern.
14806 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
14808 * glimits.h (__SHRT_MAX__): New.
14809 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14810 (SHRT_MAX): Define in terms of __SHRT_MAX__.
14812 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
14814 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14817 2001-07-06 Richard Henderson <rth@redhat.com>
14819 * bitmap.c (bitmap_release_memory): Move adjacent to the
14820 allocation functions.
14821 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14822 the implementation. Binary search for the set bit.
14823 (bitmap_union_of_diff): Allocate the temporary on the stack
14824 instead of using xmalloc.
14826 2001-07-06 Richard Henderson <rth@redhat.com>
14828 * genrecog.c (validate_pattern): Warn for constraints in
14829 define_{expand,split,peephole2}. Remove strict_low_part
14830 before looking up match_dup.
14832 2001-07-06 DJ Delorie <dj@redhat.com>
14834 * doc/gcc.texi (Makefile): Rename to be a more general purpose
14835 chapter about various build hints and history. Add section
14836 talking about the various types of native and cross builds.
14838 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
14840 * Makefile.in (final.o): Depend on target.h.
14841 * final.c: Include target.h.
14842 (default_function_pro_epilogue): New.
14843 (final_start_function): Use target structure for function prologues.
14844 (final_end_function): Use target structure for function epilogues.
14845 * fold-const.c (real_hex_to_f): Constify s and p.
14846 * output.h (default_function_pro_epilogue): New.
14847 * real.h (real_hex_to_f): Update prototype.
14848 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14849 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14850 (TARGET_INITIALIZER): Update.
14851 * target.h (gcc_target): Add struct asm_out.
14852 * doc/tm.texi: Update.
14855 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14856 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
14857 in cpu/cpu.c, or rename old functions consistently. Take
14858 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
14859 redundant macros and prototypes. Make new functions static.
14861 * 1750a/1750a.c: Similarly.
14862 * 1750a/1750a.h: Similarly.
14863 * a29k/a29k-protos.h: Similarly.
14864 * a29k/a29k.c: Similarly.
14865 * a29k/a29k.h: Similarly.
14866 * arc/arc-protos.h: Similarly.
14867 * arc/arc.c: Similarly.
14868 * arc/arc.h: Similarly.
14869 * arm/arm-protos.h: Similarly.
14870 * arm/arm.c: Similarly.
14871 * arm/arm.h: Similarly.
14872 * avr/avr-protos.h: Similarly.
14873 * avr/avr.c: Similarly.
14874 * avr/avr.h: Similarly.
14875 * clipper/clipper-protos.h: Similarly.
14876 * clipper/clipper.c: Similarly.
14877 * clipper/clipper.h: Similarly.
14878 * convex/convex.c: Similarly.
14879 * convex/convex.h: Similarly.
14880 * d30v/d30v-protos.h: Similarly.
14881 * d30v/d30v.c: Similarly.
14882 * d30v/d30v.h: Similarly.
14883 * d30v/d30v.md: Similarly.
14884 * dsp16xx/dsp16xx-protos.h: Similarly.
14885 * dsp16xx/dsp16xx.c: Similarly.
14886 * dsp16xx/dsp16xx.h: Similarly.
14887 * elxsi/elxsi.c: Similarly.
14888 * elxsi/elxsi.h: Similarly.
14889 * fr30/fr30.c: Similarly.
14890 * fr30/fr30.md: Similarly.
14891 * h8300/h8300-protos.h: Similarly.
14892 * h8300/h8300.c: Similarly.
14893 * h8300/h8300.h: Similarly.
14894 * i370/i370-protos.h: Similarly.
14895 * i370/i370.c: Similarly.
14896 * i370/i370.h: Similarly.
14897 * i386/i386.c: Similarly.
14898 * i386/osf1elf.h: Similarly.
14899 * i386/osfrose.h: Similarly.
14900 * i860/i860-protos.h: Similarly.
14901 * i860/i860.c: Similarly.
14902 * i860/i860.h: Similarly.
14903 * i960/i960-protos.h: Similarly.
14904 * i960/i960.c: Similarly.
14905 * i960/i960.h: Similarly.
14906 * ia64/ia64-protos.h: Similarly.
14907 * ia64/ia64.c: Similarly.
14908 * ia64/ia64.h: Similarly.
14909 * m32r/m32r-protos.h: Similarly.
14910 * m32r/m32r.c: Similarly.
14911 * m32r/m32r.h: Similarly.
14912 * m68hc11/m68hc11-protos.h: Similarly.
14913 * m68hc11/m68hc11.c: Similarly.
14914 * m68hc11/m68hc11.h: Similarly.
14915 * m68k/crds.h: Similarly.
14916 * m68k/dpx2.h: Similarly.
14917 * m68k/m68k-protos.h: Similarly.
14918 * m68k/m68k.c: Similarly.
14919 * m68k/m68k.h: Similarly.
14920 * m68k/news.h: Similarly.
14921 * m88k/m88k-protos.h: Similarly.
14922 * m88k/m88k.c: Similarly.
14923 * m88k/m88k.h: Similarly.
14924 * mips/mips-protos.h: Similarly.
14925 * mips/mips.c: Similarly.
14926 * mips/mips.h: Similarly.
14927 * ns32k/merlin.h: Similarly.
14928 * ns32k/ns32k.c: Similarly.
14929 * ns32k/ns32k.h: Similarly.
14930 * ns32k/tek6000.h: Similarly.
14931 * pa/pa-protos.h: Similarly.
14932 * pa/pa.c: Similarly.
14933 * pa/pa.h: Similarly.
14934 * pdp11/2bsd.h: Similarly.
14935 * pdp11/pdp11-protos.h: Similarly.
14936 * pdp11/pdp11.c: Similarly.
14937 * pdp11/pdp11.h: Similarly.
14938 * romp/romp-protos.h: Similarly.
14939 * romp/romp.c: Similarly.
14940 * romp/romp.h: Similarly.
14941 * rs6000/rs6000-protos.h: Similarly.
14942 * rs6000/rs6000.c: Similarly.
14943 * rs6000/rs6000.h: Similarly.
14944 * rs6000/sysv4.h: Similarly.
14945 * sh/sh-protos.h: Similarly.
14946 * sh/sh.c: Similarly.
14947 * sh/sh.h: Similarly.
14948 * sparc/sparc-protos.h: Similarly.
14949 * sparc/sparc.c: Similarly.
14950 * sparc/sparc.h: Similarly.
14951 * vax/vax.c: Similarly.
14952 * vax/vax.h: Similarly.
14953 * vax/vms.h: Similarly.
14954 * we32k/we32k.c: Similarly.
14955 * we32k/we32k.h: Similarly.
14957 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
14959 * basic-block.h (first_insn_after_basic_block_note): Declare.
14960 * flow.c (first_insn_after_basic_block_note): Define. Moved
14962 * ssa.c (first_insn_after_basic_block_note): Remove.
14963 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14965 (ssa_eliminate_dead_code): Properly update the CFG and PHI
14966 nodes when we find a dead conditional branch. Insert BARRIERs
14967 after any blocks with no successors, but which do not have
14970 2001-07-06 Zack Weinberg <zackw@stanford.edu>
14972 * varray.c (varray_check_failed): Use internal_error.
14974 2001-07-05 Andrew Haley <aph@redhat.com>
14976 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14977 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14978 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14980 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
14982 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14983 reference if the target constant is also a SYMBOL_REF.
14985 2001-07-05 Eric Christopher <echristo@redhat.com>
14987 * config/mips/mips.h (MASK_MIPS3900): Remove.
14988 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14989 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14990 (TARGET_MIPS3900): Change to use mips_arch.
14991 (TARGET_MIPS4000): New.
14992 (TARGET_MIPS4100): New.
14993 (TARGET_MIPS4300): New.
14994 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14995 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14997 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14998 (ISA_HAS_BRANCHLIKELY): To here.
14999 (CC1_CPU_SPEC): New.
15000 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
15001 (mips_arch_string): Declare.
15002 (mips_arch): Declare.
15003 (TARGET_OPTIONS): Add -march and -mtune.
15005 * config/mips/mips.c (mips_arch_string): New.
15007 (override_options): Handle -march for codegen and -mtune
15008 for scheduling. Use mips_arch. Move tx39 target default here.
15009 (mips_parse_cpu): Move error message to override_options.
15011 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
15013 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
15015 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
15016 (MIPS Options): Ditto. Change mcpu entry to historical text.
15018 2001-07-05 H.J. Lu (hjl@gnu.org)
15020 * config/mips/mips.c (mips_parse_cpu): New function to parse
15023 2001-07-05 Jim Wilson <wilson@redhat.com>
15025 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
15026 * config/ia64/t-ia64: Likewise.
15027 (LIB1ASMFUNCS): Update comment.
15029 2001-07-05 David Edelsohn <edelsohn@gnu.org>
15031 * doc/install.texi (Install GCC: Binaries): Fix typo.
15033 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15035 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
15036 reference using the stack pointer, adjust it since we push Y
15038 ("*ashrsi3"): Likewise.
15039 ("*lshrsi3"): Likewise.
15041 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15043 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
15044 when -fomit-frame-pointer is used.
15046 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
15048 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
15049 (try_redirect_by_replacing_jump): Reverse updating properly the
15050 count and frequency information. Reverse removing cc0 setter.
15051 (forwarder_block_p): Reverse fixing for fallthru blocks.
15053 2001-07-05 DJ Delorie <dj@redhat.com>
15055 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15056 (translate_options): If the above is defined, use it to map
15057 given options to new options.
15058 * doc/tm.texi: Document it.
15060 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
15061 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15063 * doc/invoke.texi (Optimize Options): Document that -fgcse may
15064 cause programs using computed gotos to run more slowly.
15066 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15068 * doc/install.texi (Specific): Markup, spelling and typo fixes.
15070 Consistently require binutils 2.11.2, not prereleases.
15071 (Specific, decstation-*): Canonicalize as mips-dec-*.
15072 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15074 (Specific, m68k-altos): Removed reference to README.altos, deleted.
15075 (Specific, mips-*): Reword MIPS C compiler requirements.
15076 (Specific, powerpc*-*-*): New, mention --with-cpu once.
15077 (Specific, sunv5): Removed, obsolete.
15079 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
15081 * dwarf2out.c (output_loc_list): Use an all ones mask for
15082 .text asm output and don't rely on long long
15083 literals. Reformat some long lines.
15085 2001-07-05 Andreas Jaeger <aj@suse.de>
15087 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15090 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15092 * dwarf2out.c (dwarf2out_define): Update comment.
15093 (dwarf2out_undef): Ditto.
15094 (dwarf2out_start_source_file): Ditto.
15095 (dwarf2out_end_source_file): Ditto.
15096 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15097 since we never call the start/end debug hook for the primary file.
15099 2001-07-04 Kazu Hirata <kazu@hxi.com>
15101 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15104 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
15106 * cppinit.c (remove_dup_dirs): Inform if a system include
15107 directory is being reordered.
15108 * doc/invoke.texi (Directory Options): GCC warns if you hide a
15110 * doc/cpp.texi (Search Paths): Likewise.
15111 * doc/gcc.texi (Interoperation): Remove information about
15114 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
15116 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15117 (VARRAY_TOP_CHAR_PTR): Likewise.
15119 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15121 * gcc.c (process_command): Don't assign elements of a const char*.
15123 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15125 * emit-rtl.c (change_address): Don't abort if invalid address while
15126 reload is in progress.
15128 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15130 * c-lex.c (cb_file_change): Pass line number to
15131 debug_start_source_file.
15132 (cb_undefine): Pass correct line number to debug_undef.
15134 * toplev.c (debug_start_source_file): Add line number to
15135 parameters. Pass it along to dwarf2out_start_source_file.
15136 (decode_g_option): Stop resetting debug level back to normal when
15137 we change debug formats, unless the current level is
15138 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15141 * toplev.h (debug_start_source_file): Add line number to
15144 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15147 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15149 Output debug_macinfo data for starting file if requested.
15150 (dwarf2out_end_source_file): Output debug_macinfo data for ending
15152 (dwarf2out_define): Output debug_macinfo data for defining a macro
15154 (dwarf2out_undef): Output debug_macinfo data for undefining a
15155 macro if requested.
15156 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15157 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15158 (macinfo_section_label): New. DWARF2 macro info section label.
15159 (dwarf2out_init): If we want macro info, output the start label
15161 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15162 attribute to the compilation unit die pointing to the macro info.
15164 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
15166 * dwarf2out.c (new_loc_list): Move to inside #ifdef
15167 DWARF2_DEBUGGING_INFO.
15168 (add_loc_descr_to_loc_list): Ditto.
15169 (output_loc_list): Ditto.
15170 Also, fix thinko in curr not being initialized.
15171 (gen_internal_sym): Ditto.
15173 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15175 * emit-rtl.c (replace_equiv_address): New function.
15176 * expr.h (replace_equiv_address): New declaration.
15177 * explow.c (validize_mem): Call it instead of change_address and
15178 also call if -fforce-addr and address is constant.
15179 * expr.c: Replace more calls to change_address with adjust_address
15180 and/or replace_equiv_address or to validize_mem.
15181 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15182 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15183 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15184 * config/i370/i370.md, config/i860/i860.md: Likewise.
15185 * config/i960/i960.md, config/mips/mips.c: Likewise.
15186 * config/mips/mips.md, config/pa/pa.md: Likewise.
15187 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15188 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15190 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15192 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15194 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15197 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
15199 * doc/include: New directory.
15200 * doc/fdl.texi: Move to doc/include/fdl.texi.
15201 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15202 * doc/include/funding.texi, doc/include/gpl.texi: New files.
15203 * doc/gcc.texi: Use funding.texi and gpl.texi.
15204 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15205 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15206 Update dependencies and use -I $(docdir)/include.
15208 2001-07-04 Anthony Green <green@redhat.com>
15210 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15212 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15214 * doc/install.texi (sparc64-*-*): Remove garbage.
15216 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
15218 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15219 Fix typo in last change to use adjust_address.
15221 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15223 * doc/install.texi (Specific): Update information for *-*-solaris*.
15225 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15227 * explow.c (plus_constant_wide): Reinitialize Y for restart.
15229 2001-07-03 Stan Shebs <shebs@apple.com>
15231 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15232 case for flag_no_mach_text_sections.
15233 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15234 * config/darwin.c (flag_no_mach_text_sections): Remove.
15235 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15237 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15239 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15240 and avoid checking for constant as first operand.
15241 * recog.c (find_constant_term_loc): No longer static.
15242 (adj_offettable_operand): Delete.
15243 * rtl.h (adj_offsettable_operand): Delete declaration.
15244 (find_constant_term): Add declaration.
15245 * caller-save.c: Replace calls to adj_offsettable_operand with calls
15247 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15248 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15249 * config/i386/i386.c, config/i386/i386.md: Likewise.
15250 * config/i860/i860.c, config/i960/i960.c: Likewise.
15251 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15252 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15253 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15254 * config/mips/mips.c, config/mips/mips.md: Likewise.
15255 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15256 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15257 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15258 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15259 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15260 * config/ns32k/ns32k.md: Likewise.
15262 2001-07-03 Zack Weinberg <zackw@stanford.edu>
15264 * rtl.c (copy_rtx): Handle 'T' format letter.
15265 * gensupport.c (collect_insn_data): Likewise.
15266 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15268 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
15270 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15271 -B option. Use 'dir' not 'foo' as example directory name.
15273 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15275 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15276 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15278 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15280 * doc/cppinternals.texi: Improve formatting and logical markup.
15282 2001-07-03 Andreas Jaeger <aj@suse.de>
15284 * Makefile.in (insn-recog.o): Add dependency on reload.h.
15286 * genrecog.c (write_header): Include reload.h for prototypes in
15289 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
15292 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15293 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15294 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15295 i386_pe_valid_type_attribute_p): Add.
15296 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15297 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15299 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15301 * explow.c (plus_constant_wide, case LO_SUM): New case.
15302 (plus_constant_for_output_wide): Delete.
15303 * rtl.h (plus_constant_for_output): Delete.
15304 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15305 instead of plus_constant_for_output.
15306 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15307 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15308 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15309 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15310 * config/sparc/sparc.md: Likewise.
15311 Convert some change_address calls to adjust_address.
15313 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15315 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15316 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
15317 documentation of -std and -Wwrite-strings.
15319 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15321 * cse.c (canon_hash): Don't register registers in very small
15322 register classes, as extending their lifetime might cause
15325 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
15327 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15329 * flow.c (forwarder_block_p): Fix for fallthru blocks.
15330 (try_redirect_by_replacing_jump): Update properly the count
15331 and frequency information.
15333 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
15335 * toplev.c (dump_file_index): Move SSA dumps just after first
15337 (dump_file): Corresponding changes.
15338 (rest_of_compilation): Move SSA path to just after the first
15340 * doc/gcc.texi (Passes): Update due to movement of SSA path.
15341 * doc/invoke.texi: Update dump file #s as they were completely
15342 out of date with reality.
15344 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15346 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15348 * expr.c (emit_move_insn_1): Deal with non-default
15351 * expr.c (emit_single_push_insn): Fix warning.
15353 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
15355 * expr.c (emit_move_insn_1): Avoid modifying
15356 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15358 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15360 * emit-rtl.c (adjust_address): New function.
15361 * expr.h (adjust_address): Add declaration.
15362 * builtins.c: Replace some calls to change_address with calls to it
15363 or to validize_mem.
15364 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15365 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15366 * config/arm/arm.c, config/convex/convex.c: Likewise.
15367 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15368 * config/i386/i386.c, config/i386/i386.md: Likewise.
15369 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15370 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15371 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15372 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15373 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15375 2001-07-02 Jim Wilson <wilson@redhat.com>
15377 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15379 2001-07-02 Steve Ellcey <sje@cup.hp.com>
15381 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15382 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15384 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15386 * cppinit.c (lang_defaults): New table.
15387 (set_lang): Just read from lang_defaults into the live options
15390 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15392 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15393 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15394 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15396 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15398 * doc/install.texi: Various spelling and markup fixes.
15399 (Installing GCC): Component specific installation instructions are
15402 Warn about removing old install dir in the presence of shared libs.
15403 (Configuration): Invoke with options target to match configure
15405 Consistently refer to gas, gld pathnames.
15406 Invert --enable-multilib documentation.
15407 Remove references to old compiler versions.
15409 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15411 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15413 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15415 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15417 (Specific, mips*-sgi-irix5): Note IDO download.
15418 Reworded MIPS C hints.
15419 Use GNU as instead of GAS.
15421 Removed SGI Freeware reference, IRIX 6 only.
15422 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15423 Note N64 library requirement/workaround.
15425 Complete list of structure passing bug victims.
15427 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15429 * doc/install.texi: Remove CVS Id.
15431 2001-07-02 Andreas Jaeger <aj@suse.de>
15433 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15434 (find_inherently_necessary): Remove unused variable.
15436 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
15438 * c-common.h (TDI_inlined): New ast dump phase.
15439 (dump_flag_name): New function.
15440 * c-dump.c (dump_files): Add inlined phase.
15441 (dump_flag_name): Define.
15442 * doc/invoke.texi (-fdump-ast-inlined): Document.
15444 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15446 * stor-layout.c (layout_decl): Revert change to handling of alignment
15449 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15451 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15454 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
15456 * doc/tm.texi (FUNCTION_ARG): Document that the last call
15459 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
15461 * tlink.c (recompile_files): Remove COMPILER_PATH and
15462 LIBRARY_PATH from the environment.
15464 2001-07-01 Zack Weinberg <zackw@stanford.edu>
15466 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15467 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
15469 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15471 * c-parse.in (OBJC_STRING): Kill.
15472 (objc_string): Decompose to [objc_string] '@' STRING.
15473 (reswords): Take the leading '@' off all the Objective C keywords.
15474 (objc_rid_sans_at): Kill.
15475 (init_reswords): Don't initialize it.
15476 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15477 (_yylex): Kill reconsider label. Look ahead one token after
15478 an '@'; if we get an identifier, check whether it's an
15479 Objective C @-keyword. If so, return the keyword. Otherwise,
15480 put back the token and return the '@' as a terminal.
15482 * cpplib.c (lex_macro_node): Remove unnecessary check for
15483 leading '@' on identifier. Clarify control flow and commentary.
15485 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15487 * cse.c (new_label_ref): Variable deleted.
15488 (insert): Remove set of new_label_ref.
15489 (check_for_label_ref): New function.
15490 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15492 See ChangeLog.5 for earlier changes.