* cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
[official-gcc.git] / gcc / ChangeLog
blob0c05ec90b9a4327b636430e7dc2f3cac796600ef
1 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
5 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7         * alias.c (can_address_p): No longer static.
8         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
9         Return 0 if all parameters are default values.
10         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
11         (adjust_address_1): Try harder to compute a size.
12         * expr.c (expand_assignment, store_constructor): If can't address,
13         set MEM_KEEP_ALIAS_SET_P.
14         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
15         (store_field): Likewise.
16         (store_constructor): Simplify call to store_constructor_field.
17         * expr.h (can_address_p): New declaration.
18         * gensupport.c (gen_rtx_CONST_INT): New function.
19         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
20         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
21         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
23         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
25 2001-10-24  Christopher Faylor  <cgf@redhat.com>
27         * config/i386/cygwin.h: Use proper path for mingw crt files when
28         -mno-cygwin.
30 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32         * dwarf2out.c (file_info_cmp): Always return consistent results.
34 2001-10-24  Roger Sayle <roger@eyesopen.com>
36         * stmt.c (expand_end_case): Index jumptables from zero for
37         suitably small values of minval.
39 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
41         * stor-layout.c (place_union_field): If any field was aligned with
42         attribute aligned, set record type's TYPE_USER_ALIGN.
43         (place_field): Likewise.
44         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
45         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
47 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
49         * c-common.h (struct c_common_identifier): Remove rid_code field.
50         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
52         * c-typeck.c (constructor_designated): New local flag.
53         (struct constructor_stack): Add "designated" field to match.
54         (start_init): Clear it.
55         (really_start_incremental_init, push_init_level): Push and
56         clear it.
57         (pop_init_level): Pop it.
58         (set_designator): Set it.
60         (pop_init_level): Suppress "missing initializer" warnings if
61         constructor_designated is true.
62         (process_init_element): Suppress warning about union
63         initialization under traditional C, if constructor_designated
64         is true.
66 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
68         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
69         change.
71 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
73         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
75 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
77         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
78         the node was already a set to a constant.
80 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
82         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
83         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
85 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
87         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
88         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
89         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
90         * s390.c (s390_final_chunkify): Don't use string concatenation.
91         (s390_function_prologue, s390_function_epilogue): Const-ify.
92         * s390.h (FUNCTION_PROFILER): Remove unused variable.
94 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
96         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
97         prototypes.
99 2001-10-23  Stan Shebs  <shebs@apple.com>
101         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
102         -traditional-cpp in first-stage compilation.
104 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
106         * gensupport.c (target_flags): Add.
108 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
110         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
111         if needed.
112         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
113         * except.c (expand_builtin_frob_return_addr): Likewise.
114         (expand_builtin_eh_return): Likewise.
115         * stmt.c (expand_computed_goto): Likewise.
116         * explow.c (memory_address): Likewise.
117         (allocate_dynamic_stack_space): Clean up predicate testing.
118         (probe_stack_range): Convert SIZE to Pmode.
119         * calls.c (rtx_for_function_call): Only call convert_memory_address
120         if needed.
121         Pass function call operand as ptr_mode, not Pmode.
122         * expr.c (expand_assignment): Clean up calls to convert_memory
123         address by only doing so when needed and making offsets Pmode.
124         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
125         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
126         is in Pmode, not ptr_mode.
128 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
130         * darwin-protos.h (constructor_section, destructor_section,
131         mod_init_section, mod_term_section): Prototype.
132         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
133         Const-ify.
134         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
135         Likewise.
136         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
137         objc_section_init declaration.
138         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
139         (objc_section_init, try_section_alias): Make static.
140         (alias_section): Make static and hide unused function.
141         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
143 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
145         * alias.c (can_address_p): Compnonents are not addressable if
146         the containing type has alias set 0.
147         (get_alias_set): Rework to use STRIP_NOPS.
148         Only call front-end routine on object, type, or object with
149         NOPs stripped, not inner values.
150         Use language hook to call front-end routine.
151         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
152         (expand_builtin_apply): Call set_mem_align on MEMs we make.
153         Don't pass alignment to emit_block_move.
154         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
155         (expand_builtin_memset): Likewise, but for clear_storage.
156         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
157         and remove C++ specific parts.
158         * c-common.h (c_common_get_alias_set): Add declaration.
159         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
160         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
161         (save_fixed_argument_area): Call set_mem_align.
162         Remove alignment in call to emit_block_move.
163         (emit_library_call_value_1, store_one_arg): Likewise.
164         (target_for_arg): Remove; disabled long ago.
165         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
166         once and similar cleanups.
167         (offset_address): Use proper introductory comment.
168         * expr.c (emit_block_move): Use alignment from that of MEM args, not
169         from explicit operand; all callers changed.
170         (clear_storage): Likewise.
171         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
172         (store_field): Remove kludge on alias set used for to_rtx.
173         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
174         (expand_expr_unaligned): Call set_mem_attributes instead of
175         set_mem_alias_set.
176         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
177         * function.c (assign_stack_temp_for_type): Set MEM alignment.
178         (expand_function_end): Track MEM attributes of trampolines.
179         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
180         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
181         attributes from original.
182         * langhooks.c (lang_hook_default_get_alias_set): New function.
183         (hook_get_alias_set_0): New function.
184         * langhooks.h (hook_get_alias_set_0): New declaration.
185         (lang_hook_default_get_alias_set): Likewise.
186         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
187         * reload1.c (alter_reg): Use adjust_address_nv.
188         * rtl.c (get_mode_alignment): Moved to here.
189         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
190         change default if unknown from 1 to BITS_PER_UNIT.
191         * stor-layout.c (get_mode_alignment): Remove from here.
192         * toplev.h (struct lang_hoks): Add get_alias_set field.
193         * tree.h (lang_get_alias_set): Delete declaration.
194         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
195         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
196         (ix86_va_arg): Likewise.
197         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
198         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
199         * config/sparc/sparc.c (sparc_va_arg): Likewise.
200         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
201         (expand_block_move_mem): Remove dead code.
203 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
205         * c-common.c (warn_div_by_zero): New.
206         * c-common.h (warn_div_by_zero): New.
207         * c-decl.c (c_decode_option): Take it on the command line.
208         * c-typeck.c (build_binary_op): Warn about division by zero.
209         * doc/invoke.texi: Document the new command line option, fix
210         documentation of -Wmultichar.
211         * testsuite/gcc.dg/divbyzero.c: New tests.
212         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
214 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
216         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
218         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
219         to avoid update_life_info call.
220         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
221         * cfgcleanup.c (bb_flags): New enum.
222         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
223         (notice_new_block, update_forwarder_flag): New functions.
224         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
225         (try_forward_edges): Likewise; update flags.
226         (merge_blocks): Likewise.
227         (outgoing_edges_match): Likewise.
228         (try_crossjump_to_edge): Likewise.
229         (try_optimize_cfg): Likewise; initialize and clear the flags;
230         recompute life info if needed.
231         (cleanup_cfg): No need to clear aux pointers.
233 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
235         * config/i386/i386.c (override_options): Default to minimum
236         stack alignment when optimizing for code size.
237         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
238         change.
240         * config/i386/i386.c (override_options): Set upper limit of
241         -mpreferred-stack-boundary to 12.
243 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
245         * recog.c (peephole2_optimize): Add default case to switch.
247 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
249         * doc/gcc.texi (Sending Patches): Remove.
251 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
253         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
254         fields when comparing.
256 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
258         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
259         * arm.c (HOST_INT, HOST_UINT): Likewise.
261 2001-10-22  Stan Shebs  <shebs@apple.com>
263         * config/darwin-protos.h (darwin_exception_section): Declare.
264         (darwin_eh_frame_section): Declare.
266 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
268         * i386.md (movti_rex64): Fix mode.
270 2001-10-22  Stan Shebs  <shebs@apple.com>
272         * target.h (struct gcc_target): Add asm_out.exception_section,
273         asm_out.eh_frame_section.
274         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
275         (TARGET_ASM_EH_FRAME_SECTION): New.
276         (TARGET_INITIALIZER): Update.
277         * output.h (default_exception_section): Declare.
278         (default_eh_frame_section): Declare.
279         * dwarf2out.c: Include target.h.
280         (output_call_frame_info): Call target hook for eh frames.
281         (default_eh_frame_section): New function.
282         * except.c: Include target.h.
283         (output_function_exception_table): Call target hook for exception
284         section.
285         * varasm.c (default_exception_section): Rename from
286         exception_section, remove EXCEPTION_SECTION macro.
288         * config/darwin.h (darwin_eh_frame_section): New function.
289         (EXCEPTION_SECTION): Remove.
290         (TARGET_ASM_EXCEPTION_SECTION): Define.
291         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
292         (nextstep_exception_section): New function.
293         (nextstep_eh_frame_section): New function.
294         (TARGET_ASM_EXCEPTION_SECTION): Define.
295         (TARGET_ASM_EH_FRAME_SECTION): Define.
297         * config/pa/som.h (EXCEPTION_SECTION): Remove.
298         (TARGET_ASM_EXCEPTION_SECTION): Define.
299         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
300         (EXCEPTION_SECTION): Remove.
301         (TARGET_ASM_EXCEPTION_SECTION): Define.
302         * config/stormy16/stormy16.h: Remove comments referencing
303         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
305         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
306         TARGET_ASM_EH_FRAME_SECTION.
308 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
310         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
311         terms.
313         * c-format.c: Fix spelling typo in comment.
315         * sched-int.h: Fix typo in GCC preamble.
317 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
319         PR debug/4252
320         * doc/invoke.texi: Remove references to -fdump-translation-unit.
322 2001-10-22  Richard Henderson  <rth@redhat.com>
324         * config/i386/i386.c (ix86_expand_clear): New.
325         * config/i386/i386-protos.h: Declare it.
326         * config/i386/i386.md (setcc peep2s): Use it.
327         (movsi_xor): Unexport.
329 2001-10-22  Richard Henderson  <rth@redhat.com>
331         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
332         free_EXPR_LIST_list for LOG_LINKS.
334 2001-10-21  Robert Lipe  <robertlipe@usa.net>
336         * config/i386/i386.c (sco_asm_named_section): Delete.
337         (sco_asm_out_constructor): Delete.
338         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
339         (ASM_OUTPUT_DOUBLE_INT): Likewise.
340         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
341         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
342         (EXCEPTION_SECTION): Delete EH scn renaming hack.
344 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
346         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
347         and/or fold extra calls into fewer ones.
348         * collect2.c (dump_file): Likewise.
349         * cppexp.c (parse_number): Likewise.
350         * cpplex.c (_cpp_lex_direct): Likewise.
351         * final.c (output_asm_insn, asm_fprintf): Likewise.
352         * fix-header.c (inf_scan_ident, main): Likewise.
353         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
354         Likewise.
355         * fold-const.c (real_hex_to_f): Likewise.
356         * gen-protos.c (parse_fn_proto): Likewise.
357         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
358         * genrecog.c (change_state, write_action): Likewise.
359         * gensupport.c (shift_output_template): Likewise.
360         * local-alloc.c (requires_inout): Likewise.
361         * mips-tfile.c (IS_ASM_IDENT): Likewise.
362         * protoize.c (is_id_char, main): Likewise.
363         * real.c (asctoeg): Likewise.
364         * recog.c (asm_operand_ok): Likewise.
365         * reload.c (find_reloads): Likewise.
366         * scan.c (scan_identget_token): Likewise.
367         * sched-vis.c (print_value): Likewise.
368         * stringpool.c (ggc_alloc_string): Likewise.
369         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
370         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
371         * tradcpp.c (rescan): Likewise.
372         * tree.c (clean_symbol_name): Likewise.
373         * varasm.c (decode_reg_name): Likewise.
375         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
376         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
377         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
378         * m88k.c (output_ascii): Likewise.
379         * m88k.h (OVERRIDE_OPTIONS): Likewise.
380         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
381         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
382         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
384 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
386         * langhooks.c (lang_hook_default_do_nothing,
387         lang_hook_default_decode_option): New defaults.
388         * langhooks.h: Make hooks unconditional and non-NULL.
389         * toplev.c (compile_file, toplev_main): Update.
390         * toplev.h: Update comments.
391         * objc/objc-act.c (lang_hooks): Update to new paradigm.
393 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
395         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
397         * system.h (IN_RANGE): New macro.
399 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
401         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
402         INTLDEPS variable, which does not include $LIBICONV.
403         * Makefile.in: Use INTLDEPS in LIBDEPS.
404         * configure: Regenerate.
406 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
408         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
409         * cpplex.c (lex_percent, lex_dot): Remove.
410         (get_effective_char, skip_block_comment, skip_line_comment,
411         parse_identifier_slow, parse_number, parse_string, save_comment,
412         _cpp_lex_direct): Update to do lookback freely.
413         (IF_NEXT_IS, BACKUP): New macros.
414         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
415         * cppmacro.c (paste_tokens): Update.
417 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
419         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
421 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
423         * reload1.c (reload): Check CONSTANT_P before calling
424         LEGITIMATE_PIC_OPERAND_P.
425         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
426         workaround of 2001-10-13.
428 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
430         * i386.c (split_di): Handle splitting of DFmode.
432 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
434         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
435         (adjust_address_1, offset_address): Likewise.
437         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
438         (output_asm_insn): Call it for each line output.
439         Don't record an operand more than once.
441         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
442         * main.c: Include config.h and system.h, but not ansidecl.h.
443         * Makefile.in (main.o): Update accordingly.
445 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
447         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
449 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
451         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
452         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
453         Break out from ...
454         (find_sub_basic_blocks): ... here;
455         (find_many_sub_basic_blocks): New.
456         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
458         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
460         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
462         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
464         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
465         * flow.c (update_life_info): Measure time.
466         * c-decl.c: Include timevar.h
467         (c_expand_body): Measure time.
468         * toplev.c (rest_of_compilation): Measure time of mode switching
469         separately.
470         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependancy.
472         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
473         (lang_independent_options): Add asynchronous-unwind-tables
474         (toplev_main): flag_asynchronous_unwind_tables implies
475         flag_unwind_tables.
476         * flags.h (flag_asynchronous_unwind_tables): Declare.
477         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
478         flag_asynchronous_unwind_tables.
479         (output_call_frame_info): Likewise.
480         * invoke.texi (-fasynchronous-unwind-tables): Document.
481         * i386.c (optimization_options): Enable
482         flag_asynchronous_unwind_tables.
484         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
485         * i386.md (s* expanders): Destination is QImode.
487         * toplev.c (rest_of_compilation): Do not call clear_log_links.
488         * rtl.h (clear_log_links): Kill.
489         * flow.c (clear_log_links): Make static; accept blocks parameter;
490         do no clear life info.
491         (update_life_info): Call clear_log_links.
493         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
495 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
497         * cpplex.c (handle_newline, skip_escaped_newlines,
498         get_effective_char, skip_block_comment, skip_line_comment,
499         parse_identifier_slow, parse_number, parse_string,
500         _cpp_lex_direct): Update to do more stepping back.
501         (trigraph_ok): Similarly.  Rename trigraph_p.
502         (SAVE_STATE, RESTORE_STATE): Remove.
503         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
505         * cpplib.c (destringize): Rename destringize_and_run, and
506         call run_directive directly.
507         (_cpp_do__Pragma): Simplify.
509 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
511         * pe.c (arm_pe_unique_section): Const-ify.
512         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
513         (switch_to_section): Add static prototype.
515         * output.h (drectve_section): Prototype.
517 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
519         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
520         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
521         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
522         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
523         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
524         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
525         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
526         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
527         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
528         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
529         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
530         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
531         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
532         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
533         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
534         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
535         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
536         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
537         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
538         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
539         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
540         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
541         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
542         cris-*-none, cris-*-linux*: Update ${tmfile} list.
543         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
544         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
545         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
546         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
547         v850-*-*): Delete superflous ${cpu_type} setting.
548         * config/linux.h: Delete svr4.h include.
549         (SET_ASM_OP): Delete.
550         * config/netware.h (INT_ASM_OP): Undef before define.
551         * config/ptx4.h: Delete elfos.h include.
552         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
553         * config/svr4.h: Delete elfos.h include. Update commentary.
554         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
555         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
556         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
557         config/v850/v850.h: Delete svr4.h include.
558         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
559         config/m68k/m68kv4.h, config/m88k/sysv4.h,
560         config/sparc/sysv4.h: Update includes.
561         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
562         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
563         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
564         config/m88k/dguxbcs.h: Delete includes.
565         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
566         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
567         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
568         it.
569         * config/m88k/dgux.h: Delete include.
570         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
571         defining it.
572         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
573         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
574         * config/sh/elf.h: Update include.
575         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
576         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
578 2001-10-19  Catherine Moore  <clm@redhat.com>
580         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
581         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
582         base and count fields.
583         (stormy16_expand_builtin_va_start):  last_reg_count changed to
584         size_of_reg_args.  Use count + size in first comparison.
586 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
588         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
589         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
590         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
591         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
592         Set alignment from type if INDIRECT_REF.
593         (adjust_address_1, offset_address): Simplify alignment compuitation.
594         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
595         here; done by set_mem_attributes.
597 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
599         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
600         * arm-protos.h (rdata_section, zero_init_section, common_section):
601         Prototype.
602         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
603         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
604         traditional mode stringification.
605         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
606         in macros controling its use.
607         * rtlanal.c: Include tm_p.h.
608         * varasm.c (asm_output_aligned_bss): Mark parameter with
609         ATTRIBUTE_UNUSED.
610         (assemble_constant_align, assemble_start_function, assemble_align,
611         assemble_variable, assemble_trampoline_template,
612         output_constant_def_contents): Wrap potentially empty if-stmt body
613         in brackets.
615 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
617         * a29k-protos.h (literal_section): Prototype.
618         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
619         * a29k.md: Ensure function pointers are prototyped.
620         * genattrtab.c (write_eligible_delay): Mark parameter with
621         ATTRIBUTE_UNUSED.
623 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
625         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
626         * 1750a.c (print_operand): Fix format specifier warning.
627         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
628         * 1750a.md: Likewise.
629         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
630         * genemit.c (output_add_clobbers): Mark parameter with
631         ATTRIBUTE_UNUSED.
632         * genrecog.c (write_subroutine): Likewise.
633         * integrate.c (expand_inline_function): Delete unused variable.
634         * varasm.c (remove_from_pending_weak_list): Wrap with
635         ASM_WEAKEN_LABEL.
637 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
639         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
640         field is different to previous argument's neg field.
642         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
644 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
646         * final.c (get_decl_from_op): New function.
647         (output_asm_insn): Call it; write "*" when item with decl is address.
649 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
651         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
652         about 64-bit support from the 3.0_branch version.
654 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
656         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
657         USE_INCLUDED_LIBINTL when appropriate.
658         * configure, config.in: Regenerate.
659         * Makefile.in (datadir): Set to @datadir@.
660         (intl.o): Also depend on $(CONFIG_H) and system.h.
662         * intl.c: Factor out common gettext initialization sequence.
663         (gcc_init_libintl):  New function.
664         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
665         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
666         off NLS.  Add multiple include guard.  No need to #ifdef-guard
667         an #undef.  Prototype gcc_init_libintl here.
669         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
670         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
671         Use gcc_init_libintl.
673 2001-10-19  Catherine Moore  <clm@redhat.com>
675         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
677         * config/stormy16/stormy16.c (stormy16_split_move):  Make
678         sure that REG_INC notes are present for auto_inc operands.
680 2001-10-19  Andreas Jaeger  <aj@suse.de>
682         * configure: Regenerated.
683         * configure.in: Add x86_64 to switch statements.
685 2001-10-18  Richard Henderson  <rth@redhat.com>
687         * config/alpha/alpha.md (sibcall_osf_1): Load destination
688         address into $27 explicitly.
689         (sibcall_value_osf_1): Likewise.
691 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
693         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
694         (offset_address): New function.
695         (free_emit_status): Free regno_decl.
696         (init_emit): Pass proper number of elements to xcalloc.
697         Allocate regno_decl.
698         (mark_emit_status): Mark regno_decl values.
699         * expr.c (highest_pow2_factor): New function.
700         (expand_assigment): Use it and offset_address.
701         Properly handle ptr_mode vs. Pmode in offset calculation.
702         (store_constructor, expand_expr_unaligned): Likewise.
703         (expand_expr, case COMPONENT_EXPR): Likewise.
704         * expr.h (offset_address): New decl.
705         * function.h (struct emit_status): Add regno_decl.
706         (REGNO_DECL): New macro.
707         * final.c (output_asm_name): Move in file and don't conditionalize
708         on flag_print_asm_name.
709         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
710         Output names of operands, if known.
711         * function.c (assign_parms): Set REGNO_DECL.
712         * integrate.c (integrate_decl_tree): Likewise.
713         * stmt.c (expand_decl): Likewise.
714         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
716 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
718         * attribs.c (handle_noinline_attribute): New function.
719         (handle_used_attribute): Likewise.
720         (c_common_attribute_table): Added noinline and used.
721         * doc/extend.texi (Function Attributes): Document them.
722         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
723         Warn when merging inline with attribute noinline.
724         (start_decl, start_function): Warn if inline and attribute
725         noinline appear in the same declaration.
727 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
729         * config.gcc: Update c4x and i370 for C front end-specific
730         dependencies.
731         * config/c4x/c4x-c.c: New.
732         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
733         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
734         New declarations.
735         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
736         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
737         Make extern.
738         (c4x_init_pragma): Remove.
739         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
740         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
741         c4x_pr_ignored): Move to c4x-c.c.
742         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
743         * config/c4x/t-c4x: Update.
744         * config/i370/i370-c.c: New.
745         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
746         (i370_pr_map): Move to i370-c.c.
747         * config/i370/t-i370: New.
749         * doc/tm.texi: Update.
751 2001-10-17  Stan Shebs  <shebs@apple.com>
753         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
754         typo fixes throughout.
755         (machopic_output_stub): Remove some dead code.
757 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
759         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
760         leak.
762 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
764         * Makefile.in (print-rtl.o): Depend on TREE_H.
765         * alias.c (get_alias_set): Make two passes over objects to first
766         see if inner object is access via restricted pointer.
767         Defer allocating alias set for restricted pointer until here.
768         Call find_placeholder with second arg nonzero.
769         Minor cleanups.
770         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
771         set for restricted pointer types.
772         * emit-rtl.c (set_mem_attributes): Set more attributes.
773         (set_mem_align, change_address, adjust_address_1): New functions.
774         (change_address_1): Now static.
775         (adjust_address, adjust_address_nv): Deleted.
776         (replace_equiv_address): Call change_address_1.
777         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
778         (find_placeholder): Get starting point from PLIST arg.
779         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
780         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
781         (adjust_address, adjust_address_nv): New macros.
782         * print-rtl.c (tree.h): New include.
783         (print_rtx, case MEM): Print all memory attributes.
785 2001-10-17  Richard Henderson  <rth@redhat.com>
787         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
789 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
791         * c-tree.texi: Eliminate duplicated word.
792         * cpp.texi: Likewise.
793         * install.texi: Likewise.
794         * invoke.texi: Likewise.
795         * tm.texi: Likewise.
797 2001-10-17  Michael Collison  <collison@isisinc.net>
799         * dsp16xx.c: Fix comment formatting to match GNU standards.
800         (dsp16xx_output_function_prologue): Change type of 'size'
801         parameter from 'int' to HOST_WIDE_INT.
802         (dsp16xx_output_function_epilogue): Change type of 'size'
803         parameter from 'int' to HOST_WIDE_INT.
805 2001-10-16  Richard Henderson  <rth@redhat.com>
807         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
808         * configure, config.in: Rebuild.
810         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
811         (ix86_output_addr_diff_elt): New.
812         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
813         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
814         (JUMP_TABLES_IN_TEXT_SECTION): New.
815         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
816         * config/i386/i386-protos.h: Update.
818         * config/i386/386bsd.h, config/i386/beos-elf.h,
819         config/i386/freebsd-aout.h, config/i386/freebsd.h,
820         config/i386/i386-interix.h, config/i386/i386elf.h,
821         config/i386/linux.h, config/i386/netbsd-elf.h,
822         config/i386/netbsd.h, config/i386/openbsd.h,
823         config/i386/ptx4-i.h, config/i386/rtemself.h,
824         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
825         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
827 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
829         * stmt.c (expand_asm_operands): Update commentary.
831 2001-10-16  Stan Shebs  <shebs@apple.com>
833         * config/darwin.h (GCC_NAME): Remove, no longer used.
834         (NO_MATH_LIBRARY): Ditto.
835         (MATH_LIBRARY): Define to emptiness.
836         (DWARF2_DEBUGGING_INFO): Define.
837         (PREFERRED_DEBUGGING_TYPE): Define.
838         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
839         (EXCEPTION_SECTION): Define.
840         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
841         * config/darwin.c (darwin_encode_section_info): Handle case of
842         DECL_INITIAL being error_mark_node.
844 2001-10-16  Richard Henderson  <rth@redhat.com>
846         * alpha.c (current_file_function_operand): Don't fail for profiling.
847         (direct_call_operand): New.
848         * alpha-protos.h: Declare it.
849         * alpha.h (EXTRA_CONSTRAINT): Use it.
850         (PREDICATE_CODES): Add it.
851         (ASM_OUTPUT_MI_THUNK): Remove.
852         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
853         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
855 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
857         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
858         (JUMP_TABLES_IN_TEXT_SECTION): Define.
860 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
862         * cfg.c (free_edge): Break out from ....
863         (remove_edge): ... here.
864         (clear_edges): Use free_edge.
866         * att.h (ASM_QUAD): Add comment.
867         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
869 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
871         * i386.c (split_ti): New function.
872         (ix86_split_to_parts): Support TImodes.
873         * i386.h (VALID_INT_MODE_P): Add TImode.
874         * i386.md (movdi splitter): Fix.
875         (movti): Support 64bit integer registers.
876         (movti_rex64): New function and splitter.
878         * i386.c (*_cost): Add movsx/movzx cost.
879         * i386.h (struct processor_costs): Add movsx/movzx fields.
880         (RTX_COSTS): Handle zero/sign extend + avoid believing that
881         64bit operations require split on 64bit machine.
882         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
884         * i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
885         (ix86_expand_move): Avoid pushes of memory if size does not match;
886         move long constants to register.
887         (x86_initialize_trampoline): Fix mode.
888         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
889         Use ASM_QUAD on 64bit.
890         * i386.md (test pattern): Disallow impossible constants.
891         (tablejump PIC expander): Fix emitting of sum.
892         (movdicc_rex64): Rename to movdicc.
893         * linux64.h (LINK_SPEC): Add missing '%'.
895 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
897         * tree-inline.c (inlinable_function_p): Leave it up to the
898         front-end to turn -finline-functions into DECL_INLINE set for all
899         functions.
901 2001-10-16  Stan Shebs  <shebs@apple.com>
903         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
905 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
907         * recog.c: Formatting and comment typo fixes.
909         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
910         version in single tree build.
911         * configure: Regenerate.
913 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
915         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
916         MODE arguments to gen_rtx and compare operand with const0_rtx.
918 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
920         * system.h: Poison old unused target macros.
921         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
922         * config/stormy16/stormy16.c: Update references to obsolete macros.
923         * config/stormy16/stormy16.h: Similarly.
924         * config/stormy16/stormy16.md: Similarly.
925         * config/cris/cris.h: Similarly.
927 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
929         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
930         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
931         cpp_register_pragma): Update accordingly.
933 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
935         * c-pragma.h (cpp_register_pragma_space): Remove.
936         * cpplib.h (cpp_register_pragma_space): Remove.
937         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
938         (cpp_register_pragma_space): Remove.
939         (cpp_register_pragma): Simplify using lookup_pragma_entry,
940         add sanity checks.
941         (do_pragma): Similarly.
942         (_cpp_init_internal_pragmas): Don't register namespaces.
944         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
945         Don't register namespaces.
946         * cp/lex.c (init_cp_pragma): Similarly.
947         * doc/tm.texi: Update.
949 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
951         PR c/4157
952         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
954 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
956         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
957         add scheduling support.
958         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
959         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
960         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
963 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
965         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
966         missing CONSTANT_P test in core GCC.
968 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
970         * cppmain.c (struct printer): New member source.
971         (scan_translation_unit): Fix spacing at start of lines.
972         (cb_line_change): Update.
974         * gcc.dg/cpp/spacing2.c: New test.
976 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
978         * config/cris/arit.c: Use __builtin_labs, not abs.
980         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
982         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
983         misplaced sprintf and fprintf argument.
985 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
987         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
988         * configure.in, Makefile.in: Take out obsolete check-po logic.
989         * configure, config.in: Regenerate.
991 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
993         * objc/objc-act.c (finish_objc): Correct precondition for emitting
994         symtab declarations.
996 2001-10-12  Stan Shebs  <shebs@apple.com>
998         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
999         declarations of arguments and local variables.
1001 2001-10-12  Christopher Faylor  <cgf@redhat.com>
1003         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
1004         ENDFILE_SPEC definition.
1006 2001-10-12  Kazu Hirata  <kazu@hxi.com>
1008         * gthr-dce.h: Fix comment formatting.
1009         * gthr-posix.h: Likewise.
1010         * gthr-single.h: Likewise.
1011         * gthr-solaris.h: Likewise.
1012         * gthr-vxworks.h: Likewise.
1013         * gthr-win32.h: Likewise.
1015 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
1017         * final.c (output_asm_insn): Make sure assembly dialects are
1018         terminated, not nested.  Output `|' and `}' characters if they
1019         don't appear inside assembly dialect selection.
1020         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
1021         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
1022         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
1023         strsetsi_rex_1): Add {} braces.
1025 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1027         * toplev.c (compile_file): Ignore return value from yyparse.
1028         Always pop any nested binding levels after yyparse returns.
1030 2001-10-11  Richard Henderson  <rth@redhat.com>
1032         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
1034 2001-10-11  Richard Henderson  <rth@redhat.com>
1036         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
1037         fall back to add_AT_long_long for large CONST_INT.
1039 2001-10-11  Richard Henderson  <rth@redhat.com>
1041         * config/i386/i386.md (setcc splitters): Add four splitters to
1042         simplify compound compares that simplify_comparison can't handle.
1044 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1046         * cpplex.c (digraph_spellings, token_spellings): Make static.
1048 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1050         * unroll.c (loop_iterations): Fixup last patch.
1052 2001-10-11  Richard Henderson  <rth@redhat.com>
1054         * rtl.h (REG_VTABLE_REF): New.
1055         * rtl.c (reg_note_name): Add it.
1056         * combine.c (distribute_notes): Handle it.
1057         * final.c (final_scan_insn): Handle it.
1058         * tree.def (VTABLE_REF): New.
1059         * expr.c (expand_expr): Handle it.
1060         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
1061         * output.h: Declare them.
1063 2001-10-11  Richard Henderson  <rth@redhat.com>
1065         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
1066         for a DECL_INITIAL.
1068 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
1070         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
1071         available in 64-bit mode.
1073 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1075         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
1076         cris-*-linux* cases.
1077         * config/cris/cris-protos.h: New file.
1078         * config/cris/cris.c: New file.
1079         * config/cris/cris.h: New file.
1080         * config/cris/cris.md: New file.
1081         * config/cris/linux.h: New file.
1082         * config/cris/aout.h: New file.
1083         * config/cris/arit.c: New file.
1084         * config/cris/cris_abi_symbol.c: New file.
1085         * config/cris/mulsi3.asm: New file.
1086         * config/cris/t-aout: New file.
1087         * config/cris/t-cris: New file.
1088         * config/cris/t-elfmulti: New file.
1089         * config/cris/t-linux: New file.
1090         * doc/invoke.texi: Add CRIS options.
1091         * doc/install.texi (Specific): Add blurb for CRIS.
1093 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
1095         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
1096         before using it.
1097         * config/float/i32.h: Likewise.
1098         * config/float-i386.h: Likewise.
1099         * config/float-i64.h: Likewise.
1100         * config/float-m68k.h: Likewise.
1101         * config/float-sh.h: Likewise.
1102         * config/float-sparc.h: Likewise.
1104 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1106         * doc/contrib.texi: Add note about CRIS port to my entry.
1108 2001-10-11  Kazu Hirata  <kazu@hxi.com>
1110         * basic-block.h: Fix formatting.
1111         * bitmap.h: Likewise.
1112         * cpplib.h: Likewise.
1113         * c-tree.h: Likewise.
1114         * diagnostic.h: Likewise.
1115         * flags.h: Likewise.
1116         * ggc.h: Likewise.
1117         * longlong.h: Likewise.
1118         * real.h: Likewise.
1119         * reload.h: Likewise.
1120         * rtl.h: Likewise.
1121         * tree.h: Likewise.
1123 2001-10-10  Richard Henderson  <rth@redhat.com>
1125         * c-parse.in (asm_operand): Allow named operands.
1126         * genconfig.c (max_recog_operands): Set to 29.
1127         * local-alloc.c (requires_inout): Skip multiple digits.
1128         * recog.c (asm_operand_ok): Likewise.
1129         (preprocess_constraints): Use strtoul for matching constraints.
1130         (constrain_operands): Likewise.
1131         * regmove.c (find_matches): Likewise.
1132         * reload.c (find_reloads): Likewise.
1133         * stmt.c (parse_output_constraint): Don't reject in-out
1134         constraint on operands > 9.  Reject '[' in constraint.
1135         (expand_asm_operands): Handle named operands.  Use strtoul
1136         for matching constraints.
1137         (check_operand_nalternatives): Split out from expand_asm_operands.
1138         (check_unique_operand_names): New.
1139         (resolve_operand_names, resolve_operand_name_1): New.
1141         * doc/extend.texi (Extended Asm): Document named operands.
1142         * doc/md.texi (Simple Constraints): Document matching constraints
1143         on operands > 9.
1145 2001-10-10  Richard Henderson  <rth@redhat.com>
1147         * combine.c (try_combine): Handle a SEQUENCE of one insn.
1149         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
1150         (jcc splitters): Add two splitters to simplify compound compares
1151         that simplify_comparison can't handle.
1153 2001-10-10  Richard Henderson  <rth@redhat.com>
1155         * langhooks.c: Include langhooks.h.
1156         * Makefile.in (langhooks.o): Depend on it.
1158 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
1160         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
1161         should not be considered as a no-op.
1162         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
1164 2001-10-10  Stan Shebs  <shebs@apple.com>
1166         * alias.c: Remove uses of "register" specifier in declarations
1167         of arguments and local variables.
1168         * c-common.c: Ditto.
1169         * c-convert.c: Ditto.
1170         * c-decl.c: Ditto.
1171         * c-format.c: Ditto.
1172         * c-semantics.c: Ditto.
1173         * c-typeck.c: Ditto.
1174         * caller-save.c: Ditto.
1175         * calls.c: Ditto.
1176         * cfg.c: Ditto.
1177         * cfgbuild.c: Ditto.
1178         * cfgrtl.c: Ditto.
1179         * collect2.c: Ditto.
1180         * combine.c: Ditto.
1181         * convert.c: Ditto.
1182         * cppexp.c: Ditto.
1183         * cppfiles.c: Ditto.
1184         * cse.c: Ditto.
1185         * dbxout.c: Ditto.
1186         * defaults.h: Ditto.
1187         * df.c: Ditto.
1188         * dwarf2out.c: Ditto.
1189         * dwarfout.c: Ditto.
1190         * emit-rtl.c: Ditto.
1191         * explow.c: Ditto.
1192         * expmed.c: Ditto.
1193         * expr.c: Ditto.
1194         * final.c: Ditto.
1195         * fix-header.c: Ditto.
1196         * floatlib.c: Ditto.
1197         * flow.c: Ditto.
1198         * fold-const.c: Ditto.
1199         * function.c: Ditto.
1200         * gcc.c: Ditto.
1201         * gcse.c: Ditto.
1202         * gen-protos.c: Ditto.
1203         * genattrtab.c: Ditto.
1204         * gencheck.c: Ditto.
1205         * genconfig.c: Ditto.
1206         * genemit.c: Ditto.
1207         * genextract.c: Ditto.
1208         * genflags.c: Ditto.
1209         * gengenrtl.c: Ditto.
1210         * genoutput.c: Ditto.
1211         * genpeep.c: Ditto.
1212         * genrecog.c: Ditto.
1213         * gensupport.c: Ditto.
1214         * global.c: Ditto.
1215         * gmon.c: Ditto.
1216         * graph.c: Ditto.
1217         * haifa-sched.c: Ditto.
1218         * hard-reg-set.h: Ditto.
1219         * hash.c: Ditto.
1220         * integrate.c: Ditto.
1221         * jump.c: Ditto.
1222         * lists.c: Ditto.
1223         * local-alloc.c: Ditto.
1224         * loop.c: Ditto.
1225         * mips-tdump.c: Ditto.
1226         * mips-tfile.c: Ditto.
1227         * optabs.c: Ditto.
1228         * prefix.c: Ditto.
1229         * print-rtl.c: Ditto.
1230         * read-rtl.c: Ditto.
1231         * real.c: Ditto.
1232         * recog.c: Ditto.
1233         * reg-stack.c: Ditto.
1234         * regclass.c: Ditto.
1235         * regmove.c: Ditto.
1236         * reload.c: Ditto.
1237         * reload1.c: Ditto.
1238         * reorg.c: Ditto.
1239         * resource.c: Ditto.
1240         * rtl.c: Ditto.
1241         * rtlanal.c: Ditto.
1242         * scan.c: Ditto.
1243         * sched-deps.c: Ditto.
1244         * sched-rgn.c: Ditto.
1245         * sdbout.c: Ditto.
1246         * simplify-rtx.c: Ditto.
1247         * stmt.c: Ditto.
1248         * stor-layout.c: Ditto.
1249         * toplev.c: Ditto.
1250         * tradcif.y: Ditto.
1251         * tradcpp.c: Ditto.
1252         * tree.c: Ditto.
1253         * unroll.c: Ditto.
1254         * varasm.c: Ditto.
1255         * xcoffout.c: Ditto.
1257 2001-10-10  Richard Henderson  <rth@redhat.com>
1259         * rtl.h (can_reverse_comparison_p): Remove.
1261 2001-10-10  Christopher Faylor <cgf@redhat.com>
1263         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
1264         used.
1266 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1268         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
1269         (Thanks to Chris Faylor for suggesting macro name).
1270         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
1271         WIN32 defines.
1272         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
1273         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
1274         (MATH_LIBRARY): Undef before definition.
1275         (OUTPUT_QUOTED_STRING): Likewise.
1276         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
1278 2001-10-10  Richard Henderson  <rth@redhat.com>
1280         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
1281         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
1282         a tristate comparison value.
1283         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
1285 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1287         PR c++/4512
1288         * unroll.c (loop_iterations): Ignore insns generated by loop
1289         unrolling.
1291         * config.gcc (mips*-*-gnu*): Delete support.
1292         * config/mips/gnu.h: Remove.
1294 2001-10-10  Kazu Hirata  <kazu@hxi.com>
1296         * calls.c: Fix formatting.
1297         * c-decl.c: Likewise.
1298         * cfgcleanup.c: Likewise.
1299         * combine.c: Likewise.
1300         * cppfiles.c: Likewise.
1301         * cpplib.c: Likewise.
1302         * cppmacro.c: Likewise.
1303         * crtstuff.c: Likewise.
1304         * cse.c: Likewise.
1305         * dwarf2out.c: Likewise.
1306         * expmed.c: Likewise.
1307         * expr.c: Likewise.
1308         * fold-const.c: Likewise.
1309         * function.c: Likewise.
1310         * gcse.c: Likewise.
1311         * genattrtab.c: Likewise.
1312         * ggc-page.c: Likewise.
1313         * integrate.c: Likewise.
1314         * libgcc2.c: Likewise.
1315         * loop.c: Likewise.
1316         * optabs.c: Likewise.
1317         * profile.c: Likewise.
1318         * protoize.c: Likewise.
1319         * real.c: Likewise.
1320         * recog.c: Likewise.
1321         * reload1.c: Likewise.
1322         * reload.c: Likewise.
1323         * reorg.c: Likewise.
1324         * resource.c: Likewise.
1325         * sched-rgn.c: Likewise.
1326         * sdbout.c: Likewise.
1327         * stmt.c: Likewise.
1328         * toplev.c: Likewise.
1329         * varasm.c: Likewise.
1331 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
1333         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
1334         * Makefile.in (langhooks.o): Add dependencies.
1336 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
1338         * rs6000.c (rs6000_emit_load_toc_table): Don't
1339         strdup the toc label.
1340         (create_TOC_reference): Likewise.
1342 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1344         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
1345         version default.
1347 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1349         * config/i386/i386.c (ix86_attribute_table): Correct
1350         min_len, max_len fields for dllimport, dllexport and shared.
1352 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1354         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
1355         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
1356         Consistently use "nonzero" instead of "non-zero".
1358 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1360         * acconfig.h: Fix comment formatting.
1361         * c-dump.h: Likewise.
1362         * c-tree.h: Likewise.
1363         * conditions.h: Likewise.
1364         * expr.h: Likewise.
1365         * function.h: Likewise.
1366         * gthr.h: Likewise.
1367         * hwint.h: Likewise.
1368         * integrate.h: Likewise.
1369         * intl.h: Likewise.
1370         * loop.h: Likewise.
1371         * optabs.h: Likewise.
1373 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1375         * c-common.h: Fix comment formatting.
1376         * c-dump.c: Likewise.
1377         * cfg.c: Likewise.
1378         * diagnostic.h: Likewise.
1379         * except.c: Likewise.
1380         * gcc.h: Likewise.
1381         * gcov-io.h: Likewise.
1382         * genattrtab.c: Likewise.
1383         * output.h: Likewise.
1384         * predict.h: Likewise.
1385         * reload1.c: Likewise.
1386         * reload.h: Likewise.
1387         * resource.h: Likewise.
1388         * scan.h: Likewise.
1389         * system.h: Likewise.
1390         * tree.h: Likewise.
1391         * tree-inline.c: Likewise.
1392         * tsystem.h: Likewise.
1393         * varasm.c: Likewise.
1394         * xcoffout.h: Likewise.
1396 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1398         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
1400 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1402         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
1403         config/i386/i386elf.h, config/i386/netbsd-elf.h,
1404         config/i386/netware.h, config/mcore/gfloat.h,
1405         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
1406         config/netware.h, gccbug.in: Update FSF address.
1408 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1410         * c-common.c: Fix comment typos.
1411         * cfgrtl.c: Likewise.
1412         * collect2.c: Likewise.
1413         * cpplex.c: Likewise.
1414         * doloop.c: Likewise.
1415         * dwarf2out.c: Likewise.
1416         * dwarfout.c: Likewise.
1417         * expr.c: Likewise.
1418         * fold-const.c: Likewise.
1419         * gcc.c: Likewise.
1420         * gcov.c: Likewise.
1421         * gcse.c: Likewise.
1422         * global.c: Likewise.
1423         * ifcvt.c: Likewise.
1424         * loop.c: Likewise.
1425         * optabs.c: Likewise.
1426         * protoize.c: Likewise.
1427         * regclass.c: Likewise.
1428         * reorg.c: Likewise.
1429         * rtl.h: Likewise.
1430         * stmt.c: Likewise.
1431         * tree.h: Likewise.
1432         * doc/cpp.texi: Likewise.
1433         * doc/c-tree.texi: Likewise.
1434         * doc/extend.texi: Likewise.
1435         * doc/invoke.texi: Likewise.
1436         * doc/objc.texi: Likewise.
1437         * doc/tm.texi: Likewise.
1439 2001-10-08  Richard Henderson  <rth@redhat.com>
1441         * varasm.c (set_named_section_flags): Initialize "declared".
1443 2001-10-08  Robert Lipe  <robertlipe@usa.net>
1445         * varasm.c (struct in_named_entry): Add declared.
1446         (named_section_first_declaration): New function.
1447         (default_elf_asm_named_section): Use it.
1448         * output.h (named_section_first_declaration): New.
1450 2001-10-08  Richard Henderson  <rth@redhat.com>
1452         * i386.md (movsi_xor): Export.
1453         (setcc peep2): Use it when available; add an alternative to
1454         match zero_extendhisi2_and.
1456 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1458         * romp-protos.h (romp_initialize_trampoline): New function.
1459         * romp.c (romp_initialize_trampoline): Likewise.
1460         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
1461         romp_initialize_trampoline.
1463 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1465         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
1466         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1467         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1468         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1470 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1472         * unroll.c (loop_iterations): Extend check for multiple back edges.
1474 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
1476         * langhooks.h: New file.
1477         * Makefile.in (OBJS): Added langhooks.o.
1478         (c-lang.o): Depend on langhooks.h.
1479         (c-common.o): Don't depend on tree-inline.h.
1480         (tree-inline.o): Depend on toplev.h.
1481         (langhooks.o): New rule.
1482         * c-common.c: Don't include tree-inline.h.
1483         (c_mark_lang_decl): Mark argument c as unused.
1484         (c_common_lang_init): Don't initialize hooks here.
1485         * c-lang.c: Include langhooks.h, then override some macros.
1486         (lang_hooks): Initialize with macros in langhooks.h.
1487         (c_init): Don't initialize hooks here.
1488         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
1489         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
1490         * tree-inline.c: Include toplev.h.  Don't define hook variables.
1491         * tree-inline.h: Don't define hook types nor declare hook
1492         variables.  Move macros to...
1493         * langhooks.c: ... new file, as functions.  Adjust all callers.
1495 2001-10-08  Jeffrey A Law  <law@cygnus.com>
1497         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
1498         purge_mem_unchanging_flag on all instructions, not just on those
1499         before NOTE_INSN_FUNCTION_BEG.
1501 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1503         * cppmacro.c (_cpp_create_definition): Leave comments off.
1505         * doc/cpp.texi: Update.
1507 2001-10-08  DJ Delorie  <dj@redhat.com>
1509         * c-decl.c (grokfield): Make sure the only unnamed fields
1510         we're allowing are either structs or unions.
1511         * doc/extend.texi: Add documentation for the unnamed field
1512         extension.
1514 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
1516         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
1517         * configure.in: Use it.
1518         * configure: Regenerated.
1519         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
1520         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
1522 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1524         * cppfiles.c (open_file): Don't mark zero-length files
1525         never-reread here.  Don't output diagnostics here either.
1526         (stack_include_file): Mark them never-reread here.
1527         (_cpp_read_file): Update.
1529 2001-10-08  Richard Henderson  <rth@redhat.com>
1531         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1533 2001-10-08  Richard Henderson  <rth@redhat.com>
1535         * expr.c (store_expr): When converting a CONST_INT for storage
1536         in a SUBREG, convert it to both SUBREG modes before stripping
1537         the SUBREG.
1539 2001-10-08  Richard Henderson  <rth@redhat.com>
1541         * varasm.c (restore_varasm_status): New.
1542         * function.h: Declare it.
1543         * function.c (pop_function_context_from): Call it.
1545 2001-10-08  Richard Henderson  <rth@redhat.com>
1547         * c-common.h (struct c_lang_decl): Add declared_inline.
1548         * c-tree.h (DECL_DECLARED_INLINE_P): New.
1549         * c-lang.c (c_disregard_inline_limits): Use it.
1550         * c-decl.c (duplicate_decls): Likewise.
1551         (pushdecl, redeclaration_error_message): Likewise.
1552         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
1553         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
1554         Set DECL_INLINE if -finline-functions.
1555         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
1557 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1559         * cppmacro.c (funlike_invocation_p): Move some logic to caller
1560         in enter_macro_context.  Create a padding token in its own context
1561         if necessary when the search for '(' fails.
1562         (enter_macro_context): Update.
1564 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1566         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
1567         genmultilib, toplev.c: Fix spelling errors of "separate" as
1568         "seperate", and corresponding spelling errors of related words.
1570 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1572         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
1573         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
1574         Likewise.
1575         * c-dump.c (dump_option_value_info): Likewise.
1576         * c-format.c (format_length_info, format_char_info,
1577         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
1578         * collect2.c (names): Likewise.
1579         * cppdefault.h (default_include): Likewise.
1580         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
1581         * flow.c (life_analysis): Likewise.
1582         * gcc.c (dir_separator_str, modify_target, option_map,
1583         target_option_translations, spec_list_1, extra_specs_1,
1584         init_spec): Likewise.
1585         * gcov.c (gcov_version_string): Likewise.
1586         * genattr.c (write_units): Likewise.
1587         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
1588         * gengenrtl.c (rtx_definition, defs): Likewise.
1589         * genrecog.c (pred_table): Likewise.
1590         * global.c (global_alloc): Likewise.
1591         * lcm.c (optimize_mode_switching): Likewise.
1592         * local-alloc.c (find_free_reg): Likewise.
1593         * params.h (param_info): Likewise.
1594         * predict.c (predictor_info): Likewise.
1595         * protoize.c (unexpansion_struct): Likewise.
1596         * real.c (bmask): Likewise.
1597         * recog.h (insn_operand_data, insn_data): Likewise.
1598         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
1599         * stmt.c (expand_nl_goto_receiver): Likewise.
1600         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
1601         target_switches, target_options): Likewise.
1602         * tradcif.y (token, tokentab2, yylex): Likewise.
1603         * tree.h (attribute_spec): Likewise.
1605         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
1606         Likewise.
1607         * arc.c (arc_output_function_epilogue): Likewise.
1608         * arm.c (processors, all_cores, all_architectures,
1609         arm_override_options, isr_attribute_arg, isr_attribute_args,
1610         arm_isr_value): Likewise.
1611         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
1612         Likewise.
1613         * c4x.c (c4x_int_reglist): Likewise.
1614         * d30v.c (override_options): Likewise.
1615         * h8300.c (shift_insn): Likewise.
1616         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
1617         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
1618         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
1619         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
1620         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
1621         * i386.h (processor_costs, ix86_cost): Likewise.
1622         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
1623         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
1624         * m68k.c (codes_68881, codes_FPA): Likewise.
1625         * m88k.c (mode_from_align, max_from_align, all_from_align,
1626         best_from_align, m_options): Likewise.
1627         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
1628         * mcore.c (mode_from_align): Likewise.
1629         * mips/elf64.h (UNIQUE_SECTION): Likewise.
1630         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
1631         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
1632         * mips.h (mips_regno_to_class): Likewise.
1633         * ns32k.c (scales): Likewise.
1634         * pa.c (import_string, magic_milli): Likewise.
1635         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
1636         * sparc.c (leaf_reg_remap, sparc_override_options,
1637         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
1638         Likewise.
1639         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
1641 2001-10-07  Dale Johannesen  <dalej@apple.com>
1643         * reload1.c (reload_reg_free_p): Teach register interference
1644         checking that multiple output reloads are emitted in
1645         reverse order.
1646         reload1.c (reload_reg_reaches_end_p):  Ditto.
1647         reload1.c (reloads_conflict):  Ditto.
1649 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1651         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
1652         NULL_TREE inside @code.
1654 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1656         * doc/gcc.texi: Document consistent style of "32-bit",
1657         "Objective-C", and "@code{NULL}".
1659 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1661         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
1662         (cpp_token_len, cpp_spell_token, cpp_output_token,
1663         _cpp_equiv_tokens): Handle it.
1664         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
1665         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
1666         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
1667         error messages.
1669 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1671         * gcc.c (default_compilers): Remove .ada.
1673 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1675         * doc/cppinternals.texi: Update.
1677 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1679         * gcc.c (main): Set this_file_error if the appropriate
1680         compiler for a language has not been installed.
1682 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1684         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
1686 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1688         * gccbug.in (CATEGORIES): Add ada.
1690 2001-10-05  Catherine Moore  <clm@redhat.com>
1692         * config/stormy16/stormy-abi:  Document abi changes.
1693         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
1694         (ICALL_REGS): New register class.
1695         (NUM_ARGUMENT_REGISTERS): Now 6.
1696         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
1697         in registers.
1698         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
1699         * config/stormy16.md (call_internal, call_value_internal,
1700         indirect_jump): Use new 'z' constraint.
1702 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1704         * doc/cppinternals.texi: Update.
1706 2001-10-05  Richard Henderson  <rth@redhat.com>
1708         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
1709         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
1710         the gas section-name-as-label feature.
1712 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1714         * doc/cppinternals.texi: Update.
1716 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1718         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
1719         to ensure valid SImode constants.
1721 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
1723         * Makefile.in (c-decl.o): Depend on tree-inline.h.
1724         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
1725         * c-decl.c: Include tree-inline.h.
1726         (c_expand_body): Call optimize_inline_calls. Determine whether
1727         a function is inlinable upfront, and only clear
1728         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
1729         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
1730         (c_disregard_inline_limits): New function.
1731         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
1732         (c_post_options): Enable tree inlining if inlining is enabled.
1733         Don't inline trees when instrumenting functions.
1734         (c_init): Initialize lang_disregard_inline_limits and
1735         lang_cannot_inline_tree_fn.
1736         * tree-inline.c (initialize_inlined_parameters): Handle calls
1737         with fewer arguments than declared parameters, and fewer
1738         parameters than passed arguments.  Don't assume value is a
1739         DECL.
1740         (declare_return_variable): Convert return value back to the
1741         original type, if it was promoted.
1742         (tree_inlinable_function_p): New function.
1743         (inlinable_function_p): Don't look at DECL_INLINE if we're
1744         inlining all functions.  Make it work with a NULL id.
1745         Re-check DECL_UNINLINABLE after language-specific checks.
1746         * tree-inline.h (tree_inlinable_function_p): Declare it.
1747         * integrate.c (save_for_inline): Don't bother to prepare argvec
1748         when not inlining.
1749         * cse.c (check_for_label_ref): Don't check deleted labels.
1751         * Makefile.in (tree-inline.o): Depend on newly-included headers.
1752         * tree-inline.c: Include headers needed for the functions moved in.
1753         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
1754         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
1755         (copy_body, initialize_inlined_parameters): Likewise.
1756         (declare_return_variable, inlinable_function_p): Likewise.
1757         (expand_call_inline, expand_calls_inline): Likewise.
1758         (optimize_inline_calls, clone_body): Likewise.
1759         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
1760         (copy_tree_r, remap_save_expr): Likewise.
1762 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
1764         * Makefile.in (OBJS): Added tree-inline.o.
1765         (c-common.o): Depend on tree-inline.h.
1766         (tree-inline.o): New target.
1767         * c-common.c: Include tree-inline.h.
1768         (c_mark_lang_decl): Don't mark saved_tree.
1769         (c_common_lang_init): Set lang_anon_aggr_type_p.
1770         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
1771         (struct c_lang_decl): Moved saved_tree to tree_decl.
1772         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
1773         * integrate.h (function_attribute_inlinable_p): Declare it.
1774         * integrate.c (function_attribute_inlinable_p): Export it.
1775         * tree-inline.c: New file.  Define variables declared in...
1776         * tree-inline.h: New file.  Declare functions to be moved to
1777         tree-inline.c.  Define macros and declare types and hooks for
1778         language-specific tree inlining.
1779         (flag_inline_trees): Moved definition from cp/decl2.c.
1780         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
1781         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
1782         (struct tree_decl): Moved saved_tree from c_lang_decl and
1783         inlined_fns from C++'s lang_decl.
1785 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
1787         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
1788         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
1790 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1792         * doc/cppinternals.texi: Update.
1794 2001-10-04  Eric Christopher  <echristo@redhat.com>
1796         * config/mips/mips.c (init_cumulative_args): Remember to set
1797         cum->prototype.
1798         * config.gcc: Redo linux configuration. Add target_cpu_default
1799         of soft-float to all mipsisa32 combinations and tx39.
1800         * config/mips/linux.h: Remove include of mips.h.
1802 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
1804         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
1805         HOST_LDFLAGS and HOST_CPPFLAGS.
1807 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
1809         * c-parse.in (objc_inherit_code, objc_pq_context,
1810         objc_public_flag): Make static.
1811         (objc_interface_context, objc_implementation_context,
1812         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
1813         global tree array in objc/objc-act.[ch].
1814         (methoddef): Remove unnecessary code.
1816         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
1817         Hoist struct definitions to objc-act.h.
1818         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
1819         cat_count): Place declaration in objc-act.h.
1820         (objc_tree_index): Move enumeration to objc-act.h.
1821         (objc_global_trees): Place declaration and macro accessors in
1822         objc-act.h.
1823         (implementation_context): Remove duplicate; use
1824         objc_implementation_context instead:
1825         (method_context): Remove duplicate; use objc_method_context
1826         instead.
1827         (objc_ellipsis_node, objc_method_prototype_template,
1828         implemented_classes, function_type): Move global vars to
1829         objc_global_trees.
1830         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
1831         (build_message_expr): Move actual construction of ObjC message
1832         send nodes to finish_message_expr.
1833         (finish_message_expr): New routine, contains code formerly in
1834         build_message_expr.
1835         * objc/objc-act.h (finish_message_expr): New prototype.
1836         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
1837         declarations; these vars are now part of objc_global_trees.
1838         (objc_tree_index, objc_global_trees): Move definitions from
1839         objc-act.c.
1840         * objc/objc-tree.def: Update copyright info.
1842 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
1844         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
1845         op is NULL.
1846         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
1847         only if TARGET_ARCH64.
1849 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
1851         * doc/extend.texi: Fix some problems with previous checkin.
1852         * doc/invoke.texi: Likewise.
1854 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1856         * cpphash.h: Update comments.
1857         (cpp_context): Update.
1858         (spec_nodes): Remove n__Pragma.
1859         * cppinit.c (cpp_create_reader): Update.
1860         (builtin_array): Add _Pragma.
1861         * cpplib.h: Update comments.
1862         (NODE_DISABLED, BT_PRAGMA): New.
1863         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
1864         * cppmacro.c (struct cpp_macro): Remove disabled.
1865         (builtin_macro): Return int, handle _Pragma, push the new token
1866         on the context stack.
1867         (funlike_invocation_p): Unconstify, update.
1868         (enter_macro_context): Handle builtins here.
1869         (replace_args, push_token_context, push_ptoken_context):
1870         Update for prototype changes.
1871         (_cpp_pop_context): Update.
1872         (cpp_get_token): Don't handle buitins, nor _Pragma here.
1873         (cpp_sys_macro_p): Update.
1874         (_cpp_free_definition): Clear disabled flag.
1875         (_cpp_create_definition): Upate.
1876         * cppmain.c: Update comments.
1878 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
1879                                 Andreas Jaeger <aj@suse.de>,
1880                                 Jan Hubicka    <jh@suse.cz>
1882         * doc/invoke.texi (i386 Options): Document x86-64 options.
1883         (i386 and x86-64 Options): Rename i386 options section.
1885         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
1886         (TARGET_SWITCHES): Add -munwind-info.
1887         (MASK_NO_UNWIND_INFO): New.
1888         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
1889         biarch compilation.
1890         (ASM_OUTPUT_DOUBLE_INT): New.
1892         * config/i386/linux64.h: New spec file for Linux x86-64 support.
1893         * config.gcc: Fix tm_file settings for x86-64.
1894         * config/i386/x86-64.h: New file with OS independent x86-64
1895         definitions.
1896         * config/i386/biarch64.h: New file used to configure compiler
1897         to biarch/64bit compilation.
1899         * config/i386/i386.c: (override_options): Set flags default
1900         for 64bit compilation.
1902 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1904         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
1905         (ix86_expand_int_movcc): Optimize DImode conditional moves with
1906         constants on x86_64.
1907         (ix86_attr_length_immediate_default): Support MODE_DI.
1908         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
1909         condition.
1910         (indirect_jump, tablejump): Turn into expander.
1912 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1914         * c-common.c (c_format_attribute_table): Make format and
1915         format_arg attributes apply to function types rather than to
1916         decls.
1917         (is_valid_printf_arglist): Construct an attribute list and pass
1918         that to check_function_format rather than a name.
1919         * c-common.h (check_function_format): Adjust prototype.
1920         * c-decl.c (duplicate_decls): Preserve attributes from type of
1921         built-in decl when allowing for harmless conflict in types.
1922         * c-format.c (record_function_format,
1923         record_international_format, function_format_list,
1924         international_format_info, international_format_list): Remove.
1925         (function_format_info): Remove next, name and assembler_name.
1926         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
1927         (decode_format_attr): New.
1928         (handle_format_attribute): Handle receiving a type rather than a
1929         decl.  Call decode_format_attr.  Store format information in a
1930         function_format_info.
1931         (handle_format_arg_attribute): Correct comment.  Handle receiving
1932         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
1933         arg_num.
1934         (check_format_info_recurse, check_format_info_main): Take argument
1935         numbers as unsigned HOST_WIDE_INT.
1936         (check_function_format): Take a list of attributes from the
1937         function type rather than a name or assembler name.  Check for
1938         format attributes in that list and the attributes on the type of
1939         the current function rather than looking through
1940         function_format_list.
1941         (check_format_info): Use unsigned HOST_WIDE_INT for argument
1942         numbers.
1943         (check_format_info_recurse): Take format_arg attributes from the
1944         type of the function calls rather than using
1945         international_format_list.  Allow for multiple format_arg
1946         attributes.
1947         * c-typeck.c (build_function_call): Pass type attributes to
1948         check_function_format rather than name or assembler name.  Don't
1949         require there to be a name or assembler name to check formats.
1951 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1953         * attribs.c (decl_attributes): Possibly call
1954         insert_default_attributes to insert default attributes on
1955         functions in a lazy manner.
1956         * builtin-attrs.def: New file; define the default format and
1957         format_arg attributes.
1958         * c-common.c (c_format_attribute_table): Move to earlier in the
1959         file.
1960         (c_common_nodes_and_builtins): Initialize format_attribute_table.
1961         (enum built_in_attribute, built_in_attributes,
1962         c_attrs_initialized, c_init_attributes,
1963         c_common_insert_default_attributes): New.
1964         (c_common_lang_init): Don't initialize format_attribute_table.  Do
1965         call c_init_attributes.
1966         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
1967         * c-common.h (init_function_format_info): Don't declare.
1968         (c_common_insert_default_attributes): Declare.
1969         * c-decl.c (implicitly_declare, builtin_function): Call
1970         decl_attributes.
1971         (init_decl_processing): Don't call init_function_format_info.
1972         (insert_default_attributes): New.
1973         * c-format.c (handle_format_attribute,
1974         handle_format_arg_attribute): Be quiet about inappropriate
1975         declaration when applying default attributes.
1976         (init_function_format_info): Remove.
1977         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
1978         (insert_default_attributes): Declare.
1980 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1982         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
1984 2001-10-01  Jim Wilson  <wilson@redhat.com>
1986         * sched-deps.c (add_dependence): When elide conditional dependence,
1987         check that insn doesn't modify cond2.
1989 2001-10-01  Dale Johannesen  <dalej@apple.com>
1991         * config/rs6000/rs6000.h (enum processor_type): Add support
1992         for 7400 (G4) and 7450.
1993         (RTX_COSTS): Ditto.
1994         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1995         (rs6000_issue_rate): Ditto.
1996         (rs6000_adjust_cost): Fix cycle counts for compares.
1997         (debug_stack_info):  Fix an obvious typo.
1998         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
1999         * doc/invoke.texi: Document.
2000         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
2001         for Darwin.
2002         (PROCESSOR_DEFAULT): Ditto.
2004 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
2006         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
2007         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
2008         later recursive make invocation.
2010 2001-10-01  Hans Boehm  <boehm@acm.org>
2012         * optabs.c (emit_libcall_block): When using non-call exceptions,
2013         don't add REG_LIBCALL reg notes to trapping calls.
2015 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2017         * flow.c (propagate_block_delete_libcall): Remove unused first arg
2018         (propagate_one_insn):  Update for above change
2020 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2022         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
2023         _Unwind_GetTextRelBase): Argument is unused.
2025 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2027         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
2028         Loop through NOPs, placeholders, and components.
2029         Don't go through NOPs if change mode.
2030         (record_alias_subset): Do nothing if SUBSET and SET are the same.
2031         * emit-rtl.c (set_mem_alias_set): Enable check.
2032         * expr.c (find_placeholder): New function.
2033         (expand_expr, case PLACEHOLDER_EXPR): Use it.
2034         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
2035         to modify it and avoid unneeded copies.
2036         * expr.h (expand_expr): Always define.
2037         (find_placeholder): New declaration.
2039 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2041         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
2042         operand 2 is the stack pointer.
2043         ("addr-peephole"): Fix address computation peephole when operand 2
2044         is the stack pointer.
2046 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2048         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
2049         (ix86_setup_incoming_varargs): Likewise.
2051 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
2053         * stor-layout.c (layout_type): Don't complain about too-large
2054         array here.
2056 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2058         * function.c (keep_stack_depressed): Don't use delete_insn.
2060         * expr.h (set_mem_alias_set): Move decl to here.
2061         * rtl.h (mem_attrs): New typedef and struct.
2062         (union rtunion_def): Add field for mem_attrs.
2063         (X0MEMATTR, MEM_ATTRS): New macros.
2064         (MEM_ALIAS_SET): Use MEM_ATTRS.
2065         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
2066         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
2067         (set_mem_alias_set): Delete decl from here.
2069         * alias.c (set_mem_alias_set): Delete from here.
2070         * emit-rtl.c (mem_attrs_htab): New variable.
2071         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
2072         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
2073         (mem_attrs_mark, get_mem_attrs): Likewise.
2074         (gen_rtx_MEM): Clear MEM_ATTRS.
2075         (set_mem_attributes): Move to here.
2076         (set_mem_alias_set): Likewise, and call get_mem_attrs.
2077         (init_emit_once): const_int_htab now deletable htab.
2078         Initialize mem_attrs_htab.
2079         * explow.c (set_mem_attributes): Delete from here.
2080         * function.c (put_var_into_stack): Clear MEM_ATTRS.
2081         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
2082         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
2083         * reload1.c (reload): Rework changing REG to MEM.
2085 2001-09-30  H.J. Lu <hjl@gnu.org>
2087         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
2088         * config.in: Rebuild.
2090 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2092         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
2093         ("tsthi_1"): Avoid allocation in register y.
2094         ("*movqi_68hc12"): Reorganize and fix constraints.
2095         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
2096         ("addqi3"): Likewise.
2097         ("addhi3"): Fix constraints.
2098         ("*logicalhi3_zexthi"): Disparage soft registers.
2100 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2102         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
2103         to tmp reg.
2105 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2107         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
2108         that we use setjmp/longjmp exceptions.
2110 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2112         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
2113         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
2114         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2115         _cpp_pool_alloc, _cpp_next_chunk): Remove.
2116         (_cpp_extend_buff, BUFF_ROOM): Update.
2117         (_cpp_append_extend_buff): New.
2118         (struct cpp_reader): Remove macro_pool, add a_buff.
2119         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
2120         macro_pool.
2121         (cpp_destroy): Free a_buff instead of macro_pool.
2122         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
2123         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2124         _cpp_pool_alloc, ): Remove.
2125         (parse_number, parse_string): Update use of _cpp_extend_buff.
2126         (_cpp_extend_buff): Update.
2127         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
2128         * cpplib.c (glue_header_name, parse_answer):
2129         Update use of _cpp_extend_buff.
2130         (cpp_register_pragma, cpp_register_pragma_space): Use
2131         _cpp_aligned_alloc.
2132         (do_assert, do_unassert): Check for EOL, update.
2133         * cppmacro.c (stringify_arg, collect_args): Update to use
2134         _cpp_extend_buff and _cpp_append_extend_buff.
2135         (save_parameter, parse_params, alloc_expansion_token,
2136         _cpp_create_definition): Rework memory management.
2138 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
2140         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
2141         update md_exec_prefix.
2142         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
2143         to string constant.
2145 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
2147         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
2148         (SELECT_CC_MODE): Use s390_select_ccmode.
2149         * config/s390/s390-protos.h (s390_select_ccmode): Add.
2150         * config/s390/s390.c (s390_select_ccmode): New.
2151         (s390_match_ccmode): Add CCLmode.
2152         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
2153         (output_branch_condition, output_inverse_branch_condition): Removed.
2154         (print_operand): Use s390_branch_condition_mnemonic.
2155         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
2156         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
2157         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
2159         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
2160         when converting conditional branches to far branches.
2161         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
2162         cmpint_di): Use CCSmode instead of CCUmode.
2164         * config/s390/s390.c (legitimate_la_operand_p): New.
2165         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
2166         * config/s390/s390.md (movsi): Convert load address patterns to
2167         arithmetic operations when necessary.
2168         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
2169         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
2170         (*do_la_reg_0): Don't use before reload.
2172         * config/s390/s390.c (legitimize_address): Make more efficient
2173         use of two-register addressing mode.
2175         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
2176         with -mno-backchain in some corner cases.
2178         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
2180 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
2182         * reload.c (find_reloads): Mark new USE insns with QImode.
2183         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
2184         find_reloads_subreg_address): Likewise.
2185         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
2186         encountered.
2187         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
2188         CLOBBERs.
2189         (reload): Make sure there are no USEs with mode other than
2190         VOIDmode.  At the end, remove those marked with QImode.
2192 2001-09-29  Per Bothner  <per@bothner.com>
2194         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
2195         * Makefile.in (includedir):  Rename to local_includedir.
2196         (includedir):  Define as $(prefix)/include.
2197         * config.in (PREFIX_INCLUDE_DIR):  New variable.
2198         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
2200 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
2202         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
2203         storehps builtins.
2204         * doc/extend.texi (Vector Extensions): New node.
2205         * doc/invoke.texi (Machine Dependent Options): Add documentation for
2206         i386 -mmmx, -msse, -m3dnow.
2208 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2210         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
2212 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2214         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
2216         * doc/invoke.texi (Optimize Options): Delete spurious @table.
2218 2001-09-28  Richard Henderson  <rth@redhat.com>
2220         * varasm.c (assemble_integer): Bound alignment check by
2221         BIGGEST_ALIGNMENT.
2223         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
2225 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2227         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
2229 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2231         Mostly from Graham Stott  <grahams@redhat.com>
2232         * c-common.c (type_for_mode): Add support for V2SFmode.
2233         * tree.c (build_common_tree_nodes_2): Likewise.
2234         * tree.h (enum tree_index, global_trees): Likewise.
2235         * config/i386/i386.c (x86_3dnow_a): New variable.
2236         (override_options): Support 3Dnow extensions.
2237         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
2238         Athlon's version of 3Dnow.
2239         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
2240         (ix86_expand_builtin): Handle them.
2241         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
2242         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
2243         TARGET_3DNOW_A): New macros.
2244         (TARGET_SWITCHES): Add 3Dnow switches.
2245         (VALID_MMX_REG_MODE_3DNOW): New macro.
2246         (VECTOR_MODE_SUPPORTED_P): Use it.
2247         (enum ix86_builtins): Add entries for 3Dnow builtins.
2248         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
2249         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
2250         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
2251         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
2252         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
2253         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
2254         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
2255         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
2256         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
2257         sfence_insn, prefetch): Make these available if TARGET_SSE or
2258         TARGET_3DNOW_A.
2260 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
2262         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
2263         ix86_va_start, ix86_build_va_list): Declare.
2264         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
2265         ix86_va_start, ix86_build_va_list): New global functions.
2266         * i386.md (sse_prologue_save_insn): New insn.
2267         (sse_prologue_save): New expander.
2268         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
2269         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
2271 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2273         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
2274         Use size_t everywhere, make definitions consistent with
2275         prototypes.
2277 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
2279         * gcse.c (replace_store_insn): Use delete_insn.
2280         * loop.c (move_movables): Likewise; avoid delete_insn
2281         from clobbering notes moved elsewhere.
2282         (check_dbra_loop): Use delete_insn.
2283         * ssa.c (convert_from_ssa): Likewise.
2284         * cse.c (cse_insn): Use delete_insn.
2286 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2288         * cpphash.h (struct cpp_buff): Make unsigned.
2289         (_cpp_get_buff): Take length of size_t.
2290         (_cpp_unaligned_alloc): New.
2291         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
2292         (struct cpp_reader): Remove ident_pool.  Add u_buff.
2293         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
2294         (cpp_destroy): Destroy u_buff, not ident_pool.
2295         * cpplex.c (parse_number, parse_string, save_comment,
2296         cpp_token_as_text): Update to use the unaligned buffer.
2297         (new_buff): Make unsigned.
2298         (_cpp_unaligned_alloc): New.
2299         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
2300         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
2301         Similarly.
2302         (collect_args): Make unsigned.
2304 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
2306         * cpplex.c (cpp_output_token): Use a putc loop for
2307         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
2309         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
2310         * configure, config.in: Regenerate.
2311         * system.h: Replace fwrite and fprintf with their unlocked
2312         variants if available.
2314 2001-09-27  Richard Henderson  <rth@redhat.com>
2316         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
2317         in favour of .eh_frame.
2319 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
2321         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
2322         to macros.
2323         (LIBCALL_VALUE): Likewise.
2325 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2327         * cpphash.h: Update comment.
2328         * cpplex.c: Update comments.
2329         (_cpp_can_paste): Remove.
2330         * cpplib.h (_cpp_can_paste): Remove.
2331         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
2332         lexer rather than _cpp_can_paste.
2334 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2336         * doc/cppinternals.texi: Update.
2338 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2340         * cpphash.h (struct cpp_pool): Remove locks and locked.
2341         (struct cpp_context): Add member buff.
2342         (struct cpp_reader): Remove member argument_pool.
2343         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2344         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
2345         * cpplex.c (chunk_suitable): Remove pool argument.
2346         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
2347         (new_buff, _cpp_extend_buff): Update.
2348         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
2349         which buffer is returned.
2350         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
2351         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2352         * cppmacro.c (lock_pools, unlock_pools): Remove.
2353         (push_ptoken_context): Take a _cpp_buff.
2354         (enter_macro_context): Pool locking removed.
2355         (replace_args): Use a _cpp_buff for the replacement list with
2356         arguments replaced.
2357         (push_token_context): Clear buff.
2358         (expand_arg): Use _cpp_pop_context.
2359         (_cpp_pop_context): Free a context's buffer, if any.
2361 2001-09-26  DJ Delorie  <dj@redhat.com>
2363         * c-typeck.c (digest_init): Check for sizeless arrays.
2365 2001-09-26  Richard Henderson  <rth@redhat.com>
2367         * optabs.c (init_one_libfunc): Create a dummy function type
2368         instead of using error_mark_node.
2370 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2372         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
2373         _cpp_extend_buff, _cpp_free_buff): New.
2374         (struct cpp_reader): New member free_buffs.
2375         * cppinit.c (cpp_destroy): Free buffers.
2376         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
2377         _cpp_extend_buff, _cpp_free_buff): New.
2378         * cpplib.h (struct cpp_options): Remove unused member.
2379         * cppmacro.c (collect_args): New.  Combines the old parse_arg
2380         and parse_args.  Use _cpp_buff for memory allocation.
2381         (funlike_invocation_p, replace_args): Update.
2383 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
2385         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
2387 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
2389         * except.c (sjlj_mark_call_sites): Change address inside sequence.
2391 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2393         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
2394         glibc.
2396 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
2397             Jim Wilson  <wilson@redhat.com>
2399         * doc/install.texi (Specific, ia64-*-linux): Document.
2401 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2403         * Makefile.in (cfgrtl.o): Add.
2404         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2405         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2406         free_aux_for_edge): Declare.
2407         * cfg.c
2408         (HAVE_return): Undefine.
2409         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2410         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2411         free_aux_for_edge): New global functions.
2412         (first_delete_block): New static variable.
2413         (init_flow): Clear first_delete_block.
2414         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
2415          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
2416          try_redirect_by_replacing_jump, last_loop_beg_note,
2417          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
2418          delete_insn, delete_insn_chain, create_basic_block_structure,
2419          create_basic_block, flow_delete_block, compute_bb_for_insn,
2420          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
2421          set_block_for_new_insns, split_block, merge_blocks_nomove,
2422          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
2423          redirect_edge_and_branch, force_nonfallthru_and_redirect,
2424          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
2425          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
2426          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
2427          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2428          purge_all_dead_edges): Move to ....
2429         * cfgrtl.c: New file; .... Here.
2431         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
2432         (reroder_basic_block): Use alloc_aux_for_blocks.
2433         * predict.c (estimate_bb_frequencies): Likewise; use
2434         alloc_aux_for_edges.
2435         * profile.c (compute_branch_probabilities): Likewise.
2436         (branch_prob): Likewise.
2437         * reg-stack.c (reg_to_stack): Likewise.
2439         * emit-rtl.c (emit_insns_after): Never return NULL.
2441         * basic-block.h (set_block_for_new_insns): Delete.
2442         * cfgrtl.c (set_block_for_new_insns): Delete.
2444         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
2445         calls when crossjumping.
2447         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
2448         * unroll.c (copy_loop_body): Use delete_insn.
2450         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
2451         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
2452         keep_stack_depressed): Likewise.
2453         * gcse.c (cprop_cc0_jump): Likewise.
2454         * local-alloc.c (update_equiv_regs): Likewise.
2455         * loop.c (scan_loop, loop_delete_insns): Likewise.
2456         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
2457         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
2458         delete_output_reload, delete_address_reloads_1,
2459         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
2460         Likewise.
2461         * sibcall.c (replace_call_placeholder): Likewise.
2462         * cse.c (cse_insn): Likewise.
2464 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2466         From Graham Stott  <grahams@redhat.com>
2467         (def_builtin): Only define builtins appropriate for target_flags.  All
2468         callers changed.
2469         (builtin_decsription): Add new field mask which is used to determine
2470         when to define the builtin via the macro def_builtin.
2472         (bdesc_comi): Initialise new mask fields.
2473         (bdesc_2srg): Likewise.
2474         (bdesc_1arg): Likewise.
2476         * config/i386/i386.c (ix86_init_builtins): Correct return type
2477         building v4hi_ftype_v4hi_int_int tree node.
2478         (ix86_expand_sse_comi): Fix typo swapping operands.
2479         Don't swap comparision condition, it is already swapped.
2480         (ix86_expand_sse_compare): Before swapping operands
2481         move operand 1 into new rtx and not the target rtx.
2482         Don't swap comparison condition, it is already swapped.
2483         Always check whether we need to create a new TARGET.
2485         * config/i386/i386.md: (sse_comi) Fix typos.
2486         (sse_ucomi): Likewise.
2487         (cvtss2si): Fix operand 0 contraint.
2488         (cvttss2si): Likewise.
2489         (sse_unpckhps): Fix mode for operand 2.
2490         (sse_unpcklps): Likewise.
2492 2001-09-25  Graham Stott  <grahams@redhat.com>
2494         * sibcall.c (skip_copy_to_return_value): Tighten return value
2495         copy check.
2497 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
2499         * rs6000.c (lwa_operand): Address must be word aligned.
2501 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2503         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
2504         number has been set.
2505         (type_hash_mark): Mark type itself.
2507 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2509         * c-lex.c (cb_def_pragma): Update.
2510         (c_lex): Update, and skip padding.
2511         * cppexp.c (lex, parse_defined): Update, remove unused variable.
2512         * cpphash.h (struct toklist): Delete.
2513         (union utoken): New.
2514         (struct cpp_context): Update.
2515         (struct cpp_reader): New members eof, avoid_paste.
2516         (_cpp_temp_token): New.
2517         * cppinit.c (cpp_create_reader): Update.
2518         * cpplex.c (_cpp_temp_token): New.
2519         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
2520         (cpp_output_token): Don't print leading whitespace.
2521         (cpp_output_line): Update.
2522         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
2523         do_include_common, do_line, do_ident, do_pragma,
2524         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
2525         parse_assertion): Update.
2526         (get_token_no_padding): New.
2527         * cpplib.h (CPP_PADDING): New.
2528         (AVOID_LPASTE): Delete.
2529         (struct cpp_token): New union member source.
2530         (cpp_get_token): Update.
2531         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
2532         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
2533         replace_args, quote_string, stringify_arg, parse_arg, next_context,
2534         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
2535         _cpp_backup_tokens, _cpp_create_definition): Update.
2536         (push_arg_context): Delete.
2537         (padding_token, push_token_context, push_ptoken_context): New.
2538         (make_string_token, make_number_token): Update, rename.
2539         (cpp_get_token): Update to handle tokens as pointers to const,
2540         and insert padding appropriately.
2541         * cppmain.c (struct printer): New member prev.
2542         (check_multiline_token): Constify.
2543         (do_preprocessing, cb_line_change): Update.
2544         (scan_translation_unit): Update to handle spacing.
2545         * scan-decls.c (get_a_token): New.
2546         (skip_to_closing_brace, scan_decls): Update.
2547         * fix-header.c (read_scan_file): Update.
2549         * doc/cpp.texi: Update.
2551 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2553         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
2554         leak by passing malloc'ed pointer to reconcat, not concat.
2556 2001-09-24  DJ Delorie  <dj@redhat.com>
2558         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
2560 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
2562         * flow.c (delete_dead_jumptables): Delete jumptable if the only
2563         reference is from the literal pool.
2565 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
2567         * doc/install.texi (Final install): Request additional information
2568         in mail about successful builds.
2570 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2572         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
2573         initial value of return pointer register instead of value in frame-20.
2574         Revise comments.
2576 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2578         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
2579         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
2580         the libcall if there isn't a referenced identifier for the symbol.
2582 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2584         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
2585         non 64-bit machines.  Use these as a plabel for the trampoline.
2586         (TRAMPOLINE_SIZE): Adjust size for new words.
2587         (INITIALIZE_TRAMPOLINE): Initialize new words.
2588         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
2589         pointer to the plabel in the trampoline.
2591 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2593         * pa.c (function_arg): Pass floating arguments in both general and
2594         floating registers in indirect (dynamic) calls when generating code
2595         for the 32 bit ABI and the HP assembler.
2597 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2599         * doc/install.texi: Markup fixes.
2600         Use Solaris 2, SunOS 4 as appropriate.
2601         (Specific, *-*-solaris2*): Explain this.
2602         Unconditionally warn against /usr/ucb tools.
2603         Remove Sun as warning, obsolete.
2604         Move X11 header bug workaround here, update patches.
2605         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
2606         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
2608 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
2610         * errors.h (warning, error, fatal, internal_error): Don't mark
2611         with ATTRIBUTE_PRINTF_n.
2612         * toplev.h (internal_error, fatal_io_error, warning, error,
2613         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
2614         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
2615         Likewise.
2617 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2619         * function.c (pop_function_context_from): var_refs_queue
2620         and temp slots now in GC memory.
2621         (mark_function_status, free_after_compilation): Likewise;
2622         also struct function now in GC memory.
2623         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
2624         (combine_temp_slots): Likewise.
2625         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
2626         (prepare_function_start): Use GC memory for struct function.
2627         (mark_temp_slot): Deleted.
2628         (gcc_mark_struct_function): struct function now in GC memory.
2630         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
2631         code for division, not modulus.
2633         * rtl.def (MEM): Remove obsolete part of comment.
2635 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
2637         * c-format.c (init_function_format_info): Check __builtin_printf
2638         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
2639         in gnu89 mode.
2641 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2643         * c-common.c (format_attribute_table): Remove decl.
2644         * tree.h (format_attribute_table, lang_attribute_table): New decls.
2645         (lang_attribute_common): Likewise.
2647         * function.c (fix_lexical_address): Use set_mem_alias_set.
2648         (expand_function_start): Likewise.
2649         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
2651         * varasm.c (output_constant): Fix unused variable warning.
2653         * attribs.c: New file, from c-common.c.
2654         (attribute_tables): Now four elements.
2655         (format_attribute_table, lang_attribute_common): New variables.
2656         (init_attributes): Reflect above changes.
2657         (handle_mode_attribute): Delete check for wider than uintmax.
2658         * c-common.c: Delete parts moved to attribs.c.
2659         (enum attrs): Deleted; unused.
2660         (c_format_attribute_table): New variable.
2661         (c_common_lang_init): Initialize format_attribute_table with it.
2662         * c-common.h (decl_attributes): Remove decl.
2663         * tree.h (decl_attribute): Move it to here.
2664         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
2665         (attribs.o): New rule.
2667 2001-09-22  Andreas Jaeger  <aj@suse.de>
2669         * builtins.c (c_getstr): Remove unused variable.
2671 2001-09-21  Richard Henderson  <rth@redhat.com>
2673         * reload1.c (reload): Use delete_insn instead of splatting
2674         NOTE_INSN_DELETED.
2676 2001-09-21  Richard Henderson  <rth@redhat.com>
2678         * reload.c (push_secondary_reload): Don't check for "=" in output
2679         constraint after ""->ALL_REGS check.
2681 2001-09-21  Richard Henderson  <rth@redhat.com>
2683         * predict.c (expected_value_to_br_prob): Use pc_set.
2685         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
2686         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
2688 2001-09-21  Richard Henderson  <rth@redhat.com>
2690         * rtl.h (LCT_RETURNS_TWICE): New.
2691         * calls.c (emit_call_1): Set current_function_calls_setjmp for
2692         ECF_RETURNS_TWICE.
2693         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
2694         to ECF_RETURNS_TWICE.
2695         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
2696         call to setjmp.
2698         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
2700         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
2701         (JMP_BUF_SIZE): New.
2703 2001-09-21  Richard Henderson  <rth@redhat.com>
2705         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
2706         to R8_REGS.
2708 2001-09-21  Richard Henderson  <rth@redhat.com>
2710         * tree.def (FDESC_EXPR): New.
2711         * expr.c (expand_expr): Handle it.
2712         * varasm.c (initializer_constant_valid_p): Likewise.
2713         (output_constant): Likewise.
2714         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2715         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2716         (ASM_OUTPUT_FDESC): New.
2717         * doc/tm.texi: Document the new macros.
2719 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2721         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
2722         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
2723         once merging is complete.
2725 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2727         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
2729 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2731         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
2732         that would be invalid after a merge.
2734 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
2736         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
2737         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
2738         remove some labels.
2739         (flow_delete_insn): This one.
2740         (delete_insn_chain): Rename from ...; do not care labels.
2741         (flow_delete_insn_chain): ... this one.
2742         (flow_delete_block): Remove the insns one BB has been expunged.
2743         (merge_blocks_nomove): Likewise.
2744         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
2745         updating BB boundaries.
2746         (tidy_fallthru_edge): Likewise.
2747         (commit_one_edge_insertion): Likewise.
2748         * cfgbuild.c (find_basic_block): Likewise.
2749         (find_basic_blocks_1): Likewise.
2750         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
2751         (try_crossjump_to_edge): Likewise.
2752         (try_optimize_cfg): Likewise.
2753         * cse.c (delete_trivially_dead_insns): Likewise.
2754         * df.c (df_insn_delete): Likewise.
2755         * doloop.c (doloop_modify): Use delete_related_insns.
2756         * emit-rtl.c (try_split): Likewise.
2757         (remove_insn): Update BB boundaries.
2758         * expect.c (connect_post_landing_pads): Use delete_related_insns.
2759         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
2760         updating BB boundaries.
2761         (propagate_block_delete_insn): Likewise.
2762         (propagate_block_delete_libcall): Likewise.
2763         * function.c (delete_handlers): Use delete_related_insns.
2764         (thread_prologue_and_epilogue_insns): Likewise.
2765         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
2766         * genpeep.c (gen_peephole): Use delete_related_insns.
2767         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
2768         BB boundaries.
2769         (find_cond_trap): Likewise.
2770         * integrate.c (save_for_inline): Use delete_related_insns.
2771         (copy_insn_list): Likewise.
2772         * jump.c (pruge_linie_number_notes): Likewise.
2773         (duplicate_loop_exit_test): Likewise.
2774         (delete_computation): Likewise.
2775         (delete_related_insn): Rename from ...; use delete_insn
2776         (delete_insn): ... this one.
2777         (redirect_jump): Use delete_related_insns.
2778         * loop.c (scan_loop): Likewise.
2779         (move_movables): Likewise.
2780         (find_and_verify_loops): Likewise.
2781         (check_dbra_loop): Likewise.
2782         * recog.c (peephole2_optimize): Likewise.
2783         * reg-stack.c (delete_insn_for_stacker): Remove.
2784         (move_for_stack_reg): Use delete_insn.
2785         * regmove.c (combine_stack_adjustments_for_block): Likewise.
2786         * reload1.c (delete_address_reloads): Use delete_related_insns.
2787         (fixup_abnormal_edges): Use delete_insn.
2788         * recog.c (emit_delay_sequence): Use delete_related_insns.
2789         (delete_from-delay_slot): Likewise.
2790         (delete_scheduled_jump): likewise.
2791         (optimize_skip): Likewise.
2792         (try_merge_delay_insns): Likewise.
2793         (full_simple_delay_slots): Likewise.
2794         (fill_slots_from_thread): Likewise.
2795         (relax_delay_slots): Likewise.
2796         (make_return_insns): Likewise.
2797         (dbr_schedule): Likewise.
2798         * rtl.h (delete_insn): Rename to delete_related_insns.
2799         (delete_insn, delete_insn_chain): New prototypes.
2800         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
2801         by df_insn_delete already.
2802         * ssa-dce.c (delete_insn_bb): Use delete_insn.
2803         * ssa.c (convert_from_ssa): Use delete_related_insns.
2804         * unroll.c (unroll_loop): Likewise.
2805         (calculate_giv_inc): Likewise.
2806         (copy_loop_body): Likewise.
2808         * i386-protos.h (ix86_libcall_value, ix86_function_value,
2809         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2810         ix86_return_in_memory, ix86_function_value): Declare.
2811         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
2812         new static valurables.
2813         (x86_64_reg_class): New enum
2814         (x86_64_reg_class_name): New array.
2815         (classify_argument, examine_argument, construct_container,
2816          merge_classes): New static functions.
2817         (optimization_options): Enable flag_omit_frame_pointer and disable
2818         flag_pcc_struct_return on 64bit.
2819         (ix86_libcall_value, ix86_function_value,
2820         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2821         ix86_return_in_memory, ix86_function_value): New global functions.
2822         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
2823         (function_arg_advance): Handle x86_64 passing conventions.
2824         (function_arg): Likewise.
2825         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
2826         (RETURN_IN_MEMORY): Move offline.
2827         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
2828         (FUNCTION_VALUE_REGNO_P): New macro.
2829         (FUNCTION_ARG_REGNO_P): Move offline.
2830         (struct ix86_args): Add maybe_vaarg.
2831         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
2832         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
2834 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
2836         * s390.md: Changed attributes for scheduling.
2837         * s390.c: (s390_adjust_cost, s390_adjust_priority)
2838         Changed scheduling
2840 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2842         Table-driven attributes.
2843         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
2844         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
2845         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
2846         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
2847         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
2848         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
2849         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
2850         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2851         * tree.h (struct tree_decl): Change machine_attributes to
2852         attributes.
2853         * doc/c-tree.texi: Document that all attributes are now attached
2854         to decls and types.
2855         * c-common.c (add_attribute, attrtab, attrtab_idx,
2856         default_valid_lang_attribute, valid_lang_attribute): Remove.
2857         (attribute_tables, attributes_initialized,
2858         c_common_attribute_table, default_lang_attribute_table): New
2859         variables.
2860         (handle_packed_attribute, handle_nocommon_attribute,
2861         handle_common_attribute, handle_noreturn_attribute,
2862         handle_unused_attribute, handle_const_attribute,
2863         handle_transparent_union_attribute, handle_constructor_attribute,
2864         handle_destructor_attribute, handle_mode_attribute,
2865         handle_section_attribute, handle_aligned_attribute,
2866         handle_weak_attribute, handle_alias_attribute,
2867         handle_no_instrument_function_attribute,
2868         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
2869         handle_no_limit_stack_attribute, handle_pure_attribute): New
2870         functions.
2871         (init_attributes, decl_attributes): Rewrite to implement
2872         table-driven attributes.
2873         * c-common.h (enum attribute_flags): Move to tree.h.
2874         * c-format.c (decl_handle_format_attribute,
2875         decl_handle_format_arg_attribute): Rename to
2876         handle_format_attribute and handle_format_arg_attribute.  Update
2877         for table-driven attributes.
2878         * c-common.h (decl_handle_format_attribute,
2879         decl_handle_format_arg_attribute): Remove prototypes.
2880         (handle_format_attribute, handle_format_arg_attribute): Add
2881         prototypes.
2882         * c-decl.c (grokdeclarator): Handle attributes nested inside
2883         declarators.
2884         * c-parse.in (setattrs, maybe_setattrs): Remove.
2885         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
2886         Update to handle nested attributes properly.
2887         (maybe_resetattrs, after_type_declarator,
2888         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
2889         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
2890         properly.
2891         (make_pointer_declarator): Update to handle nested attributes
2892         properly.
2893         * doc/extend.texi: Update documentation of limits of attributes
2894         syntax.  Warn about problems with attribute semantics in C++.
2895         * target.h (struct target): Remove valid_decl_attribute and
2896         valid_type_attribute.  Add attribute_table and
2897         function_attribute_inlinable_p.
2898         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
2899         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
2900         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
2901         Add.
2902         (TARGET_INITIALIZER): Update.
2903         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
2904         definition.
2905         (function_attribute_inlinable_p): New function.  Check for the
2906         presence of any machine attributes before using
2907         targetm.function_attribute_inlinable_p.
2908         (function_cannot_inline_p): Update.
2909         * Makefile.in (integrate.o): Update dependencies.
2910         * doc/tm.texi: Update documentation of target attributes and
2911         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
2912         * tree.c (default_valid_attribute_p, valid_machine_attribute):
2913         Remove.
2914         (default_target_attribute_table,
2915         default_function_attribute_inlinable_p): New.
2916         (lookup_attribute): Update comment to clarify handling of multiple
2917         attributes with the same name.
2918         (merge_attributes, attribute_list_contained): Allow multiple
2919         attributes with the same name but different arguments to appear in
2920         the same attribute list.
2921         * tree.h (default_valid_attribute_p): Remove prototype.
2922         (struct attribute_spec): New.
2923         (default_target_attribute_table): Declare.
2924         (enum attribute_flags): Move from c-common.h.  Add
2925         ATTR_FLAG_TYPE_IN_PLACE.
2926         (default_function_attribute_inlinable_p): Declare.
2927         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
2928         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2929         (TARGET_ATTRIBUTE_TABLE): Define.
2930         (vms_attribute_table): New.
2931         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
2932         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2933         (TARGET_ATTRIBUTE_TABLE): Define.
2934         (arc_attribute_table, arc_handle_interrupt_attribute): New.
2935         * config/arm/arm.c (arm_valid_type_attribute_p,
2936         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
2937         Remove.
2938         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
2939         define.
2940         (TARGET_ATTRIBUTE_TABLE): Define.
2941         (arm_attribute_table, arm_handle_fndecl_attribute,
2942         arm_handle_isr_attribute): New.
2943         * config/avr/avr.c (avr_valid_type_attribute,
2944         avr_valid_decl_attribute): Remove.
2945         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
2946         define.
2947         (TARGET_ATTRIBUTE_TABLE): Define.
2948         (avr_attribute_table, avr_handle_progmem_attribute,
2949         avr_handle_fndecl_attribute): New.
2950         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
2951         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2952         (TARGET_ATTRIBUTE_TABLE): Define.
2953         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
2954         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
2955         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2956         (TARGET_ATTRIBUTE_TABLE): Define.
2957         (h8300_attribute_table, h8300_handle_fndecl_attribute,
2958         h8300_handle_eightbit_data_attribute,
2959         h8300_handle_tiny_data_attribute): New.
2960         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
2961         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
2962         Remove prototypes.
2963         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
2964         declarations.
2965         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
2966         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
2967         define.
2968         (TARGET_ATTRIBUTE_TABLE): Define.
2969         (ix86_attribute_table, ix86_handle_cdecl_attribute,
2970         ix86_handle_regparm_attribute): New.
2971         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
2972         i386_pe_valid_type_attribute_p): Remove.
2973         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
2974         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
2975         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2976         (TARGET_ATTRIBUTE_TABLE): Define.
2977         (ia64_attribute_table): New.
2978         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
2979         interrupt_ident2, model_ident1, model_ident2): Remove.
2980         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2981         (TARGET_ATTRIBUTE_TABLE): Define.
2982         (init_idents): Update.
2983         (m32r_attribute_table, m32r_handle_model_attribute): New.
2984         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
2985         Remove.
2986         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2987         (TARGET_ATTRIBUTE_TABLE): Define.
2988         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
2989         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
2990         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2991         (TARGET_ATTRIBUTE_TABLE): Define.
2992         (mcore_attribute_table, mcore_handle_naked_attribute): New.
2993         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
2994         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2995         (TARGET_ATTRIBUTE_TABLE): Define.
2996         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
2997         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
2998         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
2999         (TARGET_ATTRIBUTE_TABLE): Define.
3000         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
3001         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
3002         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3003         (TARGET_ATTRIBUTE_TABLE): Define.
3004         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
3005         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
3006         New.
3007         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
3008         Remove.
3009         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
3010         (TARGET_ATTRIBUTE_TABLE): Define.
3011         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
3012         New.
3013         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
3014         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3015         (TARGET_ATTRIBUTE_TABLE): Define.
3016         (v850_attribute_table, v850_handle_interrupt_attribute,
3017         v850_handle_data_area_attribute): New.
3018         * config/v850/v850-c.c (mark_current_function_as_interrupt):
3019         Return void.  Call decl_attributes instead of
3020         valid_machine_attribute.
3022 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
3024         * sh-protos.h (sh_pr_n_sets): Declare.
3025         * sh.c (calc_live_regs): If the initial value for PR has been copied,
3026         look at the copy to determine if PR needs to be saved.
3027         sh_pr_n_sets: New function.
3028         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
3029         (ALLOCATE_INITIAL_VALUE): Define.
3031         * sh.c (initial_elimination_offset):
3032         Fix RETURN_ADDRESS_POINTER_REGNUM case.
3034 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
3036         * integrate.c (allocate_initial_values): New function.
3037         * integrate.h (allocate_initial_values): Declare.
3038         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
3039         here...
3040         * reload1.c (reload): And initialization of reg_equiv_memory_loc
3041         from here...
3042         * toplev.c (rest_of_compilation): To here.
3043         Call allocate_initial_values.
3044         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
3046 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3048         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
3050 2001-09-20  DJ Delorie  <dj@redhat.com>
3052         * c-typeck.c (really_start_incremental_init): Discriminate
3053         between zero-length arrays and flexible arrays.
3054         (push_init_level): Detect zero-length arrays and handle them
3055         like fixed-sized arrays.
3056         * expr.c (store_constructor): Handle zero-length arrays and
3057         flexible arrays correctly.
3058         * doc/extend.texi: Update zero-length array notes.
3060 2001-09-20  Jim Wilson  <wilson@redhat.com>
3062         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
3063         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
3064         for issue port conflicts.
3065         (cycle_end_fill_slots): TYPE_L instructions take two slots.
3067 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
3069         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
3070         on ia64.
3072 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3074         * fold-const.c (hashtab.h): Include.
3075         (int_const_binop): Remove FORSIZE arg and compute from type; all
3076         callers changed.
3077         Call size_int_type_wide for all single-word constants.
3078         (size_htab_hash, size_htab_eq): New functions.
3079         (size_int_type_wide): Rework to use hash table.
3080         * ggc-common.c (hashtab.h): Include.
3081         (struct d_htab_root): New struct.
3082         (d_htab_roots): New variable.
3083         (ggc_add_deletable_htab, ggc_htab_delete): New functions
3084         (ggc_mark_roots): Handle deletable htabs.
3085         * ggc-page.c (ggc_marked_p): New function.
3086         * ggc-simple.c (ggc_marked_p): Likewise.
3087         * ggc.h: Reformatting throughout.
3088         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
3089         * tree.c (init_obstacks): Make type_hash_table a deletable root.
3090         (type_hash_add): Allocate struct type_hash from GC memory.
3091         (mark_hash_entry, mark_type_hash): Deleted.
3092         (type_hash_marked_p, type_hash_mark): New functions.
3093         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
3095 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
3097         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
3098         than SImode.
3100 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3102         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
3103         array-too-large test for signed sizetype.
3105 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3107         * i386.md (indirect_jump): Allow Pmode operand.
3108         (tablejump): LIkewise; perform expansion to 64bit mode.
3109         * i386.c (symbolic_operand): Allow 64bit PIC references.
3110         (pic_symbolic_operand): Likewise.
3111         (ix86_find_base_term): Strip the 64bit PIC references.
3112         (legitimate_pic_address_disp_p): Handle 64bit PIC.
3113         (legitimize_pic_address): Likewise.
3114         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
3115         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
3117 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
3119         * stringpool.c (get_identifier_with_length): New function.
3120         * tree.h (get_identifier_with_length): New prototype.
3122 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
3123             David Edelsohn  <edelsohn@gnu.org>
3125         Revert:
3126         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
3127         already sign-extended.
3129         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
3130         * config/rs6000/rs6000.c (logical_operand): Always compare op as
3131         HOST_WIDE_INT.
3132         (rs6000_emit_set_long_const): Avoid unnecessary shift.
3133         (output_profile_hook): Declare label_name const.
3134         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
3135         to match constraints.
3137 2001-09-19  Stan Shebs  <shebs@apple.com>
3139         * alias.c: Fix typos in comments.
3140         * sched-rgn.c (init_ready_list): Ditto.
3141         * unwind-dw2.c (uw_frame_state_for): Ditto.
3142         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
3143         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
3144         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
3146 2001-09-19  Richard Henderson  <rth@redhat.com>
3148         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
3149         to the exit block.
3150         * Makefile.in (cfg.o): Depend on TM_P_H.
3152 2001-09-19  Richard Henderson  <rth@redhat.com>
3154         * config/alpha/alpha.c (local_symbol_p): Split out from ...
3155         (local_symbolic_operand): ... here.
3156         (small_symbolic_operand): Check mode.
3157         (global_symbolic_operand): New.
3158         (input_operand): Reject symbolics if explicit relocs.
3159         (call_operand): Tidy.
3160         (alpha_legitimize_address): Use movdi_er_high_g.
3161         (alpha_expand_mov): Likewise.
3162         * config/alpha/alpha-protos.h: Update.
3163         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3164         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
3165         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
3166         (UNSPECV_LDGP2): Remove.
3167         (all call patterns): Use 's' not 'i' for symbolic constraint.
3168         (call_osf call_value_osf): Use call_operand.
3169         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
3170         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
3171         (prologue_ldgp_1_er): Remove.
3172         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
3173         (builtin_setjmp_receiver_er patterns): Use them.
3174         (exception_receiver_er): Likewise.
3176 2001-09-19  Richard Henderson  <rth@redhat.com>
3178         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
3180         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
3181         and NON_LOCAL_GOTO notes.
3182         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
3183         copy over CALL_INSN_FUNCTION_USAGE.
3185 2001-09-18  Catherine Moore  <clm@redhat.com>
3187         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
3188         Define as 0.
3190 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
3192         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
3193         new-style tm_file specification.  Specify correct tm_p_file,
3194         md_file, and out_file for s390x.
3196         * config/s390/linux.h, linux64.h:  Don't include other target
3197         macro header files.  Now handled via tm_file.
3199         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
3200         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
3201         are defined before use.
3203 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
3205         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
3206         code generation only for Gnu assembler.
3208 2001-09-18  Catherine Moore  <clm@redhat.com>
3210         * config/stormy16 (LIB_SPEC): Remove -lnosys.
3212 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
3214         * config/mips/mips.c (mips_frame_set): New.
3215         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
3216         a parallel frame-related expression with a set for each register.
3218 2001-09-18  Philip Blundell  <philb@gnu.org>
3220         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
3221         header files.
3223 2001-09-17  Dale Johannesen  <dalej@apple.com>
3225         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
3226         * config/rs6000/aix.h (FIXED_R2): Define.
3227         * config/rs6000/darwin.h (FIXED_R2): Define.
3228         * config/rs6000/sysv4.h (FIXED_R2): Define.
3230 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
3232         * except.c (dw2_build_landing_pads): New local
3233         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
3234         barrier after clobbers.  Fixes c++/4012.
3236 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3238         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
3240 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3242         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
3243         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
3245 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3247         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
3248         alloca/strcpy.
3250 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3252         * cpphash.h (_cpp_lex_direct): New.
3253         * cpplex.c (_cpp_lex_token): Update.
3254         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
3255         and increment that pointer.
3256         * cppmacro.c (alloc_expansion_token): New.
3257         (lex_expansion_token): Lex macro expansion directly into
3258         macro storage.
3260 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
3262         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
3264 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
3266         * basic-block.h (free_bb_for_insn): Declare.
3267         * bb-reorder.c (label_for_bb): Use block_label.
3268         (emit_jump_to_block_after): Remove.
3269         (insert_intra_1): Do not update block_for_insn.
3270         (insert_inter_bb_scope_notes): Likewise; update bb->end
3271         * cfg.c (free_bb_for_insn): New.
3272         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
3273         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
3274         (commit_one_edge_insertion): Likewise.
3275         (commit_one_edge_insertion): Do not update BB boundary.
3276         (commit_edge_insertions): Do not call compute_bb_for_insn.
3277         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
3278         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
3279         (merge_blocks_move_successor_nojumps): Likewise.
3280         (try_crossjump_to_edge): Do not update block_for_insn.
3281         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
3282         * df.c (df_pattern_emit_later): Do not update BB boundary.
3283         (df_jump_pattern_emit_after): Likewise.
3284         (df_insn_move_before): Use emit_insn_before.
3285         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
3286          properly.
3287         (add_insn_after, add_insn_before, emit_insns_after): Update BB
3288         boundaries and basic_block_for_insn.
3289         (reorder_insns_nobb): Rename from reorder_insns.
3290         (reorder_insns): New.
3291         (emit_block_insn_before, emit_block_insn_after): Kill.
3292         * flow.c (check_function_return_warnings): Do not call
3293         compute_bb_for_insn; Do not free basic_block_for_insn.
3294         (attempt_auto_inc): Do not update basic_block_for_insn.
3295         * function.c (emit_return_into_block): Likewise;
3296         do not update BB boundaries.
3297         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
3298         (insert_insn_end_bb): Use emit_insn_before; Likewise.
3299         (pre_insert_copy_insn): Likewise.
3300         (update_ld_motion_notes): Likewise.
3301         (insert_insn_start_bb): Likewise.
3302         (replace_store_insn): Likewise.
3303         * ifcvt.c (noce_process_if_block): Likewise.
3304         (if_convert): Do not call compute_bb_for_insn.
3305         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
3306         Use emit_insn_before and emit_insn_after.
3307         * recog.c (split_all_insns): Do not update BB boundaries;
3308         Do not call compute_bb_for_insn.
3309         (peephole2_optimize): Do not update BB boundaries.
3310         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
3311         emit_insn_before.
3312         (emit_swap_insn): Likewise.
3313         (convert_regs_1): Likewise.
3314         * reload1.c (reload): Call compute_bb_for_insn.
3315         * rtl.h (reorder_insns_nobb): Declare.
3316         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
3317         * toplev.c (rest_of_compilation): Call free_bb_for_insn
3318         at places CFG is invalidated; do not call compute_bb_for_insn.
3320         * cfg.c (expunge_block): Invalidate BB structure.
3322         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
3323         array.
3325         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
3327 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3329         * cpphash.h (_cpp_lex_token): Update prototype.
3330         * cpplex.c (_cpp_lex_token): New prototype.
3331         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
3332         lex_macro_node, read_flag, do_pragma_poison): Update.
3333         * cppmacro.c (cpp_get_token, parse_params,
3334         lex_expansion_token): Update.
3336 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3338         * cppmain.c (scan_translation_unit): Don't worry about
3339         putting a space after hashes.
3340         * cpplib.c (directive_diagnostics): New.
3341         (_cpp_handle_directive): Update to use directive_diagnostics.
3342         (run_directive): Don't toggle prevent_expansion.
3343         (do_line): Backup in case of the line extension.
3344         * cpplib.h (cpp_lexer_pos): Remove.
3345         * cppmacro.c (_cpp_create_definition): Precede a leading #
3346         with whitespace.
3348 2001-09-15  Richard Henderson  <rth@redhat.com>
3350         * c-typeck.c (comptypes): Handle zero-length arrays properly.
3352 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3354         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
3356 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3358         PR preprocessor/3571
3359         * tradcpp.c (handle_directive): Skip non-vertical space.
3361 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3363         * cppmain.c (setup_callbacks): Set line callback only
3364         if outputting preprocessed source.
3366 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3368         * collect2.c (main): Const-ification.
3369         * gcc.c (translate_options, process_command): Use xstrdup in
3370         lieu of xmalloc/strcpy.
3371         (main): Use concat in lieu of xmalloc/strcpy/strcat.
3373 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3375         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
3376         example.
3378 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3380         * scan-decls.c (scan_decls): Fix typo.
3382 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3384         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
3385         Split mlstring_pos into mls_line and mls_col.
3386         * cppinit.c (cpp_create_reader): Initialize line to 1.
3387         (cpp_destroy): Free tokenruns.
3388         (push_include): Don't update lexer_pos.
3389         * cpplex.c (unterminated, parse_string): Update.
3390         (lex_token): Don't update lexer_pos, update.
3391         * cpplib.c (if_stack): Save line instead of line + col.
3392         (start_directive, _cpp_do__Pragma, do_else, do_elif,
3393         push_conditional, _cpp_pop_buffer): Update.
3394         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
3395         (_cpp_create_definition): Update.
3397 2001-09-15  Eric Christopher  <echristo@redhat.com>
3399         * config/mips/abi64.h: Add support for MEABI.
3401 2001-09-15  Eric Christopher  <echristo@redhat.com>
3403         * config/mips/mips.md: Add unspec #2.
3404         (reload_indi): Use.
3405         (reload_outdi): Ditto.
3406         (reload_outsi): Ditto.
3407         (HILO_delay): New.
3409 2001-09-15  Eric Christopher  <echristo@redhat.com>
3410             Jason Eckhardt  <jle@redhat.com>
3412         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
3413         * config/mips/isa32-linux.h: New file.
3414         * config/mips/isa3264.h: Ditto.
3415         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
3416         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
3417         (output_block_mode): Support MEABI.
3418         (function_arg): Ditto. Fix floating point arg passing.
3419         (mips_va_start): Ditto.
3420         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
3421         processors.
3422         (mips_asm_file_start): Add new section to pass abi to gdb.
3423         (function_arg_pass_by_reference): Support MEABI.
3424         (mips_parse_cpu): Support mips32 and mips64 processors.
3425         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
3426         TARGET_MIPS5KC.  Support isa32 and isa64.
3427         (processor_type): Add r4kc, r5kc, r20kc.
3428         (GENERATE_MULT3_SI): New.
3429         (GENERATE_MULT3_DI): Ditto.
3430         (GENERATE_MULT3): Remove.
3431         (ISA_HAS_64BIT_REGS): Add isa == 64.
3432         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
3433         (ISA_HAS_MADD_MSUB): New.
3434         (ISA_HAS_CLZ_CLO): Ditto.
3435         (ISA_HAS_DCLZ_DCLO): Ditto.
3436         (ABI_GAS_ASM_SPEC): New.
3437         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
3438         (ASM_SPEC): Ditto.
3439         (LINK_SPEC): Ditto.
3440         (SUBTARGET_CC1_SPEC): Ditto.
3441         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3442         (PAD_VARARGS_DOWN): Support MEABI.
3443         (HARD_REGNO_NREGS): Move to mips.c.
3444         (ASM_OUTPUT_IDENT): Add #undef.
3445         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
3446         (mulsi3): Use GENERATE_MULT3_SI.
3447         (mulsi3_mult3): Ditto.  Support mips32, mips64.
3448         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
3449         (mul_sub_si): New pattern.
3450         (unnamed splitters): New.
3451         (muldi3): Use GENERATE_MULT3_DI.
3452         (muldi3_internal2): Ditto.
3453         (movdicc): Support mips32.
3454         * config/mips/t-isa3264: New file.
3456 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
3458         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
3459         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
3460         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
3462         * reorg.c (fill_slots_from_thread): After call to
3463         steal_delay_list_from_target, update own_thread as new_thread may
3464         have branched.
3466 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3468         * cpperror.c (print_location): Take line and column, for
3469         default positioning use the previously lexed token.
3470         (_cpp_begin_message): Take line and column.
3471         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3472         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
3473         * cpphash.h (_cpp_begin_message): Update prototype.
3474         * cppinit.c (push_include): Don't set output line.
3475         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
3476         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
3477         (do_pragma): Kludge for front ends.  Don't expand macros at all.
3478         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
3479         (struct cpp_token): Remove output_line.
3480         (struct cpp_callbacks): New member line_change.
3481         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
3482         cpp_get_token): Preserve BOL flag.
3483         (cpp_get_line): Remove.
3484         (_cpp_backup_tokens): Remove useless abort().
3485         * cppmain.c (cb_line_change): New.
3486         (scan_translation_unit): Don't worry about starting new lines here.
3487         * scan-decls.c (scan_decls): Update.
3488         * c-lex.c (c_lex, init_c_lex): Update.
3489         (cb_line_change, src_lineno): New.
3491 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
3493         * tree.c (append_random_chars): Generate the random
3494         characters in a reproducable fashion.
3496 2001-09-14  Richard Henderson  <rth@redhat.com>
3498         * config/i386/i386.c (internal_label_prefix): New.
3499         (internal_label_prefix_len): New.
3500         (override_options): Set them.
3501         (local_symbolic_operand): New.
3502         (legitimate_pic_address_disp_p): Use it.
3503         (legitimize_pic_address): Likewise.
3505 2001-09-14  Marc Espie <espie@openbsd.org>
3507         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
3508         correctly.
3510 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3512         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
3513         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
3515 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
3517         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
3518         invocation of SUBREG_REGNO_OFFSET.
3520         * haifa-sched.c: Fix typo in FSF copyright statement.
3521         * sched-deps.c: Fix typo in FSF copyright statement.
3522         * sched-ebb.c: Fix typo in FSF copyright statement.
3523         * sched-rgn.c: Fix typo in FSF copyright statement.
3524         * sched-vis.c: Fix typo in FSF copyright statement.
3526         * config.gcc: Move inclusion of arm elf specific header files
3527         from the files themselves into the tm_file variable.  Make
3528         sure that elfos.h is included before target specific elf
3529         headers.
3530         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
3531         already defined.
3532         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
3533         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
3534         ASM_OUTPUT_CASE_LABEL): Protect definition.
3535         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
3536         not already defined.
3537         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
3538         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
3539         Remove duplicate definition.
3540         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
3541         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
3542         (RDATA_SECTION_FUNCTION): Remove redundant definition.
3543         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
3544         Remove inclusion of arm/elf.h.
3545         * config/arm/unknown-elf.h: as for conix-elf.h.
3546         (STARTFILE_SPEC): Include crti.o and crtn.o.
3547         * config/arm/linux-elf.h: as for conix-elf.h.
3548         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
3549         * config/arm/strongarm-elf.h: Remove inclusion of
3550         unknown-elf.h.
3551         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
3552         * config/arm/unknown-elf-oabi.h: Remove inclusion of
3553         unknown-elf.h and elf.h.
3554         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
3555         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
3556         ASM_WEAKEN_LABEL): Remove redundant definition.
3557         * config/arm/elf.h: Test for inclusion of elfos.h
3558         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
3559         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
3560         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
3561         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
3562         redundant definition.
3563         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
3564         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
3565         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
3566         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
3567         Add rules to build crti.o and crtn.o
3568         * crti.asm: New file.
3569         * crtn.asm: New file.
3571 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3573         * c-parse.in (_yylex): Use _cpp_backup_tokens.
3574         * cpphash.h (struct tokenrun): Add prev.
3575         (struct lexer_state): Remove bol.
3576         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
3577         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
3578         : Remove.
3579         * cppinit.c (cpp_create_reader): Don't set bol.
3580         (cpp_destroy): Don't free lookaheads.
3581         * cpplex.c (lex_directive): Remove.
3582         (next_tokenrun): Update.
3583         (_cpp_lex_token): Clean up logic.
3584         (lex_token): Update to return a pointer to lexed token, since it
3585         can move to the start of the buffer.  Simpify newline handling.
3586         * cpplib.c (SEEN_EOL): Update.
3587         (skip_rest_of_line): Remove lookahead stuff.
3588         (end_directive): Line numbers are already incremented.  Revert
3589         to start of lexed token buffer if we can.
3590         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
3591         parse_answer): Use _cpp_backup_tokens.
3592         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
3593         instead.  Don't check for EOL.
3594         (do_include_common, do_line, do_pragma_system_header): Use
3595         skip_rest_of_line.
3596         * cpplib.h (BOL, _cpp_backup_tokens): New.
3597         * cppmacro.c (save_lookahead_token, take_lookahead_token,
3598         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
3599         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
3600         (builtin_macro): Don't use cpp_get_line.
3601         (cpp_get_line): Short term kludge.
3602         (parse_arg): Handle directives in arguments here.  Back up when
3603         appropriate.  Store EOF at end of argument list.
3604         (funlike_invocation_p): Use _cpp_backup_tokens.
3605         (push_arg_context): Account for EOF at end of list.
3606         (cpp_get_token): Remove lookahead stuff.  Update.
3608 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3610         * c-parse.in (yyerror): Const-ification and/or static-ization.
3611         * c-typeck.c (push_member_name): Likewise.
3612         * collect2.c (main): Likewise.
3613         * dbxout.c (dbxout_parms): Likewise.
3614         * diagnostic.c (format_with_decl): Likewise.
3615         * dwarf2out.c (output_ranges): Likewise.
3616         * dwarfout.c (fundamental_type_code): Likewise.
3617         * except.c (dw2_output_call_site_table): Likewise.
3618         * gcc.c (do_spec_1): Likewise.
3619         * genopinit.c (optabs): Likewise.
3620         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
3621         gen_declaration_1, handle_impent): Likewise.
3622         * protoize.c (default_include, in_system_include_dir, abspath):
3623         Likewise.
3624         * sched-vis.c (visualize_stall_cycles): Likewise.
3625         * sdbout.c (plain_type_1, sdbout_end_function,
3626         sdbout_end_epilogue): Likewise.
3627         * varasm.c (decode_reg_name): Likewise.
3629         * 1750a.c (mod_regno_adjust): Likewise.
3630         * alpha.c (alpha_write_one_linkage,
3631         unicosmk_output_default_externs): Likewise.
3632         * arm.c (arm_condition_codes): Likewise.
3633         * arm.h (arm_condition_codes): Likewise.
3634         * avr.c (output_movsisf, encode_section_info): Likewise.
3635         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
3636         Likewise.
3637         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3638         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3639         * m88k.c (output_function_profiler): Likewise.
3640         * mips.c (mips_output_conditional_branch): Likewise.
3641         * ns32k.c (ns32k_out_reg_names): Likewise.
3642         * ns32k.h (ns32k_out_reg_names): Likewise.
3643         * pj.c (pj_output_rval): Likewise.
3644         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
3645         * sparc.c (sparc_flat_function_prologue,
3646         sparc_flat_function_epilogue): Likewise.
3648 2001-09-13  Markus Werle <numerical.simulation@web.de>
3649             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3651         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
3652         Aachen University of Technology".
3654 2001-09-13  Andreas Schwab  <schwab@suse.de>
3656         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
3657         C99.
3659 2001-09-13  Richard Henderson  <rth@redhat.com>
3661         * config/alpha/alpha.c (small_symbolic_operand): New.
3662         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
3663         (some_operand, input_operand): Don't handle HIGH.
3664         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
3665         (alpha_expand_mov): Likewise.
3666         (print_operand) [H]: Just print HIGH symbol.
3667         (print_operand_address): Handle small data.
3668         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
3669         (TARGET_SWITCHES): Add -msmall-data/large-data.
3670         (PIC_OFFSET_TABLE_REGNUM): New.
3671         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
3672         (PREDICATE_COES): Update.
3673         * config/alpha/alpha.md (adddi_er_high): New.
3674         (adddi_er_low): Handle small data.
3675         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
3676         prefer .sdata to .rodata.
3677         (SELECT_RTX_SECTION): Likewise.
3679 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
3681         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
3682         defining __size_t and leaving size_t undefined.
3684 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
3686         * basic-block.h (expunge_block): Declare.
3687         * cfg.c (expunge_block): Remove static declaration.
3689 2001-09-12  Richard Henderson  <rth@redhat.com>
3691         * integrate.c (copy_insn_list): Copy label name from
3692         NOTE_INSN_DELETED_LABEL.
3694 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3696         * c-common.c (c_tree_code_name): Const-ification.
3697         * c-decl.c (c_decode_option): Likewise.
3698         * c-typeck.c (warn_for_assignment): Likewise.
3699         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
3700         Likewise.
3701         * cppinit.c (output_deps): Likewise.
3702         * dependence.c (dependence_string, direction_string): Likewise.
3703         * dwarf2out.c (output_ranges): Likewise.
3704         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
3705         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
3706         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
3707         standard_startfile_prefix, standard_startfile_prefix_1,
3708         standard_startfile_prefix_2, tooldir_base_prefix,
3709         standard_bindir_prefix, find_a_file): Likewise.
3710         * genattrtab.c (make_length_attrs): Likewise.
3711         * gencheck.c (tree_codes): Likewise.
3712         * genemit.c (gen_split): Likewise.
3713         * genrecog.c (special_mode_pred_table): Likewise.
3714         * graph.c (graph_ext): Likewise.
3715         * protoize (default_include): Likewise.
3716         * reload.c (reload_when_needed_name): Likewise.
3717         * sched-vis.c (visualize_stall_cycles): Likewise.
3718         * tlink.c (recompile_files): Likewise.
3719         * toplev.c (decode_g_option): Likewise.
3720         * tradcpp.c (output_deps): Likewise.
3721         * varasm.c (decode_reg_name): Likewise.
3723         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
3724         Const-ification.
3725         * arm.md: Likewise.
3726         * avr.c (avr_regnames, encode_section_info): Likewise.
3727         * c4x.c (float_reg_names): Likewise.
3728         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
3729         * elfos.h (const_section): Likewise.
3730         * i386.c (ix86_comp_type_attributes): Likewise.
3731         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
3732         * ia64/aix.h (UNIQUE_SECTION): Likewise.
3733         * ia64.c (type_names): Likewise.
3734         * m68hc11.c (reg_class_names): Likewise.
3735         * m88k.c (m_options): Likewise.
3736         * mips.c (mips_output_conditional_branch, mips_unique_section):
3737         Likewise.
3738         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3739         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
3740         ultra_code_names): Likewise.
3741         * sparc.h (OVERRIDE_OPTIONS): Likewise.
3743 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3745         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
3746         Use --fatal-warnings option for gas.
3747         * configure: Rebuilt.
3749 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3751         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
3753 2001-09-11  Jim Wilson  <wilson@redhat.com>
3755         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
3757 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3759         * builtins.c (c_strlen): Treat an offset too large for a
3760         HOST_WIDE_INT as out of range.
3762 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
3764         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
3765         (EDGE_CRITICAL_P): New predicate.
3766         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
3767         handling.
3768         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
3769         (dump_edge_info): Remove "crit".
3770         * cfganal.c (mark_critical_edges): Kill.
3771         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
3772         * cfgcleanup.c (cleanup_cfg): Likewise.
3773         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
3774         (find_spanning_tree): Likewise.
3775         * reg-stack.c (convert_regs_1): Likewise.
3776         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
3778         * basic-block.h (create_basic_block_structure): New.
3779         (create_basic_block): Update prototype.
3780         (force_nonfallthru): New.
3781         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
3782         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
3783         handle updating of block_for_insn, creating of empty BBs and BBs at
3784         the end of INSN chain.
3785         (create_basic_block): New function.
3786         (split_block): Use create_basic_block.
3787         (force_nonfallthru_and_redirect): Break out from ...; cleanup
3788         (redirect_edge_and_branch_force): ... here.
3789         (force_nonfallthru): New.
3790         (split_edge): Rewrite to use force_nonfallthru and create_block.
3791         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
3792         (find_basic_blocks): Free basic_block_for_insn.
3793         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
3795         * cfg.c: Fix formating.
3796         * cfgcleanup.c: Fix formating.
3797         (merge_blocks, tail_recursion_label_p): Return bool.
3798         (merge_blocks_move_predecessor_nojumps,
3799          merge_blocks_move_successor_nojumps): Return void.
3801 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
3803         * configure.in: Check whether assembler supports section merging.
3804         * config.in: Rebuilt.
3805         * configure: Rebuilt.
3806         * varasm.c (variable_section, output_constant_pool): Pass alignment
3807         to SELECT_SECTION and SELECT_RTX_SECTION.
3808         (mergeable_string_section): New.
3809         (mergeable_constant_section): New.
3810         (default_elf_asm_named_section): Output SECTION_MERGE and
3811         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3812         * output.h (mergeable_string_section): New.
3813         (mergeable_constant_section): New.
3814         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
3815         * toplev.c (flag_merge_constants): New.
3816         (f_options): Add -fmerge-constants and -fmerge-all-constants
3817         options.
3818         (toplev_main): Default to -fno-merge-constants if not optimizing.
3819         * flags.h (flag_merge_constants): Add extern.
3820         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
3821         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
3822         argument.
3823         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
3824         Define if assembler has working .subsection -1 support.
3825         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
3826         Put constant into special SHF_MERGE sections if the linker should
3827         attempt to merge duplicates.
3828         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
3829         macro argument.
3830         Put constant into special SHF_MERGE sections if the linker should
3831         attempt to merge duplicates.
3832         * config/alpha/elf.h: Likewise.
3833         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
3834         has working .subsection -1 support.
3835         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
3836         SELECT_SECTION.
3837         * config/svr3.h: Likewise.
3838         * config/darwin.h: Likewise.
3839         * config/arm/aof.h: Likewise.
3840         * config/arm/linux-elf.h: Likewise.
3841         * config/avr/avr.h: Likewise.
3842         * config/c4x/c4x.h: Likewise.
3843         * config/d30v/d30v.h: Likewise.
3844         * config/i386/dgux.h: Likewise.
3845         * config/i386/osfrose.h: Likewise.
3846         * config/i386/sco5.h: Likewise.
3847         * config/i386/svr3gas.h: Likewise.
3848         * config/ia64/aix.h: Likewise.
3849         * config/m32r/m32r.h: Likewise.
3850         * config/m68k/m68k.h: Likewise.
3851         * config/m88k/dgux.h: Likewise.
3852         * config/m88k/m88k.h: Likewise.
3853         * config/mcore/mcore-pe.h: Likewise.
3854         * config/mips/mips.h: Likewise.
3855         * config/pa/pa.h: Likewise.
3856         * config/pa/pa-linux.h: Likewise.
3857         * config/romp/romp.h: Likewise.
3858         * config/rs6000/sysv4.h: Likewise.
3859         * config/rs6000/xcoff.h: Likewise.
3860         * config/s390/linux.h: Likewise.
3861         * config/sparc/sparc.h: Likewise.
3862         * config/sparc/sysv4.h: Likewise.
3863         * config/stormy16/stormy16.h: Likewise.
3864         * config/v850/v850.h: Likewise.
3865         * config/vax/vms.h: Likewise.
3866         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
3867         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3868         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
3869         default_elf_asm_named_section for SHF_MERGE sections.
3871 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3873         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
3874         is OK.
3876 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3878         * c-common.c (split_specs_attrs): Allow for empty attributes with
3879         empty TREE_PURPOSE.  Fixes PR c/4294.
3881 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
3883         * basic-block.h (cached_make_edge, make_single_succ): New.
3884         (make_edge): Remove first parameter.
3885         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
3886         * cfg.c (cached_make_edge): Rename from make_edge; return newly
3887         created edge; use obstack allocation.
3888         (make_edge, make_single_succ_edge): New.
3889         (first_removed_edge): New static variable.
3890         (init_flow): Initialize first_removed_edge and n_edges.
3891         (clear_edges): Use remove_edge.
3892         (flow_delete_block): Likewise.
3893         (remove_edge): Add removed edges to the removed edges list.
3894         (split_block, redirect_edge_and_branch_force, split_edge):
3895         Use make_edge.
3896         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
3897         (add_noreturn_fake_exit_edges): Likewise.
3898         (connect_infinite_loops_to_exit): Liekwise.
3899         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
3900         Use cached_make_edge.
3901         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
3902         * profile.c (branch_prob): Update make_edge call.
3903         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3905 2001-09-11  Richard Henderson  <rth@redhat.com>
3907         * config/alpha/alpha.c: Tidy formatting.
3908         (local_symbolic_operand): Verify mode.
3909         (alpha_sa_mask): Ignore unicos for eh_return.
3910         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
3911         * config/alpha/alpha.md (umk divsi patterns): Remove.
3912         (extendsfdf2): Remove unicos check.
3913         (tablejump): Merge vms and unicos code; always use direct set
3914         plus label_ref use.
3916 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3918         * config.gcc (alpha*-*-unicosmk*): New target.
3920         * config/alpha/alpha-protos.h (symbolic_operand,
3921         unicosmk_add_call_info_word, unicosmk_add_extern,
3922         unicosmk_defer_case_vector, unicosmk_unique_section,
3923         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
3924         unicosmk_asm_file_start, unicosmk_asm_file_end,
3925         unicosmk_output_common): Declare.
3927         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
3928         direct_return, function_arg, alpha_va_start, alpha_va_arg,
3929         alpha_does_function_need_gp, alpha_end_function): Support Cray
3930         Unicos/Mk.
3931         (alpha_init_machine_status, alpha_mark_machine_status,
3932         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
3933         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
3934         unicosmk_asm_named_section, unicosmk_insert_attributes,
3935         unicosmk_section_type_flags, symbolic_operand,
3936         unicosmk_output_module_name, unicosmk_output_default_externs,
3937         unicosmk_output_dex, unicosmk_output_externs,
3938         unicosmk_output_addr_vec, unicosmk_ssib_name,
3939         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
3940         unicosmk_asm_file_end, unicosmk_output_common,
3941         unicosmk_section_type_flags, unicosmk_unique_section,
3942         unicosmk_add_call_info_word, unicosmk_text_section,
3943         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
3944         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
3945         unicosmk_dex_count, unicosmk_special_name): New.
3946         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
3947         TARGET_ABI_UNICOSMK.
3948         (get_aligned_mem, alpha_expand_unaligned_load,
3949         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
3950         alpha_expand_unaligned_store_words): Support big-endian mode.
3951         (print_operand): Likewise. New format specifier 't'. Use
3952         TARGET_AS_SLASH_BEFORE_SUFFIX.
3953         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
3954         (alpha_pv_save_size): Update with above change.
3955         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
3956         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
3957         Unicos/Mk.
3959         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
3960         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
3961         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
3962         (EXTRA_CONSTRAINT): New constraint 'U'.
3963         (PREDICATE_CODES): Add symbolic_operand.
3965         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
3966         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
3967         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
3968         (integer division and modulus patterns): Split in default and
3969         Unicos/Mk versions.
3970         (*divmodsi_internal, *divmoddi_internal): Disable for
3971         TARGET_ABI_UNICOSMK.
3972         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
3973         little-endian and big-endian versions.
3974         (ext, ins, msk): Likewise.
3975         (extv, extzv, insv): Support big-endian mode.
3976         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
3977         (call_umk, call_value_umk, *call_umk, tablejump_umk,
3978         *tablejump_umk_internal, *call_value_umk): New.
3979         (*movdi_nofix): Add pattern for loading an address into a register on
3980         TARGET_ABI_UNICOSMK.
3981         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
3982         (umk_mismatch_args, arg_home_umk): New.
3983         (various insns): Don't use mov, fmov, nop, fnop and unop.
3984         (realign): Support TARGET_ABI_UNICOSMK.
3986         * config/alpha/unicosmk.h: New file.
3987         * config/alpha/t-unicosmk: New file.
3989         * fixinc/inclhack.def (unicosmk_restrict): New.
3990         * fixinc/fixincl.x: Regenerate.
3992         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
3993         (wchar_t): Check for and define __WCHAR_T__.
3995 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
3997         * combine.c (simplify_shift_const): Treat shifts by the mode
3998         size as undefined.
4000 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4002         * cpphash.h (struct tokenrun): New.
4003         (struct cpp_context): New member bol.
4004         (struct cpp_reader): New members.
4005         (_cpp_init_tokenrun): New.
4006         * cppinit.c (cpp_create_reader): Set up the token runs.
4007         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
4008         (lex_token): New internalised version of _cpp_lex_token.  Don't
4009         handle directives or the multiple include opimisation here any
4010         more.  Simply lex a token.
4011         * cpplib.c (run_directive): Clear bol.
4012         (_cpp_pop_buffer): Set bol.
4013         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
4014         arguments.
4016 2001-09-11  Michael Meissner  <meissner@redhat.com>
4018         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
4019         give an error if the user uses -mfp32.
4020         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
4021         default options.
4022         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
4023         floating point register size.
4024         (EXTRA_SPECS): Add CPP_FPR_SPEC.
4026         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
4027         HOST_WIDE_INT_PRINT_DEC to properly print the result of
4028         int_size_in_bytes.
4029         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4030         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4032 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
4034         * dbxout.c (dbxout_parms): Fix typo in comment.
4035         * unroll.c (loop_find_equiv_value): Ditto.
4036         * toplev.c (rest_of_compilation): Ditto.
4037         * loop.c (scan_loop): Ditto.
4038         * dwarf2out.c (struct dw_fde_struct): Ditto.
4040 2001-09-10  Zack Weinberg  <zackw@panix.com>
4042         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
4043         copying identifier when we're just going to throw it away.
4044         (parse_identifier_slow): New routine to handle abnormal cases.
4045         (_cpp_lex_token): Update call site.
4047         * hashtable.c (ht_lookup): Don't assume that the string we've
4048         been given is NUL-terminated.
4049         * system.h: #define __builtin_expect(a, b) to (a) if not
4050         GCC >=3.0.
4052 2001-09-10  Michael Meissner  <meissner@redhat.com>
4054         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
4055         binutils, gdb.
4057 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
4059         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
4061 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4063         * builtins.c (c_getstr): Correct thinko in last change and further
4064         cleanup.
4066 2001-09-10  Tim Freeman <tim@fungibole.com>
4068         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
4069         into varray's and register them as roots with the garbage
4070         collector so they are not collected too soon.
4072 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
4074         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
4075         New.
4076         * basic-block.h (flow_obstack, label_value_list,
4077         tail_recursion_label_list): Declare
4078         (tidy_fallthru_edges): Declare.
4079         (expunge_block, last_loop_beg_note): Delete.
4080         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
4081         * cfg.c: New file
4082         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
4083         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
4084         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
4085         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
4086         expunge_block, flow_delete_block, compute_bb_for_insn,
4087         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
4088         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
4089         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
4090         try_redirect_by_replacing_jump, last_loop_beg_note,
4091         redirect_edge_and_branch, redirect_edge_and_branch_force,
4092         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
4093         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
4094         commit_edge_insertions, dump_flow_info, debug_flow_info,
4095         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
4096         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
4097         Move here from flow.c
4098         * cfganal.c: New file.
4099         (forwarder_block_p, can_fallthru, mark_critical_edges,
4100          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
4101          find_unreachable_blocks, create_edge_list, free_edge_list,
4102          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
4103          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
4104          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
4105          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
4106          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
4107          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
4108         Move here from flow.c
4109         * cfgbuild.c: New file
4110         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
4111          make_edges, find_basic_blocks_1, find_basic_blocks,
4112          find_sub_basic_blocks): Move here from flow.c
4113         * cfgcleanup.c: New file.
4114         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
4115          merge_blocks_move_predecessor_nojumps,
4116          merge_blocks_move_successor_nojumps, merge_blocks,
4117          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4118          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
4119         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
4120         if succeeded.
4121         * cfgloop.c: New file
4122         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
4123          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
4124          flow_loop_exit_edges_find, flow_loop_nodes_find,
4125          flow_loop_pre_header_scan, flow_loop_pre_header_find,
4126          flow_loop_tree_node_add, flow_loops_tree_build,
4127          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
4128          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
4129         Move here from flow.c
4130         * flow.c: Remove everything moved elsewhere
4131         * output.h (cleanup_cfg): Return bool.
4133         * bb-reorder.c (reorder_block_def): Remove 'index'.
4134         (insert_intra_1): Add argument BB, set block for new note.
4135         (make_reorder_chain): Do not depdent on BB indexes.
4136         (make_reorder_chain_1): Do not use BB indexes.
4137         (label_for_bb): Likewise; set BB for new insn.
4138         (emit_jump_to_block_after): Likewise.
4139         (fixup_reoder_chain): Sanity check that all basic blocks
4140         are chained; verify newly created insn chain; remove
4141         undocnitional jump simplifying; Do not use BB indexes;
4142         properly initialize count and frequency information;
4143         dump reordered sequence.
4144         (insert_intra_bb_scope_notes): update call of insert_intra_1.
4145         (insert_inter_bb_scope_notes): Set block for new insn.
4146         (reorder_basic_blocks): Dump flow info before reoredering.
4148 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4150         * alias.c (clear_reg_alias_info): Use K&R format definition.
4151         Avoid unsigned warning.
4152         * builtins.c: Use "unsigned int", not "unsigned".
4153         (target_char_cast): Use host_integerp and tree_low_cst.
4154         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
4155         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
4156         (c_getstr): Likewise.
4157         (std_expand_builtin_va_arg): Use int_size_in_bytes.
4158         (builtin_memcpy_read_str): Avoid unsigned warning.
4159         (expand_builtin_memcpy): Alignments are unsigned.
4160         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
4161         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
4162         * predict.c (expensive_function_p): LIMIT now unsigned.
4163         * resource.c (mark_target_live_regs): Make some vars unsigned.
4164         * sdbout.c: Use "unsigned int", not "unsigned".
4165         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
4166         (sdbout_source_line): Likewise.
4167         (sdbout_record_type_name): Remove "const" for NAME declaration.
4168         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
4170 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
4172         * calls.c (store_one_arg): Expand comment.
4174 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4176         * calls.c (store_one_arg): Make sure that the entire argument is
4177         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
4179 2001-09-09  Richard Henderson  <rth@redhat.com>
4181         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
4183 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
4185         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
4187 2001-09-09  Richard Henderson  <rth@redhat.com>
4189         * config/alpha/alpha.c (alpha_next_sequence_number): New.
4190         (alpha_this_literal_sequence_number): New.
4191         (alpha_this_gpdisp_sequence_number): New.
4192         (some_operand, input_operand): Add HIGH.
4193         (local_symbolic_operand): New.
4194         (alpha_encode_section_info): New.
4195         (alpha_legitimate_address_p): Allow LO_SUM.
4196         (alpha_legitimize_address): Generate HIGH+LO_SUM.
4197         (alpha_expand_mov): Likewise.
4198         (secondary_reload_class): Check memory_operand not general_operand
4199         for FP_REGS test.
4200         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
4201         (alpha_expand_unaligned_store): Likewise.
4202         (alpha_expand_unaligned_load_words): Likewise.
4203         (alpha_expand_unaligned_store_words): Likewise.
4204         (alpha_expand_block_clear): Likewise.
4205         (print_operand): Handle %#, %*, %H.
4206         (print_operand_address): Handle LO_SUM.
4207         (find_lo_sum): New.
4208         (alpha_does_function_need_gp): Use it.
4209         (alpha_expand_block_move): Fix signed compare warnings.
4210         (alpha_sa_mask, alpha_align_insns): Likewise.
4211         * config/alpha/alpha-protos.h: Update.
4212         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
4213         (MASK_EXPLICIT_RELOCS): New.
4214         (TARGET_SWITCHES): Add -mexplicit-relocs.
4215         (EXTRA_CONSTRAINT): Add 'T'.
4216         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
4217         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
4218         (ENCODE_SECTION_INFO): Out line.
4219         (REDO_SECTION_INFO_P): New.
4220         (STRIP_NAME_ENCODING): New.
4221         (ASM_OUTPUT_LABELREF): New.
4222         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
4223         (PREDICATE_CODES): Update.
4224         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
4225         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
4226         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
4227         builtin_setjmp_receiver_er, exception_receiver_1_er,
4228         call_value_osf_1_er): New patterns.
4229         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
4230         (movqi, movhi, movsi): Add explicit $31 base register to lda.
4231         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
4232         (FINAL_PRESCAN_INSN): New.
4234 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
4236         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
4238 2001-09-08  Andreas Jaeger  <aj@suse.de>
4240         * i386.h (TARGET_SWITCHES): Fix description.
4242 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
4244         * rs6000.c (num_insns_constant): Compute number of instructions
4245         more accurately.
4247         * doc/install.texi: Explain AIX exception handling work-around.
4248         Update URL for AIX fixes.
4250 2001-09-07  Jim Wilson  <wilson@redhat.com>
4252         * alias.c (clear_reg_alias_info): New.
4253         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
4254         * rtl.h (clear_reg_alias_info): Declare.
4256 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4258         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
4259         available.
4260         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
4261         (m16m,edivm,emulm): Change declaration to match definition.
4263 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
4265         * reload.c (push_reload): Check for subreg_lowpart_p instead of
4266         SUBREG_BYTE being 0 when determining if the inner part of a subreg
4267         can be reloaded.
4269 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4271         * c-common.c (signed_or_unsigned_type): Handle machine mode types
4272         which have no corresponding C type.
4273         * fold_const.c (target_isinf,target_isnan,target_negative): Update
4274         the representation of 64-bit doubles to work with 64-bit ints.
4276 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
4278         * config/mips/mips.c (override_options): Do not override ISA when ABI
4279         specified if MIPS_CPU_STRING_DEFAULT was specified.
4281 2001-09-07  Richard Henderson  <rth@redhat.com>
4283         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
4284         (express_from_1): Wrap lines.
4285         * rtlanal.c (commutative_operand_precedence): Rename from
4286         operand_preference; export.
4287         * rtl.h: Declare it.
4288         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
4289         (simplify_binary_operation): Invoke simplify_plus_minus on
4290         (CONST (PLUS ...)) as well.
4291         (struct simplify_plus_minus_op_data): New.
4292         (simplify_plus_minus_op_data_cmp): New.
4293         (simplify_plus_minus): Use them.  Avoid infinite recursion with
4294         simplify_binary_operation wrt CONST.
4296 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
4298         * h8300-protos.h (general_operand_dst_push): Remove.
4299         * h8300.c (general_operand_dst_push): Likewise.
4300         * h8300.h (OK_FOR_T): Likewise.
4301         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
4302         * h8300.md (pushqi_h8300): New.
4303         (pushqi_h8300hs): Likewise.
4304         (pushqi): Likewise.
4305         (pushhi_h8300): Likewise.
4306         (pushhi_h8300hs): Likewise.
4307         (pushhi): Likewise.
4309 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4311         * genattrtab.c (attr_printf): First arg is unsigned.
4312         Clean up formatting of callers.
4314 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
4316         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
4317         registers.
4319 2001-09-07  Andreas Jaeger  <aj@suse.de>
4321         * i386.h (TARGET_SWITCHES): Fix descriptions.
4323 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4325         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
4327 2001-09-06  Ira Ruben  <ira@apple.com>
4329         Remove OP_IDENTIFIER.
4330         * tree.def (OP_IDENTIFIER): Remove.
4331         * tree.c (tree_node_kind enum): Remove op_id_kind.
4332         (tree_node_kind_names): Remove "op_identifiers".
4333         (make_node): Remove OP_IDENTIFIER test.
4334         (build_op_identifier): Removed because it isn't being used.
4335         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
4336         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
4338 2001-09-06  Richard Henderson  <rth@redhat.com>
4340         * simplify-rtx.c (simplify_binary_operation): Revert last change.
4342 2001-09-06  Richard Henderson  <rth@redhat.com>
4344         * simplify-rtx.c (simplify_binary_operation): Simplify contents
4345         of CONST.
4347 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4349         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
4350         number used for CR register.
4352 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4353                           Joern Rennecke (amylaar@cygnus.com)
4355         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
4356         * h8300.c (initial_offset): Handle offset between RP and FP.
4357         (h8300_return_addr_rtx): New function.
4358         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
4359         return register.
4360         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
4361         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4362         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
4363         (CAN_ELIMINATE, REGISTER_NAMES):
4364         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
4366 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
4368         Remove TYPE_NONCOPIED_PARTS.
4369         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
4370         (struct tree_type): Remove noncopied_parts.
4371         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
4372         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
4373         (fixed_type_p): Remove.
4374         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
4375         (expand_expr, MODIFY_EXPR): Likewise.
4376         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
4377         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
4379 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
4381         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
4382         compiler warnings.
4383         (mask64_operand): Likewise.
4384         (includes_rldic_lshift_p): Likewise.
4385         (includes_rldicr_lshift_p): Likewise.
4387 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
4389         * objc/objc-act.c (build_message_expr): If a class method cannot
4390         be found, do not issue a warning if a corresponding instance
4391         method exists in the root class.
4393 2001-09-05  Richard Henderson  <rth@redhat.com>
4395         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
4397 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
4399         * function.c (ggc_mark_struct_function): Mark f->outer.
4400         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
4401         * integrate.c (output_inline_function): ... not here.
4403 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
4405         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
4407         * i386.c (size_cost): New static variable.
4408         (override_function): Use size_cost when -Os is specified.
4410         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
4411         properly;  Use current_function_calls_eh_return.
4412         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
4413         use leave to avoid depdendancy chain.
4415         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
4416         get BB loop_depth instead of computing it from LOOP notes.
4418         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
4420 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4422         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4423         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4424         UNALIGNED_DOUBLE_INT_ASM_OP): Define
4426 2001-09-05  Jeffrey A Law  (law@cygnus.com)
4427             Jason Merrill (jason@redhat.com)
4429         * stor-layout.c (layout_type): Complain if an array's size can
4430         not be represented in a size_t.
4432         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
4434 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
4436         * gcc.c: (process_command) Add parentheses around assignment
4437         used as truth value.
4439 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4441         * config/mips/mips.c (save_restore_insns): Don't mark any register
4442         save slots as unchanging if current_function_calls_eh_return.
4444 2001-09-05  Richard Henderson  <rth@redhat.com>
4446         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
4447         * config/alpha/alpha-protos.h: Declare it.
4448         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
4449         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
4450         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
4451         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
4452         (REG_OK_FOR_BASE_P): Select one of the above.
4454 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4456         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
4457         (crti.o): Prefix name of object file with $(T).
4458         (crtn.o): Likewise.
4460 2001-09-05  David S. Miller  <davem@redhat.com>
4462         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4463         * config/sparc/linux64.h: Likewise.
4465 2001-09-05  Andreas Jaeger  <aj@suse.de>
4467         * doc/invoke.texi (i386 Options): -mwide-multiply is not
4468         available anymore, remove the documentation.
4469         (i386 Options): Fix typo, cleanup index entries.
4471         * prefix.c (concat): Remove, we can use the version from liberty.
4473 2001-09-05  Richard Henderson  <rth@redhat.com>
4475         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
4476         New functions split out of md file expanders.
4477         * config/alpha/alpha-protos.h: Declare them.
4478         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
4480 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4482         * cppmacro.c (funlike_invocation_p): No need to restore context.
4484 2001-09-04  Richard Henderson  <rth@redhat.com>
4486         * reload.c (push_reload): Export.
4487         * reload.h (push_reload): Declare it.
4489         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
4490         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4491         * config/alpha/alpha.c (alpha_legitimize_address): New.
4492         (alpha_legitimize_reload_address): Likewise.
4493         * config/alpha/alpha-protos.h: Declare them.
4495 2001-09-04  Stan Shebs  <shebs@apple.com>
4497         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
4498         * config/darwin.c (machopic_stub_name): Account for internally
4499         generated lib calls such as memcpy.
4501 2001-09-04  Richard Henderson  <rth@redhat.com>
4503         * unwind.h (_UA_END_OF_STACK): New flag.
4504         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
4506 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4508         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
4510 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
4512         * config/mips/mips.c (save_restore_insns): Change base_offset to
4513         fp_offset in second call to mips_emit_frame_related_store.
4515 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
4517         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
4518         sometimes be represented as a NOTE of type
4519         NOTE_INSN_DELETED_LABEL.
4520         (Insns): Document NOTE_INSN_DELETED_LABEL.
4522 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
4524         * c-common.h (tree_dump_index): Add more comments.
4525         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
4526         (dump_option_value_info): New struct.
4527         (dump_options): New array.
4528         (dump_switch_p): Parse switch options symbolically.
4529         * doc/invoke.texi (-fdump-ast): Rename to ...
4530         (-fdump-tree): ... here. Document that options are symbolic, and
4531         not all are applicable.
4533 2001-09-04  David S. Miller  <davem@redhat.com>
4535         * config/sparc/sparc.md (define_splits): Kill constraints.
4537         Cleanup redundant and unused insn attributes.
4538         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
4539         binary, and move.  Mark ialu as default.
4540         (commented out define_function_unit "alu"): Kill.
4541         (define_attr "use_clobbered"): Kill.
4542         (whole file): Kill address insn type references.  Replace
4543         all unary/binary/move references with ialu.
4544         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
4545         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
4546         TYPE_IALU.
4548         Simplify length insn attribute and make more judicious use
4549         of insn attribute defaulting.
4550         * config/sparc/sparc.md (all insns with length > one): Mark as
4551         insn type multi if real instructions, else use default if
4552         it is a forced splitter.
4553         (all insns with length == one): Use default insn length.
4554         (all insns of type ialu): Use default insn type.
4556         Fix erroneous insn attribute settings.
4557         (addx): Set insn type to misc.
4558         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
4559         const_umulsidi3_sp64): Set insn type to imul.
4561         Track SFmode vs DFmode insns according to UltraSPARC
4562         scheduling rules.
4563         * config/sparc/sparc.md ("fptype"): New attribute, default
4564         to "single".
4565         (all DFmode single insns): Mark as fptype "double".
4567 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
4569         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
4571 2001-09-03  Richard Henderson  <rth@redhat.com>
4573         * function.h (struct function): Add arg_pointer_save_area_init.
4574         * function.c (expand_function_end): Init arg_pointer_save_area.
4575         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
4576         when called from a nested function.
4578 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
4580         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
4581         is enabled.
4583 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
4585         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
4587 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
4589         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
4590         (emit_push_insn): Use specified padding direction when
4591         STACK_PUSH_CODE is POST_INC.
4593         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
4595 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4597         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
4599 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4601         * cppinit.c (cpp_start_read): Free the imacros list as we
4602         traverse it.  Don't free the chains before returning.
4603         (_cpp_push_next_buffer): Only try pushing buffers if we've
4604         completed -imacros handling.
4606 2001-08-31  Eric Christopher  <echristo@redhat.com>
4608         * gcc.c (handle_braces): Add explaination for abort.
4610 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
4612         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
4613         move adjustment of bitpos instead.
4615 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
4617         * function.c: Remove all_functions.  Make outer_function_chain
4618         static.
4619         (init_function_start): Don't add new function structure to
4620         all_functions.
4621         (find_function_data, push_function_context_to,
4622         pop_function_context_from, put_var_into_stack,
4623         trampoline_address): Update for changed structure element names.
4624         (push_function_context_to): Disentangle.
4625         (free_after_compilation): Also free F.
4626         (expand_dummy_function_end): Don't free cfun here.
4627         (put_var_into_stack): Comment why we can't use find_function_data here.
4628         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
4629         (mark_function_chain): Split into maybe_mark_struct_function and
4630         ggc_mark_struct_function.  Export the latter.
4631         (init_function_once): Mark from cfun and outer_function_chain;
4632         not all_functions.
4634         * function.h (struct function): Kill next_global.  Rename next
4635         to outer.  All users updated to match.
4636         (all_functions, outer_function_chain): Don't declare.
4638         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
4639         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
4640         don't touch f->inlinable, after calling rest_of_compilation.
4642         * tree.h: Forward-declare struct function.  Prototype
4643         ggc_mark_struct_function.
4645 2001-08-31  Kazu Hirata  <kazu@hxi.com>
4647         * config/h8300/h8300.md (*andorhi3): Fix typos.
4649 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4651         * calls.c (emit_library_call_value): Don't use a fixed
4652         argument after VA_CLOSE, i.e. out of scope in traditional C.
4654         * emit-rtl.c (gen_rtvec): Likewise.
4656 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4658         * Makefile.in (c-pragma.o): Depend on output.h.
4659         (reorg.o): Depend on except.h.
4661         * c-pragma.c: Include output.h.
4663         * reorg.c: Include except.h.
4665         * unwind-dw2.c: Call __builtin_alloca, not alloca.
4667 2001-08-31  Richard Henderson  <rth@redhat.com>
4669         * sched-deps.c (add_dependence): Don't elide dependancy if the
4670         conditional used by insn is modified in elem.
4672 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
4674         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4676 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
4678         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
4679         dump_switch_p.
4681 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4683         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
4684         function.
4685         (stormy16_asm_out_constructor): New function.
4686         (TARGET_ASM_CONSTRUCTOR): Define.
4687         (TARGET_ASM_DESTRUCTOR): Define.
4689 2001-08-31  Andreas Jaeger  <aj@suse.de>
4691         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
4692         * loop.c (add_label_notes): Likewise.
4693         * reload.c (find_reloads): Likewise.
4694         * config/sh/sh.c (machine_dependent_reorg): Likewise.
4696 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
4698         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
4699         code here.  Take _Unwind_{W,Sw}ord*.
4700         (read_encoded_value_with_base): Use them.
4701         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
4702         words.
4703         (extract_cie_info): Simplify read_?leb128 handling.
4704         (execute_stack_op, execute_cfa_program): Likewise.
4705         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
4707 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4709         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
4710         the frame pointer to pop the stack if convenient.
4712         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
4713         Don't use post-increment before combine.
4714         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
4715         a call-saved register.
4717 2001-08-31  Andreas Jaeger  <aj@suse.de>
4719         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
4720         code was correct.
4722 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
4724         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
4725         not DIV/MOD, of course.
4727 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
4729         * rtl.def: Undo my patch commited 2001-08-27.
4731         * genattrtab.c: Ditto.
4733         * rtl.h: Ditto.
4735         * sched-int.h: Ditto.
4737         * target-def.h: Ditto.
4739         * target.h: Ditto.
4741         * haifa-sched.c: Ditto.
4743         * sched-rgn.c: Ditto.
4745         * sched-vis.c: Ditto.
4747         * Makefile.in: Ditto.
4749         * doc/md.texi: Ditto.
4751         * doc/tm.texi: Ditto.
4753         * doc/contrib.texi: Ditto.
4755         * doc/gcc.texi: Ditto.
4757         * genattrtab.h: Remove it.
4759         * genautomata.c: Remove it.
4761         * genattr.c: Undo my patch and Richard Henderson's patch commited
4762         2001-08-27.
4764 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
4766         * config.gcc (h8300-*-elf*): New case.
4767         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
4768         (SUBTARGET_CPP_SPEC): Define.
4769         (EXTRA_SPECS): Define.
4770         (SUBTARGET_EXTRA_SPECS): Define.
4771         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
4772         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
4774 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
4776         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
4777         (LIB2FUNCS_EXTRA): Define.
4778         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
4779         config/h8300/fixunssfsi.c: New file.
4781 2001-08-30  Kazu Hirata  <kazu@hxi.com>
4783         * config/h8300/h8300.md (zero_extendqihi2): Changes to
4784         define_expand to accomodate target-specific attributes.
4785         (anonymous zero_extendqihi2 patterns): New.
4787 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
4789         * h8300.md (*andorhi3): New pattern.
4791 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
4793         * h8300.c (dosize): Fix test for "sub".
4795 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
4797         * c-typeck.c (pointer_diff): Try to eliminate common term before
4798         doing conversions.
4800 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
4802         * config/arm/arm.c (arm_compute_initial_elimination_offset):
4803         Account for the saves of the FP registers.
4805         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
4806         (TEXT_SECTION_ASM_OP): Define.
4807         (INIT_SECTION_ASM_OP): Define.
4808         (FINI_SECTION_ASM_OP): Define.
4809         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
4810         (RDATA_SECTION_FUNCITON): Provide prototype.
4812 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
4814         * reload1.c (move2add_note_store): Correct typo checking for
4815         argument pushes.
4817 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
4819         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
4820         note should not be considered outside the libcall block.
4822 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4824         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
4826 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4828         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
4830 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4832         * config/h8300/h8300-protos.h: Add a prototype for
4833         emit_logical_op.
4834         * config/h8300/h8300.c (emit_logical_op): New.
4835         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
4836         (andsi3): Likewise.
4837         (iorhi3): Likewise.
4838         (iorsi3): Likewise.
4839         (xorhi3): Likewise.
4840         (xorsi3): Likewise.
4842 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4844         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
4845         comparison with rtx INTVAL.
4846         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
4847         expression.
4848         * pa.h (FUNCTION_ARG_SIZE): Likewise.
4850 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4852         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
4853         comment typos.
4855 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4857         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
4858         (reg n) to (mem (pre_dec (reg n))
4859         (anonymous movsi pattern): Likewise.
4861 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4863         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
4865 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4867         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
4868         several special constants.
4870 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4872         * config/h8300/lib1funcs.asm: Fix comment typos.
4874 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4876         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
4877         Fix format specifier warnings.
4879         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
4880         inet_makeaddr, semctl): Prototype.
4882         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
4883         (save_restore_insns): Use base_offset, not gp_offset.
4885         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
4886         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4888 2001-08-29  Richard Henderson  <rth@redhat.com>
4890         * bb-reorder.c (function_tail_eff_head): New.
4891         (record_effective_endpoints): Set it.
4892         (fixup_reorder_chain): Use it.
4894 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4896         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
4898 2001-08-28  Dale Johannesen  <dalej@apple.com>
4900         * config/darwin.c (machopic_function_base_name): Add const
4901         qualifier to a string.
4902         (darwin_encode_section_info): Ditto.
4904 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4906         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
4907         function definition.
4909 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4911         * df.h (struct df): Add rts_order variable.
4913         * df.c (df_visit_next_rts): New function.
4914         (df_visit_next): Renamed to df_visit_next_rc
4915         (df_analyse_1): Allocate/compute/free rts_order as well.
4916         (df_rd_global_compute): Use df_visit_next_rc instead of
4917         df_visit_next.
4918         (df_ru_global_compute): Use df_visit_next_rts instead of
4919         df_visit_next.
4921         * flow.c (flow_reverse_top_sort_order_compute): New function.
4923         * basic-block.h: Add prototype.
4925 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4927         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
4928         blocks, the BB_REACHABLE is now set, rather than aux being
4929         non-NULL. Update the test to reflect this.
4931 2001-08-28  Eric Christopher  <echristo@redhat.com>
4933         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
4934         config/mips/crti.asm: Ditto.
4936 2001-08-28  Eric Christopher <echristo@redhat.com>
4937             Richard Henderson <rth@redhat.com>
4939         * c-pragma.h (add_weak): Move prototype from here...
4940         * output.h (add_weak): ... to here.
4941         * varasm.c (add_weak): Fix typo.
4942         * config/mips/crti.asm: New file.
4943         * config/mips/crtn.asm: Ditto.
4944         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
4945         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
4946         (INVOKE__main): Ditto.
4947         (INIT_SECTION_ASM_OP): New.
4948         (FINI_SECTION_ASM_OP): Ditto.
4949         (STARTFILE_SPEC): Add crti.
4950         (ENDFILE_SPEC): Add crtn.
4951         * config/mips/elf64.h: Same.
4952         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
4953         Remove.
4954         * config/mips/vxworks.h: Ditto.
4955         * config/mips/t-elf: Support crti and crtn.
4957 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
4959         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
4960         INSN_LIST.
4962 2001-08-28  Richard Henderson  <rth@redhat.com>
4964         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
4965         (one_cmplbi2 splitter): Remove redundant test.
4967 2001-08-28  Dale Johannesen  <dalej@apple.com>
4969         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
4971 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
4973         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
4975 2001-08-28  Stan Shebs  <shebs@apple.com>
4977         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
4978         (UNALIGNED_SHORT_ASM_OP): Define.
4979         (UNALIGNED_INT_ASM_OP): Define.
4981 2001-08-28  Will Cohen  <wcohen@redhat.com>
4983         * config/rs6000/rs6000.md (store_multiple): Correct RTL
4984         generation for first set.
4986 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
4988         * flow.c (redirect_edge_succ_nodup): Return new edge.
4989         (try_simplify_condjump): Use new edge.
4990         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
4992         * cse.c (cse_basic_block): Skip note instructions.
4994 2001-08-27  Richard Henderson  <rth@redhat.com>
4996         * combine.c (combine_simplify_rtx): Don't reverse condition
4997         if there is no reverse for the condition.
4998         (simplify_comparison): Don't simplify subregs from INT to FP.
5000         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
5001         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
5002         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
5003         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
5004         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
5005         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
5007 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5009         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
5010         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
5011         (pushqi1): New.
5012         (adddi_dilshr32, adddi_dishl32): Only data register can be
5013         source for mem destination.
5015         * expmed.c (store_bit_field): Ignore adjustment to bitpos
5016         and use bitnum to decide about register move.
5018 2001-08-27  Richard Henderson  <rth@redhat.com>
5020         * genattr.c (main): Emit state_t even when not doing scheduling.
5022 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5023             Richard Henderson  <rth@redhat.com>
5025         * gcse.c (reg_first_set, reg_last_set): Replace with ...
5026         (reg_avail_info, current_bb): ... these.
5027         (oprs_unchanged_p, record_last_reg_set_info): Use them.
5028         (compute_hash_table): Likewise.
5030 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5032         * flow.c (verify_flow_info): Use checksums to verify edges.
5034 2001-08-27  Richard Henderson  <rth@redhat.com>
5036         * genautomata.c (expand_automata): Always create a description.
5038 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5040         * optabs.c (expand_binop): Correctly handle the carry in multiword
5041         add/subtract operations.
5043 2001-08-27  Fred Fish  <fnf@be.com>
5045         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
5046         __SIZE_TYPE__.
5048 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5050         * reload.c (find_reloads_toplev): Back out this change:
5052         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
5054         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
5055         mem if the address is a mode_dependent_address_p.
5057 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5059         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5060         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5061         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5062         RTL constructions.
5064         * genattr.c (main): New variable num_insn_reservations.  Increase
5065         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5066         pipeline hazard recognizer interface.
5068         * genattrtab.h: New file.
5070         * genattrtab.c: Include genattrtab.h.
5071         (attr_printf, check_attr_test, make_internal_attr,
5072         make_numeric_value): Move protypes into genattrtab.h.  Define them
5073         as external.
5074         (num_dfa_decls): New global variable.
5075         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5076         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5077         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5078         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5080         * genautomata.c: New file.
5082         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5084         * sched-int.h: (curr_state): Add the external definition for
5085         automaton pipeline interface.
5086         (haifa_insn_data): Add comments for members blockage and units.
5088         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5089         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5090         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5091         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5092         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5093         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5094         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5095         macros.
5096         (TARGET_SCHED): Use the new macros.
5098         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5099         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5100         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5101         dfa_bubble): New members in gcc_target.sched.
5103         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5104         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5105         (insn_queue): Redefine it as pointer to array.
5106         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5107         INSN_QUEUE_SIZE.
5108         (max_insn_queue_index_macro_value): New variable.
5109         (curr_state, dfa_state_size, ready_try): New varaibles for
5110         automaton interface.
5111         (ready_element, ready_remove, max_issue): New function prototypes
5112         for automaton interface.
5113         (choose_ready): New function prototype.
5114         (insn_unit, blockage_range): Add comments.
5115         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5116         FUNCTION_UNITS_SIZE == 0.
5117         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5118         actual_hazard, potential_hazard): Add comments.
5119         (insn_cost): Use cost -1 as undefined value.  Remove
5120         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5121         pipeline interface.
5122         (ready_element, ready_remove): New functions for automaton
5123         interface.
5124         (schedule_insn): Add new code for automaton pipeline interface.
5125         (queue_to_ready): Add new code for automaton pipeline interface.
5126         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5127         (debug_ready_list): Print newline when the queue is empty.
5128         (max_issue): New function for automaton pipeline interface.
5129         (choose_ready): New function.
5130         (schedule_block): Add new code for automaton pipeline interface.
5131         Print ready list before scheduling each insn.
5132         (sched_init): Add new code for automaton pipeline interface.
5133         Initiate insn cost by -1.
5134         (sched_finish): Free the current automaton state and finalize
5135         automaton pipeline interface.
5137         * sched-rgn.c: Include target.h.
5138         (init_ready_list, new_ready, debug_dependencies): Add new code for
5139         automaton pipeline interface.
5141         * sched-vis.c: Include target.h.
5142         (get_visual_tbl_length): Add code for automaton interface.
5143         (target_units, print_block_visualization):  Add comments.
5145         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5146         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5147         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5148         (getruntime.o, genautomata.o): New entries.
5149         (genattrtab.o): Add new dependency file genattrtab.h.
5150         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5151         (getruntime.o, hashtab.o): New entries for canadian cross.
5153         * doc/md.texi: Description of automaton based model.
5155         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5156         Add comments.
5157         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5158         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5159         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5160         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5161         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5162         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5163         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5164         hook descriptions.
5165         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5166         MAX_DFA_ISSUE_RATE): New macro descriptions.
5168         * doc/contrib.texi: Add dfa based scheduler contribution.
5170         * doc/gcc.texi: Add more information about genattrtab.
5172 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
5174         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
5175         an RTL basic block.
5177 2001-08-27  Richard Henderson  <rth@redhat.com>
5179         * function.c (expand_function_end): Don't init arg_pointer_save_area.
5180         (get_arg_pointer_save_area): New.  Create an init it here.
5181         (fix_lexical_addr): Use it.
5182         * function.h: Declare it.
5183         * builtins.c (expand_builtin_setjmp_receiver): Use it.
5184         * stmt.c (expand_nl_goto_receiver): Use it.
5186 2001-08-27  Richard Henderson  <rth@redhat.com>
5188         * final.c (final_scan_insn): Don't enter APP_ON mode for
5189         empty asm strings.
5191         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
5192         alignment for assemble_integer for DW_EH_PE_aligned.
5193         * except.c (output_function_exception_table): Likewise.
5195 2001-08-26  Andreas Jaeger  <aj@suse.de>
5197         * c-tree.h: Add prototyp for c_sizeof_nowarn.
5199 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
5201         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
5203 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
5205         * config/rs6000/rs6000.c (mask_operand): Rewrite without
5206         bit-shifting loop.
5207         (mask64_operand): Likewise.
5208         (rldic_operand): Delete.
5209         (includes_lshift64_p): Delete.
5210         (includes_rldic_lshift_p): New function.
5211         (includes_rldicr_lshift_p): New function.
5212         (print_operand): Don't call rldic_operand in case 'W'.
5213         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
5214         (includes_lshift64_p): Remove.
5215         (includes_rldic_lshift_p): Declare.
5216         (includes_rldicr_lshift_p): Declare.
5217         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
5218         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
5219         Replace match_operand rldic_operand predicate with
5220         const_int_operand.  Replace includes_lshift64_p condition with
5221         includes_rldic_lshift_p.
5222         <ashldi3_internal 64 bit rldicr patterns>: New.
5224 2001-08-27  Andreas Jaeger  <aj@suse.de>
5226         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5227         * errors.c: Likewise.
5228         * final.c: Likewise.
5229         * dwarf2asm.c: Likewise.
5230         * doprint.c (checkit): Likewise.
5231         * diagnostic.c: Likewise.
5232         * collect2.c: Likewise.
5233         * calls.c: Likewise.
5234         * c-semantics.c (build_stmt): Likewise.
5235         * c-format.c (status_warning): Likewise.
5236         * c-errors.c (pedwarn_c99): Likewise.
5237         * builtins.c (validate_arglist): Likewise.
5238         * config/pj/pj.c (pj_printf): Likewise.
5239         * fix-header.c: Likewise.
5240         * gcc.c: Likewise.
5241         * gcov.c (fnotice): Likewise.
5242         * gensupport.c (message_with_line): Likewise.
5243         * mips-tfile.c: Likewise.
5244         * protoize.c (notice): Likewise.
5245         * read-rtl.c (fatal_with_file_and_line): Likewise.
5246         * rtl-error.c: Likewise.
5247         * tradcpp.c: Likewise.
5248         * tree.c: Likewise.
5249         * cp/tree.c (build_min_nt): Likewise.
5250         (build_min): Likewise.
5251         * cp/lex.c: Likewise.
5252         * cp/errfn.c: Likewise.
5253         * cp/rtti.c (create_pseudo_type_info): Likewise.
5255 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
5257         * df.c (df_uses_record): Return after recording all uses
5258         in ASM_OPERANDS.
5260 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
5262         * df.c (df_insn_modify): Realloc the INSN table here, if
5263         necessary, here, too.
5265 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
5267         * config/mips/mips.c (mips_function_value): Handle complex return
5268         values.
5270 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
5272         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
5273         unshared.
5274         * reload.c (make_memloc): Copy result if it is still
5275         reg_equiv_memory_loc[regno] on return.
5276         (subst_reloads) [ENABLE_CHECKING]: Check that none of
5277         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
5278         reg_equiv_mem are modified by the substitutions.
5280 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5282         * predict.c (expensive_function_p): New.
5283         * rtl.h (expensive_function_p): Declare.
5284         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
5285         (use_fast_prologue_epilogue): New static variable.
5286         (expand_prologue): Set it; emit short prologues if unset.
5287         (expand_epilogue): Likewise.
5289 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5291         * config.gcc: Add stormy16-*-elf case.
5292         * config/stormy16/stormy-abi: New file.
5293         * config/stormy16/stormy16-lib2.c: New file.
5294         * config/stormy16/stormy16-protos.h: New file.
5295         * config/stormy16/stormy16.c: New file.
5296         * config/stormy16/stormy16.h: New file.
5297         * config/stormy16/stormy16.md: New file.
5298         * config/stormy16/t-stormy16: New file.
5300 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5302         * i386.h (no-accumulate-outgoing-args): Use proper mask.
5304 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
5306         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
5307         descriptor members are pointer size, not constant 4.
5308         * config/rs6000/rs6000.md (define_splits): Remove more unused
5309         constraints.
5311 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5313         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5315 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
5317         * cp/rtti.c (VPARAMS): Fix parameter.
5319 2001-08-24  Zack Weinberg  <zackw@panix.com>
5321         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
5322         to zero.
5323         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
5324         to switch.
5325         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
5326         in if controlling use of insv.
5327         (extract_bit_field): Likewise, for extv and extzv.
5329 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
5331         * i386.md (movcc peep2): Fix load of 0.
5333 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5335         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
5336         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
5338 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
5340         * c-pragma.h: Move weak_syms and weak_decls...
5341         * varasm.c: ...here.  Now static.
5342         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
5343         depend on HANDLE_PRAGMA_WEAK.
5345         * c-common.c (c_alignof, c_alignof_expr): Move here...
5346         * c-typeck.c: ...from here.
5347         * c-tree.h, c-common.h: Adjust.
5349 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
5351         * config/ia64/ia64.c (rws_update): If !pred, set write_count
5352         instead of incrementing it.
5354         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
5355         asm ready, don't try to move them all into the same array element.
5357 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5359         * function.c (thread_prologue_and_epilogue_insns): Avoid
5360         fallthru flag on edge to exit.
5362         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
5364         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
5365         dead edges.
5367 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5369         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
5370         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
5371         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
5372         Remove prototype.
5374 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5376         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
5377         replace "GNU CC" with "GCC".
5379 2001-08-23  Richard Henderson  <rth@redhat.com>
5381         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
5382         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
5383         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
5384         Need GR between FR and not GR_AND_FR.
5385         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
5386         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
5387         AR regs before GR regs.
5388         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
5389         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
5390         (REGISTER_MOVE_COST): Update.
5391         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
5393 2001-08-23  Richard Henderson  <rth@redhat.com>
5395         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
5396         a register class.
5398 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5400         * reload1.c (emit_reload_insns): Don't look for notes
5401         on a NULL store_insn.
5403 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5405         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
5406         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
5407         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
5408         format specifier warnings.
5409         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
5411 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
5413         * config/i386/i386-protos.h: Correct declaration of
5414         i386_pe_asm_named_section.
5416 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5418         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
5419         variable i.
5420         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
5422 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5424         * cpperror.c (print_location): Don't show _Pragma.
5425         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
5426         and file change callback generation here.
5427         (stack_include_file): Update use of cpp_push_buffer.
5428         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
5429         (struct cpp_buffer): Remove type, pfile members.
5430         * cppinit.c (cpp_handle_option): Use free_chain.
5431         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
5432         (skip_escaped_newlines, get_effective_char, lex_percent): Take
5433         a cpp_reader rather than a cpp_buffer.
5434         (skip_escaped_newlines, get_effective_char, skip_block_comment,
5435         skip_line_comment, parse_string, lex_percent, lex_dot,
5436         _cpp_lex_token): Update accordingly.
5437         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
5438         generation here.
5439         (cpp_push_buffer): Update prototype.
5440         (run_directive): Update use of cpp_push_buffer.
5441         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
5442         handle_assertion): Update use of run_directive.
5443         * cpplib.h (enum cpp_buffer_type): Remove.
5444         (cpp_push_buffer): Update prototype.
5445         * fix-header.c (read_scan_file): Update.
5447 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5449         * gcc.c (struct prefix_list): Change prefix to const char *.
5451 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5453         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
5455 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
5457         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
5458         from a new MEM.
5460         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
5461         a squeezable note.
5462         * rtl.h: Adjust.
5463         * ifcvt.c (dead_or_predicable): Adjust.
5464         * loop.c (find_and_verify_loops): Adjust.
5465         * stmt.c (expand_end_case): Adjust.
5466         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
5467         head and end insn pointers in the basic block, not just local copies.
5468         (merge_blocks_move_predecessor_nojumps): Likewise.
5470 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
5472         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
5473         bitmap.h, builtin-types.def, builtins.c, builtins.def,
5474         c-aux-info.c, c-common.c, c-common.def, c-common.h,
5475         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
5476         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
5477         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
5478         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
5479         conditions.h, config.gcc, configure.frag, configure.in,
5480         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
5481         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
5482         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
5483         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
5484         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
5485         emit-rtl.c, errors.c, errors.h, except.c, except.h,
5486         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
5487         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
5488         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
5489         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
5490         gencheck.c, gencodes.c, genconfig.c, genemit.c,
5491         genextract.c, genflags.c, gengenrtl.c, genmultilib,
5492         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
5493         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
5494         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
5495         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
5496         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
5497         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
5498         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
5499         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
5500         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
5501         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
5502         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
5503         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
5504         params.h, predict.c, predict.def, predict.h, prefix.c,
5505         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
5506         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
5507         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
5508         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
5509         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
5510         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
5511         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
5512         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
5513         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
5514         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
5515         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
5516         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
5517         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
5518         xcoffout.h: replace "GNU CC" with "GCC".
5520 2001-08-21  Richard Henderson  <rth@redhat.com>
5522         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
5523         (final_scan_insn): Consider jump tables data even if we have no
5524         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
5525         ADDR_VEC_ALIGN.
5526         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
5527         (ASM_OUTPUT_CASE_END): Remove.
5528         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
5529         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
5530         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5532 2001-08-21  Richard Henderson  <rth@redhat.com>
5534         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
5535         at barrier insns.  Emit stop bits before barriers.
5537         * flow.c (flow_find_cross_jump): Don't consider unconditional
5538         return insns for commoning.
5540         * final.c (compute_alignments): Fix typo.
5542         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
5543         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
5544         (store_bit_field): Use mode_for_extraction more places.
5545         (extract_bit_field): Likewise.
5547 2001-08-21  Zack Weinberg  <zackw@panix.com>
5549         * caller-save.c: Don't include insn-codes.h.
5550         (reg_save_code, reg_restore_code): Make arrays of int.
5551         All uses updated to match.
5552         (insert_save, insert_restore): No need to initialize "code"
5553         variable upon declaration.
5554         * Makefile.in: update dependencies; fix typo in clean rule.
5556 2001-08-21  Richard Henderson  <rth@redhat.com>
5558         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
5559         (merge_if_block): Handle fallout from same.
5561 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5563         * builtins.c (type_to_class): Fix typo in last change.
5565 2001-08-21  Richard Henderson  <rth@redhat.com>
5567         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
5568         ia64_asm_output_label.
5570         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
5571         copy of gp while the real gp register contains garbage.
5573 2001-08-21  Zack Weinberg  <zackw@panix.com>
5575         * expmed.c (mode_for_extraction): New function.
5576         (store_bit_field, extract_bit_field): Use it.
5577         * expr.h: Prototype it and provide an enum for its first argument.
5579         * combine.c, function.c, recog.c: Don't include insn-codes.h.
5580         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
5581         and digging through the insn_data tables.
5582         * Makefile.in: Update dependencies.
5584 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5586         * cppfiles.c (stack_include_file): line-map.c now handles include
5587         depth.
5588         (handle_missing_handler): Similarly.
5589         (_cpp_execute_include): Similarly.
5590         (_cpp_pop_file_buffer): Similarly.
5591         * cpphash.h (struct cpp_reader): Remove system_include_depth,
5592         buffer_stack_depth and include_depth.
5593         * cpplib.c (do_include_common): line-map.c now handles include depth.
5594         (cpp_push_buffer): Similarly.
5595         (_cpp_pop_buffer): Similarly.
5596         * cppmacro.c (builtin_macro): Update.
5597         * line-map.c (init_line_maps): Set depth.
5598         (add_line_map): Increment "used" earlier.  Update and use the
5599         include depth.
5600         (trace_include): Use the include depth.
5601         * line-map.h (struct line_maps): New member depth.
5603 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5605         * cppfiles.c (stack_include_file): Don't handle -H here.
5606         * cppinit.c (cpp_start_read): Set include tracing after
5607         cpp_post_options and after stacking the main file.
5608         * line-map.c (trace_include): New.
5609         (init_line_maps, add_line_map): Update.
5610         * line-map.h (struct line_maps): New member trace_includes.
5612 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5614         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
5615         * cppfiles.c (stack_include_file): Only stack a file if there
5616         is something to do.  Return a boolean indicating whether a
5617         buffer was stacked or not.
5618         (_cpp_execute_include): Similarly.
5619         (_cpp_read_file): Similarly.
5620         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
5622 2001-08-21  Sam Steingold  <sds@gnu.org>
5624         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
5625         (RECACHE): keep obufp_before_macroname up to date
5627 2001-08-21  Zack Weinberg  <zackw@panix.com>
5629         * stmt.c: Don't include insn-codes.h.
5630         (expand_end_case): Machine specific logic moved to expr.c.
5631         No need to worry about __builtin_classify_type.
5632         (check_for_full_enumeration_handling, emit_case_nodes):
5633         Kill #if 0 blocks.
5635         * builtins.o (expand_builtin_classify_type): Split up so code
5636         can be shared with fold_builtin_classify_type.
5637         (type_to_class, fold_builtin_classify_type): New functions.
5638         (fold_builtins): Handle __builtin_classify_type.
5640         * expr.c (do_tablejump): Now static.
5641         (case_values_threshold, try_casesi, try_tablejump): New;
5642         code mostly from stmt.c (expand_end_case).
5643         (expr.h): Update prototypes.
5645         * Makefile.in (stmt.o): Update dependencies.
5647 2001-08-21  Will Cohen  <wcohen@redhat.com>
5649         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
5650         declaration of variable i.
5651         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
5652         declaration of variable i.
5654 2001-08-21  Richard Henderson  <rth@redhat.com>
5656         * crtstuff.c: Fix thinko last change.  Move list tails to start
5657         of CRT_END section.  Tidy ifdefs.
5658         (__EH_FRAME_BEGIN__): Always static for ELF.
5659         (__do_global_ctors_1): Rename from __frame_dummy.
5660         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
5661         name change; don't hide __EH_FRAME_BEGIN__.
5663 2001-08-21  Richard Henderson  <rth@redhat.com>
5665         * gdbinit.in: Move break on exit after break on fancy_abort.
5667         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
5668         sized types.
5670 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5672         * cpphash.h (_cpp_push_next_buffer): New.
5673         * cppinit.c (do_includes): Remove.
5674         (push_include, free_chain, _cpp_push_next_buffer): New.
5675         (cpp_start_read): Use them to rework command line option handling.
5676         (cpp_handle_option): Combine handling of -include and -imacros.
5677         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
5678         appropriate.  Always insert missing \n at EOF.
5679         * cpplib.c (start_directive): Get the directive position right.
5680         * cppmain.c (cb_file_change): Always print the first line, unless
5681         preprocessed.
5683 2001-08-20  Andreas Jaeger  <aj@suse.de>
5685         * profile.c (compute_branch_probabilities): Remove extra new-line
5686         in error message.
5687         * flow.c (verify_flow_info): Likewise.
5689 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5691         * basic-block.h (basic_block): Add new field 'flags'.
5692         (BB_REACHABLE): Define.
5693         (expunge_block): Declare.
5694         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
5695         (EXIT_BLOCK_PTR): Ditto.
5696         (expunge_block): Remove static declaration.
5697         (cleanup_cfg): Clear bb->aux on every basic block.
5698         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
5699         computing reachability.
5700         (delete_unreachable_blocks): Delete block b if b->flags has
5701         BB_REACHABLE unset.
5703 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5705         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
5707 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5709         * sparc.c (sparc_variable_issue): Fix typo in last change.
5711 2001-08-20  Richard Henderson  <rth@redhat.com>
5713         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
5715 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5717         * pa.h (RETURN_IN_MEMORY): Improve comment.
5719 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
5721         * doc/invoke.texi (Profiling options): Clarify the interactions
5722         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
5724 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
5726         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
5727         command.
5729 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5731         * gcc.c (make_relative_prefix): Allocate a sufficiently large
5732         buffer.
5734 2001-08-20  Richard Henderson  <rth@redhat.com>
5736         * final.c (end_final): Fix typo last change.
5738 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5740         * cppinit.c (init_standard_includes): The returned buffer
5741         is already malloc-ed.
5742         * gcc.c (add_prefix): Similarly.
5743         * prefix.c (translate_name): Update to support clear buffer
5744         ownership rules.
5745         (update_path): Similarly.  Be sure to free any newly allocated
5746         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
5747         (tr): New function.
5748         * prefix.h (update_path): Update prototype and document.
5749         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
5750         up and update to new buffer ownership rules.
5751         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
5753 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
5755         * final.c (compute_alignments): New function.
5756         (init_insn_lengths): Do not care label_align.
5757         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
5758         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
5759         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
5760         (shorted_branches): Realloc label_align array; do
5761         not call init_insn_lengths; Do not care about loop alignments.
5762         * output.h (compute_alignments): Declare.
5763         * toplev.c (rest_of_compilation): Call compute_alignments.
5764         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
5766         * predict.c (block_info_def): Add npredecesors, remove nvisited;
5767         change visited to tovisit.
5768         (propagate_freq): Use faster traversing algorithm.
5769         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
5770         to tovisit; reverse meaning.
5772         * predict.c (struct block_info_def): Remove nvisited.
5773         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
5774         (estimate_bb_frequencies): Call mark_dfs_back_edges.
5776 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
5778         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
5779         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
5780         (TARGET_FUSED_MADD): New.
5781         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
5782         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
5783         the multiply-add instructions.
5785 2001-08-19  Richard Henderson  <rth@redhat.com>
5787         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
5788         is aligned to pointer size.
5790 2001-08-19  Richard Henderson  <rth@redhat.com>
5792         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
5793         display markers during final schedule.
5795 2001-08-19  Richard Henderson  <rth@redhat.com>
5797         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
5799 2001-08-19  Richard Henderson  <rth@redhat.com>
5801         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
5802         in the same string.
5803         (ASM_NAME_TO_STRING): Remove.
5804         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
5805         in the same string.  Remove support for expressions.
5807 2001-08-19  Richard Henderson  <rth@redhat.com>
5809         * config/i386/i386.md (tablejump): Make an expander; handle
5810         pic relative addressing here.
5811         (tablejump_1): Rename from tablejump_pic.
5812         (casesi): Remove.
5814 2001-08-19  Richard Henderson  <rth@redhat.com>
5816         * regclass.c (fix_register): Fix typo.
5818 2001-08-18  Richard Henderson  <rth@redhat.com>
5820         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
5821         (struct _Unwind_Context): Expand br_loc to hold it.
5822         (uw_frame_state_for): Handle leaf functions better.
5823         (uw_update_reg_address): Update for br_loc change.
5825 2001-08-18  Richard Henderson  <rth@redhat.com>
5827         * crtstuff.c: Move list heads before code that uses them.
5828         (__JCR_LIST__): Remove initial null.
5829         (frame_dummy, __frame_dummy): Do java registration here ...
5830         (__do_global_ctors_aux): ... not here.
5832         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
5833         (__do_global_dtors_aux): Update to match.
5834         (__JCR_LIST__, __do_jv_register_classes): New.
5835         (.init): Call it.
5836         * config/ia64/crtend.asm (__JCR_END__): New.
5837         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
5838         instead of an indirect LTOFF22 reloc.
5840 2001-08-18  Richard Henderson  <rth@redhat.com>
5842         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
5843         * regclass.c (init_reg_sets_1): Fix typo.
5844         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
5845         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
5846         (ia64_compute_frame_size): Make ar.unat live when in use.
5847         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
5848         for ar.pfs; remove ar.unat handling.
5849         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
5850         call-saved.
5851         (PREDICATE_CODES): Add ar_pfs_reg_operand.
5852         * config/ia64/ia64-protos.h: Update decls.
5853         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
5854         (sibcall_pic): Likewise.
5856 2001-08-18  Richard Henderson  <rth@redhat.com>
5858         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
5859         pred_rel_mutex when searching for insn_group_barrier.
5860         * config/ia64/ia64.md (cycle_display): Combine the expander
5861         and insn patterns.
5863         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
5864         bit before asm as needed.
5866 2001-08-18  Richard Henderson  <rth@redhat.com>
5868         * timevar.def (TV_MACH_DEP): New.
5869         * toplev.c (rest_of_compilation): Use it.
5870         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
5872 2001-08-18  Zack Weinberg  <zackw@panix.com>
5874         * unwind-dw2.c (execute_stack_op): Add default aborts to
5875         the inner switches to prevent warnings.
5877 2001-08-18  Richard Henderson  <rth@redhat.com>
5879         * timevar.h (struct timevar_time_def): Change element type to float.
5880         (ticks_to_msec, clocks_to_msec): Likewise.
5881         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
5882         (get_time): Likewise.
5883         (timevar_print): Adjust zero check and printing to match.
5885 2001-08-18  Zack Weinberg  <zackw@panix.com>
5887         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
5888         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
5889         Eliminate overfull or underfull hboxes.
5891 2001-08-18  Zack Weinberg  <zackw@panix.com>
5893         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5895 2001-08-18  Zack Weinberg  <zackw@panix.com>
5897         * haifa-sched.c: Convert to target hooks.  Macros replaced
5898         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
5899         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
5900         MD_SCHED_FINISH, and HAVE_cycle_display.
5901         * target-def.h (TARGET_SCHED_ADJUST_COST,
5902         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
5903         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
5904         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
5905         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
5906         New hook #defines to be overridden.
5907         (TARGET_SCHED): Bring them all together.
5908         (TARGET_INITIALIZER): Update.
5909         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
5910         instead of 'struct rtx_def *' throughout.
5911         (struct sched): New set of hooks for the scheduler.
5912         * Makefile.in (haifa-sched.o): Depend on target.h.
5913         * doc/tm.texi: Document the new scheduler hooks, together in
5914         their own section, instead of scattered around.
5915         Fix a bunch of underfull/overfull hboxes.
5917         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
5918         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
5919         sparc.h: Don't define any of the old scheduler macros.
5921         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
5922         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
5923         sparc.c: Create hook functions from code extracted from
5924         corresponding target header, or make existing hooks static, as
5925         appropriate.  Set the appropriate entries in targetm.
5927         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
5928         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
5929         rs6000-protos.h, s390-protos.h, sparc-protos.h:
5930         Remove prototypes for functions which are now static.
5932         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
5933         related gunk; the Haifa scheduler is now the only choice.
5935 2001-08-18  Zack Weinberg  <zackw@panix.com>
5937         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
5938         * genopinit.c: Put floating point divide insns in sdiv_optab.
5939         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
5940         * config/gofast.h, config/c4x/c4x.h,
5941         config/ia64/hpux_longdouble.h, config/mips/mips.h,
5942         config/pa/long_double.h, config/rs6000/sysv4.h,
5943         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
5944         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
5945         (init_optabs): Use init_optabv for overflow-trapping optabs.
5946         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
5947         cmp_optab RTX codes so have_insn_for can find them.
5949         * optabs.c (expand_simple_binop, expand_simple_unop,
5950         have_insn_for, gen_sub3_insn): New interfaces.
5951         * expr.h: Prototype new functions.
5952         (enum optab_methods): Move here from optabs.h.
5954         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
5955         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
5956         Use new functions instead of working directly with optabs.
5957         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
5958         unroll.c: Don't include optabs.h.
5959         * caller-save.c, combine.c, function.c, stmt.c: Just include
5960         insn-codes.h, not optabs.h.
5961         * Makefile.in: Update dependencies.
5963         * combine.c (make_compound_operation, simplify_comparison):
5964         Fix typos testing for this or that instruction.
5966 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
5968         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
5969         generating libgcc.a.
5971 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5973         * except.c (TYPE_HASH): Delete.
5975         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
5976         HOST_WIDE_INT.
5978         * tree.c (TYPE_HASH): Delete.
5980         * tree.h (TYPE_HASH): Define.
5982 2001-08-18  Graham Stott  <grahams@redhat.com>
5984         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
5985         define_split.
5986         (adddi3_internal_2+2): Likewise.
5987         (eh_set_lr_di+1): Likewise.
5989 2001-08-17  Richard Henderson  <rth@redhat.com>
5991         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5992         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
5993         * dwarf2asm.c: ... here.
5994         * dwarfout.c: Remove them.
5996         * varasm.c (assemble_integer): Add align parameter.
5997         (assemble_real, output_constant, output_constructor): Likewise.
5998         * output.h: Update decls.
5999         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
6000         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
6001         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
6002         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
6003         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
6004         Update all callers.
6006         * final.c (end_final): Abort profile block generation if we
6007         havn't layed it out properly.
6008         * output.h (assemble_eh_integer): Remove stale decl.
6009         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
6010         (min_align): New.
6011         (assemble_integer): Handle unaligned data.
6012         (assemble_real): Abort on unaligned data.
6013         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
6014         anything useful.
6015         (default_dtor_section_asm_out_destructor): Use assemble_align.
6016         (default_named_section_asm_out_constructor): Likewise.
6017         (default_ctor_section_asm_out_constructor): Likewise.
6018         * config/darwin.c (machopic_asm_out_constructor): Likewise.
6019         (machopic_asm_out_destructor): Likewise.
6020         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
6021         (nextstep_asm_out_destructor): Likewise.
6022         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
6023         (vms_asm_out_destructor): Likewise.
6025 2001-08-17  Richard Henderson  <rth@redhat.com>
6027         * config/mips/iris6.h (TARGET_IRIX6): New.
6028         (current_section_name, current_section_flags): New.
6029         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
6030         (MAX_OFILE_ALIGNMENT): New.
6031         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
6032         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
6033         (copy_file_data): Split out from
6034         (mips_asm_file_end): ... here.
6035         (mips_asm_file_start): Remove extra .section directive.  Use
6036         tmpfile instead of mips_make_temp_file.
6037         (mips_unique_section): Use const char * as needed for warnings.
6038         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
6039         re-add align parameter.
6040         (iris6_asm_named_section): New.
6041         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
6042         (iris6_asm_output_align, iris6_section_align_1): New.
6043         (iris6_asm_file_start, iris6_asm_file_end): New.
6044         * config/mips/mips-protos.h: Update decls.
6046 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
6048         * doc/install.texi (Install GCC): Add links to build status pages.
6049         (Specific): Ditto.
6050         (Final install): Ditto; request updates for specific info
6052 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6054         * cpperror.c (print_location):  Don't take a file name; use the
6055         line map instead.
6056         (_cpp_begin_message): Similarly.
6057         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6058         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6059         (cpp_pedwarn_with_file_and_line): Remove.
6060         * cppfiles.c (stack_include_file): Update; set filename to stdin
6061         here when appropriate.
6062         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
6063         (_cpp_begin_message): Don't take a file name.
6064         * cppinit.c: Add comment.
6065         * cpplex.c: Fix end-of-directive indicator.
6066         * cpplib.c: Don't include intl.h.
6067         (run_directive, do_diagnostic): Update.
6068         (do_line): Update to not use nominal_fname.
6069         (cpp_push_buffer): Don't take a filename.
6070         * cpplib.h (struct ht): Remove.
6071         (cpp_push_buffer): Don't take a filename.
6072         (cpp_pedwarn_with_file_and_line): Remove.
6073         * cppmacro.c (struct cpp_macro): Remove file.
6074         (builtin_macro): Update.
6075         (_cpp_create_definition): Update.
6076         * cppmain.c: Correct comment.
6077         * fix-header.c (read_scan_file): Update.
6079 2001-08-17  Kazu Hirata  <kazu@hxi.com>
6081         * sbitmap.c: Fix comment formatting.
6082         * sched-deps.c: Likewise.
6083         * sibcall.c: Likewise.
6084         * simplify-rtx.c: Likewise.
6085         * ssa.c: Likewise.
6086         * ssa-ccp.c: Likewise.
6087         * stor-layout.c: Likewise.
6088         * timevar.c: Likewise.
6089         * toplev.c: Likewise.
6090         * unwind-dw2.c: Likewise.
6091         * unwind-dw2-fde.c: Likewise.
6092         * varasm.c: Likewise.
6094 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6096         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
6097         or larger than an integer in memory.
6099 2001-08-17  Zack Weinberg  <zackw@panix.com>
6101         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
6102         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
6103         * rtl.h: Don't forward-declare union tree_node here.  Don't
6104         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
6105         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6106         and tree respectively.
6107         * tree.h: Don't forward-declare struct rtx_def here.  Don't
6108         typedef tree here.  Change all uses of struct rtx_def *,
6109         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6110         and tree respectively.
6112 2001-08-17  Richard Henderson  <rth@redhat.com>
6114         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
6115         config/mips/openbsd.h: Fix typos last change.
6117 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6119         * doc/invoke.texi (Optimize Options): The default for
6120         -finline-limit is 600.
6122 2001-08-17  Richard Henderson  <rth@redhat.com>
6124         * varasm.c (text_section): Allow TEXT_SECTION to override the
6125         printing of TEXT_SECTION_ASM_OP.
6126         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
6127         (DATA_SECTION, BSS_SECTION): Remove.
6128         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
6129         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
6130         Rename from s/_NAME//.
6131         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
6132         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
6133         (TEXT_SECTION): ... here.  New.
6134         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
6135         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
6136         * config/mips/openbsd.h: Likewise.
6137         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
6138         (mips_asm_file_end): Likewise test.
6139         (mips_output_function_epilogue): Likewise.  Switch back to data
6140         section after emitting the function.
6142         * doc/tm.texi (Sections): Document TEXT_SECTION.
6144 2001-08-17  Richard Henderson  <rth@redhat.com>
6146         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
6147         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
6149 2001-08-17  Richard Henderson  <rth@redhat.com>
6151         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
6152         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
6153         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
6154         Add aligned attribute.
6156 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
6158         * config/sh/sh.md: Add modes to unspecs in first insn to match
6159         those in the second.
6161         * Makefile.in: Fix collect2 copy for Cygwin.
6163 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
6165         Install the proper patch.
6166         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6167         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6168         (expand_function_start): Likewise.
6169         * stmt.c (expand_decl): Likewise.
6170         * varasm.c (make_decl_rtx): Likewise.
6172 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6174         * final.c: Undo my previous accidental checkin.
6175         * output.h: Likewise.
6176         * tm.texi: Likewise.
6178 2001-08-16  Richard Henderson  <rth@redhat.com>
6180         * varasm.c (named_section_flags): Remove align parameter.
6181         * varasm.c, dwarf2out.c: Update all callers.
6182         * output.h: Update prototypes.
6184         * target.h (target.asm_out.named_section): Remove align parameter.
6185         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
6186         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
6187         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
6188         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
6189         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
6191         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
6192         (get_named_section_flags, set_named_section_flags): New.
6193         (named_section_flags): Use them.
6194         (named_section): Do decl vs section flags check here...
6195         (default_section_type_flags): ... not here.
6196         (init_varasm_once): Create in_named_htab.
6197         (resolve_unique_section): Mark reloc unused.
6199 2001-08-16  Richard Henderson  <rth@redhat.com>
6201         * varasm.c (force_const_mem): Keep pool alignment in bits.
6202         (output_constant_pool): Use assemble_align.
6204 2001-08-16  Zack Weinberg  <zackw@panix.com>
6206         * doc/tm.texi: Remove extra @table command.
6208 2001-08-16  Zack Weinberg  <zackw@panix.com>
6210         * final.c (shorten_branches): Clear the end of the label_align
6211         array only if we made it larger.  Break up messy expressions
6212         for clarity.
6214         * diagnostic.c (internal_error): Check for error recursion
6215         before doing ICE suppression.
6217         * timevar.c: Timing variables now count in milliseconds.
6218         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
6219         (get_time): Not here.
6220         (timevar_print): Don't print any timer whose user, cpu, and
6221         wall times are all zero as displayed.
6222         * timevar.h: Update comment aboout units.  Make timevar
6223         counters unsigned.
6225 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
6227         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6228         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6229         (expand_function_start): Likewise.
6230         * stmt.c (expand_decl): Likewise.
6231         * varasm.c (make_decl_rtx): Likewise.
6233 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
6235         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
6236         (finalize_record_size): Don't set TYPE_USER_ALIGN.
6238 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6240         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
6241         variables.
6243 2001-08-16  Andreas Jaeger  <aj@suse.de>
6245         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
6246         prototype.
6248 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
6250         * rtl.h (only_sets_cc0_p): New prototype.
6251         * jump.c (sets_cc0_p): Handle INSN.
6252         (only_sets_cc0_p): New function.
6253         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
6254         (tidy_fallthru_edge): Likewise.
6255         * integrate.c (copy_insn_list): Likewise.
6256         * unroll.c (unroll_loop): Likewise.
6257         (copy_loop_body): Likewise.
6259 2001-08-15  Jason Eckhardt  <jle@redhat.com>
6261         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
6263 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6265         * predict.c (struct block_info_def): Remove nvisited.
6266         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
6267         (estimate_bb_frequencies): Call mark_dfs_back_edges.
6269         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
6270         (ix86_adjust_cost): Teach scheduler that latency to load operand can
6271         be masked.
6273 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
6275         * predict.def: Update hitrates.
6277 2001-08-15  Richard Henderson  <rth@redhat.com>
6279         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
6281 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
6283         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
6284         note from its associated jump.
6286 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6288         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
6289         also on 64-bit s390x targets.
6291 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
6293         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
6294         function.
6295         (arm_expand_prologue): Handled nested functions which take a
6296         variable argument list.
6297         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
6298         macro with an invocation of
6299         arm_compute_initial_elimination_offset.
6300         * config/arm/arm-protos.h: Prototype
6301         arm_compute_initial_elimination_offset.
6303 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6305         * doc/install.texi (Specific, avr): Fix markup.
6306         (Specific, c4x): Ditto.
6308 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6310         * predict.c (dump_prediction): Change `bool' parameter to `int'.
6312 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
6314         * Makefile.in (OBJS): Add rtl-error.o
6315         (rtl-error.o): New rule.
6316         (diagnostic.o): Adjust dependency.
6317         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
6318         error_for_asm, _fatal_insn, _fatal_insn_not_found,
6319         warning_for_asm): Move to...
6320         rtl-error.c: ...here.  New file.
6322 2001-08-14  Richard Henderson  <rth@redhat.com>
6324         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
6325         if USING_SJLJ_EXCEPTIONS.
6327 2001-08-14  Steve Ellcey <sje@cup.hp.com>
6329         * tlink.c (scan_linker_output): Check string for unsatisfied in
6330         addition to undefined and unresolved.
6332 2001-08-14  Graham Stott  <grahams@redhat.com>
6334         * libgcc2.c (*): Replace EH_FRAME_SECTION with
6335         EH_FRAME_SECTION_NAME.
6337 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
6339         * genattrtab.c (simplify_test_exp_in_temp): New function.
6340         (simplify_test_exp): Avoid explicit use of temporary obstack.
6341         (simplify_cond, insert_right_side, evaluate_eq_attr,
6342         simplify_and_tree, simplify_or_tree, eliminate_known_true):
6343         Use simplify_test_exp_in_temp.
6344         (optimize_attrs): Iterate until expression stabilizes.
6346 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
6348         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
6349         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
6351 2001-08-13  Richard Henderson  <rth@redhat.com>
6353         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
6354         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
6355         * config/arm/conix-elf.h: Likewise.
6357 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6359         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
6360         in gcc.c.
6361         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6363         * gcse.c (hash_scan_set): Expressions that are set as part of
6364         jump instructions are not available.
6366 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6368         * config/s390/s390.c (print_operand, s390_function_prologue,
6369         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
6371 2001-08-13  Richard Henderson  <rth@redhat.com>
6373         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
6374         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
6375         * doc/tm.texi (Exception Region Output): Document it.
6377 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6379         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
6380         DWARF2 instead of stabs by default.
6382 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6384         * config/rs6000/rs6000.c: Include optabs.h.
6386 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6388         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
6389         save/restore routines.
6390         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
6392 2001-08-13  Andreas Jaeger  <aj@suse.de>
6394         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
6395         the english is correct.
6397 2001-08-13  Zack Weinberg  <zackw@panix.com>
6399         * expr.h: Split out optab- and libfunc-related code to...
6400         * optabs.h, libfuncs.h: ... these new headers.
6402         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
6403         (OPTABS_H): New.
6404         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
6405         dependencies.
6406         * mkconfig.sh: Don't include insn-codes.h from config.h.
6408         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
6409         enum insn_code is available.  Move reload_in_optab and
6410         reload_out_optab array declarations to optabs.h.
6411         * regmove.c (gen_add3_insn): Move to optabs.c, export from
6412         there, prototype in expr.h.
6413         * gencodes.c: Cleanup: zap global variables, don't use
6414         printf where puts will do, don't bother defining MAX_INSN_CODE
6415         which nothing uses, let CODE_FOR_nothing get its value implicitly.
6417         * genemit.c, genopinit.c: Include optabs.h in generated file.
6418         * genoutput.c: Include insn-codes.h in generated file.
6419         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
6420         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
6421         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
6422         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
6423         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
6424         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
6425         Include optabs.h.
6426         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
6427         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
6428         config/m88k/m88k.c, config/sparc/sparc.c:
6429         Include libfuncs.h.
6430         * reload.c: Include expr.h and optabs.h before reload.h.
6431         * config/alpha/alpha.c: Include tree.h before reload.h.
6432         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
6433         and reload.h in that order.
6434         * config/sparc/sparc.c: Include debug.h.
6435         * recog.c: Include insn-codes.h.
6437 2001-08-13  Andreas Jaeger  <aj@suse.de>
6439         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
6440         s390*linux.
6442 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6444         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
6445         * gcc.c (init_spec): Fix typo in comment.
6446         * varasm.c (data_section): Fix typo in comment.
6448 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
6450         * predict.c (dump_prediction): New argument "USED".
6451         (combine_predictions_for_insn): Determine the used heuristics,
6452         output the case no heuristic applied.
6453         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
6455 2001-08-13  Andreas Jaeger  <aj@suse.de>
6457         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
6458         register %rip.
6460 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6462         * jump.c: Fix formatting.
6464 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6466         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
6467         length.
6469 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
6471         * loop.c (check_dbra_loop): Use condjump_label to compute
6472         jump_label.
6474         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
6475         to better document the files they're in.
6477 2001-08-12  Zack Weinberg  <zackw@panix.com>
6479         * recog.h (struct insn_operand_data): Shrink 'mode' field
6480         to 16 bits.
6482 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6484         * gcc.c: Fix comment formatting.
6485         * gccspec.c: Likewise.
6486         * gcov.c: Likewise.
6487         * gcse.c: Likewise.
6488         * genemit.c: Likewise.
6489         * gengenrtl.c: Likewise.
6490         * genrecog.c: Likewise.
6491         * gensupport.c: Likewise.
6492         * ggc-page.c: Likewise.
6493         * global.c: Likewise.
6494         * graph.c: Likewise.
6495         * ifcvt.c: Likewise.
6496         * integrate.c: Likewise.
6497         * lcm.c: Likewise.
6498         * libgcc2.c: Likewise.
6499         * loop.c: Likewise.
6500         * mbchar.c: Likewise.
6501         * optabs.c: Likewise.
6502         * predict.c: Likewise.
6503         * prefix.c: Likewise.
6504         * profile.c: Likewise.
6505         * protoize.c: Likewise.
6506         * real.c: Likewise.
6507         * recog.c: Likewise.
6508         * regclass.c: Likewise.
6509         * regmove.c: Likewise.
6510         * reg-stack.c: Likewise.
6511         * reload1.c: Likewise.
6512         * resource.c: Likewise.
6513         * rtlanal.c: Likewise.
6514         * rtl.c: Likewise.
6516 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6518         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
6519         a tree representing a constant is passed to the macro.
6521 2001-08-12  Richard Henderson  <rth@redhat.com>
6523         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
6524         (rs6000_elf_asm_out_destructor): New.
6525         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
6526         (DTORS_SECTION_ASM_OP): Remove.
6527         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6528         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
6530 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
6532         Revert:
6533         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6534         * gcc.c (set_collect_gcc_options): New function, split out from
6535         main.
6536         Ignore elided switches.
6537         (do_spec_1): Invoke before executing command.
6538         (set_input): Export.
6539         Move declaration ...
6540         * gcc.h (set_input): ... here.
6541         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6542         file.
6544 2001-08-12  Richard Henderson  <rth@redhat.com>
6546         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
6547         thinko wrt TARGET_RELOCATABLE.
6549 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6551         * fix-header.c (cb_file_change): Update prototype.
6553 2001-08-11  Zack Weinberg  <zackw@panix.com>
6555         * toplev.c (set_float_handler): Make static.
6556         * toplev.h: Don't prototype set_float_handler.
6558         * simplify-rtx.c: Don't include setjmp.h.
6559         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
6560         New functions.
6561         (simplify_unary_operation, simplify_binary_operation): Use them,
6562         via do_float_handler.
6564         * fold-const.c: Don't include setjmp.h.
6565         (exact_real_inverse_1): New function.
6566         (exact_real_inverse): Use it, via do_float_handler.
6568         * varasm.c: Don't include setjmp.h.
6569         (assemble_real_1): New function.
6570         (assemble_real): Use it, via do_float_handler.
6571         Call internal_error if we get a trap here.
6573         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
6574         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
6576 2001-08-11  Zack Weinberg  <zackw@panix.com>
6578         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
6579         STACK_BOUNDARY if not already defined.
6581         * calls.c, function.c, reload1.c, explow.c: Don't default
6582         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
6583         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
6585         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
6586         to run-time test.
6588         * doc/tm.texi: Document that STACK_BOUNDARY is required;
6589         clarify difference between it and PREFERRED_STACK_BOUNDARY.
6591 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6593         * cppmacro.c (enter_macro_context): Push macro expansions even
6594         if empty.
6596 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6598         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
6599         (rs6000_elf_section_type_flags): Actually return a value.
6601 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6603         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
6604         Clean up code: add missing comments and prototypes, fix warnings,
6605         remove obsolete code, fix spacing to conform to coding style.
6607 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6609         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
6610         and TARGET_ASM_CLOSE_PAREN.
6611         (regclass_map): CC register belongs to class NO_REGS.
6612         (legitimize_pic_address): Don't generate unnecessary moves
6613         (to avoid confusing loop optimization).
6614         (check_and_change_labels): Replace jump_long by indirect_jump.
6615         (s390_final_chunkify): Don't start a new literal pool on section
6616         switch in 64-bit code.
6617         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
6619         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
6620         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
6621         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
6622         modes correctly.
6623         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
6624         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
6625         (CONST_COSTS): Fixed incorrect costs.
6627         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
6628         Use emit_jump instead of emit_jump_insn (gen_jump).
6629         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
6630         (to avoid confusing flow analysis).
6631         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
6632         (casesi, casesi_jump): New.
6633         (jump_long): Removed.  Functionality merged into indirect_jump.
6634         (indirect_jump): Accept address_operand, not just register_operand.
6635         (cjump_long, icjump_long): Use same logic as indirect_jump.
6636         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
6637         Fixed broken setjmp/longjmp handling.
6638         (do_builtin_setjmp_setup): Removed.
6640         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
6641         broken GNU as versions that don't accept .quad with large
6642         negative values.  Use hexadecimal output instead.
6643         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
6644         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
6645         FUNCTION_EPILOGUE): Removed.  Now in targetm.
6647         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
6649         * config/s390/fixdfdi.h: Add missing copyright statement.
6650         Fix type conflicts on 64-bit.  Add missing SFmode routines.
6652         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
6653         email address.
6655 2001-08-11  Richard Henderson  <rth@redhat.com>
6657         * rtl.h (REG_EH_RETHROW): Remove.
6658         * rtl.c (reg_note_name): Update.
6659         * combine.c (distribute_notes): Don't check for it.
6661 2001-08-11  Richard Henderson  <rth@redhat.com>
6663         * combine.c (distribute_notes): Place REG_SETJMP.
6665 2001-08-11  Richard Henderson  <rth@redhat.com>
6667         * doc/extend.texi (Arrays and pointers implementation): Discourage
6668         relying on sign-extension of pointers.
6670 2001-08-11  H.J. Lu <hjl@gnu.org>
6672         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
6673         in_dtors.
6674         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
6675         RDATA_SECTION_ASM_OP.
6677 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6679         * doc/install.texi (Specific, c4x): Fix cross-reference to the
6680         main manual to work both for info and HTML versions.
6682 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6683             Matt Kraai <kraai@alumni.carnegiemellon.edu>
6685         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
6686         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
6687         (struct cpp_pool): New member first.
6688         * cppinit.c (append_include_chain): Plug memory leaks.
6689         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
6690         Allocate pragma structures from the (aligned) macro pool to
6691         avoid leaking memory.
6692         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
6693         so we don't leak memory.
6694         * hashtable.c (ht_destroy): New.
6695         * hashtable.h (ht_destroy): New.
6697 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6698             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6700         * c-lex.c (map): Make const.
6701         (cb_file_change): Update for callback passing a line map.
6702         Don't assume we have a previous map.  Remove sanity check
6703         about popping too many files.
6704         * cpperror.c (print_location): Make map const.
6705         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
6706         (cpp_make_system_header): Similarly.
6707         (search_from): Similarly.
6708         (_cpp_execute_include): Don't remember where we came from.
6709         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
6710         (struct cpp_reader): Make map const.
6711         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
6712         * cpplib.c (do_line): Update; line maps now hold sysp.
6713         (cpp_push_buffer): Similarly.
6714         (_cpp_do_file_change): Similarly; callback with map instead.
6715         (cpp_get_line_maps): Constify return value.
6716         (_cpp_pop_buffer): Update.
6717         * cpplib.h (struct cpp_file_change): Remove.
6718         (struct cpp_callbacks): Update.
6719         (cpp_get_line_maps): Constify return value.
6720         * cppmacro.c (_cpp_create_definition): Update.
6721         * cppmain.c (struct printer): Constify map.
6722         (maybe_print_line): Similarly.
6723         (print_line): Similarly.  Deduce flags 1 and 2 here.
6724         (cb_file_change): Update.
6725         * line-map.c (free_line_maps): Warn regardless.
6726         (add_line_map): Return pointer to const.  When passed NULL to_file
6727         with LC_LEAVE, use the obvious values for the return point so the
6728         caller doesn't have to figure them out.
6729         (lookup_line): Return pointer to const.
6730         (print_containing_files): Take pointer to const.
6731         * line-map.h (struct line_map): New members reason, sysp.
6732         (add_line_map): Return pointer to const.
6733         (lookup_line): Similarly.
6734         (print_containing_files): Take pointer to const.
6736 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
6737             Richard Henderson  <rth@redhat.com>
6739         * regmove.c (regmove_optimize): Avoid setting a register twice in
6740         a parallel set.
6742 2001-08-10  Richard Henderson  <rth@redhat.com>
6744         * doc/extend.texi (Arrays and pointers implementation): Document
6745         behavior of pointer/integer conversion.
6747 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
6749         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
6751 2001-08-10  Richard Henderson  <rth@redhat.com>
6753         * doc/extend.texi (C Implementation): New chapter.
6754         * doc/gcc.texi (Top): Link it in.
6756 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
6758         * doc/install.texi (Specific): Fix CVS merge botch.
6760 2001-08-10  Richard Henderson  <rth@redhat.com>
6762         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
6763         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
6765 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
6767         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
6768         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
6769         this macro is now required.
6771         * cselib.c (cselib_process_insn), flow.c (propagate_block),
6772         loop.c (find_and_verify_loops), reload.c (reload): Check
6773         for rtx code of CALL_INSN, not CALL, when deciding if we
6774         need to check for REG_SETJMP note.
6776         * gcse.c (compute_hash_table, compute_store_table): Update
6777         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
6778         logic.
6780         * config/avr/avr.c: Fix typo.
6781         * config/convex/convex.c (expand_movstr): Use adjust_address.
6782         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
6783         variable.
6784         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
6785         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
6786         Fix typo.
6787         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
6788         Do define STACK_BOUNDARY.
6789         * config/i370/i370.c: Include expr.h.
6790         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
6791         config/pa/som.h, config/v850/v850.h: Take in_ctors and
6792         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
6793         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
6794         * config/m88k/m88k.c: Include c-tree.h after expr.h.
6795         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
6796         * config/romp/romp.c: Include expr.h after tree.h.
6797         Include toplev.h.
6798         (output_fpop): Use xmalloc, not oballoc.
6799         * config/we32k/we32k.c: Include expr.h.
6801 2001-08-10  Kazu Hirata  <kazu@hxi.com>
6803         * config/h8300/h8300.h: Fix formatting.
6805 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
6807         * c-common.h (RETURN_NULLIFIED_P): Lose.
6808         * c-semantics.c (genrtl_return_stmt): Don't check it.
6810 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6812         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
6813         (mips_annotate_frame_insn): New function.
6814         (mips_emit_frame_related_store): New function.
6815         (save_restore_insns): Don't mark instructions that set up the base
6816         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
6817         the store instructions instead.
6818         (mips_expand_prologue): If the stack size is moved into a temporary
6819         register, do not mark that move as frame-related.  Add a
6820         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
6822 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6824         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
6825         stack slot as unchanging if current_function_calls_eh_return.
6827 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6829         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
6830         access the second half of the TFmode scratch operand.
6832 2001-08-10  Anthony Green  <green@redhat.com>
6834         * java/class.c (emit_register_classes): Conditionalize code on
6835         JCR_SECTION_NAME.
6837 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6839         * doc/install.texi (Specific, avr): Fix cross-reference to the
6840         main manual to work both for info and HTML versions.
6842 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6844         * stmt.c (expand_null_return_1): Remove code to generate simple returns
6845         and "use_goto" argument.
6846         (expand_null_return, expand_value_return): Update all callers.
6847         * function.c (expand_function_end): Remove code to generate simple
6848         return.
6849         * config/vax/vax.md (epilogue): New expander for function return.
6850         * doc/md.texi (epilogue): Remove "if defined".
6852 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
6854         * Makefile.in: Partially revert my previous change:
6855         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
6856         of the hashtab.o and safe-ctype.o rules.
6858 2001-08-09  Richard Henderson  <rth@redhat.com>
6860         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
6861         (USE_COLLECT2): Remove duplicate definition.
6862         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
6863         (use_collect2): Remove dead code.
6864         * configure.in (use_collect2): Remove will_use_collect2 and
6865         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
6866         * configure: Rebuild.
6868         * target.h (targetm.asm_out.constructor): New.
6869         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
6870         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
6871         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
6872         * varasm.c (in_ctors, in_dtors): New.
6873         (assemble_constructor, assemble_destructor): Remove.
6874         (default_stabs_asm_out_destructor): New.
6875         (default_named_section_asm_out_destructor): New.
6876         (dtors_section, default_dtor_section_asm_out_destructor): New.
6877         (default_stabs_asm_out_constructor): New.
6878         (default_named_section_asm_out_constructor): New.
6879         (ctors_section, default_ctor_section_asm_out_constructor): New.
6880         * output.h: Update declarations.
6881         * c-decl.c (c_expand_body): Use target hooks instead of
6882         assemble_constructor and assemble_destructor.
6883         * profile.c (output_func_start_profiler): Likewise.
6884         * objc/objc-act.c (finish_objc): Likewise.
6885         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
6886         for the constructor.
6887         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
6889         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
6890         (DTORS_SECTION_ASM_OP): Likewise.
6891         (__CTOR_LIST__): Use attribute section when possible.
6892         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
6894         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
6895         ASM_OUTPUT_CONSTRUCTOR.
6897         * config/darwin.c (machopic_asm_out_constructor): New.
6898         (machopic_asm_out_destructor): New.
6899         * config/darwin-protos.h: Update declarations.
6900         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6901         (ASM_OUTPUT_DESTRUCTOR): Remove.
6902         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6903         * config/nextstep.c (nextstep_asm_out_constructor): New.
6904         (nextstep_asm_out_destructor): New.
6905         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6906         (ASM_OUTPUT_DESTRUCTOR): Remove.
6907         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6908         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
6909         ASM_OUTPUT_*STRUCTOR.
6910         * config/i386/aix386ng.h: Likewise.
6912         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
6913         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
6914         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6915         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6916         * config/lynx.h: Likewise.
6917         * config/netware.h: Likewise.
6918         * config/psos.h: Likewise.
6919         * config/alpha/alpha-interix.h: Likewise.
6920         * config/alpha/elf.h: Likewise.
6921         * config/arc/arc.h: Likewise.
6922         * config/arm/aof.h: Likewise.
6923         * config/arm/coff.h: Likewise.
6924         * config/arm/elf.h: Likewise.
6925         * config/c4x/c4x.h: Likewise.
6926         * config/h8300/h8300.h: Likewise.
6927         * config/i386/cygwin.h: Likewise.
6928         * config/i386/djgpp.h: Likewise.
6929         * config/i386/i386-coff.h: Likewise.
6930         * config/i386/i386-interix.h: Likewise.
6931         * config/i386/sco5.h: Likewise.
6932         * config/i386/vsta.h: Likewise.
6933         * config/i386/win32.h: Likewise.
6934         * config/i960/i960-coff.h: Likewise.
6935         * config/ia64/sysv4.h: Likewise.
6936         * config/m68hc11/m68hc11.h: Likewise.
6937         * config/m68k/coff.h: Likewise.
6938         * config/m68k/mot3300.h: Likewise.
6939         * config/m88k/m88k.h: Likewise.
6940         * config/mcore/mcore-pe.h: Likewise.
6941         * config/mcore/mcore.h: Likewise.
6942         * config/mips/elf.h: Likewise.
6943         * config/mips/elf64.h: Likewise.
6944         * config/mips/iris6.h: Likewise.
6945         * config/pa/pa64-hpux.h: Likewise.
6946         * config/rs6000/sysv4.h: Likewise.
6947         * config/sh/sh.h: Likewise.
6948         * config/sparc/litecoff.h: Likewise.
6950         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
6951         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6952         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6953         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6954         (ASM_OUTPUT_DESTRUCTOR): Remove.
6955         * config/a29k/a29k.c: Move include of tree.h.
6956         * config/a29k/udi.h: Delete file.
6957         * config/alpha/alpha.c (vms_asm_out_constructor): New.
6958         (vms_asm_out_destructor): New.
6959         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
6960         (EXTRA_SECTION_FUNCTIONS): Likewise.
6961         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6962         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6963         * config/c4x/c4x.c: Move include of tree.h.
6964         * config/clipper/clipper.c (clix_asm_out_constructor): New.
6965         (clix_asm_out_destructor): New.
6966         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6967         (ASM_OUTPUT_DESTRUCTOR): Remove.
6968         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6969         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6970         (TARGET_ASM_CONSTRUCTOR): New.
6971         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
6972         (sco_asm_out_constructor): New.
6973         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
6974         * config/i386/svr3gas.h: Remove stack grows up code.
6975         Remove code duplicated from i386/sysv3.h.
6976         (TARGET_ASM_CONSTRUCTOR): New.
6977         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6978         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
6979         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6980         (TARGET_ASM_CONSTRUCTOR): New.
6981         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
6982         (m68hc11_asm_out_destructor): New.
6983         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
6984         (TARGET_ASM_DESTRUCTOR): New.
6985         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
6986         * config/m68k/dpx2.h: Properly undef all the bits inherited from
6987         config/svr3.h pertaining to section manipulation.
6988         * config/m68k/dpx2g.h: Remove #if 0 code.
6989         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
6990         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
6991         (ASM_OUTPUT_CONSTRUCTOR): Remove.
6992         (TARGET_ASM_CONSTRUCTOR): New.
6993         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
6994         (m88k_svr3_asm_out_constructor): New.
6995         (m88k_svr3_asm_out_destructor): New.
6996         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6997         (ASM_OUTPUT_DESTRUCTOR): Remove.
6998         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6999         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
7000         * config/rs6000/aix.h: Likewise.
7001         * config/mips/rtems64.h: Don't undef removed constructor related bits.
7002         * config/mips/vxworks.h: Likewise.
7003         * config/rs6000/lynx.h: Likewise.
7004         * config/sh/elf.h: Likewise.
7005         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
7006         (DTORS_SECTION_ASM_OP): New.
7007         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7008         (ASM_OUTPUT_DESTRUCTOR): Remove.
7009         * config/sparc/sol2-sld-64.h: Likewise.
7010         * config/vax/vax.c (vms_asm_out_constructor): New.
7011         (vms_asm_out_destructor): New.
7012         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7013         (ASM_OUTPUT_DESTRUCTOR): Remove.
7014         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7016         * doc/tm.texi (@node Initialization): Update.
7018 2001-08-09  Richard Henderson  <rth@redhat.com>
7020         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
7021         (__do_global_dtors_aux): Use gp-relative static data to avoid
7022         one dynamic relocation.
7023         (__do_frame_setup): Register Java classes.
7024         * config/alpha/crtend.asm (__JCR_END__): New.
7026 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
7028         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
7029         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
7030         (GEN, STAGESTUFF): Add new files.
7031         (insn-constants.h, s-constants, tm-preds.h, s-preds,
7032         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
7033         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
7034         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
7035         as well as insn-codes.h and insn-flags.h in config.h; and no
7036         extra headers in tconfig.h and hconfig.h.
7038         * gencodes.c: Eliminate code to generate predicate declarations
7039         or #defines for md-file constants.
7040         * genconstants.c, genpreds.c: New files.
7042         * i386.md: Re-order guard expressions such that TARGET_64BIT
7043         comes first, when this permits better optimization.  Add
7044         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
7045         why this is desirable.
7047 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
7049         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
7050         (find_fde_for_dso): Remove.
7051         (_Unwind_IteratePhdrCallback): New.
7052         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
7053         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
7055 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7057         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
7058         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
7060 2001-08-09  Graham Stott  <grahams@redhat.com>
7062         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
7063         (vis_no_unit): Use it.
7064         (visualize_no_unit): Add the insn only if room exists.
7066 2001-08-09  Graham Stott  <grahams@redhat.com>
7068         * predict.c (estimate_probability): Replace magic numbers with
7069         appropriate enumeration.
7071 2001-08-09  Graham Stott  <grahams@redhat.com>
7073         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
7074         parameter.
7075         (EXTRACT_FLAGS): Likewise.
7077 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
7079         * config/mips/mips.c    (mips_legitimate_address_p): Check for
7080         CONST_INT in last patch.
7082 2001-08-08  Anthony Green  <green@redhat.com>
7084         * java/class.c (emit_register_classes): Use assemble_jcr if
7085         possible.  Keep the original mechanism as a fallback.
7086         * defaults.h (JCR_SECTION_NAME): Define if we have named section
7087         and weak symbol support.
7088         * crtstuff.c (__JCR_LIST__): Define.
7089         (__JCR_END__): Define.
7090         (_Jv_RegiserClasses): Define weak symbol if possible.
7091         (__do_global_ctors_aux): Register classes for ELF targets with
7092         weak symbol support.
7094 2001-08-08  Kazu Hirata  <kazu@hxi.com>
7096         * dbxout.c: Fix comment formatting.
7097         * dependence.c: Likewise.
7098         * df.c: Likewise.
7099         * diagnostic.c: Likewise.
7100         * dominance.c: Likewise.
7101         * doprint.c: Likewise.
7102         * dwarf2out.c: Likewise.
7103         * dwarfout.c: Likewise.
7104         * emit-rtl.c: Likewise.
7105         * except.c: Likewise.
7106         * explow.c: Likewise.
7107         * expmed.c: Likewise.
7108         * expr.c: Likewise.
7109         * flow.c: Likewise.
7110         * fold-const.c: Likewise.
7111         * function.c: Likewise.
7113 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7115         * global.c (retry_global_alloc): Avoid shadowing allocno.
7117 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
7119         * except.c (remove_fixup_regions): Fix typo.
7121 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
7123         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
7124         unsigned HOST_WIDE_INT to avoid warning.
7125         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
7126         * flow.c (set_block_for_new_insns): Likewise.
7128 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
7130         * sibcall.c (return_value_pseudo): New static variable.
7131         (skip_copy_to_return_value): Handle return_value_pseudo.
7132         (call_ends_block_p): Ensure that return_value_pseudo is set.
7133         (optimize_sibling_and_tail_recursive_call): Discover the
7134         load of pseudo return value in alternate exit block.
7136 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7138         * calls.c (ECF_ALWAYS_RETURN): New constant.
7139         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
7140         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
7141         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
7142         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
7143         * rtl.c (reg_note_name): New name.
7144         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
7146 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
7148         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
7150 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
7152         * alias.c (get_alias_set): Return a previously calculated
7153         alias set for a VAR_DECL.
7154         * function.c (gen_mem_addressof): Calculate the alias set before
7155         touching the RTL.
7157 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
7159         * predict.def: Set hitrates according our experimental run.
7161 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
7163         * i386.h (HARD_REGNO_RENAME_OK): New macro.
7165 2001-08-08  H.J. Lu <hjl@gnu.org>
7167         * config/mips/mips.c (mips_unique_section): New. Copied from
7168         config/mips/elf.h.
7170         * config/mips/mips-protos.h (mips_unique_section): New
7171         prototype.
7173         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
7175         * config/mips/little.h: New. Generic little endian mips
7176         targets. Only mips*-*-linux* is converted to use it so far.
7178         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
7179         (WCHAR_TYPE): Defined
7180         (WCHAR_TYPE_SIZE): Likewise.
7181         (INIT_SUBTARGET_OPTABS): Likewise.
7182         (BSS_SECTION_ASM_OP): Likewise.
7183         (SBSS_SECTION_ASM_OP): Likewise.
7184         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7185         (ASM_DECLARE_OBJECT_NAME): Likewise.
7186         (UNIQUE_SECTION): Likewise.
7187         (EXTRA_SECTIONS): Likewise.
7188         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
7189         (ASM_OUTPUT_DESTRUCTOR): Likewise.
7190         (ASM_OUTPUT_DEF): Likewise.
7191         (HANDLE_SYSV_PRAGMA): Removed.
7192         (NO_IMPLICIT_EXTERN_C): Likewise.
7193         (TARGET_MEM_FUNCTIONS): Likewise.
7194         (STARTFILE_SPEC): Likewise.
7195         (ENDFILE_SPEC): Likewise.
7196         (LIB_SPEC): Likewise.
7197         (INVOKE__main): Likewise.
7198         (CTOR_LIST_BEGIN): Likewise.
7199         (CTOR_LIST_END): Likewise.
7200         (DTOR_LIST_BEGIN): Likewise.
7201         (DTOR_LIST_END): Likewise.
7202         (SET_ASM_OP): Likewise.
7203         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7204         (ASM_OUTPUT_DEF): Likewise.
7205         (ASM_OUTPUT_IDENT): Likewise.
7207         * config/mips/mips.h (ASM_SPEC): Undefine before define.
7208         (CPLUSPLUS_CPP_SPEC): Likewise.
7209         (ASM_APP_ON) Redefine only if not defined.
7210         (ASM_APP_OFF): Likewise.
7211         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7212         (ASM_OUTPUT_IDENT): Likewise.
7214         * config.gcc: Update tm_file for Linux/mips.
7216 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
7218         * cselib.c (cselib_record_sets): If insn is predicated, turn
7219         sources into IF_THEN_ELSEs.
7221         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
7222         Turn into define_insn_and_split.
7224         * sched-deps.c: Include "cselib.h".
7225         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
7226         Use cselib to turn memory addresses into VALUEs.
7227         (sched_analyze): Call cselib_init/cselib_finish if necessary.
7228         * sched-int.h (struct sched_info): New member USE_CSELIB.
7229         * sched-ebb.c (ebb_sched_info): Initialize it.
7230         * sched-rgn.c (rgn_sched_info): Likewise.
7231         * Makefile.in (sched-deps.o): Update dependencies.
7233         * cselib.h (cselib_subst_to_values): Declare.
7234         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
7235         that have no value and autoincs to be handled by generating a new
7236         dummy value.
7238 2001-08-08  Graham Stott  <grahams@redhat.com>
7240         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
7241         within fixed length SEQUENCE.
7243 2001-08-08  Graham Stott  <grahams@redhat.com>
7245         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
7246         (diagnostic_prefixing_rule): Likewise.
7247         (diagnostic_line_cutoff): Likewise.
7248         (diagnostic_kind_count): Likewise.
7250 2001-08-08  Graham Stott  <grahams@redhat.com>
7252         * alias.c (find_base_decl): Delete redundent assignment.
7254 2001-08-08  Graham Stott  <grahams@redhat.com>
7256         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
7257         (abs): Uppercase and paranthesize macro parameter.
7258         (MEM_DEPENDENCY): Add whitespace.
7260 2001-08-08  Graham Stott  <grahams@redhat.com>
7262         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
7263         failure check for CONST_INT
7265 2001-08-08  Graham Stott  <grahams@redhat.com>
7267         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
7268         (libcall_dead_p): Likewise.
7270         (mark_used_regs): Constify fmt.
7271         (find_use_as_address): Likewise.
7273 2001-08-08  Graham Stott  <grahams@redhat.com>
7275         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
7276          parameter.
7278 2001-08-08  Graham Stott  <grahams@redhat.com>
7280         * combine.c (combine_simplify_rtx): Update comment and
7281         remove erroneous test.
7283 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7285         * cppinit.c (cpp_finish): Pop the final buffer without comment.
7286         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
7287         take care to avoid multiple no-newline at EOF warnings in that
7288         case.
7290 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
7292         * calls.c (expand_call): Do not emit INSN_SETJMP note.
7293         (emit_library_call_value_1): Likewise.
7294         (emit_call_1): Emit REG_SETJMP note.
7295         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
7296         of INSN_SETJMP
7297         * cselib.c (cselib_process_insn): Likewise.
7298         * flow.c (propagate_block): Likewise.
7299         * loop.c (find_and_verify_loops): Likewise.
7300         * reload.c (find_equiv_regs): Likewise.
7301         * reload1.c (reload): Likewise.
7302         * resource.c (mark_referenced_resources,
7303         mark_set_resources): Likewise.
7304         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
7305         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
7306         * haifa-sched.c (unlink_other_notes): Likewise.
7307         (reemit_notes): Likewise.
7308         * sched-ebb.c (sched_ebb): Likewise.
7309         * sched-rgc.c (sched_region): Likewise.
7310         * rtl.c (note_insn_name): Likewise.
7311         (reg_note_name): Add REG_SETJMP
7312         * rtl.h (reg_note): Add REG_SETJMP.
7313         (insn_note): Remove NOTE_INSN_SETJMP.
7315         * profile.c (branch_prob): Add fake edges for setjmp.
7317 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
7319         * config.gcc: Quote target_cpu_default2 correctly for
7320         powerpc*-*-* targets.
7322 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7324         * cpplib.h, line-map.h: Update comments.
7325         * cppmain.c (printer_init): Move inline.
7326         (maybe_print_line, print_line): Take a map pointer.
7327         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
7328         (cb_file_change): Don't use prior value of print.map.
7330 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
7332         * doc/install.texi: Document fine-grained multilib configuration.
7334 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7336         * rtlanal.c (find_first_parameter_load): Call note_stores
7337         only on the instructions.
7339 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7341         * alias.c (nonlocal_mentioned_p):
7342         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
7343         * calls.c (emit_call_1): Likewise.
7344         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
7345         * cselib.c (cselib_process_insn): Likewise.
7346         * df.c (df_insns_modify): Likewise.
7347         * flow.c (need_fake_edge_p): Likewise.
7348         (propagate_one_insn): Likewise.
7349         * haifa-sched.c (reemit_notes): Likewise.
7350         * integrate.c (copy_insn_list): Likewise.
7351         * jump.c (delete_prior_computation): Likewise.
7352         * local-alloc.c (validate_equiv_mem): Likewise.
7353         * loop.c (scan_loop): Likewise.
7354         * predict.c (estimate_probability): Likewise.
7355         * reload.c (reload): Likewise.
7356         * sched-deps (sched_analyze): Likewise.
7357         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
7358         * gcse.c (compute_hash_table): Likewise.
7359         (mark_call): Likewise.
7360         (store_killed_in_insn): Likewise.
7362 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
7364         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
7366 2001-08-06  Richard Henderson  <rth@redhat.com>
7368         * varasm.c (assemble_gc_entry): Remove.
7369         * output.h: Likewise.
7371 2001-08-06  Richard Henderson  <rth@redhat.com>
7373         * varasm.c (assemble_constructor): Take a symbol_ref and a
7374         priority instead of a bare string.  Move priority handling
7375         here from cp/decl2.c.
7376         * output.h: Update decls.
7378         * c-decl.c (c_expand_body): Update calls to assemble_constructor
7379         and assemble_destructor.
7380         * profile.c (output_func_start_profiler): Likewise.
7381         * objc/objc-act.c (finish_objc): Likewise.
7382         (build_module_descriptor): Return the symbol not the symbol name.
7384 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
7386         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
7387         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
7388         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
7389         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
7390         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
7391         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
7393 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7395         * cpperror.c (print_containing_files): Moved to line-map.c.
7396         (print_location): line-map.c handles re-listing or otherwise.
7397         * cpphash.h (struct lexer_state): Remove next_bol.
7398         (struct cpp_buffer): Remove include_stack_listed.
7399         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
7400         Remove faked buffer handling.
7401         (_cpp_do_file_change): Tweak.
7402         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
7403         * cppmain.c (struct printer): Remove filename.
7404         (print_line, cb_file_change): Update accordingly.
7405         * line-map.c: Include intl.h.
7406         (init_line_maps): Initialize last_listed.
7407         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
7408         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
7409         (print_containing_files): New.
7410         * line-map.h (struct line_maps): New member last_listed.
7411         (print_containing_files, INCLUDED_FROM): New.
7412         * Makefile.in: Update.
7413         * po/POTFILES.in: Add line-map.c.
7415 2001-08-06  Richard Henderson  <rth@redhat.com>
7417         * except.c (convert_from_eh_region_ranges_1): Never mark
7418         USE or CLOBBER insns as throwing.
7420         * expr.c (store_constructor): Don't clobber memory targets.
7422 2001-08-06  Andreas Jaeger  <aj@suse.de>
7424         * profile.c (branch_prob): Remove unused variable insn.
7426         * Makefile.in (local-alloc.o): Add dependency on except.h.
7428         * local-alloc.c: Include except.h for can_throw_internal prototype.
7430 2001-08-06  Richard Henderson  <rth@redhat.com>
7432         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
7433         * function.c (expand_main_function): Implement it.
7434         * doc/tm.texi: Document it.
7436 2001-08-06  Stan Shebs  <shebs@apple.com>
7438         * doc/install.texi: Document powerpc-*-darwin* details.
7440 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
7442         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
7443         (ASM_CPU_SPEC): Move back to rs6000.h
7444         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
7446         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
7448         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
7449         readded.
7451         * config/rs6000/linux64.h: Ditto.
7453         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7454         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
7455         nothing.
7457         Remove accidently readded definitions of FUNCTION_PROLOGUE,
7458         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
7460         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7461         to rs6000.h
7463 2001-08-05  Richard Henderson  <rth@redhat.com>
7465         * local-alloc.c (update_equiv_regs): Do not move insns that
7466         can throw.
7468 2001-08-05  Jan Hubicka  <jh@suse.cz>
7470         * Makefile.in (reload1.o): Add dedendancy on except.h
7471         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
7472         prototypes.
7473         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
7474         indicating wehther edges has been cleaned up.
7475         * reload1.c: Inlucde except.h
7476         (fixup_abnormal_edges): Accept deleted insns.
7477         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
7478         after combine.
7480 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7482         * cpplib.c (do_line): Correct line number after pop_buffer.
7484 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7486         PR preprocessor/3824
7487         * line-map.c: Update comments.
7488         * line-map.h: Update comments.
7489         * tradcif.y: Don't consider large numbers unsigned.
7491 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7493         PR preprocessor/3081
7494         * c-lex.c (map): New.
7495         (cb_file_change): Update map and use it.
7496         (cb_def_pragma, cb_define, cb_undef): Use map and line.
7497         (c_lex): Update to use map.
7498         * cpperror.c (print_location): Move to using logical line numbers.
7499         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
7500         (cpp_make_system_header): Similarly.
7501         (_cpp_execute_include): Stop line numbering hacks.  Store the
7502         line we will return to.
7503         * cpphash.h (CPP_BUF_LINE): Remove.
7504         (struct cpp_buffer): Remove lineno and pseudo_newlines.
7505         Add map and return_to_line.
7506         (_cpp_do_file_change): Update.
7507         * cppinit.c (cpp_start_read): Update line kludge.
7508         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
7509         (trigraph_ok): Use logical line numbers for diagnostics.
7510         (skip_block_comment): Likewise.
7511         (skip_whitespace): Likewise.
7512         (skip_line_comment): Use pfile->line instead.
7513         (_cpp_lex_token): Update to use logical line numbering exclusively.
7514         Handle BOL locally.  Accept new lines in directives, but keep
7515         pfile->line decremented.  Diagnostics use logical lines.  Update
7516         directive handling.
7517         * cpplib.c (SEEN_EOL): New.
7518         (skip_rest_of_line, check_eol): Use it.
7519         (end_directive): Increase line number when accepting the newline
7520         at the end of a directive.
7521         (run_directive): Simplify.
7522         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
7523         (_cpp_do_file_change): Update to take buffer line number as an
7524         argument, and store the current map in the cpp_reader.  Remove
7525         line number kludges.
7526         (_cpp_do__Pragma): Restore output position after a _Pragma.
7527         (cpp_push_buffer): Don't set output line or lineno.
7528         (_cpp_pop_buffer): Transfer more info from a faked buffer.
7529         Remove line kludge.  Set output_line.
7530         * cppmacro.c (builtin_macro): Update handling of __LINE__.
7531         (parse_arg): Use logical lines.
7532         (save_lookahead_token): Save EOFs too now.
7533         * cppmain.c (struct printer): Fix comments.
7534         (printer_init): Simplify, let caller do errors.
7535         (scan_translation_unit, check_multiline_token, dump_macro): Update.
7536         (maybe_print_line): Simplify.
7537         (print_line): Don't print a linemarker if -P.
7538         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
7539         (cb_file_change): Simplify.
7540         * line-map.h (LAST_SOURCE_LINE): Fix.
7541         (CURRENT_LINE_MAP): New.
7543 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
7545         * doloop.c (doloop_modify_runtime): Properly compute number of
7546         iterations if loop was unrolled.
7548         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
7549         if their CSELIB_VAL_PTRs are.
7551         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
7552         (setup_spill_pointers): Initialize it.
7553         (spill_restore_mem): Set it.
7554         (do_spill, do_restore): Use it to add REG_INC note.
7555         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
7557         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
7558         asms if other insns are available.
7560         * config/ia64/ia64.c (condop_operator): New predicate.
7561         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
7562         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
7563         patterns.
7565         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
7566         temporary register than directly using a MEM.
7568 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7570         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
7571         parameter in last change.
7573 2001-08-04  Zack Weinberg  <zackw@panix.com>
7575         * sparc.md: Don't use #if inside C test expression.
7577 2001-08-04  Richard Henderson  <rth@redhat.com>
7579         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
7581 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7583         * cpphash.h (struct cpp_reader): New member directive_line.
7584         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
7585         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
7586         do_pragma): Pass line to callbacks.
7587         (start_directive): Record line of directive.
7588         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
7589         cb_include): Similarly.
7590         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
7591         Similarly.
7593 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7595         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
7596         comment.
7598 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7600         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
7602         * reload1.c (fixup_abnormal_edges): New static function.
7603         (reload): Use it.
7605         * flow.c (need_fake_edge_p): New function.
7606         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
7607         avoid call insn to be very last insn in the insn stream.
7609         * profile.c (branch_prob): Call flow_call_edges_add instead of
7610         doing that by hand; cleanup cfg to re-merge basic blocks once
7611         we are done.
7613 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7615         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
7616         are also on line-map.h.
7617         * cppfiles.c (stack_include_file): Update.
7618         * cpphash.h (struct cpp_buffer): New member return_at_eof.
7619         (_cpp_pop_buffer): New.
7620         * cppinit.c (cpp_destroy, cpp_finish): Update.
7621         (do_includes): Mark each buffer to return at EOF.
7622         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
7623         return as requested.
7624         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
7625         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
7626         * cpplib.h (cpp_pop_buffer): Remove.
7627         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
7628         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
7629         buffers.
7630         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
7631         to pop buffers.
7632         (do_preprocessing): Update.
7633         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
7634         * c-parse.in (_yylex): Similarly.
7635         * scan-decls.c (scan_decls): Similarly.
7636         * line-map.h: Update comments.
7638         * objc/Make-lang.in (objc-act.o): Update dependencies.
7640 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7642         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
7643         and soft register for operand 0.
7644         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
7646 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7648         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
7649         register for operand 0.
7650         ("bitcmpqi_z_used"): Allow memory for operand 0.
7651         (split "bitcmpqi"): New split to handle address reg as operand 1.
7653 2001-08-04  Andreas Jaeger  <aj@suse.de>
7655         * gcse.c: Revert Daniel's last patch.
7657 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7659         * sparc-protos.h: Add prototypes for fp_zero_operand and
7660         reg_or_0_operand.
7661         * sh-protos.h: Add prototype for fpul_operand.
7663 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7665         * doc/extend.texi (Other Builtins): Fix typo in last change.
7667 2001-08-03  Richard Henderson  <rth@redhat.com>
7669         * target.h (gcc_target): Add asm_out.named_section,
7670         section_type_flags, have_named_sections.
7671         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
7672         (TARGET_HAVE_NAMED_SECTIONS): New.
7673         (TARGET_SECTION_TYPE_FLAGS): New.
7675         * Makefile.in (toplev.o): Depend on TARGET_H.
7676         (varasm.o, dbxout.o): Likewise.
7677         * c-common.c (decl_attributes): Check targetm.have_named_sections
7678         instead of ifdef ASM_OUTPUT_SECTION_NAME.
7679         * dbxout.c (dbxout_function_decl): Likewise.
7680         (dbxout_function_end): Likewise.
7681         * toplev.c (compile_file): Likewise.
7682         * varasm.c (exception_section): Likewise.
7683         * cp/decl2.c (finish_objects): Likewise.
7685         * defaults.h (EH_FRAME_SECTION): Remove.
7686         (EH_FRAME_SECTION_ASM_OP): Remove.
7687         (EH_FRAME_SECTION_NAME): New.
7688         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
7689         (UNIQUE_SECTION_P): Remove.
7690         * dwarf2out.c (SECTION_FORMAT): Remove.
7691         (ASM_OUTPUT_SECTION): Remove.
7692         (output_call_frame_info): Use named_section_flags.
7693         (output_comp_unit, dwarf2out_start_source_file): Likewise.
7694         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
7695         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
7696         * varasm.c (in_eh_frame, eh_frame_section): Remove.
7697         (named_section_flags): New.
7698         (named_section): Use it and targetm.section_type_flags.
7699         (resolve_unique_section): New.
7700         (assemble_start_function): Use it.
7701         (asm_emit_uninitialised, assemble_variable): Likewise.
7702         (default_section_type_flags): New.
7703         (default_no_named_section, default_elf_asm_named_section): New.
7704         (default_coff_asm_named_section, default_pe_asm_named_section): New.
7705         * output.h: Update varasm.c decls.
7706         (SECTION_*): New flags.
7708         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
7709         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
7711         * config/elfos.h (UNIQUE_SECTION_P): Remove.
7712         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
7713         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
7714         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7715         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
7716         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
7717         * config/mips/elf.h, config/mips/elf64.h: Likewise.
7718         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
7719         * config/pa/pa64-hpux.h,
7721         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
7722         (TARGET_ASM_NAMED_SECTION): New.
7723         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
7724         * config/alpha/vms.h, config/arm/coff.h: Likewise.
7725         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
7726         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
7727         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
7728         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
7729         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7730         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
7731         * config/i386/sco5.h, config/i386/win32.h: Likewise.
7732         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
7733         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
7734         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
7735         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
7736         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
7737         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
7738         * config/sparc/sysv4.h: Likewise.
7740         * config/nextstep.h: Error until named sections implemented.
7742         * config/a29k/a29k.c (a29k_asm_named_section): New.
7743         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
7744         (vms_section_type_flags, vms_asm_named_section): New.
7745         * config/arm/arm.c (arm_elf_asm_named_section): New.
7746         * config/avr/avr.c (asm_output_section_name): Remove.
7747         * config/avr/avr-protos.h: Update.
7748         * config/c4x/c4x.c (c4x_asm_named_section): New.
7749         * config/h8300/h8300.c (h8300_asm_named_section): New.
7750         * config/i386/i386.c (sco_asm_named_section): New.
7751         * config/i386/winnt.c (SECTION_PE_SHARED): New.
7752         (i386_pe_section_type_flags): New.
7753         (i386_pe_asm_named_section): New.
7754         * config/i386/i386-protos.h: Update.
7755         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
7756         * config/mcore/mcore.c (mcore_asm_named_section): New.
7757         * config/mips/mips.c (iris6_asm_named_section): New.
7758         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
7759         instead of UNIQUE_SECTION_P.
7760         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
7761         (xcoff_asm_named_section): New.
7762         * config/sh/sh.c (sh_asm_named_section): New.
7763         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
7765         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
7766         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
7767         (EH_FRAME_SECTION_NAME): New.
7768         (EXCEPTION_SECTION): New.
7769         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
7770         (DEBUG_*_SECTION): Remove.
7771         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
7772         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
7773         (EH_FRAME_SECTION_ASM_OP): Remove.
7775         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
7776         (ASM_OUTPUT_SECTION_NAME): Remove.
7777         (TARGET_ASM_NAMED_SECTION): New.
7778         (TARGET_HAVE_NAMED_SECTIONS): New.
7779         (TARGET_SECTION_TYPE_FLAGS): New.
7780         (EH_FRAME_SECTION_ASM_OP): Remove.
7781         (EH_FRAME_SECTION_NAME): New.
7783 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7785         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
7786         for complex expressions when cfun == 0.
7787         * doc/extend.texi: Document that __builtin_constant_p can be
7788         used in data initializers as well as functions.
7790 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
7792         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
7793         variable I locally, instead of expecting a declaration in the
7794         calling context.
7796 2001-08-03  Richard Henderson  <rth@redhat.com>
7798         * except.c (collect_one_action_chain): Add an explicit cleanup
7799         action if regions surrounding a catch were encoded entirely
7800         within the call-site entry.
7802 2001-08-03  Richard Henderson  <rth@redhat.com>
7804         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
7805         don't take REGNO of a non-register.
7807 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7809         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
7810         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
7811         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
7812         (__gthread_mutex_init_function): New function for mutex initialization.
7814 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7816         * Makefile.in: Revert screwed up commit.
7818 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7820         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
7821         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
7822         merged by linker script to get a final _exit().
7823         (__do_global_dtors): New for destructor handling in specific exit
7824         section.
7825         (__do_global_ctors): New for constructors in specific install section.
7826         (__map_data_section): Map data sections before running constructors.
7827         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
7828         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
7829         (DTORS_SECTION_ASM_OP): Likewise.
7830         (CTORS_SECTION_FUNCTION): Define to force a reference to
7831         __do_global_ctors.
7832         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
7834 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7836         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
7838         * Makefile.in: Add df.h to gcse.c dependencies.
7840 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7842         * varasm.c (output_constant_def_contents): Use for the length of a
7843         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
7844         depending on which is larger.
7846 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7848         * gcse.c: Include df.h for use as a dataflow analyzer.
7849         Remove regvec.
7850         Declaration of reg_set_info: gone.
7851         New df_analyzer variable used by store motion.
7852         (reg_set_info): Deleted.
7853         (mark_mem_regs): New function, analyze regs used by a mem.
7854         (store_ops_ok): Use dataflow analyzer results to determine if
7855         necessary regs are changed in the block.
7856         (find_moveable_store): Remove check for symbol ref, we can handle
7857         much more complex expressions now.
7858         (compute_store_table): Remove most of the code, it's unnecessary
7859         now that the dataflow analyzer records the info for us.
7860         (store_killed_after): Add parameter to say whether to do the
7861         store_ops_okay test, used to speed up testing when we already know
7862         the answer, and just want to know if the store itself was killed.
7863         (build_store_vector): Largely rewritten to calculate the various
7864         vectors properly, and somewhat optimized.
7865         (store_motion): Init the df_analyzer, get REG_DEF chains.
7866         Also handle trapping expressions (since mems almost always trap)
7867         (simple_mem): Redefine what a simple mem is.
7869 2001-08-03  DJ Delorie  <dj@redhat.com>
7871         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
7872         set from a constant part of the condition.
7874 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
7876         * mkdeps.c (deps_add_default_target): Make local variable
7877         ``start'' a const char pointer.
7878         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
7880 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7882         * doc/install.texi (Configuration): Fix markup.
7883         (Specific, i?86-*-udk): Likewise.
7884         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
7885         --with-gnu-ld.
7886         Document --enable-threads and --enable-libgcj status.
7887         (Specific, mips-sgi-irix*): Canonicalize triples.
7888         (Specific, mips-sgi-irix5): Warn about problems with this config.
7889         Mention required GNU as patch.
7890         Native assembler problems are fixed.
7891         (Specific, mips-sgi-irix6): Update O32 ABI support status.
7892         Document --enable-threads and --enable-libgcj status.
7894 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7896         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
7897         of mkinstalldirs.
7899 2001-08-03  Richard Henderson  <rth@redhat.com>
7901         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
7902         constant data.
7904 2001-08-03  Richard Henderson  <rth@redhat.com>
7906         * rtlanal.c (find_first_parameter_load): Stop if we
7907         reach a CODE_LABEL at BOUNDARY.
7909 2001-08-03  Richard Henderson  <rth@redhat.com>
7911         * config/alpha/alpha.md (force_movdi): New insn.
7912         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
7913         Tweek FRP marking of VMS prologue insns.
7914         * config/alpha/vms.h (EPILOGUE_USES): New.
7916 2001-08-02  Richard Henderson  <rth@redhat.com>
7918         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
7920 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7922         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
7923         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
7924         config/convex/convex.h, config/d30v/d30v.c,
7925         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7926         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
7927         config/mips/mips.h, config/mn10200/mn10200.h,
7928         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
7929         config/v850/v850.h, config/vax/openbsd.h,
7930         config/vax/openbsd1.h, config/vax/ultrix.h,
7931         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
7932         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
7933         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
7934         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
7935         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
7936         in comments and documentation.
7938 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7940         * line-map.c: New.
7941         * line-map.h: New.
7942         * Makefile.in (line-map.o): New.
7943         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
7944         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
7945         * cpperror.c (print_containing_files): Similarly.
7946         (print_location): Update.  Don't output a space before _Pragma.
7947         * cppfiles.c (stack_include_file): Set to line 1 immediately.
7948         (stack_include_filee, cpp_make_system_header): Update.
7949         (_cpp_execute_include): Get logical line number right for calling
7950         as-yet-unterminated #include.
7951         * cpphash.h (struct cpp_reader): Add line_maps.
7952         (_cpp_do_file_change): Update.
7953         * cppinit.c (cpp_create_reader): Initialize line maps.
7954         (cpp_destroy): Destroy line maps.
7955         (cpp_start_read): Get logical line number right.
7956         * cpplex.c (parse_string): Only warn once for multi-line strings.
7957         Use boolean variable for null warning.
7958         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
7959         already.
7960         (do_include_common): End the directive early.
7961         (do_line): Don't warn about out-of-range lines in preprocessed
7962         source.  Update.  Remove unused variables.
7963         (_cpp_do_file_change): Update for new line mapping.
7964         (pragma_cb): New typedef.
7965         (cpp_register_pragma): Stop looking ahead before calling the
7966         handler.  Clean up.
7967         (do_pragma_system_header): End directive early.
7968         (cpp_get_line_maps): New.
7969         (cpp_pop_buffer): Fudge logical line.  Update.
7970         * cpplib.h: Include line-map.h
7971         (enum cpp_fc_reason): Remove.
7972         (struct cpp_file_change): Update.
7973         (cpp_get_line_maps): New.
7974         * cppmain.c (struct_printer): New member map.
7975         (cb_file_change): Update for new mappings.
7976         * fix-header.c (cb_file_change): Similarly.
7978 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7980         * Makefile.in (libgcc.mk): Define mkinstalldirs.
7981         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
7983 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7985         * config/vax/vax.c: include expr.h.
7987 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7989         * Makefile.in ($(srcdir)/configure): Only rebuild in
7990         maintainer mode.
7991         ($(srcdir)/config.in): Only define in maintainer mode.
7992         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
7994 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
7996         * doc/install.texi (Install GCC: Binaries): Update Bull info.
7998 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8000         * gcc.c (set_collect_gcc_options): New function, split out from
8001         main.
8002         Ignore elided switches.
8003         (do_spec_1): Invoke before executing command.
8004         (set_input): Export.
8005         Move declaration ...
8006         * gcc.h (set_input): ... here.
8007         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8008         file.
8010 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
8012         Kill -fhonor-std.
8013         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
8014         interaction.
8015         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
8017 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
8019         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
8020         for the unnamed instructions it expands to.
8022 2001-08-02  Richard Henderson  <rth@redhat.com>
8024         * regclass.c (call_really_used_regs): Conditionally define.
8025         (init_reg_sets_1): Don't use it if not defined.
8026         (fix_register): Similarly, don't set it.
8028 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8030         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
8031         Correct comment that had been missed in the previous change.
8033 2001-08-01  Stan Shebs  <shebs@apple.com>
8035         * config/darwin.c (machopic_stub_name): Try matching by name.
8036         (update_stubs): New function.
8037         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
8038         unconditionally.
8040 2001-08-01  Richard Henderson  <rth@redhat.com>
8042         * except.c (output_function_exception_table): Use assemble_align.
8043         * varasm.c (assemble_eh_label): Remove.
8044         (assemble_eh_align, assemble_eh_integer): Remove.
8046 2001-08-01  Robert Lipe  <robertl@caldera.com>
8048         * dwarfout.c: Remove reference to README.DWARF.
8050 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
8052         * regclass.c (call_really_used_regs): New array for registers which
8053         are actually used by a call.
8054         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
8055         new array.
8056         (fix_register): Set call_really_used too.
8057         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
8058         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
8060 2001-08-01  Richard Henderson  <rth@redhat.com>
8062         * read-rtl.c (read_name): Consider \r whitespace.
8064 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
8066         * config.gcc: Recognize powerpc-*-netbsd*.
8068         * doc/install.texi (Host/target specific installation notes for
8069         GCC): Mention powerpc-*-netbsd*.
8071         * config/rs6000/netbsd.h: New file.
8072         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
8073         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
8074         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
8075         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
8076         (TARGET_VERSION): Redefine.
8078         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
8079         mcall-netbsd as a match for mcall-sysv.
8080         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
8081         (ncrti.S, ncrtn.S): New targets.
8082         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
8084         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
8085         "netbsd' as a V4 ABI.
8086         (ASM_SPEC): Check for -mcall-netbsd.
8087         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
8088         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
8089         (LIB_SPEC, ENDFILE_SPEC): Ditto.
8090         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
8091         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
8092         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
8093         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
8095         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
8096         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
8098 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8100         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
8101         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
8102         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
8103         including "unwind-pe.h".
8105 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
8107         * rs6000.md (define_splits): Kill unused constraints.
8109 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
8110                               Jan Hubicka  <jh@suse.cz>
8112         * function.c (thread_prologue_and_epilogue_insns): Kill code
8113         dealing with non-existent CFG.
8115 2001-08-01  Kazu Hirata  <kazu@hxi.com>
8117         * alias.c: Fix comment formatting.
8118         * bitmap.c: Likewise.
8119         * builtins.c: Likewise.
8120         * calls.c: Likewise.
8121         * c-common.c: Likewise.
8122         * c-decl.c: Likewise.
8123         * c-dump.c: Likewise.
8124         * c-lex.c: Likewise.
8125         * collect2.c: Likewise.
8126         * combine.c: Likewise.
8127         * conflict.c: Likewise.
8128         * cppfiles.c: Likewise.
8129         * cppinit.c: Likewise.
8130         * cpplex.c: Likewise.
8131         * cpplib.c: Likewise.
8132         * cppmacro.c: Likewise.
8133         * cppspec.c: Likewise.
8134         * c-pragma.c: Likewise.
8135         * crtstuff.c: Likewise.
8136         * cse.c: Likewise.
8137         * cselib.c: Likewise.
8138         * c-semantics.c: Likewise.
8139         * c-typeck.c: Likewise.
8141 2001-08-01  H.J. Lu <hjl@gnu.org>
8143         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
8145 2001-08-01  H.J. Lu <hjl@gnu.org>
8147         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
8149 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
8151         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
8152         contextualizing Objective-C class name lookup by the lexer.
8153         (typespec_reserved_nonattr): Disable ObjC class name lookup after
8154         seeing a TYPESPEC.
8155         (protocoldef): Add support for forward @protocol declarations.
8156         (yylexname): Suppress ObjC class name lookup in certain contexts;
8157         re-enable after lookup is complete.
8158         (_yylex): Re-enable ObjC class name lookup when certain
8159         punctuation marks are seen.
8161         * objc/objc-act.c (check_protocol_recursively): New function used
8162         for finding circular dependencies in protocols.
8163         (objc_declare_protocols): New function for handling forward
8164         @protocol declarations.
8165         (receiver_is_class_object): Detect the case when 'self' is used
8166         inside of a class method.
8167         (build_message_expr): Issue a warning if class method is desired
8168         but instance method is found instead.
8169         (conforms_to_protocol): Streamline.
8170         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
8171         protocol Foo, even if 'Bar foo' does not.
8172         (check_protocols): Streamline.
8173         (start_protocol): Add checks for circular and duplicate protocol
8174         definitions.
8175         (encode_aggregate_within): For typedefs of structs, encode the
8176         underlying struct.
8177         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
8178         (objc_declare_protocols): New prototype.
8180 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8182         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
8183         * cpplex.c (handle_newline): Update prototype.  Maintain logical
8184         line number.
8185         (skip_escaped_newlines, skip_block_comment, parse_string):
8186         Update accordingly.
8187         (_cpp_lex_token): Update, and store token position within the token.
8188         * cpplib.h (struct cpp_token): Add line and column entries.
8189         * cppmacro.c (replace_args): Position stringified tokens correctly.
8191 2001-08-01  Andreas Jaeger  <aj@suse.de>
8193         * basic-block.h: Add prototype for last_loop_beg_note.
8195 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
8197         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
8198         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
8199         comment.
8200         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
8201         while handling WITH_CLEANUP_EXPR node. Use second operand calling
8202         expand_decl_cleanup.
8203         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
8204         the first RTX.
8205         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
8206         operand while calling simple_cst_equal.
8207         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
8208         operand is the cleanup expression, the third is the RTL_EXPR.
8209         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
8211 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
8213         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
8215 2001-07-31  matthew green  <mrg@eterna.com.au>
8217         * config.gcc (i386-*-netbsdelf): New description.
8218         * config/i386/netbsd-elf.h: New file.
8220 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
8222         * loop.c (check_dbra_loop): Use single_set to compute
8223         jump_label.
8225 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
8227         PowerPC reorg and support for powerpc64-*-linux*.
8229         Also fixes emitting of constants on 32 bit and 64 bit
8230         platforms.
8232         * config.gcc: powerpc64-*-linux* is a new target.
8233         Things that needed aix.h now also include xcoff.h
8235         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
8236         xcoff.h.
8237         Move AIX specific stuff into aix.h.
8238         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
8239         with more than just XCOFF now.
8240         (SET_ASM_OP): Remove, now defined where needed.
8241         (FUNCTION_PROLOGUE): New macro definition.
8242         (FUNCTION_EPILOGUE): New macro definition.
8243         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
8245         * config/rs6000/xcoff.h: New file.
8247         * config/rs6000/linux64.h: New file.
8249         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
8251 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
8253         * rs6000.c (print_operand_address): Handle ELF syntax.
8254         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
8255         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
8256         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
8258 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
8260         * rs6000.c (rs6000_override_options): Only disable
8261         flag_function_sections for XCOFF.
8262         (exact_log2_cint_operand): New predicate.
8263         (reg_or_{add,sub}_cint64_operand): New predicates.
8264         (add_operand): Compare CONST_INT with fewer function calls.
8265         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
8266         (print_operand, case 'p'): Ensure positive operand.
8267         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
8268         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
8269         (PREDICATE_CODES): Add new predicates.
8270         * rs6000.md (addsi3): Split 32-bit constants more correctly.
8271         (divsi3, modsi3): Ensure positive power-of-2.
8272         (adddi3): Use new predicate.  Split 32-bit constants more
8273         correctly.  Re-arrange splitter to handle any constant.
8274         (subdi3): Use new predicate.
8275         (divdi3, moddi3): Ensure positive power-of-2.
8276         (movdi): Use rs6000_emit_set_const.
8277         (load_toc_v4_pic_di): Delete.
8279 2001-07-31  Graham Stott <grahams@redhat.com>
8281         * function.c (pad_below): Revert 2001-07-26 patch.
8283 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8285         * reg-stack (convert_regs_1): Fix best edge condition.
8287 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8289         * jump.c (duplicate_loop_exit_test): Better test for jumps
8290         entering the loop; create loop pre_header.
8292 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
8294         * doc/install.texi: Add s390 and s390x as new targets.
8295         * doc/invoke.texi: Add documantation of S/390 and zSeries
8296         target options.
8297         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
8299 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8301         * config/m68k/m68k.md: Replace all general_operand with
8302         nonimmediate_operand for all destinations.
8303         * config/m68k/m68k.c (not_sp_operand): Likewise.
8305 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
8307         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
8309 2001-07-30  Richard Henderson  <rth@redhat.com>
8311         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
8312         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
8314 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8316         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
8317         Add missing doc strings
8318         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
8319         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
8321 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
8323         * i386.c (ix86_output_main_function_alignment_hack): New function.
8324         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
8326         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
8327         edges by EDGE_DFS_BACK flag.
8328         (dump_edge_info): Add dfs_back flag.
8329         * basic-block.h (EDGE_DFS_BACK): New constant.
8330         (mark_dfs_back_edges): Declare.
8331         * alias.c (loop_p): Remove.
8332         (mark_constant_function): Use mark_dfs_back_edges.
8334         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
8335         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
8336         (compensate_edge): Break out from ...
8337         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
8338         (convert_regs_2): Set block_done once block is really done;
8339         Do updating of the predecesors counts.
8341         * toplev.c (rest_of_compilation): Recompute block_for_insn
8342         before post-reload cfg_cleanup.
8343         * function.c (thread_prologue_epilogue_insns):
8344         Call set_block_for_new_insns when emitting prologue directly.
8346 2001-07-30  Andreas Jaeger  <aj@suse.de>
8348         * jump.c: Add prototype for mark_modified_reg.
8350         * cse.c (set_live_p): Add unused attribute.
8352         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
8353         overflow.
8354         (scan_for_source_files): Use long for count to avoid overflow.
8355         (output_data): Likewise.
8356         (output_data): Don't use string concatatenation to silence gcc
8357         -traditional.
8359         * predict.c: Fix typos and grammar.
8361         * gcse.c (insert_insn_end_bb): Remove unused variables.
8363 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
8365         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
8366         (attempt_auto_inc): LIkewise.
8367         (mark_used_reg): Likewise.
8368         (try_pre_increment_1): Likewise.
8369         * regclass.c (regclass): Likewise.
8370         * global.c (allocno_compare): Update comment; change scaling factor.
8371         * local-alloc.c (QTY_CMP_PRI): Likewise.
8372         * regs.h (REG_FREQ_FROM_BB): New.
8373         (REG_FREQ_MAX): Likewise.
8375 2001-07-30  H.J. Lu <hjl@gnu.org>
8377         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
8378         -D_GNU_SOURCE.
8380 2001-07-30  H.J. Lu  (hjl@gnu.org)
8382         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
8383         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8384         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
8386 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
8388         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
8389         as -mthumb-interwork when -mcpu=arm7 is specified.
8391 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8393         * predict.def (noreturn, loop branch, loop exit): Mark as first
8394         match heuristics.
8396 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
8398         * combine.c (try_combine): Avoid barrier after noop jumps.
8400 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8402         * cpphash.h (struct cpp_reader): Remove import_warning.
8403         * cpplib.c (skip_rest_of_line): Don't bother turning off
8404         macro expansion.
8405         (parse_include): Move include handling to...
8406         (do_include_common): ... here.  Move import warning from...
8407         (do_import): ... here.
8408         (do_pragma_poison): Don't do a callback for poison identifiers.
8409         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
8410         * cppmain.c (setup_callbacks): Similarly.
8412 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8414         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
8415         handle multiple sets.
8416         * except.c (sjlj_mark_call_sites): .... here.
8417         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
8419 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
8421         Suggested by Richard Henderson and Richard Kenner:
8422         * combine.c (recog_for_combine): Use the fake recog
8423         only if instruction does not match.
8424         * rtl.h (NOOP_MOVE_INSN_CODE): New.
8425         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
8427         * combine.c (try_combine): Discover noop jump as direct jump.
8429 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
8431         * df.c (df_rd_global_compute): Add successors to worklist, not
8432         current item.
8433         (df_ru_global_compute): Ditto.
8435 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
8437         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
8438         increment REG_N_SETS.
8440 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
8442         * sbitmap.h: New prototype for sbitmap_a_xor_b.
8444         * sbitmap.c (sbitmap_a_xor_b): New function.
8445         ifdef the basic block stuff on IN_GCC.
8447 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8449         * cppexp.c (parse_defined): Always record the macro name.
8450         (lex): Don't worry about identifiers, or special-case
8451         CPP_NOT here.
8452         (_cpp_parse_expr): Figure out at the end of the routine
8453         whether we saw a valid !defined() expression.
8454         * cppfiles.c (stack_include_file): Update for mi_valid.
8455         (_cpp_pop_file_buffer): Similarly.
8456         * cpplex.c (_cpp_lex_token): Similarly.
8457         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
8458         mi_if_not_defined, mi_lexed): Remove.
8459         (mi_valid): New.
8460         * cpplib.c (do_if): Simplify.
8461         (do_endif, push_conditional, _cpp_handle_directive): Update
8462         for renaming of mi_state to mi_valid.
8463 doc:
8464         * cpp.texi: Add index entries for digraphs, and add comment
8465         that C++ refers to them as alternative tokens.
8467 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
8469         * basic-block.h (CLEANUP_PRE_LOOP): New.
8470         * except.c (finish_eh_generation): Update call of cleanup_cfg.
8471         * sibcall.c (optimize_sibling_calls): Likewise.
8472         * toplev.c (rest_of_compilation): Likewise.
8473         * flow.c (try_forward_edges): Take argument MODE;
8474         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
8475         (try_optimize_cfg): Update call of try_forward_edges.
8477 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
8478                                 Jan Hubicka  <jh@suse.cz>
8480         * (validate_replace_rtx_1): Fix simplification of MINUS.
8482 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8484         PR preprocessor/3669
8485         * cppinit.c (init_dependency_output): Turn off dump requests
8486         if sending dependencies to stdout.
8488 2001-07-28  Richard Henderson  <rth@redhat.com>
8490         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
8491         not optimizing.
8493 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
8495         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
8497 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8499         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
8500         is VAR_DECL first to prevent an ICE.
8502 2001-07-28  Richard Henderson  <rth@redhat.com>
8504         * varasm.c (immed_real_const_1): Don't elide special cases for
8505         nested functions.
8506         (clear_const_double_mem): Clear const_tiny_rtx too.
8508 2001-07-28  Richard Henderson  <rth@redhat.com>
8510         * dwarf2out.c (dw_val_class_offset): New.
8511         (struct dw_ranges_struct, dw_ranges_ref): New.
8512         (ranges_table, ranges_table_allocated): New.
8513         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
8514         (add_AT_offset, add_ranges, output_ranges): New.
8515         (print_die, output_die): Handle dw_val_class_offset.
8516         (attr_checksum, size_of_die, value_format): Likewise.
8517         (gen_lexical_block_die): Handle non-contiguous blocks.
8518         (gen_block_die): Likewise.
8519         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
8520         if needed.  Dump the ranges table.
8521         * final.c (final_start_function): Remove unnecessary notes and
8522         rebuild the block tree before numbering the blocks.
8523         * function.c (reorder_blocks_0): Walk the existing block tree
8524         to unmark all blocks.
8525         (reorder_blocks_1): Create block fragments when duplicate block
8526         notes are seen.
8527         (reorder_fix_fragments): New.
8528         (reorder_blocks): Call it.
8529         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
8531 2001-07-28  Richard Henderson  <rth@redhat.com>
8533         * emit-rtl.c (adjust_address): Make a copy of the memory address.
8535 2001-07-28  Richard Henderson  <rth@redhat.com>
8537         * flow.c (add_to_mem_set_list): New function.
8538         (init_propagate_block_info): Use it.
8539         (mark_set_1): Likewise.
8540         (insn_dead_p): Canonicalize memory address for dead store
8541         comparison.  Allow wider mode stores to kill narrower mode stores.
8542         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
8543         (invalidate_mems_from_set): Don't handle MEMs.
8545 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8547         * config/h8300/h8300.h: Fix formatting.
8549 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8551         * basic-block.h (EDGE_FREQUENCY): New macro.
8552         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
8553         for new BB/edges.
8554         * flow.c (find_sub_basic_blocks): Likewise.
8555         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
8556         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
8558         * predict.c (DEF_PREDICTOR): New argument FLAGS.
8559         (HITRATE): New macro.
8560         (PRED_FLAG_FIRST_MATCH): New constant.
8561         (predictor_info): New field flgags.
8562         (combine_predictions_for_insn): Use DS theory to combine
8563         probabilities; set the edge probabilities when finished.
8564         (estimate_probability): Avoid duplicated matches
8565         of LOOP_BRANCH heuristics for nested loops; update comment.
8566         * predict.def: Add flags for each prediction, set probabilities
8567         according to B&L paper.
8568         * predict.h (DEF_PREDICTOR): New argument FLAGS.
8570         * profile.c (compute_branch_probabilities):  Cleanup way the edge
8571         probabilities are computed and REG_BR_PROB notes are dropped; if
8572         values does not match, emit error.
8573         (init_branch_prob): Do error instead of warning when profile driven
8574         feedback is missing or corrupt.
8576 2001-07-27  DJ Delorie  <dj@redhat.com>
8578         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
8579         against a constant, try to adjust the compare to have the desired
8580         constant in it so that min/max optimizations happen more often.
8582 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8584         * flow.c (last_loop_beg_note): New function.
8585         (redirect_edge_and_branch): Use it.
8586         (split_edge): Likewise.
8588         * alias.c (loop_p): Avoid uninitialized memory access.
8590         * flow.c (try_forward_edges): Avoid accessing freed memory.
8592         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
8593         variable access.
8595 2001-07-26  Andrew Haley  <aph@redhat.com>
8596         Joern Rennecke <amylaar@redhat.com>
8598         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
8599         (SUBTARGET_CPP_ENDIAN_SPEC): New.
8600         (SUBTARGET_CPP_SPEC): New.
8601         (CPP_SPEC): Remove.
8602         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
8603         (SUBTARGET_CPP_PTR_SPEC): New.
8604         (CPP_DEFAULT_CPU_SPEC): New.
8605         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
8606         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8607         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
8608         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8609         (SUBTARGET_CPP_SPEC): Define as an empty string.
8611 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8613         * doc/install.texi (Configuration): Properly link the host
8614         specific instructions also when generating HTML.
8616 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
8618         * flow.c (redirect_edge_and_branch_force): Test
8619         target->global_live_at_start.
8621 2001-07-26  Richard Henderson  <rth@redhat.com>
8623         * simplify-rtx.c (avoid_constant_pool_reference): Export.
8624         * rtl.h (avoid_constant_pool_reference): Declare it.
8625         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
8626         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
8628 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8630         * rtl.h (cleanup_barriers): Declare.
8631         * jump.c (cleanup_barriers): New function.
8632         * toplev.c (rest_of_compilation): Call cleanup_barriers
8633         before loop optimizer and after bb_reorder.
8635         * flow.c (back_edge_of_syntactic_loop_p): New.
8636         (split_edge): Use it.
8638 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8640         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
8642 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
8644         * cse.c (cse_process_notes): Replace any registers if the address
8645         remains valid.
8647 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
8649         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
8650         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
8651         (propagate_block): Update prototype.
8652         * flow.c (update_life_info): Simplify the CFG and
8653         recalculate the global regs which are alive when
8654         removing dead code during a global update.
8655         (propagate_block): Return non-zero if an INSN is
8656         deleted.
8658 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8660         * Makefile.in (LIBICONV): Define.
8662 2001-07-26  Catherine Moore  <clm@redhat.com>
8664         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
8665         of conditional to avoid tree checking errors.
8667 2001-07-26  Kazu Hirata  <kazu@hxi.com>
8669         * regmove.c (regmove_optimize): Don't replace a reg with
8670         another reg of a different mode.
8672 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
8674         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
8675         limit length of dependancy flush list.
8676         * params.h (MAX_PENDING_LIST_LENGTH): Define.
8677         * sched-int.h  (struct deps): Add pending_flush_length field.
8678         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
8679         has 1 element in it.
8680         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
8681         (sched_analyze): After a jump, if the pending memory flush list is too
8682         large, flush the pending lists.
8683         (init_deps): Initialize pending_flush_length to 0.
8684         * doc/invoke.texi (max_pending_list_length): Document parameter.
8686 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8688         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
8689         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
8690         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
8692 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8694         * cpphash.h (struct_lexer_state): Delete was_skipping.
8695         Move skipping here from struct cpp_reader.
8696         * cpplex.c (parse_identifier): Update.
8697         (_cpp_lex_token): Don't skip tokens in a directive.
8698         * cpplib.c (struct if_stack): Update.
8699         (start_directive, end_directive): Don't change skipping state.
8700         (_cpp_handle_directive): Update.
8701         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
8702         (do_else, do_endif): Update; only check for excess tokens if not
8703         in a skipped conditional block.
8704         (push_conditional): Update for new struct if_stack.
8706 2001-07-26  Graham Stott  <grahams@redhat.com>
8708         * function.c (locate_and_pad_parm): Also pad initial offset
8709         so that the total argument size also includes the padding.
8711 2001-07-26  Graham Stott <grahams@redhat.com>
8713         * gensupport.c (alter_output_for_insn): Correct enable checking failure
8714         change XSTR to XTMPL.
8716         (process_one_cond_exec): Likewise
8718 2001-07-25  Richard Henderson  <rth@redhat.com>
8720         * varasm.c (assemble_variable): Create DECL_RTL before setting
8721         TREE_ASM_WRITTEN.
8723 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
8725         * predict.c (estimate_probability): Avoid duplicated predictions.
8727         * loop.c (find_and_verify_loops): Grok multiple barriers.
8729 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8731         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
8733         * dbxout.c: Consistently use putc instead of fputc.
8734         (print_wide_int): New function; call instead of direct fprintf.
8735         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
8736         (dbxout_type_fields, dbxout_type_method_1): Likewise.
8737         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
8738         (print_int_cst_octal): Likewise.
8739         (print_octal): Show we wrote characters.
8740         (dbxout_type): Set have_used_extensions in more places.
8742 2001-07-25  Catherine Moore  <clm@redhat.com>
8744         * config/v850/v850.c (v850_va_arg):  Use addr
8745         instead of valist to build incr.
8747 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
8749         * flow.c (delete_dead_jumptables): New function.
8750         (life_analyzis): Call it.
8751         * bb-reorder.c (skip_insns_after_block): Handle contradictory
8752         sequences.
8754 2001-07-25  Richard Henderson  <rth@redhat.com>
8756         * except.c (reachable_handlers): Handle a region being removed
8757         out from under a RESX.
8759 2001-07-25  Richard Henderson  <rth@redhat.com>
8761         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
8762         swap GE/GT if it is an fp comparison.
8764 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
8766         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
8767         operands.
8769 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
8771         * ssa.c (rename_insn_1): Do not wrap an assignment to a
8772         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
8773         glitch.
8775         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
8776         throw an exception.
8777         (visit_expression): When attempting to simplify an expression,
8778         retrieve any modes for arguments before they are simplified
8779         to constants.
8781 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8782             Janis Johnson  <janis@us.ibm.com>
8784         * stmt.c (expand_goto): A nonlocal goto can be a call too.
8785         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
8786         pointer parameters to match documented usage of nonlocal_goto.
8787         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
8788         parameters to their correct order.
8789         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
8790         parameters to their correct order.
8792 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8794         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
8796 2001-07-25  Jan Hubicka  <jh@suse.cz>
8797             Richard Henderson  <rth@redhat.com>
8799         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
8800         the sequence.
8801         (make_edges): New argument update_p; populate the edge cache if set.
8802         (find_basic_blocks): Update make_edges invocation.
8804 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8806         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
8808 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8810         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
8811         -Acpu and -Amachine.h.
8812         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
8813         Corrected header to say ELF not a.out.
8814         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
8815         when given -msoft-float.
8817 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8819         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
8820         extra multilib parts like arm-elf.
8821         (i960-*-coff*, i960-*-rtems): Should not use collect2.
8822         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
8823         crtfini.o as extra multilib parts.
8825 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8827         * configure.in: Add rtems as a supported thread model.
8828         * gthr-rtems.h: Add missing entry point __gthread_active_p.
8829         * configure: Rebuilt.
8831 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
8833         * stor-layout.c (get_mode_alignment): make it work when
8834         BITS_PER_UNIT is not a power of two.
8835         * builtins.c (get_pointer_alignment): Likewise.
8837 2001-07-24  Richard Henderson  <rth@redhat.com>
8839         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
8840         the retrieved constant into the expected mode.
8842 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8844         * flow.c (try_simplify_condjump): Avoid duplicated edges.
8845         (verify_flow_info): Check for duplicated edges; clarify
8846         error reporting.
8848         * flow.c (block_label): Update basic_block_for_insn.
8849         (commit_edge_insertions): Call compute_bb_for_insn.
8851         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
8852         returns too.
8854         * flow.c (redirect_edge_and_branch,
8855         try_optimize_cfg): Use redirect_edge_succ_nodup
8856         (redirect_edge_succ_nodup): New.
8857         * basic_block.h (redirect_edge_succ_nodup): Declare.
8859         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
8860         after gcse.
8862 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8864         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
8865         (try_crossjump_to_edge): Update commetns.
8866         (try_crossjump_bb): Likewise.
8868 2001-07-24  Richard Henderson  <rth@redhat.com>
8870         * combine.c (distribute_notes): Move set of need_refresh
8871         for noop_move_p down to catch all cases.
8873 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
8875         * recog.c (split_all_insns_noflow): New.
8876         * rtl.h (split_all_insns_noflow): Declare.
8877         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
8878         * m68hc11.c (m68hc11_reorg): Likewise.
8879         * sh.c (machine_dependent_reorg): Likewise.
8880         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
8881         call.
8883 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8885         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
8886         (ashlsi3_n splitter): Likewise.
8887         (lshrsi3_n splitter): Likewise.
8889         (GOTaddr2picreg): Make const SImode.
8890         (sym_label2reg): Likewise.
8891         (symGOT2reg): Likewise.
8892         (symGOTOFF2reg) Likewise.
8894         (casesi_worker_0): Make unspec SImode.
8896 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8898         * config/sh/sh.c (barrier_align): Check that an operand really is
8899         an insn before extracting its INSN_CODE.
8901 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
8903         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
8904         dangling else.
8906         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
8907         for SImode to prevent overflow.
8909 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8911         * config/mips/irix6-libc-compat.c: New file.
8912         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
8913         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
8914         passing workaround.
8916 2001-07-24  lars brinkhoff  <lars@nocrew.org>
8918         * rtl.texi (REG_POINTER): Document.
8919         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
8920         QFmode, HFmode, TQFmode, QCmode, and HCmode.
8922 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
8924         * flow.c (delete_noop_moves): Do not confuse libcall regions.
8926 2001-07-23  Richard Henderson  <rth@redhat.com>
8928         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
8930 2001-07-23  Kazu Hirata  <kazu@hxi.com>
8932         * config/h8300/h8300-protos.h: Add a prototype for
8933         general_operand_dst_push.
8934         * config/h8300/h8300.c (general_operand_dst_push): New.
8935         * config/h8300/h8300.h (OK_FOR_T): New.
8936         (EXTRA_CONSTRAINT): Use it.
8937         * config/h8300/h8300.md (movqi_push): Remove and integrate into
8938         the existing movqi pattern.
8939         (movhi_push): Likewise.
8941         * reload.c: Fix comment typos.
8943 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
8945         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
8947 2001-07-23  H.J. Lu  (hjl@gnu.org)
8949         * doc/extend.texi: Update __builtin_return_address and
8950         __builtin_frame_address.
8952 2001-07-23  Richard Henderson  <rth@redhat.com>
8954         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
8955         before CSE.
8956         * config/i386/i386.md: New setcc+movzbl peephole2.
8958 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8960         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
8961         * objc/objc-act.c: Include debug.h.
8962         (synth_module_prologue): Save and restore debug hooks too.
8964 2001-07-23  lars brinkhoff  <lars@nocrew.org>
8966         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
8967         and C4X_FLOAT_FORMAT.
8968         (BOOL_TYPE_SIZE): Document.
8970 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
8972         * unroll.c (loop_iterations): Fix miscalculation of initial
8973         giv offset.
8975 2001-07-13  Andrew Haley  <aph@redhat.com>
8977         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
8978         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
8979         * config/sh/sh.c (sh_can_redirect_branch): New function.
8980         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
8981         * reorg.c (steal_delay_list_from_target): Use
8982         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
8984 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
8986         * flow.c (try_simplify_condjump): Unlink insn chain on
8987         fallthru edge; use can_fallthru.
8989 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
8991         * basic-block.h (find_sub_basic_block): Declare.
8992         * flow.c (make_edges): New arguments MIN and MAX;
8993         (find_sub_basic_blocks): Revamp to use make_edges
8994         and purge_dead_edges.
8995         (find_basic_blocks): Update call of find_sub_basic_block.
8997         * recog.c (split_all_insns): Always expect CFG to be consistent;
8998         call find_sub_basic_blocks in case something has changed.
8999         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
9000         has been built.
9002         * basic-block.h (delete_noop_moves): Declare.
9003         * combine.c (combine_instructions): Call it.
9004         (recog_for_combine): Tolerate noop moves
9005         (distribute_notes): Force refresh when register dies at noop move.
9006         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
9007         too.
9008         (life_analysis): Update delete_noop_moves call.
9009         (set_noop_p): Move too ...
9010         * rtlanal.c (noop_move_p): ... here.
9011         * rtl.h (noop_move_p): Declare.
9013         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
9014         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
9015         after combine.
9016         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
9017         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
9019 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
9021         * reload.c (push_reload): Fix typo in comment.
9022         (find_reloads_address): Ditto.
9023         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
9025 2001-07-22  Richard Henderson  <rth@redhat.com>
9027         * flow.c: Grammar check and clarify a lot of comments.
9028         (try_simplify_condjump): Rename variables to be clearer.
9029         (try_forward_edges): Skip complex and fallthru edges.
9030         Rearrange tests to avoid duplicate checks.
9031         (flow_find_cross_jump): Likewise.
9032         (outgoing_edges_match): Allow match if neither branch has
9033         probability data.  Loosen probability match to 5%.
9034         (try_crossjump_to_edge): Hoist repeated indirection into
9035         local variables.
9036         (try_crossjump_bb): Don't check complex edges.  Eliminate
9037         redundant crossjump tests.
9038         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
9039         checks before more expensive checks.
9041 2001-07-22  Richard Henderson  <rth@redhat.com>
9043         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
9044         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
9045         arguments.
9047 2001-07-22  Richard Henderson  <rth@redhat.com>
9049         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
9050         (const_sint32_operand): Likewise.
9051         * m68k.md (anon mulsi pattern): Use const_int_operand not
9052         const_sint32_operand.
9053         (umulsi3_highpart): Zero extend a constant input.
9054         (smulsi3_highpart): Don't bother checking SImode constant.
9055         (const_umulsi3_highpart): Give op3 DImode.
9056         (const_smulsi3_highpart): Likewise.
9058 2001-07-22  Richard Henderson  <rth@redhat.com>
9060         * flow.c (split_block): Make sure bb_note is included in the
9061         new block when splitting before a label.
9063 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9065         * basic-block.h (redirect_edge_and_branch_force,
9066         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
9067         * flow.c (redirect_edge_and_branch_force,
9068         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
9069         (redirect_edge_and_branch_force): Fix copying of lifeness information.
9070         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
9071         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
9072         instead of label; update CFG after transformation.
9073         (find_if_case_1): Update call, use redirect_edge_and_branch_force
9074         for finishing the transformation; handle even case where ELSE
9075         does not follow THEN.
9076         (find_if_case_2): Update call of dead_or_predictable; simplify
9077         CFG update.
9079         * emit-rtl.c (split_branch_probability): New global variable.
9080         (try_split): Take care to set split_branch_probability and
9081         create REG_BR_PROB note for new jump insns.
9082         * md.texi (define_split): Document new feature.
9084         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
9086 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9088         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
9089         (asm_out_file): Remove redundant declaration.
9090         (assemble_asm): Remove old #if 0 block.
9091         (assemble_variable): Remove end of function; debug output is
9092         now handled with global_decl.  Remove old #if 0 block.  Update.
9093         Remove saved_in_section and associated no-op code.
9094         * Makefile.in (varasm.o): Correct dependencies.
9096 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
9098         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9099         the definition in defaults.h.
9101 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
9103         * jump.c: Update comments.
9104         (delete_barrier_successors, delete_unreferenced_labels,
9105         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
9106         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
9107         jump_optimize, jump_optimize_minimal): Kill.
9108         (rebuild_jump_labels): Move code from jump_optimize_1.
9109         (purge_line_number_notes): Likewise.
9110         (copy_loop_headers): Likewise.
9111         * reg-stack.c: Update comment.
9112         * stmt.c: Likewise.
9113         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
9114         JUMP_AFTER_REGSCAN): Kill.
9115         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
9116         purge_line_number_notes and copy_loop_headers.
9118 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
9119            Richard Henderson  <rth@redhat.com>
9121         * dbxout.c (dbxout_global_decl): New.
9122         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9123         * sdbout.c (sdbout_finish): New.
9124         (sdbout_debug_hooks): Use it, add comments.
9125         (sdbout_global_decl): Defer initialised public vars to
9126         sdbout_finish.
9127         * varasm.c (assemble_variable): Don't output debug information
9128         for file-scope variables.
9130 2001-07-22  Richard Henderson  <rth@redhat.com>
9132         * config/alpha/alpha.c (get_trap_mode_suffix): New.
9133         (get_round_mode_suffix): New.
9134         (print_operand): Use them for [/].  Remove support for [&'`()+].
9135         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
9136         * config/alpha/alpha.md (attr round_suffix): New.
9137         (attr trap_suffix): New.
9138         (all insns): Set them appropriately.  Use %/ instead of the
9139         myriad punctuators.
9141 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9143         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
9145 2001-07-22  Richard Henderson  <rth@redhat.com>
9147         * regrename.c (regrename_optimize): Compute nregs for each
9148         potential target register.
9150 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
9151            Richard Henderson  <rth@redhat.com>
9153         * dbxout.c (dbxout_global_decl): New.
9154         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9155         * sdbout.c (sdbout_finish): New.
9156         (sdbout_debug_hooks): Use it, add comments.
9157         (sdbout_global_decl): Defer initialised public vars to
9158         sdbout_finish.
9159         * varasm.c (assemble_variable): Don't output debug information
9160         for file-scope variables.
9162 2001-07-21  H.J. Lu  (hjl@gnu.org)
9164         * config/mips/mips.c (mips_cpu): Moved into ...
9165         (override_options): Here.
9167         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
9168         mips_tune.
9169         (mips_cpu): Removed.
9171 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9173         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
9174         ("iorqi3"): Likewise.
9175         ("xorqi3"): Likewise.
9176         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
9177         ("*subhi3_sp): Likewise.
9178         ("*subhi3"): Likewise.
9179         ("extendhisi2"): Accept D, X and Y as source operand to avoid
9180         reload problems.
9182 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9184         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
9185         * config/freebsd.h: Likewise.
9186         * config/linux.h: Likewise.
9187         * config/openbsd.h: Likewise.
9188         * config/alpha/linux-elf.h: Likewise.
9189         * config/arm/linux-elf.h: Likewise.
9190         * config/d30v/d30v.h: Likewise.
9191         * config/fr30/fr30.h: Likewise.
9192         * config/ia64/aix.h: Likewise.
9193         * config/ia64/ia64.h: Likewise.
9194         * config/mips/linux.h: Likewise.
9195         * config/pj/pj.h: Likewise.
9196         * config/rs6000/linux.h: Likewise.
9197         * config/sparc/linux.h: Likewise.
9198         * config/sparc/linux64.h: Likewise.
9200 2001-07-20  Bruce Korb  <bkorb@gnu.org>
9202         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
9203         because getc() and char* may disagree on signedness.
9205 2001-07-20  Richard Henderson  <rth@redhat.com>
9207         * doc/rtl.texi (REG_DEAD): Update for current semantics.
9209         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
9210         insns to delete in the presence of cc0 in a jump insn.
9212 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
9213                                 Jan Hubicka  <jh@suse.cz>
9215         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
9216         of doing the change by hand.
9218 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9220         * rtlanal.c (set_noop_p): Return true for noop jumps.
9222         * expr.c (emit_single_push_insn): Add call to push expander.
9223         * expr.h (optab_index): Add OTI_push
9224         (push_optab): New constant.
9225         * genopinit.c (optabs): Add push_optab.
9226         * optabs.c (init_optab): Init push optab.
9227         * md.texi (push??1): Document
9229 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9231         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
9232         expand to emit the pattern; put a REG_INC note for push/pop
9233         instructions.
9234         ("movdf", "movdf_internal"): Likewise.
9235         ("movsi", "movsi_internal"): Likewise.
9236         ("movsf", "movsf_internal"): Likewise.
9237         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
9239 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9241         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
9242         gen_highpart.
9244 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
9246         * params.def: Change default max inline insns to 100.
9248 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
9250         * combine.c (combine_simplify_rtx): Generate a new shift operation
9251         when simplifying the first operand of a (neg (ashift)) expression.
9253 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9255         * regclass.c (N_REG_INTS): Use only 32 bits per element.
9257 2001-07-20  Kelley Cook  <kelley.cook@home.com>
9259         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
9260         information.   Move rest into ...
9261         (*-*-solaris): ... here.  Eliminate redundant information and
9262         reword necessary packages section.  Delete 4.x assembler bug info.
9263         (sparc-sun-*): Merge into ...
9264         (sparc-sun-sunos*): here.
9266 2001-07-20  Catherine Moore  <clm@redhat.com>
9268         * config/v850/v850.md (casesi): Generate LABEL_REF
9269         with Pmode.
9271 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9273         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
9274         * i386.c (ix86_zero_extend_to_Pmode): Make global.
9275         * i386.md (strclrsi expander): Use it.
9277 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9279         * integrate.c (copy_insn_list): handle
9280         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
9281         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
9282         identically as to CODE_LABEL.
9284         * fold-const (fold): Convert A/B/C to A/(B*C) and
9285         A/(B/C) to (A/B)*C
9287         * except.c (connect_post_landing_pads): Delete the RESX insns.
9289 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
9291         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
9293         * config/mips/mips.md (nmadd/nmsub): Use macro.
9295 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
9297         * cppinit.c (remove_dup_dir): Make static.
9298         (remove_dup_dirs): Make static. Only warn about preempting a
9299         system directory with a non-system directory.
9301 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9303         * ifcvt.c (noce_try_store_flag_constants): Correct order
9304         of parameters to trunc_int_for_mode.
9306 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
9308         * reorg.c (fill_simple_delay_slots): If an instruction might throw
9309         an exception that will be caught within this function, do not fill
9310         its delay slot with any subsequent instruction.
9312 2001-07-19  Steve Ellcey <sje@cup.hp.com>
9314         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
9315         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
9316         pointer extension instruction.
9317         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
9318         * simplify-rtx.c (simplify_unary_operation) Likewise.
9319         * explow.c (convert_memory_address) Check value of
9320         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
9321         less than zero.
9322         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
9323         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
9324         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
9325         Add Multilib Support.
9326         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
9327         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
9328         Add Multilib Support.
9329         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
9330         support.
9331         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
9332         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
9333         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
9335 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
9337         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
9338         old and new operands in `<', `3' and `b'.
9340 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9342         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
9343         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
9344         (toplev.o): Don't depend on xcoffout.h.
9345         * c-decl.c: Include debug.h
9346         (duplicate_decls): Use debug hook.
9347         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
9348         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9349         (dbxout_types): Remove.
9350         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
9351         * debug.c (do_nothing_debug_hooks): Update.
9352         (debug_true_tree, debug_nothing_rtx): New.
9353         * debug.h (struct rtx_def): New.
9354         (struct gcc_debug_hooks): New hooks ignore_block,
9355         outlining_inline_function and label.
9356         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
9357         dwarf2out_frame_finish): New.
9358         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
9359         Make static, update prototype.
9360         (dwarf2_debug_hooks): Update.
9361         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
9362         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
9363         * dwarfout.c (dwarf_debug_hooks): Update.
9364         * emit-rtl.c: Include debug.h.
9365         (remove_unnecessary_notes): Use debug hook.
9366         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
9367         (final_scan_insn): Use debug hook.
9368         * integrate.c (output_inline_function): Use debug hook.
9369         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
9370         (sdb_debug_hooks): Update.
9371         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
9372         * toplev.c: Don't include xcoffout.h.
9373         (note_outlining_of_inline_function, debug_ignore_block): Remove.
9374         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
9375         Remove.
9376         * tree.h (dwarf2out_do_frame): Remove.
9378 2001-07-19  Catherine Moore  <clm@cygnus.com>
9380         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
9382 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9384         * reload1.c (eliminate_regs_in_insn): When updating a set
9385         to the frame pointer to the hardware frame pointer, perform
9386         the update always not just when REPLACE is set.
9388         * reload1.c (choose_reload_regs): Don't inherit a reload
9389         that crosses multiple registers if registers past the first
9390         don't fit in the desired class.
9392         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
9393         when negating constants.
9395 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
9397         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
9398         * doc/tree.texi: Ditto.
9400 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
9401             Jakub Jelinek  <jakub@redhat.com>
9403         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
9404         (extract_cie_info): Handle "eh" augmentation properly,
9405         remember eh_ptr.
9406         (struct frame_state, __frame_state_for): New.
9408 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9410         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
9411         HANDLE_SYSV_PRAGMA): Define.
9412         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
9413         previous args.
9414         (copy_object): Caller changed.
9416 2001-07-19  Andreas Schwab  <schwab@suse.de>
9418         * configure.in (assembler dwarf2 debug_line support): Define nop
9419         insn for m68k.
9420         * configure: Regenerated.
9422 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9424         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
9425         dwarfout.h.
9426         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
9427         to conditionally compiled block.
9428         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9429         * dbxout.h (dbxout_function): Remove.
9430         * debug.c (do_nothing_debug_hooks): Update.
9431         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
9432         global_decl, deferred_inline_function.
9433         * dwarf2out.c (dwarf2_debug_hooks): Update.
9434         (dwarf2out_global_decl): New.
9435         * dwarfout.c: Don't include dwarfout.h.
9436         (dwarfout_global_decl, dwarfout_function_decl,
9437         dwarfout_deferred_inline_function): New.
9438         (dwarf_debug_hooks): Update.
9439         * dwarfout.h: Remove.
9440         * final.c: Don't include dwarfout.h.
9441         * sdbout.c (sdbout_global_decl): New.
9442         (sdbout_debug_hooks): Update.
9443         * toplev.c: Don't include dwarfout.h.
9444         (check_global_declarations, rest_of_compilation): Use new debug hooks.
9445         (note_deferral_of_defined_inline_function): Remove.
9446         * toplev.h (note_deferral_of_defined_inline_function): Remove.
9447         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
9448         * ch/lex.c: Don't include dwarfout.h.
9449         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
9450         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
9451         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
9452         * cp/optimize.c: Include debug.h.
9453         (maybe_clone_body): Use debug hook.
9454         * cp/semantics.c: Include debug.h.
9455         (expand_body): Use debug hook.
9456         * po/POTFILES.in: Remove dwarfout.h.
9458 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9460         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
9461         * c-parse.in (yyerror, _yylex): Similarly.
9462         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
9463         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
9464         Update comments.
9465         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
9466         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
9468 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
9470         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
9471         in-class declaration at -g1.  Fixes c++/2814.
9473 2001-07-18  Richard Henderson  <rth@redhat.com>
9475         * doc/md.texi (reload_in/out): Document restrictions in predicates
9476         and constraints for these patterns.  Document empty string matching
9477         ALL_REGS.
9479 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9481         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
9483 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9485         * cse.c: Undo my previous patch.
9487 2001-07-18  Tom Tromey  <tromey@redhat.com>
9489         For PR java/2812:
9490         * configure: Rebuilt.
9491         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
9492         instead.
9493         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
9495 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
9496                                 Jan Hubicka  <jh@suse.cz>
9498         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
9499         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
9500         * jump.c (mark_jump_label): Do not forward branches.
9502 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9504         * cse.c (delete_trivially_dead_insns): Delete the libcall block
9505         when return value is unused.
9507 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9509         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
9511 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
9513         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
9514         on error.  We can't blindly return the result of
9515         pthread_mutex_trylock because it returns a positive number on
9516         error, while we must return -1 on error.
9517         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
9518         fixes.
9519         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
9521 2001-07-18  Andreas Jaeger  <aj@suse.de>
9523         * integrate.c (output_inline_function): Correct type of debug_hooks.
9525 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
9527         * combine.c (combine_simplify_rtx): DIV can be treated
9528         associatively for floats if unsafe math optimisations are enabled.
9530 2001-07-17  Richard Henderson  <rth@redhat.com>
9532         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
9534 2001-07-17  Richard Henderson  <rth@redhat.com>
9536         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
9537         don't force the function address into a register.
9538         (expand_call, emit_library_call_value_1): Update callers.
9539         * builtins.c (expand_builtin_apply): Likewise.
9540         * expr.h (prepare_call_address): Update decl.
9542 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
9544         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
9545         config directory.
9546         * config/i386/chorus.h: Move up.
9547         * config/sparc/chorus.h: Likewise.
9548         * config/rs6000/chorus.h: Likewise.
9549         * config/chorus.h: Moved here.
9551 2001-07-17  Andreas Schwab  <schwab@suse.de>
9553         * configure.in  (assembler eh_frame optimization): Handle big
9554         endian.
9555         * configure: Regenerated.
9557 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
9559         * expr.c (epxand_expr): Convert divisions into multiplications by
9560         reciprocals if -ffast-math.
9562 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9564         * dbxout.c (dbxout_really_begin_function): Rename to
9565         dbxout_begin_function.
9566         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9567         (dbxout_begin_function): Remove.
9568         (dbxout_function): Update.
9569         (dbxout_source_line): Update prototype.
9570         * dbxout.h (dbxout_begin_function): Remove.
9571         * debug.c (do_nothing_debug_hooks): Update.
9572         (debug_nothing_tree): Update.
9573         (debug_nothing_charstar_rtx): Remove.
9574         * debug.h (union tree_node): Declare.
9575         (struct rtx_def): Remove.
9576         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
9577         begin_function.  Change source_line prototype.
9578         (debug_nothing_tree): New.
9579         (debug_nothing_charstar_rtx): Delete.
9580         (dwarf2out_begin_prologue): Moved from ...
9581         * tree.h: ... here.
9582         * dwarf2out.c (dwarf2_debug_hooks): Update.
9583         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
9584         debug info, call dwarf2out_source_line.
9585         (dwarf2out_souce_line): Update prototype.
9586         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
9587         Change prototype, make static.
9588         (dwarfout_source_line): Update prototype.
9589         (dwarf_debug_hooks): Update.
9590         * dwarfout.h (dwarfout_begin_function): Remove.
9591         * final.c (final_start_function, final_scan_insn): Use appropriate
9592         debug hooks, update to use notice_source_line.
9593         (output_source_line): Rename notice_source_line.  Don't call the
9594         source_line debug hook.
9595         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
9596         make static, update prototype.
9597         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
9598         prototype.
9599         (sdbout_end_prologue): New.
9600         (sdbout_source_line): Update prototype.
9601         (sdbout_debug_hooks): Update.
9602         (sdbout_symbol): Remove unused var.
9603         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
9604         Delete.
9605         * varasm.c: Include debug.h.
9606         (assemble_start_function): Use begin_function debug_hook.
9607         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9608         update with prototype.
9609         (xcoffout_source_line): Update prototype.
9610         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9611         update prototype.
9612         (xcoffout_source_line): Update prototype.
9614 2001-07-17  Richard Henderson  <rth@redhat.com>
9616         * c-typeck.c (build_binary_op): Do not shorten unsigned
9617         right shift after sign extension.
9619 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
9621         * combine.c (combine_simplify_rtx): Attempt to simplify
9622         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
9624         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
9625         (simplify_binary_operation, simplify_unary_operation,
9626          simplify_relational_operation): Use it.
9628         * combine.c (combine_simplify_rtx): Don't do associative law
9629         on divisions; allow associative law on floats.
9631 2001-07-17  H.J. Lu <hjl@gnu.org>
9632             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9634         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
9635         ASM_OUTPUT_WEAK_ALIAS are defined.
9636         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
9637         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
9638         Moved ...
9639         * config/mips/iris5.h: ... here.
9640         (HANDLE_SYSV_PRAGMA): Defined as 1.
9641         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
9642         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
9643         symbol.
9645 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
9647         * c-parse.in (all_prefix_attributes): New variable.
9648         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
9649         (maybe_resetattrs): New production.
9650         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
9651         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
9652         notype_initdcl, nested_function, notype_nested_function,
9653         component_decl, components, components_notype,
9654         component_declarator, component_notype_declarator,
9655         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
9656         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
9657         after a comma being applied to more than one declarator.
9658         * doc/extend.texi (Attribute Syntax): Update.  Remove
9659         documentation of bugs that are no longer present.
9661 2001-07-13  Eric Christopher  <echristo@redhat.com>
9663         * config/mips/mips.h: Change TUNE_MIPS* options to use
9664         mips_tune.
9665         (EXTRA_SPECS): Add cc1_cpu_spec.
9666         * config/mips/mips.md (muldf3): Fix typo.
9668 2001-07-16  Richard Henderson  <rth@redhat.com>
9670         * config/m68k/m68k.c: Include expr.h and reload.h.
9671         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
9672         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
9674 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9675             Richard Henderson  <rth@redhat.com>
9677         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
9678         (insn_live_p): Fix fall off end of function.
9679         (dead_libcall_p): Remove COUNTS argument; update callers.
9680         (delete_trivially_dead_insns): Remove unused variables.
9682 2001-07-17  Andreas Jaeger  <aj@suse.de>
9684         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
9685         x86-64 pic support.
9687         * lcm.c (optimize_mode_switching): Avoid warning for unused
9688         variable if !NORMAL_MODE.
9690         * flow.c (try_crossjump_to_edge): Remove unused variable.
9692 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9694         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
9695         atexit declaration in stdlib.h.
9697 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
9699         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
9701 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9703         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
9704         * except.c (finish_eh_generation): Update call of cleanup_cfg;
9705         do rebuild_jump_labels instead of jump_optimize
9706         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
9707         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
9708         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
9710         * flow.c: Include timevar.h
9711         (find_basic_block): Push/pop timevar;
9712         (cleanup_cfg): Likewise.
9713         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
9714         * Makefile: Add dependencies on timevar.h
9716         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
9717         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
9719         * rtl.h (delete_trivially_dead_insns): Add new parameter.
9720         * toplev.c (rest_of_compilation): Update calls.
9721         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
9722         (delete_trivially_dead_insns): ... here; accept new argument
9723         preserve_basic_blocks; preserve basic blocks if set.
9725         * reg-stack.c (stack_regs_mentioned): Return 0 if
9726         stack_regs_mentioned_data is not initialized.
9727         (reg_to_stack): Make stack_regs_mentioned survive after the
9728         reg-stack is completted; do not call cleanup_cfg.
9729         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
9730         make cleanup_cfg after bb-reorder to output to debug file.
9732 2001-07-16  Richard Henderson  <rth@redhat.com>
9734         * regclass.c (init_reg_sets): Use only 32 bits per initializer
9735         from int_reg_class_contents.
9737 2001-07-16  Richard Henderson  <rth@redhat.com>
9739         * hard-reg-set.h (regs_invalidated_by_call): Declare.
9740         * regclass.c (regs_invalidated_by_call): Move from cse.c.
9741         (init_reg_sets_1): Move initialization from cse_main.
9742         * cse.c (regs_invalidated_by_call): Move to regclass.c.
9743         (cse_main): Move its initialization also.
9744         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
9745         * flow.c (propagate_one_insn): Likewise.
9746         * gcse.c (compute_hash_table): Likewise.
9747         (compute_kill_rd, compute_store_table): Likewise.
9748         * sched-deps.c (sched_analyze_1): Likewise.
9750 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
9752         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
9753         gen_rtx_SET.
9755 2001-07-16  Steve Ellcey <sje@cup.hp.com>
9757         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
9758         in if statement so we don't access undefined memory.
9760 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9762         * gcse.c: Update comment at top.
9763         Update comment on mem handling.
9764         mem_last_set, mem_first_set, mem_set_in_block: gone.
9765         Declaration of reg_set_info: gone.
9766         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
9767         pointless with load_killed_in_block_p (they are *more*
9768         conservative then it, not less, and less accurate).
9769         (oprs_not_set_p): Ditto.
9770         (alloc_gcse_mem): Don't allocate mem_set_in_block
9771         (free_gcse_mem): Don't free it, either.
9772         (record_last_mem_set_info): Update comment in front, remove
9773         mem_*set_* stuff. Note the reason we don't handle stores directly
9774         here.
9775         (compute_hash_table): Update comments to reflect reality. Remove
9776         mem_*set_* references.
9777         (reset_opr_set_tables): Remove mem_*set_* references.
9778         (mark_call): Ditto.
9779         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
9780         (mark_clobber): Ditto (on both parts, we double set here too).
9781         (expr_killed_p): Remove mem_set_in_block test.
9782         (compute_transp): Remove mem_set_in_block test.
9784         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
9785         of edge, and removal of phi alternative to dump file.
9786         (ssa_ccp_substitute_constants): Add note about register now being
9787         constant, and which uses were replaced in what insns to dump file.
9789 2001-07-16  Andreas Jaeger  <aj@suse.de>
9791         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
9792         variables of type HOST_WIDEST_INT.
9794         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
9795         (__bb_exit_func): Correct type of count_max to avoid overflow.
9796         (num_digits): Handle long long argument.
9798         * combine.c (gen_lowpart_for_combine): Remove unused variable.
9800 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9802         * output.h (sdb_begin_function_line): Restore as an extern
9803         variable.
9804         * sdbout.c (sdb_begin_function_line): Make extern.
9806 2001-07-15  Richard Henderson  <rth@redhat.com>
9808         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
9809         * genrecog.c (maybe_both_true_mode): New.
9810         (maybe_both_true_2): Use it.
9811         (write_switch): Don't put Pmode in a switch.
9812         * rtl.c (mode arrays): Don't explicitly size them.
9814 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9816         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
9817         handling; move unconditional splitting before mode switching.
9819         * i386.md (type): Add fistp type.
9820         (i387, length_attr, scheduling definitions): Handle this type.
9821         (fix_trunc?f?i2): Revamp to use mode switching.
9822         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
9823         * i386.h (fp_cw_mode): New enum
9824         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
9825         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
9827 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9829         * Makefile.in (integrate.o): Add debug.h.
9830         * integrate.c (debug.h): Add.
9831         (output_inline_function): Save, reset, and restore debug_hooks.
9833 2001-07-15  Richard Henderson  <rth@redhat.com>
9835         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
9836         instead of COMPARE for the EQUIV expression.
9838 2001-07-15  Richard Henderson  <rth@redhat.com>
9840         * flow.c (redirect_edge_and_branch_force): Initialize
9841         global_live_at_start and global_live_at_end.
9842         (allocate_bb_life_data): Export.
9843         * basic-block.h (allocate_bb_life_data): Declare.
9844         * toplev.c (rest_of_compilation): Call it.
9846 2001-07-15  Richard Henderson  <rth@redhat.com>
9848         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
9849         (alpha_tablejump_best_label): New.
9850         * config/alpha/alpha-protos.h: Declare them.
9851         * config/alpha/alpha.md: Use braced strings for code blocks.
9852         (tablejump_osf): Break out add with r29.
9853         (tablejump_osf_internal): Remove.
9854         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
9855         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
9857 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9859         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
9860         of the movable.
9862         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
9864         * i386-protos.h (ix86_split_fp_branch): Update prototype.
9865         (ix86_fp_jump_nontrivial_p): New.
9866         * i386.md (fp_jcc_?): Update call of split_fp_branch;
9867         use ix86_fp_jump_nontrivial_p.
9868         * i386.c (ix86_fp_jump_nontrivial_p): New.
9869         (ix86_split_fp_branch): Accept code instead of rtx.
9870         (ix86_expand_compare): Expand comparison early in case
9871         doing so is resonably cheap.
9873 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
9875         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
9876         not 'machine'.
9877         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
9878         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
9880 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
9882         * dbxout.c (dbxout_source_line): Make static, update prototype.
9883         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
9884         (dbxout_init, dbxout_finish, dbxout_source_line,
9885         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
9886         * dbxout.h (dbxout_source_line): Delete.
9887         * debug.c (debug_nothing_file, debug_nothing_file_int,
9888         debug_nothing_file_charstar_rtx): New.
9889         (do_nothing_debug_hooks): Update.
9890         (debug_nothing_void, debug_nothing_charstar_rtx,
9891         dwarf2out_end_epilogue): New.
9892         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9893         * debug.h (struct rtx_def): Declare.
9894         (gcc_debug_hooks): New hooks source_line, end_epilogue
9895         and end_function.
9896         (debug_nothing_void, debug_nothing_charstar_rtx,
9897         dwarf2out_end_epilogue): New.
9898         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9899         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
9900         (dwarf2_debug_hooks): Update.
9901         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
9902         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
9903         * dwarf2out.h (dwarf2out_source_line): Remove.
9904         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
9905         Make static, update prototype.
9906         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
9907         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
9908         (dwarf_debug_hooks): Update.
9909         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
9910         dwarfout_end_function): Remove.
9911         * final.c (profile_function): Use debug hooks for ending functions
9912         and epilogues.
9913         (output_source_line, final_end_function): Update prototype,
9914         use debug hooks.
9915         (final_start_function, final_scan_insn): Update.
9916         * output.h (sdb_begin_function_line): Remove.
9917         (final_end_function): Update prototype.
9918         * sdbout.c (sdb_begin_function_line): Make static.
9919         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
9920         (sdbout_source_line): New.
9921         (sdbout_end_epilogue, sdbout_end_function): Make static, update
9922         prototypes.
9923         (sdb_debug_hooks): Update.
9924         (sdbout_init, sdbout_source_line,
9925         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
9926         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
9927         * toplev.c (compile_file, rest_of_compilation): Update.
9928         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
9929         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
9930         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
9931         Update for prototype changes.
9932         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
9933         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
9935 2001-07-15  Richard Henderson  <rth@redhat.com>
9937         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
9938         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
9939         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
9940         * config/alpha/alpha.c: Likewise.
9941         * config/alpha/alpha.md: Likewise.
9942         * config/alpha/alpha32.h: Likewise.
9943         * config/alpha/vms.h: Likewise.
9944         (OPEN_VMS): Remove.
9946 2001-07-14  Richard Henderson  <rth@redhat.com>
9948         * config/alpha/alpha.md: Use define_constants for unspec values.
9949         Substitute throughout.
9951 2001-07-14  Tim Josling  <tej@melbpc.org.au>
9953         * tree.def (EXPON_EXPR) remove. Never supported anyway.
9955 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9957         * pa.md: Remove unused constraints from define_split's.
9959 2001-04-14  Richard Henderson  <rth@redhat.com>
9961         * ifcvt.c (find_cond_trap): Test for exit block.
9963 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
9965         Re-install recently reverted patch.
9966         * emit-rtl.c (try_split): Update mark_jump_label call.
9967         * flow.c (find_sub_basic_blocks): Likewise.
9968         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
9969         jump_back_p): Kill.
9970         (mark_all_labels): Kill second parameter.
9971         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
9972         (rebuild_jump_labels, jump_optimize_minimal): Update call
9973         of jump_optimize_1.
9974         (jump_optimize_1): Kill crossjumping code.
9975         (mark_jump_label): Kill cross_jump parameter.
9976         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
9977         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
9978         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
9979          splitting.
9980         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
9981         DFI_bpro.
9982         (dump_file_info): Likewise.
9983         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
9984         reorganize passes to do reg-stack first, bb-reorder second.
9985         * invoke.texi (-d letters doc): Remove the jump2 pass.
9987 2001-07-14  Richard Henderson  <rth@redhat.com>
9989         * ifcvt.c (find_cond_trap): New.
9990         (find_if_header): Call it.
9991         (merge_if_block): Relax existing jump sanity check.
9992         * jump.c (jump_optimize_1): Remove conditional trap handling.
9994 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
9996         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
9997         millicode.
9998         (insn_refs_are_delayed): Correct comment.
9999         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
10000         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
10001         instead of r31.  Make associated insn !TARGET_64BIT, and
10002         provide an additional 64-bit insn that clobbers r2.
10003         (divsi3): Likewise.
10004         (udivsi3): Likewise.
10005         (modsi3): Likewise.
10006         (umodsi3): Likewise.
10008 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
10010         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
10012         * flow.c (redirect_edge_and_branch_force, split_edge,
10013         try_crossjump_to_edge): Use set_block_for_new_insns.
10014         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
10016 2001-07-13  H.J. Lu  (hjl@gnu.org)
10018         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
10019         the correct patch.
10021 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10023         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
10025 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
10027         * c-common.c (decl_attributes): Take a pointer to the node to
10028         which attributes are to be attached, and a flags argument.
10029         * c-common.h (enum attribute_flags): New.
10030         (decl_attributes): Update prototype.
10031         * c-decl.c (start_decl, push_parm_decl, finish_struct,
10032         finish_enum, start_function): Update calls to decl_attributes.
10033         * c-parse.in (component_declarator, component_notype_declarator,
10034         label): Update calls to decl_attributes.
10036 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
10038         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
10039         * config/avr/avr.c (legitimate_address_p): Return value changed
10040         from letter to register classes. For better debugging.
10042 2001-07-13  Kazu Hirata  <kazu@hxi.com>
10044         * jump.c (reversed_comparison_code_parts): Fix comment typos.
10046 2001-07-13  H.J. Lu  (hjl@gnu.org)
10048         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
10050 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
10052         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
10053         correctly for shared configurations.
10054         * config/t-libgcc-pic:  New.
10055         * config/{i386,m68k,sparc}/t-openbsd:  New.
10056         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
10057         Support -shared.  Support debugging libraries with -g.
10058         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
10059         frame information does not emit pointer diffs.
10060         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
10061         emit pointer diffs.
10063 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10065         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
10067 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
10069         * combine.c (try_combine): Ensure const_int pow2 is positive.
10071 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
10073         * config.gcc: Add configuration for s/390.
10074         * config/s390/s390.c: New. Subroutines for code generation.
10075         * config/s390/s390.h: New. Definitions for s/390.
10076         * config/s390/s390-protos.h: New. Prototypes.
10077         * config/s390/linux.h: New. Definitions for linux for s/390.
10078         * config/s390/linux64.h: New. Definitions for linux for zSeries.
10079         * config/s390/t-linux: New. Makefile fragment.
10080         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
10081         * config/s390/fixdfdi.h: New. Fix L_fix*di.
10083 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
10085         * emit-rtl.c (try_split): Update mark_jump_label call.
10086         * flow.c (find_sub_basic_blocks): Likewise.
10087         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10088         jump_back_p): Kill.
10089         (mark_all_labels): Kill second parameter.
10090         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10091         (rebuild_jump_labels, jump_optimize_minimal): Update call
10092         of jump_optimize_1.
10093         (jump_optimize_1): Kill crossjumping code.
10094         (mark_jump_label): Kill cross_jump parameter.
10095         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10096         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10097         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10098          splitting.
10099         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10100         DFI_bpro.
10101         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10102         reorganize passes to do reg-stack first, bb-reorder second.
10103         * invoke.texi (-d letters doc): Remove the jump2 pass.
10105 2001-07-12  Steve Ellcey <sje@cup.hp.com>
10107         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
10109 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10111         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
10112         basic blocks.
10113         (verify_flow_info): Make diagnostics prettier.
10115 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10117         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
10119         * flow.c (outgoing_edges_match): Return early if condition reversal
10120         failed.
10122 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
10124         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
10125         (mips_move_2words): When splitting a move into two instructions,
10126         prefix the second address operand with '%D'.
10128 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10130         * Makefile.in (final.o): Depend on debug.h.
10131         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
10132         (dbx_debug_hooks): Add new hooks.
10133         (xcoff_debug_hooks): New.
10134         * debug.c (debug_nothing_file_int_int): New.
10135         (do_nothing_debug_hooks): Update.
10136         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
10137         (debug_nothing_file_int_int): New.
10138         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
10139         static, update prototype.
10140         (dwarf2_debug_hooks): Update.
10141         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
10142         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
10143         static, update prototype.
10144         (dwarf_debug_hooks): Update.
10145         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
10146         * final.c: Include debug.h.
10147         (final_scan_insn): Use debug hooks when beginning and ending blocks.
10148         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
10149         static, update prototype.
10150         (sdb_debug_hooks): Update.
10151         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
10152         * toplev.c: Distinguish between xcoff and dbx.
10154         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
10155         Call all debug hooks, not just dwarf ones.
10157 2001-07-11  Timothy Wall  <twall@redhat.com>
10159         * config.gcc: Add configuration for AIX5/IA64.
10160         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
10161         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
10162         support prefix/suffix code.
10163         * config/ia64/t-aix: New.  Makefile fragment.
10164         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
10166 2001-07-11  Kazu Hirata  <kazu@hxi.com>
10168         * recog.c (validate_change): Fix a comment typo.
10170 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10172         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
10173         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
10174         hooks directly.
10175         * dbxout.c (dbx_debug_hooks): Add new hooks.
10176         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
10177         make static.
10178         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
10179         make static.
10180         * dbxout.h (dbxout_start_new_source_file,
10181         dbxout_resume_previous_source_file): Delete.
10182         * debug.c (do_nothing_debug_hooks): Add new hooks.
10183         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10184         (debug_nothing_int_charstar, debug_nothing_int): New.
10185         * debug.h (gcc_debug_hooks): New hooks define, undef,
10186         start_source_file and end_source_file.
10187         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10188         (debug_nothing_int_charstar, debug_nothing_int): New.
10189         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
10190         the conditionally compiled section.
10191         (dwarf2out_start_source_file, dwarf2out_end_source_file,
10192         dwarf2out_define, dwarf2out_undef): Make static.
10193         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
10194         dwarf2out_define, dwarf2out_undef): Remove.
10195         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
10196         (dwarfout_start_source_file, dwarfout_end_source_file,
10197         dwarfout_define, dwarfout_undef): Make static.
10198         (dwarfout_start_source_file_check,
10199         dwarfout_end_source_file_check): New.
10200         (dwarfout_define, dwarfout_finish): Update.
10201         * dwarfout.h (dwarfout_start_new_source_file,
10202         dwarfout_resume_previous_source_file, dwarfout_define,
10203         dwarfout_undef): Remove.
10204         * sdbout.c (sdb_debug_hooks): Add new hooks.
10205         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
10206         make static.
10207         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
10208         make static, take an arg.
10209         * sdbout.h (sdbout_start_new_source_file,
10210         sdbout_resume_previous_source_file): Delete.
10211         * toplev.c (debug_start_source_file, debug_end_source_file,
10212         debug_define, debug_undef): Delete.
10213         * toplev.h (debug_start_source_file, debug_end_source_file,
10214         debug_define, debug_undef): Delete.
10216         * java/jcf-parse.c: Include debug.h.
10217         (parse_class_file): Update to use debug hooks directly.
10218         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
10220 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10222         * alias.c (set_mem_alias_set): New function.
10223         * rtl.h (set_mem_alias_set): Declare it.
10224         * builtins.c (expand_builtin_return_addr): Call it instead of
10225         using MEM_ALIAS_SET accessor.
10226         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
10227         (get_memory_rtx, expand_builtin_va_arg): Likewise.
10228         (expand_builtin_va_copy):Likewise.
10229         * caller-save.c (setup_save_areas): Likewise.
10230         * calls.c (compute_argument_addresses): Likewise.
10231         * explow.c (set_mem_attributes): Likewise.
10232         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
10233         (expand_assignment, store_constructor_field, store_field): Likewise.
10234         (expand_expr_unaligned): Likewise.
10235         * function.c (assign_stack_temp_for_type): Likewise.
10236         (put_reg_into_stack, gen_mem_addressof): Likewise.
10237         * ifcvt.c (noce_try_cmove_arith): Likewise.
10238         * reload1.c (reload, alter_reg): Likewise.
10239         * config/alpha/alpha.c (get_aligned_mem): Likewise.
10240         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
10241         (alpha_expand_unaligned_store): Likewise
10242         (alpha_expand_unaligned_load_words): Likewise.
10243         (alpha_expand_unaligned_store_words): Likewise.
10244         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
10245         (alpha_expand_epilogue): Likewise.
10246         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
10247         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
10248         * config/i386/i386.c (legitimize_pic_address): Likewise.
10249         * config/i960/i960.c (setup_incoming_varargs): Likewise.
10250         * config/ia64/ia64.c (spill_restore_mem): Likewise.
10251         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10252         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
10253         * config/mips/mips.c (mips_va_arg): Likewise.
10254         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10255         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10256         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10257         (setup_incoming_varargs, rs6000_va_arg): Likewise.
10258         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
10259         (rs6000_emit_epilogue): Likewise.
10260         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
10261         * config/sparc/sparc.c (sparc_va_arg): Likewise.
10262         * config/v850/v850.c (v850_va_arg): Likewise.
10264 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
10266         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
10267         when fallthru edge is present.
10268         (mege_blocks): Handle case where creation of jump insn
10269         is required.
10271         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
10272         CLEANUP_POST_REGSTACK): New constants.
10273         * except.c (finish_eh_generation): Update call of cleanup_cfg,
10274         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
10275         * output.h (cleanup_cfg): Update prototype.
10276         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
10277         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
10278         cleanup_cfg call; kill missleading comment.
10279         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
10280         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
10281         parameter; control optimizations performed using it.
10282         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
10283         try_crossjump_bb): New functions.
10285 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10287         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
10288         extern.
10289         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
10290         pa_output_function_prologue.
10291         * pa-protos.h (pa_output_function_prologue): New prototype.
10293 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10295         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
10296         and low to get correct sign extension in low+high test.
10298 2001-07-11  Janis Johnson <janis@us.ibm.com>
10300         * gcov.c (arcdata): Use gcov_type to fix branch percentage
10301         for large hit count.
10303         * profile.c (branch_prob): Fix .bbg info for computed gotos
10304         and C++ EH code.
10306 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
10308         * stmt.c (parse_output_constraint): New function, split out
10309         from ...
10310         (expand_asm_operands): ... here.  Use parse_output_constraint.
10311         * tree.h (parse_output_constraint): Declare it.
10313 2001-07-11  Richard Henderson  <rth@redhat.com>
10315         * bitmap.c: Comment some functions; fiddle whitespace.
10316         (bitmap_free): Don't export.
10317         (bitmap_element_allocate): Use memset.
10318         * bitmap.h (bitmap_free): Don't declare.
10320 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
10322         * gcse.c, lcm.c, sched-deps.c:
10323         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
10325         * flow.c (flow_loops_find): Free dom if we found no loops, since
10326         we aren't going to save it.
10328         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
10329         done.
10331 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
10333         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
10335 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10337         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
10338         #ifndef DWARF2_DEBUGGING_INFO.
10340 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10342         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
10344 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10346         * config/mips/mips.c (gen_int_relational): Tell the caller not to
10347         reverse a branch if a NE comparison is implemented with GTU.
10349 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10350             H.J. Lu  <hjl@gnu.org>
10352         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
10353         constant addresses.
10354         (call_internal2): Likewise.
10355         (call_value_internal1): Likewise.
10356         (call_value_internal2): Likewise.
10357         (call_value_multiple_internal1): Likewise.
10358         (call_value_multiple_internal2): Likewise.
10360 2001-07-10  Kazu Hirata  <kazu@hxi.com>
10362         * calls.c (emit_library_call_value_1): Fix a comment typo.
10363         * dwarf2out.c (mem_loc_descriptor): Likewise.
10364         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
10366 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
10368         * simplify-rtx.c (simplify_subreg): Fix typo in comment
10370 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10372         * recog.c (offsettable_address_p): Handle LO_SUM case.
10373         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
10374         instead of plus_constant.
10376 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10378         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
10379         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
10381 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10383         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
10384         adjust_address_nv instead of plus_constant.
10386 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10388         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
10389         dwarf2out.o): Depend on debug.h, wrap long lines.
10390         * dbxout.c: Include debug.h.
10391         (dbx_debug_hooks): New.
10392         (dbxout_init): Make static, take just 2 args.
10393         (dbxout_finish): Make static.
10394         * dbxout.h (dbxout_init, dbxout_finish): Delete.
10395         * debug.c: New file.
10396         * debug.h: New file.
10397         * dwarf2out.c: Include debug.h.
10398         (dwarf2_debug_hooks): New.
10399         (dwarf2out_init): Make static.
10400         (dwarf2out_finish): Make static, take 2 args.
10401         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
10402         * dwarfout.c: Include debug.h.
10403         (dwarf_debug_hooks): New.
10404         (dwarfout_init): Make static.
10405         (dwarfout_finish): Make static, take 2 args.
10406         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
10407         * sdbout.c: Include debug.h.
10408         (sdb_debug_hooks): New.
10409         (sdbout_init): Make static, take 2 args.
10410         * sdbout.h (sdbout_init): Delete.
10411         * toplev.c: Include debug.h.
10412         (debug_hooks): New.
10413         (compile_file): Set deubg_hooks based on command line options.
10414         Use the hooks unconditionally rather than conditional compilation.
10416 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
10418         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
10419         first_insn_after_basic_block_note instead.
10421         * df.c (df_bb_refs_unlink): #if 0 out for now.
10423 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
10425         * ssa.h: Add prototype for ssa_const_prop
10426         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
10427         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
10428         (ssa_fast_dce): Remove unused variable
10430 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10432         * diagnostic.c (finish_diagnostic): Rename to
10433         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
10434         calls thourghout.
10436 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
10438         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
10439         .loc support.
10441         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
10442         (dump_file): Only pad the demangled name with spaces if the
10443         mangled name was padded with spaces.
10445 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
10447         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
10448         edge detection.
10450 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10452         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
10453         extraction if no direct load if either EXPAND_CONST_ADDRESS or
10454         EXPAND_INITIALIZER.
10456         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
10457         whether can put offset inside LO_SUM to check mode alignment, not size.
10459 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10461         * doc/tm.texi (Misc): Fix thinko.
10463 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
10465         * regmove.c (replace_in_call_usage): Fix warnings.
10466         * sched-deps.c (add_dependence): Fix warnings.
10467         * simplify-rtx.c (simplify_subreg): Likewise.
10468         Return NULL_RTX instead of NULL.
10470         * reg-stack.c (emit_swap_insn): Eliminate warnings.
10471         (subst_asm_stack_regs): Likewise.
10473         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
10474         warnings.
10476         * dwarf2out.c (output_call_frame_info): Declare i as int.
10477         (build_abbrev_table): Declare n_alloc as int.
10478         (dwarf2out_finish): Initialize die.
10479         * except.c: Declare sjlj_funcdef_number as unsigned.
10480         (connect_post_landing_pads): Declare j as unsigned.
10481         (convert_to_eh_region_ranges): Initialize call_site.
10482         (output_function_exception_table): Initialize tt_format_size.
10483         * expr.c (move_by_pieces_1): Initialize to1.
10484         (store_constructor): Initialize minelt and maxelt.
10485         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
10486         * function.c (instantiate_decls): Avoid signed/unsigned warning.
10488         * c-decl.c (combine_parm_decls): Unused, remove.
10489         * c-tree.h: Remove prototype for combine_parm_decls.
10491         * reload.c (push_reload): Fix warning.
10492         (regno_clobbered_p): Likewise.
10493         * reload1.c (replace_pseudos_in_call_usage): Likewise.
10494         (reload_combine): Likewise.
10496         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
10497         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
10498         warnings.
10499         * bitmap.c (bitmap_operation): Change user.
10500         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
10502 2001-07-10  Eric Christopher  <echristo@redhat.com>
10504         * config/mips/mips.c (override_options): Fix typo.
10506 2001-07-09  Stan Shebs  <shebs@apple.com>
10508         * target.h (struct gcc_target): New fields init_builtins and
10509         expand_builtin.
10510         * target-def.h (TARGET_INIT_BUILTINS): New macro.
10511         (TARGET_EXPAND_BUILTIN): New macro.
10512         (TARGET_INITIALIZER): Add them.
10513         * builtins.c: Include target.h.
10514         (expand_builtin): Use targetm.expand_builtin.
10515         (default_init_builtins): New function.
10516         (default_expand_builtin): New function.
10517         * expr.h (default_init_builtins): Declare.
10518         (default_expand_builtin): Declare.
10519         * c-common.c (c_common_nodes_and_builtins): Use
10520         targetm.init_builtins.
10521         * defaults.h (MD_INIT_BUILTINS): Remove.
10522         * Makefile.in (builtins.o): Depend on target.h.
10524         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
10525         (TARGET_EXPAND_BUILTIN): Define.
10526         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
10527         (MD_EXPAND_BUILTIN): Remove.
10529         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
10530         (TARGET_EXPAND_BUILTIN): Define.
10531         (c4x_init_builtins): Make endlink arg a local.
10532         (c4x_print_operand): Fix typos in adjust_address usages.
10533         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
10534         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
10535         (MD_EXPAND_BUILTIN): Remove.
10537         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
10538         (TARGET_EXPAND_BUILTIN): Define.
10539         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
10540         (ix86_init_builtins): Call new function only if TARGET_MMX.
10541         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
10542         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
10543         (MD_EXPAND_BUILTIN): Remove.
10545         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
10546         (TARGET_EXPAND_BUILTIN): Define.
10547         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
10548         (MD_EXPAND_BUILTIN): Remove.
10550         * doc/tm.texi: Document these changes.
10552 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
10554         * basic-block.h (tree_node): Forward declare if needed.
10555         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
10556         (BLOCK_HEAD_TREE): Define.
10557         (BLOCK_END_TREE): Define.
10558         (struct loops): Rename field 'tree' to 'tree_root'.
10559         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
10560         'end_tree'.
10561         (flow_loops_tree_build): Rename reference to field 'tree' to
10562         'tree_root'.
10563         (flow_loops_level_compute): Ditto.
10564         * predict.c (estimate_bb_frequencies): Ditto.
10565         * tree.h (struct tree_common): Add field 'aux'.
10567 2001-07-09  Stan Shebs  <shebs@apple.com>
10569         * config/darwin.c (darwin_encode_section_info): Don't mark any
10570         DECL_EXTERNAL node as defined.
10572 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10574         * pa.c (pa_init_machine_status, pa_mark_machine_status,
10575         pa_free_machine_status, hppa_init_pic_save): Delete.
10576         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
10577         (hppa_profile_hook): Use hppa_pic_save_rtx.
10578         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
10579         hppa_init_pic_save): Delete.
10580         (hppa_pic_save_rtx): Declare.
10581         * pa.md (call, call_value, sibcall, sibcall_value,
10582         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
10584 2001-07-09  Kazu Hirata  <kazu@hxi.com>
10586         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
10587         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
10589 2001-07-09  Andreas Jaeger  <aj@suse.de>
10591         * output.h: Add declaration of final_forward_branch_p.
10593         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
10595         * varray.c: Include errors.h for internal_error and trim_filename
10596         declarations.
10598         * Makefile.in (varray.o): Add errors.h.
10600 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
10602         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
10603         * optabs.c (have_add2_insn): Check whether the add insn chosen
10604         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
10605         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
10607 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
10609         * Makefile.in (OBJS): Add ssa-ccp.o
10610         (ssa-ccp.o): Add dependencies.
10611         * toplev.c (DFI_ssa_ccp): New dump file enum.
10612         (dump_file): Add entry for dumping after SSA CCP.
10613         (flag_ssa_ccp): New flag variable.
10614         (f_options): Add -fssa-ccp.
10615         (rest_of_compilation): Run SSA CCP if requested.
10616         * timevar.def (TV_SSA_CCP): New timevar.
10617         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
10618         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
10619         Fix minor typo in SSA DCE documentation.
10620         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
10621         Add documentation for new dump option.  Renumber dump files
10622         appropriately.
10624 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10626         * emit-rtl.c (gen_highpart_mode): New.
10627         * rtl.h (gen_highpart_mode): Declare.
10628         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
10629         operand can be VOIDmode constant.
10631 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
10633         * flow.c (redirect_edge_and_branch_force): New.
10634         (can_fallthru): Ensure that basic blocks are succeeding.
10635         (try_optimize_cfg): Do not delete basic block if it is the last one.
10637         * flow.c (try_redirect_by_replacing_jump): Do not remove
10638         jumps with side effects, unlink chain on fallthru edge;
10639         set block for new jump instruction; avoid basic block to
10640         over by line number note.
10642         * flow.c (try_simplify_condjump): Verify that the condjump
10643         is not always falling trought.
10645         Re-install patch:
10646         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
10648         * flow.c (forwarder_block_p): Fix for fallthru blocks.
10649         (try_redirect_by_replacing_jump): Update properly the count
10650         and frequency information.
10652 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10654         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
10655         address that is a LO_SUM specially.
10656         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
10658         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
10660         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
10661         (operand_subword): Use them.
10662         (change_address_1): Renamed from change_address; new arg VALIDATE.
10663         * expr.h: Reflect above changes; change_address now macro.
10664         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
10665         making MEM.
10666         * cselib.c (add_mem_for_addr): Likewise.
10667         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
10668         * regmove.c (try_apply_stack_adjustment): Likewise.
10669         * reload.c (push_reload, make_memloc): Likewise.
10670         * reload1.c (eliminate_regs): Likewise.
10671         * simplify-rtx.c (simplify_replace_rtx): Likewise.
10672         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
10673         adjust_addess.
10674         * combine.c (make_extraction, simplify_shift_const): Likewise.
10675         (gen_lowpart_for_combine): Likewise.
10676         * cse.c (gen_lowpart_if_possible): Likewise.
10677         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
10678         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
10679         * optabs.c (gen_move_insn): Likewise.
10680         * reload1.c (alter_reg): Likewise.
10681         * simplify-rtx.c (simplify_subreg): Likewise.
10682         * stmt.c (expand_anon_union_decl): Likewise.
10683         * recog.c (validate_replace_rtx_1): Likewise.
10684         (expr.h): Include.
10685         * Makefile.in (recog.o): Add $(EXPR_H).
10686         * explow.c (stabilize): Call replace_equiv_address.
10687         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
10688         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
10690 2001-07-03  Andrew Haley  <aph@redhat.com>
10692         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
10693         the mode of the memory location.
10695 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
10697         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
10699 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
10701         * final.c (output_addr_const): Use target opening and
10702         closing parentheses.
10703         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
10704         defaults, add to TARGET_ASM_OUT.
10705         * target.h (struct gcc_target): Add open_paren and close_paren.
10706         * doc/md.texi: Update.
10707         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
10708         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
10709         TARGET_ASM_CLOSE_PAREN.
10710         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10711         Override.
10712         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10713         Override.
10714         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
10715         * config/a29k/a29k.h: Similarly.
10716         * config/alpha/alpha.h: Similarly.
10717         * config/arc/arc.h: Similarly.
10718         * config/arm/aof.h: Similarly.
10719         * config/arm/aout.h: Similarly.
10720         * config/avr/avr.h: Similarly.
10721         * config/c4x/c4x.h: Similarly.
10722         * config/clipper/clipper.h: Similarly.
10723         * config/convex/convex.h: Similarly.
10724         * config/d30v/d30v.h: Similarly.
10725         * config/dsp16xx/dsp16xx.h: Similarly.
10726         * config/elxsi/elxsi.h: Similarly.
10727         * config/fr30/fr30.h: Similarly.
10728         * config/h8300/h8300.h: Similarly.
10729         * config/i370/i370.h: Similarly.
10730         * config/i386/i386.h: Similarly.
10731         * config/i860/i860.h: Similarly.
10732         * config/i960/i960.h: Similarly.
10733         * config/ia64/ia64.h: Similarly.
10734         * config/m32r/m32r.h: Similarly.
10735         * config/m68hc11/m68hc11.h: Similarly.
10736         * config/m68k/m68k.h: Similarly.
10737         * config/m88k/m88k.h: Similarly.
10738         * config/mcore/mcore.h: Similarly.
10739         * config/mips/mips.h: Similarly.
10740         * config/mn10200/mn10200.h: Similarly.
10741         * config/mn10300/mn10300.h: Similarly.
10742         * config/ns32k/ns32k.h: Similarly.
10743         * config/pa/pa.h: Similarly.
10744         * config/pdp11/pdp11.h: Similarly.
10745         * config/pj/pj.h: Similarly.
10746         * config/romp/romp.h: Similarly.
10747         * config/rs6000/rs6000.h: Similarly.
10748         * config/sh/sh.h: Similarly.
10749         * config/sparc/sparc.h: Similarly.
10750         * config/v850/v850.h: Similarly.
10751         * config/vax/vax.h: Similarly.
10752         * config/we32k/we32k.h: Similarly.
10754 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
10756         * doc/c-tree.texi: Document representation of attributes.
10758 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10760         * doc/tm.texi: Update some places for the rename of target to
10761         targetm.  Fix typo.
10763 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10765         * target.h (struct gcc_target): Add insert_attributes.
10766         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
10767         (TARGET_INITIALIZER): Update.
10768         * tree.c, tree.h (default_insert_attributes): New function.
10769         Update comments on other default functions to refer to targetm,
10770         not target.
10771         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
10772         TARGET_INSERT_ATTRIBUTES.
10773         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
10774         * c-common.c (decl_attributes): Use targetm.insert_attributes.
10775         Don't use PRAGMA_INSERT_ATTRIBUTES.
10776         * Makefile.in (c-common.o): Depend on $(TARGET_H).
10777         * c-decl.c (start_decl, start_function): Don't call
10778         SET_DEFAULT_DECL_ATTRIBUTES.
10779         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10780         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
10781         declare.
10782         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
10783         (c4x_check_attribute): Avoid modifying attribute list itself.
10784         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
10785         Make static.
10786         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
10787         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
10788         declare.
10789         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
10790         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
10791         Make static.
10792         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10793         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
10794         declare.
10795         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
10796         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
10797         Adjust parameters.  Make static.
10799 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10801         * c-common.c (decl_attributes): Only take a single attributes
10802         parameter.
10803         * c-common.h (decl_attributes): Update prototype.
10804         * c-decl.c (start_decl, start_function): Only take a single
10805         attributes parameter.  Update calls to decl_attributes.
10806         (finish_struct, finish_enum): Update calls to decl_attributes.
10807         (push_parm_decl): Expect unified list of attributes.  Update call
10808         to decl_attributes.
10809         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
10810         notype_nested_function, component_declarator,
10811         component_notype_declarator, label): Update calls to
10812         decl_attributes.
10813         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
10814         lists that are passed to push_parm_decl.
10815         * c-tree.h (start_function, start_decl): Update prototypes.
10816         * config/sh/sh-protos.h, config/sh/sh.c
10817         (sh_pragma_insert_attributes): Only take a single attributes
10818         parameter.
10819         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
10820         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
10821         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
10822         build_module_descriptor, generate_static_references,
10823         generate_strings, build_selector_translation_table,
10824         generate_descriptor_table, generate_protocols,
10825         generate_ivars_list, generate_dispatch_table,
10826         generate_protocol_list, generate_category,
10827         generate_shared_structures, really_start_method, add_objc_decls,
10828         generate_classref_translation_entry): Update calls to start_decl
10829         and start_function.
10830         (build_tmp_function_decl, start_method_def): Unify attribute lists
10831         that are passed to push_parm_decl.
10833 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10835         * final.c (no_asm_to_stream): New.
10836         (final_scan_insn): Use target structures for prologue ends
10837         and epilogue starts.
10838         * output.h (no_asm_to_stream): New.
10839         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
10840         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
10841         (TARGET_ASM_OUT): Update.
10842         * target.h (struct gcc_target): New members function_end_prologue
10843         and function_begin_epilogue.
10844         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
10845         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
10846         * config/alpha/alpha.c (output_end_prologue): Rename to
10847         alpha_output_function_end_prologue.  Use in target struct
10848         and make static.
10849         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
10850         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
10851         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
10852         ia64_output_function_end_prologue.  Use in target struct
10853         and make static.
10854         (ia64_function_prologue, ia64_funciton_epilogue): Rename
10855         mistyped prototypes.
10856         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
10857         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
10858         Delete.
10859         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
10860         an use in target struct, make static.
10861         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
10862         Delete.
10864 2001-07-08  Richard Henderson  <rth@redhat.com>
10866         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
10868 2001-07-08  Richard Henderson  <rth@redhat.com>
10870         * config/i386/i386.md: Remove constraints strings from define_split
10871         and define_peephole2 patterns.
10872         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
10873         (eh_return): Use them.
10875 2001-07-08  Richard Henderson  <rth@redhat.com>
10877         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
10878         Document MD_FALLBACK_FRAME_STATE_FOR.
10880 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10882         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
10883         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
10884         elimination.
10885         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
10887 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
10889         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
10890         of the label inside NAME as opposed to just the end of NAME.
10892 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10894         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
10895         * config/alpha/alpha.c (alpha_init_machine_status,
10896         alpha_mark_machine_status, alpha_free_machine_status): Delete.
10897         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
10898         (vms_valid_decl_attribute_p): Make static, conditionally compile.
10899         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
10901 2001-07-06  Stan Shebs  <shebs@apple.com>
10903         * target.h (targetm): Rename global from "target", so as not to
10904         conflict with local variables.
10905         * c-decl.c: Ditto.
10906         * c-typeck.c: Ditto.
10907         * final.c: Ditto.
10908         * tree.c: Ditto.
10909         * cp/decl.c: Ditto.
10910         * cp/decl2.c: Ditto.
10911         * cp/typeck.c: Ditto.
10912         * 1750a/1750a.c: Ditto.
10913         * a29k/a29k.c: Ditto.
10914         * arc/arc.c: Ditto.
10915         * arm/arm.c: Ditto.
10916         * avr/avr.c: Ditto.
10917         * clipper/clipper.c: Ditto.
10918         * convex/convex.c: Ditto.
10919         * d30v/d30v.c: Ditto.
10920         * dsp16xx/dsp16xx.c: Ditto.
10921         * elxsi/elxsi.c: Ditto.
10922         * fr30/fr30.c: Ditto.
10923         * h8300/h8300.c: Ditto.
10924         * i370/i370.c: Ditto.
10925         * i386/i386.c: Ditto.
10926         * i860/i860.c: Ditto.
10927         * i960/i960.c: Ditto.
10928         * ia64/ia64.c: Ditto.
10929         * m32r/m32r.c: Ditto.
10930         * m68hc11/m68hc11.c: Ditto.
10931         * m68k/m68k.c: Ditto.
10932         * m88k/m88k.c: Ditto.
10933         * mips/mips.c: Ditto.
10934         * ns32k/ns32k.c: Ditto.
10935         * pa/pa.c: Ditto.
10936         * pdp11/pdp11.c: Ditto.
10937         * romp/romp.c: Ditto.
10938         * rs6000/rs6000.c: Ditto.
10939         * sh/sh.c: Ditto.
10940         * sparc/sparc.c: Ditto.
10941         * vax/vax.c: Ditto.
10942         * we32k/we32k.c: Ditto.
10943         * doc/tm.texi: Update the manual to match.
10945 2001-07-06  Richard Henderson  <rth@redhat.com>
10947         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
10948         DWARF2_UNWIND_INFO not just whether it is defined.
10950 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
10952         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
10953         call to simplify_binary_operation returns a new pattern.
10955 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10957         * glimits.h (__SHRT_MAX__): New.
10958         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
10959         (SHRT_MAX): Define in terms of __SHRT_MAX__.
10961 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
10963         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
10964         avoid warnings.
10966 2001-07-06  Richard Henderson  <rth@redhat.com>
10968         * bitmap.c (bitmap_release_memory): Move adjacent to the
10969         allocation functions.
10970         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
10971         the implementation.  Binary search for the set bit.
10972         (bitmap_union_of_diff): Allocate the temporary on the stack
10973         instead of using xmalloc.
10975 2001-07-06  Richard Henderson  <rth@redhat.com>
10977         * genrecog.c (validate_pattern): Warn for constraints in
10978         define_{expand,split,peephole2}.  Remove strict_low_part
10979         before looking up match_dup.
10981 2001-07-06  DJ Delorie  <dj@redhat.com>
10983         * doc/gcc.texi (Makefile): Rename to be a more general purpose
10984         chapter about various build hints and history.  Add section
10985         talking about the various types of native and cross builds.
10987 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10989         * Makefile.in (final.o): Depend on target.h.
10990         * final.c: Include target.h.
10991         (default_function_pro_epilogue): New.
10992         (final_start_function): Use target structure for function prologues.
10993         (final_end_function): Use target structure for function epilogues.
10994         * fold-const.c (real_hex_to_f): Constify s and p.
10995         * output.h (default_function_pro_epilogue): New.
10996         * real.h (real_hex_to_f): Update prototype.
10997         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
10998         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
10999         (TARGET_INITIALIZER): Update.
11000         * target.h (gcc_target): Add struct asm_out.
11001         * doc/tm.texi: Update.
11003 config:
11004         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
11005         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
11006         in cpu/cpu.c, or rename old functions consistently.  Take
11007         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
11008         redundant macros and prototypes.  Make new functions static.
11010         * 1750a/1750a.c: Similarly.
11011         * 1750a/1750a.h: Similarly.
11012         * a29k/a29k-protos.h: Similarly.
11013         * a29k/a29k.c: Similarly.
11014         * a29k/a29k.h: Similarly.
11015         * arc/arc-protos.h: Similarly.
11016         * arc/arc.c: Similarly.
11017         * arc/arc.h: Similarly.
11018         * arm/arm-protos.h: Similarly.
11019         * arm/arm.c: Similarly.
11020         * arm/arm.h: Similarly.
11021         * avr/avr-protos.h: Similarly.
11022         * avr/avr.c: Similarly.
11023         * avr/avr.h: Similarly.
11024         * clipper/clipper-protos.h: Similarly.
11025         * clipper/clipper.c: Similarly.
11026         * clipper/clipper.h: Similarly.
11027         * convex/convex.c: Similarly.
11028         * convex/convex.h: Similarly.
11029         * d30v/d30v-protos.h: Similarly.
11030         * d30v/d30v.c: Similarly.
11031         * d30v/d30v.h: Similarly.
11032         * d30v/d30v.md: Similarly.
11033         * dsp16xx/dsp16xx-protos.h: Similarly.
11034         * dsp16xx/dsp16xx.c: Similarly.
11035         * dsp16xx/dsp16xx.h: Similarly.
11036         * elxsi/elxsi.c: Similarly.
11037         * elxsi/elxsi.h: Similarly.
11038         * fr30/fr30.c: Similarly.
11039         * fr30/fr30.md: Similarly.
11040         * h8300/h8300-protos.h: Similarly.
11041         * h8300/h8300.c: Similarly.
11042         * h8300/h8300.h: Similarly.
11043         * i370/i370-protos.h: Similarly.
11044         * i370/i370.c: Similarly.
11045         * i370/i370.h: Similarly.
11046         * i386/i386.c: Similarly.
11047         * i386/osf1elf.h: Similarly.
11048         * i386/osfrose.h: Similarly.
11049         * i860/i860-protos.h: Similarly.
11050         * i860/i860.c: Similarly.
11051         * i860/i860.h: Similarly.
11052         * i960/i960-protos.h: Similarly.
11053         * i960/i960.c: Similarly.
11054         * i960/i960.h: Similarly.
11055         * ia64/ia64-protos.h: Similarly.
11056         * ia64/ia64.c: Similarly.
11057         * ia64/ia64.h: Similarly.
11058         * m32r/m32r-protos.h: Similarly.
11059         * m32r/m32r.c: Similarly.
11060         * m32r/m32r.h: Similarly.
11061         * m68hc11/m68hc11-protos.h: Similarly.
11062         * m68hc11/m68hc11.c: Similarly.
11063         * m68hc11/m68hc11.h: Similarly.
11064         * m68k/crds.h: Similarly.
11065         * m68k/dpx2.h: Similarly.
11066         * m68k/m68k-protos.h: Similarly.
11067         * m68k/m68k.c: Similarly.
11068         * m68k/m68k.h: Similarly.
11069         * m68k/news.h: Similarly.
11070         * m88k/m88k-protos.h: Similarly.
11071         * m88k/m88k.c: Similarly.
11072         * m88k/m88k.h: Similarly.
11073         * mips/mips-protos.h: Similarly.
11074         * mips/mips.c: Similarly.
11075         * mips/mips.h: Similarly.
11076         * ns32k/merlin.h: Similarly.
11077         * ns32k/ns32k.c: Similarly.
11078         * ns32k/ns32k.h: Similarly.
11079         * ns32k/tek6000.h: Similarly.
11080         * pa/pa-protos.h: Similarly.
11081         * pa/pa.c: Similarly.
11082         * pa/pa.h: Similarly.
11083         * pdp11/2bsd.h: Similarly.
11084         * pdp11/pdp11-protos.h: Similarly.
11085         * pdp11/pdp11.c: Similarly.
11086         * pdp11/pdp11.h: Similarly.
11087         * romp/romp-protos.h: Similarly.
11088         * romp/romp.c: Similarly.
11089         * romp/romp.h: Similarly.
11090         * rs6000/rs6000-protos.h: Similarly.
11091         * rs6000/rs6000.c: Similarly.
11092         * rs6000/rs6000.h: Similarly.
11093         * rs6000/sysv4.h: Similarly.
11094         * sh/sh-protos.h: Similarly.
11095         * sh/sh.c: Similarly.
11096         * sh/sh.h: Similarly.
11097         * sparc/sparc-protos.h: Similarly.
11098         * sparc/sparc.c: Similarly.
11099         * sparc/sparc.h: Similarly.
11100         * vax/vax.c: Similarly.
11101         * vax/vax.h: Similarly.
11102         * vax/vms.h: Similarly.
11103         * we32k/we32k.c: Similarly.
11104         * we32k/we32k.h: Similarly.
11106 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
11108         * basic-block.h (first_insn_after_basic_block_note): Declare.
11109         * flow.c (first_insn_after_basic_block_note): Define.  Moved
11110         from...
11111         * ssa.c (first_insn_after_basic_block_note): Remove.
11112         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
11113         necessary.
11114         (ssa_eliminate_dead_code): Properly update the CFG and PHI
11115         nodes when we find a dead conditional branch.  Insert BARRIERs
11116         after any blocks with no successors, but which do not have
11117         any BARRIERs.
11119 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
11121         * varray.c (varray_check_failed): Use internal_error.
11123 2001-07-05  Andrew Haley  <aph@redhat.com>
11125         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
11126         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
11127         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
11129 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
11131         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
11132         reference if the target constant is also a SYMBOL_REF.
11134 2001-07-05  Eric Christopher  <echristo@redhat.com>
11136         * config/mips/mips.h (MASK_MIPS3900): Remove.
11137         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
11138         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
11139         (TARGET_MIPS3900): Change to use mips_arch.
11140         (TARGET_MIPS4000): New.
11141         (TARGET_MIPS4100): New.
11142         (TARGET_MIPS4300): New.
11143         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
11144         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
11145         for -mipsX.
11146         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
11147         (ISA_HAS_BRANCHLIKELY): To here.
11148         (CC1_CPU_SPEC):  New.
11149         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
11150         (mips_arch_string): Declare.
11151         (mips_arch): Declare.
11152         (TARGET_OPTIONS): Add -march and -mtune.
11154         * config/mips/mips.c (mips_arch_string): New.
11155         (mips_arch): New.
11156         (override_options): Handle -march for codegen and -mtune
11157         for scheduling. Use mips_arch. Move tx39 target default here.
11158         (mips_parse_cpu): Move error message to override_options.
11160         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
11162         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
11164         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
11165         (MIPS Options): Ditto.  Change mcpu entry to historical text.
11167 2001-07-05  H.J. Lu  (hjl@gnu.org)
11169         * config/mips/mips.c (mips_parse_cpu): New function to parse
11170         -march=*/-mcpu=*.
11172 2001-07-05  Jim Wilson  <wilson@redhat.com>
11174         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
11175         * config/ia64/t-ia64: Likewise.
11176         (LIB1ASMFUNCS): Update comment.
11178 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
11180         * doc/install.texi (Install GCC: Binaries): Fix typo.
11182 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11184         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
11185         reference using the stack pointer, adjust it since we push Y
11186         temporarily.
11187         ("*ashrsi3"): Likewise.
11188         ("*lshrsi3"): Likewise.
11190 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11192         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
11193         when -fomit-frame-pointer is used.
11195 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
11197         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
11198         (try_redirect_by_replacing_jump): Reverse updating properly the
11199         count and frequency information.  Reverse removing cc0 setter.
11200         (forwarder_block_p): Reverse fixing for fallthru blocks.
11202 2001-07-05  DJ Delorie  <dj@redhat.com>
11204         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
11205         (translate_options): If the above is defined, use it to map
11206         given options to new options.
11207         * doc/tm.texi: Document it.
11209 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
11210             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11212         * doc/invoke.texi (Optimize Options): Document that -fgcse may
11213         cause programs using computed gotos to run more slowly.
11215 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11217         * doc/install.texi (Specific): Markup, spelling and typo fixes.
11218         Fixed sorting.
11219         Consistently require binutils 2.11.2, not prereleases.
11220         (Specific, decstation-*): Canonicalize as mips-dec-*.
11221         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
11222         always necessary.
11223         (Specific, m68k-altos): Removed reference to README.altos, deleted.
11224         (Specific, mips-*): Reword MIPS C compiler requirements.
11225         (Specific, powerpc*-*-*): New, mention --with-cpu once.
11226         (Specific, sunv5): Removed, obsolete.
11228 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11230         * dwarf2out.c (output_loc_list): Use an all ones mask for
11231         .text asm output and don't rely on long long
11232         literals. Reformat some long lines.
11234 2001-07-05  Andreas Jaeger  <aj@suse.de>
11236         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
11237         section.
11239 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11241         * dwarf2out.c (dwarf2out_define): Update comment.
11242         (dwarf2out_undef): Ditto.
11243         (dwarf2out_start_source_file): Ditto.
11244         (dwarf2out_end_source_file): Ditto.
11245         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
11246         since we never call the start/end debug hook for the primary file.
11248 2001-07-04  Kazu Hirata  <kazu@hxi.com>
11250         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
11251         from shll.
11253 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11255         * cppinit.c (remove_dup_dirs): Inform if a system include
11256         directory is being reordered.
11257         * doc/invoke.texi (Directory Options): GCC warns if you hide a
11258         system include.
11259         * doc/cpp.texi (Search Paths): Likewise.
11260         * doc/gcc.texi (Interoperation): Remove information about
11261         -I/usr/include.
11263 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11265         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
11266         (VARRAY_TOP_CHAR_PTR): Likewise.
11268 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11270         * gcc.c (process_command): Don't assign elements of a const char*.
11272 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11274         * emit-rtl.c (change_address): Don't abort if invalid address while
11275         reload is in progress.
11277 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11279         * c-lex.c (cb_file_change): Pass line number to
11280         debug_start_source_file.
11281         (cb_undefine): Pass correct line number to debug_undef.
11283         * toplev.c (debug_start_source_file): Add line number to
11284         parameters. Pass it along to dwarf2out_start_source_file.
11285         (decode_g_option): Stop resetting debug level back to normal when
11286         we change debug formats, unless the current level is
11287         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
11288         3).
11290         * toplev.h (debug_start_source_file): Add line number to
11291         parameters.
11293         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
11294         parameters.
11296         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
11297         parameters.
11298         Output debug_macinfo data for starting file if requested.
11299         (dwarf2out_end_source_file): Output debug_macinfo data for ending
11300         file if requested.
11301         (dwarf2out_define): Output debug_macinfo data for defining a macro
11302         if requested.
11303         (dwarf2out_undef): Output debug_macinfo data for undefining a
11304         macro if requested.
11305         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
11306         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
11307         (macinfo_section_label): New. DWARF2 macro info section label.
11308         (dwarf2out_init): If we want macro info, output the start label
11309         for the section.
11310         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
11311         attribute to the compilation unit die pointing to the macro info.
11313 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11315         * dwarf2out.c (new_loc_list): Move to inside #ifdef
11316         DWARF2_DEBUGGING_INFO.
11317         (add_loc_descr_to_loc_list): Ditto.
11318         (output_loc_list): Ditto.
11319         Also, fix thinko in curr not being initialized.
11320         (gen_internal_sym): Ditto.
11322 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11324         * emit-rtl.c (replace_equiv_address): New function.
11325         * expr.h (replace_equiv_address): New declaration.
11326         * explow.c (validize_mem): Call it instead of change_address and
11327         also call if -fforce-addr and address is constant.
11328         * expr.c: Replace more calls to change_address with adjust_address
11329         and/or replace_equiv_address or to validize_mem.
11330         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
11331         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
11332         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11333         * config/i370/i370.md, config/i860/i860.md: Likewise.
11334         * config/i960/i960.md, config/mips/mips.c: Likewise.
11335         * config/mips/mips.md, config/pa/pa.md: Likewise.
11336         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
11337         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
11339 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11341         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
11343         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
11344         function.
11346 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11348         * doc/include: New directory.
11349         * doc/fdl.texi: Move to doc/include/fdl.texi.
11350         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
11351         * doc/include/funding.texi, doc/include/gpl.texi: New files.
11352         * doc/gcc.texi: Use funding.texi and gpl.texi.
11353         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
11354         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
11355         Update dependencies and use -I $(docdir)/include.
11357 2001-07-04  Anthony Green  <green@redhat.com>
11359         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
11361 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11363         * doc/install.texi (sparc64-*-*): Remove garbage.
11365 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
11367         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
11368         Fix typo in last change to use adjust_address.
11370 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11372         * doc/install.texi (Specific): Update information for *-*-solaris*.
11374 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11376         * explow.c (plus_constant_wide): Reinitialize Y for restart.
11378 2001-07-03  Stan Shebs  <shebs@apple.com>
11380         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
11381         case for flag_no_mach_text_sections.
11382         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
11383         * config/darwin.c (flag_no_mach_text_sections): Remove.
11384         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
11386 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11388         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
11389         and avoid checking for constant as first operand.
11390         * recog.c (find_constant_term_loc): No longer static.
11391         (adj_offettable_operand): Delete.
11392         * rtl.h (adj_offsettable_operand): Delete declaration.
11393         (find_constant_term): Add declaration.
11394         * caller-save.c: Replace calls to adj_offsettable_operand with calls
11395         to adjust_address.
11396         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
11397         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
11398         * config/i386/i386.c, config/i386/i386.md: Likewise.
11399         * config/i860/i860.c, config/i960/i960.c: Likewise.
11400         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
11401         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
11402         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
11403         * config/mips/mips.c, config/mips/mips.md: Likewise.
11404         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
11405         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
11406         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
11407         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
11408         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
11409         * config/ns32k/ns32k.md: Likewise.
11411 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
11413         * rtl.c (copy_rtx): Handle 'T' format letter.
11414         * gensupport.c (collect_insn_data): Likewise.
11415         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
11417 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
11419         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
11420         -B option.  Use 'dir' not 'foo' as example directory name.
11422 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11424         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11425         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
11427 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11429         * doc/cppinternals.texi: Improve formatting and logical markup.
11431 2001-07-03  Andreas Jaeger  <aj@suse.de>
11433         * Makefile.in (insn-recog.o): Add dependency on reload.h.
11435         * genrecog.c (write_header): Include reload.h for prototypes in
11436         insn-recog.c.
11438 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11440 config:
11441         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
11442         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11443         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
11444         i386_pe_valid_type_attribute_p): Add.
11445         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
11446         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
11448 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11450         * explow.c (plus_constant_wide, case LO_SUM): New case.
11451         (plus_constant_for_output_wide): Delete.
11452         * rtl.h (plus_constant_for_output): Delete.
11453         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
11454         instead of plus_constant_for_output.
11455         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
11456         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
11457         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
11458         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
11459         * config/sparc/sparc.md: Likewise.
11460         Convert some change_address calls to adjust_address.
11462 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11464         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
11465         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
11466         documentation of -std and -Wwrite-strings.
11468 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11470         * cse.c (canon_hash): Don't register registers in very small
11471         register classes, as extending their lifetime might cause
11472         reload to fail.
11474 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11476         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
11478         * flow.c (forwarder_block_p): Fix for fallthru blocks.
11479         (try_redirect_by_replacing_jump): Update properly the count
11480         and frequency information.
11482 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
11484         * toplev.c (dump_file_index): Move SSA dumps just after first
11485         jump dump.
11486         (dump_file): Corresponding changes.
11487         (rest_of_compilation): Move SSA path to just after the first
11488         jump pass.
11489         * doc/gcc.texi (Passes): Update due to movement of SSA path.
11490         * doc/invoke.texi: Update dump file #s as they were completely
11491         out of date with reality.
11493 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11495         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
11497         * expr.c (emit_move_insn_1): Deal with non-default
11498         STACK_PUSH_CODE.
11500         * expr.c (emit_single_push_insn): Fix warning.
11502 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11504         * expr.c (emit_move_insn_1): Avoid modifying
11505         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
11507 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11509         * emit-rtl.c (adjust_address): New function.
11510         * expr.h (adjust_address): Add declaration.
11511         * builtins.c: Replace some calls to change_address with calls to it
11512         or to validize_mem.
11513         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
11514         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
11515         * config/arm/arm.c, config/convex/convex.c: Likewise.
11516         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11517         * config/i386/i386.c, config/i386/i386.md: Likewise.
11518         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
11519         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
11520         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
11521         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
11522         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
11524 2001-07-02  Jim Wilson  <wilson@redhat.com>
11526         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
11528 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
11530         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
11531         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
11533 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11535         * cppinit.c (lang_defaults): New table.
11536         (set_lang): Just read from lang_defaults into the live options
11537         structure.
11539 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11541         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
11542         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
11543         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
11545 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11547         * doc/install.texi: Various spelling and markup fixes.
11548         (Installing GCC): Component specific installation instructions are
11549         gone.
11550         Fix reference.
11551         Warn about removing old install dir in the presence of shared libs.
11552         (Configuration): Invoke with options target to match configure
11553         --help.
11554         Consistently refer to gas, gld pathnames.
11555         Invert --enable-multilib documentation.
11556         Remove references to old compiler versions.
11558 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11560         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
11562 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11564         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
11565         section.
11566         (Specific, mips*-sgi-irix5): Note IDO download.
11567         Reworded MIPS C hints.
11568         Use GNU as instead of GAS.
11569         Markup fixes.
11570         Removed SGI Freeware reference, IRIX 6 only.
11571         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
11572         Note N64 library requirement/workaround.
11573         Update O32 hints.
11574         Complete list of structure passing bug victims.
11576 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11578         * doc/install.texi: Remove CVS Id.
11580 2001-07-02  Andreas Jaeger  <aj@suse.de>
11582         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
11583         (find_inherently_necessary): Remove unused variable.
11585 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
11587         * c-common.h (TDI_inlined): New ast dump phase.
11588         (dump_flag_name): New function.
11589         * c-dump.c (dump_files): Add inlined phase.
11590         (dump_flag_name): Define.
11591         * doc/invoke.texi (-fdump-ast-inlined): Document.
11593 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11595         * stor-layout.c (layout_decl): Revert change to handling of alignment
11596         in packed types.
11598 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11600         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
11601         for FIELD_DECL.
11603 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
11605         * doc/tm.texi (FUNCTION_ARG): Document that the last call
11606         is special.
11608 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11610         * tlink.c (recompile_files): Remove COMPILER_PATH and
11611         LIBRARY_PATH from the environment.
11613 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
11615         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
11616         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
11617         enumerators.
11618         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
11620         * c-parse.in (OBJC_STRING): Kill.
11621         (objc_string): Decompose to [objc_string] '@' STRING.
11622         (reswords): Take the leading '@' off all the Objective C keywords.
11623         (objc_rid_sans_at): Kill.
11624         (init_reswords): Don't initialize it.
11625         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
11626         (_yylex): Kill reconsider label.  Look ahead one token after
11627         an '@'; if we get an identifier, check whether it's an
11628         Objective C @-keyword.  If so, return the keyword.  Otherwise,
11629         put back the token and return the '@' as a terminal.
11631         * cpplib.c (lex_macro_node): Remove unnecessary check for
11632         leading '@' on identifier.  Clarify control flow and commentary.
11634 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11636         * cse.c (new_label_ref): Variable deleted.
11637         (insert): Remove set of new_label_ref.
11638         (check_for_label_ref): New function.
11639         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
11641 See ChangeLog.5 for earlier changes.