* alias.c (can_address_p): No longer static.
[official-gcc.git] / gcc / ChangeLog
blobc65ba8075aafa482fa72365311bd234eaaa46591
1 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3         * alias.c (can_address_p): No longer static.
4         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
5         Return 0 if all parameters are default values.
6         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
7         (adjust_address_1): Try harder to compute a size.
8         * expr.c (expand_assignment, store_constructor): If can't address,
9         set MEM_KEEP_ALIAS_SET_P.
10         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
11         (store_field): Likewise.
12         (store_constructor): Simplify call to store_constructor_field.
13         * expr.h (can_address_p): New declaration.
14         * gensupport.c (gen_rtx_CONST_INT): New function.
15         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
16         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
17         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
19         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
21 2001-10-24  Christopher Faylor  <cgf@redhat.com>
23         * config/i386/cygwin.h: Use proper path for mingw crt files when
24         -mno-cygwin.
26 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28         * dwarf2out.c (file_info_cmp): Always return consistent results.
30 2001-10-24  Roger Sayle <roger@eyesopen.com>
32         * stmt.c (expand_end_case): Index jumptables from zero for
33         suitably small values of minval.
35 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
37         * stor-layout.c (place_union_field): If any field was aligned with
38         attribute aligned, set record type's TYPE_USER_ALIGN.
39         (place_field): Likewise.
40         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
41         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
43 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
45         * c-common.h (struct c_common_identifier): Remove rid_code field.
46         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
48         * c-typeck.c (constructor_designated): New local flag.
49         (struct constructor_stack): Add "designated" field to match.
50         (start_init): Clear it.
51         (really_start_incremental_init, push_init_level): Push and
52         clear it.
53         (pop_init_level): Pop it.
54         (set_designator): Set it.
56         (pop_init_level): Suppress "missing initializer" warnings if
57         constructor_designated is true.
58         (process_init_element): Suppress warning about union
59         initialization under traditional C, if constructor_designated
60         is true.
62 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
64         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
65         change.
67 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
69         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
71 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
73         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
74         the node was already a set to a constant.
76 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
78         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
79         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
81 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
83         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
84         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
85         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
86         * s390.c (s390_final_chunkify): Don't use string concatenation.
87         (s390_function_prologue, s390_function_epilogue): Const-ify.
88         * s390.h (FUNCTION_PROFILER): Remove unused variable.
90 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
92         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
93         prototypes.
95 2001-10-23  Stan Shebs  <shebs@apple.com>
97         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
98         -traditional-cpp in first-stage compilation.
100 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
102         * gensupport.c (target_flags): Add.
104 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
106         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
107         if needed.
108         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
109         * except.c (expand_builtin_frob_return_addr): Likewise.
110         (expand_builtin_eh_return): Likewise.
111         * stmt.c (expand_computed_goto): Likewise.
112         * explow.c (memory_address): Likewise.
113         (allocate_dynamic_stack_space): Clean up predicate testing.
114         (probe_stack_range): Convert SIZE to Pmode.
115         * calls.c (rtx_for_function_call): Only call convert_memory_address
116         if needed.
117         Pass function call operand as ptr_mode, not Pmode.
118         * expr.c (expand_assignment): Clean up calls to convert_memory
119         address by only doing so when needed and making offsets Pmode.
120         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
121         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
122         is in Pmode, not ptr_mode.
124 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
126         * darwin-protos.h (constructor_section, destructor_section,
127         mod_init_section, mod_term_section): Prototype.
128         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
129         Const-ify.
130         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
131         Likewise.
132         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
133         objc_section_init declaration.
134         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
135         (objc_section_init, try_section_alias): Make static.
136         (alias_section): Make static and hide unused function.
137         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
139 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
141         * alias.c (can_address_p): Compnonents are not addressable if
142         the containing type has alias set 0.
143         (get_alias_set): Rework to use STRIP_NOPS.
144         Only call front-end routine on object, type, or object with
145         NOPs stripped, not inner values.
146         Use language hook to call front-end routine.
147         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
148         (expand_builtin_apply): Call set_mem_align on MEMs we make.
149         Don't pass alignment to emit_block_move.
150         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
151         (expand_builtin_memset): Likewise, but for clear_storage.
152         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
153         and remove C++ specific parts.
154         * c-common.h (c_common_get_alias_set): Add declaration.
155         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
156         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
157         (save_fixed_argument_area): Call set_mem_align.
158         Remove alignment in call to emit_block_move.
159         (emit_library_call_value_1, store_one_arg): Likewise.
160         (target_for_arg): Remove; disabled long ago.
161         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
162         once and similar cleanups.
163         (offset_address): Use proper introductory comment.
164         * expr.c (emit_block_move): Use alignment from that of MEM args, not
165         from explicit operand; all callers changed.
166         (clear_storage): Likewise.
167         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
168         (store_field): Remove kludge on alias set used for to_rtx.
169         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
170         (expand_expr_unaligned): Call set_mem_attributes instead of
171         set_mem_alias_set.
172         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
173         * function.c (assign_stack_temp_for_type): Set MEM alignment.
174         (expand_function_end): Track MEM attributes of trampolines.
175         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
176         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
177         attributes from original.
178         * langhooks.c (lang_hook_default_get_alias_set): New function.
179         (hook_get_alias_set_0): New function.
180         * langhooks.h (hook_get_alias_set_0): New declaration.
181         (lang_hook_default_get_alias_set): Likewise.
182         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
183         * reload1.c (alter_reg): Use adjust_address_nv.
184         * rtl.c (get_mode_alignment): Moved to here.
185         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
186         change default if unknown from 1 to BITS_PER_UNIT.
187         * stor-layout.c (get_mode_alignment): Remove from here.
188         * toplev.h (struct lang_hoks): Add get_alias_set field.
189         * tree.h (lang_get_alias_set): Delete declaration.
190         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
191         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
192         (ix86_va_arg): Likewise.
193         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
194         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
195         * config/sparc/sparc.c (sparc_va_arg): Likewise.
196         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
197         (expand_block_move_mem): Remove dead code.
199 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
201         * c-common.c (warn_div_by_zero): New.
202         * c-common.h (warn_div_by_zero): New.
203         * c-decl.c (c_decode_option): Take it on the command line.
204         * c-typeck.c (build_binary_op): Warn about division by zero.
205         * doc/invoke.texi: Document the new command line option, fix
206         documentation of -Wmultichar.
207         * testsuite/gcc.dg/divbyzero.c: New tests.
208         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
210 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
212         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
214         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
215         to avoid update_life_info call.
216         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
217         * cfgcleanup.c (bb_flags): New enum.
218         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
219         (notice_new_block, update_forwarder_flag): New functions.
220         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
221         (try_forward_edges): Likewise; update flags.
222         (merge_blocks): Likewise.
223         (outgoing_edges_match): Likewise.
224         (try_crossjump_to_edge): Likewise.
225         (try_optimize_cfg): Likewise; initialize and clear the flags;
226         recompute life info if needed.
227         (cleanup_cfg): No need to clear aux pointers.
229 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
231         * config/i386/i386.c (override_options): Default to minimum
232         stack alignment when optimizing for code size.
233         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
234         change.
236         * config/i386/i386.c (override_options): Set upper limit of
237         -mpreferred-stack-boundary to 12.
239 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
241         * recog.c (peephole2_optimize): Add default case to switch.
243 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
245         * doc/gcc.texi (Sending Patches): Remove.
247 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
249         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
250         fields when comparing.
252 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
254         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
255         * arm.c (HOST_INT, HOST_UINT): Likewise.
257 2001-10-22  Stan Shebs  <shebs@apple.com>
259         * config/darwin-protos.h (darwin_exception_section): Declare.
260         (darwin_eh_frame_section): Declare.
262 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
264         * i386.md (movti_rex64): Fix mode.
266 2001-10-22  Stan Shebs  <shebs@apple.com>
268         * target.h (struct gcc_target): Add asm_out.exception_section,
269         asm_out.eh_frame_section.
270         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
271         (TARGET_ASM_EH_FRAME_SECTION): New.
272         (TARGET_INITIALIZER): Update.
273         * output.h (default_exception_section): Declare.
274         (default_eh_frame_section): Declare.
275         * dwarf2out.c: Include target.h.
276         (output_call_frame_info): Call target hook for eh frames.
277         (default_eh_frame_section): New function.
278         * except.c: Include target.h.
279         (output_function_exception_table): Call target hook for exception
280         section.
281         * varasm.c (default_exception_section): Rename from
282         exception_section, remove EXCEPTION_SECTION macro.
284         * config/darwin.h (darwin_eh_frame_section): New function.
285         (EXCEPTION_SECTION): Remove.
286         (TARGET_ASM_EXCEPTION_SECTION): Define.
287         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
288         (nextstep_exception_section): New function.
289         (nextstep_eh_frame_section): New function.
290         (TARGET_ASM_EXCEPTION_SECTION): Define.
291         (TARGET_ASM_EH_FRAME_SECTION): Define.
293         * config/pa/som.h (EXCEPTION_SECTION): Remove.
294         (TARGET_ASM_EXCEPTION_SECTION): Define.
295         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
296         (EXCEPTION_SECTION): Remove.
297         (TARGET_ASM_EXCEPTION_SECTION): Define.
298         * config/stormy16/stormy16.h: Remove comments referencing
299         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
301         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
302         TARGET_ASM_EH_FRAME_SECTION.
304 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
306         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
307         terms.
309         * c-format.c: Fix spelling typo in comment.
311         * sched-int.h: Fix typo in GCC preamble.
313 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
315         PR debug/4252
316         * doc/invoke.texi: Remove references to -fdump-translation-unit.
318 2001-10-22  Richard Henderson  <rth@redhat.com>
320         * config/i386/i386.c (ix86_expand_clear): New.
321         * config/i386/i386-protos.h: Declare it.
322         * config/i386/i386.md (setcc peep2s): Use it.
323         (movsi_xor): Unexport.
325 2001-10-22  Richard Henderson  <rth@redhat.com>
327         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
328         free_EXPR_LIST_list for LOG_LINKS.
330 2001-10-21  Robert Lipe  <robertlipe@usa.net>
332         * config/i386/i386.c (sco_asm_named_section): Delete.
333         (sco_asm_out_constructor): Delete.
334         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
335         (ASM_OUTPUT_DOUBLE_INT): Likewise.
336         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
337         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
338         (EXCEPTION_SECTION): Delete EH scn renaming hack.
340 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
342         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
343         and/or fold extra calls into fewer ones.
344         * collect2.c (dump_file): Likewise.
345         * cppexp.c (parse_number): Likewise.
346         * cpplex.c (_cpp_lex_direct): Likewise.
347         * final.c (output_asm_insn, asm_fprintf): Likewise.
348         * fix-header.c (inf_scan_ident, main): Likewise.
349         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
350         Likewise.
351         * fold-const.c (real_hex_to_f): Likewise.
352         * gen-protos.c (parse_fn_proto): Likewise.
353         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
354         * genrecog.c (change_state, write_action): Likewise.
355         * gensupport.c (shift_output_template): Likewise.
356         * local-alloc.c (requires_inout): Likewise.
357         * mips-tfile.c (IS_ASM_IDENT): Likewise.
358         * protoize.c (is_id_char, main): Likewise.
359         * real.c (asctoeg): Likewise.
360         * recog.c (asm_operand_ok): Likewise.
361         * reload.c (find_reloads): Likewise.
362         * scan.c (scan_identget_token): Likewise.
363         * sched-vis.c (print_value): Likewise.
364         * stringpool.c (ggc_alloc_string): Likewise.
365         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
366         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
367         * tradcpp.c (rescan): Likewise.
368         * tree.c (clean_symbol_name): Likewise.
369         * varasm.c (decode_reg_name): Likewise.
371         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
372         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
373         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
374         * m88k.c (output_ascii): Likewise.
375         * m88k.h (OVERRIDE_OPTIONS): Likewise.
376         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
377         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
378         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
380 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
382         * langhooks.c (lang_hook_default_do_nothing,
383         lang_hook_default_decode_option): New defaults.
384         * langhooks.h: Make hooks unconditional and non-NULL.
385         * toplev.c (compile_file, toplev_main): Update.
386         * toplev.h: Update comments.
387         * objc/objc-act.c (lang_hooks): Update to new paradigm.
389 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
391         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
393         * system.h (IN_RANGE): New macro.
395 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
397         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
398         INTLDEPS variable, which does not include $LIBICONV.
399         * Makefile.in: Use INTLDEPS in LIBDEPS.
400         * configure: Regenerate.
402 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
404         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
405         * cpplex.c (lex_percent, lex_dot): Remove.
406         (get_effective_char, skip_block_comment, skip_line_comment,
407         parse_identifier_slow, parse_number, parse_string, save_comment,
408         _cpp_lex_direct): Update to do lookback freely.
409         (IF_NEXT_IS, BACKUP): New macros.
410         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
411         * cppmacro.c (paste_tokens): Update.
413 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
415         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
417 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
419         * reload1.c (reload): Check CONSTANT_P before calling
420         LEGITIMATE_PIC_OPERAND_P.
421         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
422         workaround of 2001-10-13.
424 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
426         * i386.c (split_di): Handle splitting of DFmode.
428 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
430         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
431         (adjust_address_1, offset_address): Likewise.
433         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
434         (output_asm_insn): Call it for each line output.
435         Don't record an operand more than once.
437         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
438         * main.c: Include config.h and system.h, but not ansidecl.h.
439         * Makefile.in (main.o): Update accordingly.
441 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
443         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
445 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
447         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
448         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
449         Break out from ...
450         (find_sub_basic_blocks): ... here;
451         (find_many_sub_basic_blocks): New.
452         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
454         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
456         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
458         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
460         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
461         * flow.c (update_life_info): Measure time.
462         * c-decl.c: Include timevar.h
463         (c_expand_body): Measure time.
464         * toplev.c (rest_of_compilation): Measure time of mode switching
465         separately.
466         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependancy.
468         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
469         (lang_independent_options): Add asynchronous-unwind-tables
470         (toplev_main): flag_asynchronous_unwind_tables implies
471         flag_unwind_tables.
472         * flags.h (flag_asynchronous_unwind_tables): Declare.
473         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
474         flag_asynchronous_unwind_tables.
475         (output_call_frame_info): Likewise.
476         * invoke.texi (-fasynchronous-unwind-tables): Document.
477         * i386.c (optimization_options): Enable
478         flag_asynchronous_unwind_tables.
480         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
481         * i386.md (s* expanders): Destination is QImode.
483         * toplev.c (rest_of_compilation): Do not call clear_log_links.
484         * rtl.h (clear_log_links): Kill.
485         * flow.c (clear_log_links): Make static; accept blocks parameter;
486         do no clear life info.
487         (update_life_info): Call clear_log_links.
489         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
491 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
493         * cpplex.c (handle_newline, skip_escaped_newlines,
494         get_effective_char, skip_block_comment, skip_line_comment,
495         parse_identifier_slow, parse_number, parse_string,
496         _cpp_lex_direct): Update to do more stepping back.
497         (trigraph_ok): Similarly.  Rename trigraph_p.
498         (SAVE_STATE, RESTORE_STATE): Remove.
499         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
501         * cpplib.c (destringize): Rename destringize_and_run, and
502         call run_directive directly.
503         (_cpp_do__Pragma): Simplify.
505 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
507         * pe.c (arm_pe_unique_section): Const-ify.
508         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
509         (switch_to_section): Add static prototype.
511         * output.h (drectve_section): Prototype.
513 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
515         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
516         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
517         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
518         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
519         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
520         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
521         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
522         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
523         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
524         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
525         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
526         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
527         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
528         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
529         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
530         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
531         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
532         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
533         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
534         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
535         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
536         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
537         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
538         cris-*-none, cris-*-linux*: Update ${tmfile} list.
539         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
540         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
541         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
542         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
543         v850-*-*): Delete superflous ${cpu_type} setting.
544         * config/linux.h: Delete svr4.h include.
545         (SET_ASM_OP): Delete.
546         * config/netware.h (INT_ASM_OP): Undef before define.
547         * config/ptx4.h: Delete elfos.h include.
548         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
549         * config/svr4.h: Delete elfos.h include. Update commentary.
550         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
551         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
552         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
553         config/v850/v850.h: Delete svr4.h include.
554         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
555         config/m68k/m68kv4.h, config/m88k/sysv4.h,
556         config/sparc/sysv4.h: Update includes.
557         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
558         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
559         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
560         config/m88k/dguxbcs.h: Delete includes.
561         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
562         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
563         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
564         it.
565         * config/m88k/dgux.h: Delete include.
566         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
567         defining it.
568         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
569         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
570         * config/sh/elf.h: Update include.
571         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
572         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
574 2001-10-19  Catherine Moore  <clm@redhat.com>
576         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
577         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
578         base and count fields.
579         (stormy16_expand_builtin_va_start):  last_reg_count changed to
580         size_of_reg_args.  Use count + size in first comparison.
582 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
584         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
585         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
586         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
587         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
588         Set alignment from type if INDIRECT_REF.
589         (adjust_address_1, offset_address): Simplify alignment compuitation.
590         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
591         here; done by set_mem_attributes.
593 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
595         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
596         * arm-protos.h (rdata_section, zero_init_section, common_section):
597         Prototype.
598         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
599         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
600         traditional mode stringification.
601         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
602         in macros controling its use.
603         * rtlanal.c: Include tm_p.h.
604         * varasm.c (asm_output_aligned_bss): Mark parameter with
605         ATTRIBUTE_UNUSED.
606         (assemble_constant_align, assemble_start_function, assemble_align,
607         assemble_variable, assemble_trampoline_template,
608         output_constant_def_contents): Wrap potentially empty if-stmt body
609         in brackets.
611 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
613         * a29k-protos.h (literal_section): Prototype.
614         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
615         * a29k.md: Ensure function pointers are prototyped.
616         * genattrtab.c (write_eligible_delay): Mark parameter with
617         ATTRIBUTE_UNUSED.
619 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
621         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
622         * 1750a.c (print_operand): Fix format specifier warning.
623         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
624         * 1750a.md: Likewise.
625         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
626         * genemit.c (output_add_clobbers): Mark parameter with
627         ATTRIBUTE_UNUSED.
628         * genrecog.c (write_subroutine): Likewise.
629         * integrate.c (expand_inline_function): Delete unused variable.
630         * varasm.c (remove_from_pending_weak_list): Wrap with
631         ASM_WEAKEN_LABEL.
633 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
635         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
636         field is different to previous argument's neg field.
638         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
640 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
642         * final.c (get_decl_from_op): New function.
643         (output_asm_insn): Call it; write "*" when item with decl is address.
645 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
647         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
648         about 64-bit support from the 3.0_branch version.
650 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
652         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
653         USE_INCLUDED_LIBINTL when appropriate.
654         * configure, config.in: Regenerate.
655         * Makefile.in (datadir): Set to @datadir@.
656         (intl.o): Also depend on $(CONFIG_H) and system.h.
658         * intl.c: Factor out common gettext initialization sequence.
659         (gcc_init_libintl):  New function.
660         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
661         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
662         off NLS.  Add multiple include guard.  No need to #ifdef-guard
663         an #undef.  Prototype gcc_init_libintl here.
665         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
666         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
667         Use gcc_init_libintl.
669 2001-10-19  Catherine Moore  <clm@redhat.com>
671         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
673         * config/stormy16/stormy16.c (stormy16_split_move):  Make
674         sure that REG_INC notes are present for auto_inc operands.
676 2001-10-19  Andreas Jaeger  <aj@suse.de>
678         * configure: Regenerated.
679         * configure.in: Add x86_64 to switch statements.
681 2001-10-18  Richard Henderson  <rth@redhat.com>
683         * config/alpha/alpha.md (sibcall_osf_1): Load destination
684         address into $27 explicitly.
685         (sibcall_value_osf_1): Likewise.
687 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
689         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
690         (offset_address): New function.
691         (free_emit_status): Free regno_decl.
692         (init_emit): Pass proper number of elements to xcalloc.
693         Allocate regno_decl.
694         (mark_emit_status): Mark regno_decl values.
695         * expr.c (highest_pow2_factor): New function.
696         (expand_assigment): Use it and offset_address.
697         Properly handle ptr_mode vs. Pmode in offset calculation.
698         (store_constructor, expand_expr_unaligned): Likewise.
699         (expand_expr, case COMPONENT_EXPR): Likewise.
700         * expr.h (offset_address): New decl.
701         * function.h (struct emit_status): Add regno_decl.
702         (REGNO_DECL): New macro.
703         * final.c (output_asm_name): Move in file and don't conditionalize
704         on flag_print_asm_name.
705         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
706         Output names of operands, if known.
707         * function.c (assign_parms): Set REGNO_DECL.
708         * integrate.c (integrate_decl_tree): Likewise.
709         * stmt.c (expand_decl): Likewise.
710         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
712 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
714         * attribs.c (handle_noinline_attribute): New function.
715         (handle_used_attribute): Likewise.
716         (c_common_attribute_table): Added noinline and used.
717         * doc/extend.texi (Function Attributes): Document them.
718         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
719         Warn when merging inline with attribute noinline.
720         (start_decl, start_function): Warn if inline and attribute
721         noinline appear in the same declaration.
723 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
725         * config.gcc: Update c4x and i370 for C front end-specific
726         dependencies.
727         * config/c4x/c4x-c.c: New.
728         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
729         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
730         New declarations.
731         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
732         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
733         Make extern.
734         (c4x_init_pragma): Remove.
735         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
736         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
737         c4x_pr_ignored): Move to c4x-c.c.
738         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
739         * config/c4x/t-c4x: Update.
740         * config/i370/i370-c.c: New.
741         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
742         (i370_pr_map): Move to i370-c.c.
743         * config/i370/t-i370: New.
745         * doc/tm.texi: Update.
747 2001-10-17  Stan Shebs  <shebs@apple.com>
749         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
750         typo fixes throughout.
751         (machopic_output_stub): Remove some dead code.
753 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
755         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
756         leak.
758 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
760         * Makefile.in (print-rtl.o): Depend on TREE_H.
761         * alias.c (get_alias_set): Make two passes over objects to first
762         see if inner object is access via restricted pointer.
763         Defer allocating alias set for restricted pointer until here.
764         Call find_placeholder with second arg nonzero.
765         Minor cleanups.
766         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
767         set for restricted pointer types.
768         * emit-rtl.c (set_mem_attributes): Set more attributes.
769         (set_mem_align, change_address, adjust_address_1): New functions.
770         (change_address_1): Now static.
771         (adjust_address, adjust_address_nv): Deleted.
772         (replace_equiv_address): Call change_address_1.
773         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
774         (find_placeholder): Get starting point from PLIST arg.
775         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
776         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
777         (adjust_address, adjust_address_nv): New macros.
778         * print-rtl.c (tree.h): New include.
779         (print_rtx, case MEM): Print all memory attributes.
781 2001-10-17  Richard Henderson  <rth@redhat.com>
783         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
785 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
787         * c-tree.texi: Eliminate duplicated word.
788         * cpp.texi: Likewise.
789         * install.texi: Likewise.
790         * invoke.texi: Likewise.
791         * tm.texi: Likewise.
793 2001-10-17  Michael Collison  <collison@isisinc.net>
795         * dsp16xx.c: Fix comment formatting to match GNU standards.
796         (dsp16xx_output_function_prologue): Change type of 'size'
797         parameter from 'int' to HOST_WIDE_INT.
798         (dsp16xx_output_function_epilogue): Change type of 'size'
799         parameter from 'int' to HOST_WIDE_INT.
801 2001-10-16  Richard Henderson  <rth@redhat.com>
803         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
804         * configure, config.in: Rebuild.
806         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
807         (ix86_output_addr_diff_elt): New.
808         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
809         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
810         (JUMP_TABLES_IN_TEXT_SECTION): New.
811         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
812         * config/i386/i386-protos.h: Update.
814         * config/i386/386bsd.h, config/i386/beos-elf.h,
815         config/i386/freebsd-aout.h, config/i386/freebsd.h,
816         config/i386/i386-interix.h, config/i386/i386elf.h,
817         config/i386/linux.h, config/i386/netbsd-elf.h,
818         config/i386/netbsd.h, config/i386/openbsd.h,
819         config/i386/ptx4-i.h, config/i386/rtemself.h,
820         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
821         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
823 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
825         * stmt.c (expand_asm_operands): Update commentary.
827 2001-10-16  Stan Shebs  <shebs@apple.com>
829         * config/darwin.h (GCC_NAME): Remove, no longer used.
830         (NO_MATH_LIBRARY): Ditto.
831         (MATH_LIBRARY): Define to emptiness.
832         (DWARF2_DEBUGGING_INFO): Define.
833         (PREFERRED_DEBUGGING_TYPE): Define.
834         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
835         (EXCEPTION_SECTION): Define.
836         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
837         * config/darwin.c (darwin_encode_section_info): Handle case of
838         DECL_INITIAL being error_mark_node.
840 2001-10-16  Richard Henderson  <rth@redhat.com>
842         * alpha.c (current_file_function_operand): Don't fail for profiling.
843         (direct_call_operand): New.
844         * alpha-protos.h: Declare it.
845         * alpha.h (EXTRA_CONSTRAINT): Use it.
846         (PREDICATE_CODES): Add it.
847         (ASM_OUTPUT_MI_THUNK): Remove.
848         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
849         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
851 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
853         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
854         (JUMP_TABLES_IN_TEXT_SECTION): Define.
856 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
858         * cfg.c (free_edge): Break out from ....
859         (remove_edge): ... here.
860         (clear_edges): Use free_edge.
862         * att.h (ASM_QUAD): Add comment.
863         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
865 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
867         * i386.c (split_ti): New function.
868         (ix86_split_to_parts): Support TImodes.
869         * i386.h (VALID_INT_MODE_P): Add TImode.
870         * i386.md (movdi splitter): Fix.
871         (movti): Support 64bit integer registers.
872         (movti_rex64): New function and splitter.
874         * i386.c (*_cost): Add movsx/movzx cost.
875         * i386.h (struct processor_costs): Add movsx/movzx fields.
876         (RTX_COSTS): Handle zero/sign extend + avoid believing that
877         64bit operations require split on 64bit machine.
878         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
880         * i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
881         (ix86_expand_move): Avoid pushes of memory if size does not match;
882         move long constants to register.
883         (x86_initialize_trampoline): Fix mode.
884         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
885         Use ASM_QUAD on 64bit.
886         * i386.md (test pattern): Disallow impossible constants.
887         (tablejump PIC expander): Fix emitting of sum.
888         (movdicc_rex64): Rename to movdicc.
889         * linux64.h (LINK_SPEC): Add missing '%'.
891 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
893         * tree-inline.c (inlinable_function_p): Leave it up to the
894         front-end to turn -finline-functions into DECL_INLINE set for all
895         functions.
897 2001-10-16  Stan Shebs  <shebs@apple.com>
899         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
901 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
903         * recog.c: Formatting and comment typo fixes.
905         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
906         version in single tree build.
907         * configure: Regenerate.
909 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
911         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
912         MODE arguments to gen_rtx and compare operand with const0_rtx.
914 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
916         * system.h: Poison old unused target macros.
917         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
918         * config/stormy16/stormy16.c: Update references to obsolete macros.
919         * config/stormy16/stormy16.h: Similarly.
920         * config/stormy16/stormy16.md: Similarly.
921         * config/cris/cris.h: Similarly.
923 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
925         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
926         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
927         cpp_register_pragma): Update accordingly.
929 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
931         * c-pragma.h (cpp_register_pragma_space): Remove.
932         * cpplib.h (cpp_register_pragma_space): Remove.
933         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
934         (cpp_register_pragma_space): Remove.
935         (cpp_register_pragma): Simplify using lookup_pragma_entry,
936         add sanity checks.
937         (do_pragma): Similarly.
938         (_cpp_init_internal_pragmas): Don't register namespaces.
940         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
941         Don't register namespaces.
942         * cp/lex.c (init_cp_pragma): Similarly.
943         * doc/tm.texi: Update.
945 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
947         PR c/4157
948         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
950 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
952         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
953         add scheduling support.
954         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
955         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
956         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
959 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
961         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
962         missing CONSTANT_P test in core GCC.
964 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
966         * cppmain.c (struct printer): New member source.
967         (scan_translation_unit): Fix spacing at start of lines.
968         (cb_line_change): Update.
970         * gcc.dg/cpp/spacing2.c: New test.
972 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
974         * config/cris/arit.c: Use __builtin_labs, not abs.
976         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
978         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
979         misplaced sprintf and fprintf argument.
981 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
983         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
984         * configure.in, Makefile.in: Take out obsolete check-po logic.
985         * configure, config.in: Regenerate.
987 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
989         * objc/objc-act.c (finish_objc): Correct precondition for emitting
990         symtab declarations.
992 2001-10-12  Stan Shebs  <shebs@apple.com>
994         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
995         declarations of arguments and local variables.
997 2001-10-12  Christopher Faylor  <cgf@redhat.com>
999         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
1000         ENDFILE_SPEC definition.
1002 2001-10-12  Kazu Hirata  <kazu@hxi.com>
1004         * gthr-dce.h: Fix comment formatting.
1005         * gthr-posix.h: Likewise.
1006         * gthr-single.h: Likewise.
1007         * gthr-solaris.h: Likewise.
1008         * gthr-vxworks.h: Likewise.
1009         * gthr-win32.h: Likewise.
1011 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
1013         * final.c (output_asm_insn): Make sure assembly dialects are
1014         terminated, not nested.  Output `|' and `}' characters if they
1015         don't appear inside assembly dialect selection.
1016         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
1017         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
1018         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
1019         strsetsi_rex_1): Add {} braces.
1021 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1023         * toplev.c (compile_file): Ignore return value from yyparse.
1024         Always pop any nested binding levels after yyparse returns.
1026 2001-10-11  Richard Henderson  <rth@redhat.com>
1028         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
1030 2001-10-11  Richard Henderson  <rth@redhat.com>
1032         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
1033         fall back to add_AT_long_long for large CONST_INT.
1035 2001-10-11  Richard Henderson  <rth@redhat.com>
1037         * config/i386/i386.md (setcc splitters): Add four splitters to
1038         simplify compound compares that simplify_comparison can't handle.
1040 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1042         * cpplex.c (digraph_spellings, token_spellings): Make static.
1044 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1046         * unroll.c (loop_iterations): Fixup last patch.
1048 2001-10-11  Richard Henderson  <rth@redhat.com>
1050         * rtl.h (REG_VTABLE_REF): New.
1051         * rtl.c (reg_note_name): Add it.
1052         * combine.c (distribute_notes): Handle it.
1053         * final.c (final_scan_insn): Handle it.
1054         * tree.def (VTABLE_REF): New.
1055         * expr.c (expand_expr): Handle it.
1056         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
1057         * output.h: Declare them.
1059 2001-10-11  Richard Henderson  <rth@redhat.com>
1061         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
1062         for a DECL_INITIAL.
1064 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
1066         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
1067         available in 64-bit mode.
1069 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1071         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
1072         cris-*-linux* cases.
1073         * config/cris/cris-protos.h: New file.
1074         * config/cris/cris.c: New file.
1075         * config/cris/cris.h: New file.
1076         * config/cris/cris.md: New file.
1077         * config/cris/linux.h: New file.
1078         * config/cris/aout.h: New file.
1079         * config/cris/arit.c: New file.
1080         * config/cris/cris_abi_symbol.c: New file.
1081         * config/cris/mulsi3.asm: New file.
1082         * config/cris/t-aout: New file.
1083         * config/cris/t-cris: New file.
1084         * config/cris/t-elfmulti: New file.
1085         * config/cris/t-linux: New file.
1086         * doc/invoke.texi: Add CRIS options.
1087         * doc/install.texi (Specific): Add blurb for CRIS.
1089 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
1091         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
1092         before using it.
1093         * config/float/i32.h: Likewise.
1094         * config/float-i386.h: Likewise.
1095         * config/float-i64.h: Likewise.
1096         * config/float-m68k.h: Likewise.
1097         * config/float-sh.h: Likewise.
1098         * config/float-sparc.h: Likewise.
1100 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1102         * doc/contrib.texi: Add note about CRIS port to my entry.
1104 2001-10-11  Kazu Hirata  <kazu@hxi.com>
1106         * basic-block.h: Fix formatting.
1107         * bitmap.h: Likewise.
1108         * cpplib.h: Likewise.
1109         * c-tree.h: Likewise.
1110         * diagnostic.h: Likewise.
1111         * flags.h: Likewise.
1112         * ggc.h: Likewise.
1113         * longlong.h: Likewise.
1114         * real.h: Likewise.
1115         * reload.h: Likewise.
1116         * rtl.h: Likewise.
1117         * tree.h: Likewise.
1119 2001-10-10  Richard Henderson  <rth@redhat.com>
1121         * c-parse.in (asm_operand): Allow named operands.
1122         * genconfig.c (max_recog_operands): Set to 29.
1123         * local-alloc.c (requires_inout): Skip multiple digits.
1124         * recog.c (asm_operand_ok): Likewise.
1125         (preprocess_constraints): Use strtoul for matching constraints.
1126         (constrain_operands): Likewise.
1127         * regmove.c (find_matches): Likewise.
1128         * reload.c (find_reloads): Likewise.
1129         * stmt.c (parse_output_constraint): Don't reject in-out
1130         constraint on operands > 9.  Reject '[' in constraint.
1131         (expand_asm_operands): Handle named operands.  Use strtoul
1132         for matching constraints.
1133         (check_operand_nalternatives): Split out from expand_asm_operands.
1134         (check_unique_operand_names): New.
1135         (resolve_operand_names, resolve_operand_name_1): New.
1137         * doc/extend.texi (Extended Asm): Document named operands.
1138         * doc/md.texi (Simple Constraints): Document matching constraints
1139         on operands > 9.
1141 2001-10-10  Richard Henderson  <rth@redhat.com>
1143         * combine.c (try_combine): Handle a SEQUENCE of one insn.
1145         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
1146         (jcc splitters): Add two splitters to simplify compound compares
1147         that simplify_comparison can't handle.
1149 2001-10-10  Richard Henderson  <rth@redhat.com>
1151         * langhooks.c: Include langhooks.h.
1152         * Makefile.in (langhooks.o): Depend on it.
1154 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
1156         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
1157         should not be considered as a no-op.
1158         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
1160 2001-10-10  Stan Shebs  <shebs@apple.com>
1162         * alias.c: Remove uses of "register" specifier in declarations
1163         of arguments and local variables.
1164         * c-common.c: Ditto.
1165         * c-convert.c: Ditto.
1166         * c-decl.c: Ditto.
1167         * c-format.c: Ditto.
1168         * c-semantics.c: Ditto.
1169         * c-typeck.c: Ditto.
1170         * caller-save.c: Ditto.
1171         * calls.c: Ditto.
1172         * cfg.c: Ditto.
1173         * cfgbuild.c: Ditto.
1174         * cfgrtl.c: Ditto.
1175         * collect2.c: Ditto.
1176         * combine.c: Ditto.
1177         * convert.c: Ditto.
1178         * cppexp.c: Ditto.
1179         * cppfiles.c: Ditto.
1180         * cse.c: Ditto.
1181         * dbxout.c: Ditto.
1182         * defaults.h: Ditto.
1183         * df.c: Ditto.
1184         * dwarf2out.c: Ditto.
1185         * dwarfout.c: Ditto.
1186         * emit-rtl.c: Ditto.
1187         * explow.c: Ditto.
1188         * expmed.c: Ditto.
1189         * expr.c: Ditto.
1190         * final.c: Ditto.
1191         * fix-header.c: Ditto.
1192         * floatlib.c: Ditto.
1193         * flow.c: Ditto.
1194         * fold-const.c: Ditto.
1195         * function.c: Ditto.
1196         * gcc.c: Ditto.
1197         * gcse.c: Ditto.
1198         * gen-protos.c: Ditto.
1199         * genattrtab.c: Ditto.
1200         * gencheck.c: Ditto.
1201         * genconfig.c: Ditto.
1202         * genemit.c: Ditto.
1203         * genextract.c: Ditto.
1204         * genflags.c: Ditto.
1205         * gengenrtl.c: Ditto.
1206         * genoutput.c: Ditto.
1207         * genpeep.c: Ditto.
1208         * genrecog.c: Ditto.
1209         * gensupport.c: Ditto.
1210         * global.c: Ditto.
1211         * gmon.c: Ditto.
1212         * graph.c: Ditto.
1213         * haifa-sched.c: Ditto.
1214         * hard-reg-set.h: Ditto.
1215         * hash.c: Ditto.
1216         * integrate.c: Ditto.
1217         * jump.c: Ditto.
1218         * lists.c: Ditto.
1219         * local-alloc.c: Ditto.
1220         * loop.c: Ditto.
1221         * mips-tdump.c: Ditto.
1222         * mips-tfile.c: Ditto.
1223         * optabs.c: Ditto.
1224         * prefix.c: Ditto.
1225         * print-rtl.c: Ditto.
1226         * read-rtl.c: Ditto.
1227         * real.c: Ditto.
1228         * recog.c: Ditto.
1229         * reg-stack.c: Ditto.
1230         * regclass.c: Ditto.
1231         * regmove.c: Ditto.
1232         * reload.c: Ditto.
1233         * reload1.c: Ditto.
1234         * reorg.c: Ditto.
1235         * resource.c: Ditto.
1236         * rtl.c: Ditto.
1237         * rtlanal.c: Ditto.
1238         * scan.c: Ditto.
1239         * sched-deps.c: Ditto.
1240         * sched-rgn.c: Ditto.
1241         * sdbout.c: Ditto.
1242         * simplify-rtx.c: Ditto.
1243         * stmt.c: Ditto.
1244         * stor-layout.c: Ditto.
1245         * toplev.c: Ditto.
1246         * tradcif.y: Ditto.
1247         * tradcpp.c: Ditto.
1248         * tree.c: Ditto.
1249         * unroll.c: Ditto.
1250         * varasm.c: Ditto.
1251         * xcoffout.c: Ditto.
1253 2001-10-10  Richard Henderson  <rth@redhat.com>
1255         * rtl.h (can_reverse_comparison_p): Remove.
1257 2001-10-10  Christopher Faylor <cgf@redhat.com>
1259         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
1260         used.
1262 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1264         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
1265         (Thanks to Chris Faylor for suggesting macro name).
1266         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
1267         WIN32 defines.
1268         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
1269         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
1270         (MATH_LIBRARY): Undef before definition.
1271         (OUTPUT_QUOTED_STRING): Likewise.
1272         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
1274 2001-10-10  Richard Henderson  <rth@redhat.com>
1276         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
1277         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
1278         a tristate comparison value.
1279         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
1281 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1283         PR c++/4512
1284         * unroll.c (loop_iterations): Ignore insns generated by loop
1285         unrolling.
1287         * config.gcc (mips*-*-gnu*): Delete support.
1288         * config/mips/gnu.h: Remove.
1290 2001-10-10  Kazu Hirata  <kazu@hxi.com>
1292         * calls.c: Fix formatting.
1293         * c-decl.c: Likewise.
1294         * cfgcleanup.c: Likewise.
1295         * combine.c: Likewise.
1296         * cppfiles.c: Likewise.
1297         * cpplib.c: Likewise.
1298         * cppmacro.c: Likewise.
1299         * crtstuff.c: Likewise.
1300         * cse.c: Likewise.
1301         * dwarf2out.c: Likewise.
1302         * expmed.c: Likewise.
1303         * expr.c: Likewise.
1304         * fold-const.c: Likewise.
1305         * function.c: Likewise.
1306         * gcse.c: Likewise.
1307         * genattrtab.c: Likewise.
1308         * ggc-page.c: Likewise.
1309         * integrate.c: Likewise.
1310         * libgcc2.c: Likewise.
1311         * loop.c: Likewise.
1312         * optabs.c: Likewise.
1313         * profile.c: Likewise.
1314         * protoize.c: Likewise.
1315         * real.c: Likewise.
1316         * recog.c: Likewise.
1317         * reload1.c: Likewise.
1318         * reload.c: Likewise.
1319         * reorg.c: Likewise.
1320         * resource.c: Likewise.
1321         * sched-rgn.c: Likewise.
1322         * sdbout.c: Likewise.
1323         * stmt.c: Likewise.
1324         * toplev.c: Likewise.
1325         * varasm.c: Likewise.
1327 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
1329         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
1330         * Makefile.in (langhooks.o): Add dependencies.
1332 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
1334         * rs6000.c (rs6000_emit_load_toc_table): Don't
1335         strdup the toc label.
1336         (create_TOC_reference): Likewise.
1338 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1340         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
1341         version default.
1343 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1345         * config/i386/i386.c (ix86_attribute_table): Correct
1346         min_len, max_len fields for dllimport, dllexport and shared.
1348 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1350         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
1351         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
1352         Consistently use "nonzero" instead of "non-zero".
1354 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1356         * acconfig.h: Fix comment formatting.
1357         * c-dump.h: Likewise.
1358         * c-tree.h: Likewise.
1359         * conditions.h: Likewise.
1360         * expr.h: Likewise.
1361         * function.h: Likewise.
1362         * gthr.h: Likewise.
1363         * hwint.h: Likewise.
1364         * integrate.h: Likewise.
1365         * intl.h: Likewise.
1366         * loop.h: Likewise.
1367         * optabs.h: Likewise.
1369 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1371         * c-common.h: Fix comment formatting.
1372         * c-dump.c: Likewise.
1373         * cfg.c: Likewise.
1374         * diagnostic.h: Likewise.
1375         * except.c: Likewise.
1376         * gcc.h: Likewise.
1377         * gcov-io.h: Likewise.
1378         * genattrtab.c: Likewise.
1379         * output.h: Likewise.
1380         * predict.h: Likewise.
1381         * reload1.c: Likewise.
1382         * reload.h: Likewise.
1383         * resource.h: Likewise.
1384         * scan.h: Likewise.
1385         * system.h: Likewise.
1386         * tree.h: Likewise.
1387         * tree-inline.c: Likewise.
1388         * tsystem.h: Likewise.
1389         * varasm.c: Likewise.
1390         * xcoffout.h: Likewise.
1392 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1394         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
1396 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1398         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
1399         config/i386/i386elf.h, config/i386/netbsd-elf.h,
1400         config/i386/netware.h, config/mcore/gfloat.h,
1401         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
1402         config/netware.h, gccbug.in: Update FSF address.
1404 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1406         * c-common.c: Fix comment typos.
1407         * cfgrtl.c: Likewise.
1408         * collect2.c: Likewise.
1409         * cpplex.c: Likewise.
1410         * doloop.c: Likewise.
1411         * dwarf2out.c: Likewise.
1412         * dwarfout.c: Likewise.
1413         * expr.c: Likewise.
1414         * fold-const.c: Likewise.
1415         * gcc.c: Likewise.
1416         * gcov.c: Likewise.
1417         * gcse.c: Likewise.
1418         * global.c: Likewise.
1419         * ifcvt.c: Likewise.
1420         * loop.c: Likewise.
1421         * optabs.c: Likewise.
1422         * protoize.c: Likewise.
1423         * regclass.c: Likewise.
1424         * reorg.c: Likewise.
1425         * rtl.h: Likewise.
1426         * stmt.c: Likewise.
1427         * tree.h: Likewise.
1428         * doc/cpp.texi: Likewise.
1429         * doc/c-tree.texi: Likewise.
1430         * doc/extend.texi: Likewise.
1431         * doc/invoke.texi: Likewise.
1432         * doc/objc.texi: Likewise.
1433         * doc/tm.texi: Likewise.
1435 2001-10-08  Richard Henderson  <rth@redhat.com>
1437         * varasm.c (set_named_section_flags): Initialize "declared".
1439 2001-10-08  Robert Lipe  <robertlipe@usa.net>
1441         * varasm.c (struct in_named_entry): Add declared.
1442         (named_section_first_declaration): New function.
1443         (default_elf_asm_named_section): Use it.
1444         * output.h (named_section_first_declaration): New.
1446 2001-10-08  Richard Henderson  <rth@redhat.com>
1448         * i386.md (movsi_xor): Export.
1449         (setcc peep2): Use it when available; add an alternative to
1450         match zero_extendhisi2_and.
1452 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1454         * romp-protos.h (romp_initialize_trampoline): New function.
1455         * romp.c (romp_initialize_trampoline): Likewise.
1456         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
1457         romp_initialize_trampoline.
1459 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1461         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
1462         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1463         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1464         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1466 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1468         * unroll.c (loop_iterations): Extend check for multiple back edges.
1470 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
1472         * langhooks.h: New file.
1473         * Makefile.in (OBJS): Added langhooks.o.
1474         (c-lang.o): Depend on langhooks.h.
1475         (c-common.o): Don't depend on tree-inline.h.
1476         (tree-inline.o): Depend on toplev.h.
1477         (langhooks.o): New rule.
1478         * c-common.c: Don't include tree-inline.h.
1479         (c_mark_lang_decl): Mark argument c as unused.
1480         (c_common_lang_init): Don't initialize hooks here.
1481         * c-lang.c: Include langhooks.h, then override some macros.
1482         (lang_hooks): Initialize with macros in langhooks.h.
1483         (c_init): Don't initialize hooks here.
1484         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
1485         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
1486         * tree-inline.c: Include toplev.h.  Don't define hook variables.
1487         * tree-inline.h: Don't define hook types nor declare hook
1488         variables.  Move macros to...
1489         * langhooks.c: ... new file, as functions.  Adjust all callers.
1491 2001-10-08  Jeffrey A Law  <law@cygnus.com>
1493         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
1494         purge_mem_unchanging_flag on all instructions, not just on those
1495         before NOTE_INSN_FUNCTION_BEG.
1497 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1499         * cppmacro.c (_cpp_create_definition): Leave comments off.
1501         * doc/cpp.texi: Update.
1503 2001-10-08  DJ Delorie  <dj@redhat.com>
1505         * c-decl.c (grokfield): Make sure the only unnamed fields
1506         we're allowing are either structs or unions.
1507         * doc/extend.texi: Add documentation for the unnamed field
1508         extension.
1510 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
1512         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
1513         * configure.in: Use it.
1514         * configure: Regenerated.
1515         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
1516         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
1518 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1520         * cppfiles.c (open_file): Don't mark zero-length files
1521         never-reread here.  Don't output diagnostics here either.
1522         (stack_include_file): Mark them never-reread here.
1523         (_cpp_read_file): Update.
1525 2001-10-08  Richard Henderson  <rth@redhat.com>
1527         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1529 2001-10-08  Richard Henderson  <rth@redhat.com>
1531         * expr.c (store_expr): When converting a CONST_INT for storage
1532         in a SUBREG, convert it to both SUBREG modes before stripping
1533         the SUBREG.
1535 2001-10-08  Richard Henderson  <rth@redhat.com>
1537         * varasm.c (restore_varasm_status): New.
1538         * function.h: Declare it.
1539         * function.c (pop_function_context_from): Call it.
1541 2001-10-08  Richard Henderson  <rth@redhat.com>
1543         * c-common.h (struct c_lang_decl): Add declared_inline.
1544         * c-tree.h (DECL_DECLARED_INLINE_P): New.
1545         * c-lang.c (c_disregard_inline_limits): Use it.
1546         * c-decl.c (duplicate_decls): Likewise.
1547         (pushdecl, redeclaration_error_message): Likewise.
1548         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
1549         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
1550         Set DECL_INLINE if -finline-functions.
1551         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
1553 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1555         * cppmacro.c (funlike_invocation_p): Move some logic to caller
1556         in enter_macro_context.  Create a padding token in its own context
1557         if necessary when the search for '(' fails.
1558         (enter_macro_context): Update.
1560 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1562         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
1563         genmultilib, toplev.c: Fix spelling errors of "separate" as
1564         "seperate", and corresponding spelling errors of related words.
1566 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1568         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
1569         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
1570         Likewise.
1571         * c-dump.c (dump_option_value_info): Likewise.
1572         * c-format.c (format_length_info, format_char_info,
1573         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
1574         * collect2.c (names): Likewise.
1575         * cppdefault.h (default_include): Likewise.
1576         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
1577         * flow.c (life_analysis): Likewise.
1578         * gcc.c (dir_separator_str, modify_target, option_map,
1579         target_option_translations, spec_list_1, extra_specs_1,
1580         init_spec): Likewise.
1581         * gcov.c (gcov_version_string): Likewise.
1582         * genattr.c (write_units): Likewise.
1583         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
1584         * gengenrtl.c (rtx_definition, defs): Likewise.
1585         * genrecog.c (pred_table): Likewise.
1586         * global.c (global_alloc): Likewise.
1587         * lcm.c (optimize_mode_switching): Likewise.
1588         * local-alloc.c (find_free_reg): Likewise.
1589         * params.h (param_info): Likewise.
1590         * predict.c (predictor_info): Likewise.
1591         * protoize.c (unexpansion_struct): Likewise.
1592         * real.c (bmask): Likewise.
1593         * recog.h (insn_operand_data, insn_data): Likewise.
1594         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
1595         * stmt.c (expand_nl_goto_receiver): Likewise.
1596         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
1597         target_switches, target_options): Likewise.
1598         * tradcif.y (token, tokentab2, yylex): Likewise.
1599         * tree.h (attribute_spec): Likewise.
1601         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
1602         Likewise.
1603         * arc.c (arc_output_function_epilogue): Likewise.
1604         * arm.c (processors, all_cores, all_architectures,
1605         arm_override_options, isr_attribute_arg, isr_attribute_args,
1606         arm_isr_value): Likewise.
1607         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
1608         Likewise.
1609         * c4x.c (c4x_int_reglist): Likewise.
1610         * d30v.c (override_options): Likewise.
1611         * h8300.c (shift_insn): Likewise.
1612         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
1613         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
1614         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
1615         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
1616         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
1617         * i386.h (processor_costs, ix86_cost): Likewise.
1618         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
1619         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
1620         * m68k.c (codes_68881, codes_FPA): Likewise.
1621         * m88k.c (mode_from_align, max_from_align, all_from_align,
1622         best_from_align, m_options): Likewise.
1623         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
1624         * mcore.c (mode_from_align): Likewise.
1625         * mips/elf64.h (UNIQUE_SECTION): Likewise.
1626         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
1627         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
1628         * mips.h (mips_regno_to_class): Likewise.
1629         * ns32k.c (scales): Likewise.
1630         * pa.c (import_string, magic_milli): Likewise.
1631         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
1632         * sparc.c (leaf_reg_remap, sparc_override_options,
1633         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
1634         Likewise.
1635         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
1637 2001-10-07  Dale Johannesen  <dalej@apple.com>
1639         * reload1.c (reload_reg_free_p): Teach register interference
1640         checking that multiple output reloads are emitted in
1641         reverse order.
1642         reload1.c (reload_reg_reaches_end_p):  Ditto.
1643         reload1.c (reloads_conflict):  Ditto.
1645 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1647         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
1648         NULL_TREE inside @code.
1650 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1652         * doc/gcc.texi: Document consistent style of "32-bit",
1653         "Objective-C", and "@code{NULL}".
1655 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1657         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
1658         (cpp_token_len, cpp_spell_token, cpp_output_token,
1659         _cpp_equiv_tokens): Handle it.
1660         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
1661         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
1662         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
1663         error messages.
1665 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1667         * gcc.c (default_compilers): Remove .ada.
1669 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1671         * doc/cppinternals.texi: Update.
1673 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1675         * gcc.c (main): Set this_file_error if the appropriate
1676         compiler for a language has not been installed.
1678 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1680         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
1682 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1684         * gccbug.in (CATEGORIES): Add ada.
1686 2001-10-05  Catherine Moore  <clm@redhat.com>
1688         * config/stormy16/stormy-abi:  Document abi changes.
1689         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
1690         (ICALL_REGS): New register class.
1691         (NUM_ARGUMENT_REGISTERS): Now 6.
1692         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
1693         in registers.
1694         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
1695         * config/stormy16.md (call_internal, call_value_internal,
1696         indirect_jump): Use new 'z' constraint.
1698 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1700         * doc/cppinternals.texi: Update.
1702 2001-10-05  Richard Henderson  <rth@redhat.com>
1704         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
1705         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
1706         the gas section-name-as-label feature.
1708 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1710         * doc/cppinternals.texi: Update.
1712 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1714         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
1715         to ensure valid SImode constants.
1717 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
1719         * Makefile.in (c-decl.o): Depend on tree-inline.h.
1720         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
1721         * c-decl.c: Include tree-inline.h.
1722         (c_expand_body): Call optimize_inline_calls. Determine whether
1723         a function is inlinable upfront, and only clear
1724         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
1725         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
1726         (c_disregard_inline_limits): New function.
1727         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
1728         (c_post_options): Enable tree inlining if inlining is enabled.
1729         Don't inline trees when instrumenting functions.
1730         (c_init): Initialize lang_disregard_inline_limits and
1731         lang_cannot_inline_tree_fn.
1732         * tree-inline.c (initialize_inlined_parameters): Handle calls
1733         with fewer arguments than declared parameters, and fewer
1734         parameters than passed arguments.  Don't assume value is a
1735         DECL.
1736         (declare_return_variable): Convert return value back to the
1737         original type, if it was promoted.
1738         (tree_inlinable_function_p): New function.
1739         (inlinable_function_p): Don't look at DECL_INLINE if we're
1740         inlining all functions.  Make it work with a NULL id.
1741         Re-check DECL_UNINLINABLE after language-specific checks.
1742         * tree-inline.h (tree_inlinable_function_p): Declare it.
1743         * integrate.c (save_for_inline): Don't bother to prepare argvec
1744         when not inlining.
1745         * cse.c (check_for_label_ref): Don't check deleted labels.
1747         * Makefile.in (tree-inline.o): Depend on newly-included headers.
1748         * tree-inline.c: Include headers needed for the functions moved in.
1749         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
1750         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
1751         (copy_body, initialize_inlined_parameters): Likewise.
1752         (declare_return_variable, inlinable_function_p): Likewise.
1753         (expand_call_inline, expand_calls_inline): Likewise.
1754         (optimize_inline_calls, clone_body): Likewise.
1755         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
1756         (copy_tree_r, remap_save_expr): Likewise.
1758 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
1760         * Makefile.in (OBJS): Added tree-inline.o.
1761         (c-common.o): Depend on tree-inline.h.
1762         (tree-inline.o): New target.
1763         * c-common.c: Include tree-inline.h.
1764         (c_mark_lang_decl): Don't mark saved_tree.
1765         (c_common_lang_init): Set lang_anon_aggr_type_p.
1766         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
1767         (struct c_lang_decl): Moved saved_tree to tree_decl.
1768         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
1769         * integrate.h (function_attribute_inlinable_p): Declare it.
1770         * integrate.c (function_attribute_inlinable_p): Export it.
1771         * tree-inline.c: New file.  Define variables declared in...
1772         * tree-inline.h: New file.  Declare functions to be moved to
1773         tree-inline.c.  Define macros and declare types and hooks for
1774         language-specific tree inlining.
1775         (flag_inline_trees): Moved definition from cp/decl2.c.
1776         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
1777         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
1778         (struct tree_decl): Moved saved_tree from c_lang_decl and
1779         inlined_fns from C++'s lang_decl.
1781 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
1783         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
1784         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
1786 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1788         * doc/cppinternals.texi: Update.
1790 2001-10-04  Eric Christopher  <echristo@redhat.com>
1792         * config/mips/mips.c (init_cumulative_args): Remember to set
1793         cum->prototype.
1794         * config.gcc: Redo linux configuration. Add target_cpu_default
1795         of soft-float to all mipsisa32 combinations and tx39.
1796         * config/mips/linux.h: Remove include of mips.h.
1798 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
1800         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
1801         HOST_LDFLAGS and HOST_CPPFLAGS.
1803 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
1805         * c-parse.in (objc_inherit_code, objc_pq_context,
1806         objc_public_flag): Make static.
1807         (objc_interface_context, objc_implementation_context,
1808         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
1809         global tree array in objc/objc-act.[ch].
1810         (methoddef): Remove unnecessary code.
1812         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
1813         Hoist struct definitions to objc-act.h.
1814         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
1815         cat_count): Place declaration in objc-act.h.
1816         (objc_tree_index): Move enumeration to objc-act.h.
1817         (objc_global_trees): Place declaration and macro accessors in
1818         objc-act.h.
1819         (implementation_context): Remove duplicate; use
1820         objc_implementation_context instead:
1821         (method_context): Remove duplicate; use objc_method_context
1822         instead.
1823         (objc_ellipsis_node, objc_method_prototype_template,
1824         implemented_classes, function_type): Move global vars to
1825         objc_global_trees.
1826         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
1827         (build_message_expr): Move actual construction of ObjC message
1828         send nodes to finish_message_expr.
1829         (finish_message_expr): New routine, contains code formerly in
1830         build_message_expr.
1831         * objc/objc-act.h (finish_message_expr): New prototype.
1832         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
1833         declarations; these vars are now part of objc_global_trees.
1834         (objc_tree_index, objc_global_trees): Move definitions from
1835         objc-act.c.
1836         * objc/objc-tree.def: Update copyright info.
1838 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
1840         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
1841         op is NULL.
1842         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
1843         only if TARGET_ARCH64.
1845 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
1847         * doc/extend.texi: Fix some problems with previous checkin.
1848         * doc/invoke.texi: Likewise.
1850 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1852         * cpphash.h: Update comments.
1853         (cpp_context): Update.
1854         (spec_nodes): Remove n__Pragma.
1855         * cppinit.c (cpp_create_reader): Update.
1856         (builtin_array): Add _Pragma.
1857         * cpplib.h: Update comments.
1858         (NODE_DISABLED, BT_PRAGMA): New.
1859         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
1860         * cppmacro.c (struct cpp_macro): Remove disabled.
1861         (builtin_macro): Return int, handle _Pragma, push the new token
1862         on the context stack.
1863         (funlike_invocation_p): Unconstify, update.
1864         (enter_macro_context): Handle builtins here.
1865         (replace_args, push_token_context, push_ptoken_context):
1866         Update for prototype changes.
1867         (_cpp_pop_context): Update.
1868         (cpp_get_token): Don't handle buitins, nor _Pragma here.
1869         (cpp_sys_macro_p): Update.
1870         (_cpp_free_definition): Clear disabled flag.
1871         (_cpp_create_definition): Upate.
1872         * cppmain.c: Update comments.
1874 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
1875                                 Andreas Jaeger <aj@suse.de>,
1876                                 Jan Hubicka    <jh@suse.cz>
1878         * doc/invoke.texi (i386 Options): Document x86-64 options.
1879         (i386 and x86-64 Options): Rename i386 options section.
1881         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
1882         (TARGET_SWITCHES): Add -munwind-info.
1883         (MASK_NO_UNWIND_INFO): New.
1884         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
1885         biarch compilation.
1886         (ASM_OUTPUT_DOUBLE_INT): New.
1888         * config/i386/linux64.h: New spec file for Linux x86-64 support.
1889         * config.gcc: Fix tm_file settings for x86-64.
1890         * config/i386/x86-64.h: New file with OS independent x86-64
1891         definitions.
1892         * config/i386/biarch64.h: New file used to configure compiler
1893         to biarch/64bit compilation.
1895         * config/i386/i386.c: (override_options): Set flags default
1896         for 64bit compilation.
1898 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1900         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
1901         (ix86_expand_int_movcc): Optimize DImode conditional moves with
1902         constants on x86_64.
1903         (ix86_attr_length_immediate_default): Support MODE_DI.
1904         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
1905         condition.
1906         (indirect_jump, tablejump): Turn into expander.
1908 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1910         * c-common.c (c_format_attribute_table): Make format and
1911         format_arg attributes apply to function types rather than to
1912         decls.
1913         (is_valid_printf_arglist): Construct an attribute list and pass
1914         that to check_function_format rather than a name.
1915         * c-common.h (check_function_format): Adjust prototype.
1916         * c-decl.c (duplicate_decls): Preserve attributes from type of
1917         built-in decl when allowing for harmless conflict in types.
1918         * c-format.c (record_function_format,
1919         record_international_format, function_format_list,
1920         international_format_info, international_format_list): Remove.
1921         (function_format_info): Remove next, name and assembler_name.
1922         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
1923         (decode_format_attr): New.
1924         (handle_format_attribute): Handle receiving a type rather than a
1925         decl.  Call decode_format_attr.  Store format information in a
1926         function_format_info.
1927         (handle_format_arg_attribute): Correct comment.  Handle receiving
1928         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
1929         arg_num.
1930         (check_format_info_recurse, check_format_info_main): Take argument
1931         numbers as unsigned HOST_WIDE_INT.
1932         (check_function_format): Take a list of attributes from the
1933         function type rather than a name or assembler name.  Check for
1934         format attributes in that list and the attributes on the type of
1935         the current function rather than looking through
1936         function_format_list.
1937         (check_format_info): Use unsigned HOST_WIDE_INT for argument
1938         numbers.
1939         (check_format_info_recurse): Take format_arg attributes from the
1940         type of the function calls rather than using
1941         international_format_list.  Allow for multiple format_arg
1942         attributes.
1943         * c-typeck.c (build_function_call): Pass type attributes to
1944         check_function_format rather than name or assembler name.  Don't
1945         require there to be a name or assembler name to check formats.
1947 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1949         * attribs.c (decl_attributes): Possibly call
1950         insert_default_attributes to insert default attributes on
1951         functions in a lazy manner.
1952         * builtin-attrs.def: New file; define the default format and
1953         format_arg attributes.
1954         * c-common.c (c_format_attribute_table): Move to earlier in the
1955         file.
1956         (c_common_nodes_and_builtins): Initialize format_attribute_table.
1957         (enum built_in_attribute, built_in_attributes,
1958         c_attrs_initialized, c_init_attributes,
1959         c_common_insert_default_attributes): New.
1960         (c_common_lang_init): Don't initialize format_attribute_table.  Do
1961         call c_init_attributes.
1962         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
1963         * c-common.h (init_function_format_info): Don't declare.
1964         (c_common_insert_default_attributes): Declare.
1965         * c-decl.c (implicitly_declare, builtin_function): Call
1966         decl_attributes.
1967         (init_decl_processing): Don't call init_function_format_info.
1968         (insert_default_attributes): New.
1969         * c-format.c (handle_format_attribute,
1970         handle_format_arg_attribute): Be quiet about inappropriate
1971         declaration when applying default attributes.
1972         (init_function_format_info): Remove.
1973         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
1974         (insert_default_attributes): Declare.
1976 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1978         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
1980 2001-10-01  Jim Wilson  <wilson@redhat.com>
1982         * sched-deps.c (add_dependence): When elide conditional dependence,
1983         check that insn doesn't modify cond2.
1985 2001-10-01  Dale Johannesen  <dalej@apple.com>
1987         * config/rs6000/rs6000.h (enum processor_type): Add support
1988         for 7400 (G4) and 7450.
1989         (RTX_COSTS): Ditto.
1990         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1991         (rs6000_issue_rate): Ditto.
1992         (rs6000_adjust_cost): Fix cycle counts for compares.
1993         (debug_stack_info):  Fix an obvious typo.
1994         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
1995         * doc/invoke.texi: Document.
1996         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
1997         for Darwin.
1998         (PROCESSOR_DEFAULT): Ditto.
2000 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
2002         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
2003         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
2004         later recursive make invocation.
2006 2001-10-01  Hans Boehm  <boehm@acm.org>
2008         * optabs.c (emit_libcall_block): When using non-call exceptions,
2009         don't add REG_LIBCALL reg notes to trapping calls.
2011 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2013         * flow.c (propagate_block_delete_libcall): Remove unused first arg
2014         (propagate_one_insn):  Update for above change
2016 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2018         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
2019         _Unwind_GetTextRelBase): Argument is unused.
2021 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2023         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
2024         Loop through NOPs, placeholders, and components.
2025         Don't go through NOPs if change mode.
2026         (record_alias_subset): Do nothing if SUBSET and SET are the same.
2027         * emit-rtl.c (set_mem_alias_set): Enable check.
2028         * expr.c (find_placeholder): New function.
2029         (expand_expr, case PLACEHOLDER_EXPR): Use it.
2030         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
2031         to modify it and avoid unneeded copies.
2032         * expr.h (expand_expr): Always define.
2033         (find_placeholder): New declaration.
2035 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2037         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
2038         operand 2 is the stack pointer.
2039         ("addr-peephole"): Fix address computation peephole when operand 2
2040         is the stack pointer.
2042 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2044         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
2045         (ix86_setup_incoming_varargs): Likewise.
2047 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
2049         * stor-layout.c (layout_type): Don't complain about too-large
2050         array here.
2052 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2054         * function.c (keep_stack_depressed): Don't use delete_insn.
2056         * expr.h (set_mem_alias_set): Move decl to here.
2057         * rtl.h (mem_attrs): New typedef and struct.
2058         (union rtunion_def): Add field for mem_attrs.
2059         (X0MEMATTR, MEM_ATTRS): New macros.
2060         (MEM_ALIAS_SET): Use MEM_ATTRS.
2061         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
2062         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
2063         (set_mem_alias_set): Delete decl from here.
2065         * alias.c (set_mem_alias_set): Delete from here.
2066         * emit-rtl.c (mem_attrs_htab): New variable.
2067         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
2068         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
2069         (mem_attrs_mark, get_mem_attrs): Likewise.
2070         (gen_rtx_MEM): Clear MEM_ATTRS.
2071         (set_mem_attributes): Move to here.
2072         (set_mem_alias_set): Likewise, and call get_mem_attrs.
2073         (init_emit_once): const_int_htab now deletable htab.
2074         Initialize mem_attrs_htab.
2075         * explow.c (set_mem_attributes): Delete from here.
2076         * function.c (put_var_into_stack): Clear MEM_ATTRS.
2077         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
2078         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
2079         * reload1.c (reload): Rework changing REG to MEM.
2081 2001-09-30  H.J. Lu <hjl@gnu.org>
2083         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
2084         * config.in: Rebuild.
2086 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2088         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
2089         ("tsthi_1"): Avoid allocation in register y.
2090         ("*movqi_68hc12"): Reorganize and fix constraints.
2091         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
2092         ("addqi3"): Likewise.
2093         ("addhi3"): Fix constraints.
2094         ("*logicalhi3_zexthi"): Disparage soft registers.
2096 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2098         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
2099         to tmp reg.
2101 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2103         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
2104         that we use setjmp/longjmp exceptions.
2106 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2108         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
2109         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
2110         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2111         _cpp_pool_alloc, _cpp_next_chunk): Remove.
2112         (_cpp_extend_buff, BUFF_ROOM): Update.
2113         (_cpp_append_extend_buff): New.
2114         (struct cpp_reader): Remove macro_pool, add a_buff.
2115         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
2116         macro_pool.
2117         (cpp_destroy): Free a_buff instead of macro_pool.
2118         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
2119         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2120         _cpp_pool_alloc, ): Remove.
2121         (parse_number, parse_string): Update use of _cpp_extend_buff.
2122         (_cpp_extend_buff): Update.
2123         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
2124         * cpplib.c (glue_header_name, parse_answer):
2125         Update use of _cpp_extend_buff.
2126         (cpp_register_pragma, cpp_register_pragma_space): Use
2127         _cpp_aligned_alloc.
2128         (do_assert, do_unassert): Check for EOL, update.
2129         * cppmacro.c (stringify_arg, collect_args): Update to use
2130         _cpp_extend_buff and _cpp_append_extend_buff.
2131         (save_parameter, parse_params, alloc_expansion_token,
2132         _cpp_create_definition): Rework memory management.
2134 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
2136         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
2137         update md_exec_prefix.
2138         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
2139         to string constant.
2141 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
2143         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
2144         (SELECT_CC_MODE): Use s390_select_ccmode.
2145         * config/s390/s390-protos.h (s390_select_ccmode): Add.
2146         * config/s390/s390.c (s390_select_ccmode): New.
2147         (s390_match_ccmode): Add CCLmode.
2148         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
2149         (output_branch_condition, output_inverse_branch_condition): Removed.
2150         (print_operand): Use s390_branch_condition_mnemonic.
2151         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
2152         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
2153         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
2155         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
2156         when converting conditional branches to far branches.
2157         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
2158         cmpint_di): Use CCSmode instead of CCUmode.
2160         * config/s390/s390.c (legitimate_la_operand_p): New.
2161         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
2162         * config/s390/s390.md (movsi): Convert load address patterns to
2163         arithmetic operations when necessary.
2164         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
2165         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
2166         (*do_la_reg_0): Don't use before reload.
2168         * config/s390/s390.c (legitimize_address): Make more efficient
2169         use of two-register addressing mode.
2171         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
2172         with -mno-backchain in some corner cases.
2174         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
2176 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
2178         * reload.c (find_reloads): Mark new USE insns with QImode.
2179         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
2180         find_reloads_subreg_address): Likewise.
2181         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
2182         encountered.
2183         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
2184         CLOBBERs.
2185         (reload): Make sure there are no USEs with mode other than
2186         VOIDmode.  At the end, remove those marked with QImode.
2188 2001-09-29  Per Bothner  <per@bothner.com>
2190         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
2191         * Makefile.in (includedir):  Rename to local_includedir.
2192         (includedir):  Define as $(prefix)/include.
2193         * config.in (PREFIX_INCLUDE_DIR):  New variable.
2194         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
2196 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
2198         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
2199         storehps builtins.
2200         * doc/extend.texi (Vector Extensions): New node.
2201         * doc/invoke.texi (Machine Dependent Options): Add documentation for
2202         i386 -mmmx, -msse, -m3dnow.
2204 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2206         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
2208 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2210         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
2212         * doc/invoke.texi (Optimize Options): Delete spurious @table.
2214 2001-09-28  Richard Henderson  <rth@redhat.com>
2216         * varasm.c (assemble_integer): Bound alignment check by
2217         BIGGEST_ALIGNMENT.
2219         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
2221 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2223         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
2225 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2227         Mostly from Graham Stott  <grahams@redhat.com>
2228         * c-common.c (type_for_mode): Add support for V2SFmode.
2229         * tree.c (build_common_tree_nodes_2): Likewise.
2230         * tree.h (enum tree_index, global_trees): Likewise.
2231         * config/i386/i386.c (x86_3dnow_a): New variable.
2232         (override_options): Support 3Dnow extensions.
2233         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
2234         Athlon's version of 3Dnow.
2235         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
2236         (ix86_expand_builtin): Handle them.
2237         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
2238         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
2239         TARGET_3DNOW_A): New macros.
2240         (TARGET_SWITCHES): Add 3Dnow switches.
2241         (VALID_MMX_REG_MODE_3DNOW): New macro.
2242         (VECTOR_MODE_SUPPORTED_P): Use it.
2243         (enum ix86_builtins): Add entries for 3Dnow builtins.
2244         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
2245         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
2246         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
2247         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
2248         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
2249         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
2250         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
2251         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
2252         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
2253         sfence_insn, prefetch): Make these available if TARGET_SSE or
2254         TARGET_3DNOW_A.
2256 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
2258         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
2259         ix86_va_start, ix86_build_va_list): Declare.
2260         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
2261         ix86_va_start, ix86_build_va_list): New global functions.
2262         * i386.md (sse_prologue_save_insn): New insn.
2263         (sse_prologue_save): New expander.
2264         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
2265         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
2267 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2269         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
2270         Use size_t everywhere, make definitions consistent with
2271         prototypes.
2273 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
2275         * gcse.c (replace_store_insn): Use delete_insn.
2276         * loop.c (move_movables): Likewise; avoid delete_insn
2277         from clobbering notes moved elsewhere.
2278         (check_dbra_loop): Use delete_insn.
2279         * ssa.c (convert_from_ssa): Likewise.
2280         * cse.c (cse_insn): Use delete_insn.
2282 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2284         * cpphash.h (struct cpp_buff): Make unsigned.
2285         (_cpp_get_buff): Take length of size_t.
2286         (_cpp_unaligned_alloc): New.
2287         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
2288         (struct cpp_reader): Remove ident_pool.  Add u_buff.
2289         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
2290         (cpp_destroy): Destroy u_buff, not ident_pool.
2291         * cpplex.c (parse_number, parse_string, save_comment,
2292         cpp_token_as_text): Update to use the unaligned buffer.
2293         (new_buff): Make unsigned.
2294         (_cpp_unaligned_alloc): New.
2295         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
2296         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
2297         Similarly.
2298         (collect_args): Make unsigned.
2300 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
2302         * cpplex.c (cpp_output_token): Use a putc loop for
2303         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
2305         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
2306         * configure, config.in: Regenerate.
2307         * system.h: Replace fwrite and fprintf with their unlocked
2308         variants if available.
2310 2001-09-27  Richard Henderson  <rth@redhat.com>
2312         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
2313         in favour of .eh_frame.
2315 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
2317         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
2318         to macros.
2319         (LIBCALL_VALUE): Likewise.
2321 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2323         * cpphash.h: Update comment.
2324         * cpplex.c: Update comments.
2325         (_cpp_can_paste): Remove.
2326         * cpplib.h (_cpp_can_paste): Remove.
2327         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
2328         lexer rather than _cpp_can_paste.
2330 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2332         * doc/cppinternals.texi: Update.
2334 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2336         * cpphash.h (struct cpp_pool): Remove locks and locked.
2337         (struct cpp_context): Add member buff.
2338         (struct cpp_reader): Remove member argument_pool.
2339         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2340         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
2341         * cpplex.c (chunk_suitable): Remove pool argument.
2342         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
2343         (new_buff, _cpp_extend_buff): Update.
2344         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
2345         which buffer is returned.
2346         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
2347         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2348         * cppmacro.c (lock_pools, unlock_pools): Remove.
2349         (push_ptoken_context): Take a _cpp_buff.
2350         (enter_macro_context): Pool locking removed.
2351         (replace_args): Use a _cpp_buff for the replacement list with
2352         arguments replaced.
2353         (push_token_context): Clear buff.
2354         (expand_arg): Use _cpp_pop_context.
2355         (_cpp_pop_context): Free a context's buffer, if any.
2357 2001-09-26  DJ Delorie  <dj@redhat.com>
2359         * c-typeck.c (digest_init): Check for sizeless arrays.
2361 2001-09-26  Richard Henderson  <rth@redhat.com>
2363         * optabs.c (init_one_libfunc): Create a dummy function type
2364         instead of using error_mark_node.
2366 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2368         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
2369         _cpp_extend_buff, _cpp_free_buff): New.
2370         (struct cpp_reader): New member free_buffs.
2371         * cppinit.c (cpp_destroy): Free buffers.
2372         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
2373         _cpp_extend_buff, _cpp_free_buff): New.
2374         * cpplib.h (struct cpp_options): Remove unused member.
2375         * cppmacro.c (collect_args): New.  Combines the old parse_arg
2376         and parse_args.  Use _cpp_buff for memory allocation.
2377         (funlike_invocation_p, replace_args): Update.
2379 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
2381         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
2383 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
2385         * except.c (sjlj_mark_call_sites): Change address inside sequence.
2387 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2389         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
2390         glibc.
2392 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
2393             Jim Wilson  <wilson@redhat.com>
2395         * doc/install.texi (Specific, ia64-*-linux): Document.
2397 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2399         * Makefile.in (cfgrtl.o): Add.
2400         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2401         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2402         free_aux_for_edge): Declare.
2403         * cfg.c
2404         (HAVE_return): Undefine.
2405         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2406         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2407         free_aux_for_edge): New global functions.
2408         (first_delete_block): New static variable.
2409         (init_flow): Clear first_delete_block.
2410         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
2411          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
2412          try_redirect_by_replacing_jump, last_loop_beg_note,
2413          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
2414          delete_insn, delete_insn_chain, create_basic_block_structure,
2415          create_basic_block, flow_delete_block, compute_bb_for_insn,
2416          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
2417          set_block_for_new_insns, split_block, merge_blocks_nomove,
2418          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
2419          redirect_edge_and_branch, force_nonfallthru_and_redirect,
2420          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
2421          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
2422          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
2423          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2424          purge_all_dead_edges): Move to ....
2425         * cfgrtl.c: New file; .... Here.
2427         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
2428         (reroder_basic_block): Use alloc_aux_for_blocks.
2429         * predict.c (estimate_bb_frequencies): Likewise; use
2430         alloc_aux_for_edges.
2431         * profile.c (compute_branch_probabilities): Likewise.
2432         (branch_prob): Likewise.
2433         * reg-stack.c (reg_to_stack): Likewise.
2435         * emit-rtl.c (emit_insns_after): Never return NULL.
2437         * basic-block.h (set_block_for_new_insns): Delete.
2438         * cfgrtl.c (set_block_for_new_insns): Delete.
2440         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
2441         calls when crossjumping.
2443         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
2444         * unroll.c (copy_loop_body): Use delete_insn.
2446         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
2447         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
2448         keep_stack_depressed): Likewise.
2449         * gcse.c (cprop_cc0_jump): Likewise.
2450         * local-alloc.c (update_equiv_regs): Likewise.
2451         * loop.c (scan_loop, loop_delete_insns): Likewise.
2452         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
2453         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
2454         delete_output_reload, delete_address_reloads_1,
2455         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
2456         Likewise.
2457         * sibcall.c (replace_call_placeholder): Likewise.
2458         * cse.c (cse_insn): Likewise.
2460 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2462         From Graham Stott  <grahams@redhat.com>
2463         (def_builtin): Only define builtins appropriate for target_flags.  All
2464         callers changed.
2465         (builtin_decsription): Add new field mask which is used to determine
2466         when to define the builtin via the macro def_builtin.
2468         (bdesc_comi): Initialise new mask fields.
2469         (bdesc_2srg): Likewise.
2470         (bdesc_1arg): Likewise.
2472         * config/i386/i386.c (ix86_init_builtins): Correct return type
2473         building v4hi_ftype_v4hi_int_int tree node.
2474         (ix86_expand_sse_comi): Fix typo swapping operands.
2475         Don't swap comparision condition, it is already swapped.
2476         (ix86_expand_sse_compare): Before swapping operands
2477         move operand 1 into new rtx and not the target rtx.
2478         Don't swap comparison condition, it is already swapped.
2479         Always check whether we need to create a new TARGET.
2481         * config/i386/i386.md: (sse_comi) Fix typos.
2482         (sse_ucomi): Likewise.
2483         (cvtss2si): Fix operand 0 contraint.
2484         (cvttss2si): Likewise.
2485         (sse_unpckhps): Fix mode for operand 2.
2486         (sse_unpcklps): Likewise.
2488 2001-09-25  Graham Stott  <grahams@redhat.com>
2490         * sibcall.c (skip_copy_to_return_value): Tighten return value
2491         copy check.
2493 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
2495         * rs6000.c (lwa_operand): Address must be word aligned.
2497 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2499         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
2500         number has been set.
2501         (type_hash_mark): Mark type itself.
2503 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2505         * c-lex.c (cb_def_pragma): Update.
2506         (c_lex): Update, and skip padding.
2507         * cppexp.c (lex, parse_defined): Update, remove unused variable.
2508         * cpphash.h (struct toklist): Delete.
2509         (union utoken): New.
2510         (struct cpp_context): Update.
2511         (struct cpp_reader): New members eof, avoid_paste.
2512         (_cpp_temp_token): New.
2513         * cppinit.c (cpp_create_reader): Update.
2514         * cpplex.c (_cpp_temp_token): New.
2515         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
2516         (cpp_output_token): Don't print leading whitespace.
2517         (cpp_output_line): Update.
2518         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
2519         do_include_common, do_line, do_ident, do_pragma,
2520         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
2521         parse_assertion): Update.
2522         (get_token_no_padding): New.
2523         * cpplib.h (CPP_PADDING): New.
2524         (AVOID_LPASTE): Delete.
2525         (struct cpp_token): New union member source.
2526         (cpp_get_token): Update.
2527         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
2528         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
2529         replace_args, quote_string, stringify_arg, parse_arg, next_context,
2530         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
2531         _cpp_backup_tokens, _cpp_create_definition): Update.
2532         (push_arg_context): Delete.
2533         (padding_token, push_token_context, push_ptoken_context): New.
2534         (make_string_token, make_number_token): Update, rename.
2535         (cpp_get_token): Update to handle tokens as pointers to const,
2536         and insert padding appropriately.
2537         * cppmain.c (struct printer): New member prev.
2538         (check_multiline_token): Constify.
2539         (do_preprocessing, cb_line_change): Update.
2540         (scan_translation_unit): Update to handle spacing.
2541         * scan-decls.c (get_a_token): New.
2542         (skip_to_closing_brace, scan_decls): Update.
2543         * fix-header.c (read_scan_file): Update.
2545         * doc/cpp.texi: Update.
2547 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2549         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
2550         leak by passing malloc'ed pointer to reconcat, not concat.
2552 2001-09-24  DJ Delorie  <dj@redhat.com>
2554         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
2556 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
2558         * flow.c (delete_dead_jumptables): Delete jumptable if the only
2559         reference is from the literal pool.
2561 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
2563         * doc/install.texi (Final install): Request additional information
2564         in mail about successful builds.
2566 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2568         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
2569         initial value of return pointer register instead of value in frame-20.
2570         Revise comments.
2572 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2574         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
2575         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
2576         the libcall if there isn't a referenced identifier for the symbol.
2578 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2580         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
2581         non 64-bit machines.  Use these as a plabel for the trampoline.
2582         (TRAMPOLINE_SIZE): Adjust size for new words.
2583         (INITIALIZE_TRAMPOLINE): Initialize new words.
2584         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
2585         pointer to the plabel in the trampoline.
2587 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2589         * pa.c (function_arg): Pass floating arguments in both general and
2590         floating registers in indirect (dynamic) calls when generating code
2591         for the 32 bit ABI and the HP assembler.
2593 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2595         * doc/install.texi: Markup fixes.
2596         Use Solaris 2, SunOS 4 as appropriate.
2597         (Specific, *-*-solaris2*): Explain this.
2598         Unconditionally warn against /usr/ucb tools.
2599         Remove Sun as warning, obsolete.
2600         Move X11 header bug workaround here, update patches.
2601         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
2602         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
2604 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
2606         * errors.h (warning, error, fatal, internal_error): Don't mark
2607         with ATTRIBUTE_PRINTF_n.
2608         * toplev.h (internal_error, fatal_io_error, warning, error,
2609         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
2610         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
2611         Likewise.
2613 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2615         * function.c (pop_function_context_from): var_refs_queue
2616         and temp slots now in GC memory.
2617         (mark_function_status, free_after_compilation): Likewise;
2618         also struct function now in GC memory.
2619         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
2620         (combine_temp_slots): Likewise.
2621         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
2622         (prepare_function_start): Use GC memory for struct function.
2623         (mark_temp_slot): Deleted.
2624         (gcc_mark_struct_function): struct function now in GC memory.
2626         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
2627         code for division, not modulus.
2629         * rtl.def (MEM): Remove obsolete part of comment.
2631 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
2633         * c-format.c (init_function_format_info): Check __builtin_printf
2634         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
2635         in gnu89 mode.
2637 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2639         * c-common.c (format_attribute_table): Remove decl.
2640         * tree.h (format_attribute_table, lang_attribute_table): New decls.
2641         (lang_attribute_common): Likewise.
2643         * function.c (fix_lexical_address): Use set_mem_alias_set.
2644         (expand_function_start): Likewise.
2645         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
2647         * varasm.c (output_constant): Fix unused variable warning.
2649         * attribs.c: New file, from c-common.c.
2650         (attribute_tables): Now four elements.
2651         (format_attribute_table, lang_attribute_common): New variables.
2652         (init_attributes): Reflect above changes.
2653         (handle_mode_attribute): Delete check for wider than uintmax.
2654         * c-common.c: Delete parts moved to attribs.c.
2655         (enum attrs): Deleted; unused.
2656         (c_format_attribute_table): New variable.
2657         (c_common_lang_init): Initialize format_attribute_table with it.
2658         * c-common.h (decl_attributes): Remove decl.
2659         * tree.h (decl_attribute): Move it to here.
2660         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
2661         (attribs.o): New rule.
2663 2001-09-22  Andreas Jaeger  <aj@suse.de>
2665         * builtins.c (c_getstr): Remove unused variable.
2667 2001-09-21  Richard Henderson  <rth@redhat.com>
2669         * reload1.c (reload): Use delete_insn instead of splatting
2670         NOTE_INSN_DELETED.
2672 2001-09-21  Richard Henderson  <rth@redhat.com>
2674         * reload.c (push_secondary_reload): Don't check for "=" in output
2675         constraint after ""->ALL_REGS check.
2677 2001-09-21  Richard Henderson  <rth@redhat.com>
2679         * predict.c (expected_value_to_br_prob): Use pc_set.
2681         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
2682         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
2684 2001-09-21  Richard Henderson  <rth@redhat.com>
2686         * rtl.h (LCT_RETURNS_TWICE): New.
2687         * calls.c (emit_call_1): Set current_function_calls_setjmp for
2688         ECF_RETURNS_TWICE.
2689         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
2690         to ECF_RETURNS_TWICE.
2691         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
2692         call to setjmp.
2694         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
2696         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
2697         (JMP_BUF_SIZE): New.
2699 2001-09-21  Richard Henderson  <rth@redhat.com>
2701         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
2702         to R8_REGS.
2704 2001-09-21  Richard Henderson  <rth@redhat.com>
2706         * tree.def (FDESC_EXPR): New.
2707         * expr.c (expand_expr): Handle it.
2708         * varasm.c (initializer_constant_valid_p): Likewise.
2709         (output_constant): Likewise.
2710         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2711         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2712         (ASM_OUTPUT_FDESC): New.
2713         * doc/tm.texi: Document the new macros.
2715 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2717         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
2718         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
2719         once merging is complete.
2721 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2723         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
2725 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2727         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
2728         that would be invalid after a merge.
2730 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
2732         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
2733         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
2734         remove some labels.
2735         (flow_delete_insn): This one.
2736         (delete_insn_chain): Rename from ...; do not care labels.
2737         (flow_delete_insn_chain): ... this one.
2738         (flow_delete_block): Remove the insns one BB has been expunged.
2739         (merge_blocks_nomove): Likewise.
2740         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
2741         updating BB boundaries.
2742         (tidy_fallthru_edge): Likewise.
2743         (commit_one_edge_insertion): Likewise.
2744         * cfgbuild.c (find_basic_block): Likewise.
2745         (find_basic_blocks_1): Likewise.
2746         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
2747         (try_crossjump_to_edge): Likewise.
2748         (try_optimize_cfg): Likewise.
2749         * cse.c (delete_trivially_dead_insns): Likewise.
2750         * df.c (df_insn_delete): Likewise.
2751         * doloop.c (doloop_modify): Use delete_related_insns.
2752         * emit-rtl.c (try_split): Likewise.
2753         (remove_insn): Update BB boundaries.
2754         * expect.c (connect_post_landing_pads): Use delete_related_insns.
2755         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
2756         updating BB boundaries.
2757         (propagate_block_delete_insn): Likewise.
2758         (propagate_block_delete_libcall): Likewise.
2759         * function.c (delete_handlers): Use delete_related_insns.
2760         (thread_prologue_and_epilogue_insns): Likewise.
2761         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
2762         * genpeep.c (gen_peephole): Use delete_related_insns.
2763         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
2764         BB boundaries.
2765         (find_cond_trap): Likewise.
2766         * integrate.c (save_for_inline): Use delete_related_insns.
2767         (copy_insn_list): Likewise.
2768         * jump.c (pruge_linie_number_notes): Likewise.
2769         (duplicate_loop_exit_test): Likewise.
2770         (delete_computation): Likewise.
2771         (delete_related_insn): Rename from ...; use delete_insn
2772         (delete_insn): ... this one.
2773         (redirect_jump): Use delete_related_insns.
2774         * loop.c (scan_loop): Likewise.
2775         (move_movables): Likewise.
2776         (find_and_verify_loops): Likewise.
2777         (check_dbra_loop): Likewise.
2778         * recog.c (peephole2_optimize): Likewise.
2779         * reg-stack.c (delete_insn_for_stacker): Remove.
2780         (move_for_stack_reg): Use delete_insn.
2781         * regmove.c (combine_stack_adjustments_for_block): Likewise.
2782         * reload1.c (delete_address_reloads): Use delete_related_insns.
2783         (fixup_abnormal_edges): Use delete_insn.
2784         * recog.c (emit_delay_sequence): Use delete_related_insns.
2785         (delete_from-delay_slot): Likewise.
2786         (delete_scheduled_jump): likewise.
2787         (optimize_skip): Likewise.
2788         (try_merge_delay_insns): Likewise.
2789         (full_simple_delay_slots): Likewise.
2790         (fill_slots_from_thread): Likewise.
2791         (relax_delay_slots): Likewise.
2792         (make_return_insns): Likewise.
2793         (dbr_schedule): Likewise.
2794         * rtl.h (delete_insn): Rename to delete_related_insns.
2795         (delete_insn, delete_insn_chain): New prototypes.
2796         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
2797         by df_insn_delete already.
2798         * ssa-dce.c (delete_insn_bb): Use delete_insn.
2799         * ssa.c (convert_from_ssa): Use delete_related_insns.
2800         * unroll.c (unroll_loop): Likewise.
2801         (calculate_giv_inc): Likewise.
2802         (copy_loop_body): Likewise.
2804         * i386-protos.h (ix86_libcall_value, ix86_function_value,
2805         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2806         ix86_return_in_memory, ix86_function_value): Declare.
2807         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
2808         new static valurables.
2809         (x86_64_reg_class): New enum
2810         (x86_64_reg_class_name): New array.
2811         (classify_argument, examine_argument, construct_container,
2812          merge_classes): New static functions.
2813         (optimization_options): Enable flag_omit_frame_pointer and disable
2814         flag_pcc_struct_return on 64bit.
2815         (ix86_libcall_value, ix86_function_value,
2816         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2817         ix86_return_in_memory, ix86_function_value): New global functions.
2818         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
2819         (function_arg_advance): Handle x86_64 passing conventions.
2820         (function_arg): Likewise.
2821         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
2822         (RETURN_IN_MEMORY): Move offline.
2823         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
2824         (FUNCTION_VALUE_REGNO_P): New macro.
2825         (FUNCTION_ARG_REGNO_P): Move offline.
2826         (struct ix86_args): Add maybe_vaarg.
2827         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
2828         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
2830 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
2832         * s390.md: Changed attributes for scheduling.
2833         * s390.c: (s390_adjust_cost, s390_adjust_priority)
2834         Changed scheduling
2836 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2838         Table-driven attributes.
2839         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
2840         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
2841         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
2842         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
2843         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
2844         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
2845         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
2846         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2847         * tree.h (struct tree_decl): Change machine_attributes to
2848         attributes.
2849         * doc/c-tree.texi: Document that all attributes are now attached
2850         to decls and types.
2851         * c-common.c (add_attribute, attrtab, attrtab_idx,
2852         default_valid_lang_attribute, valid_lang_attribute): Remove.
2853         (attribute_tables, attributes_initialized,
2854         c_common_attribute_table, default_lang_attribute_table): New
2855         variables.
2856         (handle_packed_attribute, handle_nocommon_attribute,
2857         handle_common_attribute, handle_noreturn_attribute,
2858         handle_unused_attribute, handle_const_attribute,
2859         handle_transparent_union_attribute, handle_constructor_attribute,
2860         handle_destructor_attribute, handle_mode_attribute,
2861         handle_section_attribute, handle_aligned_attribute,
2862         handle_weak_attribute, handle_alias_attribute,
2863         handle_no_instrument_function_attribute,
2864         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
2865         handle_no_limit_stack_attribute, handle_pure_attribute): New
2866         functions.
2867         (init_attributes, decl_attributes): Rewrite to implement
2868         table-driven attributes.
2869         * c-common.h (enum attribute_flags): Move to tree.h.
2870         * c-format.c (decl_handle_format_attribute,
2871         decl_handle_format_arg_attribute): Rename to
2872         handle_format_attribute and handle_format_arg_attribute.  Update
2873         for table-driven attributes.
2874         * c-common.h (decl_handle_format_attribute,
2875         decl_handle_format_arg_attribute): Remove prototypes.
2876         (handle_format_attribute, handle_format_arg_attribute): Add
2877         prototypes.
2878         * c-decl.c (grokdeclarator): Handle attributes nested inside
2879         declarators.
2880         * c-parse.in (setattrs, maybe_setattrs): Remove.
2881         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
2882         Update to handle nested attributes properly.
2883         (maybe_resetattrs, after_type_declarator,
2884         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
2885         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
2886         properly.
2887         (make_pointer_declarator): Update to handle nested attributes
2888         properly.
2889         * doc/extend.texi: Update documentation of limits of attributes
2890         syntax.  Warn about problems with attribute semantics in C++.
2891         * target.h (struct target): Remove valid_decl_attribute and
2892         valid_type_attribute.  Add attribute_table and
2893         function_attribute_inlinable_p.
2894         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
2895         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
2896         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
2897         Add.
2898         (TARGET_INITIALIZER): Update.
2899         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
2900         definition.
2901         (function_attribute_inlinable_p): New function.  Check for the
2902         presence of any machine attributes before using
2903         targetm.function_attribute_inlinable_p.
2904         (function_cannot_inline_p): Update.
2905         * Makefile.in (integrate.o): Update dependencies.
2906         * doc/tm.texi: Update documentation of target attributes and
2907         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
2908         * tree.c (default_valid_attribute_p, valid_machine_attribute):
2909         Remove.
2910         (default_target_attribute_table,
2911         default_function_attribute_inlinable_p): New.
2912         (lookup_attribute): Update comment to clarify handling of multiple
2913         attributes with the same name.
2914         (merge_attributes, attribute_list_contained): Allow multiple
2915         attributes with the same name but different arguments to appear in
2916         the same attribute list.
2917         * tree.h (default_valid_attribute_p): Remove prototype.
2918         (struct attribute_spec): New.
2919         (default_target_attribute_table): Declare.
2920         (enum attribute_flags): Move from c-common.h.  Add
2921         ATTR_FLAG_TYPE_IN_PLACE.
2922         (default_function_attribute_inlinable_p): Declare.
2923         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
2924         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2925         (TARGET_ATTRIBUTE_TABLE): Define.
2926         (vms_attribute_table): New.
2927         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
2928         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2929         (TARGET_ATTRIBUTE_TABLE): Define.
2930         (arc_attribute_table, arc_handle_interrupt_attribute): New.
2931         * config/arm/arm.c (arm_valid_type_attribute_p,
2932         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
2933         Remove.
2934         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
2935         define.
2936         (TARGET_ATTRIBUTE_TABLE): Define.
2937         (arm_attribute_table, arm_handle_fndecl_attribute,
2938         arm_handle_isr_attribute): New.
2939         * config/avr/avr.c (avr_valid_type_attribute,
2940         avr_valid_decl_attribute): Remove.
2941         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
2942         define.
2943         (TARGET_ATTRIBUTE_TABLE): Define.
2944         (avr_attribute_table, avr_handle_progmem_attribute,
2945         avr_handle_fndecl_attribute): New.
2946         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
2947         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2948         (TARGET_ATTRIBUTE_TABLE): Define.
2949         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
2950         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
2951         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2952         (TARGET_ATTRIBUTE_TABLE): Define.
2953         (h8300_attribute_table, h8300_handle_fndecl_attribute,
2954         h8300_handle_eightbit_data_attribute,
2955         h8300_handle_tiny_data_attribute): New.
2956         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
2957         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
2958         Remove prototypes.
2959         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
2960         declarations.
2961         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
2962         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
2963         define.
2964         (TARGET_ATTRIBUTE_TABLE): Define.
2965         (ix86_attribute_table, ix86_handle_cdecl_attribute,
2966         ix86_handle_regparm_attribute): New.
2967         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
2968         i386_pe_valid_type_attribute_p): Remove.
2969         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
2970         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
2971         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2972         (TARGET_ATTRIBUTE_TABLE): Define.
2973         (ia64_attribute_table): New.
2974         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
2975         interrupt_ident2, model_ident1, model_ident2): Remove.
2976         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2977         (TARGET_ATTRIBUTE_TABLE): Define.
2978         (init_idents): Update.
2979         (m32r_attribute_table, m32r_handle_model_attribute): New.
2980         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
2981         Remove.
2982         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2983         (TARGET_ATTRIBUTE_TABLE): Define.
2984         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
2985         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
2986         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2987         (TARGET_ATTRIBUTE_TABLE): Define.
2988         (mcore_attribute_table, mcore_handle_naked_attribute): New.
2989         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
2990         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2991         (TARGET_ATTRIBUTE_TABLE): Define.
2992         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
2993         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
2994         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2995         (TARGET_ATTRIBUTE_TABLE): Define.
2996         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
2997         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
2998         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2999         (TARGET_ATTRIBUTE_TABLE): Define.
3000         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
3001         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
3002         New.
3003         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
3004         Remove.
3005         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
3006         (TARGET_ATTRIBUTE_TABLE): Define.
3007         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
3008         New.
3009         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
3010         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3011         (TARGET_ATTRIBUTE_TABLE): Define.
3012         (v850_attribute_table, v850_handle_interrupt_attribute,
3013         v850_handle_data_area_attribute): New.
3014         * config/v850/v850-c.c (mark_current_function_as_interrupt):
3015         Return void.  Call decl_attributes instead of
3016         valid_machine_attribute.
3018 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
3020         * sh-protos.h (sh_pr_n_sets): Declare.
3021         * sh.c (calc_live_regs): If the initial value for PR has been copied,
3022         look at the copy to determine if PR needs to be saved.
3023         sh_pr_n_sets: New function.
3024         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
3025         (ALLOCATE_INITIAL_VALUE): Define.
3027         * sh.c (initial_elimination_offset):
3028         Fix RETURN_ADDRESS_POINTER_REGNUM case.
3030 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
3032         * integrate.c (allocate_initial_values): New function.
3033         * integrate.h (allocate_initial_values): Declare.
3034         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
3035         here...
3036         * reload1.c (reload): And initialization of reg_equiv_memory_loc
3037         from here...
3038         * toplev.c (rest_of_compilation): To here.
3039         Call allocate_initial_values.
3040         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
3042 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3044         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
3046 2001-09-20  DJ Delorie  <dj@redhat.com>
3048         * c-typeck.c (really_start_incremental_init): Discriminate
3049         between zero-length arrays and flexible arrays.
3050         (push_init_level): Detect zero-length arrays and handle them
3051         like fixed-sized arrays.
3052         * expr.c (store_constructor): Handle zero-length arrays and
3053         flexible arrays correctly.
3054         * doc/extend.texi: Update zero-length array notes.
3056 2001-09-20  Jim Wilson  <wilson@redhat.com>
3058         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
3059         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
3060         for issue port conflicts.
3061         (cycle_end_fill_slots): TYPE_L instructions take two slots.
3063 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
3065         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
3066         on ia64.
3068 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3070         * fold-const.c (hashtab.h): Include.
3071         (int_const_binop): Remove FORSIZE arg and compute from type; all
3072         callers changed.
3073         Call size_int_type_wide for all single-word constants.
3074         (size_htab_hash, size_htab_eq): New functions.
3075         (size_int_type_wide): Rework to use hash table.
3076         * ggc-common.c (hashtab.h): Include.
3077         (struct d_htab_root): New struct.
3078         (d_htab_roots): New variable.
3079         (ggc_add_deletable_htab, ggc_htab_delete): New functions
3080         (ggc_mark_roots): Handle deletable htabs.
3081         * ggc-page.c (ggc_marked_p): New function.
3082         * ggc-simple.c (ggc_marked_p): Likewise.
3083         * ggc.h: Reformatting throughout.
3084         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
3085         * tree.c (init_obstacks): Make type_hash_table a deletable root.
3086         (type_hash_add): Allocate struct type_hash from GC memory.
3087         (mark_hash_entry, mark_type_hash): Deleted.
3088         (type_hash_marked_p, type_hash_mark): New functions.
3089         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
3091 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
3093         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
3094         than SImode.
3096 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3098         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
3099         array-too-large test for signed sizetype.
3101 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3103         * i386.md (indirect_jump): Allow Pmode operand.
3104         (tablejump): LIkewise; perform expansion to 64bit mode.
3105         * i386.c (symbolic_operand): Allow 64bit PIC references.
3106         (pic_symbolic_operand): Likewise.
3107         (ix86_find_base_term): Strip the 64bit PIC references.
3108         (legitimate_pic_address_disp_p): Handle 64bit PIC.
3109         (legitimize_pic_address): Likewise.
3110         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
3111         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
3113 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
3115         * stringpool.c (get_identifier_with_length): New function.
3116         * tree.h (get_identifier_with_length): New prototype.
3118 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
3119             David Edelsohn  <edelsohn@gnu.org>
3121         Revert:
3122         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
3123         already sign-extended.
3125         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
3126         * config/rs6000/rs6000.c (logical_operand): Always compare op as
3127         HOST_WIDE_INT.
3128         (rs6000_emit_set_long_const): Avoid unnecessary shift.
3129         (output_profile_hook): Declare label_name const.
3130         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
3131         to match constraints.
3133 2001-09-19  Stan Shebs  <shebs@apple.com>
3135         * alias.c: Fix typos in comments.
3136         * sched-rgn.c (init_ready_list): Ditto.
3137         * unwind-dw2.c (uw_frame_state_for): Ditto.
3138         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
3139         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
3140         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
3142 2001-09-19  Richard Henderson  <rth@redhat.com>
3144         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
3145         to the exit block.
3146         * Makefile.in (cfg.o): Depend on TM_P_H.
3148 2001-09-19  Richard Henderson  <rth@redhat.com>
3150         * config/alpha/alpha.c (local_symbol_p): Split out from ...
3151         (local_symbolic_operand): ... here.
3152         (small_symbolic_operand): Check mode.
3153         (global_symbolic_operand): New.
3154         (input_operand): Reject symbolics if explicit relocs.
3155         (call_operand): Tidy.
3156         (alpha_legitimize_address): Use movdi_er_high_g.
3157         (alpha_expand_mov): Likewise.
3158         * config/alpha/alpha-protos.h: Update.
3159         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3160         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
3161         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
3162         (UNSPECV_LDGP2): Remove.
3163         (all call patterns): Use 's' not 'i' for symbolic constraint.
3164         (call_osf call_value_osf): Use call_operand.
3165         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
3166         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
3167         (prologue_ldgp_1_er): Remove.
3168         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
3169         (builtin_setjmp_receiver_er patterns): Use them.
3170         (exception_receiver_er): Likewise.
3172 2001-09-19  Richard Henderson  <rth@redhat.com>
3174         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
3176         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
3177         and NON_LOCAL_GOTO notes.
3178         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
3179         copy over CALL_INSN_FUNCTION_USAGE.
3181 2001-09-18  Catherine Moore  <clm@redhat.com>
3183         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
3184         Define as 0.
3186 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
3188         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
3189         new-style tm_file specification.  Specify correct tm_p_file,
3190         md_file, and out_file for s390x.
3192         * config/s390/linux.h, linux64.h:  Don't include other target
3193         macro header files.  Now handled via tm_file.
3195         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
3196         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
3197         are defined before use.
3199 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
3201         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
3202         code generation only for Gnu assembler.
3204 2001-09-18  Catherine Moore  <clm@redhat.com>
3206         * config/stormy16 (LIB_SPEC): Remove -lnosys.
3208 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
3210         * config/mips/mips.c (mips_frame_set): New.
3211         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
3212         a parallel frame-related expression with a set for each register.
3214 2001-09-18  Philip Blundell  <philb@gnu.org>
3216         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
3217         header files.
3219 2001-09-17  Dale Johannesen  <dalej@apple.com>
3221         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
3222         * config/rs6000/aix.h (FIXED_R2): Define.
3223         * config/rs6000/darwin.h (FIXED_R2): Define.
3224         * config/rs6000/sysv4.h (FIXED_R2): Define.
3226 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
3228         * except.c (dw2_build_landing_pads): New local
3229         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
3230         barrier after clobbers.  Fixes c++/4012.
3232 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3234         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
3236 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3238         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
3239         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
3241 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3243         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
3244         alloca/strcpy.
3246 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3248         * cpphash.h (_cpp_lex_direct): New.
3249         * cpplex.c (_cpp_lex_token): Update.
3250         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
3251         and increment that pointer.
3252         * cppmacro.c (alloc_expansion_token): New.
3253         (lex_expansion_token): Lex macro expansion directly into
3254         macro storage.
3256 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
3258         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
3260 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
3262         * basic-block.h (free_bb_for_insn): Declare.
3263         * bb-reorder.c (label_for_bb): Use block_label.
3264         (emit_jump_to_block_after): Remove.
3265         (insert_intra_1): Do not update block_for_insn.
3266         (insert_inter_bb_scope_notes): Likewise; update bb->end
3267         * cfg.c (free_bb_for_insn): New.
3268         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
3269         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
3270         (commit_one_edge_insertion): Likewise.
3271         (commit_one_edge_insertion): Do not update BB boundary.
3272         (commit_edge_insertions): Do not call compute_bb_for_insn.
3273         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
3274         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
3275         (merge_blocks_move_successor_nojumps): Likewise.
3276         (try_crossjump_to_edge): Do not update block_for_insn.
3277         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
3278         * df.c (df_pattern_emit_later): Do not update BB boundary.
3279         (df_jump_pattern_emit_after): Likewise.
3280         (df_insn_move_before): Use emit_insn_before.
3281         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
3282          properly.
3283         (add_insn_after, add_insn_before, emit_insns_after): Update BB
3284         boundaries and basic_block_for_insn.
3285         (reorder_insns_nobb): Rename from reorder_insns.
3286         (reorder_insns): New.
3287         (emit_block_insn_before, emit_block_insn_after): Kill.
3288         * flow.c (check_function_return_warnings): Do not call
3289         compute_bb_for_insn; Do not free basic_block_for_insn.
3290         (attempt_auto_inc): Do not update basic_block_for_insn.
3291         * function.c (emit_return_into_block): Likewise;
3292         do not update BB boundaries.
3293         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
3294         (insert_insn_end_bb): Use emit_insn_before; Likewise.
3295         (pre_insert_copy_insn): Likewise.
3296         (update_ld_motion_notes): Likewise.
3297         (insert_insn_start_bb): Likewise.
3298         (replace_store_insn): Likewise.
3299         * ifcvt.c (noce_process_if_block): Likewise.
3300         (if_convert): Do not call compute_bb_for_insn.
3301         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
3302         Use emit_insn_before and emit_insn_after.
3303         * recog.c (split_all_insns): Do not update BB boundaries;
3304         Do not call compute_bb_for_insn.
3305         (peephole2_optimize): Do not update BB boundaries.
3306         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
3307         emit_insn_before.
3308         (emit_swap_insn): Likewise.
3309         (convert_regs_1): Likewise.
3310         * reload1.c (reload): Call compute_bb_for_insn.
3311         * rtl.h (reorder_insns_nobb): Declare.
3312         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
3313         * toplev.c (rest_of_compilation): Call free_bb_for_insn
3314         at places CFG is invalidated; do not call compute_bb_for_insn.
3316         * cfg.c (expunge_block): Invalidate BB structure.
3318         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
3319         array.
3321         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
3323 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3325         * cpphash.h (_cpp_lex_token): Update prototype.
3326         * cpplex.c (_cpp_lex_token): New prototype.
3327         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
3328         lex_macro_node, read_flag, do_pragma_poison): Update.
3329         * cppmacro.c (cpp_get_token, parse_params,
3330         lex_expansion_token): Update.
3332 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3334         * cppmain.c (scan_translation_unit): Don't worry about
3335         putting a space after hashes.
3336         * cpplib.c (directive_diagnostics): New.
3337         (_cpp_handle_directive): Update to use directive_diagnostics.
3338         (run_directive): Don't toggle prevent_expansion.
3339         (do_line): Backup in case of the line extension.
3340         * cpplib.h (cpp_lexer_pos): Remove.
3341         * cppmacro.c (_cpp_create_definition): Precede a leading #
3342         with whitespace.
3344 2001-09-15  Richard Henderson  <rth@redhat.com>
3346         * c-typeck.c (comptypes): Handle zero-length arrays properly.
3348 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3350         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
3352 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3354         PR preprocessor/3571
3355         * tradcpp.c (handle_directive): Skip non-vertical space.
3357 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3359         * cppmain.c (setup_callbacks): Set line callback only
3360         if outputting preprocessed source.
3362 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3364         * collect2.c (main): Const-ification.
3365         * gcc.c (translate_options, process_command): Use xstrdup in
3366         lieu of xmalloc/strcpy.
3367         (main): Use concat in lieu of xmalloc/strcpy/strcat.
3369 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3371         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
3372         example.
3374 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3376         * scan-decls.c (scan_decls): Fix typo.
3378 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3380         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
3381         Split mlstring_pos into mls_line and mls_col.
3382         * cppinit.c (cpp_create_reader): Initialize line to 1.
3383         (cpp_destroy): Free tokenruns.
3384         (push_include): Don't update lexer_pos.
3385         * cpplex.c (unterminated, parse_string): Update.
3386         (lex_token): Don't update lexer_pos, update.
3387         * cpplib.c (if_stack): Save line instead of line + col.
3388         (start_directive, _cpp_do__Pragma, do_else, do_elif,
3389         push_conditional, _cpp_pop_buffer): Update.
3390         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
3391         (_cpp_create_definition): Update.
3393 2001-09-15  Eric Christopher  <echristo@redhat.com>
3395         * config/mips/abi64.h: Add support for MEABI.
3397 2001-09-15  Eric Christopher  <echristo@redhat.com>
3399         * config/mips/mips.md: Add unspec #2.
3400         (reload_indi): Use.
3401         (reload_outdi): Ditto.
3402         (reload_outsi): Ditto.
3403         (HILO_delay): New.
3405 2001-09-15  Eric Christopher  <echristo@redhat.com>
3406             Jason Eckhardt  <jle@redhat.com>
3408         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
3409         * config/mips/isa32-linux.h: New file.
3410         * config/mips/isa3264.h: Ditto.
3411         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
3412         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
3413         (output_block_mode): Support MEABI.
3414         (function_arg): Ditto. Fix floating point arg passing.
3415         (mips_va_start): Ditto.
3416         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
3417         processors.
3418         (mips_asm_file_start): Add new section to pass abi to gdb.
3419         (function_arg_pass_by_reference): Support MEABI.
3420         (mips_parse_cpu): Support mips32 and mips64 processors.
3421         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
3422         TARGET_MIPS5KC.  Support isa32 and isa64.
3423         (processor_type): Add r4kc, r5kc, r20kc.
3424         (GENERATE_MULT3_SI): New.
3425         (GENERATE_MULT3_DI): Ditto.
3426         (GENERATE_MULT3): Remove.
3427         (ISA_HAS_64BIT_REGS): Add isa == 64.
3428         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
3429         (ISA_HAS_MADD_MSUB): New.
3430         (ISA_HAS_CLZ_CLO): Ditto.
3431         (ISA_HAS_DCLZ_DCLO): Ditto.
3432         (ABI_GAS_ASM_SPEC): New.
3433         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
3434         (ASM_SPEC): Ditto.
3435         (LINK_SPEC): Ditto.
3436         (SUBTARGET_CC1_SPEC): Ditto.
3437         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3438         (PAD_VARARGS_DOWN): Support MEABI.
3439         (HARD_REGNO_NREGS): Move to mips.c.
3440         (ASM_OUTPUT_IDENT): Add #undef.
3441         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
3442         (mulsi3): Use GENERATE_MULT3_SI.
3443         (mulsi3_mult3): Ditto.  Support mips32, mips64.
3444         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
3445         (mul_sub_si): New pattern.
3446         (unnamed splitters): New.
3447         (muldi3): Use GENERATE_MULT3_DI.
3448         (muldi3_internal2): Ditto.
3449         (movdicc): Support mips32.
3450         * config/mips/t-isa3264: New file.
3452 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
3454         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
3455         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
3456         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
3458         * reorg.c (fill_slots_from_thread): After call to
3459         steal_delay_list_from_target, update own_thread as new_thread may
3460         have branched.
3462 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3464         * cpperror.c (print_location): Take line and column, for
3465         default positioning use the previously lexed token.
3466         (_cpp_begin_message): Take line and column.
3467         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3468         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
3469         * cpphash.h (_cpp_begin_message): Update prototype.
3470         * cppinit.c (push_include): Don't set output line.
3471         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
3472         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
3473         (do_pragma): Kludge for front ends.  Don't expand macros at all.
3474         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
3475         (struct cpp_token): Remove output_line.
3476         (struct cpp_callbacks): New member line_change.
3477         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
3478         cpp_get_token): Preserve BOL flag.
3479         (cpp_get_line): Remove.
3480         (_cpp_backup_tokens): Remove useless abort().
3481         * cppmain.c (cb_line_change): New.
3482         (scan_translation_unit): Don't worry about starting new lines here.
3483         * scan-decls.c (scan_decls): Update.
3484         * c-lex.c (c_lex, init_c_lex): Update.
3485         (cb_line_change, src_lineno): New.
3487 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
3489         * tree.c (append_random_chars): Generate the random
3490         characters in a reproducable fashion.
3492 2001-09-14  Richard Henderson  <rth@redhat.com>
3494         * config/i386/i386.c (internal_label_prefix): New.
3495         (internal_label_prefix_len): New.
3496         (override_options): Set them.
3497         (local_symbolic_operand): New.
3498         (legitimate_pic_address_disp_p): Use it.
3499         (legitimize_pic_address): Likewise.
3501 2001-09-14  Marc Espie <espie@openbsd.org>
3503         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
3504         correctly.
3506 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3508         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
3509         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
3511 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
3513         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
3514         invocation of SUBREG_REGNO_OFFSET.
3516         * haifa-sched.c: Fix typo in FSF copyright statement.
3517         * sched-deps.c: Fix typo in FSF copyright statement.
3518         * sched-ebb.c: Fix typo in FSF copyright statement.
3519         * sched-rgn.c: Fix typo in FSF copyright statement.
3520         * sched-vis.c: Fix typo in FSF copyright statement.
3522         * config.gcc: Move inclusion of arm elf specific header files
3523         from the files themselves into the tm_file variable.  Make
3524         sure that elfos.h is included before target specific elf
3525         headers.
3526         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
3527         already defined.
3528         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
3529         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
3530         ASM_OUTPUT_CASE_LABEL): Protect definition.
3531         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
3532         not already defined.
3533         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
3534         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
3535         Remove duplicate definition.
3536         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
3537         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
3538         (RDATA_SECTION_FUNCTION): Remove redundant definition.
3539         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
3540         Remove inclusion of arm/elf.h.
3541         * config/arm/unknown-elf.h: as for conix-elf.h.
3542         (STARTFILE_SPEC): Include crti.o and crtn.o.
3543         * config/arm/linux-elf.h: as for conix-elf.h.
3544         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
3545         * config/arm/strongarm-elf.h: Remove inclusion of
3546         unknown-elf.h.
3547         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
3548         * config/arm/unknown-elf-oabi.h: Remove inclusion of
3549         unknown-elf.h and elf.h.
3550         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
3551         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
3552         ASM_WEAKEN_LABEL): Remove redundant definition.
3553         * config/arm/elf.h: Test for inclusion of elfos.h
3554         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
3555         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
3556         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
3557         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
3558         redundant definition.
3559         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
3560         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
3561         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
3562         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
3563         Add rules to build crti.o and crtn.o
3564         * crti.asm: New file.
3565         * crtn.asm: New file.
3567 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3569         * c-parse.in (_yylex): Use _cpp_backup_tokens.
3570         * cpphash.h (struct tokenrun): Add prev.
3571         (struct lexer_state): Remove bol.
3572         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
3573         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
3574         : Remove.
3575         * cppinit.c (cpp_create_reader): Don't set bol.
3576         (cpp_destroy): Don't free lookaheads.
3577         * cpplex.c (lex_directive): Remove.
3578         (next_tokenrun): Update.
3579         (_cpp_lex_token): Clean up logic.
3580         (lex_token): Update to return a pointer to lexed token, since it
3581         can move to the start of the buffer.  Simpify newline handling.
3582         * cpplib.c (SEEN_EOL): Update.
3583         (skip_rest_of_line): Remove lookahead stuff.
3584         (end_directive): Line numbers are already incremented.  Revert
3585         to start of lexed token buffer if we can.
3586         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
3587         parse_answer): Use _cpp_backup_tokens.
3588         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
3589         instead.  Don't check for EOL.
3590         (do_include_common, do_line, do_pragma_system_header): Use
3591         skip_rest_of_line.
3592         * cpplib.h (BOL, _cpp_backup_tokens): New.
3593         * cppmacro.c (save_lookahead_token, take_lookahead_token,
3594         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
3595         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
3596         (builtin_macro): Don't use cpp_get_line.
3597         (cpp_get_line): Short term kludge.
3598         (parse_arg): Handle directives in arguments here.  Back up when
3599         appropriate.  Store EOF at end of argument list.
3600         (funlike_invocation_p): Use _cpp_backup_tokens.
3601         (push_arg_context): Account for EOF at end of list.
3602         (cpp_get_token): Remove lookahead stuff.  Update.
3604 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3606         * c-parse.in (yyerror): Const-ification and/or static-ization.
3607         * c-typeck.c (push_member_name): Likewise.
3608         * collect2.c (main): Likewise.
3609         * dbxout.c (dbxout_parms): Likewise.
3610         * diagnostic.c (format_with_decl): Likewise.
3611         * dwarf2out.c (output_ranges): Likewise.
3612         * dwarfout.c (fundamental_type_code): Likewise.
3613         * except.c (dw2_output_call_site_table): Likewise.
3614         * gcc.c (do_spec_1): Likewise.
3615         * genopinit.c (optabs): Likewise.
3616         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
3617         gen_declaration_1, handle_impent): Likewise.
3618         * protoize.c (default_include, in_system_include_dir, abspath):
3619         Likewise.
3620         * sched-vis.c (visualize_stall_cycles): Likewise.
3621         * sdbout.c (plain_type_1, sdbout_end_function,
3622         sdbout_end_epilogue): Likewise.
3623         * varasm.c (decode_reg_name): Likewise.
3625         * 1750a.c (mod_regno_adjust): Likewise.
3626         * alpha.c (alpha_write_one_linkage,
3627         unicosmk_output_default_externs): Likewise.
3628         * arm.c (arm_condition_codes): Likewise.
3629         * arm.h (arm_condition_codes): Likewise.
3630         * avr.c (output_movsisf, encode_section_info): Likewise.
3631         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
3632         Likewise.
3633         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3634         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3635         * m88k.c (output_function_profiler): Likewise.
3636         * mips.c (mips_output_conditional_branch): Likewise.
3637         * ns32k.c (ns32k_out_reg_names): Likewise.
3638         * ns32k.h (ns32k_out_reg_names): Likewise.
3639         * pj.c (pj_output_rval): Likewise.
3640         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
3641         * sparc.c (sparc_flat_function_prologue,
3642         sparc_flat_function_epilogue): Likewise.
3644 2001-09-13  Markus Werle <numerical.simulation@web.de>
3645             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3647         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
3648         Aachen University of Technology".
3650 2001-09-13  Andreas Schwab  <schwab@suse.de>
3652         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
3653         C99.
3655 2001-09-13  Richard Henderson  <rth@redhat.com>
3657         * config/alpha/alpha.c (small_symbolic_operand): New.
3658         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
3659         (some_operand, input_operand): Don't handle HIGH.
3660         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
3661         (alpha_expand_mov): Likewise.
3662         (print_operand) [H]: Just print HIGH symbol.
3663         (print_operand_address): Handle small data.
3664         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
3665         (TARGET_SWITCHES): Add -msmall-data/large-data.
3666         (PIC_OFFSET_TABLE_REGNUM): New.
3667         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
3668         (PREDICATE_COES): Update.
3669         * config/alpha/alpha.md (adddi_er_high): New.
3670         (adddi_er_low): Handle small data.
3671         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
3672         prefer .sdata to .rodata.
3673         (SELECT_RTX_SECTION): Likewise.
3675 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
3677         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
3678         defining __size_t and leaving size_t undefined.
3680 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
3682         * basic-block.h (expunge_block): Declare.
3683         * cfg.c (expunge_block): Remove static declaration.
3685 2001-09-12  Richard Henderson  <rth@redhat.com>
3687         * integrate.c (copy_insn_list): Copy label name from
3688         NOTE_INSN_DELETED_LABEL.
3690 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3692         * c-common.c (c_tree_code_name): Const-ification.
3693         * c-decl.c (c_decode_option): Likewise.
3694         * c-typeck.c (warn_for_assignment): Likewise.
3695         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
3696         Likewise.
3697         * cppinit.c (output_deps): Likewise.
3698         * dependence.c (dependence_string, direction_string): Likewise.
3699         * dwarf2out.c (output_ranges): Likewise.
3700         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
3701         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
3702         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
3703         standard_startfile_prefix, standard_startfile_prefix_1,
3704         standard_startfile_prefix_2, tooldir_base_prefix,
3705         standard_bindir_prefix, find_a_file): Likewise.
3706         * genattrtab.c (make_length_attrs): Likewise.
3707         * gencheck.c (tree_codes): Likewise.
3708         * genemit.c (gen_split): Likewise.
3709         * genrecog.c (special_mode_pred_table): Likewise.
3710         * graph.c (graph_ext): Likewise.
3711         * protoize (default_include): Likewise.
3712         * reload.c (reload_when_needed_name): Likewise.
3713         * sched-vis.c (visualize_stall_cycles): Likewise.
3714         * tlink.c (recompile_files): Likewise.
3715         * toplev.c (decode_g_option): Likewise.
3716         * tradcpp.c (output_deps): Likewise.
3717         * varasm.c (decode_reg_name): Likewise.
3719         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
3720         Const-ification.
3721         * arm.md: Likewise.
3722         * avr.c (avr_regnames, encode_section_info): Likewise.
3723         * c4x.c (float_reg_names): Likewise.
3724         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
3725         * elfos.h (const_section): Likewise.
3726         * i386.c (ix86_comp_type_attributes): Likewise.
3727         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
3728         * ia64/aix.h (UNIQUE_SECTION): Likewise.
3729         * ia64.c (type_names): Likewise.
3730         * m68hc11.c (reg_class_names): Likewise.
3731         * m88k.c (m_options): Likewise.
3732         * mips.c (mips_output_conditional_branch, mips_unique_section):
3733         Likewise.
3734         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3735         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
3736         ultra_code_names): Likewise.
3737         * sparc.h (OVERRIDE_OPTIONS): Likewise.
3739 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3741         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
3742         Use --fatal-warnings option for gas.
3743         * configure: Rebuilt.
3745 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3747         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
3749 2001-09-11  Jim Wilson  <wilson@redhat.com>
3751         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
3753 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3755         * builtins.c (c_strlen): Treat an offset too large for a
3756         HOST_WIDE_INT as out of range.
3758 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
3760         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
3761         (EDGE_CRITICAL_P): New predicate.
3762         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
3763         handling.
3764         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
3765         (dump_edge_info): Remove "crit".
3766         * cfganal.c (mark_critical_edges): Kill.
3767         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
3768         * cfgcleanup.c (cleanup_cfg): Likewise.
3769         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
3770         (find_spanning_tree): Likewise.
3771         * reg-stack.c (convert_regs_1): Likewise.
3772         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
3774         * basic-block.h (create_basic_block_structure): New.
3775         (create_basic_block): Update prototype.
3776         (force_nonfallthru): New.
3777         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
3778         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
3779         handle updating of block_for_insn, creating of empty BBs and BBs at
3780         the end of INSN chain.
3781         (create_basic_block): New function.
3782         (split_block): Use create_basic_block.
3783         (force_nonfallthru_and_redirect): Break out from ...; cleanup
3784         (redirect_edge_and_branch_force): ... here.
3785         (force_nonfallthru): New.
3786         (split_edge): Rewrite to use force_nonfallthru and create_block.
3787         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
3788         (find_basic_blocks): Free basic_block_for_insn.
3789         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
3791         * cfg.c: Fix formating.
3792         * cfgcleanup.c: Fix formating.
3793         (merge_blocks, tail_recursion_label_p): Return bool.
3794         (merge_blocks_move_predecessor_nojumps,
3795          merge_blocks_move_successor_nojumps): Return void.
3797 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
3799         * configure.in: Check whether assembler supports section merging.
3800         * config.in: Rebuilt.
3801         * configure: Rebuilt.
3802         * varasm.c (variable_section, output_constant_pool): Pass alignment
3803         to SELECT_SECTION and SELECT_RTX_SECTION.
3804         (mergeable_string_section): New.
3805         (mergeable_constant_section): New.
3806         (default_elf_asm_named_section): Output SECTION_MERGE and
3807         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3808         * output.h (mergeable_string_section): New.
3809         (mergeable_constant_section): New.
3810         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
3811         * toplev.c (flag_merge_constants): New.
3812         (f_options): Add -fmerge-constants and -fmerge-all-constants
3813         options.
3814         (toplev_main): Default to -fno-merge-constants if not optimizing.
3815         * flags.h (flag_merge_constants): Add extern.
3816         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
3817         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
3818         argument.
3819         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
3820         Define if assembler has working .subsection -1 support.
3821         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
3822         Put constant into special SHF_MERGE sections if the linker should
3823         attempt to merge duplicates.
3824         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
3825         macro argument.
3826         Put constant into special SHF_MERGE sections if the linker should
3827         attempt to merge duplicates.
3828         * config/alpha/elf.h: Likewise.
3829         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
3830         has working .subsection -1 support.
3831         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
3832         SELECT_SECTION.
3833         * config/svr3.h: Likewise.
3834         * config/darwin.h: Likewise.
3835         * config/arm/aof.h: Likewise.
3836         * config/arm/linux-elf.h: Likewise.
3837         * config/avr/avr.h: Likewise.
3838         * config/c4x/c4x.h: Likewise.
3839         * config/d30v/d30v.h: Likewise.
3840         * config/i386/dgux.h: Likewise.
3841         * config/i386/osfrose.h: Likewise.
3842         * config/i386/sco5.h: Likewise.
3843         * config/i386/svr3gas.h: Likewise.
3844         * config/ia64/aix.h: Likewise.
3845         * config/m32r/m32r.h: Likewise.
3846         * config/m68k/m68k.h: Likewise.
3847         * config/m88k/dgux.h: Likewise.
3848         * config/m88k/m88k.h: Likewise.
3849         * config/mcore/mcore-pe.h: Likewise.
3850         * config/mips/mips.h: Likewise.
3851         * config/pa/pa.h: Likewise.
3852         * config/pa/pa-linux.h: Likewise.
3853         * config/romp/romp.h: Likewise.
3854         * config/rs6000/sysv4.h: Likewise.
3855         * config/rs6000/xcoff.h: Likewise.
3856         * config/s390/linux.h: Likewise.
3857         * config/sparc/sparc.h: Likewise.
3858         * config/sparc/sysv4.h: Likewise.
3859         * config/stormy16/stormy16.h: Likewise.
3860         * config/v850/v850.h: Likewise.
3861         * config/vax/vms.h: Likewise.
3862         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
3863         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3864         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
3865         default_elf_asm_named_section for SHF_MERGE sections.
3867 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3869         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
3870         is OK.
3872 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3874         * c-common.c (split_specs_attrs): Allow for empty attributes with
3875         empty TREE_PURPOSE.  Fixes PR c/4294.
3877 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
3879         * basic-block.h (cached_make_edge, make_single_succ): New.
3880         (make_edge): Remove first parameter.
3881         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
3882         * cfg.c (cached_make_edge): Rename from make_edge; return newly
3883         created edge; use obstack allocation.
3884         (make_edge, make_single_succ_edge): New.
3885         (first_removed_edge): New static variable.
3886         (init_flow): Initialize first_removed_edge and n_edges.
3887         (clear_edges): Use remove_edge.
3888         (flow_delete_block): Likewise.
3889         (remove_edge): Add removed edges to the removed edges list.
3890         (split_block, redirect_edge_and_branch_force, split_edge):
3891         Use make_edge.
3892         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
3893         (add_noreturn_fake_exit_edges): Likewise.
3894         (connect_infinite_loops_to_exit): Liekwise.
3895         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
3896         Use cached_make_edge.
3897         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
3898         * profile.c (branch_prob): Update make_edge call.
3899         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3901 2001-09-11  Richard Henderson  <rth@redhat.com>
3903         * config/alpha/alpha.c: Tidy formatting.
3904         (local_symbolic_operand): Verify mode.
3905         (alpha_sa_mask): Ignore unicos for eh_return.
3906         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
3907         * config/alpha/alpha.md (umk divsi patterns): Remove.
3908         (extendsfdf2): Remove unicos check.
3909         (tablejump): Merge vms and unicos code; always use direct set
3910         plus label_ref use.
3912 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3914         * config.gcc (alpha*-*-unicosmk*): New target.
3916         * config/alpha/alpha-protos.h (symbolic_operand,
3917         unicosmk_add_call_info_word, unicosmk_add_extern,
3918         unicosmk_defer_case_vector, unicosmk_unique_section,
3919         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
3920         unicosmk_asm_file_start, unicosmk_asm_file_end,
3921         unicosmk_output_common): Declare.
3923         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
3924         direct_return, function_arg, alpha_va_start, alpha_va_arg,
3925         alpha_does_function_need_gp, alpha_end_function): Support Cray
3926         Unicos/Mk.
3927         (alpha_init_machine_status, alpha_mark_machine_status,
3928         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
3929         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
3930         unicosmk_asm_named_section, unicosmk_insert_attributes,
3931         unicosmk_section_type_flags, symbolic_operand,
3932         unicosmk_output_module_name, unicosmk_output_default_externs,
3933         unicosmk_output_dex, unicosmk_output_externs,
3934         unicosmk_output_addr_vec, unicosmk_ssib_name,
3935         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
3936         unicosmk_asm_file_end, unicosmk_output_common,
3937         unicosmk_section_type_flags, unicosmk_unique_section,
3938         unicosmk_add_call_info_word, unicosmk_text_section,
3939         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
3940         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
3941         unicosmk_dex_count, unicosmk_special_name): New.
3942         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
3943         TARGET_ABI_UNICOSMK.
3944         (get_aligned_mem, alpha_expand_unaligned_load,
3945         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
3946         alpha_expand_unaligned_store_words): Support big-endian mode.
3947         (print_operand): Likewise. New format specifier 't'. Use
3948         TARGET_AS_SLASH_BEFORE_SUFFIX.
3949         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
3950         (alpha_pv_save_size): Update with above change.
3951         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
3952         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
3953         Unicos/Mk.
3955         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
3956         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
3957         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
3958         (EXTRA_CONSTRAINT): New constraint 'U'.
3959         (PREDICATE_CODES): Add symbolic_operand.
3961         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
3962         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
3963         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
3964         (integer division and modulus patterns): Split in default and
3965         Unicos/Mk versions.
3966         (*divmodsi_internal, *divmoddi_internal): Disable for
3967         TARGET_ABI_UNICOSMK.
3968         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
3969         little-endian and big-endian versions.
3970         (ext, ins, msk): Likewise.
3971         (extv, extzv, insv): Support big-endian mode.
3972         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
3973         (call_umk, call_value_umk, *call_umk, tablejump_umk,
3974         *tablejump_umk_internal, *call_value_umk): New.
3975         (*movdi_nofix): Add pattern for loading an address into a register on
3976         TARGET_ABI_UNICOSMK.
3977         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
3978         (umk_mismatch_args, arg_home_umk): New.
3979         (various insns): Don't use mov, fmov, nop, fnop and unop.
3980         (realign): Support TARGET_ABI_UNICOSMK.
3982         * config/alpha/unicosmk.h: New file.
3983         * config/alpha/t-unicosmk: New file.
3985         * fixinc/inclhack.def (unicosmk_restrict): New.
3986         * fixinc/fixincl.x: Regenerate.
3988         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
3989         (wchar_t): Check for and define __WCHAR_T__.
3991 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
3993         * combine.c (simplify_shift_const): Treat shifts by the mode
3994         size as undefined.
3996 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3998         * cpphash.h (struct tokenrun): New.
3999         (struct cpp_context): New member bol.
4000         (struct cpp_reader): New members.
4001         (_cpp_init_tokenrun): New.
4002         * cppinit.c (cpp_create_reader): Set up the token runs.
4003         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
4004         (lex_token): New internalised version of _cpp_lex_token.  Don't
4005         handle directives or the multiple include opimisation here any
4006         more.  Simply lex a token.
4007         * cpplib.c (run_directive): Clear bol.
4008         (_cpp_pop_buffer): Set bol.
4009         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
4010         arguments.
4012 2001-09-11  Michael Meissner  <meissner@redhat.com>
4014         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
4015         give an error if the user uses -mfp32.
4016         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
4017         default options.
4018         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
4019         floating point register size.
4020         (EXTRA_SPECS): Add CPP_FPR_SPEC.
4022         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
4023         HOST_WIDE_INT_PRINT_DEC to properly print the result of
4024         int_size_in_bytes.
4025         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4026         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4028 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
4030         * dbxout.c (dbxout_parms): Fix typo in comment.
4031         * unroll.c (loop_find_equiv_value): Ditto.
4032         * toplev.c (rest_of_compilation): Ditto.
4033         * loop.c (scan_loop): Ditto.
4034         * dwarf2out.c (struct dw_fde_struct): Ditto.
4036 2001-09-10  Zack Weinberg  <zackw@panix.com>
4038         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
4039         copying identifier when we're just going to throw it away.
4040         (parse_identifier_slow): New routine to handle abnormal cases.
4041         (_cpp_lex_token): Update call site.
4043         * hashtable.c (ht_lookup): Don't assume that the string we've
4044         been given is NUL-terminated.
4045         * system.h: #define __builtin_expect(a, b) to (a) if not
4046         GCC >=3.0.
4048 2001-09-10  Michael Meissner  <meissner@redhat.com>
4050         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
4051         binutils, gdb.
4053 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
4055         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
4057 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4059         * builtins.c (c_getstr): Correct thinko in last change and further
4060         cleanup.
4062 2001-09-10  Tim Freeman <tim@fungibole.com>
4064         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
4065         into varray's and register them as roots with the garbage
4066         collector so they are not collected too soon.
4068 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
4070         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
4071         New.
4072         * basic-block.h (flow_obstack, label_value_list,
4073         tail_recursion_label_list): Declare
4074         (tidy_fallthru_edges): Declare.
4075         (expunge_block, last_loop_beg_note): Delete.
4076         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
4077         * cfg.c: New file
4078         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
4079         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
4080         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
4081         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
4082         expunge_block, flow_delete_block, compute_bb_for_insn,
4083         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
4084         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
4085         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
4086         try_redirect_by_replacing_jump, last_loop_beg_note,
4087         redirect_edge_and_branch, redirect_edge_and_branch_force,
4088         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
4089         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
4090         commit_edge_insertions, dump_flow_info, debug_flow_info,
4091         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
4092         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
4093         Move here from flow.c
4094         * cfganal.c: New file.
4095         (forwarder_block_p, can_fallthru, mark_critical_edges,
4096          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
4097          find_unreachable_blocks, create_edge_list, free_edge_list,
4098          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
4099          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
4100          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
4101          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
4102          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
4103          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
4104         Move here from flow.c
4105         * cfgbuild.c: New file
4106         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
4107          make_edges, find_basic_blocks_1, find_basic_blocks,
4108          find_sub_basic_blocks): Move here from flow.c
4109         * cfgcleanup.c: New file.
4110         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
4111          merge_blocks_move_predecessor_nojumps,
4112          merge_blocks_move_successor_nojumps, merge_blocks,
4113          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4114          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
4115         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
4116         if succeeded.
4117         * cfgloop.c: New file
4118         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
4119          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
4120          flow_loop_exit_edges_find, flow_loop_nodes_find,
4121          flow_loop_pre_header_scan, flow_loop_pre_header_find,
4122          flow_loop_tree_node_add, flow_loops_tree_build,
4123          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
4124          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
4125         Move here from flow.c
4126         * flow.c: Remove everything moved elsewhere
4127         * output.h (cleanup_cfg): Return bool.
4129         * bb-reorder.c (reorder_block_def): Remove 'index'.
4130         (insert_intra_1): Add argument BB, set block for new note.
4131         (make_reorder_chain): Do not depdent on BB indexes.
4132         (make_reorder_chain_1): Do not use BB indexes.
4133         (label_for_bb): Likewise; set BB for new insn.
4134         (emit_jump_to_block_after): Likewise.
4135         (fixup_reoder_chain): Sanity check that all basic blocks
4136         are chained; verify newly created insn chain; remove
4137         undocnitional jump simplifying; Do not use BB indexes;
4138         properly initialize count and frequency information;
4139         dump reordered sequence.
4140         (insert_intra_bb_scope_notes): update call of insert_intra_1.
4141         (insert_inter_bb_scope_notes): Set block for new insn.
4142         (reorder_basic_blocks): Dump flow info before reoredering.
4144 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4146         * alias.c (clear_reg_alias_info): Use K&R format definition.
4147         Avoid unsigned warning.
4148         * builtins.c: Use "unsigned int", not "unsigned".
4149         (target_char_cast): Use host_integerp and tree_low_cst.
4150         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
4151         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
4152         (c_getstr): Likewise.
4153         (std_expand_builtin_va_arg): Use int_size_in_bytes.
4154         (builtin_memcpy_read_str): Avoid unsigned warning.
4155         (expand_builtin_memcpy): Alignments are unsigned.
4156         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
4157         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
4158         * predict.c (expensive_function_p): LIMIT now unsigned.
4159         * resource.c (mark_target_live_regs): Make some vars unsigned.
4160         * sdbout.c: Use "unsigned int", not "unsigned".
4161         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
4162         (sdbout_source_line): Likewise.
4163         (sdbout_record_type_name): Remove "const" for NAME declaration.
4164         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
4166 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
4168         * calls.c (store_one_arg): Expand comment.
4170 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4172         * calls.c (store_one_arg): Make sure that the entire argument is
4173         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
4175 2001-09-09  Richard Henderson  <rth@redhat.com>
4177         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
4179 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
4181         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
4183 2001-09-09  Richard Henderson  <rth@redhat.com>
4185         * config/alpha/alpha.c (alpha_next_sequence_number): New.
4186         (alpha_this_literal_sequence_number): New.
4187         (alpha_this_gpdisp_sequence_number): New.
4188         (some_operand, input_operand): Add HIGH.
4189         (local_symbolic_operand): New.
4190         (alpha_encode_section_info): New.
4191         (alpha_legitimate_address_p): Allow LO_SUM.
4192         (alpha_legitimize_address): Generate HIGH+LO_SUM.
4193         (alpha_expand_mov): Likewise.
4194         (secondary_reload_class): Check memory_operand not general_operand
4195         for FP_REGS test.
4196         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
4197         (alpha_expand_unaligned_store): Likewise.
4198         (alpha_expand_unaligned_load_words): Likewise.
4199         (alpha_expand_unaligned_store_words): Likewise.
4200         (alpha_expand_block_clear): Likewise.
4201         (print_operand): Handle %#, %*, %H.
4202         (print_operand_address): Handle LO_SUM.
4203         (find_lo_sum): New.
4204         (alpha_does_function_need_gp): Use it.
4205         (alpha_expand_block_move): Fix signed compare warnings.
4206         (alpha_sa_mask, alpha_align_insns): Likewise.
4207         * config/alpha/alpha-protos.h: Update.
4208         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
4209         (MASK_EXPLICIT_RELOCS): New.
4210         (TARGET_SWITCHES): Add -mexplicit-relocs.
4211         (EXTRA_CONSTRAINT): Add 'T'.
4212         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
4213         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
4214         (ENCODE_SECTION_INFO): Out line.
4215         (REDO_SECTION_INFO_P): New.
4216         (STRIP_NAME_ENCODING): New.
4217         (ASM_OUTPUT_LABELREF): New.
4218         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
4219         (PREDICATE_CODES): Update.
4220         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
4221         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
4222         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
4223         builtin_setjmp_receiver_er, exception_receiver_1_er,
4224         call_value_osf_1_er): New patterns.
4225         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
4226         (movqi, movhi, movsi): Add explicit $31 base register to lda.
4227         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
4228         (FINAL_PRESCAN_INSN): New.
4230 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
4232         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
4234 2001-09-08  Andreas Jaeger  <aj@suse.de>
4236         * i386.h (TARGET_SWITCHES): Fix description.
4238 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
4240         * rs6000.c (num_insns_constant): Compute number of instructions
4241         more accurately.
4243         * doc/install.texi: Explain AIX exception handling work-around.
4244         Update URL for AIX fixes.
4246 2001-09-07  Jim Wilson  <wilson@redhat.com>
4248         * alias.c (clear_reg_alias_info): New.
4249         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
4250         * rtl.h (clear_reg_alias_info): Declare.
4252 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4254         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
4255         available.
4256         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
4257         (m16m,edivm,emulm): Change declaration to match definition.
4259 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
4261         * reload.c (push_reload): Check for subreg_lowpart_p instead of
4262         SUBREG_BYTE being 0 when determining if the inner part of a subreg
4263         can be reloaded.
4265 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4267         * c-common.c (signed_or_unsigned_type): Handle machine mode types
4268         which have no corresponding C type.
4269         * fold_const.c (target_isinf,target_isnan,target_negative): Update
4270         the representation of 64-bit doubles to work with 64-bit ints.
4272 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
4274         * config/mips/mips.c (override_options): Do not override ISA when ABI
4275         specified if MIPS_CPU_STRING_DEFAULT was specified.
4277 2001-09-07  Richard Henderson  <rth@redhat.com>
4279         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
4280         (express_from_1): Wrap lines.
4281         * rtlanal.c (commutative_operand_precedence): Rename from
4282         operand_preference; export.
4283         * rtl.h: Declare it.
4284         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
4285         (simplify_binary_operation): Invoke simplify_plus_minus on
4286         (CONST (PLUS ...)) as well.
4287         (struct simplify_plus_minus_op_data): New.
4288         (simplify_plus_minus_op_data_cmp): New.
4289         (simplify_plus_minus): Use them.  Avoid infinite recursion with
4290         simplify_binary_operation wrt CONST.
4292 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
4294         * h8300-protos.h (general_operand_dst_push): Remove.
4295         * h8300.c (general_operand_dst_push): Likewise.
4296         * h8300.h (OK_FOR_T): Likewise.
4297         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
4298         * h8300.md (pushqi_h8300): New.
4299         (pushqi_h8300hs): Likewise.
4300         (pushqi): Likewise.
4301         (pushhi_h8300): Likewise.
4302         (pushhi_h8300hs): Likewise.
4303         (pushhi): Likewise.
4305 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4307         * genattrtab.c (attr_printf): First arg is unsigned.
4308         Clean up formatting of callers.
4310 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
4312         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
4313         registers.
4315 2001-09-07  Andreas Jaeger  <aj@suse.de>
4317         * i386.h (TARGET_SWITCHES): Fix descriptions.
4319 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4321         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
4323 2001-09-06  Ira Ruben  <ira@apple.com>
4325         Remove OP_IDENTIFIER.
4326         * tree.def (OP_IDENTIFIER): Remove.
4327         * tree.c (tree_node_kind enum): Remove op_id_kind.
4328         (tree_node_kind_names): Remove "op_identifiers".
4329         (make_node): Remove OP_IDENTIFIER test.
4330         (build_op_identifier): Removed because it isn't being used.
4331         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
4332         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
4334 2001-09-06  Richard Henderson  <rth@redhat.com>
4336         * simplify-rtx.c (simplify_binary_operation): Revert last change.
4338 2001-09-06  Richard Henderson  <rth@redhat.com>
4340         * simplify-rtx.c (simplify_binary_operation): Simplify contents
4341         of CONST.
4343 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4345         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
4346         number used for CR register.
4348 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4349                           Joern Rennecke (amylaar@cygnus.com)
4351         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
4352         * h8300.c (initial_offset): Handle offset between RP and FP.
4353         (h8300_return_addr_rtx): New function.
4354         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
4355         return register.
4356         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
4357         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4358         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
4359         (CAN_ELIMINATE, REGISTER_NAMES):
4360         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
4362 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
4364         Remove TYPE_NONCOPIED_PARTS.
4365         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
4366         (struct tree_type): Remove noncopied_parts.
4367         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
4368         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
4369         (fixed_type_p): Remove.
4370         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
4371         (expand_expr, MODIFY_EXPR): Likewise.
4372         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
4373         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
4375 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
4377         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
4378         compiler warnings.
4379         (mask64_operand): Likewise.
4380         (includes_rldic_lshift_p): Likewise.
4381         (includes_rldicr_lshift_p): Likewise.
4383 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
4385         * objc/objc-act.c (build_message_expr): If a class method cannot
4386         be found, do not issue a warning if a corresponding instance
4387         method exists in the root class.
4389 2001-09-05  Richard Henderson  <rth@redhat.com>
4391         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
4393 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
4395         * function.c (ggc_mark_struct_function): Mark f->outer.
4396         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
4397         * integrate.c (output_inline_function): ... not here.
4399 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
4401         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
4403         * i386.c (size_cost): New static variable.
4404         (override_function): Use size_cost when -Os is specified.
4406         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
4407         properly;  Use current_function_calls_eh_return.
4408         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
4409         use leave to avoid depdendancy chain.
4411         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
4412         get BB loop_depth instead of computing it from LOOP notes.
4414         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
4416 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4418         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4419         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4420         UNALIGNED_DOUBLE_INT_ASM_OP): Define
4422 2001-09-05  Jeffrey A Law  (law@cygnus.com)
4423             Jason Merrill (jason@redhat.com)
4425         * stor-layout.c (layout_type): Complain if an array's size can
4426         not be represented in a size_t.
4428         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
4430 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
4432         * gcc.c: (process_command) Add parentheses around assignment
4433         used as truth value.
4435 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4437         * config/mips/mips.c (save_restore_insns): Don't mark any register
4438         save slots as unchanging if current_function_calls_eh_return.
4440 2001-09-05  Richard Henderson  <rth@redhat.com>
4442         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
4443         * config/alpha/alpha-protos.h: Declare it.
4444         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
4445         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
4446         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
4447         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
4448         (REG_OK_FOR_BASE_P): Select one of the above.
4450 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4452         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
4453         (crti.o): Prefix name of object file with $(T).
4454         (crtn.o): Likewise.
4456 2001-09-05  David S. Miller  <davem@redhat.com>
4458         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4459         * config/sparc/linux64.h: Likewise.
4461 2001-09-05  Andreas Jaeger  <aj@suse.de>
4463         * doc/invoke.texi (i386 Options): -mwide-multiply is not
4464         available anymore, remove the documentation.
4465         (i386 Options): Fix typo, cleanup index entries.
4467         * prefix.c (concat): Remove, we can use the version from liberty.
4469 2001-09-05  Richard Henderson  <rth@redhat.com>
4471         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
4472         New functions split out of md file expanders.
4473         * config/alpha/alpha-protos.h: Declare them.
4474         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
4476 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4478         * cppmacro.c (funlike_invocation_p): No need to restore context.
4480 2001-09-04  Richard Henderson  <rth@redhat.com>
4482         * reload.c (push_reload): Export.
4483         * reload.h (push_reload): Declare it.
4485         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
4486         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4487         * config/alpha/alpha.c (alpha_legitimize_address): New.
4488         (alpha_legitimize_reload_address): Likewise.
4489         * config/alpha/alpha-protos.h: Declare them.
4491 2001-09-04  Stan Shebs  <shebs@apple.com>
4493         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
4494         * config/darwin.c (machopic_stub_name): Account for internally
4495         generated lib calls such as memcpy.
4497 2001-09-04  Richard Henderson  <rth@redhat.com>
4499         * unwind.h (_UA_END_OF_STACK): New flag.
4500         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
4502 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4504         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
4506 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
4508         * config/mips/mips.c (save_restore_insns): Change base_offset to
4509         fp_offset in second call to mips_emit_frame_related_store.
4511 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
4513         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
4514         sometimes be represented as a NOTE of type
4515         NOTE_INSN_DELETED_LABEL.
4516         (Insns): Document NOTE_INSN_DELETED_LABEL.
4518 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
4520         * c-common.h (tree_dump_index): Add more comments.
4521         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
4522         (dump_option_value_info): New struct.
4523         (dump_options): New array.
4524         (dump_switch_p): Parse switch options symbolically.
4525         * doc/invoke.texi (-fdump-ast): Rename to ...
4526         (-fdump-tree): ... here. Document that options are symbolic, and
4527         not all are applicable.
4529 2001-09-04  David S. Miller  <davem@redhat.com>
4531         * config/sparc/sparc.md (define_splits): Kill constraints.
4533         Cleanup redundant and unused insn attributes.
4534         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
4535         binary, and move.  Mark ialu as default.
4536         (commented out define_function_unit "alu"): Kill.
4537         (define_attr "use_clobbered"): Kill.
4538         (whole file): Kill address insn type references.  Replace
4539         all unary/binary/move references with ialu.
4540         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
4541         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
4542         TYPE_IALU.
4544         Simplify length insn attribute and make more judicious use
4545         of insn attribute defaulting.
4546         * config/sparc/sparc.md (all insns with length > one): Mark as
4547         insn type multi if real instructions, else use default if
4548         it is a forced splitter.
4549         (all insns with length == one): Use default insn length.
4550         (all insns of type ialu): Use default insn type.
4552         Fix erroneous insn attribute settings.
4553         (addx): Set insn type to misc.
4554         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
4555         const_umulsidi3_sp64): Set insn type to imul.
4557         Track SFmode vs DFmode insns according to UltraSPARC
4558         scheduling rules.
4559         * config/sparc/sparc.md ("fptype"): New attribute, default
4560         to "single".
4561         (all DFmode single insns): Mark as fptype "double".
4563 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
4565         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
4567 2001-09-03  Richard Henderson  <rth@redhat.com>
4569         * function.h (struct function): Add arg_pointer_save_area_init.
4570         * function.c (expand_function_end): Init arg_pointer_save_area.
4571         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
4572         when called from a nested function.
4574 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
4576         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
4577         is enabled.
4579 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
4581         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
4583 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
4585         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
4586         (emit_push_insn): Use specified padding direction when
4587         STACK_PUSH_CODE is POST_INC.
4589         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
4591 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4593         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
4595 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4597         * cppinit.c (cpp_start_read): Free the imacros list as we
4598         traverse it.  Don't free the chains before returning.
4599         (_cpp_push_next_buffer): Only try pushing buffers if we've
4600         completed -imacros handling.
4602 2001-08-31  Eric Christopher  <echristo@redhat.com>
4604         * gcc.c (handle_braces): Add explaination for abort.
4606 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
4608         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
4609         move adjustment of bitpos instead.
4611 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
4613         * function.c: Remove all_functions.  Make outer_function_chain
4614         static.
4615         (init_function_start): Don't add new function structure to
4616         all_functions.
4617         (find_function_data, push_function_context_to,
4618         pop_function_context_from, put_var_into_stack,
4619         trampoline_address): Update for changed structure element names.
4620         (push_function_context_to): Disentangle.
4621         (free_after_compilation): Also free F.
4622         (expand_dummy_function_end): Don't free cfun here.
4623         (put_var_into_stack): Comment why we can't use find_function_data here.
4624         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
4625         (mark_function_chain): Split into maybe_mark_struct_function and
4626         ggc_mark_struct_function.  Export the latter.
4627         (init_function_once): Mark from cfun and outer_function_chain;
4628         not all_functions.
4630         * function.h (struct function): Kill next_global.  Rename next
4631         to outer.  All users updated to match.
4632         (all_functions, outer_function_chain): Don't declare.
4634         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
4635         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
4636         don't touch f->inlinable, after calling rest_of_compilation.
4638         * tree.h: Forward-declare struct function.  Prototype
4639         ggc_mark_struct_function.
4641 2001-08-31  Kazu Hirata  <kazu@hxi.com>
4643         * config/h8300/h8300.md (*andorhi3): Fix typos.
4645 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4647         * calls.c (emit_library_call_value): Don't use a fixed
4648         argument after VA_CLOSE, i.e. out of scope in traditional C.
4650         * emit-rtl.c (gen_rtvec): Likewise.
4652 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4654         * Makefile.in (c-pragma.o): Depend on output.h.
4655         (reorg.o): Depend on except.h.
4657         * c-pragma.c: Include output.h.
4659         * reorg.c: Include except.h.
4661         * unwind-dw2.c: Call __builtin_alloca, not alloca.
4663 2001-08-31  Richard Henderson  <rth@redhat.com>
4665         * sched-deps.c (add_dependence): Don't elide dependancy if the
4666         conditional used by insn is modified in elem.
4668 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
4670         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4672 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
4674         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
4675         dump_switch_p.
4677 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4679         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
4680         function.
4681         (stormy16_asm_out_constructor): New function.
4682         (TARGET_ASM_CONSTRUCTOR): Define.
4683         (TARGET_ASM_DESTRUCTOR): Define.
4685 2001-08-31  Andreas Jaeger  <aj@suse.de>
4687         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
4688         * loop.c (add_label_notes): Likewise.
4689         * reload.c (find_reloads): Likewise.
4690         * config/sh/sh.c (machine_dependent_reorg): Likewise.
4692 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
4694         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
4695         code here.  Take _Unwind_{W,Sw}ord*.
4696         (read_encoded_value_with_base): Use them.
4697         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
4698         words.
4699         (extract_cie_info): Simplify read_?leb128 handling.
4700         (execute_stack_op, execute_cfa_program): Likewise.
4701         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
4703 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4705         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
4706         the frame pointer to pop the stack if convenient.
4708         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
4709         Don't use post-increment before combine.
4710         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
4711         a call-saved register.
4713 2001-08-31  Andreas Jaeger  <aj@suse.de>
4715         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
4716         code was correct.
4718 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
4720         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
4721         not DIV/MOD, of course.
4723 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
4725         * rtl.def: Undo my patch commited 2001-08-27.
4727         * genattrtab.c: Ditto.
4729         * rtl.h: Ditto.
4731         * sched-int.h: Ditto.
4733         * target-def.h: Ditto.
4735         * target.h: Ditto.
4737         * haifa-sched.c: Ditto.
4739         * sched-rgn.c: Ditto.
4741         * sched-vis.c: Ditto.
4743         * Makefile.in: Ditto.
4745         * doc/md.texi: Ditto.
4747         * doc/tm.texi: Ditto.
4749         * doc/contrib.texi: Ditto.
4751         * doc/gcc.texi: Ditto.
4753         * genattrtab.h: Remove it.
4755         * genautomata.c: Remove it.
4757         * genattr.c: Undo my patch and Richard Henderson's patch commited
4758         2001-08-27.
4760 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
4762         * config.gcc (h8300-*-elf*): New case.
4763         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
4764         (SUBTARGET_CPP_SPEC): Define.
4765         (EXTRA_SPECS): Define.
4766         (SUBTARGET_EXTRA_SPECS): Define.
4767         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
4768         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
4770 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
4772         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
4773         (LIB2FUNCS_EXTRA): Define.
4774         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
4775         config/h8300/fixunssfsi.c: New file.
4777 2001-08-30  Kazu Hirata  <kazu@hxi.com>
4779         * config/h8300/h8300.md (zero_extendqihi2): Changes to
4780         define_expand to accomodate target-specific attributes.
4781         (anonymous zero_extendqihi2 patterns): New.
4783 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
4785         * h8300.md (*andorhi3): New pattern.
4787 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
4789         * h8300.c (dosize): Fix test for "sub".
4791 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
4793         * c-typeck.c (pointer_diff): Try to eliminate common term before
4794         doing conversions.
4796 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
4798         * config/arm/arm.c (arm_compute_initial_elimination_offset):
4799         Account for the saves of the FP registers.
4801         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
4802         (TEXT_SECTION_ASM_OP): Define.
4803         (INIT_SECTION_ASM_OP): Define.
4804         (FINI_SECTION_ASM_OP): Define.
4805         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
4806         (RDATA_SECTION_FUNCITON): Provide prototype.
4808 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
4810         * reload1.c (move2add_note_store): Correct typo checking for
4811         argument pushes.
4813 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
4815         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
4816         note should not be considered outside the libcall block.
4818 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4820         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
4822 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4824         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
4826 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4828         * config/h8300/h8300-protos.h: Add a prototype for
4829         emit_logical_op.
4830         * config/h8300/h8300.c (emit_logical_op): New.
4831         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
4832         (andsi3): Likewise.
4833         (iorhi3): Likewise.
4834         (iorsi3): Likewise.
4835         (xorhi3): Likewise.
4836         (xorsi3): Likewise.
4838 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4840         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
4841         comparison with rtx INTVAL.
4842         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
4843         expression.
4844         * pa.h (FUNCTION_ARG_SIZE): Likewise.
4846 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4848         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
4849         comment typos.
4851 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4853         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
4854         (reg n) to (mem (pre_dec (reg n))
4855         (anonymous movsi pattern): Likewise.
4857 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4859         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
4861 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4863         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
4864         several special constants.
4866 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4868         * config/h8300/lib1funcs.asm: Fix comment typos.
4870 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4872         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
4873         Fix format specifier warnings.
4875         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
4876         inet_makeaddr, semctl): Prototype.
4878         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
4879         (save_restore_insns): Use base_offset, not gp_offset.
4881         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
4882         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4884 2001-08-29  Richard Henderson  <rth@redhat.com>
4886         * bb-reorder.c (function_tail_eff_head): New.
4887         (record_effective_endpoints): Set it.
4888         (fixup_reorder_chain): Use it.
4890 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4892         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
4894 2001-08-28  Dale Johannesen  <dalej@apple.com>
4896         * config/darwin.c (machopic_function_base_name): Add const
4897         qualifier to a string.
4898         (darwin_encode_section_info): Ditto.
4900 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4902         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
4903         function definition.
4905 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4907         * df.h (struct df): Add rts_order variable.
4909         * df.c (df_visit_next_rts): New function.
4910         (df_visit_next): Renamed to df_visit_next_rc
4911         (df_analyse_1): Allocate/compute/free rts_order as well.
4912         (df_rd_global_compute): Use df_visit_next_rc instead of
4913         df_visit_next.
4914         (df_ru_global_compute): Use df_visit_next_rts instead of
4915         df_visit_next.
4917         * flow.c (flow_reverse_top_sort_order_compute): New function.
4919         * basic-block.h: Add prototype.
4921 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4923         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
4924         blocks, the BB_REACHABLE is now set, rather than aux being
4925         non-NULL. Update the test to reflect this.
4927 2001-08-28  Eric Christopher  <echristo@redhat.com>
4929         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
4930         config/mips/crti.asm: Ditto.
4932 2001-08-28  Eric Christopher <echristo@redhat.com>
4933             Richard Henderson <rth@redhat.com>
4935         * c-pragma.h (add_weak): Move prototype from here...
4936         * output.h (add_weak): ... to here.
4937         * varasm.c (add_weak): Fix typo.
4938         * config/mips/crti.asm: New file.
4939         * config/mips/crtn.asm: Ditto.
4940         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
4941         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
4942         (INVOKE__main): Ditto.
4943         (INIT_SECTION_ASM_OP): New.
4944         (FINI_SECTION_ASM_OP): Ditto.
4945         (STARTFILE_SPEC): Add crti.
4946         (ENDFILE_SPEC): Add crtn.
4947         * config/mips/elf64.h: Same.
4948         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
4949         Remove.
4950         * config/mips/vxworks.h: Ditto.
4951         * config/mips/t-elf: Support crti and crtn.
4953 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
4955         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
4956         INSN_LIST.
4958 2001-08-28  Richard Henderson  <rth@redhat.com>
4960         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
4961         (one_cmplbi2 splitter): Remove redundant test.
4963 2001-08-28  Dale Johannesen  <dalej@apple.com>
4965         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
4967 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
4969         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
4971 2001-08-28  Stan Shebs  <shebs@apple.com>
4973         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
4974         (UNALIGNED_SHORT_ASM_OP): Define.
4975         (UNALIGNED_INT_ASM_OP): Define.
4977 2001-08-28  Will Cohen  <wcohen@redhat.com>
4979         * config/rs6000/rs6000.md (store_multiple): Correct RTL
4980         generation for first set.
4982 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
4984         * flow.c (redirect_edge_succ_nodup): Return new edge.
4985         (try_simplify_condjump): Use new edge.
4986         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
4988         * cse.c (cse_basic_block): Skip note instructions.
4990 2001-08-27  Richard Henderson  <rth@redhat.com>
4992         * combine.c (combine_simplify_rtx): Don't reverse condition
4993         if there is no reverse for the condition.
4994         (simplify_comparison): Don't simplify subregs from INT to FP.
4996         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
4997         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
4998         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
4999         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
5000         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
5001         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
5003 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5005         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
5006         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
5007         (pushqi1): New.
5008         (adddi_dilshr32, adddi_dishl32): Only data register can be
5009         source for mem destination.
5011         * expmed.c (store_bit_field): Ignore adjustment to bitpos
5012         and use bitnum to decide about register move.
5014 2001-08-27  Richard Henderson  <rth@redhat.com>
5016         * genattr.c (main): Emit state_t even when not doing scheduling.
5018 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5019             Richard Henderson  <rth@redhat.com>
5021         * gcse.c (reg_first_set, reg_last_set): Replace with ...
5022         (reg_avail_info, current_bb): ... these.
5023         (oprs_unchanged_p, record_last_reg_set_info): Use them.
5024         (compute_hash_table): Likewise.
5026 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5028         * flow.c (verify_flow_info): Use checksums to verify edges.
5030 2001-08-27  Richard Henderson  <rth@redhat.com>
5032         * genautomata.c (expand_automata): Always create a description.
5034 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5036         * optabs.c (expand_binop): Correctly handle the carry in multiword
5037         add/subtract operations.
5039 2001-08-27  Fred Fish  <fnf@be.com>
5041         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
5042         __SIZE_TYPE__.
5044 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5046         * reload.c (find_reloads_toplev): Back out this change:
5048         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
5050         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
5051         mem if the address is a mode_dependent_address_p.
5053 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5055         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5056         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5057         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5058         RTL constructions.
5060         * genattr.c (main): New variable num_insn_reservations.  Increase
5061         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5062         pipeline hazard recognizer interface.
5064         * genattrtab.h: New file.
5066         * genattrtab.c: Include genattrtab.h.
5067         (attr_printf, check_attr_test, make_internal_attr,
5068         make_numeric_value): Move protypes into genattrtab.h.  Define them
5069         as external.
5070         (num_dfa_decls): New global variable.
5071         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5072         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5073         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5074         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5076         * genautomata.c: New file.
5078         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5080         * sched-int.h: (curr_state): Add the external definition for
5081         automaton pipeline interface.
5082         (haifa_insn_data): Add comments for members blockage and units.
5084         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5085         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5086         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5087         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5088         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5089         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5090         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5091         macros.
5092         (TARGET_SCHED): Use the new macros.
5094         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5095         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5096         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5097         dfa_bubble): New members in gcc_target.sched.
5099         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5100         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5101         (insn_queue): Redefine it as pointer to array.
5102         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5103         INSN_QUEUE_SIZE.
5104         (max_insn_queue_index_macro_value): New variable.
5105         (curr_state, dfa_state_size, ready_try): New varaibles for
5106         automaton interface.
5107         (ready_element, ready_remove, max_issue): New function prototypes
5108         for automaton interface.
5109         (choose_ready): New function prototype.
5110         (insn_unit, blockage_range): Add comments.
5111         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5112         FUNCTION_UNITS_SIZE == 0.
5113         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5114         actual_hazard, potential_hazard): Add comments.
5115         (insn_cost): Use cost -1 as undefined value.  Remove
5116         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5117         pipeline interface.
5118         (ready_element, ready_remove): New functions for automaton
5119         interface.
5120         (schedule_insn): Add new code for automaton pipeline interface.
5121         (queue_to_ready): Add new code for automaton pipeline interface.
5122         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5123         (debug_ready_list): Print newline when the queue is empty.
5124         (max_issue): New function for automaton pipeline interface.
5125         (choose_ready): New function.
5126         (schedule_block): Add new code for automaton pipeline interface.
5127         Print ready list before scheduling each insn.
5128         (sched_init): Add new code for automaton pipeline interface.
5129         Initiate insn cost by -1.
5130         (sched_finish): Free the current automaton state and finalize
5131         automaton pipeline interface.
5133         * sched-rgn.c: Include target.h.
5134         (init_ready_list, new_ready, debug_dependencies): Add new code for
5135         automaton pipeline interface.
5137         * sched-vis.c: Include target.h.
5138         (get_visual_tbl_length): Add code for automaton interface.
5139         (target_units, print_block_visualization):  Add comments.
5141         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5142         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5143         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5144         (getruntime.o, genautomata.o): New entries.
5145         (genattrtab.o): Add new dependency file genattrtab.h.
5146         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5147         (getruntime.o, hashtab.o): New entries for canadian cross.
5149         * doc/md.texi: Description of automaton based model.
5151         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5152         Add comments.
5153         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5154         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5155         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5156         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5157         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5158         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5159         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5160         hook descriptions.
5161         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5162         MAX_DFA_ISSUE_RATE): New macro descriptions.
5164         * doc/contrib.texi: Add dfa based scheduler contribution.
5166         * doc/gcc.texi: Add more information about genattrtab.
5168 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
5170         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
5171         an RTL basic block.
5173 2001-08-27  Richard Henderson  <rth@redhat.com>
5175         * function.c (expand_function_end): Don't init arg_pointer_save_area.
5176         (get_arg_pointer_save_area): New.  Create an init it here.
5177         (fix_lexical_addr): Use it.
5178         * function.h: Declare it.
5179         * builtins.c (expand_builtin_setjmp_receiver): Use it.
5180         * stmt.c (expand_nl_goto_receiver): Use it.
5182 2001-08-27  Richard Henderson  <rth@redhat.com>
5184         * final.c (final_scan_insn): Don't enter APP_ON mode for
5185         empty asm strings.
5187         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
5188         alignment for assemble_integer for DW_EH_PE_aligned.
5189         * except.c (output_function_exception_table): Likewise.
5191 2001-08-26  Andreas Jaeger  <aj@suse.de>
5193         * c-tree.h: Add prototyp for c_sizeof_nowarn.
5195 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
5197         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
5199 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
5201         * config/rs6000/rs6000.c (mask_operand): Rewrite without
5202         bit-shifting loop.
5203         (mask64_operand): Likewise.
5204         (rldic_operand): Delete.
5205         (includes_lshift64_p): Delete.
5206         (includes_rldic_lshift_p): New function.
5207         (includes_rldicr_lshift_p): New function.
5208         (print_operand): Don't call rldic_operand in case 'W'.
5209         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
5210         (includes_lshift64_p): Remove.
5211         (includes_rldic_lshift_p): Declare.
5212         (includes_rldicr_lshift_p): Declare.
5213         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
5214         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
5215         Replace match_operand rldic_operand predicate with
5216         const_int_operand.  Replace includes_lshift64_p condition with
5217         includes_rldic_lshift_p.
5218         <ashldi3_internal 64 bit rldicr patterns>: New.
5220 2001-08-27  Andreas Jaeger  <aj@suse.de>
5222         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5223         * errors.c: Likewise.
5224         * final.c: Likewise.
5225         * dwarf2asm.c: Likewise.
5226         * doprint.c (checkit): Likewise.
5227         * diagnostic.c: Likewise.
5228         * collect2.c: Likewise.
5229         * calls.c: Likewise.
5230         * c-semantics.c (build_stmt): Likewise.
5231         * c-format.c (status_warning): Likewise.
5232         * c-errors.c (pedwarn_c99): Likewise.
5233         * builtins.c (validate_arglist): Likewise.
5234         * config/pj/pj.c (pj_printf): Likewise.
5235         * fix-header.c: Likewise.
5236         * gcc.c: Likewise.
5237         * gcov.c (fnotice): Likewise.
5238         * gensupport.c (message_with_line): Likewise.
5239         * mips-tfile.c: Likewise.
5240         * protoize.c (notice): Likewise.
5241         * read-rtl.c (fatal_with_file_and_line): Likewise.
5242         * rtl-error.c: Likewise.
5243         * tradcpp.c: Likewise.
5244         * tree.c: Likewise.
5245         * cp/tree.c (build_min_nt): Likewise.
5246         (build_min): Likewise.
5247         * cp/lex.c: Likewise.
5248         * cp/errfn.c: Likewise.
5249         * cp/rtti.c (create_pseudo_type_info): Likewise.
5251 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
5253         * df.c (df_uses_record): Return after recording all uses
5254         in ASM_OPERANDS.
5256 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
5258         * df.c (df_insn_modify): Realloc the INSN table here, if
5259         necessary, here, too.
5261 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
5263         * config/mips/mips.c (mips_function_value): Handle complex return
5264         values.
5266 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
5268         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
5269         unshared.
5270         * reload.c (make_memloc): Copy result if it is still
5271         reg_equiv_memory_loc[regno] on return.
5272         (subst_reloads) [ENABLE_CHECKING]: Check that none of
5273         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
5274         reg_equiv_mem are modified by the substitutions.
5276 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5278         * predict.c (expensive_function_p): New.
5279         * rtl.h (expensive_function_p): Declare.
5280         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
5281         (use_fast_prologue_epilogue): New static variable.
5282         (expand_prologue): Set it; emit short prologues if unset.
5283         (expand_epilogue): Likewise.
5285 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5287         * config.gcc: Add stormy16-*-elf case.
5288         * config/stormy16/stormy-abi: New file.
5289         * config/stormy16/stormy16-lib2.c: New file.
5290         * config/stormy16/stormy16-protos.h: New file.
5291         * config/stormy16/stormy16.c: New file.
5292         * config/stormy16/stormy16.h: New file.
5293         * config/stormy16/stormy16.md: New file.
5294         * config/stormy16/t-stormy16: New file.
5296 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5298         * i386.h (no-accumulate-outgoing-args): Use proper mask.
5300 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
5302         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
5303         descriptor members are pointer size, not constant 4.
5304         * config/rs6000/rs6000.md (define_splits): Remove more unused
5305         constraints.
5307 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5309         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5311 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
5313         * cp/rtti.c (VPARAMS): Fix parameter.
5315 2001-08-24  Zack Weinberg  <zackw@panix.com>
5317         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
5318         to zero.
5319         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
5320         to switch.
5321         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
5322         in if controlling use of insv.
5323         (extract_bit_field): Likewise, for extv and extzv.
5325 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
5327         * i386.md (movcc peep2): Fix load of 0.
5329 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5331         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
5332         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
5334 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
5336         * c-pragma.h: Move weak_syms and weak_decls...
5337         * varasm.c: ...here.  Now static.
5338         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
5339         depend on HANDLE_PRAGMA_WEAK.
5341         * c-common.c (c_alignof, c_alignof_expr): Move here...
5342         * c-typeck.c: ...from here.
5343         * c-tree.h, c-common.h: Adjust.
5345 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
5347         * config/ia64/ia64.c (rws_update): If !pred, set write_count
5348         instead of incrementing it.
5350         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
5351         asm ready, don't try to move them all into the same array element.
5353 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5355         * function.c (thread_prologue_and_epilogue_insns): Avoid
5356         fallthru flag on edge to exit.
5358         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
5360         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
5361         dead edges.
5363 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5365         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
5366         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
5367         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
5368         Remove prototype.
5370 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5372         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
5373         replace "GNU CC" with "GCC".
5375 2001-08-23  Richard Henderson  <rth@redhat.com>
5377         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
5378         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
5379         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
5380         Need GR between FR and not GR_AND_FR.
5381         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
5382         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
5383         AR regs before GR regs.
5384         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
5385         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
5386         (REGISTER_MOVE_COST): Update.
5387         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
5389 2001-08-23  Richard Henderson  <rth@redhat.com>
5391         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
5392         a register class.
5394 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5396         * reload1.c (emit_reload_insns): Don't look for notes
5397         on a NULL store_insn.
5399 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5401         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
5402         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
5403         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
5404         format specifier warnings.
5405         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
5407 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
5409         * config/i386/i386-protos.h: Correct declaration of
5410         i386_pe_asm_named_section.
5412 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5414         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
5415         variable i.
5416         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
5418 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5420         * cpperror.c (print_location): Don't show _Pragma.
5421         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
5422         and file change callback generation here.
5423         (stack_include_file): Update use of cpp_push_buffer.
5424         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
5425         (struct cpp_buffer): Remove type, pfile members.
5426         * cppinit.c (cpp_handle_option): Use free_chain.
5427         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
5428         (skip_escaped_newlines, get_effective_char, lex_percent): Take
5429         a cpp_reader rather than a cpp_buffer.
5430         (skip_escaped_newlines, get_effective_char, skip_block_comment,
5431         skip_line_comment, parse_string, lex_percent, lex_dot,
5432         _cpp_lex_token): Update accordingly.
5433         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
5434         generation here.
5435         (cpp_push_buffer): Update prototype.
5436         (run_directive): Update use of cpp_push_buffer.
5437         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
5438         handle_assertion): Update use of run_directive.
5439         * cpplib.h (enum cpp_buffer_type): Remove.
5440         (cpp_push_buffer): Update prototype.
5441         * fix-header.c (read_scan_file): Update.
5443 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5445         * gcc.c (struct prefix_list): Change prefix to const char *.
5447 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5449         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
5451 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
5453         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
5454         from a new MEM.
5456         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
5457         a squeezable note.
5458         * rtl.h: Adjust.
5459         * ifcvt.c (dead_or_predicable): Adjust.
5460         * loop.c (find_and_verify_loops): Adjust.
5461         * stmt.c (expand_end_case): Adjust.
5462         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
5463         head and end insn pointers in the basic block, not just local copies.
5464         (merge_blocks_move_predecessor_nojumps): Likewise.
5466 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
5468         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
5469         bitmap.h, builtin-types.def, builtins.c, builtins.def,
5470         c-aux-info.c, c-common.c, c-common.def, c-common.h,
5471         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
5472         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
5473         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
5474         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
5475         conditions.h, config.gcc, configure.frag, configure.in,
5476         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
5477         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
5478         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
5479         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
5480         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
5481         emit-rtl.c, errors.c, errors.h, except.c, except.h,
5482         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
5483         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
5484         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
5485         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
5486         gencheck.c, gencodes.c, genconfig.c, genemit.c,
5487         genextract.c, genflags.c, gengenrtl.c, genmultilib,
5488         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
5489         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
5490         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
5491         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
5492         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
5493         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
5494         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
5495         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
5496         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
5497         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
5498         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
5499         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
5500         params.h, predict.c, predict.def, predict.h, prefix.c,
5501         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
5502         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
5503         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
5504         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
5505         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
5506         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
5507         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
5508         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
5509         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
5510         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
5511         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
5512         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
5513         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
5514         xcoffout.h: replace "GNU CC" with "GCC".
5516 2001-08-21  Richard Henderson  <rth@redhat.com>
5518         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
5519         (final_scan_insn): Consider jump tables data even if we have no
5520         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
5521         ADDR_VEC_ALIGN.
5522         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
5523         (ASM_OUTPUT_CASE_END): Remove.
5524         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
5525         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
5526         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5528 2001-08-21  Richard Henderson  <rth@redhat.com>
5530         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
5531         at barrier insns.  Emit stop bits before barriers.
5533         * flow.c (flow_find_cross_jump): Don't consider unconditional
5534         return insns for commoning.
5536         * final.c (compute_alignments): Fix typo.
5538         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
5539         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
5540         (store_bit_field): Use mode_for_extraction more places.
5541         (extract_bit_field): Likewise.
5543 2001-08-21  Zack Weinberg  <zackw@panix.com>
5545         * caller-save.c: Don't include insn-codes.h.
5546         (reg_save_code, reg_restore_code): Make arrays of int.
5547         All uses updated to match.
5548         (insert_save, insert_restore): No need to initialize "code"
5549         variable upon declaration.
5550         * Makefile.in: update dependencies; fix typo in clean rule.
5552 2001-08-21  Richard Henderson  <rth@redhat.com>
5554         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
5555         (merge_if_block): Handle fallout from same.
5557 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5559         * builtins.c (type_to_class): Fix typo in last change.
5561 2001-08-21  Richard Henderson  <rth@redhat.com>
5563         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
5564         ia64_asm_output_label.
5566         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
5567         copy of gp while the real gp register contains garbage.
5569 2001-08-21  Zack Weinberg  <zackw@panix.com>
5571         * expmed.c (mode_for_extraction): New function.
5572         (store_bit_field, extract_bit_field): Use it.
5573         * expr.h: Prototype it and provide an enum for its first argument.
5575         * combine.c, function.c, recog.c: Don't include insn-codes.h.
5576         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
5577         and digging through the insn_data tables.
5578         * Makefile.in: Update dependencies.
5580 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5582         * cppfiles.c (stack_include_file): line-map.c now handles include
5583         depth.
5584         (handle_missing_handler): Similarly.
5585         (_cpp_execute_include): Similarly.
5586         (_cpp_pop_file_buffer): Similarly.
5587         * cpphash.h (struct cpp_reader): Remove system_include_depth,
5588         buffer_stack_depth and include_depth.
5589         * cpplib.c (do_include_common): line-map.c now handles include depth.
5590         (cpp_push_buffer): Similarly.
5591         (_cpp_pop_buffer): Similarly.
5592         * cppmacro.c (builtin_macro): Update.
5593         * line-map.c (init_line_maps): Set depth.
5594         (add_line_map): Increment "used" earlier.  Update and use the
5595         include depth.
5596         (trace_include): Use the include depth.
5597         * line-map.h (struct line_maps): New member depth.
5599 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5601         * cppfiles.c (stack_include_file): Don't handle -H here.
5602         * cppinit.c (cpp_start_read): Set include tracing after
5603         cpp_post_options and after stacking the main file.
5604         * line-map.c (trace_include): New.
5605         (init_line_maps, add_line_map): Update.
5606         * line-map.h (struct line_maps): New member trace_includes.
5608 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5610         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
5611         * cppfiles.c (stack_include_file): Only stack a file if there
5612         is something to do.  Return a boolean indicating whether a
5613         buffer was stacked or not.
5614         (_cpp_execute_include): Similarly.
5615         (_cpp_read_file): Similarly.
5616         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
5618 2001-08-21  Sam Steingold  <sds@gnu.org>
5620         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
5621         (RECACHE): keep obufp_before_macroname up to date
5623 2001-08-21  Zack Weinberg  <zackw@panix.com>
5625         * stmt.c: Don't include insn-codes.h.
5626         (expand_end_case): Machine specific logic moved to expr.c.
5627         No need to worry about __builtin_classify_type.
5628         (check_for_full_enumeration_handling, emit_case_nodes):
5629         Kill #if 0 blocks.
5631         * builtins.o (expand_builtin_classify_type): Split up so code
5632         can be shared with fold_builtin_classify_type.
5633         (type_to_class, fold_builtin_classify_type): New functions.
5634         (fold_builtins): Handle __builtin_classify_type.
5636         * expr.c (do_tablejump): Now static.
5637         (case_values_threshold, try_casesi, try_tablejump): New;
5638         code mostly from stmt.c (expand_end_case).
5639         (expr.h): Update prototypes.
5641         * Makefile.in (stmt.o): Update dependencies.
5643 2001-08-21  Will Cohen  <wcohen@redhat.com>
5645         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
5646         declaration of variable i.
5647         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
5648         declaration of variable i.
5650 2001-08-21  Richard Henderson  <rth@redhat.com>
5652         * crtstuff.c: Fix thinko last change.  Move list tails to start
5653         of CRT_END section.  Tidy ifdefs.
5654         (__EH_FRAME_BEGIN__): Always static for ELF.
5655         (__do_global_ctors_1): Rename from __frame_dummy.
5656         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
5657         name change; don't hide __EH_FRAME_BEGIN__.
5659 2001-08-21  Richard Henderson  <rth@redhat.com>
5661         * gdbinit.in: Move break on exit after break on fancy_abort.
5663         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
5664         sized types.
5666 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5668         * cpphash.h (_cpp_push_next_buffer): New.
5669         * cppinit.c (do_includes): Remove.
5670         (push_include, free_chain, _cpp_push_next_buffer): New.
5671         (cpp_start_read): Use them to rework command line option handling.
5672         (cpp_handle_option): Combine handling of -include and -imacros.
5673         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
5674         appropriate.  Always insert missing \n at EOF.
5675         * cpplib.c (start_directive): Get the directive position right.
5676         * cppmain.c (cb_file_change): Always print the first line, unless
5677         preprocessed.
5679 2001-08-20  Andreas Jaeger  <aj@suse.de>
5681         * profile.c (compute_branch_probabilities): Remove extra new-line
5682         in error message.
5683         * flow.c (verify_flow_info): Likewise.
5685 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5687         * basic-block.h (basic_block): Add new field 'flags'.
5688         (BB_REACHABLE): Define.
5689         (expunge_block): Declare.
5690         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
5691         (EXIT_BLOCK_PTR): Ditto.
5692         (expunge_block): Remove static declaration.
5693         (cleanup_cfg): Clear bb->aux on every basic block.
5694         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
5695         computing reachability.
5696         (delete_unreachable_blocks): Delete block b if b->flags has
5697         BB_REACHABLE unset.
5699 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5701         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
5703 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5705         * sparc.c (sparc_variable_issue): Fix typo in last change.
5707 2001-08-20  Richard Henderson  <rth@redhat.com>
5709         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
5711 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5713         * pa.h (RETURN_IN_MEMORY): Improve comment.
5715 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
5717         * doc/invoke.texi (Profiling options): Clarify the interactions
5718         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
5720 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
5722         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
5723         command.
5725 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5727         * gcc.c (make_relative_prefix): Allocate a sufficiently large
5728         buffer.
5730 2001-08-20  Richard Henderson  <rth@redhat.com>
5732         * final.c (end_final): Fix typo last change.
5734 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5736         * cppinit.c (init_standard_includes): The returned buffer
5737         is already malloc-ed.
5738         * gcc.c (add_prefix): Similarly.
5739         * prefix.c (translate_name): Update to support clear buffer
5740         ownership rules.
5741         (update_path): Similarly.  Be sure to free any newly allocated
5742         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
5743         (tr): New function.
5744         * prefix.h (update_path): Update prototype and document.
5745         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
5746         up and update to new buffer ownership rules.
5747         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
5749 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
5751         * final.c (compute_alignments): New function.
5752         (init_insn_lengths): Do not care label_align.
5753         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
5754         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
5755         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
5756         (shorted_branches): Realloc label_align array; do
5757         not call init_insn_lengths; Do not care about loop alignments.
5758         * output.h (compute_alignments): Declare.
5759         * toplev.c (rest_of_compilation): Call compute_alignments.
5760         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
5762         * predict.c (block_info_def): Add npredecesors, remove nvisited;
5763         change visited to tovisit.
5764         (propagate_freq): Use faster traversing algorithm.
5765         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
5766         to tovisit; reverse meaning.
5768         * predict.c (struct block_info_def): Remove nvisited.
5769         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
5770         (estimate_bb_frequencies): Call mark_dfs_back_edges.
5772 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
5774         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
5775         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
5776         (TARGET_FUSED_MADD): New.
5777         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
5778         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
5779         the multiply-add instructions.
5781 2001-08-19  Richard Henderson  <rth@redhat.com>
5783         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
5784         is aligned to pointer size.
5786 2001-08-19  Richard Henderson  <rth@redhat.com>
5788         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
5789         display markers during final schedule.
5791 2001-08-19  Richard Henderson  <rth@redhat.com>
5793         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
5795 2001-08-19  Richard Henderson  <rth@redhat.com>
5797         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
5798         in the same string.
5799         (ASM_NAME_TO_STRING): Remove.
5800         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
5801         in the same string.  Remove support for expressions.
5803 2001-08-19  Richard Henderson  <rth@redhat.com>
5805         * config/i386/i386.md (tablejump): Make an expander; handle
5806         pic relative addressing here.
5807         (tablejump_1): Rename from tablejump_pic.
5808         (casesi): Remove.
5810 2001-08-19  Richard Henderson  <rth@redhat.com>
5812         * regclass.c (fix_register): Fix typo.
5814 2001-08-18  Richard Henderson  <rth@redhat.com>
5816         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
5817         (struct _Unwind_Context): Expand br_loc to hold it.
5818         (uw_frame_state_for): Handle leaf functions better.
5819         (uw_update_reg_address): Update for br_loc change.
5821 2001-08-18  Richard Henderson  <rth@redhat.com>
5823         * crtstuff.c: Move list heads before code that uses them.
5824         (__JCR_LIST__): Remove initial null.
5825         (frame_dummy, __frame_dummy): Do java registration here ...
5826         (__do_global_ctors_aux): ... not here.
5828         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
5829         (__do_global_dtors_aux): Update to match.
5830         (__JCR_LIST__, __do_jv_register_classes): New.
5831         (.init): Call it.
5832         * config/ia64/crtend.asm (__JCR_END__): New.
5833         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
5834         instead of an indirect LTOFF22 reloc.
5836 2001-08-18  Richard Henderson  <rth@redhat.com>
5838         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
5839         * regclass.c (init_reg_sets_1): Fix typo.
5840         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
5841         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
5842         (ia64_compute_frame_size): Make ar.unat live when in use.
5843         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
5844         for ar.pfs; remove ar.unat handling.
5845         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
5846         call-saved.
5847         (PREDICATE_CODES): Add ar_pfs_reg_operand.
5848         * config/ia64/ia64-protos.h: Update decls.
5849         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
5850         (sibcall_pic): Likewise.
5852 2001-08-18  Richard Henderson  <rth@redhat.com>
5854         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
5855         pred_rel_mutex when searching for insn_group_barrier.
5856         * config/ia64/ia64.md (cycle_display): Combine the expander
5857         and insn patterns.
5859         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
5860         bit before asm as needed.
5862 2001-08-18  Richard Henderson  <rth@redhat.com>
5864         * timevar.def (TV_MACH_DEP): New.
5865         * toplev.c (rest_of_compilation): Use it.
5866         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
5868 2001-08-18  Zack Weinberg  <zackw@panix.com>
5870         * unwind-dw2.c (execute_stack_op): Add default aborts to
5871         the inner switches to prevent warnings.
5873 2001-08-18  Richard Henderson  <rth@redhat.com>
5875         * timevar.h (struct timevar_time_def): Change element type to float.
5876         (ticks_to_msec, clocks_to_msec): Likewise.
5877         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
5878         (get_time): Likewise.
5879         (timevar_print): Adjust zero check and printing to match.
5881 2001-08-18  Zack Weinberg  <zackw@panix.com>
5883         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
5884         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
5885         Eliminate overfull or underfull hboxes.
5887 2001-08-18  Zack Weinberg  <zackw@panix.com>
5889         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5891 2001-08-18  Zack Weinberg  <zackw@panix.com>
5893         * haifa-sched.c: Convert to target hooks.  Macros replaced
5894         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
5895         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
5896         MD_SCHED_FINISH, and HAVE_cycle_display.
5897         * target-def.h (TARGET_SCHED_ADJUST_COST,
5898         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
5899         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
5900         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
5901         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
5902         New hook #defines to be overridden.
5903         (TARGET_SCHED): Bring them all together.
5904         (TARGET_INITIALIZER): Update.
5905         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
5906         instead of 'struct rtx_def *' throughout.
5907         (struct sched): New set of hooks for the scheduler.
5908         * Makefile.in (haifa-sched.o): Depend on target.h.
5909         * doc/tm.texi: Document the new scheduler hooks, together in
5910         their own section, instead of scattered around.
5911         Fix a bunch of underfull/overfull hboxes.
5913         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
5914         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
5915         sparc.h: Don't define any of the old scheduler macros.
5917         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
5918         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
5919         sparc.c: Create hook functions from code extracted from
5920         corresponding target header, or make existing hooks static, as
5921         appropriate.  Set the appropriate entries in targetm.
5923         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
5924         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
5925         rs6000-protos.h, s390-protos.h, sparc-protos.h:
5926         Remove prototypes for functions which are now static.
5928         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
5929         related gunk; the Haifa scheduler is now the only choice.
5931 2001-08-18  Zack Weinberg  <zackw@panix.com>
5933         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
5934         * genopinit.c: Put floating point divide insns in sdiv_optab.
5935         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
5936         * config/gofast.h, config/c4x/c4x.h,
5937         config/ia64/hpux_longdouble.h, config/mips/mips.h,
5938         config/pa/long_double.h, config/rs6000/sysv4.h,
5939         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
5940         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
5941         (init_optabs): Use init_optabv for overflow-trapping optabs.
5942         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
5943         cmp_optab RTX codes so have_insn_for can find them.
5945         * optabs.c (expand_simple_binop, expand_simple_unop,
5946         have_insn_for, gen_sub3_insn): New interfaces.
5947         * expr.h: Prototype new functions.
5948         (enum optab_methods): Move here from optabs.h.
5950         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
5951         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
5952         Use new functions instead of working directly with optabs.
5953         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
5954         unroll.c: Don't include optabs.h.
5955         * caller-save.c, combine.c, function.c, stmt.c: Just include
5956         insn-codes.h, not optabs.h.
5957         * Makefile.in: Update dependencies.
5959         * combine.c (make_compound_operation, simplify_comparison):
5960         Fix typos testing for this or that instruction.
5962 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
5964         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
5965         generating libgcc.a.
5967 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5969         * except.c (TYPE_HASH): Delete.
5971         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
5972         HOST_WIDE_INT.
5974         * tree.c (TYPE_HASH): Delete.
5976         * tree.h (TYPE_HASH): Define.
5978 2001-08-18  Graham Stott  <grahams@redhat.com>
5980         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
5981         define_split.
5982         (adddi3_internal_2+2): Likewise.
5983         (eh_set_lr_di+1): Likewise.
5985 2001-08-17  Richard Henderson  <rth@redhat.com>
5987         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5988         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
5989         * dwarf2asm.c: ... here.
5990         * dwarfout.c: Remove them.
5992         * varasm.c (assemble_integer): Add align parameter.
5993         (assemble_real, output_constant, output_constructor): Likewise.
5994         * output.h: Update decls.
5995         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
5996         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
5997         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
5998         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
5999         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
6000         Update all callers.
6002         * final.c (end_final): Abort profile block generation if we
6003         havn't layed it out properly.
6004         * output.h (assemble_eh_integer): Remove stale decl.
6005         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
6006         (min_align): New.
6007         (assemble_integer): Handle unaligned data.
6008         (assemble_real): Abort on unaligned data.
6009         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
6010         anything useful.
6011         (default_dtor_section_asm_out_destructor): Use assemble_align.
6012         (default_named_section_asm_out_constructor): Likewise.
6013         (default_ctor_section_asm_out_constructor): Likewise.
6014         * config/darwin.c (machopic_asm_out_constructor): Likewise.
6015         (machopic_asm_out_destructor): Likewise.
6016         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
6017         (nextstep_asm_out_destructor): Likewise.
6018         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
6019         (vms_asm_out_destructor): Likewise.
6021 2001-08-17  Richard Henderson  <rth@redhat.com>
6023         * config/mips/iris6.h (TARGET_IRIX6): New.
6024         (current_section_name, current_section_flags): New.
6025         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
6026         (MAX_OFILE_ALIGNMENT): New.
6027         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
6028         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
6029         (copy_file_data): Split out from
6030         (mips_asm_file_end): ... here.
6031         (mips_asm_file_start): Remove extra .section directive.  Use
6032         tmpfile instead of mips_make_temp_file.
6033         (mips_unique_section): Use const char * as needed for warnings.
6034         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
6035         re-add align parameter.
6036         (iris6_asm_named_section): New.
6037         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
6038         (iris6_asm_output_align, iris6_section_align_1): New.
6039         (iris6_asm_file_start, iris6_asm_file_end): New.
6040         * config/mips/mips-protos.h: Update decls.
6042 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
6044         * doc/install.texi (Install GCC): Add links to build status pages.
6045         (Specific): Ditto.
6046         (Final install): Ditto; request updates for specific info
6048 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6050         * cpperror.c (print_location):  Don't take a file name; use the
6051         line map instead.
6052         (_cpp_begin_message): Similarly.
6053         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6054         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6055         (cpp_pedwarn_with_file_and_line): Remove.
6056         * cppfiles.c (stack_include_file): Update; set filename to stdin
6057         here when appropriate.
6058         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
6059         (_cpp_begin_message): Don't take a file name.
6060         * cppinit.c: Add comment.
6061         * cpplex.c: Fix end-of-directive indicator.
6062         * cpplib.c: Don't include intl.h.
6063         (run_directive, do_diagnostic): Update.
6064         (do_line): Update to not use nominal_fname.
6065         (cpp_push_buffer): Don't take a filename.
6066         * cpplib.h (struct ht): Remove.
6067         (cpp_push_buffer): Don't take a filename.
6068         (cpp_pedwarn_with_file_and_line): Remove.
6069         * cppmacro.c (struct cpp_macro): Remove file.
6070         (builtin_macro): Update.
6071         (_cpp_create_definition): Update.
6072         * cppmain.c: Correct comment.
6073         * fix-header.c (read_scan_file): Update.
6075 2001-08-17  Kazu Hirata  <kazu@hxi.com>
6077         * sbitmap.c: Fix comment formatting.
6078         * sched-deps.c: Likewise.
6079         * sibcall.c: Likewise.
6080         * simplify-rtx.c: Likewise.
6081         * ssa.c: Likewise.
6082         * ssa-ccp.c: Likewise.
6083         * stor-layout.c: Likewise.
6084         * timevar.c: Likewise.
6085         * toplev.c: Likewise.
6086         * unwind-dw2.c: Likewise.
6087         * unwind-dw2-fde.c: Likewise.
6088         * varasm.c: Likewise.
6090 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6092         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
6093         or larger than an integer in memory.
6095 2001-08-17  Zack Weinberg  <zackw@panix.com>
6097         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
6098         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
6099         * rtl.h: Don't forward-declare union tree_node here.  Don't
6100         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
6101         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6102         and tree respectively.
6103         * tree.h: Don't forward-declare struct rtx_def here.  Don't
6104         typedef tree here.  Change all uses of struct rtx_def *,
6105         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6106         and tree respectively.
6108 2001-08-17  Richard Henderson  <rth@redhat.com>
6110         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
6111         config/mips/openbsd.h: Fix typos last change.
6113 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6115         * doc/invoke.texi (Optimize Options): The default for
6116         -finline-limit is 600.
6118 2001-08-17  Richard Henderson  <rth@redhat.com>
6120         * varasm.c (text_section): Allow TEXT_SECTION to override the
6121         printing of TEXT_SECTION_ASM_OP.
6122         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
6123         (DATA_SECTION, BSS_SECTION): Remove.
6124         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
6125         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
6126         Rename from s/_NAME//.
6127         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
6128         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
6129         (TEXT_SECTION): ... here.  New.
6130         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
6131         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
6132         * config/mips/openbsd.h: Likewise.
6133         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
6134         (mips_asm_file_end): Likewise test.
6135         (mips_output_function_epilogue): Likewise.  Switch back to data
6136         section after emitting the function.
6138         * doc/tm.texi (Sections): Document TEXT_SECTION.
6140 2001-08-17  Richard Henderson  <rth@redhat.com>
6142         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
6143         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
6145 2001-08-17  Richard Henderson  <rth@redhat.com>
6147         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
6148         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
6149         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
6150         Add aligned attribute.
6152 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
6154         * config/sh/sh.md: Add modes to unspecs in first insn to match
6155         those in the second.
6157         * Makefile.in: Fix collect2 copy for Cygwin.
6159 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
6161         Install the proper patch.
6162         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6163         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6164         (expand_function_start): Likewise.
6165         * stmt.c (expand_decl): Likewise.
6166         * varasm.c (make_decl_rtx): Likewise.
6168 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6170         * final.c: Undo my previous accidental checkin.
6171         * output.h: Likewise.
6172         * tm.texi: Likewise.
6174 2001-08-16  Richard Henderson  <rth@redhat.com>
6176         * varasm.c (named_section_flags): Remove align parameter.
6177         * varasm.c, dwarf2out.c: Update all callers.
6178         * output.h: Update prototypes.
6180         * target.h (target.asm_out.named_section): Remove align parameter.
6181         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
6182         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
6183         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
6184         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
6185         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
6187         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
6188         (get_named_section_flags, set_named_section_flags): New.
6189         (named_section_flags): Use them.
6190         (named_section): Do decl vs section flags check here...
6191         (default_section_type_flags): ... not here.
6192         (init_varasm_once): Create in_named_htab.
6193         (resolve_unique_section): Mark reloc unused.
6195 2001-08-16  Richard Henderson  <rth@redhat.com>
6197         * varasm.c (force_const_mem): Keep pool alignment in bits.
6198         (output_constant_pool): Use assemble_align.
6200 2001-08-16  Zack Weinberg  <zackw@panix.com>
6202         * doc/tm.texi: Remove extra @table command.
6204 2001-08-16  Zack Weinberg  <zackw@panix.com>
6206         * final.c (shorten_branches): Clear the end of the label_align
6207         array only if we made it larger.  Break up messy expressions
6208         for clarity.
6210         * diagnostic.c (internal_error): Check for error recursion
6211         before doing ICE suppression.
6213         * timevar.c: Timing variables now count in milliseconds.
6214         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
6215         (get_time): Not here.
6216         (timevar_print): Don't print any timer whose user, cpu, and
6217         wall times are all zero as displayed.
6218         * timevar.h: Update comment aboout units.  Make timevar
6219         counters unsigned.
6221 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
6223         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6224         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6225         (expand_function_start): Likewise.
6226         * stmt.c (expand_decl): Likewise.
6227         * varasm.c (make_decl_rtx): Likewise.
6229 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
6231         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
6232         (finalize_record_size): Don't set TYPE_USER_ALIGN.
6234 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6236         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
6237         variables.
6239 2001-08-16  Andreas Jaeger  <aj@suse.de>
6241         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
6242         prototype.
6244 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
6246         * rtl.h (only_sets_cc0_p): New prototype.
6247         * jump.c (sets_cc0_p): Handle INSN.
6248         (only_sets_cc0_p): New function.
6249         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
6250         (tidy_fallthru_edge): Likewise.
6251         * integrate.c (copy_insn_list): Likewise.
6252         * unroll.c (unroll_loop): Likewise.
6253         (copy_loop_body): Likewise.
6255 2001-08-15  Jason Eckhardt  <jle@redhat.com>
6257         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
6259 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6261         * predict.c (struct block_info_def): Remove nvisited.
6262         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
6263         (estimate_bb_frequencies): Call mark_dfs_back_edges.
6265         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
6266         (ix86_adjust_cost): Teach scheduler that latency to load operand can
6267         be masked.
6269 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
6271         * predict.def: Update hitrates.
6273 2001-08-15  Richard Henderson  <rth@redhat.com>
6275         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
6277 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
6279         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
6280         note from its associated jump.
6282 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6284         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
6285         also on 64-bit s390x targets.
6287 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
6289         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
6290         function.
6291         (arm_expand_prologue): Handled nested functions which take a
6292         variable argument list.
6293         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
6294         macro with an invocation of
6295         arm_compute_initial_elimination_offset.
6296         * config/arm/arm-protos.h: Prototype
6297         arm_compute_initial_elimination_offset.
6299 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6301         * doc/install.texi (Specific, avr): Fix markup.
6302         (Specific, c4x): Ditto.
6304 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6306         * predict.c (dump_prediction): Change `bool' parameter to `int'.
6308 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
6310         * Makefile.in (OBJS): Add rtl-error.o
6311         (rtl-error.o): New rule.
6312         (diagnostic.o): Adjust dependency.
6313         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
6314         error_for_asm, _fatal_insn, _fatal_insn_not_found,
6315         warning_for_asm): Move to...
6316         rtl-error.c: ...here.  New file.
6318 2001-08-14  Richard Henderson  <rth@redhat.com>
6320         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
6321         if USING_SJLJ_EXCEPTIONS.
6323 2001-08-14  Steve Ellcey <sje@cup.hp.com>
6325         * tlink.c (scan_linker_output): Check string for unsatisfied in
6326         addition to undefined and unresolved.
6328 2001-08-14  Graham Stott  <grahams@redhat.com>
6330         * libgcc2.c (*): Replace EH_FRAME_SECTION with
6331         EH_FRAME_SECTION_NAME.
6333 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
6335         * genattrtab.c (simplify_test_exp_in_temp): New function.
6336         (simplify_test_exp): Avoid explicit use of temporary obstack.
6337         (simplify_cond, insert_right_side, evaluate_eq_attr,
6338         simplify_and_tree, simplify_or_tree, eliminate_known_true):
6339         Use simplify_test_exp_in_temp.
6340         (optimize_attrs): Iterate until expression stabilizes.
6342 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
6344         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
6345         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
6347 2001-08-13  Richard Henderson  <rth@redhat.com>
6349         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
6350         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
6351         * config/arm/conix-elf.h: Likewise.
6353 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6355         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
6356         in gcc.c.
6357         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6359         * gcse.c (hash_scan_set): Expressions that are set as part of
6360         jump instructions are not available.
6362 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6364         * config/s390/s390.c (print_operand, s390_function_prologue,
6365         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
6367 2001-08-13  Richard Henderson  <rth@redhat.com>
6369         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
6370         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
6371         * doc/tm.texi (Exception Region Output): Document it.
6373 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6375         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
6376         DWARF2 instead of stabs by default.
6378 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6380         * config/rs6000/rs6000.c: Include optabs.h.
6382 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6384         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
6385         save/restore routines.
6386         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
6388 2001-08-13  Andreas Jaeger  <aj@suse.de>
6390         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
6391         the english is correct.
6393 2001-08-13  Zack Weinberg  <zackw@panix.com>
6395         * expr.h: Split out optab- and libfunc-related code to...
6396         * optabs.h, libfuncs.h: ... these new headers.
6398         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
6399         (OPTABS_H): New.
6400         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
6401         dependencies.
6402         * mkconfig.sh: Don't include insn-codes.h from config.h.
6404         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
6405         enum insn_code is available.  Move reload_in_optab and
6406         reload_out_optab array declarations to optabs.h.
6407         * regmove.c (gen_add3_insn): Move to optabs.c, export from
6408         there, prototype in expr.h.
6409         * gencodes.c: Cleanup: zap global variables, don't use
6410         printf where puts will do, don't bother defining MAX_INSN_CODE
6411         which nothing uses, let CODE_FOR_nothing get its value implicitly.
6413         * genemit.c, genopinit.c: Include optabs.h in generated file.
6414         * genoutput.c: Include insn-codes.h in generated file.
6415         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
6416         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
6417         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
6418         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
6419         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
6420         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
6421         Include optabs.h.
6422         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
6423         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
6424         config/m88k/m88k.c, config/sparc/sparc.c:
6425         Include libfuncs.h.
6426         * reload.c: Include expr.h and optabs.h before reload.h.
6427         * config/alpha/alpha.c: Include tree.h before reload.h.
6428         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
6429         and reload.h in that order.
6430         * config/sparc/sparc.c: Include debug.h.
6431         * recog.c: Include insn-codes.h.
6433 2001-08-13  Andreas Jaeger  <aj@suse.de>
6435         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
6436         s390*linux.
6438 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6440         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
6441         * gcc.c (init_spec): Fix typo in comment.
6442         * varasm.c (data_section): Fix typo in comment.
6444 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
6446         * predict.c (dump_prediction): New argument "USED".
6447         (combine_predictions_for_insn): Determine the used heuristics,
6448         output the case no heuristic applied.
6449         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
6451 2001-08-13  Andreas Jaeger  <aj@suse.de>
6453         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
6454         register %rip.
6456 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6458         * jump.c: Fix formatting.
6460 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6462         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
6463         length.
6465 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
6467         * loop.c (check_dbra_loop): Use condjump_label to compute
6468         jump_label.
6470         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
6471         to better document the files they're in.
6473 2001-08-12  Zack Weinberg  <zackw@panix.com>
6475         * recog.h (struct insn_operand_data): Shrink 'mode' field
6476         to 16 bits.
6478 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6480         * gcc.c: Fix comment formatting.
6481         * gccspec.c: Likewise.
6482         * gcov.c: Likewise.
6483         * gcse.c: Likewise.
6484         * genemit.c: Likewise.
6485         * gengenrtl.c: Likewise.
6486         * genrecog.c: Likewise.
6487         * gensupport.c: Likewise.
6488         * ggc-page.c: Likewise.
6489         * global.c: Likewise.
6490         * graph.c: Likewise.
6491         * ifcvt.c: Likewise.
6492         * integrate.c: Likewise.
6493         * lcm.c: Likewise.
6494         * libgcc2.c: Likewise.
6495         * loop.c: Likewise.
6496         * mbchar.c: Likewise.
6497         * optabs.c: Likewise.
6498         * predict.c: Likewise.
6499         * prefix.c: Likewise.
6500         * profile.c: Likewise.
6501         * protoize.c: Likewise.
6502         * real.c: Likewise.
6503         * recog.c: Likewise.
6504         * regclass.c: Likewise.
6505         * regmove.c: Likewise.
6506         * reg-stack.c: Likewise.
6507         * reload1.c: Likewise.
6508         * resource.c: Likewise.
6509         * rtlanal.c: Likewise.
6510         * rtl.c: Likewise.
6512 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6514         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
6515         a tree representing a constant is passed to the macro.
6517 2001-08-12  Richard Henderson  <rth@redhat.com>
6519         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
6520         (rs6000_elf_asm_out_destructor): New.
6521         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
6522         (DTORS_SECTION_ASM_OP): Remove.
6523         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6524         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
6526 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
6528         Revert:
6529         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6530         * gcc.c (set_collect_gcc_options): New function, split out from
6531         main.
6532         Ignore elided switches.
6533         (do_spec_1): Invoke before executing command.
6534         (set_input): Export.
6535         Move declaration ...
6536         * gcc.h (set_input): ... here.
6537         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6538         file.
6540 2001-08-12  Richard Henderson  <rth@redhat.com>
6542         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
6543         thinko wrt TARGET_RELOCATABLE.
6545 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6547         * fix-header.c (cb_file_change): Update prototype.
6549 2001-08-11  Zack Weinberg  <zackw@panix.com>
6551         * toplev.c (set_float_handler): Make static.
6552         * toplev.h: Don't prototype set_float_handler.
6554         * simplify-rtx.c: Don't include setjmp.h.
6555         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
6556         New functions.
6557         (simplify_unary_operation, simplify_binary_operation): Use them,
6558         via do_float_handler.
6560         * fold-const.c: Don't include setjmp.h.
6561         (exact_real_inverse_1): New function.
6562         (exact_real_inverse): Use it, via do_float_handler.
6564         * varasm.c: Don't include setjmp.h.
6565         (assemble_real_1): New function.
6566         (assemble_real): Use it, via do_float_handler.
6567         Call internal_error if we get a trap here.
6569         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
6570         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
6572 2001-08-11  Zack Weinberg  <zackw@panix.com>
6574         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
6575         STACK_BOUNDARY if not already defined.
6577         * calls.c, function.c, reload1.c, explow.c: Don't default
6578         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
6579         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
6581         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
6582         to run-time test.
6584         * doc/tm.texi: Document that STACK_BOUNDARY is required;
6585         clarify difference between it and PREFERRED_STACK_BOUNDARY.
6587 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6589         * cppmacro.c (enter_macro_context): Push macro expansions even
6590         if empty.
6592 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6594         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
6595         (rs6000_elf_section_type_flags): Actually return a value.
6597 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6599         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
6600         Clean up code: add missing comments and prototypes, fix warnings,
6601         remove obsolete code, fix spacing to conform to coding style.
6603 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6605         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
6606         and TARGET_ASM_CLOSE_PAREN.
6607         (regclass_map): CC register belongs to class NO_REGS.
6608         (legitimize_pic_address): Don't generate unnecessary moves
6609         (to avoid confusing loop optimization).
6610         (check_and_change_labels): Replace jump_long by indirect_jump.
6611         (s390_final_chunkify): Don't start a new literal pool on section
6612         switch in 64-bit code.
6613         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
6615         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
6616         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
6617         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
6618         modes correctly.
6619         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
6620         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
6621         (CONST_COSTS): Fixed incorrect costs.
6623         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
6624         Use emit_jump instead of emit_jump_insn (gen_jump).
6625         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
6626         (to avoid confusing flow analysis).
6627         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
6628         (casesi, casesi_jump): New.
6629         (jump_long): Removed.  Functionality merged into indirect_jump.
6630         (indirect_jump): Accept address_operand, not just register_operand.
6631         (cjump_long, icjump_long): Use same logic as indirect_jump.
6632         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
6633         Fixed broken setjmp/longjmp handling.
6634         (do_builtin_setjmp_setup): Removed.
6636         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
6637         broken GNU as versions that don't accept .quad with large
6638         negative values.  Use hexadecimal output instead.
6639         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
6640         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
6641         FUNCTION_EPILOGUE): Removed.  Now in targetm.
6643         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
6645         * config/s390/fixdfdi.h: Add missing copyright statement.
6646         Fix type conflicts on 64-bit.  Add missing SFmode routines.
6648         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
6649         email address.
6651 2001-08-11  Richard Henderson  <rth@redhat.com>
6653         * rtl.h (REG_EH_RETHROW): Remove.
6654         * rtl.c (reg_note_name): Update.
6655         * combine.c (distribute_notes): Don't check for it.
6657 2001-08-11  Richard Henderson  <rth@redhat.com>
6659         * combine.c (distribute_notes): Place REG_SETJMP.
6661 2001-08-11  Richard Henderson  <rth@redhat.com>
6663         * doc/extend.texi (Arrays and pointers implementation): Discourage
6664         relying on sign-extension of pointers.
6666 2001-08-11  H.J. Lu <hjl@gnu.org>
6668         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
6669         in_dtors.
6670         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
6671         RDATA_SECTION_ASM_OP.
6673 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6675         * doc/install.texi (Specific, c4x): Fix cross-reference to the
6676         main manual to work both for info and HTML versions.
6678 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6679             Matt Kraai <kraai@alumni.carnegiemellon.edu>
6681         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
6682         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
6683         (struct cpp_pool): New member first.
6684         * cppinit.c (append_include_chain): Plug memory leaks.
6685         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
6686         Allocate pragma structures from the (aligned) macro pool to
6687         avoid leaking memory.
6688         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
6689         so we don't leak memory.
6690         * hashtable.c (ht_destroy): New.
6691         * hashtable.h (ht_destroy): New.
6693 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6694             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6696         * c-lex.c (map): Make const.
6697         (cb_file_change): Update for callback passing a line map.
6698         Don't assume we have a previous map.  Remove sanity check
6699         about popping too many files.
6700         * cpperror.c (print_location): Make map const.
6701         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
6702         (cpp_make_system_header): Similarly.
6703         (search_from): Similarly.
6704         (_cpp_execute_include): Don't remember where we came from.
6705         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
6706         (struct cpp_reader): Make map const.
6707         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
6708         * cpplib.c (do_line): Update; line maps now hold sysp.
6709         (cpp_push_buffer): Similarly.
6710         (_cpp_do_file_change): Similarly; callback with map instead.
6711         (cpp_get_line_maps): Constify return value.
6712         (_cpp_pop_buffer): Update.
6713         * cpplib.h (struct cpp_file_change): Remove.
6714         (struct cpp_callbacks): Update.
6715         (cpp_get_line_maps): Constify return value.
6716         * cppmacro.c (_cpp_create_definition): Update.
6717         * cppmain.c (struct printer): Constify map.
6718         (maybe_print_line): Similarly.
6719         (print_line): Similarly.  Deduce flags 1 and 2 here.
6720         (cb_file_change): Update.
6721         * line-map.c (free_line_maps): Warn regardless.
6722         (add_line_map): Return pointer to const.  When passed NULL to_file
6723         with LC_LEAVE, use the obvious values for the return point so the
6724         caller doesn't have to figure them out.
6725         (lookup_line): Return pointer to const.
6726         (print_containing_files): Take pointer to const.
6727         * line-map.h (struct line_map): New members reason, sysp.
6728         (add_line_map): Return pointer to const.
6729         (lookup_line): Similarly.
6730         (print_containing_files): Take pointer to const.
6732 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
6733             Richard Henderson  <rth@redhat.com>
6735         * regmove.c (regmove_optimize): Avoid setting a register twice in
6736         a parallel set.
6738 2001-08-10  Richard Henderson  <rth@redhat.com>
6740         * doc/extend.texi (Arrays and pointers implementation): Document
6741         behavior of pointer/integer conversion.
6743 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
6745         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
6747 2001-08-10  Richard Henderson  <rth@redhat.com>
6749         * doc/extend.texi (C Implementation): New chapter.
6750         * doc/gcc.texi (Top): Link it in.
6752 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
6754         * doc/install.texi (Specific): Fix CVS merge botch.
6756 2001-08-10  Richard Henderson  <rth@redhat.com>
6758         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
6759         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
6761 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
6763         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
6764         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
6765         this macro is now required.
6767         * cselib.c (cselib_process_insn), flow.c (propagate_block),
6768         loop.c (find_and_verify_loops), reload.c (reload): Check
6769         for rtx code of CALL_INSN, not CALL, when deciding if we
6770         need to check for REG_SETJMP note.
6772         * gcse.c (compute_hash_table, compute_store_table): Update
6773         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
6774         logic.
6776         * config/avr/avr.c: Fix typo.
6777         * config/convex/convex.c (expand_movstr): Use adjust_address.
6778         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
6779         variable.
6780         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
6781         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
6782         Fix typo.
6783         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
6784         Do define STACK_BOUNDARY.
6785         * config/i370/i370.c: Include expr.h.
6786         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
6787         config/pa/som.h, config/v850/v850.h: Take in_ctors and
6788         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
6789         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
6790         * config/m88k/m88k.c: Include c-tree.h after expr.h.
6791         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
6792         * config/romp/romp.c: Include expr.h after tree.h.
6793         Include toplev.h.
6794         (output_fpop): Use xmalloc, not oballoc.
6795         * config/we32k/we32k.c: Include expr.h.
6797 2001-08-10  Kazu Hirata  <kazu@hxi.com>
6799         * config/h8300/h8300.h: Fix formatting.
6801 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
6803         * c-common.h (RETURN_NULLIFIED_P): Lose.
6804         * c-semantics.c (genrtl_return_stmt): Don't check it.
6806 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6808         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
6809         (mips_annotate_frame_insn): New function.
6810         (mips_emit_frame_related_store): New function.
6811         (save_restore_insns): Don't mark instructions that set up the base
6812         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
6813         the store instructions instead.
6814         (mips_expand_prologue): If the stack size is moved into a temporary
6815         register, do not mark that move as frame-related.  Add a
6816         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
6818 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6820         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
6821         stack slot as unchanging if current_function_calls_eh_return.
6823 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6825         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
6826         access the second half of the TFmode scratch operand.
6828 2001-08-10  Anthony Green  <green@redhat.com>
6830         * java/class.c (emit_register_classes): Conditionalize code on
6831         JCR_SECTION_NAME.
6833 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6835         * doc/install.texi (Specific, avr): Fix cross-reference to the
6836         main manual to work both for info and HTML versions.
6838 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6840         * stmt.c (expand_null_return_1): Remove code to generate simple returns
6841         and "use_goto" argument.
6842         (expand_null_return, expand_value_return): Update all callers.
6843         * function.c (expand_function_end): Remove code to generate simple
6844         return.
6845         * config/vax/vax.md (epilogue): New expander for function return.
6846         * doc/md.texi (epilogue): Remove "if defined".
6848 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
6850         * Makefile.in: Partially revert my previous change:
6851         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
6852         of the hashtab.o and safe-ctype.o rules.
6854 2001-08-09  Richard Henderson  <rth@redhat.com>
6856         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
6857         (USE_COLLECT2): Remove duplicate definition.
6858         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
6859         (use_collect2): Remove dead code.
6860         * configure.in (use_collect2): Remove will_use_collect2 and
6861         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
6862         * configure: Rebuild.
6864         * target.h (targetm.asm_out.constructor): New.
6865         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
6866         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
6867         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
6868         * varasm.c (in_ctors, in_dtors): New.
6869         (assemble_constructor, assemble_destructor): Remove.
6870         (default_stabs_asm_out_destructor): New.
6871         (default_named_section_asm_out_destructor): New.
6872         (dtors_section, default_dtor_section_asm_out_destructor): New.
6873         (default_stabs_asm_out_constructor): New.
6874         (default_named_section_asm_out_constructor): New.
6875         (ctors_section, default_ctor_section_asm_out_constructor): New.
6876         * output.h: Update declarations.
6877         * c-decl.c (c_expand_body): Use target hooks instead of
6878         assemble_constructor and assemble_destructor.
6879         * profile.c (output_func_start_profiler): Likewise.
6880         * objc/objc-act.c (finish_objc): Likewise.
6881         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
6882         for the constructor.
6883         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
6885         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
6886         (DTORS_SECTION_ASM_OP): Likewise.
6887         (__CTOR_LIST__): Use attribute section when possible.
6888         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
6890         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
6891         ASM_OUTPUT_CONSTRUCTOR.
6893         * config/darwin.c (machopic_asm_out_constructor): New.
6894         (machopic_asm_out_destructor): New.
6895         * config/darwin-protos.h: Update declarations.
6896         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6897         (ASM_OUTPUT_DESTRUCTOR): Remove.
6898         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6899         * config/nextstep.c (nextstep_asm_out_constructor): New.
6900         (nextstep_asm_out_destructor): New.
6901         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6902         (ASM_OUTPUT_DESTRUCTOR): Remove.
6903         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6904         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
6905         ASM_OUTPUT_*STRUCTOR.
6906         * config/i386/aix386ng.h: Likewise.
6908         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
6909         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
6910         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6911         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6912         * config/lynx.h: Likewise.
6913         * config/netware.h: Likewise.
6914         * config/psos.h: Likewise.
6915         * config/alpha/alpha-interix.h: Likewise.
6916         * config/alpha/elf.h: Likewise.
6917         * config/arc/arc.h: Likewise.
6918         * config/arm/aof.h: Likewise.
6919         * config/arm/coff.h: Likewise.
6920         * config/arm/elf.h: Likewise.
6921         * config/c4x/c4x.h: Likewise.
6922         * config/h8300/h8300.h: Likewise.
6923         * config/i386/cygwin.h: Likewise.
6924         * config/i386/djgpp.h: Likewise.
6925         * config/i386/i386-coff.h: Likewise.
6926         * config/i386/i386-interix.h: Likewise.
6927         * config/i386/sco5.h: Likewise.
6928         * config/i386/vsta.h: Likewise.
6929         * config/i386/win32.h: Likewise.
6930         * config/i960/i960-coff.h: Likewise.
6931         * config/ia64/sysv4.h: Likewise.
6932         * config/m68hc11/m68hc11.h: Likewise.
6933         * config/m68k/coff.h: Likewise.
6934         * config/m68k/mot3300.h: Likewise.
6935         * config/m88k/m88k.h: Likewise.
6936         * config/mcore/mcore-pe.h: Likewise.
6937         * config/mcore/mcore.h: Likewise.
6938         * config/mips/elf.h: Likewise.
6939         * config/mips/elf64.h: Likewise.
6940         * config/mips/iris6.h: Likewise.
6941         * config/pa/pa64-hpux.h: Likewise.
6942         * config/rs6000/sysv4.h: Likewise.
6943         * config/sh/sh.h: Likewise.
6944         * config/sparc/litecoff.h: Likewise.
6946         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
6947         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6948         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6949         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6950         (ASM_OUTPUT_DESTRUCTOR): Remove.
6951         * config/a29k/a29k.c: Move include of tree.h.
6952         * config/a29k/udi.h: Delete file.
6953         * config/alpha/alpha.c (vms_asm_out_constructor): New.
6954         (vms_asm_out_destructor): New.
6955         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
6956         (EXTRA_SECTION_FUNCTIONS): Likewise.
6957         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6958         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6959         * config/c4x/c4x.c: Move include of tree.h.
6960         * config/clipper/clipper.c (clix_asm_out_constructor): New.
6961         (clix_asm_out_destructor): New.
6962         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6963         (ASM_OUTPUT_DESTRUCTOR): Remove.
6964         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6965         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6966         (TARGET_ASM_CONSTRUCTOR): New.
6967         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
6968         (sco_asm_out_constructor): New.
6969         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
6970         * config/i386/svr3gas.h: Remove stack grows up code.
6971         Remove code duplicated from i386/sysv3.h.
6972         (TARGET_ASM_CONSTRUCTOR): New.
6973         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6974         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
6975         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6976         (TARGET_ASM_CONSTRUCTOR): New.
6977         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
6978         (m68hc11_asm_out_destructor): New.
6979         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
6980         (TARGET_ASM_DESTRUCTOR): New.
6981         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
6982         * config/m68k/dpx2.h: Properly undef all the bits inherited from
6983         config/svr3.h pertaining to section manipulation.
6984         * config/m68k/dpx2g.h: Remove #if 0 code.
6985         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
6986         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
6987         (ASM_OUTPUT_CONSTRUCTOR): Remove.
6988         (TARGET_ASM_CONSTRUCTOR): New.
6989         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
6990         (m88k_svr3_asm_out_constructor): New.
6991         (m88k_svr3_asm_out_destructor): New.
6992         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6993         (ASM_OUTPUT_DESTRUCTOR): Remove.
6994         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6995         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
6996         * config/rs6000/aix.h: Likewise.
6997         * config/mips/rtems64.h: Don't undef removed constructor related bits.
6998         * config/mips/vxworks.h: Likewise.
6999         * config/rs6000/lynx.h: Likewise.
7000         * config/sh/elf.h: Likewise.
7001         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
7002         (DTORS_SECTION_ASM_OP): New.
7003         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7004         (ASM_OUTPUT_DESTRUCTOR): Remove.
7005         * config/sparc/sol2-sld-64.h: Likewise.
7006         * config/vax/vax.c (vms_asm_out_constructor): New.
7007         (vms_asm_out_destructor): New.
7008         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7009         (ASM_OUTPUT_DESTRUCTOR): Remove.
7010         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7012         * doc/tm.texi (@node Initialization): Update.
7014 2001-08-09  Richard Henderson  <rth@redhat.com>
7016         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
7017         (__do_global_dtors_aux): Use gp-relative static data to avoid
7018         one dynamic relocation.
7019         (__do_frame_setup): Register Java classes.
7020         * config/alpha/crtend.asm (__JCR_END__): New.
7022 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
7024         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
7025         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
7026         (GEN, STAGESTUFF): Add new files.
7027         (insn-constants.h, s-constants, tm-preds.h, s-preds,
7028         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
7029         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
7030         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
7031         as well as insn-codes.h and insn-flags.h in config.h; and no
7032         extra headers in tconfig.h and hconfig.h.
7034         * gencodes.c: Eliminate code to generate predicate declarations
7035         or #defines for md-file constants.
7036         * genconstants.c, genpreds.c: New files.
7038         * i386.md: Re-order guard expressions such that TARGET_64BIT
7039         comes first, when this permits better optimization.  Add
7040         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
7041         why this is desirable.
7043 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
7045         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
7046         (find_fde_for_dso): Remove.
7047         (_Unwind_IteratePhdrCallback): New.
7048         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
7049         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
7051 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7053         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
7054         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
7056 2001-08-09  Graham Stott  <grahams@redhat.com>
7058         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
7059         (vis_no_unit): Use it.
7060         (visualize_no_unit): Add the insn only if room exists.
7062 2001-08-09  Graham Stott  <grahams@redhat.com>
7064         * predict.c (estimate_probability): Replace magic numbers with
7065         appropriate enumeration.
7067 2001-08-09  Graham Stott  <grahams@redhat.com>
7069         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
7070         parameter.
7071         (EXTRACT_FLAGS): Likewise.
7073 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
7075         * config/mips/mips.c    (mips_legitimate_address_p): Check for
7076         CONST_INT in last patch.
7078 2001-08-08  Anthony Green  <green@redhat.com>
7080         * java/class.c (emit_register_classes): Use assemble_jcr if
7081         possible.  Keep the original mechanism as a fallback.
7082         * defaults.h (JCR_SECTION_NAME): Define if we have named section
7083         and weak symbol support.
7084         * crtstuff.c (__JCR_LIST__): Define.
7085         (__JCR_END__): Define.
7086         (_Jv_RegiserClasses): Define weak symbol if possible.
7087         (__do_global_ctors_aux): Register classes for ELF targets with
7088         weak symbol support.
7090 2001-08-08  Kazu Hirata  <kazu@hxi.com>
7092         * dbxout.c: Fix comment formatting.
7093         * dependence.c: Likewise.
7094         * df.c: Likewise.
7095         * diagnostic.c: Likewise.
7096         * dominance.c: Likewise.
7097         * doprint.c: Likewise.
7098         * dwarf2out.c: Likewise.
7099         * dwarfout.c: Likewise.
7100         * emit-rtl.c: Likewise.
7101         * except.c: Likewise.
7102         * explow.c: Likewise.
7103         * expmed.c: Likewise.
7104         * expr.c: Likewise.
7105         * flow.c: Likewise.
7106         * fold-const.c: Likewise.
7107         * function.c: Likewise.
7109 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7111         * global.c (retry_global_alloc): Avoid shadowing allocno.
7113 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
7115         * except.c (remove_fixup_regions): Fix typo.
7117 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
7119         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
7120         unsigned HOST_WIDE_INT to avoid warning.
7121         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
7122         * flow.c (set_block_for_new_insns): Likewise.
7124 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
7126         * sibcall.c (return_value_pseudo): New static variable.
7127         (skip_copy_to_return_value): Handle return_value_pseudo.
7128         (call_ends_block_p): Ensure that return_value_pseudo is set.
7129         (optimize_sibling_and_tail_recursive_call): Discover the
7130         load of pseudo return value in alternate exit block.
7132 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7134         * calls.c (ECF_ALWAYS_RETURN): New constant.
7135         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
7136         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
7137         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
7138         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
7139         * rtl.c (reg_note_name): New name.
7140         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
7142 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
7144         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
7146 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
7148         * alias.c (get_alias_set): Return a previously calculated
7149         alias set for a VAR_DECL.
7150         * function.c (gen_mem_addressof): Calculate the alias set before
7151         touching the RTL.
7153 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
7155         * predict.def: Set hitrates according our experimental run.
7157 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
7159         * i386.h (HARD_REGNO_RENAME_OK): New macro.
7161 2001-08-08  H.J. Lu <hjl@gnu.org>
7163         * config/mips/mips.c (mips_unique_section): New. Copied from
7164         config/mips/elf.h.
7166         * config/mips/mips-protos.h (mips_unique_section): New
7167         prototype.
7169         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
7171         * config/mips/little.h: New. Generic little endian mips
7172         targets. Only mips*-*-linux* is converted to use it so far.
7174         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
7175         (WCHAR_TYPE): Defined
7176         (WCHAR_TYPE_SIZE): Likewise.
7177         (INIT_SUBTARGET_OPTABS): Likewise.
7178         (BSS_SECTION_ASM_OP): Likewise.
7179         (SBSS_SECTION_ASM_OP): Likewise.
7180         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7181         (ASM_DECLARE_OBJECT_NAME): Likewise.
7182         (UNIQUE_SECTION): Likewise.
7183         (EXTRA_SECTIONS): Likewise.
7184         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
7185         (ASM_OUTPUT_DESTRUCTOR): Likewise.
7186         (ASM_OUTPUT_DEF): Likewise.
7187         (HANDLE_SYSV_PRAGMA): Removed.
7188         (NO_IMPLICIT_EXTERN_C): Likewise.
7189         (TARGET_MEM_FUNCTIONS): Likewise.
7190         (STARTFILE_SPEC): Likewise.
7191         (ENDFILE_SPEC): Likewise.
7192         (LIB_SPEC): Likewise.
7193         (INVOKE__main): Likewise.
7194         (CTOR_LIST_BEGIN): Likewise.
7195         (CTOR_LIST_END): Likewise.
7196         (DTOR_LIST_BEGIN): Likewise.
7197         (DTOR_LIST_END): Likewise.
7198         (SET_ASM_OP): Likewise.
7199         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7200         (ASM_OUTPUT_DEF): Likewise.
7201         (ASM_OUTPUT_IDENT): Likewise.
7203         * config/mips/mips.h (ASM_SPEC): Undefine before define.
7204         (CPLUSPLUS_CPP_SPEC): Likewise.
7205         (ASM_APP_ON) Redefine only if not defined.
7206         (ASM_APP_OFF): Likewise.
7207         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7208         (ASM_OUTPUT_IDENT): Likewise.
7210         * config.gcc: Update tm_file for Linux/mips.
7212 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
7214         * cselib.c (cselib_record_sets): If insn is predicated, turn
7215         sources into IF_THEN_ELSEs.
7217         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
7218         Turn into define_insn_and_split.
7220         * sched-deps.c: Include "cselib.h".
7221         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
7222         Use cselib to turn memory addresses into VALUEs.
7223         (sched_analyze): Call cselib_init/cselib_finish if necessary.
7224         * sched-int.h (struct sched_info): New member USE_CSELIB.
7225         * sched-ebb.c (ebb_sched_info): Initialize it.
7226         * sched-rgn.c (rgn_sched_info): Likewise.
7227         * Makefile.in (sched-deps.o): Update dependencies.
7229         * cselib.h (cselib_subst_to_values): Declare.
7230         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
7231         that have no value and autoincs to be handled by generating a new
7232         dummy value.
7234 2001-08-08  Graham Stott  <grahams@redhat.com>
7236         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
7237         within fixed length SEQUENCE.
7239 2001-08-08  Graham Stott  <grahams@redhat.com>
7241         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
7242         (diagnostic_prefixing_rule): Likewise.
7243         (diagnostic_line_cutoff): Likewise.
7244         (diagnostic_kind_count): Likewise.
7246 2001-08-08  Graham Stott  <grahams@redhat.com>
7248         * alias.c (find_base_decl): Delete redundent assignment.
7250 2001-08-08  Graham Stott  <grahams@redhat.com>
7252         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
7253         (abs): Uppercase and paranthesize macro parameter.
7254         (MEM_DEPENDENCY): Add whitespace.
7256 2001-08-08  Graham Stott  <grahams@redhat.com>
7258         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
7259         failure check for CONST_INT
7261 2001-08-08  Graham Stott  <grahams@redhat.com>
7263         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
7264         (libcall_dead_p): Likewise.
7266         (mark_used_regs): Constify fmt.
7267         (find_use_as_address): Likewise.
7269 2001-08-08  Graham Stott  <grahams@redhat.com>
7271         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
7272          parameter.
7274 2001-08-08  Graham Stott  <grahams@redhat.com>
7276         * combine.c (combine_simplify_rtx): Update comment and
7277         remove erroneous test.
7279 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7281         * cppinit.c (cpp_finish): Pop the final buffer without comment.
7282         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
7283         take care to avoid multiple no-newline at EOF warnings in that
7284         case.
7286 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
7288         * calls.c (expand_call): Do not emit INSN_SETJMP note.
7289         (emit_library_call_value_1): Likewise.
7290         (emit_call_1): Emit REG_SETJMP note.
7291         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
7292         of INSN_SETJMP
7293         * cselib.c (cselib_process_insn): Likewise.
7294         * flow.c (propagate_block): Likewise.
7295         * loop.c (find_and_verify_loops): Likewise.
7296         * reload.c (find_equiv_regs): Likewise.
7297         * reload1.c (reload): Likewise.
7298         * resource.c (mark_referenced_resources,
7299         mark_set_resources): Likewise.
7300         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
7301         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
7302         * haifa-sched.c (unlink_other_notes): Likewise.
7303         (reemit_notes): Likewise.
7304         * sched-ebb.c (sched_ebb): Likewise.
7305         * sched-rgc.c (sched_region): Likewise.
7306         * rtl.c (note_insn_name): Likewise.
7307         (reg_note_name): Add REG_SETJMP
7308         * rtl.h (reg_note): Add REG_SETJMP.
7309         (insn_note): Remove NOTE_INSN_SETJMP.
7311         * profile.c (branch_prob): Add fake edges for setjmp.
7313 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
7315         * config.gcc: Quote target_cpu_default2 correctly for
7316         powerpc*-*-* targets.
7318 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7320         * cpplib.h, line-map.h: Update comments.
7321         * cppmain.c (printer_init): Move inline.
7322         (maybe_print_line, print_line): Take a map pointer.
7323         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
7324         (cb_file_change): Don't use prior value of print.map.
7326 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
7328         * doc/install.texi: Document fine-grained multilib configuration.
7330 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7332         * rtlanal.c (find_first_parameter_load): Call note_stores
7333         only on the instructions.
7335 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7337         * alias.c (nonlocal_mentioned_p):
7338         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
7339         * calls.c (emit_call_1): Likewise.
7340         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
7341         * cselib.c (cselib_process_insn): Likewise.
7342         * df.c (df_insns_modify): Likewise.
7343         * flow.c (need_fake_edge_p): Likewise.
7344         (propagate_one_insn): Likewise.
7345         * haifa-sched.c (reemit_notes): Likewise.
7346         * integrate.c (copy_insn_list): Likewise.
7347         * jump.c (delete_prior_computation): Likewise.
7348         * local-alloc.c (validate_equiv_mem): Likewise.
7349         * loop.c (scan_loop): Likewise.
7350         * predict.c (estimate_probability): Likewise.
7351         * reload.c (reload): Likewise.
7352         * sched-deps (sched_analyze): Likewise.
7353         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
7354         * gcse.c (compute_hash_table): Likewise.
7355         (mark_call): Likewise.
7356         (store_killed_in_insn): Likewise.
7358 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
7360         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
7362 2001-08-06  Richard Henderson  <rth@redhat.com>
7364         * varasm.c (assemble_gc_entry): Remove.
7365         * output.h: Likewise.
7367 2001-08-06  Richard Henderson  <rth@redhat.com>
7369         * varasm.c (assemble_constructor): Take a symbol_ref and a
7370         priority instead of a bare string.  Move priority handling
7371         here from cp/decl2.c.
7372         * output.h: Update decls.
7374         * c-decl.c (c_expand_body): Update calls to assemble_constructor
7375         and assemble_destructor.
7376         * profile.c (output_func_start_profiler): Likewise.
7377         * objc/objc-act.c (finish_objc): Likewise.
7378         (build_module_descriptor): Return the symbol not the symbol name.
7380 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
7382         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
7383         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
7384         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
7385         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
7386         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
7387         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
7389 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7391         * cpperror.c (print_containing_files): Moved to line-map.c.
7392         (print_location): line-map.c handles re-listing or otherwise.
7393         * cpphash.h (struct lexer_state): Remove next_bol.
7394         (struct cpp_buffer): Remove include_stack_listed.
7395         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
7396         Remove faked buffer handling.
7397         (_cpp_do_file_change): Tweak.
7398         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
7399         * cppmain.c (struct printer): Remove filename.
7400         (print_line, cb_file_change): Update accordingly.
7401         * line-map.c: Include intl.h.
7402         (init_line_maps): Initialize last_listed.
7403         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
7404         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
7405         (print_containing_files): New.
7406         * line-map.h (struct line_maps): New member last_listed.
7407         (print_containing_files, INCLUDED_FROM): New.
7408         * Makefile.in: Update.
7409         * po/POTFILES.in: Add line-map.c.
7411 2001-08-06  Richard Henderson  <rth@redhat.com>
7413         * except.c (convert_from_eh_region_ranges_1): Never mark
7414         USE or CLOBBER insns as throwing.
7416         * expr.c (store_constructor): Don't clobber memory targets.
7418 2001-08-06  Andreas Jaeger  <aj@suse.de>
7420         * profile.c (branch_prob): Remove unused variable insn.
7422         * Makefile.in (local-alloc.o): Add dependency on except.h.
7424         * local-alloc.c: Include except.h for can_throw_internal prototype.
7426 2001-08-06  Richard Henderson  <rth@redhat.com>
7428         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
7429         * function.c (expand_main_function): Implement it.
7430         * doc/tm.texi: Document it.
7432 2001-08-06  Stan Shebs  <shebs@apple.com>
7434         * doc/install.texi: Document powerpc-*-darwin* details.
7436 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
7438         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
7439         (ASM_CPU_SPEC): Move back to rs6000.h
7440         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
7442         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
7444         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
7445         readded.
7447         * config/rs6000/linux64.h: Ditto.
7449         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7450         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
7451         nothing.
7453         Remove accidently readded definitions of FUNCTION_PROLOGUE,
7454         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
7456         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7457         to rs6000.h
7459 2001-08-05  Richard Henderson  <rth@redhat.com>
7461         * local-alloc.c (update_equiv_regs): Do not move insns that
7462         can throw.
7464 2001-08-05  Jan Hubicka  <jh@suse.cz>
7466         * Makefile.in (reload1.o): Add dedendancy on except.h
7467         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
7468         prototypes.
7469         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
7470         indicating wehther edges has been cleaned up.
7471         * reload1.c: Inlucde except.h
7472         (fixup_abnormal_edges): Accept deleted insns.
7473         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
7474         after combine.
7476 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7478         * cpplib.c (do_line): Correct line number after pop_buffer.
7480 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7482         PR preprocessor/3824
7483         * line-map.c: Update comments.
7484         * line-map.h: Update comments.
7485         * tradcif.y: Don't consider large numbers unsigned.
7487 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7489         PR preprocessor/3081
7490         * c-lex.c (map): New.
7491         (cb_file_change): Update map and use it.
7492         (cb_def_pragma, cb_define, cb_undef): Use map and line.
7493         (c_lex): Update to use map.
7494         * cpperror.c (print_location): Move to using logical line numbers.
7495         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
7496         (cpp_make_system_header): Similarly.
7497         (_cpp_execute_include): Stop line numbering hacks.  Store the
7498         line we will return to.
7499         * cpphash.h (CPP_BUF_LINE): Remove.
7500         (struct cpp_buffer): Remove lineno and pseudo_newlines.
7501         Add map and return_to_line.
7502         (_cpp_do_file_change): Update.
7503         * cppinit.c (cpp_start_read): Update line kludge.
7504         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
7505         (trigraph_ok): Use logical line numbers for diagnostics.
7506         (skip_block_comment): Likewise.
7507         (skip_whitespace): Likewise.
7508         (skip_line_comment): Use pfile->line instead.
7509         (_cpp_lex_token): Update to use logical line numbering exclusively.
7510         Handle BOL locally.  Accept new lines in directives, but keep
7511         pfile->line decremented.  Diagnostics use logical lines.  Update
7512         directive handling.
7513         * cpplib.c (SEEN_EOL): New.
7514         (skip_rest_of_line, check_eol): Use it.
7515         (end_directive): Increase line number when accepting the newline
7516         at the end of a directive.
7517         (run_directive): Simplify.
7518         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
7519         (_cpp_do_file_change): Update to take buffer line number as an
7520         argument, and store the current map in the cpp_reader.  Remove
7521         line number kludges.
7522         (_cpp_do__Pragma): Restore output position after a _Pragma.
7523         (cpp_push_buffer): Don't set output line or lineno.
7524         (_cpp_pop_buffer): Transfer more info from a faked buffer.
7525         Remove line kludge.  Set output_line.
7526         * cppmacro.c (builtin_macro): Update handling of __LINE__.
7527         (parse_arg): Use logical lines.
7528         (save_lookahead_token): Save EOFs too now.
7529         * cppmain.c (struct printer): Fix comments.
7530         (printer_init): Simplify, let caller do errors.
7531         (scan_translation_unit, check_multiline_token, dump_macro): Update.
7532         (maybe_print_line): Simplify.
7533         (print_line): Don't print a linemarker if -P.
7534         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
7535         (cb_file_change): Simplify.
7536         * line-map.h (LAST_SOURCE_LINE): Fix.
7537         (CURRENT_LINE_MAP): New.
7539 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
7541         * doloop.c (doloop_modify_runtime): Properly compute number of
7542         iterations if loop was unrolled.
7544         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
7545         if their CSELIB_VAL_PTRs are.
7547         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
7548         (setup_spill_pointers): Initialize it.
7549         (spill_restore_mem): Set it.
7550         (do_spill, do_restore): Use it to add REG_INC note.
7551         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
7553         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
7554         asms if other insns are available.
7556         * config/ia64/ia64.c (condop_operator): New predicate.
7557         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
7558         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
7559         patterns.
7561         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
7562         temporary register than directly using a MEM.
7564 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7566         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
7567         parameter in last change.
7569 2001-08-04  Zack Weinberg  <zackw@panix.com>
7571         * sparc.md: Don't use #if inside C test expression.
7573 2001-08-04  Richard Henderson  <rth@redhat.com>
7575         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
7577 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7579         * cpphash.h (struct cpp_reader): New member directive_line.
7580         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
7581         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
7582         do_pragma): Pass line to callbacks.
7583         (start_directive): Record line of directive.
7584         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
7585         cb_include): Similarly.
7586         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
7587         Similarly.
7589 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7591         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
7592         comment.
7594 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7596         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
7598         * reload1.c (fixup_abnormal_edges): New static function.
7599         (reload): Use it.
7601         * flow.c (need_fake_edge_p): New function.
7602         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
7603         avoid call insn to be very last insn in the insn stream.
7605         * profile.c (branch_prob): Call flow_call_edges_add instead of
7606         doing that by hand; cleanup cfg to re-merge basic blocks once
7607         we are done.
7609 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7611         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
7612         are also on line-map.h.
7613         * cppfiles.c (stack_include_file): Update.
7614         * cpphash.h (struct cpp_buffer): New member return_at_eof.
7615         (_cpp_pop_buffer): New.
7616         * cppinit.c (cpp_destroy, cpp_finish): Update.
7617         (do_includes): Mark each buffer to return at EOF.
7618         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
7619         return as requested.
7620         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
7621         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
7622         * cpplib.h (cpp_pop_buffer): Remove.
7623         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
7624         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
7625         buffers.
7626         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
7627         to pop buffers.
7628         (do_preprocessing): Update.
7629         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
7630         * c-parse.in (_yylex): Similarly.
7631         * scan-decls.c (scan_decls): Similarly.
7632         * line-map.h: Update comments.
7634         * objc/Make-lang.in (objc-act.o): Update dependencies.
7636 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7638         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
7639         and soft register for operand 0.
7640         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
7642 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7644         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
7645         register for operand 0.
7646         ("bitcmpqi_z_used"): Allow memory for operand 0.
7647         (split "bitcmpqi"): New split to handle address reg as operand 1.
7649 2001-08-04  Andreas Jaeger  <aj@suse.de>
7651         * gcse.c: Revert Daniel's last patch.
7653 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7655         * sparc-protos.h: Add prototypes for fp_zero_operand and
7656         reg_or_0_operand.
7657         * sh-protos.h: Add prototype for fpul_operand.
7659 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7661         * doc/extend.texi (Other Builtins): Fix typo in last change.
7663 2001-08-03  Richard Henderson  <rth@redhat.com>
7665         * target.h (gcc_target): Add asm_out.named_section,
7666         section_type_flags, have_named_sections.
7667         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
7668         (TARGET_HAVE_NAMED_SECTIONS): New.
7669         (TARGET_SECTION_TYPE_FLAGS): New.
7671         * Makefile.in (toplev.o): Depend on TARGET_H.
7672         (varasm.o, dbxout.o): Likewise.
7673         * c-common.c (decl_attributes): Check targetm.have_named_sections
7674         instead of ifdef ASM_OUTPUT_SECTION_NAME.
7675         * dbxout.c (dbxout_function_decl): Likewise.
7676         (dbxout_function_end): Likewise.
7677         * toplev.c (compile_file): Likewise.
7678         * varasm.c (exception_section): Likewise.
7679         * cp/decl2.c (finish_objects): Likewise.
7681         * defaults.h (EH_FRAME_SECTION): Remove.
7682         (EH_FRAME_SECTION_ASM_OP): Remove.
7683         (EH_FRAME_SECTION_NAME): New.
7684         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
7685         (UNIQUE_SECTION_P): Remove.
7686         * dwarf2out.c (SECTION_FORMAT): Remove.
7687         (ASM_OUTPUT_SECTION): Remove.
7688         (output_call_frame_info): Use named_section_flags.
7689         (output_comp_unit, dwarf2out_start_source_file): Likewise.
7690         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
7691         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
7692         * varasm.c (in_eh_frame, eh_frame_section): Remove.
7693         (named_section_flags): New.
7694         (named_section): Use it and targetm.section_type_flags.
7695         (resolve_unique_section): New.
7696         (assemble_start_function): Use it.
7697         (asm_emit_uninitialised, assemble_variable): Likewise.
7698         (default_section_type_flags): New.
7699         (default_no_named_section, default_elf_asm_named_section): New.
7700         (default_coff_asm_named_section, default_pe_asm_named_section): New.
7701         * output.h: Update varasm.c decls.
7702         (SECTION_*): New flags.
7704         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
7705         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
7707         * config/elfos.h (UNIQUE_SECTION_P): Remove.
7708         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
7709         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
7710         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7711         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
7712         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
7713         * config/mips/elf.h, config/mips/elf64.h: Likewise.
7714         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
7715         * config/pa/pa64-hpux.h,
7717         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
7718         (TARGET_ASM_NAMED_SECTION): New.
7719         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
7720         * config/alpha/vms.h, config/arm/coff.h: Likewise.
7721         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
7722         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
7723         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
7724         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
7725         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7726         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
7727         * config/i386/sco5.h, config/i386/win32.h: Likewise.
7728         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
7729         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
7730         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
7731         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
7732         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
7733         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
7734         * config/sparc/sysv4.h: Likewise.
7736         * config/nextstep.h: Error until named sections implemented.
7738         * config/a29k/a29k.c (a29k_asm_named_section): New.
7739         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
7740         (vms_section_type_flags, vms_asm_named_section): New.
7741         * config/arm/arm.c (arm_elf_asm_named_section): New.
7742         * config/avr/avr.c (asm_output_section_name): Remove.
7743         * config/avr/avr-protos.h: Update.
7744         * config/c4x/c4x.c (c4x_asm_named_section): New.
7745         * config/h8300/h8300.c (h8300_asm_named_section): New.
7746         * config/i386/i386.c (sco_asm_named_section): New.
7747         * config/i386/winnt.c (SECTION_PE_SHARED): New.
7748         (i386_pe_section_type_flags): New.
7749         (i386_pe_asm_named_section): New.
7750         * config/i386/i386-protos.h: Update.
7751         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
7752         * config/mcore/mcore.c (mcore_asm_named_section): New.
7753         * config/mips/mips.c (iris6_asm_named_section): New.
7754         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
7755         instead of UNIQUE_SECTION_P.
7756         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
7757         (xcoff_asm_named_section): New.
7758         * config/sh/sh.c (sh_asm_named_section): New.
7759         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
7761         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
7762         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
7763         (EH_FRAME_SECTION_NAME): New.
7764         (EXCEPTION_SECTION): New.
7765         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
7766         (DEBUG_*_SECTION): Remove.
7767         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
7768         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
7769         (EH_FRAME_SECTION_ASM_OP): Remove.
7771         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
7772         (ASM_OUTPUT_SECTION_NAME): Remove.
7773         (TARGET_ASM_NAMED_SECTION): New.
7774         (TARGET_HAVE_NAMED_SECTIONS): New.
7775         (TARGET_SECTION_TYPE_FLAGS): New.
7776         (EH_FRAME_SECTION_ASM_OP): Remove.
7777         (EH_FRAME_SECTION_NAME): New.
7779 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7781         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
7782         for complex expressions when cfun == 0.
7783         * doc/extend.texi: Document that __builtin_constant_p can be
7784         used in data initializers as well as functions.
7786 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
7788         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
7789         variable I locally, instead of expecting a declaration in the
7790         calling context.
7792 2001-08-03  Richard Henderson  <rth@redhat.com>
7794         * except.c (collect_one_action_chain): Add an explicit cleanup
7795         action if regions surrounding a catch were encoded entirely
7796         within the call-site entry.
7798 2001-08-03  Richard Henderson  <rth@redhat.com>
7800         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
7801         don't take REGNO of a non-register.
7803 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7805         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
7806         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
7807         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
7808         (__gthread_mutex_init_function): New function for mutex initialization.
7810 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7812         * Makefile.in: Revert screwed up commit.
7814 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7816         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
7817         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
7818         merged by linker script to get a final _exit().
7819         (__do_global_dtors): New for destructor handling in specific exit
7820         section.
7821         (__do_global_ctors): New for constructors in specific install section.
7822         (__map_data_section): Map data sections before running constructors.
7823         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
7824         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
7825         (DTORS_SECTION_ASM_OP): Likewise.
7826         (CTORS_SECTION_FUNCTION): Define to force a reference to
7827         __do_global_ctors.
7828         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
7830 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7832         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
7834         * Makefile.in: Add df.h to gcse.c dependencies.
7836 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7838         * varasm.c (output_constant_def_contents): Use for the length of a
7839         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
7840         depending on which is larger.
7842 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7844         * gcse.c: Include df.h for use as a dataflow analyzer.
7845         Remove regvec.
7846         Declaration of reg_set_info: gone.
7847         New df_analyzer variable used by store motion.
7848         (reg_set_info): Deleted.
7849         (mark_mem_regs): New function, analyze regs used by a mem.
7850         (store_ops_ok): Use dataflow analyzer results to determine if
7851         necessary regs are changed in the block.
7852         (find_moveable_store): Remove check for symbol ref, we can handle
7853         much more complex expressions now.
7854         (compute_store_table): Remove most of the code, it's unnecessary
7855         now that the dataflow analyzer records the info for us.
7856         (store_killed_after): Add parameter to say whether to do the
7857         store_ops_okay test, used to speed up testing when we already know
7858         the answer, and just want to know if the store itself was killed.
7859         (build_store_vector): Largely rewritten to calculate the various
7860         vectors properly, and somewhat optimized.
7861         (store_motion): Init the df_analyzer, get REG_DEF chains.
7862         Also handle trapping expressions (since mems almost always trap)
7863         (simple_mem): Redefine what a simple mem is.
7865 2001-08-03  DJ Delorie  <dj@redhat.com>
7867         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
7868         set from a constant part of the condition.
7870 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
7872         * mkdeps.c (deps_add_default_target): Make local variable
7873         ``start'' a const char pointer.
7874         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
7876 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7878         * doc/install.texi (Configuration): Fix markup.
7879         (Specific, i?86-*-udk): Likewise.
7880         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
7881         --with-gnu-ld.
7882         Document --enable-threads and --enable-libgcj status.
7883         (Specific, mips-sgi-irix*): Canonicalize triples.
7884         (Specific, mips-sgi-irix5): Warn about problems with this config.
7885         Mention required GNU as patch.
7886         Native assembler problems are fixed.
7887         (Specific, mips-sgi-irix6): Update O32 ABI support status.
7888         Document --enable-threads and --enable-libgcj status.
7890 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7892         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
7893         of mkinstalldirs.
7895 2001-08-03  Richard Henderson  <rth@redhat.com>
7897         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
7898         constant data.
7900 2001-08-03  Richard Henderson  <rth@redhat.com>
7902         * rtlanal.c (find_first_parameter_load): Stop if we
7903         reach a CODE_LABEL at BOUNDARY.
7905 2001-08-03  Richard Henderson  <rth@redhat.com>
7907         * config/alpha/alpha.md (force_movdi): New insn.
7908         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
7909         Tweek FRP marking of VMS prologue insns.
7910         * config/alpha/vms.h (EPILOGUE_USES): New.
7912 2001-08-02  Richard Henderson  <rth@redhat.com>
7914         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
7916 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7918         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
7919         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
7920         config/convex/convex.h, config/d30v/d30v.c,
7921         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7922         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
7923         config/mips/mips.h, config/mn10200/mn10200.h,
7924         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
7925         config/v850/v850.h, config/vax/openbsd.h,
7926         config/vax/openbsd1.h, config/vax/ultrix.h,
7927         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
7928         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
7929         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
7930         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
7931         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
7932         in comments and documentation.
7934 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7936         * line-map.c: New.
7937         * line-map.h: New.
7938         * Makefile.in (line-map.o): New.
7939         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
7940         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
7941         * cpperror.c (print_containing_files): Similarly.
7942         (print_location): Update.  Don't output a space before _Pragma.
7943         * cppfiles.c (stack_include_file): Set to line 1 immediately.
7944         (stack_include_filee, cpp_make_system_header): Update.
7945         (_cpp_execute_include): Get logical line number right for calling
7946         as-yet-unterminated #include.
7947         * cpphash.h (struct cpp_reader): Add line_maps.
7948         (_cpp_do_file_change): Update.
7949         * cppinit.c (cpp_create_reader): Initialize line maps.
7950         (cpp_destroy): Destroy line maps.
7951         (cpp_start_read): Get logical line number right.
7952         * cpplex.c (parse_string): Only warn once for multi-line strings.
7953         Use boolean variable for null warning.
7954         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
7955         already.
7956         (do_include_common): End the directive early.
7957         (do_line): Don't warn about out-of-range lines in preprocessed
7958         source.  Update.  Remove unused variables.
7959         (_cpp_do_file_change): Update for new line mapping.
7960         (pragma_cb): New typedef.
7961         (cpp_register_pragma): Stop looking ahead before calling the
7962         handler.  Clean up.
7963         (do_pragma_system_header): End directive early.
7964         (cpp_get_line_maps): New.
7965         (cpp_pop_buffer): Fudge logical line.  Update.
7966         * cpplib.h: Include line-map.h
7967         (enum cpp_fc_reason): Remove.
7968         (struct cpp_file_change): Update.
7969         (cpp_get_line_maps): New.
7970         * cppmain.c (struct_printer): New member map.
7971         (cb_file_change): Update for new mappings.
7972         * fix-header.c (cb_file_change): Similarly.
7974 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7976         * Makefile.in (libgcc.mk): Define mkinstalldirs.
7977         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
7979 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7981         * config/vax/vax.c: include expr.h.
7983 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7985         * Makefile.in ($(srcdir)/configure): Only rebuild in
7986         maintainer mode.
7987         ($(srcdir)/config.in): Only define in maintainer mode.
7988         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
7990 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
7992         * doc/install.texi (Install GCC: Binaries): Update Bull info.
7994 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7996         * gcc.c (set_collect_gcc_options): New function, split out from
7997         main.
7998         Ignore elided switches.
7999         (do_spec_1): Invoke before executing command.
8000         (set_input): Export.
8001         Move declaration ...
8002         * gcc.h (set_input): ... here.
8003         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8004         file.
8006 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
8008         Kill -fhonor-std.
8009         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
8010         interaction.
8011         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
8013 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
8015         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
8016         for the unnamed instructions it expands to.
8018 2001-08-02  Richard Henderson  <rth@redhat.com>
8020         * regclass.c (call_really_used_regs): Conditionally define.
8021         (init_reg_sets_1): Don't use it if not defined.
8022         (fix_register): Similarly, don't set it.
8024 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8026         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
8027         Correct comment that had been missed in the previous change.
8029 2001-08-01  Stan Shebs  <shebs@apple.com>
8031         * config/darwin.c (machopic_stub_name): Try matching by name.
8032         (update_stubs): New function.
8033         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
8034         unconditionally.
8036 2001-08-01  Richard Henderson  <rth@redhat.com>
8038         * except.c (output_function_exception_table): Use assemble_align.
8039         * varasm.c (assemble_eh_label): Remove.
8040         (assemble_eh_align, assemble_eh_integer): Remove.
8042 2001-08-01  Robert Lipe  <robertl@caldera.com>
8044         * dwarfout.c: Remove reference to README.DWARF.
8046 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
8048         * regclass.c (call_really_used_regs): New array for registers which
8049         are actually used by a call.
8050         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
8051         new array.
8052         (fix_register): Set call_really_used too.
8053         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
8054         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
8056 2001-08-01  Richard Henderson  <rth@redhat.com>
8058         * read-rtl.c (read_name): Consider \r whitespace.
8060 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
8062         * config.gcc: Recognize powerpc-*-netbsd*.
8064         * doc/install.texi (Host/target specific installation notes for
8065         GCC): Mention powerpc-*-netbsd*.
8067         * config/rs6000/netbsd.h: New file.
8068         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
8069         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
8070         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
8071         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
8072         (TARGET_VERSION): Redefine.
8074         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
8075         mcall-netbsd as a match for mcall-sysv.
8076         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
8077         (ncrti.S, ncrtn.S): New targets.
8078         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
8080         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
8081         "netbsd' as a V4 ABI.
8082         (ASM_SPEC): Check for -mcall-netbsd.
8083         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
8084         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
8085         (LIB_SPEC, ENDFILE_SPEC): Ditto.
8086         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
8087         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
8088         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
8089         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
8091         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
8092         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
8094 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8096         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
8097         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
8098         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
8099         including "unwind-pe.h".
8101 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
8103         * rs6000.md (define_splits): Kill unused constraints.
8105 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
8106                               Jan Hubicka  <jh@suse.cz>
8108         * function.c (thread_prologue_and_epilogue_insns): Kill code
8109         dealing with non-existent CFG.
8111 2001-08-01  Kazu Hirata  <kazu@hxi.com>
8113         * alias.c: Fix comment formatting.
8114         * bitmap.c: Likewise.
8115         * builtins.c: Likewise.
8116         * calls.c: Likewise.
8117         * c-common.c: Likewise.
8118         * c-decl.c: Likewise.
8119         * c-dump.c: Likewise.
8120         * c-lex.c: Likewise.
8121         * collect2.c: Likewise.
8122         * combine.c: Likewise.
8123         * conflict.c: Likewise.
8124         * cppfiles.c: Likewise.
8125         * cppinit.c: Likewise.
8126         * cpplex.c: Likewise.
8127         * cpplib.c: Likewise.
8128         * cppmacro.c: Likewise.
8129         * cppspec.c: Likewise.
8130         * c-pragma.c: Likewise.
8131         * crtstuff.c: Likewise.
8132         * cse.c: Likewise.
8133         * cselib.c: Likewise.
8134         * c-semantics.c: Likewise.
8135         * c-typeck.c: Likewise.
8137 2001-08-01  H.J. Lu <hjl@gnu.org>
8139         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
8141 2001-08-01  H.J. Lu <hjl@gnu.org>
8143         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
8145 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
8147         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
8148         contextualizing Objective-C class name lookup by the lexer.
8149         (typespec_reserved_nonattr): Disable ObjC class name lookup after
8150         seeing a TYPESPEC.
8151         (protocoldef): Add support for forward @protocol declarations.
8152         (yylexname): Suppress ObjC class name lookup in certain contexts;
8153         re-enable after lookup is complete.
8154         (_yylex): Re-enable ObjC class name lookup when certain
8155         punctuation marks are seen.
8157         * objc/objc-act.c (check_protocol_recursively): New function used
8158         for finding circular dependencies in protocols.
8159         (objc_declare_protocols): New function for handling forward
8160         @protocol declarations.
8161         (receiver_is_class_object): Detect the case when 'self' is used
8162         inside of a class method.
8163         (build_message_expr): Issue a warning if class method is desired
8164         but instance method is found instead.
8165         (conforms_to_protocol): Streamline.
8166         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
8167         protocol Foo, even if 'Bar foo' does not.
8168         (check_protocols): Streamline.
8169         (start_protocol): Add checks for circular and duplicate protocol
8170         definitions.
8171         (encode_aggregate_within): For typedefs of structs, encode the
8172         underlying struct.
8173         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
8174         (objc_declare_protocols): New prototype.
8176 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8178         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
8179         * cpplex.c (handle_newline): Update prototype.  Maintain logical
8180         line number.
8181         (skip_escaped_newlines, skip_block_comment, parse_string):
8182         Update accordingly.
8183         (_cpp_lex_token): Update, and store token position within the token.
8184         * cpplib.h (struct cpp_token): Add line and column entries.
8185         * cppmacro.c (replace_args): Position stringified tokens correctly.
8187 2001-08-01  Andreas Jaeger  <aj@suse.de>
8189         * basic-block.h: Add prototype for last_loop_beg_note.
8191 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
8193         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
8194         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
8195         comment.
8196         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
8197         while handling WITH_CLEANUP_EXPR node. Use second operand calling
8198         expand_decl_cleanup.
8199         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
8200         the first RTX.
8201         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
8202         operand while calling simple_cst_equal.
8203         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
8204         operand is the cleanup expression, the third is the RTL_EXPR.
8205         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
8207 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
8209         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
8211 2001-07-31  matthew green  <mrg@eterna.com.au>
8213         * config.gcc (i386-*-netbsdelf): New description.
8214         * config/i386/netbsd-elf.h: New file.
8216 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
8218         * loop.c (check_dbra_loop): Use single_set to compute
8219         jump_label.
8221 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
8223         PowerPC reorg and support for powerpc64-*-linux*.
8225         Also fixes emitting of constants on 32 bit and 64 bit
8226         platforms.
8228         * config.gcc: powerpc64-*-linux* is a new target.
8229         Things that needed aix.h now also include xcoff.h
8231         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
8232         xcoff.h.
8233         Move AIX specific stuff into aix.h.
8234         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
8235         with more than just XCOFF now.
8236         (SET_ASM_OP): Remove, now defined where needed.
8237         (FUNCTION_PROLOGUE): New macro definition.
8238         (FUNCTION_EPILOGUE): New macro definition.
8239         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
8241         * config/rs6000/xcoff.h: New file.
8243         * config/rs6000/linux64.h: New file.
8245         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
8247 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
8249         * rs6000.c (print_operand_address): Handle ELF syntax.
8250         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
8251         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
8252         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
8254 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
8256         * rs6000.c (rs6000_override_options): Only disable
8257         flag_function_sections for XCOFF.
8258         (exact_log2_cint_operand): New predicate.
8259         (reg_or_{add,sub}_cint64_operand): New predicates.
8260         (add_operand): Compare CONST_INT with fewer function calls.
8261         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
8262         (print_operand, case 'p'): Ensure positive operand.
8263         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
8264         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
8265         (PREDICATE_CODES): Add new predicates.
8266         * rs6000.md (addsi3): Split 32-bit constants more correctly.
8267         (divsi3, modsi3): Ensure positive power-of-2.
8268         (adddi3): Use new predicate.  Split 32-bit constants more
8269         correctly.  Re-arrange splitter to handle any constant.
8270         (subdi3): Use new predicate.
8271         (divdi3, moddi3): Ensure positive power-of-2.
8272         (movdi): Use rs6000_emit_set_const.
8273         (load_toc_v4_pic_di): Delete.
8275 2001-07-31  Graham Stott <grahams@redhat.com>
8277         * function.c (pad_below): Revert 2001-07-26 patch.
8279 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8281         * reg-stack (convert_regs_1): Fix best edge condition.
8283 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8285         * jump.c (duplicate_loop_exit_test): Better test for jumps
8286         entering the loop; create loop pre_header.
8288 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
8290         * doc/install.texi: Add s390 and s390x as new targets.
8291         * doc/invoke.texi: Add documantation of S/390 and zSeries
8292         target options.
8293         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
8295 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8297         * config/m68k/m68k.md: Replace all general_operand with
8298         nonimmediate_operand for all destinations.
8299         * config/m68k/m68k.c (not_sp_operand): Likewise.
8301 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
8303         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
8305 2001-07-30  Richard Henderson  <rth@redhat.com>
8307         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
8308         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
8310 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8312         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
8313         Add missing doc strings
8314         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
8315         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
8317 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
8319         * i386.c (ix86_output_main_function_alignment_hack): New function.
8320         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
8322         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
8323         edges by EDGE_DFS_BACK flag.
8324         (dump_edge_info): Add dfs_back flag.
8325         * basic-block.h (EDGE_DFS_BACK): New constant.
8326         (mark_dfs_back_edges): Declare.
8327         * alias.c (loop_p): Remove.
8328         (mark_constant_function): Use mark_dfs_back_edges.
8330         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
8331         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
8332         (compensate_edge): Break out from ...
8333         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
8334         (convert_regs_2): Set block_done once block is really done;
8335         Do updating of the predecesors counts.
8337         * toplev.c (rest_of_compilation): Recompute block_for_insn
8338         before post-reload cfg_cleanup.
8339         * function.c (thread_prologue_epilogue_insns):
8340         Call set_block_for_new_insns when emitting prologue directly.
8342 2001-07-30  Andreas Jaeger  <aj@suse.de>
8344         * jump.c: Add prototype for mark_modified_reg.
8346         * cse.c (set_live_p): Add unused attribute.
8348         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
8349         overflow.
8350         (scan_for_source_files): Use long for count to avoid overflow.
8351         (output_data): Likewise.
8352         (output_data): Don't use string concatatenation to silence gcc
8353         -traditional.
8355         * predict.c: Fix typos and grammar.
8357         * gcse.c (insert_insn_end_bb): Remove unused variables.
8359 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
8361         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
8362         (attempt_auto_inc): LIkewise.
8363         (mark_used_reg): Likewise.
8364         (try_pre_increment_1): Likewise.
8365         * regclass.c (regclass): Likewise.
8366         * global.c (allocno_compare): Update comment; change scaling factor.
8367         * local-alloc.c (QTY_CMP_PRI): Likewise.
8368         * regs.h (REG_FREQ_FROM_BB): New.
8369         (REG_FREQ_MAX): Likewise.
8371 2001-07-30  H.J. Lu <hjl@gnu.org>
8373         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
8374         -D_GNU_SOURCE.
8376 2001-07-30  H.J. Lu  (hjl@gnu.org)
8378         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
8379         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8380         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
8382 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
8384         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
8385         as -mthumb-interwork when -mcpu=arm7 is specified.
8387 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8389         * predict.def (noreturn, loop branch, loop exit): Mark as first
8390         match heuristics.
8392 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
8394         * combine.c (try_combine): Avoid barrier after noop jumps.
8396 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8398         * cpphash.h (struct cpp_reader): Remove import_warning.
8399         * cpplib.c (skip_rest_of_line): Don't bother turning off
8400         macro expansion.
8401         (parse_include): Move include handling to...
8402         (do_include_common): ... here.  Move import warning from...
8403         (do_import): ... here.
8404         (do_pragma_poison): Don't do a callback for poison identifiers.
8405         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
8406         * cppmain.c (setup_callbacks): Similarly.
8408 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8410         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
8411         handle multiple sets.
8412         * except.c (sjlj_mark_call_sites): .... here.
8413         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
8415 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
8417         Suggested by Richard Henderson and Richard Kenner:
8418         * combine.c (recog_for_combine): Use the fake recog
8419         only if instruction does not match.
8420         * rtl.h (NOOP_MOVE_INSN_CODE): New.
8421         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
8423         * combine.c (try_combine): Discover noop jump as direct jump.
8425 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
8427         * df.c (df_rd_global_compute): Add successors to worklist, not
8428         current item.
8429         (df_ru_global_compute): Ditto.
8431 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
8433         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
8434         increment REG_N_SETS.
8436 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
8438         * sbitmap.h: New prototype for sbitmap_a_xor_b.
8440         * sbitmap.c (sbitmap_a_xor_b): New function.
8441         ifdef the basic block stuff on IN_GCC.
8443 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8445         * cppexp.c (parse_defined): Always record the macro name.
8446         (lex): Don't worry about identifiers, or special-case
8447         CPP_NOT here.
8448         (_cpp_parse_expr): Figure out at the end of the routine
8449         whether we saw a valid !defined() expression.
8450         * cppfiles.c (stack_include_file): Update for mi_valid.
8451         (_cpp_pop_file_buffer): Similarly.
8452         * cpplex.c (_cpp_lex_token): Similarly.
8453         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
8454         mi_if_not_defined, mi_lexed): Remove.
8455         (mi_valid): New.
8456         * cpplib.c (do_if): Simplify.
8457         (do_endif, push_conditional, _cpp_handle_directive): Update
8458         for renaming of mi_state to mi_valid.
8459 doc:
8460         * cpp.texi: Add index entries for digraphs, and add comment
8461         that C++ refers to them as alternative tokens.
8463 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
8465         * basic-block.h (CLEANUP_PRE_LOOP): New.
8466         * except.c (finish_eh_generation): Update call of cleanup_cfg.
8467         * sibcall.c (optimize_sibling_calls): Likewise.
8468         * toplev.c (rest_of_compilation): Likewise.
8469         * flow.c (try_forward_edges): Take argument MODE;
8470         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
8471         (try_optimize_cfg): Update call of try_forward_edges.
8473 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
8474                                 Jan Hubicka  <jh@suse.cz>
8476         * (validate_replace_rtx_1): Fix simplification of MINUS.
8478 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8480         PR preprocessor/3669
8481         * cppinit.c (init_dependency_output): Turn off dump requests
8482         if sending dependencies to stdout.
8484 2001-07-28  Richard Henderson  <rth@redhat.com>
8486         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
8487         not optimizing.
8489 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
8491         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
8493 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8495         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
8496         is VAR_DECL first to prevent an ICE.
8498 2001-07-28  Richard Henderson  <rth@redhat.com>
8500         * varasm.c (immed_real_const_1): Don't elide special cases for
8501         nested functions.
8502         (clear_const_double_mem): Clear const_tiny_rtx too.
8504 2001-07-28  Richard Henderson  <rth@redhat.com>
8506         * dwarf2out.c (dw_val_class_offset): New.
8507         (struct dw_ranges_struct, dw_ranges_ref): New.
8508         (ranges_table, ranges_table_allocated): New.
8509         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
8510         (add_AT_offset, add_ranges, output_ranges): New.
8511         (print_die, output_die): Handle dw_val_class_offset.
8512         (attr_checksum, size_of_die, value_format): Likewise.
8513         (gen_lexical_block_die): Handle non-contiguous blocks.
8514         (gen_block_die): Likewise.
8515         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
8516         if needed.  Dump the ranges table.
8517         * final.c (final_start_function): Remove unnecessary notes and
8518         rebuild the block tree before numbering the blocks.
8519         * function.c (reorder_blocks_0): Walk the existing block tree
8520         to unmark all blocks.
8521         (reorder_blocks_1): Create block fragments when duplicate block
8522         notes are seen.
8523         (reorder_fix_fragments): New.
8524         (reorder_blocks): Call it.
8525         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
8527 2001-07-28  Richard Henderson  <rth@redhat.com>
8529         * emit-rtl.c (adjust_address): Make a copy of the memory address.
8531 2001-07-28  Richard Henderson  <rth@redhat.com>
8533         * flow.c (add_to_mem_set_list): New function.
8534         (init_propagate_block_info): Use it.
8535         (mark_set_1): Likewise.
8536         (insn_dead_p): Canonicalize memory address for dead store
8537         comparison.  Allow wider mode stores to kill narrower mode stores.
8538         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
8539         (invalidate_mems_from_set): Don't handle MEMs.
8541 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8543         * config/h8300/h8300.h: Fix formatting.
8545 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8547         * basic-block.h (EDGE_FREQUENCY): New macro.
8548         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
8549         for new BB/edges.
8550         * flow.c (find_sub_basic_blocks): Likewise.
8551         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
8552         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
8554         * predict.c (DEF_PREDICTOR): New argument FLAGS.
8555         (HITRATE): New macro.
8556         (PRED_FLAG_FIRST_MATCH): New constant.
8557         (predictor_info): New field flgags.
8558         (combine_predictions_for_insn): Use DS theory to combine
8559         probabilities; set the edge probabilities when finished.
8560         (estimate_probability): Avoid duplicated matches
8561         of LOOP_BRANCH heuristics for nested loops; update comment.
8562         * predict.def: Add flags for each prediction, set probabilities
8563         according to B&L paper.
8564         * predict.h (DEF_PREDICTOR): New argument FLAGS.
8566         * profile.c (compute_branch_probabilities):  Cleanup way the edge
8567         probabilities are computed and REG_BR_PROB notes are dropped; if
8568         values does not match, emit error.
8569         (init_branch_prob): Do error instead of warning when profile driven
8570         feedback is missing or corrupt.
8572 2001-07-27  DJ Delorie  <dj@redhat.com>
8574         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
8575         against a constant, try to adjust the compare to have the desired
8576         constant in it so that min/max optimizations happen more often.
8578 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8580         * flow.c (last_loop_beg_note): New function.
8581         (redirect_edge_and_branch): Use it.
8582         (split_edge): Likewise.
8584         * alias.c (loop_p): Avoid uninitialized memory access.
8586         * flow.c (try_forward_edges): Avoid accessing freed memory.
8588         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
8589         variable access.
8591 2001-07-26  Andrew Haley  <aph@redhat.com>
8592         Joern Rennecke <amylaar@redhat.com>
8594         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
8595         (SUBTARGET_CPP_ENDIAN_SPEC): New.
8596         (SUBTARGET_CPP_SPEC): New.
8597         (CPP_SPEC): Remove.
8598         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
8599         (SUBTARGET_CPP_PTR_SPEC): New.
8600         (CPP_DEFAULT_CPU_SPEC): New.
8601         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
8602         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8603         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
8604         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8605         (SUBTARGET_CPP_SPEC): Define as an empty string.
8607 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8609         * doc/install.texi (Configuration): Properly link the host
8610         specific instructions also when generating HTML.
8612 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
8614         * flow.c (redirect_edge_and_branch_force): Test
8615         target->global_live_at_start.
8617 2001-07-26  Richard Henderson  <rth@redhat.com>
8619         * simplify-rtx.c (avoid_constant_pool_reference): Export.
8620         * rtl.h (avoid_constant_pool_reference): Declare it.
8621         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
8622         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
8624 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8626         * rtl.h (cleanup_barriers): Declare.
8627         * jump.c (cleanup_barriers): New function.
8628         * toplev.c (rest_of_compilation): Call cleanup_barriers
8629         before loop optimizer and after bb_reorder.
8631         * flow.c (back_edge_of_syntactic_loop_p): New.
8632         (split_edge): Use it.
8634 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8636         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
8638 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
8640         * cse.c (cse_process_notes): Replace any registers if the address
8641         remains valid.
8643 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
8645         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
8646         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
8647         (propagate_block): Update prototype.
8648         * flow.c (update_life_info): Simplify the CFG and
8649         recalculate the global regs which are alive when
8650         removing dead code during a global update.
8651         (propagate_block): Return non-zero if an INSN is
8652         deleted.
8654 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8656         * Makefile.in (LIBICONV): Define.
8658 2001-07-26  Catherine Moore  <clm@redhat.com>
8660         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
8661         of conditional to avoid tree checking errors.
8663 2001-07-26  Kazu Hirata  <kazu@hxi.com>
8665         * regmove.c (regmove_optimize): Don't replace a reg with
8666         another reg of a different mode.
8668 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
8670         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
8671         limit length of dependancy flush list.
8672         * params.h (MAX_PENDING_LIST_LENGTH): Define.
8673         * sched-int.h  (struct deps): Add pending_flush_length field.
8674         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
8675         has 1 element in it.
8676         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
8677         (sched_analyze): After a jump, if the pending memory flush list is too
8678         large, flush the pending lists.
8679         (init_deps): Initialize pending_flush_length to 0.
8680         * doc/invoke.texi (max_pending_list_length): Document parameter.
8682 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8684         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
8685         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
8686         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
8688 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8690         * cpphash.h (struct_lexer_state): Delete was_skipping.
8691         Move skipping here from struct cpp_reader.
8692         * cpplex.c (parse_identifier): Update.
8693         (_cpp_lex_token): Don't skip tokens in a directive.
8694         * cpplib.c (struct if_stack): Update.
8695         (start_directive, end_directive): Don't change skipping state.
8696         (_cpp_handle_directive): Update.
8697         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
8698         (do_else, do_endif): Update; only check for excess tokens if not
8699         in a skipped conditional block.
8700         (push_conditional): Update for new struct if_stack.
8702 2001-07-26  Graham Stott  <grahams@redhat.com>
8704         * function.c (locate_and_pad_parm): Also pad initial offset
8705         so that the total argument size also includes the padding.
8707 2001-07-26  Graham Stott <grahams@redhat.com>
8709         * gensupport.c (alter_output_for_insn): Correct enable checking failure
8710         change XSTR to XTMPL.
8712         (process_one_cond_exec): Likewise
8714 2001-07-25  Richard Henderson  <rth@redhat.com>
8716         * varasm.c (assemble_variable): Create DECL_RTL before setting
8717         TREE_ASM_WRITTEN.
8719 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
8721         * predict.c (estimate_probability): Avoid duplicated predictions.
8723         * loop.c (find_and_verify_loops): Grok multiple barriers.
8725 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8727         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
8729         * dbxout.c: Consistently use putc instead of fputc.
8730         (print_wide_int): New function; call instead of direct fprintf.
8731         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
8732         (dbxout_type_fields, dbxout_type_method_1): Likewise.
8733         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
8734         (print_int_cst_octal): Likewise.
8735         (print_octal): Show we wrote characters.
8736         (dbxout_type): Set have_used_extensions in more places.
8738 2001-07-25  Catherine Moore  <clm@redhat.com>
8740         * config/v850/v850.c (v850_va_arg):  Use addr
8741         instead of valist to build incr.
8743 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
8745         * flow.c (delete_dead_jumptables): New function.
8746         (life_analyzis): Call it.
8747         * bb-reorder.c (skip_insns_after_block): Handle contradictory
8748         sequences.
8750 2001-07-25  Richard Henderson  <rth@redhat.com>
8752         * except.c (reachable_handlers): Handle a region being removed
8753         out from under a RESX.
8755 2001-07-25  Richard Henderson  <rth@redhat.com>
8757         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
8758         swap GE/GT if it is an fp comparison.
8760 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
8762         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
8763         operands.
8765 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
8767         * ssa.c (rename_insn_1): Do not wrap an assignment to a
8768         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
8769         glitch.
8771         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
8772         throw an exception.
8773         (visit_expression): When attempting to simplify an expression,
8774         retrieve any modes for arguments before they are simplified
8775         to constants.
8777 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8778             Janis Johnson  <janis@us.ibm.com>
8780         * stmt.c (expand_goto): A nonlocal goto can be a call too.
8781         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
8782         pointer parameters to match documented usage of nonlocal_goto.
8783         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
8784         parameters to their correct order.
8785         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
8786         parameters to their correct order.
8788 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8790         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
8792 2001-07-25  Jan Hubicka  <jh@suse.cz>
8793             Richard Henderson  <rth@redhat.com>
8795         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
8796         the sequence.
8797         (make_edges): New argument update_p; populate the edge cache if set.
8798         (find_basic_blocks): Update make_edges invocation.
8800 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8802         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
8804 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8806         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
8807         -Acpu and -Amachine.h.
8808         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
8809         Corrected header to say ELF not a.out.
8810         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
8811         when given -msoft-float.
8813 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8815         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
8816         extra multilib parts like arm-elf.
8817         (i960-*-coff*, i960-*-rtems): Should not use collect2.
8818         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
8819         crtfini.o as extra multilib parts.
8821 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8823         * configure.in: Add rtems as a supported thread model.
8824         * gthr-rtems.h: Add missing entry point __gthread_active_p.
8825         * configure: Rebuilt.
8827 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
8829         * stor-layout.c (get_mode_alignment): make it work when
8830         BITS_PER_UNIT is not a power of two.
8831         * builtins.c (get_pointer_alignment): Likewise.
8833 2001-07-24  Richard Henderson  <rth@redhat.com>
8835         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
8836         the retrieved constant into the expected mode.
8838 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8840         * flow.c (try_simplify_condjump): Avoid duplicated edges.
8841         (verify_flow_info): Check for duplicated edges; clarify
8842         error reporting.
8844         * flow.c (block_label): Update basic_block_for_insn.
8845         (commit_edge_insertions): Call compute_bb_for_insn.
8847         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
8848         returns too.
8850         * flow.c (redirect_edge_and_branch,
8851         try_optimize_cfg): Use redirect_edge_succ_nodup
8852         (redirect_edge_succ_nodup): New.
8853         * basic_block.h (redirect_edge_succ_nodup): Declare.
8855         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
8856         after gcse.
8858 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8860         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
8861         (try_crossjump_to_edge): Update commetns.
8862         (try_crossjump_bb): Likewise.
8864 2001-07-24  Richard Henderson  <rth@redhat.com>
8866         * combine.c (distribute_notes): Move set of need_refresh
8867         for noop_move_p down to catch all cases.
8869 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
8871         * recog.c (split_all_insns_noflow): New.
8872         * rtl.h (split_all_insns_noflow): Declare.
8873         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
8874         * m68hc11.c (m68hc11_reorg): Likewise.
8875         * sh.c (machine_dependent_reorg): Likewise.
8876         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
8877         call.
8879 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8881         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
8882         (ashlsi3_n splitter): Likewise.
8883         (lshrsi3_n splitter): Likewise.
8885         (GOTaddr2picreg): Make const SImode.
8886         (sym_label2reg): Likewise.
8887         (symGOT2reg): Likewise.
8888         (symGOTOFF2reg) Likewise.
8890         (casesi_worker_0): Make unspec SImode.
8892 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8894         * config/sh/sh.c (barrier_align): Check that an operand really is
8895         an insn before extracting its INSN_CODE.
8897 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
8899         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
8900         dangling else.
8902         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
8903         for SImode to prevent overflow.
8905 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8907         * config/mips/irix6-libc-compat.c: New file.
8908         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
8909         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
8910         passing workaround.
8912 2001-07-24  lars brinkhoff  <lars@nocrew.org>
8914         * rtl.texi (REG_POINTER): Document.
8915         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
8916         QFmode, HFmode, TQFmode, QCmode, and HCmode.
8918 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
8920         * flow.c (delete_noop_moves): Do not confuse libcall regions.
8922 2001-07-23  Richard Henderson  <rth@redhat.com>
8924         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
8926 2001-07-23  Kazu Hirata  <kazu@hxi.com>
8928         * config/h8300/h8300-protos.h: Add a prototype for
8929         general_operand_dst_push.
8930         * config/h8300/h8300.c (general_operand_dst_push): New.
8931         * config/h8300/h8300.h (OK_FOR_T): New.
8932         (EXTRA_CONSTRAINT): Use it.
8933         * config/h8300/h8300.md (movqi_push): Remove and integrate into
8934         the existing movqi pattern.
8935         (movhi_push): Likewise.
8937         * reload.c: Fix comment typos.
8939 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
8941         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
8943 2001-07-23  H.J. Lu  (hjl@gnu.org)
8945         * doc/extend.texi: Update __builtin_return_address and
8946         __builtin_frame_address.
8948 2001-07-23  Richard Henderson  <rth@redhat.com>
8950         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
8951         before CSE.
8952         * config/i386/i386.md: New setcc+movzbl peephole2.
8954 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8956         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
8957         * objc/objc-act.c: Include debug.h.
8958         (synth_module_prologue): Save and restore debug hooks too.
8960 2001-07-23  lars brinkhoff  <lars@nocrew.org>
8962         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
8963         and C4X_FLOAT_FORMAT.
8964         (BOOL_TYPE_SIZE): Document.
8966 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
8968         * unroll.c (loop_iterations): Fix miscalculation of initial
8969         giv offset.
8971 2001-07-13  Andrew Haley  <aph@redhat.com>
8973         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
8974         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
8975         * config/sh/sh.c (sh_can_redirect_branch): New function.
8976         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
8977         * reorg.c (steal_delay_list_from_target): Use
8978         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
8980 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
8982         * flow.c (try_simplify_condjump): Unlink insn chain on
8983         fallthru edge; use can_fallthru.
8985 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
8987         * basic-block.h (find_sub_basic_block): Declare.
8988         * flow.c (make_edges): New arguments MIN and MAX;
8989         (find_sub_basic_blocks): Revamp to use make_edges
8990         and purge_dead_edges.
8991         (find_basic_blocks): Update call of find_sub_basic_block.
8993         * recog.c (split_all_insns): Always expect CFG to be consistent;
8994         call find_sub_basic_blocks in case something has changed.
8995         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
8996         has been built.
8998         * basic-block.h (delete_noop_moves): Declare.
8999         * combine.c (combine_instructions): Call it.
9000         (recog_for_combine): Tolerate noop moves
9001         (distribute_notes): Force refresh when register dies at noop move.
9002         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
9003         too.
9004         (life_analysis): Update delete_noop_moves call.
9005         (set_noop_p): Move too ...
9006         * rtlanal.c (noop_move_p): ... here.
9007         * rtl.h (noop_move_p): Declare.
9009         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
9010         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
9011         after combine.
9012         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
9013         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
9015 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
9017         * reload.c (push_reload): Fix typo in comment.
9018         (find_reloads_address): Ditto.
9019         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
9021 2001-07-22  Richard Henderson  <rth@redhat.com>
9023         * flow.c: Grammar check and clarify a lot of comments.
9024         (try_simplify_condjump): Rename variables to be clearer.
9025         (try_forward_edges): Skip complex and fallthru edges.
9026         Rearrange tests to avoid duplicate checks.
9027         (flow_find_cross_jump): Likewise.
9028         (outgoing_edges_match): Allow match if neither branch has
9029         probability data.  Loosen probability match to 5%.
9030         (try_crossjump_to_edge): Hoist repeated indirection into
9031         local variables.
9032         (try_crossjump_bb): Don't check complex edges.  Eliminate
9033         redundant crossjump tests.
9034         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
9035         checks before more expensive checks.
9037 2001-07-22  Richard Henderson  <rth@redhat.com>
9039         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
9040         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
9041         arguments.
9043 2001-07-22  Richard Henderson  <rth@redhat.com>
9045         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
9046         (const_sint32_operand): Likewise.
9047         * m68k.md (anon mulsi pattern): Use const_int_operand not
9048         const_sint32_operand.
9049         (umulsi3_highpart): Zero extend a constant input.
9050         (smulsi3_highpart): Don't bother checking SImode constant.
9051         (const_umulsi3_highpart): Give op3 DImode.
9052         (const_smulsi3_highpart): Likewise.
9054 2001-07-22  Richard Henderson  <rth@redhat.com>
9056         * flow.c (split_block): Make sure bb_note is included in the
9057         new block when splitting before a label.
9059 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9061         * basic-block.h (redirect_edge_and_branch_force,
9062         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
9063         * flow.c (redirect_edge_and_branch_force,
9064         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
9065         (redirect_edge_and_branch_force): Fix copying of lifeness information.
9066         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
9067         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
9068         instead of label; update CFG after transformation.
9069         (find_if_case_1): Update call, use redirect_edge_and_branch_force
9070         for finishing the transformation; handle even case where ELSE
9071         does not follow THEN.
9072         (find_if_case_2): Update call of dead_or_predictable; simplify
9073         CFG update.
9075         * emit-rtl.c (split_branch_probability): New global variable.
9076         (try_split): Take care to set split_branch_probability and
9077         create REG_BR_PROB note for new jump insns.
9078         * md.texi (define_split): Document new feature.
9080         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
9082 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9084         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
9085         (asm_out_file): Remove redundant declaration.
9086         (assemble_asm): Remove old #if 0 block.
9087         (assemble_variable): Remove end of function; debug output is
9088         now handled with global_decl.  Remove old #if 0 block.  Update.
9089         Remove saved_in_section and associated no-op code.
9090         * Makefile.in (varasm.o): Correct dependencies.
9092 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
9094         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9095         the definition in defaults.h.
9097 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
9099         * jump.c: Update comments.
9100         (delete_barrier_successors, delete_unreferenced_labels,
9101         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
9102         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
9103         jump_optimize, jump_optimize_minimal): Kill.
9104         (rebuild_jump_labels): Move code from jump_optimize_1.
9105         (purge_line_number_notes): Likewise.
9106         (copy_loop_headers): Likewise.
9107         * reg-stack.c: Update comment.
9108         * stmt.c: Likewise.
9109         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
9110         JUMP_AFTER_REGSCAN): Kill.
9111         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
9112         purge_line_number_notes and copy_loop_headers.
9114 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
9115            Richard Henderson  <rth@redhat.com>
9117         * dbxout.c (dbxout_global_decl): New.
9118         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9119         * sdbout.c (sdbout_finish): New.
9120         (sdbout_debug_hooks): Use it, add comments.
9121         (sdbout_global_decl): Defer initialised public vars to
9122         sdbout_finish.
9123         * varasm.c (assemble_variable): Don't output debug information
9124         for file-scope variables.
9126 2001-07-22  Richard Henderson  <rth@redhat.com>
9128         * config/alpha/alpha.c (get_trap_mode_suffix): New.
9129         (get_round_mode_suffix): New.
9130         (print_operand): Use them for [/].  Remove support for [&'`()+].
9131         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
9132         * config/alpha/alpha.md (attr round_suffix): New.
9133         (attr trap_suffix): New.
9134         (all insns): Set them appropriately.  Use %/ instead of the
9135         myriad punctuators.
9137 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9139         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
9141 2001-07-22  Richard Henderson  <rth@redhat.com>
9143         * regrename.c (regrename_optimize): Compute nregs for each
9144         potential target register.
9146 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
9147            Richard Henderson  <rth@redhat.com>
9149         * dbxout.c (dbxout_global_decl): New.
9150         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9151         * sdbout.c (sdbout_finish): New.
9152         (sdbout_debug_hooks): Use it, add comments.
9153         (sdbout_global_decl): Defer initialised public vars to
9154         sdbout_finish.
9155         * varasm.c (assemble_variable): Don't output debug information
9156         for file-scope variables.
9158 2001-07-21  H.J. Lu  (hjl@gnu.org)
9160         * config/mips/mips.c (mips_cpu): Moved into ...
9161         (override_options): Here.
9163         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
9164         mips_tune.
9165         (mips_cpu): Removed.
9167 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9169         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
9170         ("iorqi3"): Likewise.
9171         ("xorqi3"): Likewise.
9172         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
9173         ("*subhi3_sp): Likewise.
9174         ("*subhi3"): Likewise.
9175         ("extendhisi2"): Accept D, X and Y as source operand to avoid
9176         reload problems.
9178 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9180         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
9181         * config/freebsd.h: Likewise.
9182         * config/linux.h: Likewise.
9183         * config/openbsd.h: Likewise.
9184         * config/alpha/linux-elf.h: Likewise.
9185         * config/arm/linux-elf.h: Likewise.
9186         * config/d30v/d30v.h: Likewise.
9187         * config/fr30/fr30.h: Likewise.
9188         * config/ia64/aix.h: Likewise.
9189         * config/ia64/ia64.h: Likewise.
9190         * config/mips/linux.h: Likewise.
9191         * config/pj/pj.h: Likewise.
9192         * config/rs6000/linux.h: Likewise.
9193         * config/sparc/linux.h: Likewise.
9194         * config/sparc/linux64.h: Likewise.
9196 2001-07-20  Bruce Korb  <bkorb@gnu.org>
9198         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
9199         because getc() and char* may disagree on signedness.
9201 2001-07-20  Richard Henderson  <rth@redhat.com>
9203         * doc/rtl.texi (REG_DEAD): Update for current semantics.
9205         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
9206         insns to delete in the presence of cc0 in a jump insn.
9208 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
9209                                 Jan Hubicka  <jh@suse.cz>
9211         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
9212         of doing the change by hand.
9214 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9216         * rtlanal.c (set_noop_p): Return true for noop jumps.
9218         * expr.c (emit_single_push_insn): Add call to push expander.
9219         * expr.h (optab_index): Add OTI_push
9220         (push_optab): New constant.
9221         * genopinit.c (optabs): Add push_optab.
9222         * optabs.c (init_optab): Init push optab.
9223         * md.texi (push??1): Document
9225 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9227         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
9228         expand to emit the pattern; put a REG_INC note for push/pop
9229         instructions.
9230         ("movdf", "movdf_internal"): Likewise.
9231         ("movsi", "movsi_internal"): Likewise.
9232         ("movsf", "movsf_internal"): Likewise.
9233         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
9235 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9237         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
9238         gen_highpart.
9240 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
9242         * params.def: Change default max inline insns to 100.
9244 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
9246         * combine.c (combine_simplify_rtx): Generate a new shift operation
9247         when simplifying the first operand of a (neg (ashift)) expression.
9249 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9251         * regclass.c (N_REG_INTS): Use only 32 bits per element.
9253 2001-07-20  Kelley Cook  <kelley.cook@home.com>
9255         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
9256         information.   Move rest into ...
9257         (*-*-solaris): ... here.  Eliminate redundant information and
9258         reword necessary packages section.  Delete 4.x assembler bug info.
9259         (sparc-sun-*): Merge into ...
9260         (sparc-sun-sunos*): here.
9262 2001-07-20  Catherine Moore  <clm@redhat.com>
9264         * config/v850/v850.md (casesi): Generate LABEL_REF
9265         with Pmode.
9267 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9269         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
9270         * i386.c (ix86_zero_extend_to_Pmode): Make global.
9271         * i386.md (strclrsi expander): Use it.
9273 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9275         * integrate.c (copy_insn_list): handle
9276         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
9277         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
9278         identically as to CODE_LABEL.
9280         * fold-const (fold): Convert A/B/C to A/(B*C) and
9281         A/(B/C) to (A/B)*C
9283         * except.c (connect_post_landing_pads): Delete the RESX insns.
9285 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
9287         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
9289         * config/mips/mips.md (nmadd/nmsub): Use macro.
9291 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
9293         * cppinit.c (remove_dup_dir): Make static.
9294         (remove_dup_dirs): Make static. Only warn about preempting a
9295         system directory with a non-system directory.
9297 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9299         * ifcvt.c (noce_try_store_flag_constants): Correct order
9300         of parameters to trunc_int_for_mode.
9302 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
9304         * reorg.c (fill_simple_delay_slots): If an instruction might throw
9305         an exception that will be caught within this function, do not fill
9306         its delay slot with any subsequent instruction.
9308 2001-07-19  Steve Ellcey <sje@cup.hp.com>
9310         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
9311         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
9312         pointer extension instruction.
9313         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
9314         * simplify-rtx.c (simplify_unary_operation) Likewise.
9315         * explow.c (convert_memory_address) Check value of
9316         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
9317         less than zero.
9318         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
9319         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
9320         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
9321         Add Multilib Support.
9322         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
9323         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
9324         Add Multilib Support.
9325         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
9326         support.
9327         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
9328         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
9329         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
9331 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
9333         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
9334         old and new operands in `<', `3' and `b'.
9336 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9338         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
9339         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
9340         (toplev.o): Don't depend on xcoffout.h.
9341         * c-decl.c: Include debug.h
9342         (duplicate_decls): Use debug hook.
9343         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
9344         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9345         (dbxout_types): Remove.
9346         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
9347         * debug.c (do_nothing_debug_hooks): Update.
9348         (debug_true_tree, debug_nothing_rtx): New.
9349         * debug.h (struct rtx_def): New.
9350         (struct gcc_debug_hooks): New hooks ignore_block,
9351         outlining_inline_function and label.
9352         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
9353         dwarf2out_frame_finish): New.
9354         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
9355         Make static, update prototype.
9356         (dwarf2_debug_hooks): Update.
9357         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
9358         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
9359         * dwarfout.c (dwarf_debug_hooks): Update.
9360         * emit-rtl.c: Include debug.h.
9361         (remove_unnecessary_notes): Use debug hook.
9362         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
9363         (final_scan_insn): Use debug hook.
9364         * integrate.c (output_inline_function): Use debug hook.
9365         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
9366         (sdb_debug_hooks): Update.
9367         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
9368         * toplev.c: Don't include xcoffout.h.
9369         (note_outlining_of_inline_function, debug_ignore_block): Remove.
9370         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
9371         Remove.
9372         * tree.h (dwarf2out_do_frame): Remove.
9374 2001-07-19  Catherine Moore  <clm@cygnus.com>
9376         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
9378 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9380         * reload1.c (eliminate_regs_in_insn): When updating a set
9381         to the frame pointer to the hardware frame pointer, perform
9382         the update always not just when REPLACE is set.
9384         * reload1.c (choose_reload_regs): Don't inherit a reload
9385         that crosses multiple registers if registers past the first
9386         don't fit in the desired class.
9388         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
9389         when negating constants.
9391 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
9393         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
9394         * doc/tree.texi: Ditto.
9396 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
9397             Jakub Jelinek  <jakub@redhat.com>
9399         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
9400         (extract_cie_info): Handle "eh" augmentation properly,
9401         remember eh_ptr.
9402         (struct frame_state, __frame_state_for): New.
9404 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9406         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
9407         HANDLE_SYSV_PRAGMA): Define.
9408         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
9409         previous args.
9410         (copy_object): Caller changed.
9412 2001-07-19  Andreas Schwab  <schwab@suse.de>
9414         * configure.in (assembler dwarf2 debug_line support): Define nop
9415         insn for m68k.
9416         * configure: Regenerated.
9418 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9420         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
9421         dwarfout.h.
9422         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
9423         to conditionally compiled block.
9424         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9425         * dbxout.h (dbxout_function): Remove.
9426         * debug.c (do_nothing_debug_hooks): Update.
9427         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
9428         global_decl, deferred_inline_function.
9429         * dwarf2out.c (dwarf2_debug_hooks): Update.
9430         (dwarf2out_global_decl): New.
9431         * dwarfout.c: Don't include dwarfout.h.
9432         (dwarfout_global_decl, dwarfout_function_decl,
9433         dwarfout_deferred_inline_function): New.
9434         (dwarf_debug_hooks): Update.
9435         * dwarfout.h: Remove.
9436         * final.c: Don't include dwarfout.h.
9437         * sdbout.c (sdbout_global_decl): New.
9438         (sdbout_debug_hooks): Update.
9439         * toplev.c: Don't include dwarfout.h.
9440         (check_global_declarations, rest_of_compilation): Use new debug hooks.
9441         (note_deferral_of_defined_inline_function): Remove.
9442         * toplev.h (note_deferral_of_defined_inline_function): Remove.
9443         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
9444         * ch/lex.c: Don't include dwarfout.h.
9445         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
9446         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
9447         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
9448         * cp/optimize.c: Include debug.h.
9449         (maybe_clone_body): Use debug hook.
9450         * cp/semantics.c: Include debug.h.
9451         (expand_body): Use debug hook.
9452         * po/POTFILES.in: Remove dwarfout.h.
9454 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9456         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
9457         * c-parse.in (yyerror, _yylex): Similarly.
9458         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
9459         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
9460         Update comments.
9461         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
9462         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
9464 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
9466         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
9467         in-class declaration at -g1.  Fixes c++/2814.
9469 2001-07-18  Richard Henderson  <rth@redhat.com>
9471         * doc/md.texi (reload_in/out): Document restrictions in predicates
9472         and constraints for these patterns.  Document empty string matching
9473         ALL_REGS.
9475 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9477         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
9479 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9481         * cse.c: Undo my previous patch.
9483 2001-07-18  Tom Tromey  <tromey@redhat.com>
9485         For PR java/2812:
9486         * configure: Rebuilt.
9487         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
9488         instead.
9489         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
9491 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
9492                                 Jan Hubicka  <jh@suse.cz>
9494         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
9495         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
9496         * jump.c (mark_jump_label): Do not forward branches.
9498 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9500         * cse.c (delete_trivially_dead_insns): Delete the libcall block
9501         when return value is unused.
9503 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9505         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
9507 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
9509         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
9510         on error.  We can't blindly return the result of
9511         pthread_mutex_trylock because it returns a positive number on
9512         error, while we must return -1 on error.
9513         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
9514         fixes.
9515         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
9517 2001-07-18  Andreas Jaeger  <aj@suse.de>
9519         * integrate.c (output_inline_function): Correct type of debug_hooks.
9521 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
9523         * combine.c (combine_simplify_rtx): DIV can be treated
9524         associatively for floats if unsafe math optimisations are enabled.
9526 2001-07-17  Richard Henderson  <rth@redhat.com>
9528         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
9530 2001-07-17  Richard Henderson  <rth@redhat.com>
9532         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
9533         don't force the function address into a register.
9534         (expand_call, emit_library_call_value_1): Update callers.
9535         * builtins.c (expand_builtin_apply): Likewise.
9536         * expr.h (prepare_call_address): Update decl.
9538 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
9540         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
9541         config directory.
9542         * config/i386/chorus.h: Move up.
9543         * config/sparc/chorus.h: Likewise.
9544         * config/rs6000/chorus.h: Likewise.
9545         * config/chorus.h: Moved here.
9547 2001-07-17  Andreas Schwab  <schwab@suse.de>
9549         * configure.in  (assembler eh_frame optimization): Handle big
9550         endian.
9551         * configure: Regenerated.
9553 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
9555         * expr.c (epxand_expr): Convert divisions into multiplications by
9556         reciprocals if -ffast-math.
9558 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9560         * dbxout.c (dbxout_really_begin_function): Rename to
9561         dbxout_begin_function.
9562         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9563         (dbxout_begin_function): Remove.
9564         (dbxout_function): Update.
9565         (dbxout_source_line): Update prototype.
9566         * dbxout.h (dbxout_begin_function): Remove.
9567         * debug.c (do_nothing_debug_hooks): Update.
9568         (debug_nothing_tree): Update.
9569         (debug_nothing_charstar_rtx): Remove.
9570         * debug.h (union tree_node): Declare.
9571         (struct rtx_def): Remove.
9572         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
9573         begin_function.  Change source_line prototype.
9574         (debug_nothing_tree): New.
9575         (debug_nothing_charstar_rtx): Delete.
9576         (dwarf2out_begin_prologue): Moved from ...
9577         * tree.h: ... here.
9578         * dwarf2out.c (dwarf2_debug_hooks): Update.
9579         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
9580         debug info, call dwarf2out_source_line.
9581         (dwarf2out_souce_line): Update prototype.
9582         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
9583         Change prototype, make static.
9584         (dwarfout_source_line): Update prototype.
9585         (dwarf_debug_hooks): Update.
9586         * dwarfout.h (dwarfout_begin_function): Remove.
9587         * final.c (final_start_function, final_scan_insn): Use appropriate
9588         debug hooks, update to use notice_source_line.
9589         (output_source_line): Rename notice_source_line.  Don't call the
9590         source_line debug hook.
9591         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
9592         make static, update prototype.
9593         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
9594         prototype.
9595         (sdbout_end_prologue): New.
9596         (sdbout_source_line): Update prototype.
9597         (sdbout_debug_hooks): Update.
9598         (sdbout_symbol): Remove unused var.
9599         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
9600         Delete.
9601         * varasm.c: Include debug.h.
9602         (assemble_start_function): Use begin_function debug_hook.
9603         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9604         update with prototype.
9605         (xcoffout_source_line): Update prototype.
9606         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9607         update prototype.
9608         (xcoffout_source_line): Update prototype.
9610 2001-07-17  Richard Henderson  <rth@redhat.com>
9612         * c-typeck.c (build_binary_op): Do not shorten unsigned
9613         right shift after sign extension.
9615 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
9617         * combine.c (combine_simplify_rtx): Attempt to simplify
9618         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
9620         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
9621         (simplify_binary_operation, simplify_unary_operation,
9622          simplify_relational_operation): Use it.
9624         * combine.c (combine_simplify_rtx): Don't do associative law
9625         on divisions; allow associative law on floats.
9627 2001-07-17  H.J. Lu <hjl@gnu.org>
9628             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9630         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
9631         ASM_OUTPUT_WEAK_ALIAS are defined.
9632         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
9633         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
9634         Moved ...
9635         * config/mips/iris5.h: ... here.
9636         (HANDLE_SYSV_PRAGMA): Defined as 1.
9637         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
9638         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
9639         symbol.
9641 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
9643         * c-parse.in (all_prefix_attributes): New variable.
9644         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
9645         (maybe_resetattrs): New production.
9646         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
9647         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
9648         notype_initdcl, nested_function, notype_nested_function,
9649         component_decl, components, components_notype,
9650         component_declarator, component_notype_declarator,
9651         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
9652         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
9653         after a comma being applied to more than one declarator.
9654         * doc/extend.texi (Attribute Syntax): Update.  Remove
9655         documentation of bugs that are no longer present.
9657 2001-07-13  Eric Christopher  <echristo@redhat.com>
9659         * config/mips/mips.h: Change TUNE_MIPS* options to use
9660         mips_tune.
9661         (EXTRA_SPECS): Add cc1_cpu_spec.
9662         * config/mips/mips.md (muldf3): Fix typo.
9664 2001-07-16  Richard Henderson  <rth@redhat.com>
9666         * config/m68k/m68k.c: Include expr.h and reload.h.
9667         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
9668         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
9670 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9671             Richard Henderson  <rth@redhat.com>
9673         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
9674         (insn_live_p): Fix fall off end of function.
9675         (dead_libcall_p): Remove COUNTS argument; update callers.
9676         (delete_trivially_dead_insns): Remove unused variables.
9678 2001-07-17  Andreas Jaeger  <aj@suse.de>
9680         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
9681         x86-64 pic support.
9683         * lcm.c (optimize_mode_switching): Avoid warning for unused
9684         variable if !NORMAL_MODE.
9686         * flow.c (try_crossjump_to_edge): Remove unused variable.
9688 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9690         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
9691         atexit declaration in stdlib.h.
9693 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
9695         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
9697 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9699         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
9700         * except.c (finish_eh_generation): Update call of cleanup_cfg;
9701         do rebuild_jump_labels instead of jump_optimize
9702         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
9703         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
9704         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
9706         * flow.c: Include timevar.h
9707         (find_basic_block): Push/pop timevar;
9708         (cleanup_cfg): Likewise.
9709         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
9710         * Makefile: Add dependencies on timevar.h
9712         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
9713         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
9715         * rtl.h (delete_trivially_dead_insns): Add new parameter.
9716         * toplev.c (rest_of_compilation): Update calls.
9717         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
9718         (delete_trivially_dead_insns): ... here; accept new argument
9719         preserve_basic_blocks; preserve basic blocks if set.
9721         * reg-stack.c (stack_regs_mentioned): Return 0 if
9722         stack_regs_mentioned_data is not initialized.
9723         (reg_to_stack): Make stack_regs_mentioned survive after the
9724         reg-stack is completted; do not call cleanup_cfg.
9725         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
9726         make cleanup_cfg after bb-reorder to output to debug file.
9728 2001-07-16  Richard Henderson  <rth@redhat.com>
9730         * regclass.c (init_reg_sets): Use only 32 bits per initializer
9731         from int_reg_class_contents.
9733 2001-07-16  Richard Henderson  <rth@redhat.com>
9735         * hard-reg-set.h (regs_invalidated_by_call): Declare.
9736         * regclass.c (regs_invalidated_by_call): Move from cse.c.
9737         (init_reg_sets_1): Move initialization from cse_main.
9738         * cse.c (regs_invalidated_by_call): Move to regclass.c.
9739         (cse_main): Move its initialization also.
9740         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
9741         * flow.c (propagate_one_insn): Likewise.
9742         * gcse.c (compute_hash_table): Likewise.
9743         (compute_kill_rd, compute_store_table): Likewise.
9744         * sched-deps.c (sched_analyze_1): Likewise.
9746 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
9748         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
9749         gen_rtx_SET.
9751 2001-07-16  Steve Ellcey <sje@cup.hp.com>
9753         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
9754         in if statement so we don't access undefined memory.
9756 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9758         * gcse.c: Update comment at top.
9759         Update comment on mem handling.
9760         mem_last_set, mem_first_set, mem_set_in_block: gone.
9761         Declaration of reg_set_info: gone.
9762         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
9763         pointless with load_killed_in_block_p (they are *more*
9764         conservative then it, not less, and less accurate).
9765         (oprs_not_set_p): Ditto.
9766         (alloc_gcse_mem): Don't allocate mem_set_in_block
9767         (free_gcse_mem): Don't free it, either.
9768         (record_last_mem_set_info): Update comment in front, remove
9769         mem_*set_* stuff. Note the reason we don't handle stores directly
9770         here.
9771         (compute_hash_table): Update comments to reflect reality. Remove
9772         mem_*set_* references.
9773         (reset_opr_set_tables): Remove mem_*set_* references.
9774         (mark_call): Ditto.
9775         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
9776         (mark_clobber): Ditto (on both parts, we double set here too).
9777         (expr_killed_p): Remove mem_set_in_block test.
9778         (compute_transp): Remove mem_set_in_block test.
9780         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
9781         of edge, and removal of phi alternative to dump file.
9782         (ssa_ccp_substitute_constants): Add note about register now being
9783         constant, and which uses were replaced in what insns to dump file.
9785 2001-07-16  Andreas Jaeger  <aj@suse.de>
9787         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
9788         variables of type HOST_WIDEST_INT.
9790         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
9791         (__bb_exit_func): Correct type of count_max to avoid overflow.
9792         (num_digits): Handle long long argument.
9794         * combine.c (gen_lowpart_for_combine): Remove unused variable.
9796 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9798         * output.h (sdb_begin_function_line): Restore as an extern
9799         variable.
9800         * sdbout.c (sdb_begin_function_line): Make extern.
9802 2001-07-15  Richard Henderson  <rth@redhat.com>
9804         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
9805         * genrecog.c (maybe_both_true_mode): New.
9806         (maybe_both_true_2): Use it.
9807         (write_switch): Don't put Pmode in a switch.
9808         * rtl.c (mode arrays): Don't explicitly size them.
9810 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9812         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
9813         handling; move unconditional splitting before mode switching.
9815         * i386.md (type): Add fistp type.
9816         (i387, length_attr, scheduling definitions): Handle this type.
9817         (fix_trunc?f?i2): Revamp to use mode switching.
9818         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
9819         * i386.h (fp_cw_mode): New enum
9820         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
9821         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
9823 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9825         * Makefile.in (integrate.o): Add debug.h.
9826         * integrate.c (debug.h): Add.
9827         (output_inline_function): Save, reset, and restore debug_hooks.
9829 2001-07-15  Richard Henderson  <rth@redhat.com>
9831         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
9832         instead of COMPARE for the EQUIV expression.
9834 2001-07-15  Richard Henderson  <rth@redhat.com>
9836         * flow.c (redirect_edge_and_branch_force): Initialize
9837         global_live_at_start and global_live_at_end.
9838         (allocate_bb_life_data): Export.
9839         * basic-block.h (allocate_bb_life_data): Declare.
9840         * toplev.c (rest_of_compilation): Call it.
9842 2001-07-15  Richard Henderson  <rth@redhat.com>
9844         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
9845         (alpha_tablejump_best_label): New.
9846         * config/alpha/alpha-protos.h: Declare them.
9847         * config/alpha/alpha.md: Use braced strings for code blocks.
9848         (tablejump_osf): Break out add with r29.
9849         (tablejump_osf_internal): Remove.
9850         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
9851         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
9853 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9855         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
9856         of the movable.
9858         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
9860         * i386-protos.h (ix86_split_fp_branch): Update prototype.
9861         (ix86_fp_jump_nontrivial_p): New.
9862         * i386.md (fp_jcc_?): Update call of split_fp_branch;
9863         use ix86_fp_jump_nontrivial_p.
9864         * i386.c (ix86_fp_jump_nontrivial_p): New.
9865         (ix86_split_fp_branch): Accept code instead of rtx.
9866         (ix86_expand_compare): Expand comparison early in case
9867         doing so is resonably cheap.
9869 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
9871         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
9872         not 'machine'.
9873         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
9874         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
9876 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
9878         * dbxout.c (dbxout_source_line): Make static, update prototype.
9879         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
9880         (dbxout_init, dbxout_finish, dbxout_source_line,
9881         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
9882         * dbxout.h (dbxout_source_line): Delete.
9883         * debug.c (debug_nothing_file, debug_nothing_file_int,
9884         debug_nothing_file_charstar_rtx): New.
9885         (do_nothing_debug_hooks): Update.
9886         (debug_nothing_void, debug_nothing_charstar_rtx,
9887         dwarf2out_end_epilogue): New.
9888         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9889         * debug.h (struct rtx_def): Declare.
9890         (gcc_debug_hooks): New hooks source_line, end_epilogue
9891         and end_function.
9892         (debug_nothing_void, debug_nothing_charstar_rtx,
9893         dwarf2out_end_epilogue): New.
9894         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9895         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
9896         (dwarf2_debug_hooks): Update.
9897         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
9898         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
9899         * dwarf2out.h (dwarf2out_source_line): Remove.
9900         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
9901         Make static, update prototype.
9902         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
9903         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
9904         (dwarf_debug_hooks): Update.
9905         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
9906         dwarfout_end_function): Remove.
9907         * final.c (profile_function): Use debug hooks for ending functions
9908         and epilogues.
9909         (output_source_line, final_end_function): Update prototype,
9910         use debug hooks.
9911         (final_start_function, final_scan_insn): Update.
9912         * output.h (sdb_begin_function_line): Remove.
9913         (final_end_function): Update prototype.
9914         * sdbout.c (sdb_begin_function_line): Make static.
9915         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
9916         (sdbout_source_line): New.
9917         (sdbout_end_epilogue, sdbout_end_function): Make static, update
9918         prototypes.
9919         (sdb_debug_hooks): Update.
9920         (sdbout_init, sdbout_source_line,
9921         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
9922         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
9923         * toplev.c (compile_file, rest_of_compilation): Update.
9924         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
9925         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
9926         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
9927         Update for prototype changes.
9928         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
9929         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
9931 2001-07-15  Richard Henderson  <rth@redhat.com>
9933         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
9934         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
9935         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
9936         * config/alpha/alpha.c: Likewise.
9937         * config/alpha/alpha.md: Likewise.
9938         * config/alpha/alpha32.h: Likewise.
9939         * config/alpha/vms.h: Likewise.
9940         (OPEN_VMS): Remove.
9942 2001-07-14  Richard Henderson  <rth@redhat.com>
9944         * config/alpha/alpha.md: Use define_constants for unspec values.
9945         Substitute throughout.
9947 2001-07-14  Tim Josling  <tej@melbpc.org.au>
9949         * tree.def (EXPON_EXPR) remove. Never supported anyway.
9951 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9953         * pa.md: Remove unused constraints from define_split's.
9955 2001-04-14  Richard Henderson  <rth@redhat.com>
9957         * ifcvt.c (find_cond_trap): Test for exit block.
9959 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
9961         Re-install recently reverted patch.
9962         * emit-rtl.c (try_split): Update mark_jump_label call.
9963         * flow.c (find_sub_basic_blocks): Likewise.
9964         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
9965         jump_back_p): Kill.
9966         (mark_all_labels): Kill second parameter.
9967         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
9968         (rebuild_jump_labels, jump_optimize_minimal): Update call
9969         of jump_optimize_1.
9970         (jump_optimize_1): Kill crossjumping code.
9971         (mark_jump_label): Kill cross_jump parameter.
9972         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
9973         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
9974         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
9975          splitting.
9976         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
9977         DFI_bpro.
9978         (dump_file_info): Likewise.
9979         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
9980         reorganize passes to do reg-stack first, bb-reorder second.
9981         * invoke.texi (-d letters doc): Remove the jump2 pass.
9983 2001-07-14  Richard Henderson  <rth@redhat.com>
9985         * ifcvt.c (find_cond_trap): New.
9986         (find_if_header): Call it.
9987         (merge_if_block): Relax existing jump sanity check.
9988         * jump.c (jump_optimize_1): Remove conditional trap handling.
9990 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
9992         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
9993         millicode.
9994         (insn_refs_are_delayed): Correct comment.
9995         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
9996         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
9997         instead of r31.  Make associated insn !TARGET_64BIT, and
9998         provide an additional 64-bit insn that clobbers r2.
9999         (divsi3): Likewise.
10000         (udivsi3): Likewise.
10001         (modsi3): Likewise.
10002         (umodsi3): Likewise.
10004 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
10006         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
10008         * flow.c (redirect_edge_and_branch_force, split_edge,
10009         try_crossjump_to_edge): Use set_block_for_new_insns.
10010         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
10012 2001-07-13  H.J. Lu  (hjl@gnu.org)
10014         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
10015         the correct patch.
10017 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10019         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
10021 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
10023         * c-common.c (decl_attributes): Take a pointer to the node to
10024         which attributes are to be attached, and a flags argument.
10025         * c-common.h (enum attribute_flags): New.
10026         (decl_attributes): Update prototype.
10027         * c-decl.c (start_decl, push_parm_decl, finish_struct,
10028         finish_enum, start_function): Update calls to decl_attributes.
10029         * c-parse.in (component_declarator, component_notype_declarator,
10030         label): Update calls to decl_attributes.
10032 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
10034         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
10035         * config/avr/avr.c (legitimate_address_p): Return value changed
10036         from letter to register classes. For better debugging.
10038 2001-07-13  Kazu Hirata  <kazu@hxi.com>
10040         * jump.c (reversed_comparison_code_parts): Fix comment typos.
10042 2001-07-13  H.J. Lu  (hjl@gnu.org)
10044         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
10046 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
10048         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
10049         correctly for shared configurations.
10050         * config/t-libgcc-pic:  New.
10051         * config/{i386,m68k,sparc}/t-openbsd:  New.
10052         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
10053         Support -shared.  Support debugging libraries with -g.
10054         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
10055         frame information does not emit pointer diffs.
10056         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
10057         emit pointer diffs.
10059 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10061         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
10063 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
10065         * combine.c (try_combine): Ensure const_int pow2 is positive.
10067 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
10069         * config.gcc: Add configuration for s/390.
10070         * config/s390/s390.c: New. Subroutines for code generation.
10071         * config/s390/s390.h: New. Definitions for s/390.
10072         * config/s390/s390-protos.h: New. Prototypes.
10073         * config/s390/linux.h: New. Definitions for linux for s/390.
10074         * config/s390/linux64.h: New. Definitions for linux for zSeries.
10075         * config/s390/t-linux: New. Makefile fragment.
10076         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
10077         * config/s390/fixdfdi.h: New. Fix L_fix*di.
10079 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
10081         * emit-rtl.c (try_split): Update mark_jump_label call.
10082         * flow.c (find_sub_basic_blocks): Likewise.
10083         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10084         jump_back_p): Kill.
10085         (mark_all_labels): Kill second parameter.
10086         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10087         (rebuild_jump_labels, jump_optimize_minimal): Update call
10088         of jump_optimize_1.
10089         (jump_optimize_1): Kill crossjumping code.
10090         (mark_jump_label): Kill cross_jump parameter.
10091         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10092         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10093         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10094          splitting.
10095         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10096         DFI_bpro.
10097         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10098         reorganize passes to do reg-stack first, bb-reorder second.
10099         * invoke.texi (-d letters doc): Remove the jump2 pass.
10101 2001-07-12  Steve Ellcey <sje@cup.hp.com>
10103         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
10105 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10107         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
10108         basic blocks.
10109         (verify_flow_info): Make diagnostics prettier.
10111 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10113         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
10115         * flow.c (outgoing_edges_match): Return early if condition reversal
10116         failed.
10118 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
10120         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
10121         (mips_move_2words): When splitting a move into two instructions,
10122         prefix the second address operand with '%D'.
10124 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10126         * Makefile.in (final.o): Depend on debug.h.
10127         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
10128         (dbx_debug_hooks): Add new hooks.
10129         (xcoff_debug_hooks): New.
10130         * debug.c (debug_nothing_file_int_int): New.
10131         (do_nothing_debug_hooks): Update.
10132         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
10133         (debug_nothing_file_int_int): New.
10134         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
10135         static, update prototype.
10136         (dwarf2_debug_hooks): Update.
10137         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
10138         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
10139         static, update prototype.
10140         (dwarf_debug_hooks): Update.
10141         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
10142         * final.c: Include debug.h.
10143         (final_scan_insn): Use debug hooks when beginning and ending blocks.
10144         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
10145         static, update prototype.
10146         (sdb_debug_hooks): Update.
10147         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
10148         * toplev.c: Distinguish between xcoff and dbx.
10150         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
10151         Call all debug hooks, not just dwarf ones.
10153 2001-07-11  Timothy Wall  <twall@redhat.com>
10155         * config.gcc: Add configuration for AIX5/IA64.
10156         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
10157         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
10158         support prefix/suffix code.
10159         * config/ia64/t-aix: New.  Makefile fragment.
10160         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
10162 2001-07-11  Kazu Hirata  <kazu@hxi.com>
10164         * recog.c (validate_change): Fix a comment typo.
10166 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10168         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
10169         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
10170         hooks directly.
10171         * dbxout.c (dbx_debug_hooks): Add new hooks.
10172         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
10173         make static.
10174         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
10175         make static.
10176         * dbxout.h (dbxout_start_new_source_file,
10177         dbxout_resume_previous_source_file): Delete.
10178         * debug.c (do_nothing_debug_hooks): Add new hooks.
10179         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10180         (debug_nothing_int_charstar, debug_nothing_int): New.
10181         * debug.h (gcc_debug_hooks): New hooks define, undef,
10182         start_source_file and end_source_file.
10183         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10184         (debug_nothing_int_charstar, debug_nothing_int): New.
10185         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
10186         the conditionally compiled section.
10187         (dwarf2out_start_source_file, dwarf2out_end_source_file,
10188         dwarf2out_define, dwarf2out_undef): Make static.
10189         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
10190         dwarf2out_define, dwarf2out_undef): Remove.
10191         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
10192         (dwarfout_start_source_file, dwarfout_end_source_file,
10193         dwarfout_define, dwarfout_undef): Make static.
10194         (dwarfout_start_source_file_check,
10195         dwarfout_end_source_file_check): New.
10196         (dwarfout_define, dwarfout_finish): Update.
10197         * dwarfout.h (dwarfout_start_new_source_file,
10198         dwarfout_resume_previous_source_file, dwarfout_define,
10199         dwarfout_undef): Remove.
10200         * sdbout.c (sdb_debug_hooks): Add new hooks.
10201         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
10202         make static.
10203         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
10204         make static, take an arg.
10205         * sdbout.h (sdbout_start_new_source_file,
10206         sdbout_resume_previous_source_file): Delete.
10207         * toplev.c (debug_start_source_file, debug_end_source_file,
10208         debug_define, debug_undef): Delete.
10209         * toplev.h (debug_start_source_file, debug_end_source_file,
10210         debug_define, debug_undef): Delete.
10212         * java/jcf-parse.c: Include debug.h.
10213         (parse_class_file): Update to use debug hooks directly.
10214         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
10216 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10218         * alias.c (set_mem_alias_set): New function.
10219         * rtl.h (set_mem_alias_set): Declare it.
10220         * builtins.c (expand_builtin_return_addr): Call it instead of
10221         using MEM_ALIAS_SET accessor.
10222         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
10223         (get_memory_rtx, expand_builtin_va_arg): Likewise.
10224         (expand_builtin_va_copy):Likewise.
10225         * caller-save.c (setup_save_areas): Likewise.
10226         * calls.c (compute_argument_addresses): Likewise.
10227         * explow.c (set_mem_attributes): Likewise.
10228         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
10229         (expand_assignment, store_constructor_field, store_field): Likewise.
10230         (expand_expr_unaligned): Likewise.
10231         * function.c (assign_stack_temp_for_type): Likewise.
10232         (put_reg_into_stack, gen_mem_addressof): Likewise.
10233         * ifcvt.c (noce_try_cmove_arith): Likewise.
10234         * reload1.c (reload, alter_reg): Likewise.
10235         * config/alpha/alpha.c (get_aligned_mem): Likewise.
10236         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
10237         (alpha_expand_unaligned_store): Likewise
10238         (alpha_expand_unaligned_load_words): Likewise.
10239         (alpha_expand_unaligned_store_words): Likewise.
10240         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
10241         (alpha_expand_epilogue): Likewise.
10242         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
10243         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
10244         * config/i386/i386.c (legitimize_pic_address): Likewise.
10245         * config/i960/i960.c (setup_incoming_varargs): Likewise.
10246         * config/ia64/ia64.c (spill_restore_mem): Likewise.
10247         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10248         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
10249         * config/mips/mips.c (mips_va_arg): Likewise.
10250         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10251         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10252         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10253         (setup_incoming_varargs, rs6000_va_arg): Likewise.
10254         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
10255         (rs6000_emit_epilogue): Likewise.
10256         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
10257         * config/sparc/sparc.c (sparc_va_arg): Likewise.
10258         * config/v850/v850.c (v850_va_arg): Likewise.
10260 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
10262         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
10263         when fallthru edge is present.
10264         (mege_blocks): Handle case where creation of jump insn
10265         is required.
10267         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
10268         CLEANUP_POST_REGSTACK): New constants.
10269         * except.c (finish_eh_generation): Update call of cleanup_cfg,
10270         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
10271         * output.h (cleanup_cfg): Update prototype.
10272         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
10273         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
10274         cleanup_cfg call; kill missleading comment.
10275         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
10276         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
10277         parameter; control optimizations performed using it.
10278         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
10279         try_crossjump_bb): New functions.
10281 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10283         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
10284         extern.
10285         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
10286         pa_output_function_prologue.
10287         * pa-protos.h (pa_output_function_prologue): New prototype.
10289 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10291         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
10292         and low to get correct sign extension in low+high test.
10294 2001-07-11  Janis Johnson <janis@us.ibm.com>
10296         * gcov.c (arcdata): Use gcov_type to fix branch percentage
10297         for large hit count.
10299         * profile.c (branch_prob): Fix .bbg info for computed gotos
10300         and C++ EH code.
10302 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
10304         * stmt.c (parse_output_constraint): New function, split out
10305         from ...
10306         (expand_asm_operands): ... here.  Use parse_output_constraint.
10307         * tree.h (parse_output_constraint): Declare it.
10309 2001-07-11  Richard Henderson  <rth@redhat.com>
10311         * bitmap.c: Comment some functions; fiddle whitespace.
10312         (bitmap_free): Don't export.
10313         (bitmap_element_allocate): Use memset.
10314         * bitmap.h (bitmap_free): Don't declare.
10316 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
10318         * gcse.c, lcm.c, sched-deps.c:
10319         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
10321         * flow.c (flow_loops_find): Free dom if we found no loops, since
10322         we aren't going to save it.
10324         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
10325         done.
10327 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
10329         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
10331 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10333         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
10334         #ifndef DWARF2_DEBUGGING_INFO.
10336 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10338         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
10340 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10342         * config/mips/mips.c (gen_int_relational): Tell the caller not to
10343         reverse a branch if a NE comparison is implemented with GTU.
10345 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10346             H.J. Lu  <hjl@gnu.org>
10348         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
10349         constant addresses.
10350         (call_internal2): Likewise.
10351         (call_value_internal1): Likewise.
10352         (call_value_internal2): Likewise.
10353         (call_value_multiple_internal1): Likewise.
10354         (call_value_multiple_internal2): Likewise.
10356 2001-07-10  Kazu Hirata  <kazu@hxi.com>
10358         * calls.c (emit_library_call_value_1): Fix a comment typo.
10359         * dwarf2out.c (mem_loc_descriptor): Likewise.
10360         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
10362 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
10364         * simplify-rtx.c (simplify_subreg): Fix typo in comment
10366 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10368         * recog.c (offsettable_address_p): Handle LO_SUM case.
10369         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
10370         instead of plus_constant.
10372 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10374         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
10375         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
10377 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10379         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
10380         adjust_address_nv instead of plus_constant.
10382 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10384         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
10385         dwarf2out.o): Depend on debug.h, wrap long lines.
10386         * dbxout.c: Include debug.h.
10387         (dbx_debug_hooks): New.
10388         (dbxout_init): Make static, take just 2 args.
10389         (dbxout_finish): Make static.
10390         * dbxout.h (dbxout_init, dbxout_finish): Delete.
10391         * debug.c: New file.
10392         * debug.h: New file.
10393         * dwarf2out.c: Include debug.h.
10394         (dwarf2_debug_hooks): New.
10395         (dwarf2out_init): Make static.
10396         (dwarf2out_finish): Make static, take 2 args.
10397         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
10398         * dwarfout.c: Include debug.h.
10399         (dwarf_debug_hooks): New.
10400         (dwarfout_init): Make static.
10401         (dwarfout_finish): Make static, take 2 args.
10402         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
10403         * sdbout.c: Include debug.h.
10404         (sdb_debug_hooks): New.
10405         (sdbout_init): Make static, take 2 args.
10406         * sdbout.h (sdbout_init): Delete.
10407         * toplev.c: Include debug.h.
10408         (debug_hooks): New.
10409         (compile_file): Set deubg_hooks based on command line options.
10410         Use the hooks unconditionally rather than conditional compilation.
10412 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
10414         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
10415         first_insn_after_basic_block_note instead.
10417         * df.c (df_bb_refs_unlink): #if 0 out for now.
10419 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
10421         * ssa.h: Add prototype for ssa_const_prop
10422         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
10423         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
10424         (ssa_fast_dce): Remove unused variable
10426 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10428         * diagnostic.c (finish_diagnostic): Rename to
10429         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
10430         calls thourghout.
10432 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
10434         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
10435         .loc support.
10437         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
10438         (dump_file): Only pad the demangled name with spaces if the
10439         mangled name was padded with spaces.
10441 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
10443         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
10444         edge detection.
10446 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10448         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
10449         extraction if no direct load if either EXPAND_CONST_ADDRESS or
10450         EXPAND_INITIALIZER.
10452         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
10453         whether can put offset inside LO_SUM to check mode alignment, not size.
10455 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10457         * doc/tm.texi (Misc): Fix thinko.
10459 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
10461         * regmove.c (replace_in_call_usage): Fix warnings.
10462         * sched-deps.c (add_dependence): Fix warnings.
10463         * simplify-rtx.c (simplify_subreg): Likewise.
10464         Return NULL_RTX instead of NULL.
10466         * reg-stack.c (emit_swap_insn): Eliminate warnings.
10467         (subst_asm_stack_regs): Likewise.
10469         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
10470         warnings.
10472         * dwarf2out.c (output_call_frame_info): Declare i as int.
10473         (build_abbrev_table): Declare n_alloc as int.
10474         (dwarf2out_finish): Initialize die.
10475         * except.c: Declare sjlj_funcdef_number as unsigned.
10476         (connect_post_landing_pads): Declare j as unsigned.
10477         (convert_to_eh_region_ranges): Initialize call_site.
10478         (output_function_exception_table): Initialize tt_format_size.
10479         * expr.c (move_by_pieces_1): Initialize to1.
10480         (store_constructor): Initialize minelt and maxelt.
10481         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
10482         * function.c (instantiate_decls): Avoid signed/unsigned warning.
10484         * c-decl.c (combine_parm_decls): Unused, remove.
10485         * c-tree.h: Remove prototype for combine_parm_decls.
10487         * reload.c (push_reload): Fix warning.
10488         (regno_clobbered_p): Likewise.
10489         * reload1.c (replace_pseudos_in_call_usage): Likewise.
10490         (reload_combine): Likewise.
10492         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
10493         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
10494         warnings.
10495         * bitmap.c (bitmap_operation): Change user.
10496         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
10498 2001-07-10  Eric Christopher  <echristo@redhat.com>
10500         * config/mips/mips.c (override_options): Fix typo.
10502 2001-07-09  Stan Shebs  <shebs@apple.com>
10504         * target.h (struct gcc_target): New fields init_builtins and
10505         expand_builtin.
10506         * target-def.h (TARGET_INIT_BUILTINS): New macro.
10507         (TARGET_EXPAND_BUILTIN): New macro.
10508         (TARGET_INITIALIZER): Add them.
10509         * builtins.c: Include target.h.
10510         (expand_builtin): Use targetm.expand_builtin.
10511         (default_init_builtins): New function.
10512         (default_expand_builtin): New function.
10513         * expr.h (default_init_builtins): Declare.
10514         (default_expand_builtin): Declare.
10515         * c-common.c (c_common_nodes_and_builtins): Use
10516         targetm.init_builtins.
10517         * defaults.h (MD_INIT_BUILTINS): Remove.
10518         * Makefile.in (builtins.o): Depend on target.h.
10520         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
10521         (TARGET_EXPAND_BUILTIN): Define.
10522         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
10523         (MD_EXPAND_BUILTIN): Remove.
10525         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
10526         (TARGET_EXPAND_BUILTIN): Define.
10527         (c4x_init_builtins): Make endlink arg a local.
10528         (c4x_print_operand): Fix typos in adjust_address usages.
10529         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
10530         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
10531         (MD_EXPAND_BUILTIN): Remove.
10533         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
10534         (TARGET_EXPAND_BUILTIN): Define.
10535         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
10536         (ix86_init_builtins): Call new function only if TARGET_MMX.
10537         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
10538         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
10539         (MD_EXPAND_BUILTIN): Remove.
10541         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
10542         (TARGET_EXPAND_BUILTIN): Define.
10543         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
10544         (MD_EXPAND_BUILTIN): Remove.
10546         * doc/tm.texi: Document these changes.
10548 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
10550         * basic-block.h (tree_node): Forward declare if needed.
10551         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
10552         (BLOCK_HEAD_TREE): Define.
10553         (BLOCK_END_TREE): Define.
10554         (struct loops): Rename field 'tree' to 'tree_root'.
10555         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
10556         'end_tree'.
10557         (flow_loops_tree_build): Rename reference to field 'tree' to
10558         'tree_root'.
10559         (flow_loops_level_compute): Ditto.
10560         * predict.c (estimate_bb_frequencies): Ditto.
10561         * tree.h (struct tree_common): Add field 'aux'.
10563 2001-07-09  Stan Shebs  <shebs@apple.com>
10565         * config/darwin.c (darwin_encode_section_info): Don't mark any
10566         DECL_EXTERNAL node as defined.
10568 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10570         * pa.c (pa_init_machine_status, pa_mark_machine_status,
10571         pa_free_machine_status, hppa_init_pic_save): Delete.
10572         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
10573         (hppa_profile_hook): Use hppa_pic_save_rtx.
10574         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
10575         hppa_init_pic_save): Delete.
10576         (hppa_pic_save_rtx): Declare.
10577         * pa.md (call, call_value, sibcall, sibcall_value,
10578         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
10580 2001-07-09  Kazu Hirata  <kazu@hxi.com>
10582         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
10583         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
10585 2001-07-09  Andreas Jaeger  <aj@suse.de>
10587         * output.h: Add declaration of final_forward_branch_p.
10589         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
10591         * varray.c: Include errors.h for internal_error and trim_filename
10592         declarations.
10594         * Makefile.in (varray.o): Add errors.h.
10596 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
10598         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
10599         * optabs.c (have_add2_insn): Check whether the add insn chosen
10600         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
10601         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
10603 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
10605         * Makefile.in (OBJS): Add ssa-ccp.o
10606         (ssa-ccp.o): Add dependencies.
10607         * toplev.c (DFI_ssa_ccp): New dump file enum.
10608         (dump_file): Add entry for dumping after SSA CCP.
10609         (flag_ssa_ccp): New flag variable.
10610         (f_options): Add -fssa-ccp.
10611         (rest_of_compilation): Run SSA CCP if requested.
10612         * timevar.def (TV_SSA_CCP): New timevar.
10613         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
10614         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
10615         Fix minor typo in SSA DCE documentation.
10616         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
10617         Add documentation for new dump option.  Renumber dump files
10618         appropriately.
10620 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10622         * emit-rtl.c (gen_highpart_mode): New.
10623         * rtl.h (gen_highpart_mode): Declare.
10624         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
10625         operand can be VOIDmode constant.
10627 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
10629         * flow.c (redirect_edge_and_branch_force): New.
10630         (can_fallthru): Ensure that basic blocks are succeeding.
10631         (try_optimize_cfg): Do not delete basic block if it is the last one.
10633         * flow.c (try_redirect_by_replacing_jump): Do not remove
10634         jumps with side effects, unlink chain on fallthru edge;
10635         set block for new jump instruction; avoid basic block to
10636         over by line number note.
10638         * flow.c (try_simplify_condjump): Verify that the condjump
10639         is not always falling trought.
10641         Re-install patch:
10642         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
10644         * flow.c (forwarder_block_p): Fix for fallthru blocks.
10645         (try_redirect_by_replacing_jump): Update properly the count
10646         and frequency information.
10648 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10650         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
10651         address that is a LO_SUM specially.
10652         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
10654         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
10656         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
10657         (operand_subword): Use them.
10658         (change_address_1): Renamed from change_address; new arg VALIDATE.
10659         * expr.h: Reflect above changes; change_address now macro.
10660         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
10661         making MEM.
10662         * cselib.c (add_mem_for_addr): Likewise.
10663         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
10664         * regmove.c (try_apply_stack_adjustment): Likewise.
10665         * reload.c (push_reload, make_memloc): Likewise.
10666         * reload1.c (eliminate_regs): Likewise.
10667         * simplify-rtx.c (simplify_replace_rtx): Likewise.
10668         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
10669         adjust_addess.
10670         * combine.c (make_extraction, simplify_shift_const): Likewise.
10671         (gen_lowpart_for_combine): Likewise.
10672         * cse.c (gen_lowpart_if_possible): Likewise.
10673         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
10674         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
10675         * optabs.c (gen_move_insn): Likewise.
10676         * reload1.c (alter_reg): Likewise.
10677         * simplify-rtx.c (simplify_subreg): Likewise.
10678         * stmt.c (expand_anon_union_decl): Likewise.
10679         * recog.c (validate_replace_rtx_1): Likewise.
10680         (expr.h): Include.
10681         * Makefile.in (recog.o): Add $(EXPR_H).
10682         * explow.c (stabilize): Call replace_equiv_address.
10683         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
10684         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
10686 2001-07-03  Andrew Haley  <aph@redhat.com>
10688         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
10689         the mode of the memory location.
10691 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
10693         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
10695 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
10697         * final.c (output_addr_const): Use target opening and
10698         closing parentheses.
10699         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
10700         defaults, add to TARGET_ASM_OUT.
10701         * target.h (struct gcc_target): Add open_paren and close_paren.
10702         * doc/md.texi: Update.
10703         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
10704         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
10705         TARGET_ASM_CLOSE_PAREN.
10706         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10707         Override.
10708         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10709         Override.
10710         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
10711         * config/a29k/a29k.h: Similarly.
10712         * config/alpha/alpha.h: Similarly.
10713         * config/arc/arc.h: Similarly.
10714         * config/arm/aof.h: Similarly.
10715         * config/arm/aout.h: Similarly.
10716         * config/avr/avr.h: Similarly.
10717         * config/c4x/c4x.h: Similarly.
10718         * config/clipper/clipper.h: Similarly.
10719         * config/convex/convex.h: Similarly.
10720         * config/d30v/d30v.h: Similarly.
10721         * config/dsp16xx/dsp16xx.h: Similarly.
10722         * config/elxsi/elxsi.h: Similarly.
10723         * config/fr30/fr30.h: Similarly.
10724         * config/h8300/h8300.h: Similarly.
10725         * config/i370/i370.h: Similarly.
10726         * config/i386/i386.h: Similarly.
10727         * config/i860/i860.h: Similarly.
10728         * config/i960/i960.h: Similarly.
10729         * config/ia64/ia64.h: Similarly.
10730         * config/m32r/m32r.h: Similarly.
10731         * config/m68hc11/m68hc11.h: Similarly.
10732         * config/m68k/m68k.h: Similarly.
10733         * config/m88k/m88k.h: Similarly.
10734         * config/mcore/mcore.h: Similarly.
10735         * config/mips/mips.h: Similarly.
10736         * config/mn10200/mn10200.h: Similarly.
10737         * config/mn10300/mn10300.h: Similarly.
10738         * config/ns32k/ns32k.h: Similarly.
10739         * config/pa/pa.h: Similarly.
10740         * config/pdp11/pdp11.h: Similarly.
10741         * config/pj/pj.h: Similarly.
10742         * config/romp/romp.h: Similarly.
10743         * config/rs6000/rs6000.h: Similarly.
10744         * config/sh/sh.h: Similarly.
10745         * config/sparc/sparc.h: Similarly.
10746         * config/v850/v850.h: Similarly.
10747         * config/vax/vax.h: Similarly.
10748         * config/we32k/we32k.h: Similarly.
10750 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
10752         * doc/c-tree.texi: Document representation of attributes.
10754 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10756         * doc/tm.texi: Update some places for the rename of target to
10757         targetm.  Fix typo.
10759 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10761         * target.h (struct gcc_target): Add insert_attributes.
10762         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
10763         (TARGET_INITIALIZER): Update.
10764         * tree.c, tree.h (default_insert_attributes): New function.
10765         Update comments on other default functions to refer to targetm,
10766         not target.
10767         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
10768         TARGET_INSERT_ATTRIBUTES.
10769         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
10770         * c-common.c (decl_attributes): Use targetm.insert_attributes.
10771         Don't use PRAGMA_INSERT_ATTRIBUTES.
10772         * Makefile.in (c-common.o): Depend on $(TARGET_H).
10773         * c-decl.c (start_decl, start_function): Don't call
10774         SET_DEFAULT_DECL_ATTRIBUTES.
10775         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10776         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
10777         declare.
10778         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
10779         (c4x_check_attribute): Avoid modifying attribute list itself.
10780         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
10781         Make static.
10782         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
10783         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
10784         declare.
10785         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
10786         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
10787         Make static.
10788         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10789         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
10790         declare.
10791         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
10792         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
10793         Adjust parameters.  Make static.
10795 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10797         * c-common.c (decl_attributes): Only take a single attributes
10798         parameter.
10799         * c-common.h (decl_attributes): Update prototype.
10800         * c-decl.c (start_decl, start_function): Only take a single
10801         attributes parameter.  Update calls to decl_attributes.
10802         (finish_struct, finish_enum): Update calls to decl_attributes.
10803         (push_parm_decl): Expect unified list of attributes.  Update call
10804         to decl_attributes.
10805         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
10806         notype_nested_function, component_declarator,
10807         component_notype_declarator, label): Update calls to
10808         decl_attributes.
10809         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
10810         lists that are passed to push_parm_decl.
10811         * c-tree.h (start_function, start_decl): Update prototypes.
10812         * config/sh/sh-protos.h, config/sh/sh.c
10813         (sh_pragma_insert_attributes): Only take a single attributes
10814         parameter.
10815         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
10816         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
10817         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
10818         build_module_descriptor, generate_static_references,
10819         generate_strings, build_selector_translation_table,
10820         generate_descriptor_table, generate_protocols,
10821         generate_ivars_list, generate_dispatch_table,
10822         generate_protocol_list, generate_category,
10823         generate_shared_structures, really_start_method, add_objc_decls,
10824         generate_classref_translation_entry): Update calls to start_decl
10825         and start_function.
10826         (build_tmp_function_decl, start_method_def): Unify attribute lists
10827         that are passed to push_parm_decl.
10829 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10831         * final.c (no_asm_to_stream): New.
10832         (final_scan_insn): Use target structures for prologue ends
10833         and epilogue starts.
10834         * output.h (no_asm_to_stream): New.
10835         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
10836         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
10837         (TARGET_ASM_OUT): Update.
10838         * target.h (struct gcc_target): New members function_end_prologue
10839         and function_begin_epilogue.
10840         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
10841         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
10842         * config/alpha/alpha.c (output_end_prologue): Rename to
10843         alpha_output_function_end_prologue.  Use in target struct
10844         and make static.
10845         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
10846         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
10847         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
10848         ia64_output_function_end_prologue.  Use in target struct
10849         and make static.
10850         (ia64_function_prologue, ia64_funciton_epilogue): Rename
10851         mistyped prototypes.
10852         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
10853         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
10854         Delete.
10855         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
10856         an use in target struct, make static.
10857         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
10858         Delete.
10860 2001-07-08  Richard Henderson  <rth@redhat.com>
10862         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
10864 2001-07-08  Richard Henderson  <rth@redhat.com>
10866         * config/i386/i386.md: Remove constraints strings from define_split
10867         and define_peephole2 patterns.
10868         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
10869         (eh_return): Use them.
10871 2001-07-08  Richard Henderson  <rth@redhat.com>
10873         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
10874         Document MD_FALLBACK_FRAME_STATE_FOR.
10876 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10878         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
10879         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
10880         elimination.
10881         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
10883 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
10885         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
10886         of the label inside NAME as opposed to just the end of NAME.
10888 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10890         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
10891         * config/alpha/alpha.c (alpha_init_machine_status,
10892         alpha_mark_machine_status, alpha_free_machine_status): Delete.
10893         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
10894         (vms_valid_decl_attribute_p): Make static, conditionally compile.
10895         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
10897 2001-07-06  Stan Shebs  <shebs@apple.com>
10899         * target.h (targetm): Rename global from "target", so as not to
10900         conflict with local variables.
10901         * c-decl.c: Ditto.
10902         * c-typeck.c: Ditto.
10903         * final.c: Ditto.
10904         * tree.c: Ditto.
10905         * cp/decl.c: Ditto.
10906         * cp/decl2.c: Ditto.
10907         * cp/typeck.c: Ditto.
10908         * 1750a/1750a.c: Ditto.
10909         * a29k/a29k.c: Ditto.
10910         * arc/arc.c: Ditto.
10911         * arm/arm.c: Ditto.
10912         * avr/avr.c: Ditto.
10913         * clipper/clipper.c: Ditto.
10914         * convex/convex.c: Ditto.
10915         * d30v/d30v.c: Ditto.
10916         * dsp16xx/dsp16xx.c: Ditto.
10917         * elxsi/elxsi.c: Ditto.
10918         * fr30/fr30.c: Ditto.
10919         * h8300/h8300.c: Ditto.
10920         * i370/i370.c: Ditto.
10921         * i386/i386.c: Ditto.
10922         * i860/i860.c: Ditto.
10923         * i960/i960.c: Ditto.
10924         * ia64/ia64.c: Ditto.
10925         * m32r/m32r.c: Ditto.
10926         * m68hc11/m68hc11.c: Ditto.
10927         * m68k/m68k.c: Ditto.
10928         * m88k/m88k.c: Ditto.
10929         * mips/mips.c: Ditto.
10930         * ns32k/ns32k.c: Ditto.
10931         * pa/pa.c: Ditto.
10932         * pdp11/pdp11.c: Ditto.
10933         * romp/romp.c: Ditto.
10934         * rs6000/rs6000.c: Ditto.
10935         * sh/sh.c: Ditto.
10936         * sparc/sparc.c: Ditto.
10937         * vax/vax.c: Ditto.
10938         * we32k/we32k.c: Ditto.
10939         * doc/tm.texi: Update the manual to match.
10941 2001-07-06  Richard Henderson  <rth@redhat.com>
10943         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
10944         DWARF2_UNWIND_INFO not just whether it is defined.
10946 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
10948         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
10949         call to simplify_binary_operation returns a new pattern.
10951 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10953         * glimits.h (__SHRT_MAX__): New.
10954         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
10955         (SHRT_MAX): Define in terms of __SHRT_MAX__.
10957 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
10959         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
10960         avoid warnings.
10962 2001-07-06  Richard Henderson  <rth@redhat.com>
10964         * bitmap.c (bitmap_release_memory): Move adjacent to the
10965         allocation functions.
10966         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
10967         the implementation.  Binary search for the set bit.
10968         (bitmap_union_of_diff): Allocate the temporary on the stack
10969         instead of using xmalloc.
10971 2001-07-06  Richard Henderson  <rth@redhat.com>
10973         * genrecog.c (validate_pattern): Warn for constraints in
10974         define_{expand,split,peephole2}.  Remove strict_low_part
10975         before looking up match_dup.
10977 2001-07-06  DJ Delorie  <dj@redhat.com>
10979         * doc/gcc.texi (Makefile): Rename to be a more general purpose
10980         chapter about various build hints and history.  Add section
10981         talking about the various types of native and cross builds.
10983 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10985         * Makefile.in (final.o): Depend on target.h.
10986         * final.c: Include target.h.
10987         (default_function_pro_epilogue): New.
10988         (final_start_function): Use target structure for function prologues.
10989         (final_end_function): Use target structure for function epilogues.
10990         * fold-const.c (real_hex_to_f): Constify s and p.
10991         * output.h (default_function_pro_epilogue): New.
10992         * real.h (real_hex_to_f): Update prototype.
10993         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
10994         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
10995         (TARGET_INITIALIZER): Update.
10996         * target.h (gcc_target): Add struct asm_out.
10997         * doc/tm.texi: Update.
10999 config:
11000         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
11001         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
11002         in cpu/cpu.c, or rename old functions consistently.  Take
11003         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
11004         redundant macros and prototypes.  Make new functions static.
11006         * 1750a/1750a.c: Similarly.
11007         * 1750a/1750a.h: Similarly.
11008         * a29k/a29k-protos.h: Similarly.
11009         * a29k/a29k.c: Similarly.
11010         * a29k/a29k.h: Similarly.
11011         * arc/arc-protos.h: Similarly.
11012         * arc/arc.c: Similarly.
11013         * arc/arc.h: Similarly.
11014         * arm/arm-protos.h: Similarly.
11015         * arm/arm.c: Similarly.
11016         * arm/arm.h: Similarly.
11017         * avr/avr-protos.h: Similarly.
11018         * avr/avr.c: Similarly.
11019         * avr/avr.h: Similarly.
11020         * clipper/clipper-protos.h: Similarly.
11021         * clipper/clipper.c: Similarly.
11022         * clipper/clipper.h: Similarly.
11023         * convex/convex.c: Similarly.
11024         * convex/convex.h: Similarly.
11025         * d30v/d30v-protos.h: Similarly.
11026         * d30v/d30v.c: Similarly.
11027         * d30v/d30v.h: Similarly.
11028         * d30v/d30v.md: Similarly.
11029         * dsp16xx/dsp16xx-protos.h: Similarly.
11030         * dsp16xx/dsp16xx.c: Similarly.
11031         * dsp16xx/dsp16xx.h: Similarly.
11032         * elxsi/elxsi.c: Similarly.
11033         * elxsi/elxsi.h: Similarly.
11034         * fr30/fr30.c: Similarly.
11035         * fr30/fr30.md: Similarly.
11036         * h8300/h8300-protos.h: Similarly.
11037         * h8300/h8300.c: Similarly.
11038         * h8300/h8300.h: Similarly.
11039         * i370/i370-protos.h: Similarly.
11040         * i370/i370.c: Similarly.
11041         * i370/i370.h: Similarly.
11042         * i386/i386.c: Similarly.
11043         * i386/osf1elf.h: Similarly.
11044         * i386/osfrose.h: Similarly.
11045         * i860/i860-protos.h: Similarly.
11046         * i860/i860.c: Similarly.
11047         * i860/i860.h: Similarly.
11048         * i960/i960-protos.h: Similarly.
11049         * i960/i960.c: Similarly.
11050         * i960/i960.h: Similarly.
11051         * ia64/ia64-protos.h: Similarly.
11052         * ia64/ia64.c: Similarly.
11053         * ia64/ia64.h: Similarly.
11054         * m32r/m32r-protos.h: Similarly.
11055         * m32r/m32r.c: Similarly.
11056         * m32r/m32r.h: Similarly.
11057         * m68hc11/m68hc11-protos.h: Similarly.
11058         * m68hc11/m68hc11.c: Similarly.
11059         * m68hc11/m68hc11.h: Similarly.
11060         * m68k/crds.h: Similarly.
11061         * m68k/dpx2.h: Similarly.
11062         * m68k/m68k-protos.h: Similarly.
11063         * m68k/m68k.c: Similarly.
11064         * m68k/m68k.h: Similarly.
11065         * m68k/news.h: Similarly.
11066         * m88k/m88k-protos.h: Similarly.
11067         * m88k/m88k.c: Similarly.
11068         * m88k/m88k.h: Similarly.
11069         * mips/mips-protos.h: Similarly.
11070         * mips/mips.c: Similarly.
11071         * mips/mips.h: Similarly.
11072         * ns32k/merlin.h: Similarly.
11073         * ns32k/ns32k.c: Similarly.
11074         * ns32k/ns32k.h: Similarly.
11075         * ns32k/tek6000.h: Similarly.
11076         * pa/pa-protos.h: Similarly.
11077         * pa/pa.c: Similarly.
11078         * pa/pa.h: Similarly.
11079         * pdp11/2bsd.h: Similarly.
11080         * pdp11/pdp11-protos.h: Similarly.
11081         * pdp11/pdp11.c: Similarly.
11082         * pdp11/pdp11.h: Similarly.
11083         * romp/romp-protos.h: Similarly.
11084         * romp/romp.c: Similarly.
11085         * romp/romp.h: Similarly.
11086         * rs6000/rs6000-protos.h: Similarly.
11087         * rs6000/rs6000.c: Similarly.
11088         * rs6000/rs6000.h: Similarly.
11089         * rs6000/sysv4.h: Similarly.
11090         * sh/sh-protos.h: Similarly.
11091         * sh/sh.c: Similarly.
11092         * sh/sh.h: Similarly.
11093         * sparc/sparc-protos.h: Similarly.
11094         * sparc/sparc.c: Similarly.
11095         * sparc/sparc.h: Similarly.
11096         * vax/vax.c: Similarly.
11097         * vax/vax.h: Similarly.
11098         * vax/vms.h: Similarly.
11099         * we32k/we32k.c: Similarly.
11100         * we32k/we32k.h: Similarly.
11102 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
11104         * basic-block.h (first_insn_after_basic_block_note): Declare.
11105         * flow.c (first_insn_after_basic_block_note): Define.  Moved
11106         from...
11107         * ssa.c (first_insn_after_basic_block_note): Remove.
11108         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
11109         necessary.
11110         (ssa_eliminate_dead_code): Properly update the CFG and PHI
11111         nodes when we find a dead conditional branch.  Insert BARRIERs
11112         after any blocks with no successors, but which do not have
11113         any BARRIERs.
11115 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
11117         * varray.c (varray_check_failed): Use internal_error.
11119 2001-07-05  Andrew Haley  <aph@redhat.com>
11121         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
11122         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
11123         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
11125 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
11127         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
11128         reference if the target constant is also a SYMBOL_REF.
11130 2001-07-05  Eric Christopher  <echristo@redhat.com>
11132         * config/mips/mips.h (MASK_MIPS3900): Remove.
11133         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
11134         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
11135         (TARGET_MIPS3900): Change to use mips_arch.
11136         (TARGET_MIPS4000): New.
11137         (TARGET_MIPS4100): New.
11138         (TARGET_MIPS4300): New.
11139         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
11140         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
11141         for -mipsX.
11142         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
11143         (ISA_HAS_BRANCHLIKELY): To here.
11144         (CC1_CPU_SPEC):  New.
11145         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
11146         (mips_arch_string): Declare.
11147         (mips_arch): Declare.
11148         (TARGET_OPTIONS): Add -march and -mtune.
11150         * config/mips/mips.c (mips_arch_string): New.
11151         (mips_arch): New.
11152         (override_options): Handle -march for codegen and -mtune
11153         for scheduling. Use mips_arch. Move tx39 target default here.
11154         (mips_parse_cpu): Move error message to override_options.
11156         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
11158         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
11160         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
11161         (MIPS Options): Ditto.  Change mcpu entry to historical text.
11163 2001-07-05  H.J. Lu  (hjl@gnu.org)
11165         * config/mips/mips.c (mips_parse_cpu): New function to parse
11166         -march=*/-mcpu=*.
11168 2001-07-05  Jim Wilson  <wilson@redhat.com>
11170         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
11171         * config/ia64/t-ia64: Likewise.
11172         (LIB1ASMFUNCS): Update comment.
11174 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
11176         * doc/install.texi (Install GCC: Binaries): Fix typo.
11178 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11180         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
11181         reference using the stack pointer, adjust it since we push Y
11182         temporarily.
11183         ("*ashrsi3"): Likewise.
11184         ("*lshrsi3"): Likewise.
11186 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11188         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
11189         when -fomit-frame-pointer is used.
11191 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
11193         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
11194         (try_redirect_by_replacing_jump): Reverse updating properly the
11195         count and frequency information.  Reverse removing cc0 setter.
11196         (forwarder_block_p): Reverse fixing for fallthru blocks.
11198 2001-07-05  DJ Delorie  <dj@redhat.com>
11200         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
11201         (translate_options): If the above is defined, use it to map
11202         given options to new options.
11203         * doc/tm.texi: Document it.
11205 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
11206             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11208         * doc/invoke.texi (Optimize Options): Document that -fgcse may
11209         cause programs using computed gotos to run more slowly.
11211 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11213         * doc/install.texi (Specific): Markup, spelling and typo fixes.
11214         Fixed sorting.
11215         Consistently require binutils 2.11.2, not prereleases.
11216         (Specific, decstation-*): Canonicalize as mips-dec-*.
11217         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
11218         always necessary.
11219         (Specific, m68k-altos): Removed reference to README.altos, deleted.
11220         (Specific, mips-*): Reword MIPS C compiler requirements.
11221         (Specific, powerpc*-*-*): New, mention --with-cpu once.
11222         (Specific, sunv5): Removed, obsolete.
11224 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11226         * dwarf2out.c (output_loc_list): Use an all ones mask for
11227         .text asm output and don't rely on long long
11228         literals. Reformat some long lines.
11230 2001-07-05  Andreas Jaeger  <aj@suse.de>
11232         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
11233         section.
11235 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11237         * dwarf2out.c (dwarf2out_define): Update comment.
11238         (dwarf2out_undef): Ditto.
11239         (dwarf2out_start_source_file): Ditto.
11240         (dwarf2out_end_source_file): Ditto.
11241         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
11242         since we never call the start/end debug hook for the primary file.
11244 2001-07-04  Kazu Hirata  <kazu@hxi.com>
11246         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
11247         from shll.
11249 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11251         * cppinit.c (remove_dup_dirs): Inform if a system include
11252         directory is being reordered.
11253         * doc/invoke.texi (Directory Options): GCC warns if you hide a
11254         system include.
11255         * doc/cpp.texi (Search Paths): Likewise.
11256         * doc/gcc.texi (Interoperation): Remove information about
11257         -I/usr/include.
11259 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11261         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
11262         (VARRAY_TOP_CHAR_PTR): Likewise.
11264 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11266         * gcc.c (process_command): Don't assign elements of a const char*.
11268 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11270         * emit-rtl.c (change_address): Don't abort if invalid address while
11271         reload is in progress.
11273 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11275         * c-lex.c (cb_file_change): Pass line number to
11276         debug_start_source_file.
11277         (cb_undefine): Pass correct line number to debug_undef.
11279         * toplev.c (debug_start_source_file): Add line number to
11280         parameters. Pass it along to dwarf2out_start_source_file.
11281         (decode_g_option): Stop resetting debug level back to normal when
11282         we change debug formats, unless the current level is
11283         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
11284         3).
11286         * toplev.h (debug_start_source_file): Add line number to
11287         parameters.
11289         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
11290         parameters.
11292         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
11293         parameters.
11294         Output debug_macinfo data for starting file if requested.
11295         (dwarf2out_end_source_file): Output debug_macinfo data for ending
11296         file if requested.
11297         (dwarf2out_define): Output debug_macinfo data for defining a macro
11298         if requested.
11299         (dwarf2out_undef): Output debug_macinfo data for undefining a
11300         macro if requested.
11301         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
11302         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
11303         (macinfo_section_label): New. DWARF2 macro info section label.
11304         (dwarf2out_init): If we want macro info, output the start label
11305         for the section.
11306         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
11307         attribute to the compilation unit die pointing to the macro info.
11309 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11311         * dwarf2out.c (new_loc_list): Move to inside #ifdef
11312         DWARF2_DEBUGGING_INFO.
11313         (add_loc_descr_to_loc_list): Ditto.
11314         (output_loc_list): Ditto.
11315         Also, fix thinko in curr not being initialized.
11316         (gen_internal_sym): Ditto.
11318 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11320         * emit-rtl.c (replace_equiv_address): New function.
11321         * expr.h (replace_equiv_address): New declaration.
11322         * explow.c (validize_mem): Call it instead of change_address and
11323         also call if -fforce-addr and address is constant.
11324         * expr.c: Replace more calls to change_address with adjust_address
11325         and/or replace_equiv_address or to validize_mem.
11326         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
11327         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
11328         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11329         * config/i370/i370.md, config/i860/i860.md: Likewise.
11330         * config/i960/i960.md, config/mips/mips.c: Likewise.
11331         * config/mips/mips.md, config/pa/pa.md: Likewise.
11332         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
11333         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
11335 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11337         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
11339         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
11340         function.
11342 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11344         * doc/include: New directory.
11345         * doc/fdl.texi: Move to doc/include/fdl.texi.
11346         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
11347         * doc/include/funding.texi, doc/include/gpl.texi: New files.
11348         * doc/gcc.texi: Use funding.texi and gpl.texi.
11349         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
11350         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
11351         Update dependencies and use -I $(docdir)/include.
11353 2001-07-04  Anthony Green  <green@redhat.com>
11355         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
11357 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11359         * doc/install.texi (sparc64-*-*): Remove garbage.
11361 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
11363         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
11364         Fix typo in last change to use adjust_address.
11366 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11368         * doc/install.texi (Specific): Update information for *-*-solaris*.
11370 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11372         * explow.c (plus_constant_wide): Reinitialize Y for restart.
11374 2001-07-03  Stan Shebs  <shebs@apple.com>
11376         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
11377         case for flag_no_mach_text_sections.
11378         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
11379         * config/darwin.c (flag_no_mach_text_sections): Remove.
11380         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
11382 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11384         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
11385         and avoid checking for constant as first operand.
11386         * recog.c (find_constant_term_loc): No longer static.
11387         (adj_offettable_operand): Delete.
11388         * rtl.h (adj_offsettable_operand): Delete declaration.
11389         (find_constant_term): Add declaration.
11390         * caller-save.c: Replace calls to adj_offsettable_operand with calls
11391         to adjust_address.
11392         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
11393         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
11394         * config/i386/i386.c, config/i386/i386.md: Likewise.
11395         * config/i860/i860.c, config/i960/i960.c: Likewise.
11396         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
11397         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
11398         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
11399         * config/mips/mips.c, config/mips/mips.md: Likewise.
11400         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
11401         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
11402         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
11403         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
11404         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
11405         * config/ns32k/ns32k.md: Likewise.
11407 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
11409         * rtl.c (copy_rtx): Handle 'T' format letter.
11410         * gensupport.c (collect_insn_data): Likewise.
11411         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
11413 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
11415         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
11416         -B option.  Use 'dir' not 'foo' as example directory name.
11418 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11420         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11421         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
11423 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11425         * doc/cppinternals.texi: Improve formatting and logical markup.
11427 2001-07-03  Andreas Jaeger  <aj@suse.de>
11429         * Makefile.in (insn-recog.o): Add dependency on reload.h.
11431         * genrecog.c (write_header): Include reload.h for prototypes in
11432         insn-recog.c.
11434 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11436 config:
11437         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
11438         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11439         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
11440         i386_pe_valid_type_attribute_p): Add.
11441         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
11442         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
11444 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11446         * explow.c (plus_constant_wide, case LO_SUM): New case.
11447         (plus_constant_for_output_wide): Delete.
11448         * rtl.h (plus_constant_for_output): Delete.
11449         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
11450         instead of plus_constant_for_output.
11451         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
11452         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
11453         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
11454         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
11455         * config/sparc/sparc.md: Likewise.
11456         Convert some change_address calls to adjust_address.
11458 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11460         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
11461         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
11462         documentation of -std and -Wwrite-strings.
11464 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11466         * cse.c (canon_hash): Don't register registers in very small
11467         register classes, as extending their lifetime might cause
11468         reload to fail.
11470 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11472         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
11474         * flow.c (forwarder_block_p): Fix for fallthru blocks.
11475         (try_redirect_by_replacing_jump): Update properly the count
11476         and frequency information.
11478 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
11480         * toplev.c (dump_file_index): Move SSA dumps just after first
11481         jump dump.
11482         (dump_file): Corresponding changes.
11483         (rest_of_compilation): Move SSA path to just after the first
11484         jump pass.
11485         * doc/gcc.texi (Passes): Update due to movement of SSA path.
11486         * doc/invoke.texi: Update dump file #s as they were completely
11487         out of date with reality.
11489 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11491         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
11493         * expr.c (emit_move_insn_1): Deal with non-default
11494         STACK_PUSH_CODE.
11496         * expr.c (emit_single_push_insn): Fix warning.
11498 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11500         * expr.c (emit_move_insn_1): Avoid modifying
11501         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
11503 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11505         * emit-rtl.c (adjust_address): New function.
11506         * expr.h (adjust_address): Add declaration.
11507         * builtins.c: Replace some calls to change_address with calls to it
11508         or to validize_mem.
11509         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
11510         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
11511         * config/arm/arm.c, config/convex/convex.c: Likewise.
11512         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11513         * config/i386/i386.c, config/i386/i386.md: Likewise.
11514         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
11515         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
11516         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
11517         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
11518         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
11520 2001-07-02  Jim Wilson  <wilson@redhat.com>
11522         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
11524 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
11526         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
11527         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
11529 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11531         * cppinit.c (lang_defaults): New table.
11532         (set_lang): Just read from lang_defaults into the live options
11533         structure.
11535 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11537         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
11538         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
11539         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
11541 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11543         * doc/install.texi: Various spelling and markup fixes.
11544         (Installing GCC): Component specific installation instructions are
11545         gone.
11546         Fix reference.
11547         Warn about removing old install dir in the presence of shared libs.
11548         (Configuration): Invoke with options target to match configure
11549         --help.
11550         Consistently refer to gas, gld pathnames.
11551         Invert --enable-multilib documentation.
11552         Remove references to old compiler versions.
11554 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11556         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
11558 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11560         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
11561         section.
11562         (Specific, mips*-sgi-irix5): Note IDO download.
11563         Reworded MIPS C hints.
11564         Use GNU as instead of GAS.
11565         Markup fixes.
11566         Removed SGI Freeware reference, IRIX 6 only.
11567         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
11568         Note N64 library requirement/workaround.
11569         Update O32 hints.
11570         Complete list of structure passing bug victims.
11572 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11574         * doc/install.texi: Remove CVS Id.
11576 2001-07-02  Andreas Jaeger  <aj@suse.de>
11578         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
11579         (find_inherently_necessary): Remove unused variable.
11581 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
11583         * c-common.h (TDI_inlined): New ast dump phase.
11584         (dump_flag_name): New function.
11585         * c-dump.c (dump_files): Add inlined phase.
11586         (dump_flag_name): Define.
11587         * doc/invoke.texi (-fdump-ast-inlined): Document.
11589 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11591         * stor-layout.c (layout_decl): Revert change to handling of alignment
11592         in packed types.
11594 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11596         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
11597         for FIELD_DECL.
11599 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
11601         * doc/tm.texi (FUNCTION_ARG): Document that the last call
11602         is special.
11604 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11606         * tlink.c (recompile_files): Remove COMPILER_PATH and
11607         LIBRARY_PATH from the environment.
11609 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
11611         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
11612         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
11613         enumerators.
11614         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
11616         * c-parse.in (OBJC_STRING): Kill.
11617         (objc_string): Decompose to [objc_string] '@' STRING.
11618         (reswords): Take the leading '@' off all the Objective C keywords.
11619         (objc_rid_sans_at): Kill.
11620         (init_reswords): Don't initialize it.
11621         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
11622         (_yylex): Kill reconsider label.  Look ahead one token after
11623         an '@'; if we get an identifier, check whether it's an
11624         Objective C @-keyword.  If so, return the keyword.  Otherwise,
11625         put back the token and return the '@' as a terminal.
11627         * cpplib.c (lex_macro_node): Remove unnecessary check for
11628         leading '@' on identifier.  Clarify control flow and commentary.
11630 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11632         * cse.c (new_label_ref): Variable deleted.
11633         (insert): Remove set of new_label_ref.
11634         (check_for_label_ref): New function.
11635         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
11637 See ChangeLog.5 for earlier changes.