1 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3 * config/i386/sol2.h (WINT_TYPE): Redefine.
4 (WINT_TYPE_SIZE): Likewise.
6 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8 * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
9 (dup2): Make static and add prototype.
10 * m68k/plexus.h: Don't define NO_DUP2.
11 * configure.in (AC_CHECK_FUNCS): Add dup2.
12 * config.in, configure: Regenerate.
14 * ia64/aix.h (REG_SIZE): Don't #undef.
15 * sparc.h (REG_SIZE): Delete.
16 * flow.c (mark_used_regs): Don't use REG_SIZE.
17 * regs.h (REG_SIZE): Delete.
19 2001-11-27 Andreas Schwab <schwab@suse.de>
21 * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
22 PREFERRED_DEBUGGING_TYPE.
24 Tue Nov 27 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26 * Makefile.in (c-lang.o): Depends on langhooks-def.h.
27 (expr.o, varasm.o): Depends on langhooks.h.
28 * c-common.c (c_safe_from_p): Always declare.
29 (c_expand_expr): Refine when declared.
30 * c-lang.c (c-common.h): Now include.
31 (LANG_HOOKS_SAFE_FROM_P): Define new hook.
32 (c_init): Don't set lang_safe_from_expr.
33 * expr.c (langhooks.h): Now include.
34 (lang_safe_from_p): No longer define.
35 (safe_from_p): Use lang hook.
36 (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
37 (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
38 * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
39 * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
40 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
41 * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
42 * langhooks.h (struct lang_hooks): New fields expand_constant
44 * output.h (output_constant): Size arg is HOST_WIDE_INT.
45 * stmt.c (expand_decl_init): No longer need to expand constant
47 * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
48 * toplev.c (lang_expand_constant): Delete var.
49 * tree.c (save_expr): Don't put another SAVE_EXPR around simple
50 operations on SAVE_EXPR.
51 * varasm.c (langhooks.h): Now include.
52 (compare_constant_1): Use lang_hooks, not lang_expand_constant.
53 (record_constant_1, output_addressed_constants): Likewise.
54 (initializer_constant_valid_p, output_constant): Likewise.
55 (output_constant_def): Process no-defer of string constant.
56 (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
57 (output_constant): Strip more conversions.
58 Track our size and pad for the rest.
59 (array_size_for_constructor): Remove code for non-byte STRING_CST.
60 (output_constructor): SIZE now HOST_WIDE_INT.
62 2001-11-27 Richard Henderson <rth@redhat.com>
64 * ifcvt.c (noce_try_store_flag_constants): Test for overflow
67 2001-11-27 Zack Weinberg <zack@codesourcery.com>
69 * cppfiles.c (read_include_file): Add comment.
71 2001-11-26 Richard Henderson <rth@redhat.com>
73 * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
75 2001-11-26 Richard Henderson <rth@redhat.com>
77 * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
78 * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
79 commented out override.
81 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
83 * cppfiles.c (stack_include_file): Don't optimize zero-length
85 (read_include_file): NUL-terminate read files.
86 * cpplex.c (handle_newline, skip_escaped_newlines,
87 get_effective_char, skip_whitespace, parse_identifier,
88 parse_identifier_slow, parse_number, parse_string,
89 _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
91 * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
92 Be sure buffers are NUL terminated.
93 * cppmacro.c (warn_of_redefinition): Kill compile warning.
95 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
97 * c-common.c: Include tree-inline.h.
98 (c_language): Move separate definitions here.
99 (c_common_init_options, c_common_post_options): New.
100 (c_common_lang_init): Rename c_common_init.
101 * c-common.h (c_common_lang_init): Similarly.
102 (c_common_init_options, c_common_post_options): New.
103 * c-lang.c (c_post_options): Move body to c_common_post_options.
104 (c_init_options): Use c_common_init_options.
106 * langhooks.def: Rearrange.
107 * langhooks.h: Rearrange, and improve comments.
108 * toplev.c (do_compile): New function.
109 (toplev_main): Use it.
110 (lang_independent_f_options, parse_options_and_default_flags,
111 process_options): Remove trailing periods.
112 * Makefile.in: Update.
113 objc: * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
117 2001-11-26 Richard Henderson <rth@redhat.com>
119 * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
121 2001-11-26 DJ Delorie <dj@redhat.com>
123 * expr.c (store_constructor): Actually use the value computed
124 if WORD_REGISTER_OPERATIONS.
126 2001-11-26 Richard Henderson <rth@redhat.com>
128 * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
131 2001-11-26 David Edelsohn <edelsohn@gnu.org>
133 * rs6000.c (output_mi_thunk): Handle minimal-toc and call
134 correct function on AIX.
136 2001-11-26 Alexandre Oliva <aoliva@redhat.com>
138 * toplev.c (process_options): Don't force
139 flag_optimize_sibling_calls to zero just because exceptions are
142 Mon Nov 26 12:37:05 2001 Jeffrey A Law (law@cygnus.com)
144 * df.h (transfer_function_sbitmap): Use PARAMS around argument
145 list in function prototypes.
146 (transfer_function_bitmap): Likewise.
148 2001-11-26 Loren J. Rittle <ljrittle@acm.org>
150 * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
151 * config/i386/netbsd-elf.h: Likewise.
153 2001-11-26 David Edelsohn <edelsohn@gnu.org>
155 * doc/trouble.texi: Remove outdated RS/6000 comments.
157 Mon Nov 26 13:49:41 CET 2001 Jan Hubicka <jh@suse.cz>
159 * final.c (walk_alter_subreg): Fix return value.
161 Mon Nov 26 11:36:20 CET 2001 Jan Hubicka <jh@suse.cz>
163 * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
165 * sparc.md (post-reload splitters): Do not call alter_subreg.
166 * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
168 2001-11-25 Aldy Hernandez <aldyh@redhat.com>
170 * regclass.c (choose_hard_reg_mode): Handle vector arguments.
172 2001-11-26 Alan Modra <amodra@bigpond.net.au>
174 * final.c: (insn_lengths): Make it an int *, so that large jump
175 tables don't overflow.
177 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
179 * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
180 (format_types): Use it for scanf.
181 (dollar_arguments_pointer_p): New.
182 (init_dollar_format_checking): Store details of which arguments
184 (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
185 (finish_dollar_format_checking): Take extra parameter
186 pointer_gap_ok. Treat unused arguments differently if
187 pointer_gap_ok and the unused arguments are pointers.
188 (check_format_info_main): Pass extra argument to
189 finish_dollar_format_checking.
190 * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
191 unused arguments are present between used arguments with operand
194 2001-11-25 Daniel Berlin <dan@cgsoftware.com>
196 * df.c: Add prototypes for hybrid_search_bitmap and
197 hybrid_search_sbitmap.
198 (hybrid_search_bitmap): New function.
199 (hybrid_search_sbitmap): New function.
200 (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
201 (iterative_dataflow_bitmap): Ditto.
203 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
205 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
206 address computations.
208 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
210 * config/m68hc11/m68hc11.c (d_register_operand): Must accept
211 register b (low part of d).
213 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
215 * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
218 Sun Nov 25 06:22:09 2001 Douglas B. Rupp <rupp@gnat.com>
220 * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
221 * config/alpha/x-vms: New file, to compile the above.
222 * config.gcc (alpha*-dec-vms*): Add x-vms.
224 2001-11-24 Hans-Peter Nilsson <hp@axis.com>
226 * genextract.c (main): Set ro_loc for peepholes.
228 Sat Nov 24 17:04:10 2001 Douglas B. Rupp <rupp@gnat.com>
230 * fix-header.c (main): Move inf_buffer termination and inf_limit
231 calculation to after read.
233 * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
234 (__UNIX_FOPEN): Define.
236 Sat Nov 24 16:11:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
238 * function.c (assign_stack_temp_for_type): Clear alias set before
241 2001-11-23 David Edelsohn <edelsohn@gnu.org>
243 * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
245 * rs6000.md (cmptf): Fix typo.
247 2001-11-23 Richard Sandiford <rsandifo@redhat.com>
249 * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
250 * varasm.c (output_constructor): Use assemble_integer rather
251 than ASM_OUTPUT_BYTE.
253 2001-11-23 Andreas Jaeger <aj@suse.de>
255 * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
258 2001-11-23 Nick Clifton <nickc@cambridge.redhat.com>
260 * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
262 (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
263 (MULTILIB_DEFAULTS): Remove previous definition.
265 2001-11-23 Neil Booth <neil@daikokuya.demon.co.uk>
267 * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
268 * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
270 2001-11-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
272 * cris.h: Revert thinko in last patch.
274 2001-11-23 Joseph S. Myers <jsm28@cam.ac.uk>
276 * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
277 FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
278 cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
279 dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
280 explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
281 sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
283 * predict.c, reg-stack.c: Fix spelling errors.
285 2001-10-09 Andrew Haley <aph@redhat.com>
287 * calls.c (check_sibcall_argument_overlap): Use slot_offset for
290 2001-11-22 Graham Stott <grahams@redhat.com>
292 * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
293 replacement jump after original jump.
295 (verify_flow_info): Remove redundent initialisation.
296 Handle reaching end of insn list before finding a BARRIER.
297 Only issue one missing barrier diagnostic.
299 2001-11-22 Graham Stott <grahams@redhat.com>
301 * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
303 Thu Nov 22 06:49:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
305 * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
308 2001-11-22 Nick Clifton <nickc@cambridge.redhat.com>
310 * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
311 Fix typo -mm32rx=> -m32rx.
313 * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
316 * config.gcc (xscale-coff): Add necessary header files to
319 2001-11-20 Zack Weinberg <zack@codesourcery.com>
321 * rs6000.c (output_cbranch): Use $, not %$, in output template.
323 2001-11-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
325 * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
326 (lang_type_quals): Declare.
327 (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
328 retrieve language-specific qualifiers for a type node, instead of
329 C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
331 * tree-dump.h: Rename from c-dump.h.
332 * c-common.h (C_TYPE_QUALS): Removed.
333 Move declarations for tree-dump.c interface to...
334 * tree.h: ... here. Remove lang_dump_tree.
335 * langhooks.h (struct lang_hooks_for_tree_dump): New.
336 (struct lang_hooks): Add tree_dump hooks.
337 * langhooks.c (lhd_tree_dump_dump_tree): New function.
338 (lhd_tree_dump_type_quals): New function.
339 * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
341 (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
342 * Makefile.in: Move tree-dump.o to language-independent back-end.
344 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
346 * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
347 * alpha.h (DBX_REGISTER_NUMBER): Likewise.
348 * arc.h (DBX_REGISTER_NUMBER): Likewise.
349 * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
350 * avr.h (DBX_REGISTER_NUMBER): Likewise.
351 * c4x.h (DBX_REGISTER_NUMBER): Likewise.
352 * clipper.h (DBX_REGISTER_NUMBER): Likewise.
353 * convex.h (DBX_REGISTER_NUMBER): Likewise.
354 * cris.h (DBX_REGISTER_NUMBER): Likewise.
355 * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
356 * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
357 * fr30.h (DBX_REGISTER_NUMBER): Likewise.
358 * h8300.h (DBX_REGISTER_NUMBER): Likewise.
359 * i370.h (DBX_REGISTER_NUMBER): Likewise.
360 * i860.h (DBX_REGISTER_NUMBER): Likewise.
361 * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
362 * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
363 * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
364 * m32r.h (DBX_REGISTER_NUMBER): Likewise.
365 * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
366 * m88k.h (DBX_REGISTER_NUMBER): Likewise.
367 * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
368 * mcore.h (DBX_REGISTER_NUMBER): Likewise.
369 * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
370 * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
371 * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
372 * romp.h (DBX_REGISTER_NUMBER): Likewise.
373 * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
374 * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
375 * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
376 * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
377 * v850.h (DBX_REGISTER_NUMBER): Likewise.
378 * vax.h (DBX_REGISTER_NUMBER): Likewise.
379 * we32k.h (DBX_REGISTER_NUMBER): Likewise.
381 * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
382 * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
384 2001-11-21 H.J. Lu <hjl@gnu.org>
386 * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
388 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
390 * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
391 emit_cmp_and_jump_insns.
393 * stormy16.c (xstormy16_expand_builtin_va_arg,
394 xstormy16_expand_casesi): Likewise.
396 Wed Nov 21 17:37:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
398 * function.c (keep_stack_depressed): Major rework.
399 (handle_epilogue_set, emit_equiv_load): New functions.
400 (thread_prologue_and_epilogue_insns): keep_stack_depressed now
402 * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
403 * rtl.h (SET_IS_RETURN_P): New macro.
405 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
406 and also support TREE_ADDRESSABLE.
407 * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
409 2001-11-21 David Edelsohn <edelsohn@gnu.org>
411 * rs6000.md (cmptf_internal1): Replace %$ with $.
413 Wed Nov 21 16:44:01 2001 Douglas B. Rupp <rupp@gnat.com>
415 * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
416 (read_include_file): Use STAT_SIZE_TOO_BIG.
418 * cppinit.c (INO_T_COPY): Define.
419 (INO_T_EQ): Uppercase parameters.
420 (append_include_chain): Use INO_T_COPY.
422 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
424 * cfg.c: Fix typos and formatting in the introductory comment.
426 Wed Nov 21 12:38:37 CET 2001 Jan Hubicka
428 * profile.c (compute_branch_probabilites): Compute probabilities
429 for entry/exit edges; estimate probabilities for zero counts.
431 2001-11-21 Jakub Jelinek <jakub@redhat.com>
433 * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
434 to emit_library_call.
435 * function.c (expand_main_function, expand_function_start,
436 expand_function_end): Likewise.
437 * profile.c (output_func_start_profiler): Likewise.
438 * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
439 second argument to emit_library_call.
440 * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
441 as second argument to emit_library_call.
442 * calls.c (emit_library_call): Update fn_type description.
444 2001-11-21 Jakub Jelinek <jakub@redhat.com>
446 * c-decl.c (c_expand_deferred_function): Only call c_expand_body
447 if fndecl is still DECL_INLINE and has DECL_RESULT.
449 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
451 * clipper.c (clipper_movstr): Avoid uninitialized warning.
452 * i960.c (is_mask, legitimize_address): Likewise.
453 * m88k.c (m88k_expand_prologue): Likewise.
455 * mcore.c (emit_new_cond_insn): Likewise.
456 * stormy16.c (xstormy16_emit_cbranch): Likewise.
458 2001-11-20 Zack Weinberg <zack@codesourcery.com>
460 * config.gcc: Delete powerpcle-*-solaris2* stanza.
461 * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
462 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
463 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
464 config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
465 config/rs6000/t-ppcos: Expunge all references to Solaris.
467 * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
469 * config/rs6000/rs6000.md: Replace '%$' with '$' in all
471 * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
472 and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
474 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
476 * sh.md: Avoid uninitialized warnings.
477 * vax.c (vax_rtx_cost): Likewise.
479 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
481 * rs6000.c (direct_return): Check if we are saving altivec
483 (first_altivec_reg_to_save): New.
484 Updated stack frame layout comments.
485 (rs6000_stack_info): Calculate altivec register save size.
486 Save link register if we saved some altivec registers.
487 (rs6000_stack_info): Align save size to 16 if altivec abi or
489 (rs6000_stack_info): Calculate altivec register offsets.
490 (rs6000_stack_info): Add altivec info to save_size.
491 (debug_stack_info): Add altivec debug info.
492 (rs6000_emit_prologue): Save altivec registers and vrsave.
493 (compute_vrsave_mask): New.
494 (altivec_expand_builtin): Remove unused variables.
495 (rs6000_parse_abi_options): Add static qualifier.
496 (rs6000_expand_builtin): Remove unused parameters.
497 (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
498 (altivec_init_builtins): Same.
499 (is_altivec_return_reg): New.
500 (vrsave_operation): New.
501 (ALTIVEC_REG_BIT): New.
502 (generate_set_vrsave): New.
504 * rs6000.md (get_vrsave): New.
506 (*set_vrsave_internal): New.
508 * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
509 altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
510 altivec_padding_size, vrsave_mask.
511 (TOTAL_ALTIVEC_REGS): New.
512 (EPILOGUE_USES): Add VRSAVE_REGNO.
514 2001-11-20 Jeff Law <law@redhat.com>
516 * unroll.c (copy_loop_body): Update LABEL_NUSES for the
517 exit label as necessary.
519 2001-11-20 Brad Kaiser <bkaiser@acelink.net>
521 * reload1.c (elimination_effects): Use function_invariant_p
522 instead of CONSTANT_P when considering register equivalences.
524 2001-11-20 David O'Brien <obrien@FreeBSD.org>
526 * config.gcc: Add FreeBSD/PowerPC target.
527 (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
528 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
529 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
530 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
531 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
532 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
533 freebsd-spec.h to tm_file.
534 (rs6000-*-lynxos*): Add lynx.h to tm_file.
535 * config/freebsd.h: Tidy up.
536 (USING_CONFIG_FREEBSD): Define.
537 (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
538 FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
539 FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
540 (TARGET_HAS_F_SETLKW): Define.
541 (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
542 * config/freebsd-spec.h: New file.
543 * config/rs6000/freebsd.h: New file.
544 * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
545 * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
546 USING_SVR4_H to know when to turn on ELF support.
547 * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
548 define only if not already defined.
550 * config/rs6000/aix.h (TARGET_VERSION): Define.
551 * config/rs6000/beos.h: Likewise.
552 * config/rs6000/darwin.h: Likewise.
553 * config/rs6000/mach.h: Likewise.
554 * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
555 Don't include lynx.h directly.
557 2001-11-20 Graham Stott <grahams@redhat.com>
559 * unwind-dw2-fde.c (__deregister_frame_info_bases):
560 Fix lossage in last change return OB.
562 Tue Nov 20 11:56:12 2001 Douglas B. Rupp <rupp@gnat.com>
564 * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
565 Remove unneeded exit related macros.
567 2001-11-20 David Edelsohn <edelsohn@gnu.org>
569 * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
571 * rs6000.c (rs6000_emit_move): Add TFmode case.
572 * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
573 LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
574 LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
575 * rs6000.h: ... to here.
576 * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
577 trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
578 fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
580 Tue Nov 20 06:41:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
582 * emit-rtl.c (get_mem_attrs): Fix typo.
584 2001-11-20 Jakub Jelinek <jakub@redhat.com>
586 * c-lang.c (finish_file): Backout 2001-11-16
587 changes, instead set DECL_DEFER_OUTPUT for static inline functions
588 before calling c_expand_deferred_function.
590 2001-11-20 Jakub Jelinek <jakub@redhat.com>
592 * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
593 Don't register empty .eh_frame sections.
594 (__deregister_frame_info_bases, __deregister_frame): Don't
595 unregister them either.
597 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
599 * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
600 (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
601 * configure: Regenerate.
602 * config.in: Add dummy definitions of new flags.
603 * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
604 * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
605 * gcc.c (ASM_DEBUG_SPEC): New macro.
606 (asm_debug): New static variable.
607 (default_compilers): Add asm_debug when assembling from
609 (static_specs): Add asm_debug.
611 2001-11-20 Loren J. Rittle <ljrittle@acm.org>
613 * config.gcc (*-*-freebsd*): Remove configuration block.
615 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
618 * configure.in: Setup ability to run ./stage[1234]/xgcc in
619 fixinc *as if* it were a proper lang subdirectory.
620 * configure: Rebuilt.
622 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
624 * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
626 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
628 * 1750a.md: Don't use hex format for a const_int.
630 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
632 * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
634 2001-11-19 Zack Weinberg <zack@codesourcery.com>
636 * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
637 defined (prevents link errors when gettext isn't in the system
640 2001-11-19 DJ Delorie <dj@redhat.com>
642 * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
643 (validate_const_int): New.
644 (read_rtx): Validate constant integers.
645 * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
647 2001-11-19 Jakub Jelinek <jakub@redhat.com>
649 * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
651 Mon Nov 19 16:57:44 2001 Douglas B. Rupp <rupp@gnat.com>
653 * toplev.c (DUMPFILE_FORMAT): Define default.
654 (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
655 (close_dump_file, compile_file): Likewise.
656 * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
657 * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
659 2001-11-19 Jeff Law <law@redhat.com>
661 * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
664 2000-11-19 Neil Booth <neil@daikokuya.demon.co.uk>
666 * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
667 Don't fall off the base token run.
669 2001-11-19 Jason Wilkins <fenix@io.com>
671 * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
673 Mon Nov 19 15:13:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
675 * tree.def (VIEW_CONVERT_EXPR): New tree code.
676 * tree.h (handled_component_p): New declaration.
677 * alias.c (handled_component_p): Move function from here ...
678 * expr.c (handled_component_p): ... to here and non longer static.
679 (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
680 (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
681 (get_inner_reference): Handle VIEW_CONVERT_EXPR.
682 (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
683 (expand_expr, case VIEW_CONVERT_EXPR): New case.
684 (expand_expr, cse ADDR_EXPR): No need to copy if already
686 * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
687 * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
688 (output_constant): Handle VIEW_CONVERT_EXPR.
689 * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
690 Add new case for VIEW_CONVERT_EXPR.
692 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
694 * a29k/unix.h (ASM_FILE_START): Const-ify.
695 * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
696 * i386/isc.h (ASM_FILE_START): Const-ify.
697 * i386/sun386.h (ASM_FILE_START): Likewise.
699 * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
700 * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
701 * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
702 * mn10200.md: Initialize variable.
704 Mon Nov 19 18:06:21 CET 2001 Jan Hubicka <jh@suse.cz>
706 * gcse.c (try_replace_reg): Copy RTX before creating note.
708 * df.h (df_ref_flags): New uenum.
709 (DF_REF_FLAGS): New macro.
710 (struct ref): Add field "flags".
711 * df.c (HANDLE_SUBREG): Remove.
712 (df_ref_create): Likewise; set flags field of ref.
713 (df_def_record_1): Strip down read_write subreg; remove
714 commented out code; set READ_WRITE flag.
715 (read_modify_subreg_p): New static function.
716 (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
717 new argument "flags".
718 (df_insn_refs_record): Update call of df_uses_record.
719 (df_insn_modify): Avoid #if 0 around comment.
720 (df_dump): Dump the read/write flag.
722 * predict.c (propagate_freq): Make cyclic_probability and frequency
725 * i386.c (ix86_cc_mode): Accept USE.
727 * cfgrtl.c (purge_dead_edges): Cleanup EDGE_ABNORMAL flag if computed
728 jump is turned into simplejump.
730 2001-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
732 * doc/fragments.texi, doc/trouble.texi: Remove links to old
733 installation chapter.
734 * doc/gcc.texi: Don't claim that this manual documents
735 installation. Mark Installation menu entry as being out of date.
737 Mon Nov 19 07:21:35 2001 Douglas B. Rupp <rupp@gnat.com>
739 * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
740 (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
741 * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
743 2001-11-19 Jason Merrill <jason@redhat.com>
745 * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
746 cur_token, not after.
748 * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
749 Lose ASM_OUTPUT_CONSTRUCTOR.
750 * system.h: Poison it and INT_ASM_OP.
751 * c-lang.c (finish_file): Don't check for it.
752 * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
754 2001-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756 * mmix.c (mmix_cc1_ignored_option): Const-ify.
757 (mmix_init_machine_status): Make static to match declaration.
758 (mmix_unique_section): Const-ify.
759 (mmix_output_quoted_string): Avoid automatic aggregate
761 (mmix_output_register_setting): Likewise.
762 (mmix_output_shiftvalue_op_from_str): Likewise.
764 * mmix.h (mmix_cc1_ignored_option): Const-ify.
765 (ASM_OUTPUT_BYTE): Fix format specifier warning.
766 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
768 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
771 * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
772 name __objc_thread_exit_status so that it matches the
773 variable defined in objc/thr.h.
775 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
778 * mklibgcc.in: Add missing semi-colons.
781 Sun Nov 18 16:47:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
783 * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
784 after re-laying out decl in incomplete case.
785 (expand_expr, case ADDR_EXPR): Fix typo in copy case.
787 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
789 * doc/install-old.texi: Move some sections out to ...
790 * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
791 ... here. New files. Make into chapters rather than sections.
792 * doc/gcc.texi: Include the new files and add menu entries for
794 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
796 Sun Nov 18 14:13:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
798 * tree.h (TYPE_ALIGN_OK): New flag.
799 * emit-rtl.c (set_mem_attributes): Handle it.
800 * expr.c (emit_single_push_insn): Only set to alias set 0 if
801 doing sibcall optimization.
802 (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
804 (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
805 (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
807 * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
809 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
811 * c-decl.c (c_decode_option): Give deprecation warning for
813 * doc/invoke.texi (-traditional): Note that this option is
816 Sun Nov 18 07:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
818 * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
819 arg to HOST_WIDE_INT, not long.
821 * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
822 (HAS_INIT_SECTION): Define.
823 (REAL_ARITHMETIC): Don't undefine.
825 2001-11-18 Egor Duda <deo@logos-m.ru>
827 * config/i386/cygwin.h: Strip leading '*' from name, if any.
829 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
831 * Makefile.in (c-parse.o, c-common.o): Update dependencies.
832 * c-common.c: Include diagnostic.h.
833 (c_common_finish): New.
834 * c-common.h (c_common_finish): New.
835 * c-lang.c (LANG_HOOKS_FINISH): Override.
836 * c-parse.in: Don't include diagnostic.h.
837 (finish_parse): Remove.
838 * langhooks.h: Update comments.
839 * toplev.c (lang_dependent_init): New prototype.
841 (compile_file): Split cleanup code out to finalize.
842 (lang_dependent_init): Stop if lang_hooks.init fails.
843 (toplev_main): Update.
844 * tree.h (finish_parse): Remove.
846 * objc-act.c (LANG_HOOKS_FINISH): Override.
848 Sat Nov 17 23:30:44 2001 Douglas B. Rupp <rupp@gnat.com>
850 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
851 * config/alpha/vms_tramp.asm: New file.
852 * config/alpha/vms-tramp.asm: Removed.
854 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
856 * c-common.c (struct disabled_builtin, disabled_builtins,
857 disable_builtin_function, builtin_function_disabled_p): New.
858 (builtin_function_2): Check for disabled built-in functions.
859 * c-common.h (disable_builtin_function): Declare.
860 * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
861 * doc/invoke.texi: Document -fno-builtin-FUNCTION.
862 * doc/extend.texi: Mention -fno-builtin-FUNCTION.
864 2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
867 * config.gcc: Remove reference to va-clipper.h.
869 2001-11-17 Stan Shebs <shebs@apple.com>
871 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
872 AltiVec-related bitfields.
874 Sat Nov 17 12:06:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
876 * except.c (enum eh_region_type): Add ERT_UNKNOWN.
877 (mark_eh_region, case ERT_UKNONW): New case.
879 2001-11-17 Christopher Faylor <cgf@redhat.com>
880 Corinna Vinschen <vinschen@redhat.com>
882 * config/i386/cygwin.h: Search target specific include directory for
883 w32api stuff, if appropriate.
885 Sat Nov 17 08:20:44 2001 Douglas Rupp <rupp@gnat.com>
887 * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
889 2001-11-16 Aldy Hernandez <aldyh@redhat.com>
891 * config/rs6000/rs6000.md: Change all ldvx to lvx.
893 2001-11-16 Alexandre Oliva <aoliva@redhat.com>
895 * gensupport.c (process_rtx): Don't assume filename is the first
898 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
900 * vax-protos.h (reg_was_0_p): New prototype.
901 * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
902 * vax.c (follows_p, reg_was_0_p): New functions.
904 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
906 * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
907 (casesi1): Likewise. Define new pattern which arises by simplification
908 when operand 1 is a constant int. Correct pattern which arises by
909 simplification when operand 1 is zero.
911 2001-11-16 David O'Brien <obrien@FreeBSD.org>
913 * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
914 arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
915 arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
916 arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
917 arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
918 arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
919 xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
920 * config/arm/aof.h: Don't include arm.h.
921 * config/arm/aout.h: Likewise.
922 * config/arm/coff.h: Don't include semi.h and aout.h.
923 * config/arm/elf.h: Don't include aout.h.
924 * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
925 (TARGET_VERSION): Undef before defining.
926 (ARM_OS_NAME): Likewise
927 (TARGET_DEFAULT): Likewise
928 (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
929 * config/arm/pe.h: Don't include arm/coff.h.
930 * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
931 SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
932 * config/arm/riscix1-1.h: Likewise.
933 * config/arm/rix-gas.h: Don't include riscix.h.
934 (DBX_CONTIN_LENGTH): Undef before defining.
935 * config/arm/semi.h: Don't include aout.h.
936 * config/arm/semiaof.h: Don't include aof.h.
937 * config/arm/strongarm-coff.h: Don't include coff.h.
938 * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
939 * config/arm/vxarm.h: Don't include arm/coff.h.
940 * config/arm/xscale-coff.h: Don't include coff.h.
942 Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
944 * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
947 2001-11-16 Andreas Jaeger <aj@suse.de>
949 * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
951 (fixup_fallthru_exit_predecessor): ... this.
952 Change callers and prototype.
954 2001-11-16 Bernd Schmidt <bernds@redhat.com>
956 * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
957 hand; don't use gen_setcc_2.
958 (ix86_expand_builtin): Fix pshufw.
959 * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
960 case UNORDERED to emit the right assembler instruction.
961 (mmx_pshufw): Lose operand 2.
962 (cvtsi2ss): Fix representation.
964 (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
966 2001-11-16 Joseph S. Myers <jsm28@cam.ac.uk>
968 * doc/include/linux-and-gnu.texi: Remove.
970 * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
971 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
973 2001-11-16 Kazu Hirata <kazu@hxi.com>
975 * config/a29k/a29k.c: Fix comment formatting.
976 * config/a29k/a29k.h: Likewise.
977 * config/arc/arc.c: Likewise.
978 * config/arc/arc.h: Likewise.
979 * config/vax/vax.c: Likewise.
980 * config/vax/vax.h: Likewise.
981 * config/we32k/we32k.c: Likewise.
982 * config/we32k/we32k.h: Likewise.
984 2001-11-16 Jeff Law <law@redhat.com>
986 * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
987 creating a new jump insn.
989 Fri Nov 13 09:06:25 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
991 * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
992 copy misaligned data.
993 * varasm.c (assemble_variable): Set alignment into MEM when changed.
995 2001-11-16 Graham Stott <grahams@redhat.com>
997 * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1000 2001-11-16 Olivier Hainque <hainque@act-europe.fr>
1002 * except.c: Support for catching a list of types with a single handler
1003 (struct eh_region): Change type and filter to lists for catch regions.
1004 (mark_eh_region): Mark the filter list for GC also.
1005 (expand_start_catch): Always build a list if argument not NULL and
1006 register each type of the list through add_type_for_runtime.
1007 (duplicate_eh_region_1): Change type into type_list for catch regions.
1008 (assign_filter_values): Assign a filter to each type associated with a
1009 catch region. Assign filter for NULL types in a unique entry in the
1011 (build_post_landing_pads): Emit compare and jump for each filter of
1012 the list associated with a catch region.
1013 (reachable_next_level): When the type thrown is known, stop the search
1014 as soon as one type within a catch list matches. Also, a handler is
1015 potentially reachable only if at least one of the types it catches
1016 has not been previously caught.
1017 (collect_one_action_chain): Retrieve the filter for a NULL type list
1018 from the first filter list entry. For non NULL type lists, add an
1019 action record for every filter assigned.
1020 * except.h: Reflect changes in comment before expand_start_catch.
1022 Fri Nov 16 07:12:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1024 * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1027 Fri Nov 16 06:37:05 2001 Andreas Tobler <a.tobler@schweiz.ch>
1029 * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1031 2001-11-16 Jakub Jelinek <jakub@redhat.com>
1033 * c-lang.c (finish_file): Don't emit static inline functions if
1034 they weren't referenced.
1036 2001-11-15 Stan Shebs <shebs@apple.com>
1038 * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1040 2001-11-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1042 * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1044 * config/i386/i386.md: Likewise.
1046 Thu Nov 15 21:40:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1048 * timevar.c (rtl.h): Include so get fancy abort.
1050 2001-11-15 Dale Johannesen <dalej@apple.com>
1052 * config/darwin.h (SELECT_RTX_SECTION): Force address
1053 initializers into 'const' section
1054 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fix mode of
1055 if_then_else to match result, not operands
1057 Thu Nov 15 17:57:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1059 * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1060 * emit-rtl.c (change_address): Fix typo in default alignment.
1061 (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1062 * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1063 * rtl.h (REGNO_PTR_FRAME_P): New macro.
1065 * expr.c (store_field): Pass tree instead of max size; callers changed.
1066 Change handling of alignment.
1067 Only copy to_rtx if is TARGET.
1068 (expand_expr_unaligned): Delete; callers now use expand_expr.
1069 (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1070 (expand_assignment): Change handling of alignment.
1071 Only copy to_rtx if was original.
1072 (get_inner_reference): No longer return alginment; callers changed.
1073 (expand_expr, case COMPONENT_REF): Change handling of alignment.
1074 (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1075 (compare_from_rtx): Delete ALIGN parm; all callers changed.
1076 (do_compare_rtx_and_jump): Likewise.
1077 * expr.h: Reflect above changes.
1079 * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1080 to get_inner_reference.
1081 * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1082 * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1083 * optabs.c: Likewise.
1084 (prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
1085 (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1086 * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1087 compare_rtx_and_jump, and emit_cmp_jump_insns.
1088 * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1089 * function.c (assign_stack_temp_for_type): No longer static.
1090 * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1091 (prepare_cmp_insn): Delete declaration.
1092 * rtl.h (assign_stack_temp_for_type): Add declaration.
1093 * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1094 * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1095 * config/i386/i386.c,config/mips/mips.c: Likewise.
1096 * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1097 * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1099 2001-11-15 Stan Shebs <shebs@apple.com>
1101 * config/rs6000/rs6000.h: Fix a comment typo.
1102 (RTX_COSTS): Sort processor versions better.
1104 2001-11-15 Kazu Hirata <kazu@hxi.com>
1106 * config/h8300/h8300.md: Fix insn length of bit insns.
1108 2001-11-15 Jason Merrill <jason@redhat.com>
1110 * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1111 DIEs if there were errors in the source.
1113 * config/alpha/alpha-interix.h, config/alpha/elf.h,
1114 config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1115 config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1116 config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1117 config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1118 config/elfos.h, config/lynx.h, config/netware.h,
1119 config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1120 config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1121 uses to use ASM_LONG.
1123 2001-11-15 Alan Matsuoka <alanm@redhat.com>
1125 * gensupport.c process_include : Change call to alloca to
1128 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
1130 * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1133 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1135 * final.c (alter_subreg): If simplify_subreg can't do anything,
1136 handle REG ourselves and abort for others.
1138 2001-11-15 Richard Hodson <hodsonr@dionecorp.com>
1140 * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1143 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1145 * fix-header.c (read_scan_file): Update.
1147 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1149 * toplev.c (toplev_main): Don't start timing until after
1150 command-line options are parsed.
1152 2001-11-15 Andreas Schwab <schwab@suse.de>
1154 * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1155 makefile frag, not host makefile frag.
1156 (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1157 (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1159 (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1160 * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1161 * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1162 * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1163 * config/i386/t-dgux (STMP_FIXPROTO): Define.
1164 * config/x-interix: Don't define STMP_FIXPROTO and
1166 * config/t-interix: New file, define STMP_FIXPROTO.
1167 * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1168 * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1169 * config/t-svr4 (FIXPROTO_DEFINES): Define.
1170 * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1171 * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1172 * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1173 * config/m68k/t-hp3200: Renamed from x-hp3200.
1174 * config/i370/t-oe: Renamed from x-oe.
1175 * config/mips/t-iris: Renamed from x-iris.
1176 * config/pa/t-bsd: Renamed from x-pa.
1177 * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1178 * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1179 config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1180 config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1181 config/rs6000/x-cygwin: Remove files.
1183 * configure.in: Check for target objdump and use that in eh_frame
1185 * configure: Regenerated.
1187 2001-11-15 Jakub Jelinek <jakub@redhat.com>
1189 * jump.c (squeeze_notes): Return true if no real insns were found.
1190 * rtl.h (squeeze_notes): Adjust prototype.
1191 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1192 squeeze_notes finds no real instructions, abort.
1193 (merge_blocks_move_successor_nojumps): Likewise.
1194 * loop.c (find_and_verify_loops): Likewise.
1195 * stmt.c (expand_end_case): Likewise.
1196 * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1197 find any real instructions.
1199 * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1201 * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1202 conditional jump, request updating life into for the block
1203 containing it. Fix a typo which prevented life info update.
1204 Clear blocks bitmap before using it.
1206 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1208 * c-common.c: Include c-lex.h.
1209 (c_common_lang_init): Change prototype. Call init_c_lex and
1210 init_pragma from here.
1211 * c-common.h (c_common_lang_init): Change prototype.
1212 * c-decl.c (init_decl_processing): Rename. Call c_parse_init.
1213 * c-lang.c (c_init): Change prototype. Update.
1214 (c_init_options): Update.
1215 * c-lex.c (cpp_filename): Remove.
1216 (init_c_lex): Update. Read the main file, and get the original
1218 (yyparse): Finish the command line options.
1219 * c-parse.in (c_parse_init): Call init_reswords here.
1220 (init_parse): Remove.
1221 * c-tree.h (c_init_decl_processing): New.
1222 * cpphash.c (_cpp_init_hashtable): After initializing the hash
1224 * cppinit.c (read_original_filename, cpp_finish_options): New.
1225 (cpp_create_reader): New prototype. Defer hash table initialization.
1226 (cpp_start_read): Rename cpp_read_main_file. Initialize the
1227 hash table. Get the original filename.
1228 * cpplib.h (cpp_create_reader): Update.
1229 (cpp_start_read): Remove.
1230 (cpp_read_main_file, cpp_finish_options): New.
1231 * cppmain.c (main, do_preprocessing): Update.
1232 * langhooks.h (struct langhooks): Update init prototype.
1233 * toplev.c (general_init, parse_options_and_default_flags,
1234 process_options, lang_indpendent_init, lang_dependent_init,
1235 init_asm_output): New; perform the bulk of initialization.
1236 (compile_file): Move most of initialization to above functions.
1237 (debug_hooks): Initialize statically.
1238 (set_Wunused): Relocate.
1239 (toplev_main): Move most of initialization to other init functions.
1240 Have a clear logic flow.
1241 * tree.h (init_parse, init_decl_processing): Remove.
1243 * objc-act.c (objc_init): Update prototype, combine with old
1245 (objc_init_options): Update.
1248 2001-11-15 Andreas Jaeger <aj@suse.de>
1250 * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1252 * basic-block.h: Adjust prototype.
1254 2001-11-15 Kazu Hirata <kazu@hxi.com>
1256 * config/rs6000/aix31.h: Fix comment formatting.
1257 * config/rs6000/beos.h: Likewise.
1258 * config/rs6000/darwin.h: Likewise.
1259 * config/rs6000/eabi.asm: Likewise.
1260 * config/rs6000/linux.h: Likewise.
1261 * config/rs6000/linux64.h: Likewise.
1262 * config/rs6000/lynx.h: Likewise.
1263 * config/rs6000/netbsd.h: Likewise.
1264 * config/rs6000/rs6000.c: Likewise.
1265 * config/rs6000/rs6000.h: Likewise.
1266 * config/rs6000/rs6000.md: Likewise.
1267 * config/rs6000/sol2.h: Likewise.
1268 * config/rs6000/tramp.asm: Likewise.
1269 * config/rs6000/xcoff.h: Likewise.
1270 * config/rs6000/xm-beos.h: Likewise.
1272 2001-11-14 Alan Matsuoka <alanm@redhat.com>
1274 * rtl.def (INCLUDE) : Define.
1275 * gensupport.c (init_include_reader, process_include,
1276 save_string) : New functions to implement an include facility
1278 * gensupport.h : Add prototype for init_md_reader_args.
1279 * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1280 genextract.c genflags.c genopinit.c genoutput.c
1281 genpeep.c genrecog.c: Change call to init_md_reader to
1282 init_md_reader_args.
1283 * md.texi: Document (include "path") and -I directives for RTL
1286 2001-11-14 DJ Delorie <dj@redhat.com>
1288 * integrate.c (get_hard_reg_initial_reg): New.
1289 * integrate.h (get_hard_reg_initial_reg): Prototype.
1290 * local-alloc.c (block_alloc): Don't tie pseudos that
1291 represent call-saved hard regs' initial values.
1293 2001-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1295 * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1298 2001-11-14 Roger Sayle <roger@eyesopen.com>
1300 * fold-const.c (fold): Optimize strlen comparisons against zero.
1302 2001-11-14 David O'Brien <obrien@FreeBSD.org>
1304 * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1305 sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1306 sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1307 sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1308 sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1309 sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1310 sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1311 Include various CPU headers via tm_file. a.out based platforms now
1312 properly include sparc/aout.h. sol2.h usage now implies including
1313 elfos.h, svr4.h, and sparc/sysv4.h.
1314 * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1316 * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1317 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1318 DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1319 Remove. They are a.out specific and belong in sparc/aout.h.
1320 * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1321 ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1322 DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define. Moved here from
1324 * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1325 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
1326 Moved here from sparc/sparc.h.
1327 * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
1329 * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
1330 * config/sparc/lynx.h: Don't include lynx.h.
1331 (SELECT_SECTION): Do not undef.
1332 * config/sparc/openbsd.h: Don't include sparc/sparc.h.
1333 * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
1335 * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
1336 * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define. Get from
1338 * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1339 Don't undef, there is no need.
1340 * config/sparc/splet.h (CPP_PREDEFINES): Define.
1341 * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
1342 * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
1343 Don't include sparc/sparc.h.
1344 * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
1345 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1346 DATA_SECTION_ASM_OP): Don't undef, there is no need now. Don't include
1348 (TARGET_VERSION): Define.
1349 * config/sparc/vxsim.h (TARGET_VERSION): Define.
1351 Wed Nov 14 19:46:08 CET 2001 Jan Hubicka <jh@suse.cz>
1353 * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
1354 (cfg_layout_finalize): Use it.
1355 * bb-reorder.c (HAVE_epilogue): Remove.
1356 (make_reorder_chain): Do not care special placement of
1359 * predict.c (expected_value_to_br_prob): Delete the note
1362 * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
1363 measure integration time separately.
1365 Wed Nov 14 12:30:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1367 * function.c (struct temp_slot): ALIGN now unsigned.
1369 2001-11-14 Kazu Hirata <kazu@hxi.com>
1371 * config/dsp16xx/dsp16xx.c: Fix comment formatting.
1372 * config/dsp16xx/dsp16xx.h: Likewise.
1373 * config/dsp16xx/dsp16xx.md: Likewise.
1375 2001-11-14 Kazu Hirata <kazu@hxi.com>
1377 * config/h8300/h8300.c (get_shift_alg): Reorganize the code
1378 that deals with 7-bit shifts in HImode.
1380 Wed Nov 14 14:17:05 CET 2001 Jan Hubicka <jh@suse.cz>
1382 * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
1383 * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
1384 (final_scan_insn): Update call of alter_subreg.
1385 (cleanup_subreg_operands): Likewise.
1386 (alter_subreg): Rewrite using simplify_subreg.
1387 (output_address, output_operand): Update call of alter_subreg.
1388 * output.h (alter_subreg): Update prototype.
1389 * sdbout.c (sdbout_symbol): Update call of alter_subreg.
1390 * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
1391 * Makefile.in (final.o): Add dependency on expr.h
1393 Wed Nov 14 06:37:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1395 * c-lang.c (finish_file): Make I unsigned to eliminate warning.
1397 2001-11-13 Jeff Sturm <jsturm@one-point.com>
1399 * doc/install.texi (sparc-*-linux*): Mention requirements for
1402 2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
1404 * Makefile.in (POD2MAN): Don't include --section=1.
1405 (manext): Rename to man1ext. All users changed.
1408 (generated-manpages): Also depend on $(docdir)/gfdl.7,
1409 $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1410 ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1411 --section=1 in calls to $(POD2MAN).
1412 ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1413 (maintainer-clean, install, uninstall): Handle the new man pages.
1414 ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1415 (installdirs): Create man7dir.
1416 * doc/cpp.texi: Include GFDL in this manual. In the man page,
1417 refer to gfdl(7) for the GFDL. Apply Front Cover and Back Cover
1418 texts to man page. Include gpl(7), gfdl(7) and fsf-funding(7) in
1419 the SEE ALSO man page section.
1420 * doc/gcov.texi: Apply GFDL to man page. Include gpl(7), gfdl(7)
1421 and fsf-funding(7) in the SEE ALSO man page section.
1422 * doc/invoke.texi: Apply GFDL to man page. Include gpl(7),
1423 gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1424 * doc/include/fdl.texi, doc/include/funding.texi,
1425 doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1426 * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1428 2001-11-13 Richard Henderson <rth@redhat.com>
1430 * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1431 as appropriate for the artificial decl.
1433 2001-11-13 Richard Henderson <rth@redhat.com>
1435 * loop.c (combine_movables): Turn off combination until
1436 move_movables validation bugs are fixed.
1438 2001-11-13 DJ Delorie <dj@redhat.com>
1440 * config.gcc (powerpc|rs6000): Set default cpp options based
1441 on --with-cpu settings.
1442 * config/rs6000/softfloat.h: New.
1444 2001-11-13 Kazu Hirata <kazu@hxi.com>
1446 * config/h8300/h8300.c (shift_alg_si): Use special code for
1447 25-bit shifts on H8/S.
1448 (get_shift_alg): Generate special code for 25-bit shifts on
1451 2001-11-13 Jakub Jelinek <jakub@redhat.com>
1453 * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1454 (adjust_automodify_address_1): New.
1455 * expr.h (adjust_address, adjust_address_nv): Adjust.
1456 (adjust_automodify_address, adjust_automodify_address_nv): Define.
1457 (adjust_address_1): Update prototype.
1458 (adjust_automodify_address_1): Add prototype.
1459 * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1460 (store_by_pieces_2): Likewise.
1462 Tue Nov 13 05:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1464 * Makefile.in (explow.o): Now depends on ggc.h.
1465 * explow.c (ggc.h): Include.
1466 (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1468 * Makefile.in (expr.o): Depends on insn-attr.h.
1469 * expr.c (insn-attr.h): New include.
1470 (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1472 (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1473 (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1474 clean up related usage in ADDR_EXPR.
1475 (expand_expr_unaligned): Likewise.
1477 * emit-rtl.c (change_address): Fix typo in alias setting.
1479 2001-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1481 * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1483 2001-11-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1486 * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1487 GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1489 2001-11-12 David O'Brien <obrien@FreeBSD.org>
1491 * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1492 sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1493 sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1494 sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1495 sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1496 sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1497 sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1498 sparc64-*-linux*): Include various CPU headers via tm_file.
1499 * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1500 (SELECT_SECTION): Likewise.
1501 (SELECT_RTX_SECTION): Likewise.
1502 * config/sparc/sparc_bi.h: New file.
1503 * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1504 * config/sparc/linux-aout.h: Likewise.
1505 * config/sparc/linux.h: Don't include sparc/sysv4.h.
1506 * config/sparc/linux64.h: Likewise.
1507 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
1508 * config/sparc/lite.h: Don't include sparc/sparc.h and gofast.h.
1509 * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1511 (ASM_OUTPUT_IDENT): Do not #undef.
1512 (SELECT_SECTION): Likewise.
1513 (SELECT_RTX_SECTION): Likewise.
1514 * config/sparc/liteelf.h: Don't include gofast.h.
1515 * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1516 * config/sparc/lynx.h: Don't include sparc/sparc.h.
1517 * config/sparc/pbd.h: Likewise.
1518 * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1519 * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1520 * config/sparc/rtemself.h: Don't include rtems.h.
1521 * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1522 * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1524 * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1525 * config/sparc/sol2.h: Include sparc/sparc.h directly.
1526 * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1527 * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1528 * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1529 * config/sparc/sp86x-elf.h: Don't include gofast.h.
1530 * config/sparc/splet.h: Don't include sparc/aout.h.
1531 * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1532 * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1533 * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1534 * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1535 * config/sparc/vxsparc64.h: Don't include gofast.h.
1536 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
1538 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1540 * doc/standards.texi: Mention C99 TC1.
1542 2001-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1544 * mips-protos.h (mips_output_conditional_branch): Const-ify.
1545 * mips.c (mips_output_conditional_branch): Likewise.
1547 2001-11-12 Kazu Hirata <kazu@hxi.com>
1549 * config/h8300/h8300.c (shift_alg_si): Use special code for
1550 15-bit logical shifts and 31-bit logical shifts.
1551 (get_shift_alg): Generate special code for 15-bit and 31-bit
1554 2001-11-12 Kazu Hirata <kazu@hxi.com>
1556 * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1557 doing 6-bit logical shifts on H8/S.
1558 (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1559 (get_shift_alg): Generate special code for 21-bit shifts on
1562 2001-11-12 Kazu Hirata <kazu@hxi.com>
1564 * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1567 Mon Nov 12 11:58:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1569 * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1570 if both size and offset known.
1572 2001-11-12 David O'Brien <obrien@FreeBSD.org>
1574 * config/ia64/freebsd.h: Fix misspelling.
1576 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1578 * doc/gcc.texi: Move several chapters out to ...
1579 * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1580 doc/include/linux-and-gnu.texi, doc/interface.texi,
1581 doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1582 ... here. New files.
1583 * doc/gcc.texi, doc/contrib.texi: Move section headings into
1585 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1587 2001-11-12 Kazu Hirata <kazu@hxi.com>
1589 * config/alpha/alpha-interix.h: Fix comment formatting.
1590 * config/alpha/alpha.c: Likewise.
1591 * config/alpha/alpha.h: Likewise.
1592 * config/alpha/alpha32.h: Likewise.
1593 * config/alpha/freebsd.h: Likewise.
1594 * config/alpha/unicosmk.h: Likewise.
1595 * config/alpha/vms.h: Likewise.
1597 2001-11-12 Kazu Hirata <kazu@hxi.com>
1599 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1601 2001-11-12 Jakub Jelinek <jakub@redhat.com>
1603 * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1606 Mon Nov 12 05:18:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1608 * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1610 (replace_equiv_address): Call update_temp_slot_address.
1612 * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1614 * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1616 2001-11-12 Kazu Hirata <kazu@hxi.com>
1618 * config/h8300/h8300.c (shift_alg_qi): New.
1619 (shift_alg_hi): Likewise.
1620 (shift_alg_si): Likewise.
1621 (get_shift_alg): Change the type of count to unsigned int.
1624 2001-11-11 Alexandre Oliva <aoliva@redhat.com>
1626 * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1627 * c-decl.c (c_expand_body): Take argument can_defer_p. Use it
1628 to decide whether to defer a function.
1629 (finish_function): Adjust.
1630 (c_expand_deferred_function): New function.
1631 * c-lang.c (deferred_fns): New variable.
1632 (c_init): Initialize it, and mark it as a root.
1633 (defer_fn): New function.
1634 (finish_file): Expand all deferred functions.
1635 * c-tree.h (defer_fn): Declare.
1636 (c_expand_deferred_function): Likewise.
1637 * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1638 * objc-act.c (deferred_fns): New variable.
1639 (objc_init): Initialize it, and mark it as a root.
1640 (defer_fn): New function.
1641 (finish_file): Expand all deferred functions.
1643 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1645 * alpha.c (unicosmk_special_name): Prototype.
1646 (unicosmk_ssib_name): Delete unused variable.
1647 * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1648 * alpha/vms.h (PREFIX): Undef before defining.
1649 * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1650 * i370/i370.c (mvs_hash_alias): Prototype. Wrap with macro
1651 controlling usage. Const-ify.
1652 (alias_number): Delete unused variable.
1653 * m32r/m32r.c (m32r_sched_init): Add missing argument.
1654 (m32r_expand_block_move): Fix uninitialized warnings.
1655 * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1656 always true' warnings.
1657 * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1658 * sh/sh.c: Include "integrate.h".
1659 (output_far_jump): Fix uninitialized warning.
1660 * final.c (shorten_branches): Avoid automatic aggregate
1662 * integrate.c (subst_constants): Likewise.
1664 2001-11-11 Kazu Hirata <kazu@hxi.com>
1666 * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1667 (get_shift_alg): Remove redundant code.
1669 2001-11-11 Kazu Hirata <kazu@hxi.com>
1671 * config/pa/milli64.S: Fix comment formatting.
1672 * config/pa/pa-64.h: Likewise.
1673 * config/pa/pa-linux.h: Likewise.
1674 * config/pa/pa-protos.h: Likewise.
1675 * config/pa/pa.c: Likewise.
1676 * config/pa/pa.h: Likewise.
1677 * config/pa/pa32-linux.h: Likewise.
1678 * config/pa/pa32-regs.h: Likewise.
1679 * config/pa/pa64-hpux.h: Likewise.
1680 * config/pa/pa64-regs.h: Likewise.
1681 * config/pa/som.h: Likewise.
1683 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1685 * doc/gcc.texi: Move several chapters out to ...
1686 * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1687 doc/service.texi, doc/standards.texi, doc/trouble.texi,
1688 doc/vms.texi: ... here. New files.
1689 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1691 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1693 * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1694 cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1695 collect2.c, combine.c, config.in, configure, configure.in,
1696 conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1697 genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1698 reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1701 Sun Nov 11 05:56:01 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1703 * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1704 Adjust operand number in CONST_DOUBLE.
1706 * expmed.c (extract_bit_field): No longer pass in alignment.
1707 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1708 (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1710 * expr.c (store_constructor, store_constructor_field): Likewise.
1711 (store_field, emit_group_load, emit_group_store): Likewise.
1712 * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1713 (store_bit_field, extract_bit_field): Likewise.
1714 * calls.c, expr.c, function.c: Change calls to above functions.
1715 * ifcvt.c, stmt.c: Likewise.
1717 * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1718 constant and one is on frame.
1719 If know memref offset, adjust size from decl.
1721 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1723 * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1724 format specifier warning.
1725 * convex.h (ASM_OUTPUT_BYTE): Likewise.
1726 * elfos.h (ALIGN_ASM_OP): Undef before defining.
1727 * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1729 * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1730 * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1731 * i386-interix.h (gen_stdcall_suffix): Prototype.
1732 * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1733 * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1734 ASM_OUTPUT_LONG_DOUBLE): Likewise.
1735 * i386/interix.c (gen_stdcall_suffix): Const-ify.
1736 * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1737 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1739 * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1740 * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1741 ASM_OUTPUT_LONG_DOUBLE): Likewise.
1742 * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1743 * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1744 * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1745 * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1746 * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1747 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1748 * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1749 * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1751 * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1753 * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1754 * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1755 ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1757 * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1759 * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1761 * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1762 * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1763 * m68k/news.h (PRINT_OPERAND): Likewise.
1764 * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1765 ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1766 * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1767 * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1769 * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1770 ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1771 ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1772 * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1773 * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1774 ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1775 PRINT_OPERAND): Likewise.
1776 * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1778 * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1779 * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1780 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1781 * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1782 * mips.c (mips_output_external_libcall): Mark parameter with
1784 (mips_asm_file_start): Move variable into the scope where it's
1786 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1787 * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1788 * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1789 * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1790 * ns32k.c (print_operand): Likewise.
1791 * pa.c (print_operand, output_div_insn): Likewise.
1792 * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1793 ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1794 * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1795 * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1797 * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1798 * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1799 (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1800 * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1802 * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1804 * sdbout.c (sdbout_end_epilogue): Mark parameter with
1806 * varasm.c (assemble_global): Likewise.
1808 2001-11-11 H.J. Lu <hjl@gnu.org>
1810 * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1812 Sun Nov 11 01:26:00 CET 2001 Jan Hubicka <jh@suse.cz>
1814 * final.c (*_MAX_SKIP): Use *_max_skip variables.
1815 * flags.h (align_loops_max_skip, align_jumps_max_skip,
1816 align_labels_max_skip): New global variables.
1817 * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1818 align_labels_max_skip): New global variables.
1819 (toplev_main): Set new variables.
1820 * i386.c (override_options): Set max_skip values.
1822 2001-11-10 Geoffrey Keating <geoffk@redhat.com>
1824 * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
1825 * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
1826 * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
1827 don't print an @fptr for labels either.
1828 (xstormy16_output_addr_vec): Don't print @fptr here.
1829 * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
1831 Sat Nov 10 08:50:50 2001 Jeffrey A Law (law@cygnus.com)
1833 * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
1834 an ANSI/ISO definitino.
1835 (ssa_const_prop): Likewise.
1837 2001-11-10 Aldy Hernandez <aldyh@redhat.com>
1839 * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
1842 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1844 * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
1845 * cpplex.c (hex_digit_value): Use hex_p/hex_value.
1846 * cppmain.c (general_init): Call hex_init.
1847 * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
1849 * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
1851 * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
1852 of dgux.c:output_file_start().
1854 * i386/dgux.c: Delete file.
1856 2001-11-09 Richard Henderson <rth@redhat.com>
1858 * config/alpha/alpha.c (decl_in_text_section): New.
1859 (current_file_function_operand): Use it.
1860 (alpha_encode_section_info, alpha_end_function): Likewise.
1862 2001-11-07 David O'Brien <obrien@FreeBSD.org>
1864 * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
1865 * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
1866 they are OS specific. Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
1867 so OS specific files and use CPP_PREDEFINES for their needs.
1868 * config/i64/elf.h (TARGET_VERSION): Add. Also, move inclusion of
1869 target headers to tm_file.
1870 * config/ia64/aix.h (TARGET_VERSION): Likewise.
1871 * config/ia64/hpux.h (TARGET_VERSION): Likewise.
1872 * config/ia64/linux.h (TARGET_VERSION): Likewise.
1873 (FUNCTION_PROFILER): Remove.
1874 * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
1875 version in config/ia64/linux.h.
1876 * config/ia64/freebsd.h: New file.
1877 * config/freebsd.h: Tidy up.
1878 (_USING_CONFIG_FREEBSD): Define.
1879 (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
1880 (FBSD_CPP_SPEC): Define generic FreeBSD spec.
1881 (FBSD_STARTFILE_SPEC): Likewise.
1882 (FBSD_ENDFILE_SPEC): Likewise.
1883 (FBSD_LIB_SPEC): Likewise.
1884 (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
1885 (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
1886 set an ELF-improper one.
1888 2001-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
1890 * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
1891 constant can be loaded in a single instruction to a register. When
1892 loading immediate constants, use PLUS instead of HIGH/LO_SUM. Use
1893 depdi for insertion of most significant 32-bits on 64-bit hosts.
1894 * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
1895 with ldil/ldo/depdi instruction sequence on 64-bit hosts.
1896 * pa.md: New addmove pattern for adding constant_int to HImode
1897 register and moving result to HImode register. Remove HImode HIGH
1898 and LO_SUM patterns.
1900 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
1902 * Makefile.in: Update.
1903 * c-decl.c (print_lang_decl, print_lang_type): Remove.
1904 (print_lang_identifier): Rename c_print_identifier.
1905 * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1906 (print_lang_statistics, lang_print_xnode): Remove.
1907 * c-parse.in (set_yydebug): Rename c_set_yydebug.
1908 * c-tree.h (c_set_yydebug, c_print_identifier): New.
1909 * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
1910 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
1911 LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
1912 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1913 (LANG_HOOKS_INITIALIZER): Update.
1914 * langhooks.h (struct lang_hooks): New members.
1915 (lang_print_tree_hook): New.
1916 * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
1917 * print-tree.c: Include langhooks.h.
1918 (print_node): Update.
1919 * toplev.c (decode_d_option): Update.
1920 * tree.c: Include langhooks.h.
1921 (dump_tree_statistics): Update.
1922 * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
1923 print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
1925 * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
1926 LANG_HOOKS_SET_YYDEBUG): Override.
1927 (lang_print_xnode, print_lang_statistics): Remove.
1929 2001-11-09 Richard Henderson <rth@redhat.com>
1931 * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
1932 on the symbol string.
1934 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936 * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
1937 ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
1938 * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
1940 * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
1942 * tlink.c (recompile_files): Copy strings passed to `putenv'.
1944 2001-11-09 Geoffrey Keating <geoffk@redhat.com>
1946 * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
1947 (TYPE_READONLY): Likewise.
1949 * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
1951 * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
1952 don't pass --gdwarf2 to the assembler if the compiler will also
1955 * config/stormy16/stormy16.c (xstormy16_expand_casesi):
1958 Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1960 * alias.c (nonoverlapping_memrefs_p): New function.
1961 (true_dependence, canon_true_depenence, write_dependence_p): Call it.
1963 * emit-rtl.c (set_mem_attributes): Get alignments for constants.
1965 2001-11-09 Aldy Hernandez <aldyh@redhat.com>
1967 * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
1968 (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
1969 generating altivec code.
1970 (FIXED_REGISTERS): VRSAVE is fixed.
1971 (CALL_USED_REGISTERS): VRSAVE is call used.
1973 2001-11-09 Jason Eckhardt <jle@rice.edu>
1975 * config/mips/mips.c (mips_output_conditional_branch): Do not hard
1976 code the branch target as ".+16/.+12", but rather use labels.
1978 Fri Nov 9 11:27:42 2001 Jeffrey A Law (law@cygnus.com)
1980 * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
1981 to work around limitations of certain versions of GAS.
1983 * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
1984 (muldi3): Update due to SUBREG_BYTE changes.
1985 (casesi): Similarly.
1987 2001-11-09 Zack Weinberg <zack@codesourcery.com>
1989 * doc/invoke.texi: Remove comment referring to -xf77-version.
1991 2001-11-09 Kazu Hirata <kazu@hxi.com>
1993 * config/convex/convex.c: Fix comment formatting.
1994 * config/convex/convex.h: Likewise.
1996 2001-11-08 Zack Weinberg <zack@codesourcery.com>
1998 * Makefile.in (.po.pox): Look both in srcdir and builddir
2000 (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2001 to the source directory.
2003 2001-11-09 Ben Elliston <bje@redhat.com>
2004 Michael Meissner <meissner@redhat.com>
2005 Andrew MacLeod <amacleod@redhat.com>
2006 Richard Henderson <rth@redhat.com>
2007 Nick Clifton <nickc@redhat.com>
2008 Catherine Moore <clm@redhat.com>
2010 * m32r.c: Add support for m32rx processor.
2014 * m32r-protos.h: Add prototypes for m32rx functions.
2015 * doc/invoke.texi: Document -m32rx option.
2017 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2019 * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2022 2001-11-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2024 * doc/install.texi2html: Use $MAKEINFO --no-split.
2026 2001-11-09 Andreas Schwab <schwab@suse.de>
2028 * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2029 $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2030 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2031 $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2032 $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2034 2001-11-09 H.J. Lu <hjl@gnu.org>
2036 * config/mips/mips.c (mips_output_function_prologues): Cast
2037 `tsize' to long for output.
2039 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
2041 * c-lang.c (LANG_HOOKS_NAME): New.
2042 (lang_hooks): Constify.
2043 (c_init_options): Update.
2044 (lang_identify): Remove.
2045 * c-parse.in (language_string): Remove.
2046 * dbxout.c: Include langhooks.h.
2047 (dbxout_symbol_location): Update.
2048 * dwarf2out.c: Include langhooks.h.
2049 (gen_compile_unit_die): Update.
2050 * dwarfout.c: Include langhooks.h.
2051 (prototyped_attribute, output_compile_unit_die): Update.
2052 * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2053 (LANG_HOOKS_INITIALIZER): Update.
2054 * langhooks.h (struct lang_hooks): New members. Constify.
2055 * stringpool.c: Don't include toplev.h.
2056 (set_identifier_size): Remove.
2057 * toplev.c (toplev_main): Initialize identifier size.
2058 (print_version): Update.
2059 * tree.h (language_string, init_lex, lang_identify,
2060 set_identifier_size): Remove.
2061 * Makefile.in: Update dependencies.
2062 * config/darwin.c: Include langhooks.h.
2063 (func_name_maybe_scoped): Update.
2064 * config/darwin.h (ASM_END_FILE): Update.
2065 * config/nextstep.h (ASM_END_FILE): Update.
2066 * config/nextstep21.h (ASM_END_FILE): Update.
2067 * config/i386/sun386.h (ASM_END_FILE): Update.
2068 * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2069 (rs6000_output_function_epilogue): Update.
2071 * objc-act.c (LANG_HOOKS_NAME): Override.
2072 (struct lang_hooks): Constify.
2073 (objc_init_options): Update.
2074 (lang_identify): Remove.
2076 Fri Nov 9 00:25:18 EST 2001 John Wehle (john@feith.com)
2078 * fold-const.c (lshift_double): Honor PREC.
2079 (rshift_double): Likewise.
2081 2001-11-08 Kazu Hirata <kazu@hxi.com>
2083 * config/1750a/1750a.c: Fix comment formatting.
2084 * config/1750a/1750a.h: Likewise.
2086 2001-11-08 Phil Edwards <pedwards@disaster.jaj.com>
2088 * configure.in (--enable-languages): Be more permissive about
2089 syntax. Check for empty lists better. Warn about $LANGUAGES.
2090 * configure: Regenerated.
2092 2001-11-08 Richard Henderson <rth@redhat.com>
2094 * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2096 2001-11-08 Geoffrey Keating <geoffk@redhat.com>
2098 * config.gcc: Rename stormy16 to xstormy16.
2099 * config/stormy16/stormy-abi: Likewise.
2100 * config/stormy16/stormy16-protos.h: Likewise.
2101 * config/stormy16/stormy16.c: Likewise.
2102 * config/stormy16/stormy16.h: Likewise.
2103 * config/stormy16/stormy16.md: Likewise.
2105 2001-11-06 Geoffrey Keating <geoffk@redhat.com>
2107 * tree.h (TYPE_VOLATILE): Add enable-checking code.
2108 (TYPE_READONLY): Likewise.
2110 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2112 * reload1.c (reload): Don't delete equiv insn if can throw.
2114 * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2115 (clear_storage): Likewise, for OBJECT.
2117 Thu Nov 8 16:23:51 2001 Jeffrey A Law (law@cygnus.com)
2119 * pa.c (emit_move_sequence): Fix SUBREG expression to
2120 use proper byte offset when extending a constant from
2123 2001-11-09 Jakub Jelinek <jakub@redhat.com>
2125 * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2128 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2130 * explow.c (convert_memory_address, case SUBREG): Only return
2131 inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2133 2001-11-08 Richard Henderson <rth@redhat.com>
2135 * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2136 (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2137 (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2139 2001-11-08 Aldy Hernandez <aldyh@redhat.com>
2141 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2143 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2145 * dwarf2out.c (debug_str_hash): New.
2146 (struct indirect_string_node): New.
2147 (struct dw_val_struct): Change type of val_str to it.
2148 (DEBUG_STR_SECTION_FLAGS): Define.
2149 (add_AT_string): Push string into hashtable, increment reference
2151 (AT_string): Return string from ht_identifier.
2152 (AT_string_form): New.
2153 (free_AT): For dw_val_class_str, just decrement reference counter.
2154 (size_of_string): Remove.
2155 (size_of_die): Use AT_string_form to decide what size the string
2157 (size_of_pubnames): Use strlen instead of size_of_string.
2158 (value_format): Use AT_string_form for dw_val_class_str.
2159 (output_die): Output DW_FORM_strp strings using
2160 dw2_asm_output_offset.
2161 (indirect_string_alloc, output_indirect_string): New.
2162 (dwarf2out_finish): Emit .debug_str strings if there are any.
2164 2001-11-08 Andreas Franck <afranck@gmx.de>
2166 * configure.in: Add AC_ARG_PROGRAM to support program name
2167 transformation with --program-prefix, --program-suffix and
2168 --program-transform-name.
2169 * configure: Regenerated.
2170 * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2171 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2172 GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2173 PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2174 program_transform_name the way suggested by autoconf.
2175 (GCC_TARGET_INSTALL_NAME): Define.
2176 (install-driver): Use the transformed target alias name.
2178 2001-11-08 Richard Henderson <rth@redhat.com>
2180 * config/mips/mips.c (save_restore_insns): Remove GP from the
2181 restore registers mask early instead of special casing it inside
2184 2001-11-08 Neil Booth <neil@daikokuya.demon.co.uk>
2186 * cp/decl.c (shadow_warning): New function.
2187 (pushdecl): Improve -Wshadow warnings. Don't give both a warning
2188 and an error when a block scope decl shadows a parameter.
2190 2001-11-08 Richard Henderson <rth@redhat.com>
2192 * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2195 2001-11-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2197 * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2198 to implement floating negation on processors prior to PA 2.0.
2200 2001-11-08 Jakub Jelinek <jakub@redhat.com>
2202 * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2203 (USE_LINKONCE_INDIRECT): Define.
2204 (dw2_output_indirect_constant_1): Try to output indirect constants
2205 into linkonce sections if possible.
2206 (dw2_force_const_mem): Likewise. Register indirect_pool with GGC.
2207 (dw2_output_indirect_constants): Likewise.
2209 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2211 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2213 2001-11-07 Neil Booth <neil@daikokuya.demon.co.uk>
2215 * c-decl.c (pushdecl): Remove file and line.
2216 * c-typeck.c (pop_init_level): Remove size.
2218 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
2220 * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2223 * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2224 (TARGET_ALTIVEC): New.
2225 (TARGET_SWITCHES): Add altivec.
2226 (FIRST_PSEUDO_REGISTER): Change to 109.
2227 (CALL_USED_REGISTERS): Same.
2228 (FIRST_ALTIVEC_REGNO): New.
2229 (LAST_ALTIVEC_REGNO): New.
2230 (ALTIVEC_REGNO_P): New.
2231 (UNITS_PER_ALTIVEC_WORD): New.
2232 (ALTIVEC_VECTOR_MODE): New.
2233 (FIXED_REGISTERS): Add altivec registers.
2234 (REG_ALLOC_ORDER): Same.
2235 (HARD_REGNO_NREGS): Adjust for altivec registers.
2236 (HARD_REGNO_MODE_OK): Same.
2237 (MODES_TIEABLE_P): Same.
2238 (REGISTER_MOVE_COST): Same.
2239 (REGNO_REG_CLASS): Same.
2240 (reg_class): Add ALTIVEC_REGS.
2241 (REG_CLASS_NAMES): Same.
2242 (REG_CLASS_CONTENTS): Same.
2243 (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2244 (ALTIVEC_ARG_RETURN): New.
2245 (FUNCTION_VALUE): Handle VECTOR_TYPE.
2246 (LIBCALL_VALUE): Handle altivec vector modes.
2247 (VECTOR_MODE_SUPPORTED_P): New.
2248 (ALTIVEC_ARG_MIN_REG): New.
2249 (ALTIVEC_ARG_MAX_REG): New.
2250 (ALTIVEC_ARG_NUM_REG): New.
2251 (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2252 (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2253 (REGISTER_NAMES): Add altivec regs.
2254 (DEBUG_REGISTER_NAMES): Same.
2255 (ADDITIONAL_REGISTER_NAMES): Same.
2256 (rs6000_builtins): New.
2257 (MD_EXPAND_BUILTIN): New.
2258 (MD_INIT_BUILTINS): New.
2259 (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2260 for AltiVec instructions.
2261 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2262 (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2264 (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2265 (TARGET_SWITCHES): Add no-altivec.
2266 (DATA_ALIGNMENT): Align vectors to 128 bits.
2267 (TARGET_OPTIONS): Add abi= option.
2268 Add rs6000_abi_string extern.
2269 (LOCAL_ALIGNMENT): New.
2270 (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2271 (MASK_ALTIVEC_ABI): New.
2272 (TARGET_ALTIVEC_ABI): New.
2273 (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2275 (STACK_BOUNDARY): Adjust for altivec.
2276 (BIGGEST_ALIGNMENT): Same.
2277 (rs6000_args): Add vregno.
2278 (USE_ALTIVEC_FOR_ARG_P): New.
2279 (FIXED_REGISTERS): Add vrsave register.
2280 (CALL_USED_REGISTERS): Same.
2281 (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2282 (VRSAVE_REGNO): New.
2283 (reg_class): Add VRSAVE_REGS.
2284 (REG_CLASS_NAMES): Same.
2285 (REG_CLASS_CONTENTS): Same.
2286 (REGNO_REG_CLASS): Same.
2288 * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2289 (ABI_STACK_BOUNDARY): Same.
2290 (BIGGEST_ALIGNMENT): Same.
2291 (ADJUST_FIELD_ALIGN): Remove undef. Define anew.
2292 (ROUND_TYPE_ALIGN): Same.
2294 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2297 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2300 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2303 * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2304 (altivec_expand_builtin): New.
2305 (altivec_init_builtins): New.
2306 (TARGET_EXPAND_BUILTIN): New.
2307 (TARGET_INIT_BUILTINS): New.
2308 (rs6000_init_builtins): New.
2309 (struct builtin_description): New.
2311 (rs6000_reg_names): Add altivec registers.
2312 (alt_reg_names): Same.
2313 (secondary_reload_class): Altivec regs can hold altivec regs and
2315 (rs6000_emit_move): Force constants into memory for AltiVec moves.
2316 (print_operand): Add 'y' case for printing altivec memory
2318 (rs6000_legitimize_address): Legitimize vector addresses into
2320 (altivec_expand_binop_builtin): New.
2321 New string rs6000_current_abi.
2322 (rs6000_override_options): Call rs6000_parse_abi_options.
2323 (rs6000_parse_abi_options): New.
2324 (function_arg_boundary): Vector arguments must be 16
2326 (function_arg_advance): Handle vector arguments.
2327 (function_arg_partial_nregs): Same.
2328 (init_cumulative_args): Same.
2329 (function_arg): Same.
2331 * config/rs6000/rs6000.md (altivec_lvx): New.
2332 (type): Add altivec attribute.
2334 (*movv4si_internal): New.
2336 (*movv16qi_internal): New.
2338 (*movv8hi_internal1): New.
2340 (*movv4sf_internal1): New.
2341 (altivec_stvx): New.
2457 2001-11-07 Daniel Berlin <dan@cgsoftware.com>
2459 * Makefile.in (df.o): Add fibheap.h to dependencies.
2461 * df.h: Add prototypes for transfer functions, iterative_dataflow
2463 (enum df_flow_dir): New enum.
2464 (enum df_confluence_op): New enum.
2465 (struct df): Add inverse_rts_map.
2467 * df.c: Add sbitmap.h to the list of includes.
2468 (df_rd_global_compute): Removed.
2469 (df_ru_global_compute): Removed.
2470 (df_lr_global_compute): Removed.
2471 (df_rd_transfer_function): New function.
2472 (df_ru_transfer_function): New function.
2473 (df_lr_transfer_function): New function.
2474 (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2475 Use iterative_dataflow_bitmap instead of df_*_global_compute.
2476 (iterative_dataflow_sbitmap): New function.
2477 (iterative_dataflow_bitmap): New function.
2479 2001-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2481 * doc/gcc.texi: Move terminology and spelling conventions to
2482 htdocs/codingconventions.html.
2484 2001-11-07 Graham Stott <grahams@redhat.com>
2486 * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2488 Wed Nov 7 13:33:34 CET 2001 Jan Hubicka <jh@suse.cz>
2490 * expmed.c (expand_mult): Force operand to register before computing
2492 * i386.c (x86_decompose_lea): New global vairable.
2493 * i386.h (x86_decompose_lea): Declare.
2494 (TARGET_DECOMPOSE_LEA): New macro.
2495 (RTX_COST): Handle leas properly.
2497 2001-11-06 Richard Henderson <rth@redhat.com>
2499 * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2500 defined for a CONSTRUCTOR; don't check it.
2502 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
2504 * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2505 test for absolute pathnames.
2507 2001-11-06 Olivier Hainque <hainque@act-europe.fr>
2509 * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2510 instructions up to the target pc inclusive.
2512 2001-11-06 Steve Christiansen <smc@us.ibm.com>
2514 * loop.c (loop_regs_scan): Don't invalidate PIC register.
2516 2001-11-06 Eric Christopher <echristo@redhat.com>
2518 * config/mips/mips.md(movdf_internal2): Add constraints for float
2519 to general register move.
2520 * config/mips/elf64.h: Add default ABI.
2522 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2524 * alias.c:: Include langhooks.h.
2525 * emit-rtl.c: Similarly.
2526 * toplev.c: Similarly.
2527 * tree-inline.c: Similarly.
2528 * langhooks-def.h: New, the old langhooks.h. Give the default
2529 hooks a common prefix.
2530 * langhooks.h: Contents extracted from toplev.h.
2531 * toplev.h: Move langhook stuff to langhooks.h.
2532 * langhooks.c: Give default hooks a common prefix.
2534 * c-lang.c: Include langhooks-def.h.
2535 * objc/objc-act.c: Similarly.
2536 * Makefile.in: Update.
2537 * objc/Make-lang.in: Update.
2539 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
2541 * doc/install.texi: Document that configure options not listed in
2542 this file are unsupported. Document --with-system-zlib.
2544 Tue Nov 6 09:21:34 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2546 * rtl.h (mem_for_const_double): New declaration.
2547 * varasm.c (mem_for_const_double): New function.
2548 * config/convex/convex.md (movdf): Use it.
2549 * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2550 * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2551 * config/m68k/m68kv4.h: Likewise.
2553 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2554 of new GP reg classes.
2556 * expr.c (store_field): When making temp object for unaligned
2557 component, set it to alias set 0.
2559 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
2561 * c-common.c (c_expand_expr_stmt): Apply default conversions to
2562 non-lvalue arrays if C99.
2563 * c-typeck.c (default_conversion): Split out code handling
2564 array-to-pointer and function-to-pointer conversions into a
2565 separate default_function_array_conversion function.
2566 (default_function_array_conversion): New function. Keep track of
2567 whether any NON_LVALUE_EXPRs were stripped. Return non-lvalue
2568 arrays unchanged outside C99 mode instead of giving an error for
2570 (build_component_ref): Use pedantic_non_lvalue when handling
2571 COMPOUND_EXPR. Don't handle COND_EXPR specially.
2572 (convert_arguments): Use default_function_array_conversion.
2573 (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2575 (unary_complex_lvalue): Likewise.
2576 (internal_build_compound_expr): Use
2577 default_function_array_conversion. Apply default conversions to
2578 function in compound expression.
2579 (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2580 Use default_function_array_conversion.
2581 * doc/extend.texi: Update documentation of subscripting non-lvalue
2585 2001-11-05 Zack Weinberg <zack@codesourcery.com>
2587 * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2588 (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2589 corresponding to the complete set of .po and .gmo files in
2590 the source directory's po subdir, modified by LINGUAS. Don't
2591 look at ALL_LINGUAS.
2592 * configure.in: Don't set ALL_LINGUAS.
2593 * configure: Regenerate.
2595 * Makefile.in (.po.gmo): Don't move into source directory.
2596 (.po.pox): Clarify comments.
2597 (install-po): Look for .gmo files in both srcdir and objdir;
2598 don't fail if a file is totally missing.
2599 (distclean): rmdir ada subdirectory too.
2601 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
2603 * config/rs6000/rs6000.c (rs6000_select_section): Handle
2604 CONSTRUCTORs _correctly_.
2606 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2608 * c-decl.c (delete_block): Remove.
2609 * c-tree.h (delete_block): Remove.
2611 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2613 * cppexp.c (lex, parse_defined): Update warning about defined.
2615 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
2617 * config/rs6000/rs6000.c (rs6000_select_section): Handle
2620 2001-11-05 Nick Clifton <nickc@cambridge.redhat.com>
2622 * config/arm/arm.c (arm_return_in_memory): Cope with
2623 int_size_in_bytes returning -1.
2625 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2628 Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz>
2630 * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
2631 remove unneeded dependencies;
2633 * cfglayout.c, cfglayout.h: New files; break out from ...
2634 * bb-reorder.c: ... here; Remove unneeded includes;
2636 2001-11-04 Alan Modra <amodra@bigpond.net.au>
2638 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2640 2001-11-04 David Edelsohn <edelsohn@gnu.org>
2642 * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2643 mode as well. Do not explicitly create intermediate regs.
2645 2001-11-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2647 * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2648 (common_section): Delete unused variable.
2649 (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2650 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2651 * arm-protos.h (arm_poke_function_name, aof_add_import,
2652 aof_delete_import): Const-ify.
2653 * arm.c (legitimize_pic_address): Wrap variables in the macro
2654 controlling their usage.
2655 (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2656 (arm_poke_function_name, pic_chain, import, aof_add_import,
2657 aof_delete_import): Const-ify.
2658 * i386.c (ix86_osf_output_function_prologue): Const-ify.
2659 * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2660 ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2661 * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2662 * i860/sysv3.h: Add missing comment closure.
2663 * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2664 * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2665 to symbolic_operand.
2667 * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2668 (i960-*-*): Set tmake_file.
2669 (sparc86x-*-elf*): Fix typo in header name.
2671 * sched-rgn.c (schedule_insns): Delete unused variable.
2673 2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2676 * c-typeck.c (lookup_field): Rework to return a chain down to
2677 the looked-up field.
2678 (build_component_ref): Use the new lookup_field to handle
2679 nested anonymous entities correctly.
2681 Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2683 * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2684 Change parameters to gen_rtx_CONST_DOUBLE.
2685 (GEN_INT64, sparc_emit_set_const64): Likewise.
2686 * config/sparc/sparc.md (movdf split): Likewise.
2688 2001-11-03 Geoffrey Keating <geoffk@redhat.com>
2690 * unroll.c (calculate_giv_inc): Use find_last_value rather
2691 than just hoping the last instruction is the right SET.
2692 [Fixes 990604-1.c on stormy16.]
2694 * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2695 library at all if -T is used.
2697 * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2698 some uses of uninitialized variables in error cases.
2700 * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2701 look at 'temp' if we won't be using it.
2703 * config/stormy16/stormy16.h (CONST_COSTS): Define.
2704 (RTX_COSTS): Define.
2705 (ADDRESS_COST): Define.
2706 (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2708 * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2710 * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2711 stormy16_asm_output_mi_thunk.
2712 * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2714 * config/stormy16/stormy16-protos.h
2715 (stormy16_asm_output_mi_thunk): New prototype.
2717 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2719 * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2720 FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2721 caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2722 cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2723 sched-int.h, toplev.c, config/alpha/alpha.c,
2724 config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2725 config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2726 config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2727 config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2728 config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2729 config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2730 config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2732 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2734 * Makefile.in (dbxout.o): Depend on function.h.
2735 * collect2.c (is_in_list): Hide unused function.
2736 * dbxout.c: Include function.h.
2737 (source_label_number, dbxout_source_line, dbxout_source_file,
2738 dbxout_function_end, dbxout_begin_function): Wrap/move inside
2739 macros controlling usage.
2740 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2741 * output.h (exports_section): Prototype.
2743 * convex.c (convex_output_function_prologue): Fix format specifier
2745 (asm_declare_function_name): Fix signed/unsigned warning.
2746 (print_operand): Fix format specifier warning.
2747 * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2748 * dsp16xx-protos.h (uns_comparison_operator,
2749 num_1600_core_shifts): Prototype.
2750 * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2751 (frame_size, frame_pointer_offset): Delete.
2752 (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2753 Make static. Fix format specifier warnings.
2754 * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2755 (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2756 * dsp16xx.md: Add default case in switches.
2757 * fr30.h (IN_RANGE): Delete.
2758 * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2759 * mcore-protos.h (mcore_output_cmov): Const-ify.
2760 * mcore.c (mcore_output_cmov): Likewise.
2761 * mcore.h (switch_to_section): Make static and prototype.
2762 * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2763 unsigned>=0 warnings.
2764 * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2765 * rs6000-protos.h (read_only_data_section,
2766 read_only_private_data_section): Prototype.
2767 * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2768 * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2769 * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2771 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2773 * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2775 * final.c (final_scan_insn): Add brackets around body of if-stmt.
2776 * gcc.c (convert_filename): Add static prototype. Const-ify.
2777 Wrap variable in macros controlling its use.
2778 * output.h (sdata_section): Add prototype.
2780 * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2781 (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2782 * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2783 (ASM_FILE_START): Const-ify.
2784 (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2786 * c4x.md: Don't use the 'U' integer suffix.
2787 * clipper.md (clipper_movstr): Delete declaration.
2788 * d30v-protos.h (d30v_move_2words): Const-ify.
2789 (debug_stack_info): Add prototype.
2790 * d30v.c: Include "integrate.h".
2791 (d30v_function_arg_boundary, d30v_function_arg,
2792 d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2793 signed/unsigned warnings.
2794 (d30v_print_operand_memory_reference, d30v_move_2words):
2796 * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2797 * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2798 * fr30.md: Const-ify.
2799 * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2800 * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2801 (mvs_get_label_page): Hide unused static function.
2802 * i860.c (current_function_original_name): Const-ify.
2803 * i860/sysv3.h (current_function_original_name): Likewise.
2804 * i860/sysv4.h (current_function_original_name): Likewise.
2805 * i960.md: Add default case in switches. Remove unused variable.
2806 * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2807 * m32r.md: Const-ify.
2808 * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2809 * m68hc11.c: Include "reload.h".
2810 (static_chain_reg, print_options, m68hc11_asm_file_start):
2812 * m68hc11.md: Delete unused variable. Const-ify. Add parens
2813 around & in comparison.
2814 * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2815 * mn10200.c (shift_mode): Remove trailing comma.
2816 * mn10300-protos.h (output_tst): Const-ify.
2817 * mn10300.c (output_tst): Likewise.
2818 * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2820 * pa-protos.h (output_ascii): Use regular char *, not unsigned.
2821 * pa.c (output_ascii): Likewise.
2822 * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2823 * pdp11.md (expand_unop): Delete declarations.
2824 * pj-protos.h (pj_output_addsi3): Const-ify.
2825 * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
2826 pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
2827 unique_src_operand): Add prototypes.
2828 (pj_output_store_into_lval): Make definition static.
2829 (pj_function_incoming_arg): Don't use unary plus.
2830 (pj_output_addsi3): Const-ify.
2831 * romp.md (get_symref): Delete declarations.
2832 * v850-c.c (mark_current_function_as_interrupt): Don't return
2833 value from void function.
2834 * v850.c: Include "integrate.h".
2835 * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
2836 * vax-protos.h (const_section): Add prototype.
2838 2001-11-03 Aldy Hernandez <aldyh@redhat.com>
2840 * machmode.def: Add documentation for the seventh argument in
2843 2001-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2845 * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
2847 <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
2848 <-melf>: Don't have markup for ELF acronym.
2850 2001-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2852 * config.gcc (mmix-*-*): New target.
2853 * doc/invoke.texi: Document MMIX options.
2854 * doc/contrib.texi: Add note about MMIX port to my entry.
2855 * config/mmix/t-mmix: New file.
2856 * config/mmix/mmix.h: New file.
2857 * config/mmix/mmix-protos.h: New file.
2858 * config/mmix/mmix.c: New file.
2859 * config/mmix/mmix.md: New file.
2860 * config/mmix/crti.asm: New file.
2861 * config/mmix/crtn.asm: New file.
2863 2001-11-03 Kazu Hirata <kazu@hxi.com>
2865 * config/sparc/linux-aout.h: Fix comment formatting.
2866 * config/sparc/linux.h: Likewise.
2867 * config/sparc/linux64.h: Likewise.
2868 * config/sparc/lynx.h: Likewise.
2869 * config/sparc/pbd.h: Likewise.
2870 * config/sparc/sol2-sld-64.h: Likewise.
2871 * config/sparc/sol2.h: Likewise.
2872 * config/sparc/sparc.c: Likewise.
2873 * config/sparc/sparc.h: Likewise.
2874 * config/sparc/sparc.md: Likewise.
2875 * config/sparc/sunos4.h: Likewise.
2876 * config/sparc/vxsim.h: Likewise.
2877 * config/sparc/vxsparc.h: Likewise.
2878 * config/sparc/vxsparc64.h: Likewise.
2880 Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2882 * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
2883 reference to CONST_DOUBLE_MEM in comment.
2884 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
2885 (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
2886 (init_emit_once): Don't clear CONST_DOUBLE_MEM.
2887 * function.c (pop_function_context_from): Don't call
2888 restore_varasm_status.
2889 * function.h (restore_varasm_status): Delete declaration.
2890 * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
2892 * rtl.def (CONST_DOUBLE): Update comment.
2893 * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
2894 (CONST_DOUBLE_CHAIN): Likewise.
2895 (CONST_DOUBLE_MEM): Delete.
2896 (gen_rtx_CONST_DOUBLE): Update parameters.
2897 * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
2898 Remove reference to CONST_DOUBLE_MEM.
2899 (const_alias_set): New variable.
2900 (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
2901 (immed_real_const_1): Adjust tests for 0, 1, and 2.
2902 Don't set CONST_DOUBLE_MEM.
2903 (clear_const_double_mem): Don't do anything with const_tiny_rtx.
2904 (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
2905 Put constant in const_alias_set.
2906 (struct pool_constant): ALIGN now unsigned.
2907 OFFSET now HOST_WIDE_INT.
2909 (restore_varasm_status): Deleted.
2910 (mark_pool_constant): Mark desc->rtl.
2911 (force_const_mem): Rework to store rtl in hash table,
2912 not CONST_DOUBLE_MEM.
2913 Put constant in const_alias_set.
2914 (find_pool_constant): Check desc->rtl.
2915 (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
2916 (init_varasm_once): Initialize const_alias_set.
2918 * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
2921 * reload.c (combine_reloads): Don't combine an output reload if there
2922 are other reloads around for part of the output.
2924 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
2925 constant expression.
2926 (set_mem_decl): New function.
2927 * expr.h (set_mem_decl): New declaration.
2928 * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
2929 (output_asm_operand_names): Add tab.
2930 * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
2932 * builtins.c (get_memory_rtx): Properly set MEM alias set and
2935 2001-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
2937 * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
2938 Use "invalid" instead of "illegal". Use @r in comments in
2941 2001-11-02 Neil Booth <neil@daikokuya.demon.co.uk>
2943 * c-decl.c (pushdecl): Move block inside if conditional to remove
2944 possibility of a segfault. Lookup block-level extern
2945 variables in enclosing scopes correctly.
2947 * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
2949 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
2951 * expmed.c (store_bit_field): Use simplify_gen_subreg to make
2952 SUBREG so we avoid SUBREGing memory.
2954 * expmed.c (store_bit_field): Same.
2956 2001-11-02 DJ Delorie <dj@redhat.com>
2958 * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
2959 using FP registers for DImode mem-mem moves is acceptable.
2961 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
2963 * builtins.c (apply_args_size): Handle vector arguments.
2964 (apply_result_size): Same.
2966 * machmode.def: Set WIDER mode field for all vector entries.
2968 2001-11-02 Graham Stott <grahams@redhat.com>
2970 * recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
2972 2001-11-01 Eric Christopher <echristo@redhat.com>
2974 * config.gcc: Revert part of earlier patch.
2975 * config/mips/linux.h: Ditto.
2976 * df.c: Include tm_p.h to avoid warnings.
2977 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust
2979 * config/mips/mips.c: Define mips_abi regardless.
2980 (mips_output_function_prologues): Add long casts for .frame
2982 (override_options): Allow use of ABI_32.
2984 2001-11-01 Kazu Hirata <kazu@hxi.com>
2986 * config/m68hc11/m68hc11.c: Fix comment formatting.
2987 * config/m68hc11/m68hc11.h: Likewise.
2988 * config/m68hc11/m68hc11.md: Likewise.
2990 2001-11-01 Neil Booth <neil@daikokuya.demon.co.uk>
2992 * c-typeck.c (default_conversion): Retain the original expression
2994 * gcc.dg/Wparentheses.c: New tests.
2996 2001-11-01 David S. Miller <davem@redhat.com>
2998 * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
2999 64-bit Sparc description more in line with reality.
3001 2001-11-01 Joseph S. Myers <jsm28@cam.ac.uk>
3003 * Makefile.in (GCOV_OBJS): Add version.o.
3004 * gcov.c: Include "version.h" and <getopt.h>.
3005 (gcov_version_string): Remove.
3006 (print_usage): Take a parameter to determine whether this is a
3007 call from --help or an error message. Give fuller output that
3008 follows the GNU Coding Standards for --help.
3009 (print_version): New function.
3011 (process_args): Use getopt_long. Support long options. Follow
3012 GNU Coding Standards for --help and --version.
3013 * doc/gcov.texi: Document long options.
3014 Addresses part of PR other/704.
3016 2001-11-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
3018 * pa.c (output_move_double): Fix typo in double load.
3020 2001-11-01 Kazu Hirata <kazu@hxi.com>
3022 * config/h8300/h8300.c (h8300_encode_label): Compute a string
3023 before passing it to ggc_alloc_string.
3025 2001-11-01 Kazu Hirata <kazu@hxi.com>
3027 * config/m68k/3b1.h: Fix comment formatting.
3028 * config/m68k/3b1g.h: Likewise.
3029 * config/m68k/a-ux.h: Likewise.
3030 * config/m68k/amix.h: Likewise.
3031 * config/m68k/apollo68.h: Likewise.
3032 * config/m68k/atari.h: Likewise.
3033 * config/m68k/aux-exit.c: Likewise.
3034 * config/m68k/ccur-GAS.h: Likewise.
3035 * config/m68k/crds.h: Likewise.
3036 * config/m68k/dpx2.h: Likewise.
3037 * config/m68k/dpx2g.h: Likewise.
3038 * config/m68k/hp310.h: Likewise.
3039 * config/m68k/hp320.h: Likewise.
3040 * config/m68k/isi.h: Likewise.
3041 * config/m68k/linux.h: Likewise.
3042 * config/m68k/lynx.h: Likewise.
3043 * config/m68k/m68k-psos.h: Likewise.
3044 * config/m68k/m68k.c: Likewise.
3045 * config/m68k/m68k.h: Likewise.
3046 * config/m68k/m68k.md: Likewise.
3047 * config/m68k/m68kelf.h: Likewise.
3048 * config/m68k/m68kv4.h: Likewise.
3049 * config/m68k/mot3300.h: Likewise.
3050 * config/m68k/news.h: Likewise.
3051 * config/m68k/next.h: Likewise.
3052 * config/m68k/pbb.h: Likewise.
3053 * config/m68k/plexus.h: Likewise.
3054 * config/m68k/sgs.h: Likewise.
3055 * config/m68k/sun3.h: Likewise.
3056 * config/m68k/tower.h: Likewise.
3057 * config/m68k/vxm68k.h: Likewise.
3059 2001-10-31 DJ Delorie <dj@redhat.com>
3061 * config/mips/mips.h (mips_cache_flush_func): Prototype.
3062 (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3063 (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3064 * config/mips/mips.c (mips_cache_flush_func): New.
3065 * doc/invoke.texi: Document the new options.
3067 2001-10-31 Hans-Peter Nilsson <hp@axis.com>
3069 * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3070 * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3072 * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3074 * config/cris/cris.c: Include output.h after tree.h but before
3077 2001-10-31 Zack Weinberg <zack@codesourcery.com>
3079 * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3080 (INTL_SUBDIRS): Just intl.
3081 (.SUFFIXES): Add .gmo .po .pox.
3082 (native): Also depend on build-@POSUB@.
3083 (intl.all, intl.install): Depend on config.h and things it includes.
3084 (po-generated): New target; depend on c-parse.c and tradcif.c.
3085 (install-normal): Also depend on install-@POSUB@.
3086 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3087 (build-, install-, build-po, update-po, install-po,
3088 .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3090 * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3091 * configure.in: Don't munge XGETTEXT. Don't generate
3093 * configure: Regenerate.
3095 * exgettext: Delete.
3096 * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3097 * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3099 2001-10-31 Kazu Hirata <kazu@hxi.com>
3101 * config/h8300/h8300.md (two anonymous patterns): New.
3103 2001-10-31 Aldy Hernandez <aldyh@redhat.com>
3105 * tree.h (tree_index): Add support for V16QI and V8HI.
3106 (V8HI_type_node): New.
3107 (V16QI_type_node): New.
3109 * tree.c (build_common_tree_nodes_2): Same.
3111 * c-common.c (type_for_mode): Same.
3113 2001-10-31 Kazu Hirata <kazu@hxi.com>
3115 * config/i386/att.h: Fix comment formatting.
3116 * config/i386/beos-elf.h: Likewise.
3117 * config/i386/bsd.h: Likewise.
3118 * config/i386/bsd386.h: Likewise.
3119 * config/i386/crtdll.h: Likewise.
3120 * config/i386/cygwin.asm: Likewise.
3121 * config/i386/cygwin.h: Likewise.
3122 * config/i386/djgpp.h: Likewise.
3123 * config/i386/freebsd-aout.h: Likewise.
3124 * config/i386/freebsd.h: Likewise.
3125 * config/i386/gas.h: Likewise.
3126 * config/i386/i386-interix.h: Likewise.
3127 * config/i386/i386-protos.h: Likewise.
3128 * config/i386/i386.c: Likewise.
3129 * config/i386/i386.h: Likewise.
3130 * config/i386/i386.md: Likewise.
3131 * config/i386/i386elf.h: Likewise.
3132 * config/i386/interix.c: Likewise.
3133 * config/i386/isc.h: Likewise.
3134 * config/i386/isccoff.h: Likewise.
3135 * config/i386/iscdbx.h: Likewise.
3136 * config/i386/linux.h: Likewise.
3137 * config/i386/lynx.h: Likewise.
3138 * config/i386/mingw32.h: Likewise.
3139 * config/i386/netbsd-elf.h: Likewise.
3140 * config/i386/next.h: Likewise.
3141 * config/i386/osf1elf.h: Likewise.
3142 * config/i386/osfrose.h: Likewise.
3143 * config/i386/sco5.h: Likewise.
3144 * config/i386/seq-gas.h: Likewise.
3145 * config/i386/seq-sysv3.h: Likewise.
3146 * config/i386/sequent.h: Likewise.
3147 * config/i386/sol2.h: Likewise.
3148 * config/i386/sun386.h: Likewise.
3149 * config/i386/uwin.asm: Likewise.
3150 * config/i386/uwin.h: Likewise.
3151 * config/i386/vxi386.h: Likewise.
3152 * config/i386/win32.h: Likewise.
3153 * config/i386/winnt.c: Likewise.
3154 * config/i386/xm-cygwin.h: Likewise.
3155 * config/i386/xm-mingw32.h: Likewise.
3157 2001-10-31 Kazu Hirata <kazu@hxi.com>
3159 * builtins.def: Fix comment typos.
3160 * config/alpha.c: Likewise.
3161 * config/arm/arm.c: Likewise.
3162 * config/avr/avr.h: Likewise.
3163 * config/d30v/d30v.c: Likewise.
3164 * config/d30v/d30v.h: Likewise.
3165 * config/d30v/d30v.md: Likewise.
3166 * config/dsp16xx/dsp16xx.c: Likewise.
3167 * config/fr30/fr30.c: Likewise.
3168 * config/fr30/fr30.md: Likewise.
3169 * config/i386/i386.c: Likewise.
3170 * config/i860/i860.c: Likewise.
3171 * config/i960/i960.c: Likewise.
3172 * config/ia64/ia64.c: Likewise.
3173 * config/mips/mips.c: Likewise.
3174 * config/pa/pa.c: Likewise.
3175 * config/rs6000/rs6000.c: Likewise.
3176 * config/s390/s390.c: Likewise.
3177 * config/sparc/sparc.c: Likewise.
3179 2001-10-30 Kazu Hirata <kazu@hxi.com>
3181 * config/mips/elf.h: Fix comment formatting.
3182 * config/mips/elf64.h: Likewise.
3183 * config/mips/iris5.h: Likewise.
3184 * config/mips/iris5gas.h: Likewise.
3185 * config/mips/iris6.h: Likewise.
3186 * config/mips/isa3264.h: Likewise.
3187 * config/mips/linux.h: Likewise.
3188 * config/mips/mips.c: Likewise.
3189 * config/mips/mips.h: Likewise.
3190 * config/mips/mips.md: Likewise.
3191 * config/mips/mips16.S: Likewise.
3192 * config/mips/netbsd.h: Likewise.
3193 * config/mips/osfrose.h: Likewise.
3194 * config/mips/r3900.h: Likewise.
3195 * config/mips/sni-svr4.h: Likewise.
3196 * config/mips/svr4-t.h: Likewise.
3197 * config/mips/ultrix.h: Likewise.
3199 2001-10-30 Daniel Berlin <dan@cgsoftware.com>
3201 * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3202 when we update head->current.
3204 2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
3206 * tree.c (id_string_size): Remove.
3207 (dump_tree_statistics): Update.
3208 * toplev.c (compile_file): If dumping stats, dump tree stats too.
3210 Tue Oct 30 19:00:43 CET 2001 Jan Hubicka <jh@suse.cz>
3212 * sched-rgn.c (schedule_insns): Fix comment.
3214 2001-10-30 Zack Weinberg <zack@codesourcery.com>
3216 * configure.in: Correct previous change: don't assume that
3217 gas's version number _isn't_ the last thing on the line, or
3218 isn't the only number on the line, either.
3219 * configure: Regenerate.
3221 2001-10-30 Kazu Hirata <kazu@hxi.com>
3223 * cfgcleanup.c: Fix a comment typo.
3225 2001-10-30 Kazu Hirata <kazu@hxi.com>
3227 * alias.c: Fix comment formatting.
3228 * recog.c: Likewise.
3229 * config/cris/cris.c: Likewise.
3230 * config/cris/cris.h: Likewise.
3231 * config/i960/i960.c: Likewise.
3232 * config/i960/i960.h: Likewise.
3234 2001-10-30 Kazu Hirata <kazu@hxi.com>
3236 * config/arm/arm.c: Fix a comment typo.
3237 * config/arm/arm.h: Likewise.
3238 * config/ia64/ia64.c: Likewise.
3240 2001-10-30 Jakub Jelinek <jakub@redhat.com>
3242 * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3243 REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
3244 * rtl.h (set_unique_reg_note): Change return value.
3245 * gcse.c (try_replace_reg): Use set_unique_reg_note.
3246 * cse.c (cse_insn): Likewise.
3247 * expr.c (emit_move_insn): Likewise.
3248 * explow.c (force_reg): Likewise.
3249 * local-alloc (update_equiv_regs): Likewise.
3250 * loop.c (move_moveables, load_mems): Likewise.
3251 * reload (find_reloads): Likewise.
3253 2001-10-30 Paolo Bonzini <bonzini@gnu.org>
3256 * c-decl.c (parmlist_tags_warning, start_struct,
3257 check_for_loop_decls): Separate messages for struct, union and
3258 enum cases to allow for languages in which they have different
3260 * c-format.c (scanf_flag_specs): Separate short and long name of
3261 the assignment suppression feature.
3262 (check_format_types): Localize "pointer" and "different types"
3264 * c-lex.c (lex_number): Localize "an unsigned long int" and
3266 (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3268 * c-typeck.c (build_unary_up): Separate messages for increment and
3269 decrement cases to allow for languages in which they use different
3270 articles. Localize the strings "increment" and "decrement" in one
3273 Tue Oct 30 11:08:11 CET 2001 Jan Hubicka <jh@suse.cz>
3275 * lcm.c (optimize_mode_switching): Do not rebuild liveness information
3276 when no changes has been made.
3278 * gcse.c (reg_set_bitmap): Turn into reg_set.
3279 (modify_mem_list_set, canon_modify_mem_list_set)
3280 (clear_modify_mem_tables, free_modify_mem_tables): New.
3281 (gcse_main); Use free_modify_mem_tables.
3282 (free_gcse_mem): Likewise; free the bitmaps.
3283 (alloc_gcse_main): Initialize the bitmaps.
3284 (canon_list_insert): Set canon_modify_mem_list_set.
3285 (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3286 (compute_hash_table): Use clear_modify_mem_tables.
3287 (reset_opr_set_tables): Likewise.
3288 (oprs_not_set_p): reg_set_bitmap is regset.
3289 (mark_set, mark_clobber): Likewise.
3291 * df.h (DF_EQUIV_NOTES): New constant.
3292 (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3295 * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3296 (init_regions, schedule_insns): Conditionalize the checking
3297 code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3299 Tue Oct 30 11:02:31 CET 2001 Jan Hubicka <jh@suse.cz>
3301 * i386.md (movti_rex64 splitter): Fix condition.
3303 2001-10-29 Zack Weinberg <zack@codesourcery.com>
3305 * configure.in: Do not assume that gas's version number is the
3306 last thing on the first line of as --version output.
3307 * configure: Regenerate.
3309 * tradcpp.c: Include intl.h. Rename WARNING, ERROR, FATAL to
3310 MT_WARNING, MT_ERROR, MT_FATAL.
3311 (main): Call gcc_init_libintl.
3312 (v_message): Call gettext on msgid and "warning: "
3313 * tradcif.y: Include intl.h.
3314 (yyerror): Make parameter definition consistent with
3315 prototype. Call gettext on msgid argument.
3317 2001-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3319 * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3322 * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3324 Mon Oct 29 19:22:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3326 * reload1.c (eliminate_regs): Test for reg_renumber being allocated
3327 before referencing it.
3329 2001-10-26 DJ Delorie <dj@redhat.com>
3331 * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
3332 override -G, and force -G0.
3334 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3336 * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
3337 FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
3338 c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
3339 timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
3341 * loop.h (struct induction): Rename ext_dependant to
3343 * loop.c: Change all uses.
3344 (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
3345 All callers changed.
3346 * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
3348 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3350 * c-parse.in (expr_no_commas, primary), c-typeck.c
3351 (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
3353 2001-10-29 David Edelsohn <edelsohn@gnu.org>
3355 Undo assemble_name change in earlier patch.
3357 Mon Oct 29 21:11:40 2001 Nicola Pero <n.pero@mi.flashnet.it>
3359 * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
3360 determining the type of the receiver, do not check that TREE_CODE
3361 of receiver is CALL_EXPR before calling receiver_is_class_object().
3362 (receiver_is_class_object): For the GNU runtime: recognize
3363 the case that the receiver is self in a class method context.
3364 Check that TREE_CODE of receiver is CALL_EXPR when checking that
3365 the receiver is a call to objc_get_class.
3367 2001-10-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3369 * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
3371 Mon Oct 29 07:23:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3373 * Makefile.in (OBJS): Put all files in alphabetical order.
3375 * dwarf2out.c (add_const_value_attribute): Fix error in last
3378 Mon Oct 29 12:43:06 CET 2001 Jan Hubicka <jh@suse.cz>
3380 * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
3381 * cfgcleanup.c (merge_blocks): Update the life flag after merging;
3383 * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
3384 (life_analysis): call purge_all_dead_edges after deleting noops.
3385 (delete_noop_move): Do not purge CFG.
3386 * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
3388 2001-10-28 David Edelsohn <edelsohn@gnu.org>
3390 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
3391 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
3392 (ASM_GLOBALIZE_LABEL): Use assemble_name.
3393 (ASM_OUTPUT_COMMON): Likewise.
3394 * config/rs6000/rs6000.c (print_operand): Use assemble_name.
3395 (rs6000_output_function_epilogue): Likewise.
3396 (output_mi_thunk): Fix typo.
3397 (rs6000_output_symbol_ref): Use assemble_name.
3398 (output_toc): Likewise.
3399 * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
3400 * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
3401 assemble_name calls STRIP_NAME_ENCODING.
3402 (ASM_OUTPUT_LABEL): Use assemble_name.
3403 (ASM_GLOBALIZE_LABEL): Likewise.
3404 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3405 (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op. Use assemble_name.
3406 (ASM_OUTPUT_LOCAL): Likewise.
3408 Sun Oct 28 15:45:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3410 * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3411 (expand_builtin_apply, expand_builtin_return): Likewise.
3412 (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3414 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3416 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3417 ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3418 c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3419 configure, configure.in, except.c, except.h, flow.c, function.c,
3420 gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3421 predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3422 sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3423 unroll.c: Fix spelling errors.
3425 * doc/extend.texi, doc/invoke.texi: Fix spelling.
3427 * doc/gcc.texi: Document use of "dependent" and American spelling.
3429 Sun Oct 28 17:05:36 CET 2001 Jan Hubicka <jh@suse.cz>
3431 * expr.c (emit_group_load): Support CONCATs by storing them to memory
3434 Sun Oct 28 09:59:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3436 * expr.c (store_constructor_field): Only call adjust_address on MEM.
3438 Sun Oct 28 16:48:09 CET 2001 Jan Hubicka <jh@suse.cz>
3440 * genrecog.c (write_switch): Output if before switch for
3441 DT_elt_zero_wide_safe.
3443 2001-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3445 * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3446 * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3447 (FUNCTION_PROFILER): Const-ify.
3448 * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3449 (eliminate_constant_term, assemble_name, output_addr_const):
3450 Remove declarations.
3451 (ptr_half_pic_address_p, half_pic_hash): Prototype.
3452 (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3453 half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3454 * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3455 (half_pic_declare, half_pic_external): Const-ify.
3456 * toplev.c: Include "halfpic.h".
3458 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3460 * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3461 config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3462 config/i386/i386.c, config/i386/i386-interix.h,
3463 config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3464 config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3465 config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3466 config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3467 config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3468 config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3469 config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3472 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3473 ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3474 c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3475 collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3476 haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3477 regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3478 system.h, toplev.c: Fix spelling errors.
3480 Sat Oct 27 17:32:04 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3482 * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3484 * dwarf2out.c (reg_number): Abort if pseudo.
3485 (reg_loc_descriptor): Return 0 if pseudo.
3486 (is_based_loc): Return 0 if pseudo.
3487 (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3489 (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3490 (loc_descriptor): Return 0 if can't find location and handle 0
3491 return from recursive calls.
3492 (loc_descriptor_from_tree): Likewise.
3493 Fix handling of indirect.
3494 Also return 0 for PLACEHOLDER_EXPR.
3495 Clean up COMPONENT_REF cases.
3496 (add_AT_location_descriptor): Simplify, but handle 0 return from
3498 (add_const_value_attribute): Avoid shift count warning.
3499 (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3500 Set comp_unit_die as context if not in function.
3502 * config/mips/mips-protos.h: Break up long lines.
3503 Remove needless #ifdef/#endif blocks.
3504 Don't declare functions declared in file made by genpreds or recog.h.
3505 * config/mips/mips.c (mips_output_function_prologue): TSIZE
3506 is now HOST_WIDE_INT; delete unneeded casts.
3507 * config/mips/mips.h: Don't use #elif.
3509 * expr.c (stor_constructor_field): Always call adjust_address.
3510 Copy TARGET before changing its alias set.
3511 (store_field): Likewise, for TO_RTX.
3512 (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3514 (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3515 (find_placeholder): Return 0 if can't find object.
3516 (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3519 Sat Oct 27 16:31:23 CEST 2001 Jan Hubicka <jh@suse.cz>
3521 * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3523 Sat Oct 27 12:12:09 CEST 2001 Jan Hubicka <jh@suse.cz>
3525 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3526 merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3527 (merge_blocks): Properly udpate life after making edge nonfallthru.
3528 * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3530 2001-10-26 Kazu Hirata <kazu@hxi.com>
3532 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3534 2001-10-26 Neil Booth <neil@daikokuya.demon.co.uk>
3536 * c-typeck.c (convert_arguments): When comparing for enumeral
3537 type equality, use TYPE_MAIN_VARIANT.
3538 * gcc.dg/Wconversion.c: New tests.
3540 2001-10-26 Kazu Hirata <kazu@hxi.com>
3542 * s390/s390.c: Fix comment typos.
3543 * s390/s390.h: Likewise.
3544 * s390/s390.md: Likewise.
3546 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3548 * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3549 (walk_tree): Use it for tail calls where appropriate.
3551 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3553 * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3554 non-local label_refs.
3556 2001-10-26 Kazu Hirata <kazu@hxi.com>
3558 * config/h8300/h8300.md (4 anonymous patterns): New.
3560 2001-10-26 Kazu Hirata <kazu@hxi.com>
3562 * config/h8300/h8300.c (get_shift_alg): Clean up. Return the
3563 algorithm through the shift_info structure.
3564 (emit_a_shift): Update the use of get_shift_alg.
3566 2001-10-27 Daniel Berlin <dan@cgsoftware.com>
3568 * sched-rgn.c: Remove bitset typedef.
3569 Change bitset to sbitmap in prototypes / variable types.
3571 Remove edgeset_bits.
3572 Remove edgeset_size.
3573 s/BITSET_ADD/SET_BIT/g
3574 s/BITSET_INVERT/sbitmap_ones/g
3575 s/BITSET_INTER/sbitmap_a_and_b/g
3576 s/BITSET_UNION/sbitmap_a_or_b/g
3577 s/BITSET_DIFFER/sbitmap_difference/g
3578 s/bitset_member/TEST_BIT/g
3579 (BITSET_*): Removed.
3580 (bitset_member): Removed.
3581 (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3582 EXECUTE_IF_SET_IN_SBITMAP.
3583 (split_edges): Rewrite, use sbitmap functions instead of bitset
3585 (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3587 2001-10-26 Andreas Schwab <schwab@suse.de>
3589 * reload1.c (emit_input_reload_insns): Fix parens in last
3590 (undocumented) change that was supposed to change only whitespace.
3592 Fri Oct 26 07:18:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3594 * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3596 * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3599 2001-10-26 Andreas Jaeger <aj@suse.de>
3601 * flow.c (clear_log_links): Remove unused variable.
3602 * cfgcleanup.c (cleanup_cfg): Likewise.
3604 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
3606 * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3607 (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3609 2001-10-26 Richard Henderson <rth@redhat.com>
3611 * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3612 rename PV_REG to R27_REG.
3613 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3614 (REG_CLASS_FROM_LETTER): Update.
3615 (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3616 * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3617 (udivsi3, modsi3, umodsi3): Likewise.
3618 (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3620 2001-10-26 Richard Henderson <rth@redhat.com>
3622 * cfg.c (clear_aux_for_blocks): Split out of ...
3623 (free_aux_for_blocks): here.
3624 (clear_aux_for_edges): Split from ...
3625 (free_aux_for_edges): here.
3626 * basic-block.h: Declare them.
3627 * lcm.c (compute_antinout_edge): Use them.
3628 (compute_laterin, compute_available, compute_nearerout): Likewise.
3629 (optimize_mode_switching): Likewise.
3631 2001-10-26 Richard Henderson <rth@redhat.com>
3633 * Makefile.in (unstage*): Remove as, ld, collect-ld before
3634 moving everything back to the main build directory.
3636 2001-10-26 Christopher Faylor <cgf@redhat.com>
3638 * config/i386/cygwin.h: Search target specific include directory, if
3641 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3643 * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3644 of macro guards. Fix #endif comment.
3646 * output.h (default_exception_section, default_eh_frame_section):
3647 Move prototypes outside of macro guard.
3649 * crtstuff.c: Fix #endif comment.
3651 Thu Oct 25 12:21:58 2001 Jeffrey A Law (law@cygnus.com)
3653 * doc/md.texi (movMM): Clarify semantics of storing into a
3654 non-paradoxical SUBREG.
3656 2001-10-25 Zack Weinberg <zack@codesourcery.com>
3658 * langhooks.c (lang_hook_default_clear_binding_stack): New.
3659 (lang_hook_default_get_alias_set): Move next to other alias
3661 * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3662 (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3663 (LANG_HOOKS_INITIALIZER): Add it.
3664 * toplev.h (struct lang_hooks): Add clear_binding_stack.
3665 * toplev.c (compile_file): Call lang_hooks.clear_binding_stack
3666 instead of a loop calling poplevel.
3668 2001-10-25 Nick Clifton <nickc@cambridge.redhat.com>
3670 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3671 occurrences of #elif with #if...#endif.
3673 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3675 * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3677 Thu Oct 25 08:46:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3679 * alias.c (can_address_p): No longer static.
3680 * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3681 Return 0 if all parameters are default values.
3682 (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3683 (adjust_address_1): Try harder to compute a size.
3684 * expr.c (expand_assignment, store_constructor): If can't address,
3685 set MEM_KEEP_ALIAS_SET_P.
3686 (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3687 (store_field): Likewise.
3688 (store_constructor): Simplify call to store_constructor_field.
3689 * expr.h (can_address_p): New declaration.
3690 * gensupport.c (gen_rtx_CONST_INT): New function.
3691 * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3692 (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3693 (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3695 * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3697 2001-10-24 Christopher Faylor <cgf@redhat.com>
3699 * config/i386/cygwin.h: Use proper path for mingw crt files when
3702 Wed Oct 24 18:43:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3704 * dwarf2out.c (file_info_cmp): Always return consistent results.
3706 2001-10-24 Roger Sayle <roger@eyesopen.com>
3708 * stmt.c (expand_end_case): Index jumptables from zero for
3709 suitably small values of minval.
3711 2001-10-24 Jakub Jelinek <jakub@redhat.com>
3713 * stor-layout.c (place_union_field): If any field was aligned with
3714 attribute aligned, set record type's TYPE_USER_ALIGN.
3715 (place_field): Likewise.
3716 (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3717 (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3719 2001-10-24 Zack Weinberg <zack@codesourcery.com>
3721 * c-common.h (struct c_common_identifier): Remove rid_code field.
3722 (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3724 * c-typeck.c (constructor_designated): New local flag.
3725 (struct constructor_stack): Add "designated" field to match.
3726 (start_init): Clear it.
3727 (really_start_incremental_init, push_init_level): Push and
3729 (pop_init_level): Pop it.
3730 (set_designator): Set it.
3732 (pop_init_level): Suppress "missing initializer" warnings if
3733 constructor_designated is true.
3734 (process_init_element): Suppress warning about union
3735 initialization under traditional C, if constructor_designated
3738 Wed Oct 24 15:35:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3740 * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3743 Wed Oct 24 13:26:12 2001 Jeffrey A Law (law@cygnus.com)
3745 * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3747 2001-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3749 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3750 the node was already a set to a constant.
3752 Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3754 * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3755 * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3757 2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3759 * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3760 (ASM_OUTPUT_ASCII): Const-ify. Fix signed/unsigned warning.
3761 (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3762 * s390.c (s390_final_chunkify): Don't use string concatenation.
3763 (s390_function_prologue, s390_function_epilogue): Const-ify.
3764 * s390.h (FUNCTION_PROFILER): Remove unused variable.
3766 2001-10-24 Jakub Jelinek <jakub@redhat.com>
3768 * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3771 2001-10-23 Stan Shebs <shebs@apple.com>
3773 * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3774 -traditional-cpp in first-stage compilation.
3776 Tue Oct 23 21:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3778 * gensupport.c (target_flags): Add.
3780 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
3782 * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3784 (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3785 * except.c (expand_builtin_frob_return_addr): Likewise.
3786 (expand_builtin_eh_return): Likewise.
3787 * stmt.c (expand_computed_goto): Likewise.
3788 * explow.c (memory_address): Likewise.
3789 (allocate_dynamic_stack_space): Clean up predicate testing.
3790 (probe_stack_range): Convert SIZE to Pmode.
3791 * calls.c (rtx_for_function_call): Only call convert_memory_address
3793 Pass function call operand as ptr_mode, not Pmode.
3794 * expr.c (expand_assignment): Clean up calls to convert_memory
3795 address by only doing so when needed and making offsets Pmode.
3796 (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3797 * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3798 is in Pmode, not ptr_mode.
3800 2001-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3802 * darwin-protos.h (constructor_section, destructor_section,
3803 mod_init_section, mod_term_section): Prototype.
3804 * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3806 * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3808 (SECTION_FUNCTION): Prototype `FUNCTION'. Delete
3809 objc_section_init declaration.
3810 (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3811 (objc_section_init, try_section_alias): Make static.
3812 (alias_section): Make static and hide unused function.
3813 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3815 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3817 * alias.c (can_address_p): Compnonents are not addressable if
3818 the containing type has alias set 0.
3819 (get_alias_set): Rework to use STRIP_NOPS.
3820 Only call front-end routine on object, type, or object with
3821 NOPs stripped, not inner values.
3822 Use language hook to call front-end routine.
3823 * builtins.c (get_memory_rtx): Always call set_mem_attributes.
3824 (expand_builtin_apply): Call set_mem_align on MEMs we make.
3825 Don't pass alignment to emit_block_move.
3826 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3827 (expand_builtin_memset): Likewise, but for clear_storage.
3828 * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
3829 and remove C++ specific parts.
3830 * c-common.h (c_common_get_alias_set): Add declaration.
3831 * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
3832 * calls.c (emit_call_1): Fix typo in sibcall_pop case.
3833 (save_fixed_argument_area): Call set_mem_align.
3834 Remove alignment in call to emit_block_move.
3835 (emit_library_call_value_1, store_one_arg): Likewise.
3836 (target_for_arg): Remove; disabled long ago.
3837 * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
3838 once and similar cleanups.
3839 (offset_address): Use proper introductory comment.
3840 * expr.c (emit_block_move): Use alignment from that of MEM args, not
3841 from explicit operand; all callers changed.
3842 (clear_storage): Likewise.
3843 (expand_assignment): Don't call set_mem_alias_set on to_rtx.
3844 (store_field): Remove kludge on alias set used for to_rtx.
3845 (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
3846 (expand_expr_unaligned): Call set_mem_attributes instead of
3848 * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
3849 * function.c (assign_stack_temp_for_type): Set MEM alignment.
3850 (expand_function_end): Track MEM attributes of trampolines.
3851 * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
3852 * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
3853 attributes from original.
3854 * langhooks.c (lang_hook_default_get_alias_set): New function.
3855 (hook_get_alias_set_0): New function.
3856 * langhooks.h (hook_get_alias_set_0): New declaration.
3857 (lang_hook_default_get_alias_set): Likewise.
3858 (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
3859 * reload1.c (alter_reg): Use adjust_address_nv.
3860 * rtl.c (get_mode_alignment): Moved to here.
3861 * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
3862 change default if unknown from 1 to BITS_PER_UNIT.
3863 * stor-layout.c (get_mode_alignment): Remove from here.
3864 * toplev.h (struct lang_hoks): Add get_alias_set field.
3865 * tree.h (lang_get_alias_set): Delete declaration.
3866 * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
3867 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
3868 (ix86_va_arg): Likewise.
3869 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3870 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3871 * config/sparc/sparc.c (sparc_va_arg): Likewise.
3872 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3873 (expand_block_move_mem): Remove dead code.
3875 2001-10-22 Neil Booth <neil@daikokuya.demon.co.uk>
3877 * c-common.c (warn_div_by_zero): New.
3878 * c-common.h (warn_div_by_zero): New.
3879 * c-decl.c (c_decode_option): Take it on the command line.
3880 * c-typeck.c (build_binary_op): Warn about division by zero.
3881 * doc/invoke.texi: Document the new command line option, fix
3882 documentation of -Wmultichar.
3883 * testsuite/gcc.dg/divbyzero.c: New tests.
3884 * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
3886 Tue Oct 23 15:30:23 CEST 2001 Jan Hubicka <jh@suse.cz>
3888 * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
3890 * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
3891 to avoid update_life_info call.
3892 * basic-block.h (CLEANUP_UPATE_LIFE): Define.
3893 * cfgcleanup.c (bb_flags): New enum.
3894 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
3895 (notice_new_block, update_forwarder_flag): New functions.
3896 (try_simplify_condjump): Use FORWARDER_BLOCK_P.
3897 (try_forward_edges): Likewise; update flags.
3898 (merge_blocks): Likewise.
3899 (outgoing_edges_match): Likewise.
3900 (try_crossjump_to_edge): Likewise.
3901 (try_optimize_cfg): Likewise; initialize and clear the flags;
3902 recompute life info if needed.
3903 (cleanup_cfg): No need to clear aux pointers.
3905 2001-10-23 Alexandre Oliva <aoliva@redhat.com>
3907 * config/i386/i386.c (override_options): Default to minimum
3908 stack alignment when optimizing for code size.
3909 * doc/invoke.texi (-mpreferred-stack-boundary): Document the
3912 * config/i386/i386.c (override_options): Set upper limit of
3913 -mpreferred-stack-boundary to 12.
3915 2001-10-22 Zack Weinberg <zack@codesourcery.com>
3917 * recog.c (peephole2_optimize): Add default case to switch.
3919 2001-10-23 Joseph S. Myers <jsm28@cam.ac.uk>
3921 * doc/gcc.texi (Sending Patches): Remove.
3923 2001-10-22 Hans-Peter Nilsson <hp@bitrange.com>
3925 * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
3926 fields when comparing.
3928 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3930 * arm.h (HOST_INT, HOST_UINT): Delete. Remove all uses.
3931 * arm.c (HOST_INT, HOST_UINT): Likewise.
3933 2001-10-22 Stan Shebs <shebs@apple.com>
3935 * config/darwin-protos.h (darwin_exception_section): Declare.
3936 (darwin_eh_frame_section): Declare.
3938 Mon Oct 22 18:21:25 CEST 2001 Jan Hubicka <jh@suse.cz>
3940 * i386.md (movti_rex64): Fix mode.
3942 2001-10-22 Stan Shebs <shebs@apple.com>
3944 * target.h (struct gcc_target): Add asm_out.exception_section,
3945 asm_out.eh_frame_section.
3946 * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
3947 (TARGET_ASM_EH_FRAME_SECTION): New.
3948 (TARGET_INITIALIZER): Update.
3949 * output.h (default_exception_section): Declare.
3950 (default_eh_frame_section): Declare.
3951 * dwarf2out.c: Include target.h.
3952 (output_call_frame_info): Call target hook for eh frames.
3953 (default_eh_frame_section): New function.
3954 * except.c: Include target.h.
3955 (output_function_exception_table): Call target hook for exception
3957 * varasm.c (default_exception_section): Rename from
3958 exception_section, remove EXCEPTION_SECTION macro.
3960 * config/darwin.h (darwin_eh_frame_section): New function.
3961 (EXCEPTION_SECTION): Remove.
3962 (TARGET_ASM_EXCEPTION_SECTION): Define.
3963 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
3964 (nextstep_exception_section): New function.
3965 (nextstep_eh_frame_section): New function.
3966 (TARGET_ASM_EXCEPTION_SECTION): Define.
3967 (TARGET_ASM_EH_FRAME_SECTION): Define.
3969 * config/pa/som.h (EXCEPTION_SECTION): Remove.
3970 (TARGET_ASM_EXCEPTION_SECTION): Define.
3971 * config/rs6000/sysv4.h, config/rs6000/xcoff.h
3972 (EXCEPTION_SECTION): Remove.
3973 (TARGET_ASM_EXCEPTION_SECTION): Define.
3974 * config/stormy16/stormy16.h: Remove comments referencing
3975 EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
3977 * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
3978 TARGET_ASM_EH_FRAME_SECTION.
3980 2001-10-22 Nick Clifton <nickc@cambridge.redhat.com>
3982 * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
3985 * c-format.c: Fix spelling typo in comment.
3987 * sched-int.h: Fix typo in GCC preamble.
3989 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3992 * doc/invoke.texi: Remove references to -fdump-translation-unit.
3994 2001-10-22 Richard Henderson <rth@redhat.com>
3996 * config/i386/i386.c (ix86_expand_clear): New.
3997 * config/i386/i386-protos.h: Declare it.
3998 * config/i386/i386.md (setcc peep2s): Use it.
3999 (movsi_xor): Unexport.
4001 2001-10-22 Richard Henderson <rth@redhat.com>
4003 * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4004 free_EXPR_LIST_list for LOG_LINKS.
4006 2001-10-21 Robert Lipe <robertlipe@usa.net>
4008 * config/i386/i386.c (sco_asm_named_section): Delete.
4009 (sco_asm_out_constructor): Delete.
4010 * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4011 (ASM_OUTPUT_DOUBLE_INT): Likewise.
4012 (TARGET_ASM_CONSTRUCTOR): Delete. Use default.
4013 (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4014 (EXCEPTION_SECTION): Delete EH scn renaming hack.
4016 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4018 * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4019 and/or fold extra calls into fewer ones.
4020 * collect2.c (dump_file): Likewise.
4021 * cppexp.c (parse_number): Likewise.
4022 * cpplex.c (_cpp_lex_direct): Likewise.
4023 * final.c (output_asm_insn, asm_fprintf): Likewise.
4024 * fix-header.c (inf_scan_ident, main): Likewise.
4025 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4027 * fold-const.c (real_hex_to_f): Likewise.
4028 * gen-protos.c (parse_fn_proto): Likewise.
4029 * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4030 * genrecog.c (change_state, write_action): Likewise.
4031 * gensupport.c (shift_output_template): Likewise.
4032 * local-alloc.c (requires_inout): Likewise.
4033 * mips-tfile.c (IS_ASM_IDENT): Likewise.
4034 * protoize.c (is_id_char, main): Likewise.
4035 * real.c (asctoeg): Likewise.
4036 * recog.c (asm_operand_ok): Likewise.
4037 * reload.c (find_reloads): Likewise.
4038 * scan.c (scan_identget_token): Likewise.
4039 * sched-vis.c (print_value): Likewise.
4040 * stringpool.c (ggc_alloc_string): Likewise.
4041 * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4042 * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4043 * tradcpp.c (rescan): Likewise.
4044 * tree.c (clean_symbol_name): Likewise.
4045 * varasm.c (decode_reg_name): Likewise.
4047 * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4048 * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4049 * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4050 * m88k.c (output_ascii): Likewise.
4051 * m88k.h (OVERRIDE_OPTIONS): Likewise.
4052 * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4053 * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4054 * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4056 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4058 * langhooks.c (lang_hook_default_do_nothing,
4059 lang_hook_default_decode_option): New defaults.
4060 * langhooks.h: Make hooks unconditional and non-NULL.
4061 * toplev.c (compile_file, toplev_main): Update.
4062 * toplev.h: Update comments.
4063 * objc/objc-act.c (lang_hooks): Update to new paradigm.
4065 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4067 * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4069 * system.h (IN_RANGE): New macro.
4071 2001-10-21 Zack Weinberg <zack@codesourcery.com>
4073 * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4074 INTLDEPS variable, which does not include $LIBICONV.
4075 * Makefile.in: Use INTLDEPS in LIBDEPS.
4076 * configure: Regenerate.
4078 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
4080 * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4081 * cpplex.c (lex_percent, lex_dot): Remove.
4082 (get_effective_char, skip_block_comment, skip_line_comment,
4083 parse_identifier_slow, parse_number, parse_string, save_comment,
4084 _cpp_lex_direct): Update to do lookback freely.
4085 (IF_NEXT_IS, BACKUP): New macros.
4086 * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4087 * cppmacro.c (paste_tokens): Update.
4089 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
4091 * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4093 2001-10-20 Hans-Peter Nilsson <hp@axis.com>
4095 * reload1.c (reload): Check CONSTANT_P before calling
4096 LEGITIMATE_PIC_OPERAND_P.
4097 * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4098 workaround of 2001-10-13.
4100 Sat Oct 20 15:16:10 CEST 2001 Jan Hubicka <jh@suse.cz>
4102 * i386.c (split_di): Handle splitting of DFmode.
4104 Sat Oct 20 07:27:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4106 * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4107 (adjust_address_1, offset_address): Likewise.
4109 * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4110 (output_asm_insn): Call it for each line output.
4111 Don't record an operand more than once.
4113 * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4114 * main.c: Include config.h and system.h, but not ansidecl.h.
4115 * Makefile.in (main.o): Update accordingly.
4117 Sat Oct 20 12:05:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4119 * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4121 Sat Oct 20 12:01:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4123 * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4124 * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4126 (find_sub_basic_blocks): ... here;
4127 (find_many_sub_basic_blocks): New.
4128 * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4130 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4132 * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4134 * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4136 * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4137 * flow.c (update_life_info): Measure time.
4138 * c-decl.c: Include timevar.h
4139 (c_expand_body): Measure time.
4140 * toplev.c (rest_of_compilation): Measure time of mode switching
4142 * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4144 * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4145 (lang_independent_options): Add asynchronous-unwind-tables
4146 (toplev_main): flag_asynchronous_unwind_tables implies
4148 * flags.h (flag_asynchronous_unwind_tables): Declare.
4149 * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4150 flag_asynchronous_unwind_tables.
4151 (output_call_frame_info): Likewise.
4152 * invoke.texi (-fasynchronous-unwind-tables): Document.
4153 * i386.c (optimization_options): Enable
4154 flag_asynchronous_unwind_tables.
4156 * i386.c (ix86_expand_setcc): Always expect target to be QImode.
4157 * i386.md (s* expanders): Destination is QImode.
4159 * toplev.c (rest_of_compilation): Do not call clear_log_links.
4160 * rtl.h (clear_log_links): Kill.
4161 * flow.c (clear_log_links): Make static; accept blocks parameter;
4162 do no clear life info.
4163 (update_life_info): Call clear_log_links.
4165 * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4167 2001-10-20 Neil Booth <neil@daikokuya.demon.co.uk>
4169 * cpplex.c (handle_newline, skip_escaped_newlines,
4170 get_effective_char, skip_block_comment, skip_line_comment,
4171 parse_identifier_slow, parse_number, parse_string,
4172 _cpp_lex_direct): Update to do more stepping back.
4173 (trigraph_ok): Similarly. Rename trigraph_p.
4174 (SAVE_STATE, RESTORE_STATE): Remove.
4175 (BUFF_SIZE_UPPER_BOUND): Tweak. Add sanity check.
4177 * cpplib.c (destringize): Rename destringize_and_run, and
4178 call run_directive directly.
4179 (_cpp_do__Pragma): Simplify.
4181 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4183 * pe.c (arm_pe_unique_section): Const-ify.
4184 * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4185 (switch_to_section): Add static prototype.
4187 * output.h (drectve_section): Prototype.
4189 2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4191 * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4192 fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4193 parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4194 i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4195 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4196 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4197 i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4198 i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4199 i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4200 i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4201 i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4202 i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4203 ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4204 mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4205 powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4206 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4207 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4208 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4209 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4210 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4211 rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4212 sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4213 v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4214 cris-*-none, cris-*-linux*: Update ${tmfile} list.
4215 (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4216 i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4217 mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4218 powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4219 v850-*-*): Delete superflous ${cpu_type} setting.
4220 * config/linux.h: Delete svr4.h include.
4221 (SET_ASM_OP): Delete.
4222 * config/netware.h (INT_ASM_OP): Undef before define.
4223 * config/ptx4.h: Delete elfos.h include.
4224 (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4225 * config/svr4.h: Delete elfos.h include. Update commentary.
4226 * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4227 config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4228 config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4229 config/v850/v850.h: Delete svr4.h include.
4230 * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4231 config/m68k/m68kv4.h, config/m88k/sysv4.h,
4232 config/sparc/sysv4.h: Update includes.
4233 * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4234 config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4235 config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4236 config/m88k/dguxbcs.h: Delete includes.
4237 * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4238 (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4239 * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4241 * config/m88k/dgux.h: Delete include.
4242 (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
4244 * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4245 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4246 * config/sh/elf.h: Update include.
4247 (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4248 DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4250 2001-10-19 Catherine Moore <clm@redhat.com>
4252 * config/stormy16/stormy-abi: Updates to varargs descriptions.
4253 * config/stormy16/stormy16.c (stormy16_build_va_list): Reverse
4254 base and count fields.
4255 (stormy16_expand_builtin_va_start): last_reg_count changed to
4256 size_of_reg_args. Use count + size in first comparison.
4258 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4260 * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4261 * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4262 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4263 TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4264 Set alignment from type if INDIRECT_REF.
4265 (adjust_address_1, offset_address): Simplify alignment compuitation.
4266 * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4267 here; done by set_mem_attributes.
4269 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4271 * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4272 * arm-protos.h (rdata_section, zero_init_section, common_section):
4274 * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4275 * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4276 traditional mode stringification.
4277 * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4278 in macros controling its use.
4279 * rtlanal.c: Include tm_p.h.
4280 * varasm.c (asm_output_aligned_bss): Mark parameter with
4282 (assemble_constant_align, assemble_start_function, assemble_align,
4283 assemble_variable, assemble_trampoline_template,
4284 output_constant_def_contents): Wrap potentially empty if-stmt body
4287 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4289 * a29k-protos.h (literal_section): Prototype.
4290 * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4291 * a29k.md: Ensure function pointers are prototyped.
4292 * genattrtab.c (write_eligible_delay): Mark parameter with
4295 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4297 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4298 * 1750a.c (print_operand): Fix format specifier warning.
4299 * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4300 * 1750a.md: Likewise.
4301 * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4302 * genemit.c (output_add_clobbers): Mark parameter with
4304 * genrecog.c (write_subroutine): Likewise.
4305 * integrate.c (expand_inline_function): Delete unused variable.
4306 * varasm.c (remove_from_pending_weak_list): Wrap with
4309 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4311 * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4312 field is different to previous argument's neg field.
4314 * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4316 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4318 * final.c (get_decl_from_op): New function.
4319 (output_asm_insn): Call it; write "*" when item with decl is address.
4321 2001-10-19 Janis Johnson <janis187@us.ibm.com>
4323 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4324 about 64-bit support from the 3.0_branch version.
4326 2001-10-19 Zack Weinberg <zack@codesourcery.com>
4328 * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
4329 USE_INCLUDED_LIBINTL when appropriate.
4330 * configure, config.in: Regenerate.
4331 * Makefile.in (datadir): Set to @datadir@.
4332 (intl.o): Also depend on $(CONFIG_H) and system.h.
4334 * intl.c: Factor out common gettext initialization sequence.
4335 (gcc_init_libintl): New function.
4336 * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
4337 otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
4338 off NLS. Add multiple include guard. No need to #ifdef-guard
4339 an #undef. Prototype gcc_init_libintl here.
4341 * collect2.c (main), cppmain.c (general_init), gcc.c (main),
4342 gcov.c (main), protoize.c (main), toplev.c (toplev_main):
4343 Use gcc_init_libintl.
4345 2001-10-19 Catherine Moore <clm@redhat.com>
4347 * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
4349 * config/stormy16/stormy16.c (stormy16_split_move): Make
4350 sure that REG_INC notes are present for auto_inc operands.
4352 2001-10-19 Andreas Jaeger <aj@suse.de>
4354 * configure: Regenerated.
4355 * configure.in: Add x86_64 to switch statements.
4357 2001-10-18 Richard Henderson <rth@redhat.com>
4359 * config/alpha/alpha.md (sibcall_osf_1): Load destination
4360 address into $27 explicitly.
4361 (sibcall_value_osf_1): Likewise.
4363 Thu Oct 18 16:07:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4365 * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
4366 (offset_address): New function.
4367 (free_emit_status): Free regno_decl.
4368 (init_emit): Pass proper number of elements to xcalloc.
4369 Allocate regno_decl.
4370 (mark_emit_status): Mark regno_decl values.
4371 * expr.c (highest_pow2_factor): New function.
4372 (expand_assigment): Use it and offset_address.
4373 Properly handle ptr_mode vs. Pmode in offset calculation.
4374 (store_constructor, expand_expr_unaligned): Likewise.
4375 (expand_expr, case COMPONENT_EXPR): Likewise.
4376 * expr.h (offset_address): New decl.
4377 * function.h (struct emit_status): Add regno_decl.
4378 (REGNO_DECL): New macro.
4379 * final.c (output_asm_name): Move in file and don't conditionalize
4380 on flag_print_asm_name.
4381 (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
4382 Output names of operands, if known.
4383 * function.c (assign_parms): Set REGNO_DECL.
4384 * integrate.c (integrate_decl_tree): Likewise.
4385 * stmt.c (expand_decl): Likewise.
4386 * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
4388 2001-10-18 Alexandre Oliva <aoliva@redhat.com>
4390 * attribs.c (handle_noinline_attribute): New function.
4391 (handle_used_attribute): Likewise.
4392 (c_common_attribute_table): Added noinline and used.
4393 * doc/extend.texi (Function Attributes): Document them.
4394 * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
4395 Warn when merging inline with attribute noinline.
4396 (start_decl, start_function): Warn if inline and attribute
4397 noinline appear in the same declaration.
4399 2001-10-17 Neil Booth <neil@daikokuya.demon.co.uk>
4401 * config.gcc: Update c4x and i370 for C front end-specific
4403 * config/c4x/c4x-c.c: New.
4404 * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
4405 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4407 * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4408 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4410 (c4x_init_pragma): Remove.
4411 (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4412 c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4413 c4x_pr_ignored): Move to c4x-c.c.
4414 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4415 * config/c4x/t-c4x: Update.
4416 * config/i370/i370-c.c: New.
4417 * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4418 (i370_pr_map): Move to i370-c.c.
4419 * config/i370/t-i370: New.
4421 * doc/tm.texi: Update.
4423 2001-10-17 Stan Shebs <shebs@apple.com>
4425 * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4426 typo fixes throughout.
4427 (machopic_output_stub): Remove some dead code.
4429 2001-10-17 Richard Earnshaw <rearnsha@arm.com>
4431 * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4434 Wed Oct 17 05:26:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4436 * Makefile.in (print-rtl.o): Depend on TREE_H.
4437 * alias.c (get_alias_set): Make two passes over objects to first
4438 see if inner object is access via restricted pointer.
4439 Defer allocating alias set for restricted pointer until here.
4440 Call find_placeholder with second arg nonzero.
4442 * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4443 set for restricted pointer types.
4444 * emit-rtl.c (set_mem_attributes): Set more attributes.
4445 (set_mem_align, change_address, adjust_address_1): New functions.
4446 (change_address_1): Now static.
4447 (adjust_address, adjust_address_nv): Deleted.
4448 (replace_equiv_address): Call change_address_1.
4449 * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4450 (find_placeholder): Get starting point from PLIST arg.
4451 (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4452 * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4453 (adjust_address, adjust_address_nv): New macros.
4454 * print-rtl.c (tree.h): New include.
4455 (print_rtx, case MEM): Print all memory attributes.
4457 2001-10-17 Richard Henderson <rth@redhat.com>
4459 * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4461 2001-10-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
4463 * c-tree.texi: Eliminate duplicated word.
4464 * cpp.texi: Likewise.
4465 * install.texi: Likewise.
4466 * invoke.texi: Likewise.
4467 * tm.texi: Likewise.
4469 2001-10-17 Michael Collison <collison@isisinc.net>
4471 * dsp16xx.c: Fix comment formatting to match GNU standards.
4472 (dsp16xx_output_function_prologue): Change type of 'size'
4473 parameter from 'int' to HOST_WIDE_INT.
4474 (dsp16xx_output_function_epilogue): Change type of 'size'
4475 parameter from 'int' to HOST_WIDE_INT.
4477 2001-10-16 Richard Henderson <rth@redhat.com>
4479 * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4480 * configure, config.in: Rebuild.
4482 * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4483 (ix86_output_addr_diff_elt): New.
4484 * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4485 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4486 (JUMP_TABLES_IN_TEXT_SECTION): New.
4487 * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4488 * config/i386/i386-protos.h: Update.
4490 * config/i386/386bsd.h, config/i386/beos-elf.h,
4491 config/i386/freebsd-aout.h, config/i386/freebsd.h,
4492 config/i386/i386-interix.h, config/i386/i386elf.h,
4493 config/i386/linux.h, config/i386/netbsd-elf.h,
4494 config/i386/netbsd.h, config/i386/openbsd.h,
4495 config/i386/ptx4-i.h, config/i386/rtemself.h,
4496 config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4497 (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4499 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
4501 * stmt.c (expand_asm_operands): Update commentary.
4503 2001-10-16 Stan Shebs <shebs@apple.com>
4505 * config/darwin.h (GCC_NAME): Remove, no longer used.
4506 (NO_MATH_LIBRARY): Ditto.
4507 (MATH_LIBRARY): Define to emptiness.
4508 (DWARF2_DEBUGGING_INFO): Define.
4509 (PREFERRED_DEBUGGING_TYPE): Define.
4510 (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4511 (EXCEPTION_SECTION): Define.
4512 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4513 * config/darwin.c (darwin_encode_section_info): Handle case of
4514 DECL_INITIAL being error_mark_node.
4516 2001-10-16 Richard Henderson <rth@redhat.com>
4518 * alpha.c (current_file_function_operand): Don't fail for profiling.
4519 (direct_call_operand): New.
4520 * alpha-protos.h: Declare it.
4521 * alpha.h (EXTRA_CONSTRAINT): Use it.
4522 (PREDICATE_CODES): Add it.
4523 (ASM_OUTPUT_MI_THUNK): Remove.
4524 * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4525 * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4527 2001-10-16 Krister Walfridsson <cato@df.lth.se>
4529 * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4530 (JUMP_TABLES_IN_TEXT_SECTION): Define.
4532 Wed Oct 17 00:21:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4534 * cfg.c (free_edge): Break out from ....
4535 (remove_edge): ... here.
4536 (clear_edges): Use free_edge.
4538 * att.h (ASM_QUAD): Add comment.
4539 * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4541 Wed Oct 17 00:01:02 CEST 2001 Jan Hubicka <jh@suse.cz>
4543 * i386.c (split_ti): New function.
4544 (ix86_split_to_parts): Support TImodes.
4545 * i386.h (VALID_INT_MODE_P): Add TImode.
4546 * i386.md (movdi splitter): Fix.
4547 (movti): Support 64bit integer registers.
4548 (movti_rex64): New function and splitter.
4550 * i386.c (*_cost): Add movsx/movzx cost.
4551 * i386.h (struct processor_costs): Add movsx/movzx fields.
4552 (RTX_COSTS): Handle zero/sign extend + avoid believing that
4553 64bit operations require split on 64bit machine.
4554 (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4556 * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4557 (ix86_expand_move): Avoid pushes of memory if size does not match;
4558 move long constants to register.
4559 (x86_initialize_trampoline): Fix mode.
4560 * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4561 Use ASM_QUAD on 64bit.
4562 * i386.md (test pattern): Disallow impossible constants.
4563 (tablejump PIC expander): Fix emitting of sum.
4564 (movdicc_rex64): Rename to movdicc.
4565 * linux64.h (LINK_SPEC): Add missing '%'.
4567 2001-10-16 Alexandre Oliva <aoliva@redhat.com>
4569 * tree-inline.c (inlinable_function_p): Leave it up to the
4570 front-end to turn -finline-functions into DECL_INLINE set for all
4573 2001-10-16 Stan Shebs <shebs@apple.com>
4575 * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4577 2001-10-16 Alan Modra <amodra@bigpond.net.au>
4579 * recog.c: Formatting and comment typo fixes.
4581 * configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas
4582 version in single tree build.
4583 * configure: Regenerate.
4585 2001-10-15 David Edelsohn <edelsohn@gnu.org>
4587 * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4588 MODE arguments to gen_rtx and compare operand with const0_rtx.
4590 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
4592 * system.h: Poison old unused target macros.
4593 * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4594 * config/stormy16/stormy16.c: Update references to obsolete macros.
4595 * config/stormy16/stormy16.h: Similarly.
4596 * config/stormy16/stormy16.md: Similarly.
4597 * config/cris/cris.h: Similarly.
4599 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
4601 * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4602 (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4603 cpp_register_pragma): Update accordingly.
4605 2001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
4607 * c-pragma.h (cpp_register_pragma_space): Remove.
4608 * cpplib.h (cpp_register_pragma_space): Remove.
4609 * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4610 (cpp_register_pragma_space): Remove.
4611 (cpp_register_pragma): Simplify using lookup_pragma_entry,
4613 (do_pragma): Similarly.
4614 (_cpp_init_internal_pragmas): Don't register namespaces.
4616 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4617 Don't register namespaces.
4618 * cp/lex.c (init_cp_pragma): Similarly.
4619 * doc/tm.texi: Update.
4621 2001-10-10 Craig Rodrigues <rodrigc@gcc.gnu.org>
4624 * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4626 2001-10-13 Michael Collison <collison@dhcp-12-114.townisp.com>
4628 * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4629 add scheduling support.
4630 * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4631 * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4632 * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4635 2001-10-13 Hans-Peter Nilsson <hp@axis.com>
4637 * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4638 missing CONSTANT_P test in core GCC.
4640 2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk>
4642 * cppmain.c (struct printer): New member source.
4643 (scan_translation_unit): Fix spacing at start of lines.
4644 (cb_line_change): Update.
4646 * gcc.dg/cpp/spacing2.c: New test.
4648 2001-10-12 Hans-Peter Nilsson <hp@axis.com>
4650 * config/cris/arit.c: Use __builtin_labs, not abs.
4652 * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4654 * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4655 misplaced sprintf and fprintf argument.
4657 2001-10-12 Zack Weinberg <zack@codesourcery.com>
4659 * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4660 * configure.in, Makefile.in: Take out obsolete check-po logic.
4661 * configure, config.in: Regenerate.
4663 2001-10-12 Ziemowit Laski <zlaski@apple.com>
4665 * objc/objc-act.c (finish_objc): Correct precondition for emitting
4666 symtab declarations.
4668 2001-10-12 Stan Shebs <shebs@apple.com>
4670 * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4671 declarations of arguments and local variables.
4673 2001-10-12 Christopher Faylor <cgf@redhat.com>
4675 * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4676 ENDFILE_SPEC definition.
4678 2001-10-12 Kazu Hirata <kazu@hxi.com>
4680 * gthr-dce.h: Fix comment formatting.
4681 * gthr-posix.h: Likewise.
4682 * gthr-single.h: Likewise.
4683 * gthr-solaris.h: Likewise.
4684 * gthr-vxworks.h: Likewise.
4685 * gthr-win32.h: Likewise.
4687 2001-10-12 Jakub Jelinek <jakub@redhat.com>
4689 * final.c (output_asm_insn): Make sure assembly dialects are
4690 terminated, not nested. Output `|' and `}' characters if they
4691 don't appear inside assembly dialect selection.
4692 * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4693 rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4694 rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4695 strsetsi_rex_1): Add {} braces.
4697 2001-10-11 Zack Weinberg <zack@codesourcery.com>
4699 * toplev.c (compile_file): Ignore return value from yyparse.
4700 Always pop any nested binding levels after yyparse returns.
4702 2001-10-11 Richard Henderson <rth@redhat.com>
4704 * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4706 2001-10-11 Richard Henderson <rth@redhat.com>
4708 * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4709 fall back to add_AT_long_long for large CONST_INT.
4711 2001-10-11 Richard Henderson <rth@redhat.com>
4713 * config/i386/i386.md (setcc splitters): Add four splitters to
4714 simplify compound compares that simplify_comparison can't handle.
4716 2001-10-11 Zack Weinberg <zack@codesourcery.com>
4718 * cpplex.c (digraph_spellings, token_spellings): Make static.
4720 2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4722 * unroll.c (loop_iterations): Fixup last patch.
4724 2001-10-11 Richard Henderson <rth@redhat.com>
4726 * rtl.h (REG_VTABLE_REF): New.
4727 * rtl.c (reg_note_name): Add it.
4728 * combine.c (distribute_notes): Handle it.
4729 * final.c (final_scan_insn): Handle it.
4730 * tree.def (VTABLE_REF): New.
4731 * expr.c (expand_expr): Handle it.
4732 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4733 * output.h: Declare them.
4735 2001-10-11 Richard Henderson <rth@redhat.com>
4737 * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4740 2001-10-11 David Edelsohn <edelsohn@gnu.org>
4742 * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4743 available in 64-bit mode.
4745 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
4747 * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4748 cris-*-linux* cases.
4749 * config/cris/cris-protos.h: New file.
4750 * config/cris/cris.c: New file.
4751 * config/cris/cris.h: New file.
4752 * config/cris/cris.md: New file.
4753 * config/cris/linux.h: New file.
4754 * config/cris/aout.h: New file.
4755 * config/cris/arit.c: New file.
4756 * config/cris/cris_abi_symbol.c: New file.
4757 * config/cris/mulsi3.asm: New file.
4758 * config/cris/t-aout: New file.
4759 * config/cris/t-cris: New file.
4760 * config/cris/t-elfmulti: New file.
4761 * config/cris/t-linux: New file.
4762 * doc/invoke.texi: Add CRIS options.
4763 * doc/install.texi (Specific): Add blurb for CRIS.
4765 2001-10-10 Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4767 * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4769 * config/float/i32.h: Likewise.
4770 * config/float-i386.h: Likewise.
4771 * config/float-i64.h: Likewise.
4772 * config/float-m68k.h: Likewise.
4773 * config/float-sh.h: Likewise.
4774 * config/float-sparc.h: Likewise.
4776 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
4778 * doc/contrib.texi: Add note about CRIS port to my entry.
4780 2001-10-11 Kazu Hirata <kazu@hxi.com>
4782 * basic-block.h: Fix formatting.
4783 * bitmap.h: Likewise.
4784 * cpplib.h: Likewise.
4785 * c-tree.h: Likewise.
4786 * diagnostic.h: Likewise.
4787 * flags.h: Likewise.
4789 * longlong.h: Likewise.
4791 * reload.h: Likewise.
4795 2001-10-10 Richard Henderson <rth@redhat.com>
4797 * c-parse.in (asm_operand): Allow named operands.
4798 * genconfig.c (max_recog_operands): Set to 29.
4799 * local-alloc.c (requires_inout): Skip multiple digits.
4800 * recog.c (asm_operand_ok): Likewise.
4801 (preprocess_constraints): Use strtoul for matching constraints.
4802 (constrain_operands): Likewise.
4803 * regmove.c (find_matches): Likewise.
4804 * reload.c (find_reloads): Likewise.
4805 * stmt.c (parse_output_constraint): Don't reject in-out
4806 constraint on operands > 9. Reject '[' in constraint.
4807 (expand_asm_operands): Handle named operands. Use strtoul
4808 for matching constraints.
4809 (check_operand_nalternatives): Split out from expand_asm_operands.
4810 (check_unique_operand_names): New.
4811 (resolve_operand_names, resolve_operand_name_1): New.
4813 * doc/extend.texi (Extended Asm): Document named operands.
4814 * doc/md.texi (Simple Constraints): Document matching constraints
4817 2001-10-10 Richard Henderson <rth@redhat.com>
4819 * combine.c (try_combine): Handle a SEQUENCE of one insn.
4821 * i386.c (test splitter): Narrow tests vs paradoxical subregs.
4822 (jcc splitters): Add two splitters to simplify compound compares
4823 that simplify_comparison can't handle.
4825 2001-10-10 Richard Henderson <rth@redhat.com>
4827 * langhooks.c: Include langhooks.h.
4828 * Makefile.in (langhooks.o): Depend on it.
4830 Wed Oct 10 23:49:06 EDT 2001 John Wehle (john@feith.com)
4832 * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
4833 should not be considered as a no-op.
4834 * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
4836 2001-10-10 Stan Shebs <shebs@apple.com>
4838 * alias.c: Remove uses of "register" specifier in declarations
4839 of arguments and local variables.
4840 * c-common.c: Ditto.
4841 * c-convert.c: Ditto.
4843 * c-format.c: Ditto.
4844 * c-semantics.c: Ditto.
4845 * c-typeck.c: Ditto.
4846 * caller-save.c: Ditto.
4849 * cfgbuild.c: Ditto.
4851 * collect2.c: Ditto.
4855 * cppfiles.c: Ditto.
4858 * defaults.h: Ditto.
4860 * dwarf2out.c: Ditto.
4861 * dwarfout.c: Ditto.
4862 * emit-rtl.c: Ditto.
4867 * fix-header.c: Ditto.
4868 * floatlib.c: Ditto.
4870 * fold-const.c: Ditto.
4871 * function.c: Ditto.
4874 * gen-protos.c: Ditto.
4875 * genattrtab.c: Ditto.
4876 * gencheck.c: Ditto.
4877 * genconfig.c: Ditto.
4879 * genextract.c: Ditto.
4880 * genflags.c: Ditto.
4881 * gengenrtl.c: Ditto.
4882 * genoutput.c: Ditto.
4884 * genrecog.c: Ditto.
4885 * gensupport.c: Ditto.
4889 * haifa-sched.c: Ditto.
4890 * hard-reg-set.h: Ditto.
4892 * integrate.c: Ditto.
4895 * local-alloc.c: Ditto.
4897 * mips-tdump.c: Ditto.
4898 * mips-tfile.c: Ditto.
4901 * print-rtl.c: Ditto.
4902 * read-rtl.c: Ditto.
4905 * reg-stack.c: Ditto.
4906 * regclass.c: Ditto.
4911 * resource.c: Ditto.
4915 * sched-deps.c: Ditto.
4916 * sched-rgn.c: Ditto.
4918 * simplify-rtx.c: Ditto.
4920 * stor-layout.c: Ditto.
4927 * xcoffout.c: Ditto.
4929 2001-10-10 Richard Henderson <rth@redhat.com>
4931 * rtl.h (can_reverse_comparison_p): Remove.
4933 2001-10-10 Christopher Faylor <cgf@redhat.com>
4935 * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
4938 2001-10-10 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4940 * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
4941 (Thanks to Chris Faylor for suggesting macro name).
4942 (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
4944 (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
4945 (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
4946 (MATH_LIBRARY): Undef before definition.
4947 (OUTPUT_QUOTED_STRING): Likewise.
4948 * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
4950 2001-10-10 Richard Henderson <rth@redhat.com>
4952 * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
4953 (fde_unencoded_compare): Likewise. Don't use subtraction to get
4954 a tristate comparison value.
4955 (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
4957 2001-10-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4960 * unroll.c (loop_iterations): Ignore insns generated by loop
4963 * config.gcc (mips*-*-gnu*): Delete support.
4964 * config/mips/gnu.h: Remove.
4966 2001-10-10 Kazu Hirata <kazu@hxi.com>
4968 * calls.c: Fix formatting.
4969 * c-decl.c: Likewise.
4970 * cfgcleanup.c: Likewise.
4971 * combine.c: Likewise.
4972 * cppfiles.c: Likewise.
4973 * cpplib.c: Likewise.
4974 * cppmacro.c: Likewise.
4975 * crtstuff.c: Likewise.
4977 * dwarf2out.c: Likewise.
4978 * expmed.c: Likewise.
4980 * fold-const.c: Likewise.
4981 * function.c: Likewise.
4983 * genattrtab.c: Likewise.
4984 * ggc-page.c: Likewise.
4985 * integrate.c: Likewise.
4986 * libgcc2.c: Likewise.
4988 * optabs.c: Likewise.
4989 * profile.c: Likewise.
4990 * protoize.c: Likewise.
4992 * recog.c: Likewise.
4993 * reload1.c: Likewise.
4994 * reload.c: Likewise.
4995 * reorg.c: Likewise.
4996 * resource.c: Likewise.
4997 * sched-rgn.c: Likewise.
4998 * sdbout.c: Likewise.
5000 * toplev.c: Likewise.
5001 * varasm.c: Likewise.
5003 2001-10-10 Janis Johnson <janis187@us.ibm.com>, Alexandre Oliva <aoliva@redhat.com>
5005 * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5006 * Makefile.in (langhooks.o): Add dependencies.
5008 Wed Oct 10 00:41:29 EDT 2001 John Wehle (john@feith.com)
5010 * rs6000.c (rs6000_emit_load_toc_table): Don't
5011 strdup the toc label.
5012 (create_TOC_reference): Likewise.
5014 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5016 * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5019 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5021 * config/i386/i386.c (ix86_attribute_table): Correct
5022 min_len, max_len fields for dllimport, dllexport and shared.
5024 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
5026 * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5027 doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5028 Consistently use "nonzero" instead of "non-zero".
5030 2001-10-09 Kazu Hirata <kazu@hxi.com>
5032 * acconfig.h: Fix comment formatting.
5033 * c-dump.h: Likewise.
5034 * c-tree.h: Likewise.
5035 * conditions.h: Likewise.
5037 * function.h: Likewise.
5039 * hwint.h: Likewise.
5040 * integrate.h: Likewise.
5043 * optabs.h: Likewise.
5045 2001-10-09 Kazu Hirata <kazu@hxi.com>
5047 * c-common.h: Fix comment formatting.
5048 * c-dump.c: Likewise.
5050 * diagnostic.h: Likewise.
5051 * except.c: Likewise.
5053 * gcov-io.h: Likewise.
5054 * genattrtab.c: Likewise.
5055 * output.h: Likewise.
5056 * predict.h: Likewise.
5057 * reload1.c: Likewise.
5058 * reload.h: Likewise.
5059 * resource.h: Likewise.
5061 * system.h: Likewise.
5063 * tree-inline.c: Likewise.
5064 * tsystem.h: Likewise.
5065 * varasm.c: Likewise.
5066 * xcoffout.h: Likewise.
5068 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5070 * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5072 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
5074 * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5075 config/i386/i386elf.h, config/i386/netbsd-elf.h,
5076 config/i386/netware.h, config/mcore/gfloat.h,
5077 config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5078 config/netware.h, gccbug.in: Update FSF address.
5080 2001-10-09 Kazu Hirata <kazu@hxi.com>
5082 * c-common.c: Fix comment typos.
5083 * cfgrtl.c: Likewise.
5084 * collect2.c: Likewise.
5085 * cpplex.c: Likewise.
5086 * doloop.c: Likewise.
5087 * dwarf2out.c: Likewise.
5088 * dwarfout.c: Likewise.
5090 * fold-const.c: Likewise.
5094 * global.c: Likewise.
5095 * ifcvt.c: Likewise.
5097 * optabs.c: Likewise.
5098 * protoize.c: Likewise.
5099 * regclass.c: Likewise.
5100 * reorg.c: Likewise.
5104 * doc/cpp.texi: Likewise.
5105 * doc/c-tree.texi: Likewise.
5106 * doc/extend.texi: Likewise.
5107 * doc/invoke.texi: Likewise.
5108 * doc/objc.texi: Likewise.
5109 * doc/tm.texi: Likewise.
5111 2001-10-08 Richard Henderson <rth@redhat.com>
5113 * varasm.c (set_named_section_flags): Initialize "declared".
5115 2001-10-08 Robert Lipe <robertlipe@usa.net>
5117 * varasm.c (struct in_named_entry): Add declared.
5118 (named_section_first_declaration): New function.
5119 (default_elf_asm_named_section): Use it.
5120 * output.h (named_section_first_declaration): New.
5122 2001-10-08 Richard Henderson <rth@redhat.com>
5124 * i386.md (movsi_xor): Export.
5125 (setcc peep2): Use it when available; add an alternative to
5126 match zero_extendhisi2_and.
5128 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5130 * romp-protos.h (romp_initialize_trampoline): New function.
5131 * romp.c (romp_initialize_trampoline): Likewise.
5132 * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5133 romp_initialize_trampoline.
5135 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5137 * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5138 * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5139 * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5140 * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5142 2001-10-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5144 * unroll.c (loop_iterations): Extend check for multiple back edges.
5146 2001-10-08 Alexandre Oliva <aoliva@redhat.com>
5148 * langhooks.h: New file.
5149 * Makefile.in (OBJS): Added langhooks.o.
5150 (c-lang.o): Depend on langhooks.h.
5151 (c-common.o): Don't depend on tree-inline.h.
5152 (tree-inline.o): Depend on toplev.h.
5153 (langhooks.o): New rule.
5154 * c-common.c: Don't include tree-inline.h.
5155 (c_mark_lang_decl): Mark argument c as unused.
5156 (c_common_lang_init): Don't initialize hooks here.
5157 * c-lang.c: Include langhooks.h, then override some macros.
5158 (lang_hooks): Initialize with macros in langhooks.h.
5159 (c_init): Don't initialize hooks here.
5160 * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5161 (struct lang_hooks): Add tree_inlining. Refer to langhooks.h.
5162 * tree-inline.c: Include toplev.h. Don't define hook variables.
5163 * tree-inline.h: Don't define hook types nor declare hook
5164 variables. Move macros to...
5165 * langhooks.c: ... new file, as functions. Adjust all callers.
5167 2001-10-08 Jeffrey A Law <law@cygnus.com>
5169 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5170 purge_mem_unchanging_flag on all instructions, not just on those
5171 before NOTE_INSN_FUNCTION_BEG.
5173 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5175 * cppmacro.c (_cpp_create_definition): Leave comments off.
5177 * doc/cpp.texi: Update.
5179 2001-10-08 DJ Delorie <dj@redhat.com>
5181 * c-decl.c (grokfield): Make sure the only unnamed fields
5182 we're allowing are either structs or unions.
5183 * doc/extend.texi: Add documentation for the unnamed field
5186 2001-10-08 Zack Weinberg <zack@codesourcery.com>
5188 * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5189 * configure.in: Use it.
5190 * configure: Regenerated.
5191 * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5192 config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5194 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5196 * cppfiles.c (open_file): Don't mark zero-length files
5197 never-reread here. Don't output diagnostics here either.
5198 (stack_include_file): Mark them never-reread here.
5199 (_cpp_read_file): Update.
5201 2001-10-08 Richard Henderson <rth@redhat.com>
5203 * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5205 2001-10-08 Richard Henderson <rth@redhat.com>
5207 * expr.c (store_expr): When converting a CONST_INT for storage
5208 in a SUBREG, convert it to both SUBREG modes before stripping
5211 2001-10-08 Richard Henderson <rth@redhat.com>
5213 * varasm.c (restore_varasm_status): New.
5214 * function.h: Declare it.
5215 * function.c (pop_function_context_from): Call it.
5217 2001-10-08 Richard Henderson <rth@redhat.com>
5219 * c-common.h (struct c_lang_decl): Add declared_inline.
5220 * c-tree.h (DECL_DECLARED_INLINE_P): New.
5221 * c-lang.c (c_disregard_inline_limits): Use it.
5222 * c-decl.c (duplicate_decls): Likewise.
5223 (pushdecl, redeclaration_error_message): Likewise.
5224 (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5225 (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P.
5226 Set DECL_INLINE if -finline-functions.
5227 (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5229 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
5231 * cppmacro.c (funlike_invocation_p): Move some logic to caller
5232 in enter_macro_context. Create a padding token in its own context
5233 if necessary when the search for '(' fails.
5234 (enter_macro_context): Update.
5236 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5238 * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5239 genmultilib, toplev.c: Fix spelling errors of "separate" as
5240 "seperate", and corresponding spelling errors of related words.
5242 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5244 * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5245 * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5247 * c-dump.c (dump_option_value_info): Likewise.
5248 * c-format.c (format_length_info, format_char_info,
5249 format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5250 * collect2.c (names): Likewise.
5251 * cppdefault.h (default_include): Likewise.
5252 * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5253 * flow.c (life_analysis): Likewise.
5254 * gcc.c (dir_separator_str, modify_target, option_map,
5255 target_option_translations, spec_list_1, extra_specs_1,
5256 init_spec): Likewise.
5257 * gcov.c (gcov_version_string): Likewise.
5258 * genattr.c (write_units): Likewise.
5259 * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5260 * gengenrtl.c (rtx_definition, defs): Likewise.
5261 * genrecog.c (pred_table): Likewise.
5262 * global.c (global_alloc): Likewise.
5263 * lcm.c (optimize_mode_switching): Likewise.
5264 * local-alloc.c (find_free_reg): Likewise.
5265 * params.h (param_info): Likewise.
5266 * predict.c (predictor_info): Likewise.
5267 * protoize.c (unexpansion_struct): Likewise.
5268 * real.c (bmask): Likewise.
5269 * recog.h (insn_operand_data, insn_data): Likewise.
5270 * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5271 * stmt.c (expand_nl_goto_receiver): Likewise.
5272 * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5273 target_switches, target_options): Likewise.
5274 * tradcif.y (token, tokentab2, yylex): Likewise.
5275 * tree.h (attribute_spec): Likewise.
5277 * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5279 * arc.c (arc_output_function_epilogue): Likewise.
5280 * arm.c (processors, all_cores, all_architectures,
5281 arm_override_options, isr_attribute_arg, isr_attribute_args,
5282 arm_isr_value): Likewise.
5283 * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5285 * c4x.c (c4x_int_reglist): Likewise.
5286 * d30v.c (override_options): Likewise.
5287 * h8300.c (shift_insn): Likewise.
5288 * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5289 pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5290 ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5291 builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5292 ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5293 * i386.h (processor_costs, ix86_cost): Likewise.
5294 * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5295 * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5296 * m68k.c (codes_68881, codes_FPA): Likewise.
5297 * m88k.c (mode_from_align, max_from_align, all_from_align,
5298 best_from_align, m_options): Likewise.
5299 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5300 * mcore.c (mode_from_align): Likewise.
5301 * mips/elf64.h (UNIQUE_SECTION): Likewise.
5302 * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5303 * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5304 * mips.h (mips_regno_to_class): Likewise.
5305 * ns32k.c (scales): Likewise.
5306 * pa.c (import_string, magic_milli): Likewise.
5307 * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5308 * sparc.c (leaf_reg_remap, sparc_override_options,
5309 reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5311 * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5313 2001-10-07 Dale Johannesen <dalej@apple.com>
5315 * reload1.c (reload_reg_free_p): Teach register interference
5316 checking that multiple output reloads are emitted in
5318 reload1.c (reload_reg_reaches_end_p): Ditto.
5319 reload1.c (reloads_conflict): Ditto.
5321 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5323 * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5324 NULL_TREE inside @code.
5326 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5328 * doc/gcc.texi: Document consistent style of "32-bit",
5329 "Objective-C", and "@code{NULL}".
5331 2001-10-06 Zack Weinberg <zack@codesourcery.com>
5333 * cpplex.c (enum spell_type): Add SPELL_NUMBER.
5334 (cpp_token_len, cpp_spell_token, cpp_output_token,
5335 _cpp_equiv_tokens): Handle it.
5336 * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
5337 CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
5338 * cppexp.c (_cpp_parse_expr): Use the correct operator code in
5341 Sat Oct 6 07:42:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5343 * gcc.c (default_compilers): Remove .ada.
5345 2001-10-06 Neil Booth <neil@daikokuya.demon.co.uk>
5347 * doc/cppinternals.texi: Update.
5349 2001-10-06 Zack Weinberg <zack@codesourcery.com>
5351 * gcc.c (main): Set this_file_error if the appropriate
5352 compiler for a language has not been installed.
5354 2001-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5356 * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
5358 2001-10-05 Joseph S. Myers <jsm28@cam.ac.uk>
5360 * gccbug.in (CATEGORIES): Add ada.
5362 2001-10-05 Catherine Moore <clm@redhat.com>
5364 * config/stormy16/stormy-abi: Document abi changes.
5365 * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
5366 (ICALL_REGS): New register class.
5367 (NUM_ARGUMENT_REGISTERS): Now 6.
5368 (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
5370 (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
5371 * config/stormy16.md (call_internal, call_value_internal,
5372 indirect_jump): Use new 'z' constraint.
5374 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
5376 * doc/cppinternals.texi: Update.
5378 2001-10-05 Richard Henderson <rth@redhat.com>
5380 * dwarf2out.c (FRAME_BEGIN_LABEL): New.
5381 (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
5382 the gas section-name-as-label feature.
5384 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
5386 * doc/cppinternals.texi: Update.
5388 Fri Oct 5 08:17:46 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5390 * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
5391 to ensure valid SImode constants.
5393 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
5395 * Makefile.in (c-decl.o): Depend on tree-inline.h.
5396 (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
5397 * c-decl.c: Include tree-inline.h.
5398 (c_expand_body): Call optimize_inline_calls. Determine whether
5399 a function is inlinable upfront, and only clear
5400 DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
5401 * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
5402 (c_disregard_inline_limits): New function.
5403 (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
5404 (c_post_options): Enable tree inlining if inlining is enabled.
5405 Don't inline trees when instrumenting functions.
5406 (c_init): Initialize lang_disregard_inline_limits and
5407 lang_cannot_inline_tree_fn.
5408 * tree-inline.c (initialize_inlined_parameters): Handle calls
5409 with fewer arguments than declared parameters, and fewer
5410 parameters than passed arguments. Don't assume value is a
5412 (declare_return_variable): Convert return value back to the
5413 original type, if it was promoted.
5414 (tree_inlinable_function_p): New function.
5415 (inlinable_function_p): Don't look at DECL_INLINE if we're
5416 inlining all functions. Make it work with a NULL id.
5417 Re-check DECL_UNINLINABLE after language-specific checks.
5418 * tree-inline.h (tree_inlinable_function_p): Declare it.
5419 * integrate.c (save_for_inline): Don't bother to prepare argvec
5421 * cse.c (check_for_label_ref): Don't check deleted labels.
5423 * Makefile.in (tree-inline.o): Depend on newly-included headers.
5424 * tree-inline.c: Include headers needed for the functions moved in.
5425 (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5426 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5427 (copy_body, initialize_inlined_parameters): Likewise.
5428 (declare_return_variable, inlinable_function_p): Likewise.
5429 (expand_call_inline, expand_calls_inline): Likewise.
5430 (optimize_inline_calls, clone_body): Likewise.
5431 (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5432 (copy_tree_r, remap_save_expr): Likewise.
5434 2001-10-04 Alexandre Oliva <aoliva@redhat.com>
5436 * Makefile.in (OBJS): Added tree-inline.o.
5437 (c-common.o): Depend on tree-inline.h.
5438 (tree-inline.o): New target.
5439 * c-common.c: Include tree-inline.h.
5440 (c_mark_lang_decl): Don't mark saved_tree.
5441 (c_common_lang_init): Set lang_anon_aggr_type_p.
5442 * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5443 (struct c_lang_decl): Moved saved_tree to tree_decl.
5444 * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5445 * integrate.h (function_attribute_inlinable_p): Declare it.
5446 * integrate.c (function_attribute_inlinable_p): Export it.
5447 * tree-inline.c: New file. Define variables declared in...
5448 * tree-inline.h: New file. Declare functions to be moved to
5449 tree-inline.c. Define macros and declare types and hooks for
5450 language-specific tree inlining.
5451 (flag_inline_trees): Moved definition from cp/decl2.c.
5452 * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5453 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5454 (struct tree_decl): Moved saved_tree from c_lang_decl and
5455 inlined_fns from C++'s lang_decl.
5457 2001-10-04 Loren J. Rittle <ljrittle@acm.org>
5459 * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5460 propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5462 2001-10-04 Neil Booth <neil@daikokuya.demon.co.uk>
5464 * doc/cppinternals.texi: Update.
5466 2001-10-04 Eric Christopher <echristo@redhat.com>
5468 * config/mips/mips.c (init_cumulative_args): Remember to set
5470 * config.gcc: Redo linux configuration. Add target_cpu_default
5471 of soft-float to all mipsisa32 combinations and tx39.
5472 * config/mips/linux.h: Remove include of mips.h.
5474 2001-10-03 Loren J. Rittle <ljrittle@acm.org>
5476 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5477 HOST_LDFLAGS and HOST_CPPFLAGS.
5479 2001-10-03 Ziemowit Laski <zlaski@apple.com>
5481 * c-parse.in (objc_inherit_code, objc_pq_context,
5482 objc_public_flag): Make static.
5483 (objc_interface_context, objc_implementation_context,
5484 objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5485 global tree array in objc/objc-act.[ch].
5486 (methoddef): Remove unnecessary code.
5488 * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5489 Hoist struct definitions to objc-act.h.
5490 (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5491 cat_count): Place declaration in objc-act.h.
5492 (objc_tree_index): Move enumeration to objc-act.h.
5493 (objc_global_trees): Place declaration and macro accessors in
5495 (implementation_context): Remove duplicate; use
5496 objc_implementation_context instead:
5497 (method_context): Remove duplicate; use objc_method_context
5499 (objc_ellipsis_node, objc_method_prototype_template,
5500 implemented_classes, function_type): Move global vars to
5502 (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5503 (build_message_expr): Move actual construction of ObjC message
5504 send nodes to finish_message_expr.
5505 (finish_message_expr): New routine, contains code formerly in
5507 * objc/objc-act.h (finish_message_expr): New prototype.
5508 (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5509 declarations; these vars are now part of objc_global_trees.
5510 (objc_tree_index, objc_global_trees): Move definitions from
5512 * objc/objc-tree.def: Update copyright info.
5514 Wed Oct 3 12:22:11 EDT 2001 John Wehle (john@feith.com)
5516 * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5518 * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5519 only if TARGET_ARCH64.
5521 2001-10-02 Bernd Schmidt <bernds@redhat.com>
5523 * doc/extend.texi: Fix some problems with previous checkin.
5524 * doc/invoke.texi: Likewise.
5526 2001-10-02 Neil Booth <neil@daikokuya.demon.co.uk>
5528 * cpphash.h: Update comments.
5529 (cpp_context): Update.
5530 (spec_nodes): Remove n__Pragma.
5531 * cppinit.c (cpp_create_reader): Update.
5532 (builtin_array): Add _Pragma.
5533 * cpplib.h: Update comments.
5534 (NODE_DISABLED, BT_PRAGMA): New.
5535 (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5536 * cppmacro.c (struct cpp_macro): Remove disabled.
5537 (builtin_macro): Return int, handle _Pragma, push the new token
5538 on the context stack.
5539 (funlike_invocation_p): Unconstify, update.
5540 (enter_macro_context): Handle builtins here.
5541 (replace_args, push_token_context, push_ptoken_context):
5542 Update for prototype changes.
5543 (_cpp_pop_context): Update.
5544 (cpp_get_token): Don't handle buitins, nor _Pragma here.
5545 (cpp_sys_macro_p): Update.
5546 (_cpp_free_definition): Clear disabled flag.
5547 (_cpp_create_definition): Upate.
5548 * cppmain.c: Update comments.
5550 Tue Oct 2 12:46:01 CEST 2001 Bo Thorsen <bo@suse.co.uk>,
5551 Andreas Jaeger <aj@suse.de>,
5552 Jan Hubicka <jh@suse.cz>
5554 * doc/invoke.texi (i386 Options): Document x86-64 options.
5555 (i386 and x86-64 Options): Rename i386 options section.
5557 * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5558 (TARGET_SWITCHES): Add -munwind-info.
5559 (MASK_NO_UNWIND_INFO): New.
5560 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5562 (ASM_OUTPUT_DOUBLE_INT): New.
5564 * config/i386/linux64.h: New spec file for Linux x86-64 support.
5565 * config.gcc: Fix tm_file settings for x86-64.
5566 * config/i386/x86-64.h: New file with OS independent x86-64
5568 * config/i386/biarch64.h: New file used to configure compiler
5569 to biarch/64bit compilation.
5571 * config/i386/i386.c: (override_options): Set flags default
5572 for 64bit compilation.
5574 Tue Oct 2 12:46:01 CEST 2001 Jan Hubicka <jh@suse.cz>
5576 * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5577 (ix86_expand_int_movcc): Optimize DImode conditional moves with
5578 constants on x86_64.
5579 (ix86_attr_length_immediate_default): Support MODE_DI.
5580 * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5582 (indirect_jump, tablejump): Turn into expander.
5584 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5586 * c-common.c (c_format_attribute_table): Make format and
5587 format_arg attributes apply to function types rather than to
5589 (is_valid_printf_arglist): Construct an attribute list and pass
5590 that to check_function_format rather than a name.
5591 * c-common.h (check_function_format): Adjust prototype.
5592 * c-decl.c (duplicate_decls): Preserve attributes from type of
5593 built-in decl when allowing for harmless conflict in types.
5594 * c-format.c (record_function_format,
5595 record_international_format, function_format_list,
5596 international_format_info, international_format_list): Remove.
5597 (function_format_info): Remove next, name and assembler_name.
5598 Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5599 (decode_format_attr): New.
5600 (handle_format_attribute): Handle receiving a type rather than a
5601 decl. Call decode_format_attr. Store format information in a
5602 function_format_info.
5603 (handle_format_arg_attribute): Correct comment. Handle receiving
5604 a type rather than a decl. Use unsigned HOST_WIDE_INT for
5606 (check_format_info_recurse, check_format_info_main): Take argument
5607 numbers as unsigned HOST_WIDE_INT.
5608 (check_function_format): Take a list of attributes from the
5609 function type rather than a name or assembler name. Check for
5610 format attributes in that list and the attributes on the type of
5611 the current function rather than looking through
5612 function_format_list.
5613 (check_format_info): Use unsigned HOST_WIDE_INT for argument
5615 (check_format_info_recurse): Take format_arg attributes from the
5616 type of the function calls rather than using
5617 international_format_list. Allow for multiple format_arg
5619 * c-typeck.c (build_function_call): Pass type attributes to
5620 check_function_format rather than name or assembler name. Don't
5621 require there to be a name or assembler name to check formats.
5623 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5625 * attribs.c (decl_attributes): Possibly call
5626 insert_default_attributes to insert default attributes on
5627 functions in a lazy manner.
5628 * builtin-attrs.def: New file; define the default format and
5629 format_arg attributes.
5630 * c-common.c (c_format_attribute_table): Move to earlier in the
5632 (c_common_nodes_and_builtins): Initialize format_attribute_table.
5633 (enum built_in_attribute, built_in_attributes,
5634 c_attrs_initialized, c_init_attributes,
5635 c_common_insert_default_attributes): New.
5636 (c_common_lang_init): Don't initialize format_attribute_table. Do
5637 call c_init_attributes.
5638 * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5639 * c-common.h (init_function_format_info): Don't declare.
5640 (c_common_insert_default_attributes): Declare.
5641 * c-decl.c (implicitly_declare, builtin_function): Call
5643 (init_decl_processing): Don't call init_function_format_info.
5644 (insert_default_attributes): New.
5645 * c-format.c (handle_format_attribute,
5646 handle_format_arg_attribute): Be quiet about inappropriate
5647 declaration when applying default attributes.
5648 (init_function_format_info): Remove.
5649 * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5650 (insert_default_attributes): Declare.
5652 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
5654 * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5656 2001-10-01 Jim Wilson <wilson@redhat.com>
5658 * sched-deps.c (add_dependence): When elide conditional dependence,
5659 check that insn doesn't modify cond2.
5661 2001-10-01 Dale Johannesen <dalej@apple.com>
5663 * config/rs6000/rs6000.h (enum processor_type): Add support
5664 for 7400 (G4) and 7450.
5666 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5667 (rs6000_issue_rate): Ditto.
5668 (rs6000_adjust_cost): Fix cycle counts for compares.
5669 (debug_stack_info): Fix an obvious typo.
5670 * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5671 * doc/invoke.texi: Document.
5672 * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5674 (PROCESSOR_DEFAULT): Ditto.
5676 2001-10-01 Loren J. Rittle <ljrittle@acm.org>
5678 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5679 (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5680 later recursive make invocation.
5682 2001-10-01 Hans Boehm <boehm@acm.org>
5684 * optabs.c (emit_libcall_block): When using non-call exceptions,
5685 don't add REG_LIBCALL reg notes to trapping calls.
5687 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
5689 * flow.c (propagate_block_delete_libcall): Remove unused first arg
5690 (propagate_one_insn): Update for above change
5692 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
5694 * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5695 _Unwind_GetTextRelBase): Argument is unused.
5697 Mon Oct 1 19:20:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5699 * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5700 Loop through NOPs, placeholders, and components.
5701 Don't go through NOPs if change mode.
5702 (record_alias_subset): Do nothing if SUBSET and SET are the same.
5703 * emit-rtl.c (set_mem_alias_set): Enable check.
5704 * expr.c (find_placeholder): New function.
5705 (expand_expr, case PLACEHOLDER_EXPR): Use it.
5706 (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5707 to modify it and avoid unneeded copies.
5708 * expr.h (expand_expr): Always define.
5709 (find_placeholder): New declaration.
5711 2001-10-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5713 * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5714 operand 2 is the stack pointer.
5715 ("addr-peephole"): Fix address computation peephole when operand 2
5716 is the stack pointer.
5718 Mon Oct 1 09:26:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5720 * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5721 (ix86_setup_incoming_varargs): Likewise.
5723 2001-10-01 Jason Merrill <jason_merrill@redhat.com>
5725 * stor-layout.c (layout_type): Don't complain about too-large
5728 Mon Oct 1 06:43:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5730 * function.c (keep_stack_depressed): Don't use delete_insn.
5732 * expr.h (set_mem_alias_set): Move decl to here.
5733 * rtl.h (mem_attrs): New typedef and struct.
5734 (union rtunion_def): Add field for mem_attrs.
5735 (X0MEMATTR, MEM_ATTRS): New macros.
5736 (MEM_ALIAS_SET): Use MEM_ATTRS.
5737 (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5738 (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5739 (set_mem_alias_set): Delete decl from here.
5741 * alias.c (set_mem_alias_set): Delete from here.
5742 * emit-rtl.c (mem_attrs_htab): New variable.
5743 (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5744 (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5745 (mem_attrs_mark, get_mem_attrs): Likewise.
5746 (gen_rtx_MEM): Clear MEM_ATTRS.
5747 (set_mem_attributes): Move to here.
5748 (set_mem_alias_set): Likewise, and call get_mem_attrs.
5749 (init_emit_once): const_int_htab now deletable htab.
5750 Initialize mem_attrs_htab.
5751 * explow.c (set_mem_attributes): Delete from here.
5752 * function.c (put_var_into_stack): Clear MEM_ATTRS.
5753 (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5754 * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5755 * reload1.c (reload): Rework changing REG to MEM.
5757 2001-09-30 H.J. Lu <hjl@gnu.org>
5759 * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5760 * config.in: Rebuild.
5762 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5764 * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5765 ("tsthi_1"): Avoid allocation in register y.
5766 ("*movqi_68hc12"): Reorganize and fix constraints.
5767 ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5768 ("addqi3"): Likewise.
5769 ("addhi3"): Fix constraints.
5770 ("*logicalhi3_zexthi"): Disparage soft registers.
5772 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5774 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5777 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5779 * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5780 that we use setjmp/longjmp exceptions.
5782 2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
5784 * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5785 POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5786 struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5787 _cpp_pool_alloc, _cpp_next_chunk): Remove.
5788 (_cpp_extend_buff, BUFF_ROOM): Update.
5789 (_cpp_append_extend_buff): New.
5790 (struct cpp_reader): Remove macro_pool, add a_buff.
5791 * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5793 (cpp_destroy): Free a_buff instead of macro_pool.
5794 * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5795 new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5796 _cpp_pool_alloc, ): Remove.
5797 (parse_number, parse_string): Update use of _cpp_extend_buff.
5798 (_cpp_extend_buff): Update.
5799 (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5800 * cpplib.c (glue_header_name, parse_answer):
5801 Update use of _cpp_extend_buff.
5802 (cpp_register_pragma, cpp_register_pragma_space): Use
5804 (do_assert, do_unassert): Check for EOL, update.
5805 * cppmacro.c (stringify_arg, collect_args): Update to use
5806 _cpp_extend_buff and _cpp_append_extend_buff.
5807 (save_parameter, parse_params, alloc_expansion_token,
5808 _cpp_create_definition): Rework memory management.
5810 2001-09-29 Andris Pavenis <pavenis@lanet.lv>
5812 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5813 update md_exec_prefix.
5814 (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5817 2001-09-30 Ulrich Weigand <uweigand@de.ibm.com>
5819 * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5820 (SELECT_CC_MODE): Use s390_select_ccmode.
5821 * config/s390/s390-protos.h (s390_select_ccmode): Add.
5822 * config/s390/s390.c (s390_select_ccmode): New.
5823 (s390_match_ccmode): Add CCLmode.
5824 (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
5825 (output_branch_condition, output_inverse_branch_condition): Removed.
5826 (print_operand): Use s390_branch_condition_mnemonic.
5827 * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
5828 subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
5829 (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
5831 * config/s390/s390.c (check_and_change_labels): Preserve CC mode
5832 when converting conditional branches to far branches.
5833 * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
5834 cmpint_di): Use CCSmode instead of CCUmode.
5836 * config/s390/s390.c (legitimate_la_operand_p): New.
5837 * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
5838 * config/s390/s390.md (movsi): Convert load address patterns to
5839 arithmetic operations when necessary.
5840 (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
5841 (do_la): Renamed to *do_la and use legitimate_la_operand_p.
5842 (*do_la_reg_0): Don't use before reload.
5844 * config/s390/s390.c (legitimize_address): Make more efficient
5845 use of two-register addressing mode.
5847 * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
5848 with -mno-backchain in some corner cases.
5850 * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
5852 2001-09-29 Alexandre Oliva <aoliva@redhat.com>
5854 * reload.c (find_reloads): Mark new USE insns with QImode.
5855 (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
5856 find_reloads_subreg_address): Likewise.
5857 * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
5859 * reload1.c (reload_combine_note_use): Likewise, inside USEs and
5861 (reload): Make sure there are no USEs with mode other than
5862 VOIDmode. At the end, remove those marked with QImode.
5864 2001-09-29 Per Bothner <per@bothner.com>
5866 * cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
5867 * Makefile.in (includedir): Rename to local_includedir.
5868 (includedir): Define as $(prefix)/include.
5869 * config.in (PREFIX_INCLUDE_DIR): New variable.
5870 * configure.in (PREFIX_INCLUDE_DIR): Test for new variable.
5872 2001-09-29 Bernd Schmidt <bernds@redhat.com>
5874 * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
5876 * doc/extend.texi (Vector Extensions): New node.
5877 * doc/invoke.texi (Machine Dependent Options): Add documentation for
5878 i386 -mmmx, -msse, -m3dnow.
5880 Sat Sep 29 15:08:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5882 * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
5884 2001-09-29 Hans-Peter Nilsson <hp@axis.com>
5886 * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
5888 * doc/invoke.texi (Optimize Options): Delete spurious @table.
5890 2001-09-28 Richard Henderson <rth@redhat.com>
5892 * varasm.c (assemble_integer): Bound alignment check by
5895 * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
5897 2001-09-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5899 * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
5901 2001-09-25 Bernd Schmidt <bernds@redhat.com>
5903 Mostly from Graham Stott <grahams@redhat.com>
5904 * c-common.c (type_for_mode): Add support for V2SFmode.
5905 * tree.c (build_common_tree_nodes_2): Likewise.
5906 * tree.h (enum tree_index, global_trees): Likewise.
5907 * config/i386/i386.c (x86_3dnow_a): New variable.
5908 (override_options): Support 3Dnow extensions.
5909 (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
5910 Athlon's version of 3Dnow.
5911 (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
5912 (ix86_expand_builtin): Handle them.
5913 (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
5914 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
5915 TARGET_3DNOW_A): New macros.
5916 (TARGET_SWITCHES): Add 3Dnow switches.
5917 (VALID_MMX_REG_MODE_3DNOW): New macro.
5918 (VECTOR_MODE_SUPPORTED_P): Use it.
5919 (enum ix86_builtins): Add entries for 3Dnow builtins.
5920 * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
5921 pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
5922 pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
5923 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
5924 pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
5925 pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
5926 (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
5927 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
5928 mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
5929 sfence_insn, prefetch): Make these available if TARGET_SSE or
5932 Fri Sep 28 19:18:40 CEST 2001 Jan Hubicka <jh@suse.cz>
5934 * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
5935 ix86_va_start, ix86_build_va_list): Declare.
5936 * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
5937 ix86_va_start, ix86_build_va_list): New global functions.
5938 * i386.md (sse_prologue_save_insn): New insn.
5939 (sse_prologue_save): New expander.
5940 * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
5941 BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
5943 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
5945 * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
5946 Use size_t everywhere, make definitions consistent with
5949 Fri Sep 28 14:59:34 CEST 2001 Jan Hubicka <jh@suse.cz>
5951 * gcse.c (replace_store_insn): Use delete_insn.
5952 * loop.c (move_movables): Likewise; avoid delete_insn
5953 from clobbering notes moved elsewhere.
5954 (check_dbra_loop): Use delete_insn.
5955 * ssa.c (convert_from_ssa): Likewise.
5956 * cse.c (cse_insn): Use delete_insn.
5958 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
5960 * cpphash.h (struct cpp_buff): Make unsigned.
5961 (_cpp_get_buff): Take length of size_t.
5962 (_cpp_unaligned_alloc): New.
5963 (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
5964 (struct cpp_reader): Remove ident_pool. Add u_buff.
5965 * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
5966 (cpp_destroy): Destroy u_buff, not ident_pool.
5967 * cpplex.c (parse_number, parse_string, save_comment,
5968 cpp_token_as_text): Update to use the unaligned buffer.
5969 (new_buff): Make unsigned.
5970 (_cpp_unaligned_alloc): New.
5971 * cpplib.c (glue_header_name): Update to use the unaligned buffer.
5972 * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
5974 (collect_args): Make unsigned.
5976 2001-09-27 Zack Weinberg <zack@codesourcery.com>
5978 * cpplex.c (cpp_output_token): Use a putc loop for
5979 SPELL_OPERATOR, and fwrite for SPELL_IDENT.
5981 * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
5982 * configure, config.in: Regenerate.
5983 * system.h: Replace fwrite and fprintf with their unlocked
5984 variants if available.
5986 2001-09-27 Richard Henderson <rth@redhat.com>
5988 * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
5989 in favour of .eh_frame.
5991 2001-09-27 Aldy Hernandez <aldyh@redhat.com>
5993 * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
5995 (LIBCALL_VALUE): Likewise.
5997 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
5999 * cpphash.h: Update comment.
6000 * cpplex.c: Update comments.
6001 (_cpp_can_paste): Remove.
6002 * cpplib.h (_cpp_can_paste): Remove.
6003 * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6004 lexer rather than _cpp_can_paste.
6006 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
6008 * doc/cppinternals.texi: Update.
6010 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6012 * cpphash.h (struct cpp_pool): Remove locks and locked.
6013 (struct cpp_context): Add member buff.
6014 (struct cpp_reader): Remove member argument_pool.
6015 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6016 * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6017 * cpplex.c (chunk_suitable): Remove pool argument.
6018 (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6019 (new_buff, _cpp_extend_buff): Update.
6020 (_cpp_get_buff): Fix silly pointer bug. Be more selective about
6021 which buffer is returned.
6022 (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6023 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6024 * cppmacro.c (lock_pools, unlock_pools): Remove.
6025 (push_ptoken_context): Take a _cpp_buff.
6026 (enter_macro_context): Pool locking removed.
6027 (replace_args): Use a _cpp_buff for the replacement list with
6029 (push_token_context): Clear buff.
6030 (expand_arg): Use _cpp_pop_context.
6031 (_cpp_pop_context): Free a context's buffer, if any.
6033 2001-09-26 DJ Delorie <dj@redhat.com>
6035 * c-typeck.c (digest_init): Check for sizeless arrays.
6037 2001-09-26 Richard Henderson <rth@redhat.com>
6039 * optabs.c (init_one_libfunc): Create a dummy function type
6040 instead of using error_mark_node.
6042 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
6044 * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6045 _cpp_extend_buff, _cpp_free_buff): New.
6046 (struct cpp_reader): New member free_buffs.
6047 * cppinit.c (cpp_destroy): Free buffers.
6048 * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6049 _cpp_extend_buff, _cpp_free_buff): New.
6050 * cpplib.h (struct cpp_options): Remove unused member.
6051 * cppmacro.c (collect_args): New. Combines the old parse_arg
6052 and parse_args. Use _cpp_buff for memory allocation.
6053 (funlike_invocation_p, replace_args): Update.
6055 Wed Sep 26 13:20:51 CEST 2001 Jan Hubicka <jh@suse.cz>
6057 * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6059 2001-09-25 Andrew Haley <aph@cambridge.redhat.com>
6061 * except.c (sjlj_mark_call_sites): Change address inside sequence.
6063 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
6065 * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6068 2001-09-25 Janis Johnson <janis187@us.ibm.com>
6069 Jim Wilson <wilson@redhat.com>
6071 * doc/install.texi (Specific, ia64-*-linux): Document.
6073 Tue Sep 25 17:13:56 CEST 2001 Jan Hubicka <jh@suse.cz>
6075 * Makefile.in (cfgrtl.o): Add.
6076 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6077 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6078 free_aux_for_edge): Declare.
6080 (HAVE_return): Undefine.
6081 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6082 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6083 free_aux_for_edge): New global functions.
6084 (first_delete_block): New static variable.
6085 (init_flow): Clear first_delete_block.
6086 (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6087 can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6088 try_redirect_by_replacing_jump, last_loop_beg_note,
6089 back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6090 delete_insn, delete_insn_chain, create_basic_block_structure,
6091 create_basic_block, flow_delete_block, compute_bb_for_insn,
6092 free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6093 set_block_for_new_insns, split_block, merge_blocks_nomove,
6094 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6095 redirect_edge_and_branch, force_nonfallthru_and_redirect,
6096 force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6097 tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6098 commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6099 debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6100 purge_all_dead_edges): Move to ....
6101 * cfgrtl.c: New file; .... Here.
6103 * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6104 (reroder_basic_block): Use alloc_aux_for_blocks.
6105 * predict.c (estimate_bb_frequencies): Likewise; use
6106 alloc_aux_for_edges.
6107 * profile.c (compute_branch_probabilities): Likewise.
6108 (branch_prob): Likewise.
6109 * reg-stack.c (reg_to_stack): Likewise.
6111 * emit-rtl.c (emit_insns_after): Never return NULL.
6113 * basic-block.h (set_block_for_new_insns): Delete.
6114 * cfgrtl.c (set_block_for_new_insns): Delete.
6116 * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6117 calls when crossjumping.
6119 * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6120 * unroll.c (copy_loop_body): Use delete_insn.
6122 * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6123 * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6124 keep_stack_depressed): Likewise.
6125 * gcse.c (cprop_cc0_jump): Likewise.
6126 * local-alloc.c (update_equiv_regs): Likewise.
6127 * loop.c (scan_loop, loop_delete_insns): Likewise.
6128 * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6129 * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6130 delete_output_reload, delete_address_reloads_1,
6131 reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6133 * sibcall.c (replace_call_placeholder): Likewise.
6134 * cse.c (cse_insn): Likewise.
6136 2001-09-25 Bernd Schmidt <bernds@redhat.com>
6138 From Graham Stott <grahams@redhat.com>
6139 (def_builtin): Only define builtins appropriate for target_flags. All
6141 (builtin_decsription): Add new field mask which is used to determine
6142 when to define the builtin via the macro def_builtin.
6144 (bdesc_comi): Initialise new mask fields.
6145 (bdesc_2srg): Likewise.
6146 (bdesc_1arg): Likewise.
6148 * config/i386/i386.c (ix86_init_builtins): Correct return type
6149 building v4hi_ftype_v4hi_int_int tree node.
6150 (ix86_expand_sse_comi): Fix typo swapping operands.
6151 Don't swap comparision condition, it is already swapped.
6152 (ix86_expand_sse_compare): Before swapping operands
6153 move operand 1 into new rtx and not the target rtx.
6154 Don't swap comparison condition, it is already swapped.
6155 Always check whether we need to create a new TARGET.
6157 * config/i386/i386.md: (sse_comi) Fix typos.
6158 (sse_ucomi): Likewise.
6159 (cvtss2si): Fix operand 0 contraint.
6160 (cvttss2si): Likewise.
6161 (sse_unpckhps): Fix mode for operand 2.
6162 (sse_unpcklps): Likewise.
6164 2001-09-25 Graham Stott <grahams@redhat.com>
6166 * sibcall.c (skip_copy_to_return_value): Tighten return value
6169 2001-09-24 David Edelsohn <edelsohn@gnu.org>
6171 * rs6000.c (lwa_operand): Address must be word aligned.
6173 Mon Sep 24 18:57:59 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6175 * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6176 number has been set.
6177 (type_hash_mark): Mark type itself.
6179 2001-09-24 Neil Booth <neil@daikokuya.demon.co.uk>
6181 * c-lex.c (cb_def_pragma): Update.
6182 (c_lex): Update, and skip padding.
6183 * cppexp.c (lex, parse_defined): Update, remove unused variable.
6184 * cpphash.h (struct toklist): Delete.
6185 (union utoken): New.
6186 (struct cpp_context): Update.
6187 (struct cpp_reader): New members eof, avoid_paste.
6188 (_cpp_temp_token): New.
6189 * cppinit.c (cpp_create_reader): Update.
6190 * cpplex.c (_cpp_temp_token): New.
6191 (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6192 (cpp_output_token): Don't print leading whitespace.
6193 (cpp_output_line): Update.
6194 * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6195 do_include_common, do_line, do_ident, do_pragma,
6196 do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6197 parse_assertion): Update.
6198 (get_token_no_padding): New.
6199 * cpplib.h (CPP_PADDING): New.
6200 (AVOID_LPASTE): Delete.
6201 (struct cpp_token): New union member source.
6202 (cpp_get_token): Update.
6203 * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6204 (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6205 replace_args, quote_string, stringify_arg, parse_arg, next_context,
6206 enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6207 _cpp_backup_tokens, _cpp_create_definition): Update.
6208 (push_arg_context): Delete.
6209 (padding_token, push_token_context, push_ptoken_context): New.
6210 (make_string_token, make_number_token): Update, rename.
6211 (cpp_get_token): Update to handle tokens as pointers to const,
6212 and insert padding appropriately.
6213 * cppmain.c (struct printer): New member prev.
6214 (check_multiline_token): Constify.
6215 (do_preprocessing, cb_line_change): Update.
6216 (scan_translation_unit): Update to handle spacing.
6217 * scan-decls.c (get_a_token): New.
6218 (skip_to_closing_brace, scan_decls): Update.
6219 * fix-header.c (read_scan_file): Update.
6221 * doc/cpp.texi: Update.
6223 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6225 * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid
6226 leak by passing malloc'ed pointer to reconcat, not concat.
6228 2001-09-24 DJ Delorie <dj@redhat.com>
6230 * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6232 2001-09-24 Ulrich Weigand <uweigand@de.ibm.com>:
6234 * flow.c (delete_dead_jumptables): Delete jumptable if the only
6235 reference is from the literal pool.
6237 2001-09-24 Janis Johnson <janis187@us.ibm.com>
6239 * doc/install.texi (Final install): Request additional information
6240 in mail about successful builds.
6242 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6244 * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero. Use
6245 initial value of return pointer register instead of value in frame-20.
6248 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6250 * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6251 (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6252 the libcall if there isn't a referenced identifier for the symbol.
6254 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6256 * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6257 non 64-bit machines. Use these as a plabel for the trampoline.
6258 (TRAMPOLINE_SIZE): Adjust size for new words.
6259 (INITIALIZE_TRAMPOLINE): Initialize new words.
6260 (TRAMPOLINE_ADJUST_ADDRESS): New. Adjust address to make it a
6261 pointer to the plabel in the trampoline.
6263 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
6265 * pa.c (function_arg): Pass floating arguments in both general and
6266 floating registers in indirect (dynamic) calls when generating code
6267 for the 32 bit ABI and the HP assembler.
6269 2001-09-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6271 * doc/install.texi: Markup fixes.
6272 Use Solaris 2, SunOS 4 as appropriate.
6273 (Specific, *-*-solaris2*): Explain this.
6274 Unconditionally warn against /usr/ucb tools.
6275 Remove Sun as warning, obsolete.
6276 Move X11 header bug workaround here, update patches.
6277 (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6278 (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6280 2001-09-23 Zack Weinberg <zack@codesourcery.com>
6282 * errors.h (warning, error, fatal, internal_error): Don't mark
6283 with ATTRIBUTE_PRINTF_n.
6284 * toplev.h (internal_error, fatal_io_error, warning, error,
6285 pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6286 error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6289 Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6291 * function.c (pop_function_context_from): var_refs_queue
6292 and temp slots now in GC memory.
6293 (mark_function_status, free_after_compilation): Likewise;
6294 also struct function now in GC memory.
6295 (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6296 (combine_temp_slots): Likewise.
6297 (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6298 (prepare_function_start): Use GC memory for struct function.
6299 (mark_temp_slot): Deleted.
6300 (gcc_mark_struct_function): struct function now in GC memory.
6302 * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6303 code for division, not modulus.
6305 * rtl.def (MEM): Remove obsolete part of comment.
6307 2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
6309 * c-format.c (init_function_format_info): Check __builtin_printf
6310 and __builtin_fprintf even if -ffreestanding. Check C99 functions
6313 Sat Sep 22 09:09:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6315 * c-common.c (format_attribute_table): Remove decl.
6316 * tree.h (format_attribute_table, lang_attribute_table): New decls.
6317 (lang_attribute_common): Likewise.
6319 * function.c (fix_lexical_address): Use set_mem_alias_set.
6320 (expand_function_start): Likewise.
6321 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6323 * varasm.c (output_constant): Fix unused variable warning.
6325 * attribs.c: New file, from c-common.c.
6326 (attribute_tables): Now four elements.
6327 (format_attribute_table, lang_attribute_common): New variables.
6328 (init_attributes): Reflect above changes.
6329 (handle_mode_attribute): Delete check for wider than uintmax.
6330 * c-common.c: Delete parts moved to attribs.c.
6331 (enum attrs): Deleted; unused.
6332 (c_format_attribute_table): New variable.
6333 (c_common_lang_init): Initialize format_attribute_table with it.
6334 * c-common.h (decl_attributes): Remove decl.
6335 * tree.h (decl_attribute): Move it to here.
6336 * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
6337 (attribs.o): New rule.
6339 2001-09-22 Andreas Jaeger <aj@suse.de>
6341 * builtins.c (c_getstr): Remove unused variable.
6343 2001-09-21 Richard Henderson <rth@redhat.com>
6345 * reload1.c (reload): Use delete_insn instead of splatting
6348 2001-09-21 Richard Henderson <rth@redhat.com>
6350 * reload.c (push_secondary_reload): Don't check for "=" in output
6351 constraint after ""->ALL_REGS check.
6353 2001-09-21 Richard Henderson <rth@redhat.com>
6355 * predict.c (expected_value_to_br_prob): Use pc_set.
6357 * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
6358 ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
6360 2001-09-21 Richard Henderson <rth@redhat.com>
6362 * rtl.h (LCT_RETURNS_TWICE): New.
6363 * calls.c (emit_call_1): Set current_function_calls_setjmp for
6365 (emit_library_call_value_1): Map LCT_RETURNS_TWICE
6366 to ECF_RETURNS_TWICE.
6367 * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
6370 * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
6372 * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
6373 (JMP_BUF_SIZE): New.
6375 2001-09-21 Richard Henderson <rth@redhat.com>
6377 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
6380 2001-09-21 Richard Henderson <rth@redhat.com>
6382 * tree.def (FDESC_EXPR): New.
6383 * expr.c (expand_expr): Handle it.
6384 * varasm.c (initializer_constant_valid_p): Likewise.
6385 (output_constant): Likewise.
6386 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6387 * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6388 (ASM_OUTPUT_FDESC): New.
6389 * doc/tm.texi: Document the new macros.
6391 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
6393 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
6394 ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
6395 once merging is complete.
6397 Fri Sep 21 11:20:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6399 * integrate.c (allocate_initial_values): Eliminate unused arg warning.
6401 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
6403 * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
6404 that would be invalid after a merge.
6406 Fri Sep 21 14:24:29 CEST 2001 Jan Hubicka <jh@suse.cz>
6408 * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6409 * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6411 (flow_delete_insn): This one.
6412 (delete_insn_chain): Rename from ...; do not care labels.
6413 (flow_delete_insn_chain): ... this one.
6414 (flow_delete_block): Remove the insns one BB has been expunged.
6415 (merge_blocks_nomove): Likewise.
6416 (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6417 updating BB boundaries.
6418 (tidy_fallthru_edge): Likewise.
6419 (commit_one_edge_insertion): Likewise.
6420 * cfgbuild.c (find_basic_block): Likewise.
6421 (find_basic_blocks_1): Likewise.
6422 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6423 (try_crossjump_to_edge): Likewise.
6424 (try_optimize_cfg): Likewise.
6425 * cse.c (delete_trivially_dead_insns): Likewise.
6426 * df.c (df_insn_delete): Likewise.
6427 * doloop.c (doloop_modify): Use delete_related_insns.
6428 * emit-rtl.c (try_split): Likewise.
6429 (remove_insn): Update BB boundaries.
6430 * expect.c (connect_post_landing_pads): Use delete_related_insns.
6431 * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6432 updating BB boundaries.
6433 (propagate_block_delete_insn): Likewise.
6434 (propagate_block_delete_libcall): Likewise.
6435 * function.c (delete_handlers): Use delete_related_insns.
6436 (thread_prologue_and_epilogue_insns): Likewise.
6437 * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6438 * genpeep.c (gen_peephole): Use delete_related_insns.
6439 * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6441 (find_cond_trap): Likewise.
6442 * integrate.c (save_for_inline): Use delete_related_insns.
6443 (copy_insn_list): Likewise.
6444 * jump.c (pruge_linie_number_notes): Likewise.
6445 (duplicate_loop_exit_test): Likewise.
6446 (delete_computation): Likewise.
6447 (delete_related_insn): Rename from ...; use delete_insn
6448 (delete_insn): ... this one.
6449 (redirect_jump): Use delete_related_insns.
6450 * loop.c (scan_loop): Likewise.
6451 (move_movables): Likewise.
6452 (find_and_verify_loops): Likewise.
6453 (check_dbra_loop): Likewise.
6454 * recog.c (peephole2_optimize): Likewise.
6455 * reg-stack.c (delete_insn_for_stacker): Remove.
6456 (move_for_stack_reg): Use delete_insn.
6457 * regmove.c (combine_stack_adjustments_for_block): Likewise.
6458 * reload1.c (delete_address_reloads): Use delete_related_insns.
6459 (fixup_abnormal_edges): Use delete_insn.
6460 * recog.c (emit_delay_sequence): Use delete_related_insns.
6461 (delete_from-delay_slot): Likewise.
6462 (delete_scheduled_jump): likewise.
6463 (optimize_skip): Likewise.
6464 (try_merge_delay_insns): Likewise.
6465 (full_simple_delay_slots): Likewise.
6466 (fill_slots_from_thread): Likewise.
6467 (relax_delay_slots): Likewise.
6468 (make_return_insns): Likewise.
6469 (dbr_schedule): Likewise.
6470 * rtl.h (delete_insn): Rename to delete_related_insns.
6471 (delete_insn, delete_insn_chain): New prototypes.
6472 * ssa-ccp (sse_fast_dce): Remove deleting of DEF, as it is done
6473 by df_insn_delete already.
6474 * ssa-dce.c (delete_insn_bb): Use delete_insn.
6475 * ssa.c (convert_from_ssa): Use delete_related_insns.
6476 * unroll.c (unroll_loop): Likewise.
6477 (calculate_giv_inc): Likewise.
6478 (copy_loop_body): Likewise.
6480 * i386-protos.h (ix86_libcall_value, ix86_function_value,
6481 ix86_function_arg_regno_p, ix86_function_arg_boundary,
6482 ix86_return_in_memory, ix86_function_value): Declare.
6483 * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6484 new static valurables.
6485 (x86_64_reg_class): New enum
6486 (x86_64_reg_class_name): New array.
6487 (classify_argument, examine_argument, construct_container,
6488 merge_classes): New static functions.
6489 (optimization_options): Enable flag_omit_frame_pointer and disable
6490 flag_pcc_struct_return on 64bit.
6491 (ix86_libcall_value, ix86_function_value,
6492 ix86_function_arg_regno_p, ix86_function_arg_boundary,
6493 ix86_return_in_memory, ix86_function_value): New global functions.
6494 (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6495 (function_arg_advance): Handle x86_64 passing conventions.
6496 (function_arg): Likewise.
6497 * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6498 (RETURN_IN_MEMORY): Move offline.
6499 (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6500 (FUNCTION_VALUE_REGNO_P): New macro.
6501 (FUNCTION_ARG_REGNO_P): Move offline.
6502 (struct ix86_args): Add maybe_vaarg.
6503 * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6504 * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6506 2001-09-21 Hartmut Penner <hpenner@de.ibm.com>
6508 * s390.md: Changed attributes for scheduling.
6509 * s390.c: (s390_adjust_cost, s390_adjust_priority)
6512 2001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
6514 Table-driven attributes.
6515 * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6516 config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6517 config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6518 config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6519 config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6520 config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6521 doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6522 tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6523 * tree.h (struct tree_decl): Change machine_attributes to
6525 * doc/c-tree.texi: Document that all attributes are now attached
6527 * c-common.c (add_attribute, attrtab, attrtab_idx,
6528 default_valid_lang_attribute, valid_lang_attribute): Remove.
6529 (attribute_tables, attributes_initialized,
6530 c_common_attribute_table, default_lang_attribute_table): New
6532 (handle_packed_attribute, handle_nocommon_attribute,
6533 handle_common_attribute, handle_noreturn_attribute,
6534 handle_unused_attribute, handle_const_attribute,
6535 handle_transparent_union_attribute, handle_constructor_attribute,
6536 handle_destructor_attribute, handle_mode_attribute,
6537 handle_section_attribute, handle_aligned_attribute,
6538 handle_weak_attribute, handle_alias_attribute,
6539 handle_no_instrument_function_attribute,
6540 handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6541 handle_no_limit_stack_attribute, handle_pure_attribute): New
6543 (init_attributes, decl_attributes): Rewrite to implement
6544 table-driven attributes.
6545 * c-common.h (enum attribute_flags): Move to tree.h.
6546 * c-format.c (decl_handle_format_attribute,
6547 decl_handle_format_arg_attribute): Rename to
6548 handle_format_attribute and handle_format_arg_attribute. Update
6549 for table-driven attributes.
6550 * c-common.h (decl_handle_format_attribute,
6551 decl_handle_format_arg_attribute): Remove prototypes.
6552 (handle_format_attribute, handle_format_arg_attribute): Add
6554 * c-decl.c (grokdeclarator): Handle attributes nested inside
6556 * c-parse.in (setattrs, maybe_setattrs): Remove.
6557 (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6558 Update to handle nested attributes properly.
6559 (maybe_resetattrs, after_type_declarator,
6560 parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6561 absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6563 (make_pointer_declarator): Update to handle nested attributes
6565 * doc/extend.texi: Update documentation of limits of attributes
6566 syntax. Warn about problems with attribute semantics in C++.
6567 * target.h (struct target): Remove valid_decl_attribute and
6568 valid_type_attribute. Add attribute_table and
6569 function_attribute_inlinable_p.
6570 * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6571 TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6572 (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6574 (TARGET_INITIALIZER): Update.
6575 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6577 (function_attribute_inlinable_p): New function. Check for the
6578 presence of any machine attributes before using
6579 targetm.function_attribute_inlinable_p.
6580 (function_cannot_inline_p): Update.
6581 * Makefile.in (integrate.o): Update dependencies.
6582 * doc/tm.texi: Update documentation of target attributes and
6583 example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6584 * tree.c (default_valid_attribute_p, valid_machine_attribute):
6586 (default_target_attribute_table,
6587 default_function_attribute_inlinable_p): New.
6588 (lookup_attribute): Update comment to clarify handling of multiple
6589 attributes with the same name.
6590 (merge_attributes, attribute_list_contained): Allow multiple
6591 attributes with the same name but different arguments to appear in
6592 the same attribute list.
6593 * tree.h (default_valid_attribute_p): Remove prototype.
6594 (struct attribute_spec): New.
6595 (default_target_attribute_table): Declare.
6596 (enum attribute_flags): Move from c-common.h. Add
6597 ATTR_FLAG_TYPE_IN_PLACE.
6598 (default_function_attribute_inlinable_p): Declare.
6599 * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6600 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6601 (TARGET_ATTRIBUTE_TABLE): Define.
6602 (vms_attribute_table): New.
6603 * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6604 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6605 (TARGET_ATTRIBUTE_TABLE): Define.
6606 (arc_attribute_table, arc_handle_interrupt_attribute): New.
6607 * config/arm/arm.c (arm_valid_type_attribute_p,
6608 arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6610 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6612 (TARGET_ATTRIBUTE_TABLE): Define.
6613 (arm_attribute_table, arm_handle_fndecl_attribute,
6614 arm_handle_isr_attribute): New.
6615 * config/avr/avr.c (avr_valid_type_attribute,
6616 avr_valid_decl_attribute): Remove.
6617 (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6619 (TARGET_ATTRIBUTE_TABLE): Define.
6620 (avr_attribute_table, avr_handle_progmem_attribute,
6621 avr_handle_fndecl_attribute): New.
6622 * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6623 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6624 (TARGET_ATTRIBUTE_TABLE): Define.
6625 (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6626 * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6627 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6628 (TARGET_ATTRIBUTE_TABLE): Define.
6629 (h8300_attribute_table, h8300_handle_fndecl_attribute,
6630 h8300_handle_eightbit_data_attribute,
6631 h8300_handle_tiny_data_attribute): New.
6632 * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6633 i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6635 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6637 * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6638 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6640 (TARGET_ATTRIBUTE_TABLE): Define.
6641 (ix86_attribute_table, ix86_handle_cdecl_attribute,
6642 ix86_handle_regparm_attribute): New.
6643 * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6644 i386_pe_valid_type_attribute_p): Remove.
6645 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6646 * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6647 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6648 (TARGET_ATTRIBUTE_TABLE): Define.
6649 (ia64_attribute_table): New.
6650 * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6651 interrupt_ident2, model_ident1, model_ident2): Remove.
6652 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6653 (TARGET_ATTRIBUTE_TABLE): Define.
6654 (init_idents): Update.
6655 (m32r_attribute_table, m32r_handle_model_attribute): New.
6656 * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6658 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6659 (TARGET_ATTRIBUTE_TABLE): Define.
6660 (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6661 * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6662 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6663 (TARGET_ATTRIBUTE_TABLE): Define.
6664 (mcore_attribute_table, mcore_handle_naked_attribute): New.
6665 * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6666 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6667 (TARGET_ATTRIBUTE_TABLE): Define.
6668 (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6669 * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6670 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6671 (TARGET_ATTRIBUTE_TABLE): Define.
6672 (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6673 * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6674 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6675 (TARGET_ATTRIBUTE_TABLE): Define.
6676 (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6677 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6679 * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6681 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6682 (TARGET_ATTRIBUTE_TABLE): Define.
6683 (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6685 * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6686 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6687 (TARGET_ATTRIBUTE_TABLE): Define.
6688 (v850_attribute_table, v850_handle_interrupt_attribute,
6689 v850_handle_data_area_attribute): New.
6690 * config/v850/v850-c.c (mark_current_function_as_interrupt):
6691 Return void. Call decl_attributes instead of
6692 valid_machine_attribute.
6694 Fri Sep 21 01:49:41 2001 J"orn Rennecke <amylaar@redhat.com>
6696 * sh-protos.h (sh_pr_n_sets): Declare.
6697 * sh.c (calc_live_regs): If the initial value for PR has been copied,
6698 look at the copy to determine if PR needs to be saved.
6699 sh_pr_n_sets: New function.
6700 * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6701 (ALLOCATE_INITIAL_VALUE): Define.
6703 * sh.c (initial_elimination_offset):
6704 Fix RETURN_ADDRESS_POINTER_REGNUM case.
6706 Fri Sep 21 01:13:56 2001 J"orn Rennecke <amylaar@redhat.com>
6708 * integrate.c (allocate_initial_values): New function.
6709 * integrate.h (allocate_initial_values): Declare.
6710 * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6712 * reload1.c (reload): And initialization of reg_equiv_memory_loc
6714 * toplev.c (rest_of_compilation): To here.
6715 Call allocate_initial_values.
6716 * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6718 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6720 * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6722 2001-09-20 DJ Delorie <dj@redhat.com>
6724 * c-typeck.c (really_start_incremental_init): Discriminate
6725 between zero-length arrays and flexible arrays.
6726 (push_init_level): Detect zero-length arrays and handle them
6727 like fixed-sized arrays.
6728 * expr.c (store_constructor): Handle zero-length arrays and
6729 flexible arrays correctly.
6730 * doc/extend.texi: Update zero-length array notes.
6732 2001-09-20 Jim Wilson <wilson@redhat.com>
6734 * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6735 (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6736 for issue port conflicts.
6737 (cycle_end_fill_slots): TYPE_L instructions take two slots.
6739 2001-09-20 Andrew MacLeod <amacleod@redhat.com>
6741 * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6744 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6746 * fold-const.c (hashtab.h): Include.
6747 (int_const_binop): Remove FORSIZE arg and compute from type; all
6749 Call size_int_type_wide for all single-word constants.
6750 (size_htab_hash, size_htab_eq): New functions.
6751 (size_int_type_wide): Rework to use hash table.
6752 * ggc-common.c (hashtab.h): Include.
6753 (struct d_htab_root): New struct.
6754 (d_htab_roots): New variable.
6755 (ggc_add_deletable_htab, ggc_htab_delete): New functions
6756 (ggc_mark_roots): Handle deletable htabs.
6757 * ggc-page.c (ggc_marked_p): New function.
6758 * ggc-simple.c (ggc_marked_p): Likewise.
6759 * ggc.h: Reformatting throughout.
6760 (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6761 * tree.c (init_obstacks): Make type_hash_table a deletable root.
6762 (type_hash_add): Allocate struct type_hash from GC memory.
6763 (mark_hash_entry, mark_type_hash): Deleted.
6764 (type_hash_marked_p, type_hash_mark): New functions.
6765 * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6767 Thu Sep 20 12:49:34 2001 J"orn Rennecke <amylaar@redhat.com>
6769 * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6772 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6774 * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6775 array-too-large test for signed sizetype.
6777 Thu Sep 20 12:19:36 CEST 2001 Jan Hubicka <jh@suse.cz>
6779 * i386.md (indirect_jump): Allow Pmode operand.
6780 (tablejump): LIkewise; perform expansion to 64bit mode.
6781 * i386.c (symbolic_operand): Allow 64bit PIC references.
6782 (pic_symbolic_operand): Likewise.
6783 (ix86_find_base_term): Strip the 64bit PIC references.
6784 (legitimate_pic_address_disp_p): Handle 64bit PIC.
6785 (legitimize_pic_address): Likewise.
6786 (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6787 * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6789 2001-09-19 Alexandre Petit-Bianco <apbianco@redhat.com>
6791 * stringpool.c (get_identifier_with_length): New function.
6792 * tree.h (get_identifier_with_length): New prototype.
6794 2001-09-19 Alan Modra <amodra@bigpond.net.au>
6795 David Edelsohn <edelsohn@gnu.org>
6798 * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6799 already sign-extended.
6801 * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6802 * config/rs6000/rs6000.c (logical_operand): Always compare op as
6804 (rs6000_emit_set_long_const): Avoid unnecessary shift.
6805 (output_profile_hook): Declare label_name const.
6806 * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6807 to match constraints.
6809 2001-09-19 Stan Shebs <shebs@apple.com>
6811 * alias.c: Fix typos in comments.
6812 * sched-rgn.c (init_ready_list): Ditto.
6813 * unwind-dw2.c (uw_frame_state_for): Ditto.
6814 * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6815 * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6816 * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6818 2001-09-19 Richard Henderson <rth@redhat.com>
6820 * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
6822 * Makefile.in (cfg.o): Depend on TM_P_H.
6824 2001-09-19 Richard Henderson <rth@redhat.com>
6826 * config/alpha/alpha.c (local_symbol_p): Split out from ...
6827 (local_symbolic_operand): ... here.
6828 (small_symbolic_operand): Check mode.
6829 (global_symbolic_operand): New.
6830 (input_operand): Reject symbolics if explicit relocs.
6831 (call_operand): Tidy.
6832 (alpha_legitimize_address): Use movdi_er_high_g.
6833 (alpha_expand_mov): Likewise.
6834 * config/alpha/alpha-protos.h: Update.
6835 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6836 * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
6837 (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
6838 (UNSPECV_LDGP2): Remove.
6839 (all call patterns): Use 's' not 'i' for symbolic constraint.
6840 (call_osf call_value_osf): Use call_operand.
6841 (all osf call patterns): Use $gp. New peepholes for explicit relocs.
6842 (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
6843 (prologue_ldgp_1_er): Remove.
6844 (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
6845 (builtin_setjmp_receiver_er patterns): Use them.
6846 (exception_receiver_er): Likewise.
6848 2001-09-19 Richard Henderson <rth@redhat.com>
6850 * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
6852 * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
6853 and NON_LOCAL_GOTO notes.
6854 * recog.c (peephole2_optimize): Likewise. Handle EH_REGION;
6855 copy over CALL_INSN_FUNCTION_USAGE.
6857 2001-09-18 Catherine Moore <clm@redhat.com>
6859 * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
6862 2001-09-18 Ulrich Weigand <uweigand@de.ibm.com>:
6864 * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
6865 new-style tm_file specification. Specify correct tm_p_file,
6866 md_file, and out_file for s390x.
6868 * config/s390/linux.h, linux64.h: Don't include other target
6869 macro header files. Now handled via tm_file.
6871 * config/s390/linux.h, s390.h: (IEEE_FLOAT, TARGET_IEEE_FLOAT,
6872 TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
6873 are defined before use.
6875 Tue Sep 18 09:51:11 2001 Eric Christopher <ecechristo@redhat.com>
6877 * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
6878 code generation only for Gnu assembler.
6880 2001-09-18 Catherine Moore <clm@redhat.com>
6882 * config/stormy16 (LIB_SPEC): Remove -lnosys.
6884 2001-09-18 Richard Sandiford <rsandifo@redhat.com>
6886 * config/mips/mips.c (mips_frame_set): New.
6887 (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
6888 a parallel frame-related expression with a set for each register.
6890 2001-09-18 Philip Blundell <philb@gnu.org>
6892 * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
6895 2001-09-17 Dale Johannesen <dalej@apple.com>
6897 * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
6898 * config/rs6000/aix.h (FIXED_R2): Define.
6899 * config/rs6000/darwin.h (FIXED_R2): Define.
6900 * config/rs6000/sysv4.h (FIXED_R2): Define.
6902 2001-09-17 Jeff Sturm <jsturm@one-point.com>
6904 * except.c (dw2_build_landing_pads): New local
6905 clobbers_hard_regs. Emit an ASM_INPUT as a scheduling
6906 barrier after clobbers. Fixes c++/4012.
6908 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6910 * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
6912 2001-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
6914 * dostage2, dostage3, listing, make-l2.com, makefile.vms,
6915 patch-apollo-includes, vmsconfig.com: Remove obsolete files.
6917 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6919 * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
6922 2001-09-17 Neil Booth <neil@daikokuya.demon.co.uk>
6924 * cpphash.h (_cpp_lex_direct): New.
6925 * cpplex.c (_cpp_lex_token): Update.
6926 (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
6927 and increment that pointer.
6928 * cppmacro.c (alloc_expansion_token): New.
6929 (lex_expansion_token): Lex macro expansion directly into
6932 2001-09-16 Brad Lucier <lucier@math.purdue.edu>
6934 * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
6936 Sun Sep 16 21:59:46 CEST 2001 Jan hubicka <jh@suse.cz>
6938 * basic-block.h (free_bb_for_insn): Declare.
6939 * bb-reorder.c (label_for_bb): Use block_label.
6940 (emit_jump_to_block_after): Remove.
6941 (insert_intra_1): Do not update block_for_insn.
6942 (insert_inter_bb_scope_notes): Likewise; update bb->end
6943 * cfg.c (free_bb_for_insn): New.
6944 (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
6945 (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
6946 (commit_one_edge_insertion): Likewise.
6947 (commit_one_edge_insertion): Do not update BB boundary.
6948 (commit_edge_insertions): Do not call compute_bb_for_insn.
6949 * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
6950 * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
6951 (merge_blocks_move_successor_nojumps): Likewise.
6952 (try_crossjump_to_edge): Do not update block_for_insn.
6953 * combine.c (combine_instructions): Remove compute_bb_for_insn call.
6954 * df.c (df_pattern_emit_later): Do not update BB boundary.
6955 (df_jump_pattern_emit_after): Likewise.
6956 (df_insn_move_before): Use emit_insn_before.
6957 * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
6959 (add_insn_after, add_insn_before, emit_insns_after): Update BB
6960 boundaries and basic_block_for_insn.
6961 (reorder_insns_nobb): Rename from reorder_insns.
6962 (reorder_insns): New.
6963 (emit_block_insn_before, emit_block_insn_after): Kill.
6964 * flow.c (check_function_return_warnings): Do not call
6965 compute_bb_for_insn; Do not free basic_block_for_insn.
6966 (attempt_auto_inc): Do not update basic_block_for_insn.
6967 * function.c (emit_return_into_block): Likewise;
6968 do not update BB boundaries.
6969 * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
6970 (insert_insn_end_bb): Use emit_insn_before; Likewise.
6971 (pre_insert_copy_insn): Likewise.
6972 (update_ld_motion_notes): Likewise.
6973 (insert_insn_start_bb): Likewise.
6974 (replace_store_insn): Likewise.
6975 * ifcvt.c (noce_process_if_block): Likewise.
6976 (if_convert): Do not call compute_bb_for_insn.
6977 * lcm.c (optimize_mode_switching): Do not update BB boundaries.
6978 Use emit_insn_before and emit_insn_after.
6979 * recog.c (split_all_insns): Do not update BB boundaries;
6980 Do not call compute_bb_for_insn.
6981 (peephole2_optimize): Do not update BB boundaries.
6982 * reg-stack.c (emit_pop_insn): Use emit_insn_after and
6984 (emit_swap_insn): Likewise.
6985 (convert_regs_1): Likewise.
6986 * reload1.c (reload): Call compute_bb_for_insn.
6987 * rtl.h (reorder_insns_nobb): Declare.
6988 * ssa.c (rename_equivalent_regs): Use emit_insn_before.
6989 * toplev.c (rest_of_compilation): Call free_bb_for_insn
6990 at places CFG is invalidated; do not call compute_bb_for_insn.
6992 * cfg.c (expunge_block): Invalidate BB structure.
6994 * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
6997 * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
6999 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7001 * cpphash.h (_cpp_lex_token): Update prototype.
7002 * cpplex.c (_cpp_lex_token): New prototype.
7003 * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7004 lex_macro_node, read_flag, do_pragma_poison): Update.
7005 * cppmacro.c (cpp_get_token, parse_params,
7006 lex_expansion_token): Update.
7008 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
7010 * cppmain.c (scan_translation_unit): Don't worry about
7011 putting a space after hashes.
7012 * cpplib.c (directive_diagnostics): New.
7013 (_cpp_handle_directive): Update to use directive_diagnostics.
7014 (run_directive): Don't toggle prevent_expansion.
7015 (do_line): Backup in case of the line extension.
7016 * cpplib.h (cpp_lexer_pos): Remove.
7017 * cppmacro.c (_cpp_create_definition): Precede a leading #
7020 2001-09-15 Richard Henderson <rth@redhat.com>
7022 * c-typeck.c (comptypes): Handle zero-length arrays properly.
7024 2001-09-15 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7026 * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7028 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7030 PR preprocessor/3571
7031 * tradcpp.c (handle_directive): Skip non-vertical space.
7033 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7035 * cppmain.c (setup_callbacks): Set line callback only
7036 if outputting preprocessed source.
7038 2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7040 * collect2.c (main): Const-ification.
7041 * gcc.c (translate_options, process_command): Use xstrdup in
7042 lieu of xmalloc/strcpy.
7043 (main): Use concat in lieu of xmalloc/strcpy/strcat.
7045 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7047 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7050 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7052 * scan-decls.c (scan_decls): Fix typo.
7054 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
7056 * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7057 Split mlstring_pos into mls_line and mls_col.
7058 * cppinit.c (cpp_create_reader): Initialize line to 1.
7059 (cpp_destroy): Free tokenruns.
7060 (push_include): Don't update lexer_pos.
7061 * cpplex.c (unterminated, parse_string): Update.
7062 (lex_token): Don't update lexer_pos, update.
7063 * cpplib.c (if_stack): Save line instead of line + col.
7064 (start_directive, _cpp_do__Pragma, do_else, do_elif,
7065 push_conditional, _cpp_pop_buffer): Update.
7066 * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7067 (_cpp_create_definition): Update.
7069 2001-09-15 Eric Christopher <echristo@redhat.com>
7071 * config/mips/abi64.h: Add support for MEABI.
7073 2001-09-15 Eric Christopher <echristo@redhat.com>
7075 * config/mips/mips.md: Add unspec #2.
7077 (reload_outdi): Ditto.
7078 (reload_outsi): Ditto.
7081 2001-09-15 Eric Christopher <echristo@redhat.com>
7082 Jason Eckhardt <jle@redhat.com>
7084 * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7085 * config/mips/isa32-linux.h: New file.
7086 * config/mips/isa3264.h: Ditto.
7087 * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7088 * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7089 (output_block_mode): Support MEABI.
7090 (function_arg): Ditto. Fix floating point arg passing.
7091 (mips_va_start): Ditto.
7092 (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7094 (mips_asm_file_start): Add new section to pass abi to gdb.
7095 (function_arg_pass_by_reference): Support MEABI.
7096 (mips_parse_cpu): Support mips32 and mips64 processors.
7097 * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7098 TARGET_MIPS5KC. Support isa32 and isa64.
7099 (processor_type): Add r4kc, r5kc, r20kc.
7100 (GENERATE_MULT3_SI): New.
7101 (GENERATE_MULT3_DI): Ditto.
7102 (GENERATE_MULT3): Remove.
7103 (ISA_HAS_64BIT_REGS): Add isa == 64.
7104 (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7105 (ISA_HAS_MADD_MSUB): New.
7106 (ISA_HAS_CLZ_CLO): Ditto.
7107 (ISA_HAS_DCLZ_DCLO): Ditto.
7108 (ABI_GAS_ASM_SPEC): New.
7109 (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7112 (SUBTARGET_CC1_SPEC): Ditto.
7113 (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7114 (PAD_VARARGS_DOWN): Support MEABI.
7115 (HARD_REGNO_NREGS): Move to mips.c.
7116 (ASM_OUTPUT_IDENT): Add #undef.
7117 * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7118 (mulsi3): Use GENERATE_MULT3_SI.
7119 (mulsi3_mult3): Ditto. Support mips32, mips64.
7120 (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7121 (mul_sub_si): New pattern.
7122 (unnamed splitters): New.
7123 (muldi3): Use GENERATE_MULT3_DI.
7124 (muldi3_internal2): Ditto.
7125 (movdicc): Support mips32.
7126 * config/mips/t-isa3264: New file.
7128 2001-09-15 Hans-Peter Nilsson <hp@axis.com>
7130 * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7131 || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7132 || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7134 * reorg.c (fill_slots_from_thread): After call to
7135 steal_delay_list_from_target, update own_thread as new_thread may
7138 2001-09-14 Neil Booth <neil@daikokuya.demon.co.uk>
7140 * cpperror.c (print_location): Take line and column, for
7141 default positioning use the previously lexed token.
7142 (_cpp_begin_message): Take line and column.
7143 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7144 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7145 * cpphash.h (_cpp_begin_message): Update prototype.
7146 * cppinit.c (push_include): Don't set output line.
7147 * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7148 * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7149 (do_pragma): Kludge for front ends. Don't expand macros at all.
7150 * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7151 (struct cpp_token): Remove output_line.
7152 (struct cpp_callbacks): New member line_change.
7153 * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7154 cpp_get_token): Preserve BOL flag.
7155 (cpp_get_line): Remove.
7156 (_cpp_backup_tokens): Remove useless abort().
7157 * cppmain.c (cb_line_change): New.
7158 (scan_translation_unit): Don't worry about starting new lines here.
7159 * scan-decls.c (scan_decls): Update.
7160 * c-lex.c (c_lex, init_c_lex): Update.
7161 (cb_line_change, src_lineno): New.
7163 Fri Sep 14 13:54:50 EDT 2001 John Wehle (john@feith.com)
7165 * tree.c (append_random_chars): Generate the random
7166 characters in a reproducable fashion.
7168 2001-09-14 Richard Henderson <rth@redhat.com>
7170 * config/i386/i386.c (internal_label_prefix): New.
7171 (internal_label_prefix_len): New.
7172 (override_options): Set them.
7173 (local_symbolic_operand): New.
7174 (legitimate_pic_address_disp_p): Use it.
7175 (legitimize_pic_address): Likewise.
7177 2001-09-14 Marc Espie <espie@openbsd.org>
7179 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Generate reference to GOT
7182 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7184 * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7185 * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7187 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
7189 * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7190 invocation of SUBREG_REGNO_OFFSET.
7192 * haifa-sched.c: Fix typo in FSF copyright statement.
7193 * sched-deps.c: Fix typo in FSF copyright statement.
7194 * sched-ebb.c: Fix typo in FSF copyright statement.
7195 * sched-rgn.c: Fix typo in FSF copyright statement.
7196 * sched-vis.c: Fix typo in FSF copyright statement.
7198 * config.gcc: Move inclusion of arm elf specific header files
7199 from the files themselves into the tm_file variable. Make
7200 sure that elfos.h is included before target specific elf
7202 * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7204 (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7205 * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7206 ASM_OUTPUT_CASE_LABEL): Protect definition.
7207 (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7208 not already defined.
7209 * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7210 LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7211 Remove duplicate definition.
7212 (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7213 (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7214 (RDATA_SECTION_FUNCTION): Remove redundant definition.
7215 (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7216 Remove inclusion of arm/elf.h.
7217 * config/arm/unknown-elf.h: as for conix-elf.h.
7218 (STARTFILE_SPEC): Include crti.o and crtn.o.
7219 * config/arm/linux-elf.h: as for conix-elf.h.
7220 * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7221 * config/arm/strongarm-elf.h: Remove inclusion of
7223 * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7224 * config/arm/unknown-elf-oabi.h: Remove inclusion of
7225 unknown-elf.h and elf.h.
7226 * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7227 * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7228 ASM_WEAKEN_LABEL): Remove redundant definition.
7229 * config/arm/elf.h: Test for inclusion of elfos.h
7230 (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7231 ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7232 SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7233 EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7234 redundant definition.
7235 (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7236 ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7237 ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7238 * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7239 Add rules to build crti.o and crtn.o
7240 * crti.asm: New file.
7241 * crtn.asm: New file.
7243 2001-09-13 Neil Booth <neil@daikokuya.demon.co.uk>
7245 * c-parse.in (_yylex): Use _cpp_backup_tokens.
7246 * cpphash.h (struct tokenrun): Add prev.
7247 (struct lexer_state): Remove bol.
7248 (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7249 (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7251 * cppinit.c (cpp_create_reader): Don't set bol.
7252 (cpp_destroy): Don't free lookaheads.
7253 * cpplex.c (lex_directive): Remove.
7254 (next_tokenrun): Update.
7255 (_cpp_lex_token): Clean up logic.
7256 (lex_token): Update to return a pointer to lexed token, since it
7257 can move to the start of the buffer. Simpify newline handling.
7258 * cpplib.c (SEEN_EOL): Update.
7259 (skip_rest_of_line): Remove lookahead stuff.
7260 (end_directive): Line numbers are already incremented. Revert
7261 to start of lexed token buffer if we can.
7262 (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7263 parse_answer): Use _cpp_backup_tokens.
7264 (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7265 instead. Don't check for EOL.
7266 (do_include_common, do_line, do_pragma_system_header): Use
7268 * cpplib.h (BOL, _cpp_backup_tokens): New.
7269 * cppmacro.c (save_lookahead_token, take_lookahead_token,
7270 alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7271 cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7272 (builtin_macro): Don't use cpp_get_line.
7273 (cpp_get_line): Short term kludge.
7274 (parse_arg): Handle directives in arguments here. Back up when
7275 appropriate. Store EOF at end of argument list.
7276 (funlike_invocation_p): Use _cpp_backup_tokens.
7277 (push_arg_context): Account for EOF at end of list.
7278 (cpp_get_token): Remove lookahead stuff. Update.
7280 2001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7282 * c-parse.in (yyerror): Const-ification and/or static-ization.
7283 * c-typeck.c (push_member_name): Likewise.
7284 * collect2.c (main): Likewise.
7285 * dbxout.c (dbxout_parms): Likewise.
7286 * diagnostic.c (format_with_decl): Likewise.
7287 * dwarf2out.c (output_ranges): Likewise.
7288 * dwarfout.c (fundamental_type_code): Likewise.
7289 * except.c (dw2_output_call_site_table): Likewise.
7290 * gcc.c (do_spec_1): Likewise.
7291 * genopinit.c (optabs): Likewise.
7292 * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7293 gen_declaration_1, handle_impent): Likewise.
7294 * protoize.c (default_include, in_system_include_dir, abspath):
7296 * sched-vis.c (visualize_stall_cycles): Likewise.
7297 * sdbout.c (plain_type_1, sdbout_end_function,
7298 sdbout_end_epilogue): Likewise.
7299 * varasm.c (decode_reg_name): Likewise.
7301 * 1750a.c (mod_regno_adjust): Likewise.
7302 * alpha.c (alpha_write_one_linkage,
7303 unicosmk_output_default_externs): Likewise.
7304 * arm.c (arm_condition_codes): Likewise.
7305 * arm.h (arm_condition_codes): Likewise.
7306 * avr.c (output_movsisf, encode_section_info): Likewise.
7307 * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7309 * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7310 * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7311 * m88k.c (output_function_profiler): Likewise.
7312 * mips.c (mips_output_conditional_branch): Likewise.
7313 * ns32k.c (ns32k_out_reg_names): Likewise.
7314 * ns32k.h (ns32k_out_reg_names): Likewise.
7315 * pj.c (pj_output_rval): Likewise.
7316 * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7317 * sparc.c (sparc_flat_function_prologue,
7318 sparc_flat_function_epilogue): Likewise.
7320 2001-09-13 Markus Werle <numerical.simulation@web.de>
7321 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7323 * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7324 Aachen University of Technology".
7326 2001-09-13 Andreas Schwab <schwab@suse.de>
7328 * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
7331 2001-09-13 Richard Henderson <rth@redhat.com>
7333 * config/alpha/alpha.c (small_symbolic_operand): New.
7334 (override_options): Set MASK_SMALL_DATA based on pic/PIC.
7335 (some_operand, input_operand): Don't handle HIGH.
7336 (alpha_legitimize_address): Use it. Emit HIGH with PLUS gp.
7337 (alpha_expand_mov): Likewise.
7338 (print_operand) [H]: Just print HIGH symbol.
7339 (print_operand_address): Handle small data.
7340 * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
7341 (TARGET_SWITCHES): Add -msmall-data/large-data.
7342 (PIC_OFFSET_TABLE_REGNUM): New.
7343 (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
7344 (PREDICATE_COES): Update.
7345 * config/alpha/alpha.md (adddi_er_high): New.
7346 (adddi_er_low): Handle small data.
7347 * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
7348 prefer .sdata to .rodata.
7349 (SELECT_RTX_SECTION): Likewise.
7351 2001-09-12 Josh Martin <josh.martin@abq.sc.philips.com>
7353 * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
7354 defining __size_t and leaving size_t undefined.
7356 2001-09-12 Diego Novillo <dnovillo@redhat.com>
7358 * basic-block.h (expunge_block): Declare.
7359 * cfg.c (expunge_block): Remove static declaration.
7361 2001-09-12 Richard Henderson <rth@redhat.com>
7363 * integrate.c (copy_insn_list): Copy label name from
7364 NOTE_INSN_DELETED_LABEL.
7366 2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7368 * c-common.c (c_tree_code_name): Const-ification.
7369 * c-decl.c (c_decode_option): Likewise.
7370 * c-typeck.c (warn_for_assignment): Likewise.
7371 * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
7373 * cppinit.c (output_deps): Likewise.
7374 * dependence.c (dependence_string, direction_string): Likewise.
7375 * dwarf2out.c (output_ranges): Likewise.
7376 * fixinc/fixfixes.c (emit_gnu_type): Likewise.
7377 * fixinc/gnu-regex.c (re_error_msgid): Likewise.
7378 * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
7379 standard_startfile_prefix, standard_startfile_prefix_1,
7380 standard_startfile_prefix_2, tooldir_base_prefix,
7381 standard_bindir_prefix, find_a_file): Likewise.
7382 * genattrtab.c (make_length_attrs): Likewise.
7383 * gencheck.c (tree_codes): Likewise.
7384 * genemit.c (gen_split): Likewise.
7385 * genrecog.c (special_mode_pred_table): Likewise.
7386 * graph.c (graph_ext): Likewise.
7387 * protoize (default_include): Likewise.
7388 * reload.c (reload_when_needed_name): Likewise.
7389 * sched-vis.c (visualize_stall_cycles): Likewise.
7390 * tlink.c (recompile_files): Likewise.
7391 * toplev.c (decode_g_option): Likewise.
7392 * tradcpp.c (output_deps): Likewise.
7393 * varasm.c (decode_reg_name): Likewise.
7395 * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
7398 * avr.c (avr_regnames, encode_section_info): Likewise.
7399 * c4x.c (float_reg_names): Likewise.
7400 * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
7401 * elfos.h (const_section): Likewise.
7402 * i386.c (ix86_comp_type_attributes): Likewise.
7403 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
7404 * ia64/aix.h (UNIQUE_SECTION): Likewise.
7405 * ia64.c (type_names): Likewise.
7406 * m68hc11.c (reg_class_names): Likewise.
7407 * m88k.c (m_options): Likewise.
7408 * mips.c (mips_output_conditional_branch, mips_unique_section):
7410 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7411 * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7412 ultra_code_names): Likewise.
7413 * sparc.h (OVERRIDE_OPTIONS): Likewise.
7415 2001-09-12 Jakub Jelinek <jakub@redhat.com>
7417 * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7418 Use --fatal-warnings option for gas.
7419 * configure: Rebuilt.
7421 2001-09-12 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7423 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7425 2001-09-11 Jim Wilson <wilson@redhat.com>
7427 * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7429 2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7431 * builtins.c (c_strlen): Treat an offset too large for a
7432 HOST_WIDE_INT as out of range.
7434 Tue Sep 11 18:57:47 CEST 2001 Jan Hubicka <jh@suse.cz>
7436 * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7437 (EDGE_CRITICAL_P): New predicate.
7438 * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7440 (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7441 (dump_edge_info): Remove "crit".
7442 * cfganal.c (mark_critical_edges): Kill.
7443 * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7444 * cfgcleanup.c (cleanup_cfg): Likewise.
7445 * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7446 (find_spanning_tree): Likewise.
7447 * reg-stack.c (convert_regs_1): Likewise.
7448 * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7450 * basic-block.h (create_basic_block_structure): New.
7451 (create_basic_block): Update prototype.
7452 (force_nonfallthru): New.
7453 * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7454 * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7455 handle updating of block_for_insn, creating of empty BBs and BBs at
7456 the end of INSN chain.
7457 (create_basic_block): New function.
7458 (split_block): Use create_basic_block.
7459 (force_nonfallthru_and_redirect): Break out from ...; cleanup
7460 (redirect_edge_and_branch_force): ... here.
7461 (force_nonfallthru): New.
7462 (split_edge): Rewrite to use force_nonfallthru and create_block.
7463 * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7464 (find_basic_blocks): Free basic_block_for_insn.
7465 * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7467 * cfg.c: Fix formating.
7468 * cfgcleanup.c: Fix formating.
7469 (merge_blocks, tail_recursion_label_p): Return bool.
7470 (merge_blocks_move_predecessor_nojumps,
7471 merge_blocks_move_successor_nojumps): Return void.
7473 2001-09-11 Jakub Jelinek <jakub@redhat.com>
7475 * configure.in: Check whether assembler supports section merging.
7476 * config.in: Rebuilt.
7477 * configure: Rebuilt.
7478 * varasm.c (variable_section, output_constant_pool): Pass alignment
7479 to SELECT_SECTION and SELECT_RTX_SECTION.
7480 (mergeable_string_section): New.
7481 (mergeable_constant_section): New.
7482 (default_elf_asm_named_section): Output SECTION_MERGE and
7483 SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7484 * output.h (mergeable_string_section): New.
7485 (mergeable_constant_section): New.
7486 (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7487 * toplev.c (flag_merge_constants): New.
7488 (f_options): Add -fmerge-constants and -fmerge-all-constants
7490 (toplev_main): Default to -fno-merge-constants if not optimizing.
7491 * flags.h (flag_merge_constants): Add extern.
7492 * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7493 * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7495 * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7496 Define if assembler has working .subsection -1 support.
7497 (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7498 Put constant into special SHF_MERGE sections if the linker should
7499 attempt to merge duplicates.
7500 * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7502 Put constant into special SHF_MERGE sections if the linker should
7503 attempt to merge duplicates.
7504 * config/alpha/elf.h: Likewise.
7505 (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7506 has working .subsection -1 support.
7507 * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7509 * config/svr3.h: Likewise.
7510 * config/darwin.h: Likewise.
7511 * config/arm/aof.h: Likewise.
7512 * config/arm/linux-elf.h: Likewise.
7513 * config/avr/avr.h: Likewise.
7514 * config/c4x/c4x.h: Likewise.
7515 * config/d30v/d30v.h: Likewise.
7516 * config/i386/dgux.h: Likewise.
7517 * config/i386/osfrose.h: Likewise.
7518 * config/i386/sco5.h: Likewise.
7519 * config/i386/svr3gas.h: Likewise.
7520 * config/ia64/aix.h: Likewise.
7521 * config/m32r/m32r.h: Likewise.
7522 * config/m68k/m68k.h: Likewise.
7523 * config/m88k/dgux.h: Likewise.
7524 * config/m88k/m88k.h: Likewise.
7525 * config/mcore/mcore-pe.h: Likewise.
7526 * config/mips/mips.h: Likewise.
7527 * config/pa/pa.h: Likewise.
7528 * config/pa/pa-linux.h: Likewise.
7529 * config/romp/romp.h: Likewise.
7530 * config/rs6000/sysv4.h: Likewise.
7531 * config/rs6000/xcoff.h: Likewise.
7532 * config/s390/linux.h: Likewise.
7533 * config/sparc/sparc.h: Likewise.
7534 * config/sparc/sysv4.h: Likewise.
7535 * config/stormy16/stormy16.h: Likewise.
7536 * config/v850/v850.h: Likewise.
7537 * config/vax/vms.h: Likewise.
7538 * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7539 and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7540 * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7541 default_elf_asm_named_section for SHF_MERGE sections.
7543 Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka <jh@suse.cz>
7545 * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7548 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
7550 * c-common.c (split_specs_attrs): Allow for empty attributes with
7551 empty TREE_PURPOSE. Fixes PR c/4294.
7553 Tue Sep 11 11:37:52 CEST 2001 Jan Hubicka <jh@suse.cz>
7555 * basic-block.h (cached_make_edge, make_single_succ): New.
7556 (make_edge): Remove first parameter.
7557 * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7558 * cfg.c (cached_make_edge): Rename from make_edge; return newly
7559 created edge; use obstack allocation.
7560 (make_edge, make_single_succ_edge): New.
7561 (first_removed_edge): New static variable.
7562 (init_flow): Initialize first_removed_edge and n_edges.
7563 (clear_edges): Use remove_edge.
7564 (flow_delete_block): Likewise.
7565 (remove_edge): Add removed edges to the removed edges list.
7566 (split_block, redirect_edge_and_branch_force, split_edge):
7568 * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7569 (add_noreturn_fake_exit_edges): Likewise.
7570 (connect_infinite_loops_to_exit): Liekwise.
7571 * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7572 Use cached_make_edge.
7573 * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7574 * profile.c (branch_prob): Update make_edge call.
7575 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7577 2001-09-11 Richard Henderson <rth@redhat.com>
7579 * config/alpha/alpha.c: Tidy formatting.
7580 (local_symbolic_operand): Verify mode.
7581 (alpha_sa_mask): Ignore unicos for eh_return.
7582 (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7583 * config/alpha/alpha.md (umk divsi patterns): Remove.
7584 (extendsfdf2): Remove unicos check.
7585 (tablejump): Merge vms and unicos code; always use direct set
7588 2001-09-11 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7590 * config.gcc (alpha*-*-unicosmk*): New target.
7592 * config/alpha/alpha-protos.h (symbolic_operand,
7593 unicosmk_add_call_info_word, unicosmk_add_extern,
7594 unicosmk_defer_case_vector, unicosmk_unique_section,
7595 unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7596 unicosmk_asm_file_start, unicosmk_asm_file_end,
7597 unicosmk_output_common): Declare.
7599 * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7600 direct_return, function_arg, alpha_va_start, alpha_va_arg,
7601 alpha_does_function_need_gp, alpha_end_function): Support Cray
7603 (alpha_init_machine_status, alpha_mark_machine_status,
7604 alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7605 unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7606 unicosmk_asm_named_section, unicosmk_insert_attributes,
7607 unicosmk_section_type_flags, symbolic_operand,
7608 unicosmk_output_module_name, unicosmk_output_default_externs,
7609 unicosmk_output_dex, unicosmk_output_externs,
7610 unicosmk_output_addr_vec, unicosmk_ssib_name,
7611 unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7612 unicosmk_asm_file_end, unicosmk_output_common,
7613 unicosmk_section_type_flags, unicosmk_unique_section,
7614 unicosmk_add_call_info_word, unicosmk_text_section,
7615 unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7616 unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7617 unicosmk_dex_count, unicosmk_special_name): New.
7618 (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7619 TARGET_ABI_UNICOSMK.
7620 (get_aligned_mem, alpha_expand_unaligned_load,
7621 alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7622 alpha_expand_unaligned_store_words): Support big-endian mode.
7623 (print_operand): Likewise. New format specifier 't'. Use
7624 TARGET_AS_SLASH_BEFORE_SUFFIX.
7625 (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7626 (alpha_pv_save_size): Update with above change.
7627 (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7628 alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7631 * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7632 (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7633 (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7634 (EXTRA_CONSTRAINT): New constraint 'U'.
7635 (PREDICATE_CODES): Add symbolic_operand.
7637 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7638 UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7639 (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7640 (integer division and modulus patterns): Split in default and
7642 (*divmodsi_internal, *divmoddi_internal): Disable for
7643 TARGET_ABI_UNICOSMK.
7644 (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7645 little-endian and big-endian versions.
7646 (ext, ins, msk): Likewise.
7647 (extv, extzv, insv): Support big-endian mode.
7648 (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7649 (call_umk, call_value_umk, *call_umk, tablejump_umk,
7650 *tablejump_umk_internal, *call_value_umk): New.
7651 (*movdi_nofix): Add pattern for loading an address into a register on
7652 TARGET_ABI_UNICOSMK.
7653 (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7654 (umk_mismatch_args, arg_home_umk): New.
7655 (various insns): Don't use mov, fmov, nop, fnop and unop.
7656 (realign): Support TARGET_ABI_UNICOSMK.
7658 * config/alpha/unicosmk.h: New file.
7659 * config/alpha/t-unicosmk: New file.
7661 * fixinc/inclhack.def (unicosmk_restrict): New.
7662 * fixinc/fixincl.x: Regenerate.
7664 * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7665 (wchar_t): Check for and define __WCHAR_T__.
7667 2001-09-11 Richard Sandiford <rsandifo@redhat.com>
7669 * combine.c (simplify_shift_const): Treat shifts by the mode
7672 2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
7674 * cpphash.h (struct tokenrun): New.
7675 (struct cpp_context): New member bol.
7676 (struct cpp_reader): New members.
7677 (_cpp_init_tokenrun): New.
7678 * cppinit.c (cpp_create_reader): Set up the token runs.
7679 * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7680 (lex_token): New internalised version of _cpp_lex_token. Don't
7681 handle directives or the multiple include optimization here any
7682 more. Simply lex a token.
7683 * cpplib.c (run_directive): Clear bol.
7684 (_cpp_pop_buffer): Set bol.
7685 * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7688 2001-09-11 Michael Meissner <meissner@redhat.com>
7690 * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7691 give an error if the user uses -mfp32.
7692 (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7694 (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7695 floating point register size.
7696 (EXTRA_SPECS): Add CPP_FPR_SPEC.
7698 * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7699 HOST_WIDE_INT_PRINT_DEC to properly print the result of
7701 * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7702 * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7704 2001-09-11 Hans-Peter Nilsson <hp@axis.com>
7706 * dbxout.c (dbxout_parms): Fix typo in comment.
7707 * unroll.c (loop_find_equiv_value): Ditto.
7708 * toplev.c (rest_of_compilation): Ditto.
7709 * loop.c (scan_loop): Ditto.
7710 * dwarf2out.c (struct dw_fde_struct): Ditto.
7712 2001-09-10 Zack Weinberg <zackw@panix.com>
7714 * cpplex.c (parse_identifier): Fast-path optimize. Avoid
7715 copying identifier when we're just going to throw it away.
7716 (parse_identifier_slow): New routine to handle abnormal cases.
7717 (_cpp_lex_token): Update call site.
7719 * hashtable.c (ht_lookup): Don't assume that the string we've
7720 been given is NUL-terminated.
7721 * system.h: #define __builtin_expect(a, b) to (a) if not
7724 2001-09-10 Michael Meissner <meissner@redhat.com>
7726 * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7729 2001-09-10 David Edelsohn <edelsohn@gnu.org>
7731 * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7733 Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7735 * builtins.c (c_getstr): Correct thinko in last change and further
7738 2001-09-10 Tim Freeman <tim@fungibole.com>
7740 * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7741 into varray's and register them as roots with the garbage
7742 collector so they are not collected too soon.
7744 Mon Sep 10 14:21:26 CEST 2001 Jan Hubicka <jh@suse.cz>
7746 * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7748 * basic-block.h (flow_obstack, label_value_list,
7749 tail_recursion_label_list): Declare
7750 (tidy_fallthru_edges): Declare.
7751 (expunge_block, last_loop_beg_note): Delete.
7752 (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7754 (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7755 (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7756 init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7757 flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7758 expunge_block, flow_delete_block, compute_bb_for_insn,
7759 update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7760 make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7761 redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7762 try_redirect_by_replacing_jump, last_loop_beg_note,
7763 redirect_edge_and_branch, redirect_edge_and_branch_force,
7764 tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7765 split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7766 commit_edge_insertions, dump_flow_info, debug_flow_info,
7767 dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7768 verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7769 Move here from flow.c
7770 * cfganal.c: New file.
7771 (forwarder_block_p, can_fallthru, mark_critical_edges,
7772 mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7773 find_unreachable_blocks, create_edge_list, free_edge_list,
7774 print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7775 flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7776 add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7777 flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7778 flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7779 flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7780 Move here from flow.c
7781 * cfgbuild.c: New file
7782 (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7783 make_edges, find_basic_blocks_1, find_basic_blocks,
7784 find_sub_basic_blocks): Move here from flow.c
7785 * cfgcleanup.c: New file.
7786 (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7787 merge_blocks_move_predecessor_nojumps,
7788 merge_blocks_move_successor_nojumps, merge_blocks,
7789 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7790 try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7791 (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7793 * cfgloop.c: New file
7794 (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7795 flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7796 flow_loop_exit_edges_find, flow_loop_nodes_find,
7797 flow_loop_pre_header_scan, flow_loop_pre_header_find,
7798 flow_loop_tree_node_add, flow_loops_tree_build,
7799 flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7800 flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7801 Move here from flow.c
7802 * flow.c: Remove everything moved elsewhere
7803 * output.h (cleanup_cfg): Return bool.
7805 * bb-reorder.c (reorder_block_def): Remove 'index'.
7806 (insert_intra_1): Add argument BB, set block for new note.
7807 (make_reorder_chain): Do not depdent on BB indexes.
7808 (make_reorder_chain_1): Do not use BB indexes.
7809 (label_for_bb): Likewise; set BB for new insn.
7810 (emit_jump_to_block_after): Likewise.
7811 (fixup_reorder_chain): Sanity check that all basic blocks
7812 are chained; verify newly created insn chain; remove
7813 undocnitional jump simplifying; Do not use BB indexes;
7814 properly initialize count and frequency information;
7815 dump reordered sequence.
7816 (insert_intra_bb_scope_notes): update call of insert_intra_1.
7817 (insert_inter_bb_scope_notes): Set block for new insn.
7818 (reorder_basic_blocks): Dump flow info before reoredering.
7820 Mon Sep 10 06:47:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7822 * alias.c (clear_reg_alias_info): Use K&R format definition.
7823 Avoid unsigned warning.
7824 * builtins.c: Use "unsigned int", not "unsigned".
7825 (target_char_cast): Use host_integerp and tree_low_cst.
7826 (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
7827 (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
7828 (c_getstr): Likewise.
7829 (std_expand_builtin_va_arg): Use int_size_in_bytes.
7830 (builtin_memcpy_read_str): Avoid unsigned warning.
7831 (expand_builtin_memcpy): Alignments are unsigned.
7832 (expand_builtin_strncpy, expand_builtin_memset): Likewise.
7833 (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
7834 * predict.c (expensive_function_p): LIMIT now unsigned.
7835 * resource.c (mark_target_live_regs): Make some vars unsigned.
7836 * sdbout.c: Use "unsigned int", not "unsigned".
7837 (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
7838 (sdbout_source_line): Likewise.
7839 (sdbout_record_type_name): Remove "const" for NAME declaration.
7840 * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
7842 2001-09-10 Richard Sandiford <rsandifo@redhat.com>
7844 * calls.c (store_one_arg): Expand comment.
7846 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7848 * calls.c (store_one_arg): Make sure that the entire argument is
7849 pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
7851 2001-09-09 Richard Henderson <rth@redhat.com>
7853 * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
7855 Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
7857 * loop.c (combine_givs): Fix computing of benefit once giv is combined.
7859 2001-09-09 Richard Henderson <rth@redhat.com>
7861 * config/alpha/alpha.c (alpha_next_sequence_number): New.
7862 (alpha_this_literal_sequence_number): New.
7863 (alpha_this_gpdisp_sequence_number): New.
7864 (some_operand, input_operand): Add HIGH.
7865 (local_symbolic_operand): New.
7866 (alpha_encode_section_info): New.
7867 (alpha_legitimate_address_p): Allow LO_SUM.
7868 (alpha_legitimize_address): Generate HIGH+LO_SUM.
7869 (alpha_expand_mov): Likewise.
7870 (secondary_reload_class): Check memory_operand not general_operand
7872 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
7873 (alpha_expand_unaligned_store): Likewise.
7874 (alpha_expand_unaligned_load_words): Likewise.
7875 (alpha_expand_unaligned_store_words): Likewise.
7876 (alpha_expand_block_clear): Likewise.
7877 (print_operand): Handle %#, %*, %H.
7878 (print_operand_address): Handle LO_SUM.
7880 (alpha_does_function_need_gp): Use it.
7881 (alpha_expand_block_move): Fix signed compare warnings.
7882 (alpha_sa_mask, alpha_align_insns): Likewise.
7883 * config/alpha/alpha-protos.h: Update.
7884 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
7885 (MASK_EXPLICIT_RELOCS): New.
7886 (TARGET_SWITCHES): Add -mexplicit-relocs.
7887 (EXTRA_CONSTRAINT): Add 'T'.
7888 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
7889 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
7890 (ENCODE_SECTION_INFO): Out line.
7891 (REDO_SECTION_INFO_P): New.
7892 (STRIP_NAME_ENCODING): New.
7893 (ASM_OUTPUT_LABELREF): New.
7894 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
7895 (PREDICATE_CODES): Update.
7896 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
7897 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
7898 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
7899 builtin_setjmp_receiver_er, exception_receiver_1_er,
7900 call_value_osf_1_er): New patterns.
7901 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
7902 (movqi, movhi, movsi): Add explicit $31 base register to lda.
7903 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
7904 (FINAL_PRESCAN_INSN): New.
7906 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
7908 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
7910 2001-09-08 Andreas Jaeger <aj@suse.de>
7912 * i386.h (TARGET_SWITCHES): Fix description.
7914 2001-09-07 David Edelsohn <edelsohn@gnu.org>
7916 * rs6000.c (num_insns_constant): Compute number of instructions
7919 * doc/install.texi: Explain AIX exception handling work-around.
7920 Update URL for AIX fixes.
7922 2001-09-07 Jim Wilson <wilson@redhat.com>
7924 * alias.c (clear_reg_alias_info): New.
7925 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
7926 * rtl.h (clear_reg_alias_info): Declare.
7928 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7930 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
7932 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
7933 (m16m,edivm,emulm): Change declaration to match definition.
7935 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7937 * reload.c (push_reload): Check for subreg_lowpart_p instead of
7938 SUBREG_BYTE being 0 when determining if the inner part of a subreg
7941 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7943 * c-common.c (signed_or_unsigned_type): Handle machine mode types
7944 which have no corresponding C type.
7945 * fold_const.c (target_isinf,target_isnan,target_negative): Update
7946 the representation of 64-bit doubles to work with 64-bit ints.
7948 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
7950 * config/mips/mips.c (override_options): Do not override ISA when ABI
7951 specified if MIPS_CPU_STRING_DEFAULT was specified.
7953 2001-09-07 Richard Henderson <rth@redhat.com>
7955 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
7956 (express_from_1): Wrap lines.
7957 * rtlanal.c (commutative_operand_precedence): Rename from
7958 operand_preference; export.
7959 * rtl.h: Declare it.
7960 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
7961 (simplify_binary_operation): Invoke simplify_plus_minus on
7962 (CONST (PLUS ...)) as well.
7963 (struct simplify_plus_minus_op_data): New.
7964 (simplify_plus_minus_op_data_cmp): New.
7965 (simplify_plus_minus): Use them. Avoid infinite recursion with
7966 simplify_binary_operation wrt CONST.
7968 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
7970 * h8300-protos.h (general_operand_dst_push): Remove.
7971 * h8300.c (general_operand_dst_push): Likewise.
7972 * h8300.h (OK_FOR_T): Likewise.
7973 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
7974 * h8300.md (pushqi_h8300): New.
7975 (pushqi_h8300hs): Likewise.
7977 (pushhi_h8300): Likewise.
7978 (pushhi_h8300hs): Likewise.
7981 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7983 * genattrtab.c (attr_printf): First arg is unsigned.
7984 Clean up formatting of callers.
7986 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
7988 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
7991 2001-09-07 Andreas Jaeger <aj@suse.de>
7993 * i386.h (TARGET_SWITCHES): Fix descriptions.
7995 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7997 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
7999 2001-09-06 Ira Ruben <ira@apple.com>
8001 Remove OP_IDENTIFIER.
8002 * tree.def (OP_IDENTIFIER): Remove.
8003 * tree.c (tree_node_kind enum): Remove op_id_kind.
8004 (tree_node_kind_names): Remove "op_identifiers".
8005 (make_node): Remove OP_IDENTIFIER test.
8006 (build_op_identifier): Removed because it isn't being used.
8007 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8008 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8010 2001-09-06 Richard Henderson <rth@redhat.com>
8012 * simplify-rtx.c (simplify_binary_operation): Revert last change.
8014 2001-09-06 Richard Henderson <rth@redhat.com>
8016 * simplify-rtx.c (simplify_binary_operation): Simplify contents
8019 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8021 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8022 number used for CR register.
8024 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8025 Joern Rennecke (amylaar@cygnus.com)
8027 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8028 * h8300.c (initial_offset): Handle offset between RP and FP.
8029 (h8300_return_addr_rtx): New function.
8030 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8032 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8033 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8034 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8035 (CAN_ELIMINATE, REGISTER_NAMES):
8036 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8038 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
8040 Remove TYPE_NONCOPIED_PARTS.
8041 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8042 (struct tree_type): Remove noncopied_parts.
8043 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8044 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8045 (fixed_type_p): Remove.
8046 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8047 (expand_expr, MODIFY_EXPR): Likewise.
8048 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8049 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8051 2001-09-06 Alan Modra <amodra@bigpond.net.au>
8053 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8055 (mask64_operand): Likewise.
8056 (includes_rldic_lshift_p): Likewise.
8057 (includes_rldicr_lshift_p): Likewise.
8059 2001-09-05 Ziemowit Laski <zlaski@apple.com>
8061 * objc/objc-act.c (build_message_expr): If a class method cannot
8062 be found, do not issue a warning if a corresponding instance
8063 method exists in the root class.
8065 2001-09-05 Richard Henderson <rth@redhat.com>
8067 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8069 2001-09-05 Zack Weinberg <zack@codesourcery.com>
8071 * function.c (ggc_mark_struct_function): Mark f->outer.
8072 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8073 * integrate.c (output_inline_function): ... not here.
8075 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
8077 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8079 * i386.c (size_cost): New static variable.
8080 (override_function): Use size_cost when -Os is specified.
8082 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8083 properly; Use current_function_calls_eh_return.
8084 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8085 use leave to avoid dependency chain.
8087 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8088 get BB loop_depth instead of computing it from LOOP notes.
8090 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8092 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8094 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8095 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8096 UNALIGNED_DOUBLE_INT_ASM_OP): Define
8098 2001-09-05 Jeffrey A Law (law@cygnus.com)
8099 Jason Merrill (jason@redhat.com)
8101 * stor-layout.c (layout_type): Complain if an array's size can
8102 not be represented in a size_t.
8104 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8106 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
8108 * gcc.c: (process_command) Add parentheses around assignment
8109 used as truth value.
8111 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8113 * config/mips/mips.c (save_restore_insns): Don't mark any register
8114 save slots as unchanging if current_function_calls_eh_return.
8116 2001-09-05 Richard Henderson <rth@redhat.com>
8118 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8119 * config/alpha/alpha-protos.h: Declare it.
8120 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8121 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8122 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8123 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8124 (REG_OK_FOR_BASE_P): Select one of the above.
8126 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
8128 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8129 (crti.o): Prefix name of object file with $(T).
8132 2001-09-05 David S. Miller <davem@redhat.com>
8134 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8135 * config/sparc/linux64.h: Likewise.
8137 2001-09-05 Andreas Jaeger <aj@suse.de>
8139 * doc/invoke.texi (i386 Options): -mwide-multiply is not
8140 available anymore, remove the documentation.
8141 (i386 Options): Fix typo, cleanup index entries.
8143 * prefix.c (concat): Remove, we can use the version from liberty.
8145 2001-09-05 Richard Henderson <rth@redhat.com>
8147 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8148 New functions split out of md file expanders.
8149 * config/alpha/alpha-protos.h: Declare them.
8150 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8152 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
8154 * cppmacro.c (funlike_invocation_p): No need to restore context.
8156 2001-09-04 Richard Henderson <rth@redhat.com>
8158 * reload.c (push_reload): Export.
8159 * reload.h (push_reload): Declare it.
8161 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8162 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8163 * config/alpha/alpha.c (alpha_legitimize_address): New.
8164 (alpha_legitimize_reload_address): Likewise.
8165 * config/alpha/alpha-protos.h: Declare them.
8167 2001-09-04 Stan Shebs <shebs@apple.com>
8169 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8170 * config/darwin.c (machopic_stub_name): Account for internally
8171 generated lib calls such as memcpy.
8173 2001-09-04 Richard Henderson <rth@redhat.com>
8175 * unwind.h (_UA_END_OF_STACK): New flag.
8176 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8178 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
8180 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8182 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
8184 * config/mips/mips.c (save_restore_insns): Change base_offset to
8185 fp_offset in second call to mips_emit_frame_related_store.
8187 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
8189 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8190 sometimes be represented as a NOTE of type
8191 NOTE_INSN_DELETED_LABEL.
8192 (Insns): Document NOTE_INSN_DELETED_LABEL.
8194 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
8196 * c-common.h (tree_dump_index): Add more comments.
8197 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8198 (dump_option_value_info): New struct.
8199 (dump_options): New array.
8200 (dump_switch_p): Parse switch options symbolically.
8201 * doc/invoke.texi (-fdump-ast): Rename to ...
8202 (-fdump-tree): ... here. Document that options are symbolic, and
8203 not all are applicable.
8205 2001-09-04 David S. Miller <davem@redhat.com>
8207 * config/sparc/sparc.md (define_splits): Kill constraints.
8209 Cleanup redundant and unused insn attributes.
8210 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8211 binary, and move. Mark ialu as default.
8212 (commented out define_function_unit "alu"): Kill.
8213 (define_attr "use_clobbered"): Kill.
8214 (whole file): Kill address insn type references. Replace
8215 all unary/binary/move references with ialu.
8216 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8217 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
8220 Simplify length insn attribute and make more judicious use
8221 of insn attribute defaulting.
8222 * config/sparc/sparc.md (all insns with length > one): Mark as
8223 insn type multi if real instructions, else use default if
8224 it is a forced splitter.
8225 (all insns with length == one): Use default insn length.
8226 (all insns of type ialu): Use default insn type.
8228 Fix erroneous insn attribute settings.
8229 (addx): Set insn type to misc.
8230 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8231 const_umulsidi3_sp64): Set insn type to imul.
8233 Track SFmode vs DFmode insns according to UltraSPARC
8235 * config/sparc/sparc.md ("fptype"): New attribute, default
8237 (all DFmode single insns): Mark as fptype "double".
8239 2001-09-03 Jakub Jelinek <jakub@redhat.com>
8241 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8243 2001-09-03 Richard Henderson <rth@redhat.com>
8245 * function.h (struct function): Add arg_pointer_save_area_init.
8246 * function.c (expand_function_end): Init arg_pointer_save_area.
8247 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8248 when called from a nested function.
8250 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
8252 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8255 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
8257 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8259 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
8261 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8262 (emit_push_insn): Use specified padding direction when
8263 STACK_PUSH_CODE is POST_INC.
8265 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8267 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8269 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8271 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
8273 * cppinit.c (cpp_start_read): Free the imacros list as we
8274 traverse it. Don't free the chains before returning.
8275 (_cpp_push_next_buffer): Only try pushing buffers if we've
8276 completed -imacros handling.
8278 2001-08-31 Eric Christopher <echristo@redhat.com>
8280 * gcc.c (handle_braces): Add explaination for abort.
8282 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
8284 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8285 move adjustment of bitpos instead.
8287 2001-08-31 Zack Weinberg <zack@codesourcery.com>
8289 * function.c: Remove all_functions. Make outer_function_chain
8291 (init_function_start): Don't add new function structure to
8293 (find_function_data, push_function_context_to,
8294 pop_function_context_from, put_var_into_stack,
8295 trampoline_address): Update for changed structure element names.
8296 (push_function_context_to): Disentangle.
8297 (free_after_compilation): Also free F.
8298 (expand_dummy_function_end): Don't free cfun here.
8299 (put_var_into_stack): Comment why we can't use find_function_data here.
8300 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8301 (mark_function_chain): Split into maybe_mark_struct_function and
8302 ggc_mark_struct_function. Export the latter.
8303 (init_function_once): Mark from cfun and outer_function_chain;
8306 * function.h (struct function): Kill next_global. Rename next
8307 to outer. All users updated to match.
8308 (all_functions, outer_function_chain): Don't declare.
8310 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8311 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8312 don't touch f->inlinable, after calling rest_of_compilation.
8314 * tree.h: Forward-declare struct function. Prototype
8315 ggc_mark_struct_function.
8317 2001-08-31 Kazu Hirata <kazu@hxi.com>
8319 * config/h8300/h8300.md (*andorhi3): Fix typos.
8321 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8323 * calls.c (emit_library_call_value): Don't use a fixed
8324 argument after VA_CLOSE, i.e. out of scope in traditional C.
8326 * emit-rtl.c (gen_rtvec): Likewise.
8328 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8330 * Makefile.in (c-pragma.o): Depend on output.h.
8331 (reorg.o): Depend on except.h.
8333 * c-pragma.c: Include output.h.
8335 * reorg.c: Include except.h.
8337 * unwind-dw2.c: Call __builtin_alloca, not alloca.
8339 2001-08-31 Richard Henderson <rth@redhat.com>
8341 * sched-deps.c (add_dependence): Don't elide dependency if the
8342 conditional used by insn is modified in elem.
8344 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
8346 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
8348 2001-08-31 Diego Novillo <dnovillo@redhat.com>
8350 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
8353 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
8355 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
8357 (stormy16_asm_out_constructor): New function.
8358 (TARGET_ASM_CONSTRUCTOR): Define.
8359 (TARGET_ASM_DESTRUCTOR): Define.
8361 2001-08-31 Andreas Jaeger <aj@suse.de>
8363 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
8364 * loop.c (add_label_notes): Likewise.
8365 * reload.c (find_reloads): Likewise.
8366 * config/sh/sh.c (machine_dependent_reorg): Likewise.
8368 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
8370 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
8371 code here. Take _Unwind_{W,Sw}ord*.
8372 (read_encoded_value_with_base): Use them.
8373 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
8375 (extract_cie_info): Simplify read_?leb128 handling.
8376 (execute_stack_op, execute_cfa_program): Likewise.
8377 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
8379 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
8381 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
8382 the frame pointer to pop the stack if convenient.
8384 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
8385 Don't use post-increment before combine.
8386 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
8387 a call-saved register.
8389 2001-08-31 Andreas Jaeger <aj@suse.de>
8391 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
8394 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
8396 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
8397 not DIV/MOD, of course.
8399 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
8401 * rtl.def: Undo my patch commited 2001-08-27.
8403 * genattrtab.c: Ditto.
8407 * sched-int.h: Ditto.
8409 * target-def.h: Ditto.
8413 * haifa-sched.c: Ditto.
8415 * sched-rgn.c: Ditto.
8417 * sched-vis.c: Ditto.
8419 * Makefile.in: Ditto.
8421 * doc/md.texi: Ditto.
8423 * doc/tm.texi: Ditto.
8425 * doc/contrib.texi: Ditto.
8427 * doc/gcc.texi: Ditto.
8429 * genattrtab.h: Remove it.
8431 * genautomata.c: Remove it.
8433 * genattr.c: Undo my patch and Richard Henderson's patch commited
8436 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
8438 * config.gcc (h8300-*-elf*): New case.
8439 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8440 (SUBTARGET_CPP_SPEC): Define.
8441 (EXTRA_SPECS): Define.
8442 (SUBTARGET_EXTRA_SPECS): Define.
8443 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8444 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8446 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
8448 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8449 (LIB2FUNCS_EXTRA): Define.
8450 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8451 config/h8300/fixunssfsi.c: New file.
8453 2001-08-30 Kazu Hirata <kazu@hxi.com>
8455 * config/h8300/h8300.md (zero_extendqihi2): Changes to
8456 define_expand to accommodate target-specific attributes.
8457 (anonymous zero_extendqihi2 patterns): New.
8459 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
8461 * h8300.md (*andorhi3): New pattern.
8463 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
8465 * h8300.c (dosize): Fix test for "sub".
8467 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
8469 * c-typeck.c (pointer_diff): Try to eliminate common term before
8472 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
8474 * config/arm/arm.c (arm_compute_initial_elimination_offset):
8475 Account for the saves of the FP registers.
8477 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8478 (TEXT_SECTION_ASM_OP): Define.
8479 (INIT_SECTION_ASM_OP): Define.
8480 (FINI_SECTION_ASM_OP): Define.
8481 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8482 (RDATA_SECTION_FUNCITON): Provide prototype.
8484 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
8486 * reload1.c (move2add_note_store): Correct typo checking for
8489 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
8491 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8492 note should not be considered outside the libcall block.
8494 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8496 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8498 2001-08-29 Kazu Hirata <kazu@hxi.com>
8500 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8502 2001-08-29 Kazu Hirata <kazu@hxi.com>
8504 * config/h8300/h8300-protos.h: Add a prototype for
8506 * config/h8300/h8300.c (emit_logical_op): New.
8507 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8514 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
8516 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8517 comparison with rtx INTVAL.
8518 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8520 * pa.h (FUNCTION_ARG_SIZE): Likewise.
8522 2001-08-29 Kazu Hirata <kazu@hxi.com>
8524 * config/h8300/lib1funcs.asm: Update the copyright. Fix
8527 2001-08-29 Kazu Hirata <kazu@hxi.com>
8529 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8530 (reg n) to (mem (pre_dec (reg n))
8531 (anonymous movsi pattern): Likewise.
8533 2001-08-29 Kazu Hirata <kazu@hxi.com>
8535 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8537 2001-08-29 Kazu Hirata <kazu@hxi.com>
8539 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8540 several special constants.
8542 2001-08-29 Kazu Hirata <kazu@hxi.com>
8544 * config/h8300/lib1funcs.asm: Fix comment typos.
8546 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8548 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8549 Fix format specifier warnings.
8551 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8552 inet_makeaddr, semctl): Prototype.
8554 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8555 (save_restore_insns): Use base_offset, not gp_offset.
8557 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8558 (ASM_OUTPUT_BYTE): Fix format specifier warning.
8560 2001-08-29 Richard Henderson <rth@redhat.com>
8562 * bb-reorder.c (function_tail_eff_head): New.
8563 (record_effective_endpoints): Set it.
8564 (fixup_reorder_chain): Use it.
8566 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8568 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8570 2001-08-28 Dale Johannesen <dalej@apple.com>
8572 * config/darwin.c (machopic_function_base_name): Add const
8573 qualifier to a string.
8574 (darwin_encode_section_info): Ditto.
8576 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8578 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8579 function definition.
8581 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
8583 * df.h (struct df): Add rts_order variable.
8585 * df.c (df_visit_next_rts): New function.
8586 (df_visit_next): Renamed to df_visit_next_rc
8587 (df_analyse_1): Allocate/compute/free rts_order as well.
8588 (df_rd_global_compute): Use df_visit_next_rc instead of
8590 (df_ru_global_compute): Use df_visit_next_rts instead of
8593 * flow.c (flow_reverse_top_sort_order_compute): New function.
8595 * basic-block.h: Add prototype.
8597 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
8599 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8600 blocks, the BB_REACHABLE is now set, rather than aux being
8601 non-NULL. Update the test to reflect this.
8603 2001-08-28 Eric Christopher <echristo@redhat.com>
8605 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8606 config/mips/crti.asm: Ditto.
8608 2001-08-28 Eric Christopher <echristo@redhat.com>
8609 Richard Henderson <rth@redhat.com>
8611 * c-pragma.h (add_weak): Move prototype from here...
8612 * output.h (add_weak): ... to here.
8613 * varasm.c (add_weak): Fix typo.
8614 * config/mips/crti.asm: New file.
8615 * config/mips/crtn.asm: Ditto.
8616 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8617 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8618 (INVOKE__main): Ditto.
8619 (INIT_SECTION_ASM_OP): New.
8620 (FINI_SECTION_ASM_OP): Ditto.
8621 (STARTFILE_SPEC): Add crti.
8622 (ENDFILE_SPEC): Add crtn.
8623 * config/mips/elf64.h: Same.
8624 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8626 * config/mips/vxworks.h: Ditto.
8627 * config/mips/t-elf: Support crti and crtn.
8629 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8631 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8634 2001-08-28 Richard Henderson <rth@redhat.com>
8636 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8637 (one_cmplbi2 splitter): Remove redundant test.
8639 2001-08-28 Dale Johannesen <dalej@apple.com>
8641 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8643 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
8645 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8647 2001-08-28 Stan Shebs <shebs@apple.com>
8649 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8650 (UNALIGNED_SHORT_ASM_OP): Define.
8651 (UNALIGNED_INT_ASM_OP): Define.
8653 2001-08-28 Will Cohen <wcohen@redhat.com>
8655 * config/rs6000/rs6000.md (store_multiple): Correct RTL
8656 generation for first set.
8658 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8660 * flow.c (redirect_edge_succ_nodup): Return new edge.
8661 (try_simplify_condjump): Use new edge.
8662 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8664 * cse.c (cse_basic_block): Skip note instructions.
8666 2001-08-27 Richard Henderson <rth@redhat.com>
8668 * combine.c (combine_simplify_rtx): Don't reverse condition
8669 if there is no reverse for the condition.
8670 (simplify_comparison): Don't simplify subregs from INT to FP.
8672 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8673 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8674 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8675 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8676 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8677 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8679 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8681 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8682 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8684 (adddi_dilshr32, adddi_dishl32): Only data register can be
8685 source for mem destination.
8687 * expmed.c (store_bit_field): Ignore adjustment to bitpos
8688 and use bitnum to decide about register move.
8690 2001-08-27 Richard Henderson <rth@redhat.com>
8692 * genattr.c (main): Emit state_t even when not doing scheduling.
8694 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8695 Richard Henderson <rth@redhat.com>
8697 * gcse.c (reg_first_set, reg_last_set): Replace with ...
8698 (reg_avail_info, current_bb): ... these.
8699 (oprs_unchanged_p, record_last_reg_set_info): Use them.
8700 (compute_hash_table): Likewise.
8702 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
8704 * flow.c (verify_flow_info): Use checksums to verify edges.
8706 2001-08-27 Richard Henderson <rth@redhat.com>
8708 * genautomata.c (expand_automata): Always create a description.
8710 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
8712 * optabs.c (expand_binop): Correctly handle the carry in multiword
8713 add/subtract operations.
8715 2001-08-27 Fred Fish <fnf@be.com>
8717 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8720 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
8722 * reload.c (find_reloads_toplev): Back out this change:
8724 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
8726 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8727 mem if the address is a mode_dependent_address_p.
8729 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8731 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8732 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8733 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8736 * genattr.c (main): New variable num_insn_reservations. Increase
8737 it if there is DEFINE_INSN_RESERVATION. Output automaton based
8738 pipeline hazard recognizer interface.
8740 * genattrtab.h: New file.
8742 * genattrtab.c: Include genattrtab.h.
8743 (attr_printf, check_attr_test, make_internal_attr,
8744 make_numeric_value): Move protypes into genattrtab.h. Define them
8746 (num_dfa_decls): New global variable.
8747 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8748 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8749 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8750 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
8752 * genautomata.c: New file.
8754 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8756 * sched-int.h: (curr_state): Add the external definition for
8757 automaton pipeline interface.
8758 (haifa_insn_data): Add comments for members blockage and units.
8760 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8761 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8762 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8763 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8764 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8765 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8766 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8768 (TARGET_SCHED): Use the new macros.
8770 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8771 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8772 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8773 dfa_bubble): New members in gcc_target.sched.
8775 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8776 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8777 (insn_queue): Redefine it as pointer to array.
8778 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8780 (max_insn_queue_index_macro_value): New variable.
8781 (curr_state, dfa_state_size, ready_try): New varaibles for
8782 automaton interface.
8783 (ready_element, ready_remove, max_issue): New function prototypes
8784 for automaton interface.
8785 (choose_ready): New function prototype.
8786 (insn_unit, blockage_range): Add comments.
8787 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8788 FUNCTION_UNITS_SIZE == 0.
8789 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8790 actual_hazard, potential_hazard): Add comments.
8791 (insn_cost): Use cost -1 as undefined value. Remove
8792 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
8794 (ready_element, ready_remove): New functions for automaton
8796 (schedule_insn): Add new code for automaton pipeline interface.
8797 (queue_to_ready): Add new code for automaton pipeline interface.
8798 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8799 (debug_ready_list): Print newline when the queue is empty.
8800 (max_issue): New function for automaton pipeline interface.
8801 (choose_ready): New function.
8802 (schedule_block): Add new code for automaton pipeline interface.
8803 Print ready list before scheduling each insn.
8804 (sched_init): Add new code for automaton pipeline interface.
8805 Initiate insn cost by -1.
8806 (sched_finish): Free the current automaton state and finalize
8807 automaton pipeline interface.
8809 * sched-rgn.c: Include target.h.
8810 (init_ready_list, new_ready, debug_dependencies): Add new code for
8811 automaton pipeline interface.
8813 * sched-vis.c: Include target.h.
8814 (get_visual_tbl_length): Add code for automaton interface.
8815 (target_units, print_block_visualization): Add comments.
8817 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8818 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8819 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8820 (getruntime.o, genautomata.o): New entries.
8821 (genattrtab.o): Add new dependency file genattrtab.h.
8822 (genattrtab): Add new dependencies. Link it with `libm.a'.
8823 (getruntime.o, hashtab.o): New entries for canadian cross.
8825 * doc/md.texi: Description of automaton based model.
8827 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8829 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8830 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8831 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8832 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8833 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8834 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8835 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8837 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8838 MAX_DFA_ISSUE_RATE): New macro descriptions.
8840 * doc/contrib.texi: Add dfa based scheduler contribution.
8842 * doc/gcc.texi: Add more information about genattrtab.
8844 2001-08-27 Diego Novillo <dnovillo@redhat.com>
8846 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
8849 2001-08-27 Richard Henderson <rth@redhat.com>
8851 * function.c (expand_function_end): Don't init arg_pointer_save_area.
8852 (get_arg_pointer_save_area): New. Create an init it here.
8853 (fix_lexical_addr): Use it.
8854 * function.h: Declare it.
8855 * builtins.c (expand_builtin_setjmp_receiver): Use it.
8856 * stmt.c (expand_nl_goto_receiver): Use it.
8858 2001-08-27 Richard Henderson <rth@redhat.com>
8860 * final.c (final_scan_insn): Don't enter APP_ON mode for
8863 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
8864 alignment for assemble_integer for DW_EH_PE_aligned.
8865 * except.c (output_function_exception_table): Likewise.
8867 2001-08-26 Andreas Jaeger <aj@suse.de>
8869 * c-tree.h: Add prototyp for c_sizeof_nowarn.
8871 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
8873 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
8875 2001-08-27 Alan Modra <amodra@bigpond.net.au>
8877 * config/rs6000/rs6000.c (mask_operand): Rewrite without
8879 (mask64_operand): Likewise.
8880 (rldic_operand): Delete.
8881 (includes_lshift64_p): Delete.
8882 (includes_rldic_lshift_p): New function.
8883 (includes_rldicr_lshift_p): New function.
8884 (print_operand): Don't call rldic_operand in case 'W'.
8885 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
8886 (includes_lshift64_p): Remove.
8887 (includes_rldic_lshift_p): Declare.
8888 (includes_rldicr_lshift_p): Declare.
8889 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
8890 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
8891 Replace match_operand rldic_operand predicate with
8892 const_int_operand. Replace includes_lshift64_p condition with
8893 includes_rldic_lshift_p.
8894 <ashldi3_internal 64 bit rldicr patterns>: New.
8896 2001-08-27 Andreas Jaeger <aj@suse.de>
8898 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
8899 * errors.c: Likewise.
8900 * final.c: Likewise.
8901 * dwarf2asm.c: Likewise.
8902 * doprint.c (checkit): Likewise.
8903 * diagnostic.c: Likewise.
8904 * collect2.c: Likewise.
8905 * calls.c: Likewise.
8906 * c-semantics.c (build_stmt): Likewise.
8907 * c-format.c (status_warning): Likewise.
8908 * c-errors.c (pedwarn_c99): Likewise.
8909 * builtins.c (validate_arglist): Likewise.
8910 * config/pj/pj.c (pj_printf): Likewise.
8911 * fix-header.c: Likewise.
8913 * gcov.c (fnotice): Likewise.
8914 * gensupport.c (message_with_line): Likewise.
8915 * mips-tfile.c: Likewise.
8916 * protoize.c (notice): Likewise.
8917 * read-rtl.c (fatal_with_file_and_line): Likewise.
8918 * rtl-error.c: Likewise.
8919 * tradcpp.c: Likewise.
8921 * cp/tree.c (build_min_nt): Likewise.
8922 (build_min): Likewise.
8923 * cp/lex.c: Likewise.
8924 * cp/errfn.c: Likewise.
8925 * cp/rtti.c (create_pseudo_type_info): Likewise.
8927 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
8929 * df.c (df_uses_record): Return after recording all uses
8932 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
8934 * df.c (df_insn_modify): Realloc the INSN table here, if
8935 necessary, here, too.
8937 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
8939 * config/mips/mips.c (mips_function_value): Handle complex return
8942 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
8944 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
8946 * reload.c (make_memloc): Copy result if it is still
8947 reg_equiv_memory_loc[regno] on return.
8948 (subst_reloads) [ENABLE_CHECKING]: Check that none of
8949 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
8950 reg_equiv_mem are modified by the substitutions.
8952 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
8954 * predict.c (expensive_function_p): New.
8955 * rtl.h (expensive_function_p): Declare.
8956 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
8957 (use_fast_prologue_epilogue): New static variable.
8958 (expand_prologue): Set it; emit short prologues if unset.
8959 (expand_epilogue): Likewise.
8961 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
8963 * config.gcc: Add stormy16-*-elf case.
8964 * config/stormy16/stormy-abi: New file.
8965 * config/stormy16/stormy16-lib2.c: New file.
8966 * config/stormy16/stormy16-protos.h: New file.
8967 * config/stormy16/stormy16.c: New file.
8968 * config/stormy16/stormy16.h: New file.
8969 * config/stormy16/stormy16.md: New file.
8970 * config/stormy16/t-stormy16: New file.
8972 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
8974 * i386.h (no-accumulate-outgoing-args): Use proper mask.
8976 2001-08-24 David Edelsohn <edelsohn@gnu.org>
8978 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
8979 descriptor members are pointer size, not constant 4.
8980 * config/rs6000/rs6000.md (define_splits): Remove more unused
8983 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8985 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
8987 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
8989 * cp/rtti.c (VPARAMS): Fix parameter.
8991 2001-08-24 Zack Weinberg <zackw@panix.com>
8993 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
8995 (mode_for_extraction): No need for #ifdefs. Add default-case abort
8997 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
8998 in if controlling use of insv.
8999 (extract_bit_field): Likewise, for extv and extzv.
9001 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
9003 * i386.md (movcc peep2): Fix load of 0.
9005 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9007 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9008 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9010 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
9012 * c-pragma.h: Move weak_syms and weak_decls...
9013 * varasm.c: ...here. Now static.
9014 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9015 depend on HANDLE_PRAGMA_WEAK.
9017 * c-common.c (c_alignof, c_alignof_expr): Move here...
9018 * c-typeck.c: ...from here.
9019 * c-tree.h, c-common.h: Adjust.
9021 2001-08-23 Bernd Schmidt <bernds@redhat.com>
9023 * config/ia64/ia64.c (rws_update): If !pred, set write_count
9024 instead of incrementing it.
9026 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9027 asm ready, don't try to move them all into the same array element.
9029 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
9031 * function.c (thread_prologue_and_epilogue_insns): Avoid
9032 fallthru flag on edge to exit.
9034 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9036 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9039 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9041 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9042 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9043 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9046 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
9048 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9049 replace "GNU CC" with "GCC".
9051 2001-08-23 Richard Henderson <rth@redhat.com>
9053 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9054 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
9055 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9056 Need GR between FR and not GR_AND_FR.
9057 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9058 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9059 AR regs before GR regs.
9060 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9061 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9062 (REGISTER_MOVE_COST): Update.
9063 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9065 2001-08-23 Richard Henderson <rth@redhat.com>
9067 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9070 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
9072 * reload1.c (emit_reload_insns): Don't look for notes
9073 on a NULL store_insn.
9075 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9077 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9078 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9079 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9080 format specifier warnings.
9081 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9083 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
9085 * config/i386/i386-protos.h: Correct declaration of
9086 i386_pe_asm_named_section.
9088 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
9090 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9092 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9094 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9096 * cpperror.c (print_location): Don't show _Pragma.
9097 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9098 and file change callback generation here.
9099 (stack_include_file): Update use of cpp_push_buffer.
9100 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9101 (struct cpp_buffer): Remove type, pfile members.
9102 * cppinit.c (cpp_handle_option): Use free_chain.
9103 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9104 (skip_escaped_newlines, get_effective_char, lex_percent): Take
9105 a cpp_reader rather than a cpp_buffer.
9106 (skip_escaped_newlines, get_effective_char, skip_block_comment,
9107 skip_line_comment, parse_string, lex_percent, lex_dot,
9108 _cpp_lex_token): Update accordingly.
9109 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9111 (cpp_push_buffer): Update prototype.
9112 (run_directive): Update use of cpp_push_buffer.
9113 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9114 handle_assertion): Update use of run_directive.
9115 * cpplib.h (enum cpp_buffer_type): Remove.
9116 (cpp_push_buffer): Update prototype.
9117 * fix-header.c (read_scan_file): Update.
9119 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9121 * gcc.c (struct prefix_list): Change prefix to const char *.
9123 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9125 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9127 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
9129 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9132 * jump.c (squeeze_notes): Take parms by reference. Handle END being
9135 * ifcvt.c (dead_or_predicable): Adjust.
9136 * loop.c (find_and_verify_loops): Adjust.
9137 * stmt.c (expand_end_case): Adjust.
9138 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
9139 head and end insn pointers in the basic block, not just local copies.
9140 (merge_blocks_move_predecessor_nojumps): Likewise.
9142 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
9144 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9145 bitmap.h, builtin-types.def, builtins.c, builtins.def,
9146 c-aux-info.c, c-common.c, c-common.def, c-common.h,
9147 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9148 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9149 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9150 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9151 conditions.h, config.gcc, configure.frag, configure.in,
9152 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9153 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9154 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9155 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9156 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9157 emit-rtl.c, errors.c, errors.h, except.c, except.h,
9158 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9159 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9160 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9161 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9162 gencheck.c, gencodes.c, genconfig.c, genemit.c,
9163 genextract.c, genflags.c, gengenrtl.c, genmultilib,
9164 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9165 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9166 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9167 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9168 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9169 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9170 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9171 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9172 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9173 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9174 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9175 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9176 params.h, predict.c, predict.def, predict.h, prefix.c,
9177 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9178 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9179 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9180 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9181 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9182 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9183 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9184 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9185 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9186 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9187 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9188 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9189 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9190 xcoffout.h: replace "GNU CC" with "GCC".
9192 2001-08-21 Richard Henderson <rth@redhat.com>
9194 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9195 (final_scan_insn): Consider jump tables data even if we have no
9196 independent text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
9198 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9199 (ASM_OUTPUT_CASE_END): Remove.
9200 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9201 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9202 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9204 2001-08-21 Richard Henderson <rth@redhat.com>
9206 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9207 at barrier insns. Emit stop bits before barriers.
9209 * flow.c (flow_find_cross_jump): Don't consider unconditional
9210 return insns for commoning.
9212 * final.c (compute_alignments): Fix typo.
9214 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9215 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9216 (store_bit_field): Use mode_for_extraction more places.
9217 (extract_bit_field): Likewise.
9219 2001-08-21 Zack Weinberg <zackw@panix.com>
9221 * caller-save.c: Don't include insn-codes.h.
9222 (reg_save_code, reg_restore_code): Make arrays of int.
9223 All uses updated to match.
9224 (insert_save, insert_restore): No need to initialize "code"
9225 variable upon declaration.
9226 * Makefile.in: update dependencies; fix typo in clean rule.
9228 2001-08-21 Richard Henderson <rth@redhat.com>
9230 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9231 (merge_if_block): Handle fallout from same.
9233 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9235 * builtins.c (type_to_class): Fix typo in last change.
9237 2001-08-21 Richard Henderson <rth@redhat.com>
9239 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9240 ia64_asm_output_label.
9242 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9243 copy of gp while the real gp register contains garbage.
9245 2001-08-21 Zack Weinberg <zackw@panix.com>
9247 * expmed.c (mode_for_extraction): New function.
9248 (store_bit_field, extract_bit_field): Use it.
9249 * expr.h: Prototype it and provide an enum for its first argument.
9251 * combine.c, function.c, recog.c: Don't include insn-codes.h.
9252 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9253 and digging through the insn_data tables.
9254 * Makefile.in: Update dependencies.
9256 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
9258 * cppfiles.c (stack_include_file): line-map.c now handles include
9260 (handle_missing_handler): Similarly.
9261 (_cpp_execute_include): Similarly.
9262 (_cpp_pop_file_buffer): Similarly.
9263 * cpphash.h (struct cpp_reader): Remove system_include_depth,
9264 buffer_stack_depth and include_depth.
9265 * cpplib.c (do_include_common): line-map.c now handles include depth.
9266 (cpp_push_buffer): Similarly.
9267 (_cpp_pop_buffer): Similarly.
9268 * cppmacro.c (builtin_macro): Update.
9269 * line-map.c (init_line_maps): Set depth.
9270 (add_line_map): Increment "used" earlier. Update and use the
9272 (trace_include): Use the include depth.
9273 * line-map.h (struct line_maps): New member depth.
9275 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9277 * cppfiles.c (stack_include_file): Don't handle -H here.
9278 * cppinit.c (cpp_start_read): Set include tracing after
9279 cpp_post_options and after stacking the main file.
9280 * line-map.c (trace_include): New.
9281 (init_line_maps, add_line_map): Update.
9282 * line-map.h (struct line_maps): New member trace_includes.
9284 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9286 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9287 * cppfiles.c (stack_include_file): Only stack a file if there
9288 is something to do. Return a boolean indicating whether a
9289 buffer was stacked or not.
9290 (_cpp_execute_include): Similarly.
9291 (_cpp_read_file): Similarly.
9292 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9294 2001-08-21 Sam Steingold <sds@gnu.org>
9296 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9297 (RECACHE): keep obufp_before_macroname up to date
9299 2001-08-21 Zack Weinberg <zackw@panix.com>
9301 * stmt.c: Don't include insn-codes.h.
9302 (expand_end_case): Machine specific logic moved to expr.c.
9303 No need to worry about __builtin_classify_type.
9304 (check_for_full_enumeration_handling, emit_case_nodes):
9307 * builtins.o (expand_builtin_classify_type): Split up so code
9308 can be shared with fold_builtin_classify_type.
9309 (type_to_class, fold_builtin_classify_type): New functions.
9310 (fold_builtins): Handle __builtin_classify_type.
9312 * expr.c (do_tablejump): Now static.
9313 (case_values_threshold, try_casesi, try_tablejump): New;
9314 code mostly from stmt.c (expand_end_case).
9315 (expr.h): Update prototypes.
9317 * Makefile.in (stmt.o): Update dependencies.
9319 2001-08-21 Will Cohen <wcohen@redhat.com>
9321 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9322 declaration of variable i.
9323 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9324 declaration of variable i.
9326 2001-08-21 Richard Henderson <rth@redhat.com>
9328 * crtstuff.c: Fix thinko last change. Move list tails to start
9329 of CRT_END section. Tidy ifdefs.
9330 (__EH_FRAME_BEGIN__): Always static for ELF.
9331 (__do_global_ctors_1): Rename from __frame_dummy.
9332 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
9333 name change; don't hide __EH_FRAME_BEGIN__.
9335 2001-08-21 Richard Henderson <rth@redhat.com>
9337 * gdbinit.in: Move break on exit after break on fancy_abort.
9339 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
9342 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
9344 * cpphash.h (_cpp_push_next_buffer): New.
9345 * cppinit.c (do_includes): Remove.
9346 (push_include, free_chain, _cpp_push_next_buffer): New.
9347 (cpp_start_read): Use them to rework command line option handling.
9348 (cpp_handle_option): Combine handling of -include and -imacros.
9349 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
9350 appropriate. Always insert missing \n at EOF.
9351 * cpplib.c (start_directive): Get the directive position right.
9352 * cppmain.c (cb_file_change): Always print the first line, unless
9355 2001-08-20 Andreas Jaeger <aj@suse.de>
9357 * profile.c (compute_branch_probabilities): Remove extra new-line
9359 * flow.c (verify_flow_info): Likewise.
9361 2001-08-20 Diego Novillo <dnovillo@redhat.com>
9363 * basic-block.h (basic_block): Add new field 'flags'.
9364 (BB_REACHABLE): Define.
9365 (expunge_block): Declare.
9366 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
9367 (EXIT_BLOCK_PTR): Ditto.
9368 (expunge_block): Remove static declaration.
9369 (cleanup_cfg): Clear bb->aux on every basic block.
9370 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
9371 computing reachability.
9372 (delete_unreachable_blocks): Delete block b if b->flags has
9375 2001-08-20 Diego Novillo <dnovillo@redhat.com>
9377 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
9379 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9381 * sparc.c (sparc_variable_issue): Fix typo in last change.
9383 2001-08-20 Richard Henderson <rth@redhat.com>
9385 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
9387 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
9389 * pa.h (RETURN_IN_MEMORY): Improve comment.
9391 2001-08-20 Janis Johnson <janis187@us.ibm.com>
9393 * doc/invoke.texi (Profiling options): Clarify the interactions
9394 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
9396 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
9398 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
9401 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9403 * gcc.c (make_relative_prefix): Allocate a sufficiently large
9406 2001-08-20 Richard Henderson <rth@redhat.com>
9408 * final.c (end_final): Fix typo last change.
9410 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
9412 * cppinit.c (init_standard_includes): The returned buffer
9413 is already malloc-ed.
9414 * gcc.c (add_prefix): Similarly.
9415 * prefix.c (translate_name): Update to support clear buffer
9417 (update_path): Similarly. Be sure to free any newly allocated
9418 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9420 * prefix.h (update_path): Update prototype and document.
9421 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9422 up and update to new buffer ownership rules.
9423 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9425 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
9427 * final.c (compute_alignments): New function.
9428 (init_insn_lengths): Do not care label_align.
9429 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9430 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9431 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9432 (shorted_branches): Realloc label_align array; do
9433 not call init_insn_lengths; Do not care about loop alignments.
9434 * output.h (compute_alignments): Declare.
9435 * toplev.c (rest_of_compilation): Call compute_alignments.
9436 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9438 * predict.c (block_info_def): Add npredecesors, remove nvisited;
9439 change visited to tovisit.
9440 (propagate_freq): Use faster traversing algorithm.
9441 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9442 to tovisit; reverse meaning.
9444 * predict.c (struct block_info_def): Remove nvisited.
9445 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9446 (estimate_bb_frequencies): Call mark_dfs_back_edges.
9448 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
9450 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9451 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9452 (TARGET_FUSED_MADD): New.
9453 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9454 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9455 the multiply-add instructions.
9457 2001-08-19 Richard Henderson <rth@redhat.com>
9459 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9460 is aligned to pointer size.
9462 2001-08-19 Richard Henderson <rth@redhat.com>
9464 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9465 display markers during final schedule.
9467 2001-08-19 Richard Henderson <rth@redhat.com>
9469 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9471 2001-08-19 Richard Henderson <rth@redhat.com>
9473 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9475 (ASM_NAME_TO_STRING): Remove.
9476 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9477 in the same string. Remove support for expressions.
9479 2001-08-19 Richard Henderson <rth@redhat.com>
9481 * config/i386/i386.md (tablejump): Make an expander; handle
9482 pic relative addressing here.
9483 (tablejump_1): Rename from tablejump_pic.
9486 2001-08-19 Richard Henderson <rth@redhat.com>
9488 * regclass.c (fix_register): Fix typo.
9490 2001-08-18 Richard Henderson <rth@redhat.com>
9492 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9493 (struct _Unwind_Context): Expand br_loc to hold it.
9494 (uw_frame_state_for): Handle leaf functions better.
9495 (uw_update_reg_address): Update for br_loc change.
9497 2001-08-18 Richard Henderson <rth@redhat.com>
9499 * crtstuff.c: Move list heads before code that uses them.
9500 (__JCR_LIST__): Remove initial null.
9501 (frame_dummy, __frame_dummy): Do java registration here ...
9502 (__do_global_ctors_aux): ... not here.
9504 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9505 (__do_global_dtors_aux): Update to match.
9506 (__JCR_LIST__, __do_jv_register_classes): New.
9508 * config/ia64/crtend.asm (__JCR_END__): New.
9509 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9510 instead of an indirect LTOFF22 reloc.
9512 2001-08-18 Richard Henderson <rth@redhat.com>
9514 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9515 * regclass.c (init_reg_sets_1): Fix typo.
9516 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9517 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9518 (ia64_compute_frame_size): Make ar.unat live when in use.
9519 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9520 for ar.pfs; remove ar.unat handling.
9521 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9523 (PREDICATE_CODES): Add ar_pfs_reg_operand.
9524 * config/ia64/ia64-protos.h: Update decls.
9525 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9526 (sibcall_pic): Likewise.
9528 2001-08-18 Richard Henderson <rth@redhat.com>
9530 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9531 pred_rel_mutex when searching for insn_group_barrier.
9532 * config/ia64/ia64.md (cycle_display): Combine the expander
9535 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9536 bit before asm as needed.
9538 2001-08-18 Richard Henderson <rth@redhat.com>
9540 * timevar.def (TV_MACH_DEP): New.
9541 * toplev.c (rest_of_compilation): Use it.
9542 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9544 2001-08-18 Zack Weinberg <zackw@panix.com>
9546 * unwind-dw2.c (execute_stack_op): Add default aborts to
9547 the inner switches to prevent warnings.
9549 2001-08-18 Richard Henderson <rth@redhat.com>
9551 * timevar.h (struct timevar_time_def): Change element type to float.
9552 (ticks_to_msec, clocks_to_msec): Likewise.
9553 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9554 (get_time): Likewise.
9555 (timevar_print): Adjust zero check and printing to match.
9557 2001-08-18 Zack Weinberg <zackw@panix.com>
9559 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9560 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9561 Eliminate overfull or underfull hboxes.
9563 2001-08-18 Zack Weinberg <zackw@panix.com>
9565 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9567 2001-08-18 Zack Weinberg <zackw@panix.com>
9569 * haifa-sched.c: Convert to target hooks. Macros replaced
9570 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9571 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9572 MD_SCHED_FINISH, and HAVE_cycle_display.
9573 * target-def.h (TARGET_SCHED_ADJUST_COST,
9574 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9575 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9576 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9577 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9578 New hook #defines to be overridden.
9579 (TARGET_SCHED): Bring them all together.
9580 (TARGET_INITIALIZER): Update.
9581 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
9582 instead of 'struct rtx_def *' throughout.
9583 (struct sched): New set of hooks for the scheduler.
9584 * Makefile.in (haifa-sched.o): Depend on target.h.
9585 * doc/tm.texi: Document the new scheduler hooks, together in
9586 their own section, instead of scattered around.
9587 Fix a bunch of underfull/overfull hboxes.
9589 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9590 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9591 sparc.h: Don't define any of the old scheduler macros.
9593 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9594 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9595 sparc.c: Create hook functions from code extracted from
9596 corresponding target header, or make existing hooks static, as
9597 appropriate. Set the appropriate entries in targetm.
9599 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9600 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9601 rs6000-protos.h, s390-protos.h, sparc-protos.h:
9602 Remove prototypes for functions which are now static.
9604 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9605 related gunk; the Haifa scheduler is now the only choice.
9607 2001-08-18 Zack Weinberg <zackw@panix.com>
9609 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9610 * genopinit.c: Put floating point divide insns in sdiv_optab.
9611 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9612 * config/gofast.h, config/c4x/c4x.h,
9613 config/ia64/hpux_longdouble.h, config/mips/mips.h,
9614 config/pa/long_double.h, config/rs6000/sysv4.h,
9615 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9616 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9617 (init_optabs): Use init_optabv for overflow-trapping optabs.
9618 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
9619 cmp_optab RTX codes so have_insn_for can find them.
9621 * optabs.c (expand_simple_binop, expand_simple_unop,
9622 have_insn_for, gen_sub3_insn): New interfaces.
9623 * expr.h: Prototype new functions.
9624 (enum optab_methods): Move here from optabs.h.
9626 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9627 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9628 Use new functions instead of working directly with optabs.
9629 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9630 unroll.c: Don't include optabs.h.
9631 * caller-save.c, combine.c, function.c, stmt.c: Just include
9632 insn-codes.h, not optabs.h.
9633 * Makefile.in: Update dependencies.
9635 * combine.c (make_compound_operation, simplify_comparison):
9636 Fix typos testing for this or that instruction.
9638 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9640 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9641 generating libgcc.a.
9643 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9645 * except.c (TYPE_HASH): Delete.
9647 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9650 * tree.c (TYPE_HASH): Delete.
9652 * tree.h (TYPE_HASH): Define.
9654 2001-08-18 Graham Stott <grahams@redhat.com>
9656 * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9658 (adddi3_internal_2+2): Likewise.
9659 (eh_set_lr_di+1): Likewise.
9661 2001-08-17 Richard Henderson <rth@redhat.com>
9663 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9664 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9665 * dwarf2asm.c: ... here.
9666 * dwarfout.c: Remove them.
9668 * varasm.c (assemble_integer): Add align parameter.
9669 (assemble_real, output_constant, output_constructor): Likewise.
9670 * output.h: Update decls.
9671 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9672 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9673 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9674 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9675 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9678 * final.c (end_final): Abort profile block generation if we
9679 haven't layed it out properly.
9680 * output.h (assemble_eh_integer): Remove stale decl.
9681 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9683 (assemble_integer): Handle unaligned data.
9684 (assemble_real): Abort on unaligned data.
9685 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9687 (default_dtor_section_asm_out_destructor): Use assemble_align.
9688 (default_named_section_asm_out_constructor): Likewise.
9689 (default_ctor_section_asm_out_constructor): Likewise.
9690 * config/darwin.c (machopic_asm_out_constructor): Likewise.
9691 (machopic_asm_out_destructor): Likewise.
9692 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9693 (nextstep_asm_out_destructor): Likewise.
9694 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9695 (vms_asm_out_destructor): Likewise.
9697 2001-08-17 Richard Henderson <rth@redhat.com>
9699 * config/mips/iris6.h (TARGET_IRIX6): New.
9700 (current_section_name, current_section_flags): New.
9701 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9702 (MAX_OFILE_ALIGNMENT): New.
9703 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9704 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9705 (copy_file_data): Split out from
9706 (mips_asm_file_end): ... here.
9707 (mips_asm_file_start): Remove extra .section directive. Use
9708 tmpfile instead of mips_make_temp_file.
9709 (mips_unique_section): Use const char * as needed for warnings.
9710 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9711 re-add align parameter.
9712 (iris6_asm_named_section): New.
9713 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9714 (iris6_asm_output_align, iris6_section_align_1): New.
9715 (iris6_asm_file_start, iris6_asm_file_end): New.
9716 * config/mips/mips-protos.h: Update decls.
9718 2001-08-17 Janis Johnson <janis187@us.ibm.com>
9720 * doc/install.texi (Install GCC): Add links to build status pages.
9722 (Final install): Ditto; request updates for specific info
9724 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
9726 * cpperror.c (print_location): Don't take a file name; use the
9728 (_cpp_begin_message): Similarly.
9729 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9730 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9731 (cpp_pedwarn_with_file_and_line): Remove.
9732 * cppfiles.c (stack_include_file): Update; set filename to stdin
9733 here when appropriate.
9734 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9735 (_cpp_begin_message): Don't take a file name.
9736 * cppinit.c: Add comment.
9737 * cpplex.c: Fix end-of-directive indicator.
9738 * cpplib.c: Don't include intl.h.
9739 (run_directive, do_diagnostic): Update.
9740 (do_line): Update to not use nominal_fname.
9741 (cpp_push_buffer): Don't take a filename.
9742 * cpplib.h (struct ht): Remove.
9743 (cpp_push_buffer): Don't take a filename.
9744 (cpp_pedwarn_with_file_and_line): Remove.
9745 * cppmacro.c (struct cpp_macro): Remove file.
9746 (builtin_macro): Update.
9747 (_cpp_create_definition): Update.
9748 * cppmain.c: Correct comment.
9749 * fix-header.c (read_scan_file): Update.
9751 2001-08-17 Kazu Hirata <kazu@hxi.com>
9753 * sbitmap.c: Fix comment formatting.
9754 * sched-deps.c: Likewise.
9755 * sibcall.c: Likewise.
9756 * simplify-rtx.c: Likewise.
9758 * ssa-ccp.c: Likewise.
9759 * stor-layout.c: Likewise.
9760 * timevar.c: Likewise.
9761 * toplev.c: Likewise.
9762 * unwind-dw2.c: Likewise.
9763 * unwind-dw2-fde.c: Likewise.
9764 * varasm.c: Likewise.
9766 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
9768 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9769 or larger than an integer in memory.
9771 2001-08-17 Zack Weinberg <zackw@panix.com>
9773 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9774 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
9775 * rtl.h: Don't forward-declare union tree_node here. Don't
9776 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
9777 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9778 and tree respectively.
9779 * tree.h: Don't forward-declare struct rtx_def here. Don't
9780 typedef tree here. Change all uses of struct rtx_def *,
9781 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9782 and tree respectively.
9784 2001-08-17 Richard Henderson <rth@redhat.com>
9786 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9787 config/mips/openbsd.h: Fix typos last change.
9789 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9791 * doc/invoke.texi (Optimize Options): The default for
9792 -finline-limit is 600.
9794 2001-08-17 Richard Henderson <rth@redhat.com>
9796 * varasm.c (text_section): Allow TEXT_SECTION to override the
9797 printing of TEXT_SECTION_ASM_OP.
9798 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9799 (DATA_SECTION, BSS_SECTION): Remove.
9800 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9801 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9802 Rename from s/_NAME//.
9803 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9804 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9805 (TEXT_SECTION): ... here. New.
9806 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9807 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9808 * config/mips/openbsd.h: Likewise.
9809 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9810 (mips_asm_file_end): Likewise test.
9811 (mips_output_function_epilogue): Likewise. Switch back to data
9812 section after emitting the function.
9814 * doc/tm.texi (Sections): Document TEXT_SECTION.
9816 2001-08-17 Richard Henderson <rth@redhat.com>
9818 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9819 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
9821 2001-08-17 Richard Henderson <rth@redhat.com>
9823 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
9824 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
9825 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
9826 Add aligned attribute.
9828 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
9830 * config/sh/sh.md: Add modes to unspecs in first insn to match
9831 those in the second.
9833 * Makefile.in: Fix collect2 copy for Cygwin.
9835 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
9837 Install the proper patch.
9838 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9839 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9840 (expand_function_start): Likewise.
9841 * stmt.c (expand_decl): Likewise.
9842 * varasm.c (make_decl_rtx): Likewise.
9844 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
9846 * final.c: Undo my previous accidental checkin.
9847 * output.h: Likewise.
9848 * tm.texi: Likewise.
9850 2001-08-16 Richard Henderson <rth@redhat.com>
9852 * varasm.c (named_section_flags): Remove align parameter.
9853 * varasm.c, dwarf2out.c: Update all callers.
9854 * output.h: Update prototypes.
9856 * target.h (target.asm_out.named_section): Remove align parameter.
9857 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
9858 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
9859 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
9860 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
9861 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
9863 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
9864 (get_named_section_flags, set_named_section_flags): New.
9865 (named_section_flags): Use them.
9866 (named_section): Do decl vs section flags check here...
9867 (default_section_type_flags): ... not here.
9868 (init_varasm_once): Create in_named_htab.
9869 (resolve_unique_section): Mark reloc unused.
9871 2001-08-16 Richard Henderson <rth@redhat.com>
9873 * varasm.c (force_const_mem): Keep pool alignment in bits.
9874 (output_constant_pool): Use assemble_align.
9876 2001-08-16 Zack Weinberg <zackw@panix.com>
9878 * doc/tm.texi: Remove extra @table command.
9880 2001-08-16 Zack Weinberg <zackw@panix.com>
9882 * final.c (shorten_branches): Clear the end of the label_align
9883 array only if we made it larger. Break up messy expressions
9886 * diagnostic.c (internal_error): Check for error recursion
9887 before doing ICE suppression.
9889 * timevar.c: Timing variables now count in milliseconds.
9890 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
9891 (get_time): Not here.
9892 (timevar_print): Don't print any timer whose user, cpu, and
9893 wall times are all zero as displayed.
9894 * timevar.h: Update comment aboout units. Make timevar
9897 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
9899 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9900 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9901 (expand_function_start): Likewise.
9902 * stmt.c (expand_decl): Likewise.
9903 * varasm.c (make_decl_rtx): Likewise.
9905 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
9907 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
9908 (finalize_record_size): Don't set TYPE_USER_ALIGN.
9910 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9912 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
9915 2001-08-16 Andreas Jaeger <aj@suse.de>
9917 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
9920 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
9922 * rtl.h (only_sets_cc0_p): New prototype.
9923 * jump.c (sets_cc0_p): Handle INSN.
9924 (only_sets_cc0_p): New function.
9925 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
9926 (tidy_fallthru_edge): Likewise.
9927 * integrate.c (copy_insn_list): Likewise.
9928 * unroll.c (unroll_loop): Likewise.
9929 (copy_loop_body): Likewise.
9931 2001-08-15 Jason Eckhardt <jle@redhat.com>
9933 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
9935 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
9937 * predict.c (struct block_info_def): Remove nvisited.
9938 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9939 (estimate_bb_frequencies): Call mark_dfs_back_edges.
9941 * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
9942 (ix86_adjust_cost): Teach scheduler that latency to load operand can
9945 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
9947 * predict.def: Update hitrates.
9949 2001-08-15 Richard Henderson <rth@redhat.com>
9951 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
9953 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
9955 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
9956 note from its associated jump.
9958 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
9960 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
9961 also on 64-bit s390x targets.
9963 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
9965 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
9967 (arm_expand_prologue): Handled nested functions which take a
9968 variable argument list.
9969 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
9970 macro with an invocation of
9971 arm_compute_initial_elimination_offset.
9972 * config/arm/arm-protos.h: Prototype
9973 arm_compute_initial_elimination_offset.
9975 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9977 * doc/install.texi (Specific, avr): Fix markup.
9978 (Specific, c4x): Ditto.
9980 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9982 * predict.c (dump_prediction): Change `bool' parameter to `int'.
9984 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
9986 * Makefile.in (OBJS): Add rtl-error.o
9987 (rtl-error.o): New rule.
9988 (diagnostic.o): Adjust dependency.
9989 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
9990 error_for_asm, _fatal_insn, _fatal_insn_not_found,
9991 warning_for_asm): Move to...
9992 rtl-error.c: ...here. New file.
9994 2001-08-14 Richard Henderson <rth@redhat.com>
9996 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
9997 if USING_SJLJ_EXCEPTIONS.
9999 2001-08-14 Steve Ellcey <sje@cup.hp.com>
10001 * tlink.c (scan_linker_output): Check string for unsatisfied in
10002 addition to undefined and unresolved.
10004 2001-08-14 Graham Stott <grahams@redhat.com>
10006 * libgcc2.c (*): Replace EH_FRAME_SECTION with
10007 EH_FRAME_SECTION_NAME.
10009 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
10011 * genattrtab.c (simplify_test_exp_in_temp): New function.
10012 (simplify_test_exp): Avoid explicit use of temporary obstack.
10013 (simplify_cond, insert_right_side, evaluate_eq_attr,
10014 simplify_and_tree, simplify_or_tree, eliminate_known_true):
10015 Use simplify_test_exp_in_temp.
10016 (optimize_attrs): Iterate until expression stabilizes.
10018 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
10020 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10021 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10023 2001-08-13 Richard Henderson <rth@redhat.com>
10025 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10026 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10027 * config/arm/conix-elf.h: Likewise.
10029 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10031 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10033 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10035 * gcse.c (hash_scan_set): Expressions that are set as part of
10036 jump instructions are not available.
10038 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
10040 * config/s390/s390.c (print_operand, s390_function_prologue,
10041 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10043 2001-08-13 Richard Henderson <rth@redhat.com>
10045 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10046 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10047 * doc/tm.texi (Exception Region Output): Document it.
10049 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
10051 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10052 DWARF2 instead of stabs by default.
10054 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10056 * config/rs6000/rs6000.c: Include optabs.h.
10058 2001-08-13 David Edelsohn <edelsohn@gnu.org>
10060 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10061 save/restore routines.
10062 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10064 2001-08-13 Andreas Jaeger <aj@suse.de>
10066 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10067 the english is correct.
10069 2001-08-13 Zack Weinberg <zackw@panix.com>
10071 * expr.h: Split out optab- and libfunc-related code to...
10072 * optabs.h, libfuncs.h: ... these new headers.
10074 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10076 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10078 * mkconfig.sh: Don't include insn-codes.h from config.h.
10080 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10081 enum insn_code is available. Move reload_in_optab and
10082 reload_out_optab array declarations to optabs.h.
10083 * regmove.c (gen_add3_insn): Move to optabs.c, export from
10084 there, prototype in expr.h.
10085 * gencodes.c: Cleanup: zap global variables, don't use
10086 printf where puts will do, don't bother defining MAX_INSN_CODE
10087 which nothing uses, let CODE_FOR_nothing get its value implicitly.
10089 * genemit.c, genopinit.c: Include optabs.h in generated file.
10090 * genoutput.c: Include insn-codes.h in generated file.
10091 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10092 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10093 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10094 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10095 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10096 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10098 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10099 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10100 config/m88k/m88k.c, config/sparc/sparc.c:
10101 Include libfuncs.h.
10102 * reload.c: Include expr.h and optabs.h before reload.h.
10103 * config/alpha/alpha.c: Include tree.h before reload.h.
10104 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10105 and reload.h in that order.
10106 * config/sparc/sparc.c: Include debug.h.
10107 * recog.c: Include insn-codes.h.
10109 2001-08-13 Andreas Jaeger <aj@suse.de>
10111 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10114 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10116 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10117 * gcc.c (init_spec): Fix typo in comment.
10118 * varasm.c (data_section): Fix typo in comment.
10120 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
10122 * predict.c (dump_prediction): New argument "USED".
10123 (combine_predictions_for_insn): Determine the used heuristics,
10124 output the case no heuristic applied.
10125 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10127 2001-08-13 Andreas Jaeger <aj@suse.de>
10129 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10132 2001-08-13 Kazu Hirata <kazu@hxi.com>
10134 * jump.c: Fix formatting.
10136 2001-08-13 Kazu Hirata <kazu@hxi.com>
10138 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10141 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
10143 * loop.c (check_dbra_loop): Use condjump_label to compute
10146 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10147 to better document the files they're in.
10149 2001-08-12 Zack Weinberg <zackw@panix.com>
10151 * recog.h (struct insn_operand_data): Shrink 'mode' field
10154 2001-08-12 Kazu Hirata <kazu@hxi.com>
10156 * gcc.c: Fix comment formatting.
10157 * gccspec.c: Likewise.
10158 * gcov.c: Likewise.
10159 * gcse.c: Likewise.
10160 * genemit.c: Likewise.
10161 * gengenrtl.c: Likewise.
10162 * genrecog.c: Likewise.
10163 * gensupport.c: Likewise.
10164 * ggc-page.c: Likewise.
10165 * global.c: Likewise.
10166 * graph.c: Likewise.
10167 * ifcvt.c: Likewise.
10168 * integrate.c: Likewise.
10170 * libgcc2.c: Likewise.
10171 * loop.c: Likewise.
10172 * mbchar.c: Likewise.
10173 * optabs.c: Likewise.
10174 * predict.c: Likewise.
10175 * prefix.c: Likewise.
10176 * profile.c: Likewise.
10177 * protoize.c: Likewise.
10178 * real.c: Likewise.
10179 * recog.c: Likewise.
10180 * regclass.c: Likewise.
10181 * regmove.c: Likewise.
10182 * reg-stack.c: Likewise.
10183 * reload1.c: Likewise.
10184 * resource.c: Likewise.
10185 * rtlanal.c: Likewise.
10188 2001-08-12 Kazu Hirata <kazu@hxi.com>
10190 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10191 a tree representing a constant is passed to the macro.
10193 2001-08-12 Richard Henderson <rth@redhat.com>
10195 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10196 (rs6000_elf_asm_out_destructor): New.
10197 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10198 (DTORS_SECTION_ASM_OP): Remove.
10199 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10200 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10202 2001-08-12 David Edelsohn <edelsohn@gnu.org>
10205 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10206 * gcc.c (set_collect_gcc_options): New function, split out from
10208 Ignore elided switches.
10209 (do_spec_1): Invoke before executing command.
10210 (set_input): Export.
10211 Move declaration ...
10212 * gcc.h (set_input): ... here.
10213 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10216 2001-08-12 Richard Henderson <rth@redhat.com>
10218 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10219 thinko wrt TARGET_RELOCATABLE.
10221 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
10223 * fix-header.c (cb_file_change): Update prototype.
10225 2001-08-11 Zack Weinberg <zackw@panix.com>
10227 * toplev.c (set_float_handler): Make static.
10228 * toplev.h: Don't prototype set_float_handler.
10230 * simplify-rtx.c: Don't include setjmp.h.
10231 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10233 (simplify_unary_operation, simplify_binary_operation): Use them,
10234 via do_float_handler.
10236 * fold-const.c: Don't include setjmp.h.
10237 (exact_real_inverse_1): New function.
10238 (exact_real_inverse): Use it, via do_float_handler.
10240 * varasm.c: Don't include setjmp.h.
10241 (assemble_real_1): New function.
10242 (assemble_real): Use it, via do_float_handler.
10243 Call internal_error if we get a trap here.
10245 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10246 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10248 2001-08-11 Zack Weinberg <zackw@panix.com>
10250 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10251 STACK_BOUNDARY if not already defined.
10253 * calls.c, function.c, reload1.c, explow.c: Don't default
10254 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
10255 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10257 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10260 * doc/tm.texi: Document that STACK_BOUNDARY is required;
10261 clarify difference between it and PREFERRED_STACK_BOUNDARY.
10263 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10265 * cppmacro.c (enter_macro_context): Push macro expansions even
10268 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10270 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10271 (rs6000_elf_section_type_flags): Actually return a value.
10273 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10275 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10276 Clean up code: add missing comments and prototypes, fix warnings,
10277 remove obsolete code, fix spacing to conform to coding style.
10279 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
10281 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10282 and TARGET_ASM_CLOSE_PAREN.
10283 (regclass_map): CC register belongs to class NO_REGS.
10284 (legitimize_pic_address): Don't generate unnecessary moves
10285 (to avoid confusing loop optimization).
10286 (check_and_change_labels): Replace jump_long by indirect_jump.
10287 (s390_final_chunkify): Don't start a new literal pool on section
10288 switch in 64-bit code.
10289 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10291 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10292 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10293 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10295 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10296 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10297 (CONST_COSTS): Fixed incorrect costs.
10299 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10300 Use emit_jump instead of emit_jump_insn (gen_jump).
10301 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10302 (to avoid confusing flow analysis).
10303 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
10304 (casesi, casesi_jump): New.
10305 (jump_long): Removed. Functionality merged into indirect_jump.
10306 (indirect_jump): Accept address_operand, not just register_operand.
10307 (cjump_long, icjump_long): Use same logic as indirect_jump.
10308 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10309 Fixed broken setjmp/longjmp handling.
10310 (do_builtin_setjmp_setup): Removed.
10312 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10313 broken GNU as versions that don't accept .quad with large
10314 negative values. Use hexadecimal output instead.
10315 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10316 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10317 FUNCTION_EPILOGUE): Removed. Now in targetm.
10319 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10321 * config/s390/fixdfdi.h: Add missing copyright statement.
10322 Fix type conflicts on 64-bit. Add missing SFmode routines.
10324 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
10327 2001-08-11 Richard Henderson <rth@redhat.com>
10329 * rtl.h (REG_EH_RETHROW): Remove.
10330 * rtl.c (reg_note_name): Update.
10331 * combine.c (distribute_notes): Don't check for it.
10333 2001-08-11 Richard Henderson <rth@redhat.com>
10335 * combine.c (distribute_notes): Place REG_SETJMP.
10337 2001-08-11 Richard Henderson <rth@redhat.com>
10339 * doc/extend.texi (Arrays and pointers implementation): Discourage
10340 relying on sign-extension of pointers.
10342 2001-08-11 H.J. Lu <hjl@gnu.org>
10344 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
10346 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
10347 RDATA_SECTION_ASM_OP.
10349 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10351 * doc/install.texi (Specific, c4x): Fix cross-reference to the
10352 main manual to work both for info and HTML versions.
10354 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10355 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10357 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
10358 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
10359 (struct cpp_pool): New member first.
10360 * cppinit.c (append_include_chain): Plug memory leaks.
10361 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
10362 Allocate pragma structures from the (aligned) macro pool to
10363 avoid leaking memory.
10364 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
10365 so we don't leak memory.
10366 * hashtable.c (ht_destroy): New.
10367 * hashtable.h (ht_destroy): New.
10369 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
10370 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10372 * c-lex.c (map): Make const.
10373 (cb_file_change): Update for callback passing a line map.
10374 Don't assume we have a previous map. Remove sanity check
10375 about popping too many files.
10376 * cpperror.c (print_location): Make map const.
10377 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
10378 (cpp_make_system_header): Similarly.
10379 (search_from): Similarly.
10380 (_cpp_execute_include): Don't remember where we came from.
10381 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
10382 (struct cpp_reader): Make map const.
10383 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
10384 * cpplib.c (do_line): Update; line maps now hold sysp.
10385 (cpp_push_buffer): Similarly.
10386 (_cpp_do_file_change): Similarly; callback with map instead.
10387 (cpp_get_line_maps): Constify return value.
10388 (_cpp_pop_buffer): Update.
10389 * cpplib.h (struct cpp_file_change): Remove.
10390 (struct cpp_callbacks): Update.
10391 (cpp_get_line_maps): Constify return value.
10392 * cppmacro.c (_cpp_create_definition): Update.
10393 * cppmain.c (struct printer): Constify map.
10394 (maybe_print_line): Similarly.
10395 (print_line): Similarly. Deduce flags 1 and 2 here.
10396 (cb_file_change): Update.
10397 * line-map.c (free_line_maps): Warn regardless.
10398 (add_line_map): Return pointer to const. When passed NULL to_file
10399 with LC_LEAVE, use the obvious values for the return point so the
10400 caller doesn't have to figure them out.
10401 (lookup_line): Return pointer to const.
10402 (print_containing_files): Take pointer to const.
10403 * line-map.h (struct line_map): New members reason, sysp.
10404 (add_line_map): Return pointer to const.
10405 (lookup_line): Similarly.
10406 (print_containing_files): Take pointer to const.
10408 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
10409 Richard Henderson <rth@redhat.com>
10411 * regmove.c (regmove_optimize): Avoid setting a register twice in
10414 2001-08-10 Richard Henderson <rth@redhat.com>
10416 * doc/extend.texi (Arrays and pointers implementation): Document
10417 behavior of pointer/integer conversion.
10419 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
10421 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10423 2001-08-10 Richard Henderson <rth@redhat.com>
10425 * doc/extend.texi (C Implementation): New chapter.
10426 * doc/gcc.texi (Top): Link it in.
10428 2001-08-10 Andrew Cagney <ac131313@redhat.com>
10430 * doc/install.texi (Specific): Fix CVS merge botch.
10432 2001-08-10 Richard Henderson <rth@redhat.com>
10434 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10435 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10437 2001-08-10 Zack Weinberg <zackw@stanford.edu>
10439 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10440 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
10441 this macro is now required.
10443 * cselib.c (cselib_process_insn), flow.c (propagate_block),
10444 loop.c (find_and_verify_loops), reload.c (reload): Check
10445 for rtx code of CALL_INSN, not CALL, when deciding if we
10446 need to check for REG_SETJMP note.
10448 * gcse.c (compute_hash_table, compute_store_table): Update
10449 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10452 * config/avr/avr.c: Fix typo.
10453 * config/convex/convex.c (expand_movstr): Use adjust_address.
10454 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10456 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10457 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10459 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10460 Do define STACK_BOUNDARY.
10461 * config/i370/i370.c: Include expr.h.
10462 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10463 config/pa/som.h, config/v850/v850.h: Take in_ctors and
10464 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10465 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10466 * config/m88k/m88k.c: Include c-tree.h after expr.h.
10467 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10468 * config/romp/romp.c: Include expr.h after tree.h.
10470 (output_fpop): Use xmalloc, not oballoc.
10471 * config/we32k/we32k.c: Include expr.h.
10473 2001-08-10 Kazu Hirata <kazu@hxi.com>
10475 * config/h8300/h8300.h: Fix formatting.
10477 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
10479 * c-common.h (RETURN_NULLIFIED_P): Lose.
10480 * c-semantics.c (genrtl_return_stmt): Don't check it.
10482 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10484 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10485 (mips_annotate_frame_insn): New function.
10486 (mips_emit_frame_related_store): New function.
10487 (save_restore_insns): Don't mark instructions that set up the base
10488 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
10489 the store instructions instead.
10490 (mips_expand_prologue): If the stack size is moved into a temporary
10491 register, do not mark that move as frame-related. Add a
10492 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10494 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10496 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10497 stack slot as unchanging if current_function_calls_eh_return.
10499 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
10501 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10502 access the second half of the TFmode scratch operand.
10504 2001-08-10 Anthony Green <green@redhat.com>
10506 * java/class.c (emit_register_classes): Conditionalize code on
10509 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10511 * doc/install.texi (Specific, avr): Fix cross-reference to the
10512 main manual to work both for info and HTML versions.
10514 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10516 * stmt.c (expand_null_return_1): Remove code to generate simple returns
10517 and "use_goto" argument.
10518 (expand_null_return, expand_value_return): Update all callers.
10519 * function.c (expand_function_end): Remove code to generate simple
10521 * config/vax/vax.md (epilogue): New expander for function return.
10522 * doc/md.texi (epilogue): Remove "if defined".
10524 2001-08-09 Zack Weinberg <zackw@stanford.edu>
10526 * Makefile.in: Partially revert my previous change:
10527 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10528 of the hashtab.o and safe-ctype.o rules.
10530 2001-08-09 Richard Henderson <rth@redhat.com>
10532 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10533 (USE_COLLECT2): Remove duplicate definition.
10534 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10535 (use_collect2): Remove dead code.
10536 * configure.in (use_collect2): Remove will_use_collect2 and
10537 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10538 * configure: Rebuild.
10540 * target.h (targetm.asm_out.constructor): New.
10541 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10542 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10543 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10544 * varasm.c (in_ctors, in_dtors): New.
10545 (assemble_constructor, assemble_destructor): Remove.
10546 (default_stabs_asm_out_destructor): New.
10547 (default_named_section_asm_out_destructor): New.
10548 (dtors_section, default_dtor_section_asm_out_destructor): New.
10549 (default_stabs_asm_out_constructor): New.
10550 (default_named_section_asm_out_constructor): New.
10551 (ctors_section, default_ctor_section_asm_out_constructor): New.
10552 * output.h: Update declarations.
10553 * c-decl.c (c_expand_body): Use target hooks instead of
10554 assemble_constructor and assemble_destructor.
10555 * profile.c (output_func_start_profiler): Likewise.
10556 * objc/objc-act.c (finish_objc): Likewise.
10557 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
10558 for the constructor.
10559 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10561 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10562 (DTORS_SECTION_ASM_OP): Likewise.
10563 (__CTOR_LIST__): Use attribute section when possible.
10564 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10566 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10567 ASM_OUTPUT_CONSTRUCTOR.
10569 * config/darwin.c (machopic_asm_out_constructor): New.
10570 (machopic_asm_out_destructor): New.
10571 * config/darwin-protos.h: Update declarations.
10572 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10573 (ASM_OUTPUT_DESTRUCTOR): Remove.
10574 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10575 * config/nextstep.c (nextstep_asm_out_constructor): New.
10576 (nextstep_asm_out_destructor): New.
10577 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10578 (ASM_OUTPUT_DESTRUCTOR): Remove.
10579 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10580 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10581 ASM_OUTPUT_*STRUCTOR.
10582 * config/i386/aix386ng.h: Likewise.
10584 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10585 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10586 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10587 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10588 * config/lynx.h: Likewise.
10589 * config/netware.h: Likewise.
10590 * config/psos.h: Likewise.
10591 * config/alpha/alpha-interix.h: Likewise.
10592 * config/alpha/elf.h: Likewise.
10593 * config/arc/arc.h: Likewise.
10594 * config/arm/aof.h: Likewise.
10595 * config/arm/coff.h: Likewise.
10596 * config/arm/elf.h: Likewise.
10597 * config/c4x/c4x.h: Likewise.
10598 * config/h8300/h8300.h: Likewise.
10599 * config/i386/cygwin.h: Likewise.
10600 * config/i386/djgpp.h: Likewise.
10601 * config/i386/i386-coff.h: Likewise.
10602 * config/i386/i386-interix.h: Likewise.
10603 * config/i386/sco5.h: Likewise.
10604 * config/i386/vsta.h: Likewise.
10605 * config/i386/win32.h: Likewise.
10606 * config/i960/i960-coff.h: Likewise.
10607 * config/ia64/sysv4.h: Likewise.
10608 * config/m68hc11/m68hc11.h: Likewise.
10609 * config/m68k/coff.h: Likewise.
10610 * config/m68k/mot3300.h: Likewise.
10611 * config/m88k/m88k.h: Likewise.
10612 * config/mcore/mcore-pe.h: Likewise.
10613 * config/mcore/mcore.h: Likewise.
10614 * config/mips/elf.h: Likewise.
10615 * config/mips/elf64.h: Likewise.
10616 * config/mips/iris6.h: Likewise.
10617 * config/pa/pa64-hpux.h: Likewise.
10618 * config/rs6000/sysv4.h: Likewise.
10619 * config/sh/sh.h: Likewise.
10620 * config/sparc/litecoff.h: Likewise.
10622 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10623 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10624 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10625 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10626 (ASM_OUTPUT_DESTRUCTOR): Remove.
10627 * config/a29k/a29k.c: Move include of tree.h.
10628 * config/a29k/udi.h: Delete file.
10629 * config/alpha/alpha.c (vms_asm_out_constructor): New.
10630 (vms_asm_out_destructor): New.
10631 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10632 (EXTRA_SECTION_FUNCTIONS): Likewise.
10633 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10634 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10635 * config/c4x/c4x.c: Move include of tree.h.
10636 * config/clipper/clipper.c (clix_asm_out_constructor): New.
10637 (clix_asm_out_destructor): New.
10638 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10639 (ASM_OUTPUT_DESTRUCTOR): Remove.
10640 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10641 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10642 (TARGET_ASM_CONSTRUCTOR): New.
10643 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10644 (sco_asm_out_constructor): New.
10645 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10646 * config/i386/svr3gas.h: Remove stack grows up code.
10647 Remove code duplicated from i386/sysv3.h.
10648 (TARGET_ASM_CONSTRUCTOR): New.
10649 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10650 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10651 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10652 (TARGET_ASM_CONSTRUCTOR): New.
10653 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10654 (m68hc11_asm_out_destructor): New.
10655 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10656 (TARGET_ASM_DESTRUCTOR): New.
10657 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10658 * config/m68k/dpx2.h: Properly undef all the bits inherited from
10659 config/svr3.h pertaining to section manipulation.
10660 * config/m68k/dpx2g.h: Remove #if 0 code.
10661 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10662 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10663 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10664 (TARGET_ASM_CONSTRUCTOR): New.
10665 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10666 (m88k_svr3_asm_out_constructor): New.
10667 (m88k_svr3_asm_out_destructor): New.
10668 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10669 (ASM_OUTPUT_DESTRUCTOR): Remove.
10670 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10671 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10672 * config/rs6000/aix.h: Likewise.
10673 * config/mips/rtems64.h: Don't undef removed constructor related bits.
10674 * config/mips/vxworks.h: Likewise.
10675 * config/rs6000/lynx.h: Likewise.
10676 * config/sh/elf.h: Likewise.
10677 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10678 (DTORS_SECTION_ASM_OP): New.
10679 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10680 (ASM_OUTPUT_DESTRUCTOR): Remove.
10681 * config/sparc/sol2-sld-64.h: Likewise.
10682 * config/vax/vax.c (vms_asm_out_constructor): New.
10683 (vms_asm_out_destructor): New.
10684 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10685 (ASM_OUTPUT_DESTRUCTOR): Remove.
10686 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10688 * doc/tm.texi (@node Initialization): Update.
10690 2001-08-09 Richard Henderson <rth@redhat.com>
10692 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10693 (__do_global_dtors_aux): Use gp-relative static data to avoid
10694 one dynamic relocation.
10695 (__do_frame_setup): Register Java classes.
10696 * config/alpha/crtend.asm (__JCR_END__): New.
10698 2001-08-09 Zack Weinberg <zackw@stanford.edu>
10700 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10701 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10702 (GEN, STAGESTUFF): Add new files.
10703 (insn-constants.h, s-constants, tm-preds.h, s-preds,
10704 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10705 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10706 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10707 as well as insn-codes.h and insn-flags.h in config.h; and no
10708 extra headers in tconfig.h and hconfig.h.
10710 * gencodes.c: Eliminate code to generate predicate declarations
10711 or #defines for md-file constants.
10712 * genconstants.c, genpreds.c: New files.
10714 * i386.md: Re-order guard expressions such that TARGET_64BIT
10715 comes first, when this permits better optimization. Add
10716 TARGET_64BIT to more x86-64 patterns. Add comment explaining
10717 why this is desirable.
10719 2001-08-09 Jakub Jelinek <jakub@redhat.com>
10721 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10722 (find_fde_for_dso): Remove.
10723 (_Unwind_IteratePhdrCallback): New.
10724 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10725 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10727 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10729 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10730 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10732 2001-08-09 Graham Stott <grahams@redhat.com>
10734 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10735 (vis_no_unit): Use it.
10736 (visualize_no_unit): Add the insn only if room exists.
10738 2001-08-09 Graham Stott <grahams@redhat.com>
10740 * predict.c (estimate_probability): Replace magic numbers with
10741 appropriate enumeration.
10743 2001-08-09 Graham Stott <grahams@redhat.com>
10745 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10747 (EXTRACT_FLAGS): Likewise.
10749 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
10751 * config/mips/mips.c (mips_legitimate_address_p): Check for
10752 CONST_INT in last patch.
10754 2001-08-08 Anthony Green <green@redhat.com>
10756 * java/class.c (emit_register_classes): Use assemble_jcr if
10757 possible. Keep the original mechanism as a fallback.
10758 * defaults.h (JCR_SECTION_NAME): Define if we have named section
10759 and weak symbol support.
10760 * crtstuff.c (__JCR_LIST__): Define.
10761 (__JCR_END__): Define.
10762 (_Jv_RegiserClasses): Define weak symbol if possible.
10763 (__do_global_ctors_aux): Register classes for ELF targets with
10764 weak symbol support.
10766 2001-08-08 Kazu Hirata <kazu@hxi.com>
10768 * dbxout.c: Fix comment formatting.
10769 * dependence.c: Likewise.
10771 * diagnostic.c: Likewise.
10772 * dominance.c: Likewise.
10773 * doprint.c: Likewise.
10774 * dwarf2out.c: Likewise.
10775 * dwarfout.c: Likewise.
10776 * emit-rtl.c: Likewise.
10777 * except.c: Likewise.
10778 * explow.c: Likewise.
10779 * expmed.c: Likewise.
10780 * expr.c: Likewise.
10781 * flow.c: Likewise.
10782 * fold-const.c: Likewise.
10783 * function.c: Likewise.
10785 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10787 * global.c (retry_global_alloc): Avoid shadowing allocno.
10789 2001-08-08 Mark Mitchell <mark@codesourcery.com>
10791 * except.c (remove_fixup_regions): Fix typo.
10793 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
10795 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10796 unsigned HOST_WIDE_INT to avoid warning.
10797 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10798 * flow.c (set_block_for_new_insns): Likewise.
10800 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
10802 * sibcall.c (return_value_pseudo): New static variable.
10803 (skip_copy_to_return_value): Handle return_value_pseudo.
10804 (call_ends_block_p): Ensure that return_value_pseudo is set.
10805 (optimize_sibling_and_tail_recursive_call): Discover the
10806 load of pseudo return value in alternate exit block.
10808 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
10810 * calls.c (ECF_ALWAYS_RETURN): New constant.
10811 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10812 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10813 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10814 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10815 * rtl.c (reg_note_name): New name.
10816 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10818 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
10820 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
10822 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
10824 * alias.c (get_alias_set): Return a previously calculated
10825 alias set for a VAR_DECL.
10826 * function.c (gen_mem_addressof): Calculate the alias set before
10829 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
10831 * predict.def: Set hitrates according our experimental run.
10833 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
10835 * i386.h (HARD_REGNO_RENAME_OK): New macro.
10837 2001-08-08 H.J. Lu <hjl@gnu.org>
10839 * config/mips/mips.c (mips_unique_section): New. Copied from
10842 * config/mips/mips-protos.h (mips_unique_section): New
10845 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
10847 * config/mips/little.h: New. Generic little endian mips
10848 targets. Only mips*-*-linux* is converted to use it so far.
10850 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
10851 (WCHAR_TYPE): Defined
10852 (WCHAR_TYPE_SIZE): Likewise.
10853 (INIT_SUBTARGET_OPTABS): Likewise.
10854 (BSS_SECTION_ASM_OP): Likewise.
10855 (SBSS_SECTION_ASM_OP): Likewise.
10856 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10857 (ASM_DECLARE_OBJECT_NAME): Likewise.
10858 (UNIQUE_SECTION): Likewise.
10859 (EXTRA_SECTIONS): Likewise.
10860 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
10861 (ASM_OUTPUT_DESTRUCTOR): Likewise.
10862 (ASM_OUTPUT_DEF): Likewise.
10863 (HANDLE_SYSV_PRAGMA): Removed.
10864 (NO_IMPLICIT_EXTERN_C): Likewise.
10865 (TARGET_MEM_FUNCTIONS): Likewise.
10866 (STARTFILE_SPEC): Likewise.
10867 (ENDFILE_SPEC): Likewise.
10868 (LIB_SPEC): Likewise.
10869 (INVOKE__main): Likewise.
10870 (CTOR_LIST_BEGIN): Likewise.
10871 (CTOR_LIST_END): Likewise.
10872 (DTOR_LIST_BEGIN): Likewise.
10873 (DTOR_LIST_END): Likewise.
10874 (SET_ASM_OP): Likewise.
10875 (ASM_OUTPUT_SOURCE_LINE): Likewise.
10876 (ASM_OUTPUT_DEF): Likewise.
10877 (ASM_OUTPUT_IDENT): Likewise.
10879 * config/mips/mips.h (ASM_SPEC): Undefine before define.
10880 (CPLUSPLUS_CPP_SPEC): Likewise.
10881 (ASM_APP_ON) Redefine only if not defined.
10882 (ASM_APP_OFF): Likewise.
10883 (ASM_OUTPUT_SOURCE_LINE): Likewise.
10884 (ASM_OUTPUT_IDENT): Likewise.
10886 * config.gcc: Update tm_file for Linux/mips.
10888 2001-08-08 Bernd Schmidt <bernds@redhat.com>
10890 * cselib.c (cselib_record_sets): If insn is predicated, turn
10891 sources into IF_THEN_ELSEs.
10893 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
10894 Turn into define_insn_and_split.
10896 * sched-deps.c: Include "cselib.h".
10897 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
10898 Use cselib to turn memory addresses into VALUEs.
10899 (sched_analyze): Call cselib_init/cselib_finish if necessary.
10900 * sched-int.h (struct sched_info): New member USE_CSELIB.
10901 * sched-ebb.c (ebb_sched_info): Initialize it.
10902 * sched-rgn.c (rgn_sched_info): Likewise.
10903 * Makefile.in (sched-deps.o): Update dependencies.
10905 * cselib.h (cselib_subst_to_values): Declare.
10906 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
10907 that have no value and autoincs to be handled by generating a new
10910 2001-08-08 Graham Stott <grahams@redhat.com>
10912 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
10913 within fixed length SEQUENCE.
10915 2001-08-08 Graham Stott <grahams@redhat.com>
10917 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
10918 (diagnostic_prefixing_rule): Likewise.
10919 (diagnostic_line_cutoff): Likewise.
10920 (diagnostic_kind_count): Likewise.
10922 2001-08-08 Graham Stott <grahams@redhat.com>
10924 * alias.c (find_base_decl): Delete redundent assignment.
10926 2001-08-08 Graham Stott <grahams@redhat.com>
10928 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
10929 (abs): Uppercase and paranthesize macro parameter.
10930 (MEM_DEPENDENCY): Add whitespace.
10932 2001-08-08 Graham Stott <grahams@redhat.com>
10934 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
10935 failure check for CONST_INT
10937 2001-08-08 Graham Stott <grahams@redhat.com>
10939 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
10940 (libcall_dead_p): Likewise.
10942 (mark_used_regs): Constify fmt.
10943 (find_use_as_address): Likewise.
10945 2001-08-08 Graham Stott <grahams@redhat.com>
10947 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
10950 2001-08-08 Graham Stott <grahams@redhat.com>
10952 * combine.c (combine_simplify_rtx): Update comment and
10953 remove erroneous test.
10955 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
10957 * cppinit.c (cpp_finish): Pop the final buffer without comment.
10958 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
10959 take care to avoid multiple no-newline at EOF warnings in that
10962 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
10964 * calls.c (expand_call): Do not emit INSN_SETJMP note.
10965 (emit_library_call_value_1): Likewise.
10966 (emit_call_1): Emit REG_SETJMP note.
10967 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
10969 * cselib.c (cselib_process_insn): Likewise.
10970 * flow.c (propagate_block): Likewise.
10971 * loop.c (find_and_verify_loops): Likewise.
10972 * reload.c (find_equiv_regs): Likewise.
10973 * reload1.c (reload): Likewise.
10974 * resource.c (mark_referenced_resources,
10975 mark_set_resources): Likewise.
10976 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
10977 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
10978 * haifa-sched.c (unlink_other_notes): Likewise.
10979 (reemit_notes): Likewise.
10980 * sched-ebb.c (sched_ebb): Likewise.
10981 * sched-rgc.c (sched_region): Likewise.
10982 * rtl.c (note_insn_name): Likewise.
10983 (reg_note_name): Add REG_SETJMP
10984 * rtl.h (reg_note): Add REG_SETJMP.
10985 (insn_note): Remove NOTE_INSN_SETJMP.
10987 * profile.c (branch_prob): Add fake edges for setjmp.
10989 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
10991 * config.gcc: Quote target_cpu_default2 correctly for
10992 powerpc*-*-* targets.
10994 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
10996 * cpplib.h, line-map.h: Update comments.
10997 * cppmain.c (printer_init): Move inline.
10998 (maybe_print_line, print_line): Take a map pointer.
10999 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11000 (cb_file_change): Don't use prior value of print.map.
11002 2001-08-07 David Edelsohn <edelsohn@gnu.org>
11004 * doc/install.texi: Document fine-grained multilib configuration.
11006 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
11008 * rtlanal.c (find_first_parameter_load): Call note_stores
11009 only on the instructions.
11011 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
11013 * alias.c (nonlocal_mentioned_p):
11014 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11015 * calls.c (emit_call_1): Likewise.
11016 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11017 * cselib.c (cselib_process_insn): Likewise.
11018 * df.c (df_insns_modify): Likewise.
11019 * flow.c (need_fake_edge_p): Likewise.
11020 (propagate_one_insn): Likewise.
11021 * haifa-sched.c (reemit_notes): Likewise.
11022 * integrate.c (copy_insn_list): Likewise.
11023 * jump.c (delete_prior_computation): Likewise.
11024 * local-alloc.c (validate_equiv_mem): Likewise.
11025 * loop.c (scan_loop): Likewise.
11026 * predict.c (estimate_probability): Likewise.
11027 * reload.c (reload): Likewise.
11028 * sched-deps (sched_analyze): Likewise.
11029 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11030 * gcse.c (compute_hash_table): Likewise.
11031 (mark_call): Likewise.
11032 (store_killed_in_insn): Likewise.
11034 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
11036 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11038 2001-08-06 Richard Henderson <rth@redhat.com>
11040 * varasm.c (assemble_gc_entry): Remove.
11041 * output.h: Likewise.
11043 2001-08-06 Richard Henderson <rth@redhat.com>
11045 * varasm.c (assemble_constructor): Take a symbol_ref and a
11046 priority instead of a bare string. Move priority handling
11047 here from cp/decl2.c.
11048 * output.h: Update decls.
11050 * c-decl.c (c_expand_body): Update calls to assemble_constructor
11051 and assemble_destructor.
11052 * profile.c (output_func_start_profiler): Likewise.
11053 * objc/objc-act.c (finish_objc): Likewise.
11054 (build_module_descriptor): Return the symbol not the symbol name.
11056 2001-08-06 David Edelsohn <edelsohn@gnu.org>
11058 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11059 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11060 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11061 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11062 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11063 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11065 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11067 * cpperror.c (print_containing_files): Moved to line-map.c.
11068 (print_location): line-map.c handles re-listing or otherwise.
11069 * cpphash.h (struct lexer_state): Remove next_bol.
11070 (struct cpp_buffer): Remove include_stack_listed.
11071 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11072 Remove faked buffer handling.
11073 (_cpp_do_file_change): Tweak.
11074 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11075 * cppmain.c (struct printer): Remove filename.
11076 (print_line, cb_file_change): Update accordingly.
11077 * line-map.c: Include intl.h.
11078 (init_line_maps): Initialize last_listed.
11079 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11080 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11081 (print_containing_files): New.
11082 * line-map.h (struct line_maps): New member last_listed.
11083 (print_containing_files, INCLUDED_FROM): New.
11084 * Makefile.in: Update.
11085 * po/POTFILES.in: Add line-map.c.
11087 2001-08-06 Richard Henderson <rth@redhat.com>
11089 * except.c (convert_from_eh_region_ranges_1): Never mark
11090 USE or CLOBBER insns as throwing.
11092 * expr.c (store_constructor): Don't clobber memory targets.
11094 2001-08-06 Andreas Jaeger <aj@suse.de>
11096 * profile.c (branch_prob): Remove unused variable insn.
11098 * Makefile.in (local-alloc.o): Add dependency on except.h.
11100 * local-alloc.c: Include except.h for can_throw_internal prototype.
11102 2001-08-06 Richard Henderson <rth@redhat.com>
11104 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11105 * function.c (expand_main_function): Implement it.
11106 * doc/tm.texi: Document it.
11108 2001-08-06 Stan Shebs <shebs@apple.com>
11110 * doc/install.texi: Document powerpc-*-darwin* details.
11112 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
11114 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11115 (ASM_CPU_SPEC): Move back to rs6000.h
11116 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11118 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11120 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11123 * config/rs6000/linux64.h: Ditto.
11125 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11126 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11129 Remove accidently readded definitions of FUNCTION_PROLOGUE,
11130 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11132 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11135 2001-08-05 Richard Henderson <rth@redhat.com>
11137 * local-alloc.c (update_equiv_regs): Do not move insns that
11140 2001-08-05 Jan Hubicka <jh@suse.cz>
11142 * Makefile.in (reload1.o): Add dedendancy on except.h
11143 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11145 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11146 indicating wehther edges has been cleaned up.
11147 * reload1.c: Inlucde except.h
11148 (fixup_abnormal_edges): Accept deleted insns.
11149 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11152 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
11154 * cpplib.c (do_line): Correct line number after pop_buffer.
11156 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11158 PR preprocessor/3824
11159 * line-map.c: Update comments.
11160 * line-map.h: Update comments.
11161 * tradcif.y: Don't consider large numbers unsigned.
11163 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
11165 PR preprocessor/3081
11166 * c-lex.c (map): New.
11167 (cb_file_change): Update map and use it.
11168 (cb_def_pragma, cb_define, cb_undef): Use map and line.
11169 (c_lex): Update to use map.
11170 * cpperror.c (print_location): Move to using logical line numbers.
11171 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11172 (cpp_make_system_header): Similarly.
11173 (_cpp_execute_include): Stop line numbering hacks. Store the
11174 line we will return to.
11175 * cpphash.h (CPP_BUF_LINE): Remove.
11176 (struct cpp_buffer): Remove lineno and pseudo_newlines.
11177 Add map and return_to_line.
11178 (_cpp_do_file_change): Update.
11179 * cppinit.c (cpp_start_read): Update line kludge.
11180 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11181 (trigraph_ok): Use logical line numbers for diagnostics.
11182 (skip_block_comment): Likewise.
11183 (skip_whitespace): Likewise.
11184 (skip_line_comment): Use pfile->line instead.
11185 (_cpp_lex_token): Update to use logical line numbering exclusively.
11186 Handle BOL locally. Accept new lines in directives, but keep
11187 pfile->line decremented. Diagnostics use logical lines. Update
11188 directive handling.
11189 * cpplib.c (SEEN_EOL): New.
11190 (skip_rest_of_line, check_eol): Use it.
11191 (end_directive): Increase line number when accepting the newline
11192 at the end of a directive.
11193 (run_directive): Simplify.
11194 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
11195 (_cpp_do_file_change): Update to take buffer line number as an
11196 argument, and store the current map in the cpp_reader. Remove
11197 line number kludges.
11198 (_cpp_do__Pragma): Restore output position after a _Pragma.
11199 (cpp_push_buffer): Don't set output line or lineno.
11200 (_cpp_pop_buffer): Transfer more info from a faked buffer.
11201 Remove line kludge. Set output_line.
11202 * cppmacro.c (builtin_macro): Update handling of __LINE__.
11203 (parse_arg): Use logical lines.
11204 (save_lookahead_token): Save EOFs too now.
11205 * cppmain.c (struct printer): Fix comments.
11206 (printer_init): Simplify, let caller do errors.
11207 (scan_translation_unit, check_multiline_token, dump_macro): Update.
11208 (maybe_print_line): Simplify.
11209 (print_line): Don't print a linemarker if -P.
11210 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11211 (cb_file_change): Simplify.
11212 * line-map.h (LAST_SOURCE_LINE): Fix.
11213 (CURRENT_LINE_MAP): New.
11215 2001-08-05 Bernd Schmidt <bernds@redhat.com>
11217 * doloop.c (doloop_modify_runtime): Properly compute number of
11218 iterations if loop was unrolled.
11220 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11221 if their CSELIB_VAL_PTRs are.
11223 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11224 (setup_spill_pointers): Initialize it.
11225 (spill_restore_mem): Set it.
11226 (do_spill, do_restore): Use it to add REG_INC note.
11227 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11229 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11230 asms if other insns are available.
11232 * config/ia64/ia64.c (condop_operator): New predicate.
11233 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11234 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11237 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11238 temporary register than directly using a MEM.
11240 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11242 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11243 parameter in last change.
11245 2001-08-04 Zack Weinberg <zackw@panix.com>
11247 * sparc.md: Don't use #if inside C test expression.
11249 2001-08-04 Richard Henderson <rth@redhat.com>
11251 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11253 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
11255 * cpphash.h (struct cpp_reader): New member directive_line.
11256 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11257 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11258 do_pragma): Pass line to callbacks.
11259 (start_directive): Record line of directive.
11260 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11261 cb_include): Similarly.
11262 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11265 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11267 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11270 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
11272 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11274 * reload1.c (fixup_abnormal_edges): New static function.
11277 * flow.c (need_fake_edge_p): New function.
11278 (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11279 avoid call insn to be very last insn in the insn stream.
11281 * profile.c (branch_prob): Call flow_call_edges_add instead of
11282 doing that by hand; cleanup cfg to re-merge basic blocks once
11285 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11287 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11288 are also on line-map.h.
11289 * cppfiles.c (stack_include_file): Update.
11290 * cpphash.h (struct cpp_buffer): New member return_at_eof.
11291 (_cpp_pop_buffer): New.
11292 * cppinit.c (cpp_destroy, cpp_finish): Update.
11293 (do_includes): Mark each buffer to return at EOF.
11294 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
11295 return as requested.
11296 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11297 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
11298 * cpplib.h (cpp_pop_buffer): Remove.
11299 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11300 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
11302 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
11304 (do_preprocessing): Update.
11305 * fix-header.c (read_scan_file): Update. No need to pop buffers.
11306 * c-parse.in (_yylex): Similarly.
11307 * scan-decls.c (scan_decls): Similarly.
11308 * line-map.h: Update comments.
11310 * objc/Make-lang.in (objc-act.o): Update dependencies.
11312 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11314 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11315 and soft register for operand 0.
11316 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11318 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11320 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11321 register for operand 0.
11322 ("bitcmpqi_z_used"): Allow memory for operand 0.
11323 (split "bitcmpqi"): New split to handle address reg as operand 1.
11325 2001-08-04 Andreas Jaeger <aj@suse.de>
11327 * gcse.c: Revert Daniel's last patch.
11329 2001-08-03 Zack Weinberg <zackw@stanford.edu>
11331 * sparc-protos.h: Add prototypes for fp_zero_operand and
11333 * sh-protos.h: Add prototype for fpul_operand.
11335 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
11337 * doc/extend.texi (Other Builtins): Fix typo in last change.
11339 2001-08-03 Richard Henderson <rth@redhat.com>
11341 * target.h (gcc_target): Add asm_out.named_section,
11342 section_type_flags, have_named_sections.
11343 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
11344 (TARGET_HAVE_NAMED_SECTIONS): New.
11345 (TARGET_SECTION_TYPE_FLAGS): New.
11347 * Makefile.in (toplev.o): Depend on TARGET_H.
11348 (varasm.o, dbxout.o): Likewise.
11349 * c-common.c (decl_attributes): Check targetm.have_named_sections
11350 instead of ifdef ASM_OUTPUT_SECTION_NAME.
11351 * dbxout.c (dbxout_function_decl): Likewise.
11352 (dbxout_function_end): Likewise.
11353 * toplev.c (compile_file): Likewise.
11354 * varasm.c (exception_section): Likewise.
11355 * cp/decl2.c (finish_objects): Likewise.
11357 * defaults.h (EH_FRAME_SECTION): Remove.
11358 (EH_FRAME_SECTION_ASM_OP): Remove.
11359 (EH_FRAME_SECTION_NAME): New.
11360 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
11361 (UNIQUE_SECTION_P): Remove.
11362 * dwarf2out.c (SECTION_FORMAT): Remove.
11363 (ASM_OUTPUT_SECTION): Remove.
11364 (output_call_frame_info): Use named_section_flags.
11365 (output_comp_unit, dwarf2out_start_source_file): Likewise.
11366 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
11367 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
11368 * varasm.c (in_eh_frame, eh_frame_section): Remove.
11369 (named_section_flags): New.
11370 (named_section): Use it and targetm.section_type_flags.
11371 (resolve_unique_section): New.
11372 (assemble_start_function): Use it.
11373 (asm_emit_uninitialised, assemble_variable): Likewise.
11374 (default_section_type_flags): New.
11375 (default_no_named_section, default_elf_asm_named_section): New.
11376 (default_coff_asm_named_section, default_pe_asm_named_section): New.
11377 * output.h: Update varasm.c decls.
11378 (SECTION_*): New flags.
11380 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
11381 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
11383 * config/elfos.h (UNIQUE_SECTION_P): Remove.
11384 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
11385 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
11386 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11387 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
11388 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
11389 * config/mips/elf.h, config/mips/elf64.h: Likewise.
11390 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
11391 * config/pa/pa64-hpux.h,
11393 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
11394 (TARGET_ASM_NAMED_SECTION): New.
11395 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
11396 * config/alpha/vms.h, config/arm/coff.h: Likewise.
11397 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
11398 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
11399 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
11400 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
11401 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11402 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
11403 * config/i386/sco5.h, config/i386/win32.h: Likewise.
11404 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
11405 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
11406 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
11407 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11408 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11409 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11410 * config/sparc/sysv4.h: Likewise.
11412 * config/nextstep.h: Error until named sections implemented.
11414 * config/a29k/a29k.c (a29k_asm_named_section): New.
11415 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11416 (vms_section_type_flags, vms_asm_named_section): New.
11417 * config/arm/arm.c (arm_elf_asm_named_section): New.
11418 * config/avr/avr.c (asm_output_section_name): Remove.
11419 * config/avr/avr-protos.h: Update.
11420 * config/c4x/c4x.c (c4x_asm_named_section): New.
11421 * config/h8300/h8300.c (h8300_asm_named_section): New.
11422 * config/i386/i386.c (sco_asm_named_section): New.
11423 * config/i386/winnt.c (SECTION_PE_SHARED): New.
11424 (i386_pe_section_type_flags): New.
11425 (i386_pe_asm_named_section): New.
11426 * config/i386/i386-protos.h: Update.
11427 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11428 * config/mcore/mcore.c (mcore_asm_named_section): New.
11429 * config/mips/mips.c (iris6_asm_named_section): New.
11430 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11431 instead of UNIQUE_SECTION_P.
11432 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11433 (xcoff_asm_named_section): New.
11434 * config/sh/sh.c (sh_asm_named_section): New.
11435 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11437 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11438 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11439 (EH_FRAME_SECTION_NAME): New.
11440 (EXCEPTION_SECTION): New.
11441 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11442 (DEBUG_*_SECTION): Remove.
11443 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11444 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11445 (EH_FRAME_SECTION_ASM_OP): Remove.
11447 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11448 (ASM_OUTPUT_SECTION_NAME): Remove.
11449 (TARGET_ASM_NAMED_SECTION): New.
11450 (TARGET_HAVE_NAMED_SECTIONS): New.
11451 (TARGET_SECTION_TYPE_FLAGS): New.
11452 (EH_FRAME_SECTION_ASM_OP): Remove.
11453 (EH_FRAME_SECTION_NAME): New.
11455 2001-08-03 Zack Weinberg <zackw@stanford.edu>
11457 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11458 for complex expressions when cfun == 0.
11459 * doc/extend.texi: Document that __builtin_constant_p can be
11460 used in data initializers as well as functions.
11462 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
11464 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11465 variable I locally, instead of expecting a declaration in the
11468 2001-08-03 Richard Henderson <rth@redhat.com>
11470 * except.c (collect_one_action_chain): Add an explicit cleanup
11471 action if regions surrounding a catch were encoded entirely
11472 within the call-site entry.
11474 2001-08-03 Richard Henderson <rth@redhat.com>
11476 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11477 don't take REGNO of a non-register.
11479 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11481 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11482 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11483 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11484 (__gthread_mutex_init_function): New function for mutex initialization.
11486 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11488 * Makefile.in: Revert screwed up commit.
11490 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11492 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11493 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11494 merged by linker script to get a final _exit().
11495 (__do_global_dtors): New for destructor handling in specific exit
11497 (__do_global_ctors): New for constructors in specific install section.
11498 (__map_data_section): Map data sections before running constructors.
11499 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11500 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11501 (DTORS_SECTION_ASM_OP): Likewise.
11502 (CTORS_SECTION_FUNCTION): Define to force a reference to
11504 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11506 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11508 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11510 * Makefile.in: Add df.h to gcse.c dependencies.
11512 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11514 * varasm.c (output_constant_def_contents): Use for the length of a
11515 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11516 depending on which is larger.
11518 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
11520 * gcse.c: Include df.h for use as a dataflow analyzer.
11522 Declaration of reg_set_info: gone.
11523 New df_analyzer variable used by store motion.
11524 (reg_set_info): Deleted.
11525 (mark_mem_regs): New function, analyze regs used by a mem.
11526 (store_ops_ok): Use dataflow analyzer results to determine if
11527 necessary regs are changed in the block.
11528 (find_moveable_store): Remove check for symbol ref, we can handle
11529 much more complex expressions now.
11530 (compute_store_table): Remove most of the code, it's unnecessary
11531 now that the dataflow analyzer records the info for us.
11532 (store_killed_after): Add parameter to say whether to do the
11533 store_ops_okay test, used to speed up testing when we already know
11534 the answer, and just want to know if the store itself was killed.
11535 (build_store_vector): Largely rewritten to calculate the various
11536 vectors properly, and somewhat optimized.
11537 (store_motion): Init the df_analyzer, get REG_DEF chains.
11538 Also handle trapping expressions (since mems almost always trap)
11539 (simple_mem): Redefine what a simple mem is.
11541 2001-08-03 DJ Delorie <dj@redhat.com>
11543 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11544 set from a constant part of the condition.
11546 2001-08-01 Andrew Cagney <ac131313@redhat.com>
11548 * mkdeps.c (deps_add_default_target): Make local variable
11549 ``start'' a const char pointer.
11550 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11552 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11554 * doc/install.texi (Configuration): Fix markup.
11555 (Specific, i?86-*-udk): Likewise.
11556 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11558 Document --enable-threads and --enable-libgcj status.
11559 (Specific, mips-sgi-irix*): Canonicalize triples.
11560 (Specific, mips-sgi-irix5): Warn about problems with this config.
11561 Mention required GNU as patch.
11562 Native assembler problems are fixed.
11563 (Specific, mips-sgi-irix6): Update O32 ABI support status.
11564 Document --enable-threads and --enable-libgcj status.
11566 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11568 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11571 2001-08-03 Richard Henderson <rth@redhat.com>
11573 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11576 2001-08-03 Richard Henderson <rth@redhat.com>
11578 * rtlanal.c (find_first_parameter_load): Stop if we
11579 reach a CODE_LABEL at BOUNDARY.
11581 2001-08-03 Richard Henderson <rth@redhat.com>
11583 * config/alpha/alpha.md (force_movdi): New insn.
11584 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11585 Tweek FRP marking of VMS prologue insns.
11586 * config/alpha/vms.h (EPILOGUE_USES): New.
11588 2001-08-02 Richard Henderson <rth@redhat.com>
11590 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11592 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
11594 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11595 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11596 config/convex/convex.h, config/d30v/d30v.c,
11597 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11598 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11599 config/mips/mips.h, config/mn10200/mn10200.h,
11600 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11601 config/v850/v850.h, config/vax/openbsd.h,
11602 config/vax/openbsd1.h, config/vax/ultrix.h,
11603 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11604 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11605 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11606 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11607 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11608 in comments and documentation.
11610 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11614 * Makefile.in (line-map.o): New.
11615 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11616 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11617 * cpperror.c (print_containing_files): Similarly.
11618 (print_location): Update. Don't output a space before _Pragma.
11619 * cppfiles.c (stack_include_file): Set to line 1 immediately.
11620 (stack_include_filee, cpp_make_system_header): Update.
11621 (_cpp_execute_include): Get logical line number right for calling
11622 as-yet-unterminated #include.
11623 * cpphash.h (struct cpp_reader): Add line_maps.
11624 (_cpp_do_file_change): Update.
11625 * cppinit.c (cpp_create_reader): Initialize line maps.
11626 (cpp_destroy): Destroy line maps.
11627 (cpp_start_read): Get logical line number right.
11628 * cpplex.c (parse_string): Only warn once for multi-line strings.
11629 Use boolean variable for null warning.
11630 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11632 (do_include_common): End the directive early.
11633 (do_line): Don't warn about out-of-range lines in preprocessed
11634 source. Update. Remove unused variables.
11635 (_cpp_do_file_change): Update for new line mapping.
11636 (pragma_cb): New typedef.
11637 (cpp_register_pragma): Stop looking ahead before calling the
11639 (do_pragma_system_header): End directive early.
11640 (cpp_get_line_maps): New.
11641 (cpp_pop_buffer): Fudge logical line. Update.
11642 * cpplib.h: Include line-map.h
11643 (enum cpp_fc_reason): Remove.
11644 (struct cpp_file_change): Update.
11645 (cpp_get_line_maps): New.
11646 * cppmain.c (struct_printer): New member map.
11647 (cb_file_change): Update for new mappings.
11648 * fix-header.c (cb_file_change): Similarly.
11650 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11652 * Makefile.in (libgcc.mk): Define mkinstalldirs.
11653 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11655 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
11657 * config/vax/vax.c: include expr.h.
11659 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
11661 * Makefile.in ($(srcdir)/configure): Only rebuild in
11663 ($(srcdir)/config.in): Only define in maintainer mode.
11664 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11666 2001-08-02 David Edelsohn <edelsohn@gnu.org>
11668 * doc/install.texi (Install GCC: Binaries): Update Bull info.
11670 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11672 * gcc.c (set_collect_gcc_options): New function, split out from
11674 Ignore elided switches.
11675 (do_spec_1): Invoke before executing command.
11676 (set_input): Export.
11677 Move declaration ...
11678 * gcc.h (set_input): ... here.
11679 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11682 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
11685 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11687 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11689 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
11691 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
11692 for the unnamed instructions it expands to.
11694 2001-08-02 Richard Henderson <rth@redhat.com>
11696 * regclass.c (call_really_used_regs): Conditionally define.
11697 (init_reg_sets_1): Don't use it if not defined.
11698 (fix_register): Similarly, don't set it.
11700 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11702 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11703 Correct comment that had been missed in the previous change.
11705 2001-08-01 Stan Shebs <shebs@apple.com>
11707 * config/darwin.c (machopic_stub_name): Try matching by name.
11708 (update_stubs): New function.
11709 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
11712 2001-08-01 Richard Henderson <rth@redhat.com>
11714 * except.c (output_function_exception_table): Use assemble_align.
11715 * varasm.c (assemble_eh_label): Remove.
11716 (assemble_eh_align, assemble_eh_integer): Remove.
11718 2001-08-01 Robert Lipe <robertl@caldera.com>
11720 * dwarfout.c: Remove reference to README.DWARF.
11722 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
11724 * regclass.c (call_really_used_regs): New array for registers which
11725 are actually used by a call.
11726 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11728 (fix_register): Set call_really_used too.
11729 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11730 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11732 2001-08-01 Richard Henderson <rth@redhat.com>
11734 * read-rtl.c (read_name): Consider \r whitespace.
11736 2001-07-11 Andrew Cagney <ac131313@redhat.com>
11738 * config.gcc: Recognize powerpc-*-netbsd*.
11740 * doc/install.texi (Host/target specific installation notes for
11741 GCC): Mention powerpc-*-netbsd*.
11743 * config/rs6000/netbsd.h: New file.
11744 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11745 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11746 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11747 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11748 (TARGET_VERSION): Redefine.
11750 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11751 mcall-netbsd as a match for mcall-sysv.
11752 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11753 (ncrti.S, ncrtn.S): New targets.
11754 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11756 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11757 "netbsd' as a V4 ABI.
11758 (ASM_SPEC): Check for -mcall-netbsd.
11759 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11760 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11761 (LIB_SPEC, ENDFILE_SPEC): Ditto.
11762 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11763 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11764 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11765 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11767 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11768 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11770 2001-08-01 Mark Kettenis <kettenis@gnu.org>
11772 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11773 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11774 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11775 including "unwind-pe.h".
11777 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
11779 * rs6000.md (define_splits): Kill unused constraints.
11781 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
11782 Jan Hubicka <jh@suse.cz>
11784 * function.c (thread_prologue_and_epilogue_insns): Kill code
11785 dealing with non-existent CFG.
11787 2001-08-01 Kazu Hirata <kazu@hxi.com>
11789 * alias.c: Fix comment formatting.
11790 * bitmap.c: Likewise.
11791 * builtins.c: Likewise.
11792 * calls.c: Likewise.
11793 * c-common.c: Likewise.
11794 * c-decl.c: Likewise.
11795 * c-dump.c: Likewise.
11796 * c-lex.c: Likewise.
11797 * collect2.c: Likewise.
11798 * combine.c: Likewise.
11799 * conflict.c: Likewise.
11800 * cppfiles.c: Likewise.
11801 * cppinit.c: Likewise.
11802 * cpplex.c: Likewise.
11803 * cpplib.c: Likewise.
11804 * cppmacro.c: Likewise.
11805 * cppspec.c: Likewise.
11806 * c-pragma.c: Likewise.
11807 * crtstuff.c: Likewise.
11809 * cselib.c: Likewise.
11810 * c-semantics.c: Likewise.
11811 * c-typeck.c: Likewise.
11813 2001-08-01 H.J. Lu <hjl@gnu.org>
11815 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11817 2001-08-01 H.J. Lu <hjl@gnu.org>
11819 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
11821 2001-08-01 Ziemowit Laski <zlaski@apple.com>
11823 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
11824 contextualizing Objective-C class name lookup by the lexer.
11825 (typespec_reserved_nonattr): Disable ObjC class name lookup after
11827 (protocoldef): Add support for forward @protocol declarations.
11828 (yylexname): Suppress ObjC class name lookup in certain contexts;
11829 re-enable after lookup is complete.
11830 (_yylex): Re-enable ObjC class name lookup when certain
11831 punctuation marks are seen.
11833 * objc/objc-act.c (check_protocol_recursively): New function used
11834 for finding circular dependencies in protocols.
11835 (objc_declare_protocols): New function for handling forward
11836 @protocol declarations.
11837 (receiver_is_class_object): Detect the case when 'self' is used
11838 inside of a class method.
11839 (build_message_expr): Issue a warning if class method is desired
11840 but instance method is found instead.
11841 (conforms_to_protocol): Streamline.
11842 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
11843 protocol Foo, even if 'Bar foo' does not.
11844 (check_protocols): Streamline.
11845 (start_protocol): Add checks for circular and duplicate protocol
11847 (encode_aggregate_within): For typedefs of structs, encode the
11849 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
11850 (objc_declare_protocols): New prototype.
11852 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
11854 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
11855 * cpplex.c (handle_newline): Update prototype. Maintain logical
11857 (skip_escaped_newlines, skip_block_comment, parse_string):
11858 Update accordingly.
11859 (_cpp_lex_token): Update, and store token position within the token.
11860 * cpplib.h (struct cpp_token): Add line and column entries.
11861 * cppmacro.c (replace_args): Position stringified tokens correctly.
11863 2001-08-01 Andreas Jaeger <aj@suse.de>
11865 * basic-block.h: Add prototype for last_loop_beg_note.
11867 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
11869 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
11870 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
11872 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
11873 while handling WITH_CLEANUP_EXPR node. Use second operand calling
11874 expand_decl_cleanup.
11875 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
11877 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
11878 operand while calling simple_cst_equal.
11879 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
11880 operand is the cleanup expression, the third is the RTL_EXPR.
11881 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
11883 2001-07-31 Jeff Sturm <jsturm@one-point.com>
11885 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
11887 2001-07-31 matthew green <mrg@eterna.com.au>
11889 * config.gcc (i386-*-netbsdelf): New description.
11890 * config/i386/netbsd-elf.h: New file.
11892 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
11894 * loop.c (check_dbra_loop): Use single_set to compute
11897 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
11899 PowerPC reorg and support for powerpc64-*-linux*.
11901 Also fixes emitting of constants on 32 bit and 64 bit
11904 * config.gcc: powerpc64-*-linux* is a new target.
11905 Things that needed aix.h now also include xcoff.h
11907 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
11909 Move AIX specific stuff into aix.h.
11910 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
11911 with more than just XCOFF now.
11912 (SET_ASM_OP): Remove, now defined where needed.
11913 (FUNCTION_PROLOGUE): New macro definition.
11914 (FUNCTION_EPILOGUE): New macro definition.
11915 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
11917 * config/rs6000/xcoff.h: New file.
11919 * config/rs6000/linux64.h: New file.
11921 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
11923 2001-07-31 Alan Modra <amodra@bigpond.net.au>
11925 * rs6000.c (print_operand_address): Handle ELF syntax.
11926 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
11927 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
11928 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
11930 2001-07-31 David Edelsohn <edelsohn@gnu.org>
11932 * rs6000.c (rs6000_override_options): Only disable
11933 flag_function_sections for XCOFF.
11934 (exact_log2_cint_operand): New predicate.
11935 (reg_or_{add,sub}_cint64_operand): New predicates.
11936 (add_operand): Compare CONST_INT with fewer function calls.
11937 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
11938 (print_operand, case 'p'): Ensure positive operand.
11939 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
11940 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
11941 (PREDICATE_CODES): Add new predicates.
11942 * rs6000.md (addsi3): Split 32-bit constants more correctly.
11943 (divsi3, modsi3): Ensure positive power-of-2.
11944 (adddi3): Use new predicate. Split 32-bit constants more
11945 correctly. Re-arrange splitter to handle any constant.
11946 (subdi3): Use new predicate.
11947 (divdi3, moddi3): Ensure positive power-of-2.
11948 (movdi): Use rs6000_emit_set_const.
11949 (load_toc_v4_pic_di): Delete.
11951 2001-07-31 Graham Stott <grahams@redhat.com>
11953 * function.c (pad_below): Revert 2001-07-26 patch.
11955 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
11957 * reg-stack (convert_regs_1): Fix best edge condition.
11959 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
11961 * jump.c (duplicate_loop_exit_test): Better test for jumps
11962 entering the loop; create loop pre_header.
11964 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
11966 * doc/install.texi: Add s390 and s390x as new targets.
11967 * doc/invoke.texi: Add documentation of S/390 and zSeries
11969 * doc/md.texi: Add documentation of S/390 and zSeries constraints.
11971 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
11973 * config/m68k/m68k.md: Replace all general_operand with
11974 nonimmediate_operand for all destinations.
11975 * config/m68k/m68k.c (not_sp_operand): Likewise.
11977 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
11979 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
11981 2001-07-30 Richard Henderson <rth@redhat.com>
11983 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
11984 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
11986 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
11988 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
11989 Add missing doc strings
11990 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
11991 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
11993 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
11995 * i386.c (ix86_output_main_function_alignment_hack): New function.
11996 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
11998 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
11999 edges by EDGE_DFS_BACK flag.
12000 (dump_edge_info): Add dfs_back flag.
12001 * basic-block.h (EDGE_DFS_BACK): New constant.
12002 (mark_dfs_back_edges): Declare.
12003 * alias.c (loop_p): Remove.
12004 (mark_constant_function): Use mark_dfs_back_edges.
12006 * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12007 (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12008 (compensate_edge): Break out from ...
12009 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12010 (convert_regs_2): Set block_done once block is really done;
12011 Do updating of the predecessors counts.
12013 * toplev.c (rest_of_compilation): Recompute block_for_insn
12014 before post-reload cfg_cleanup.
12015 * function.c (thread_prologue_epilogue_insns):
12016 Call set_block_for_new_insns when emitting prologue directly.
12018 2001-07-30 Andreas Jaeger <aj@suse.de>
12020 * jump.c: Add prototype for mark_modified_reg.
12022 * cse.c (set_live_p): Add unused attribute.
12024 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12026 (scan_for_source_files): Use long for count to avoid overflow.
12027 (output_data): Likewise.
12028 (output_data): Don't use string concatatenation to silence gcc
12031 * predict.c: Fix typos and grammar.
12033 * gcse.c (insert_insn_end_bb): Remove unused variables.
12035 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
12037 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12038 (attempt_auto_inc): LIkewise.
12039 (mark_used_reg): Likewise.
12040 (try_pre_increment_1): Likewise.
12041 * regclass.c (regclass): Likewise.
12042 * global.c (allocno_compare): Update comment; change scaling factor.
12043 * local-alloc.c (QTY_CMP_PRI): Likewise.
12044 * regs.h (REG_FREQ_FROM_BB): New.
12045 (REG_FREQ_MAX): Likewise.
12047 2001-07-30 H.J. Lu <hjl@gnu.org>
12049 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12052 2001-07-30 H.J. Lu (hjl@gnu.org)
12054 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12055 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12056 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12058 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
12060 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12061 as -mthumb-interwork when -mcpu=arm7 is specified.
12063 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
12065 * predict.def (noreturn, loop branch, loop exit): Mark as first
12068 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
12070 * combine.c (try_combine): Avoid barrier after noop jumps.
12072 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12074 * cpphash.h (struct cpp_reader): Remove import_warning.
12075 * cpplib.c (skip_rest_of_line): Don't bother turning off
12077 (parse_include): Move include handling to...
12078 (do_include_common): ... here. Move import warning from...
12079 (do_import): ... here.
12080 (do_pragma_poison): Don't do a callback for poison identifiers.
12081 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12082 * cppmain.c (setup_callbacks): Similarly.
12084 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
12086 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12087 handle multiple sets.
12088 * except.c (sjlj_mark_call_sites): .... here.
12089 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12091 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
12093 Suggested by Richard Henderson and Richard Kenner:
12094 * combine.c (recog_for_combine): Use the fake recog
12095 only if instruction does not match.
12096 * rtl.h (NOOP_MOVE_INSN_CODE): New.
12097 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12099 * combine.c (try_combine): Discover noop jump as direct jump.
12101 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
12103 * df.c (df_rd_global_compute): Add successors to worklist, not
12105 (df_ru_global_compute): Ditto.
12107 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
12109 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12110 increment REG_N_SETS.
12112 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
12114 * sbitmap.h: New prototype for sbitmap_a_xor_b.
12116 * sbitmap.c (sbitmap_a_xor_b): New function.
12117 ifdef the basic block stuff on IN_GCC.
12119 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12121 * cppexp.c (parse_defined): Always record the macro name.
12122 (lex): Don't worry about identifiers, or special-case
12124 (_cpp_parse_expr): Figure out at the end of the routine
12125 whether we saw a valid !defined() expression.
12126 * cppfiles.c (stack_include_file): Update for mi_valid.
12127 (_cpp_pop_file_buffer): Similarly.
12128 * cpplex.c (_cpp_lex_token): Similarly.
12129 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12130 mi_if_not_defined, mi_lexed): Remove.
12132 * cpplib.c (do_if): Simplify.
12133 (do_endif, push_conditional, _cpp_handle_directive): Update
12134 for renaming of mi_state to mi_valid.
12136 * cpp.texi: Add index entries for digraphs, and add comment
12137 that C++ refers to them as alternative tokens.
12139 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
12141 * basic-block.h (CLEANUP_PRE_LOOP): New.
12142 * except.c (finish_eh_generation): Update call of cleanup_cfg.
12143 * sibcall.c (optimize_sibling_calls): Likewise.
12144 * toplev.c (rest_of_compilation): Likewise.
12145 * flow.c (try_forward_edges): Take argument MODE;
12146 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12147 (try_optimize_cfg): Update call of try_forward_edges.
12149 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
12150 Jan Hubicka <jh@suse.cz>
12152 * (validate_replace_rtx_1): Fix simplification of MINUS.
12154 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
12156 PR preprocessor/3669
12157 * cppinit.c (init_dependency_output): Turn off dump requests
12158 if sending dependencies to stdout.
12160 2001-07-28 Richard Henderson <rth@redhat.com>
12162 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12165 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
12167 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12169 2001-07-28 Kazu Hirata <kazu@hxi.com>
12171 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12172 is VAR_DECL first to prevent an ICE.
12174 2001-07-28 Richard Henderson <rth@redhat.com>
12176 * varasm.c (immed_real_const_1): Don't elide special cases for
12178 (clear_const_double_mem): Clear const_tiny_rtx too.
12180 2001-07-28 Richard Henderson <rth@redhat.com>
12182 * dwarf2out.c (dw_val_class_offset): New.
12183 (struct dw_ranges_struct, dw_ranges_ref): New.
12184 (ranges_table, ranges_table_allocated): New.
12185 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12186 (add_AT_offset, add_ranges, output_ranges): New.
12187 (print_die, output_die): Handle dw_val_class_offset.
12188 (attr_checksum, size_of_die, value_format): Likewise.
12189 (gen_lexical_block_die): Handle non-contiguous blocks.
12190 (gen_block_die): Likewise.
12191 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12192 if needed. Dump the ranges table.
12193 * final.c (final_start_function): Remove unnecessary notes and
12194 rebuild the block tree before numbering the blocks.
12195 * function.c (reorder_blocks_0): Walk the existing block tree
12196 to unmark all blocks.
12197 (reorder_blocks_1): Create block fragments when duplicate block
12199 (reorder_fix_fragments): New.
12200 (reorder_blocks): Call it.
12201 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12203 2001-07-28 Richard Henderson <rth@redhat.com>
12205 * emit-rtl.c (adjust_address): Make a copy of the memory address.
12207 2001-07-28 Richard Henderson <rth@redhat.com>
12209 * flow.c (add_to_mem_set_list): New function.
12210 (init_propagate_block_info): Use it.
12211 (mark_set_1): Likewise.
12212 (insn_dead_p): Canonicalize memory address for dead store
12213 comparison. Allow wider mode stores to kill narrower mode stores.
12214 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12215 (invalidate_mems_from_set): Don't handle MEMs.
12217 2001-07-28 Kazu Hirata <kazu@hxi.com>
12219 * config/h8300/h8300.h: Fix formatting.
12221 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12223 * basic-block.h (EDGE_FREQUENCY): New macro.
12224 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12226 * flow.c (find_sub_basic_blocks): Likewise.
12227 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12228 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12230 * predict.c (DEF_PREDICTOR): New argument FLAGS.
12231 (HITRATE): New macro.
12232 (PRED_FLAG_FIRST_MATCH): New constant.
12233 (predictor_info): New field flgags.
12234 (combine_predictions_for_insn): Use DS theory to combine
12235 probabilities; set the edge probabilities when finished.
12236 (estimate_probability): Avoid duplicated matches
12237 of LOOP_BRANCH heuristics for nested loops; update comment.
12238 * predict.def: Add flags for each prediction, set probabilities
12239 according to B&L paper.
12240 * predict.h (DEF_PREDICTOR): New argument FLAGS.
12242 * profile.c (compute_branch_probabilities): Cleanup way the edge
12243 probabilities are computed and REG_BR_PROB notes are dropped; if
12244 values does not match, emit error.
12245 (init_branch_prob): Do error instead of warning when profile driven
12246 feedback is missing or corrupt.
12248 2001-07-27 DJ Delorie <dj@redhat.com>
12250 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12251 against a constant, try to adjust the compare to have the desired
12252 constant in it so that min/max optimizations happen more often.
12254 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
12256 * flow.c (last_loop_beg_note): New function.
12257 (redirect_edge_and_branch): Use it.
12258 (split_edge): Likewise.
12260 * alias.c (loop_p): Avoid uninitialized memory access.
12262 * flow.c (try_forward_edges): Avoid accessing freed memory.
12264 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12267 2001-07-26 Andrew Haley <aph@redhat.com>
12268 Joern Rennecke <amylaar@redhat.com>
12270 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12271 (SUBTARGET_CPP_ENDIAN_SPEC): New.
12272 (SUBTARGET_CPP_SPEC): New.
12273 (CPP_SPEC): Remove.
12274 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12275 (SUBTARGET_CPP_PTR_SPEC): New.
12276 (CPP_DEFAULT_CPU_SPEC): New.
12277 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12278 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12279 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12280 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12281 (SUBTARGET_CPP_SPEC): Define as an empty string.
12283 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12285 * doc/install.texi (Configuration): Properly link the host
12286 specific instructions also when generating HTML.
12288 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
12290 * flow.c (redirect_edge_and_branch_force): Test
12291 target->global_live_at_start.
12293 2001-07-26 Richard Henderson <rth@redhat.com>
12295 * simplify-rtx.c (avoid_constant_pool_reference): Export.
12296 * rtl.h (avoid_constant_pool_reference): Declare it.
12297 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12298 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12300 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
12302 * rtl.h (cleanup_barriers): Declare.
12303 * jump.c (cleanup_barriers): New function.
12304 * toplev.c (rest_of_compilation): Call cleanup_barriers
12305 before loop optimizer and after bb_reorder.
12307 * flow.c (back_edge_of_syntactic_loop_p): New.
12308 (split_edge): Use it.
12310 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12312 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12314 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
12316 * cse.c (cse_process_notes): Replace any registers if the address
12319 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
12321 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12322 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12323 (propagate_block): Update prototype.
12324 * flow.c (update_life_info): Simplify the CFG and
12325 recalculate the global regs which are alive when
12326 removing dead code during a global update.
12327 (propagate_block): Return non-zero if an INSN is
12330 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12332 * Makefile.in (LIBICONV): Define.
12334 2001-07-26 Catherine Moore <clm@redhat.com>
12336 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
12337 of conditional to avoid tree checking errors.
12339 2001-07-26 Kazu Hirata <kazu@hxi.com>
12341 * regmove.c (regmove_optimize): Don't replace a reg with
12342 another reg of a different mode.
12344 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
12346 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
12347 limit length of dependency flush list.
12348 * params.h (MAX_PENDING_LIST_LENGTH): Define.
12349 * sched-int.h (struct deps): Add pending_flush_length field.
12350 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
12351 has 1 element in it.
12352 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
12353 (sched_analyze): After a jump, if the pending memory flush list is too
12354 large, flush the pending lists.
12355 (init_deps): Initialize pending_flush_length to 0.
12356 * doc/invoke.texi (max_pending_list_length): Document parameter.
12358 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
12360 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
12361 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
12362 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
12364 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12366 * cpphash.h (struct_lexer_state): Delete was_skipping.
12367 Move skipping here from struct cpp_reader.
12368 * cpplex.c (parse_identifier): Update.
12369 (_cpp_lex_token): Don't skip tokens in a directive.
12370 * cpplib.c (struct if_stack): Update.
12371 (start_directive, end_directive): Don't change skipping state.
12372 (_cpp_handle_directive): Update.
12373 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
12374 (do_else, do_endif): Update; only check for excess tokens if not
12375 in a skipped conditional block.
12376 (push_conditional): Update for new struct if_stack.
12378 2001-07-26 Graham Stott <grahams@redhat.com>
12380 * function.c (locate_and_pad_parm): Also pad initial offset
12381 so that the total argument size also includes the padding.
12383 2001-07-26 Graham Stott <grahams@redhat.com>
12385 * gensupport.c (alter_output_for_insn): Correct enable checking failure
12386 change XSTR to XTMPL.
12388 (process_one_cond_exec): Likewise
12390 2001-07-25 Richard Henderson <rth@redhat.com>
12392 * varasm.c (assemble_variable): Create DECL_RTL before setting
12395 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
12397 * predict.c (estimate_probability): Avoid duplicated predictions.
12399 * loop.c (find_and_verify_loops): Grok multiple barriers.
12401 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12403 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
12405 * dbxout.c: Consistently use putc instead of fputc.
12406 (print_wide_int): New function; call instead of direct fprintf.
12407 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12408 (dbxout_type_fields, dbxout_type_method_1): Likewise.
12409 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12410 (print_int_cst_octal): Likewise.
12411 (print_octal): Show we wrote characters.
12412 (dbxout_type): Set have_used_extensions in more places.
12414 2001-07-25 Catherine Moore <clm@redhat.com>
12416 * config/v850/v850.c (v850_va_arg): Use addr
12417 instead of valist to build incr.
12419 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
12421 * flow.c (delete_dead_jumptables): New function.
12422 (life_analyzis): Call it.
12423 * bb-reorder.c (skip_insns_after_block): Handle contradictory
12426 2001-07-25 Richard Henderson <rth@redhat.com>
12428 * except.c (reachable_handlers): Handle a region being removed
12429 out from under a RESX.
12431 2001-07-25 Richard Henderson <rth@redhat.com>
12433 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12434 swap GE/GT if it is an fp comparison.
12436 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
12438 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12441 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
12443 * ssa.c (rename_insn_1): Do not wrap an assignment to a
12444 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
12447 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12448 throw an exception.
12449 (visit_expression): When attempting to simplify an expression,
12450 retrieve any modes for arguments before they are simplified
12453 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
12454 Janis Johnson <janis@us.ibm.com>
12456 * stmt.c (expand_goto): A nonlocal goto can be a call too.
12457 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12458 pointer parameters to match documented usage of nonlocal_goto.
12459 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12460 parameters to their correct order.
12461 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12462 parameters to their correct order.
12464 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
12466 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12468 2001-07-25 Jan Hubicka <jh@suse.cz>
12469 Richard Henderson <rth@redhat.com>
12471 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12473 (make_edges): New argument update_p; populate the edge cache if set.
12474 (find_basic_blocks): Update make_edges invocation.
12476 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12478 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12480 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12482 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12483 -Acpu and -Amachine.h.
12484 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12485 Corrected header to say ELF not a.out.
12486 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12487 when given -msoft-float.
12489 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12491 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12492 extra multilib parts like arm-elf.
12493 (i960-*-coff*, i960-*-rtems): Should not use collect2.
12494 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12495 crtfini.o as extra multilib parts.
12497 2001-07-24 Joel Sherrill <joel@OARcorp.com>
12499 * configure.in: Add rtems as a supported thread model.
12500 * gthr-rtems.h: Add missing entry point __gthread_active_p.
12501 * configure: Rebuilt.
12503 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
12505 * stor-layout.c (get_mode_alignment): make it work when
12506 BITS_PER_UNIT is not a power of two.
12507 * builtins.c (get_pointer_alignment): Likewise.
12509 2001-07-24 Richard Henderson <rth@redhat.com>
12511 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12512 the retrieved constant into the expected mode.
12514 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
12516 * flow.c (try_simplify_condjump): Avoid duplicated edges.
12517 (verify_flow_info): Check for duplicated edges; clarify
12520 * flow.c (block_label): Update basic_block_for_insn.
12521 (commit_edge_insertions): Call compute_bb_for_insn.
12523 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12526 * flow.c (redirect_edge_and_branch,
12527 try_optimize_cfg): Use redirect_edge_succ_nodup
12528 (redirect_edge_succ_nodup): New.
12529 * basic_block.h (redirect_edge_succ_nodup): Declare.
12531 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12534 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
12536 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12537 (try_crossjump_to_edge): Update commetns.
12538 (try_crossjump_bb): Likewise.
12540 2001-07-24 Richard Henderson <rth@redhat.com>
12542 * combine.c (distribute_notes): Move set of need_refresh
12543 for noop_move_p down to catch all cases.
12545 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
12547 * recog.c (split_all_insns_noflow): New.
12548 * rtl.h (split_all_insns_noflow): Declare.
12549 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12550 * m68hc11.c (m68hc11_reorg): Likewise.
12551 * sh.c (machine_dependent_reorg): Likewise.
12552 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12555 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
12557 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12558 (ashlsi3_n splitter): Likewise.
12559 (lshrsi3_n splitter): Likewise.
12561 (GOTaddr2picreg): Make const SImode.
12562 (sym_label2reg): Likewise.
12563 (symGOT2reg): Likewise.
12564 (symGOTOFF2reg) Likewise.
12566 (casesi_worker_0): Make unspec SImode.
12568 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
12570 * config/sh/sh.c (barrier_align): Check that an operand really is
12571 an insn before extracting its INSN_CODE.
12573 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
12575 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12578 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12579 for SImode to prevent overflow.
12581 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12583 * config/mips/irix6-libc-compat.c: New file.
12584 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12585 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12586 passing workaround.
12588 2001-07-24 lars brinkhoff <lars@nocrew.org>
12590 * rtl.texi (REG_POINTER): Document.
12591 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12592 QFmode, HFmode, TQFmode, QCmode, and HCmode.
12594 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
12596 * flow.c (delete_noop_moves): Do not confuse libcall regions.
12598 2001-07-23 Richard Henderson <rth@redhat.com>
12600 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12602 2001-07-23 Kazu Hirata <kazu@hxi.com>
12604 * config/h8300/h8300-protos.h: Add a prototype for
12605 general_operand_dst_push.
12606 * config/h8300/h8300.c (general_operand_dst_push): New.
12607 * config/h8300/h8300.h (OK_FOR_T): New.
12608 (EXTRA_CONSTRAINT): Use it.
12609 * config/h8300/h8300.md (movqi_push): Remove and integrate into
12610 the existing movqi pattern.
12611 (movhi_push): Likewise.
12613 * reload.c: Fix comment typos.
12615 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
12617 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12619 2001-07-23 H.J. Lu (hjl@gnu.org)
12621 * doc/extend.texi: Update __builtin_return_address and
12622 __builtin_frame_address.
12624 2001-07-23 Richard Henderson <rth@redhat.com>
12626 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12628 * config/i386/i386.md: New setcc+movzbl peephole2.
12630 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12632 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12633 * objc/objc-act.c: Include debug.h.
12634 (synth_module_prologue): Save and restore debug hooks too.
12636 2001-07-23 lars brinkhoff <lars@nocrew.org>
12638 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12639 and C4X_FLOAT_FORMAT.
12640 (BOOL_TYPE_SIZE): Document.
12642 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
12644 * unroll.c (loop_iterations): Fix miscalculation of initial
12647 2001-07-13 Andrew Haley <aph@redhat.com>
12649 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12650 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12651 * config/sh/sh.c (sh_can_redirect_branch): New function.
12652 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12653 * reorg.c (steal_delay_list_from_target): Use
12654 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12656 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
12658 * flow.c (try_simplify_condjump): Unlink insn chain on
12659 fallthru edge; use can_fallthru.
12661 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
12663 * basic-block.h (find_sub_basic_block): Declare.
12664 * flow.c (make_edges): New arguments MIN and MAX;
12665 (find_sub_basic_blocks): Revamp to use make_edges
12666 and purge_dead_edges.
12667 (find_basic_blocks): Update call of find_sub_basic_block.
12669 * recog.c (split_all_insns): Always expect CFG to be consistent;
12670 call find_sub_basic_blocks in case something has changed.
12671 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12674 * basic-block.h (delete_noop_moves): Declare.
12675 * combine.c (combine_instructions): Call it.
12676 (recog_for_combine): Tolerate noop moves
12677 (distribute_notes): Force refresh when register dies at noop move.
12678 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12680 (life_analysis): Update delete_noop_moves call.
12681 (set_noop_p): Move too ...
12682 * rtlanal.c (noop_move_p): ... here.
12683 * rtl.h (noop_move_p): Declare.
12685 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12686 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12688 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12689 (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12691 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
12693 * reload.c (push_reload): Fix typo in comment.
12694 (find_reloads_address): Ditto.
12695 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12697 2001-07-22 Richard Henderson <rth@redhat.com>
12699 * flow.c: Grammar check and clarify a lot of comments.
12700 (try_simplify_condjump): Rename variables to be clearer.
12701 (try_forward_edges): Skip complex and fallthru edges.
12702 Rearrange tests to avoid duplicate checks.
12703 (flow_find_cross_jump): Likewise.
12704 (outgoing_edges_match): Allow match if neither branch has
12705 probability data. Loosen probability match to 5%.
12706 (try_crossjump_to_edge): Hoist repeated indirection into
12708 (try_crossjump_bb): Don't check complex edges. Eliminate
12709 redundant crossjump tests.
12710 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
12711 checks before more expensive checks.
12713 2001-07-22 Richard Henderson <rth@redhat.com>
12715 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12716 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12719 2001-07-22 Richard Henderson <rth@redhat.com>
12721 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12722 (const_sint32_operand): Likewise.
12723 * m68k.md (anon mulsi pattern): Use const_int_operand not
12724 const_sint32_operand.
12725 (umulsi3_highpart): Zero extend a constant input.
12726 (smulsi3_highpart): Don't bother checking SImode constant.
12727 (const_umulsi3_highpart): Give op3 DImode.
12728 (const_smulsi3_highpart): Likewise.
12730 2001-07-22 Richard Henderson <rth@redhat.com>
12732 * flow.c (split_block): Make sure bb_note is included in the
12733 new block when splitting before a label.
12735 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
12737 * basic-block.h (redirect_edge_and_branch_force,
12738 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12739 * flow.c (redirect_edge_and_branch_force,
12740 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12741 (redirect_edge_and_branch_force): Fix copying of lifeness information.
12742 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12743 * ifcvt.c (dead_or_predictable): Take BB as an new destination
12744 instead of label; update CFG after transformation.
12745 (find_if_case_1): Update call, use redirect_edge_and_branch_force
12746 for finishing the transformation; handle even case where ELSE
12747 does not follow THEN.
12748 (find_if_case_2): Update call of dead_or_predictable; simplify
12751 * emit-rtl.c (split_branch_probability): New global variable.
12752 (try_split): Take care to set split_branch_probability and
12753 create REG_BR_PROB note for new jump insns.
12754 * md.texi (define_split): Document new feature.
12756 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12758 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
12760 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12761 (asm_out_file): Remove redundant declaration.
12762 (assemble_asm): Remove old #if 0 block.
12763 (assemble_variable): Remove end of function; debug output is
12764 now handled with global_decl. Remove old #if 0 block. Update.
12765 Remove saved_in_section and associated no-op code.
12766 * Makefile.in (varasm.o): Correct dependencies.
12768 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
12770 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12771 the definition in defaults.h.
12773 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
12775 * jump.c: Update comments.
12776 (delete_barrier_successors, delete_unreferenced_labels,
12777 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12778 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12779 jump_optimize, jump_optimize_minimal): Kill.
12780 (rebuild_jump_labels): Move code from jump_optimize_1.
12781 (purge_line_number_notes): Likewise.
12782 (copy_loop_headers): Likewise.
12783 * reg-stack.c: Update comment.
12784 * stmt.c: Likewise.
12785 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12786 JUMP_AFTER_REGSCAN): Kill.
12787 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12788 purge_line_number_notes and copy_loop_headers.
12790 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
12791 Richard Henderson <rth@redhat.com>
12793 * dbxout.c (dbxout_global_decl): New.
12794 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12795 * sdbout.c (sdbout_finish): New.
12796 (sdbout_debug_hooks): Use it, add comments.
12797 (sdbout_global_decl): Defer initialised public vars to
12799 * varasm.c (assemble_variable): Don't output debug information
12800 for file-scope variables.
12802 2001-07-22 Richard Henderson <rth@redhat.com>
12804 * config/alpha/alpha.c (get_trap_mode_suffix): New.
12805 (get_round_mode_suffix): New.
12806 (print_operand): Use them for [/]. Remove support for [&'`()+].
12807 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12808 * config/alpha/alpha.md (attr round_suffix): New.
12809 (attr trap_suffix): New.
12810 (all insns): Set them appropriately. Use %/ instead of the
12811 myriad punctuators.
12813 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12815 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12817 2001-07-22 Richard Henderson <rth@redhat.com>
12819 * regrename.c (regrename_optimize): Compute nregs for each
12820 potential target register.
12822 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
12823 Richard Henderson <rth@redhat.com>
12825 * dbxout.c (dbxout_global_decl): New.
12826 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12827 * sdbout.c (sdbout_finish): New.
12828 (sdbout_debug_hooks): Use it, add comments.
12829 (sdbout_global_decl): Defer initialised public vars to
12831 * varasm.c (assemble_variable): Don't output debug information
12832 for file-scope variables.
12834 2001-07-21 H.J. Lu (hjl@gnu.org)
12836 * config/mips/mips.c (mips_cpu): Moved into ...
12837 (override_options): Here.
12839 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
12841 (mips_cpu): Removed.
12843 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12845 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
12846 ("iorqi3"): Likewise.
12847 ("xorqi3"): Likewise.
12848 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
12849 ("*subhi3_sp): Likewise.
12850 ("*subhi3"): Likewise.
12851 ("extendhisi2"): Accept D, X and Y as source operand to avoid
12854 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
12856 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
12857 * config/freebsd.h: Likewise.
12858 * config/linux.h: Likewise.
12859 * config/openbsd.h: Likewise.
12860 * config/alpha/linux-elf.h: Likewise.
12861 * config/arm/linux-elf.h: Likewise.
12862 * config/d30v/d30v.h: Likewise.
12863 * config/fr30/fr30.h: Likewise.
12864 * config/ia64/aix.h: Likewise.
12865 * config/ia64/ia64.h: Likewise.
12866 * config/mips/linux.h: Likewise.
12867 * config/pj/pj.h: Likewise.
12868 * config/rs6000/linux.h: Likewise.
12869 * config/sparc/linux.h: Likewise.
12870 * config/sparc/linux64.h: Likewise.
12872 2001-07-20 Bruce Korb <bkorb@gnu.org>
12874 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
12875 because getc() and char* may disagree on signedness.
12877 2001-07-20 Richard Henderson <rth@redhat.com>
12879 * doc/rtl.texi (REG_DEAD): Update for current semantics.
12881 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
12882 insns to delete in the presence of cc0 in a jump insn.
12884 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
12885 Jan Hubicka <jh@suse.cz>
12887 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
12888 of doing the change by hand.
12890 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
12892 * rtlanal.c (set_noop_p): Return true for noop jumps.
12894 * expr.c (emit_single_push_insn): Add call to push expander.
12895 * expr.h (optab_index): Add OTI_push
12896 (push_optab): New constant.
12897 * genopinit.c (optabs): Add push_optab.
12898 * optabs.c (init_optab): Init push optab.
12899 * md.texi (push??1): Document
12901 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12903 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
12904 expand to emit the pattern; put a REG_INC note for push/pop
12906 ("movdf", "movdf_internal"): Likewise.
12907 ("movsi", "movsi_internal"): Likewise.
12908 ("movsf", "movsf_internal"): Likewise.
12909 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
12911 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12913 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
12916 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
12918 * params.def: Change default max inline insns to 100.
12920 2001-07-20 Diego Novillo <dnovillo@redhat.com>
12922 * combine.c (combine_simplify_rtx): Generate a new shift operation
12923 when simplifying the first operand of a (neg (ashift)) expression.
12925 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
12927 * regclass.c (N_REG_INTS): Use only 32 bits per element.
12929 2001-07-20 Kelley Cook <kelley.cook@home.com>
12931 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
12932 information. Move rest into ...
12933 (*-*-solaris): ... here. Eliminate redundant information and
12934 reword necessary packages section. Delete 4.x assembler bug info.
12935 (sparc-sun-*): Merge into ...
12936 (sparc-sun-sunos*): here.
12938 2001-07-20 Catherine Moore <clm@redhat.com>
12940 * config/v850/v850.md (casesi): Generate LABEL_REF
12943 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
12945 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
12946 * i386.c (ix86_zero_extend_to_Pmode): Make global.
12947 * i386.md (strclrsi expander): Use it.
12949 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
12951 * integrate.c (copy_insn_list): handle
12952 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
12953 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
12954 identically as to CODE_LABEL.
12956 * fold-const (fold): Convert A/B/C to A/(B*C) and
12959 * except.c (connect_post_landing_pads): Delete the RESX insns.
12961 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
12963 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
12965 * config/mips/mips.md (nmadd/nmsub): Use macro.
12967 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
12969 * cppinit.c (remove_dup_dir): Make static.
12970 (remove_dup_dirs): Make static. Only warn about preempting a
12971 system directory with a non-system directory.
12973 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
12975 * ifcvt.c (noce_try_store_flag_constants): Correct order
12976 of parameters to trunc_int_for_mode.
12978 2001-07-19 Mark Mitchell <mark@codesourcery.com>
12980 * reorg.c (fill_simple_delay_slots): If an instruction might throw
12981 an exception that will be caught within this function, do not fill
12982 its delay slot with any subsequent instruction.
12984 2001-07-19 Steve Ellcey <sje@cup.hp.com>
12986 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
12987 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
12988 pointer extension instruction.
12989 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
12990 * simplify-rtx.c (simplify_unary_operation) Likewise.
12991 * explow.c (convert_memory_address) Check value of
12992 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
12994 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
12995 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
12996 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
12997 Add Multilib Support.
12998 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
12999 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13000 Add Multilib Support.
13001 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13003 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13004 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13005 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13007 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
13009 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13010 old and new operands in `<', `3' and `b'.
13012 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13014 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13015 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13016 (toplev.o): Don't depend on xcoffout.h.
13017 * c-decl.c: Include debug.h
13018 (duplicate_decls): Use debug hook.
13019 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13020 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13021 (dbxout_types): Remove.
13022 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13023 * debug.c (do_nothing_debug_hooks): Update.
13024 (debug_true_tree, debug_nothing_rtx): New.
13025 * debug.h (struct rtx_def): New.
13026 (struct gcc_debug_hooks): New hooks ignore_block,
13027 outlining_inline_function and label.
13028 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13029 dwarf2out_frame_finish): New.
13030 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13031 Make static, update prototype.
13032 (dwarf2_debug_hooks): Update.
13033 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13034 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13035 * dwarfout.c (dwarf_debug_hooks): Update.
13036 * emit-rtl.c: Include debug.h.
13037 (remove_unnecessary_notes): Use debug hook.
13038 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13039 (final_scan_insn): Use debug hook.
13040 * integrate.c (output_inline_function): Use debug hook.
13041 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13042 (sdb_debug_hooks): Update.
13043 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13044 * toplev.c: Don't include xcoffout.h.
13045 (note_outlining_of_inline_function, debug_ignore_block): Remove.
13046 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13048 * tree.h (dwarf2out_do_frame): Remove.
13050 2001-07-19 Catherine Moore <clm@cygnus.com>
13052 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13054 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
13056 * reload1.c (eliminate_regs_in_insn): When updating a set
13057 to the frame pointer to the hardware frame pointer, perform
13058 the update always not just when REPLACE is set.
13060 * reload1.c (choose_reload_regs): Don't inherit a reload
13061 that crosses multiple registers if registers past the first
13062 don't fit in the desired class.
13064 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13065 when negating constants.
13067 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
13069 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13070 * doc/tree.texi: Ditto.
13072 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
13073 Jakub Jelinek <jakub@redhat.com>
13075 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13076 (extract_cie_info): Handle "eh" augmentation properly,
13078 (struct frame_state, __frame_state_for): New.
13080 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13082 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13083 HANDLE_SYSV_PRAGMA): Define.
13084 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13086 (copy_object): Caller changed.
13088 2001-07-19 Andreas Schwab <schwab@suse.de>
13090 * configure.in (assembler dwarf2 debug_line support): Define nop
13092 * configure: Regenerated.
13094 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13096 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13098 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13099 to conditionally compiled block.
13100 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13101 * dbxout.h (dbxout_function): Remove.
13102 * debug.c (do_nothing_debug_hooks): Update.
13103 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13104 global_decl, deferred_inline_function.
13105 * dwarf2out.c (dwarf2_debug_hooks): Update.
13106 (dwarf2out_global_decl): New.
13107 * dwarfout.c: Don't include dwarfout.h.
13108 (dwarfout_global_decl, dwarfout_function_decl,
13109 dwarfout_deferred_inline_function): New.
13110 (dwarf_debug_hooks): Update.
13111 * dwarfout.h: Remove.
13112 * final.c: Don't include dwarfout.h.
13113 * sdbout.c (sdbout_global_decl): New.
13114 (sdbout_debug_hooks): Update.
13115 * toplev.c: Don't include dwarfout.h.
13116 (check_global_declarations, rest_of_compilation): Use new debug hooks.
13117 (note_deferral_of_defined_inline_function): Remove.
13118 * toplev.h (note_deferral_of_defined_inline_function): Remove.
13119 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13120 * ch/lex.c: Don't include dwarfout.h.
13121 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13122 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13123 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13124 * cp/optimize.c: Include debug.h.
13125 (maybe_clone_body): Use debug hook.
13126 * cp/semantics.c: Include debug.h.
13127 (expand_body): Use debug hook.
13128 * po/POTFILES.in: Remove dwarfout.h.
13130 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
13132 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13133 * c-parse.in (yyerror, _yylex): Similarly.
13134 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13135 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13137 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13138 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13140 2001-07-18 Jeff Sturm <jsturm@one-point.com>
13142 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13143 in-class declaration at -g1. Fixes c++/2814.
13145 2001-07-18 Richard Henderson <rth@redhat.com>
13147 * doc/md.texi (reload_in/out): Document restrictions in predicates
13148 and constraints for these patterns. Document empty string matching
13151 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13153 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13155 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
13157 * cse.c: Undo my previous patch.
13159 2001-07-18 Tom Tromey <tromey@redhat.com>
13162 * configure: Rebuilt.
13163 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13165 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13167 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
13168 Jan Hubicka <jh@suse.cz>
13170 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13171 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13172 * jump.c (mark_jump_label): Do not forward branches.
13174 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
13176 * cse.c (delete_trivially_dead_insns): Delete the libcall block
13177 when return value is unused.
13179 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13181 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13183 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
13185 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13186 on error. We can't blindly return the result of
13187 pthread_mutex_trylock because it returns a positive number on
13188 error, while we must return -1 on error.
13189 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13191 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13193 2001-07-18 Andreas Jaeger <aj@suse.de>
13195 * integrate.c (output_inline_function): Correct type of debug_hooks.
13197 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
13199 * combine.c (combine_simplify_rtx): DIV can be treated
13200 associatively for floats if unsafe math optimisations are enabled.
13202 2001-07-17 Richard Henderson <rth@redhat.com>
13204 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13206 2001-07-17 Richard Henderson <rth@redhat.com>
13208 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
13209 don't force the function address into a register.
13210 (expand_call, emit_library_call_value_1): Update callers.
13211 * builtins.c (expand_builtin_apply): Likewise.
13212 * expr.h (prepare_call_address): Update decl.
13214 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
13216 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13218 * config/i386/chorus.h: Move up.
13219 * config/sparc/chorus.h: Likewise.
13220 * config/rs6000/chorus.h: Likewise.
13221 * config/chorus.h: Moved here.
13223 2001-07-17 Andreas Schwab <schwab@suse.de>
13225 * configure.in (assembler eh_frame optimization): Handle big
13227 * configure: Regenerated.
13229 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
13231 * expr.c (epxand_expr): Convert divisions into multiplications by
13232 reciprocals if -ffast-math.
13234 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
13236 * dbxout.c (dbxout_really_begin_function): Rename to
13237 dbxout_begin_function.
13238 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13239 (dbxout_begin_function): Remove.
13240 (dbxout_function): Update.
13241 (dbxout_source_line): Update prototype.
13242 * dbxout.h (dbxout_begin_function): Remove.
13243 * debug.c (do_nothing_debug_hooks): Update.
13244 (debug_nothing_tree): Update.
13245 (debug_nothing_charstar_rtx): Remove.
13246 * debug.h (union tree_node): Declare.
13247 (struct rtx_def): Remove.
13248 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13249 begin_function. Change source_line prototype.
13250 (debug_nothing_tree): New.
13251 (debug_nothing_charstar_rtx): Delete.
13252 (dwarf2out_begin_prologue): Moved from ...
13253 * tree.h: ... here.
13254 * dwarf2out.c (dwarf2_debug_hooks): Update.
13255 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
13256 debug info, call dwarf2out_source_line.
13257 (dwarf2out_souce_line): Update prototype.
13258 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13259 Change prototype, make static.
13260 (dwarfout_source_line): Update prototype.
13261 (dwarf_debug_hooks): Update.
13262 * dwarfout.h (dwarfout_begin_function): Remove.
13263 * final.c (final_start_function, final_scan_insn): Use appropriate
13264 debug hooks, update to use notice_source_line.
13265 (output_source_line): Rename notice_source_line. Don't call the
13266 source_line debug hook.
13267 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13268 make static, update prototype.
13269 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13271 (sdbout_end_prologue): New.
13272 (sdbout_source_line): Update prototype.
13273 (sdbout_debug_hooks): Update.
13274 (sdbout_symbol): Remove unused var.
13275 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13277 * varasm.c: Include debug.h.
13278 (assemble_start_function): Use begin_function debug_hook.
13279 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13280 update with prototype.
13281 (xcoffout_source_line): Update prototype.
13282 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13284 (xcoffout_source_line): Update prototype.
13286 2001-07-17 Richard Henderson <rth@redhat.com>
13288 * c-typeck.c (build_binary_op): Do not shorten unsigned
13289 right shift after sign extension.
13291 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
13293 * combine.c (combine_simplify_rtx): Attempt to simplify
13294 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13296 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13297 (simplify_binary_operation, simplify_unary_operation,
13298 simplify_relational_operation): Use it.
13300 * combine.c (combine_simplify_rtx): Don't do associative law
13301 on divisions; allow associative law on floats.
13303 2001-07-17 H.J. Lu <hjl@gnu.org>
13304 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13306 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13307 ASM_OUTPUT_WEAK_ALIAS are defined.
13308 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13309 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13311 * config/mips/iris5.h: ... here.
13312 (HANDLE_SYSV_PRAGMA): Defined as 1.
13313 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13314 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13317 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
13319 * c-parse.in (all_prefix_attributes): New variable.
13320 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13321 (maybe_resetattrs): New production.
13322 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13323 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13324 notype_initdcl, nested_function, notype_nested_function,
13325 component_decl, components, components_notype,
13326 component_declarator, component_notype_declarator,
13327 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
13328 ivars, mydecl, myparm): Update. Avoid prefix attributes just
13329 after a comma being applied to more than one declarator.
13330 * doc/extend.texi (Attribute Syntax): Update. Remove
13331 documentation of bugs that are no longer present.
13333 2001-07-13 Eric Christopher <echristo@redhat.com>
13335 * config/mips/mips.h: Change TUNE_MIPS* options to use
13337 (EXTRA_SPECS): Add cc1_cpu_spec.
13338 * config/mips/mips.md (muldf3): Fix typo.
13340 2001-07-16 Richard Henderson <rth@redhat.com>
13342 * config/m68k/m68k.c: Include expr.h and reload.h.
13343 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
13344 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
13346 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
13347 Richard Henderson <rth@redhat.com>
13349 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
13350 (insn_live_p): Fix fall off end of function.
13351 (dead_libcall_p): Remove COUNTS argument; update callers.
13352 (delete_trivially_dead_insns): Remove unused variables.
13354 2001-07-17 Andreas Jaeger <aj@suse.de>
13356 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
13357 x86-64 pic support.
13359 * lcm.c (optimize_mode_switching): Avoid warning for unused
13360 variable if !NORMAL_MODE.
13362 * flow.c (try_crossjump_to_edge): Remove unused variable.
13364 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13366 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
13367 atexit declaration in stdlib.h.
13369 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
13371 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
13373 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
13375 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
13376 * except.c (finish_eh_generation): Update call of cleanup_cfg;
13377 do rebuild_jump_labels instead of jump_optimize
13378 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
13379 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
13380 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
13382 * flow.c: Include timevar.h
13383 (find_basic_block): Push/pop timevar;
13384 (cleanup_cfg): Likewise.
13385 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
13386 * Makefile: Add dependencies on timevar.h
13388 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
13389 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
13391 * rtl.h (delete_trivially_dead_insns): Add new parameter.
13392 * toplev.c (rest_of_compilation): Update calls.
13393 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
13394 (delete_trivially_dead_insns): ... here; accept new argument
13395 preserve_basic_blocks; preserve basic blocks if set.
13397 * reg-stack.c (stack_regs_mentioned): Return 0 if
13398 stack_regs_mentioned_data is not initialized.
13399 (reg_to_stack): Make stack_regs_mentioned survive after the
13400 reg-stack is completted; do not call cleanup_cfg.
13401 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
13402 make cleanup_cfg after bb-reorder to output to debug file.
13404 2001-07-16 Richard Henderson <rth@redhat.com>
13406 * regclass.c (init_reg_sets): Use only 32 bits per initializer
13407 from int_reg_class_contents.
13409 2001-07-16 Richard Henderson <rth@redhat.com>
13411 * hard-reg-set.h (regs_invalidated_by_call): Declare.
13412 * regclass.c (regs_invalidated_by_call): Move from cse.c.
13413 (init_reg_sets_1): Move initialization from cse_main.
13414 * cse.c (regs_invalidated_by_call): Move to regclass.c.
13415 (cse_main): Move its initialization also.
13416 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13417 * flow.c (propagate_one_insn): Likewise.
13418 * gcse.c (compute_hash_table): Likewise.
13419 (compute_kill_rd, compute_store_table): Likewise.
13420 * sched-deps.c (sched_analyze_1): Likewise.
13422 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
13424 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13427 2001-07-16 Steve Ellcey <sje@cup.hp.com>
13429 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13430 in if statement so we don't access undefined memory.
13432 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
13434 * gcse.c: Update comment at top.
13435 Update comment on mem handling.
13436 mem_last_set, mem_first_set, mem_set_in_block: gone.
13437 Declaration of reg_set_info: gone.
13438 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13439 pointless with load_killed_in_block_p (they are *more*
13440 conservative then it, not less, and less accurate).
13441 (oprs_not_set_p): Ditto.
13442 (alloc_gcse_mem): Don't allocate mem_set_in_block
13443 (free_gcse_mem): Don't free it, either.
13444 (record_last_mem_set_info): Update comment in front, remove
13445 mem_*set_* stuff. Note the reason we don't handle stores directly
13447 (compute_hash_table): Update comments to reflect reality. Remove
13448 mem_*set_* references.
13449 (reset_opr_set_tables): Remove mem_*set_* references.
13450 (mark_call): Ditto.
13451 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
13452 (mark_clobber): Ditto (on both parts, we double set here too).
13453 (expr_killed_p): Remove mem_set_in_block test.
13454 (compute_transp): Remove mem_set_in_block test.
13456 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13457 of edge, and removal of phi alternative to dump file.
13458 (ssa_ccp_substitute_constants): Add note about register now being
13459 constant, and which uses were replaced in what insns to dump file.
13461 2001-07-16 Andreas Jaeger <aj@suse.de>
13463 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13464 variables of type HOST_WIDEST_INT.
13466 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13467 (__bb_exit_func): Correct type of count_max to avoid overflow.
13468 (num_digits): Handle long long argument.
13470 * combine.c (gen_lowpart_for_combine): Remove unused variable.
13472 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13474 * output.h (sdb_begin_function_line): Restore as an extern
13476 * sdbout.c (sdb_begin_function_line): Make extern.
13478 2001-07-15 Richard Henderson <rth@redhat.com>
13480 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13481 * genrecog.c (maybe_both_true_mode): New.
13482 (maybe_both_true_2): Use it.
13483 (write_switch): Don't put Pmode in a switch.
13484 * rtl.c (mode arrays): Don't explicitly size them.
13486 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
13488 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13489 handling; move unconditional splitting before mode switching.
13491 * i386.md (type): Add fistp type.
13492 (i387, length_attr, scheduling definitions): Handle this type.
13493 (fix_trunc?f?i2): Revamp to use mode switching.
13494 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13495 * i386.h (fp_cw_mode): New enum
13496 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13497 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13499 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13501 * Makefile.in (integrate.o): Add debug.h.
13502 * integrate.c (debug.h): Add.
13503 (output_inline_function): Save, reset, and restore debug_hooks.
13505 2001-07-15 Richard Henderson <rth@redhat.com>
13507 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13508 instead of COMPARE for the EQUIV expression.
13510 2001-07-15 Richard Henderson <rth@redhat.com>
13512 * flow.c (redirect_edge_and_branch_force): Initialize
13513 global_live_at_start and global_live_at_end.
13514 (allocate_bb_life_data): Export.
13515 * basic-block.h (allocate_bb_life_data): Declare.
13516 * toplev.c (rest_of_compilation): Call it.
13518 2001-07-15 Richard Henderson <rth@redhat.com>
13520 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13521 (alpha_tablejump_best_label): New.
13522 * config/alpha/alpha-protos.h: Declare them.
13523 * config/alpha/alpha.md: Use braced strings for code blocks.
13524 (tablejump_osf): Break out add with r29.
13525 (tablejump_osf_internal): Remove.
13526 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13527 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13529 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
13531 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13534 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13536 * i386-protos.h (ix86_split_fp_branch): Update prototype.
13537 (ix86_fp_jump_nontrivial_p): New.
13538 * i386.md (fp_jcc_?): Update call of split_fp_branch;
13539 use ix86_fp_jump_nontrivial_p.
13540 * i386.c (ix86_fp_jump_nontrivial_p): New.
13541 (ix86_split_fp_branch): Accept code instead of rtx.
13542 (ix86_expand_compare): Expand comparison early in case
13543 doing so is resonably cheap.
13545 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
13547 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13549 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13550 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13552 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
13554 * dbxout.c (dbxout_source_line): Make static, update prototype.
13555 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13556 (dbxout_init, dbxout_finish, dbxout_source_line,
13557 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13558 * dbxout.h (dbxout_source_line): Delete.
13559 * debug.c (debug_nothing_file, debug_nothing_file_int,
13560 debug_nothing_file_charstar_rtx): New.
13561 (do_nothing_debug_hooks): Update.
13562 (debug_nothing_void, debug_nothing_charstar_rtx,
13563 dwarf2out_end_epilogue): New.
13564 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13565 * debug.h (struct rtx_def): Declare.
13566 (gcc_debug_hooks): New hooks source_line, end_epilogue
13568 (debug_nothing_void, debug_nothing_charstar_rtx,
13569 dwarf2out_end_epilogue): New.
13570 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13571 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13572 (dwarf2_debug_hooks): Update.
13573 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13574 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13575 * dwarf2out.h (dwarf2out_source_line): Remove.
13576 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13577 Make static, update prototype.
13578 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13579 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13580 (dwarf_debug_hooks): Update.
13581 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13582 dwarfout_end_function): Remove.
13583 * final.c (profile_function): Use debug hooks for ending functions
13585 (output_source_line, final_end_function): Update prototype,
13587 (final_start_function, final_scan_insn): Update.
13588 * output.h (sdb_begin_function_line): Remove.
13589 (final_end_function): Update prototype.
13590 * sdbout.c (sdb_begin_function_line): Make static.
13591 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13592 (sdbout_source_line): New.
13593 (sdbout_end_epilogue, sdbout_end_function): Make static, update
13595 (sdb_debug_hooks): Update.
13596 (sdbout_init, sdbout_source_line,
13597 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13598 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13599 * toplev.c (compile_file, rest_of_compilation): Update.
13600 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13601 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13602 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13603 Update for prototype changes.
13604 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13605 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13607 2001-07-15 Richard Henderson <rth@redhat.com>
13609 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13610 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13611 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13612 * config/alpha/alpha.c: Likewise.
13613 * config/alpha/alpha.md: Likewise.
13614 * config/alpha/alpha32.h: Likewise.
13615 * config/alpha/vms.h: Likewise.
13616 (OPEN_VMS): Remove.
13618 2001-07-14 Richard Henderson <rth@redhat.com>
13620 * config/alpha/alpha.md: Use define_constants for unspec values.
13621 Substitute throughout.
13623 2001-07-14 Tim Josling <tej@melbpc.org.au>
13625 * tree.def (EXPON_EXPR) remove. Never supported anyway.
13627 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
13629 * pa.md: Remove unused constraints from define_split's.
13631 2001-04-14 Richard Henderson <rth@redhat.com>
13633 * ifcvt.c (find_cond_trap): Test for exit block.
13635 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
13637 Re-install recently reverted patch.
13638 * emit-rtl.c (try_split): Update mark_jump_label call.
13639 * flow.c (find_sub_basic_blocks): Likewise.
13640 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13641 jump_back_p): Kill.
13642 (mark_all_labels): Kill second parameter.
13643 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13644 (rebuild_jump_labels, jump_optimize_minimal): Update call
13645 of jump_optimize_1.
13646 (jump_optimize_1): Kill crossjumping code.
13647 (mark_jump_label): Kill cross_jump parameter.
13648 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13649 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13650 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13652 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13654 (dump_file_info): Likewise.
13655 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13656 reorganize passes to do reg-stack first, bb-reorder second.
13657 * invoke.texi (-d letters doc): Remove the jump2 pass.
13659 2001-07-14 Richard Henderson <rth@redhat.com>
13661 * ifcvt.c (find_cond_trap): New.
13662 (find_if_header): Call it.
13663 (merge_if_block): Relax existing jump sanity check.
13664 * jump.c (jump_optimize_1): Remove conditional trap handling.
13666 2001-07-14 Alan Modra <amodra@bigpond.net.au>
13668 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13670 (insn_refs_are_delayed): Correct comment.
13671 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13672 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13673 instead of r31. Make associated insn !TARGET_64BIT, and
13674 provide an additional 64-bit insn that clobbers r2.
13675 (divsi3): Likewise.
13676 (udivsi3): Likewise.
13677 (modsi3): Likewise.
13678 (umodsi3): Likewise.
13680 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
13682 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13684 * flow.c (redirect_edge_and_branch_force, split_edge,
13685 try_crossjump_to_edge): Use set_block_for_new_insns.
13686 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13688 2001-07-13 H.J. Lu (hjl@gnu.org)
13690 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13693 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
13695 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13697 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
13699 * c-common.c (decl_attributes): Take a pointer to the node to
13700 which attributes are to be attached, and a flags argument.
13701 * c-common.h (enum attribute_flags): New.
13702 (decl_attributes): Update prototype.
13703 * c-decl.c (start_decl, push_parm_decl, finish_struct,
13704 finish_enum, start_function): Update calls to decl_attributes.
13705 * c-parse.in (component_declarator, component_notype_declarator,
13706 label): Update calls to decl_attributes.
13708 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
13710 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13711 * config/avr/avr.c (legitimate_address_p): Return value changed
13712 from letter to register classes. For better debugging.
13714 2001-07-13 Kazu Hirata <kazu@hxi.com>
13716 * jump.c (reversed_comparison_code_parts): Fix comment typos.
13718 2001-07-13 H.J. Lu (hjl@gnu.org)
13720 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13722 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
13724 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
13725 correctly for shared configurations.
13726 * config/t-libgcc-pic: New.
13727 * config/{i386,m68k,sparc}/t-openbsd: New.
13728 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
13729 Support -shared. Support debugging libraries with -g.
13730 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
13731 frame information does not emit pointer diffs.
13732 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
13733 emit pointer diffs.
13735 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
13737 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13739 2001-07-13 David Edelsohn <edelsohn@gnu.org>
13741 * combine.c (try_combine): Ensure const_int pow2 is positive.
13743 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
13745 * config.gcc: Add configuration for s/390.
13746 * config/s390/s390.c: New. Subroutines for code generation.
13747 * config/s390/s390.h: New. Definitions for s/390.
13748 * config/s390/s390-protos.h: New. Prototypes.
13749 * config/s390/linux.h: New. Definitions for linux for s/390.
13750 * config/s390/linux64.h: New. Definitions for linux for zSeries.
13751 * config/s390/t-linux: New. Makefile fragment.
13752 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13753 * config/s390/fixdfdi.h: New. Fix L_fix*di.
13755 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
13757 * emit-rtl.c (try_split): Update mark_jump_label call.
13758 * flow.c (find_sub_basic_blocks): Likewise.
13759 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13760 jump_back_p): Kill.
13761 (mark_all_labels): Kill second parameter.
13762 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13763 (rebuild_jump_labels, jump_optimize_minimal): Update call
13764 of jump_optimize_1.
13765 (jump_optimize_1): Kill crossjumping code.
13766 (mark_jump_label): Kill cross_jump parameter.
13767 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13768 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13769 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13771 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13773 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13774 reorganize passes to do reg-stack first, bb-reorder second.
13775 * invoke.texi (-d letters doc): Remove the jump2 pass.
13777 2001-07-12 Steve Ellcey <sje@cup.hp.com>
13779 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13781 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
13783 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13785 (verify_flow_info): Make diagnostics prettier.
13787 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
13789 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13791 * flow.c (outgoing_edges_match): Return early if condition reversal
13794 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
13796 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13797 (mips_move_2words): When splitting a move into two instructions,
13798 prefix the second address operand with '%D'.
13800 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
13802 * Makefile.in (final.o): Depend on debug.h.
13803 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13804 (dbx_debug_hooks): Add new hooks.
13805 (xcoff_debug_hooks): New.
13806 * debug.c (debug_nothing_file_int_int): New.
13807 (do_nothing_debug_hooks): Update.
13808 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13809 (debug_nothing_file_int_int): New.
13810 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13811 static, update prototype.
13812 (dwarf2_debug_hooks): Update.
13813 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13814 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13815 static, update prototype.
13816 (dwarf_debug_hooks): Update.
13817 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13818 * final.c: Include debug.h.
13819 (final_scan_insn): Use debug hooks when beginning and ending blocks.
13820 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
13821 static, update prototype.
13822 (sdb_debug_hooks): Update.
13823 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
13824 * toplev.c: Distinguish between xcoff and dbx.
13826 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
13827 Call all debug hooks, not just dwarf ones.
13829 2001-07-11 Timothy Wall <twall@redhat.com>
13831 * config.gcc: Add configuration for AIX5/IA64.
13832 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
13833 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
13834 support prefix/suffix code.
13835 * config/ia64/t-aix: New. Makefile fragment.
13836 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
13838 2001-07-11 Kazu Hirata <kazu@hxi.com>
13840 * recog.c (validate_change): Fix a comment typo.
13842 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
13844 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
13845 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
13847 * dbxout.c (dbx_debug_hooks): Add new hooks.
13848 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
13850 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
13852 * dbxout.h (dbxout_start_new_source_file,
13853 dbxout_resume_previous_source_file): Delete.
13854 * debug.c (do_nothing_debug_hooks): Add new hooks.
13855 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13856 (debug_nothing_int_charstar, debug_nothing_int): New.
13857 * debug.h (gcc_debug_hooks): New hooks define, undef,
13858 start_source_file and end_source_file.
13859 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13860 (debug_nothing_int_charstar, debug_nothing_int): New.
13861 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
13862 the conditionally compiled section.
13863 (dwarf2out_start_source_file, dwarf2out_end_source_file,
13864 dwarf2out_define, dwarf2out_undef): Make static.
13865 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
13866 dwarf2out_define, dwarf2out_undef): Remove.
13867 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
13868 (dwarfout_start_source_file, dwarfout_end_source_file,
13869 dwarfout_define, dwarfout_undef): Make static.
13870 (dwarfout_start_source_file_check,
13871 dwarfout_end_source_file_check): New.
13872 (dwarfout_define, dwarfout_finish): Update.
13873 * dwarfout.h (dwarfout_start_new_source_file,
13874 dwarfout_resume_previous_source_file, dwarfout_define,
13875 dwarfout_undef): Remove.
13876 * sdbout.c (sdb_debug_hooks): Add new hooks.
13877 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
13879 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
13880 make static, take an arg.
13881 * sdbout.h (sdbout_start_new_source_file,
13882 sdbout_resume_previous_source_file): Delete.
13883 * toplev.c (debug_start_source_file, debug_end_source_file,
13884 debug_define, debug_undef): Delete.
13885 * toplev.h (debug_start_source_file, debug_end_source_file,
13886 debug_define, debug_undef): Delete.
13888 * java/jcf-parse.c: Include debug.h.
13889 (parse_class_file): Update to use debug hooks directly.
13890 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
13892 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13894 * alias.c (set_mem_alias_set): New function.
13895 * rtl.h (set_mem_alias_set): Declare it.
13896 * builtins.c (expand_builtin_return_addr): Call it instead of
13897 using MEM_ALIAS_SET accessor.
13898 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
13899 (get_memory_rtx, expand_builtin_va_arg): Likewise.
13900 (expand_builtin_va_copy):Likewise.
13901 * caller-save.c (setup_save_areas): Likewise.
13902 * calls.c (compute_argument_addresses): Likewise.
13903 * explow.c (set_mem_attributes): Likewise.
13904 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
13905 (expand_assignment, store_constructor_field, store_field): Likewise.
13906 (expand_expr_unaligned): Likewise.
13907 * function.c (assign_stack_temp_for_type): Likewise.
13908 (put_reg_into_stack, gen_mem_addressof): Likewise.
13909 * ifcvt.c (noce_try_cmove_arith): Likewise.
13910 * reload1.c (reload, alter_reg): Likewise.
13911 * config/alpha/alpha.c (get_aligned_mem): Likewise.
13912 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
13913 (alpha_expand_unaligned_store): Likewise
13914 (alpha_expand_unaligned_load_words): Likewise.
13915 (alpha_expand_unaligned_store_words): Likewise.
13916 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
13917 (alpha_expand_epilogue): Likewise.
13918 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13919 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
13920 * config/i386/i386.c (legitimize_pic_address): Likewise.
13921 * config/i960/i960.c (setup_incoming_varargs): Likewise.
13922 * config/ia64/ia64.c (spill_restore_mem): Likewise.
13923 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13924 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
13925 * config/mips/mips.c (mips_va_arg): Likewise.
13926 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13927 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13928 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13929 (setup_incoming_varargs, rs6000_va_arg): Likewise.
13930 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
13931 (rs6000_emit_epilogue): Likewise.
13932 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
13933 * config/sparc/sparc.c (sparc_va_arg): Likewise.
13934 * config/v850/v850.c (v850_va_arg): Likewise.
13936 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
13938 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
13939 when fallthru edge is present.
13940 (mege_blocks): Handle case where creation of jump insn
13943 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
13944 CLEANUP_POST_REGSTACK): New constants.
13945 * except.c (finish_eh_generation): Update call of cleanup_cfg,
13946 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
13947 * output.h (cleanup_cfg): Update prototype.
13948 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
13949 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
13950 cleanup_cfg call; kill missleading comment.
13951 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
13952 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
13953 parameter; control optimizations performed using it.
13954 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
13955 try_crossjump_bb): New functions.
13957 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13959 * pa.c (pa_output_function_prologue): Delete prototype. Make function
13961 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
13962 pa_output_function_prologue.
13963 * pa-protos.h (pa_output_function_prologue): New prototype.
13965 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13967 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
13968 and low to get correct sign extension in low+high test.
13970 2001-07-11 Janis Johnson <janis@us.ibm.com>
13972 * gcov.c (arcdata): Use gcov_type to fix branch percentage
13973 for large hit count.
13975 * profile.c (branch_prob): Fix .bbg info for computed gotos
13978 2001-07-11 Mark Mitchell <mark@codesourcery.com>
13980 * stmt.c (parse_output_constraint): New function, split out
13982 (expand_asm_operands): ... here. Use parse_output_constraint.
13983 * tree.h (parse_output_constraint): Declare it.
13985 2001-07-11 Richard Henderson <rth@redhat.com>
13987 * bitmap.c: Comment some functions; fiddle whitespace.
13988 (bitmap_free): Don't export.
13989 (bitmap_element_allocate): Use memset.
13990 * bitmap.h (bitmap_free): Don't declare.
13992 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
13994 * gcse.c, lcm.c, sched-deps.c:
13995 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
13997 * flow.c (flow_loops_find): Free dom if we found no loops, since
13998 we aren't going to save it.
14000 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14003 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
14005 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14007 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14009 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14010 #ifndef DWARF2_DEBUGGING_INFO.
14012 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14014 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14016 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14018 * config/mips/mips.c (gen_int_relational): Tell the caller not to
14019 reverse a branch if a NE comparison is implemented with GTU.
14021 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
14022 H.J. Lu <hjl@gnu.org>
14024 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14025 constant addresses.
14026 (call_internal2): Likewise.
14027 (call_value_internal1): Likewise.
14028 (call_value_internal2): Likewise.
14029 (call_value_multiple_internal1): Likewise.
14030 (call_value_multiple_internal2): Likewise.
14032 2001-07-10 Kazu Hirata <kazu@hxi.com>
14034 * calls.c (emit_library_call_value_1): Fix a comment typo.
14035 * dwarf2out.c (mem_loc_descriptor): Likewise.
14036 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14038 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
14040 * simplify-rtx.c (simplify_subreg): Fix typo in comment
14042 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14044 * recog.c (offsettable_address_p): Handle LO_SUM case.
14045 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14046 instead of plus_constant.
14048 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14050 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14051 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14053 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14055 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14056 adjust_address_nv instead of plus_constant.
14058 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
14060 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14061 dwarf2out.o): Depend on debug.h, wrap long lines.
14062 * dbxout.c: Include debug.h.
14063 (dbx_debug_hooks): New.
14064 (dbxout_init): Make static, take just 2 args.
14065 (dbxout_finish): Make static.
14066 * dbxout.h (dbxout_init, dbxout_finish): Delete.
14067 * debug.c: New file.
14068 * debug.h: New file.
14069 * dwarf2out.c: Include debug.h.
14070 (dwarf2_debug_hooks): New.
14071 (dwarf2out_init): Make static.
14072 (dwarf2out_finish): Make static, take 2 args.
14073 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14074 * dwarfout.c: Include debug.h.
14075 (dwarf_debug_hooks): New.
14076 (dwarfout_init): Make static.
14077 (dwarfout_finish): Make static, take 2 args.
14078 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14079 * sdbout.c: Include debug.h.
14080 (sdb_debug_hooks): New.
14081 (sdbout_init): Make static, take 2 args.
14082 * sdbout.h (sdbout_init): Delete.
14083 * toplev.c: Include debug.h.
14084 (debug_hooks): New.
14085 (compile_file): Set deubg_hooks based on command line options.
14086 Use the hooks unconditionally rather than conditional compilation.
14088 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
14090 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
14091 first_insn_after_basic_block_note instead.
14093 * df.c (df_bb_refs_unlink): #if 0 out for now.
14095 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
14097 * ssa.h: Add prototype for ssa_const_prop
14098 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14099 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14100 (ssa_fast_dce): Remove unused variable
14102 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14104 * diagnostic.c (finish_diagnostic): Rename to
14105 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
14108 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
14110 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14113 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14114 (dump_file): Only pad the demangled name with spaces if the
14115 mangled name was padded with spaces.
14117 2001-07-10 Bernd Schmidt <bernds@redhat.com>
14119 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14122 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14124 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14125 extraction if no direct load if either EXPAND_CONST_ADDRESS or
14126 EXPAND_INITIALIZER.
14128 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14129 whether can put offset inside LO_SUM to check mode alignment, not size.
14131 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14133 * doc/tm.texi (Misc): Fix thinko.
14135 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
14137 * regmove.c (replace_in_call_usage): Fix warnings.
14138 * sched-deps.c (add_dependence): Fix warnings.
14139 * simplify-rtx.c (simplify_subreg): Likewise.
14140 Return NULL_RTX instead of NULL.
14142 * reg-stack.c (emit_swap_insn): Eliminate warnings.
14143 (subst_asm_stack_regs): Likewise.
14145 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14148 * dwarf2out.c (output_call_frame_info): Declare i as int.
14149 (build_abbrev_table): Declare n_alloc as int.
14150 (dwarf2out_finish): Initialize die.
14151 * except.c: Declare sjlj_funcdef_number as unsigned.
14152 (connect_post_landing_pads): Declare j as unsigned.
14153 (convert_to_eh_region_ranges): Initialize call_site.
14154 (output_function_exception_table): Initialize tt_format_size.
14155 * expr.c (move_by_pieces_1): Initialize to1.
14156 (store_constructor): Initialize minelt and maxelt.
14157 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14158 * function.c (instantiate_decls): Avoid signed/unsigned warning.
14160 * c-decl.c (combine_parm_decls): Unused, remove.
14161 * c-tree.h: Remove prototype for combine_parm_decls.
14163 * reload.c (push_reload): Fix warning.
14164 (regno_clobbered_p): Likewise.
14165 * reload1.c (replace_pseudos_in_call_usage): Likewise.
14166 (reload_combine): Likewise.
14168 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14169 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14171 * bitmap.c (bitmap_operation): Change user.
14172 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14174 2001-07-10 Eric Christopher <echristo@redhat.com>
14176 * config/mips/mips.c (override_options): Fix typo.
14178 2001-07-09 Stan Shebs <shebs@apple.com>
14180 * target.h (struct gcc_target): New fields init_builtins and
14182 * target-def.h (TARGET_INIT_BUILTINS): New macro.
14183 (TARGET_EXPAND_BUILTIN): New macro.
14184 (TARGET_INITIALIZER): Add them.
14185 * builtins.c: Include target.h.
14186 (expand_builtin): Use targetm.expand_builtin.
14187 (default_init_builtins): New function.
14188 (default_expand_builtin): New function.
14189 * expr.h (default_init_builtins): Declare.
14190 (default_expand_builtin): Declare.
14191 * c-common.c (c_common_nodes_and_builtins): Use
14192 targetm.init_builtins.
14193 * defaults.h (MD_INIT_BUILTINS): Remove.
14194 * Makefile.in (builtins.o): Depend on target.h.
14196 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14197 (TARGET_EXPAND_BUILTIN): Define.
14198 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14199 (MD_EXPAND_BUILTIN): Remove.
14201 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14202 (TARGET_EXPAND_BUILTIN): Define.
14203 (c4x_init_builtins): Make endlink arg a local.
14204 (c4x_print_operand): Fix typos in adjust_address usages.
14205 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14206 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14207 (MD_EXPAND_BUILTIN): Remove.
14209 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14210 (TARGET_EXPAND_BUILTIN): Define.
14211 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14212 (ix86_init_builtins): Call new function only if TARGET_MMX.
14213 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14214 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14215 (MD_EXPAND_BUILTIN): Remove.
14217 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14218 (TARGET_EXPAND_BUILTIN): Define.
14219 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14220 (MD_EXPAND_BUILTIN): Remove.
14222 * doc/tm.texi: Document these changes.
14224 2001-07-09 Diego Novillo <dnovillo@redhat.com>
14226 * basic-block.h (tree_node): Forward declare if needed.
14227 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14228 (BLOCK_HEAD_TREE): Define.
14229 (BLOCK_END_TREE): Define.
14230 (struct loops): Rename field 'tree' to 'tree_root'.
14231 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14233 (flow_loops_tree_build): Rename reference to field 'tree' to
14235 (flow_loops_level_compute): Ditto.
14236 * predict.c (estimate_bb_frequencies): Ditto.
14237 * tree.h (struct tree_common): Add field 'aux'.
14239 2001-07-09 Stan Shebs <shebs@apple.com>
14241 * config/darwin.c (darwin_encode_section_info): Don't mark any
14242 DECL_EXTERNAL node as defined.
14244 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14246 * pa.c (pa_init_machine_status, pa_mark_machine_status,
14247 pa_free_machine_status, hppa_init_pic_save): Delete.
14248 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
14249 (hppa_profile_hook): Use hppa_pic_save_rtx.
14250 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14251 hppa_init_pic_save): Delete.
14252 (hppa_pic_save_rtx): Declare.
14253 * pa.md (call, call_value, sibcall, sibcall_value,
14254 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14256 2001-07-09 Kazu Hirata <kazu@hxi.com>
14258 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14259 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14261 2001-07-09 Andreas Jaeger <aj@suse.de>
14263 * output.h: Add declaration of final_forward_branch_p.
14265 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14267 * varray.c: Include errors.h for internal_error and trim_filename
14270 * Makefile.in (varray.o): Add errors.h.
14272 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
14274 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14275 * optabs.c (have_add2_insn): Check whether the add insn chosen
14276 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
14277 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14279 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
14281 * Makefile.in (OBJS): Add ssa-ccp.o
14282 (ssa-ccp.o): Add dependencies.
14283 * toplev.c (DFI_ssa_ccp): New dump file enum.
14284 (dump_file): Add entry for dumping after SSA CCP.
14285 (flag_ssa_ccp): New flag variable.
14286 (f_options): Add -fssa-ccp.
14287 (rest_of_compilation): Run SSA CCP if requested.
14288 * timevar.def (TV_SSA_CCP): New timevar.
14289 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14290 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14291 Fix minor typo in SSA DCE documentation.
14292 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14293 Add documentation for new dump option. Renumber dump files
14296 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
14298 * emit-rtl.c (gen_highpart_mode): New.
14299 * rtl.h (gen_highpart_mode): Declare.
14300 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14301 operand can be VOIDmode constant.
14303 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
14305 * flow.c (redirect_edge_and_branch_force): New.
14306 (can_fallthru): Ensure that basic blocks are succeeding.
14307 (try_optimize_cfg): Do not delete basic block if it is the last one.
14309 * flow.c (try_redirect_by_replacing_jump): Do not remove
14310 jumps with side effects, unlink chain on fallthru edge;
14311 set block for new jump instruction; avoid basic block to
14312 over by line number note.
14314 * flow.c (try_simplify_condjump): Verify that the condjump
14315 is not always falling through.
14318 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14320 * flow.c (forwarder_block_p): Fix for fallthru blocks.
14321 (try_redirect_by_replacing_jump): Update properly the count
14322 and frequency information.
14324 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14326 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
14327 address that is a LO_SUM specially.
14328 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
14330 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
14332 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
14333 (operand_subword): Use them.
14334 (change_address_1): Renamed from change_address; new arg VALIDATE.
14335 * expr.h: Reflect above changes; change_address now macro.
14336 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
14338 * cselib.c (add_mem_for_addr): Likewise.
14339 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
14340 * regmove.c (try_apply_stack_adjustment): Likewise.
14341 * reload.c (push_reload, make_memloc): Likewise.
14342 * reload1.c (eliminate_regs): Likewise.
14343 * simplify-rtx.c (simplify_replace_rtx): Likewise.
14344 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
14346 * combine.c (make_extraction, simplify_shift_const): Likewise.
14347 (gen_lowpart_for_combine): Likewise.
14348 * cse.c (gen_lowpart_if_possible): Likewise.
14349 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
14350 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
14351 * optabs.c (gen_move_insn): Likewise.
14352 * reload1.c (alter_reg): Likewise.
14353 * simplify-rtx.c (simplify_subreg): Likewise.
14354 * stmt.c (expand_anon_union_decl): Likewise.
14355 * recog.c (validate_replace_rtx_1): Likewise.
14357 * Makefile.in (recog.o): Add $(EXPR_H).
14358 * explow.c (stabilize): Call replace_equiv_address.
14359 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14360 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
14362 2001-07-03 Andrew Haley <aph@redhat.com>
14364 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
14365 the mode of the memory location.
14367 2001-07-09 Bo Thorsen <bo@suse.co.uk>
14369 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
14371 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
14373 * final.c (output_addr_const): Use target opening and
14374 closing parentheses.
14375 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
14376 defaults, add to TARGET_ASM_OUT.
14377 * target.h (struct gcc_target): Add open_paren and close_paren.
14378 * doc/md.texi: Update.
14379 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
14380 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
14381 TARGET_ASM_CLOSE_PAREN.
14382 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14384 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14386 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
14387 * config/a29k/a29k.h: Similarly.
14388 * config/alpha/alpha.h: Similarly.
14389 * config/arc/arc.h: Similarly.
14390 * config/arm/aof.h: Similarly.
14391 * config/arm/aout.h: Similarly.
14392 * config/avr/avr.h: Similarly.
14393 * config/c4x/c4x.h: Similarly.
14394 * config/clipper/clipper.h: Similarly.
14395 * config/convex/convex.h: Similarly.
14396 * config/d30v/d30v.h: Similarly.
14397 * config/dsp16xx/dsp16xx.h: Similarly.
14398 * config/elxsi/elxsi.h: Similarly.
14399 * config/fr30/fr30.h: Similarly.
14400 * config/h8300/h8300.h: Similarly.
14401 * config/i370/i370.h: Similarly.
14402 * config/i386/i386.h: Similarly.
14403 * config/i860/i860.h: Similarly.
14404 * config/i960/i960.h: Similarly.
14405 * config/ia64/ia64.h: Similarly.
14406 * config/m32r/m32r.h: Similarly.
14407 * config/m68hc11/m68hc11.h: Similarly.
14408 * config/m68k/m68k.h: Similarly.
14409 * config/m88k/m88k.h: Similarly.
14410 * config/mcore/mcore.h: Similarly.
14411 * config/mips/mips.h: Similarly.
14412 * config/mn10200/mn10200.h: Similarly.
14413 * config/mn10300/mn10300.h: Similarly.
14414 * config/ns32k/ns32k.h: Similarly.
14415 * config/pa/pa.h: Similarly.
14416 * config/pdp11/pdp11.h: Similarly.
14417 * config/pj/pj.h: Similarly.
14418 * config/romp/romp.h: Similarly.
14419 * config/rs6000/rs6000.h: Similarly.
14420 * config/sh/sh.h: Similarly.
14421 * config/sparc/sparc.h: Similarly.
14422 * config/v850/v850.h: Similarly.
14423 * config/vax/vax.h: Similarly.
14424 * config/we32k/we32k.h: Similarly.
14426 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
14428 * doc/c-tree.texi: Document representation of attributes.
14430 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14432 * doc/tm.texi: Update some places for the rename of target to
14435 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14437 * target.h (struct gcc_target): Add insert_attributes.
14438 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14439 (TARGET_INITIALIZER): Update.
14440 * tree.c, tree.h (default_insert_attributes): New function.
14441 Update comments on other default functions to refer to targetm,
14443 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14444 TARGET_INSERT_ATTRIBUTES.
14445 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14446 * c-common.c (decl_attributes): Use targetm.insert_attributes.
14447 Don't use PRAGMA_INSERT_ATTRIBUTES.
14448 * Makefile.in (c-common.o): Depend on $(TARGET_H).
14449 * c-decl.c (start_decl, start_function): Don't call
14450 SET_DEFAULT_DECL_ATTRIBUTES.
14451 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14452 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14454 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14455 (c4x_check_attribute): Avoid modifying attribute list itself.
14456 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14458 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14459 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14461 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14462 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14464 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14465 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14467 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14468 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14469 Adjust parameters. Make static.
14471 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
14473 * c-common.c (decl_attributes): Only take a single attributes
14475 * c-common.h (decl_attributes): Update prototype.
14476 * c-decl.c (start_decl, start_function): Only take a single
14477 attributes parameter. Update calls to decl_attributes.
14478 (finish_struct, finish_enum): Update calls to decl_attributes.
14479 (push_parm_decl): Expect unified list of attributes. Update call
14480 to decl_attributes.
14481 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14482 notype_nested_function, component_declarator,
14483 component_notype_declarator, label): Update calls to
14485 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14486 lists that are passed to push_parm_decl.
14487 * c-tree.h (start_function, start_decl): Update prototypes.
14488 * config/sh/sh-protos.h, config/sh/sh.c
14489 (sh_pragma_insert_attributes): Only take a single attributes
14491 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14492 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14493 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14494 build_module_descriptor, generate_static_references,
14495 generate_strings, build_selector_translation_table,
14496 generate_descriptor_table, generate_protocols,
14497 generate_ivars_list, generate_dispatch_table,
14498 generate_protocol_list, generate_category,
14499 generate_shared_structures, really_start_method, add_objc_decls,
14500 generate_classref_translation_entry): Update calls to start_decl
14501 and start_function.
14502 (build_tmp_function_decl, start_method_def): Unify attribute lists
14503 that are passed to push_parm_decl.
14505 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
14507 * final.c (no_asm_to_stream): New.
14508 (final_scan_insn): Use target structures for prologue ends
14509 and epilogue starts.
14510 * output.h (no_asm_to_stream): New.
14511 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14512 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14513 (TARGET_ASM_OUT): Update.
14514 * target.h (struct gcc_target): New members function_end_prologue
14515 and function_begin_epilogue.
14516 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14517 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14518 * config/alpha/alpha.c (output_end_prologue): Rename to
14519 alpha_output_function_end_prologue. Use in target struct
14521 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14522 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14523 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14524 ia64_output_function_end_prologue. Use in target struct
14526 (ia64_function_prologue, ia64_funciton_epilogue): Rename
14527 mistyped prototypes.
14528 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14529 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14531 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14532 an use in target struct, make static.
14533 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14536 2001-07-08 Richard Henderson <rth@redhat.com>
14538 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14540 2001-07-08 Richard Henderson <rth@redhat.com>
14542 * config/i386/i386.md: Remove constraints strings from define_split
14543 and define_peephole2 patterns.
14544 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14545 (eh_return): Use them.
14547 2001-07-08 Richard Henderson <rth@redhat.com>
14549 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14550 Document MD_FALLBACK_FRAME_STATE_FOR.
14552 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14554 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14555 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14557 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14559 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
14561 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14562 of the label inside NAME as opposed to just the end of NAME.
14564 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
14566 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14567 * config/alpha/alpha.c (alpha_init_machine_status,
14568 alpha_mark_machine_status, alpha_free_machine_status): Delete.
14569 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14570 (vms_valid_decl_attribute_p): Make static, conditionally compile.
14571 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14573 2001-07-06 Stan Shebs <shebs@apple.com>
14575 * target.h (targetm): Rename global from "target", so as not to
14576 conflict with local variables.
14578 * c-typeck.c: Ditto.
14581 * cp/decl.c: Ditto.
14582 * cp/decl2.c: Ditto.
14583 * cp/typeck.c: Ditto.
14584 * 1750a/1750a.c: Ditto.
14585 * a29k/a29k.c: Ditto.
14586 * arc/arc.c: Ditto.
14587 * arm/arm.c: Ditto.
14588 * avr/avr.c: Ditto.
14589 * clipper/clipper.c: Ditto.
14590 * convex/convex.c: Ditto.
14591 * d30v/d30v.c: Ditto.
14592 * dsp16xx/dsp16xx.c: Ditto.
14593 * elxsi/elxsi.c: Ditto.
14594 * fr30/fr30.c: Ditto.
14595 * h8300/h8300.c: Ditto.
14596 * i370/i370.c: Ditto.
14597 * i386/i386.c: Ditto.
14598 * i860/i860.c: Ditto.
14599 * i960/i960.c: Ditto.
14600 * ia64/ia64.c: Ditto.
14601 * m32r/m32r.c: Ditto.
14602 * m68hc11/m68hc11.c: Ditto.
14603 * m68k/m68k.c: Ditto.
14604 * m88k/m88k.c: Ditto.
14605 * mips/mips.c: Ditto.
14606 * ns32k/ns32k.c: Ditto.
14608 * pdp11/pdp11.c: Ditto.
14609 * romp/romp.c: Ditto.
14610 * rs6000/rs6000.c: Ditto.
14612 * sparc/sparc.c: Ditto.
14613 * vax/vax.c: Ditto.
14614 * we32k/we32k.c: Ditto.
14615 * doc/tm.texi: Update the manual to match.
14617 2001-07-06 Richard Henderson <rth@redhat.com>
14619 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14620 DWARF2_UNWIND_INFO not just whether it is defined.
14622 2001-07-06 Diego Novillo <dnovillo@redhat.com>
14624 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14625 call to simplify_binary_operation returns a new pattern.
14627 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
14629 * glimits.h (__SHRT_MAX__): New.
14630 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14631 (SHRT_MAX): Define in terms of __SHRT_MAX__.
14633 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
14635 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14638 2001-07-06 Richard Henderson <rth@redhat.com>
14640 * bitmap.c (bitmap_release_memory): Move adjacent to the
14641 allocation functions.
14642 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14643 the implementation. Binary search for the set bit.
14644 (bitmap_union_of_diff): Allocate the temporary on the stack
14645 instead of using xmalloc.
14647 2001-07-06 Richard Henderson <rth@redhat.com>
14649 * genrecog.c (validate_pattern): Warn for constraints in
14650 define_{expand,split,peephole2}. Remove strict_low_part
14651 before looking up match_dup.
14653 2001-07-06 DJ Delorie <dj@redhat.com>
14655 * doc/gcc.texi (Makefile): Rename to be a more general purpose
14656 chapter about various build hints and history. Add section
14657 talking about the various types of native and cross builds.
14659 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
14661 * Makefile.in (final.o): Depend on target.h.
14662 * final.c: Include target.h.
14663 (default_function_pro_epilogue): New.
14664 (final_start_function): Use target structure for function prologues.
14665 (final_end_function): Use target structure for function epilogues.
14666 * fold-const.c (real_hex_to_f): Constify s and p.
14667 * output.h (default_function_pro_epilogue): New.
14668 * real.h (real_hex_to_f): Update prototype.
14669 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14670 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14671 (TARGET_INITIALIZER): Update.
14672 * target.h (gcc_target): Add struct asm_out.
14673 * doc/tm.texi: Update.
14676 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14677 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
14678 in cpu/cpu.c, or rename old functions consistently. Take
14679 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
14680 redundant macros and prototypes. Make new functions static.
14682 * 1750a/1750a.c: Similarly.
14683 * 1750a/1750a.h: Similarly.
14684 * a29k/a29k-protos.h: Similarly.
14685 * a29k/a29k.c: Similarly.
14686 * a29k/a29k.h: Similarly.
14687 * arc/arc-protos.h: Similarly.
14688 * arc/arc.c: Similarly.
14689 * arc/arc.h: Similarly.
14690 * arm/arm-protos.h: Similarly.
14691 * arm/arm.c: Similarly.
14692 * arm/arm.h: Similarly.
14693 * avr/avr-protos.h: Similarly.
14694 * avr/avr.c: Similarly.
14695 * avr/avr.h: Similarly.
14696 * clipper/clipper-protos.h: Similarly.
14697 * clipper/clipper.c: Similarly.
14698 * clipper/clipper.h: Similarly.
14699 * convex/convex.c: Similarly.
14700 * convex/convex.h: Similarly.
14701 * d30v/d30v-protos.h: Similarly.
14702 * d30v/d30v.c: Similarly.
14703 * d30v/d30v.h: Similarly.
14704 * d30v/d30v.md: Similarly.
14705 * dsp16xx/dsp16xx-protos.h: Similarly.
14706 * dsp16xx/dsp16xx.c: Similarly.
14707 * dsp16xx/dsp16xx.h: Similarly.
14708 * elxsi/elxsi.c: Similarly.
14709 * elxsi/elxsi.h: Similarly.
14710 * fr30/fr30.c: Similarly.
14711 * fr30/fr30.md: Similarly.
14712 * h8300/h8300-protos.h: Similarly.
14713 * h8300/h8300.c: Similarly.
14714 * h8300/h8300.h: Similarly.
14715 * i370/i370-protos.h: Similarly.
14716 * i370/i370.c: Similarly.
14717 * i370/i370.h: Similarly.
14718 * i386/i386.c: Similarly.
14719 * i386/osf1elf.h: Similarly.
14720 * i386/osfrose.h: Similarly.
14721 * i860/i860-protos.h: Similarly.
14722 * i860/i860.c: Similarly.
14723 * i860/i860.h: Similarly.
14724 * i960/i960-protos.h: Similarly.
14725 * i960/i960.c: Similarly.
14726 * i960/i960.h: Similarly.
14727 * ia64/ia64-protos.h: Similarly.
14728 * ia64/ia64.c: Similarly.
14729 * ia64/ia64.h: Similarly.
14730 * m32r/m32r-protos.h: Similarly.
14731 * m32r/m32r.c: Similarly.
14732 * m32r/m32r.h: Similarly.
14733 * m68hc11/m68hc11-protos.h: Similarly.
14734 * m68hc11/m68hc11.c: Similarly.
14735 * m68hc11/m68hc11.h: Similarly.
14736 * m68k/crds.h: Similarly.
14737 * m68k/dpx2.h: Similarly.
14738 * m68k/m68k-protos.h: Similarly.
14739 * m68k/m68k.c: Similarly.
14740 * m68k/m68k.h: Similarly.
14741 * m68k/news.h: Similarly.
14742 * m88k/m88k-protos.h: Similarly.
14743 * m88k/m88k.c: Similarly.
14744 * m88k/m88k.h: Similarly.
14745 * mips/mips-protos.h: Similarly.
14746 * mips/mips.c: Similarly.
14747 * mips/mips.h: Similarly.
14748 * ns32k/merlin.h: Similarly.
14749 * ns32k/ns32k.c: Similarly.
14750 * ns32k/ns32k.h: Similarly.
14751 * ns32k/tek6000.h: Similarly.
14752 * pa/pa-protos.h: Similarly.
14753 * pa/pa.c: Similarly.
14754 * pa/pa.h: Similarly.
14755 * pdp11/2bsd.h: Similarly.
14756 * pdp11/pdp11-protos.h: Similarly.
14757 * pdp11/pdp11.c: Similarly.
14758 * pdp11/pdp11.h: Similarly.
14759 * romp/romp-protos.h: Similarly.
14760 * romp/romp.c: Similarly.
14761 * romp/romp.h: Similarly.
14762 * rs6000/rs6000-protos.h: Similarly.
14763 * rs6000/rs6000.c: Similarly.
14764 * rs6000/rs6000.h: Similarly.
14765 * rs6000/sysv4.h: Similarly.
14766 * sh/sh-protos.h: Similarly.
14767 * sh/sh.c: Similarly.
14768 * sh/sh.h: Similarly.
14769 * sparc/sparc-protos.h: Similarly.
14770 * sparc/sparc.c: Similarly.
14771 * sparc/sparc.h: Similarly.
14772 * vax/vax.c: Similarly.
14773 * vax/vax.h: Similarly.
14774 * vax/vms.h: Similarly.
14775 * we32k/we32k.c: Similarly.
14776 * we32k/we32k.h: Similarly.
14778 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
14780 * basic-block.h (first_insn_after_basic_block_note): Declare.
14781 * flow.c (first_insn_after_basic_block_note): Define. Moved
14783 * ssa.c (first_insn_after_basic_block_note): Remove.
14784 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14786 (ssa_eliminate_dead_code): Properly update the CFG and PHI
14787 nodes when we find a dead conditional branch. Insert BARRIERs
14788 after any blocks with no successors, but which do not have
14791 2001-07-06 Zack Weinberg <zackw@stanford.edu>
14793 * varray.c (varray_check_failed): Use internal_error.
14795 2001-07-05 Andrew Haley <aph@redhat.com>
14797 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14798 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14799 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14801 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
14803 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14804 reference if the target constant is also a SYMBOL_REF.
14806 2001-07-05 Eric Christopher <echristo@redhat.com>
14808 * config/mips/mips.h (MASK_MIPS3900): Remove.
14809 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14810 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14811 (TARGET_MIPS3900): Change to use mips_arch.
14812 (TARGET_MIPS4000): New.
14813 (TARGET_MIPS4100): New.
14814 (TARGET_MIPS4300): New.
14815 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14816 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14818 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14819 (ISA_HAS_BRANCHLIKELY): To here.
14820 (CC1_CPU_SPEC): New.
14821 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
14822 (mips_arch_string): Declare.
14823 (mips_arch): Declare.
14824 (TARGET_OPTIONS): Add -march and -mtune.
14826 * config/mips/mips.c (mips_arch_string): New.
14828 (override_options): Handle -march for codegen and -mtune
14829 for scheduling. Use mips_arch. Move tx39 target default here.
14830 (mips_parse_cpu): Move error message to override_options.
14832 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
14834 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
14836 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
14837 (MIPS Options): Ditto. Change mcpu entry to historical text.
14839 2001-07-05 H.J. Lu (hjl@gnu.org)
14841 * config/mips/mips.c (mips_parse_cpu): New function to parse
14844 2001-07-05 Jim Wilson <wilson@redhat.com>
14846 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
14847 * config/ia64/t-ia64: Likewise.
14848 (LIB1ASMFUNCS): Update comment.
14850 2001-07-05 David Edelsohn <edelsohn@gnu.org>
14852 * doc/install.texi (Install GCC: Binaries): Fix typo.
14854 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14856 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
14857 reference using the stack pointer, adjust it since we push Y
14859 ("*ashrsi3"): Likewise.
14860 ("*lshrsi3"): Likewise.
14862 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14864 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
14865 when -fomit-frame-pointer is used.
14867 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
14869 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
14870 (try_redirect_by_replacing_jump): Reverse updating properly the
14871 count and frequency information. Reverse removing cc0 setter.
14872 (forwarder_block_p): Reverse fixing for fallthru blocks.
14874 2001-07-05 DJ Delorie <dj@redhat.com>
14876 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
14877 (translate_options): If the above is defined, use it to map
14878 given options to new options.
14879 * doc/tm.texi: Document it.
14881 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
14882 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14884 * doc/invoke.texi (Optimize Options): Document that -fgcse may
14885 cause programs using computed gotos to run more slowly.
14887 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14889 * doc/install.texi (Specific): Markup, spelling and typo fixes.
14891 Consistently require binutils 2.11.2, not prereleases.
14892 (Specific, decstation-*): Canonicalize as mips-dec-*.
14893 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
14895 (Specific, m68k-altos): Removed reference to README.altos, deleted.
14896 (Specific, mips-*): Reword MIPS C compiler requirements.
14897 (Specific, powerpc*-*-*): New, mention --with-cpu once.
14898 (Specific, sunv5): Removed, obsolete.
14900 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
14902 * dwarf2out.c (output_loc_list): Use an all ones mask for
14903 .text asm output and don't rely on long long
14904 literals. Reformat some long lines.
14906 2001-07-05 Andreas Jaeger <aj@suse.de>
14908 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
14911 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
14913 * dwarf2out.c (dwarf2out_define): Update comment.
14914 (dwarf2out_undef): Ditto.
14915 (dwarf2out_start_source_file): Ditto.
14916 (dwarf2out_end_source_file): Ditto.
14917 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
14918 since we never call the start/end debug hook for the primary file.
14920 2001-07-04 Kazu Hirata <kazu@hxi.com>
14922 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
14925 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
14927 * cppinit.c (remove_dup_dirs): Inform if a system include
14928 directory is being reordered.
14929 * doc/invoke.texi (Directory Options): GCC warns if you hide a
14931 * doc/cpp.texi (Search Paths): Likewise.
14932 * doc/gcc.texi (Interoperation): Remove information about
14935 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
14937 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
14938 (VARRAY_TOP_CHAR_PTR): Likewise.
14940 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14942 * gcc.c (process_command): Don't assign elements of a const char*.
14944 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14946 * emit-rtl.c (change_address): Don't abort if invalid address while
14947 reload is in progress.
14949 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
14951 * c-lex.c (cb_file_change): Pass line number to
14952 debug_start_source_file.
14953 (cb_undefine): Pass correct line number to debug_undef.
14955 * toplev.c (debug_start_source_file): Add line number to
14956 parameters. Pass it along to dwarf2out_start_source_file.
14957 (decode_g_option): Stop resetting debug level back to normal when
14958 we change debug formats, unless the current level is
14959 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
14962 * toplev.h (debug_start_source_file): Add line number to
14965 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
14968 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
14970 Output debug_macinfo data for starting file if requested.
14971 (dwarf2out_end_source_file): Output debug_macinfo data for ending
14973 (dwarf2out_define): Output debug_macinfo data for defining a macro
14975 (dwarf2out_undef): Output debug_macinfo data for undefining a
14976 macro if requested.
14977 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
14978 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
14979 (macinfo_section_label): New. DWARF2 macro info section label.
14980 (dwarf2out_init): If we want macro info, output the start label
14982 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
14983 attribute to the compilation unit die pointing to the macro info.
14985 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
14987 * dwarf2out.c (new_loc_list): Move to inside #ifdef
14988 DWARF2_DEBUGGING_INFO.
14989 (add_loc_descr_to_loc_list): Ditto.
14990 (output_loc_list): Ditto.
14991 Also, fix thinko in curr not being initialized.
14992 (gen_internal_sym): Ditto.
14994 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14996 * emit-rtl.c (replace_equiv_address): New function.
14997 * expr.h (replace_equiv_address): New declaration.
14998 * explow.c (validize_mem): Call it instead of change_address and
14999 also call if -fforce-addr and address is constant.
15000 * expr.c: Replace more calls to change_address with adjust_address
15001 and/or replace_equiv_address or to validize_mem.
15002 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15003 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15004 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15005 * config/i370/i370.md, config/i860/i860.md: Likewise.
15006 * config/i960/i960.md, config/mips/mips.c: Likewise.
15007 * config/mips/mips.md, config/pa/pa.md: Likewise.
15008 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15009 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15011 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15013 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15015 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15018 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
15020 * doc/include: New directory.
15021 * doc/fdl.texi: Move to doc/include/fdl.texi.
15022 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15023 * doc/include/funding.texi, doc/include/gpl.texi: New files.
15024 * doc/gcc.texi: Use funding.texi and gpl.texi.
15025 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15026 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15027 Update dependencies and use -I $(docdir)/include.
15029 2001-07-04 Anthony Green <green@redhat.com>
15031 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15033 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15035 * doc/install.texi (sparc64-*-*): Remove garbage.
15037 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
15039 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15040 Fix typo in last change to use adjust_address.
15042 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15044 * doc/install.texi (Specific): Update information for *-*-solaris*.
15046 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15048 * explow.c (plus_constant_wide): Reinitialize Y for restart.
15050 2001-07-03 Stan Shebs <shebs@apple.com>
15052 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15053 case for flag_no_mach_text_sections.
15054 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15055 * config/darwin.c (flag_no_mach_text_sections): Remove.
15056 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15058 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15060 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15061 and avoid checking for constant as first operand.
15062 * recog.c (find_constant_term_loc): No longer static.
15063 (adj_offettable_operand): Delete.
15064 * rtl.h (adj_offsettable_operand): Delete declaration.
15065 (find_constant_term): Add declaration.
15066 * caller-save.c: Replace calls to adj_offsettable_operand with calls
15068 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15069 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15070 * config/i386/i386.c, config/i386/i386.md: Likewise.
15071 * config/i860/i860.c, config/i960/i960.c: Likewise.
15072 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15073 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15074 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15075 * config/mips/mips.c, config/mips/mips.md: Likewise.
15076 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15077 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15078 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15079 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15080 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15081 * config/ns32k/ns32k.md: Likewise.
15083 2001-07-03 Zack Weinberg <zackw@stanford.edu>
15085 * rtl.c (copy_rtx): Handle 'T' format letter.
15086 * gensupport.c (collect_insn_data): Likewise.
15087 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15089 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
15091 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15092 -B option. Use 'dir' not 'foo' as example directory name.
15094 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15096 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15097 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15099 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15101 * doc/cppinternals.texi: Improve formatting and logical markup.
15103 2001-07-03 Andreas Jaeger <aj@suse.de>
15105 * Makefile.in (insn-recog.o): Add dependency on reload.h.
15107 * genrecog.c (write_header): Include reload.h for prototypes in
15110 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
15113 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15114 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15115 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15116 i386_pe_valid_type_attribute_p): Add.
15117 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15118 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15120 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15122 * explow.c (plus_constant_wide, case LO_SUM): New case.
15123 (plus_constant_for_output_wide): Delete.
15124 * rtl.h (plus_constant_for_output): Delete.
15125 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15126 instead of plus_constant_for_output.
15127 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15128 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15129 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15130 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15131 * config/sparc/sparc.md: Likewise.
15132 Convert some change_address calls to adjust_address.
15134 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
15136 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15137 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
15138 documentation of -std and -Wwrite-strings.
15140 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15142 * cse.c (canon_hash): Don't register registers in very small
15143 register classes, as extending their lifetime might cause
15146 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
15148 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15150 * flow.c (forwarder_block_p): Fix for fallthru blocks.
15151 (try_redirect_by_replacing_jump): Update properly the count
15152 and frequency information.
15154 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
15156 * toplev.c (dump_file_index): Move SSA dumps just after first
15158 (dump_file): Corresponding changes.
15159 (rest_of_compilation): Move SSA path to just after the first
15161 * doc/gcc.texi (Passes): Update due to movement of SSA path.
15162 * doc/invoke.texi: Update dump file #s as they were completely
15163 out of date with reality.
15165 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
15167 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15169 * expr.c (emit_move_insn_1): Deal with non-default
15172 * expr.c (emit_single_push_insn): Fix warning.
15174 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
15176 * expr.c (emit_move_insn_1): Avoid modifying
15177 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15179 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15181 * emit-rtl.c (adjust_address): New function.
15182 * expr.h (adjust_address): Add declaration.
15183 * builtins.c: Replace some calls to change_address with calls to it
15184 or to validize_mem.
15185 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15186 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15187 * config/arm/arm.c, config/convex/convex.c: Likewise.
15188 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15189 * config/i386/i386.c, config/i386/i386.md: Likewise.
15190 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15191 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15192 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15193 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15194 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15196 2001-07-02 Jim Wilson <wilson@redhat.com>
15198 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15200 2001-07-02 Steve Ellcey <sje@cup.hp.com>
15202 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15203 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15205 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15207 * cppinit.c (lang_defaults): New table.
15208 (set_lang): Just read from lang_defaults into the live options
15211 2001-07-02 Zack Weinberg <zackw@stanford.edu>
15213 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15214 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15215 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15217 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15219 * doc/install.texi: Various spelling and markup fixes.
15220 (Installing GCC): Component specific installation instructions are
15223 Warn about removing old install dir in the presence of shared libs.
15224 (Configuration): Invoke with options target to match configure
15226 Consistently refer to gas, gld pathnames.
15227 Invert --enable-multilib documentation.
15228 Remove references to old compiler versions.
15230 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15232 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15234 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15236 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15238 (Specific, mips*-sgi-irix5): Note IDO download.
15239 Reworded MIPS C hints.
15240 Use GNU as instead of GAS.
15242 Removed SGI Freeware reference, IRIX 6 only.
15243 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15244 Note N64 library requirement/workaround.
15246 Complete list of structure passing bug victims.
15248 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15250 * doc/install.texi: Remove CVS Id.
15252 2001-07-02 Andreas Jaeger <aj@suse.de>
15254 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15255 (find_inherently_necessary): Remove unused variable.
15257 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
15259 * c-common.h (TDI_inlined): New ast dump phase.
15260 (dump_flag_name): New function.
15261 * c-dump.c (dump_files): Add inlined phase.
15262 (dump_flag_name): Define.
15263 * doc/invoke.texi (-fdump-ast-inlined): Document.
15265 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15267 * stor-layout.c (layout_decl): Revert change to handling of alignment
15270 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15272 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15275 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
15277 * doc/tm.texi (FUNCTION_ARG): Document that the last call
15280 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
15282 * tlink.c (recompile_files): Remove COMPILER_PATH and
15283 LIBRARY_PATH from the environment.
15285 2001-07-01 Zack Weinberg <zackw@stanford.edu>
15287 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15288 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
15290 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15292 * c-parse.in (OBJC_STRING): Kill.
15293 (objc_string): Decompose to [objc_string] '@' STRING.
15294 (reswords): Take the leading '@' off all the Objective C keywords.
15295 (objc_rid_sans_at): Kill.
15296 (init_reswords): Don't initialize it.
15297 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15298 (_yylex): Kill reconsider label. Look ahead one token after
15299 an '@'; if we get an identifier, check whether it's an
15300 Objective C @-keyword. If so, return the keyword. Otherwise,
15301 put back the token and return the '@' as a terminal.
15303 * cpplib.c (lex_macro_node): Remove unnecessary check for
15304 leading '@' on identifier. Clarify control flow and commentary.
15306 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15308 * cse.c (new_label_ref): Variable deleted.
15309 (insert): Remove set of new_label_ref.
15310 (check_for_label_ref): New function.
15311 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15313 See ChangeLog.5 for earlier changes.