flow.c (clear_log_links): Remove unused variable.
[official-gcc.git] / gcc / ChangeLog
blob2441efd579621fc00a003267da22cb693dc1ad37
1 2001-10-26  Andreas Jaeger  <aj@suse.de>
3         * flow.c (clear_log_links): Remove unused variable.
4         * cfgcleanup.c (cleanup_cfg): Likewise.
6 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
8         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
9         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
11 2001-10-26  Richard Henderson  <rth@redhat.com>
13         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
14         rename PV_REG to R27_REG.
15         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
16         (REG_CLASS_FROM_LETTER): Update.
17         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
18         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
19         (udivsi3, modsi3, umodsi3): Likewise.
20         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
22 2001-10-26  Richard Henderson  <rth@redhat.com>
24         * cfg.c (clear_aux_for_blocks): Split out of ...
25         (free_aux_for_blocks): here.
26         (clear_aux_for_edges): Split from ...
27         (free_aux_for_edges): here.
28         * basic-block.h: Declare them.
29         * lcm.c (compute_antinout_edge): Use them.
30         (compute_laterin, compute_available, compute_nearerout): Likewise.
31         (optimize_mode_switching): Likewise.
33 2001-10-26  Richard Henderson  <rth@redhat.com>
35         * Makefile.in (unstage*): Remove as, ld, collect-ld before
36         moving everything back to the main build directory.
38 2001-10-26  Christopher Faylor  <cgf@redhat.com>
40         * config/i386/cygwin.h: Search target specfic include directory, if
41         appropriate.
43 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
45         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
46         of macro guards. Fix #endif comment.
48         * output.h (default_exception_section, default_eh_frame_section):
49         Move prototypes outside of macro guard.
51         * crtstuff.c: Fix #endif comment.
53 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
55         * doc/md.texi (movMM): Clarify semantics of storing into a
56         non-paradoxical SUBREG.
58 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
60         * langhooks.c (lang_hook_default_clear_binding_stack): New.
61         (lang_hook_default_get_alias_set): Move next to other alias
62         hooks.
63         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
64         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
65         (LANG_HOOKS_INITIALIZER): Add it.
66         * toplev.h (struct lang_hooks): Add clear_binding_stack.
67         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
68         instead of a loop calling poplevel.
70 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
72         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
73         occurrences of #elif with #if...#endif.
75 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
77         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
79 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
81         * alias.c (can_address_p): No longer static.
82         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
83         Return 0 if all parameters are default values.
84         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
85         (adjust_address_1): Try harder to compute a size.
86         * expr.c (expand_assignment, store_constructor): If can't address,
87         set MEM_KEEP_ALIAS_SET_P.
88         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
89         (store_field): Likewise.
90         (store_constructor): Simplify call to store_constructor_field.
91         * expr.h (can_address_p): New declaration.
92         * gensupport.c (gen_rtx_CONST_INT): New function.
93         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
94         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
95         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
97         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
99 2001-10-24  Christopher Faylor  <cgf@redhat.com>
101         * config/i386/cygwin.h: Use proper path for mingw crt files when
102         -mno-cygwin.
104 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
106         * dwarf2out.c (file_info_cmp): Always return consistent results.
108 2001-10-24  Roger Sayle <roger@eyesopen.com>
110         * stmt.c (expand_end_case): Index jumptables from zero for
111         suitably small values of minval.
113 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
115         * stor-layout.c (place_union_field): If any field was aligned with
116         attribute aligned, set record type's TYPE_USER_ALIGN.
117         (place_field): Likewise.
118         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
119         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
121 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
123         * c-common.h (struct c_common_identifier): Remove rid_code field.
124         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
126         * c-typeck.c (constructor_designated): New local flag.
127         (struct constructor_stack): Add "designated" field to match.
128         (start_init): Clear it.
129         (really_start_incremental_init, push_init_level): Push and
130         clear it.
131         (pop_init_level): Pop it.
132         (set_designator): Set it.
134         (pop_init_level): Suppress "missing initializer" warnings if
135         constructor_designated is true.
136         (process_init_element): Suppress warning about union
137         initialization under traditional C, if constructor_designated
138         is true.
140 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
142         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
143         change.
145 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
147         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
149 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
151         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
152         the node was already a set to a constant.
154 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
156         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
157         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
159 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
161         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
162         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
163         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
164         * s390.c (s390_final_chunkify): Don't use string concatenation.
165         (s390_function_prologue, s390_function_epilogue): Const-ify.
166         * s390.h (FUNCTION_PROFILER): Remove unused variable.
168 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
170         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
171         prototypes.
173 2001-10-23  Stan Shebs  <shebs@apple.com>
175         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
176         -traditional-cpp in first-stage compilation.
178 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
180         * gensupport.c (target_flags): Add.
182 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
184         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
185         if needed.
186         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
187         * except.c (expand_builtin_frob_return_addr): Likewise.
188         (expand_builtin_eh_return): Likewise.
189         * stmt.c (expand_computed_goto): Likewise.
190         * explow.c (memory_address): Likewise.
191         (allocate_dynamic_stack_space): Clean up predicate testing.
192         (probe_stack_range): Convert SIZE to Pmode.
193         * calls.c (rtx_for_function_call): Only call convert_memory_address
194         if needed.
195         Pass function call operand as ptr_mode, not Pmode.
196         * expr.c (expand_assignment): Clean up calls to convert_memory
197         address by only doing so when needed and making offsets Pmode.
198         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
199         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
200         is in Pmode, not ptr_mode.
202 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
204         * darwin-protos.h (constructor_section, destructor_section,
205         mod_init_section, mod_term_section): Prototype.
206         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
207         Const-ify.
208         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
209         Likewise.
210         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
211         objc_section_init declaration.
212         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
213         (objc_section_init, try_section_alias): Make static.
214         (alias_section): Make static and hide unused function.
215         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
217 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
219         * alias.c (can_address_p): Compnonents are not addressable if
220         the containing type has alias set 0.
221         (get_alias_set): Rework to use STRIP_NOPS.
222         Only call front-end routine on object, type, or object with
223         NOPs stripped, not inner values.
224         Use language hook to call front-end routine.
225         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
226         (expand_builtin_apply): Call set_mem_align on MEMs we make.
227         Don't pass alignment to emit_block_move.
228         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
229         (expand_builtin_memset): Likewise, but for clear_storage.
230         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
231         and remove C++ specific parts.
232         * c-common.h (c_common_get_alias_set): Add declaration.
233         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
234         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
235         (save_fixed_argument_area): Call set_mem_align.
236         Remove alignment in call to emit_block_move.
237         (emit_library_call_value_1, store_one_arg): Likewise.
238         (target_for_arg): Remove; disabled long ago.
239         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
240         once and similar cleanups.
241         (offset_address): Use proper introductory comment.
242         * expr.c (emit_block_move): Use alignment from that of MEM args, not
243         from explicit operand; all callers changed.
244         (clear_storage): Likewise.
245         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
246         (store_field): Remove kludge on alias set used for to_rtx.
247         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
248         (expand_expr_unaligned): Call set_mem_attributes instead of
249         set_mem_alias_set.
250         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
251         * function.c (assign_stack_temp_for_type): Set MEM alignment.
252         (expand_function_end): Track MEM attributes of trampolines.
253         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
254         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
255         attributes from original.
256         * langhooks.c (lang_hook_default_get_alias_set): New function.
257         (hook_get_alias_set_0): New function.
258         * langhooks.h (hook_get_alias_set_0): New declaration.
259         (lang_hook_default_get_alias_set): Likewise.
260         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
261         * reload1.c (alter_reg): Use adjust_address_nv.
262         * rtl.c (get_mode_alignment): Moved to here.
263         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
264         change default if unknown from 1 to BITS_PER_UNIT.
265         * stor-layout.c (get_mode_alignment): Remove from here.
266         * toplev.h (struct lang_hoks): Add get_alias_set field.
267         * tree.h (lang_get_alias_set): Delete declaration.
268         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
269         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
270         (ix86_va_arg): Likewise.
271         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
272         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
273         * config/sparc/sparc.c (sparc_va_arg): Likewise.
274         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
275         (expand_block_move_mem): Remove dead code.
277 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
279         * c-common.c (warn_div_by_zero): New.
280         * c-common.h (warn_div_by_zero): New.
281         * c-decl.c (c_decode_option): Take it on the command line.
282         * c-typeck.c (build_binary_op): Warn about division by zero.
283         * doc/invoke.texi: Document the new command line option, fix
284         documentation of -Wmultichar.
285         * testsuite/gcc.dg/divbyzero.c: New tests.
286         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
288 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
290         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
292         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
293         to avoid update_life_info call.
294         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
295         * cfgcleanup.c (bb_flags): New enum.
296         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
297         (notice_new_block, update_forwarder_flag): New functions.
298         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
299         (try_forward_edges): Likewise; update flags.
300         (merge_blocks): Likewise.
301         (outgoing_edges_match): Likewise.
302         (try_crossjump_to_edge): Likewise.
303         (try_optimize_cfg): Likewise; initialize and clear the flags;
304         recompute life info if needed.
305         (cleanup_cfg): No need to clear aux pointers.
307 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
309         * config/i386/i386.c (override_options): Default to minimum
310         stack alignment when optimizing for code size.
311         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
312         change.
314         * config/i386/i386.c (override_options): Set upper limit of
315         -mpreferred-stack-boundary to 12.
317 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
319         * recog.c (peephole2_optimize): Add default case to switch.
321 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
323         * doc/gcc.texi (Sending Patches): Remove.
325 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
327         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
328         fields when comparing.
330 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
332         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
333         * arm.c (HOST_INT, HOST_UINT): Likewise.
335 2001-10-22  Stan Shebs  <shebs@apple.com>
337         * config/darwin-protos.h (darwin_exception_section): Declare.
338         (darwin_eh_frame_section): Declare.
340 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
342         * i386.md (movti_rex64): Fix mode.
344 2001-10-22  Stan Shebs  <shebs@apple.com>
346         * target.h (struct gcc_target): Add asm_out.exception_section,
347         asm_out.eh_frame_section.
348         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
349         (TARGET_ASM_EH_FRAME_SECTION): New.
350         (TARGET_INITIALIZER): Update.
351         * output.h (default_exception_section): Declare.
352         (default_eh_frame_section): Declare.
353         * dwarf2out.c: Include target.h.
354         (output_call_frame_info): Call target hook for eh frames.
355         (default_eh_frame_section): New function.
356         * except.c: Include target.h.
357         (output_function_exception_table): Call target hook for exception
358         section.
359         * varasm.c (default_exception_section): Rename from
360         exception_section, remove EXCEPTION_SECTION macro.
362         * config/darwin.h (darwin_eh_frame_section): New function.
363         (EXCEPTION_SECTION): Remove.
364         (TARGET_ASM_EXCEPTION_SECTION): Define.
365         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
366         (nextstep_exception_section): New function.
367         (nextstep_eh_frame_section): New function.
368         (TARGET_ASM_EXCEPTION_SECTION): Define.
369         (TARGET_ASM_EH_FRAME_SECTION): Define.
371         * config/pa/som.h (EXCEPTION_SECTION): Remove.
372         (TARGET_ASM_EXCEPTION_SECTION): Define.
373         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
374         (EXCEPTION_SECTION): Remove.
375         (TARGET_ASM_EXCEPTION_SECTION): Define.
376         * config/stormy16/stormy16.h: Remove comments referencing
377         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
379         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
380         TARGET_ASM_EH_FRAME_SECTION.
382 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
384         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
385         terms.
387         * c-format.c: Fix spelling typo in comment.
389         * sched-int.h: Fix typo in GCC preamble.
391 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
393         PR debug/4252
394         * doc/invoke.texi: Remove references to -fdump-translation-unit.
396 2001-10-22  Richard Henderson  <rth@redhat.com>
398         * config/i386/i386.c (ix86_expand_clear): New.
399         * config/i386/i386-protos.h: Declare it.
400         * config/i386/i386.md (setcc peep2s): Use it.
401         (movsi_xor): Unexport.
403 2001-10-22  Richard Henderson  <rth@redhat.com>
405         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
406         free_EXPR_LIST_list for LOG_LINKS.
408 2001-10-21  Robert Lipe  <robertlipe@usa.net>
410         * config/i386/i386.c (sco_asm_named_section): Delete.
411         (sco_asm_out_constructor): Delete.
412         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
413         (ASM_OUTPUT_DOUBLE_INT): Likewise.
414         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
415         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
416         (EXCEPTION_SECTION): Delete EH scn renaming hack.
418 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
420         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
421         and/or fold extra calls into fewer ones.
422         * collect2.c (dump_file): Likewise.
423         * cppexp.c (parse_number): Likewise.
424         * cpplex.c (_cpp_lex_direct): Likewise.
425         * final.c (output_asm_insn, asm_fprintf): Likewise.
426         * fix-header.c (inf_scan_ident, main): Likewise.
427         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
428         Likewise.
429         * fold-const.c (real_hex_to_f): Likewise.
430         * gen-protos.c (parse_fn_proto): Likewise.
431         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
432         * genrecog.c (change_state, write_action): Likewise.
433         * gensupport.c (shift_output_template): Likewise.
434         * local-alloc.c (requires_inout): Likewise.
435         * mips-tfile.c (IS_ASM_IDENT): Likewise.
436         * protoize.c (is_id_char, main): Likewise.
437         * real.c (asctoeg): Likewise.
438         * recog.c (asm_operand_ok): Likewise.
439         * reload.c (find_reloads): Likewise.
440         * scan.c (scan_identget_token): Likewise.
441         * sched-vis.c (print_value): Likewise.
442         * stringpool.c (ggc_alloc_string): Likewise.
443         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
444         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
445         * tradcpp.c (rescan): Likewise.
446         * tree.c (clean_symbol_name): Likewise.
447         * varasm.c (decode_reg_name): Likewise.
449         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
450         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
451         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
452         * m88k.c (output_ascii): Likewise.
453         * m88k.h (OVERRIDE_OPTIONS): Likewise.
454         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
455         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
456         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
458 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
460         * langhooks.c (lang_hook_default_do_nothing,
461         lang_hook_default_decode_option): New defaults.
462         * langhooks.h: Make hooks unconditional and non-NULL.
463         * toplev.c (compile_file, toplev_main): Update.
464         * toplev.h: Update comments.
465         * objc/objc-act.c (lang_hooks): Update to new paradigm.
467 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
469         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
471         * system.h (IN_RANGE): New macro.
473 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
475         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
476         INTLDEPS variable, which does not include $LIBICONV.
477         * Makefile.in: Use INTLDEPS in LIBDEPS.
478         * configure: Regenerate.
480 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
482         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
483         * cpplex.c (lex_percent, lex_dot): Remove.
484         (get_effective_char, skip_block_comment, skip_line_comment,
485         parse_identifier_slow, parse_number, parse_string, save_comment,
486         _cpp_lex_direct): Update to do lookback freely.
487         (IF_NEXT_IS, BACKUP): New macros.
488         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
489         * cppmacro.c (paste_tokens): Update.
491 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
493         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
495 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
497         * reload1.c (reload): Check CONSTANT_P before calling
498         LEGITIMATE_PIC_OPERAND_P.
499         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
500         workaround of 2001-10-13.
502 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
504         * i386.c (split_di): Handle splitting of DFmode.
506 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
508         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
509         (adjust_address_1, offset_address): Likewise.
511         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
512         (output_asm_insn): Call it for each line output.
513         Don't record an operand more than once.
515         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
516         * main.c: Include config.h and system.h, but not ansidecl.h.
517         * Makefile.in (main.o): Update accordingly.
519 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
521         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
523 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
525         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
526         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
527         Break out from ...
528         (find_sub_basic_blocks): ... here;
529         (find_many_sub_basic_blocks): New.
530         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
532         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
534         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
536         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
538         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
539         * flow.c (update_life_info): Measure time.
540         * c-decl.c: Include timevar.h
541         (c_expand_body): Measure time.
542         * toplev.c (rest_of_compilation): Measure time of mode switching
543         separately.
544         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependancy.
546         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
547         (lang_independent_options): Add asynchronous-unwind-tables
548         (toplev_main): flag_asynchronous_unwind_tables implies
549         flag_unwind_tables.
550         * flags.h (flag_asynchronous_unwind_tables): Declare.
551         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
552         flag_asynchronous_unwind_tables.
553         (output_call_frame_info): Likewise.
554         * invoke.texi (-fasynchronous-unwind-tables): Document.
555         * i386.c (optimization_options): Enable
556         flag_asynchronous_unwind_tables.
558         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
559         * i386.md (s* expanders): Destination is QImode.
561         * toplev.c (rest_of_compilation): Do not call clear_log_links.
562         * rtl.h (clear_log_links): Kill.
563         * flow.c (clear_log_links): Make static; accept blocks parameter;
564         do no clear life info.
565         (update_life_info): Call clear_log_links.
567         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
569 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
571         * cpplex.c (handle_newline, skip_escaped_newlines,
572         get_effective_char, skip_block_comment, skip_line_comment,
573         parse_identifier_slow, parse_number, parse_string,
574         _cpp_lex_direct): Update to do more stepping back.
575         (trigraph_ok): Similarly.  Rename trigraph_p.
576         (SAVE_STATE, RESTORE_STATE): Remove.
577         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
579         * cpplib.c (destringize): Rename destringize_and_run, and
580         call run_directive directly.
581         (_cpp_do__Pragma): Simplify.
583 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
585         * pe.c (arm_pe_unique_section): Const-ify.
586         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
587         (switch_to_section): Add static prototype.
589         * output.h (drectve_section): Prototype.
591 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
593         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
594         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
595         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
596         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
597         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
598         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
599         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
600         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
601         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
602         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
603         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
604         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
605         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
606         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
607         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
608         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
609         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
610         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
611         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
612         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
613         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
614         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
615         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
616         cris-*-none, cris-*-linux*: Update ${tmfile} list.
617         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
618         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
619         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
620         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
621         v850-*-*): Delete superflous ${cpu_type} setting.
622         * config/linux.h: Delete svr4.h include.
623         (SET_ASM_OP): Delete.
624         * config/netware.h (INT_ASM_OP): Undef before define.
625         * config/ptx4.h: Delete elfos.h include.
626         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
627         * config/svr4.h: Delete elfos.h include. Update commentary.
628         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
629         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
630         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
631         config/v850/v850.h: Delete svr4.h include.
632         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
633         config/m68k/m68kv4.h, config/m88k/sysv4.h,
634         config/sparc/sysv4.h: Update includes.
635         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
636         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
637         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
638         config/m88k/dguxbcs.h: Delete includes.
639         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
640         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
641         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
642         it.
643         * config/m88k/dgux.h: Delete include.
644         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
645         defining it.
646         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
647         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
648         * config/sh/elf.h: Update include.
649         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
650         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
652 2001-10-19  Catherine Moore  <clm@redhat.com>
654         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
655         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
656         base and count fields.
657         (stormy16_expand_builtin_va_start):  last_reg_count changed to
658         size_of_reg_args.  Use count + size in first comparison.
660 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
662         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
663         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
664         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
665         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
666         Set alignment from type if INDIRECT_REF.
667         (adjust_address_1, offset_address): Simplify alignment compuitation.
668         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
669         here; done by set_mem_attributes.
671 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
673         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
674         * arm-protos.h (rdata_section, zero_init_section, common_section):
675         Prototype.
676         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
677         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
678         traditional mode stringification.
679         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
680         in macros controling its use.
681         * rtlanal.c: Include tm_p.h.
682         * varasm.c (asm_output_aligned_bss): Mark parameter with
683         ATTRIBUTE_UNUSED.
684         (assemble_constant_align, assemble_start_function, assemble_align,
685         assemble_variable, assemble_trampoline_template,
686         output_constant_def_contents): Wrap potentially empty if-stmt body
687         in brackets.
689 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
691         * a29k-protos.h (literal_section): Prototype.
692         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
693         * a29k.md: Ensure function pointers are prototyped.
694         * genattrtab.c (write_eligible_delay): Mark parameter with
695         ATTRIBUTE_UNUSED.
697 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
699         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
700         * 1750a.c (print_operand): Fix format specifier warning.
701         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
702         * 1750a.md: Likewise.
703         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
704         * genemit.c (output_add_clobbers): Mark parameter with
705         ATTRIBUTE_UNUSED.
706         * genrecog.c (write_subroutine): Likewise.
707         * integrate.c (expand_inline_function): Delete unused variable.
708         * varasm.c (remove_from_pending_weak_list): Wrap with
709         ASM_WEAKEN_LABEL.
711 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
713         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
714         field is different to previous argument's neg field.
716         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
718 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
720         * final.c (get_decl_from_op): New function.
721         (output_asm_insn): Call it; write "*" when item with decl is address.
723 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
725         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
726         about 64-bit support from the 3.0_branch version.
728 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
730         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
731         USE_INCLUDED_LIBINTL when appropriate.
732         * configure, config.in: Regenerate.
733         * Makefile.in (datadir): Set to @datadir@.
734         (intl.o): Also depend on $(CONFIG_H) and system.h.
736         * intl.c: Factor out common gettext initialization sequence.
737         (gcc_init_libintl):  New function.
738         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
739         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
740         off NLS.  Add multiple include guard.  No need to #ifdef-guard
741         an #undef.  Prototype gcc_init_libintl here.
743         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
744         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
745         Use gcc_init_libintl.
747 2001-10-19  Catherine Moore  <clm@redhat.com>
749         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
751         * config/stormy16/stormy16.c (stormy16_split_move):  Make
752         sure that REG_INC notes are present for auto_inc operands.
754 2001-10-19  Andreas Jaeger  <aj@suse.de>
756         * configure: Regenerated.
757         * configure.in: Add x86_64 to switch statements.
759 2001-10-18  Richard Henderson  <rth@redhat.com>
761         * config/alpha/alpha.md (sibcall_osf_1): Load destination
762         address into $27 explicitly.
763         (sibcall_value_osf_1): Likewise.
765 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
767         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
768         (offset_address): New function.
769         (free_emit_status): Free regno_decl.
770         (init_emit): Pass proper number of elements to xcalloc.
771         Allocate regno_decl.
772         (mark_emit_status): Mark regno_decl values.
773         * expr.c (highest_pow2_factor): New function.
774         (expand_assigment): Use it and offset_address.
775         Properly handle ptr_mode vs. Pmode in offset calculation.
776         (store_constructor, expand_expr_unaligned): Likewise.
777         (expand_expr, case COMPONENT_EXPR): Likewise.
778         * expr.h (offset_address): New decl.
779         * function.h (struct emit_status): Add regno_decl.
780         (REGNO_DECL): New macro.
781         * final.c (output_asm_name): Move in file and don't conditionalize
782         on flag_print_asm_name.
783         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
784         Output names of operands, if known.
785         * function.c (assign_parms): Set REGNO_DECL.
786         * integrate.c (integrate_decl_tree): Likewise.
787         * stmt.c (expand_decl): Likewise.
788         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
790 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
792         * attribs.c (handle_noinline_attribute): New function.
793         (handle_used_attribute): Likewise.
794         (c_common_attribute_table): Added noinline and used.
795         * doc/extend.texi (Function Attributes): Document them.
796         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
797         Warn when merging inline with attribute noinline.
798         (start_decl, start_function): Warn if inline and attribute
799         noinline appear in the same declaration.
801 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
803         * config.gcc: Update c4x and i370 for C front end-specific
804         dependencies.
805         * config/c4x/c4x-c.c: New.
806         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
807         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
808         New declarations.
809         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
810         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
811         Make extern.
812         (c4x_init_pragma): Remove.
813         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
814         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
815         c4x_pr_ignored): Move to c4x-c.c.
816         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
817         * config/c4x/t-c4x: Update.
818         * config/i370/i370-c.c: New.
819         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
820         (i370_pr_map): Move to i370-c.c.
821         * config/i370/t-i370: New.
823         * doc/tm.texi: Update.
825 2001-10-17  Stan Shebs  <shebs@apple.com>
827         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
828         typo fixes throughout.
829         (machopic_output_stub): Remove some dead code.
831 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
833         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
834         leak.
836 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
838         * Makefile.in (print-rtl.o): Depend on TREE_H.
839         * alias.c (get_alias_set): Make two passes over objects to first
840         see if inner object is access via restricted pointer.
841         Defer allocating alias set for restricted pointer until here.
842         Call find_placeholder with second arg nonzero.
843         Minor cleanups.
844         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
845         set for restricted pointer types.
846         * emit-rtl.c (set_mem_attributes): Set more attributes.
847         (set_mem_align, change_address, adjust_address_1): New functions.
848         (change_address_1): Now static.
849         (adjust_address, adjust_address_nv): Deleted.
850         (replace_equiv_address): Call change_address_1.
851         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
852         (find_placeholder): Get starting point from PLIST arg.
853         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
854         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
855         (adjust_address, adjust_address_nv): New macros.
856         * print-rtl.c (tree.h): New include.
857         (print_rtx, case MEM): Print all memory attributes.
859 2001-10-17  Richard Henderson  <rth@redhat.com>
861         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
863 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
865         * c-tree.texi: Eliminate duplicated word.
866         * cpp.texi: Likewise.
867         * install.texi: Likewise.
868         * invoke.texi: Likewise.
869         * tm.texi: Likewise.
871 2001-10-17  Michael Collison  <collison@isisinc.net>
873         * dsp16xx.c: Fix comment formatting to match GNU standards.
874         (dsp16xx_output_function_prologue): Change type of 'size'
875         parameter from 'int' to HOST_WIDE_INT.
876         (dsp16xx_output_function_epilogue): Change type of 'size'
877         parameter from 'int' to HOST_WIDE_INT.
879 2001-10-16  Richard Henderson  <rth@redhat.com>
881         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
882         * configure, config.in: Rebuild.
884         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
885         (ix86_output_addr_diff_elt): New.
886         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
887         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
888         (JUMP_TABLES_IN_TEXT_SECTION): New.
889         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
890         * config/i386/i386-protos.h: Update.
892         * config/i386/386bsd.h, config/i386/beos-elf.h,
893         config/i386/freebsd-aout.h, config/i386/freebsd.h,
894         config/i386/i386-interix.h, config/i386/i386elf.h,
895         config/i386/linux.h, config/i386/netbsd-elf.h,
896         config/i386/netbsd.h, config/i386/openbsd.h,
897         config/i386/ptx4-i.h, config/i386/rtemself.h,
898         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
899         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
901 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
903         * stmt.c (expand_asm_operands): Update commentary.
905 2001-10-16  Stan Shebs  <shebs@apple.com>
907         * config/darwin.h (GCC_NAME): Remove, no longer used.
908         (NO_MATH_LIBRARY): Ditto.
909         (MATH_LIBRARY): Define to emptiness.
910         (DWARF2_DEBUGGING_INFO): Define.
911         (PREFERRED_DEBUGGING_TYPE): Define.
912         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
913         (EXCEPTION_SECTION): Define.
914         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
915         * config/darwin.c (darwin_encode_section_info): Handle case of
916         DECL_INITIAL being error_mark_node.
918 2001-10-16  Richard Henderson  <rth@redhat.com>
920         * alpha.c (current_file_function_operand): Don't fail for profiling.
921         (direct_call_operand): New.
922         * alpha-protos.h: Declare it.
923         * alpha.h (EXTRA_CONSTRAINT): Use it.
924         (PREDICATE_CODES): Add it.
925         (ASM_OUTPUT_MI_THUNK): Remove.
926         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
927         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
929 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
931         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
932         (JUMP_TABLES_IN_TEXT_SECTION): Define.
934 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
936         * cfg.c (free_edge): Break out from ....
937         (remove_edge): ... here.
938         (clear_edges): Use free_edge.
940         * att.h (ASM_QUAD): Add comment.
941         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
943 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
945         * i386.c (split_ti): New function.
946         (ix86_split_to_parts): Support TImodes.
947         * i386.h (VALID_INT_MODE_P): Add TImode.
948         * i386.md (movdi splitter): Fix.
949         (movti): Support 64bit integer registers.
950         (movti_rex64): New function and splitter.
952         * i386.c (*_cost): Add movsx/movzx cost.
953         * i386.h (struct processor_costs): Add movsx/movzx fields.
954         (RTX_COSTS): Handle zero/sign extend + avoid believing that
955         64bit operations require split on 64bit machine.
956         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
958         * i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
959         (ix86_expand_move): Avoid pushes of memory if size does not match;
960         move long constants to register.
961         (x86_initialize_trampoline): Fix mode.
962         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
963         Use ASM_QUAD on 64bit.
964         * i386.md (test pattern): Disallow impossible constants.
965         (tablejump PIC expander): Fix emitting of sum.
966         (movdicc_rex64): Rename to movdicc.
967         * linux64.h (LINK_SPEC): Add missing '%'.
969 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
971         * tree-inline.c (inlinable_function_p): Leave it up to the
972         front-end to turn -finline-functions into DECL_INLINE set for all
973         functions.
975 2001-10-16  Stan Shebs  <shebs@apple.com>
977         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
979 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
981         * recog.c: Formatting and comment typo fixes.
983         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
984         version in single tree build.
985         * configure: Regenerate.
987 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
989         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
990         MODE arguments to gen_rtx and compare operand with const0_rtx.
992 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
994         * system.h: Poison old unused target macros.
995         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
996         * config/stormy16/stormy16.c: Update references to obsolete macros.
997         * config/stormy16/stormy16.h: Similarly.
998         * config/stormy16/stormy16.md: Similarly.
999         * config/cris/cris.h: Similarly.
1001 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1003         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
1004         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
1005         cpp_register_pragma): Update accordingly.
1007 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1009         * c-pragma.h (cpp_register_pragma_space): Remove.
1010         * cpplib.h (cpp_register_pragma_space): Remove.
1011         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
1012         (cpp_register_pragma_space): Remove.
1013         (cpp_register_pragma): Simplify using lookup_pragma_entry,
1014         add sanity checks.
1015         (do_pragma): Similarly.
1016         (_cpp_init_internal_pragmas): Don't register namespaces.
1018         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
1019         Don't register namespaces.
1020         * cp/lex.c (init_cp_pragma): Similarly.
1021         * doc/tm.texi: Update.
1023 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1025         PR c/4157
1026         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
1028 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
1030         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
1031         add scheduling support.
1032         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
1033         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
1034         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
1037 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
1039         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
1040         missing CONSTANT_P test in core GCC.
1042 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
1044         * cppmain.c (struct printer): New member source.
1045         (scan_translation_unit): Fix spacing at start of lines.
1046         (cb_line_change): Update.
1048         * gcc.dg/cpp/spacing2.c: New test.
1050 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
1052         * config/cris/arit.c: Use __builtin_labs, not abs.
1054         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
1056         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
1057         misplaced sprintf and fprintf argument.
1059 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
1061         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
1062         * configure.in, Makefile.in: Take out obsolete check-po logic.
1063         * configure, config.in: Regenerate.
1065 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
1067         * objc/objc-act.c (finish_objc): Correct precondition for emitting
1068         symtab declarations.
1070 2001-10-12  Stan Shebs  <shebs@apple.com>
1072         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
1073         declarations of arguments and local variables.
1075 2001-10-12  Christopher Faylor  <cgf@redhat.com>
1077         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
1078         ENDFILE_SPEC definition.
1080 2001-10-12  Kazu Hirata  <kazu@hxi.com>
1082         * gthr-dce.h: Fix comment formatting.
1083         * gthr-posix.h: Likewise.
1084         * gthr-single.h: Likewise.
1085         * gthr-solaris.h: Likewise.
1086         * gthr-vxworks.h: Likewise.
1087         * gthr-win32.h: Likewise.
1089 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
1091         * final.c (output_asm_insn): Make sure assembly dialects are
1092         terminated, not nested.  Output `|' and `}' characters if they
1093         don't appear inside assembly dialect selection.
1094         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
1095         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
1096         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
1097         strsetsi_rex_1): Add {} braces.
1099 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1101         * toplev.c (compile_file): Ignore return value from yyparse.
1102         Always pop any nested binding levels after yyparse returns.
1104 2001-10-11  Richard Henderson  <rth@redhat.com>
1106         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
1108 2001-10-11  Richard Henderson  <rth@redhat.com>
1110         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
1111         fall back to add_AT_long_long for large CONST_INT.
1113 2001-10-11  Richard Henderson  <rth@redhat.com>
1115         * config/i386/i386.md (setcc splitters): Add four splitters to
1116         simplify compound compares that simplify_comparison can't handle.
1118 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1120         * cpplex.c (digraph_spellings, token_spellings): Make static.
1122 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1124         * unroll.c (loop_iterations): Fixup last patch.
1126 2001-10-11  Richard Henderson  <rth@redhat.com>
1128         * rtl.h (REG_VTABLE_REF): New.
1129         * rtl.c (reg_note_name): Add it.
1130         * combine.c (distribute_notes): Handle it.
1131         * final.c (final_scan_insn): Handle it.
1132         * tree.def (VTABLE_REF): New.
1133         * expr.c (expand_expr): Handle it.
1134         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
1135         * output.h: Declare them.
1137 2001-10-11  Richard Henderson  <rth@redhat.com>
1139         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
1140         for a DECL_INITIAL.
1142 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
1144         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
1145         available in 64-bit mode.
1147 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1149         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
1150         cris-*-linux* cases.
1151         * config/cris/cris-protos.h: New file.
1152         * config/cris/cris.c: New file.
1153         * config/cris/cris.h: New file.
1154         * config/cris/cris.md: New file.
1155         * config/cris/linux.h: New file.
1156         * config/cris/aout.h: New file.
1157         * config/cris/arit.c: New file.
1158         * config/cris/cris_abi_symbol.c: New file.
1159         * config/cris/mulsi3.asm: New file.
1160         * config/cris/t-aout: New file.
1161         * config/cris/t-cris: New file.
1162         * config/cris/t-elfmulti: New file.
1163         * config/cris/t-linux: New file.
1164         * doc/invoke.texi: Add CRIS options.
1165         * doc/install.texi (Specific): Add blurb for CRIS.
1167 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
1169         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
1170         before using it.
1171         * config/float/i32.h: Likewise.
1172         * config/float-i386.h: Likewise.
1173         * config/float-i64.h: Likewise.
1174         * config/float-m68k.h: Likewise.
1175         * config/float-sh.h: Likewise.
1176         * config/float-sparc.h: Likewise.
1178 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1180         * doc/contrib.texi: Add note about CRIS port to my entry.
1182 2001-10-11  Kazu Hirata  <kazu@hxi.com>
1184         * basic-block.h: Fix formatting.
1185         * bitmap.h: Likewise.
1186         * cpplib.h: Likewise.
1187         * c-tree.h: Likewise.
1188         * diagnostic.h: Likewise.
1189         * flags.h: Likewise.
1190         * ggc.h: Likewise.
1191         * longlong.h: Likewise.
1192         * real.h: Likewise.
1193         * reload.h: Likewise.
1194         * rtl.h: Likewise.
1195         * tree.h: Likewise.
1197 2001-10-10  Richard Henderson  <rth@redhat.com>
1199         * c-parse.in (asm_operand): Allow named operands.
1200         * genconfig.c (max_recog_operands): Set to 29.
1201         * local-alloc.c (requires_inout): Skip multiple digits.
1202         * recog.c (asm_operand_ok): Likewise.
1203         (preprocess_constraints): Use strtoul for matching constraints.
1204         (constrain_operands): Likewise.
1205         * regmove.c (find_matches): Likewise.
1206         * reload.c (find_reloads): Likewise.
1207         * stmt.c (parse_output_constraint): Don't reject in-out
1208         constraint on operands > 9.  Reject '[' in constraint.
1209         (expand_asm_operands): Handle named operands.  Use strtoul
1210         for matching constraints.
1211         (check_operand_nalternatives): Split out from expand_asm_operands.
1212         (check_unique_operand_names): New.
1213         (resolve_operand_names, resolve_operand_name_1): New.
1215         * doc/extend.texi (Extended Asm): Document named operands.
1216         * doc/md.texi (Simple Constraints): Document matching constraints
1217         on operands > 9.
1219 2001-10-10  Richard Henderson  <rth@redhat.com>
1221         * combine.c (try_combine): Handle a SEQUENCE of one insn.
1223         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
1224         (jcc splitters): Add two splitters to simplify compound compares
1225         that simplify_comparison can't handle.
1227 2001-10-10  Richard Henderson  <rth@redhat.com>
1229         * langhooks.c: Include langhooks.h.
1230         * Makefile.in (langhooks.o): Depend on it.
1232 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
1234         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
1235         should not be considered as a no-op.
1236         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
1238 2001-10-10  Stan Shebs  <shebs@apple.com>
1240         * alias.c: Remove uses of "register" specifier in declarations
1241         of arguments and local variables.
1242         * c-common.c: Ditto.
1243         * c-convert.c: Ditto.
1244         * c-decl.c: Ditto.
1245         * c-format.c: Ditto.
1246         * c-semantics.c: Ditto.
1247         * c-typeck.c: Ditto.
1248         * caller-save.c: Ditto.
1249         * calls.c: Ditto.
1250         * cfg.c: Ditto.
1251         * cfgbuild.c: Ditto.
1252         * cfgrtl.c: Ditto.
1253         * collect2.c: Ditto.
1254         * combine.c: Ditto.
1255         * convert.c: Ditto.
1256         * cppexp.c: Ditto.
1257         * cppfiles.c: Ditto.
1258         * cse.c: Ditto.
1259         * dbxout.c: Ditto.
1260         * defaults.h: Ditto.
1261         * df.c: Ditto.
1262         * dwarf2out.c: Ditto.
1263         * dwarfout.c: Ditto.
1264         * emit-rtl.c: Ditto.
1265         * explow.c: Ditto.
1266         * expmed.c: Ditto.
1267         * expr.c: Ditto.
1268         * final.c: Ditto.
1269         * fix-header.c: Ditto.
1270         * floatlib.c: Ditto.
1271         * flow.c: Ditto.
1272         * fold-const.c: Ditto.
1273         * function.c: Ditto.
1274         * gcc.c: Ditto.
1275         * gcse.c: Ditto.
1276         * gen-protos.c: Ditto.
1277         * genattrtab.c: Ditto.
1278         * gencheck.c: Ditto.
1279         * genconfig.c: Ditto.
1280         * genemit.c: Ditto.
1281         * genextract.c: Ditto.
1282         * genflags.c: Ditto.
1283         * gengenrtl.c: Ditto.
1284         * genoutput.c: Ditto.
1285         * genpeep.c: Ditto.
1286         * genrecog.c: Ditto.
1287         * gensupport.c: Ditto.
1288         * global.c: Ditto.
1289         * gmon.c: Ditto.
1290         * graph.c: Ditto.
1291         * haifa-sched.c: Ditto.
1292         * hard-reg-set.h: Ditto.
1293         * hash.c: Ditto.
1294         * integrate.c: Ditto.
1295         * jump.c: Ditto.
1296         * lists.c: Ditto.
1297         * local-alloc.c: Ditto.
1298         * loop.c: Ditto.
1299         * mips-tdump.c: Ditto.
1300         * mips-tfile.c: Ditto.
1301         * optabs.c: Ditto.
1302         * prefix.c: Ditto.
1303         * print-rtl.c: Ditto.
1304         * read-rtl.c: Ditto.
1305         * real.c: Ditto.
1306         * recog.c: Ditto.
1307         * reg-stack.c: Ditto.
1308         * regclass.c: Ditto.
1309         * regmove.c: Ditto.
1310         * reload.c: Ditto.
1311         * reload1.c: Ditto.
1312         * reorg.c: Ditto.
1313         * resource.c: Ditto.
1314         * rtl.c: Ditto.
1315         * rtlanal.c: Ditto.
1316         * scan.c: Ditto.
1317         * sched-deps.c: Ditto.
1318         * sched-rgn.c: Ditto.
1319         * sdbout.c: Ditto.
1320         * simplify-rtx.c: Ditto.
1321         * stmt.c: Ditto.
1322         * stor-layout.c: Ditto.
1323         * toplev.c: Ditto.
1324         * tradcif.y: Ditto.
1325         * tradcpp.c: Ditto.
1326         * tree.c: Ditto.
1327         * unroll.c: Ditto.
1328         * varasm.c: Ditto.
1329         * xcoffout.c: Ditto.
1331 2001-10-10  Richard Henderson  <rth@redhat.com>
1333         * rtl.h (can_reverse_comparison_p): Remove.
1335 2001-10-10  Christopher Faylor <cgf@redhat.com>
1337         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
1338         used.
1340 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1342         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
1343         (Thanks to Chris Faylor for suggesting macro name).
1344         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
1345         WIN32 defines.
1346         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
1347         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
1348         (MATH_LIBRARY): Undef before definition.
1349         (OUTPUT_QUOTED_STRING): Likewise.
1350         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
1352 2001-10-10  Richard Henderson  <rth@redhat.com>
1354         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
1355         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
1356         a tristate comparison value.
1357         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
1359 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1361         PR c++/4512
1362         * unroll.c (loop_iterations): Ignore insns generated by loop
1363         unrolling.
1365         * config.gcc (mips*-*-gnu*): Delete support.
1366         * config/mips/gnu.h: Remove.
1368 2001-10-10  Kazu Hirata  <kazu@hxi.com>
1370         * calls.c: Fix formatting.
1371         * c-decl.c: Likewise.
1372         * cfgcleanup.c: Likewise.
1373         * combine.c: Likewise.
1374         * cppfiles.c: Likewise.
1375         * cpplib.c: Likewise.
1376         * cppmacro.c: Likewise.
1377         * crtstuff.c: Likewise.
1378         * cse.c: Likewise.
1379         * dwarf2out.c: Likewise.
1380         * expmed.c: Likewise.
1381         * expr.c: Likewise.
1382         * fold-const.c: Likewise.
1383         * function.c: Likewise.
1384         * gcse.c: Likewise.
1385         * genattrtab.c: Likewise.
1386         * ggc-page.c: Likewise.
1387         * integrate.c: Likewise.
1388         * libgcc2.c: Likewise.
1389         * loop.c: Likewise.
1390         * optabs.c: Likewise.
1391         * profile.c: Likewise.
1392         * protoize.c: Likewise.
1393         * real.c: Likewise.
1394         * recog.c: Likewise.
1395         * reload1.c: Likewise.
1396         * reload.c: Likewise.
1397         * reorg.c: Likewise.
1398         * resource.c: Likewise.
1399         * sched-rgn.c: Likewise.
1400         * sdbout.c: Likewise.
1401         * stmt.c: Likewise.
1402         * toplev.c: Likewise.
1403         * varasm.c: Likewise.
1405 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
1407         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
1408         * Makefile.in (langhooks.o): Add dependencies.
1410 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
1412         * rs6000.c (rs6000_emit_load_toc_table): Don't
1413         strdup the toc label.
1414         (create_TOC_reference): Likewise.
1416 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1418         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
1419         version default.
1421 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1423         * config/i386/i386.c (ix86_attribute_table): Correct
1424         min_len, max_len fields for dllimport, dllexport and shared.
1426 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1428         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
1429         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
1430         Consistently use "nonzero" instead of "non-zero".
1432 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1434         * acconfig.h: Fix comment formatting.
1435         * c-dump.h: Likewise.
1436         * c-tree.h: Likewise.
1437         * conditions.h: Likewise.
1438         * expr.h: Likewise.
1439         * function.h: Likewise.
1440         * gthr.h: Likewise.
1441         * hwint.h: Likewise.
1442         * integrate.h: Likewise.
1443         * intl.h: Likewise.
1444         * loop.h: Likewise.
1445         * optabs.h: Likewise.
1447 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1449         * c-common.h: Fix comment formatting.
1450         * c-dump.c: Likewise.
1451         * cfg.c: Likewise.
1452         * diagnostic.h: Likewise.
1453         * except.c: Likewise.
1454         * gcc.h: Likewise.
1455         * gcov-io.h: Likewise.
1456         * genattrtab.c: Likewise.
1457         * output.h: Likewise.
1458         * predict.h: Likewise.
1459         * reload1.c: Likewise.
1460         * reload.h: Likewise.
1461         * resource.h: Likewise.
1462         * scan.h: Likewise.
1463         * system.h: Likewise.
1464         * tree.h: Likewise.
1465         * tree-inline.c: Likewise.
1466         * tsystem.h: Likewise.
1467         * varasm.c: Likewise.
1468         * xcoffout.h: Likewise.
1470 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1472         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
1474 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1476         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
1477         config/i386/i386elf.h, config/i386/netbsd-elf.h,
1478         config/i386/netware.h, config/mcore/gfloat.h,
1479         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
1480         config/netware.h, gccbug.in: Update FSF address.
1482 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1484         * c-common.c: Fix comment typos.
1485         * cfgrtl.c: Likewise.
1486         * collect2.c: Likewise.
1487         * cpplex.c: Likewise.
1488         * doloop.c: Likewise.
1489         * dwarf2out.c: Likewise.
1490         * dwarfout.c: Likewise.
1491         * expr.c: Likewise.
1492         * fold-const.c: Likewise.
1493         * gcc.c: Likewise.
1494         * gcov.c: Likewise.
1495         * gcse.c: Likewise.
1496         * global.c: Likewise.
1497         * ifcvt.c: Likewise.
1498         * loop.c: Likewise.
1499         * optabs.c: Likewise.
1500         * protoize.c: Likewise.
1501         * regclass.c: Likewise.
1502         * reorg.c: Likewise.
1503         * rtl.h: Likewise.
1504         * stmt.c: Likewise.
1505         * tree.h: Likewise.
1506         * doc/cpp.texi: Likewise.
1507         * doc/c-tree.texi: Likewise.
1508         * doc/extend.texi: Likewise.
1509         * doc/invoke.texi: Likewise.
1510         * doc/objc.texi: Likewise.
1511         * doc/tm.texi: Likewise.
1513 2001-10-08  Richard Henderson  <rth@redhat.com>
1515         * varasm.c (set_named_section_flags): Initialize "declared".
1517 2001-10-08  Robert Lipe  <robertlipe@usa.net>
1519         * varasm.c (struct in_named_entry): Add declared.
1520         (named_section_first_declaration): New function.
1521         (default_elf_asm_named_section): Use it.
1522         * output.h (named_section_first_declaration): New.
1524 2001-10-08  Richard Henderson  <rth@redhat.com>
1526         * i386.md (movsi_xor): Export.
1527         (setcc peep2): Use it when available; add an alternative to
1528         match zero_extendhisi2_and.
1530 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1532         * romp-protos.h (romp_initialize_trampoline): New function.
1533         * romp.c (romp_initialize_trampoline): Likewise.
1534         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
1535         romp_initialize_trampoline.
1537 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1539         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
1540         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1541         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1542         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1544 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1546         * unroll.c (loop_iterations): Extend check for multiple back edges.
1548 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
1550         * langhooks.h: New file.
1551         * Makefile.in (OBJS): Added langhooks.o.
1552         (c-lang.o): Depend on langhooks.h.
1553         (c-common.o): Don't depend on tree-inline.h.
1554         (tree-inline.o): Depend on toplev.h.
1555         (langhooks.o): New rule.
1556         * c-common.c: Don't include tree-inline.h.
1557         (c_mark_lang_decl): Mark argument c as unused.
1558         (c_common_lang_init): Don't initialize hooks here.
1559         * c-lang.c: Include langhooks.h, then override some macros.
1560         (lang_hooks): Initialize with macros in langhooks.h.
1561         (c_init): Don't initialize hooks here.
1562         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
1563         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
1564         * tree-inline.c: Include toplev.h.  Don't define hook variables.
1565         * tree-inline.h: Don't define hook types nor declare hook
1566         variables.  Move macros to...
1567         * langhooks.c: ... new file, as functions.  Adjust all callers.
1569 2001-10-08  Jeffrey A Law  <law@cygnus.com>
1571         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
1572         purge_mem_unchanging_flag on all instructions, not just on those
1573         before NOTE_INSN_FUNCTION_BEG.
1575 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1577         * cppmacro.c (_cpp_create_definition): Leave comments off.
1579         * doc/cpp.texi: Update.
1581 2001-10-08  DJ Delorie  <dj@redhat.com>
1583         * c-decl.c (grokfield): Make sure the only unnamed fields
1584         we're allowing are either structs or unions.
1585         * doc/extend.texi: Add documentation for the unnamed field
1586         extension.
1588 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
1590         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
1591         * configure.in: Use it.
1592         * configure: Regenerated.
1593         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
1594         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
1596 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1598         * cppfiles.c (open_file): Don't mark zero-length files
1599         never-reread here.  Don't output diagnostics here either.
1600         (stack_include_file): Mark them never-reread here.
1601         (_cpp_read_file): Update.
1603 2001-10-08  Richard Henderson  <rth@redhat.com>
1605         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1607 2001-10-08  Richard Henderson  <rth@redhat.com>
1609         * expr.c (store_expr): When converting a CONST_INT for storage
1610         in a SUBREG, convert it to both SUBREG modes before stripping
1611         the SUBREG.
1613 2001-10-08  Richard Henderson  <rth@redhat.com>
1615         * varasm.c (restore_varasm_status): New.
1616         * function.h: Declare it.
1617         * function.c (pop_function_context_from): Call it.
1619 2001-10-08  Richard Henderson  <rth@redhat.com>
1621         * c-common.h (struct c_lang_decl): Add declared_inline.
1622         * c-tree.h (DECL_DECLARED_INLINE_P): New.
1623         * c-lang.c (c_disregard_inline_limits): Use it.
1624         * c-decl.c (duplicate_decls): Likewise.
1625         (pushdecl, redeclaration_error_message): Likewise.
1626         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
1627         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
1628         Set DECL_INLINE if -finline-functions.
1629         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
1631 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1633         * cppmacro.c (funlike_invocation_p): Move some logic to caller
1634         in enter_macro_context.  Create a padding token in its own context
1635         if necessary when the search for '(' fails.
1636         (enter_macro_context): Update.
1638 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1640         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
1641         genmultilib, toplev.c: Fix spelling errors of "separate" as
1642         "seperate", and corresponding spelling errors of related words.
1644 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1646         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
1647         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
1648         Likewise.
1649         * c-dump.c (dump_option_value_info): Likewise.
1650         * c-format.c (format_length_info, format_char_info,
1651         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
1652         * collect2.c (names): Likewise.
1653         * cppdefault.h (default_include): Likewise.
1654         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
1655         * flow.c (life_analysis): Likewise.
1656         * gcc.c (dir_separator_str, modify_target, option_map,
1657         target_option_translations, spec_list_1, extra_specs_1,
1658         init_spec): Likewise.
1659         * gcov.c (gcov_version_string): Likewise.
1660         * genattr.c (write_units): Likewise.
1661         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
1662         * gengenrtl.c (rtx_definition, defs): Likewise.
1663         * genrecog.c (pred_table): Likewise.
1664         * global.c (global_alloc): Likewise.
1665         * lcm.c (optimize_mode_switching): Likewise.
1666         * local-alloc.c (find_free_reg): Likewise.
1667         * params.h (param_info): Likewise.
1668         * predict.c (predictor_info): Likewise.
1669         * protoize.c (unexpansion_struct): Likewise.
1670         * real.c (bmask): Likewise.
1671         * recog.h (insn_operand_data, insn_data): Likewise.
1672         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
1673         * stmt.c (expand_nl_goto_receiver): Likewise.
1674         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
1675         target_switches, target_options): Likewise.
1676         * tradcif.y (token, tokentab2, yylex): Likewise.
1677         * tree.h (attribute_spec): Likewise.
1679         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
1680         Likewise.
1681         * arc.c (arc_output_function_epilogue): Likewise.
1682         * arm.c (processors, all_cores, all_architectures,
1683         arm_override_options, isr_attribute_arg, isr_attribute_args,
1684         arm_isr_value): Likewise.
1685         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
1686         Likewise.
1687         * c4x.c (c4x_int_reglist): Likewise.
1688         * d30v.c (override_options): Likewise.
1689         * h8300.c (shift_insn): Likewise.
1690         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
1691         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
1692         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
1693         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
1694         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
1695         * i386.h (processor_costs, ix86_cost): Likewise.
1696         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
1697         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
1698         * m68k.c (codes_68881, codes_FPA): Likewise.
1699         * m88k.c (mode_from_align, max_from_align, all_from_align,
1700         best_from_align, m_options): Likewise.
1701         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
1702         * mcore.c (mode_from_align): Likewise.
1703         * mips/elf64.h (UNIQUE_SECTION): Likewise.
1704         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
1705         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
1706         * mips.h (mips_regno_to_class): Likewise.
1707         * ns32k.c (scales): Likewise.
1708         * pa.c (import_string, magic_milli): Likewise.
1709         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
1710         * sparc.c (leaf_reg_remap, sparc_override_options,
1711         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
1712         Likewise.
1713         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
1715 2001-10-07  Dale Johannesen  <dalej@apple.com>
1717         * reload1.c (reload_reg_free_p): Teach register interference
1718         checking that multiple output reloads are emitted in
1719         reverse order.
1720         reload1.c (reload_reg_reaches_end_p):  Ditto.
1721         reload1.c (reloads_conflict):  Ditto.
1723 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1725         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
1726         NULL_TREE inside @code.
1728 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1730         * doc/gcc.texi: Document consistent style of "32-bit",
1731         "Objective-C", and "@code{NULL}".
1733 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1735         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
1736         (cpp_token_len, cpp_spell_token, cpp_output_token,
1737         _cpp_equiv_tokens): Handle it.
1738         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
1739         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
1740         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
1741         error messages.
1743 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1745         * gcc.c (default_compilers): Remove .ada.
1747 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1749         * doc/cppinternals.texi: Update.
1751 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1753         * gcc.c (main): Set this_file_error if the appropriate
1754         compiler for a language has not been installed.
1756 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1758         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
1760 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1762         * gccbug.in (CATEGORIES): Add ada.
1764 2001-10-05  Catherine Moore  <clm@redhat.com>
1766         * config/stormy16/stormy-abi:  Document abi changes.
1767         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
1768         (ICALL_REGS): New register class.
1769         (NUM_ARGUMENT_REGISTERS): Now 6.
1770         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
1771         in registers.
1772         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
1773         * config/stormy16.md (call_internal, call_value_internal,
1774         indirect_jump): Use new 'z' constraint.
1776 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1778         * doc/cppinternals.texi: Update.
1780 2001-10-05  Richard Henderson  <rth@redhat.com>
1782         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
1783         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
1784         the gas section-name-as-label feature.
1786 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1788         * doc/cppinternals.texi: Update.
1790 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1792         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
1793         to ensure valid SImode constants.
1795 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
1797         * Makefile.in (c-decl.o): Depend on tree-inline.h.
1798         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
1799         * c-decl.c: Include tree-inline.h.
1800         (c_expand_body): Call optimize_inline_calls. Determine whether
1801         a function is inlinable upfront, and only clear
1802         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
1803         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
1804         (c_disregard_inline_limits): New function.
1805         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
1806         (c_post_options): Enable tree inlining if inlining is enabled.
1807         Don't inline trees when instrumenting functions.
1808         (c_init): Initialize lang_disregard_inline_limits and
1809         lang_cannot_inline_tree_fn.
1810         * tree-inline.c (initialize_inlined_parameters): Handle calls
1811         with fewer arguments than declared parameters, and fewer
1812         parameters than passed arguments.  Don't assume value is a
1813         DECL.
1814         (declare_return_variable): Convert return value back to the
1815         original type, if it was promoted.
1816         (tree_inlinable_function_p): New function.
1817         (inlinable_function_p): Don't look at DECL_INLINE if we're
1818         inlining all functions.  Make it work with a NULL id.
1819         Re-check DECL_UNINLINABLE after language-specific checks.
1820         * tree-inline.h (tree_inlinable_function_p): Declare it.
1821         * integrate.c (save_for_inline): Don't bother to prepare argvec
1822         when not inlining.
1823         * cse.c (check_for_label_ref): Don't check deleted labels.
1825         * Makefile.in (tree-inline.o): Depend on newly-included headers.
1826         * tree-inline.c: Include headers needed for the functions moved in.
1827         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
1828         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
1829         (copy_body, initialize_inlined_parameters): Likewise.
1830         (declare_return_variable, inlinable_function_p): Likewise.
1831         (expand_call_inline, expand_calls_inline): Likewise.
1832         (optimize_inline_calls, clone_body): Likewise.
1833         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
1834         (copy_tree_r, remap_save_expr): Likewise.
1836 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
1838         * Makefile.in (OBJS): Added tree-inline.o.
1839         (c-common.o): Depend on tree-inline.h.
1840         (tree-inline.o): New target.
1841         * c-common.c: Include tree-inline.h.
1842         (c_mark_lang_decl): Don't mark saved_tree.
1843         (c_common_lang_init): Set lang_anon_aggr_type_p.
1844         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
1845         (struct c_lang_decl): Moved saved_tree to tree_decl.
1846         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
1847         * integrate.h (function_attribute_inlinable_p): Declare it.
1848         * integrate.c (function_attribute_inlinable_p): Export it.
1849         * tree-inline.c: New file.  Define variables declared in...
1850         * tree-inline.h: New file.  Declare functions to be moved to
1851         tree-inline.c.  Define macros and declare types and hooks for
1852         language-specific tree inlining.
1853         (flag_inline_trees): Moved definition from cp/decl2.c.
1854         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
1855         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
1856         (struct tree_decl): Moved saved_tree from c_lang_decl and
1857         inlined_fns from C++'s lang_decl.
1859 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
1861         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
1862         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
1864 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1866         * doc/cppinternals.texi: Update.
1868 2001-10-04  Eric Christopher  <echristo@redhat.com>
1870         * config/mips/mips.c (init_cumulative_args): Remember to set
1871         cum->prototype.
1872         * config.gcc: Redo linux configuration. Add target_cpu_default
1873         of soft-float to all mipsisa32 combinations and tx39.
1874         * config/mips/linux.h: Remove include of mips.h.
1876 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
1878         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
1879         HOST_LDFLAGS and HOST_CPPFLAGS.
1881 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
1883         * c-parse.in (objc_inherit_code, objc_pq_context,
1884         objc_public_flag): Make static.
1885         (objc_interface_context, objc_implementation_context,
1886         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
1887         global tree array in objc/objc-act.[ch].
1888         (methoddef): Remove unnecessary code.
1890         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
1891         Hoist struct definitions to objc-act.h.
1892         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
1893         cat_count): Place declaration in objc-act.h.
1894         (objc_tree_index): Move enumeration to objc-act.h.
1895         (objc_global_trees): Place declaration and macro accessors in
1896         objc-act.h.
1897         (implementation_context): Remove duplicate; use
1898         objc_implementation_context instead:
1899         (method_context): Remove duplicate; use objc_method_context
1900         instead.
1901         (objc_ellipsis_node, objc_method_prototype_template,
1902         implemented_classes, function_type): Move global vars to
1903         objc_global_trees.
1904         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
1905         (build_message_expr): Move actual construction of ObjC message
1906         send nodes to finish_message_expr.
1907         (finish_message_expr): New routine, contains code formerly in
1908         build_message_expr.
1909         * objc/objc-act.h (finish_message_expr): New prototype.
1910         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
1911         declarations; these vars are now part of objc_global_trees.
1912         (objc_tree_index, objc_global_trees): Move definitions from
1913         objc-act.c.
1914         * objc/objc-tree.def: Update copyright info.
1916 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
1918         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
1919         op is NULL.
1920         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
1921         only if TARGET_ARCH64.
1923 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
1925         * doc/extend.texi: Fix some problems with previous checkin.
1926         * doc/invoke.texi: Likewise.
1928 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1930         * cpphash.h: Update comments.
1931         (cpp_context): Update.
1932         (spec_nodes): Remove n__Pragma.
1933         * cppinit.c (cpp_create_reader): Update.
1934         (builtin_array): Add _Pragma.
1935         * cpplib.h: Update comments.
1936         (NODE_DISABLED, BT_PRAGMA): New.
1937         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
1938         * cppmacro.c (struct cpp_macro): Remove disabled.
1939         (builtin_macro): Return int, handle _Pragma, push the new token
1940         on the context stack.
1941         (funlike_invocation_p): Unconstify, update.
1942         (enter_macro_context): Handle builtins here.
1943         (replace_args, push_token_context, push_ptoken_context):
1944         Update for prototype changes.
1945         (_cpp_pop_context): Update.
1946         (cpp_get_token): Don't handle buitins, nor _Pragma here.
1947         (cpp_sys_macro_p): Update.
1948         (_cpp_free_definition): Clear disabled flag.
1949         (_cpp_create_definition): Upate.
1950         * cppmain.c: Update comments.
1952 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
1953                                 Andreas Jaeger <aj@suse.de>,
1954                                 Jan Hubicka    <jh@suse.cz>
1956         * doc/invoke.texi (i386 Options): Document x86-64 options.
1957         (i386 and x86-64 Options): Rename i386 options section.
1959         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
1960         (TARGET_SWITCHES): Add -munwind-info.
1961         (MASK_NO_UNWIND_INFO): New.
1962         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
1963         biarch compilation.
1964         (ASM_OUTPUT_DOUBLE_INT): New.
1966         * config/i386/linux64.h: New spec file for Linux x86-64 support.
1967         * config.gcc: Fix tm_file settings for x86-64.
1968         * config/i386/x86-64.h: New file with OS independent x86-64
1969         definitions.
1970         * config/i386/biarch64.h: New file used to configure compiler
1971         to biarch/64bit compilation.
1973         * config/i386/i386.c: (override_options): Set flags default
1974         for 64bit compilation.
1976 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1978         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
1979         (ix86_expand_int_movcc): Optimize DImode conditional moves with
1980         constants on x86_64.
1981         (ix86_attr_length_immediate_default): Support MODE_DI.
1982         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
1983         condition.
1984         (indirect_jump, tablejump): Turn into expander.
1986 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1988         * c-common.c (c_format_attribute_table): Make format and
1989         format_arg attributes apply to function types rather than to
1990         decls.
1991         (is_valid_printf_arglist): Construct an attribute list and pass
1992         that to check_function_format rather than a name.
1993         * c-common.h (check_function_format): Adjust prototype.
1994         * c-decl.c (duplicate_decls): Preserve attributes from type of
1995         built-in decl when allowing for harmless conflict in types.
1996         * c-format.c (record_function_format,
1997         record_international_format, function_format_list,
1998         international_format_info, international_format_list): Remove.
1999         (function_format_info): Remove next, name and assembler_name.
2000         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
2001         (decode_format_attr): New.
2002         (handle_format_attribute): Handle receiving a type rather than a
2003         decl.  Call decode_format_attr.  Store format information in a
2004         function_format_info.
2005         (handle_format_arg_attribute): Correct comment.  Handle receiving
2006         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
2007         arg_num.
2008         (check_format_info_recurse, check_format_info_main): Take argument
2009         numbers as unsigned HOST_WIDE_INT.
2010         (check_function_format): Take a list of attributes from the
2011         function type rather than a name or assembler name.  Check for
2012         format attributes in that list and the attributes on the type of
2013         the current function rather than looking through
2014         function_format_list.
2015         (check_format_info): Use unsigned HOST_WIDE_INT for argument
2016         numbers.
2017         (check_format_info_recurse): Take format_arg attributes from the
2018         type of the function calls rather than using
2019         international_format_list.  Allow for multiple format_arg
2020         attributes.
2021         * c-typeck.c (build_function_call): Pass type attributes to
2022         check_function_format rather than name or assembler name.  Don't
2023         require there to be a name or assembler name to check formats.
2025 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2027         * attribs.c (decl_attributes): Possibly call
2028         insert_default_attributes to insert default attributes on
2029         functions in a lazy manner.
2030         * builtin-attrs.def: New file; define the default format and
2031         format_arg attributes.
2032         * c-common.c (c_format_attribute_table): Move to earlier in the
2033         file.
2034         (c_common_nodes_and_builtins): Initialize format_attribute_table.
2035         (enum built_in_attribute, built_in_attributes,
2036         c_attrs_initialized, c_init_attributes,
2037         c_common_insert_default_attributes): New.
2038         (c_common_lang_init): Don't initialize format_attribute_table.  Do
2039         call c_init_attributes.
2040         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
2041         * c-common.h (init_function_format_info): Don't declare.
2042         (c_common_insert_default_attributes): Declare.
2043         * c-decl.c (implicitly_declare, builtin_function): Call
2044         decl_attributes.
2045         (init_decl_processing): Don't call init_function_format_info.
2046         (insert_default_attributes): New.
2047         * c-format.c (handle_format_attribute,
2048         handle_format_arg_attribute): Be quiet about inappropriate
2049         declaration when applying default attributes.
2050         (init_function_format_info): Remove.
2051         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
2052         (insert_default_attributes): Declare.
2054 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2056         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
2058 2001-10-01  Jim Wilson  <wilson@redhat.com>
2060         * sched-deps.c (add_dependence): When elide conditional dependence,
2061         check that insn doesn't modify cond2.
2063 2001-10-01  Dale Johannesen  <dalej@apple.com>
2065         * config/rs6000/rs6000.h (enum processor_type): Add support
2066         for 7400 (G4) and 7450.
2067         (RTX_COSTS): Ditto.
2068         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
2069         (rs6000_issue_rate): Ditto.
2070         (rs6000_adjust_cost): Fix cycle counts for compares.
2071         (debug_stack_info):  Fix an obvious typo.
2072         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
2073         * doc/invoke.texi: Document.
2074         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
2075         for Darwin.
2076         (PROCESSOR_DEFAULT): Ditto.
2078 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
2080         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
2081         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
2082         later recursive make invocation.
2084 2001-10-01  Hans Boehm  <boehm@acm.org>
2086         * optabs.c (emit_libcall_block): When using non-call exceptions,
2087         don't add REG_LIBCALL reg notes to trapping calls.
2089 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2091         * flow.c (propagate_block_delete_libcall): Remove unused first arg
2092         (propagate_one_insn):  Update for above change
2094 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2096         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
2097         _Unwind_GetTextRelBase): Argument is unused.
2099 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2101         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
2102         Loop through NOPs, placeholders, and components.
2103         Don't go through NOPs if change mode.
2104         (record_alias_subset): Do nothing if SUBSET and SET are the same.
2105         * emit-rtl.c (set_mem_alias_set): Enable check.
2106         * expr.c (find_placeholder): New function.
2107         (expand_expr, case PLACEHOLDER_EXPR): Use it.
2108         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
2109         to modify it and avoid unneeded copies.
2110         * expr.h (expand_expr): Always define.
2111         (find_placeholder): New declaration.
2113 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2115         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
2116         operand 2 is the stack pointer.
2117         ("addr-peephole"): Fix address computation peephole when operand 2
2118         is the stack pointer.
2120 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2122         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
2123         (ix86_setup_incoming_varargs): Likewise.
2125 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
2127         * stor-layout.c (layout_type): Don't complain about too-large
2128         array here.
2130 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2132         * function.c (keep_stack_depressed): Don't use delete_insn.
2134         * expr.h (set_mem_alias_set): Move decl to here.
2135         * rtl.h (mem_attrs): New typedef and struct.
2136         (union rtunion_def): Add field for mem_attrs.
2137         (X0MEMATTR, MEM_ATTRS): New macros.
2138         (MEM_ALIAS_SET): Use MEM_ATTRS.
2139         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
2140         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
2141         (set_mem_alias_set): Delete decl from here.
2143         * alias.c (set_mem_alias_set): Delete from here.
2144         * emit-rtl.c (mem_attrs_htab): New variable.
2145         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
2146         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
2147         (mem_attrs_mark, get_mem_attrs): Likewise.
2148         (gen_rtx_MEM): Clear MEM_ATTRS.
2149         (set_mem_attributes): Move to here.
2150         (set_mem_alias_set): Likewise, and call get_mem_attrs.
2151         (init_emit_once): const_int_htab now deletable htab.
2152         Initialize mem_attrs_htab.
2153         * explow.c (set_mem_attributes): Delete from here.
2154         * function.c (put_var_into_stack): Clear MEM_ATTRS.
2155         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
2156         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
2157         * reload1.c (reload): Rework changing REG to MEM.
2159 2001-09-30  H.J. Lu <hjl@gnu.org>
2161         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
2162         * config.in: Rebuild.
2164 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2166         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
2167         ("tsthi_1"): Avoid allocation in register y.
2168         ("*movqi_68hc12"): Reorganize and fix constraints.
2169         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
2170         ("addqi3"): Likewise.
2171         ("addhi3"): Fix constraints.
2172         ("*logicalhi3_zexthi"): Disparage soft registers.
2174 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2176         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
2177         to tmp reg.
2179 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2181         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
2182         that we use setjmp/longjmp exceptions.
2184 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2186         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
2187         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
2188         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2189         _cpp_pool_alloc, _cpp_next_chunk): Remove.
2190         (_cpp_extend_buff, BUFF_ROOM): Update.
2191         (_cpp_append_extend_buff): New.
2192         (struct cpp_reader): Remove macro_pool, add a_buff.
2193         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
2194         macro_pool.
2195         (cpp_destroy): Free a_buff instead of macro_pool.
2196         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
2197         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2198         _cpp_pool_alloc, ): Remove.
2199         (parse_number, parse_string): Update use of _cpp_extend_buff.
2200         (_cpp_extend_buff): Update.
2201         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
2202         * cpplib.c (glue_header_name, parse_answer):
2203         Update use of _cpp_extend_buff.
2204         (cpp_register_pragma, cpp_register_pragma_space): Use
2205         _cpp_aligned_alloc.
2206         (do_assert, do_unassert): Check for EOL, update.
2207         * cppmacro.c (stringify_arg, collect_args): Update to use
2208         _cpp_extend_buff and _cpp_append_extend_buff.
2209         (save_parameter, parse_params, alloc_expansion_token,
2210         _cpp_create_definition): Rework memory management.
2212 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
2214         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
2215         update md_exec_prefix.
2216         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
2217         to string constant.
2219 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
2221         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
2222         (SELECT_CC_MODE): Use s390_select_ccmode.
2223         * config/s390/s390-protos.h (s390_select_ccmode): Add.
2224         * config/s390/s390.c (s390_select_ccmode): New.
2225         (s390_match_ccmode): Add CCLmode.
2226         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
2227         (output_branch_condition, output_inverse_branch_condition): Removed.
2228         (print_operand): Use s390_branch_condition_mnemonic.
2229         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
2230         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
2231         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
2233         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
2234         when converting conditional branches to far branches.
2235         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
2236         cmpint_di): Use CCSmode instead of CCUmode.
2238         * config/s390/s390.c (legitimate_la_operand_p): New.
2239         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
2240         * config/s390/s390.md (movsi): Convert load address patterns to
2241         arithmetic operations when necessary.
2242         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
2243         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
2244         (*do_la_reg_0): Don't use before reload.
2246         * config/s390/s390.c (legitimize_address): Make more efficient
2247         use of two-register addressing mode.
2249         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
2250         with -mno-backchain in some corner cases.
2252         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
2254 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
2256         * reload.c (find_reloads): Mark new USE insns with QImode.
2257         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
2258         find_reloads_subreg_address): Likewise.
2259         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
2260         encountered.
2261         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
2262         CLOBBERs.
2263         (reload): Make sure there are no USEs with mode other than
2264         VOIDmode.  At the end, remove those marked with QImode.
2266 2001-09-29  Per Bothner  <per@bothner.com>
2268         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
2269         * Makefile.in (includedir):  Rename to local_includedir.
2270         (includedir):  Define as $(prefix)/include.
2271         * config.in (PREFIX_INCLUDE_DIR):  New variable.
2272         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
2274 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
2276         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
2277         storehps builtins.
2278         * doc/extend.texi (Vector Extensions): New node.
2279         * doc/invoke.texi (Machine Dependent Options): Add documentation for
2280         i386 -mmmx, -msse, -m3dnow.
2282 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2284         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
2286 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2288         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
2290         * doc/invoke.texi (Optimize Options): Delete spurious @table.
2292 2001-09-28  Richard Henderson  <rth@redhat.com>
2294         * varasm.c (assemble_integer): Bound alignment check by
2295         BIGGEST_ALIGNMENT.
2297         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
2299 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2301         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
2303 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2305         Mostly from Graham Stott  <grahams@redhat.com>
2306         * c-common.c (type_for_mode): Add support for V2SFmode.
2307         * tree.c (build_common_tree_nodes_2): Likewise.
2308         * tree.h (enum tree_index, global_trees): Likewise.
2309         * config/i386/i386.c (x86_3dnow_a): New variable.
2310         (override_options): Support 3Dnow extensions.
2311         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
2312         Athlon's version of 3Dnow.
2313         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
2314         (ix86_expand_builtin): Handle them.
2315         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
2316         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
2317         TARGET_3DNOW_A): New macros.
2318         (TARGET_SWITCHES): Add 3Dnow switches.
2319         (VALID_MMX_REG_MODE_3DNOW): New macro.
2320         (VECTOR_MODE_SUPPORTED_P): Use it.
2321         (enum ix86_builtins): Add entries for 3Dnow builtins.
2322         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
2323         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
2324         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
2325         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
2326         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
2327         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
2328         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
2329         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
2330         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
2331         sfence_insn, prefetch): Make these available if TARGET_SSE or
2332         TARGET_3DNOW_A.
2334 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
2336         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
2337         ix86_va_start, ix86_build_va_list): Declare.
2338         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
2339         ix86_va_start, ix86_build_va_list): New global functions.
2340         * i386.md (sse_prologue_save_insn): New insn.
2341         (sse_prologue_save): New expander.
2342         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
2343         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
2345 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2347         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
2348         Use size_t everywhere, make definitions consistent with
2349         prototypes.
2351 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
2353         * gcse.c (replace_store_insn): Use delete_insn.
2354         * loop.c (move_movables): Likewise; avoid delete_insn
2355         from clobbering notes moved elsewhere.
2356         (check_dbra_loop): Use delete_insn.
2357         * ssa.c (convert_from_ssa): Likewise.
2358         * cse.c (cse_insn): Use delete_insn.
2360 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2362         * cpphash.h (struct cpp_buff): Make unsigned.
2363         (_cpp_get_buff): Take length of size_t.
2364         (_cpp_unaligned_alloc): New.
2365         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
2366         (struct cpp_reader): Remove ident_pool.  Add u_buff.
2367         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
2368         (cpp_destroy): Destroy u_buff, not ident_pool.
2369         * cpplex.c (parse_number, parse_string, save_comment,
2370         cpp_token_as_text): Update to use the unaligned buffer.
2371         (new_buff): Make unsigned.
2372         (_cpp_unaligned_alloc): New.
2373         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
2374         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
2375         Similarly.
2376         (collect_args): Make unsigned.
2378 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
2380         * cpplex.c (cpp_output_token): Use a putc loop for
2381         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
2383         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
2384         * configure, config.in: Regenerate.
2385         * system.h: Replace fwrite and fprintf with their unlocked
2386         variants if available.
2388 2001-09-27  Richard Henderson  <rth@redhat.com>
2390         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
2391         in favour of .eh_frame.
2393 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
2395         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
2396         to macros.
2397         (LIBCALL_VALUE): Likewise.
2399 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2401         * cpphash.h: Update comment.
2402         * cpplex.c: Update comments.
2403         (_cpp_can_paste): Remove.
2404         * cpplib.h (_cpp_can_paste): Remove.
2405         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
2406         lexer rather than _cpp_can_paste.
2408 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2410         * doc/cppinternals.texi: Update.
2412 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2414         * cpphash.h (struct cpp_pool): Remove locks and locked.
2415         (struct cpp_context): Add member buff.
2416         (struct cpp_reader): Remove member argument_pool.
2417         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2418         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
2419         * cpplex.c (chunk_suitable): Remove pool argument.
2420         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
2421         (new_buff, _cpp_extend_buff): Update.
2422         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
2423         which buffer is returned.
2424         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
2425         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2426         * cppmacro.c (lock_pools, unlock_pools): Remove.
2427         (push_ptoken_context): Take a _cpp_buff.
2428         (enter_macro_context): Pool locking removed.
2429         (replace_args): Use a _cpp_buff for the replacement list with
2430         arguments replaced.
2431         (push_token_context): Clear buff.
2432         (expand_arg): Use _cpp_pop_context.
2433         (_cpp_pop_context): Free a context's buffer, if any.
2435 2001-09-26  DJ Delorie  <dj@redhat.com>
2437         * c-typeck.c (digest_init): Check for sizeless arrays.
2439 2001-09-26  Richard Henderson  <rth@redhat.com>
2441         * optabs.c (init_one_libfunc): Create a dummy function type
2442         instead of using error_mark_node.
2444 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2446         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
2447         _cpp_extend_buff, _cpp_free_buff): New.
2448         (struct cpp_reader): New member free_buffs.
2449         * cppinit.c (cpp_destroy): Free buffers.
2450         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
2451         _cpp_extend_buff, _cpp_free_buff): New.
2452         * cpplib.h (struct cpp_options): Remove unused member.
2453         * cppmacro.c (collect_args): New.  Combines the old parse_arg
2454         and parse_args.  Use _cpp_buff for memory allocation.
2455         (funlike_invocation_p, replace_args): Update.
2457 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
2459         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
2461 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
2463         * except.c (sjlj_mark_call_sites): Change address inside sequence.
2465 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2467         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
2468         glibc.
2470 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
2471             Jim Wilson  <wilson@redhat.com>
2473         * doc/install.texi (Specific, ia64-*-linux): Document.
2475 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2477         * Makefile.in (cfgrtl.o): Add.
2478         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2479         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2480         free_aux_for_edge): Declare.
2481         * cfg.c
2482         (HAVE_return): Undefine.
2483         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2484         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2485         free_aux_for_edge): New global functions.
2486         (first_delete_block): New static variable.
2487         (init_flow): Clear first_delete_block.
2488         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
2489          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
2490          try_redirect_by_replacing_jump, last_loop_beg_note,
2491          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
2492          delete_insn, delete_insn_chain, create_basic_block_structure,
2493          create_basic_block, flow_delete_block, compute_bb_for_insn,
2494          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
2495          set_block_for_new_insns, split_block, merge_blocks_nomove,
2496          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
2497          redirect_edge_and_branch, force_nonfallthru_and_redirect,
2498          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
2499          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
2500          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
2501          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2502          purge_all_dead_edges): Move to ....
2503         * cfgrtl.c: New file; .... Here.
2505         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
2506         (reroder_basic_block): Use alloc_aux_for_blocks.
2507         * predict.c (estimate_bb_frequencies): Likewise; use
2508         alloc_aux_for_edges.
2509         * profile.c (compute_branch_probabilities): Likewise.
2510         (branch_prob): Likewise.
2511         * reg-stack.c (reg_to_stack): Likewise.
2513         * emit-rtl.c (emit_insns_after): Never return NULL.
2515         * basic-block.h (set_block_for_new_insns): Delete.
2516         * cfgrtl.c (set_block_for_new_insns): Delete.
2518         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
2519         calls when crossjumping.
2521         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
2522         * unroll.c (copy_loop_body): Use delete_insn.
2524         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
2525         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
2526         keep_stack_depressed): Likewise.
2527         * gcse.c (cprop_cc0_jump): Likewise.
2528         * local-alloc.c (update_equiv_regs): Likewise.
2529         * loop.c (scan_loop, loop_delete_insns): Likewise.
2530         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
2531         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
2532         delete_output_reload, delete_address_reloads_1,
2533         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
2534         Likewise.
2535         * sibcall.c (replace_call_placeholder): Likewise.
2536         * cse.c (cse_insn): Likewise.
2538 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2540         From Graham Stott  <grahams@redhat.com>
2541         (def_builtin): Only define builtins appropriate for target_flags.  All
2542         callers changed.
2543         (builtin_decsription): Add new field mask which is used to determine
2544         when to define the builtin via the macro def_builtin.
2546         (bdesc_comi): Initialise new mask fields.
2547         (bdesc_2srg): Likewise.
2548         (bdesc_1arg): Likewise.
2550         * config/i386/i386.c (ix86_init_builtins): Correct return type
2551         building v4hi_ftype_v4hi_int_int tree node.
2552         (ix86_expand_sse_comi): Fix typo swapping operands.
2553         Don't swap comparision condition, it is already swapped.
2554         (ix86_expand_sse_compare): Before swapping operands
2555         move operand 1 into new rtx and not the target rtx.
2556         Don't swap comparison condition, it is already swapped.
2557         Always check whether we need to create a new TARGET.
2559         * config/i386/i386.md: (sse_comi) Fix typos.
2560         (sse_ucomi): Likewise.
2561         (cvtss2si): Fix operand 0 contraint.
2562         (cvttss2si): Likewise.
2563         (sse_unpckhps): Fix mode for operand 2.
2564         (sse_unpcklps): Likewise.
2566 2001-09-25  Graham Stott  <grahams@redhat.com>
2568         * sibcall.c (skip_copy_to_return_value): Tighten return value
2569         copy check.
2571 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
2573         * rs6000.c (lwa_operand): Address must be word aligned.
2575 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2577         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
2578         number has been set.
2579         (type_hash_mark): Mark type itself.
2581 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2583         * c-lex.c (cb_def_pragma): Update.
2584         (c_lex): Update, and skip padding.
2585         * cppexp.c (lex, parse_defined): Update, remove unused variable.
2586         * cpphash.h (struct toklist): Delete.
2587         (union utoken): New.
2588         (struct cpp_context): Update.
2589         (struct cpp_reader): New members eof, avoid_paste.
2590         (_cpp_temp_token): New.
2591         * cppinit.c (cpp_create_reader): Update.
2592         * cpplex.c (_cpp_temp_token): New.
2593         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
2594         (cpp_output_token): Don't print leading whitespace.
2595         (cpp_output_line): Update.
2596         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
2597         do_include_common, do_line, do_ident, do_pragma,
2598         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
2599         parse_assertion): Update.
2600         (get_token_no_padding): New.
2601         * cpplib.h (CPP_PADDING): New.
2602         (AVOID_LPASTE): Delete.
2603         (struct cpp_token): New union member source.
2604         (cpp_get_token): Update.
2605         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
2606         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
2607         replace_args, quote_string, stringify_arg, parse_arg, next_context,
2608         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
2609         _cpp_backup_tokens, _cpp_create_definition): Update.
2610         (push_arg_context): Delete.
2611         (padding_token, push_token_context, push_ptoken_context): New.
2612         (make_string_token, make_number_token): Update, rename.
2613         (cpp_get_token): Update to handle tokens as pointers to const,
2614         and insert padding appropriately.
2615         * cppmain.c (struct printer): New member prev.
2616         (check_multiline_token): Constify.
2617         (do_preprocessing, cb_line_change): Update.
2618         (scan_translation_unit): Update to handle spacing.
2619         * scan-decls.c (get_a_token): New.
2620         (skip_to_closing_brace, scan_decls): Update.
2621         * fix-header.c (read_scan_file): Update.
2623         * doc/cpp.texi: Update.
2625 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2627         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
2628         leak by passing malloc'ed pointer to reconcat, not concat.
2630 2001-09-24  DJ Delorie  <dj@redhat.com>
2632         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
2634 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
2636         * flow.c (delete_dead_jumptables): Delete jumptable if the only
2637         reference is from the literal pool.
2639 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
2641         * doc/install.texi (Final install): Request additional information
2642         in mail about successful builds.
2644 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2646         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
2647         initial value of return pointer register instead of value in frame-20.
2648         Revise comments.
2650 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2652         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
2653         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
2654         the libcall if there isn't a referenced identifier for the symbol.
2656 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2658         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
2659         non 64-bit machines.  Use these as a plabel for the trampoline.
2660         (TRAMPOLINE_SIZE): Adjust size for new words.
2661         (INITIALIZE_TRAMPOLINE): Initialize new words.
2662         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
2663         pointer to the plabel in the trampoline.
2665 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2667         * pa.c (function_arg): Pass floating arguments in both general and
2668         floating registers in indirect (dynamic) calls when generating code
2669         for the 32 bit ABI and the HP assembler.
2671 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2673         * doc/install.texi: Markup fixes.
2674         Use Solaris 2, SunOS 4 as appropriate.
2675         (Specific, *-*-solaris2*): Explain this.
2676         Unconditionally warn against /usr/ucb tools.
2677         Remove Sun as warning, obsolete.
2678         Move X11 header bug workaround here, update patches.
2679         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
2680         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
2682 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
2684         * errors.h (warning, error, fatal, internal_error): Don't mark
2685         with ATTRIBUTE_PRINTF_n.
2686         * toplev.h (internal_error, fatal_io_error, warning, error,
2687         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
2688         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
2689         Likewise.
2691 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2693         * function.c (pop_function_context_from): var_refs_queue
2694         and temp slots now in GC memory.
2695         (mark_function_status, free_after_compilation): Likewise;
2696         also struct function now in GC memory.
2697         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
2698         (combine_temp_slots): Likewise.
2699         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
2700         (prepare_function_start): Use GC memory for struct function.
2701         (mark_temp_slot): Deleted.
2702         (gcc_mark_struct_function): struct function now in GC memory.
2704         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
2705         code for division, not modulus.
2707         * rtl.def (MEM): Remove obsolete part of comment.
2709 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
2711         * c-format.c (init_function_format_info): Check __builtin_printf
2712         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
2713         in gnu89 mode.
2715 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2717         * c-common.c (format_attribute_table): Remove decl.
2718         * tree.h (format_attribute_table, lang_attribute_table): New decls.
2719         (lang_attribute_common): Likewise.
2721         * function.c (fix_lexical_address): Use set_mem_alias_set.
2722         (expand_function_start): Likewise.
2723         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
2725         * varasm.c (output_constant): Fix unused variable warning.
2727         * attribs.c: New file, from c-common.c.
2728         (attribute_tables): Now four elements.
2729         (format_attribute_table, lang_attribute_common): New variables.
2730         (init_attributes): Reflect above changes.
2731         (handle_mode_attribute): Delete check for wider than uintmax.
2732         * c-common.c: Delete parts moved to attribs.c.
2733         (enum attrs): Deleted; unused.
2734         (c_format_attribute_table): New variable.
2735         (c_common_lang_init): Initialize format_attribute_table with it.
2736         * c-common.h (decl_attributes): Remove decl.
2737         * tree.h (decl_attribute): Move it to here.
2738         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
2739         (attribs.o): New rule.
2741 2001-09-22  Andreas Jaeger  <aj@suse.de>
2743         * builtins.c (c_getstr): Remove unused variable.
2745 2001-09-21  Richard Henderson  <rth@redhat.com>
2747         * reload1.c (reload): Use delete_insn instead of splatting
2748         NOTE_INSN_DELETED.
2750 2001-09-21  Richard Henderson  <rth@redhat.com>
2752         * reload.c (push_secondary_reload): Don't check for "=" in output
2753         constraint after ""->ALL_REGS check.
2755 2001-09-21  Richard Henderson  <rth@redhat.com>
2757         * predict.c (expected_value_to_br_prob): Use pc_set.
2759         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
2760         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
2762 2001-09-21  Richard Henderson  <rth@redhat.com>
2764         * rtl.h (LCT_RETURNS_TWICE): New.
2765         * calls.c (emit_call_1): Set current_function_calls_setjmp for
2766         ECF_RETURNS_TWICE.
2767         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
2768         to ECF_RETURNS_TWICE.
2769         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
2770         call to setjmp.
2772         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
2774         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
2775         (JMP_BUF_SIZE): New.
2777 2001-09-21  Richard Henderson  <rth@redhat.com>
2779         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
2780         to R8_REGS.
2782 2001-09-21  Richard Henderson  <rth@redhat.com>
2784         * tree.def (FDESC_EXPR): New.
2785         * expr.c (expand_expr): Handle it.
2786         * varasm.c (initializer_constant_valid_p): Likewise.
2787         (output_constant): Likewise.
2788         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2789         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2790         (ASM_OUTPUT_FDESC): New.
2791         * doc/tm.texi: Document the new macros.
2793 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2795         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
2796         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
2797         once merging is complete.
2799 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2801         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
2803 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2805         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
2806         that would be invalid after a merge.
2808 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
2810         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
2811         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
2812         remove some labels.
2813         (flow_delete_insn): This one.
2814         (delete_insn_chain): Rename from ...; do not care labels.
2815         (flow_delete_insn_chain): ... this one.
2816         (flow_delete_block): Remove the insns one BB has been expunged.
2817         (merge_blocks_nomove): Likewise.
2818         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
2819         updating BB boundaries.
2820         (tidy_fallthru_edge): Likewise.
2821         (commit_one_edge_insertion): Likewise.
2822         * cfgbuild.c (find_basic_block): Likewise.
2823         (find_basic_blocks_1): Likewise.
2824         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
2825         (try_crossjump_to_edge): Likewise.
2826         (try_optimize_cfg): Likewise.
2827         * cse.c (delete_trivially_dead_insns): Likewise.
2828         * df.c (df_insn_delete): Likewise.
2829         * doloop.c (doloop_modify): Use delete_related_insns.
2830         * emit-rtl.c (try_split): Likewise.
2831         (remove_insn): Update BB boundaries.
2832         * expect.c (connect_post_landing_pads): Use delete_related_insns.
2833         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
2834         updating BB boundaries.
2835         (propagate_block_delete_insn): Likewise.
2836         (propagate_block_delete_libcall): Likewise.
2837         * function.c (delete_handlers): Use delete_related_insns.
2838         (thread_prologue_and_epilogue_insns): Likewise.
2839         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
2840         * genpeep.c (gen_peephole): Use delete_related_insns.
2841         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
2842         BB boundaries.
2843         (find_cond_trap): Likewise.
2844         * integrate.c (save_for_inline): Use delete_related_insns.
2845         (copy_insn_list): Likewise.
2846         * jump.c (pruge_linie_number_notes): Likewise.
2847         (duplicate_loop_exit_test): Likewise.
2848         (delete_computation): Likewise.
2849         (delete_related_insn): Rename from ...; use delete_insn
2850         (delete_insn): ... this one.
2851         (redirect_jump): Use delete_related_insns.
2852         * loop.c (scan_loop): Likewise.
2853         (move_movables): Likewise.
2854         (find_and_verify_loops): Likewise.
2855         (check_dbra_loop): Likewise.
2856         * recog.c (peephole2_optimize): Likewise.
2857         * reg-stack.c (delete_insn_for_stacker): Remove.
2858         (move_for_stack_reg): Use delete_insn.
2859         * regmove.c (combine_stack_adjustments_for_block): Likewise.
2860         * reload1.c (delete_address_reloads): Use delete_related_insns.
2861         (fixup_abnormal_edges): Use delete_insn.
2862         * recog.c (emit_delay_sequence): Use delete_related_insns.
2863         (delete_from-delay_slot): Likewise.
2864         (delete_scheduled_jump): likewise.
2865         (optimize_skip): Likewise.
2866         (try_merge_delay_insns): Likewise.
2867         (full_simple_delay_slots): Likewise.
2868         (fill_slots_from_thread): Likewise.
2869         (relax_delay_slots): Likewise.
2870         (make_return_insns): Likewise.
2871         (dbr_schedule): Likewise.
2872         * rtl.h (delete_insn): Rename to delete_related_insns.
2873         (delete_insn, delete_insn_chain): New prototypes.
2874         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
2875         by df_insn_delete already.
2876         * ssa-dce.c (delete_insn_bb): Use delete_insn.
2877         * ssa.c (convert_from_ssa): Use delete_related_insns.
2878         * unroll.c (unroll_loop): Likewise.
2879         (calculate_giv_inc): Likewise.
2880         (copy_loop_body): Likewise.
2882         * i386-protos.h (ix86_libcall_value, ix86_function_value,
2883         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2884         ix86_return_in_memory, ix86_function_value): Declare.
2885         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
2886         new static valurables.
2887         (x86_64_reg_class): New enum
2888         (x86_64_reg_class_name): New array.
2889         (classify_argument, examine_argument, construct_container,
2890          merge_classes): New static functions.
2891         (optimization_options): Enable flag_omit_frame_pointer and disable
2892         flag_pcc_struct_return on 64bit.
2893         (ix86_libcall_value, ix86_function_value,
2894         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2895         ix86_return_in_memory, ix86_function_value): New global functions.
2896         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
2897         (function_arg_advance): Handle x86_64 passing conventions.
2898         (function_arg): Likewise.
2899         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
2900         (RETURN_IN_MEMORY): Move offline.
2901         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
2902         (FUNCTION_VALUE_REGNO_P): New macro.
2903         (FUNCTION_ARG_REGNO_P): Move offline.
2904         (struct ix86_args): Add maybe_vaarg.
2905         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
2906         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
2908 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
2910         * s390.md: Changed attributes for scheduling.
2911         * s390.c: (s390_adjust_cost, s390_adjust_priority)
2912         Changed scheduling
2914 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2916         Table-driven attributes.
2917         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
2918         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
2919         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
2920         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
2921         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
2922         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
2923         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
2924         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2925         * tree.h (struct tree_decl): Change machine_attributes to
2926         attributes.
2927         * doc/c-tree.texi: Document that all attributes are now attached
2928         to decls and types.
2929         * c-common.c (add_attribute, attrtab, attrtab_idx,
2930         default_valid_lang_attribute, valid_lang_attribute): Remove.
2931         (attribute_tables, attributes_initialized,
2932         c_common_attribute_table, default_lang_attribute_table): New
2933         variables.
2934         (handle_packed_attribute, handle_nocommon_attribute,
2935         handle_common_attribute, handle_noreturn_attribute,
2936         handle_unused_attribute, handle_const_attribute,
2937         handle_transparent_union_attribute, handle_constructor_attribute,
2938         handle_destructor_attribute, handle_mode_attribute,
2939         handle_section_attribute, handle_aligned_attribute,
2940         handle_weak_attribute, handle_alias_attribute,
2941         handle_no_instrument_function_attribute,
2942         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
2943         handle_no_limit_stack_attribute, handle_pure_attribute): New
2944         functions.
2945         (init_attributes, decl_attributes): Rewrite to implement
2946         table-driven attributes.
2947         * c-common.h (enum attribute_flags): Move to tree.h.
2948         * c-format.c (decl_handle_format_attribute,
2949         decl_handle_format_arg_attribute): Rename to
2950         handle_format_attribute and handle_format_arg_attribute.  Update
2951         for table-driven attributes.
2952         * c-common.h (decl_handle_format_attribute,
2953         decl_handle_format_arg_attribute): Remove prototypes.
2954         (handle_format_attribute, handle_format_arg_attribute): Add
2955         prototypes.
2956         * c-decl.c (grokdeclarator): Handle attributes nested inside
2957         declarators.
2958         * c-parse.in (setattrs, maybe_setattrs): Remove.
2959         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
2960         Update to handle nested attributes properly.
2961         (maybe_resetattrs, after_type_declarator,
2962         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
2963         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
2964         properly.
2965         (make_pointer_declarator): Update to handle nested attributes
2966         properly.
2967         * doc/extend.texi: Update documentation of limits of attributes
2968         syntax.  Warn about problems with attribute semantics in C++.
2969         * target.h (struct target): Remove valid_decl_attribute and
2970         valid_type_attribute.  Add attribute_table and
2971         function_attribute_inlinable_p.
2972         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
2973         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
2974         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
2975         Add.
2976         (TARGET_INITIALIZER): Update.
2977         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
2978         definition.
2979         (function_attribute_inlinable_p): New function.  Check for the
2980         presence of any machine attributes before using
2981         targetm.function_attribute_inlinable_p.
2982         (function_cannot_inline_p): Update.
2983         * Makefile.in (integrate.o): Update dependencies.
2984         * doc/tm.texi: Update documentation of target attributes and
2985         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
2986         * tree.c (default_valid_attribute_p, valid_machine_attribute):
2987         Remove.
2988         (default_target_attribute_table,
2989         default_function_attribute_inlinable_p): New.
2990         (lookup_attribute): Update comment to clarify handling of multiple
2991         attributes with the same name.
2992         (merge_attributes, attribute_list_contained): Allow multiple
2993         attributes with the same name but different arguments to appear in
2994         the same attribute list.
2995         * tree.h (default_valid_attribute_p): Remove prototype.
2996         (struct attribute_spec): New.
2997         (default_target_attribute_table): Declare.
2998         (enum attribute_flags): Move from c-common.h.  Add
2999         ATTR_FLAG_TYPE_IN_PLACE.
3000         (default_function_attribute_inlinable_p): Declare.
3001         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
3002         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3003         (TARGET_ATTRIBUTE_TABLE): Define.
3004         (vms_attribute_table): New.
3005         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
3006         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3007         (TARGET_ATTRIBUTE_TABLE): Define.
3008         (arc_attribute_table, arc_handle_interrupt_attribute): New.
3009         * config/arm/arm.c (arm_valid_type_attribute_p,
3010         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
3011         Remove.
3012         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
3013         define.
3014         (TARGET_ATTRIBUTE_TABLE): Define.
3015         (arm_attribute_table, arm_handle_fndecl_attribute,
3016         arm_handle_isr_attribute): New.
3017         * config/avr/avr.c (avr_valid_type_attribute,
3018         avr_valid_decl_attribute): Remove.
3019         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
3020         define.
3021         (TARGET_ATTRIBUTE_TABLE): Define.
3022         (avr_attribute_table, avr_handle_progmem_attribute,
3023         avr_handle_fndecl_attribute): New.
3024         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
3025         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3026         (TARGET_ATTRIBUTE_TABLE): Define.
3027         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
3028         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
3029         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3030         (TARGET_ATTRIBUTE_TABLE): Define.
3031         (h8300_attribute_table, h8300_handle_fndecl_attribute,
3032         h8300_handle_eightbit_data_attribute,
3033         h8300_handle_tiny_data_attribute): New.
3034         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
3035         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
3036         Remove prototypes.
3037         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
3038         declarations.
3039         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
3040         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
3041         define.
3042         (TARGET_ATTRIBUTE_TABLE): Define.
3043         (ix86_attribute_table, ix86_handle_cdecl_attribute,
3044         ix86_handle_regparm_attribute): New.
3045         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
3046         i386_pe_valid_type_attribute_p): Remove.
3047         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
3048         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
3049         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3050         (TARGET_ATTRIBUTE_TABLE): Define.
3051         (ia64_attribute_table): New.
3052         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
3053         interrupt_ident2, model_ident1, model_ident2): Remove.
3054         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3055         (TARGET_ATTRIBUTE_TABLE): Define.
3056         (init_idents): Update.
3057         (m32r_attribute_table, m32r_handle_model_attribute): New.
3058         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
3059         Remove.
3060         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3061         (TARGET_ATTRIBUTE_TABLE): Define.
3062         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
3063         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
3064         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3065         (TARGET_ATTRIBUTE_TABLE): Define.
3066         (mcore_attribute_table, mcore_handle_naked_attribute): New.
3067         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
3068         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3069         (TARGET_ATTRIBUTE_TABLE): Define.
3070         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
3071         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
3072         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3073         (TARGET_ATTRIBUTE_TABLE): Define.
3074         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
3075         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
3076         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3077         (TARGET_ATTRIBUTE_TABLE): Define.
3078         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
3079         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
3080         New.
3081         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
3082         Remove.
3083         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
3084         (TARGET_ATTRIBUTE_TABLE): Define.
3085         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
3086         New.
3087         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
3088         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3089         (TARGET_ATTRIBUTE_TABLE): Define.
3090         (v850_attribute_table, v850_handle_interrupt_attribute,
3091         v850_handle_data_area_attribute): New.
3092         * config/v850/v850-c.c (mark_current_function_as_interrupt):
3093         Return void.  Call decl_attributes instead of
3094         valid_machine_attribute.
3096 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
3098         * sh-protos.h (sh_pr_n_sets): Declare.
3099         * sh.c (calc_live_regs): If the initial value for PR has been copied,
3100         look at the copy to determine if PR needs to be saved.
3101         sh_pr_n_sets: New function.
3102         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
3103         (ALLOCATE_INITIAL_VALUE): Define.
3105         * sh.c (initial_elimination_offset):
3106         Fix RETURN_ADDRESS_POINTER_REGNUM case.
3108 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
3110         * integrate.c (allocate_initial_values): New function.
3111         * integrate.h (allocate_initial_values): Declare.
3112         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
3113         here...
3114         * reload1.c (reload): And initialization of reg_equiv_memory_loc
3115         from here...
3116         * toplev.c (rest_of_compilation): To here.
3117         Call allocate_initial_values.
3118         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
3120 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3122         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
3124 2001-09-20  DJ Delorie  <dj@redhat.com>
3126         * c-typeck.c (really_start_incremental_init): Discriminate
3127         between zero-length arrays and flexible arrays.
3128         (push_init_level): Detect zero-length arrays and handle them
3129         like fixed-sized arrays.
3130         * expr.c (store_constructor): Handle zero-length arrays and
3131         flexible arrays correctly.
3132         * doc/extend.texi: Update zero-length array notes.
3134 2001-09-20  Jim Wilson  <wilson@redhat.com>
3136         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
3137         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
3138         for issue port conflicts.
3139         (cycle_end_fill_slots): TYPE_L instructions take two slots.
3141 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
3143         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
3144         on ia64.
3146 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3148         * fold-const.c (hashtab.h): Include.
3149         (int_const_binop): Remove FORSIZE arg and compute from type; all
3150         callers changed.
3151         Call size_int_type_wide for all single-word constants.
3152         (size_htab_hash, size_htab_eq): New functions.
3153         (size_int_type_wide): Rework to use hash table.
3154         * ggc-common.c (hashtab.h): Include.
3155         (struct d_htab_root): New struct.
3156         (d_htab_roots): New variable.
3157         (ggc_add_deletable_htab, ggc_htab_delete): New functions
3158         (ggc_mark_roots): Handle deletable htabs.
3159         * ggc-page.c (ggc_marked_p): New function.
3160         * ggc-simple.c (ggc_marked_p): Likewise.
3161         * ggc.h: Reformatting throughout.
3162         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
3163         * tree.c (init_obstacks): Make type_hash_table a deletable root.
3164         (type_hash_add): Allocate struct type_hash from GC memory.
3165         (mark_hash_entry, mark_type_hash): Deleted.
3166         (type_hash_marked_p, type_hash_mark): New functions.
3167         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
3169 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
3171         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
3172         than SImode.
3174 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3176         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
3177         array-too-large test for signed sizetype.
3179 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3181         * i386.md (indirect_jump): Allow Pmode operand.
3182         (tablejump): LIkewise; perform expansion to 64bit mode.
3183         * i386.c (symbolic_operand): Allow 64bit PIC references.
3184         (pic_symbolic_operand): Likewise.
3185         (ix86_find_base_term): Strip the 64bit PIC references.
3186         (legitimate_pic_address_disp_p): Handle 64bit PIC.
3187         (legitimize_pic_address): Likewise.
3188         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
3189         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
3191 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
3193         * stringpool.c (get_identifier_with_length): New function.
3194         * tree.h (get_identifier_with_length): New prototype.
3196 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
3197             David Edelsohn  <edelsohn@gnu.org>
3199         Revert:
3200         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
3201         already sign-extended.
3203         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
3204         * config/rs6000/rs6000.c (logical_operand): Always compare op as
3205         HOST_WIDE_INT.
3206         (rs6000_emit_set_long_const): Avoid unnecessary shift.
3207         (output_profile_hook): Declare label_name const.
3208         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
3209         to match constraints.
3211 2001-09-19  Stan Shebs  <shebs@apple.com>
3213         * alias.c: Fix typos in comments.
3214         * sched-rgn.c (init_ready_list): Ditto.
3215         * unwind-dw2.c (uw_frame_state_for): Ditto.
3216         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
3217         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
3218         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
3220 2001-09-19  Richard Henderson  <rth@redhat.com>
3222         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
3223         to the exit block.
3224         * Makefile.in (cfg.o): Depend on TM_P_H.
3226 2001-09-19  Richard Henderson  <rth@redhat.com>
3228         * config/alpha/alpha.c (local_symbol_p): Split out from ...
3229         (local_symbolic_operand): ... here.
3230         (small_symbolic_operand): Check mode.
3231         (global_symbolic_operand): New.
3232         (input_operand): Reject symbolics if explicit relocs.
3233         (call_operand): Tidy.
3234         (alpha_legitimize_address): Use movdi_er_high_g.
3235         (alpha_expand_mov): Likewise.
3236         * config/alpha/alpha-protos.h: Update.
3237         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3238         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
3239         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
3240         (UNSPECV_LDGP2): Remove.
3241         (all call patterns): Use 's' not 'i' for symbolic constraint.
3242         (call_osf call_value_osf): Use call_operand.
3243         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
3244         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
3245         (prologue_ldgp_1_er): Remove.
3246         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
3247         (builtin_setjmp_receiver_er patterns): Use them.
3248         (exception_receiver_er): Likewise.
3250 2001-09-19  Richard Henderson  <rth@redhat.com>
3252         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
3254         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
3255         and NON_LOCAL_GOTO notes.
3256         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
3257         copy over CALL_INSN_FUNCTION_USAGE.
3259 2001-09-18  Catherine Moore  <clm@redhat.com>
3261         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
3262         Define as 0.
3264 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
3266         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
3267         new-style tm_file specification.  Specify correct tm_p_file,
3268         md_file, and out_file for s390x.
3270         * config/s390/linux.h, linux64.h:  Don't include other target
3271         macro header files.  Now handled via tm_file.
3273         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
3274         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
3275         are defined before use.
3277 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
3279         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
3280         code generation only for Gnu assembler.
3282 2001-09-18  Catherine Moore  <clm@redhat.com>
3284         * config/stormy16 (LIB_SPEC): Remove -lnosys.
3286 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
3288         * config/mips/mips.c (mips_frame_set): New.
3289         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
3290         a parallel frame-related expression with a set for each register.
3292 2001-09-18  Philip Blundell  <philb@gnu.org>
3294         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
3295         header files.
3297 2001-09-17  Dale Johannesen  <dalej@apple.com>
3299         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
3300         * config/rs6000/aix.h (FIXED_R2): Define.
3301         * config/rs6000/darwin.h (FIXED_R2): Define.
3302         * config/rs6000/sysv4.h (FIXED_R2): Define.
3304 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
3306         * except.c (dw2_build_landing_pads): New local
3307         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
3308         barrier after clobbers.  Fixes c++/4012.
3310 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3312         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
3314 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3316         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
3317         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
3319 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3321         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
3322         alloca/strcpy.
3324 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3326         * cpphash.h (_cpp_lex_direct): New.
3327         * cpplex.c (_cpp_lex_token): Update.
3328         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
3329         and increment that pointer.
3330         * cppmacro.c (alloc_expansion_token): New.
3331         (lex_expansion_token): Lex macro expansion directly into
3332         macro storage.
3334 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
3336         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
3338 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
3340         * basic-block.h (free_bb_for_insn): Declare.
3341         * bb-reorder.c (label_for_bb): Use block_label.
3342         (emit_jump_to_block_after): Remove.
3343         (insert_intra_1): Do not update block_for_insn.
3344         (insert_inter_bb_scope_notes): Likewise; update bb->end
3345         * cfg.c (free_bb_for_insn): New.
3346         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
3347         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
3348         (commit_one_edge_insertion): Likewise.
3349         (commit_one_edge_insertion): Do not update BB boundary.
3350         (commit_edge_insertions): Do not call compute_bb_for_insn.
3351         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
3352         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
3353         (merge_blocks_move_successor_nojumps): Likewise.
3354         (try_crossjump_to_edge): Do not update block_for_insn.
3355         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
3356         * df.c (df_pattern_emit_later): Do not update BB boundary.
3357         (df_jump_pattern_emit_after): Likewise.
3358         (df_insn_move_before): Use emit_insn_before.
3359         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
3360          properly.
3361         (add_insn_after, add_insn_before, emit_insns_after): Update BB
3362         boundaries and basic_block_for_insn.
3363         (reorder_insns_nobb): Rename from reorder_insns.
3364         (reorder_insns): New.
3365         (emit_block_insn_before, emit_block_insn_after): Kill.
3366         * flow.c (check_function_return_warnings): Do not call
3367         compute_bb_for_insn; Do not free basic_block_for_insn.
3368         (attempt_auto_inc): Do not update basic_block_for_insn.
3369         * function.c (emit_return_into_block): Likewise;
3370         do not update BB boundaries.
3371         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
3372         (insert_insn_end_bb): Use emit_insn_before; Likewise.
3373         (pre_insert_copy_insn): Likewise.
3374         (update_ld_motion_notes): Likewise.
3375         (insert_insn_start_bb): Likewise.
3376         (replace_store_insn): Likewise.
3377         * ifcvt.c (noce_process_if_block): Likewise.
3378         (if_convert): Do not call compute_bb_for_insn.
3379         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
3380         Use emit_insn_before and emit_insn_after.
3381         * recog.c (split_all_insns): Do not update BB boundaries;
3382         Do not call compute_bb_for_insn.
3383         (peephole2_optimize): Do not update BB boundaries.
3384         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
3385         emit_insn_before.
3386         (emit_swap_insn): Likewise.
3387         (convert_regs_1): Likewise.
3388         * reload1.c (reload): Call compute_bb_for_insn.
3389         * rtl.h (reorder_insns_nobb): Declare.
3390         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
3391         * toplev.c (rest_of_compilation): Call free_bb_for_insn
3392         at places CFG is invalidated; do not call compute_bb_for_insn.
3394         * cfg.c (expunge_block): Invalidate BB structure.
3396         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
3397         array.
3399         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
3401 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3403         * cpphash.h (_cpp_lex_token): Update prototype.
3404         * cpplex.c (_cpp_lex_token): New prototype.
3405         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
3406         lex_macro_node, read_flag, do_pragma_poison): Update.
3407         * cppmacro.c (cpp_get_token, parse_params,
3408         lex_expansion_token): Update.
3410 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3412         * cppmain.c (scan_translation_unit): Don't worry about
3413         putting a space after hashes.
3414         * cpplib.c (directive_diagnostics): New.
3415         (_cpp_handle_directive): Update to use directive_diagnostics.
3416         (run_directive): Don't toggle prevent_expansion.
3417         (do_line): Backup in case of the line extension.
3418         * cpplib.h (cpp_lexer_pos): Remove.
3419         * cppmacro.c (_cpp_create_definition): Precede a leading #
3420         with whitespace.
3422 2001-09-15  Richard Henderson  <rth@redhat.com>
3424         * c-typeck.c (comptypes): Handle zero-length arrays properly.
3426 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3428         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
3430 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3432         PR preprocessor/3571
3433         * tradcpp.c (handle_directive): Skip non-vertical space.
3435 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3437         * cppmain.c (setup_callbacks): Set line callback only
3438         if outputting preprocessed source.
3440 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3442         * collect2.c (main): Const-ification.
3443         * gcc.c (translate_options, process_command): Use xstrdup in
3444         lieu of xmalloc/strcpy.
3445         (main): Use concat in lieu of xmalloc/strcpy/strcat.
3447 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3449         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
3450         example.
3452 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3454         * scan-decls.c (scan_decls): Fix typo.
3456 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3458         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
3459         Split mlstring_pos into mls_line and mls_col.
3460         * cppinit.c (cpp_create_reader): Initialize line to 1.
3461         (cpp_destroy): Free tokenruns.
3462         (push_include): Don't update lexer_pos.
3463         * cpplex.c (unterminated, parse_string): Update.
3464         (lex_token): Don't update lexer_pos, update.
3465         * cpplib.c (if_stack): Save line instead of line + col.
3466         (start_directive, _cpp_do__Pragma, do_else, do_elif,
3467         push_conditional, _cpp_pop_buffer): Update.
3468         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
3469         (_cpp_create_definition): Update.
3471 2001-09-15  Eric Christopher  <echristo@redhat.com>
3473         * config/mips/abi64.h: Add support for MEABI.
3475 2001-09-15  Eric Christopher  <echristo@redhat.com>
3477         * config/mips/mips.md: Add unspec #2.
3478         (reload_indi): Use.
3479         (reload_outdi): Ditto.
3480         (reload_outsi): Ditto.
3481         (HILO_delay): New.
3483 2001-09-15  Eric Christopher  <echristo@redhat.com>
3484             Jason Eckhardt  <jle@redhat.com>
3486         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
3487         * config/mips/isa32-linux.h: New file.
3488         * config/mips/isa3264.h: Ditto.
3489         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
3490         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
3491         (output_block_mode): Support MEABI.
3492         (function_arg): Ditto. Fix floating point arg passing.
3493         (mips_va_start): Ditto.
3494         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
3495         processors.
3496         (mips_asm_file_start): Add new section to pass abi to gdb.
3497         (function_arg_pass_by_reference): Support MEABI.
3498         (mips_parse_cpu): Support mips32 and mips64 processors.
3499         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
3500         TARGET_MIPS5KC.  Support isa32 and isa64.
3501         (processor_type): Add r4kc, r5kc, r20kc.
3502         (GENERATE_MULT3_SI): New.
3503         (GENERATE_MULT3_DI): Ditto.
3504         (GENERATE_MULT3): Remove.
3505         (ISA_HAS_64BIT_REGS): Add isa == 64.
3506         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
3507         (ISA_HAS_MADD_MSUB): New.
3508         (ISA_HAS_CLZ_CLO): Ditto.
3509         (ISA_HAS_DCLZ_DCLO): Ditto.
3510         (ABI_GAS_ASM_SPEC): New.
3511         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
3512         (ASM_SPEC): Ditto.
3513         (LINK_SPEC): Ditto.
3514         (SUBTARGET_CC1_SPEC): Ditto.
3515         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3516         (PAD_VARARGS_DOWN): Support MEABI.
3517         (HARD_REGNO_NREGS): Move to mips.c.
3518         (ASM_OUTPUT_IDENT): Add #undef.
3519         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
3520         (mulsi3): Use GENERATE_MULT3_SI.
3521         (mulsi3_mult3): Ditto.  Support mips32, mips64.
3522         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
3523         (mul_sub_si): New pattern.
3524         (unnamed splitters): New.
3525         (muldi3): Use GENERATE_MULT3_DI.
3526         (muldi3_internal2): Ditto.
3527         (movdicc): Support mips32.
3528         * config/mips/t-isa3264: New file.
3530 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
3532         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
3533         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
3534         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
3536         * reorg.c (fill_slots_from_thread): After call to
3537         steal_delay_list_from_target, update own_thread as new_thread may
3538         have branched.
3540 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3542         * cpperror.c (print_location): Take line and column, for
3543         default positioning use the previously lexed token.
3544         (_cpp_begin_message): Take line and column.
3545         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3546         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
3547         * cpphash.h (_cpp_begin_message): Update prototype.
3548         * cppinit.c (push_include): Don't set output line.
3549         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
3550         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
3551         (do_pragma): Kludge for front ends.  Don't expand macros at all.
3552         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
3553         (struct cpp_token): Remove output_line.
3554         (struct cpp_callbacks): New member line_change.
3555         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
3556         cpp_get_token): Preserve BOL flag.
3557         (cpp_get_line): Remove.
3558         (_cpp_backup_tokens): Remove useless abort().
3559         * cppmain.c (cb_line_change): New.
3560         (scan_translation_unit): Don't worry about starting new lines here.
3561         * scan-decls.c (scan_decls): Update.
3562         * c-lex.c (c_lex, init_c_lex): Update.
3563         (cb_line_change, src_lineno): New.
3565 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
3567         * tree.c (append_random_chars): Generate the random
3568         characters in a reproducable fashion.
3570 2001-09-14  Richard Henderson  <rth@redhat.com>
3572         * config/i386/i386.c (internal_label_prefix): New.
3573         (internal_label_prefix_len): New.
3574         (override_options): Set them.
3575         (local_symbolic_operand): New.
3576         (legitimate_pic_address_disp_p): Use it.
3577         (legitimize_pic_address): Likewise.
3579 2001-09-14  Marc Espie <espie@openbsd.org>
3581         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
3582         correctly.
3584 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3586         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
3587         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
3589 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
3591         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
3592         invocation of SUBREG_REGNO_OFFSET.
3594         * haifa-sched.c: Fix typo in FSF copyright statement.
3595         * sched-deps.c: Fix typo in FSF copyright statement.
3596         * sched-ebb.c: Fix typo in FSF copyright statement.
3597         * sched-rgn.c: Fix typo in FSF copyright statement.
3598         * sched-vis.c: Fix typo in FSF copyright statement.
3600         * config.gcc: Move inclusion of arm elf specific header files
3601         from the files themselves into the tm_file variable.  Make
3602         sure that elfos.h is included before target specific elf
3603         headers.
3604         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
3605         already defined.
3606         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
3607         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
3608         ASM_OUTPUT_CASE_LABEL): Protect definition.
3609         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
3610         not already defined.
3611         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
3612         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
3613         Remove duplicate definition.
3614         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
3615         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
3616         (RDATA_SECTION_FUNCTION): Remove redundant definition.
3617         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
3618         Remove inclusion of arm/elf.h.
3619         * config/arm/unknown-elf.h: as for conix-elf.h.
3620         (STARTFILE_SPEC): Include crti.o and crtn.o.
3621         * config/arm/linux-elf.h: as for conix-elf.h.
3622         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
3623         * config/arm/strongarm-elf.h: Remove inclusion of
3624         unknown-elf.h.
3625         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
3626         * config/arm/unknown-elf-oabi.h: Remove inclusion of
3627         unknown-elf.h and elf.h.
3628         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
3629         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
3630         ASM_WEAKEN_LABEL): Remove redundant definition.
3631         * config/arm/elf.h: Test for inclusion of elfos.h
3632         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
3633         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
3634         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
3635         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
3636         redundant definition.
3637         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
3638         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
3639         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
3640         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
3641         Add rules to build crti.o and crtn.o
3642         * crti.asm: New file.
3643         * crtn.asm: New file.
3645 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3647         * c-parse.in (_yylex): Use _cpp_backup_tokens.
3648         * cpphash.h (struct tokenrun): Add prev.
3649         (struct lexer_state): Remove bol.
3650         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
3651         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
3652         : Remove.
3653         * cppinit.c (cpp_create_reader): Don't set bol.
3654         (cpp_destroy): Don't free lookaheads.
3655         * cpplex.c (lex_directive): Remove.
3656         (next_tokenrun): Update.
3657         (_cpp_lex_token): Clean up logic.
3658         (lex_token): Update to return a pointer to lexed token, since it
3659         can move to the start of the buffer.  Simpify newline handling.
3660         * cpplib.c (SEEN_EOL): Update.
3661         (skip_rest_of_line): Remove lookahead stuff.
3662         (end_directive): Line numbers are already incremented.  Revert
3663         to start of lexed token buffer if we can.
3664         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
3665         parse_answer): Use _cpp_backup_tokens.
3666         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
3667         instead.  Don't check for EOL.
3668         (do_include_common, do_line, do_pragma_system_header): Use
3669         skip_rest_of_line.
3670         * cpplib.h (BOL, _cpp_backup_tokens): New.
3671         * cppmacro.c (save_lookahead_token, take_lookahead_token,
3672         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
3673         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
3674         (builtin_macro): Don't use cpp_get_line.
3675         (cpp_get_line): Short term kludge.
3676         (parse_arg): Handle directives in arguments here.  Back up when
3677         appropriate.  Store EOF at end of argument list.
3678         (funlike_invocation_p): Use _cpp_backup_tokens.
3679         (push_arg_context): Account for EOF at end of list.
3680         (cpp_get_token): Remove lookahead stuff.  Update.
3682 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3684         * c-parse.in (yyerror): Const-ification and/or static-ization.
3685         * c-typeck.c (push_member_name): Likewise.
3686         * collect2.c (main): Likewise.
3687         * dbxout.c (dbxout_parms): Likewise.
3688         * diagnostic.c (format_with_decl): Likewise.
3689         * dwarf2out.c (output_ranges): Likewise.
3690         * dwarfout.c (fundamental_type_code): Likewise.
3691         * except.c (dw2_output_call_site_table): Likewise.
3692         * gcc.c (do_spec_1): Likewise.
3693         * genopinit.c (optabs): Likewise.
3694         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
3695         gen_declaration_1, handle_impent): Likewise.
3696         * protoize.c (default_include, in_system_include_dir, abspath):
3697         Likewise.
3698         * sched-vis.c (visualize_stall_cycles): Likewise.
3699         * sdbout.c (plain_type_1, sdbout_end_function,
3700         sdbout_end_epilogue): Likewise.
3701         * varasm.c (decode_reg_name): Likewise.
3703         * 1750a.c (mod_regno_adjust): Likewise.
3704         * alpha.c (alpha_write_one_linkage,
3705         unicosmk_output_default_externs): Likewise.
3706         * arm.c (arm_condition_codes): Likewise.
3707         * arm.h (arm_condition_codes): Likewise.
3708         * avr.c (output_movsisf, encode_section_info): Likewise.
3709         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
3710         Likewise.
3711         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3712         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3713         * m88k.c (output_function_profiler): Likewise.
3714         * mips.c (mips_output_conditional_branch): Likewise.
3715         * ns32k.c (ns32k_out_reg_names): Likewise.
3716         * ns32k.h (ns32k_out_reg_names): Likewise.
3717         * pj.c (pj_output_rval): Likewise.
3718         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
3719         * sparc.c (sparc_flat_function_prologue,
3720         sparc_flat_function_epilogue): Likewise.
3722 2001-09-13  Markus Werle <numerical.simulation@web.de>
3723             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3725         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
3726         Aachen University of Technology".
3728 2001-09-13  Andreas Schwab  <schwab@suse.de>
3730         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
3731         C99.
3733 2001-09-13  Richard Henderson  <rth@redhat.com>
3735         * config/alpha/alpha.c (small_symbolic_operand): New.
3736         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
3737         (some_operand, input_operand): Don't handle HIGH.
3738         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
3739         (alpha_expand_mov): Likewise.
3740         (print_operand) [H]: Just print HIGH symbol.
3741         (print_operand_address): Handle small data.
3742         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
3743         (TARGET_SWITCHES): Add -msmall-data/large-data.
3744         (PIC_OFFSET_TABLE_REGNUM): New.
3745         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
3746         (PREDICATE_COES): Update.
3747         * config/alpha/alpha.md (adddi_er_high): New.
3748         (adddi_er_low): Handle small data.
3749         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
3750         prefer .sdata to .rodata.
3751         (SELECT_RTX_SECTION): Likewise.
3753 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
3755         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
3756         defining __size_t and leaving size_t undefined.
3758 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
3760         * basic-block.h (expunge_block): Declare.
3761         * cfg.c (expunge_block): Remove static declaration.
3763 2001-09-12  Richard Henderson  <rth@redhat.com>
3765         * integrate.c (copy_insn_list): Copy label name from
3766         NOTE_INSN_DELETED_LABEL.
3768 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3770         * c-common.c (c_tree_code_name): Const-ification.
3771         * c-decl.c (c_decode_option): Likewise.
3772         * c-typeck.c (warn_for_assignment): Likewise.
3773         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
3774         Likewise.
3775         * cppinit.c (output_deps): Likewise.
3776         * dependence.c (dependence_string, direction_string): Likewise.
3777         * dwarf2out.c (output_ranges): Likewise.
3778         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
3779         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
3780         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
3781         standard_startfile_prefix, standard_startfile_prefix_1,
3782         standard_startfile_prefix_2, tooldir_base_prefix,
3783         standard_bindir_prefix, find_a_file): Likewise.
3784         * genattrtab.c (make_length_attrs): Likewise.
3785         * gencheck.c (tree_codes): Likewise.
3786         * genemit.c (gen_split): Likewise.
3787         * genrecog.c (special_mode_pred_table): Likewise.
3788         * graph.c (graph_ext): Likewise.
3789         * protoize (default_include): Likewise.
3790         * reload.c (reload_when_needed_name): Likewise.
3791         * sched-vis.c (visualize_stall_cycles): Likewise.
3792         * tlink.c (recompile_files): Likewise.
3793         * toplev.c (decode_g_option): Likewise.
3794         * tradcpp.c (output_deps): Likewise.
3795         * varasm.c (decode_reg_name): Likewise.
3797         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
3798         Const-ification.
3799         * arm.md: Likewise.
3800         * avr.c (avr_regnames, encode_section_info): Likewise.
3801         * c4x.c (float_reg_names): Likewise.
3802         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
3803         * elfos.h (const_section): Likewise.
3804         * i386.c (ix86_comp_type_attributes): Likewise.
3805         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
3806         * ia64/aix.h (UNIQUE_SECTION): Likewise.
3807         * ia64.c (type_names): Likewise.
3808         * m68hc11.c (reg_class_names): Likewise.
3809         * m88k.c (m_options): Likewise.
3810         * mips.c (mips_output_conditional_branch, mips_unique_section):
3811         Likewise.
3812         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3813         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
3814         ultra_code_names): Likewise.
3815         * sparc.h (OVERRIDE_OPTIONS): Likewise.
3817 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3819         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
3820         Use --fatal-warnings option for gas.
3821         * configure: Rebuilt.
3823 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3825         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
3827 2001-09-11  Jim Wilson  <wilson@redhat.com>
3829         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
3831 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3833         * builtins.c (c_strlen): Treat an offset too large for a
3834         HOST_WIDE_INT as out of range.
3836 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
3838         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
3839         (EDGE_CRITICAL_P): New predicate.
3840         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
3841         handling.
3842         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
3843         (dump_edge_info): Remove "crit".
3844         * cfganal.c (mark_critical_edges): Kill.
3845         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
3846         * cfgcleanup.c (cleanup_cfg): Likewise.
3847         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
3848         (find_spanning_tree): Likewise.
3849         * reg-stack.c (convert_regs_1): Likewise.
3850         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
3852         * basic-block.h (create_basic_block_structure): New.
3853         (create_basic_block): Update prototype.
3854         (force_nonfallthru): New.
3855         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
3856         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
3857         handle updating of block_for_insn, creating of empty BBs and BBs at
3858         the end of INSN chain.
3859         (create_basic_block): New function.
3860         (split_block): Use create_basic_block.
3861         (force_nonfallthru_and_redirect): Break out from ...; cleanup
3862         (redirect_edge_and_branch_force): ... here.
3863         (force_nonfallthru): New.
3864         (split_edge): Rewrite to use force_nonfallthru and create_block.
3865         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
3866         (find_basic_blocks): Free basic_block_for_insn.
3867         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
3869         * cfg.c: Fix formating.
3870         * cfgcleanup.c: Fix formating.
3871         (merge_blocks, tail_recursion_label_p): Return bool.
3872         (merge_blocks_move_predecessor_nojumps,
3873          merge_blocks_move_successor_nojumps): Return void.
3875 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
3877         * configure.in: Check whether assembler supports section merging.
3878         * config.in: Rebuilt.
3879         * configure: Rebuilt.
3880         * varasm.c (variable_section, output_constant_pool): Pass alignment
3881         to SELECT_SECTION and SELECT_RTX_SECTION.
3882         (mergeable_string_section): New.
3883         (mergeable_constant_section): New.
3884         (default_elf_asm_named_section): Output SECTION_MERGE and
3885         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3886         * output.h (mergeable_string_section): New.
3887         (mergeable_constant_section): New.
3888         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
3889         * toplev.c (flag_merge_constants): New.
3890         (f_options): Add -fmerge-constants and -fmerge-all-constants
3891         options.
3892         (toplev_main): Default to -fno-merge-constants if not optimizing.
3893         * flags.h (flag_merge_constants): Add extern.
3894         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
3895         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
3896         argument.
3897         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
3898         Define if assembler has working .subsection -1 support.
3899         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
3900         Put constant into special SHF_MERGE sections if the linker should
3901         attempt to merge duplicates.
3902         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
3903         macro argument.
3904         Put constant into special SHF_MERGE sections if the linker should
3905         attempt to merge duplicates.
3906         * config/alpha/elf.h: Likewise.
3907         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
3908         has working .subsection -1 support.
3909         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
3910         SELECT_SECTION.
3911         * config/svr3.h: Likewise.
3912         * config/darwin.h: Likewise.
3913         * config/arm/aof.h: Likewise.
3914         * config/arm/linux-elf.h: Likewise.
3915         * config/avr/avr.h: Likewise.
3916         * config/c4x/c4x.h: Likewise.
3917         * config/d30v/d30v.h: Likewise.
3918         * config/i386/dgux.h: Likewise.
3919         * config/i386/osfrose.h: Likewise.
3920         * config/i386/sco5.h: Likewise.
3921         * config/i386/svr3gas.h: Likewise.
3922         * config/ia64/aix.h: Likewise.
3923         * config/m32r/m32r.h: Likewise.
3924         * config/m68k/m68k.h: Likewise.
3925         * config/m88k/dgux.h: Likewise.
3926         * config/m88k/m88k.h: Likewise.
3927         * config/mcore/mcore-pe.h: Likewise.
3928         * config/mips/mips.h: Likewise.
3929         * config/pa/pa.h: Likewise.
3930         * config/pa/pa-linux.h: Likewise.
3931         * config/romp/romp.h: Likewise.
3932         * config/rs6000/sysv4.h: Likewise.
3933         * config/rs6000/xcoff.h: Likewise.
3934         * config/s390/linux.h: Likewise.
3935         * config/sparc/sparc.h: Likewise.
3936         * config/sparc/sysv4.h: Likewise.
3937         * config/stormy16/stormy16.h: Likewise.
3938         * config/v850/v850.h: Likewise.
3939         * config/vax/vms.h: Likewise.
3940         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
3941         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3942         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
3943         default_elf_asm_named_section for SHF_MERGE sections.
3945 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3947         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
3948         is OK.
3950 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3952         * c-common.c (split_specs_attrs): Allow for empty attributes with
3953         empty TREE_PURPOSE.  Fixes PR c/4294.
3955 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
3957         * basic-block.h (cached_make_edge, make_single_succ): New.
3958         (make_edge): Remove first parameter.
3959         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
3960         * cfg.c (cached_make_edge): Rename from make_edge; return newly
3961         created edge; use obstack allocation.
3962         (make_edge, make_single_succ_edge): New.
3963         (first_removed_edge): New static variable.
3964         (init_flow): Initialize first_removed_edge and n_edges.
3965         (clear_edges): Use remove_edge.
3966         (flow_delete_block): Likewise.
3967         (remove_edge): Add removed edges to the removed edges list.
3968         (split_block, redirect_edge_and_branch_force, split_edge):
3969         Use make_edge.
3970         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
3971         (add_noreturn_fake_exit_edges): Likewise.
3972         (connect_infinite_loops_to_exit): Liekwise.
3973         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
3974         Use cached_make_edge.
3975         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
3976         * profile.c (branch_prob): Update make_edge call.
3977         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3979 2001-09-11  Richard Henderson  <rth@redhat.com>
3981         * config/alpha/alpha.c: Tidy formatting.
3982         (local_symbolic_operand): Verify mode.
3983         (alpha_sa_mask): Ignore unicos for eh_return.
3984         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
3985         * config/alpha/alpha.md (umk divsi patterns): Remove.
3986         (extendsfdf2): Remove unicos check.
3987         (tablejump): Merge vms and unicos code; always use direct set
3988         plus label_ref use.
3990 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3992         * config.gcc (alpha*-*-unicosmk*): New target.
3994         * config/alpha/alpha-protos.h (symbolic_operand,
3995         unicosmk_add_call_info_word, unicosmk_add_extern,
3996         unicosmk_defer_case_vector, unicosmk_unique_section,
3997         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
3998         unicosmk_asm_file_start, unicosmk_asm_file_end,
3999         unicosmk_output_common): Declare.
4001         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
4002         direct_return, function_arg, alpha_va_start, alpha_va_arg,
4003         alpha_does_function_need_gp, alpha_end_function): Support Cray
4004         Unicos/Mk.
4005         (alpha_init_machine_status, alpha_mark_machine_status,
4006         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
4007         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
4008         unicosmk_asm_named_section, unicosmk_insert_attributes,
4009         unicosmk_section_type_flags, symbolic_operand,
4010         unicosmk_output_module_name, unicosmk_output_default_externs,
4011         unicosmk_output_dex, unicosmk_output_externs,
4012         unicosmk_output_addr_vec, unicosmk_ssib_name,
4013         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
4014         unicosmk_asm_file_end, unicosmk_output_common,
4015         unicosmk_section_type_flags, unicosmk_unique_section,
4016         unicosmk_add_call_info_word, unicosmk_text_section,
4017         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
4018         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
4019         unicosmk_dex_count, unicosmk_special_name): New.
4020         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
4021         TARGET_ABI_UNICOSMK.
4022         (get_aligned_mem, alpha_expand_unaligned_load,
4023         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
4024         alpha_expand_unaligned_store_words): Support big-endian mode.
4025         (print_operand): Likewise. New format specifier 't'. Use
4026         TARGET_AS_SLASH_BEFORE_SUFFIX.
4027         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
4028         (alpha_pv_save_size): Update with above change.
4029         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
4030         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
4031         Unicos/Mk.
4033         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
4034         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
4035         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
4036         (EXTRA_CONSTRAINT): New constraint 'U'.
4037         (PREDICATE_CODES): Add symbolic_operand.
4039         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
4040         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
4041         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
4042         (integer division and modulus patterns): Split in default and
4043         Unicos/Mk versions.
4044         (*divmodsi_internal, *divmoddi_internal): Disable for
4045         TARGET_ABI_UNICOSMK.
4046         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
4047         little-endian and big-endian versions.
4048         (ext, ins, msk): Likewise.
4049         (extv, extzv, insv): Support big-endian mode.
4050         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
4051         (call_umk, call_value_umk, *call_umk, tablejump_umk,
4052         *tablejump_umk_internal, *call_value_umk): New.
4053         (*movdi_nofix): Add pattern for loading an address into a register on
4054         TARGET_ABI_UNICOSMK.
4055         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
4056         (umk_mismatch_args, arg_home_umk): New.
4057         (various insns): Don't use mov, fmov, nop, fnop and unop.
4058         (realign): Support TARGET_ABI_UNICOSMK.
4060         * config/alpha/unicosmk.h: New file.
4061         * config/alpha/t-unicosmk: New file.
4063         * fixinc/inclhack.def (unicosmk_restrict): New.
4064         * fixinc/fixincl.x: Regenerate.
4066         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
4067         (wchar_t): Check for and define __WCHAR_T__.
4069 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
4071         * combine.c (simplify_shift_const): Treat shifts by the mode
4072         size as undefined.
4074 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4076         * cpphash.h (struct tokenrun): New.
4077         (struct cpp_context): New member bol.
4078         (struct cpp_reader): New members.
4079         (_cpp_init_tokenrun): New.
4080         * cppinit.c (cpp_create_reader): Set up the token runs.
4081         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
4082         (lex_token): New internalised version of _cpp_lex_token.  Don't
4083         handle directives or the multiple include opimisation here any
4084         more.  Simply lex a token.
4085         * cpplib.c (run_directive): Clear bol.
4086         (_cpp_pop_buffer): Set bol.
4087         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
4088         arguments.
4090 2001-09-11  Michael Meissner  <meissner@redhat.com>
4092         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
4093         give an error if the user uses -mfp32.
4094         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
4095         default options.
4096         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
4097         floating point register size.
4098         (EXTRA_SPECS): Add CPP_FPR_SPEC.
4100         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
4101         HOST_WIDE_INT_PRINT_DEC to properly print the result of
4102         int_size_in_bytes.
4103         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4104         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4106 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
4108         * dbxout.c (dbxout_parms): Fix typo in comment.
4109         * unroll.c (loop_find_equiv_value): Ditto.
4110         * toplev.c (rest_of_compilation): Ditto.
4111         * loop.c (scan_loop): Ditto.
4112         * dwarf2out.c (struct dw_fde_struct): Ditto.
4114 2001-09-10  Zack Weinberg  <zackw@panix.com>
4116         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
4117         copying identifier when we're just going to throw it away.
4118         (parse_identifier_slow): New routine to handle abnormal cases.
4119         (_cpp_lex_token): Update call site.
4121         * hashtable.c (ht_lookup): Don't assume that the string we've
4122         been given is NUL-terminated.
4123         * system.h: #define __builtin_expect(a, b) to (a) if not
4124         GCC >=3.0.
4126 2001-09-10  Michael Meissner  <meissner@redhat.com>
4128         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
4129         binutils, gdb.
4131 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
4133         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
4135 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4137         * builtins.c (c_getstr): Correct thinko in last change and further
4138         cleanup.
4140 2001-09-10  Tim Freeman <tim@fungibole.com>
4142         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
4143         into varray's and register them as roots with the garbage
4144         collector so they are not collected too soon.
4146 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
4148         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
4149         New.
4150         * basic-block.h (flow_obstack, label_value_list,
4151         tail_recursion_label_list): Declare
4152         (tidy_fallthru_edges): Declare.
4153         (expunge_block, last_loop_beg_note): Delete.
4154         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
4155         * cfg.c: New file
4156         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
4157         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
4158         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
4159         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
4160         expunge_block, flow_delete_block, compute_bb_for_insn,
4161         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
4162         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
4163         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
4164         try_redirect_by_replacing_jump, last_loop_beg_note,
4165         redirect_edge_and_branch, redirect_edge_and_branch_force,
4166         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
4167         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
4168         commit_edge_insertions, dump_flow_info, debug_flow_info,
4169         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
4170         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
4171         Move here from flow.c
4172         * cfganal.c: New file.
4173         (forwarder_block_p, can_fallthru, mark_critical_edges,
4174          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
4175          find_unreachable_blocks, create_edge_list, free_edge_list,
4176          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
4177          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
4178          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
4179          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
4180          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
4181          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
4182         Move here from flow.c
4183         * cfgbuild.c: New file
4184         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
4185          make_edges, find_basic_blocks_1, find_basic_blocks,
4186          find_sub_basic_blocks): Move here from flow.c
4187         * cfgcleanup.c: New file.
4188         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
4189          merge_blocks_move_predecessor_nojumps,
4190          merge_blocks_move_successor_nojumps, merge_blocks,
4191          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4192          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
4193         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
4194         if succeeded.
4195         * cfgloop.c: New file
4196         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
4197          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
4198          flow_loop_exit_edges_find, flow_loop_nodes_find,
4199          flow_loop_pre_header_scan, flow_loop_pre_header_find,
4200          flow_loop_tree_node_add, flow_loops_tree_build,
4201          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
4202          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
4203         Move here from flow.c
4204         * flow.c: Remove everything moved elsewhere
4205         * output.h (cleanup_cfg): Return bool.
4207         * bb-reorder.c (reorder_block_def): Remove 'index'.
4208         (insert_intra_1): Add argument BB, set block for new note.
4209         (make_reorder_chain): Do not depdent on BB indexes.
4210         (make_reorder_chain_1): Do not use BB indexes.
4211         (label_for_bb): Likewise; set BB for new insn.
4212         (emit_jump_to_block_after): Likewise.
4213         (fixup_reoder_chain): Sanity check that all basic blocks
4214         are chained; verify newly created insn chain; remove
4215         undocnitional jump simplifying; Do not use BB indexes;
4216         properly initialize count and frequency information;
4217         dump reordered sequence.
4218         (insert_intra_bb_scope_notes): update call of insert_intra_1.
4219         (insert_inter_bb_scope_notes): Set block for new insn.
4220         (reorder_basic_blocks): Dump flow info before reoredering.
4222 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4224         * alias.c (clear_reg_alias_info): Use K&R format definition.
4225         Avoid unsigned warning.
4226         * builtins.c: Use "unsigned int", not "unsigned".
4227         (target_char_cast): Use host_integerp and tree_low_cst.
4228         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
4229         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
4230         (c_getstr): Likewise.
4231         (std_expand_builtin_va_arg): Use int_size_in_bytes.
4232         (builtin_memcpy_read_str): Avoid unsigned warning.
4233         (expand_builtin_memcpy): Alignments are unsigned.
4234         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
4235         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
4236         * predict.c (expensive_function_p): LIMIT now unsigned.
4237         * resource.c (mark_target_live_regs): Make some vars unsigned.
4238         * sdbout.c: Use "unsigned int", not "unsigned".
4239         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
4240         (sdbout_source_line): Likewise.
4241         (sdbout_record_type_name): Remove "const" for NAME declaration.
4242         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
4244 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
4246         * calls.c (store_one_arg): Expand comment.
4248 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4250         * calls.c (store_one_arg): Make sure that the entire argument is
4251         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
4253 2001-09-09  Richard Henderson  <rth@redhat.com>
4255         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
4257 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
4259         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
4261 2001-09-09  Richard Henderson  <rth@redhat.com>
4263         * config/alpha/alpha.c (alpha_next_sequence_number): New.
4264         (alpha_this_literal_sequence_number): New.
4265         (alpha_this_gpdisp_sequence_number): New.
4266         (some_operand, input_operand): Add HIGH.
4267         (local_symbolic_operand): New.
4268         (alpha_encode_section_info): New.
4269         (alpha_legitimate_address_p): Allow LO_SUM.
4270         (alpha_legitimize_address): Generate HIGH+LO_SUM.
4271         (alpha_expand_mov): Likewise.
4272         (secondary_reload_class): Check memory_operand not general_operand
4273         for FP_REGS test.
4274         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
4275         (alpha_expand_unaligned_store): Likewise.
4276         (alpha_expand_unaligned_load_words): Likewise.
4277         (alpha_expand_unaligned_store_words): Likewise.
4278         (alpha_expand_block_clear): Likewise.
4279         (print_operand): Handle %#, %*, %H.
4280         (print_operand_address): Handle LO_SUM.
4281         (find_lo_sum): New.
4282         (alpha_does_function_need_gp): Use it.
4283         (alpha_expand_block_move): Fix signed compare warnings.
4284         (alpha_sa_mask, alpha_align_insns): Likewise.
4285         * config/alpha/alpha-protos.h: Update.
4286         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
4287         (MASK_EXPLICIT_RELOCS): New.
4288         (TARGET_SWITCHES): Add -mexplicit-relocs.
4289         (EXTRA_CONSTRAINT): Add 'T'.
4290         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
4291         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
4292         (ENCODE_SECTION_INFO): Out line.
4293         (REDO_SECTION_INFO_P): New.
4294         (STRIP_NAME_ENCODING): New.
4295         (ASM_OUTPUT_LABELREF): New.
4296         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
4297         (PREDICATE_CODES): Update.
4298         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
4299         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
4300         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
4301         builtin_setjmp_receiver_er, exception_receiver_1_er,
4302         call_value_osf_1_er): New patterns.
4303         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
4304         (movqi, movhi, movsi): Add explicit $31 base register to lda.
4305         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
4306         (FINAL_PRESCAN_INSN): New.
4308 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
4310         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
4312 2001-09-08  Andreas Jaeger  <aj@suse.de>
4314         * i386.h (TARGET_SWITCHES): Fix description.
4316 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
4318         * rs6000.c (num_insns_constant): Compute number of instructions
4319         more accurately.
4321         * doc/install.texi: Explain AIX exception handling work-around.
4322         Update URL for AIX fixes.
4324 2001-09-07  Jim Wilson  <wilson@redhat.com>
4326         * alias.c (clear_reg_alias_info): New.
4327         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
4328         * rtl.h (clear_reg_alias_info): Declare.
4330 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4332         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
4333         available.
4334         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
4335         (m16m,edivm,emulm): Change declaration to match definition.
4337 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
4339         * reload.c (push_reload): Check for subreg_lowpart_p instead of
4340         SUBREG_BYTE being 0 when determining if the inner part of a subreg
4341         can be reloaded.
4343 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4345         * c-common.c (signed_or_unsigned_type): Handle machine mode types
4346         which have no corresponding C type.
4347         * fold_const.c (target_isinf,target_isnan,target_negative): Update
4348         the representation of 64-bit doubles to work with 64-bit ints.
4350 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
4352         * config/mips/mips.c (override_options): Do not override ISA when ABI
4353         specified if MIPS_CPU_STRING_DEFAULT was specified.
4355 2001-09-07  Richard Henderson  <rth@redhat.com>
4357         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
4358         (express_from_1): Wrap lines.
4359         * rtlanal.c (commutative_operand_precedence): Rename from
4360         operand_preference; export.
4361         * rtl.h: Declare it.
4362         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
4363         (simplify_binary_operation): Invoke simplify_plus_minus on
4364         (CONST (PLUS ...)) as well.
4365         (struct simplify_plus_minus_op_data): New.
4366         (simplify_plus_minus_op_data_cmp): New.
4367         (simplify_plus_minus): Use them.  Avoid infinite recursion with
4368         simplify_binary_operation wrt CONST.
4370 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
4372         * h8300-protos.h (general_operand_dst_push): Remove.
4373         * h8300.c (general_operand_dst_push): Likewise.
4374         * h8300.h (OK_FOR_T): Likewise.
4375         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
4376         * h8300.md (pushqi_h8300): New.
4377         (pushqi_h8300hs): Likewise.
4378         (pushqi): Likewise.
4379         (pushhi_h8300): Likewise.
4380         (pushhi_h8300hs): Likewise.
4381         (pushhi): Likewise.
4383 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4385         * genattrtab.c (attr_printf): First arg is unsigned.
4386         Clean up formatting of callers.
4388 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
4390         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
4391         registers.
4393 2001-09-07  Andreas Jaeger  <aj@suse.de>
4395         * i386.h (TARGET_SWITCHES): Fix descriptions.
4397 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4399         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
4401 2001-09-06  Ira Ruben  <ira@apple.com>
4403         Remove OP_IDENTIFIER.
4404         * tree.def (OP_IDENTIFIER): Remove.
4405         * tree.c (tree_node_kind enum): Remove op_id_kind.
4406         (tree_node_kind_names): Remove "op_identifiers".
4407         (make_node): Remove OP_IDENTIFIER test.
4408         (build_op_identifier): Removed because it isn't being used.
4409         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
4410         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
4412 2001-09-06  Richard Henderson  <rth@redhat.com>
4414         * simplify-rtx.c (simplify_binary_operation): Revert last change.
4416 2001-09-06  Richard Henderson  <rth@redhat.com>
4418         * simplify-rtx.c (simplify_binary_operation): Simplify contents
4419         of CONST.
4421 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4423         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
4424         number used for CR register.
4426 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4427                           Joern Rennecke (amylaar@cygnus.com)
4429         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
4430         * h8300.c (initial_offset): Handle offset between RP and FP.
4431         (h8300_return_addr_rtx): New function.
4432         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
4433         return register.
4434         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
4435         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4436         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
4437         (CAN_ELIMINATE, REGISTER_NAMES):
4438         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
4440 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
4442         Remove TYPE_NONCOPIED_PARTS.
4443         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
4444         (struct tree_type): Remove noncopied_parts.
4445         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
4446         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
4447         (fixed_type_p): Remove.
4448         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
4449         (expand_expr, MODIFY_EXPR): Likewise.
4450         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
4451         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
4453 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
4455         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
4456         compiler warnings.
4457         (mask64_operand): Likewise.
4458         (includes_rldic_lshift_p): Likewise.
4459         (includes_rldicr_lshift_p): Likewise.
4461 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
4463         * objc/objc-act.c (build_message_expr): If a class method cannot
4464         be found, do not issue a warning if a corresponding instance
4465         method exists in the root class.
4467 2001-09-05  Richard Henderson  <rth@redhat.com>
4469         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
4471 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
4473         * function.c (ggc_mark_struct_function): Mark f->outer.
4474         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
4475         * integrate.c (output_inline_function): ... not here.
4477 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
4479         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
4481         * i386.c (size_cost): New static variable.
4482         (override_function): Use size_cost when -Os is specified.
4484         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
4485         properly;  Use current_function_calls_eh_return.
4486         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
4487         use leave to avoid depdendancy chain.
4489         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
4490         get BB loop_depth instead of computing it from LOOP notes.
4492         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
4494 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4496         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4497         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4498         UNALIGNED_DOUBLE_INT_ASM_OP): Define
4500 2001-09-05  Jeffrey A Law  (law@cygnus.com)
4501             Jason Merrill (jason@redhat.com)
4503         * stor-layout.c (layout_type): Complain if an array's size can
4504         not be represented in a size_t.
4506         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
4508 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
4510         * gcc.c: (process_command) Add parentheses around assignment
4511         used as truth value.
4513 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4515         * config/mips/mips.c (save_restore_insns): Don't mark any register
4516         save slots as unchanging if current_function_calls_eh_return.
4518 2001-09-05  Richard Henderson  <rth@redhat.com>
4520         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
4521         * config/alpha/alpha-protos.h: Declare it.
4522         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
4523         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
4524         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
4525         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
4526         (REG_OK_FOR_BASE_P): Select one of the above.
4528 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4530         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
4531         (crti.o): Prefix name of object file with $(T).
4532         (crtn.o): Likewise.
4534 2001-09-05  David S. Miller  <davem@redhat.com>
4536         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4537         * config/sparc/linux64.h: Likewise.
4539 2001-09-05  Andreas Jaeger  <aj@suse.de>
4541         * doc/invoke.texi (i386 Options): -mwide-multiply is not
4542         available anymore, remove the documentation.
4543         (i386 Options): Fix typo, cleanup index entries.
4545         * prefix.c (concat): Remove, we can use the version from liberty.
4547 2001-09-05  Richard Henderson  <rth@redhat.com>
4549         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
4550         New functions split out of md file expanders.
4551         * config/alpha/alpha-protos.h: Declare them.
4552         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
4554 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4556         * cppmacro.c (funlike_invocation_p): No need to restore context.
4558 2001-09-04  Richard Henderson  <rth@redhat.com>
4560         * reload.c (push_reload): Export.
4561         * reload.h (push_reload): Declare it.
4563         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
4564         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4565         * config/alpha/alpha.c (alpha_legitimize_address): New.
4566         (alpha_legitimize_reload_address): Likewise.
4567         * config/alpha/alpha-protos.h: Declare them.
4569 2001-09-04  Stan Shebs  <shebs@apple.com>
4571         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
4572         * config/darwin.c (machopic_stub_name): Account for internally
4573         generated lib calls such as memcpy.
4575 2001-09-04  Richard Henderson  <rth@redhat.com>
4577         * unwind.h (_UA_END_OF_STACK): New flag.
4578         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
4580 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4582         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
4584 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
4586         * config/mips/mips.c (save_restore_insns): Change base_offset to
4587         fp_offset in second call to mips_emit_frame_related_store.
4589 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
4591         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
4592         sometimes be represented as a NOTE of type
4593         NOTE_INSN_DELETED_LABEL.
4594         (Insns): Document NOTE_INSN_DELETED_LABEL.
4596 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
4598         * c-common.h (tree_dump_index): Add more comments.
4599         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
4600         (dump_option_value_info): New struct.
4601         (dump_options): New array.
4602         (dump_switch_p): Parse switch options symbolically.
4603         * doc/invoke.texi (-fdump-ast): Rename to ...
4604         (-fdump-tree): ... here. Document that options are symbolic, and
4605         not all are applicable.
4607 2001-09-04  David S. Miller  <davem@redhat.com>
4609         * config/sparc/sparc.md (define_splits): Kill constraints.
4611         Cleanup redundant and unused insn attributes.
4612         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
4613         binary, and move.  Mark ialu as default.
4614         (commented out define_function_unit "alu"): Kill.
4615         (define_attr "use_clobbered"): Kill.
4616         (whole file): Kill address insn type references.  Replace
4617         all unary/binary/move references with ialu.
4618         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
4619         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
4620         TYPE_IALU.
4622         Simplify length insn attribute and make more judicious use
4623         of insn attribute defaulting.
4624         * config/sparc/sparc.md (all insns with length > one): Mark as
4625         insn type multi if real instructions, else use default if
4626         it is a forced splitter.
4627         (all insns with length == one): Use default insn length.
4628         (all insns of type ialu): Use default insn type.
4630         Fix erroneous insn attribute settings.
4631         (addx): Set insn type to misc.
4632         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
4633         const_umulsidi3_sp64): Set insn type to imul.
4635         Track SFmode vs DFmode insns according to UltraSPARC
4636         scheduling rules.
4637         * config/sparc/sparc.md ("fptype"): New attribute, default
4638         to "single".
4639         (all DFmode single insns): Mark as fptype "double".
4641 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
4643         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
4645 2001-09-03  Richard Henderson  <rth@redhat.com>
4647         * function.h (struct function): Add arg_pointer_save_area_init.
4648         * function.c (expand_function_end): Init arg_pointer_save_area.
4649         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
4650         when called from a nested function.
4652 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
4654         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
4655         is enabled.
4657 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
4659         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
4661 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
4663         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
4664         (emit_push_insn): Use specified padding direction when
4665         STACK_PUSH_CODE is POST_INC.
4667         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
4669 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4671         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
4673 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4675         * cppinit.c (cpp_start_read): Free the imacros list as we
4676         traverse it.  Don't free the chains before returning.
4677         (_cpp_push_next_buffer): Only try pushing buffers if we've
4678         completed -imacros handling.
4680 2001-08-31  Eric Christopher  <echristo@redhat.com>
4682         * gcc.c (handle_braces): Add explaination for abort.
4684 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
4686         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
4687         move adjustment of bitpos instead.
4689 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
4691         * function.c: Remove all_functions.  Make outer_function_chain
4692         static.
4693         (init_function_start): Don't add new function structure to
4694         all_functions.
4695         (find_function_data, push_function_context_to,
4696         pop_function_context_from, put_var_into_stack,
4697         trampoline_address): Update for changed structure element names.
4698         (push_function_context_to): Disentangle.
4699         (free_after_compilation): Also free F.
4700         (expand_dummy_function_end): Don't free cfun here.
4701         (put_var_into_stack): Comment why we can't use find_function_data here.
4702         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
4703         (mark_function_chain): Split into maybe_mark_struct_function and
4704         ggc_mark_struct_function.  Export the latter.
4705         (init_function_once): Mark from cfun and outer_function_chain;
4706         not all_functions.
4708         * function.h (struct function): Kill next_global.  Rename next
4709         to outer.  All users updated to match.
4710         (all_functions, outer_function_chain): Don't declare.
4712         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
4713         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
4714         don't touch f->inlinable, after calling rest_of_compilation.
4716         * tree.h: Forward-declare struct function.  Prototype
4717         ggc_mark_struct_function.
4719 2001-08-31  Kazu Hirata  <kazu@hxi.com>
4721         * config/h8300/h8300.md (*andorhi3): Fix typos.
4723 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4725         * calls.c (emit_library_call_value): Don't use a fixed
4726         argument after VA_CLOSE, i.e. out of scope in traditional C.
4728         * emit-rtl.c (gen_rtvec): Likewise.
4730 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4732         * Makefile.in (c-pragma.o): Depend on output.h.
4733         (reorg.o): Depend on except.h.
4735         * c-pragma.c: Include output.h.
4737         * reorg.c: Include except.h.
4739         * unwind-dw2.c: Call __builtin_alloca, not alloca.
4741 2001-08-31  Richard Henderson  <rth@redhat.com>
4743         * sched-deps.c (add_dependence): Don't elide dependancy if the
4744         conditional used by insn is modified in elem.
4746 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
4748         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4750 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
4752         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
4753         dump_switch_p.
4755 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4757         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
4758         function.
4759         (stormy16_asm_out_constructor): New function.
4760         (TARGET_ASM_CONSTRUCTOR): Define.
4761         (TARGET_ASM_DESTRUCTOR): Define.
4763 2001-08-31  Andreas Jaeger  <aj@suse.de>
4765         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
4766         * loop.c (add_label_notes): Likewise.
4767         * reload.c (find_reloads): Likewise.
4768         * config/sh/sh.c (machine_dependent_reorg): Likewise.
4770 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
4772         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
4773         code here.  Take _Unwind_{W,Sw}ord*.
4774         (read_encoded_value_with_base): Use them.
4775         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
4776         words.
4777         (extract_cie_info): Simplify read_?leb128 handling.
4778         (execute_stack_op, execute_cfa_program): Likewise.
4779         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
4781 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4783         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
4784         the frame pointer to pop the stack if convenient.
4786         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
4787         Don't use post-increment before combine.
4788         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
4789         a call-saved register.
4791 2001-08-31  Andreas Jaeger  <aj@suse.de>
4793         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
4794         code was correct.
4796 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
4798         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
4799         not DIV/MOD, of course.
4801 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
4803         * rtl.def: Undo my patch commited 2001-08-27.
4805         * genattrtab.c: Ditto.
4807         * rtl.h: Ditto.
4809         * sched-int.h: Ditto.
4811         * target-def.h: Ditto.
4813         * target.h: Ditto.
4815         * haifa-sched.c: Ditto.
4817         * sched-rgn.c: Ditto.
4819         * sched-vis.c: Ditto.
4821         * Makefile.in: Ditto.
4823         * doc/md.texi: Ditto.
4825         * doc/tm.texi: Ditto.
4827         * doc/contrib.texi: Ditto.
4829         * doc/gcc.texi: Ditto.
4831         * genattrtab.h: Remove it.
4833         * genautomata.c: Remove it.
4835         * genattr.c: Undo my patch and Richard Henderson's patch commited
4836         2001-08-27.
4838 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
4840         * config.gcc (h8300-*-elf*): New case.
4841         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
4842         (SUBTARGET_CPP_SPEC): Define.
4843         (EXTRA_SPECS): Define.
4844         (SUBTARGET_EXTRA_SPECS): Define.
4845         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
4846         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
4848 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
4850         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
4851         (LIB2FUNCS_EXTRA): Define.
4852         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
4853         config/h8300/fixunssfsi.c: New file.
4855 2001-08-30  Kazu Hirata  <kazu@hxi.com>
4857         * config/h8300/h8300.md (zero_extendqihi2): Changes to
4858         define_expand to accomodate target-specific attributes.
4859         (anonymous zero_extendqihi2 patterns): New.
4861 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
4863         * h8300.md (*andorhi3): New pattern.
4865 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
4867         * h8300.c (dosize): Fix test for "sub".
4869 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
4871         * c-typeck.c (pointer_diff): Try to eliminate common term before
4872         doing conversions.
4874 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
4876         * config/arm/arm.c (arm_compute_initial_elimination_offset):
4877         Account for the saves of the FP registers.
4879         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
4880         (TEXT_SECTION_ASM_OP): Define.
4881         (INIT_SECTION_ASM_OP): Define.
4882         (FINI_SECTION_ASM_OP): Define.
4883         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
4884         (RDATA_SECTION_FUNCITON): Provide prototype.
4886 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
4888         * reload1.c (move2add_note_store): Correct typo checking for
4889         argument pushes.
4891 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
4893         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
4894         note should not be considered outside the libcall block.
4896 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4898         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
4900 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4902         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
4904 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4906         * config/h8300/h8300-protos.h: Add a prototype for
4907         emit_logical_op.
4908         * config/h8300/h8300.c (emit_logical_op): New.
4909         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
4910         (andsi3): Likewise.
4911         (iorhi3): Likewise.
4912         (iorsi3): Likewise.
4913         (xorhi3): Likewise.
4914         (xorsi3): Likewise.
4916 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4918         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
4919         comparison with rtx INTVAL.
4920         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
4921         expression.
4922         * pa.h (FUNCTION_ARG_SIZE): Likewise.
4924 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4926         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
4927         comment typos.
4929 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4931         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
4932         (reg n) to (mem (pre_dec (reg n))
4933         (anonymous movsi pattern): Likewise.
4935 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4937         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
4939 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4941         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
4942         several special constants.
4944 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4946         * config/h8300/lib1funcs.asm: Fix comment typos.
4948 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4950         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
4951         Fix format specifier warnings.
4953         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
4954         inet_makeaddr, semctl): Prototype.
4956         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
4957         (save_restore_insns): Use base_offset, not gp_offset.
4959         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
4960         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4962 2001-08-29  Richard Henderson  <rth@redhat.com>
4964         * bb-reorder.c (function_tail_eff_head): New.
4965         (record_effective_endpoints): Set it.
4966         (fixup_reorder_chain): Use it.
4968 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4970         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
4972 2001-08-28  Dale Johannesen  <dalej@apple.com>
4974         * config/darwin.c (machopic_function_base_name): Add const
4975         qualifier to a string.
4976         (darwin_encode_section_info): Ditto.
4978 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4980         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
4981         function definition.
4983 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4985         * df.h (struct df): Add rts_order variable.
4987         * df.c (df_visit_next_rts): New function.
4988         (df_visit_next): Renamed to df_visit_next_rc
4989         (df_analyse_1): Allocate/compute/free rts_order as well.
4990         (df_rd_global_compute): Use df_visit_next_rc instead of
4991         df_visit_next.
4992         (df_ru_global_compute): Use df_visit_next_rts instead of
4993         df_visit_next.
4995         * flow.c (flow_reverse_top_sort_order_compute): New function.
4997         * basic-block.h: Add prototype.
4999 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
5001         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
5002         blocks, the BB_REACHABLE is now set, rather than aux being
5003         non-NULL. Update the test to reflect this.
5005 2001-08-28  Eric Christopher  <echristo@redhat.com>
5007         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
5008         config/mips/crti.asm: Ditto.
5010 2001-08-28  Eric Christopher <echristo@redhat.com>
5011             Richard Henderson <rth@redhat.com>
5013         * c-pragma.h (add_weak): Move prototype from here...
5014         * output.h (add_weak): ... to here.
5015         * varasm.c (add_weak): Fix typo.
5016         * config/mips/crti.asm: New file.
5017         * config/mips/crtn.asm: Ditto.
5018         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
5019         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
5020         (INVOKE__main): Ditto.
5021         (INIT_SECTION_ASM_OP): New.
5022         (FINI_SECTION_ASM_OP): Ditto.
5023         (STARTFILE_SPEC): Add crti.
5024         (ENDFILE_SPEC): Add crtn.
5025         * config/mips/elf64.h: Same.
5026         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
5027         Remove.
5028         * config/mips/vxworks.h: Ditto.
5029         * config/mips/t-elf: Support crti and crtn.
5031 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
5033         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
5034         INSN_LIST.
5036 2001-08-28  Richard Henderson  <rth@redhat.com>
5038         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
5039         (one_cmplbi2 splitter): Remove redundant test.
5041 2001-08-28  Dale Johannesen  <dalej@apple.com>
5043         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
5045 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
5047         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
5049 2001-08-28  Stan Shebs  <shebs@apple.com>
5051         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
5052         (UNALIGNED_SHORT_ASM_OP): Define.
5053         (UNALIGNED_INT_ASM_OP): Define.
5055 2001-08-28  Will Cohen  <wcohen@redhat.com>
5057         * config/rs6000/rs6000.md (store_multiple): Correct RTL
5058         generation for first set.
5060 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5062         * flow.c (redirect_edge_succ_nodup): Return new edge.
5063         (try_simplify_condjump): Use new edge.
5064         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
5066         * cse.c (cse_basic_block): Skip note instructions.
5068 2001-08-27  Richard Henderson  <rth@redhat.com>
5070         * combine.c (combine_simplify_rtx): Don't reverse condition
5071         if there is no reverse for the condition.
5072         (simplify_comparison): Don't simplify subregs from INT to FP.
5074         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
5075         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
5076         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
5077         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
5078         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
5079         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
5081 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5083         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
5084         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
5085         (pushqi1): New.
5086         (adddi_dilshr32, adddi_dishl32): Only data register can be
5087         source for mem destination.
5089         * expmed.c (store_bit_field): Ignore adjustment to bitpos
5090         and use bitnum to decide about register move.
5092 2001-08-27  Richard Henderson  <rth@redhat.com>
5094         * genattr.c (main): Emit state_t even when not doing scheduling.
5096 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5097             Richard Henderson  <rth@redhat.com>
5099         * gcse.c (reg_first_set, reg_last_set): Replace with ...
5100         (reg_avail_info, current_bb): ... these.
5101         (oprs_unchanged_p, record_last_reg_set_info): Use them.
5102         (compute_hash_table): Likewise.
5104 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5106         * flow.c (verify_flow_info): Use checksums to verify edges.
5108 2001-08-27  Richard Henderson  <rth@redhat.com>
5110         * genautomata.c (expand_automata): Always create a description.
5112 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5114         * optabs.c (expand_binop): Correctly handle the carry in multiword
5115         add/subtract operations.
5117 2001-08-27  Fred Fish  <fnf@be.com>
5119         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
5120         __SIZE_TYPE__.
5122 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5124         * reload.c (find_reloads_toplev): Back out this change:
5126         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
5128         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
5129         mem if the address is a mode_dependent_address_p.
5131 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5133         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5134         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5135         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5136         RTL constructions.
5138         * genattr.c (main): New variable num_insn_reservations.  Increase
5139         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5140         pipeline hazard recognizer interface.
5142         * genattrtab.h: New file.
5144         * genattrtab.c: Include genattrtab.h.
5145         (attr_printf, check_attr_test, make_internal_attr,
5146         make_numeric_value): Move protypes into genattrtab.h.  Define them
5147         as external.
5148         (num_dfa_decls): New global variable.
5149         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5150         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5151         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5152         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5154         * genautomata.c: New file.
5156         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5158         * sched-int.h: (curr_state): Add the external definition for
5159         automaton pipeline interface.
5160         (haifa_insn_data): Add comments for members blockage and units.
5162         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5163         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5164         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5165         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5166         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5167         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5168         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5169         macros.
5170         (TARGET_SCHED): Use the new macros.
5172         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5173         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5174         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5175         dfa_bubble): New members in gcc_target.sched.
5177         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5178         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5179         (insn_queue): Redefine it as pointer to array.
5180         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5181         INSN_QUEUE_SIZE.
5182         (max_insn_queue_index_macro_value): New variable.
5183         (curr_state, dfa_state_size, ready_try): New varaibles for
5184         automaton interface.
5185         (ready_element, ready_remove, max_issue): New function prototypes
5186         for automaton interface.
5187         (choose_ready): New function prototype.
5188         (insn_unit, blockage_range): Add comments.
5189         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5190         FUNCTION_UNITS_SIZE == 0.
5191         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5192         actual_hazard, potential_hazard): Add comments.
5193         (insn_cost): Use cost -1 as undefined value.  Remove
5194         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5195         pipeline interface.
5196         (ready_element, ready_remove): New functions for automaton
5197         interface.
5198         (schedule_insn): Add new code for automaton pipeline interface.
5199         (queue_to_ready): Add new code for automaton pipeline interface.
5200         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5201         (debug_ready_list): Print newline when the queue is empty.
5202         (max_issue): New function for automaton pipeline interface.
5203         (choose_ready): New function.
5204         (schedule_block): Add new code for automaton pipeline interface.
5205         Print ready list before scheduling each insn.
5206         (sched_init): Add new code for automaton pipeline interface.
5207         Initiate insn cost by -1.
5208         (sched_finish): Free the current automaton state and finalize
5209         automaton pipeline interface.
5211         * sched-rgn.c: Include target.h.
5212         (init_ready_list, new_ready, debug_dependencies): Add new code for
5213         automaton pipeline interface.
5215         * sched-vis.c: Include target.h.
5216         (get_visual_tbl_length): Add code for automaton interface.
5217         (target_units, print_block_visualization):  Add comments.
5219         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5220         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5221         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5222         (getruntime.o, genautomata.o): New entries.
5223         (genattrtab.o): Add new dependency file genattrtab.h.
5224         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5225         (getruntime.o, hashtab.o): New entries for canadian cross.
5227         * doc/md.texi: Description of automaton based model.
5229         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5230         Add comments.
5231         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5232         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5233         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5234         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5235         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5236         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5237         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5238         hook descriptions.
5239         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5240         MAX_DFA_ISSUE_RATE): New macro descriptions.
5242         * doc/contrib.texi: Add dfa based scheduler contribution.
5244         * doc/gcc.texi: Add more information about genattrtab.
5246 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
5248         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
5249         an RTL basic block.
5251 2001-08-27  Richard Henderson  <rth@redhat.com>
5253         * function.c (expand_function_end): Don't init arg_pointer_save_area.
5254         (get_arg_pointer_save_area): New.  Create an init it here.
5255         (fix_lexical_addr): Use it.
5256         * function.h: Declare it.
5257         * builtins.c (expand_builtin_setjmp_receiver): Use it.
5258         * stmt.c (expand_nl_goto_receiver): Use it.
5260 2001-08-27  Richard Henderson  <rth@redhat.com>
5262         * final.c (final_scan_insn): Don't enter APP_ON mode for
5263         empty asm strings.
5265         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
5266         alignment for assemble_integer for DW_EH_PE_aligned.
5267         * except.c (output_function_exception_table): Likewise.
5269 2001-08-26  Andreas Jaeger  <aj@suse.de>
5271         * c-tree.h: Add prototyp for c_sizeof_nowarn.
5273 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
5275         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
5277 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
5279         * config/rs6000/rs6000.c (mask_operand): Rewrite without
5280         bit-shifting loop.
5281         (mask64_operand): Likewise.
5282         (rldic_operand): Delete.
5283         (includes_lshift64_p): Delete.
5284         (includes_rldic_lshift_p): New function.
5285         (includes_rldicr_lshift_p): New function.
5286         (print_operand): Don't call rldic_operand in case 'W'.
5287         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
5288         (includes_lshift64_p): Remove.
5289         (includes_rldic_lshift_p): Declare.
5290         (includes_rldicr_lshift_p): Declare.
5291         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
5292         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
5293         Replace match_operand rldic_operand predicate with
5294         const_int_operand.  Replace includes_lshift64_p condition with
5295         includes_rldic_lshift_p.
5296         <ashldi3_internal 64 bit rldicr patterns>: New.
5298 2001-08-27  Andreas Jaeger  <aj@suse.de>
5300         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5301         * errors.c: Likewise.
5302         * final.c: Likewise.
5303         * dwarf2asm.c: Likewise.
5304         * doprint.c (checkit): Likewise.
5305         * diagnostic.c: Likewise.
5306         * collect2.c: Likewise.
5307         * calls.c: Likewise.
5308         * c-semantics.c (build_stmt): Likewise.
5309         * c-format.c (status_warning): Likewise.
5310         * c-errors.c (pedwarn_c99): Likewise.
5311         * builtins.c (validate_arglist): Likewise.
5312         * config/pj/pj.c (pj_printf): Likewise.
5313         * fix-header.c: Likewise.
5314         * gcc.c: Likewise.
5315         * gcov.c (fnotice): Likewise.
5316         * gensupport.c (message_with_line): Likewise.
5317         * mips-tfile.c: Likewise.
5318         * protoize.c (notice): Likewise.
5319         * read-rtl.c (fatal_with_file_and_line): Likewise.
5320         * rtl-error.c: Likewise.
5321         * tradcpp.c: Likewise.
5322         * tree.c: Likewise.
5323         * cp/tree.c (build_min_nt): Likewise.
5324         (build_min): Likewise.
5325         * cp/lex.c: Likewise.
5326         * cp/errfn.c: Likewise.
5327         * cp/rtti.c (create_pseudo_type_info): Likewise.
5329 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
5331         * df.c (df_uses_record): Return after recording all uses
5332         in ASM_OPERANDS.
5334 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
5336         * df.c (df_insn_modify): Realloc the INSN table here, if
5337         necessary, here, too.
5339 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
5341         * config/mips/mips.c (mips_function_value): Handle complex return
5342         values.
5344 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
5346         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
5347         unshared.
5348         * reload.c (make_memloc): Copy result if it is still
5349         reg_equiv_memory_loc[regno] on return.
5350         (subst_reloads) [ENABLE_CHECKING]: Check that none of
5351         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
5352         reg_equiv_mem are modified by the substitutions.
5354 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5356         * predict.c (expensive_function_p): New.
5357         * rtl.h (expensive_function_p): Declare.
5358         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
5359         (use_fast_prologue_epilogue): New static variable.
5360         (expand_prologue): Set it; emit short prologues if unset.
5361         (expand_epilogue): Likewise.
5363 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5365         * config.gcc: Add stormy16-*-elf case.
5366         * config/stormy16/stormy-abi: New file.
5367         * config/stormy16/stormy16-lib2.c: New file.
5368         * config/stormy16/stormy16-protos.h: New file.
5369         * config/stormy16/stormy16.c: New file.
5370         * config/stormy16/stormy16.h: New file.
5371         * config/stormy16/stormy16.md: New file.
5372         * config/stormy16/t-stormy16: New file.
5374 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5376         * i386.h (no-accumulate-outgoing-args): Use proper mask.
5378 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
5380         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
5381         descriptor members are pointer size, not constant 4.
5382         * config/rs6000/rs6000.md (define_splits): Remove more unused
5383         constraints.
5385 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5387         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5389 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
5391         * cp/rtti.c (VPARAMS): Fix parameter.
5393 2001-08-24  Zack Weinberg  <zackw@panix.com>
5395         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
5396         to zero.
5397         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
5398         to switch.
5399         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
5400         in if controlling use of insv.
5401         (extract_bit_field): Likewise, for extv and extzv.
5403 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
5405         * i386.md (movcc peep2): Fix load of 0.
5407 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5409         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
5410         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
5412 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
5414         * c-pragma.h: Move weak_syms and weak_decls...
5415         * varasm.c: ...here.  Now static.
5416         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
5417         depend on HANDLE_PRAGMA_WEAK.
5419         * c-common.c (c_alignof, c_alignof_expr): Move here...
5420         * c-typeck.c: ...from here.
5421         * c-tree.h, c-common.h: Adjust.
5423 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
5425         * config/ia64/ia64.c (rws_update): If !pred, set write_count
5426         instead of incrementing it.
5428         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
5429         asm ready, don't try to move them all into the same array element.
5431 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5433         * function.c (thread_prologue_and_epilogue_insns): Avoid
5434         fallthru flag on edge to exit.
5436         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
5438         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
5439         dead edges.
5441 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5443         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
5444         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
5445         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
5446         Remove prototype.
5448 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5450         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
5451         replace "GNU CC" with "GCC".
5453 2001-08-23  Richard Henderson  <rth@redhat.com>
5455         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
5456         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
5457         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
5458         Need GR between FR and not GR_AND_FR.
5459         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
5460         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
5461         AR regs before GR regs.
5462         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
5463         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
5464         (REGISTER_MOVE_COST): Update.
5465         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
5467 2001-08-23  Richard Henderson  <rth@redhat.com>
5469         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
5470         a register class.
5472 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5474         * reload1.c (emit_reload_insns): Don't look for notes
5475         on a NULL store_insn.
5477 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5479         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
5480         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
5481         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
5482         format specifier warnings.
5483         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
5485 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
5487         * config/i386/i386-protos.h: Correct declaration of
5488         i386_pe_asm_named_section.
5490 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5492         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
5493         variable i.
5494         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
5496 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5498         * cpperror.c (print_location): Don't show _Pragma.
5499         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
5500         and file change callback generation here.
5501         (stack_include_file): Update use of cpp_push_buffer.
5502         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
5503         (struct cpp_buffer): Remove type, pfile members.
5504         * cppinit.c (cpp_handle_option): Use free_chain.
5505         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
5506         (skip_escaped_newlines, get_effective_char, lex_percent): Take
5507         a cpp_reader rather than a cpp_buffer.
5508         (skip_escaped_newlines, get_effective_char, skip_block_comment,
5509         skip_line_comment, parse_string, lex_percent, lex_dot,
5510         _cpp_lex_token): Update accordingly.
5511         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
5512         generation here.
5513         (cpp_push_buffer): Update prototype.
5514         (run_directive): Update use of cpp_push_buffer.
5515         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
5516         handle_assertion): Update use of run_directive.
5517         * cpplib.h (enum cpp_buffer_type): Remove.
5518         (cpp_push_buffer): Update prototype.
5519         * fix-header.c (read_scan_file): Update.
5521 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5523         * gcc.c (struct prefix_list): Change prefix to const char *.
5525 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5527         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
5529 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
5531         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
5532         from a new MEM.
5534         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
5535         a squeezable note.
5536         * rtl.h: Adjust.
5537         * ifcvt.c (dead_or_predicable): Adjust.
5538         * loop.c (find_and_verify_loops): Adjust.
5539         * stmt.c (expand_end_case): Adjust.
5540         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
5541         head and end insn pointers in the basic block, not just local copies.
5542         (merge_blocks_move_predecessor_nojumps): Likewise.
5544 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
5546         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
5547         bitmap.h, builtin-types.def, builtins.c, builtins.def,
5548         c-aux-info.c, c-common.c, c-common.def, c-common.h,
5549         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
5550         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
5551         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
5552         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
5553         conditions.h, config.gcc, configure.frag, configure.in,
5554         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
5555         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
5556         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
5557         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
5558         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
5559         emit-rtl.c, errors.c, errors.h, except.c, except.h,
5560         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
5561         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
5562         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
5563         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
5564         gencheck.c, gencodes.c, genconfig.c, genemit.c,
5565         genextract.c, genflags.c, gengenrtl.c, genmultilib,
5566         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
5567         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
5568         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
5569         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
5570         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
5571         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
5572         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
5573         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
5574         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
5575         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
5576         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
5577         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
5578         params.h, predict.c, predict.def, predict.h, prefix.c,
5579         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
5580         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
5581         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
5582         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
5583         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
5584         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
5585         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
5586         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
5587         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
5588         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
5589         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
5590         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
5591         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
5592         xcoffout.h: replace "GNU CC" with "GCC".
5594 2001-08-21  Richard Henderson  <rth@redhat.com>
5596         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
5597         (final_scan_insn): Consider jump tables data even if we have no
5598         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
5599         ADDR_VEC_ALIGN.
5600         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
5601         (ASM_OUTPUT_CASE_END): Remove.
5602         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
5603         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
5604         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5606 2001-08-21  Richard Henderson  <rth@redhat.com>
5608         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
5609         at barrier insns.  Emit stop bits before barriers.
5611         * flow.c (flow_find_cross_jump): Don't consider unconditional
5612         return insns for commoning.
5614         * final.c (compute_alignments): Fix typo.
5616         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
5617         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
5618         (store_bit_field): Use mode_for_extraction more places.
5619         (extract_bit_field): Likewise.
5621 2001-08-21  Zack Weinberg  <zackw@panix.com>
5623         * caller-save.c: Don't include insn-codes.h.
5624         (reg_save_code, reg_restore_code): Make arrays of int.
5625         All uses updated to match.
5626         (insert_save, insert_restore): No need to initialize "code"
5627         variable upon declaration.
5628         * Makefile.in: update dependencies; fix typo in clean rule.
5630 2001-08-21  Richard Henderson  <rth@redhat.com>
5632         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
5633         (merge_if_block): Handle fallout from same.
5635 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5637         * builtins.c (type_to_class): Fix typo in last change.
5639 2001-08-21  Richard Henderson  <rth@redhat.com>
5641         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
5642         ia64_asm_output_label.
5644         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
5645         copy of gp while the real gp register contains garbage.
5647 2001-08-21  Zack Weinberg  <zackw@panix.com>
5649         * expmed.c (mode_for_extraction): New function.
5650         (store_bit_field, extract_bit_field): Use it.
5651         * expr.h: Prototype it and provide an enum for its first argument.
5653         * combine.c, function.c, recog.c: Don't include insn-codes.h.
5654         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
5655         and digging through the insn_data tables.
5656         * Makefile.in: Update dependencies.
5658 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5660         * cppfiles.c (stack_include_file): line-map.c now handles include
5661         depth.
5662         (handle_missing_handler): Similarly.
5663         (_cpp_execute_include): Similarly.
5664         (_cpp_pop_file_buffer): Similarly.
5665         * cpphash.h (struct cpp_reader): Remove system_include_depth,
5666         buffer_stack_depth and include_depth.
5667         * cpplib.c (do_include_common): line-map.c now handles include depth.
5668         (cpp_push_buffer): Similarly.
5669         (_cpp_pop_buffer): Similarly.
5670         * cppmacro.c (builtin_macro): Update.
5671         * line-map.c (init_line_maps): Set depth.
5672         (add_line_map): Increment "used" earlier.  Update and use the
5673         include depth.
5674         (trace_include): Use the include depth.
5675         * line-map.h (struct line_maps): New member depth.
5677 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5679         * cppfiles.c (stack_include_file): Don't handle -H here.
5680         * cppinit.c (cpp_start_read): Set include tracing after
5681         cpp_post_options and after stacking the main file.
5682         * line-map.c (trace_include): New.
5683         (init_line_maps, add_line_map): Update.
5684         * line-map.h (struct line_maps): New member trace_includes.
5686 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5688         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
5689         * cppfiles.c (stack_include_file): Only stack a file if there
5690         is something to do.  Return a boolean indicating whether a
5691         buffer was stacked or not.
5692         (_cpp_execute_include): Similarly.
5693         (_cpp_read_file): Similarly.
5694         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
5696 2001-08-21  Sam Steingold  <sds@gnu.org>
5698         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
5699         (RECACHE): keep obufp_before_macroname up to date
5701 2001-08-21  Zack Weinberg  <zackw@panix.com>
5703         * stmt.c: Don't include insn-codes.h.
5704         (expand_end_case): Machine specific logic moved to expr.c.
5705         No need to worry about __builtin_classify_type.
5706         (check_for_full_enumeration_handling, emit_case_nodes):
5707         Kill #if 0 blocks.
5709         * builtins.o (expand_builtin_classify_type): Split up so code
5710         can be shared with fold_builtin_classify_type.
5711         (type_to_class, fold_builtin_classify_type): New functions.
5712         (fold_builtins): Handle __builtin_classify_type.
5714         * expr.c (do_tablejump): Now static.
5715         (case_values_threshold, try_casesi, try_tablejump): New;
5716         code mostly from stmt.c (expand_end_case).
5717         (expr.h): Update prototypes.
5719         * Makefile.in (stmt.o): Update dependencies.
5721 2001-08-21  Will Cohen  <wcohen@redhat.com>
5723         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
5724         declaration of variable i.
5725         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
5726         declaration of variable i.
5728 2001-08-21  Richard Henderson  <rth@redhat.com>
5730         * crtstuff.c: Fix thinko last change.  Move list tails to start
5731         of CRT_END section.  Tidy ifdefs.
5732         (__EH_FRAME_BEGIN__): Always static for ELF.
5733         (__do_global_ctors_1): Rename from __frame_dummy.
5734         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
5735         name change; don't hide __EH_FRAME_BEGIN__.
5737 2001-08-21  Richard Henderson  <rth@redhat.com>
5739         * gdbinit.in: Move break on exit after break on fancy_abort.
5741         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
5742         sized types.
5744 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5746         * cpphash.h (_cpp_push_next_buffer): New.
5747         * cppinit.c (do_includes): Remove.
5748         (push_include, free_chain, _cpp_push_next_buffer): New.
5749         (cpp_start_read): Use them to rework command line option handling.
5750         (cpp_handle_option): Combine handling of -include and -imacros.
5751         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
5752         appropriate.  Always insert missing \n at EOF.
5753         * cpplib.c (start_directive): Get the directive position right.
5754         * cppmain.c (cb_file_change): Always print the first line, unless
5755         preprocessed.
5757 2001-08-20  Andreas Jaeger  <aj@suse.de>
5759         * profile.c (compute_branch_probabilities): Remove extra new-line
5760         in error message.
5761         * flow.c (verify_flow_info): Likewise.
5763 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5765         * basic-block.h (basic_block): Add new field 'flags'.
5766         (BB_REACHABLE): Define.
5767         (expunge_block): Declare.
5768         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
5769         (EXIT_BLOCK_PTR): Ditto.
5770         (expunge_block): Remove static declaration.
5771         (cleanup_cfg): Clear bb->aux on every basic block.
5772         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
5773         computing reachability.
5774         (delete_unreachable_blocks): Delete block b if b->flags has
5775         BB_REACHABLE unset.
5777 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5779         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
5781 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5783         * sparc.c (sparc_variable_issue): Fix typo in last change.
5785 2001-08-20  Richard Henderson  <rth@redhat.com>
5787         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
5789 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5791         * pa.h (RETURN_IN_MEMORY): Improve comment.
5793 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
5795         * doc/invoke.texi (Profiling options): Clarify the interactions
5796         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
5798 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
5800         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
5801         command.
5803 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5805         * gcc.c (make_relative_prefix): Allocate a sufficiently large
5806         buffer.
5808 2001-08-20  Richard Henderson  <rth@redhat.com>
5810         * final.c (end_final): Fix typo last change.
5812 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5814         * cppinit.c (init_standard_includes): The returned buffer
5815         is already malloc-ed.
5816         * gcc.c (add_prefix): Similarly.
5817         * prefix.c (translate_name): Update to support clear buffer
5818         ownership rules.
5819         (update_path): Similarly.  Be sure to free any newly allocated
5820         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
5821         (tr): New function.
5822         * prefix.h (update_path): Update prototype and document.
5823         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
5824         up and update to new buffer ownership rules.
5825         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
5827 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
5829         * final.c (compute_alignments): New function.
5830         (init_insn_lengths): Do not care label_align.
5831         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
5832         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
5833         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
5834         (shorted_branches): Realloc label_align array; do
5835         not call init_insn_lengths; Do not care about loop alignments.
5836         * output.h (compute_alignments): Declare.
5837         * toplev.c (rest_of_compilation): Call compute_alignments.
5838         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
5840         * predict.c (block_info_def): Add npredecesors, remove nvisited;
5841         change visited to tovisit.
5842         (propagate_freq): Use faster traversing algorithm.
5843         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
5844         to tovisit; reverse meaning.
5846         * predict.c (struct block_info_def): Remove nvisited.
5847         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
5848         (estimate_bb_frequencies): Call mark_dfs_back_edges.
5850 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
5852         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
5853         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
5854         (TARGET_FUSED_MADD): New.
5855         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
5856         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
5857         the multiply-add instructions.
5859 2001-08-19  Richard Henderson  <rth@redhat.com>
5861         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
5862         is aligned to pointer size.
5864 2001-08-19  Richard Henderson  <rth@redhat.com>
5866         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
5867         display markers during final schedule.
5869 2001-08-19  Richard Henderson  <rth@redhat.com>
5871         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
5873 2001-08-19  Richard Henderson  <rth@redhat.com>
5875         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
5876         in the same string.
5877         (ASM_NAME_TO_STRING): Remove.
5878         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
5879         in the same string.  Remove support for expressions.
5881 2001-08-19  Richard Henderson  <rth@redhat.com>
5883         * config/i386/i386.md (tablejump): Make an expander; handle
5884         pic relative addressing here.
5885         (tablejump_1): Rename from tablejump_pic.
5886         (casesi): Remove.
5888 2001-08-19  Richard Henderson  <rth@redhat.com>
5890         * regclass.c (fix_register): Fix typo.
5892 2001-08-18  Richard Henderson  <rth@redhat.com>
5894         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
5895         (struct _Unwind_Context): Expand br_loc to hold it.
5896         (uw_frame_state_for): Handle leaf functions better.
5897         (uw_update_reg_address): Update for br_loc change.
5899 2001-08-18  Richard Henderson  <rth@redhat.com>
5901         * crtstuff.c: Move list heads before code that uses them.
5902         (__JCR_LIST__): Remove initial null.
5903         (frame_dummy, __frame_dummy): Do java registration here ...
5904         (__do_global_ctors_aux): ... not here.
5906         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
5907         (__do_global_dtors_aux): Update to match.
5908         (__JCR_LIST__, __do_jv_register_classes): New.
5909         (.init): Call it.
5910         * config/ia64/crtend.asm (__JCR_END__): New.
5911         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
5912         instead of an indirect LTOFF22 reloc.
5914 2001-08-18  Richard Henderson  <rth@redhat.com>
5916         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
5917         * regclass.c (init_reg_sets_1): Fix typo.
5918         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
5919         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
5920         (ia64_compute_frame_size): Make ar.unat live when in use.
5921         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
5922         for ar.pfs; remove ar.unat handling.
5923         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
5924         call-saved.
5925         (PREDICATE_CODES): Add ar_pfs_reg_operand.
5926         * config/ia64/ia64-protos.h: Update decls.
5927         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
5928         (sibcall_pic): Likewise.
5930 2001-08-18  Richard Henderson  <rth@redhat.com>
5932         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
5933         pred_rel_mutex when searching for insn_group_barrier.
5934         * config/ia64/ia64.md (cycle_display): Combine the expander
5935         and insn patterns.
5937         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
5938         bit before asm as needed.
5940 2001-08-18  Richard Henderson  <rth@redhat.com>
5942         * timevar.def (TV_MACH_DEP): New.
5943         * toplev.c (rest_of_compilation): Use it.
5944         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
5946 2001-08-18  Zack Weinberg  <zackw@panix.com>
5948         * unwind-dw2.c (execute_stack_op): Add default aborts to
5949         the inner switches to prevent warnings.
5951 2001-08-18  Richard Henderson  <rth@redhat.com>
5953         * timevar.h (struct timevar_time_def): Change element type to float.
5954         (ticks_to_msec, clocks_to_msec): Likewise.
5955         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
5956         (get_time): Likewise.
5957         (timevar_print): Adjust zero check and printing to match.
5959 2001-08-18  Zack Weinberg  <zackw@panix.com>
5961         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
5962         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
5963         Eliminate overfull or underfull hboxes.
5965 2001-08-18  Zack Weinberg  <zackw@panix.com>
5967         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5969 2001-08-18  Zack Weinberg  <zackw@panix.com>
5971         * haifa-sched.c: Convert to target hooks.  Macros replaced
5972         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
5973         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
5974         MD_SCHED_FINISH, and HAVE_cycle_display.
5975         * target-def.h (TARGET_SCHED_ADJUST_COST,
5976         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
5977         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
5978         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
5979         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
5980         New hook #defines to be overridden.
5981         (TARGET_SCHED): Bring them all together.
5982         (TARGET_INITIALIZER): Update.
5983         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
5984         instead of 'struct rtx_def *' throughout.
5985         (struct sched): New set of hooks for the scheduler.
5986         * Makefile.in (haifa-sched.o): Depend on target.h.
5987         * doc/tm.texi: Document the new scheduler hooks, together in
5988         their own section, instead of scattered around.
5989         Fix a bunch of underfull/overfull hboxes.
5991         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
5992         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
5993         sparc.h: Don't define any of the old scheduler macros.
5995         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
5996         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
5997         sparc.c: Create hook functions from code extracted from
5998         corresponding target header, or make existing hooks static, as
5999         appropriate.  Set the appropriate entries in targetm.
6001         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
6002         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
6003         rs6000-protos.h, s390-protos.h, sparc-protos.h:
6004         Remove prototypes for functions which are now static.
6006         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
6007         related gunk; the Haifa scheduler is now the only choice.
6009 2001-08-18  Zack Weinberg  <zackw@panix.com>
6011         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
6012         * genopinit.c: Put floating point divide insns in sdiv_optab.
6013         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
6014         * config/gofast.h, config/c4x/c4x.h,
6015         config/ia64/hpux_longdouble.h, config/mips/mips.h,
6016         config/pa/long_double.h, config/rs6000/sysv4.h,
6017         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
6018         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
6019         (init_optabs): Use init_optabv for overflow-trapping optabs.
6020         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
6021         cmp_optab RTX codes so have_insn_for can find them.
6023         * optabs.c (expand_simple_binop, expand_simple_unop,
6024         have_insn_for, gen_sub3_insn): New interfaces.
6025         * expr.h: Prototype new functions.
6026         (enum optab_methods): Move here from optabs.h.
6028         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
6029         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
6030         Use new functions instead of working directly with optabs.
6031         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
6032         unroll.c: Don't include optabs.h.
6033         * caller-save.c, combine.c, function.c, stmt.c: Just include
6034         insn-codes.h, not optabs.h.
6035         * Makefile.in: Update dependencies.
6037         * combine.c (make_compound_operation, simplify_comparison):
6038         Fix typos testing for this or that instruction.
6040 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
6042         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
6043         generating libgcc.a.
6045 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6047         * except.c (TYPE_HASH): Delete.
6049         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
6050         HOST_WIDE_INT.
6052         * tree.c (TYPE_HASH): Delete.
6054         * tree.h (TYPE_HASH): Define.
6056 2001-08-18  Graham Stott  <grahams@redhat.com>
6058         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
6059         define_split.
6060         (adddi3_internal_2+2): Likewise.
6061         (eh_set_lr_di+1): Likewise.
6063 2001-08-17  Richard Henderson  <rth@redhat.com>
6065         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6066         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
6067         * dwarf2asm.c: ... here.
6068         * dwarfout.c: Remove them.
6070         * varasm.c (assemble_integer): Add align parameter.
6071         (assemble_real, output_constant, output_constructor): Likewise.
6072         * output.h: Update decls.
6073         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
6074         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
6075         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
6076         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
6077         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
6078         Update all callers.
6080         * final.c (end_final): Abort profile block generation if we
6081         havn't layed it out properly.
6082         * output.h (assemble_eh_integer): Remove stale decl.
6083         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
6084         (min_align): New.
6085         (assemble_integer): Handle unaligned data.
6086         (assemble_real): Abort on unaligned data.
6087         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
6088         anything useful.
6089         (default_dtor_section_asm_out_destructor): Use assemble_align.
6090         (default_named_section_asm_out_constructor): Likewise.
6091         (default_ctor_section_asm_out_constructor): Likewise.
6092         * config/darwin.c (machopic_asm_out_constructor): Likewise.
6093         (machopic_asm_out_destructor): Likewise.
6094         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
6095         (nextstep_asm_out_destructor): Likewise.
6096         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
6097         (vms_asm_out_destructor): Likewise.
6099 2001-08-17  Richard Henderson  <rth@redhat.com>
6101         * config/mips/iris6.h (TARGET_IRIX6): New.
6102         (current_section_name, current_section_flags): New.
6103         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
6104         (MAX_OFILE_ALIGNMENT): New.
6105         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
6106         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
6107         (copy_file_data): Split out from
6108         (mips_asm_file_end): ... here.
6109         (mips_asm_file_start): Remove extra .section directive.  Use
6110         tmpfile instead of mips_make_temp_file.
6111         (mips_unique_section): Use const char * as needed for warnings.
6112         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
6113         re-add align parameter.
6114         (iris6_asm_named_section): New.
6115         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
6116         (iris6_asm_output_align, iris6_section_align_1): New.
6117         (iris6_asm_file_start, iris6_asm_file_end): New.
6118         * config/mips/mips-protos.h: Update decls.
6120 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
6122         * doc/install.texi (Install GCC): Add links to build status pages.
6123         (Specific): Ditto.
6124         (Final install): Ditto; request updates for specific info
6126 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6128         * cpperror.c (print_location):  Don't take a file name; use the
6129         line map instead.
6130         (_cpp_begin_message): Similarly.
6131         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6132         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6133         (cpp_pedwarn_with_file_and_line): Remove.
6134         * cppfiles.c (stack_include_file): Update; set filename to stdin
6135         here when appropriate.
6136         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
6137         (_cpp_begin_message): Don't take a file name.
6138         * cppinit.c: Add comment.
6139         * cpplex.c: Fix end-of-directive indicator.
6140         * cpplib.c: Don't include intl.h.
6141         (run_directive, do_diagnostic): Update.
6142         (do_line): Update to not use nominal_fname.
6143         (cpp_push_buffer): Don't take a filename.
6144         * cpplib.h (struct ht): Remove.
6145         (cpp_push_buffer): Don't take a filename.
6146         (cpp_pedwarn_with_file_and_line): Remove.
6147         * cppmacro.c (struct cpp_macro): Remove file.
6148         (builtin_macro): Update.
6149         (_cpp_create_definition): Update.
6150         * cppmain.c: Correct comment.
6151         * fix-header.c (read_scan_file): Update.
6153 2001-08-17  Kazu Hirata  <kazu@hxi.com>
6155         * sbitmap.c: Fix comment formatting.
6156         * sched-deps.c: Likewise.
6157         * sibcall.c: Likewise.
6158         * simplify-rtx.c: Likewise.
6159         * ssa.c: Likewise.
6160         * ssa-ccp.c: Likewise.
6161         * stor-layout.c: Likewise.
6162         * timevar.c: Likewise.
6163         * toplev.c: Likewise.
6164         * unwind-dw2.c: Likewise.
6165         * unwind-dw2-fde.c: Likewise.
6166         * varasm.c: Likewise.
6168 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6170         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
6171         or larger than an integer in memory.
6173 2001-08-17  Zack Weinberg  <zackw@panix.com>
6175         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
6176         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
6177         * rtl.h: Don't forward-declare union tree_node here.  Don't
6178         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
6179         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6180         and tree respectively.
6181         * tree.h: Don't forward-declare struct rtx_def here.  Don't
6182         typedef tree here.  Change all uses of struct rtx_def *,
6183         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6184         and tree respectively.
6186 2001-08-17  Richard Henderson  <rth@redhat.com>
6188         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
6189         config/mips/openbsd.h: Fix typos last change.
6191 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6193         * doc/invoke.texi (Optimize Options): The default for
6194         -finline-limit is 600.
6196 2001-08-17  Richard Henderson  <rth@redhat.com>
6198         * varasm.c (text_section): Allow TEXT_SECTION to override the
6199         printing of TEXT_SECTION_ASM_OP.
6200         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
6201         (DATA_SECTION, BSS_SECTION): Remove.
6202         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
6203         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
6204         Rename from s/_NAME//.
6205         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
6206         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
6207         (TEXT_SECTION): ... here.  New.
6208         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
6209         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
6210         * config/mips/openbsd.h: Likewise.
6211         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
6212         (mips_asm_file_end): Likewise test.
6213         (mips_output_function_epilogue): Likewise.  Switch back to data
6214         section after emitting the function.
6216         * doc/tm.texi (Sections): Document TEXT_SECTION.
6218 2001-08-17  Richard Henderson  <rth@redhat.com>
6220         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
6221         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
6223 2001-08-17  Richard Henderson  <rth@redhat.com>
6225         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
6226         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
6227         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
6228         Add aligned attribute.
6230 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
6232         * config/sh/sh.md: Add modes to unspecs in first insn to match
6233         those in the second.
6235         * Makefile.in: Fix collect2 copy for Cygwin.
6237 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
6239         Install the proper patch.
6240         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6241         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6242         (expand_function_start): Likewise.
6243         * stmt.c (expand_decl): Likewise.
6244         * varasm.c (make_decl_rtx): Likewise.
6246 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6248         * final.c: Undo my previous accidental checkin.
6249         * output.h: Likewise.
6250         * tm.texi: Likewise.
6252 2001-08-16  Richard Henderson  <rth@redhat.com>
6254         * varasm.c (named_section_flags): Remove align parameter.
6255         * varasm.c, dwarf2out.c: Update all callers.
6256         * output.h: Update prototypes.
6258         * target.h (target.asm_out.named_section): Remove align parameter.
6259         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
6260         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
6261         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
6262         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
6263         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
6265         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
6266         (get_named_section_flags, set_named_section_flags): New.
6267         (named_section_flags): Use them.
6268         (named_section): Do decl vs section flags check here...
6269         (default_section_type_flags): ... not here.
6270         (init_varasm_once): Create in_named_htab.
6271         (resolve_unique_section): Mark reloc unused.
6273 2001-08-16  Richard Henderson  <rth@redhat.com>
6275         * varasm.c (force_const_mem): Keep pool alignment in bits.
6276         (output_constant_pool): Use assemble_align.
6278 2001-08-16  Zack Weinberg  <zackw@panix.com>
6280         * doc/tm.texi: Remove extra @table command.
6282 2001-08-16  Zack Weinberg  <zackw@panix.com>
6284         * final.c (shorten_branches): Clear the end of the label_align
6285         array only if we made it larger.  Break up messy expressions
6286         for clarity.
6288         * diagnostic.c (internal_error): Check for error recursion
6289         before doing ICE suppression.
6291         * timevar.c: Timing variables now count in milliseconds.
6292         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
6293         (get_time): Not here.
6294         (timevar_print): Don't print any timer whose user, cpu, and
6295         wall times are all zero as displayed.
6296         * timevar.h: Update comment aboout units.  Make timevar
6297         counters unsigned.
6299 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
6301         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6302         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6303         (expand_function_start): Likewise.
6304         * stmt.c (expand_decl): Likewise.
6305         * varasm.c (make_decl_rtx): Likewise.
6307 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
6309         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
6310         (finalize_record_size): Don't set TYPE_USER_ALIGN.
6312 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6314         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
6315         variables.
6317 2001-08-16  Andreas Jaeger  <aj@suse.de>
6319         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
6320         prototype.
6322 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
6324         * rtl.h (only_sets_cc0_p): New prototype.
6325         * jump.c (sets_cc0_p): Handle INSN.
6326         (only_sets_cc0_p): New function.
6327         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
6328         (tidy_fallthru_edge): Likewise.
6329         * integrate.c (copy_insn_list): Likewise.
6330         * unroll.c (unroll_loop): Likewise.
6331         (copy_loop_body): Likewise.
6333 2001-08-15  Jason Eckhardt  <jle@redhat.com>
6335         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
6337 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6339         * predict.c (struct block_info_def): Remove nvisited.
6340         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
6341         (estimate_bb_frequencies): Call mark_dfs_back_edges.
6343         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
6344         (ix86_adjust_cost): Teach scheduler that latency to load operand can
6345         be masked.
6347 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
6349         * predict.def: Update hitrates.
6351 2001-08-15  Richard Henderson  <rth@redhat.com>
6353         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
6355 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
6357         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
6358         note from its associated jump.
6360 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6362         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
6363         also on 64-bit s390x targets.
6365 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
6367         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
6368         function.
6369         (arm_expand_prologue): Handled nested functions which take a
6370         variable argument list.
6371         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
6372         macro with an invocation of
6373         arm_compute_initial_elimination_offset.
6374         * config/arm/arm-protos.h: Prototype
6375         arm_compute_initial_elimination_offset.
6377 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6379         * doc/install.texi (Specific, avr): Fix markup.
6380         (Specific, c4x): Ditto.
6382 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6384         * predict.c (dump_prediction): Change `bool' parameter to `int'.
6386 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
6388         * Makefile.in (OBJS): Add rtl-error.o
6389         (rtl-error.o): New rule.
6390         (diagnostic.o): Adjust dependency.
6391         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
6392         error_for_asm, _fatal_insn, _fatal_insn_not_found,
6393         warning_for_asm): Move to...
6394         rtl-error.c: ...here.  New file.
6396 2001-08-14  Richard Henderson  <rth@redhat.com>
6398         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
6399         if USING_SJLJ_EXCEPTIONS.
6401 2001-08-14  Steve Ellcey <sje@cup.hp.com>
6403         * tlink.c (scan_linker_output): Check string for unsatisfied in
6404         addition to undefined and unresolved.
6406 2001-08-14  Graham Stott  <grahams@redhat.com>
6408         * libgcc2.c (*): Replace EH_FRAME_SECTION with
6409         EH_FRAME_SECTION_NAME.
6411 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
6413         * genattrtab.c (simplify_test_exp_in_temp): New function.
6414         (simplify_test_exp): Avoid explicit use of temporary obstack.
6415         (simplify_cond, insert_right_side, evaluate_eq_attr,
6416         simplify_and_tree, simplify_or_tree, eliminate_known_true):
6417         Use simplify_test_exp_in_temp.
6418         (optimize_attrs): Iterate until expression stabilizes.
6420 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
6422         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
6423         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
6425 2001-08-13  Richard Henderson  <rth@redhat.com>
6427         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
6428         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
6429         * config/arm/conix-elf.h: Likewise.
6431 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6433         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
6434         in gcc.c.
6435         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6437         * gcse.c (hash_scan_set): Expressions that are set as part of
6438         jump instructions are not available.
6440 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6442         * config/s390/s390.c (print_operand, s390_function_prologue,
6443         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
6445 2001-08-13  Richard Henderson  <rth@redhat.com>
6447         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
6448         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
6449         * doc/tm.texi (Exception Region Output): Document it.
6451 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6453         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
6454         DWARF2 instead of stabs by default.
6456 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6458         * config/rs6000/rs6000.c: Include optabs.h.
6460 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6462         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
6463         save/restore routines.
6464         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
6466 2001-08-13  Andreas Jaeger  <aj@suse.de>
6468         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
6469         the english is correct.
6471 2001-08-13  Zack Weinberg  <zackw@panix.com>
6473         * expr.h: Split out optab- and libfunc-related code to...
6474         * optabs.h, libfuncs.h: ... these new headers.
6476         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
6477         (OPTABS_H): New.
6478         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
6479         dependencies.
6480         * mkconfig.sh: Don't include insn-codes.h from config.h.
6482         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
6483         enum insn_code is available.  Move reload_in_optab and
6484         reload_out_optab array declarations to optabs.h.
6485         * regmove.c (gen_add3_insn): Move to optabs.c, export from
6486         there, prototype in expr.h.
6487         * gencodes.c: Cleanup: zap global variables, don't use
6488         printf where puts will do, don't bother defining MAX_INSN_CODE
6489         which nothing uses, let CODE_FOR_nothing get its value implicitly.
6491         * genemit.c, genopinit.c: Include optabs.h in generated file.
6492         * genoutput.c: Include insn-codes.h in generated file.
6493         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
6494         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
6495         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
6496         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
6497         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
6498         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
6499         Include optabs.h.
6500         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
6501         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
6502         config/m88k/m88k.c, config/sparc/sparc.c:
6503         Include libfuncs.h.
6504         * reload.c: Include expr.h and optabs.h before reload.h.
6505         * config/alpha/alpha.c: Include tree.h before reload.h.
6506         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
6507         and reload.h in that order.
6508         * config/sparc/sparc.c: Include debug.h.
6509         * recog.c: Include insn-codes.h.
6511 2001-08-13  Andreas Jaeger  <aj@suse.de>
6513         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
6514         s390*linux.
6516 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6518         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
6519         * gcc.c (init_spec): Fix typo in comment.
6520         * varasm.c (data_section): Fix typo in comment.
6522 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
6524         * predict.c (dump_prediction): New argument "USED".
6525         (combine_predictions_for_insn): Determine the used heuristics,
6526         output the case no heuristic applied.
6527         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
6529 2001-08-13  Andreas Jaeger  <aj@suse.de>
6531         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
6532         register %rip.
6534 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6536         * jump.c: Fix formatting.
6538 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6540         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
6541         length.
6543 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
6545         * loop.c (check_dbra_loop): Use condjump_label to compute
6546         jump_label.
6548         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
6549         to better document the files they're in.
6551 2001-08-12  Zack Weinberg  <zackw@panix.com>
6553         * recog.h (struct insn_operand_data): Shrink 'mode' field
6554         to 16 bits.
6556 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6558         * gcc.c: Fix comment formatting.
6559         * gccspec.c: Likewise.
6560         * gcov.c: Likewise.
6561         * gcse.c: Likewise.
6562         * genemit.c: Likewise.
6563         * gengenrtl.c: Likewise.
6564         * genrecog.c: Likewise.
6565         * gensupport.c: Likewise.
6566         * ggc-page.c: Likewise.
6567         * global.c: Likewise.
6568         * graph.c: Likewise.
6569         * ifcvt.c: Likewise.
6570         * integrate.c: Likewise.
6571         * lcm.c: Likewise.
6572         * libgcc2.c: Likewise.
6573         * loop.c: Likewise.
6574         * mbchar.c: Likewise.
6575         * optabs.c: Likewise.
6576         * predict.c: Likewise.
6577         * prefix.c: Likewise.
6578         * profile.c: Likewise.
6579         * protoize.c: Likewise.
6580         * real.c: Likewise.
6581         * recog.c: Likewise.
6582         * regclass.c: Likewise.
6583         * regmove.c: Likewise.
6584         * reg-stack.c: Likewise.
6585         * reload1.c: Likewise.
6586         * resource.c: Likewise.
6587         * rtlanal.c: Likewise.
6588         * rtl.c: Likewise.
6590 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6592         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
6593         a tree representing a constant is passed to the macro.
6595 2001-08-12  Richard Henderson  <rth@redhat.com>
6597         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
6598         (rs6000_elf_asm_out_destructor): New.
6599         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
6600         (DTORS_SECTION_ASM_OP): Remove.
6601         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6602         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
6604 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
6606         Revert:
6607         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6608         * gcc.c (set_collect_gcc_options): New function, split out from
6609         main.
6610         Ignore elided switches.
6611         (do_spec_1): Invoke before executing command.
6612         (set_input): Export.
6613         Move declaration ...
6614         * gcc.h (set_input): ... here.
6615         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6616         file.
6618 2001-08-12  Richard Henderson  <rth@redhat.com>
6620         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
6621         thinko wrt TARGET_RELOCATABLE.
6623 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6625         * fix-header.c (cb_file_change): Update prototype.
6627 2001-08-11  Zack Weinberg  <zackw@panix.com>
6629         * toplev.c (set_float_handler): Make static.
6630         * toplev.h: Don't prototype set_float_handler.
6632         * simplify-rtx.c: Don't include setjmp.h.
6633         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
6634         New functions.
6635         (simplify_unary_operation, simplify_binary_operation): Use them,
6636         via do_float_handler.
6638         * fold-const.c: Don't include setjmp.h.
6639         (exact_real_inverse_1): New function.
6640         (exact_real_inverse): Use it, via do_float_handler.
6642         * varasm.c: Don't include setjmp.h.
6643         (assemble_real_1): New function.
6644         (assemble_real): Use it, via do_float_handler.
6645         Call internal_error if we get a trap here.
6647         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
6648         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
6650 2001-08-11  Zack Weinberg  <zackw@panix.com>
6652         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
6653         STACK_BOUNDARY if not already defined.
6655         * calls.c, function.c, reload1.c, explow.c: Don't default
6656         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
6657         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
6659         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
6660         to run-time test.
6662         * doc/tm.texi: Document that STACK_BOUNDARY is required;
6663         clarify difference between it and PREFERRED_STACK_BOUNDARY.
6665 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6667         * cppmacro.c (enter_macro_context): Push macro expansions even
6668         if empty.
6670 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6672         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
6673         (rs6000_elf_section_type_flags): Actually return a value.
6675 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6677         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
6678         Clean up code: add missing comments and prototypes, fix warnings,
6679         remove obsolete code, fix spacing to conform to coding style.
6681 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6683         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
6684         and TARGET_ASM_CLOSE_PAREN.
6685         (regclass_map): CC register belongs to class NO_REGS.
6686         (legitimize_pic_address): Don't generate unnecessary moves
6687         (to avoid confusing loop optimization).
6688         (check_and_change_labels): Replace jump_long by indirect_jump.
6689         (s390_final_chunkify): Don't start a new literal pool on section
6690         switch in 64-bit code.
6691         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
6693         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
6694         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
6695         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
6696         modes correctly.
6697         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
6698         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
6699         (CONST_COSTS): Fixed incorrect costs.
6701         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
6702         Use emit_jump instead of emit_jump_insn (gen_jump).
6703         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
6704         (to avoid confusing flow analysis).
6705         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
6706         (casesi, casesi_jump): New.
6707         (jump_long): Removed.  Functionality merged into indirect_jump.
6708         (indirect_jump): Accept address_operand, not just register_operand.
6709         (cjump_long, icjump_long): Use same logic as indirect_jump.
6710         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
6711         Fixed broken setjmp/longjmp handling.
6712         (do_builtin_setjmp_setup): Removed.
6714         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
6715         broken GNU as versions that don't accept .quad with large
6716         negative values.  Use hexadecimal output instead.
6717         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
6718         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
6719         FUNCTION_EPILOGUE): Removed.  Now in targetm.
6721         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
6723         * config/s390/fixdfdi.h: Add missing copyright statement.
6724         Fix type conflicts on 64-bit.  Add missing SFmode routines.
6726         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
6727         email address.
6729 2001-08-11  Richard Henderson  <rth@redhat.com>
6731         * rtl.h (REG_EH_RETHROW): Remove.
6732         * rtl.c (reg_note_name): Update.
6733         * combine.c (distribute_notes): Don't check for it.
6735 2001-08-11  Richard Henderson  <rth@redhat.com>
6737         * combine.c (distribute_notes): Place REG_SETJMP.
6739 2001-08-11  Richard Henderson  <rth@redhat.com>
6741         * doc/extend.texi (Arrays and pointers implementation): Discourage
6742         relying on sign-extension of pointers.
6744 2001-08-11  H.J. Lu <hjl@gnu.org>
6746         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
6747         in_dtors.
6748         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
6749         RDATA_SECTION_ASM_OP.
6751 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6753         * doc/install.texi (Specific, c4x): Fix cross-reference to the
6754         main manual to work both for info and HTML versions.
6756 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6757             Matt Kraai <kraai@alumni.carnegiemellon.edu>
6759         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
6760         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
6761         (struct cpp_pool): New member first.
6762         * cppinit.c (append_include_chain): Plug memory leaks.
6763         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
6764         Allocate pragma structures from the (aligned) macro pool to
6765         avoid leaking memory.
6766         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
6767         so we don't leak memory.
6768         * hashtable.c (ht_destroy): New.
6769         * hashtable.h (ht_destroy): New.
6771 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6772             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6774         * c-lex.c (map): Make const.
6775         (cb_file_change): Update for callback passing a line map.
6776         Don't assume we have a previous map.  Remove sanity check
6777         about popping too many files.
6778         * cpperror.c (print_location): Make map const.
6779         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
6780         (cpp_make_system_header): Similarly.
6781         (search_from): Similarly.
6782         (_cpp_execute_include): Don't remember where we came from.
6783         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
6784         (struct cpp_reader): Make map const.
6785         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
6786         * cpplib.c (do_line): Update; line maps now hold sysp.
6787         (cpp_push_buffer): Similarly.
6788         (_cpp_do_file_change): Similarly; callback with map instead.
6789         (cpp_get_line_maps): Constify return value.
6790         (_cpp_pop_buffer): Update.
6791         * cpplib.h (struct cpp_file_change): Remove.
6792         (struct cpp_callbacks): Update.
6793         (cpp_get_line_maps): Constify return value.
6794         * cppmacro.c (_cpp_create_definition): Update.
6795         * cppmain.c (struct printer): Constify map.
6796         (maybe_print_line): Similarly.
6797         (print_line): Similarly.  Deduce flags 1 and 2 here.
6798         (cb_file_change): Update.
6799         * line-map.c (free_line_maps): Warn regardless.
6800         (add_line_map): Return pointer to const.  When passed NULL to_file
6801         with LC_LEAVE, use the obvious values for the return point so the
6802         caller doesn't have to figure them out.
6803         (lookup_line): Return pointer to const.
6804         (print_containing_files): Take pointer to const.
6805         * line-map.h (struct line_map): New members reason, sysp.
6806         (add_line_map): Return pointer to const.
6807         (lookup_line): Similarly.
6808         (print_containing_files): Take pointer to const.
6810 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
6811             Richard Henderson  <rth@redhat.com>
6813         * regmove.c (regmove_optimize): Avoid setting a register twice in
6814         a parallel set.
6816 2001-08-10  Richard Henderson  <rth@redhat.com>
6818         * doc/extend.texi (Arrays and pointers implementation): Document
6819         behavior of pointer/integer conversion.
6821 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
6823         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
6825 2001-08-10  Richard Henderson  <rth@redhat.com>
6827         * doc/extend.texi (C Implementation): New chapter.
6828         * doc/gcc.texi (Top): Link it in.
6830 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
6832         * doc/install.texi (Specific): Fix CVS merge botch.
6834 2001-08-10  Richard Henderson  <rth@redhat.com>
6836         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
6837         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
6839 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
6841         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
6842         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
6843         this macro is now required.
6845         * cselib.c (cselib_process_insn), flow.c (propagate_block),
6846         loop.c (find_and_verify_loops), reload.c (reload): Check
6847         for rtx code of CALL_INSN, not CALL, when deciding if we
6848         need to check for REG_SETJMP note.
6850         * gcse.c (compute_hash_table, compute_store_table): Update
6851         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
6852         logic.
6854         * config/avr/avr.c: Fix typo.
6855         * config/convex/convex.c (expand_movstr): Use adjust_address.
6856         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
6857         variable.
6858         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
6859         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
6860         Fix typo.
6861         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
6862         Do define STACK_BOUNDARY.
6863         * config/i370/i370.c: Include expr.h.
6864         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
6865         config/pa/som.h, config/v850/v850.h: Take in_ctors and
6866         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
6867         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
6868         * config/m88k/m88k.c: Include c-tree.h after expr.h.
6869         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
6870         * config/romp/romp.c: Include expr.h after tree.h.
6871         Include toplev.h.
6872         (output_fpop): Use xmalloc, not oballoc.
6873         * config/we32k/we32k.c: Include expr.h.
6875 2001-08-10  Kazu Hirata  <kazu@hxi.com>
6877         * config/h8300/h8300.h: Fix formatting.
6879 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
6881         * c-common.h (RETURN_NULLIFIED_P): Lose.
6882         * c-semantics.c (genrtl_return_stmt): Don't check it.
6884 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6886         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
6887         (mips_annotate_frame_insn): New function.
6888         (mips_emit_frame_related_store): New function.
6889         (save_restore_insns): Don't mark instructions that set up the base
6890         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
6891         the store instructions instead.
6892         (mips_expand_prologue): If the stack size is moved into a temporary
6893         register, do not mark that move as frame-related.  Add a
6894         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
6896 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6898         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
6899         stack slot as unchanging if current_function_calls_eh_return.
6901 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6903         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
6904         access the second half of the TFmode scratch operand.
6906 2001-08-10  Anthony Green  <green@redhat.com>
6908         * java/class.c (emit_register_classes): Conditionalize code on
6909         JCR_SECTION_NAME.
6911 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6913         * doc/install.texi (Specific, avr): Fix cross-reference to the
6914         main manual to work both for info and HTML versions.
6916 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6918         * stmt.c (expand_null_return_1): Remove code to generate simple returns
6919         and "use_goto" argument.
6920         (expand_null_return, expand_value_return): Update all callers.
6921         * function.c (expand_function_end): Remove code to generate simple
6922         return.
6923         * config/vax/vax.md (epilogue): New expander for function return.
6924         * doc/md.texi (epilogue): Remove "if defined".
6926 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
6928         * Makefile.in: Partially revert my previous change:
6929         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
6930         of the hashtab.o and safe-ctype.o rules.
6932 2001-08-09  Richard Henderson  <rth@redhat.com>
6934         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
6935         (USE_COLLECT2): Remove duplicate definition.
6936         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
6937         (use_collect2): Remove dead code.
6938         * configure.in (use_collect2): Remove will_use_collect2 and
6939         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
6940         * configure: Rebuild.
6942         * target.h (targetm.asm_out.constructor): New.
6943         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
6944         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
6945         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
6946         * varasm.c (in_ctors, in_dtors): New.
6947         (assemble_constructor, assemble_destructor): Remove.
6948         (default_stabs_asm_out_destructor): New.
6949         (default_named_section_asm_out_destructor): New.
6950         (dtors_section, default_dtor_section_asm_out_destructor): New.
6951         (default_stabs_asm_out_constructor): New.
6952         (default_named_section_asm_out_constructor): New.
6953         (ctors_section, default_ctor_section_asm_out_constructor): New.
6954         * output.h: Update declarations.
6955         * c-decl.c (c_expand_body): Use target hooks instead of
6956         assemble_constructor and assemble_destructor.
6957         * profile.c (output_func_start_profiler): Likewise.
6958         * objc/objc-act.c (finish_objc): Likewise.
6959         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
6960         for the constructor.
6961         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
6963         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
6964         (DTORS_SECTION_ASM_OP): Likewise.
6965         (__CTOR_LIST__): Use attribute section when possible.
6966         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
6968         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
6969         ASM_OUTPUT_CONSTRUCTOR.
6971         * config/darwin.c (machopic_asm_out_constructor): New.
6972         (machopic_asm_out_destructor): New.
6973         * config/darwin-protos.h: Update declarations.
6974         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6975         (ASM_OUTPUT_DESTRUCTOR): Remove.
6976         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6977         * config/nextstep.c (nextstep_asm_out_constructor): New.
6978         (nextstep_asm_out_destructor): New.
6979         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6980         (ASM_OUTPUT_DESTRUCTOR): Remove.
6981         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6982         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
6983         ASM_OUTPUT_*STRUCTOR.
6984         * config/i386/aix386ng.h: Likewise.
6986         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
6987         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
6988         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6989         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6990         * config/lynx.h: Likewise.
6991         * config/netware.h: Likewise.
6992         * config/psos.h: Likewise.
6993         * config/alpha/alpha-interix.h: Likewise.
6994         * config/alpha/elf.h: Likewise.
6995         * config/arc/arc.h: Likewise.
6996         * config/arm/aof.h: Likewise.
6997         * config/arm/coff.h: Likewise.
6998         * config/arm/elf.h: Likewise.
6999         * config/c4x/c4x.h: Likewise.
7000         * config/h8300/h8300.h: Likewise.
7001         * config/i386/cygwin.h: Likewise.
7002         * config/i386/djgpp.h: Likewise.
7003         * config/i386/i386-coff.h: Likewise.
7004         * config/i386/i386-interix.h: Likewise.
7005         * config/i386/sco5.h: Likewise.
7006         * config/i386/vsta.h: Likewise.
7007         * config/i386/win32.h: Likewise.
7008         * config/i960/i960-coff.h: Likewise.
7009         * config/ia64/sysv4.h: Likewise.
7010         * config/m68hc11/m68hc11.h: Likewise.
7011         * config/m68k/coff.h: Likewise.
7012         * config/m68k/mot3300.h: Likewise.
7013         * config/m88k/m88k.h: Likewise.
7014         * config/mcore/mcore-pe.h: Likewise.
7015         * config/mcore/mcore.h: Likewise.
7016         * config/mips/elf.h: Likewise.
7017         * config/mips/elf64.h: Likewise.
7018         * config/mips/iris6.h: Likewise.
7019         * config/pa/pa64-hpux.h: Likewise.
7020         * config/rs6000/sysv4.h: Likewise.
7021         * config/sh/sh.h: Likewise.
7022         * config/sparc/litecoff.h: Likewise.
7024         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
7025         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
7026         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7027         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7028         (ASM_OUTPUT_DESTRUCTOR): Remove.
7029         * config/a29k/a29k.c: Move include of tree.h.
7030         * config/a29k/udi.h: Delete file.
7031         * config/alpha/alpha.c (vms_asm_out_constructor): New.
7032         (vms_asm_out_destructor): New.
7033         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
7034         (EXTRA_SECTION_FUNCTIONS): Likewise.
7035         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7036         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7037         * config/c4x/c4x.c: Move include of tree.h.
7038         * config/clipper/clipper.c (clix_asm_out_constructor): New.
7039         (clix_asm_out_destructor): New.
7040         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7041         (ASM_OUTPUT_DESTRUCTOR): Remove.
7042         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7043         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7044         (TARGET_ASM_CONSTRUCTOR): New.
7045         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
7046         (sco_asm_out_constructor): New.
7047         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
7048         * config/i386/svr3gas.h: Remove stack grows up code.
7049         Remove code duplicated from i386/sysv3.h.
7050         (TARGET_ASM_CONSTRUCTOR): New.
7051         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7052         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
7053         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7054         (TARGET_ASM_CONSTRUCTOR): New.
7055         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
7056         (m68hc11_asm_out_destructor): New.
7057         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
7058         (TARGET_ASM_DESTRUCTOR): New.
7059         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
7060         * config/m68k/dpx2.h: Properly undef all the bits inherited from
7061         config/svr3.h pertaining to section manipulation.
7062         * config/m68k/dpx2g.h: Remove #if 0 code.
7063         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
7064         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
7065         (ASM_OUTPUT_CONSTRUCTOR): Remove.
7066         (TARGET_ASM_CONSTRUCTOR): New.
7067         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
7068         (m88k_svr3_asm_out_constructor): New.
7069         (m88k_svr3_asm_out_destructor): New.
7070         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7071         (ASM_OUTPUT_DESTRUCTOR): Remove.
7072         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7073         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
7074         * config/rs6000/aix.h: Likewise.
7075         * config/mips/rtems64.h: Don't undef removed constructor related bits.
7076         * config/mips/vxworks.h: Likewise.
7077         * config/rs6000/lynx.h: Likewise.
7078         * config/sh/elf.h: Likewise.
7079         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
7080         (DTORS_SECTION_ASM_OP): New.
7081         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7082         (ASM_OUTPUT_DESTRUCTOR): Remove.
7083         * config/sparc/sol2-sld-64.h: Likewise.
7084         * config/vax/vax.c (vms_asm_out_constructor): New.
7085         (vms_asm_out_destructor): New.
7086         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7087         (ASM_OUTPUT_DESTRUCTOR): Remove.
7088         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7090         * doc/tm.texi (@node Initialization): Update.
7092 2001-08-09  Richard Henderson  <rth@redhat.com>
7094         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
7095         (__do_global_dtors_aux): Use gp-relative static data to avoid
7096         one dynamic relocation.
7097         (__do_frame_setup): Register Java classes.
7098         * config/alpha/crtend.asm (__JCR_END__): New.
7100 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
7102         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
7103         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
7104         (GEN, STAGESTUFF): Add new files.
7105         (insn-constants.h, s-constants, tm-preds.h, s-preds,
7106         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
7107         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
7108         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
7109         as well as insn-codes.h and insn-flags.h in config.h; and no
7110         extra headers in tconfig.h and hconfig.h.
7112         * gencodes.c: Eliminate code to generate predicate declarations
7113         or #defines for md-file constants.
7114         * genconstants.c, genpreds.c: New files.
7116         * i386.md: Re-order guard expressions such that TARGET_64BIT
7117         comes first, when this permits better optimization.  Add
7118         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
7119         why this is desirable.
7121 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
7123         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
7124         (find_fde_for_dso): Remove.
7125         (_Unwind_IteratePhdrCallback): New.
7126         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
7127         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
7129 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7131         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
7132         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
7134 2001-08-09  Graham Stott  <grahams@redhat.com>
7136         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
7137         (vis_no_unit): Use it.
7138         (visualize_no_unit): Add the insn only if room exists.
7140 2001-08-09  Graham Stott  <grahams@redhat.com>
7142         * predict.c (estimate_probability): Replace magic numbers with
7143         appropriate enumeration.
7145 2001-08-09  Graham Stott  <grahams@redhat.com>
7147         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
7148         parameter.
7149         (EXTRACT_FLAGS): Likewise.
7151 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
7153         * config/mips/mips.c    (mips_legitimate_address_p): Check for
7154         CONST_INT in last patch.
7156 2001-08-08  Anthony Green  <green@redhat.com>
7158         * java/class.c (emit_register_classes): Use assemble_jcr if
7159         possible.  Keep the original mechanism as a fallback.
7160         * defaults.h (JCR_SECTION_NAME): Define if we have named section
7161         and weak symbol support.
7162         * crtstuff.c (__JCR_LIST__): Define.
7163         (__JCR_END__): Define.
7164         (_Jv_RegiserClasses): Define weak symbol if possible.
7165         (__do_global_ctors_aux): Register classes for ELF targets with
7166         weak symbol support.
7168 2001-08-08  Kazu Hirata  <kazu@hxi.com>
7170         * dbxout.c: Fix comment formatting.
7171         * dependence.c: Likewise.
7172         * df.c: Likewise.
7173         * diagnostic.c: Likewise.
7174         * dominance.c: Likewise.
7175         * doprint.c: Likewise.
7176         * dwarf2out.c: Likewise.
7177         * dwarfout.c: Likewise.
7178         * emit-rtl.c: Likewise.
7179         * except.c: Likewise.
7180         * explow.c: Likewise.
7181         * expmed.c: Likewise.
7182         * expr.c: Likewise.
7183         * flow.c: Likewise.
7184         * fold-const.c: Likewise.
7185         * function.c: Likewise.
7187 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7189         * global.c (retry_global_alloc): Avoid shadowing allocno.
7191 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
7193         * except.c (remove_fixup_regions): Fix typo.
7195 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
7197         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
7198         unsigned HOST_WIDE_INT to avoid warning.
7199         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
7200         * flow.c (set_block_for_new_insns): Likewise.
7202 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
7204         * sibcall.c (return_value_pseudo): New static variable.
7205         (skip_copy_to_return_value): Handle return_value_pseudo.
7206         (call_ends_block_p): Ensure that return_value_pseudo is set.
7207         (optimize_sibling_and_tail_recursive_call): Discover the
7208         load of pseudo return value in alternate exit block.
7210 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7212         * calls.c (ECF_ALWAYS_RETURN): New constant.
7213         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
7214         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
7215         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
7216         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
7217         * rtl.c (reg_note_name): New name.
7218         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
7220 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
7222         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
7224 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
7226         * alias.c (get_alias_set): Return a previously calculated
7227         alias set for a VAR_DECL.
7228         * function.c (gen_mem_addressof): Calculate the alias set before
7229         touching the RTL.
7231 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
7233         * predict.def: Set hitrates according our experimental run.
7235 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
7237         * i386.h (HARD_REGNO_RENAME_OK): New macro.
7239 2001-08-08  H.J. Lu <hjl@gnu.org>
7241         * config/mips/mips.c (mips_unique_section): New. Copied from
7242         config/mips/elf.h.
7244         * config/mips/mips-protos.h (mips_unique_section): New
7245         prototype.
7247         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
7249         * config/mips/little.h: New. Generic little endian mips
7250         targets. Only mips*-*-linux* is converted to use it so far.
7252         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
7253         (WCHAR_TYPE): Defined
7254         (WCHAR_TYPE_SIZE): Likewise.
7255         (INIT_SUBTARGET_OPTABS): Likewise.
7256         (BSS_SECTION_ASM_OP): Likewise.
7257         (SBSS_SECTION_ASM_OP): Likewise.
7258         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7259         (ASM_DECLARE_OBJECT_NAME): Likewise.
7260         (UNIQUE_SECTION): Likewise.
7261         (EXTRA_SECTIONS): Likewise.
7262         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
7263         (ASM_OUTPUT_DESTRUCTOR): Likewise.
7264         (ASM_OUTPUT_DEF): Likewise.
7265         (HANDLE_SYSV_PRAGMA): Removed.
7266         (NO_IMPLICIT_EXTERN_C): Likewise.
7267         (TARGET_MEM_FUNCTIONS): Likewise.
7268         (STARTFILE_SPEC): Likewise.
7269         (ENDFILE_SPEC): Likewise.
7270         (LIB_SPEC): Likewise.
7271         (INVOKE__main): Likewise.
7272         (CTOR_LIST_BEGIN): Likewise.
7273         (CTOR_LIST_END): Likewise.
7274         (DTOR_LIST_BEGIN): Likewise.
7275         (DTOR_LIST_END): Likewise.
7276         (SET_ASM_OP): Likewise.
7277         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7278         (ASM_OUTPUT_DEF): Likewise.
7279         (ASM_OUTPUT_IDENT): Likewise.
7281         * config/mips/mips.h (ASM_SPEC): Undefine before define.
7282         (CPLUSPLUS_CPP_SPEC): Likewise.
7283         (ASM_APP_ON) Redefine only if not defined.
7284         (ASM_APP_OFF): Likewise.
7285         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7286         (ASM_OUTPUT_IDENT): Likewise.
7288         * config.gcc: Update tm_file for Linux/mips.
7290 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
7292         * cselib.c (cselib_record_sets): If insn is predicated, turn
7293         sources into IF_THEN_ELSEs.
7295         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
7296         Turn into define_insn_and_split.
7298         * sched-deps.c: Include "cselib.h".
7299         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
7300         Use cselib to turn memory addresses into VALUEs.
7301         (sched_analyze): Call cselib_init/cselib_finish if necessary.
7302         * sched-int.h (struct sched_info): New member USE_CSELIB.
7303         * sched-ebb.c (ebb_sched_info): Initialize it.
7304         * sched-rgn.c (rgn_sched_info): Likewise.
7305         * Makefile.in (sched-deps.o): Update dependencies.
7307         * cselib.h (cselib_subst_to_values): Declare.
7308         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
7309         that have no value and autoincs to be handled by generating a new
7310         dummy value.
7312 2001-08-08  Graham Stott  <grahams@redhat.com>
7314         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
7315         within fixed length SEQUENCE.
7317 2001-08-08  Graham Stott  <grahams@redhat.com>
7319         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
7320         (diagnostic_prefixing_rule): Likewise.
7321         (diagnostic_line_cutoff): Likewise.
7322         (diagnostic_kind_count): Likewise.
7324 2001-08-08  Graham Stott  <grahams@redhat.com>
7326         * alias.c (find_base_decl): Delete redundent assignment.
7328 2001-08-08  Graham Stott  <grahams@redhat.com>
7330         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
7331         (abs): Uppercase and paranthesize macro parameter.
7332         (MEM_DEPENDENCY): Add whitespace.
7334 2001-08-08  Graham Stott  <grahams@redhat.com>
7336         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
7337         failure check for CONST_INT
7339 2001-08-08  Graham Stott  <grahams@redhat.com>
7341         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
7342         (libcall_dead_p): Likewise.
7344         (mark_used_regs): Constify fmt.
7345         (find_use_as_address): Likewise.
7347 2001-08-08  Graham Stott  <grahams@redhat.com>
7349         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
7350          parameter.
7352 2001-08-08  Graham Stott  <grahams@redhat.com>
7354         * combine.c (combine_simplify_rtx): Update comment and
7355         remove erroneous test.
7357 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7359         * cppinit.c (cpp_finish): Pop the final buffer without comment.
7360         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
7361         take care to avoid multiple no-newline at EOF warnings in that
7362         case.
7364 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
7366         * calls.c (expand_call): Do not emit INSN_SETJMP note.
7367         (emit_library_call_value_1): Likewise.
7368         (emit_call_1): Emit REG_SETJMP note.
7369         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
7370         of INSN_SETJMP
7371         * cselib.c (cselib_process_insn): Likewise.
7372         * flow.c (propagate_block): Likewise.
7373         * loop.c (find_and_verify_loops): Likewise.
7374         * reload.c (find_equiv_regs): Likewise.
7375         * reload1.c (reload): Likewise.
7376         * resource.c (mark_referenced_resources,
7377         mark_set_resources): Likewise.
7378         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
7379         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
7380         * haifa-sched.c (unlink_other_notes): Likewise.
7381         (reemit_notes): Likewise.
7382         * sched-ebb.c (sched_ebb): Likewise.
7383         * sched-rgc.c (sched_region): Likewise.
7384         * rtl.c (note_insn_name): Likewise.
7385         (reg_note_name): Add REG_SETJMP
7386         * rtl.h (reg_note): Add REG_SETJMP.
7387         (insn_note): Remove NOTE_INSN_SETJMP.
7389         * profile.c (branch_prob): Add fake edges for setjmp.
7391 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
7393         * config.gcc: Quote target_cpu_default2 correctly for
7394         powerpc*-*-* targets.
7396 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7398         * cpplib.h, line-map.h: Update comments.
7399         * cppmain.c (printer_init): Move inline.
7400         (maybe_print_line, print_line): Take a map pointer.
7401         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
7402         (cb_file_change): Don't use prior value of print.map.
7404 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
7406         * doc/install.texi: Document fine-grained multilib configuration.
7408 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7410         * rtlanal.c (find_first_parameter_load): Call note_stores
7411         only on the instructions.
7413 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7415         * alias.c (nonlocal_mentioned_p):
7416         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
7417         * calls.c (emit_call_1): Likewise.
7418         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
7419         * cselib.c (cselib_process_insn): Likewise.
7420         * df.c (df_insns_modify): Likewise.
7421         * flow.c (need_fake_edge_p): Likewise.
7422         (propagate_one_insn): Likewise.
7423         * haifa-sched.c (reemit_notes): Likewise.
7424         * integrate.c (copy_insn_list): Likewise.
7425         * jump.c (delete_prior_computation): Likewise.
7426         * local-alloc.c (validate_equiv_mem): Likewise.
7427         * loop.c (scan_loop): Likewise.
7428         * predict.c (estimate_probability): Likewise.
7429         * reload.c (reload): Likewise.
7430         * sched-deps (sched_analyze): Likewise.
7431         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
7432         * gcse.c (compute_hash_table): Likewise.
7433         (mark_call): Likewise.
7434         (store_killed_in_insn): Likewise.
7436 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
7438         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
7440 2001-08-06  Richard Henderson  <rth@redhat.com>
7442         * varasm.c (assemble_gc_entry): Remove.
7443         * output.h: Likewise.
7445 2001-08-06  Richard Henderson  <rth@redhat.com>
7447         * varasm.c (assemble_constructor): Take a symbol_ref and a
7448         priority instead of a bare string.  Move priority handling
7449         here from cp/decl2.c.
7450         * output.h: Update decls.
7452         * c-decl.c (c_expand_body): Update calls to assemble_constructor
7453         and assemble_destructor.
7454         * profile.c (output_func_start_profiler): Likewise.
7455         * objc/objc-act.c (finish_objc): Likewise.
7456         (build_module_descriptor): Return the symbol not the symbol name.
7458 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
7460         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
7461         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
7462         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
7463         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
7464         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
7465         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
7467 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7469         * cpperror.c (print_containing_files): Moved to line-map.c.
7470         (print_location): line-map.c handles re-listing or otherwise.
7471         * cpphash.h (struct lexer_state): Remove next_bol.
7472         (struct cpp_buffer): Remove include_stack_listed.
7473         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
7474         Remove faked buffer handling.
7475         (_cpp_do_file_change): Tweak.
7476         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
7477         * cppmain.c (struct printer): Remove filename.
7478         (print_line, cb_file_change): Update accordingly.
7479         * line-map.c: Include intl.h.
7480         (init_line_maps): Initialize last_listed.
7481         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
7482         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
7483         (print_containing_files): New.
7484         * line-map.h (struct line_maps): New member last_listed.
7485         (print_containing_files, INCLUDED_FROM): New.
7486         * Makefile.in: Update.
7487         * po/POTFILES.in: Add line-map.c.
7489 2001-08-06  Richard Henderson  <rth@redhat.com>
7491         * except.c (convert_from_eh_region_ranges_1): Never mark
7492         USE or CLOBBER insns as throwing.
7494         * expr.c (store_constructor): Don't clobber memory targets.
7496 2001-08-06  Andreas Jaeger  <aj@suse.de>
7498         * profile.c (branch_prob): Remove unused variable insn.
7500         * Makefile.in (local-alloc.o): Add dependency on except.h.
7502         * local-alloc.c: Include except.h for can_throw_internal prototype.
7504 2001-08-06  Richard Henderson  <rth@redhat.com>
7506         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
7507         * function.c (expand_main_function): Implement it.
7508         * doc/tm.texi: Document it.
7510 2001-08-06  Stan Shebs  <shebs@apple.com>
7512         * doc/install.texi: Document powerpc-*-darwin* details.
7514 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
7516         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
7517         (ASM_CPU_SPEC): Move back to rs6000.h
7518         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
7520         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
7522         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
7523         readded.
7525         * config/rs6000/linux64.h: Ditto.
7527         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7528         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
7529         nothing.
7531         Remove accidently readded definitions of FUNCTION_PROLOGUE,
7532         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
7534         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7535         to rs6000.h
7537 2001-08-05  Richard Henderson  <rth@redhat.com>
7539         * local-alloc.c (update_equiv_regs): Do not move insns that
7540         can throw.
7542 2001-08-05  Jan Hubicka  <jh@suse.cz>
7544         * Makefile.in (reload1.o): Add dedendancy on except.h
7545         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
7546         prototypes.
7547         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
7548         indicating wehther edges has been cleaned up.
7549         * reload1.c: Inlucde except.h
7550         (fixup_abnormal_edges): Accept deleted insns.
7551         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
7552         after combine.
7554 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7556         * cpplib.c (do_line): Correct line number after pop_buffer.
7558 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7560         PR preprocessor/3824
7561         * line-map.c: Update comments.
7562         * line-map.h: Update comments.
7563         * tradcif.y: Don't consider large numbers unsigned.
7565 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7567         PR preprocessor/3081
7568         * c-lex.c (map): New.
7569         (cb_file_change): Update map and use it.
7570         (cb_def_pragma, cb_define, cb_undef): Use map and line.
7571         (c_lex): Update to use map.
7572         * cpperror.c (print_location): Move to using logical line numbers.
7573         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
7574         (cpp_make_system_header): Similarly.
7575         (_cpp_execute_include): Stop line numbering hacks.  Store the
7576         line we will return to.
7577         * cpphash.h (CPP_BUF_LINE): Remove.
7578         (struct cpp_buffer): Remove lineno and pseudo_newlines.
7579         Add map and return_to_line.
7580         (_cpp_do_file_change): Update.
7581         * cppinit.c (cpp_start_read): Update line kludge.
7582         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
7583         (trigraph_ok): Use logical line numbers for diagnostics.
7584         (skip_block_comment): Likewise.
7585         (skip_whitespace): Likewise.
7586         (skip_line_comment): Use pfile->line instead.
7587         (_cpp_lex_token): Update to use logical line numbering exclusively.
7588         Handle BOL locally.  Accept new lines in directives, but keep
7589         pfile->line decremented.  Diagnostics use logical lines.  Update
7590         directive handling.
7591         * cpplib.c (SEEN_EOL): New.
7592         (skip_rest_of_line, check_eol): Use it.
7593         (end_directive): Increase line number when accepting the newline
7594         at the end of a directive.
7595         (run_directive): Simplify.
7596         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
7597         (_cpp_do_file_change): Update to take buffer line number as an
7598         argument, and store the current map in the cpp_reader.  Remove
7599         line number kludges.
7600         (_cpp_do__Pragma): Restore output position after a _Pragma.
7601         (cpp_push_buffer): Don't set output line or lineno.
7602         (_cpp_pop_buffer): Transfer more info from a faked buffer.
7603         Remove line kludge.  Set output_line.
7604         * cppmacro.c (builtin_macro): Update handling of __LINE__.
7605         (parse_arg): Use logical lines.
7606         (save_lookahead_token): Save EOFs too now.
7607         * cppmain.c (struct printer): Fix comments.
7608         (printer_init): Simplify, let caller do errors.
7609         (scan_translation_unit, check_multiline_token, dump_macro): Update.
7610         (maybe_print_line): Simplify.
7611         (print_line): Don't print a linemarker if -P.
7612         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
7613         (cb_file_change): Simplify.
7614         * line-map.h (LAST_SOURCE_LINE): Fix.
7615         (CURRENT_LINE_MAP): New.
7617 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
7619         * doloop.c (doloop_modify_runtime): Properly compute number of
7620         iterations if loop was unrolled.
7622         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
7623         if their CSELIB_VAL_PTRs are.
7625         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
7626         (setup_spill_pointers): Initialize it.
7627         (spill_restore_mem): Set it.
7628         (do_spill, do_restore): Use it to add REG_INC note.
7629         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
7631         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
7632         asms if other insns are available.
7634         * config/ia64/ia64.c (condop_operator): New predicate.
7635         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
7636         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
7637         patterns.
7639         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
7640         temporary register than directly using a MEM.
7642 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7644         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
7645         parameter in last change.
7647 2001-08-04  Zack Weinberg  <zackw@panix.com>
7649         * sparc.md: Don't use #if inside C test expression.
7651 2001-08-04  Richard Henderson  <rth@redhat.com>
7653         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
7655 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7657         * cpphash.h (struct cpp_reader): New member directive_line.
7658         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
7659         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
7660         do_pragma): Pass line to callbacks.
7661         (start_directive): Record line of directive.
7662         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
7663         cb_include): Similarly.
7664         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
7665         Similarly.
7667 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7669         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
7670         comment.
7672 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7674         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
7676         * reload1.c (fixup_abnormal_edges): New static function.
7677         (reload): Use it.
7679         * flow.c (need_fake_edge_p): New function.
7680         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
7681         avoid call insn to be very last insn in the insn stream.
7683         * profile.c (branch_prob): Call flow_call_edges_add instead of
7684         doing that by hand; cleanup cfg to re-merge basic blocks once
7685         we are done.
7687 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7689         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
7690         are also on line-map.h.
7691         * cppfiles.c (stack_include_file): Update.
7692         * cpphash.h (struct cpp_buffer): New member return_at_eof.
7693         (_cpp_pop_buffer): New.
7694         * cppinit.c (cpp_destroy, cpp_finish): Update.
7695         (do_includes): Mark each buffer to return at EOF.
7696         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
7697         return as requested.
7698         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
7699         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
7700         * cpplib.h (cpp_pop_buffer): Remove.
7701         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
7702         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
7703         buffers.
7704         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
7705         to pop buffers.
7706         (do_preprocessing): Update.
7707         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
7708         * c-parse.in (_yylex): Similarly.
7709         * scan-decls.c (scan_decls): Similarly.
7710         * line-map.h: Update comments.
7712         * objc/Make-lang.in (objc-act.o): Update dependencies.
7714 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7716         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
7717         and soft register for operand 0.
7718         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
7720 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7722         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
7723         register for operand 0.
7724         ("bitcmpqi_z_used"): Allow memory for operand 0.
7725         (split "bitcmpqi"): New split to handle address reg as operand 1.
7727 2001-08-04  Andreas Jaeger  <aj@suse.de>
7729         * gcse.c: Revert Daniel's last patch.
7731 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7733         * sparc-protos.h: Add prototypes for fp_zero_operand and
7734         reg_or_0_operand.
7735         * sh-protos.h: Add prototype for fpul_operand.
7737 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7739         * doc/extend.texi (Other Builtins): Fix typo in last change.
7741 2001-08-03  Richard Henderson  <rth@redhat.com>
7743         * target.h (gcc_target): Add asm_out.named_section,
7744         section_type_flags, have_named_sections.
7745         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
7746         (TARGET_HAVE_NAMED_SECTIONS): New.
7747         (TARGET_SECTION_TYPE_FLAGS): New.
7749         * Makefile.in (toplev.o): Depend on TARGET_H.
7750         (varasm.o, dbxout.o): Likewise.
7751         * c-common.c (decl_attributes): Check targetm.have_named_sections
7752         instead of ifdef ASM_OUTPUT_SECTION_NAME.
7753         * dbxout.c (dbxout_function_decl): Likewise.
7754         (dbxout_function_end): Likewise.
7755         * toplev.c (compile_file): Likewise.
7756         * varasm.c (exception_section): Likewise.
7757         * cp/decl2.c (finish_objects): Likewise.
7759         * defaults.h (EH_FRAME_SECTION): Remove.
7760         (EH_FRAME_SECTION_ASM_OP): Remove.
7761         (EH_FRAME_SECTION_NAME): New.
7762         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
7763         (UNIQUE_SECTION_P): Remove.
7764         * dwarf2out.c (SECTION_FORMAT): Remove.
7765         (ASM_OUTPUT_SECTION): Remove.
7766         (output_call_frame_info): Use named_section_flags.
7767         (output_comp_unit, dwarf2out_start_source_file): Likewise.
7768         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
7769         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
7770         * varasm.c (in_eh_frame, eh_frame_section): Remove.
7771         (named_section_flags): New.
7772         (named_section): Use it and targetm.section_type_flags.
7773         (resolve_unique_section): New.
7774         (assemble_start_function): Use it.
7775         (asm_emit_uninitialised, assemble_variable): Likewise.
7776         (default_section_type_flags): New.
7777         (default_no_named_section, default_elf_asm_named_section): New.
7778         (default_coff_asm_named_section, default_pe_asm_named_section): New.
7779         * output.h: Update varasm.c decls.
7780         (SECTION_*): New flags.
7782         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
7783         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
7785         * config/elfos.h (UNIQUE_SECTION_P): Remove.
7786         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
7787         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
7788         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7789         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
7790         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
7791         * config/mips/elf.h, config/mips/elf64.h: Likewise.
7792         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
7793         * config/pa/pa64-hpux.h,
7795         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
7796         (TARGET_ASM_NAMED_SECTION): New.
7797         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
7798         * config/alpha/vms.h, config/arm/coff.h: Likewise.
7799         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
7800         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
7801         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
7802         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
7803         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7804         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
7805         * config/i386/sco5.h, config/i386/win32.h: Likewise.
7806         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
7807         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
7808         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
7809         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
7810         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
7811         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
7812         * config/sparc/sysv4.h: Likewise.
7814         * config/nextstep.h: Error until named sections implemented.
7816         * config/a29k/a29k.c (a29k_asm_named_section): New.
7817         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
7818         (vms_section_type_flags, vms_asm_named_section): New.
7819         * config/arm/arm.c (arm_elf_asm_named_section): New.
7820         * config/avr/avr.c (asm_output_section_name): Remove.
7821         * config/avr/avr-protos.h: Update.
7822         * config/c4x/c4x.c (c4x_asm_named_section): New.
7823         * config/h8300/h8300.c (h8300_asm_named_section): New.
7824         * config/i386/i386.c (sco_asm_named_section): New.
7825         * config/i386/winnt.c (SECTION_PE_SHARED): New.
7826         (i386_pe_section_type_flags): New.
7827         (i386_pe_asm_named_section): New.
7828         * config/i386/i386-protos.h: Update.
7829         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
7830         * config/mcore/mcore.c (mcore_asm_named_section): New.
7831         * config/mips/mips.c (iris6_asm_named_section): New.
7832         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
7833         instead of UNIQUE_SECTION_P.
7834         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
7835         (xcoff_asm_named_section): New.
7836         * config/sh/sh.c (sh_asm_named_section): New.
7837         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
7839         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
7840         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
7841         (EH_FRAME_SECTION_NAME): New.
7842         (EXCEPTION_SECTION): New.
7843         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
7844         (DEBUG_*_SECTION): Remove.
7845         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
7846         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
7847         (EH_FRAME_SECTION_ASM_OP): Remove.
7849         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
7850         (ASM_OUTPUT_SECTION_NAME): Remove.
7851         (TARGET_ASM_NAMED_SECTION): New.
7852         (TARGET_HAVE_NAMED_SECTIONS): New.
7853         (TARGET_SECTION_TYPE_FLAGS): New.
7854         (EH_FRAME_SECTION_ASM_OP): Remove.
7855         (EH_FRAME_SECTION_NAME): New.
7857 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7859         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
7860         for complex expressions when cfun == 0.
7861         * doc/extend.texi: Document that __builtin_constant_p can be
7862         used in data initializers as well as functions.
7864 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
7866         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
7867         variable I locally, instead of expecting a declaration in the
7868         calling context.
7870 2001-08-03  Richard Henderson  <rth@redhat.com>
7872         * except.c (collect_one_action_chain): Add an explicit cleanup
7873         action if regions surrounding a catch were encoded entirely
7874         within the call-site entry.
7876 2001-08-03  Richard Henderson  <rth@redhat.com>
7878         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
7879         don't take REGNO of a non-register.
7881 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7883         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
7884         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
7885         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
7886         (__gthread_mutex_init_function): New function for mutex initialization.
7888 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7890         * Makefile.in: Revert screwed up commit.
7892 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7894         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
7895         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
7896         merged by linker script to get a final _exit().
7897         (__do_global_dtors): New for destructor handling in specific exit
7898         section.
7899         (__do_global_ctors): New for constructors in specific install section.
7900         (__map_data_section): Map data sections before running constructors.
7901         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
7902         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
7903         (DTORS_SECTION_ASM_OP): Likewise.
7904         (CTORS_SECTION_FUNCTION): Define to force a reference to
7905         __do_global_ctors.
7906         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
7908 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7910         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
7912         * Makefile.in: Add df.h to gcse.c dependencies.
7914 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7916         * varasm.c (output_constant_def_contents): Use for the length of a
7917         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
7918         depending on which is larger.
7920 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7922         * gcse.c: Include df.h for use as a dataflow analyzer.
7923         Remove regvec.
7924         Declaration of reg_set_info: gone.
7925         New df_analyzer variable used by store motion.
7926         (reg_set_info): Deleted.
7927         (mark_mem_regs): New function, analyze regs used by a mem.
7928         (store_ops_ok): Use dataflow analyzer results to determine if
7929         necessary regs are changed in the block.
7930         (find_moveable_store): Remove check for symbol ref, we can handle
7931         much more complex expressions now.
7932         (compute_store_table): Remove most of the code, it's unnecessary
7933         now that the dataflow analyzer records the info for us.
7934         (store_killed_after): Add parameter to say whether to do the
7935         store_ops_okay test, used to speed up testing when we already know
7936         the answer, and just want to know if the store itself was killed.
7937         (build_store_vector): Largely rewritten to calculate the various
7938         vectors properly, and somewhat optimized.
7939         (store_motion): Init the df_analyzer, get REG_DEF chains.
7940         Also handle trapping expressions (since mems almost always trap)
7941         (simple_mem): Redefine what a simple mem is.
7943 2001-08-03  DJ Delorie  <dj@redhat.com>
7945         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
7946         set from a constant part of the condition.
7948 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
7950         * mkdeps.c (deps_add_default_target): Make local variable
7951         ``start'' a const char pointer.
7952         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
7954 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7956         * doc/install.texi (Configuration): Fix markup.
7957         (Specific, i?86-*-udk): Likewise.
7958         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
7959         --with-gnu-ld.
7960         Document --enable-threads and --enable-libgcj status.
7961         (Specific, mips-sgi-irix*): Canonicalize triples.
7962         (Specific, mips-sgi-irix5): Warn about problems with this config.
7963         Mention required GNU as patch.
7964         Native assembler problems are fixed.
7965         (Specific, mips-sgi-irix6): Update O32 ABI support status.
7966         Document --enable-threads and --enable-libgcj status.
7968 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7970         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
7971         of mkinstalldirs.
7973 2001-08-03  Richard Henderson  <rth@redhat.com>
7975         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
7976         constant data.
7978 2001-08-03  Richard Henderson  <rth@redhat.com>
7980         * rtlanal.c (find_first_parameter_load): Stop if we
7981         reach a CODE_LABEL at BOUNDARY.
7983 2001-08-03  Richard Henderson  <rth@redhat.com>
7985         * config/alpha/alpha.md (force_movdi): New insn.
7986         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
7987         Tweek FRP marking of VMS prologue insns.
7988         * config/alpha/vms.h (EPILOGUE_USES): New.
7990 2001-08-02  Richard Henderson  <rth@redhat.com>
7992         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
7994 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7996         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
7997         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
7998         config/convex/convex.h, config/d30v/d30v.c,
7999         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8000         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
8001         config/mips/mips.h, config/mn10200/mn10200.h,
8002         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
8003         config/v850/v850.h, config/vax/openbsd.h,
8004         config/vax/openbsd1.h, config/vax/ultrix.h,
8005         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
8006         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
8007         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
8008         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
8009         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
8010         in comments and documentation.
8012 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8014         * line-map.c: New.
8015         * line-map.h: New.
8016         * Makefile.in (line-map.o): New.
8017         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
8018         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
8019         * cpperror.c (print_containing_files): Similarly.
8020         (print_location): Update.  Don't output a space before _Pragma.
8021         * cppfiles.c (stack_include_file): Set to line 1 immediately.
8022         (stack_include_filee, cpp_make_system_header): Update.
8023         (_cpp_execute_include): Get logical line number right for calling
8024         as-yet-unterminated #include.
8025         * cpphash.h (struct cpp_reader): Add line_maps.
8026         (_cpp_do_file_change): Update.
8027         * cppinit.c (cpp_create_reader): Initialize line maps.
8028         (cpp_destroy): Destroy line maps.
8029         (cpp_start_read): Get logical line number right.
8030         * cpplex.c (parse_string): Only warn once for multi-line strings.
8031         Use boolean variable for null warning.
8032         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
8033         already.
8034         (do_include_common): End the directive early.
8035         (do_line): Don't warn about out-of-range lines in preprocessed
8036         source.  Update.  Remove unused variables.
8037         (_cpp_do_file_change): Update for new line mapping.
8038         (pragma_cb): New typedef.
8039         (cpp_register_pragma): Stop looking ahead before calling the
8040         handler.  Clean up.
8041         (do_pragma_system_header): End directive early.
8042         (cpp_get_line_maps): New.
8043         (cpp_pop_buffer): Fudge logical line.  Update.
8044         * cpplib.h: Include line-map.h
8045         (enum cpp_fc_reason): Remove.
8046         (struct cpp_file_change): Update.
8047         (cpp_get_line_maps): New.
8048         * cppmain.c (struct_printer): New member map.
8049         (cb_file_change): Update for new mappings.
8050         * fix-header.c (cb_file_change): Similarly.
8052 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
8054         * Makefile.in (libgcc.mk): Define mkinstalldirs.
8055         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
8057 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
8059         * config/vax/vax.c: include expr.h.
8061 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
8063         * Makefile.in ($(srcdir)/configure): Only rebuild in
8064         maintainer mode.
8065         ($(srcdir)/config.in): Only define in maintainer mode.
8066         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
8068 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
8070         * doc/install.texi (Install GCC: Binaries): Update Bull info.
8072 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8074         * gcc.c (set_collect_gcc_options): New function, split out from
8075         main.
8076         Ignore elided switches.
8077         (do_spec_1): Invoke before executing command.
8078         (set_input): Export.
8079         Move declaration ...
8080         * gcc.h (set_input): ... here.
8081         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8082         file.
8084 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
8086         Kill -fhonor-std.
8087         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
8088         interaction.
8089         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
8091 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
8093         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
8094         for the unnamed instructions it expands to.
8096 2001-08-02  Richard Henderson  <rth@redhat.com>
8098         * regclass.c (call_really_used_regs): Conditionally define.
8099         (init_reg_sets_1): Don't use it if not defined.
8100         (fix_register): Similarly, don't set it.
8102 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8104         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
8105         Correct comment that had been missed in the previous change.
8107 2001-08-01  Stan Shebs  <shebs@apple.com>
8109         * config/darwin.c (machopic_stub_name): Try matching by name.
8110         (update_stubs): New function.
8111         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
8112         unconditionally.
8114 2001-08-01  Richard Henderson  <rth@redhat.com>
8116         * except.c (output_function_exception_table): Use assemble_align.
8117         * varasm.c (assemble_eh_label): Remove.
8118         (assemble_eh_align, assemble_eh_integer): Remove.
8120 2001-08-01  Robert Lipe  <robertl@caldera.com>
8122         * dwarfout.c: Remove reference to README.DWARF.
8124 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
8126         * regclass.c (call_really_used_regs): New array for registers which
8127         are actually used by a call.
8128         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
8129         new array.
8130         (fix_register): Set call_really_used too.
8131         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
8132         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
8134 2001-08-01  Richard Henderson  <rth@redhat.com>
8136         * read-rtl.c (read_name): Consider \r whitespace.
8138 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
8140         * config.gcc: Recognize powerpc-*-netbsd*.
8142         * doc/install.texi (Host/target specific installation notes for
8143         GCC): Mention powerpc-*-netbsd*.
8145         * config/rs6000/netbsd.h: New file.
8146         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
8147         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
8148         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
8149         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
8150         (TARGET_VERSION): Redefine.
8152         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
8153         mcall-netbsd as a match for mcall-sysv.
8154         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
8155         (ncrti.S, ncrtn.S): New targets.
8156         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
8158         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
8159         "netbsd' as a V4 ABI.
8160         (ASM_SPEC): Check for -mcall-netbsd.
8161         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
8162         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
8163         (LIB_SPEC, ENDFILE_SPEC): Ditto.
8164         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
8165         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
8166         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
8167         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
8169         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
8170         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
8172 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8174         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
8175         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
8176         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
8177         including "unwind-pe.h".
8179 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
8181         * rs6000.md (define_splits): Kill unused constraints.
8183 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
8184                               Jan Hubicka  <jh@suse.cz>
8186         * function.c (thread_prologue_and_epilogue_insns): Kill code
8187         dealing with non-existent CFG.
8189 2001-08-01  Kazu Hirata  <kazu@hxi.com>
8191         * alias.c: Fix comment formatting.
8192         * bitmap.c: Likewise.
8193         * builtins.c: Likewise.
8194         * calls.c: Likewise.
8195         * c-common.c: Likewise.
8196         * c-decl.c: Likewise.
8197         * c-dump.c: Likewise.
8198         * c-lex.c: Likewise.
8199         * collect2.c: Likewise.
8200         * combine.c: Likewise.
8201         * conflict.c: Likewise.
8202         * cppfiles.c: Likewise.
8203         * cppinit.c: Likewise.
8204         * cpplex.c: Likewise.
8205         * cpplib.c: Likewise.
8206         * cppmacro.c: Likewise.
8207         * cppspec.c: Likewise.
8208         * c-pragma.c: Likewise.
8209         * crtstuff.c: Likewise.
8210         * cse.c: Likewise.
8211         * cselib.c: Likewise.
8212         * c-semantics.c: Likewise.
8213         * c-typeck.c: Likewise.
8215 2001-08-01  H.J. Lu <hjl@gnu.org>
8217         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
8219 2001-08-01  H.J. Lu <hjl@gnu.org>
8221         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
8223 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
8225         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
8226         contextualizing Objective-C class name lookup by the lexer.
8227         (typespec_reserved_nonattr): Disable ObjC class name lookup after
8228         seeing a TYPESPEC.
8229         (protocoldef): Add support for forward @protocol declarations.
8230         (yylexname): Suppress ObjC class name lookup in certain contexts;
8231         re-enable after lookup is complete.
8232         (_yylex): Re-enable ObjC class name lookup when certain
8233         punctuation marks are seen.
8235         * objc/objc-act.c (check_protocol_recursively): New function used
8236         for finding circular dependencies in protocols.
8237         (objc_declare_protocols): New function for handling forward
8238         @protocol declarations.
8239         (receiver_is_class_object): Detect the case when 'self' is used
8240         inside of a class method.
8241         (build_message_expr): Issue a warning if class method is desired
8242         but instance method is found instead.
8243         (conforms_to_protocol): Streamline.
8244         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
8245         protocol Foo, even if 'Bar foo' does not.
8246         (check_protocols): Streamline.
8247         (start_protocol): Add checks for circular and duplicate protocol
8248         definitions.
8249         (encode_aggregate_within): For typedefs of structs, encode the
8250         underlying struct.
8251         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
8252         (objc_declare_protocols): New prototype.
8254 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8256         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
8257         * cpplex.c (handle_newline): Update prototype.  Maintain logical
8258         line number.
8259         (skip_escaped_newlines, skip_block_comment, parse_string):
8260         Update accordingly.
8261         (_cpp_lex_token): Update, and store token position within the token.
8262         * cpplib.h (struct cpp_token): Add line and column entries.
8263         * cppmacro.c (replace_args): Position stringified tokens correctly.
8265 2001-08-01  Andreas Jaeger  <aj@suse.de>
8267         * basic-block.h: Add prototype for last_loop_beg_note.
8269 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
8271         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
8272         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
8273         comment.
8274         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
8275         while handling WITH_CLEANUP_EXPR node. Use second operand calling
8276         expand_decl_cleanup.
8277         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
8278         the first RTX.
8279         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
8280         operand while calling simple_cst_equal.
8281         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
8282         operand is the cleanup expression, the third is the RTL_EXPR.
8283         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
8285 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
8287         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
8289 2001-07-31  matthew green  <mrg@eterna.com.au>
8291         * config.gcc (i386-*-netbsdelf): New description.
8292         * config/i386/netbsd-elf.h: New file.
8294 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
8296         * loop.c (check_dbra_loop): Use single_set to compute
8297         jump_label.
8299 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
8301         PowerPC reorg and support for powerpc64-*-linux*.
8303         Also fixes emitting of constants on 32 bit and 64 bit
8304         platforms.
8306         * config.gcc: powerpc64-*-linux* is a new target.
8307         Things that needed aix.h now also include xcoff.h
8309         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
8310         xcoff.h.
8311         Move AIX specific stuff into aix.h.
8312         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
8313         with more than just XCOFF now.
8314         (SET_ASM_OP): Remove, now defined where needed.
8315         (FUNCTION_PROLOGUE): New macro definition.
8316         (FUNCTION_EPILOGUE): New macro definition.
8317         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
8319         * config/rs6000/xcoff.h: New file.
8321         * config/rs6000/linux64.h: New file.
8323         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
8325 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
8327         * rs6000.c (print_operand_address): Handle ELF syntax.
8328         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
8329         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
8330         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
8332 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
8334         * rs6000.c (rs6000_override_options): Only disable
8335         flag_function_sections for XCOFF.
8336         (exact_log2_cint_operand): New predicate.
8337         (reg_or_{add,sub}_cint64_operand): New predicates.
8338         (add_operand): Compare CONST_INT with fewer function calls.
8339         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
8340         (print_operand, case 'p'): Ensure positive operand.
8341         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
8342         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
8343         (PREDICATE_CODES): Add new predicates.
8344         * rs6000.md (addsi3): Split 32-bit constants more correctly.
8345         (divsi3, modsi3): Ensure positive power-of-2.
8346         (adddi3): Use new predicate.  Split 32-bit constants more
8347         correctly.  Re-arrange splitter to handle any constant.
8348         (subdi3): Use new predicate.
8349         (divdi3, moddi3): Ensure positive power-of-2.
8350         (movdi): Use rs6000_emit_set_const.
8351         (load_toc_v4_pic_di): Delete.
8353 2001-07-31  Graham Stott <grahams@redhat.com>
8355         * function.c (pad_below): Revert 2001-07-26 patch.
8357 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8359         * reg-stack (convert_regs_1): Fix best edge condition.
8361 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8363         * jump.c (duplicate_loop_exit_test): Better test for jumps
8364         entering the loop; create loop pre_header.
8366 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
8368         * doc/install.texi: Add s390 and s390x as new targets.
8369         * doc/invoke.texi: Add documantation of S/390 and zSeries
8370         target options.
8371         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
8373 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8375         * config/m68k/m68k.md: Replace all general_operand with
8376         nonimmediate_operand for all destinations.
8377         * config/m68k/m68k.c (not_sp_operand): Likewise.
8379 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
8381         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
8383 2001-07-30  Richard Henderson  <rth@redhat.com>
8385         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
8386         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
8388 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8390         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
8391         Add missing doc strings
8392         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
8393         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
8395 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
8397         * i386.c (ix86_output_main_function_alignment_hack): New function.
8398         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
8400         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
8401         edges by EDGE_DFS_BACK flag.
8402         (dump_edge_info): Add dfs_back flag.
8403         * basic-block.h (EDGE_DFS_BACK): New constant.
8404         (mark_dfs_back_edges): Declare.
8405         * alias.c (loop_p): Remove.
8406         (mark_constant_function): Use mark_dfs_back_edges.
8408         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
8409         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
8410         (compensate_edge): Break out from ...
8411         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
8412         (convert_regs_2): Set block_done once block is really done;
8413         Do updating of the predecesors counts.
8415         * toplev.c (rest_of_compilation): Recompute block_for_insn
8416         before post-reload cfg_cleanup.
8417         * function.c (thread_prologue_epilogue_insns):
8418         Call set_block_for_new_insns when emitting prologue directly.
8420 2001-07-30  Andreas Jaeger  <aj@suse.de>
8422         * jump.c: Add prototype for mark_modified_reg.
8424         * cse.c (set_live_p): Add unused attribute.
8426         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
8427         overflow.
8428         (scan_for_source_files): Use long for count to avoid overflow.
8429         (output_data): Likewise.
8430         (output_data): Don't use string concatatenation to silence gcc
8431         -traditional.
8433         * predict.c: Fix typos and grammar.
8435         * gcse.c (insert_insn_end_bb): Remove unused variables.
8437 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
8439         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
8440         (attempt_auto_inc): LIkewise.
8441         (mark_used_reg): Likewise.
8442         (try_pre_increment_1): Likewise.
8443         * regclass.c (regclass): Likewise.
8444         * global.c (allocno_compare): Update comment; change scaling factor.
8445         * local-alloc.c (QTY_CMP_PRI): Likewise.
8446         * regs.h (REG_FREQ_FROM_BB): New.
8447         (REG_FREQ_MAX): Likewise.
8449 2001-07-30  H.J. Lu <hjl@gnu.org>
8451         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
8452         -D_GNU_SOURCE.
8454 2001-07-30  H.J. Lu  (hjl@gnu.org)
8456         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
8457         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8458         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
8460 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
8462         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
8463         as -mthumb-interwork when -mcpu=arm7 is specified.
8465 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8467         * predict.def (noreturn, loop branch, loop exit): Mark as first
8468         match heuristics.
8470 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
8472         * combine.c (try_combine): Avoid barrier after noop jumps.
8474 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8476         * cpphash.h (struct cpp_reader): Remove import_warning.
8477         * cpplib.c (skip_rest_of_line): Don't bother turning off
8478         macro expansion.
8479         (parse_include): Move include handling to...
8480         (do_include_common): ... here.  Move import warning from...
8481         (do_import): ... here.
8482         (do_pragma_poison): Don't do a callback for poison identifiers.
8483         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
8484         * cppmain.c (setup_callbacks): Similarly.
8486 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8488         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
8489         handle multiple sets.
8490         * except.c (sjlj_mark_call_sites): .... here.
8491         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
8493 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
8495         Suggested by Richard Henderson and Richard Kenner:
8496         * combine.c (recog_for_combine): Use the fake recog
8497         only if instruction does not match.
8498         * rtl.h (NOOP_MOVE_INSN_CODE): New.
8499         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
8501         * combine.c (try_combine): Discover noop jump as direct jump.
8503 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
8505         * df.c (df_rd_global_compute): Add successors to worklist, not
8506         current item.
8507         (df_ru_global_compute): Ditto.
8509 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
8511         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
8512         increment REG_N_SETS.
8514 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
8516         * sbitmap.h: New prototype for sbitmap_a_xor_b.
8518         * sbitmap.c (sbitmap_a_xor_b): New function.
8519         ifdef the basic block stuff on IN_GCC.
8521 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8523         * cppexp.c (parse_defined): Always record the macro name.
8524         (lex): Don't worry about identifiers, or special-case
8525         CPP_NOT here.
8526         (_cpp_parse_expr): Figure out at the end of the routine
8527         whether we saw a valid !defined() expression.
8528         * cppfiles.c (stack_include_file): Update for mi_valid.
8529         (_cpp_pop_file_buffer): Similarly.
8530         * cpplex.c (_cpp_lex_token): Similarly.
8531         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
8532         mi_if_not_defined, mi_lexed): Remove.
8533         (mi_valid): New.
8534         * cpplib.c (do_if): Simplify.
8535         (do_endif, push_conditional, _cpp_handle_directive): Update
8536         for renaming of mi_state to mi_valid.
8537 doc:
8538         * cpp.texi: Add index entries for digraphs, and add comment
8539         that C++ refers to them as alternative tokens.
8541 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
8543         * basic-block.h (CLEANUP_PRE_LOOP): New.
8544         * except.c (finish_eh_generation): Update call of cleanup_cfg.
8545         * sibcall.c (optimize_sibling_calls): Likewise.
8546         * toplev.c (rest_of_compilation): Likewise.
8547         * flow.c (try_forward_edges): Take argument MODE;
8548         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
8549         (try_optimize_cfg): Update call of try_forward_edges.
8551 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
8552                                 Jan Hubicka  <jh@suse.cz>
8554         * (validate_replace_rtx_1): Fix simplification of MINUS.
8556 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8558         PR preprocessor/3669
8559         * cppinit.c (init_dependency_output): Turn off dump requests
8560         if sending dependencies to stdout.
8562 2001-07-28  Richard Henderson  <rth@redhat.com>
8564         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
8565         not optimizing.
8567 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
8569         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
8571 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8573         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
8574         is VAR_DECL first to prevent an ICE.
8576 2001-07-28  Richard Henderson  <rth@redhat.com>
8578         * varasm.c (immed_real_const_1): Don't elide special cases for
8579         nested functions.
8580         (clear_const_double_mem): Clear const_tiny_rtx too.
8582 2001-07-28  Richard Henderson  <rth@redhat.com>
8584         * dwarf2out.c (dw_val_class_offset): New.
8585         (struct dw_ranges_struct, dw_ranges_ref): New.
8586         (ranges_table, ranges_table_allocated): New.
8587         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
8588         (add_AT_offset, add_ranges, output_ranges): New.
8589         (print_die, output_die): Handle dw_val_class_offset.
8590         (attr_checksum, size_of_die, value_format): Likewise.
8591         (gen_lexical_block_die): Handle non-contiguous blocks.
8592         (gen_block_die): Likewise.
8593         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
8594         if needed.  Dump the ranges table.
8595         * final.c (final_start_function): Remove unnecessary notes and
8596         rebuild the block tree before numbering the blocks.
8597         * function.c (reorder_blocks_0): Walk the existing block tree
8598         to unmark all blocks.
8599         (reorder_blocks_1): Create block fragments when duplicate block
8600         notes are seen.
8601         (reorder_fix_fragments): New.
8602         (reorder_blocks): Call it.
8603         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
8605 2001-07-28  Richard Henderson  <rth@redhat.com>
8607         * emit-rtl.c (adjust_address): Make a copy of the memory address.
8609 2001-07-28  Richard Henderson  <rth@redhat.com>
8611         * flow.c (add_to_mem_set_list): New function.
8612         (init_propagate_block_info): Use it.
8613         (mark_set_1): Likewise.
8614         (insn_dead_p): Canonicalize memory address for dead store
8615         comparison.  Allow wider mode stores to kill narrower mode stores.
8616         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
8617         (invalidate_mems_from_set): Don't handle MEMs.
8619 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8621         * config/h8300/h8300.h: Fix formatting.
8623 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8625         * basic-block.h (EDGE_FREQUENCY): New macro.
8626         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
8627         for new BB/edges.
8628         * flow.c (find_sub_basic_blocks): Likewise.
8629         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
8630         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
8632         * predict.c (DEF_PREDICTOR): New argument FLAGS.
8633         (HITRATE): New macro.
8634         (PRED_FLAG_FIRST_MATCH): New constant.
8635         (predictor_info): New field flgags.
8636         (combine_predictions_for_insn): Use DS theory to combine
8637         probabilities; set the edge probabilities when finished.
8638         (estimate_probability): Avoid duplicated matches
8639         of LOOP_BRANCH heuristics for nested loops; update comment.
8640         * predict.def: Add flags for each prediction, set probabilities
8641         according to B&L paper.
8642         * predict.h (DEF_PREDICTOR): New argument FLAGS.
8644         * profile.c (compute_branch_probabilities):  Cleanup way the edge
8645         probabilities are computed and REG_BR_PROB notes are dropped; if
8646         values does not match, emit error.
8647         (init_branch_prob): Do error instead of warning when profile driven
8648         feedback is missing or corrupt.
8650 2001-07-27  DJ Delorie  <dj@redhat.com>
8652         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
8653         against a constant, try to adjust the compare to have the desired
8654         constant in it so that min/max optimizations happen more often.
8656 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8658         * flow.c (last_loop_beg_note): New function.
8659         (redirect_edge_and_branch): Use it.
8660         (split_edge): Likewise.
8662         * alias.c (loop_p): Avoid uninitialized memory access.
8664         * flow.c (try_forward_edges): Avoid accessing freed memory.
8666         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
8667         variable access.
8669 2001-07-26  Andrew Haley  <aph@redhat.com>
8670         Joern Rennecke <amylaar@redhat.com>
8672         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
8673         (SUBTARGET_CPP_ENDIAN_SPEC): New.
8674         (SUBTARGET_CPP_SPEC): New.
8675         (CPP_SPEC): Remove.
8676         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
8677         (SUBTARGET_CPP_PTR_SPEC): New.
8678         (CPP_DEFAULT_CPU_SPEC): New.
8679         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
8680         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8681         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
8682         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8683         (SUBTARGET_CPP_SPEC): Define as an empty string.
8685 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8687         * doc/install.texi (Configuration): Properly link the host
8688         specific instructions also when generating HTML.
8690 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
8692         * flow.c (redirect_edge_and_branch_force): Test
8693         target->global_live_at_start.
8695 2001-07-26  Richard Henderson  <rth@redhat.com>
8697         * simplify-rtx.c (avoid_constant_pool_reference): Export.
8698         * rtl.h (avoid_constant_pool_reference): Declare it.
8699         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
8700         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
8702 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8704         * rtl.h (cleanup_barriers): Declare.
8705         * jump.c (cleanup_barriers): New function.
8706         * toplev.c (rest_of_compilation): Call cleanup_barriers
8707         before loop optimizer and after bb_reorder.
8709         * flow.c (back_edge_of_syntactic_loop_p): New.
8710         (split_edge): Use it.
8712 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8714         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
8716 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
8718         * cse.c (cse_process_notes): Replace any registers if the address
8719         remains valid.
8721 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
8723         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
8724         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
8725         (propagate_block): Update prototype.
8726         * flow.c (update_life_info): Simplify the CFG and
8727         recalculate the global regs which are alive when
8728         removing dead code during a global update.
8729         (propagate_block): Return non-zero if an INSN is
8730         deleted.
8732 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8734         * Makefile.in (LIBICONV): Define.
8736 2001-07-26  Catherine Moore  <clm@redhat.com>
8738         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
8739         of conditional to avoid tree checking errors.
8741 2001-07-26  Kazu Hirata  <kazu@hxi.com>
8743         * regmove.c (regmove_optimize): Don't replace a reg with
8744         another reg of a different mode.
8746 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
8748         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
8749         limit length of dependancy flush list.
8750         * params.h (MAX_PENDING_LIST_LENGTH): Define.
8751         * sched-int.h  (struct deps): Add pending_flush_length field.
8752         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
8753         has 1 element in it.
8754         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
8755         (sched_analyze): After a jump, if the pending memory flush list is too
8756         large, flush the pending lists.
8757         (init_deps): Initialize pending_flush_length to 0.
8758         * doc/invoke.texi (max_pending_list_length): Document parameter.
8760 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8762         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
8763         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
8764         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
8766 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8768         * cpphash.h (struct_lexer_state): Delete was_skipping.
8769         Move skipping here from struct cpp_reader.
8770         * cpplex.c (parse_identifier): Update.
8771         (_cpp_lex_token): Don't skip tokens in a directive.
8772         * cpplib.c (struct if_stack): Update.
8773         (start_directive, end_directive): Don't change skipping state.
8774         (_cpp_handle_directive): Update.
8775         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
8776         (do_else, do_endif): Update; only check for excess tokens if not
8777         in a skipped conditional block.
8778         (push_conditional): Update for new struct if_stack.
8780 2001-07-26  Graham Stott  <grahams@redhat.com>
8782         * function.c (locate_and_pad_parm): Also pad initial offset
8783         so that the total argument size also includes the padding.
8785 2001-07-26  Graham Stott <grahams@redhat.com>
8787         * gensupport.c (alter_output_for_insn): Correct enable checking failure
8788         change XSTR to XTMPL.
8790         (process_one_cond_exec): Likewise
8792 2001-07-25  Richard Henderson  <rth@redhat.com>
8794         * varasm.c (assemble_variable): Create DECL_RTL before setting
8795         TREE_ASM_WRITTEN.
8797 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
8799         * predict.c (estimate_probability): Avoid duplicated predictions.
8801         * loop.c (find_and_verify_loops): Grok multiple barriers.
8803 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8805         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
8807         * dbxout.c: Consistently use putc instead of fputc.
8808         (print_wide_int): New function; call instead of direct fprintf.
8809         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
8810         (dbxout_type_fields, dbxout_type_method_1): Likewise.
8811         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
8812         (print_int_cst_octal): Likewise.
8813         (print_octal): Show we wrote characters.
8814         (dbxout_type): Set have_used_extensions in more places.
8816 2001-07-25  Catherine Moore  <clm@redhat.com>
8818         * config/v850/v850.c (v850_va_arg):  Use addr
8819         instead of valist to build incr.
8821 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
8823         * flow.c (delete_dead_jumptables): New function.
8824         (life_analyzis): Call it.
8825         * bb-reorder.c (skip_insns_after_block): Handle contradictory
8826         sequences.
8828 2001-07-25  Richard Henderson  <rth@redhat.com>
8830         * except.c (reachable_handlers): Handle a region being removed
8831         out from under a RESX.
8833 2001-07-25  Richard Henderson  <rth@redhat.com>
8835         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
8836         swap GE/GT if it is an fp comparison.
8838 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
8840         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
8841         operands.
8843 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
8845         * ssa.c (rename_insn_1): Do not wrap an assignment to a
8846         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
8847         glitch.
8849         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
8850         throw an exception.
8851         (visit_expression): When attempting to simplify an expression,
8852         retrieve any modes for arguments before they are simplified
8853         to constants.
8855 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8856             Janis Johnson  <janis@us.ibm.com>
8858         * stmt.c (expand_goto): A nonlocal goto can be a call too.
8859         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
8860         pointer parameters to match documented usage of nonlocal_goto.
8861         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
8862         parameters to their correct order.
8863         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
8864         parameters to their correct order.
8866 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8868         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
8870 2001-07-25  Jan Hubicka  <jh@suse.cz>
8871             Richard Henderson  <rth@redhat.com>
8873         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
8874         the sequence.
8875         (make_edges): New argument update_p; populate the edge cache if set.
8876         (find_basic_blocks): Update make_edges invocation.
8878 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8880         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
8882 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8884         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
8885         -Acpu and -Amachine.h.
8886         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
8887         Corrected header to say ELF not a.out.
8888         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
8889         when given -msoft-float.
8891 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8893         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
8894         extra multilib parts like arm-elf.
8895         (i960-*-coff*, i960-*-rtems): Should not use collect2.
8896         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
8897         crtfini.o as extra multilib parts.
8899 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8901         * configure.in: Add rtems as a supported thread model.
8902         * gthr-rtems.h: Add missing entry point __gthread_active_p.
8903         * configure: Rebuilt.
8905 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
8907         * stor-layout.c (get_mode_alignment): make it work when
8908         BITS_PER_UNIT is not a power of two.
8909         * builtins.c (get_pointer_alignment): Likewise.
8911 2001-07-24  Richard Henderson  <rth@redhat.com>
8913         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
8914         the retrieved constant into the expected mode.
8916 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8918         * flow.c (try_simplify_condjump): Avoid duplicated edges.
8919         (verify_flow_info): Check for duplicated edges; clarify
8920         error reporting.
8922         * flow.c (block_label): Update basic_block_for_insn.
8923         (commit_edge_insertions): Call compute_bb_for_insn.
8925         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
8926         returns too.
8928         * flow.c (redirect_edge_and_branch,
8929         try_optimize_cfg): Use redirect_edge_succ_nodup
8930         (redirect_edge_succ_nodup): New.
8931         * basic_block.h (redirect_edge_succ_nodup): Declare.
8933         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
8934         after gcse.
8936 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8938         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
8939         (try_crossjump_to_edge): Update commetns.
8940         (try_crossjump_bb): Likewise.
8942 2001-07-24  Richard Henderson  <rth@redhat.com>
8944         * combine.c (distribute_notes): Move set of need_refresh
8945         for noop_move_p down to catch all cases.
8947 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
8949         * recog.c (split_all_insns_noflow): New.
8950         * rtl.h (split_all_insns_noflow): Declare.
8951         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
8952         * m68hc11.c (m68hc11_reorg): Likewise.
8953         * sh.c (machine_dependent_reorg): Likewise.
8954         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
8955         call.
8957 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8959         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
8960         (ashlsi3_n splitter): Likewise.
8961         (lshrsi3_n splitter): Likewise.
8963         (GOTaddr2picreg): Make const SImode.
8964         (sym_label2reg): Likewise.
8965         (symGOT2reg): Likewise.
8966         (symGOTOFF2reg) Likewise.
8968         (casesi_worker_0): Make unspec SImode.
8970 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8972         * config/sh/sh.c (barrier_align): Check that an operand really is
8973         an insn before extracting its INSN_CODE.
8975 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
8977         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
8978         dangling else.
8980         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
8981         for SImode to prevent overflow.
8983 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8985         * config/mips/irix6-libc-compat.c: New file.
8986         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
8987         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
8988         passing workaround.
8990 2001-07-24  lars brinkhoff  <lars@nocrew.org>
8992         * rtl.texi (REG_POINTER): Document.
8993         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
8994         QFmode, HFmode, TQFmode, QCmode, and HCmode.
8996 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
8998         * flow.c (delete_noop_moves): Do not confuse libcall regions.
9000 2001-07-23  Richard Henderson  <rth@redhat.com>
9002         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
9004 2001-07-23  Kazu Hirata  <kazu@hxi.com>
9006         * config/h8300/h8300-protos.h: Add a prototype for
9007         general_operand_dst_push.
9008         * config/h8300/h8300.c (general_operand_dst_push): New.
9009         * config/h8300/h8300.h (OK_FOR_T): New.
9010         (EXTRA_CONSTRAINT): Use it.
9011         * config/h8300/h8300.md (movqi_push): Remove and integrate into
9012         the existing movqi pattern.
9013         (movhi_push): Likewise.
9015         * reload.c: Fix comment typos.
9017 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
9019         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
9021 2001-07-23  H.J. Lu  (hjl@gnu.org)
9023         * doc/extend.texi: Update __builtin_return_address and
9024         __builtin_frame_address.
9026 2001-07-23  Richard Henderson  <rth@redhat.com>
9028         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
9029         before CSE.
9030         * config/i386/i386.md: New setcc+movzbl peephole2.
9032 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9034         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
9035         * objc/objc-act.c: Include debug.h.
9036         (synth_module_prologue): Save and restore debug hooks too.
9038 2001-07-23  lars brinkhoff  <lars@nocrew.org>
9040         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
9041         and C4X_FLOAT_FORMAT.
9042         (BOOL_TYPE_SIZE): Document.
9044 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
9046         * unroll.c (loop_iterations): Fix miscalculation of initial
9047         giv offset.
9049 2001-07-13  Andrew Haley  <aph@redhat.com>
9051         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
9052         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
9053         * config/sh/sh.c (sh_can_redirect_branch): New function.
9054         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
9055         * reorg.c (steal_delay_list_from_target): Use
9056         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
9058 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
9060         * flow.c (try_simplify_condjump): Unlink insn chain on
9061         fallthru edge; use can_fallthru.
9063 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
9065         * basic-block.h (find_sub_basic_block): Declare.
9066         * flow.c (make_edges): New arguments MIN and MAX;
9067         (find_sub_basic_blocks): Revamp to use make_edges
9068         and purge_dead_edges.
9069         (find_basic_blocks): Update call of find_sub_basic_block.
9071         * recog.c (split_all_insns): Always expect CFG to be consistent;
9072         call find_sub_basic_blocks in case something has changed.
9073         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
9074         has been built.
9076         * basic-block.h (delete_noop_moves): Declare.
9077         * combine.c (combine_instructions): Call it.
9078         (recog_for_combine): Tolerate noop moves
9079         (distribute_notes): Force refresh when register dies at noop move.
9080         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
9081         too.
9082         (life_analysis): Update delete_noop_moves call.
9083         (set_noop_p): Move too ...
9084         * rtlanal.c (noop_move_p): ... here.
9085         * rtl.h (noop_move_p): Declare.
9087         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
9088         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
9089         after combine.
9090         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
9091         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
9093 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
9095         * reload.c (push_reload): Fix typo in comment.
9096         (find_reloads_address): Ditto.
9097         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
9099 2001-07-22  Richard Henderson  <rth@redhat.com>
9101         * flow.c: Grammar check and clarify a lot of comments.
9102         (try_simplify_condjump): Rename variables to be clearer.
9103         (try_forward_edges): Skip complex and fallthru edges.
9104         Rearrange tests to avoid duplicate checks.
9105         (flow_find_cross_jump): Likewise.
9106         (outgoing_edges_match): Allow match if neither branch has
9107         probability data.  Loosen probability match to 5%.
9108         (try_crossjump_to_edge): Hoist repeated indirection into
9109         local variables.
9110         (try_crossjump_bb): Don't check complex edges.  Eliminate
9111         redundant crossjump tests.
9112         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
9113         checks before more expensive checks.
9115 2001-07-22  Richard Henderson  <rth@redhat.com>
9117         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
9118         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
9119         arguments.
9121 2001-07-22  Richard Henderson  <rth@redhat.com>
9123         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
9124         (const_sint32_operand): Likewise.
9125         * m68k.md (anon mulsi pattern): Use const_int_operand not
9126         const_sint32_operand.
9127         (umulsi3_highpart): Zero extend a constant input.
9128         (smulsi3_highpart): Don't bother checking SImode constant.
9129         (const_umulsi3_highpart): Give op3 DImode.
9130         (const_smulsi3_highpart): Likewise.
9132 2001-07-22  Richard Henderson  <rth@redhat.com>
9134         * flow.c (split_block): Make sure bb_note is included in the
9135         new block when splitting before a label.
9137 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9139         * basic-block.h (redirect_edge_and_branch_force,
9140         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
9141         * flow.c (redirect_edge_and_branch_force,
9142         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
9143         (redirect_edge_and_branch_force): Fix copying of lifeness information.
9144         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
9145         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
9146         instead of label; update CFG after transformation.
9147         (find_if_case_1): Update call, use redirect_edge_and_branch_force
9148         for finishing the transformation; handle even case where ELSE
9149         does not follow THEN.
9150         (find_if_case_2): Update call of dead_or_predictable; simplify
9151         CFG update.
9153         * emit-rtl.c (split_branch_probability): New global variable.
9154         (try_split): Take care to set split_branch_probability and
9155         create REG_BR_PROB note for new jump insns.
9156         * md.texi (define_split): Document new feature.
9158         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
9160 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9162         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
9163         (asm_out_file): Remove redundant declaration.
9164         (assemble_asm): Remove old #if 0 block.
9165         (assemble_variable): Remove end of function; debug output is
9166         now handled with global_decl.  Remove old #if 0 block.  Update.
9167         Remove saved_in_section and associated no-op code.
9168         * Makefile.in (varasm.o): Correct dependencies.
9170 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
9172         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9173         the definition in defaults.h.
9175 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
9177         * jump.c: Update comments.
9178         (delete_barrier_successors, delete_unreferenced_labels,
9179         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
9180         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
9181         jump_optimize, jump_optimize_minimal): Kill.
9182         (rebuild_jump_labels): Move code from jump_optimize_1.
9183         (purge_line_number_notes): Likewise.
9184         (copy_loop_headers): Likewise.
9185         * reg-stack.c: Update comment.
9186         * stmt.c: Likewise.
9187         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
9188         JUMP_AFTER_REGSCAN): Kill.
9189         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
9190         purge_line_number_notes and copy_loop_headers.
9192 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
9193            Richard Henderson  <rth@redhat.com>
9195         * dbxout.c (dbxout_global_decl): New.
9196         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9197         * sdbout.c (sdbout_finish): New.
9198         (sdbout_debug_hooks): Use it, add comments.
9199         (sdbout_global_decl): Defer initialised public vars to
9200         sdbout_finish.
9201         * varasm.c (assemble_variable): Don't output debug information
9202         for file-scope variables.
9204 2001-07-22  Richard Henderson  <rth@redhat.com>
9206         * config/alpha/alpha.c (get_trap_mode_suffix): New.
9207         (get_round_mode_suffix): New.
9208         (print_operand): Use them for [/].  Remove support for [&'`()+].
9209         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
9210         * config/alpha/alpha.md (attr round_suffix): New.
9211         (attr trap_suffix): New.
9212         (all insns): Set them appropriately.  Use %/ instead of the
9213         myriad punctuators.
9215 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9217         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
9219 2001-07-22  Richard Henderson  <rth@redhat.com>
9221         * regrename.c (regrename_optimize): Compute nregs for each
9222         potential target register.
9224 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
9225            Richard Henderson  <rth@redhat.com>
9227         * dbxout.c (dbxout_global_decl): New.
9228         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9229         * sdbout.c (sdbout_finish): New.
9230         (sdbout_debug_hooks): Use it, add comments.
9231         (sdbout_global_decl): Defer initialised public vars to
9232         sdbout_finish.
9233         * varasm.c (assemble_variable): Don't output debug information
9234         for file-scope variables.
9236 2001-07-21  H.J. Lu  (hjl@gnu.org)
9238         * config/mips/mips.c (mips_cpu): Moved into ...
9239         (override_options): Here.
9241         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
9242         mips_tune.
9243         (mips_cpu): Removed.
9245 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9247         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
9248         ("iorqi3"): Likewise.
9249         ("xorqi3"): Likewise.
9250         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
9251         ("*subhi3_sp): Likewise.
9252         ("*subhi3"): Likewise.
9253         ("extendhisi2"): Accept D, X and Y as source operand to avoid
9254         reload problems.
9256 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9258         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
9259         * config/freebsd.h: Likewise.
9260         * config/linux.h: Likewise.
9261         * config/openbsd.h: Likewise.
9262         * config/alpha/linux-elf.h: Likewise.
9263         * config/arm/linux-elf.h: Likewise.
9264         * config/d30v/d30v.h: Likewise.
9265         * config/fr30/fr30.h: Likewise.
9266         * config/ia64/aix.h: Likewise.
9267         * config/ia64/ia64.h: Likewise.
9268         * config/mips/linux.h: Likewise.
9269         * config/pj/pj.h: Likewise.
9270         * config/rs6000/linux.h: Likewise.
9271         * config/sparc/linux.h: Likewise.
9272         * config/sparc/linux64.h: Likewise.
9274 2001-07-20  Bruce Korb  <bkorb@gnu.org>
9276         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
9277         because getc() and char* may disagree on signedness.
9279 2001-07-20  Richard Henderson  <rth@redhat.com>
9281         * doc/rtl.texi (REG_DEAD): Update for current semantics.
9283         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
9284         insns to delete in the presence of cc0 in a jump insn.
9286 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
9287                                 Jan Hubicka  <jh@suse.cz>
9289         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
9290         of doing the change by hand.
9292 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9294         * rtlanal.c (set_noop_p): Return true for noop jumps.
9296         * expr.c (emit_single_push_insn): Add call to push expander.
9297         * expr.h (optab_index): Add OTI_push
9298         (push_optab): New constant.
9299         * genopinit.c (optabs): Add push_optab.
9300         * optabs.c (init_optab): Init push optab.
9301         * md.texi (push??1): Document
9303 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9305         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
9306         expand to emit the pattern; put a REG_INC note for push/pop
9307         instructions.
9308         ("movdf", "movdf_internal"): Likewise.
9309         ("movsi", "movsi_internal"): Likewise.
9310         ("movsf", "movsf_internal"): Likewise.
9311         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
9313 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9315         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
9316         gen_highpart.
9318 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
9320         * params.def: Change default max inline insns to 100.
9322 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
9324         * combine.c (combine_simplify_rtx): Generate a new shift operation
9325         when simplifying the first operand of a (neg (ashift)) expression.
9327 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9329         * regclass.c (N_REG_INTS): Use only 32 bits per element.
9331 2001-07-20  Kelley Cook  <kelley.cook@home.com>
9333         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
9334         information.   Move rest into ...
9335         (*-*-solaris): ... here.  Eliminate redundant information and
9336         reword necessary packages section.  Delete 4.x assembler bug info.
9337         (sparc-sun-*): Merge into ...
9338         (sparc-sun-sunos*): here.
9340 2001-07-20  Catherine Moore  <clm@redhat.com>
9342         * config/v850/v850.md (casesi): Generate LABEL_REF
9343         with Pmode.
9345 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9347         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
9348         * i386.c (ix86_zero_extend_to_Pmode): Make global.
9349         * i386.md (strclrsi expander): Use it.
9351 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9353         * integrate.c (copy_insn_list): handle
9354         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
9355         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
9356         identically as to CODE_LABEL.
9358         * fold-const (fold): Convert A/B/C to A/(B*C) and
9359         A/(B/C) to (A/B)*C
9361         * except.c (connect_post_landing_pads): Delete the RESX insns.
9363 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
9365         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
9367         * config/mips/mips.md (nmadd/nmsub): Use macro.
9369 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
9371         * cppinit.c (remove_dup_dir): Make static.
9372         (remove_dup_dirs): Make static. Only warn about preempting a
9373         system directory with a non-system directory.
9375 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9377         * ifcvt.c (noce_try_store_flag_constants): Correct order
9378         of parameters to trunc_int_for_mode.
9380 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
9382         * reorg.c (fill_simple_delay_slots): If an instruction might throw
9383         an exception that will be caught within this function, do not fill
9384         its delay slot with any subsequent instruction.
9386 2001-07-19  Steve Ellcey <sje@cup.hp.com>
9388         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
9389         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
9390         pointer extension instruction.
9391         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
9392         * simplify-rtx.c (simplify_unary_operation) Likewise.
9393         * explow.c (convert_memory_address) Check value of
9394         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
9395         less than zero.
9396         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
9397         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
9398         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
9399         Add Multilib Support.
9400         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
9401         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
9402         Add Multilib Support.
9403         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
9404         support.
9405         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
9406         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
9407         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
9409 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
9411         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
9412         old and new operands in `<', `3' and `b'.
9414 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9416         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
9417         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
9418         (toplev.o): Don't depend on xcoffout.h.
9419         * c-decl.c: Include debug.h
9420         (duplicate_decls): Use debug hook.
9421         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
9422         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9423         (dbxout_types): Remove.
9424         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
9425         * debug.c (do_nothing_debug_hooks): Update.
9426         (debug_true_tree, debug_nothing_rtx): New.
9427         * debug.h (struct rtx_def): New.
9428         (struct gcc_debug_hooks): New hooks ignore_block,
9429         outlining_inline_function and label.
9430         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
9431         dwarf2out_frame_finish): New.
9432         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
9433         Make static, update prototype.
9434         (dwarf2_debug_hooks): Update.
9435         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
9436         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
9437         * dwarfout.c (dwarf_debug_hooks): Update.
9438         * emit-rtl.c: Include debug.h.
9439         (remove_unnecessary_notes): Use debug hook.
9440         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
9441         (final_scan_insn): Use debug hook.
9442         * integrate.c (output_inline_function): Use debug hook.
9443         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
9444         (sdb_debug_hooks): Update.
9445         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
9446         * toplev.c: Don't include xcoffout.h.
9447         (note_outlining_of_inline_function, debug_ignore_block): Remove.
9448         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
9449         Remove.
9450         * tree.h (dwarf2out_do_frame): Remove.
9452 2001-07-19  Catherine Moore  <clm@cygnus.com>
9454         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
9456 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9458         * reload1.c (eliminate_regs_in_insn): When updating a set
9459         to the frame pointer to the hardware frame pointer, perform
9460         the update always not just when REPLACE is set.
9462         * reload1.c (choose_reload_regs): Don't inherit a reload
9463         that crosses multiple registers if registers past the first
9464         don't fit in the desired class.
9466         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
9467         when negating constants.
9469 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
9471         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
9472         * doc/tree.texi: Ditto.
9474 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
9475             Jakub Jelinek  <jakub@redhat.com>
9477         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
9478         (extract_cie_info): Handle "eh" augmentation properly,
9479         remember eh_ptr.
9480         (struct frame_state, __frame_state_for): New.
9482 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9484         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
9485         HANDLE_SYSV_PRAGMA): Define.
9486         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
9487         previous args.
9488         (copy_object): Caller changed.
9490 2001-07-19  Andreas Schwab  <schwab@suse.de>
9492         * configure.in (assembler dwarf2 debug_line support): Define nop
9493         insn for m68k.
9494         * configure: Regenerated.
9496 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9498         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
9499         dwarfout.h.
9500         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
9501         to conditionally compiled block.
9502         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9503         * dbxout.h (dbxout_function): Remove.
9504         * debug.c (do_nothing_debug_hooks): Update.
9505         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
9506         global_decl, deferred_inline_function.
9507         * dwarf2out.c (dwarf2_debug_hooks): Update.
9508         (dwarf2out_global_decl): New.
9509         * dwarfout.c: Don't include dwarfout.h.
9510         (dwarfout_global_decl, dwarfout_function_decl,
9511         dwarfout_deferred_inline_function): New.
9512         (dwarf_debug_hooks): Update.
9513         * dwarfout.h: Remove.
9514         * final.c: Don't include dwarfout.h.
9515         * sdbout.c (sdbout_global_decl): New.
9516         (sdbout_debug_hooks): Update.
9517         * toplev.c: Don't include dwarfout.h.
9518         (check_global_declarations, rest_of_compilation): Use new debug hooks.
9519         (note_deferral_of_defined_inline_function): Remove.
9520         * toplev.h (note_deferral_of_defined_inline_function): Remove.
9521         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
9522         * ch/lex.c: Don't include dwarfout.h.
9523         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
9524         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
9525         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
9526         * cp/optimize.c: Include debug.h.
9527         (maybe_clone_body): Use debug hook.
9528         * cp/semantics.c: Include debug.h.
9529         (expand_body): Use debug hook.
9530         * po/POTFILES.in: Remove dwarfout.h.
9532 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9534         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
9535         * c-parse.in (yyerror, _yylex): Similarly.
9536         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
9537         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
9538         Update comments.
9539         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
9540         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
9542 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
9544         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
9545         in-class declaration at -g1.  Fixes c++/2814.
9547 2001-07-18  Richard Henderson  <rth@redhat.com>
9549         * doc/md.texi (reload_in/out): Document restrictions in predicates
9550         and constraints for these patterns.  Document empty string matching
9551         ALL_REGS.
9553 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9555         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
9557 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9559         * cse.c: Undo my previous patch.
9561 2001-07-18  Tom Tromey  <tromey@redhat.com>
9563         For PR java/2812:
9564         * configure: Rebuilt.
9565         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
9566         instead.
9567         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
9569 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
9570                                 Jan Hubicka  <jh@suse.cz>
9572         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
9573         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
9574         * jump.c (mark_jump_label): Do not forward branches.
9576 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9578         * cse.c (delete_trivially_dead_insns): Delete the libcall block
9579         when return value is unused.
9581 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9583         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
9585 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
9587         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
9588         on error.  We can't blindly return the result of
9589         pthread_mutex_trylock because it returns a positive number on
9590         error, while we must return -1 on error.
9591         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
9592         fixes.
9593         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
9595 2001-07-18  Andreas Jaeger  <aj@suse.de>
9597         * integrate.c (output_inline_function): Correct type of debug_hooks.
9599 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
9601         * combine.c (combine_simplify_rtx): DIV can be treated
9602         associatively for floats if unsafe math optimisations are enabled.
9604 2001-07-17  Richard Henderson  <rth@redhat.com>
9606         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
9608 2001-07-17  Richard Henderson  <rth@redhat.com>
9610         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
9611         don't force the function address into a register.
9612         (expand_call, emit_library_call_value_1): Update callers.
9613         * builtins.c (expand_builtin_apply): Likewise.
9614         * expr.h (prepare_call_address): Update decl.
9616 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
9618         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
9619         config directory.
9620         * config/i386/chorus.h: Move up.
9621         * config/sparc/chorus.h: Likewise.
9622         * config/rs6000/chorus.h: Likewise.
9623         * config/chorus.h: Moved here.
9625 2001-07-17  Andreas Schwab  <schwab@suse.de>
9627         * configure.in  (assembler eh_frame optimization): Handle big
9628         endian.
9629         * configure: Regenerated.
9631 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
9633         * expr.c (epxand_expr): Convert divisions into multiplications by
9634         reciprocals if -ffast-math.
9636 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9638         * dbxout.c (dbxout_really_begin_function): Rename to
9639         dbxout_begin_function.
9640         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9641         (dbxout_begin_function): Remove.
9642         (dbxout_function): Update.
9643         (dbxout_source_line): Update prototype.
9644         * dbxout.h (dbxout_begin_function): Remove.
9645         * debug.c (do_nothing_debug_hooks): Update.
9646         (debug_nothing_tree): Update.
9647         (debug_nothing_charstar_rtx): Remove.
9648         * debug.h (union tree_node): Declare.
9649         (struct rtx_def): Remove.
9650         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
9651         begin_function.  Change source_line prototype.
9652         (debug_nothing_tree): New.
9653         (debug_nothing_charstar_rtx): Delete.
9654         (dwarf2out_begin_prologue): Moved from ...
9655         * tree.h: ... here.
9656         * dwarf2out.c (dwarf2_debug_hooks): Update.
9657         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
9658         debug info, call dwarf2out_source_line.
9659         (dwarf2out_souce_line): Update prototype.
9660         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
9661         Change prototype, make static.
9662         (dwarfout_source_line): Update prototype.
9663         (dwarf_debug_hooks): Update.
9664         * dwarfout.h (dwarfout_begin_function): Remove.
9665         * final.c (final_start_function, final_scan_insn): Use appropriate
9666         debug hooks, update to use notice_source_line.
9667         (output_source_line): Rename notice_source_line.  Don't call the
9668         source_line debug hook.
9669         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
9670         make static, update prototype.
9671         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
9672         prototype.
9673         (sdbout_end_prologue): New.
9674         (sdbout_source_line): Update prototype.
9675         (sdbout_debug_hooks): Update.
9676         (sdbout_symbol): Remove unused var.
9677         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
9678         Delete.
9679         * varasm.c: Include debug.h.
9680         (assemble_start_function): Use begin_function debug_hook.
9681         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9682         update with prototype.
9683         (xcoffout_source_line): Update prototype.
9684         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9685         update prototype.
9686         (xcoffout_source_line): Update prototype.
9688 2001-07-17  Richard Henderson  <rth@redhat.com>
9690         * c-typeck.c (build_binary_op): Do not shorten unsigned
9691         right shift after sign extension.
9693 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
9695         * combine.c (combine_simplify_rtx): Attempt to simplify
9696         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
9698         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
9699         (simplify_binary_operation, simplify_unary_operation,
9700          simplify_relational_operation): Use it.
9702         * combine.c (combine_simplify_rtx): Don't do associative law
9703         on divisions; allow associative law on floats.
9705 2001-07-17  H.J. Lu <hjl@gnu.org>
9706             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9708         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
9709         ASM_OUTPUT_WEAK_ALIAS are defined.
9710         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
9711         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
9712         Moved ...
9713         * config/mips/iris5.h: ... here.
9714         (HANDLE_SYSV_PRAGMA): Defined as 1.
9715         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
9716         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
9717         symbol.
9719 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
9721         * c-parse.in (all_prefix_attributes): New variable.
9722         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
9723         (maybe_resetattrs): New production.
9724         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
9725         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
9726         notype_initdcl, nested_function, notype_nested_function,
9727         component_decl, components, components_notype,
9728         component_declarator, component_notype_declarator,
9729         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
9730         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
9731         after a comma being applied to more than one declarator.
9732         * doc/extend.texi (Attribute Syntax): Update.  Remove
9733         documentation of bugs that are no longer present.
9735 2001-07-13  Eric Christopher  <echristo@redhat.com>
9737         * config/mips/mips.h: Change TUNE_MIPS* options to use
9738         mips_tune.
9739         (EXTRA_SPECS): Add cc1_cpu_spec.
9740         * config/mips/mips.md (muldf3): Fix typo.
9742 2001-07-16  Richard Henderson  <rth@redhat.com>
9744         * config/m68k/m68k.c: Include expr.h and reload.h.
9745         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
9746         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
9748 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9749             Richard Henderson  <rth@redhat.com>
9751         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
9752         (insn_live_p): Fix fall off end of function.
9753         (dead_libcall_p): Remove COUNTS argument; update callers.
9754         (delete_trivially_dead_insns): Remove unused variables.
9756 2001-07-17  Andreas Jaeger  <aj@suse.de>
9758         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
9759         x86-64 pic support.
9761         * lcm.c (optimize_mode_switching): Avoid warning for unused
9762         variable if !NORMAL_MODE.
9764         * flow.c (try_crossjump_to_edge): Remove unused variable.
9766 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9768         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
9769         atexit declaration in stdlib.h.
9771 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
9773         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
9775 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9777         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
9778         * except.c (finish_eh_generation): Update call of cleanup_cfg;
9779         do rebuild_jump_labels instead of jump_optimize
9780         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
9781         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
9782         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
9784         * flow.c: Include timevar.h
9785         (find_basic_block): Push/pop timevar;
9786         (cleanup_cfg): Likewise.
9787         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
9788         * Makefile: Add dependencies on timevar.h
9790         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
9791         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
9793         * rtl.h (delete_trivially_dead_insns): Add new parameter.
9794         * toplev.c (rest_of_compilation): Update calls.
9795         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
9796         (delete_trivially_dead_insns): ... here; accept new argument
9797         preserve_basic_blocks; preserve basic blocks if set.
9799         * reg-stack.c (stack_regs_mentioned): Return 0 if
9800         stack_regs_mentioned_data is not initialized.
9801         (reg_to_stack): Make stack_regs_mentioned survive after the
9802         reg-stack is completted; do not call cleanup_cfg.
9803         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
9804         make cleanup_cfg after bb-reorder to output to debug file.
9806 2001-07-16  Richard Henderson  <rth@redhat.com>
9808         * regclass.c (init_reg_sets): Use only 32 bits per initializer
9809         from int_reg_class_contents.
9811 2001-07-16  Richard Henderson  <rth@redhat.com>
9813         * hard-reg-set.h (regs_invalidated_by_call): Declare.
9814         * regclass.c (regs_invalidated_by_call): Move from cse.c.
9815         (init_reg_sets_1): Move initialization from cse_main.
9816         * cse.c (regs_invalidated_by_call): Move to regclass.c.
9817         (cse_main): Move its initialization also.
9818         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
9819         * flow.c (propagate_one_insn): Likewise.
9820         * gcse.c (compute_hash_table): Likewise.
9821         (compute_kill_rd, compute_store_table): Likewise.
9822         * sched-deps.c (sched_analyze_1): Likewise.
9824 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
9826         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
9827         gen_rtx_SET.
9829 2001-07-16  Steve Ellcey <sje@cup.hp.com>
9831         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
9832         in if statement so we don't access undefined memory.
9834 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9836         * gcse.c: Update comment at top.
9837         Update comment on mem handling.
9838         mem_last_set, mem_first_set, mem_set_in_block: gone.
9839         Declaration of reg_set_info: gone.
9840         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
9841         pointless with load_killed_in_block_p (they are *more*
9842         conservative then it, not less, and less accurate).
9843         (oprs_not_set_p): Ditto.
9844         (alloc_gcse_mem): Don't allocate mem_set_in_block
9845         (free_gcse_mem): Don't free it, either.
9846         (record_last_mem_set_info): Update comment in front, remove
9847         mem_*set_* stuff. Note the reason we don't handle stores directly
9848         here.
9849         (compute_hash_table): Update comments to reflect reality. Remove
9850         mem_*set_* references.
9851         (reset_opr_set_tables): Remove mem_*set_* references.
9852         (mark_call): Ditto.
9853         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
9854         (mark_clobber): Ditto (on both parts, we double set here too).
9855         (expr_killed_p): Remove mem_set_in_block test.
9856         (compute_transp): Remove mem_set_in_block test.
9858         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
9859         of edge, and removal of phi alternative to dump file.
9860         (ssa_ccp_substitute_constants): Add note about register now being
9861         constant, and which uses were replaced in what insns to dump file.
9863 2001-07-16  Andreas Jaeger  <aj@suse.de>
9865         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
9866         variables of type HOST_WIDEST_INT.
9868         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
9869         (__bb_exit_func): Correct type of count_max to avoid overflow.
9870         (num_digits): Handle long long argument.
9872         * combine.c (gen_lowpart_for_combine): Remove unused variable.
9874 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9876         * output.h (sdb_begin_function_line): Restore as an extern
9877         variable.
9878         * sdbout.c (sdb_begin_function_line): Make extern.
9880 2001-07-15  Richard Henderson  <rth@redhat.com>
9882         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
9883         * genrecog.c (maybe_both_true_mode): New.
9884         (maybe_both_true_2): Use it.
9885         (write_switch): Don't put Pmode in a switch.
9886         * rtl.c (mode arrays): Don't explicitly size them.
9888 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9890         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
9891         handling; move unconditional splitting before mode switching.
9893         * i386.md (type): Add fistp type.
9894         (i387, length_attr, scheduling definitions): Handle this type.
9895         (fix_trunc?f?i2): Revamp to use mode switching.
9896         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
9897         * i386.h (fp_cw_mode): New enum
9898         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
9899         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
9901 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9903         * Makefile.in (integrate.o): Add debug.h.
9904         * integrate.c (debug.h): Add.
9905         (output_inline_function): Save, reset, and restore debug_hooks.
9907 2001-07-15  Richard Henderson  <rth@redhat.com>
9909         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
9910         instead of COMPARE for the EQUIV expression.
9912 2001-07-15  Richard Henderson  <rth@redhat.com>
9914         * flow.c (redirect_edge_and_branch_force): Initialize
9915         global_live_at_start and global_live_at_end.
9916         (allocate_bb_life_data): Export.
9917         * basic-block.h (allocate_bb_life_data): Declare.
9918         * toplev.c (rest_of_compilation): Call it.
9920 2001-07-15  Richard Henderson  <rth@redhat.com>
9922         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
9923         (alpha_tablejump_best_label): New.
9924         * config/alpha/alpha-protos.h: Declare them.
9925         * config/alpha/alpha.md: Use braced strings for code blocks.
9926         (tablejump_osf): Break out add with r29.
9927         (tablejump_osf_internal): Remove.
9928         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
9929         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
9931 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9933         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
9934         of the movable.
9936         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
9938         * i386-protos.h (ix86_split_fp_branch): Update prototype.
9939         (ix86_fp_jump_nontrivial_p): New.
9940         * i386.md (fp_jcc_?): Update call of split_fp_branch;
9941         use ix86_fp_jump_nontrivial_p.
9942         * i386.c (ix86_fp_jump_nontrivial_p): New.
9943         (ix86_split_fp_branch): Accept code instead of rtx.
9944         (ix86_expand_compare): Expand comparison early in case
9945         doing so is resonably cheap.
9947 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
9949         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
9950         not 'machine'.
9951         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
9952         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
9954 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
9956         * dbxout.c (dbxout_source_line): Make static, update prototype.
9957         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
9958         (dbxout_init, dbxout_finish, dbxout_source_line,
9959         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
9960         * dbxout.h (dbxout_source_line): Delete.
9961         * debug.c (debug_nothing_file, debug_nothing_file_int,
9962         debug_nothing_file_charstar_rtx): New.
9963         (do_nothing_debug_hooks): Update.
9964         (debug_nothing_void, debug_nothing_charstar_rtx,
9965         dwarf2out_end_epilogue): New.
9966         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9967         * debug.h (struct rtx_def): Declare.
9968         (gcc_debug_hooks): New hooks source_line, end_epilogue
9969         and end_function.
9970         (debug_nothing_void, debug_nothing_charstar_rtx,
9971         dwarf2out_end_epilogue): New.
9972         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9973         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
9974         (dwarf2_debug_hooks): Update.
9975         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
9976         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
9977         * dwarf2out.h (dwarf2out_source_line): Remove.
9978         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
9979         Make static, update prototype.
9980         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
9981         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
9982         (dwarf_debug_hooks): Update.
9983         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
9984         dwarfout_end_function): Remove.
9985         * final.c (profile_function): Use debug hooks for ending functions
9986         and epilogues.
9987         (output_source_line, final_end_function): Update prototype,
9988         use debug hooks.
9989         (final_start_function, final_scan_insn): Update.
9990         * output.h (sdb_begin_function_line): Remove.
9991         (final_end_function): Update prototype.
9992         * sdbout.c (sdb_begin_function_line): Make static.
9993         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
9994         (sdbout_source_line): New.
9995         (sdbout_end_epilogue, sdbout_end_function): Make static, update
9996         prototypes.
9997         (sdb_debug_hooks): Update.
9998         (sdbout_init, sdbout_source_line,
9999         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
10000         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
10001         * toplev.c (compile_file, rest_of_compilation): Update.
10002         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
10003         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
10004         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
10005         Update for prototype changes.
10006         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
10007         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
10009 2001-07-15  Richard Henderson  <rth@redhat.com>
10011         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
10012         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
10013         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
10014         * config/alpha/alpha.c: Likewise.
10015         * config/alpha/alpha.md: Likewise.
10016         * config/alpha/alpha32.h: Likewise.
10017         * config/alpha/vms.h: Likewise.
10018         (OPEN_VMS): Remove.
10020 2001-07-14  Richard Henderson  <rth@redhat.com>
10022         * config/alpha/alpha.md: Use define_constants for unspec values.
10023         Substitute throughout.
10025 2001-07-14  Tim Josling  <tej@melbpc.org.au>
10027         * tree.def (EXPON_EXPR) remove. Never supported anyway.
10029 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10031         * pa.md: Remove unused constraints from define_split's.
10033 2001-04-14  Richard Henderson  <rth@redhat.com>
10035         * ifcvt.c (find_cond_trap): Test for exit block.
10037 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
10039         Re-install recently reverted patch.
10040         * emit-rtl.c (try_split): Update mark_jump_label call.
10041         * flow.c (find_sub_basic_blocks): Likewise.
10042         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10043         jump_back_p): Kill.
10044         (mark_all_labels): Kill second parameter.
10045         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10046         (rebuild_jump_labels, jump_optimize_minimal): Update call
10047         of jump_optimize_1.
10048         (jump_optimize_1): Kill crossjumping code.
10049         (mark_jump_label): Kill cross_jump parameter.
10050         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10051         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10052         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10053          splitting.
10054         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10055         DFI_bpro.
10056         (dump_file_info): Likewise.
10057         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10058         reorganize passes to do reg-stack first, bb-reorder second.
10059         * invoke.texi (-d letters doc): Remove the jump2 pass.
10061 2001-07-14  Richard Henderson  <rth@redhat.com>
10063         * ifcvt.c (find_cond_trap): New.
10064         (find_if_header): Call it.
10065         (merge_if_block): Relax existing jump sanity check.
10066         * jump.c (jump_optimize_1): Remove conditional trap handling.
10068 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
10070         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
10071         millicode.
10072         (insn_refs_are_delayed): Correct comment.
10073         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
10074         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
10075         instead of r31.  Make associated insn !TARGET_64BIT, and
10076         provide an additional 64-bit insn that clobbers r2.
10077         (divsi3): Likewise.
10078         (udivsi3): Likewise.
10079         (modsi3): Likewise.
10080         (umodsi3): Likewise.
10082 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
10084         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
10086         * flow.c (redirect_edge_and_branch_force, split_edge,
10087         try_crossjump_to_edge): Use set_block_for_new_insns.
10088         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
10090 2001-07-13  H.J. Lu  (hjl@gnu.org)
10092         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
10093         the correct patch.
10095 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10097         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
10099 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
10101         * c-common.c (decl_attributes): Take a pointer to the node to
10102         which attributes are to be attached, and a flags argument.
10103         * c-common.h (enum attribute_flags): New.
10104         (decl_attributes): Update prototype.
10105         * c-decl.c (start_decl, push_parm_decl, finish_struct,
10106         finish_enum, start_function): Update calls to decl_attributes.
10107         * c-parse.in (component_declarator, component_notype_declarator,
10108         label): Update calls to decl_attributes.
10110 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
10112         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
10113         * config/avr/avr.c (legitimate_address_p): Return value changed
10114         from letter to register classes. For better debugging.
10116 2001-07-13  Kazu Hirata  <kazu@hxi.com>
10118         * jump.c (reversed_comparison_code_parts): Fix comment typos.
10120 2001-07-13  H.J. Lu  (hjl@gnu.org)
10122         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
10124 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
10126         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
10127         correctly for shared configurations.
10128         * config/t-libgcc-pic:  New.
10129         * config/{i386,m68k,sparc}/t-openbsd:  New.
10130         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
10131         Support -shared.  Support debugging libraries with -g.
10132         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
10133         frame information does not emit pointer diffs.
10134         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
10135         emit pointer diffs.
10137 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10139         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
10141 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
10143         * combine.c (try_combine): Ensure const_int pow2 is positive.
10145 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
10147         * config.gcc: Add configuration for s/390.
10148         * config/s390/s390.c: New. Subroutines for code generation.
10149         * config/s390/s390.h: New. Definitions for s/390.
10150         * config/s390/s390-protos.h: New. Prototypes.
10151         * config/s390/linux.h: New. Definitions for linux for s/390.
10152         * config/s390/linux64.h: New. Definitions for linux for zSeries.
10153         * config/s390/t-linux: New. Makefile fragment.
10154         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
10155         * config/s390/fixdfdi.h: New. Fix L_fix*di.
10157 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
10159         * emit-rtl.c (try_split): Update mark_jump_label call.
10160         * flow.c (find_sub_basic_blocks): Likewise.
10161         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10162         jump_back_p): Kill.
10163         (mark_all_labels): Kill second parameter.
10164         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10165         (rebuild_jump_labels, jump_optimize_minimal): Update call
10166         of jump_optimize_1.
10167         (jump_optimize_1): Kill crossjumping code.
10168         (mark_jump_label): Kill cross_jump parameter.
10169         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10170         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10171         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10172          splitting.
10173         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10174         DFI_bpro.
10175         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10176         reorganize passes to do reg-stack first, bb-reorder second.
10177         * invoke.texi (-d letters doc): Remove the jump2 pass.
10179 2001-07-12  Steve Ellcey <sje@cup.hp.com>
10181         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
10183 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10185         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
10186         basic blocks.
10187         (verify_flow_info): Make diagnostics prettier.
10189 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10191         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
10193         * flow.c (outgoing_edges_match): Return early if condition reversal
10194         failed.
10196 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
10198         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
10199         (mips_move_2words): When splitting a move into two instructions,
10200         prefix the second address operand with '%D'.
10202 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10204         * Makefile.in (final.o): Depend on debug.h.
10205         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
10206         (dbx_debug_hooks): Add new hooks.
10207         (xcoff_debug_hooks): New.
10208         * debug.c (debug_nothing_file_int_int): New.
10209         (do_nothing_debug_hooks): Update.
10210         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
10211         (debug_nothing_file_int_int): New.
10212         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
10213         static, update prototype.
10214         (dwarf2_debug_hooks): Update.
10215         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
10216         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
10217         static, update prototype.
10218         (dwarf_debug_hooks): Update.
10219         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
10220         * final.c: Include debug.h.
10221         (final_scan_insn): Use debug hooks when beginning and ending blocks.
10222         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
10223         static, update prototype.
10224         (sdb_debug_hooks): Update.
10225         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
10226         * toplev.c: Distinguish between xcoff and dbx.
10228         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
10229         Call all debug hooks, not just dwarf ones.
10231 2001-07-11  Timothy Wall  <twall@redhat.com>
10233         * config.gcc: Add configuration for AIX5/IA64.
10234         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
10235         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
10236         support prefix/suffix code.
10237         * config/ia64/t-aix: New.  Makefile fragment.
10238         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
10240 2001-07-11  Kazu Hirata  <kazu@hxi.com>
10242         * recog.c (validate_change): Fix a comment typo.
10244 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10246         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
10247         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
10248         hooks directly.
10249         * dbxout.c (dbx_debug_hooks): Add new hooks.
10250         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
10251         make static.
10252         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
10253         make static.
10254         * dbxout.h (dbxout_start_new_source_file,
10255         dbxout_resume_previous_source_file): Delete.
10256         * debug.c (do_nothing_debug_hooks): Add new hooks.
10257         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10258         (debug_nothing_int_charstar, debug_nothing_int): New.
10259         * debug.h (gcc_debug_hooks): New hooks define, undef,
10260         start_source_file and end_source_file.
10261         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10262         (debug_nothing_int_charstar, debug_nothing_int): New.
10263         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
10264         the conditionally compiled section.
10265         (dwarf2out_start_source_file, dwarf2out_end_source_file,
10266         dwarf2out_define, dwarf2out_undef): Make static.
10267         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
10268         dwarf2out_define, dwarf2out_undef): Remove.
10269         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
10270         (dwarfout_start_source_file, dwarfout_end_source_file,
10271         dwarfout_define, dwarfout_undef): Make static.
10272         (dwarfout_start_source_file_check,
10273         dwarfout_end_source_file_check): New.
10274         (dwarfout_define, dwarfout_finish): Update.
10275         * dwarfout.h (dwarfout_start_new_source_file,
10276         dwarfout_resume_previous_source_file, dwarfout_define,
10277         dwarfout_undef): Remove.
10278         * sdbout.c (sdb_debug_hooks): Add new hooks.
10279         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
10280         make static.
10281         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
10282         make static, take an arg.
10283         * sdbout.h (sdbout_start_new_source_file,
10284         sdbout_resume_previous_source_file): Delete.
10285         * toplev.c (debug_start_source_file, debug_end_source_file,
10286         debug_define, debug_undef): Delete.
10287         * toplev.h (debug_start_source_file, debug_end_source_file,
10288         debug_define, debug_undef): Delete.
10290         * java/jcf-parse.c: Include debug.h.
10291         (parse_class_file): Update to use debug hooks directly.
10292         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
10294 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10296         * alias.c (set_mem_alias_set): New function.
10297         * rtl.h (set_mem_alias_set): Declare it.
10298         * builtins.c (expand_builtin_return_addr): Call it instead of
10299         using MEM_ALIAS_SET accessor.
10300         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
10301         (get_memory_rtx, expand_builtin_va_arg): Likewise.
10302         (expand_builtin_va_copy):Likewise.
10303         * caller-save.c (setup_save_areas): Likewise.
10304         * calls.c (compute_argument_addresses): Likewise.
10305         * explow.c (set_mem_attributes): Likewise.
10306         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
10307         (expand_assignment, store_constructor_field, store_field): Likewise.
10308         (expand_expr_unaligned): Likewise.
10309         * function.c (assign_stack_temp_for_type): Likewise.
10310         (put_reg_into_stack, gen_mem_addressof): Likewise.
10311         * ifcvt.c (noce_try_cmove_arith): Likewise.
10312         * reload1.c (reload, alter_reg): Likewise.
10313         * config/alpha/alpha.c (get_aligned_mem): Likewise.
10314         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
10315         (alpha_expand_unaligned_store): Likewise
10316         (alpha_expand_unaligned_load_words): Likewise.
10317         (alpha_expand_unaligned_store_words): Likewise.
10318         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
10319         (alpha_expand_epilogue): Likewise.
10320         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
10321         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
10322         * config/i386/i386.c (legitimize_pic_address): Likewise.
10323         * config/i960/i960.c (setup_incoming_varargs): Likewise.
10324         * config/ia64/ia64.c (spill_restore_mem): Likewise.
10325         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10326         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
10327         * config/mips/mips.c (mips_va_arg): Likewise.
10328         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10329         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10330         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10331         (setup_incoming_varargs, rs6000_va_arg): Likewise.
10332         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
10333         (rs6000_emit_epilogue): Likewise.
10334         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
10335         * config/sparc/sparc.c (sparc_va_arg): Likewise.
10336         * config/v850/v850.c (v850_va_arg): Likewise.
10338 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
10340         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
10341         when fallthru edge is present.
10342         (mege_blocks): Handle case where creation of jump insn
10343         is required.
10345         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
10346         CLEANUP_POST_REGSTACK): New constants.
10347         * except.c (finish_eh_generation): Update call of cleanup_cfg,
10348         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
10349         * output.h (cleanup_cfg): Update prototype.
10350         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
10351         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
10352         cleanup_cfg call; kill missleading comment.
10353         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
10354         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
10355         parameter; control optimizations performed using it.
10356         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
10357         try_crossjump_bb): New functions.
10359 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10361         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
10362         extern.
10363         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
10364         pa_output_function_prologue.
10365         * pa-protos.h (pa_output_function_prologue): New prototype.
10367 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10369         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
10370         and low to get correct sign extension in low+high test.
10372 2001-07-11  Janis Johnson <janis@us.ibm.com>
10374         * gcov.c (arcdata): Use gcov_type to fix branch percentage
10375         for large hit count.
10377         * profile.c (branch_prob): Fix .bbg info for computed gotos
10378         and C++ EH code.
10380 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
10382         * stmt.c (parse_output_constraint): New function, split out
10383         from ...
10384         (expand_asm_operands): ... here.  Use parse_output_constraint.
10385         * tree.h (parse_output_constraint): Declare it.
10387 2001-07-11  Richard Henderson  <rth@redhat.com>
10389         * bitmap.c: Comment some functions; fiddle whitespace.
10390         (bitmap_free): Don't export.
10391         (bitmap_element_allocate): Use memset.
10392         * bitmap.h (bitmap_free): Don't declare.
10394 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
10396         * gcse.c, lcm.c, sched-deps.c:
10397         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
10399         * flow.c (flow_loops_find): Free dom if we found no loops, since
10400         we aren't going to save it.
10402         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
10403         done.
10405 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
10407         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
10409 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10411         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
10412         #ifndef DWARF2_DEBUGGING_INFO.
10414 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10416         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
10418 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10420         * config/mips/mips.c (gen_int_relational): Tell the caller not to
10421         reverse a branch if a NE comparison is implemented with GTU.
10423 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10424             H.J. Lu  <hjl@gnu.org>
10426         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
10427         constant addresses.
10428         (call_internal2): Likewise.
10429         (call_value_internal1): Likewise.
10430         (call_value_internal2): Likewise.
10431         (call_value_multiple_internal1): Likewise.
10432         (call_value_multiple_internal2): Likewise.
10434 2001-07-10  Kazu Hirata  <kazu@hxi.com>
10436         * calls.c (emit_library_call_value_1): Fix a comment typo.
10437         * dwarf2out.c (mem_loc_descriptor): Likewise.
10438         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
10440 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
10442         * simplify-rtx.c (simplify_subreg): Fix typo in comment
10444 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10446         * recog.c (offsettable_address_p): Handle LO_SUM case.
10447         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
10448         instead of plus_constant.
10450 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10452         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
10453         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
10455 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10457         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
10458         adjust_address_nv instead of plus_constant.
10460 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10462         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
10463         dwarf2out.o): Depend on debug.h, wrap long lines.
10464         * dbxout.c: Include debug.h.
10465         (dbx_debug_hooks): New.
10466         (dbxout_init): Make static, take just 2 args.
10467         (dbxout_finish): Make static.
10468         * dbxout.h (dbxout_init, dbxout_finish): Delete.
10469         * debug.c: New file.
10470         * debug.h: New file.
10471         * dwarf2out.c: Include debug.h.
10472         (dwarf2_debug_hooks): New.
10473         (dwarf2out_init): Make static.
10474         (dwarf2out_finish): Make static, take 2 args.
10475         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
10476         * dwarfout.c: Include debug.h.
10477         (dwarf_debug_hooks): New.
10478         (dwarfout_init): Make static.
10479         (dwarfout_finish): Make static, take 2 args.
10480         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
10481         * sdbout.c: Include debug.h.
10482         (sdb_debug_hooks): New.
10483         (sdbout_init): Make static, take 2 args.
10484         * sdbout.h (sdbout_init): Delete.
10485         * toplev.c: Include debug.h.
10486         (debug_hooks): New.
10487         (compile_file): Set deubg_hooks based on command line options.
10488         Use the hooks unconditionally rather than conditional compilation.
10490 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
10492         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
10493         first_insn_after_basic_block_note instead.
10495         * df.c (df_bb_refs_unlink): #if 0 out for now.
10497 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
10499         * ssa.h: Add prototype for ssa_const_prop
10500         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
10501         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
10502         (ssa_fast_dce): Remove unused variable
10504 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10506         * diagnostic.c (finish_diagnostic): Rename to
10507         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
10508         calls thourghout.
10510 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
10512         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
10513         .loc support.
10515         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
10516         (dump_file): Only pad the demangled name with spaces if the
10517         mangled name was padded with spaces.
10519 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
10521         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
10522         edge detection.
10524 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10526         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
10527         extraction if no direct load if either EXPAND_CONST_ADDRESS or
10528         EXPAND_INITIALIZER.
10530         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
10531         whether can put offset inside LO_SUM to check mode alignment, not size.
10533 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10535         * doc/tm.texi (Misc): Fix thinko.
10537 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
10539         * regmove.c (replace_in_call_usage): Fix warnings.
10540         * sched-deps.c (add_dependence): Fix warnings.
10541         * simplify-rtx.c (simplify_subreg): Likewise.
10542         Return NULL_RTX instead of NULL.
10544         * reg-stack.c (emit_swap_insn): Eliminate warnings.
10545         (subst_asm_stack_regs): Likewise.
10547         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
10548         warnings.
10550         * dwarf2out.c (output_call_frame_info): Declare i as int.
10551         (build_abbrev_table): Declare n_alloc as int.
10552         (dwarf2out_finish): Initialize die.
10553         * except.c: Declare sjlj_funcdef_number as unsigned.
10554         (connect_post_landing_pads): Declare j as unsigned.
10555         (convert_to_eh_region_ranges): Initialize call_site.
10556         (output_function_exception_table): Initialize tt_format_size.
10557         * expr.c (move_by_pieces_1): Initialize to1.
10558         (store_constructor): Initialize minelt and maxelt.
10559         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
10560         * function.c (instantiate_decls): Avoid signed/unsigned warning.
10562         * c-decl.c (combine_parm_decls): Unused, remove.
10563         * c-tree.h: Remove prototype for combine_parm_decls.
10565         * reload.c (push_reload): Fix warning.
10566         (regno_clobbered_p): Likewise.
10567         * reload1.c (replace_pseudos_in_call_usage): Likewise.
10568         (reload_combine): Likewise.
10570         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
10571         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
10572         warnings.
10573         * bitmap.c (bitmap_operation): Change user.
10574         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
10576 2001-07-10  Eric Christopher  <echristo@redhat.com>
10578         * config/mips/mips.c (override_options): Fix typo.
10580 2001-07-09  Stan Shebs  <shebs@apple.com>
10582         * target.h (struct gcc_target): New fields init_builtins and
10583         expand_builtin.
10584         * target-def.h (TARGET_INIT_BUILTINS): New macro.
10585         (TARGET_EXPAND_BUILTIN): New macro.
10586         (TARGET_INITIALIZER): Add them.
10587         * builtins.c: Include target.h.
10588         (expand_builtin): Use targetm.expand_builtin.
10589         (default_init_builtins): New function.
10590         (default_expand_builtin): New function.
10591         * expr.h (default_init_builtins): Declare.
10592         (default_expand_builtin): Declare.
10593         * c-common.c (c_common_nodes_and_builtins): Use
10594         targetm.init_builtins.
10595         * defaults.h (MD_INIT_BUILTINS): Remove.
10596         * Makefile.in (builtins.o): Depend on target.h.
10598         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
10599         (TARGET_EXPAND_BUILTIN): Define.
10600         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
10601         (MD_EXPAND_BUILTIN): Remove.
10603         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
10604         (TARGET_EXPAND_BUILTIN): Define.
10605         (c4x_init_builtins): Make endlink arg a local.
10606         (c4x_print_operand): Fix typos in adjust_address usages.
10607         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
10608         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
10609         (MD_EXPAND_BUILTIN): Remove.
10611         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
10612         (TARGET_EXPAND_BUILTIN): Define.
10613         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
10614         (ix86_init_builtins): Call new function only if TARGET_MMX.
10615         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
10616         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
10617         (MD_EXPAND_BUILTIN): Remove.
10619         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
10620         (TARGET_EXPAND_BUILTIN): Define.
10621         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
10622         (MD_EXPAND_BUILTIN): Remove.
10624         * doc/tm.texi: Document these changes.
10626 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
10628         * basic-block.h (tree_node): Forward declare if needed.
10629         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
10630         (BLOCK_HEAD_TREE): Define.
10631         (BLOCK_END_TREE): Define.
10632         (struct loops): Rename field 'tree' to 'tree_root'.
10633         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
10634         'end_tree'.
10635         (flow_loops_tree_build): Rename reference to field 'tree' to
10636         'tree_root'.
10637         (flow_loops_level_compute): Ditto.
10638         * predict.c (estimate_bb_frequencies): Ditto.
10639         * tree.h (struct tree_common): Add field 'aux'.
10641 2001-07-09  Stan Shebs  <shebs@apple.com>
10643         * config/darwin.c (darwin_encode_section_info): Don't mark any
10644         DECL_EXTERNAL node as defined.
10646 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10648         * pa.c (pa_init_machine_status, pa_mark_machine_status,
10649         pa_free_machine_status, hppa_init_pic_save): Delete.
10650         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
10651         (hppa_profile_hook): Use hppa_pic_save_rtx.
10652         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
10653         hppa_init_pic_save): Delete.
10654         (hppa_pic_save_rtx): Declare.
10655         * pa.md (call, call_value, sibcall, sibcall_value,
10656         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
10658 2001-07-09  Kazu Hirata  <kazu@hxi.com>
10660         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
10661         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
10663 2001-07-09  Andreas Jaeger  <aj@suse.de>
10665         * output.h: Add declaration of final_forward_branch_p.
10667         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
10669         * varray.c: Include errors.h for internal_error and trim_filename
10670         declarations.
10672         * Makefile.in (varray.o): Add errors.h.
10674 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
10676         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
10677         * optabs.c (have_add2_insn): Check whether the add insn chosen
10678         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
10679         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
10681 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
10683         * Makefile.in (OBJS): Add ssa-ccp.o
10684         (ssa-ccp.o): Add dependencies.
10685         * toplev.c (DFI_ssa_ccp): New dump file enum.
10686         (dump_file): Add entry for dumping after SSA CCP.
10687         (flag_ssa_ccp): New flag variable.
10688         (f_options): Add -fssa-ccp.
10689         (rest_of_compilation): Run SSA CCP if requested.
10690         * timevar.def (TV_SSA_CCP): New timevar.
10691         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
10692         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
10693         Fix minor typo in SSA DCE documentation.
10694         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
10695         Add documentation for new dump option.  Renumber dump files
10696         appropriately.
10698 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10700         * emit-rtl.c (gen_highpart_mode): New.
10701         * rtl.h (gen_highpart_mode): Declare.
10702         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
10703         operand can be VOIDmode constant.
10705 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
10707         * flow.c (redirect_edge_and_branch_force): New.
10708         (can_fallthru): Ensure that basic blocks are succeeding.
10709         (try_optimize_cfg): Do not delete basic block if it is the last one.
10711         * flow.c (try_redirect_by_replacing_jump): Do not remove
10712         jumps with side effects, unlink chain on fallthru edge;
10713         set block for new jump instruction; avoid basic block to
10714         over by line number note.
10716         * flow.c (try_simplify_condjump): Verify that the condjump
10717         is not always falling trought.
10719         Re-install patch:
10720         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
10722         * flow.c (forwarder_block_p): Fix for fallthru blocks.
10723         (try_redirect_by_replacing_jump): Update properly the count
10724         and frequency information.
10726 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10728         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
10729         address that is a LO_SUM specially.
10730         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
10732         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
10734         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
10735         (operand_subword): Use them.
10736         (change_address_1): Renamed from change_address; new arg VALIDATE.
10737         * expr.h: Reflect above changes; change_address now macro.
10738         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
10739         making MEM.
10740         * cselib.c (add_mem_for_addr): Likewise.
10741         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
10742         * regmove.c (try_apply_stack_adjustment): Likewise.
10743         * reload.c (push_reload, make_memloc): Likewise.
10744         * reload1.c (eliminate_regs): Likewise.
10745         * simplify-rtx.c (simplify_replace_rtx): Likewise.
10746         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
10747         adjust_addess.
10748         * combine.c (make_extraction, simplify_shift_const): Likewise.
10749         (gen_lowpart_for_combine): Likewise.
10750         * cse.c (gen_lowpart_if_possible): Likewise.
10751         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
10752         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
10753         * optabs.c (gen_move_insn): Likewise.
10754         * reload1.c (alter_reg): Likewise.
10755         * simplify-rtx.c (simplify_subreg): Likewise.
10756         * stmt.c (expand_anon_union_decl): Likewise.
10757         * recog.c (validate_replace_rtx_1): Likewise.
10758         (expr.h): Include.
10759         * Makefile.in (recog.o): Add $(EXPR_H).
10760         * explow.c (stabilize): Call replace_equiv_address.
10761         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
10762         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
10764 2001-07-03  Andrew Haley  <aph@redhat.com>
10766         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
10767         the mode of the memory location.
10769 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
10771         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
10773 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
10775         * final.c (output_addr_const): Use target opening and
10776         closing parentheses.
10777         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
10778         defaults, add to TARGET_ASM_OUT.
10779         * target.h (struct gcc_target): Add open_paren and close_paren.
10780         * doc/md.texi: Update.
10781         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
10782         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
10783         TARGET_ASM_CLOSE_PAREN.
10784         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10785         Override.
10786         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10787         Override.
10788         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
10789         * config/a29k/a29k.h: Similarly.
10790         * config/alpha/alpha.h: Similarly.
10791         * config/arc/arc.h: Similarly.
10792         * config/arm/aof.h: Similarly.
10793         * config/arm/aout.h: Similarly.
10794         * config/avr/avr.h: Similarly.
10795         * config/c4x/c4x.h: Similarly.
10796         * config/clipper/clipper.h: Similarly.
10797         * config/convex/convex.h: Similarly.
10798         * config/d30v/d30v.h: Similarly.
10799         * config/dsp16xx/dsp16xx.h: Similarly.
10800         * config/elxsi/elxsi.h: Similarly.
10801         * config/fr30/fr30.h: Similarly.
10802         * config/h8300/h8300.h: Similarly.
10803         * config/i370/i370.h: Similarly.
10804         * config/i386/i386.h: Similarly.
10805         * config/i860/i860.h: Similarly.
10806         * config/i960/i960.h: Similarly.
10807         * config/ia64/ia64.h: Similarly.
10808         * config/m32r/m32r.h: Similarly.
10809         * config/m68hc11/m68hc11.h: Similarly.
10810         * config/m68k/m68k.h: Similarly.
10811         * config/m88k/m88k.h: Similarly.
10812         * config/mcore/mcore.h: Similarly.
10813         * config/mips/mips.h: Similarly.
10814         * config/mn10200/mn10200.h: Similarly.
10815         * config/mn10300/mn10300.h: Similarly.
10816         * config/ns32k/ns32k.h: Similarly.
10817         * config/pa/pa.h: Similarly.
10818         * config/pdp11/pdp11.h: Similarly.
10819         * config/pj/pj.h: Similarly.
10820         * config/romp/romp.h: Similarly.
10821         * config/rs6000/rs6000.h: Similarly.
10822         * config/sh/sh.h: Similarly.
10823         * config/sparc/sparc.h: Similarly.
10824         * config/v850/v850.h: Similarly.
10825         * config/vax/vax.h: Similarly.
10826         * config/we32k/we32k.h: Similarly.
10828 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
10830         * doc/c-tree.texi: Document representation of attributes.
10832 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10834         * doc/tm.texi: Update some places for the rename of target to
10835         targetm.  Fix typo.
10837 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10839         * target.h (struct gcc_target): Add insert_attributes.
10840         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
10841         (TARGET_INITIALIZER): Update.
10842         * tree.c, tree.h (default_insert_attributes): New function.
10843         Update comments on other default functions to refer to targetm,
10844         not target.
10845         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
10846         TARGET_INSERT_ATTRIBUTES.
10847         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
10848         * c-common.c (decl_attributes): Use targetm.insert_attributes.
10849         Don't use PRAGMA_INSERT_ATTRIBUTES.
10850         * Makefile.in (c-common.o): Depend on $(TARGET_H).
10851         * c-decl.c (start_decl, start_function): Don't call
10852         SET_DEFAULT_DECL_ATTRIBUTES.
10853         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10854         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
10855         declare.
10856         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
10857         (c4x_check_attribute): Avoid modifying attribute list itself.
10858         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
10859         Make static.
10860         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
10861         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
10862         declare.
10863         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
10864         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
10865         Make static.
10866         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10867         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
10868         declare.
10869         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
10870         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
10871         Adjust parameters.  Make static.
10873 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10875         * c-common.c (decl_attributes): Only take a single attributes
10876         parameter.
10877         * c-common.h (decl_attributes): Update prototype.
10878         * c-decl.c (start_decl, start_function): Only take a single
10879         attributes parameter.  Update calls to decl_attributes.
10880         (finish_struct, finish_enum): Update calls to decl_attributes.
10881         (push_parm_decl): Expect unified list of attributes.  Update call
10882         to decl_attributes.
10883         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
10884         notype_nested_function, component_declarator,
10885         component_notype_declarator, label): Update calls to
10886         decl_attributes.
10887         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
10888         lists that are passed to push_parm_decl.
10889         * c-tree.h (start_function, start_decl): Update prototypes.
10890         * config/sh/sh-protos.h, config/sh/sh.c
10891         (sh_pragma_insert_attributes): Only take a single attributes
10892         parameter.
10893         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
10894         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
10895         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
10896         build_module_descriptor, generate_static_references,
10897         generate_strings, build_selector_translation_table,
10898         generate_descriptor_table, generate_protocols,
10899         generate_ivars_list, generate_dispatch_table,
10900         generate_protocol_list, generate_category,
10901         generate_shared_structures, really_start_method, add_objc_decls,
10902         generate_classref_translation_entry): Update calls to start_decl
10903         and start_function.
10904         (build_tmp_function_decl, start_method_def): Unify attribute lists
10905         that are passed to push_parm_decl.
10907 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10909         * final.c (no_asm_to_stream): New.
10910         (final_scan_insn): Use target structures for prologue ends
10911         and epilogue starts.
10912         * output.h (no_asm_to_stream): New.
10913         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
10914         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
10915         (TARGET_ASM_OUT): Update.
10916         * target.h (struct gcc_target): New members function_end_prologue
10917         and function_begin_epilogue.
10918         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
10919         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
10920         * config/alpha/alpha.c (output_end_prologue): Rename to
10921         alpha_output_function_end_prologue.  Use in target struct
10922         and make static.
10923         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
10924         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
10925         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
10926         ia64_output_function_end_prologue.  Use in target struct
10927         and make static.
10928         (ia64_function_prologue, ia64_funciton_epilogue): Rename
10929         mistyped prototypes.
10930         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
10931         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
10932         Delete.
10933         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
10934         an use in target struct, make static.
10935         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
10936         Delete.
10938 2001-07-08  Richard Henderson  <rth@redhat.com>
10940         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
10942 2001-07-08  Richard Henderson  <rth@redhat.com>
10944         * config/i386/i386.md: Remove constraints strings from define_split
10945         and define_peephole2 patterns.
10946         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
10947         (eh_return): Use them.
10949 2001-07-08  Richard Henderson  <rth@redhat.com>
10951         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
10952         Document MD_FALLBACK_FRAME_STATE_FOR.
10954 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10956         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
10957         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
10958         elimination.
10959         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
10961 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
10963         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
10964         of the label inside NAME as opposed to just the end of NAME.
10966 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10968         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
10969         * config/alpha/alpha.c (alpha_init_machine_status,
10970         alpha_mark_machine_status, alpha_free_machine_status): Delete.
10971         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
10972         (vms_valid_decl_attribute_p): Make static, conditionally compile.
10973         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
10975 2001-07-06  Stan Shebs  <shebs@apple.com>
10977         * target.h (targetm): Rename global from "target", so as not to
10978         conflict with local variables.
10979         * c-decl.c: Ditto.
10980         * c-typeck.c: Ditto.
10981         * final.c: Ditto.
10982         * tree.c: Ditto.
10983         * cp/decl.c: Ditto.
10984         * cp/decl2.c: Ditto.
10985         * cp/typeck.c: Ditto.
10986         * 1750a/1750a.c: Ditto.
10987         * a29k/a29k.c: Ditto.
10988         * arc/arc.c: Ditto.
10989         * arm/arm.c: Ditto.
10990         * avr/avr.c: Ditto.
10991         * clipper/clipper.c: Ditto.
10992         * convex/convex.c: Ditto.
10993         * d30v/d30v.c: Ditto.
10994         * dsp16xx/dsp16xx.c: Ditto.
10995         * elxsi/elxsi.c: Ditto.
10996         * fr30/fr30.c: Ditto.
10997         * h8300/h8300.c: Ditto.
10998         * i370/i370.c: Ditto.
10999         * i386/i386.c: Ditto.
11000         * i860/i860.c: Ditto.
11001         * i960/i960.c: Ditto.
11002         * ia64/ia64.c: Ditto.
11003         * m32r/m32r.c: Ditto.
11004         * m68hc11/m68hc11.c: Ditto.
11005         * m68k/m68k.c: Ditto.
11006         * m88k/m88k.c: Ditto.
11007         * mips/mips.c: Ditto.
11008         * ns32k/ns32k.c: Ditto.
11009         * pa/pa.c: Ditto.
11010         * pdp11/pdp11.c: Ditto.
11011         * romp/romp.c: Ditto.
11012         * rs6000/rs6000.c: Ditto.
11013         * sh/sh.c: Ditto.
11014         * sparc/sparc.c: Ditto.
11015         * vax/vax.c: Ditto.
11016         * we32k/we32k.c: Ditto.
11017         * doc/tm.texi: Update the manual to match.
11019 2001-07-06  Richard Henderson  <rth@redhat.com>
11021         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
11022         DWARF2_UNWIND_INFO not just whether it is defined.
11024 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
11026         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
11027         call to simplify_binary_operation returns a new pattern.
11029 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11031         * glimits.h (__SHRT_MAX__): New.
11032         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
11033         (SHRT_MAX): Define in terms of __SHRT_MAX__.
11035 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
11037         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
11038         avoid warnings.
11040 2001-07-06  Richard Henderson  <rth@redhat.com>
11042         * bitmap.c (bitmap_release_memory): Move adjacent to the
11043         allocation functions.
11044         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
11045         the implementation.  Binary search for the set bit.
11046         (bitmap_union_of_diff): Allocate the temporary on the stack
11047         instead of using xmalloc.
11049 2001-07-06  Richard Henderson  <rth@redhat.com>
11051         * genrecog.c (validate_pattern): Warn for constraints in
11052         define_{expand,split,peephole2}.  Remove strict_low_part
11053         before looking up match_dup.
11055 2001-07-06  DJ Delorie  <dj@redhat.com>
11057         * doc/gcc.texi (Makefile): Rename to be a more general purpose
11058         chapter about various build hints and history.  Add section
11059         talking about the various types of native and cross builds.
11061 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11063         * Makefile.in (final.o): Depend on target.h.
11064         * final.c: Include target.h.
11065         (default_function_pro_epilogue): New.
11066         (final_start_function): Use target structure for function prologues.
11067         (final_end_function): Use target structure for function epilogues.
11068         * fold-const.c (real_hex_to_f): Constify s and p.
11069         * output.h (default_function_pro_epilogue): New.
11070         * real.h (real_hex_to_f): Update prototype.
11071         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
11072         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
11073         (TARGET_INITIALIZER): Update.
11074         * target.h (gcc_target): Add struct asm_out.
11075         * doc/tm.texi: Update.
11077 config:
11078         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
11079         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
11080         in cpu/cpu.c, or rename old functions consistently.  Take
11081         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
11082         redundant macros and prototypes.  Make new functions static.
11084         * 1750a/1750a.c: Similarly.
11085         * 1750a/1750a.h: Similarly.
11086         * a29k/a29k-protos.h: Similarly.
11087         * a29k/a29k.c: Similarly.
11088         * a29k/a29k.h: Similarly.
11089         * arc/arc-protos.h: Similarly.
11090         * arc/arc.c: Similarly.
11091         * arc/arc.h: Similarly.
11092         * arm/arm-protos.h: Similarly.
11093         * arm/arm.c: Similarly.
11094         * arm/arm.h: Similarly.
11095         * avr/avr-protos.h: Similarly.
11096         * avr/avr.c: Similarly.
11097         * avr/avr.h: Similarly.
11098         * clipper/clipper-protos.h: Similarly.
11099         * clipper/clipper.c: Similarly.
11100         * clipper/clipper.h: Similarly.
11101         * convex/convex.c: Similarly.
11102         * convex/convex.h: Similarly.
11103         * d30v/d30v-protos.h: Similarly.
11104         * d30v/d30v.c: Similarly.
11105         * d30v/d30v.h: Similarly.
11106         * d30v/d30v.md: Similarly.
11107         * dsp16xx/dsp16xx-protos.h: Similarly.
11108         * dsp16xx/dsp16xx.c: Similarly.
11109         * dsp16xx/dsp16xx.h: Similarly.
11110         * elxsi/elxsi.c: Similarly.
11111         * elxsi/elxsi.h: Similarly.
11112         * fr30/fr30.c: Similarly.
11113         * fr30/fr30.md: Similarly.
11114         * h8300/h8300-protos.h: Similarly.
11115         * h8300/h8300.c: Similarly.
11116         * h8300/h8300.h: Similarly.
11117         * i370/i370-protos.h: Similarly.
11118         * i370/i370.c: Similarly.
11119         * i370/i370.h: Similarly.
11120         * i386/i386.c: Similarly.
11121         * i386/osf1elf.h: Similarly.
11122         * i386/osfrose.h: Similarly.
11123         * i860/i860-protos.h: Similarly.
11124         * i860/i860.c: Similarly.
11125         * i860/i860.h: Similarly.
11126         * i960/i960-protos.h: Similarly.
11127         * i960/i960.c: Similarly.
11128         * i960/i960.h: Similarly.
11129         * ia64/ia64-protos.h: Similarly.
11130         * ia64/ia64.c: Similarly.
11131         * ia64/ia64.h: Similarly.
11132         * m32r/m32r-protos.h: Similarly.
11133         * m32r/m32r.c: Similarly.
11134         * m32r/m32r.h: Similarly.
11135         * m68hc11/m68hc11-protos.h: Similarly.
11136         * m68hc11/m68hc11.c: Similarly.
11137         * m68hc11/m68hc11.h: Similarly.
11138         * m68k/crds.h: Similarly.
11139         * m68k/dpx2.h: Similarly.
11140         * m68k/m68k-protos.h: Similarly.
11141         * m68k/m68k.c: Similarly.
11142         * m68k/m68k.h: Similarly.
11143         * m68k/news.h: Similarly.
11144         * m88k/m88k-protos.h: Similarly.
11145         * m88k/m88k.c: Similarly.
11146         * m88k/m88k.h: Similarly.
11147         * mips/mips-protos.h: Similarly.
11148         * mips/mips.c: Similarly.
11149         * mips/mips.h: Similarly.
11150         * ns32k/merlin.h: Similarly.
11151         * ns32k/ns32k.c: Similarly.
11152         * ns32k/ns32k.h: Similarly.
11153         * ns32k/tek6000.h: Similarly.
11154         * pa/pa-protos.h: Similarly.
11155         * pa/pa.c: Similarly.
11156         * pa/pa.h: Similarly.
11157         * pdp11/2bsd.h: Similarly.
11158         * pdp11/pdp11-protos.h: Similarly.
11159         * pdp11/pdp11.c: Similarly.
11160         * pdp11/pdp11.h: Similarly.
11161         * romp/romp-protos.h: Similarly.
11162         * romp/romp.c: Similarly.
11163         * romp/romp.h: Similarly.
11164         * rs6000/rs6000-protos.h: Similarly.
11165         * rs6000/rs6000.c: Similarly.
11166         * rs6000/rs6000.h: Similarly.
11167         * rs6000/sysv4.h: Similarly.
11168         * sh/sh-protos.h: Similarly.
11169         * sh/sh.c: Similarly.
11170         * sh/sh.h: Similarly.
11171         * sparc/sparc-protos.h: Similarly.
11172         * sparc/sparc.c: Similarly.
11173         * sparc/sparc.h: Similarly.
11174         * vax/vax.c: Similarly.
11175         * vax/vax.h: Similarly.
11176         * vax/vms.h: Similarly.
11177         * we32k/we32k.c: Similarly.
11178         * we32k/we32k.h: Similarly.
11180 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
11182         * basic-block.h (first_insn_after_basic_block_note): Declare.
11183         * flow.c (first_insn_after_basic_block_note): Define.  Moved
11184         from...
11185         * ssa.c (first_insn_after_basic_block_note): Remove.
11186         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
11187         necessary.
11188         (ssa_eliminate_dead_code): Properly update the CFG and PHI
11189         nodes when we find a dead conditional branch.  Insert BARRIERs
11190         after any blocks with no successors, but which do not have
11191         any BARRIERs.
11193 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
11195         * varray.c (varray_check_failed): Use internal_error.
11197 2001-07-05  Andrew Haley  <aph@redhat.com>
11199         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
11200         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
11201         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
11203 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
11205         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
11206         reference if the target constant is also a SYMBOL_REF.
11208 2001-07-05  Eric Christopher  <echristo@redhat.com>
11210         * config/mips/mips.h (MASK_MIPS3900): Remove.
11211         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
11212         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
11213         (TARGET_MIPS3900): Change to use mips_arch.
11214         (TARGET_MIPS4000): New.
11215         (TARGET_MIPS4100): New.
11216         (TARGET_MIPS4300): New.
11217         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
11218         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
11219         for -mipsX.
11220         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
11221         (ISA_HAS_BRANCHLIKELY): To here.
11222         (CC1_CPU_SPEC):  New.
11223         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
11224         (mips_arch_string): Declare.
11225         (mips_arch): Declare.
11226         (TARGET_OPTIONS): Add -march and -mtune.
11228         * config/mips/mips.c (mips_arch_string): New.
11229         (mips_arch): New.
11230         (override_options): Handle -march for codegen and -mtune
11231         for scheduling. Use mips_arch. Move tx39 target default here.
11232         (mips_parse_cpu): Move error message to override_options.
11234         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
11236         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
11238         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
11239         (MIPS Options): Ditto.  Change mcpu entry to historical text.
11241 2001-07-05  H.J. Lu  (hjl@gnu.org)
11243         * config/mips/mips.c (mips_parse_cpu): New function to parse
11244         -march=*/-mcpu=*.
11246 2001-07-05  Jim Wilson  <wilson@redhat.com>
11248         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
11249         * config/ia64/t-ia64: Likewise.
11250         (LIB1ASMFUNCS): Update comment.
11252 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
11254         * doc/install.texi (Install GCC: Binaries): Fix typo.
11256 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11258         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
11259         reference using the stack pointer, adjust it since we push Y
11260         temporarily.
11261         ("*ashrsi3"): Likewise.
11262         ("*lshrsi3"): Likewise.
11264 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11266         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
11267         when -fomit-frame-pointer is used.
11269 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
11271         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
11272         (try_redirect_by_replacing_jump): Reverse updating properly the
11273         count and frequency information.  Reverse removing cc0 setter.
11274         (forwarder_block_p): Reverse fixing for fallthru blocks.
11276 2001-07-05  DJ Delorie  <dj@redhat.com>
11278         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
11279         (translate_options): If the above is defined, use it to map
11280         given options to new options.
11281         * doc/tm.texi: Document it.
11283 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
11284             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11286         * doc/invoke.texi (Optimize Options): Document that -fgcse may
11287         cause programs using computed gotos to run more slowly.
11289 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11291         * doc/install.texi (Specific): Markup, spelling and typo fixes.
11292         Fixed sorting.
11293         Consistently require binutils 2.11.2, not prereleases.
11294         (Specific, decstation-*): Canonicalize as mips-dec-*.
11295         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
11296         always necessary.
11297         (Specific, m68k-altos): Removed reference to README.altos, deleted.
11298         (Specific, mips-*): Reword MIPS C compiler requirements.
11299         (Specific, powerpc*-*-*): New, mention --with-cpu once.
11300         (Specific, sunv5): Removed, obsolete.
11302 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11304         * dwarf2out.c (output_loc_list): Use an all ones mask for
11305         .text asm output and don't rely on long long
11306         literals. Reformat some long lines.
11308 2001-07-05  Andreas Jaeger  <aj@suse.de>
11310         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
11311         section.
11313 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11315         * dwarf2out.c (dwarf2out_define): Update comment.
11316         (dwarf2out_undef): Ditto.
11317         (dwarf2out_start_source_file): Ditto.
11318         (dwarf2out_end_source_file): Ditto.
11319         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
11320         since we never call the start/end debug hook for the primary file.
11322 2001-07-04  Kazu Hirata  <kazu@hxi.com>
11324         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
11325         from shll.
11327 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11329         * cppinit.c (remove_dup_dirs): Inform if a system include
11330         directory is being reordered.
11331         * doc/invoke.texi (Directory Options): GCC warns if you hide a
11332         system include.
11333         * doc/cpp.texi (Search Paths): Likewise.
11334         * doc/gcc.texi (Interoperation): Remove information about
11335         -I/usr/include.
11337 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11339         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
11340         (VARRAY_TOP_CHAR_PTR): Likewise.
11342 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11344         * gcc.c (process_command): Don't assign elements of a const char*.
11346 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11348         * emit-rtl.c (change_address): Don't abort if invalid address while
11349         reload is in progress.
11351 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11353         * c-lex.c (cb_file_change): Pass line number to
11354         debug_start_source_file.
11355         (cb_undefine): Pass correct line number to debug_undef.
11357         * toplev.c (debug_start_source_file): Add line number to
11358         parameters. Pass it along to dwarf2out_start_source_file.
11359         (decode_g_option): Stop resetting debug level back to normal when
11360         we change debug formats, unless the current level is
11361         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
11362         3).
11364         * toplev.h (debug_start_source_file): Add line number to
11365         parameters.
11367         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
11368         parameters.
11370         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
11371         parameters.
11372         Output debug_macinfo data for starting file if requested.
11373         (dwarf2out_end_source_file): Output debug_macinfo data for ending
11374         file if requested.
11375         (dwarf2out_define): Output debug_macinfo data for defining a macro
11376         if requested.
11377         (dwarf2out_undef): Output debug_macinfo data for undefining a
11378         macro if requested.
11379         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
11380         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
11381         (macinfo_section_label): New. DWARF2 macro info section label.
11382         (dwarf2out_init): If we want macro info, output the start label
11383         for the section.
11384         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
11385         attribute to the compilation unit die pointing to the macro info.
11387 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11389         * dwarf2out.c (new_loc_list): Move to inside #ifdef
11390         DWARF2_DEBUGGING_INFO.
11391         (add_loc_descr_to_loc_list): Ditto.
11392         (output_loc_list): Ditto.
11393         Also, fix thinko in curr not being initialized.
11394         (gen_internal_sym): Ditto.
11396 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11398         * emit-rtl.c (replace_equiv_address): New function.
11399         * expr.h (replace_equiv_address): New declaration.
11400         * explow.c (validize_mem): Call it instead of change_address and
11401         also call if -fforce-addr and address is constant.
11402         * expr.c: Replace more calls to change_address with adjust_address
11403         and/or replace_equiv_address or to validize_mem.
11404         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
11405         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
11406         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11407         * config/i370/i370.md, config/i860/i860.md: Likewise.
11408         * config/i960/i960.md, config/mips/mips.c: Likewise.
11409         * config/mips/mips.md, config/pa/pa.md: Likewise.
11410         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
11411         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
11413 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11415         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
11417         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
11418         function.
11420 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11422         * doc/include: New directory.
11423         * doc/fdl.texi: Move to doc/include/fdl.texi.
11424         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
11425         * doc/include/funding.texi, doc/include/gpl.texi: New files.
11426         * doc/gcc.texi: Use funding.texi and gpl.texi.
11427         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
11428         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
11429         Update dependencies and use -I $(docdir)/include.
11431 2001-07-04  Anthony Green  <green@redhat.com>
11433         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
11435 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11437         * doc/install.texi (sparc64-*-*): Remove garbage.
11439 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
11441         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
11442         Fix typo in last change to use adjust_address.
11444 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11446         * doc/install.texi (Specific): Update information for *-*-solaris*.
11448 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11450         * explow.c (plus_constant_wide): Reinitialize Y for restart.
11452 2001-07-03  Stan Shebs  <shebs@apple.com>
11454         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
11455         case for flag_no_mach_text_sections.
11456         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
11457         * config/darwin.c (flag_no_mach_text_sections): Remove.
11458         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
11460 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11462         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
11463         and avoid checking for constant as first operand.
11464         * recog.c (find_constant_term_loc): No longer static.
11465         (adj_offettable_operand): Delete.
11466         * rtl.h (adj_offsettable_operand): Delete declaration.
11467         (find_constant_term): Add declaration.
11468         * caller-save.c: Replace calls to adj_offsettable_operand with calls
11469         to adjust_address.
11470         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
11471         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
11472         * config/i386/i386.c, config/i386/i386.md: Likewise.
11473         * config/i860/i860.c, config/i960/i960.c: Likewise.
11474         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
11475         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
11476         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
11477         * config/mips/mips.c, config/mips/mips.md: Likewise.
11478         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
11479         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
11480         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
11481         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
11482         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
11483         * config/ns32k/ns32k.md: Likewise.
11485 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
11487         * rtl.c (copy_rtx): Handle 'T' format letter.
11488         * gensupport.c (collect_insn_data): Likewise.
11489         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
11491 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
11493         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
11494         -B option.  Use 'dir' not 'foo' as example directory name.
11496 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11498         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11499         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
11501 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11503         * doc/cppinternals.texi: Improve formatting and logical markup.
11505 2001-07-03  Andreas Jaeger  <aj@suse.de>
11507         * Makefile.in (insn-recog.o): Add dependency on reload.h.
11509         * genrecog.c (write_header): Include reload.h for prototypes in
11510         insn-recog.c.
11512 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11514 config:
11515         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
11516         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11517         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
11518         i386_pe_valid_type_attribute_p): Add.
11519         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
11520         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
11522 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11524         * explow.c (plus_constant_wide, case LO_SUM): New case.
11525         (plus_constant_for_output_wide): Delete.
11526         * rtl.h (plus_constant_for_output): Delete.
11527         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
11528         instead of plus_constant_for_output.
11529         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
11530         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
11531         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
11532         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
11533         * config/sparc/sparc.md: Likewise.
11534         Convert some change_address calls to adjust_address.
11536 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11538         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
11539         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
11540         documentation of -std and -Wwrite-strings.
11542 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11544         * cse.c (canon_hash): Don't register registers in very small
11545         register classes, as extending their lifetime might cause
11546         reload to fail.
11548 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11550         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
11552         * flow.c (forwarder_block_p): Fix for fallthru blocks.
11553         (try_redirect_by_replacing_jump): Update properly the count
11554         and frequency information.
11556 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
11558         * toplev.c (dump_file_index): Move SSA dumps just after first
11559         jump dump.
11560         (dump_file): Corresponding changes.
11561         (rest_of_compilation): Move SSA path to just after the first
11562         jump pass.
11563         * doc/gcc.texi (Passes): Update due to movement of SSA path.
11564         * doc/invoke.texi: Update dump file #s as they were completely
11565         out of date with reality.
11567 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11569         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
11571         * expr.c (emit_move_insn_1): Deal with non-default
11572         STACK_PUSH_CODE.
11574         * expr.c (emit_single_push_insn): Fix warning.
11576 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11578         * expr.c (emit_move_insn_1): Avoid modifying
11579         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
11581 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11583         * emit-rtl.c (adjust_address): New function.
11584         * expr.h (adjust_address): Add declaration.
11585         * builtins.c: Replace some calls to change_address with calls to it
11586         or to validize_mem.
11587         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
11588         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
11589         * config/arm/arm.c, config/convex/convex.c: Likewise.
11590         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11591         * config/i386/i386.c, config/i386/i386.md: Likewise.
11592         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
11593         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
11594         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
11595         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
11596         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
11598 2001-07-02  Jim Wilson  <wilson@redhat.com>
11600         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
11602 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
11604         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
11605         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
11607 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11609         * cppinit.c (lang_defaults): New table.
11610         (set_lang): Just read from lang_defaults into the live options
11611         structure.
11613 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11615         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
11616         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
11617         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
11619 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11621         * doc/install.texi: Various spelling and markup fixes.
11622         (Installing GCC): Component specific installation instructions are
11623         gone.
11624         Fix reference.
11625         Warn about removing old install dir in the presence of shared libs.
11626         (Configuration): Invoke with options target to match configure
11627         --help.
11628         Consistently refer to gas, gld pathnames.
11629         Invert --enable-multilib documentation.
11630         Remove references to old compiler versions.
11632 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11634         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
11636 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11638         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
11639         section.
11640         (Specific, mips*-sgi-irix5): Note IDO download.
11641         Reworded MIPS C hints.
11642         Use GNU as instead of GAS.
11643         Markup fixes.
11644         Removed SGI Freeware reference, IRIX 6 only.
11645         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
11646         Note N64 library requirement/workaround.
11647         Update O32 hints.
11648         Complete list of structure passing bug victims.
11650 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11652         * doc/install.texi: Remove CVS Id.
11654 2001-07-02  Andreas Jaeger  <aj@suse.de>
11656         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
11657         (find_inherently_necessary): Remove unused variable.
11659 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
11661         * c-common.h (TDI_inlined): New ast dump phase.
11662         (dump_flag_name): New function.
11663         * c-dump.c (dump_files): Add inlined phase.
11664         (dump_flag_name): Define.
11665         * doc/invoke.texi (-fdump-ast-inlined): Document.
11667 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11669         * stor-layout.c (layout_decl): Revert change to handling of alignment
11670         in packed types.
11672 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11674         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
11675         for FIELD_DECL.
11677 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
11679         * doc/tm.texi (FUNCTION_ARG): Document that the last call
11680         is special.
11682 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11684         * tlink.c (recompile_files): Remove COMPILER_PATH and
11685         LIBRARY_PATH from the environment.
11687 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
11689         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
11690         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
11691         enumerators.
11692         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
11694         * c-parse.in (OBJC_STRING): Kill.
11695         (objc_string): Decompose to [objc_string] '@' STRING.
11696         (reswords): Take the leading '@' off all the Objective C keywords.
11697         (objc_rid_sans_at): Kill.
11698         (init_reswords): Don't initialize it.
11699         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
11700         (_yylex): Kill reconsider label.  Look ahead one token after
11701         an '@'; if we get an identifier, check whether it's an
11702         Objective C @-keyword.  If so, return the keyword.  Otherwise,
11703         put back the token and return the '@' as a terminal.
11705         * cpplib.c (lex_macro_node): Remove unnecessary check for
11706         leading '@' on identifier.  Clarify control flow and commentary.
11708 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11710         * cse.c (new_label_ref): Variable deleted.
11711         (insert): Remove set of new_label_ref.
11712         (check_for_label_ref): New function.
11713         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
11715 See ChangeLog.5 for earlier changes.