OSDN Git Service

* tree-inline.c (remap_decl): Don't copy size and size_unit here.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
2
3         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
4         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
5
6 2001-10-26  Richard Henderson  <rth@redhat.com>
7
8         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
9         rename PV_REG to R27_REG.
10         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
11         (REG_CLASS_FROM_LETTER): Update.
12         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
13         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
14         (udivsi3, modsi3, umodsi3): Likewise.
15         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
16
17 2001-10-26  Richard Henderson  <rth@redhat.com>
18
19         * cfg.c (clear_aux_for_blocks): Split out of ...
20         (free_aux_for_blocks): here.
21         (clear_aux_for_edges): Split from ...
22         (free_aux_for_edges): here.
23         * basic-block.h: Declare them.
24         * lcm.c (compute_antinout_edge): Use them.
25         (compute_laterin, compute_available, compute_nearerout): Likewise.
26         (optimize_mode_switching): Likewise.
27
28 2001-10-26  Richard Henderson  <rth@redhat.com>
29
30         * Makefile.in (unstage*): Remove as, ld, collect-ld before
31         moving everything back to the main build directory.
32
33 2001-10-26  Christopher Faylor  <cgf@redhat.com>
34
35         * config/i386/cygwin.h: Search target specfic include directory, if
36         appropriate.
37
38 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39
40         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
41         of macro guards. Fix #endif comment.
42
43         * output.h (default_exception_section, default_eh_frame_section):
44         Move prototypes outside of macro guard.
45         
46         * crtstuff.c: Fix #endif comment.
47
48 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
49
50         * doc/md.texi (movMM): Clarify semantics of storing into a 
51         non-paradoxical SUBREG.
52
53 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
54
55         * langhooks.c (lang_hook_default_clear_binding_stack): New.
56         (lang_hook_default_get_alias_set): Move next to other alias
57         hooks.
58         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
59         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
60         (LANG_HOOKS_INITIALIZER): Add it.
61         * toplev.h (struct lang_hooks): Add clear_binding_stack.
62         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
63         instead of a loop calling poplevel.
64
65 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
66
67         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
68         occurrences of #elif with #if...#endif.
69
70 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
71
72         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
73
74 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
75
76         * alias.c (can_address_p): No longer static.
77         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
78         Return 0 if all parameters are default values.
79         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
80         (adjust_address_1): Try harder to compute a size.
81         * expr.c (expand_assignment, store_constructor): If can't address,
82         set MEM_KEEP_ALIAS_SET_P.
83         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
84         (store_field): Likewise.
85         (store_constructor): Simplify call to store_constructor_field.
86         * expr.h (can_address_p): New declaration.
87         * gensupport.c (gen_rtx_CONST_INT): New function.
88         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
89         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
90         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
91
92         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
93
94 2001-10-24  Christopher Faylor  <cgf@redhat.com>
95
96         * config/i386/cygwin.h: Use proper path for mingw crt files when
97         -mno-cygwin.
98
99 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
100
101         * dwarf2out.c (file_info_cmp): Always return consistent results.
102
103 2001-10-24  Roger Sayle <roger@eyesopen.com>
104
105         * stmt.c (expand_end_case): Index jumptables from zero for
106         suitably small values of minval.
107
108 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
109
110         * stor-layout.c (place_union_field): If any field was aligned with
111         attribute aligned, set record type's TYPE_USER_ALIGN.
112         (place_field): Likewise.
113         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
114         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
115
116 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
117
118         * c-common.h (struct c_common_identifier): Remove rid_code field.
119         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
120
121         * c-typeck.c (constructor_designated): New local flag.
122         (struct constructor_stack): Add "designated" field to match.
123         (start_init): Clear it.
124         (really_start_incremental_init, push_init_level): Push and
125         clear it.
126         (pop_init_level): Pop it.
127         (set_designator): Set it.
128
129         (pop_init_level): Suppress "missing initializer" warnings if
130         constructor_designated is true.
131         (process_init_element): Suppress warning about union
132         initialization under traditional C, if constructor_designated
133         is true.
134
135 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
136
137         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
138         change.
139
140 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
141
142         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
143
144 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
145
146         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
147         the node was already a set to a constant.
148
149 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
150
151         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
152         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
153
154 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
155
156         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
157         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
158         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
159         * s390.c (s390_final_chunkify): Don't use string concatenation.
160         (s390_function_prologue, s390_function_epilogue): Const-ify.
161         * s390.h (FUNCTION_PROFILER): Remove unused variable.
162
163 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
164
165         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
166         prototypes.
167
168 2001-10-23  Stan Shebs  <shebs@apple.com>
169
170         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
171         -traditional-cpp in first-stage compilation.
172
173 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
174
175         * gensupport.c (target_flags): Add.
176
177 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
178
179         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
180         if needed.
181         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
182         * except.c (expand_builtin_frob_return_addr): Likewise.
183         (expand_builtin_eh_return): Likewise.
184         * stmt.c (expand_computed_goto): Likewise.
185         * explow.c (memory_address): Likewise.
186         (allocate_dynamic_stack_space): Clean up predicate testing.
187         (probe_stack_range): Convert SIZE to Pmode.
188         * calls.c (rtx_for_function_call): Only call convert_memory_address
189         if needed.
190         Pass function call operand as ptr_mode, not Pmode.
191         * expr.c (expand_assignment): Clean up calls to convert_memory
192         address by only doing so when needed and making offsets Pmode.
193         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
194         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
195         is in Pmode, not ptr_mode.
196
197 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
198
199         * darwin-protos.h (constructor_section, destructor_section,
200         mod_init_section, mod_term_section): Prototype.
201         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
202         Const-ify.
203         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
204         Likewise.
205         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
206         objc_section_init declaration.
207         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
208         (objc_section_init, try_section_alias): Make static.
209         (alias_section): Make static and hide unused function.
210         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
211
212 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
213
214         * alias.c (can_address_p): Compnonents are not addressable if
215         the containing type has alias set 0.
216         (get_alias_set): Rework to use STRIP_NOPS.
217         Only call front-end routine on object, type, or object with
218         NOPs stripped, not inner values.
219         Use language hook to call front-end routine.
220         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
221         (expand_builtin_apply): Call set_mem_align on MEMs we make.
222         Don't pass alignment to emit_block_move.
223         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
224         (expand_builtin_memset): Likewise, but for clear_storage.
225         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
226         and remove C++ specific parts.
227         * c-common.h (c_common_get_alias_set): Add declaration.
228         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
229         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
230         (save_fixed_argument_area): Call set_mem_align.
231         Remove alignment in call to emit_block_move.
232         (emit_library_call_value_1, store_one_arg): Likewise.
233         (target_for_arg): Remove; disabled long ago.
234         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
235         once and similar cleanups.
236         (offset_address): Use proper introductory comment.
237         * expr.c (emit_block_move): Use alignment from that of MEM args, not
238         from explicit operand; all callers changed.
239         (clear_storage): Likewise.
240         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
241         (store_field): Remove kludge on alias set used for to_rtx.
242         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
243         (expand_expr_unaligned): Call set_mem_attributes instead of
244         set_mem_alias_set.
245         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
246         * function.c (assign_stack_temp_for_type): Set MEM alignment.
247         (expand_function_end): Track MEM attributes of trampolines.
248         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
249         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
250         attributes from original.
251         * langhooks.c (lang_hook_default_get_alias_set): New function.
252         (hook_get_alias_set_0): New function.
253         * langhooks.h (hook_get_alias_set_0): New declaration.
254         (lang_hook_default_get_alias_set): Likewise.
255         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
256         * reload1.c (alter_reg): Use adjust_address_nv.
257         * rtl.c (get_mode_alignment): Moved to here.
258         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
259         change default if unknown from 1 to BITS_PER_UNIT.
260         * stor-layout.c (get_mode_alignment): Remove from here.
261         * toplev.h (struct lang_hoks): Add get_alias_set field.
262         * tree.h (lang_get_alias_set): Delete declaration.
263         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
264         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
265         (ix86_va_arg): Likewise.
266         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
267         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
268         * config/sparc/sparc.c (sparc_va_arg): Likewise.
269         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
270         (expand_block_move_mem): Remove dead code.
271
272 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
273
274         * c-common.c (warn_div_by_zero): New.
275         * c-common.h (warn_div_by_zero): New.
276         * c-decl.c (c_decode_option): Take it on the command line.
277         * c-typeck.c (build_binary_op): Warn about division by zero.
278         * doc/invoke.texi: Document the new command line option, fix
279         documentation of -Wmultichar.
280         * testsuite/gcc.dg/divbyzero.c: New tests.
281         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
282
283 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
284
285         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
286
287         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
288         to avoid update_life_info call.
289         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
290         * cfgcleanup.c (bb_flags): New enum.
291         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
292         (notice_new_block, update_forwarder_flag): New functions.
293         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
294         (try_forward_edges): Likewise; update flags.
295         (merge_blocks): Likewise.
296         (outgoing_edges_match): Likewise.
297         (try_crossjump_to_edge): Likewise.
298         (try_optimize_cfg): Likewise; initialize and clear the flags;
299         recompute life info if needed.
300         (cleanup_cfg): No need to clear aux pointers.
301
302 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
303
304         * config/i386/i386.c (override_options): Default to minimum
305         stack alignment when optimizing for code size.
306         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
307         change.
308
309         * config/i386/i386.c (override_options): Set upper limit of
310         -mpreferred-stack-boundary to 12.
311
312 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
313
314         * recog.c (peephole2_optimize): Add default case to switch.
315
316 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
317
318         * doc/gcc.texi (Sending Patches): Remove.
319
320 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
321
322         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
323         fields when comparing.
324
325 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
326
327         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
328         * arm.c (HOST_INT, HOST_UINT): Likewise.
329
330 2001-10-22  Stan Shebs  <shebs@apple.com>
331
332         * config/darwin-protos.h (darwin_exception_section): Declare.
333         (darwin_eh_frame_section): Declare.
334
335 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
336
337         * i386.md (movti_rex64): Fix mode.
338
339 2001-10-22  Stan Shebs  <shebs@apple.com>
340
341         * target.h (struct gcc_target): Add asm_out.exception_section,
342         asm_out.eh_frame_section.
343         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
344         (TARGET_ASM_EH_FRAME_SECTION): New.
345         (TARGET_INITIALIZER): Update.
346         * output.h (default_exception_section): Declare.
347         (default_eh_frame_section): Declare.
348         * dwarf2out.c: Include target.h.
349         (output_call_frame_info): Call target hook for eh frames.
350         (default_eh_frame_section): New function.
351         * except.c: Include target.h.
352         (output_function_exception_table): Call target hook for exception
353         section.
354         * varasm.c (default_exception_section): Rename from
355         exception_section, remove EXCEPTION_SECTION macro.
356
357         * config/darwin.h (darwin_eh_frame_section): New function.
358         (EXCEPTION_SECTION): Remove.
359         (TARGET_ASM_EXCEPTION_SECTION): Define.
360         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
361         (nextstep_exception_section): New function.
362         (nextstep_eh_frame_section): New function.
363         (TARGET_ASM_EXCEPTION_SECTION): Define.
364         (TARGET_ASM_EH_FRAME_SECTION): Define.
365
366         * config/pa/som.h (EXCEPTION_SECTION): Remove.
367         (TARGET_ASM_EXCEPTION_SECTION): Define.
368         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
369         (EXCEPTION_SECTION): Remove.
370         (TARGET_ASM_EXCEPTION_SECTION): Define.
371         * config/stormy16/stormy16.h: Remove comments referencing
372         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
373
374         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
375         TARGET_ASM_EH_FRAME_SECTION.
376
377 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
378
379         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
380         terms.
381
382         * c-format.c: Fix spelling typo in comment.
383
384         * sched-int.h: Fix typo in GCC preamble.
385
386 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
387
388         PR debug/4252
389         * doc/invoke.texi: Remove references to -fdump-translation-unit.
390
391 2001-10-22  Richard Henderson  <rth@redhat.com>
392
393         * config/i386/i386.c (ix86_expand_clear): New.
394         * config/i386/i386-protos.h: Declare it.
395         * config/i386/i386.md (setcc peep2s): Use it.
396         (movsi_xor): Unexport.
397
398 2001-10-22  Richard Henderson  <rth@redhat.com>
399
400         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
401         free_EXPR_LIST_list for LOG_LINKS.
402
403 2001-10-21  Robert Lipe  <robertlipe@usa.net>
404
405         * config/i386/i386.c (sco_asm_named_section): Delete.
406         (sco_asm_out_constructor): Delete.
407         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
408         (ASM_OUTPUT_DOUBLE_INT): Likewise.
409         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
410         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
411         (EXCEPTION_SECTION): Delete EH scn renaming hack.
412
413 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
414
415         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
416         and/or fold extra calls into fewer ones.
417         * collect2.c (dump_file): Likewise.
418         * cppexp.c (parse_number): Likewise.
419         * cpplex.c (_cpp_lex_direct): Likewise.
420         * final.c (output_asm_insn, asm_fprintf): Likewise.
421         * fix-header.c (inf_scan_ident, main): Likewise.
422         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
423         Likewise.
424         * fold-const.c (real_hex_to_f): Likewise.
425         * gen-protos.c (parse_fn_proto): Likewise.
426         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
427         * genrecog.c (change_state, write_action): Likewise.
428         * gensupport.c (shift_output_template): Likewise.
429         * local-alloc.c (requires_inout): Likewise.
430         * mips-tfile.c (IS_ASM_IDENT): Likewise.
431         * protoize.c (is_id_char, main): Likewise.
432         * real.c (asctoeg): Likewise.
433         * recog.c (asm_operand_ok): Likewise.
434         * reload.c (find_reloads): Likewise.
435         * scan.c (scan_identget_token): Likewise.
436         * sched-vis.c (print_value): Likewise.
437         * stringpool.c (ggc_alloc_string): Likewise.
438         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
439         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
440         * tradcpp.c (rescan): Likewise.
441         * tree.c (clean_symbol_name): Likewise.
442         * varasm.c (decode_reg_name): Likewise.
443
444         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
445         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
446         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
447         * m88k.c (output_ascii): Likewise.
448         * m88k.h (OVERRIDE_OPTIONS): Likewise.
449         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
450         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
451         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
452
453 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
454
455         * langhooks.c (lang_hook_default_do_nothing,
456         lang_hook_default_decode_option): New defaults.
457         * langhooks.h: Make hooks unconditional and non-NULL.
458         * toplev.c (compile_file, toplev_main): Update.
459         * toplev.h: Update comments.
460         * objc/objc-act.c (lang_hooks): Update to new paradigm.
461
462 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
463
464         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
465
466         * system.h (IN_RANGE): New macro.
467
468 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
469
470         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
471         INTLDEPS variable, which does not include $LIBICONV.
472         * Makefile.in: Use INTLDEPS in LIBDEPS.
473         * configure: Regenerate.
474
475 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
476
477         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
478         * cpplex.c (lex_percent, lex_dot): Remove.
479         (get_effective_char, skip_block_comment, skip_line_comment,
480         parse_identifier_slow, parse_number, parse_string, save_comment,
481         _cpp_lex_direct): Update to do lookback freely.
482         (IF_NEXT_IS, BACKUP): New macros.
483         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
484         * cppmacro.c (paste_tokens): Update.
485
486 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
487
488         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
489
490 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
491
492         * reload1.c (reload): Check CONSTANT_P before calling
493         LEGITIMATE_PIC_OPERAND_P.
494         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
495         workaround of 2001-10-13.
496
497 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
498
499         * i386.c (split_di): Handle splitting of DFmode.
500
501 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
502
503         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
504         (adjust_address_1, offset_address): Likewise.
505
506         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
507         (output_asm_insn): Call it for each line output.
508         Don't record an operand more than once.
509
510         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
511         * main.c: Include config.h and system.h, but not ansidecl.h.
512         * Makefile.in (main.o): Update accordingly.
513
514 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
515
516         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
517
518 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
519
520         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
521         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
522         Break out from ...
523         (find_sub_basic_blocks): ... here;
524         (find_many_sub_basic_blocks): New.
525         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
526
527         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
528
529         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
530
531         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
532
533         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
534         * flow.c (update_life_info): Measure time.
535         * c-decl.c: Include timevar.h
536         (c_expand_body): Measure time.
537         * toplev.c (rest_of_compilation): Measure time of mode switching
538         separately.
539         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependancy.
540
541         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
542         (lang_independent_options): Add asynchronous-unwind-tables
543         (toplev_main): flag_asynchronous_unwind_tables implies
544         flag_unwind_tables.
545         * flags.h (flag_asynchronous_unwind_tables): Declare.
546         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
547         flag_asynchronous_unwind_tables.
548         (output_call_frame_info): Likewise.
549         * invoke.texi (-fasynchronous-unwind-tables): Document.
550         * i386.c (optimization_options): Enable
551         flag_asynchronous_unwind_tables.
552
553         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
554         * i386.md (s* expanders): Destination is QImode.
555
556         * toplev.c (rest_of_compilation): Do not call clear_log_links.
557         * rtl.h (clear_log_links): Kill.
558         * flow.c (clear_log_links): Make static; accept blocks parameter;
559         do no clear life info.
560         (update_life_info): Call clear_log_links.
561
562         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
563
564 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
565
566         * cpplex.c (handle_newline, skip_escaped_newlines,
567         get_effective_char, skip_block_comment, skip_line_comment,
568         parse_identifier_slow, parse_number, parse_string,
569         _cpp_lex_direct): Update to do more stepping back.
570         (trigraph_ok): Similarly.  Rename trigraph_p.
571         (SAVE_STATE, RESTORE_STATE): Remove.
572         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
573
574         * cpplib.c (destringize): Rename destringize_and_run, and
575         call run_directive directly.
576         (_cpp_do__Pragma): Simplify.
577
578 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
579
580         * pe.c (arm_pe_unique_section): Const-ify.
581         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
582         (switch_to_section): Add static prototype.
583
584         * output.h (drectve_section): Prototype.
585
586 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
587
588         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
589         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
590         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
591         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
592         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
593         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
594         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
595         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
596         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
597         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
598         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
599         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
600         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
601         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
602         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
603         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
604         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
605         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
606         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
607         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
608         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
609         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
610         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
611         cris-*-none, cris-*-linux*: Update ${tmfile} list.
612         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
613         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
614         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
615         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
616         v850-*-*): Delete superflous ${cpu_type} setting.
617         * config/linux.h: Delete svr4.h include.
618         (SET_ASM_OP): Delete.
619         * config/netware.h (INT_ASM_OP): Undef before define.
620         * config/ptx4.h: Delete elfos.h include.
621         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
622         * config/svr4.h: Delete elfos.h include. Update commentary.
623         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
624         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
625         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
626         config/v850/v850.h: Delete svr4.h include.
627         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
628         config/m68k/m68kv4.h, config/m88k/sysv4.h,
629         config/sparc/sysv4.h: Update includes.
630         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
631         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
632         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
633         config/m88k/dguxbcs.h: Delete includes.
634         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
635         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
636         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
637         it.
638         * config/m88k/dgux.h: Delete include.
639         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
640         defining it.
641         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
642         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
643         * config/sh/elf.h: Update include.
644         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
645         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
646
647 2001-10-19  Catherine Moore  <clm@redhat.com>
648
649         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
650         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
651         base and count fields.
652         (stormy16_expand_builtin_va_start):  last_reg_count changed to
653         size_of_reg_args.  Use count + size in first comparison.
654
655 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
656
657         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
658         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
659         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
660         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
661         Set alignment from type if INDIRECT_REF.
662         (adjust_address_1, offset_address): Simplify alignment compuitation.
663         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
664         here; done by set_mem_attributes.
665
666 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
667
668         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
669         * arm-protos.h (rdata_section, zero_init_section, common_section):
670         Prototype.
671         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
672         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
673         traditional mode stringification.
674         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
675         in macros controling its use.
676         * rtlanal.c: Include tm_p.h.
677         * varasm.c (asm_output_aligned_bss): Mark parameter with
678         ATTRIBUTE_UNUSED.
679         (assemble_constant_align, assemble_start_function, assemble_align,
680         assemble_variable, assemble_trampoline_template,
681         output_constant_def_contents): Wrap potentially empty if-stmt body
682         in brackets.
683
684 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
685
686         * a29k-protos.h (literal_section): Prototype.
687         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
688         * a29k.md: Ensure function pointers are prototyped.
689         * genattrtab.c (write_eligible_delay): Mark parameter with
690         ATTRIBUTE_UNUSED.
691
692 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
693
694         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
695         * 1750a.c (print_operand): Fix format specifier warning.
696         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
697         * 1750a.md: Likewise.
698         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
699         * genemit.c (output_add_clobbers): Mark parameter with
700         ATTRIBUTE_UNUSED.
701         * genrecog.c (write_subroutine): Likewise.
702         * integrate.c (expand_inline_function): Delete unused variable.
703         * varasm.c (remove_from_pending_weak_list): Wrap with
704         ASM_WEAKEN_LABEL.
705
706 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
707
708         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
709         field is different to previous argument's neg field.
710
711         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
712
713 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
714
715         * final.c (get_decl_from_op): New function.
716         (output_asm_insn): Call it; write "*" when item with decl is address.
717
718 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
719
720         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
721         about 64-bit support from the 3.0_branch version.
722
723 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
724
725         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
726         USE_INCLUDED_LIBINTL when appropriate.
727         * configure, config.in: Regenerate.
728         * Makefile.in (datadir): Set to @datadir@.
729         (intl.o): Also depend on $(CONFIG_H) and system.h.
730
731         * intl.c: Factor out common gettext initialization sequence.
732         (gcc_init_libintl):  New function.
733         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
734         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
735         off NLS.  Add multiple include guard.  No need to #ifdef-guard
736         an #undef.  Prototype gcc_init_libintl here.
737
738         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
739         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
740         Use gcc_init_libintl.
741
742 2001-10-19  Catherine Moore  <clm@redhat.com>
743
744         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
745
746         * config/stormy16/stormy16.c (stormy16_split_move):  Make
747         sure that REG_INC notes are present for auto_inc operands.
748
749 2001-10-19  Andreas Jaeger  <aj@suse.de>
750
751         * configure: Regenerated.
752         * configure.in: Add x86_64 to switch statements.
753
754 2001-10-18  Richard Henderson  <rth@redhat.com>
755
756         * config/alpha/alpha.md (sibcall_osf_1): Load destination
757         address into $27 explicitly.
758         (sibcall_value_osf_1): Likewise.
759
760 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
761
762         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
763         (offset_address): New function.
764         (free_emit_status): Free regno_decl.
765         (init_emit): Pass proper number of elements to xcalloc.
766         Allocate regno_decl.
767         (mark_emit_status): Mark regno_decl values.
768         * expr.c (highest_pow2_factor): New function.
769         (expand_assigment): Use it and offset_address.
770         Properly handle ptr_mode vs. Pmode in offset calculation.
771         (store_constructor, expand_expr_unaligned): Likewise.
772         (expand_expr, case COMPONENT_EXPR): Likewise.
773         * expr.h (offset_address): New decl.
774         * function.h (struct emit_status): Add regno_decl.
775         (REGNO_DECL): New macro.
776         * final.c (output_asm_name): Move in file and don't conditionalize
777         on flag_print_asm_name.
778         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
779         Output names of operands, if known.
780         * function.c (assign_parms): Set REGNO_DECL.
781         * integrate.c (integrate_decl_tree): Likewise.
782         * stmt.c (expand_decl): Likewise.
783         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
784
785 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
786
787         * attribs.c (handle_noinline_attribute): New function.
788         (handle_used_attribute): Likewise.
789         (c_common_attribute_table): Added noinline and used.
790         * doc/extend.texi (Function Attributes): Document them.
791         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
792         Warn when merging inline with attribute noinline.
793         (start_decl, start_function): Warn if inline and attribute
794         noinline appear in the same declaration.
795
796 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
797
798         * config.gcc: Update c4x and i370 for C front end-specific
799         dependencies.
800         * config/c4x/c4x-c.c: New.
801         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
802         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
803         New declarations.
804         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
805         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
806         Make extern.
807         (c4x_init_pragma): Remove.
808         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
809         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
810         c4x_pr_ignored): Move to c4x-c.c.
811         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
812         * config/c4x/t-c4x: Update.
813         * config/i370/i370-c.c: New.
814         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
815         (i370_pr_map): Move to i370-c.c.
816         * config/i370/t-i370: New.
817
818         * doc/tm.texi: Update.
819
820 2001-10-17  Stan Shebs  <shebs@apple.com>
821
822         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
823         typo fixes throughout.
824         (machopic_output_stub): Remove some dead code.
825
826 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
827
828         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
829         leak.
830
831 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
832
833         * Makefile.in (print-rtl.o): Depend on TREE_H.
834         * alias.c (get_alias_set): Make two passes over objects to first
835         see if inner object is access via restricted pointer.
836         Defer allocating alias set for restricted pointer until here.
837         Call find_placeholder with second arg nonzero.
838         Minor cleanups.
839         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
840         set for restricted pointer types.
841         * emit-rtl.c (set_mem_attributes): Set more attributes.
842         (set_mem_align, change_address, adjust_address_1): New functions.
843         (change_address_1): Now static.
844         (adjust_address, adjust_address_nv): Deleted.
845         (replace_equiv_address): Call change_address_1.
846         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
847         (find_placeholder): Get starting point from PLIST arg.
848         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
849         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
850         (adjust_address, adjust_address_nv): New macros.
851         * print-rtl.c (tree.h): New include.
852         (print_rtx, case MEM): Print all memory attributes.
853
854 2001-10-17  Richard Henderson  <rth@redhat.com>
855
856         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
857
858 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
859
860         * c-tree.texi: Eliminate duplicated word.
861         * cpp.texi: Likewise.
862         * install.texi: Likewise.
863         * invoke.texi: Likewise.
864         * tm.texi: Likewise.
865
866 2001-10-17  Michael Collison  <collison@isisinc.net>
867
868         * dsp16xx.c: Fix comment formatting to match GNU standards.
869         (dsp16xx_output_function_prologue): Change type of 'size'
870         parameter from 'int' to HOST_WIDE_INT.
871         (dsp16xx_output_function_epilogue): Change type of 'size'
872         parameter from 'int' to HOST_WIDE_INT.
873
874 2001-10-16  Richard Henderson  <rth@redhat.com>
875
876         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
877         * configure, config.in: Rebuild.
878
879         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
880         (ix86_output_addr_diff_elt): New.
881         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
882         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
883         (JUMP_TABLES_IN_TEXT_SECTION): New.
884         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
885         * config/i386/i386-protos.h: Update.
886
887         * config/i386/386bsd.h, config/i386/beos-elf.h,
888         config/i386/freebsd-aout.h, config/i386/freebsd.h,
889         config/i386/i386-interix.h, config/i386/i386elf.h,
890         config/i386/linux.h, config/i386/netbsd-elf.h,
891         config/i386/netbsd.h, config/i386/openbsd.h,
892         config/i386/ptx4-i.h, config/i386/rtemself.h,
893         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
894         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
895
896 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
897
898         * stmt.c (expand_asm_operands): Update commentary.
899
900 2001-10-16  Stan Shebs  <shebs@apple.com>
901
902         * config/darwin.h (GCC_NAME): Remove, no longer used.
903         (NO_MATH_LIBRARY): Ditto.
904         (MATH_LIBRARY): Define to emptiness.
905         (DWARF2_DEBUGGING_INFO): Define.
906         (PREFERRED_DEBUGGING_TYPE): Define.
907         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
908         (EXCEPTION_SECTION): Define.
909         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
910         * config/darwin.c (darwin_encode_section_info): Handle case of
911         DECL_INITIAL being error_mark_node.
912
913 2001-10-16  Richard Henderson  <rth@redhat.com>
914
915         * alpha.c (current_file_function_operand): Don't fail for profiling.
916         (direct_call_operand): New.
917         * alpha-protos.h: Declare it.
918         * alpha.h (EXTRA_CONSTRAINT): Use it.
919         (PREDICATE_CODES): Add it.
920         (ASM_OUTPUT_MI_THUNK): Remove.
921         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
922         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
923
924 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
925
926         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
927         (JUMP_TABLES_IN_TEXT_SECTION): Define.
928
929 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
930
931         * cfg.c (free_edge): Break out from ....
932         (remove_edge): ... here.
933         (clear_edges): Use free_edge.
934
935         * att.h (ASM_QUAD): Add comment.
936         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
937
938 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
939
940         * i386.c (split_ti): New function.
941         (ix86_split_to_parts): Support TImodes.
942         * i386.h (VALID_INT_MODE_P): Add TImode.
943         * i386.md (movdi splitter): Fix.
944         (movti): Support 64bit integer registers.
945         (movti_rex64): New function and splitter.
946
947         * i386.c (*_cost): Add movsx/movzx cost.
948         * i386.h (struct processor_costs): Add movsx/movzx fields.
949         (RTX_COSTS): Handle zero/sign extend + avoid believing that
950         64bit operations require split on 64bit machine.
951         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
952
953         * i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
954         (ix86_expand_move): Avoid pushes of memory if size does not match;
955         move long constants to register.
956         (x86_initialize_trampoline): Fix mode.
957         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
958         Use ASM_QUAD on 64bit.
959         * i386.md (test pattern): Disallow impossible constants.
960         (tablejump PIC expander): Fix emitting of sum.
961         (movdicc_rex64): Rename to movdicc.
962         * linux64.h (LINK_SPEC): Add missing '%'.
963
964 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
965
966         * tree-inline.c (inlinable_function_p): Leave it up to the
967         front-end to turn -finline-functions into DECL_INLINE set for all
968         functions.
969
970 2001-10-16  Stan Shebs  <shebs@apple.com>
971
972         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
973
974 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
975
976         * recog.c: Formatting and comment typo fixes.
977
978         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
979         version in single tree build.
980         * configure: Regenerate.
981
982 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
983
984         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
985         MODE arguments to gen_rtx and compare operand with const0_rtx.
986
987 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
988
989         * system.h: Poison old unused target macros.
990         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
991         * config/stormy16/stormy16.c: Update references to obsolete macros.
992         * config/stormy16/stormy16.h: Similarly.
993         * config/stormy16/stormy16.md: Similarly.
994         * config/cris/cris.h: Similarly.
995
996 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
997
998         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
999         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
1000         cpp_register_pragma): Update accordingly.
1001
1002 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1003
1004         * c-pragma.h (cpp_register_pragma_space): Remove.
1005         * cpplib.h (cpp_register_pragma_space): Remove.
1006         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
1007         (cpp_register_pragma_space): Remove.
1008         (cpp_register_pragma): Simplify using lookup_pragma_entry,
1009         add sanity checks.
1010         (do_pragma): Similarly.
1011         (_cpp_init_internal_pragmas): Don't register namespaces.
1012
1013         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
1014         Don't register namespaces.
1015         * cp/lex.c (init_cp_pragma): Similarly.
1016         * doc/tm.texi: Update.
1017
1018 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1019
1020         PR c/4157
1021         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
1022
1023 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
1024
1025         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
1026         add scheduling support.
1027         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
1028         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
1029         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
1030
1031
1032 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
1033
1034         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
1035         missing CONSTANT_P test in core GCC.
1036
1037 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
1038
1039         * cppmain.c (struct printer): New member source.
1040         (scan_translation_unit): Fix spacing at start of lines.
1041         (cb_line_change): Update.
1042
1043         * gcc.dg/cpp/spacing2.c: New test.
1044
1045 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
1046
1047         * config/cris/arit.c: Use __builtin_labs, not abs.
1048
1049         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
1050
1051         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
1052         misplaced sprintf and fprintf argument.
1053
1054 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
1055
1056         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
1057         * configure.in, Makefile.in: Take out obsolete check-po logic.
1058         * configure, config.in: Regenerate.
1059
1060 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
1061
1062         * objc/objc-act.c (finish_objc): Correct precondition for emitting
1063         symtab declarations.
1064
1065 2001-10-12  Stan Shebs  <shebs@apple.com>
1066
1067         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
1068         declarations of arguments and local variables.
1069
1070 2001-10-12  Christopher Faylor  <cgf@redhat.com>
1071
1072         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
1073         ENDFILE_SPEC definition.
1074
1075 2001-10-12  Kazu Hirata  <kazu@hxi.com>
1076
1077         * gthr-dce.h: Fix comment formatting.
1078         * gthr-posix.h: Likewise.
1079         * gthr-single.h: Likewise.
1080         * gthr-solaris.h: Likewise.
1081         * gthr-vxworks.h: Likewise.
1082         * gthr-win32.h: Likewise.
1083
1084 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
1085
1086         * final.c (output_asm_insn): Make sure assembly dialects are
1087         terminated, not nested.  Output `|' and `}' characters if they
1088         don't appear inside assembly dialect selection.
1089         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
1090         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
1091         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
1092         strsetsi_rex_1): Add {} braces.
1093
1094 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1095
1096         * toplev.c (compile_file): Ignore return value from yyparse.
1097         Always pop any nested binding levels after yyparse returns.
1098
1099 2001-10-11  Richard Henderson  <rth@redhat.com>
1100
1101         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
1102
1103 2001-10-11  Richard Henderson  <rth@redhat.com>
1104
1105         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
1106         fall back to add_AT_long_long for large CONST_INT.
1107
1108 2001-10-11  Richard Henderson  <rth@redhat.com>
1109
1110         * config/i386/i386.md (setcc splitters): Add four splitters to
1111         simplify compound compares that simplify_comparison can't handle.
1112
1113 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
1114
1115         * cpplex.c (digraph_spellings, token_spellings): Make static.
1116
1117 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1118
1119         * unroll.c (loop_iterations): Fixup last patch.
1120
1121 2001-10-11  Richard Henderson  <rth@redhat.com>
1122
1123         * rtl.h (REG_VTABLE_REF): New.
1124         * rtl.c (reg_note_name): Add it.
1125         * combine.c (distribute_notes): Handle it.
1126         * final.c (final_scan_insn): Handle it.
1127         * tree.def (VTABLE_REF): New.
1128         * expr.c (expand_expr): Handle it.
1129         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
1130         * output.h: Declare them.
1131
1132 2001-10-11  Richard Henderson  <rth@redhat.com>
1133
1134         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
1135         for a DECL_INITIAL.
1136
1137 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
1138
1139         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
1140         available in 64-bit mode.
1141
1142 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1143
1144         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
1145         cris-*-linux* cases.
1146         * config/cris/cris-protos.h: New file.
1147         * config/cris/cris.c: New file.
1148         * config/cris/cris.h: New file.
1149         * config/cris/cris.md: New file.
1150         * config/cris/linux.h: New file.
1151         * config/cris/aout.h: New file.
1152         * config/cris/arit.c: New file.
1153         * config/cris/cris_abi_symbol.c: New file.
1154         * config/cris/mulsi3.asm: New file.
1155         * config/cris/t-aout: New file.
1156         * config/cris/t-cris: New file.
1157         * config/cris/t-elfmulti: New file.
1158         * config/cris/t-linux: New file.
1159         * doc/invoke.texi: Add CRIS options.
1160         * doc/install.texi (Specific): Add blurb for CRIS.
1161
1162 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
1163
1164         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
1165         before using it.
1166         * config/float/i32.h: Likewise.
1167         * config/float-i386.h: Likewise.
1168         * config/float-i64.h: Likewise.
1169         * config/float-m68k.h: Likewise.
1170         * config/float-sh.h: Likewise.
1171         * config/float-sparc.h: Likewise.
1172
1173 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
1174
1175         * doc/contrib.texi: Add note about CRIS port to my entry.
1176
1177 2001-10-11  Kazu Hirata  <kazu@hxi.com>
1178
1179         * basic-block.h: Fix formatting.
1180         * bitmap.h: Likewise.
1181         * cpplib.h: Likewise.
1182         * c-tree.h: Likewise.
1183         * diagnostic.h: Likewise.
1184         * flags.h: Likewise.
1185         * ggc.h: Likewise.
1186         * longlong.h: Likewise.
1187         * real.h: Likewise.
1188         * reload.h: Likewise.
1189         * rtl.h: Likewise.
1190         * tree.h: Likewise.
1191
1192 2001-10-10  Richard Henderson  <rth@redhat.com>
1193
1194         * c-parse.in (asm_operand): Allow named operands.
1195         * genconfig.c (max_recog_operands): Set to 29.
1196         * local-alloc.c (requires_inout): Skip multiple digits.
1197         * recog.c (asm_operand_ok): Likewise.
1198         (preprocess_constraints): Use strtoul for matching constraints.
1199         (constrain_operands): Likewise.
1200         * regmove.c (find_matches): Likewise.
1201         * reload.c (find_reloads): Likewise.
1202         * stmt.c (parse_output_constraint): Don't reject in-out
1203         constraint on operands > 9.  Reject '[' in constraint.
1204         (expand_asm_operands): Handle named operands.  Use strtoul
1205         for matching constraints.
1206         (check_operand_nalternatives): Split out from expand_asm_operands.
1207         (check_unique_operand_names): New.
1208         (resolve_operand_names, resolve_operand_name_1): New.
1209
1210         * doc/extend.texi (Extended Asm): Document named operands.
1211         * doc/md.texi (Simple Constraints): Document matching constraints
1212         on operands > 9.
1213
1214 2001-10-10  Richard Henderson  <rth@redhat.com>
1215
1216         * combine.c (try_combine): Handle a SEQUENCE of one insn.
1217
1218         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
1219         (jcc splitters): Add two splitters to simplify compound compares
1220         that simplify_comparison can't handle.
1221
1222 2001-10-10  Richard Henderson  <rth@redhat.com>
1223
1224         * langhooks.c: Include langhooks.h.
1225         * Makefile.in (langhooks.o): Depend on it.
1226
1227 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
1228
1229         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
1230         should not be considered as a no-op.
1231         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
1232
1233 2001-10-10  Stan Shebs  <shebs@apple.com>
1234
1235         * alias.c: Remove uses of "register" specifier in declarations
1236         of arguments and local variables.
1237         * c-common.c: Ditto.
1238         * c-convert.c: Ditto.
1239         * c-decl.c: Ditto.
1240         * c-format.c: Ditto.
1241         * c-semantics.c: Ditto.
1242         * c-typeck.c: Ditto.
1243         * caller-save.c: Ditto.
1244         * calls.c: Ditto.
1245         * cfg.c: Ditto.
1246         * cfgbuild.c: Ditto.
1247         * cfgrtl.c: Ditto.
1248         * collect2.c: Ditto.
1249         * combine.c: Ditto.
1250         * convert.c: Ditto.
1251         * cppexp.c: Ditto.
1252         * cppfiles.c: Ditto.
1253         * cse.c: Ditto.
1254         * dbxout.c: Ditto.
1255         * defaults.h: Ditto.
1256         * df.c: Ditto.
1257         * dwarf2out.c: Ditto.
1258         * dwarfout.c: Ditto.
1259         * emit-rtl.c: Ditto.
1260         * explow.c: Ditto.
1261         * expmed.c: Ditto.
1262         * expr.c: Ditto.
1263         * final.c: Ditto.
1264         * fix-header.c: Ditto.
1265         * floatlib.c: Ditto.
1266         * flow.c: Ditto.
1267         * fold-const.c: Ditto.
1268         * function.c: Ditto.
1269         * gcc.c: Ditto.
1270         * gcse.c: Ditto.
1271         * gen-protos.c: Ditto.
1272         * genattrtab.c: Ditto.
1273         * gencheck.c: Ditto.
1274         * genconfig.c: Ditto.
1275         * genemit.c: Ditto.
1276         * genextract.c: Ditto.
1277         * genflags.c: Ditto.
1278         * gengenrtl.c: Ditto.
1279         * genoutput.c: Ditto.
1280         * genpeep.c: Ditto.
1281         * genrecog.c: Ditto.
1282         * gensupport.c: Ditto.
1283         * global.c: Ditto.
1284         * gmon.c: Ditto.
1285         * graph.c: Ditto.
1286         * haifa-sched.c: Ditto.
1287         * hard-reg-set.h: Ditto.
1288         * hash.c: Ditto.
1289         * integrate.c: Ditto.
1290         * jump.c: Ditto.
1291         * lists.c: Ditto.
1292         * local-alloc.c: Ditto.
1293         * loop.c: Ditto.
1294         * mips-tdump.c: Ditto.
1295         * mips-tfile.c: Ditto.
1296         * optabs.c: Ditto.
1297         * prefix.c: Ditto.
1298         * print-rtl.c: Ditto.
1299         * read-rtl.c: Ditto.
1300         * real.c: Ditto.
1301         * recog.c: Ditto.
1302         * reg-stack.c: Ditto.
1303         * regclass.c: Ditto.
1304         * regmove.c: Ditto.
1305         * reload.c: Ditto.
1306         * reload1.c: Ditto.
1307         * reorg.c: Ditto.
1308         * resource.c: Ditto.
1309         * rtl.c: Ditto.
1310         * rtlanal.c: Ditto.
1311         * scan.c: Ditto.
1312         * sched-deps.c: Ditto.
1313         * sched-rgn.c: Ditto.
1314         * sdbout.c: Ditto.
1315         * simplify-rtx.c: Ditto.
1316         * stmt.c: Ditto.
1317         * stor-layout.c: Ditto.
1318         * toplev.c: Ditto.
1319         * tradcif.y: Ditto.
1320         * tradcpp.c: Ditto.
1321         * tree.c: Ditto.
1322         * unroll.c: Ditto.
1323         * varasm.c: Ditto.
1324         * xcoffout.c: Ditto.
1325
1326 2001-10-10  Richard Henderson  <rth@redhat.com>
1327
1328         * rtl.h (can_reverse_comparison_p): Remove.
1329
1330 2001-10-10  Christopher Faylor <cgf@redhat.com>
1331
1332         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
1333         used.
1334
1335 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1336
1337         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
1338         (Thanks to Chris Faylor for suggesting macro name).
1339         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
1340         WIN32 defines.
1341         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
1342         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
1343         (MATH_LIBRARY): Undef before definition.
1344         (OUTPUT_QUOTED_STRING): Likewise.
1345         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
1346
1347 2001-10-10  Richard Henderson  <rth@redhat.com>
1348
1349         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
1350         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
1351         a tristate comparison value.
1352         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
1353
1354 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1355
1356         PR c++/4512
1357         * unroll.c (loop_iterations): Ignore insns generated by loop
1358         unrolling.
1359
1360         * config.gcc (mips*-*-gnu*): Delete support.
1361         * config/mips/gnu.h: Remove.
1362
1363 2001-10-10  Kazu Hirata  <kazu@hxi.com>
1364
1365         * calls.c: Fix formatting.
1366         * c-decl.c: Likewise.
1367         * cfgcleanup.c: Likewise.
1368         * combine.c: Likewise.
1369         * cppfiles.c: Likewise.
1370         * cpplib.c: Likewise.
1371         * cppmacro.c: Likewise.
1372         * crtstuff.c: Likewise.
1373         * cse.c: Likewise.
1374         * dwarf2out.c: Likewise.
1375         * expmed.c: Likewise.
1376         * expr.c: Likewise.
1377         * fold-const.c: Likewise.
1378         * function.c: Likewise.
1379         * gcse.c: Likewise.
1380         * genattrtab.c: Likewise.
1381         * ggc-page.c: Likewise.
1382         * integrate.c: Likewise.
1383         * libgcc2.c: Likewise.
1384         * loop.c: Likewise.
1385         * optabs.c: Likewise.
1386         * profile.c: Likewise.
1387         * protoize.c: Likewise.
1388         * real.c: Likewise.
1389         * recog.c: Likewise.
1390         * reload1.c: Likewise.
1391         * reload.c: Likewise.
1392         * reorg.c: Likewise.
1393         * resource.c: Likewise.
1394         * sched-rgn.c: Likewise.
1395         * sdbout.c: Likewise.
1396         * stmt.c: Likewise.
1397         * toplev.c: Likewise.
1398         * varasm.c: Likewise.
1399
1400 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
1401
1402         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
1403         * Makefile.in (langhooks.o): Add dependencies.
1404
1405 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
1406
1407         * rs6000.c (rs6000_emit_load_toc_table): Don't
1408         strdup the toc label.
1409         (create_TOC_reference): Likewise.
1410
1411 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1412
1413         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
1414         version default.
1415
1416 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1417
1418         * config/i386/i386.c (ix86_attribute_table): Correct
1419         min_len, max_len fields for dllimport, dllexport and shared.
1420
1421 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1422
1423         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
1424         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
1425         Consistently use "nonzero" instead of "non-zero".
1426
1427 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1428
1429         * acconfig.h: Fix comment formatting.
1430         * c-dump.h: Likewise.
1431         * c-tree.h: Likewise.
1432         * conditions.h: Likewise.
1433         * expr.h: Likewise.
1434         * function.h: Likewise.
1435         * gthr.h: Likewise.
1436         * hwint.h: Likewise.
1437         * integrate.h: Likewise.
1438         * intl.h: Likewise.
1439         * loop.h: Likewise.
1440         * optabs.h: Likewise.
1441
1442 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1443
1444         * c-common.h: Fix comment formatting.
1445         * c-dump.c: Likewise.
1446         * cfg.c: Likewise.
1447         * diagnostic.h: Likewise.
1448         * except.c: Likewise.
1449         * gcc.h: Likewise.
1450         * gcov-io.h: Likewise.
1451         * genattrtab.c: Likewise.
1452         * output.h: Likewise.
1453         * predict.h: Likewise.
1454         * reload1.c: Likewise.
1455         * reload.h: Likewise.
1456         * resource.h: Likewise.
1457         * scan.h: Likewise.
1458         * system.h: Likewise.
1459         * tree.h: Likewise.
1460         * tree-inline.c: Likewise.
1461         * tsystem.h: Likewise.
1462         * varasm.c: Likewise.
1463         * xcoffout.h: Likewise.
1464
1465 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1466
1467         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
1468
1469 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1470
1471         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
1472         config/i386/i386elf.h, config/i386/netbsd-elf.h,
1473         config/i386/netware.h, config/mcore/gfloat.h,
1474         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
1475         config/netware.h, gccbug.in: Update FSF address.
1476
1477 2001-10-09  Kazu Hirata  <kazu@hxi.com>
1478
1479         * c-common.c: Fix comment typos.
1480         * cfgrtl.c: Likewise.
1481         * collect2.c: Likewise.
1482         * cpplex.c: Likewise.
1483         * doloop.c: Likewise.
1484         * dwarf2out.c: Likewise.
1485         * dwarfout.c: Likewise.
1486         * expr.c: Likewise.
1487         * fold-const.c: Likewise.
1488         * gcc.c: Likewise.
1489         * gcov.c: Likewise.
1490         * gcse.c: Likewise.
1491         * global.c: Likewise.
1492         * ifcvt.c: Likewise.
1493         * loop.c: Likewise.
1494         * optabs.c: Likewise.
1495         * protoize.c: Likewise.
1496         * regclass.c: Likewise.
1497         * reorg.c: Likewise.
1498         * rtl.h: Likewise.
1499         * stmt.c: Likewise.
1500         * tree.h: Likewise.
1501         * doc/cpp.texi: Likewise.
1502         * doc/c-tree.texi: Likewise.
1503         * doc/extend.texi: Likewise.
1504         * doc/invoke.texi: Likewise.
1505         * doc/objc.texi: Likewise.
1506         * doc/tm.texi: Likewise.
1507
1508 2001-10-08  Richard Henderson  <rth@redhat.com>
1509
1510         * varasm.c (set_named_section_flags): Initialize "declared".
1511
1512 2001-10-08  Robert Lipe  <robertlipe@usa.net>
1513
1514         * varasm.c (struct in_named_entry): Add declared.
1515         (named_section_first_declaration): New function.
1516         (default_elf_asm_named_section): Use it.
1517         * output.h (named_section_first_declaration): New.
1518
1519 2001-10-08  Richard Henderson  <rth@redhat.com>
1520
1521         * i386.md (movsi_xor): Export.
1522         (setcc peep2): Use it when available; add an alternative to
1523         match zero_extendhisi2_and.
1524
1525 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1526
1527         * romp-protos.h (romp_initialize_trampoline): New function.
1528         * romp.c (romp_initialize_trampoline): Likewise.
1529         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
1530         romp_initialize_trampoline.
1531
1532 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1533
1534         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
1535         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1536         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1537         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1538
1539 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1540
1541         * unroll.c (loop_iterations): Extend check for multiple back edges.
1542
1543 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
1544
1545         * langhooks.h: New file.
1546         * Makefile.in (OBJS): Added langhooks.o.
1547         (c-lang.o): Depend on langhooks.h.
1548         (c-common.o): Don't depend on tree-inline.h.
1549         (tree-inline.o): Depend on toplev.h.
1550         (langhooks.o): New rule.
1551         * c-common.c: Don't include tree-inline.h.
1552         (c_mark_lang_decl): Mark argument c as unused.
1553         (c_common_lang_init): Don't initialize hooks here.
1554         * c-lang.c: Include langhooks.h, then override some macros.
1555         (lang_hooks): Initialize with macros in langhooks.h.
1556         (c_init): Don't initialize hooks here.
1557         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
1558         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
1559         * tree-inline.c: Include toplev.h.  Don't define hook variables.
1560         * tree-inline.h: Don't define hook types nor declare hook
1561         variables.  Move macros to...
1562         * langhooks.c: ... new file, as functions.  Adjust all callers.
1563
1564 2001-10-08  Jeffrey A Law  <law@cygnus.com>
1565
1566         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
1567         purge_mem_unchanging_flag on all instructions, not just on those
1568         before NOTE_INSN_FUNCTION_BEG.
1569
1570 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1571
1572         * cppmacro.c (_cpp_create_definition): Leave comments off.
1573
1574         * doc/cpp.texi: Update.
1575
1576 2001-10-08  DJ Delorie  <dj@redhat.com>
1577
1578         * c-decl.c (grokfield): Make sure the only unnamed fields
1579         we're allowing are either structs or unions.
1580         * doc/extend.texi: Add documentation for the unnamed field
1581         extension.
1582
1583 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
1584
1585         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
1586         * configure.in: Use it.
1587         * configure: Regenerated.
1588         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
1589         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
1590
1591 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1592
1593         * cppfiles.c (open_file): Don't mark zero-length files
1594         never-reread here.  Don't output diagnostics here either.
1595         (stack_include_file): Mark them never-reread here.
1596         (_cpp_read_file): Update.
1597
1598 2001-10-08  Richard Henderson  <rth@redhat.com>
1599
1600         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1601
1602 2001-10-08  Richard Henderson  <rth@redhat.com>
1603
1604         * expr.c (store_expr): When converting a CONST_INT for storage
1605         in a SUBREG, convert it to both SUBREG modes before stripping
1606         the SUBREG.
1607
1608 2001-10-08  Richard Henderson  <rth@redhat.com>
1609
1610         * varasm.c (restore_varasm_status): New.
1611         * function.h: Declare it.
1612         * function.c (pop_function_context_from): Call it.
1613
1614 2001-10-08  Richard Henderson  <rth@redhat.com>
1615
1616         * c-common.h (struct c_lang_decl): Add declared_inline.
1617         * c-tree.h (DECL_DECLARED_INLINE_P): New.
1618         * c-lang.c (c_disregard_inline_limits): Use it.
1619         * c-decl.c (duplicate_decls): Likewise.
1620         (pushdecl, redeclaration_error_message): Likewise.
1621         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
1622         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
1623         Set DECL_INLINE if -finline-functions.
1624         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
1625
1626 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1627
1628         * cppmacro.c (funlike_invocation_p): Move some logic to caller
1629         in enter_macro_context.  Create a padding token in its own context
1630         if necessary when the search for '(' fails.
1631         (enter_macro_context): Update.
1632
1633 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1634
1635         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
1636         genmultilib, toplev.c: Fix spelling errors of "separate" as
1637         "seperate", and corresponding spelling errors of related words.
1638
1639 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1640
1641         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
1642         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
1643         Likewise.
1644         * c-dump.c (dump_option_value_info): Likewise.
1645         * c-format.c (format_length_info, format_char_info,
1646         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
1647         * collect2.c (names): Likewise.
1648         * cppdefault.h (default_include): Likewise.
1649         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
1650         * flow.c (life_analysis): Likewise.
1651         * gcc.c (dir_separator_str, modify_target, option_map,
1652         target_option_translations, spec_list_1, extra_specs_1,
1653         init_spec): Likewise.
1654         * gcov.c (gcov_version_string): Likewise.
1655         * genattr.c (write_units): Likewise.
1656         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
1657         * gengenrtl.c (rtx_definition, defs): Likewise.
1658         * genrecog.c (pred_table): Likewise.
1659         * global.c (global_alloc): Likewise.
1660         * lcm.c (optimize_mode_switching): Likewise.
1661         * local-alloc.c (find_free_reg): Likewise.
1662         * params.h (param_info): Likewise.
1663         * predict.c (predictor_info): Likewise.
1664         * protoize.c (unexpansion_struct): Likewise.
1665         * real.c (bmask): Likewise.
1666         * recog.h (insn_operand_data, insn_data): Likewise.
1667         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
1668         * stmt.c (expand_nl_goto_receiver): Likewise.
1669         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
1670         target_switches, target_options): Likewise.
1671         * tradcif.y (token, tokentab2, yylex): Likewise.
1672         * tree.h (attribute_spec): Likewise.
1673
1674         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
1675         Likewise.
1676         * arc.c (arc_output_function_epilogue): Likewise.
1677         * arm.c (processors, all_cores, all_architectures,
1678         arm_override_options, isr_attribute_arg, isr_attribute_args,
1679         arm_isr_value): Likewise.
1680         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
1681         Likewise.
1682         * c4x.c (c4x_int_reglist): Likewise.
1683         * d30v.c (override_options): Likewise.
1684         * h8300.c (shift_insn): Likewise.
1685         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
1686         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
1687         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
1688         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
1689         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
1690         * i386.h (processor_costs, ix86_cost): Likewise.
1691         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
1692         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
1693         * m68k.c (codes_68881, codes_FPA): Likewise.
1694         * m88k.c (mode_from_align, max_from_align, all_from_align,
1695         best_from_align, m_options): Likewise.
1696         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
1697         * mcore.c (mode_from_align): Likewise.
1698         * mips/elf64.h (UNIQUE_SECTION): Likewise.
1699         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
1700         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
1701         * mips.h (mips_regno_to_class): Likewise.
1702         * ns32k.c (scales): Likewise.
1703         * pa.c (import_string, magic_milli): Likewise.
1704         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
1705         * sparc.c (leaf_reg_remap, sparc_override_options,
1706         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
1707         Likewise.
1708         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
1709
1710 2001-10-07  Dale Johannesen  <dalej@apple.com>
1711
1712         * reload1.c (reload_reg_free_p): Teach register interference
1713         checking that multiple output reloads are emitted in
1714         reverse order.
1715         reload1.c (reload_reg_reaches_end_p):  Ditto.
1716         reload1.c (reloads_conflict):  Ditto.
1717
1718 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1719
1720         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
1721         NULL_TREE inside @code.
1722
1723 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1724
1725         * doc/gcc.texi: Document consistent style of "32-bit",
1726         "Objective-C", and "@code{NULL}".
1727
1728 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1729
1730         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
1731         (cpp_token_len, cpp_spell_token, cpp_output_token,
1732         _cpp_equiv_tokens): Handle it.
1733         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
1734         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
1735         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
1736         error messages.
1737
1738 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1739
1740         * gcc.c (default_compilers): Remove .ada.
1741
1742 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1743
1744         * doc/cppinternals.texi: Update.
1745
1746 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
1747
1748         * gcc.c (main): Set this_file_error if the appropriate
1749         compiler for a language has not been installed.
1750
1751 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1752
1753         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
1754
1755 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1756
1757         * gccbug.in (CATEGORIES): Add ada.
1758
1759 2001-10-05  Catherine Moore  <clm@redhat.com>
1760
1761         * config/stormy16/stormy-abi:  Document abi changes.
1762         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
1763         (ICALL_REGS): New register class.
1764         (NUM_ARGUMENT_REGISTERS): Now 6.
1765         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
1766         in registers.
1767         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
1768         * config/stormy16.md (call_internal, call_value_internal,
1769         indirect_jump): Use new 'z' constraint.
1770
1771 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1772
1773         * doc/cppinternals.texi: Update.
1774
1775 2001-10-05  Richard Henderson  <rth@redhat.com>
1776
1777         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
1778         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
1779         the gas section-name-as-label feature.
1780
1781 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1782
1783         * doc/cppinternals.texi: Update.
1784
1785 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1786
1787         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
1788         to ensure valid SImode constants.
1789
1790 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
1791
1792         * Makefile.in (c-decl.o): Depend on tree-inline.h.
1793         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
1794         * c-decl.c: Include tree-inline.h.
1795         (c_expand_body): Call optimize_inline_calls. Determine whether
1796         a function is inlinable upfront, and only clear
1797         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
1798         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
1799         (c_disregard_inline_limits): New function.
1800         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
1801         (c_post_options): Enable tree inlining if inlining is enabled.
1802         Don't inline trees when instrumenting functions.
1803         (c_init): Initialize lang_disregard_inline_limits and
1804         lang_cannot_inline_tree_fn.
1805         * tree-inline.c (initialize_inlined_parameters): Handle calls
1806         with fewer arguments than declared parameters, and fewer
1807         parameters than passed arguments.  Don't assume value is a
1808         DECL.
1809         (declare_return_variable): Convert return value back to the
1810         original type, if it was promoted.
1811         (tree_inlinable_function_p): New function.
1812         (inlinable_function_p): Don't look at DECL_INLINE if we're
1813         inlining all functions.  Make it work with a NULL id.
1814         Re-check DECL_UNINLINABLE after language-specific checks.
1815         * tree-inline.h (tree_inlinable_function_p): Declare it.
1816         * integrate.c (save_for_inline): Don't bother to prepare argvec
1817         when not inlining.
1818         * cse.c (check_for_label_ref): Don't check deleted labels.
1819
1820         * Makefile.in (tree-inline.o): Depend on newly-included headers.
1821         * tree-inline.c: Include headers needed for the functions moved in.
1822         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
1823         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
1824         (copy_body, initialize_inlined_parameters): Likewise.
1825         (declare_return_variable, inlinable_function_p): Likewise.
1826         (expand_call_inline, expand_calls_inline): Likewise.
1827         (optimize_inline_calls, clone_body): Likewise.
1828         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
1829         (copy_tree_r, remap_save_expr): Likewise.
1830
1831 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
1832
1833         * Makefile.in (OBJS): Added tree-inline.o.
1834         (c-common.o): Depend on tree-inline.h.
1835         (tree-inline.o): New target.
1836         * c-common.c: Include tree-inline.h.
1837         (c_mark_lang_decl): Don't mark saved_tree.
1838         (c_common_lang_init): Set lang_anon_aggr_type_p.
1839         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
1840         (struct c_lang_decl): Moved saved_tree to tree_decl.
1841         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
1842         * integrate.h (function_attribute_inlinable_p): Declare it.
1843         * integrate.c (function_attribute_inlinable_p): Export it.
1844         * tree-inline.c: New file.  Define variables declared in...
1845         * tree-inline.h: New file.  Declare functions to be moved to
1846         tree-inline.c.  Define macros and declare types and hooks for
1847         language-specific tree inlining.
1848         (flag_inline_trees): Moved definition from cp/decl2.c.
1849         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
1850         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
1851         (struct tree_decl): Moved saved_tree from c_lang_decl and
1852         inlined_fns from C++'s lang_decl.
1853
1854 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
1855
1856         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
1857         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
1858
1859 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1860
1861         * doc/cppinternals.texi: Update.
1862
1863 2001-10-04  Eric Christopher  <echristo@redhat.com>
1864
1865         * config/mips/mips.c (init_cumulative_args): Remember to set
1866         cum->prototype.
1867         * config.gcc: Redo linux configuration. Add target_cpu_default
1868         of soft-float to all mipsisa32 combinations and tx39.
1869         * config/mips/linux.h: Remove include of mips.h.
1870
1871 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
1872
1873         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
1874         HOST_LDFLAGS and HOST_CPPFLAGS.
1875
1876 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
1877
1878         * c-parse.in (objc_inherit_code, objc_pq_context,
1879         objc_public_flag): Make static.
1880         (objc_interface_context, objc_implementation_context,
1881         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
1882         global tree array in objc/objc-act.[ch].
1883         (methoddef): Remove unnecessary code.
1884
1885         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
1886         Hoist struct definitions to objc-act.h.
1887         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
1888         cat_count): Place declaration in objc-act.h.
1889         (objc_tree_index): Move enumeration to objc-act.h.
1890         (objc_global_trees): Place declaration and macro accessors in
1891         objc-act.h.
1892         (implementation_context): Remove duplicate; use
1893         objc_implementation_context instead:
1894         (method_context): Remove duplicate; use objc_method_context
1895         instead.
1896         (objc_ellipsis_node, objc_method_prototype_template,
1897         implemented_classes, function_type): Move global vars to
1898         objc_global_trees.
1899         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
1900         (build_message_expr): Move actual construction of ObjC message
1901         send nodes to finish_message_expr.
1902         (finish_message_expr): New routine, contains code formerly in
1903         build_message_expr.
1904         * objc/objc-act.h (finish_message_expr): New prototype.
1905         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
1906         declarations; these vars are now part of objc_global_trees.
1907         (objc_tree_index, objc_global_trees): Move definitions from
1908         objc-act.c.
1909         * objc/objc-tree.def: Update copyright info.
1910
1911 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
1912
1913         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
1914         op is NULL.
1915         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
1916         only if TARGET_ARCH64.
1917
1918 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
1919
1920         * doc/extend.texi: Fix some problems with previous checkin.
1921         * doc/invoke.texi: Likewise.
1922
1923 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1924
1925         * cpphash.h: Update comments.
1926         (cpp_context): Update.
1927         (spec_nodes): Remove n__Pragma.
1928         * cppinit.c (cpp_create_reader): Update.
1929         (builtin_array): Add _Pragma.
1930         * cpplib.h: Update comments.
1931         (NODE_DISABLED, BT_PRAGMA): New.
1932         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
1933         * cppmacro.c (struct cpp_macro): Remove disabled.
1934         (builtin_macro): Return int, handle _Pragma, push the new token
1935         on the context stack.
1936         (funlike_invocation_p): Unconstify, update.
1937         (enter_macro_context): Handle builtins here.
1938         (replace_args, push_token_context, push_ptoken_context):
1939         Update for prototype changes.
1940         (_cpp_pop_context): Update.
1941         (cpp_get_token): Don't handle buitins, nor _Pragma here.
1942         (cpp_sys_macro_p): Update.
1943         (_cpp_free_definition): Clear disabled flag.
1944         (_cpp_create_definition): Upate.
1945         * cppmain.c: Update comments.
1946
1947 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
1948                                 Andreas Jaeger <aj@suse.de>,
1949                                 Jan Hubicka    <jh@suse.cz>
1950
1951         * doc/invoke.texi (i386 Options): Document x86-64 options.
1952         (i386 and x86-64 Options): Rename i386 options section.
1953
1954         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
1955         (TARGET_SWITCHES): Add -munwind-info.
1956         (MASK_NO_UNWIND_INFO): New.
1957         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
1958         biarch compilation.
1959         (ASM_OUTPUT_DOUBLE_INT): New.
1960
1961         * config/i386/linux64.h: New spec file for Linux x86-64 support.
1962         * config.gcc: Fix tm_file settings for x86-64.
1963         * config/i386/x86-64.h: New file with OS independent x86-64
1964         definitions.
1965         * config/i386/biarch64.h: New file used to configure compiler
1966         to biarch/64bit compilation.
1967
1968         * config/i386/i386.c: (override_options): Set flags default
1969         for 64bit compilation.
1970
1971 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1972
1973         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
1974         (ix86_expand_int_movcc): Optimize DImode conditional moves with
1975         constants on x86_64.
1976         (ix86_attr_length_immediate_default): Support MODE_DI.
1977         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
1978         condition.
1979         (indirect_jump, tablejump): Turn into expander.
1980
1981 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1982
1983         * c-common.c (c_format_attribute_table): Make format and
1984         format_arg attributes apply to function types rather than to
1985         decls.
1986         (is_valid_printf_arglist): Construct an attribute list and pass
1987         that to check_function_format rather than a name.
1988         * c-common.h (check_function_format): Adjust prototype.
1989         * c-decl.c (duplicate_decls): Preserve attributes from type of
1990         built-in decl when allowing for harmless conflict in types.
1991         * c-format.c (record_function_format,
1992         record_international_format, function_format_list,
1993         international_format_info, international_format_list): Remove.
1994         (function_format_info): Remove next, name and assembler_name.
1995         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
1996         (decode_format_attr): New.
1997         (handle_format_attribute): Handle receiving a type rather than a
1998         decl.  Call decode_format_attr.  Store format information in a
1999         function_format_info.
2000         (handle_format_arg_attribute): Correct comment.  Handle receiving
2001         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
2002         arg_num.
2003         (check_format_info_recurse, check_format_info_main): Take argument
2004         numbers as unsigned HOST_WIDE_INT.
2005         (check_function_format): Take a list of attributes from the
2006         function type rather than a name or assembler name.  Check for
2007         format attributes in that list and the attributes on the type of
2008         the current function rather than looking through
2009         function_format_list.
2010         (check_format_info): Use unsigned HOST_WIDE_INT for argument
2011         numbers.
2012         (check_format_info_recurse): Take format_arg attributes from the
2013         type of the function calls rather than using
2014         international_format_list.  Allow for multiple format_arg
2015         attributes.
2016         * c-typeck.c (build_function_call): Pass type attributes to
2017         check_function_format rather than name or assembler name.  Don't
2018         require there to be a name or assembler name to check formats.
2019
2020 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2021
2022         * attribs.c (decl_attributes): Possibly call
2023         insert_default_attributes to insert default attributes on
2024         functions in a lazy manner.
2025         * builtin-attrs.def: New file; define the default format and
2026         format_arg attributes.
2027         * c-common.c (c_format_attribute_table): Move to earlier in the
2028         file.
2029         (c_common_nodes_and_builtins): Initialize format_attribute_table.
2030         (enum built_in_attribute, built_in_attributes,
2031         c_attrs_initialized, c_init_attributes,
2032         c_common_insert_default_attributes): New.
2033         (c_common_lang_init): Don't initialize format_attribute_table.  Do
2034         call c_init_attributes.
2035         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
2036         * c-common.h (init_function_format_info): Don't declare.
2037         (c_common_insert_default_attributes): Declare.
2038         * c-decl.c (implicitly_declare, builtin_function): Call
2039         decl_attributes.
2040         (init_decl_processing): Don't call init_function_format_info.
2041         (insert_default_attributes): New.
2042         * c-format.c (handle_format_attribute,
2043         handle_format_arg_attribute): Be quiet about inappropriate
2044         declaration when applying default attributes.
2045         (init_function_format_info): Remove.
2046         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
2047         (insert_default_attributes): Declare.
2048
2049 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2050
2051         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
2052
2053 2001-10-01  Jim Wilson  <wilson@redhat.com>
2054
2055         * sched-deps.c (add_dependence): When elide conditional dependence,
2056         check that insn doesn't modify cond2.
2057
2058 2001-10-01  Dale Johannesen  <dalej@apple.com>
2059
2060         * config/rs6000/rs6000.h (enum processor_type): Add support
2061         for 7400 (G4) and 7450.
2062         (RTX_COSTS): Ditto.
2063         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
2064         (rs6000_issue_rate): Ditto.
2065         (rs6000_adjust_cost): Fix cycle counts for compares.
2066         (debug_stack_info):  Fix an obvious typo.
2067         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
2068         * doc/invoke.texi: Document.
2069         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
2070         for Darwin.
2071         (PROCESSOR_DEFAULT): Ditto.
2072
2073 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
2074
2075         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
2076         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
2077         later recursive make invocation.
2078
2079 2001-10-01  Hans Boehm  <boehm@acm.org>
2080
2081         * optabs.c (emit_libcall_block): When using non-call exceptions,
2082         don't add REG_LIBCALL reg notes to trapping calls.
2083
2084 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2085
2086         * flow.c (propagate_block_delete_libcall): Remove unused first arg
2087         (propagate_one_insn):  Update for above change
2088
2089 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
2090
2091         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
2092         _Unwind_GetTextRelBase): Argument is unused.
2093
2094 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2095
2096         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
2097         Loop through NOPs, placeholders, and components.
2098         Don't go through NOPs if change mode.
2099         (record_alias_subset): Do nothing if SUBSET and SET are the same.
2100         * emit-rtl.c (set_mem_alias_set): Enable check.
2101         * expr.c (find_placeholder): New function.
2102         (expand_expr, case PLACEHOLDER_EXPR): Use it.
2103         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
2104         to modify it and avoid unneeded copies.
2105         * expr.h (expand_expr): Always define.
2106         (find_placeholder): New declaration.
2107
2108 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2109
2110         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
2111         operand 2 is the stack pointer.
2112         ("addr-peephole"): Fix address computation peephole when operand 2
2113         is the stack pointer.
2114
2115 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2116
2117         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
2118         (ix86_setup_incoming_varargs): Likewise.
2119
2120 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
2121
2122         * stor-layout.c (layout_type): Don't complain about too-large
2123         array here.
2124
2125 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2126
2127         * function.c (keep_stack_depressed): Don't use delete_insn.
2128
2129         * expr.h (set_mem_alias_set): Move decl to here.
2130         * rtl.h (mem_attrs): New typedef and struct.
2131         (union rtunion_def): Add field for mem_attrs.
2132         (X0MEMATTR, MEM_ATTRS): New macros.
2133         (MEM_ALIAS_SET): Use MEM_ATTRS.
2134         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
2135         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
2136         (set_mem_alias_set): Delete decl from here.
2137
2138         * alias.c (set_mem_alias_set): Delete from here.
2139         * emit-rtl.c (mem_attrs_htab): New variable.
2140         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
2141         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
2142         (mem_attrs_mark, get_mem_attrs): Likewise.
2143         (gen_rtx_MEM): Clear MEM_ATTRS.
2144         (set_mem_attributes): Move to here.
2145         (set_mem_alias_set): Likewise, and call get_mem_attrs.
2146         (init_emit_once): const_int_htab now deletable htab.
2147         Initialize mem_attrs_htab.
2148         * explow.c (set_mem_attributes): Delete from here.
2149         * function.c (put_var_into_stack): Clear MEM_ATTRS.
2150         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
2151         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
2152         * reload1.c (reload): Rework changing REG to MEM.
2153
2154 2001-09-30  H.J. Lu <hjl@gnu.org>
2155
2156         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
2157         * config.in: Rebuild.
2158
2159 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2160
2161         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
2162         ("tsthi_1"): Avoid allocation in register y.
2163         ("*movqi_68hc12"): Reorganize and fix constraints.
2164         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
2165         ("addqi3"): Likewise.
2166         ("addhi3"): Fix constraints.
2167         ("*logicalhi3_zexthi"): Disparage soft registers.
2168
2169 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2170
2171         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
2172         to tmp reg.
2173
2174 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2175
2176         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
2177         that we use setjmp/longjmp exceptions.
2178
2179 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2180
2181         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
2182         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
2183         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2184         _cpp_pool_alloc, _cpp_next_chunk): Remove.
2185         (_cpp_extend_buff, BUFF_ROOM): Update.
2186         (_cpp_append_extend_buff): New.
2187         (struct cpp_reader): Remove macro_pool, add a_buff.
2188         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
2189         macro_pool.
2190         (cpp_destroy): Free a_buff instead of macro_pool.
2191         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
2192         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
2193         _cpp_pool_alloc, ): Remove.
2194         (parse_number, parse_string): Update use of _cpp_extend_buff.
2195         (_cpp_extend_buff): Update.
2196         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
2197         * cpplib.c (glue_header_name, parse_answer):
2198         Update use of _cpp_extend_buff.
2199         (cpp_register_pragma, cpp_register_pragma_space): Use
2200         _cpp_aligned_alloc.
2201         (do_assert, do_unassert): Check for EOL, update.
2202         * cppmacro.c (stringify_arg, collect_args): Update to use
2203         _cpp_extend_buff and _cpp_append_extend_buff.
2204         (save_parameter, parse_params, alloc_expansion_token,
2205         _cpp_create_definition): Rework memory management.
2206
2207 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
2208
2209         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
2210         update md_exec_prefix.
2211         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
2212         to string constant.
2213
2214 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
2215
2216         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
2217         (SELECT_CC_MODE): Use s390_select_ccmode.
2218         * config/s390/s390-protos.h (s390_select_ccmode): Add.
2219         * config/s390/s390.c (s390_select_ccmode): New.
2220         (s390_match_ccmode): Add CCLmode.
2221         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
2222         (output_branch_condition, output_inverse_branch_condition): Removed.
2223         (print_operand): Use s390_branch_condition_mnemonic.
2224         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
2225         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
2226         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
2227
2228         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
2229         when converting conditional branches to far branches.
2230         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
2231         cmpint_di): Use CCSmode instead of CCUmode.
2232
2233         * config/s390/s390.c (legitimate_la_operand_p): New.
2234         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
2235         * config/s390/s390.md (movsi): Convert load address patterns to
2236         arithmetic operations when necessary.
2237         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
2238         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
2239         (*do_la_reg_0): Don't use before reload.
2240
2241         * config/s390/s390.c (legitimize_address): Make more efficient
2242         use of two-register addressing mode.
2243
2244         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
2245         with -mno-backchain in some corner cases.
2246
2247         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
2248
2249 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
2250
2251         * reload.c (find_reloads): Mark new USE insns with QImode.
2252         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
2253         find_reloads_subreg_address): Likewise.
2254         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
2255         encountered.
2256         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
2257         CLOBBERs.
2258         (reload): Make sure there are no USEs with mode other than
2259         VOIDmode.  At the end, remove those marked with QImode.
2260
2261 2001-09-29  Per Bothner  <per@bothner.com>
2262
2263         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
2264         * Makefile.in (includedir):  Rename to local_includedir.
2265         (includedir):  Define as $(prefix)/include.
2266         * config.in (PREFIX_INCLUDE_DIR):  New variable.
2267         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
2268
2269 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
2270
2271         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
2272         storehps builtins.
2273         * doc/extend.texi (Vector Extensions): New node.
2274         * doc/invoke.texi (Machine Dependent Options): Add documentation for
2275         i386 -mmmx, -msse, -m3dnow.
2276
2277 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2278
2279         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
2280
2281 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2282
2283         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
2284
2285         * doc/invoke.texi (Optimize Options): Delete spurious @table.
2286
2287 2001-09-28  Richard Henderson  <rth@redhat.com>
2288
2289         * varasm.c (assemble_integer): Bound alignment check by
2290         BIGGEST_ALIGNMENT.
2291
2292         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
2293
2294 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2295
2296         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
2297
2298 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2299
2300         Mostly from Graham Stott  <grahams@redhat.com>
2301         * c-common.c (type_for_mode): Add support for V2SFmode.
2302         * tree.c (build_common_tree_nodes_2): Likewise.
2303         * tree.h (enum tree_index, global_trees): Likewise.
2304         * config/i386/i386.c (x86_3dnow_a): New variable.
2305         (override_options): Support 3Dnow extensions.
2306         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
2307         Athlon's version of 3Dnow.
2308         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
2309         (ix86_expand_builtin): Handle them.
2310         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
2311         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
2312         TARGET_3DNOW_A): New macros.
2313         (TARGET_SWITCHES): Add 3Dnow switches.
2314         (VALID_MMX_REG_MODE_3DNOW): New macro.
2315         (VECTOR_MODE_SUPPORTED_P): Use it.
2316         (enum ix86_builtins): Add entries for 3Dnow builtins.
2317         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
2318         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
2319         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
2320         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
2321         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
2322         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
2323         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
2324         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
2325         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
2326         sfence_insn, prefetch): Make these available if TARGET_SSE or
2327         TARGET_3DNOW_A.
2328
2329 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
2330
2331         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
2332         ix86_va_start, ix86_build_va_list): Declare.
2333         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
2334         ix86_va_start, ix86_build_va_list): New global functions.
2335         * i386.md (sse_prologue_save_insn): New insn.
2336         (sse_prologue_save): New expander.
2337         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
2338         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
2339
2340 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2341
2342         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
2343         Use size_t everywhere, make definitions consistent with
2344         prototypes.
2345
2346 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
2347
2348         * gcse.c (replace_store_insn): Use delete_insn.
2349         * loop.c (move_movables): Likewise; avoid delete_insn
2350         from clobbering notes moved elsewhere.
2351         (check_dbra_loop): Use delete_insn.
2352         * ssa.c (convert_from_ssa): Likewise.
2353         * cse.c (cse_insn): Use delete_insn.
2354
2355 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2356
2357         * cpphash.h (struct cpp_buff): Make unsigned.
2358         (_cpp_get_buff): Take length of size_t.
2359         (_cpp_unaligned_alloc): New.
2360         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
2361         (struct cpp_reader): Remove ident_pool.  Add u_buff.
2362         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
2363         (cpp_destroy): Destroy u_buff, not ident_pool.
2364         * cpplex.c (parse_number, parse_string, save_comment,
2365         cpp_token_as_text): Update to use the unaligned buffer.
2366         (new_buff): Make unsigned.
2367         (_cpp_unaligned_alloc): New.
2368         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
2369         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
2370         Similarly.
2371         (collect_args): Make unsigned.
2372
2373 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
2374
2375         * cpplex.c (cpp_output_token): Use a putc loop for
2376         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
2377
2378         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
2379         * configure, config.in: Regenerate.
2380         * system.h: Replace fwrite and fprintf with their unlocked
2381         variants if available.
2382
2383 2001-09-27  Richard Henderson  <rth@redhat.com>
2384
2385         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
2386         in favour of .eh_frame.
2387
2388 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
2389
2390         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
2391         to macros.
2392         (LIBCALL_VALUE): Likewise.
2393
2394 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2395
2396         * cpphash.h: Update comment.
2397         * cpplex.c: Update comments.
2398         (_cpp_can_paste): Remove.
2399         * cpplib.h (_cpp_can_paste): Remove.
2400         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
2401         lexer rather than _cpp_can_paste.
2402
2403 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2404
2405         * doc/cppinternals.texi: Update.
2406
2407 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2408
2409         * cpphash.h (struct cpp_pool): Remove locks and locked.
2410         (struct cpp_context): Add member buff.
2411         (struct cpp_reader): Remove member argument_pool.
2412         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2413         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
2414         * cpplex.c (chunk_suitable): Remove pool argument.
2415         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
2416         (new_buff, _cpp_extend_buff): Update.
2417         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
2418         which buffer is returned.
2419         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
2420         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
2421         * cppmacro.c (lock_pools, unlock_pools): Remove.
2422         (push_ptoken_context): Take a _cpp_buff.
2423         (enter_macro_context): Pool locking removed.
2424         (replace_args): Use a _cpp_buff for the replacement list with
2425         arguments replaced.
2426         (push_token_context): Clear buff.
2427         (expand_arg): Use _cpp_pop_context.
2428         (_cpp_pop_context): Free a context's buffer, if any.
2429
2430 2001-09-26  DJ Delorie  <dj@redhat.com>
2431
2432         * c-typeck.c (digest_init): Check for sizeless arrays.
2433
2434 2001-09-26  Richard Henderson  <rth@redhat.com>
2435
2436         * optabs.c (init_one_libfunc): Create a dummy function type
2437         instead of using error_mark_node.
2438
2439 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2440
2441         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
2442         _cpp_extend_buff, _cpp_free_buff): New.
2443         (struct cpp_reader): New member free_buffs.
2444         * cppinit.c (cpp_destroy): Free buffers.
2445         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
2446         _cpp_extend_buff, _cpp_free_buff): New.
2447         * cpplib.h (struct cpp_options): Remove unused member.
2448         * cppmacro.c (collect_args): New.  Combines the old parse_arg
2449         and parse_args.  Use _cpp_buff for memory allocation.
2450         (funlike_invocation_p, replace_args): Update.
2451
2452 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
2453
2454         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
2455
2456 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
2457
2458         * except.c (sjlj_mark_call_sites): Change address inside sequence.
2459
2460 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2461
2462         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
2463         glibc.
2464
2465 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
2466             Jim Wilson  <wilson@redhat.com>
2467
2468         * doc/install.texi (Specific, ia64-*-linux): Document.
2469
2470 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2471
2472         * Makefile.in (cfgrtl.o): Add.
2473         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2474         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2475         free_aux_for_edge): Declare.
2476         * cfg.c
2477         (HAVE_return): Undefine.
2478         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
2479         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
2480         free_aux_for_edge): New global functions.
2481         (first_delete_block): New static variable.
2482         (init_flow): Clear first_delete_block.
2483         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
2484          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
2485          try_redirect_by_replacing_jump, last_loop_beg_note,
2486          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
2487          delete_insn, delete_insn_chain, create_basic_block_structure,
2488          create_basic_block, flow_delete_block, compute_bb_for_insn,
2489          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
2490          set_block_for_new_insns, split_block, merge_blocks_nomove,
2491          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
2492          redirect_edge_and_branch, force_nonfallthru_and_redirect,
2493          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
2494          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
2495          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
2496          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2497          purge_all_dead_edges): Move to ....
2498         * cfgrtl.c: New file; .... Here.
2499
2500         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
2501         (reroder_basic_block): Use alloc_aux_for_blocks.
2502         * predict.c (estimate_bb_frequencies): Likewise; use
2503         alloc_aux_for_edges.
2504         * profile.c (compute_branch_probabilities): Likewise.
2505         (branch_prob): Likewise.
2506         * reg-stack.c (reg_to_stack): Likewise.
2507
2508         * emit-rtl.c (emit_insns_after): Never return NULL.
2509
2510         * basic-block.h (set_block_for_new_insns): Delete.
2511         * cfgrtl.c (set_block_for_new_insns): Delete.
2512
2513         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
2514         calls when crossjumping.
2515
2516         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
2517         * unroll.c (copy_loop_body): Use delete_insn.
2518
2519         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
2520         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
2521         keep_stack_depressed): Likewise.
2522         * gcse.c (cprop_cc0_jump): Likewise.
2523         * local-alloc.c (update_equiv_regs): Likewise.
2524         * loop.c (scan_loop, loop_delete_insns): Likewise.
2525         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
2526         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
2527         delete_output_reload, delete_address_reloads_1,
2528         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
2529         Likewise.
2530         * sibcall.c (replace_call_placeholder): Likewise.
2531         * cse.c (cse_insn): Likewise.
2532
2533 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
2534
2535         From Graham Stott  <grahams@redhat.com>
2536         (def_builtin): Only define builtins appropriate for target_flags.  All
2537         callers changed.
2538         (builtin_decsription): Add new field mask which is used to determine
2539         when to define the builtin via the macro def_builtin.
2540
2541         (bdesc_comi): Initialise new mask fields.
2542         (bdesc_2srg): Likewise.
2543         (bdesc_1arg): Likewise.
2544
2545         * config/i386/i386.c (ix86_init_builtins): Correct return type
2546         building v4hi_ftype_v4hi_int_int tree node.
2547         (ix86_expand_sse_comi): Fix typo swapping operands.
2548         Don't swap comparision condition, it is already swapped.
2549         (ix86_expand_sse_compare): Before swapping operands
2550         move operand 1 into new rtx and not the target rtx.
2551         Don't swap comparison condition, it is already swapped.
2552         Always check whether we need to create a new TARGET.
2553
2554         * config/i386/i386.md: (sse_comi) Fix typos.
2555         (sse_ucomi): Likewise.
2556         (cvtss2si): Fix operand 0 contraint.
2557         (cvttss2si): Likewise.
2558         (sse_unpckhps): Fix mode for operand 2.
2559         (sse_unpcklps): Likewise.
2560
2561 2001-09-25  Graham Stott  <grahams@redhat.com>
2562
2563         * sibcall.c (skip_copy_to_return_value): Tighten return value
2564         copy check.
2565
2566 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
2567
2568         * rs6000.c (lwa_operand): Address must be word aligned.
2569
2570 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2571
2572         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
2573         number has been set.
2574         (type_hash_mark): Mark type itself.
2575
2576 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2577
2578         * c-lex.c (cb_def_pragma): Update.
2579         (c_lex): Update, and skip padding.
2580         * cppexp.c (lex, parse_defined): Update, remove unused variable.
2581         * cpphash.h (struct toklist): Delete.
2582         (union utoken): New.
2583         (struct cpp_context): Update.
2584         (struct cpp_reader): New members eof, avoid_paste.
2585         (_cpp_temp_token): New.
2586         * cppinit.c (cpp_create_reader): Update.
2587         * cpplex.c (_cpp_temp_token): New.
2588         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
2589         (cpp_output_token): Don't print leading whitespace.
2590         (cpp_output_line): Update.
2591         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
2592         do_include_common, do_line, do_ident, do_pragma,
2593         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
2594         parse_assertion): Update.
2595         (get_token_no_padding): New.
2596         * cpplib.h (CPP_PADDING): New.
2597         (AVOID_LPASTE): Delete.
2598         (struct cpp_token): New union member source.
2599         (cpp_get_token): Update.
2600         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
2601         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
2602         replace_args, quote_string, stringify_arg, parse_arg, next_context,
2603         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
2604         _cpp_backup_tokens, _cpp_create_definition): Update.
2605         (push_arg_context): Delete.
2606         (padding_token, push_token_context, push_ptoken_context): New.
2607         (make_string_token, make_number_token): Update, rename.
2608         (cpp_get_token): Update to handle tokens as pointers to const,
2609         and insert padding appropriately.
2610         * cppmain.c (struct printer): New member prev.
2611         (check_multiline_token): Constify.
2612         (do_preprocessing, cb_line_change): Update.
2613         (scan_translation_unit): Update to handle spacing.
2614         * scan-decls.c (get_a_token): New.
2615         (skip_to_closing_brace, scan_decls): Update.
2616         * fix-header.c (read_scan_file): Update.
2617
2618         * doc/cpp.texi: Update.
2619
2620 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2621
2622         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
2623         leak by passing malloc'ed pointer to reconcat, not concat.
2624
2625 2001-09-24  DJ Delorie  <dj@redhat.com>
2626
2627         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
2628
2629 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
2630
2631         * flow.c (delete_dead_jumptables): Delete jumptable if the only
2632         reference is from the literal pool.
2633
2634 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
2635
2636         * doc/install.texi (Final install): Request additional information
2637         in mail about successful builds.
2638
2639 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2640
2641         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
2642         initial value of return pointer register instead of value in frame-20.
2643         Revise comments.
2644
2645 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2646
2647         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
2648         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
2649         the libcall if there isn't a referenced identifier for the symbol.
2650
2651 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2652
2653         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
2654         non 64-bit machines.  Use these as a plabel for the trampoline.
2655         (TRAMPOLINE_SIZE): Adjust size for new words.
2656         (INITIALIZE_TRAMPOLINE): Initialize new words.
2657         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
2658         pointer to the plabel in the trampoline.
2659
2660 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2661
2662         * pa.c (function_arg): Pass floating arguments in both general and
2663         floating registers in indirect (dynamic) calls when generating code
2664         for the 32 bit ABI and the HP assembler.
2665
2666 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2667
2668         * doc/install.texi: Markup fixes.
2669         Use Solaris 2, SunOS 4 as appropriate.
2670         (Specific, *-*-solaris2*): Explain this.
2671         Unconditionally warn against /usr/ucb tools.
2672         Remove Sun as warning, obsolete.
2673         Move X11 header bug workaround here, update patches.
2674         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
2675         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
2676
2677 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
2678
2679         * errors.h (warning, error, fatal, internal_error): Don't mark
2680         with ATTRIBUTE_PRINTF_n.
2681         * toplev.h (internal_error, fatal_io_error, warning, error,
2682         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
2683         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
2684         Likewise.
2685
2686 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2687
2688         * function.c (pop_function_context_from): var_refs_queue
2689         and temp slots now in GC memory.
2690         (mark_function_status, free_after_compilation): Likewise;
2691         also struct function now in GC memory.
2692         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
2693         (combine_temp_slots): Likewise.
2694         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
2695         (prepare_function_start): Use GC memory for struct function.
2696         (mark_temp_slot): Deleted.
2697         (gcc_mark_struct_function): struct function now in GC memory.
2698
2699         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
2700         code for division, not modulus.
2701
2702         * rtl.def (MEM): Remove obsolete part of comment.
2703
2704 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
2705
2706         * c-format.c (init_function_format_info): Check __builtin_printf
2707         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
2708         in gnu89 mode.
2709
2710 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2711
2712         * c-common.c (format_attribute_table): Remove decl.
2713         * tree.h (format_attribute_table, lang_attribute_table): New decls.
2714         (lang_attribute_common): Likewise.
2715
2716         * function.c (fix_lexical_address): Use set_mem_alias_set.
2717         (expand_function_start): Likewise.
2718         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
2719
2720         * varasm.c (output_constant): Fix unused variable warning.
2721
2722         * attribs.c: New file, from c-common.c.
2723         (attribute_tables): Now four elements.
2724         (format_attribute_table, lang_attribute_common): New variables.
2725         (init_attributes): Reflect above changes.
2726         (handle_mode_attribute): Delete check for wider than uintmax.
2727         * c-common.c: Delete parts moved to attribs.c.
2728         (enum attrs): Deleted; unused.
2729         (c_format_attribute_table): New variable.
2730         (c_common_lang_init): Initialize format_attribute_table with it.
2731         * c-common.h (decl_attributes): Remove decl.
2732         * tree.h (decl_attribute): Move it to here.
2733         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
2734         (attribs.o): New rule.
2735
2736 2001-09-22  Andreas Jaeger  <aj@suse.de>
2737
2738         * builtins.c (c_getstr): Remove unused variable.
2739
2740 2001-09-21  Richard Henderson  <rth@redhat.com>
2741
2742         * reload1.c (reload): Use delete_insn instead of splatting
2743         NOTE_INSN_DELETED.
2744
2745 2001-09-21  Richard Henderson  <rth@redhat.com>
2746
2747         * reload.c (push_secondary_reload): Don't check for "=" in output
2748         constraint after ""->ALL_REGS check.
2749
2750 2001-09-21  Richard Henderson  <rth@redhat.com>
2751
2752         * predict.c (expected_value_to_br_prob): Use pc_set.
2753
2754         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
2755         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
2756
2757 2001-09-21  Richard Henderson  <rth@redhat.com>
2758
2759         * rtl.h (LCT_RETURNS_TWICE): New.
2760         * calls.c (emit_call_1): Set current_function_calls_setjmp for
2761         ECF_RETURNS_TWICE.
2762         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
2763         to ECF_RETURNS_TWICE.
2764         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
2765         call to setjmp.
2766
2767         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
2768
2769         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
2770         (JMP_BUF_SIZE): New.
2771
2772 2001-09-21  Richard Henderson  <rth@redhat.com>
2773
2774         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
2775         to R8_REGS.
2776
2777 2001-09-21  Richard Henderson  <rth@redhat.com>
2778
2779         * tree.def (FDESC_EXPR): New.
2780         * expr.c (expand_expr): Handle it.
2781         * varasm.c (initializer_constant_valid_p): Likewise.
2782         (output_constant): Likewise.
2783         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2784         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
2785         (ASM_OUTPUT_FDESC): New.
2786         * doc/tm.texi: Document the new macros.
2787
2788 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2789
2790         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
2791         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
2792         once merging is complete.
2793
2794 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2795
2796         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
2797
2798 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
2799
2800         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
2801         that would be invalid after a merge.
2802
2803 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
2804
2805         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
2806         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
2807         remove some labels.
2808         (flow_delete_insn): This one.
2809         (delete_insn_chain): Rename from ...; do not care labels.
2810         (flow_delete_insn_chain): ... this one.
2811         (flow_delete_block): Remove the insns one BB has been expunged.
2812         (merge_blocks_nomove): Likewise.
2813         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
2814         updating BB boundaries.
2815         (tidy_fallthru_edge): Likewise.
2816         (commit_one_edge_insertion): Likewise.
2817         * cfgbuild.c (find_basic_block): Likewise.
2818         (find_basic_blocks_1): Likewise.
2819         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
2820         (try_crossjump_to_edge): Likewise.
2821         (try_optimize_cfg): Likewise.
2822         * cse.c (delete_trivially_dead_insns): Likewise.
2823         * df.c (df_insn_delete): Likewise.
2824         * doloop.c (doloop_modify): Use delete_related_insns.
2825         * emit-rtl.c (try_split): Likewise.
2826         (remove_insn): Update BB boundaries.
2827         * expect.c (connect_post_landing_pads): Use delete_related_insns.
2828         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
2829         updating BB boundaries.
2830         (propagate_block_delete_insn): Likewise.
2831         (propagate_block_delete_libcall): Likewise.
2832         * function.c (delete_handlers): Use delete_related_insns.
2833         (thread_prologue_and_epilogue_insns): Likewise.
2834         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
2835         * genpeep.c (gen_peephole): Use delete_related_insns.
2836         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
2837         BB boundaries.
2838         (find_cond_trap): Likewise.
2839         * integrate.c (save_for_inline): Use delete_related_insns.
2840         (copy_insn_list): Likewise.
2841         * jump.c (pruge_linie_number_notes): Likewise.
2842         (duplicate_loop_exit_test): Likewise.
2843         (delete_computation): Likewise.
2844         (delete_related_insn): Rename from ...; use delete_insn
2845         (delete_insn): ... this one.
2846         (redirect_jump): Use delete_related_insns.
2847         * loop.c (scan_loop): Likewise.
2848         (move_movables): Likewise.
2849         (find_and_verify_loops): Likewise.
2850         (check_dbra_loop): Likewise.
2851         * recog.c (peephole2_optimize): Likewise.
2852         * reg-stack.c (delete_insn_for_stacker): Remove.
2853         (move_for_stack_reg): Use delete_insn.
2854         * regmove.c (combine_stack_adjustments_for_block): Likewise.
2855         * reload1.c (delete_address_reloads): Use delete_related_insns.
2856         (fixup_abnormal_edges): Use delete_insn.
2857         * recog.c (emit_delay_sequence): Use delete_related_insns.
2858         (delete_from-delay_slot): Likewise.
2859         (delete_scheduled_jump): likewise.
2860         (optimize_skip): Likewise.
2861         (try_merge_delay_insns): Likewise.
2862         (full_simple_delay_slots): Likewise.
2863         (fill_slots_from_thread): Likewise.
2864         (relax_delay_slots): Likewise.
2865         (make_return_insns): Likewise.
2866         (dbr_schedule): Likewise.
2867         * rtl.h (delete_insn): Rename to delete_related_insns.
2868         (delete_insn, delete_insn_chain): New prototypes.
2869         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
2870         by df_insn_delete already.
2871         * ssa-dce.c (delete_insn_bb): Use delete_insn.
2872         * ssa.c (convert_from_ssa): Use delete_related_insns.
2873         * unroll.c (unroll_loop): Likewise.
2874         (calculate_giv_inc): Likewise.
2875         (copy_loop_body): Likewise.
2876
2877         * i386-protos.h (ix86_libcall_value, ix86_function_value,
2878         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2879         ix86_return_in_memory, ix86_function_value): Declare.
2880         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
2881         new static valurables.
2882         (x86_64_reg_class): New enum
2883         (x86_64_reg_class_name): New array.
2884         (classify_argument, examine_argument, construct_container,
2885          merge_classes): New static functions.
2886         (optimization_options): Enable flag_omit_frame_pointer and disable
2887         flag_pcc_struct_return on 64bit.
2888         (ix86_libcall_value, ix86_function_value,
2889         ix86_function_arg_regno_p, ix86_function_arg_boundary,
2890         ix86_return_in_memory, ix86_function_value): New global functions.
2891         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
2892         (function_arg_advance): Handle x86_64 passing conventions.
2893         (function_arg): Likewise.
2894         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
2895         (RETURN_IN_MEMORY): Move offline.
2896         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
2897         (FUNCTION_VALUE_REGNO_P): New macro.
2898         (FUNCTION_ARG_REGNO_P): Move offline.
2899         (struct ix86_args): Add maybe_vaarg.
2900         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
2901         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
2902
2903 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
2904
2905         * s390.md: Changed attributes for scheduling.
2906         * s390.c: (s390_adjust_cost, s390_adjust_priority)
2907         Changed scheduling
2908
2909 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2910
2911         Table-driven attributes.
2912         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
2913         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
2914         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
2915         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
2916         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
2917         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
2918         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
2919         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
2920         * tree.h (struct tree_decl): Change machine_attributes to
2921         attributes.
2922         * doc/c-tree.texi: Document that all attributes are now attached
2923         to decls and types.
2924         * c-common.c (add_attribute, attrtab, attrtab_idx,
2925         default_valid_lang_attribute, valid_lang_attribute): Remove.
2926         (attribute_tables, attributes_initialized,
2927         c_common_attribute_table, default_lang_attribute_table): New
2928         variables.
2929         (handle_packed_attribute, handle_nocommon_attribute,
2930         handle_common_attribute, handle_noreturn_attribute,
2931         handle_unused_attribute, handle_const_attribute,
2932         handle_transparent_union_attribute, handle_constructor_attribute,
2933         handle_destructor_attribute, handle_mode_attribute,
2934         handle_section_attribute, handle_aligned_attribute,
2935         handle_weak_attribute, handle_alias_attribute,
2936         handle_no_instrument_function_attribute,
2937         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
2938         handle_no_limit_stack_attribute, handle_pure_attribute): New
2939         functions.
2940         (init_attributes, decl_attributes): Rewrite to implement
2941         table-driven attributes.
2942         * c-common.h (enum attribute_flags): Move to tree.h.
2943         * c-format.c (decl_handle_format_attribute,
2944         decl_handle_format_arg_attribute): Rename to
2945         handle_format_attribute and handle_format_arg_attribute.  Update
2946         for table-driven attributes.
2947         * c-common.h (decl_handle_format_attribute,
2948         decl_handle_format_arg_attribute): Remove prototypes.
2949         (handle_format_attribute, handle_format_arg_attribute): Add
2950         prototypes.
2951         * c-decl.c (grokdeclarator): Handle attributes nested inside
2952         declarators.
2953         * c-parse.in (setattrs, maybe_setattrs): Remove.
2954         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
2955         Update to handle nested attributes properly.
2956         (maybe_resetattrs, after_type_declarator,
2957         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
2958         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
2959         properly.
2960         (make_pointer_declarator): Update to handle nested attributes
2961         properly.
2962         * doc/extend.texi: Update documentation of limits of attributes
2963         syntax.  Warn about problems with attribute semantics in C++.
2964         * target.h (struct target): Remove valid_decl_attribute and
2965         valid_type_attribute.  Add attribute_table and
2966         function_attribute_inlinable_p.
2967         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
2968         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
2969         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
2970         Add.
2971         (TARGET_INITIALIZER): Update.
2972         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
2973         definition.
2974         (function_attribute_inlinable_p): New function.  Check for the
2975         presence of any machine attributes before using
2976         targetm.function_attribute_inlinable_p.
2977         (function_cannot_inline_p): Update.
2978         * Makefile.in (integrate.o): Update dependencies.
2979         * doc/tm.texi: Update documentation of target attributes and
2980         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
2981         * tree.c (default_valid_attribute_p, valid_machine_attribute):
2982         Remove.
2983         (default_target_attribute_table,
2984         default_function_attribute_inlinable_p): New.
2985         (lookup_attribute): Update comment to clarify handling of multiple
2986         attributes with the same name.
2987         (merge_attributes, attribute_list_contained): Allow multiple
2988         attributes with the same name but different arguments to appear in
2989         the same attribute list.
2990         * tree.h (default_valid_attribute_p): Remove prototype.
2991         (struct attribute_spec): New.
2992         (default_target_attribute_table): Declare.
2993         (enum attribute_flags): Move from c-common.h.  Add
2994         ATTR_FLAG_TYPE_IN_PLACE.
2995         (default_function_attribute_inlinable_p): Declare.
2996         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
2997         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
2998         (TARGET_ATTRIBUTE_TABLE): Define.
2999         (vms_attribute_table): New.
3000         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
3001         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3002         (TARGET_ATTRIBUTE_TABLE): Define.
3003         (arc_attribute_table, arc_handle_interrupt_attribute): New.
3004         * config/arm/arm.c (arm_valid_type_attribute_p,
3005         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
3006         Remove.
3007         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
3008         define.
3009         (TARGET_ATTRIBUTE_TABLE): Define.
3010         (arm_attribute_table, arm_handle_fndecl_attribute,
3011         arm_handle_isr_attribute): New.
3012         * config/avr/avr.c (avr_valid_type_attribute,
3013         avr_valid_decl_attribute): Remove.
3014         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
3015         define.
3016         (TARGET_ATTRIBUTE_TABLE): Define.
3017         (avr_attribute_table, avr_handle_progmem_attribute,
3018         avr_handle_fndecl_attribute): New.
3019         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
3020         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3021         (TARGET_ATTRIBUTE_TABLE): Define.
3022         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
3023         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
3024         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3025         (TARGET_ATTRIBUTE_TABLE): Define.
3026         (h8300_attribute_table, h8300_handle_fndecl_attribute,
3027         h8300_handle_eightbit_data_attribute,
3028         h8300_handle_tiny_data_attribute): New.
3029         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
3030         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
3031         Remove prototypes.
3032         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
3033         declarations.
3034         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
3035         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
3036         define.
3037         (TARGET_ATTRIBUTE_TABLE): Define.
3038         (ix86_attribute_table, ix86_handle_cdecl_attribute,
3039         ix86_handle_regparm_attribute): New.
3040         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
3041         i386_pe_valid_type_attribute_p): Remove.
3042         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
3043         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
3044         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3045         (TARGET_ATTRIBUTE_TABLE): Define.
3046         (ia64_attribute_table): New.
3047         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
3048         interrupt_ident2, model_ident1, model_ident2): Remove.
3049         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3050         (TARGET_ATTRIBUTE_TABLE): Define.
3051         (init_idents): Update.
3052         (m32r_attribute_table, m32r_handle_model_attribute): New.
3053         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
3054         Remove.
3055         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3056         (TARGET_ATTRIBUTE_TABLE): Define.
3057         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
3058         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
3059         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3060         (TARGET_ATTRIBUTE_TABLE): Define.
3061         (mcore_attribute_table, mcore_handle_naked_attribute): New.
3062         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
3063         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3064         (TARGET_ATTRIBUTE_TABLE): Define.
3065         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
3066         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
3067         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
3068         (TARGET_ATTRIBUTE_TABLE): Define.
3069         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
3070         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
3071         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3072         (TARGET_ATTRIBUTE_TABLE): Define.
3073         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
3074         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
3075         New.
3076         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
3077         Remove.
3078         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
3079         (TARGET_ATTRIBUTE_TABLE): Define.
3080         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
3081         New.
3082         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
3083         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
3084         (TARGET_ATTRIBUTE_TABLE): Define.
3085         (v850_attribute_table, v850_handle_interrupt_attribute,
3086         v850_handle_data_area_attribute): New.
3087         * config/v850/v850-c.c (mark_current_function_as_interrupt):
3088         Return void.  Call decl_attributes instead of
3089         valid_machine_attribute.
3090
3091 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
3092
3093         * sh-protos.h (sh_pr_n_sets): Declare.
3094         * sh.c (calc_live_regs): If the initial value for PR has been copied,
3095         look at the copy to determine if PR needs to be saved.
3096         sh_pr_n_sets: New function.
3097         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
3098         (ALLOCATE_INITIAL_VALUE): Define.
3099
3100         * sh.c (initial_elimination_offset):
3101         Fix RETURN_ADDRESS_POINTER_REGNUM case.
3102
3103 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
3104
3105         * integrate.c (allocate_initial_values): New function.
3106         * integrate.h (allocate_initial_values): Declare.
3107         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
3108         here...
3109         * reload1.c (reload): And initialization of reg_equiv_memory_loc
3110         from here...
3111         * toplev.c (rest_of_compilation): To here.
3112         Call allocate_initial_values.
3113         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
3114
3115 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3116
3117         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
3118
3119 2001-09-20  DJ Delorie  <dj@redhat.com>
3120
3121         * c-typeck.c (really_start_incremental_init): Discriminate
3122         between zero-length arrays and flexible arrays.
3123         (push_init_level): Detect zero-length arrays and handle them
3124         like fixed-sized arrays.
3125         * expr.c (store_constructor): Handle zero-length arrays and
3126         flexible arrays correctly.
3127         * doc/extend.texi: Update zero-length array notes.
3128
3129 2001-09-20  Jim Wilson  <wilson@redhat.com>
3130
3131         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
3132         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
3133         for issue port conflicts.
3134         (cycle_end_fill_slots): TYPE_L instructions take two slots.
3135
3136 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
3137
3138         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
3139         on ia64.
3140
3141 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3142
3143         * fold-const.c (hashtab.h): Include.
3144         (int_const_binop): Remove FORSIZE arg and compute from type; all
3145         callers changed.
3146         Call size_int_type_wide for all single-word constants.
3147         (size_htab_hash, size_htab_eq): New functions.
3148         (size_int_type_wide): Rework to use hash table.
3149         * ggc-common.c (hashtab.h): Include.
3150         (struct d_htab_root): New struct.
3151         (d_htab_roots): New variable.
3152         (ggc_add_deletable_htab, ggc_htab_delete): New functions
3153         (ggc_mark_roots): Handle deletable htabs.
3154         * ggc-page.c (ggc_marked_p): New function.
3155         * ggc-simple.c (ggc_marked_p): Likewise.
3156         * ggc.h: Reformatting throughout.
3157         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
3158         * tree.c (init_obstacks): Make type_hash_table a deletable root.
3159         (type_hash_add): Allocate struct type_hash from GC memory.
3160         (mark_hash_entry, mark_type_hash): Deleted.
3161         (type_hash_marked_p, type_hash_mark): New functions.
3162         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
3163
3164 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
3165
3166         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
3167         than SImode.
3168
3169 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3170
3171         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
3172         array-too-large test for signed sizetype.
3173
3174 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3175
3176         * i386.md (indirect_jump): Allow Pmode operand.
3177         (tablejump): LIkewise; perform expansion to 64bit mode.
3178         * i386.c (symbolic_operand): Allow 64bit PIC references.
3179         (pic_symbolic_operand): Likewise.
3180         (ix86_find_base_term): Strip the 64bit PIC references.
3181         (legitimate_pic_address_disp_p): Handle 64bit PIC.
3182         (legitimize_pic_address): Likewise.
3183         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
3184         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
3185
3186 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
3187
3188         * stringpool.c (get_identifier_with_length): New function.
3189         * tree.h (get_identifier_with_length): New prototype.
3190
3191 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
3192             David Edelsohn  <edelsohn@gnu.org>
3193
3194         Revert:
3195         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
3196         already sign-extended.
3197
3198         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
3199         * config/rs6000/rs6000.c (logical_operand): Always compare op as
3200         HOST_WIDE_INT.
3201         (rs6000_emit_set_long_const): Avoid unnecessary shift.
3202         (output_profile_hook): Declare label_name const.
3203         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
3204         to match constraints.
3205
3206 2001-09-19  Stan Shebs  <shebs@apple.com>
3207
3208         * alias.c: Fix typos in comments.
3209         * sched-rgn.c (init_ready_list): Ditto.
3210         * unwind-dw2.c (uw_frame_state_for): Ditto.
3211         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
3212         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
3213         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
3214
3215 2001-09-19  Richard Henderson  <rth@redhat.com>
3216
3217         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
3218         to the exit block.
3219         * Makefile.in (cfg.o): Depend on TM_P_H.
3220
3221 2001-09-19  Richard Henderson  <rth@redhat.com>
3222
3223         * config/alpha/alpha.c (local_symbol_p): Split out from ...
3224         (local_symbolic_operand): ... here.
3225         (small_symbolic_operand): Check mode.
3226         (global_symbolic_operand): New.
3227         (input_operand): Reject symbolics if explicit relocs.
3228         (call_operand): Tidy.
3229         (alpha_legitimize_address): Use movdi_er_high_g.
3230         (alpha_expand_mov): Likewise.
3231         * config/alpha/alpha-protos.h: Update.
3232         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3233         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
3234         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
3235         (UNSPECV_LDGP2): Remove.
3236         (all call patterns): Use 's' not 'i' for symbolic constraint.
3237         (call_osf call_value_osf): Use call_operand.
3238         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
3239         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
3240         (prologue_ldgp_1_er): Remove.
3241         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
3242         (builtin_setjmp_receiver_er patterns): Use them.
3243         (exception_receiver_er): Likewise.
3244
3245 2001-09-19  Richard Henderson  <rth@redhat.com>
3246
3247         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
3248
3249         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
3250         and NON_LOCAL_GOTO notes.
3251         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
3252         copy over CALL_INSN_FUNCTION_USAGE.
3253
3254 2001-09-18  Catherine Moore  <clm@redhat.com>
3255
3256         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
3257         Define as 0.
3258
3259 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
3260
3261         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
3262         new-style tm_file specification.  Specify correct tm_p_file,
3263         md_file, and out_file for s390x.
3264
3265         * config/s390/linux.h, linux64.h:  Don't include other target
3266         macro header files.  Now handled via tm_file.
3267
3268         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
3269         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
3270         are defined before use.
3271
3272 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
3273
3274         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
3275         code generation only for Gnu assembler.
3276
3277 2001-09-18  Catherine Moore  <clm@redhat.com>
3278
3279         * config/stormy16 (LIB_SPEC): Remove -lnosys.
3280
3281 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
3282
3283         * config/mips/mips.c (mips_frame_set): New.
3284         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
3285         a parallel frame-related expression with a set for each register.
3286
3287 2001-09-18  Philip Blundell  <philb@gnu.org>
3288
3289         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
3290         header files.
3291
3292 2001-09-17  Dale Johannesen  <dalej@apple.com>
3293
3294         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
3295         * config/rs6000/aix.h (FIXED_R2): Define.
3296         * config/rs6000/darwin.h (FIXED_R2): Define.
3297         * config/rs6000/sysv4.h (FIXED_R2): Define.
3298
3299 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
3300
3301         * except.c (dw2_build_landing_pads): New local
3302         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
3303         barrier after clobbers.  Fixes c++/4012.
3304
3305 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3306
3307         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
3308
3309 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
3310
3311         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
3312         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
3313
3314 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3315
3316         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
3317         alloca/strcpy.
3318
3319 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3320
3321         * cpphash.h (_cpp_lex_direct): New.
3322         * cpplex.c (_cpp_lex_token): Update.
3323         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
3324         and increment that pointer.
3325         * cppmacro.c (alloc_expansion_token): New.
3326         (lex_expansion_token): Lex macro expansion directly into
3327         macro storage.
3328
3329 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
3330
3331         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
3332
3333 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
3334
3335         * basic-block.h (free_bb_for_insn): Declare.
3336         * bb-reorder.c (label_for_bb): Use block_label.
3337         (emit_jump_to_block_after): Remove.
3338         (insert_intra_1): Do not update block_for_insn.
3339         (insert_inter_bb_scope_notes): Likewise; update bb->end
3340         * cfg.c (free_bb_for_insn): New.
3341         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
3342         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
3343         (commit_one_edge_insertion): Likewise.
3344         (commit_one_edge_insertion): Do not update BB boundary.
3345         (commit_edge_insertions): Do not call compute_bb_for_insn.
3346         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
3347         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
3348         (merge_blocks_move_successor_nojumps): Likewise.
3349         (try_crossjump_to_edge): Do not update block_for_insn.
3350         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
3351         * df.c (df_pattern_emit_later): Do not update BB boundary.
3352         (df_jump_pattern_emit_after): Likewise.
3353         (df_insn_move_before): Use emit_insn_before.
3354         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
3355          properly.
3356         (add_insn_after, add_insn_before, emit_insns_after): Update BB
3357         boundaries and basic_block_for_insn.
3358         (reorder_insns_nobb): Rename from reorder_insns.
3359         (reorder_insns): New.
3360         (emit_block_insn_before, emit_block_insn_after): Kill.
3361         * flow.c (check_function_return_warnings): Do not call
3362         compute_bb_for_insn; Do not free basic_block_for_insn.
3363         (attempt_auto_inc): Do not update basic_block_for_insn.
3364         * function.c (emit_return_into_block): Likewise;
3365         do not update BB boundaries.
3366         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
3367         (insert_insn_end_bb): Use emit_insn_before; Likewise.
3368         (pre_insert_copy_insn): Likewise.
3369         (update_ld_motion_notes): Likewise.
3370         (insert_insn_start_bb): Likewise.
3371         (replace_store_insn): Likewise.
3372         * ifcvt.c (noce_process_if_block): Likewise.
3373         (if_convert): Do not call compute_bb_for_insn.
3374         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
3375         Use emit_insn_before and emit_insn_after.
3376         * recog.c (split_all_insns): Do not update BB boundaries;
3377         Do not call compute_bb_for_insn.
3378         (peephole2_optimize): Do not update BB boundaries.
3379         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
3380         emit_insn_before.
3381         (emit_swap_insn): Likewise.
3382         (convert_regs_1): Likewise.
3383         * reload1.c (reload): Call compute_bb_for_insn.
3384         * rtl.h (reorder_insns_nobb): Declare.
3385         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
3386         * toplev.c (rest_of_compilation): Call free_bb_for_insn
3387         at places CFG is invalidated; do not call compute_bb_for_insn.
3388
3389         * cfg.c (expunge_block): Invalidate BB structure.
3390
3391         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
3392         array.
3393
3394         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
3395
3396 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3397
3398         * cpphash.h (_cpp_lex_token): Update prototype.
3399         * cpplex.c (_cpp_lex_token): New prototype.
3400         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
3401         lex_macro_node, read_flag, do_pragma_poison): Update.
3402         * cppmacro.c (cpp_get_token, parse_params,
3403         lex_expansion_token): Update.
3404
3405 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3406
3407         * cppmain.c (scan_translation_unit): Don't worry about
3408         putting a space after hashes.
3409         * cpplib.c (directive_diagnostics): New.
3410         (_cpp_handle_directive): Update to use directive_diagnostics.
3411         (run_directive): Don't toggle prevent_expansion.
3412         (do_line): Backup in case of the line extension.
3413         * cpplib.h (cpp_lexer_pos): Remove.
3414         * cppmacro.c (_cpp_create_definition): Precede a leading #
3415         with whitespace.
3416
3417 2001-09-15  Richard Henderson  <rth@redhat.com>
3418
3419         * c-typeck.c (comptypes): Handle zero-length arrays properly.
3420
3421 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3422
3423         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
3424
3425 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3426
3427         PR preprocessor/3571
3428         * tradcpp.c (handle_directive): Skip non-vertical space.
3429
3430 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3431
3432         * cppmain.c (setup_callbacks): Set line callback only
3433         if outputting preprocessed source.
3434
3435 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3436
3437         * collect2.c (main): Const-ification.
3438         * gcc.c (translate_options, process_command): Use xstrdup in
3439         lieu of xmalloc/strcpy.
3440         (main): Use concat in lieu of xmalloc/strcpy/strcat.
3441
3442 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3443
3444         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
3445         example.
3446
3447 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3448
3449         * scan-decls.c (scan_decls): Fix typo.
3450
3451 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3452
3453         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
3454         Split mlstring_pos into mls_line and mls_col.
3455         * cppinit.c (cpp_create_reader): Initialize line to 1.
3456         (cpp_destroy): Free tokenruns.
3457         (push_include): Don't update lexer_pos.
3458         * cpplex.c (unterminated, parse_string): Update.
3459         (lex_token): Don't update lexer_pos, update.
3460         * cpplib.c (if_stack): Save line instead of line + col.
3461         (start_directive, _cpp_do__Pragma, do_else, do_elif,
3462         push_conditional, _cpp_pop_buffer): Update.
3463         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
3464         (_cpp_create_definition): Update.
3465
3466 2001-09-15  Eric Christopher  <echristo@redhat.com>
3467
3468         * config/mips/abi64.h: Add support for MEABI.
3469
3470 2001-09-15  Eric Christopher  <echristo@redhat.com>
3471
3472         * config/mips/mips.md: Add unspec #2.
3473         (reload_indi): Use.
3474         (reload_outdi): Ditto.
3475         (reload_outsi): Ditto.
3476         (HILO_delay): New.
3477
3478 2001-09-15  Eric Christopher  <echristo@redhat.com>
3479             Jason Eckhardt  <jle@redhat.com>
3480
3481         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
3482         * config/mips/isa32-linux.h: New file.
3483         * config/mips/isa3264.h: Ditto.
3484         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
3485         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
3486         (output_block_mode): Support MEABI.
3487         (function_arg): Ditto. Fix floating point arg passing.
3488         (mips_va_start): Ditto.
3489         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
3490         processors.
3491         (mips_asm_file_start): Add new section to pass abi to gdb.
3492         (function_arg_pass_by_reference): Support MEABI.
3493         (mips_parse_cpu): Support mips32 and mips64 processors.
3494         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
3495         TARGET_MIPS5KC.  Support isa32 and isa64.
3496         (processor_type): Add r4kc, r5kc, r20kc.
3497         (GENERATE_MULT3_SI): New.
3498         (GENERATE_MULT3_DI): Ditto.
3499         (GENERATE_MULT3): Remove.
3500         (ISA_HAS_64BIT_REGS): Add isa == 64.
3501         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
3502         (ISA_HAS_MADD_MSUB): New.
3503         (ISA_HAS_CLZ_CLO): Ditto.
3504         (ISA_HAS_DCLZ_DCLO): Ditto.
3505         (ABI_GAS_ASM_SPEC): New.
3506         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
3507         (ASM_SPEC): Ditto.
3508         (LINK_SPEC): Ditto.
3509         (SUBTARGET_CC1_SPEC): Ditto.
3510         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3511         (PAD_VARARGS_DOWN): Support MEABI.
3512         (HARD_REGNO_NREGS): Move to mips.c.
3513         (ASM_OUTPUT_IDENT): Add #undef.
3514         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
3515         (mulsi3): Use GENERATE_MULT3_SI.
3516         (mulsi3_mult3): Ditto.  Support mips32, mips64.
3517         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
3518         (mul_sub_si): New pattern.
3519         (unnamed splitters): New.
3520         (muldi3): Use GENERATE_MULT3_DI.
3521         (muldi3_internal2): Ditto.
3522         (movdicc): Support mips32.
3523         * config/mips/t-isa3264: New file.
3524
3525 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
3526
3527         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
3528         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
3529         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
3530
3531         * reorg.c (fill_slots_from_thread): After call to
3532         steal_delay_list_from_target, update own_thread as new_thread may
3533         have branched.
3534
3535 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3536
3537         * cpperror.c (print_location): Take line and column, for
3538         default positioning use the previously lexed token.
3539         (_cpp_begin_message): Take line and column.
3540         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3541         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
3542         * cpphash.h (_cpp_begin_message): Update prototype.
3543         * cppinit.c (push_include): Don't set output line.
3544         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
3545         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
3546         (do_pragma): Kludge for front ends.  Don't expand macros at all.
3547         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
3548         (struct cpp_token): Remove output_line.
3549         (struct cpp_callbacks): New member line_change.
3550         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
3551         cpp_get_token): Preserve BOL flag.
3552         (cpp_get_line): Remove.
3553         (_cpp_backup_tokens): Remove useless abort().
3554         * cppmain.c (cb_line_change): New.
3555         (scan_translation_unit): Don't worry about starting new lines here.
3556         * scan-decls.c (scan_decls): Update.
3557         * c-lex.c (c_lex, init_c_lex): Update.
3558         (cb_line_change, src_lineno): New.
3559
3560 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
3561
3562         * tree.c (append_random_chars): Generate the random
3563         characters in a reproducable fashion.
3564
3565 2001-09-14  Richard Henderson  <rth@redhat.com>
3566
3567         * config/i386/i386.c (internal_label_prefix): New.
3568         (internal_label_prefix_len): New.
3569         (override_options): Set them.
3570         (local_symbolic_operand): New.
3571         (legitimate_pic_address_disp_p): Use it.
3572         (legitimize_pic_address): Likewise.
3573
3574 2001-09-14  Marc Espie <espie@openbsd.org>
3575
3576         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
3577         correctly.
3578
3579 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3580
3581         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
3582         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
3583
3584 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
3585
3586         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
3587         invocation of SUBREG_REGNO_OFFSET.
3588
3589         * haifa-sched.c: Fix typo in FSF copyright statement.
3590         * sched-deps.c: Fix typo in FSF copyright statement.
3591         * sched-ebb.c: Fix typo in FSF copyright statement.
3592         * sched-rgn.c: Fix typo in FSF copyright statement.
3593         * sched-vis.c: Fix typo in FSF copyright statement.
3594
3595         * config.gcc: Move inclusion of arm elf specific header files
3596         from the files themselves into the tm_file variable.  Make
3597         sure that elfos.h is included before target specific elf
3598         headers.
3599         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
3600         already defined.
3601         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
3602         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
3603         ASM_OUTPUT_CASE_LABEL): Protect definition.
3604         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
3605         not already defined.
3606         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
3607         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
3608         Remove duplicate definition.
3609         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
3610         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
3611         (RDATA_SECTION_FUNCTION): Remove redundant definition.
3612         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
3613         Remove inclusion of arm/elf.h.
3614         * config/arm/unknown-elf.h: as for conix-elf.h.
3615         (STARTFILE_SPEC): Include crti.o and crtn.o.
3616         * config/arm/linux-elf.h: as for conix-elf.h.
3617         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
3618         * config/arm/strongarm-elf.h: Remove inclusion of
3619         unknown-elf.h.
3620         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
3621         * config/arm/unknown-elf-oabi.h: Remove inclusion of
3622         unknown-elf.h and elf.h.
3623         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
3624         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
3625         ASM_WEAKEN_LABEL): Remove redundant definition.
3626         * config/arm/elf.h: Test for inclusion of elfos.h
3627         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
3628         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
3629         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
3630         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
3631         redundant definition.
3632         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
3633         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
3634         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
3635         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
3636         Add rules to build crti.o and crtn.o
3637         * crti.asm: New file.
3638         * crtn.asm: New file.
3639
3640 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3641
3642         * c-parse.in (_yylex): Use _cpp_backup_tokens.
3643         * cpphash.h (struct tokenrun): Add prev.
3644         (struct lexer_state): Remove bol.
3645         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
3646         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
3647         : Remove.
3648         * cppinit.c (cpp_create_reader): Don't set bol.
3649         (cpp_destroy): Don't free lookaheads.
3650         * cpplex.c (lex_directive): Remove.
3651         (next_tokenrun): Update.
3652         (_cpp_lex_token): Clean up logic.
3653         (lex_token): Update to return a pointer to lexed token, since it
3654         can move to the start of the buffer.  Simpify newline handling.
3655         * cpplib.c (SEEN_EOL): Update.
3656         (skip_rest_of_line): Remove lookahead stuff.
3657         (end_directive): Line numbers are already incremented.  Revert
3658         to start of lexed token buffer if we can.
3659         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
3660         parse_answer): Use _cpp_backup_tokens.
3661         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
3662         instead.  Don't check for EOL.
3663         (do_include_common, do_line, do_pragma_system_header): Use
3664         skip_rest_of_line.
3665         * cpplib.h (BOL, _cpp_backup_tokens): New.
3666         * cppmacro.c (save_lookahead_token, take_lookahead_token,
3667         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
3668         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
3669         (builtin_macro): Don't use cpp_get_line.
3670         (cpp_get_line): Short term kludge.
3671         (parse_arg): Handle directives in arguments here.  Back up when
3672         appropriate.  Store EOF at end of argument list.
3673         (funlike_invocation_p): Use _cpp_backup_tokens.
3674         (push_arg_context): Account for EOF at end of list.
3675         (cpp_get_token): Remove lookahead stuff.  Update.
3676
3677 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3678
3679         * c-parse.in (yyerror): Const-ification and/or static-ization.
3680         * c-typeck.c (push_member_name): Likewise.
3681         * collect2.c (main): Likewise.
3682         * dbxout.c (dbxout_parms): Likewise.
3683         * diagnostic.c (format_with_decl): Likewise.
3684         * dwarf2out.c (output_ranges): Likewise.
3685         * dwarfout.c (fundamental_type_code): Likewise.
3686         * except.c (dw2_output_call_site_table): Likewise.
3687         * gcc.c (do_spec_1): Likewise.
3688         * genopinit.c (optabs): Likewise.
3689         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
3690         gen_declaration_1, handle_impent): Likewise.
3691         * protoize.c (default_include, in_system_include_dir, abspath):
3692         Likewise.
3693         * sched-vis.c (visualize_stall_cycles): Likewise.
3694         * sdbout.c (plain_type_1, sdbout_end_function,
3695         sdbout_end_epilogue): Likewise.
3696         * varasm.c (decode_reg_name): Likewise.
3697
3698         * 1750a.c (mod_regno_adjust): Likewise.
3699         * alpha.c (alpha_write_one_linkage,
3700         unicosmk_output_default_externs): Likewise.
3701         * arm.c (arm_condition_codes): Likewise.
3702         * arm.h (arm_condition_codes): Likewise.
3703         * avr.c (output_movsisf, encode_section_info): Likewise.
3704         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
3705         Likewise.
3706         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3707         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
3708         * m88k.c (output_function_profiler): Likewise.
3709         * mips.c (mips_output_conditional_branch): Likewise.
3710         * ns32k.c (ns32k_out_reg_names): Likewise.
3711         * ns32k.h (ns32k_out_reg_names): Likewise.
3712         * pj.c (pj_output_rval): Likewise.
3713         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
3714         * sparc.c (sparc_flat_function_prologue,
3715         sparc_flat_function_epilogue): Likewise.
3716
3717 2001-09-13  Markus Werle <numerical.simulation@web.de>
3718             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3719
3720         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
3721         Aachen University of Technology".
3722
3723 2001-09-13  Andreas Schwab  <schwab@suse.de>
3724
3725         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
3726         C99.
3727
3728 2001-09-13  Richard Henderson  <rth@redhat.com>
3729
3730         * config/alpha/alpha.c (small_symbolic_operand): New.
3731         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
3732         (some_operand, input_operand): Don't handle HIGH.
3733         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
3734         (alpha_expand_mov): Likewise.
3735         (print_operand) [H]: Just print HIGH symbol.
3736         (print_operand_address): Handle small data.
3737         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
3738         (TARGET_SWITCHES): Add -msmall-data/large-data.
3739         (PIC_OFFSET_TABLE_REGNUM): New.
3740         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
3741         (PREDICATE_COES): Update.
3742         * config/alpha/alpha.md (adddi_er_high): New.
3743         (adddi_er_low): Handle small data.
3744         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
3745         prefer .sdata to .rodata.
3746         (SELECT_RTX_SECTION): Likewise.
3747
3748 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
3749
3750         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
3751         defining __size_t and leaving size_t undefined.
3752
3753 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
3754
3755         * basic-block.h (expunge_block): Declare.
3756         * cfg.c (expunge_block): Remove static declaration.
3757
3758 2001-09-12  Richard Henderson  <rth@redhat.com>
3759
3760         * integrate.c (copy_insn_list): Copy label name from
3761         NOTE_INSN_DELETED_LABEL.
3762
3763 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3764
3765         * c-common.c (c_tree_code_name): Const-ification.
3766         * c-decl.c (c_decode_option): Likewise.
3767         * c-typeck.c (warn_for_assignment): Likewise.
3768         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
3769         Likewise.
3770         * cppinit.c (output_deps): Likewise.
3771         * dependence.c (dependence_string, direction_string): Likewise.
3772         * dwarf2out.c (output_ranges): Likewise.
3773         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
3774         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
3775         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
3776         standard_startfile_prefix, standard_startfile_prefix_1,
3777         standard_startfile_prefix_2, tooldir_base_prefix,
3778         standard_bindir_prefix, find_a_file): Likewise.
3779         * genattrtab.c (make_length_attrs): Likewise.
3780         * gencheck.c (tree_codes): Likewise.
3781         * genemit.c (gen_split): Likewise.
3782         * genrecog.c (special_mode_pred_table): Likewise.
3783         * graph.c (graph_ext): Likewise.
3784         * protoize (default_include): Likewise.
3785         * reload.c (reload_when_needed_name): Likewise.
3786         * sched-vis.c (visualize_stall_cycles): Likewise.
3787         * tlink.c (recompile_files): Likewise.
3788         * toplev.c (decode_g_option): Likewise.
3789         * tradcpp.c (output_deps): Likewise.
3790         * varasm.c (decode_reg_name): Likewise.
3791
3792         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
3793         Const-ification.
3794         * arm.md: Likewise.
3795         * avr.c (avr_regnames, encode_section_info): Likewise.
3796         * c4x.c (float_reg_names): Likewise.
3797         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
3798         * elfos.h (const_section): Likewise.
3799         * i386.c (ix86_comp_type_attributes): Likewise.
3800         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
3801         * ia64/aix.h (UNIQUE_SECTION): Likewise.
3802         * ia64.c (type_names): Likewise.
3803         * m68hc11.c (reg_class_names): Likewise.
3804         * m88k.c (m_options): Likewise.
3805         * mips.c (mips_output_conditional_branch, mips_unique_section):
3806         Likewise.
3807         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3808         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
3809         ultra_code_names): Likewise.
3810         * sparc.h (OVERRIDE_OPTIONS): Likewise.
3811
3812 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3813
3814         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
3815         Use --fatal-warnings option for gas.
3816         * configure: Rebuilt.
3817
3818 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3819
3820         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
3821
3822 2001-09-11  Jim Wilson  <wilson@redhat.com>
3823
3824         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
3825
3826 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3827
3828         * builtins.c (c_strlen): Treat an offset too large for a
3829         HOST_WIDE_INT as out of range.
3830
3831 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
3832
3833         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
3834         (EDGE_CRITICAL_P): New predicate.
3835         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
3836         handling.
3837         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
3838         (dump_edge_info): Remove "crit".
3839         * cfganal.c (mark_critical_edges): Kill.
3840         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
3841         * cfgcleanup.c (cleanup_cfg): Likewise.
3842         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
3843         (find_spanning_tree): Likewise.
3844         * reg-stack.c (convert_regs_1): Likewise.
3845         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
3846
3847         * basic-block.h (create_basic_block_structure): New.
3848         (create_basic_block): Update prototype.
3849         (force_nonfallthru): New.
3850         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
3851         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
3852         handle updating of block_for_insn, creating of empty BBs and BBs at
3853         the end of INSN chain.
3854         (create_basic_block): New function.
3855         (split_block): Use create_basic_block.
3856         (force_nonfallthru_and_redirect): Break out from ...; cleanup
3857         (redirect_edge_and_branch_force): ... here.
3858         (force_nonfallthru): New.
3859         (split_edge): Rewrite to use force_nonfallthru and create_block.
3860         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
3861         (find_basic_blocks): Free basic_block_for_insn.
3862         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
3863
3864         * cfg.c: Fix formating.
3865         * cfgcleanup.c: Fix formating.
3866         (merge_blocks, tail_recursion_label_p): Return bool.
3867         (merge_blocks_move_predecessor_nojumps,
3868          merge_blocks_move_successor_nojumps): Return void.
3869
3870 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
3871
3872         * configure.in: Check whether assembler supports section merging.
3873         * config.in: Rebuilt.
3874         * configure: Rebuilt.
3875         * varasm.c (variable_section, output_constant_pool): Pass alignment
3876         to SELECT_SECTION and SELECT_RTX_SECTION.
3877         (mergeable_string_section): New.
3878         (mergeable_constant_section): New.
3879         (default_elf_asm_named_section): Output SECTION_MERGE and
3880         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3881         * output.h (mergeable_string_section): New.
3882         (mergeable_constant_section): New.
3883         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
3884         * toplev.c (flag_merge_constants): New.
3885         (f_options): Add -fmerge-constants and -fmerge-all-constants
3886         options.
3887         (toplev_main): Default to -fno-merge-constants if not optimizing.
3888         * flags.h (flag_merge_constants): Add extern.
3889         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
3890         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
3891         argument.
3892         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
3893         Define if assembler has working .subsection -1 support.
3894         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
3895         Put constant into special SHF_MERGE sections if the linker should
3896         attempt to merge duplicates.
3897         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
3898         macro argument.
3899         Put constant into special SHF_MERGE sections if the linker should
3900         attempt to merge duplicates.
3901         * config/alpha/elf.h: Likewise.
3902         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
3903         has working .subsection -1 support.
3904         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
3905         SELECT_SECTION.
3906         * config/svr3.h: Likewise.
3907         * config/darwin.h: Likewise.
3908         * config/arm/aof.h: Likewise.
3909         * config/arm/linux-elf.h: Likewise.
3910         * config/avr/avr.h: Likewise.
3911         * config/c4x/c4x.h: Likewise.
3912         * config/d30v/d30v.h: Likewise.
3913         * config/i386/dgux.h: Likewise.
3914         * config/i386/osfrose.h: Likewise.
3915         * config/i386/sco5.h: Likewise.
3916         * config/i386/svr3gas.h: Likewise.
3917         * config/ia64/aix.h: Likewise.
3918         * config/m32r/m32r.h: Likewise.
3919         * config/m68k/m68k.h: Likewise.
3920         * config/m88k/dgux.h: Likewise.
3921         * config/m88k/m88k.h: Likewise.
3922         * config/mcore/mcore-pe.h: Likewise.
3923         * config/mips/mips.h: Likewise.
3924         * config/pa/pa.h: Likewise.
3925         * config/pa/pa-linux.h: Likewise.
3926         * config/romp/romp.h: Likewise.
3927         * config/rs6000/sysv4.h: Likewise.
3928         * config/rs6000/xcoff.h: Likewise.
3929         * config/s390/linux.h: Likewise.
3930         * config/sparc/sparc.h: Likewise.
3931         * config/sparc/sysv4.h: Likewise.
3932         * config/stormy16/stormy16.h: Likewise.
3933         * config/v850/v850.h: Likewise.
3934         * config/vax/vms.h: Likewise.
3935         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
3936         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
3937         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
3938         default_elf_asm_named_section for SHF_MERGE sections.
3939
3940 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3941
3942         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
3943         is OK.
3944
3945 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3946
3947         * c-common.c (split_specs_attrs): Allow for empty attributes with
3948         empty TREE_PURPOSE.  Fixes PR c/4294.
3949
3950 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
3951
3952         * basic-block.h (cached_make_edge, make_single_succ): New.
3953         (make_edge): Remove first parameter.
3954         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
3955         * cfg.c (cached_make_edge): Rename from make_edge; return newly
3956         created edge; use obstack allocation.
3957         (make_edge, make_single_succ_edge): New.
3958         (first_removed_edge): New static variable.
3959         (init_flow): Initialize first_removed_edge and n_edges.
3960         (clear_edges): Use remove_edge.
3961         (flow_delete_block): Likewise.
3962         (remove_edge): Add removed edges to the removed edges list.
3963         (split_block, redirect_edge_and_branch_force, split_edge):
3964         Use make_edge.
3965         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
3966         (add_noreturn_fake_exit_edges): Likewise.
3967         (connect_infinite_loops_to_exit): Liekwise.
3968         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
3969         Use cached_make_edge.
3970         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
3971         * profile.c (branch_prob): Update make_edge call.
3972         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3973
3974 2001-09-11  Richard Henderson  <rth@redhat.com>
3975
3976         * config/alpha/alpha.c: Tidy formatting.
3977         (local_symbolic_operand): Verify mode.
3978         (alpha_sa_mask): Ignore unicos for eh_return.
3979         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
3980         * config/alpha/alpha.md (umk divsi patterns): Remove.
3981         (extendsfdf2): Remove unicos check.
3982         (tablejump): Merge vms and unicos code; always use direct set
3983         plus label_ref use.
3984
3985 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3986
3987         * config.gcc (alpha*-*-unicosmk*): New target.
3988
3989         * config/alpha/alpha-protos.h (symbolic_operand,
3990         unicosmk_add_call_info_word, unicosmk_add_extern,
3991         unicosmk_defer_case_vector, unicosmk_unique_section,
3992         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
3993         unicosmk_asm_file_start, unicosmk_asm_file_end,
3994         unicosmk_output_common): Declare.
3995
3996         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
3997         direct_return, function_arg, alpha_va_start, alpha_va_arg,
3998         alpha_does_function_need_gp, alpha_end_function): Support Cray
3999         Unicos/Mk.
4000         (alpha_init_machine_status, alpha_mark_machine_status,
4001         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
4002         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
4003         unicosmk_asm_named_section, unicosmk_insert_attributes,
4004         unicosmk_section_type_flags, symbolic_operand,
4005         unicosmk_output_module_name, unicosmk_output_default_externs,
4006         unicosmk_output_dex, unicosmk_output_externs,
4007         unicosmk_output_addr_vec, unicosmk_ssib_name,
4008         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
4009         unicosmk_asm_file_end, unicosmk_output_common,
4010         unicosmk_section_type_flags, unicosmk_unique_section,
4011         unicosmk_add_call_info_word, unicosmk_text_section,
4012         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
4013         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
4014         unicosmk_dex_count, unicosmk_special_name): New.
4015         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
4016         TARGET_ABI_UNICOSMK.
4017         (get_aligned_mem, alpha_expand_unaligned_load,
4018         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
4019         alpha_expand_unaligned_store_words): Support big-endian mode.
4020         (print_operand): Likewise. New format specifier 't'. Use
4021         TARGET_AS_SLASH_BEFORE_SUFFIX.
4022         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
4023         (alpha_pv_save_size): Update with above change.
4024         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
4025         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
4026         Unicos/Mk.
4027
4028         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
4029         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
4030         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
4031         (EXTRA_CONSTRAINT): New constraint 'U'.
4032         (PREDICATE_CODES): Add symbolic_operand.
4033
4034         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
4035         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
4036         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
4037         (integer division and modulus patterns): Split in default and
4038         Unicos/Mk versions.
4039         (*divmodsi_internal, *divmoddi_internal): Disable for
4040         TARGET_ABI_UNICOSMK.
4041         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
4042         little-endian and big-endian versions.
4043         (ext, ins, msk): Likewise.
4044         (extv, extzv, insv): Support big-endian mode.
4045         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
4046         (call_umk, call_value_umk, *call_umk, tablejump_umk,
4047         *tablejump_umk_internal, *call_value_umk): New.
4048         (*movdi_nofix): Add pattern for loading an address into a register on
4049         TARGET_ABI_UNICOSMK.
4050         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
4051         (umk_mismatch_args, arg_home_umk): New.
4052         (various insns): Don't use mov, fmov, nop, fnop and unop.
4053         (realign): Support TARGET_ABI_UNICOSMK.
4054
4055         * config/alpha/unicosmk.h: New file.
4056         * config/alpha/t-unicosmk: New file.
4057
4058         * fixinc/inclhack.def (unicosmk_restrict): New.
4059         * fixinc/fixincl.x: Regenerate.
4060
4061         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
4062         (wchar_t): Check for and define __WCHAR_T__.
4063
4064 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
4065
4066         * combine.c (simplify_shift_const): Treat shifts by the mode
4067         size as undefined.
4068
4069 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4070
4071         * cpphash.h (struct tokenrun): New.
4072         (struct cpp_context): New member bol.
4073         (struct cpp_reader): New members.
4074         (_cpp_init_tokenrun): New.
4075         * cppinit.c (cpp_create_reader): Set up the token runs.
4076         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
4077         (lex_token): New internalised version of _cpp_lex_token.  Don't
4078         handle directives or the multiple include opimisation here any
4079         more.  Simply lex a token.
4080         * cpplib.c (run_directive): Clear bol.
4081         (_cpp_pop_buffer): Set bol.
4082         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
4083         arguments.
4084
4085 2001-09-11  Michael Meissner  <meissner@redhat.com>
4086
4087         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
4088         give an error if the user uses -mfp32.
4089         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
4090         default options.
4091         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
4092         floating point register size.
4093         (EXTRA_SPECS): Add CPP_FPR_SPEC.
4094
4095         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
4096         HOST_WIDE_INT_PRINT_DEC to properly print the result of
4097         int_size_in_bytes.
4098         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4099         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
4100
4101 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
4102
4103         * dbxout.c (dbxout_parms): Fix typo in comment.
4104         * unroll.c (loop_find_equiv_value): Ditto.
4105         * toplev.c (rest_of_compilation): Ditto.
4106         * loop.c (scan_loop): Ditto.
4107         * dwarf2out.c (struct dw_fde_struct): Ditto.
4108
4109 2001-09-10  Zack Weinberg  <zackw@panix.com>
4110
4111         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
4112         copying identifier when we're just going to throw it away.
4113         (parse_identifier_slow): New routine to handle abnormal cases.
4114         (_cpp_lex_token): Update call site.
4115
4116         * hashtable.c (ht_lookup): Don't assume that the string we've
4117         been given is NUL-terminated.
4118         * system.h: #define __builtin_expect(a, b) to (a) if not
4119         GCC >=3.0.
4120
4121 2001-09-10  Michael Meissner  <meissner@redhat.com>
4122
4123         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
4124         binutils, gdb.
4125
4126 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
4127
4128         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
4129
4130 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4131
4132         * builtins.c (c_getstr): Correct thinko in last change and further
4133         cleanup.
4134
4135 2001-09-10  Tim Freeman <tim@fungibole.com>
4136
4137         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
4138         into varray's and register them as roots with the garbage
4139         collector so they are not collected too soon.
4140
4141 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
4142
4143         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
4144         New.
4145         * basic-block.h (flow_obstack, label_value_list,
4146         tail_recursion_label_list): Declare
4147         (tidy_fallthru_edges): Declare.
4148         (expunge_block, last_loop_beg_note): Delete.
4149         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
4150         * cfg.c: New file
4151         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
4152         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
4153         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
4154         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
4155         expunge_block, flow_delete_block, compute_bb_for_insn,
4156         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
4157         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
4158         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
4159         try_redirect_by_replacing_jump, last_loop_beg_note,
4160         redirect_edge_and_branch, redirect_edge_and_branch_force,
4161         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
4162         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
4163         commit_edge_insertions, dump_flow_info, debug_flow_info,
4164         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
4165         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
4166         Move here from flow.c
4167         * cfganal.c: New file.
4168         (forwarder_block_p, can_fallthru, mark_critical_edges,
4169          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
4170          find_unreachable_blocks, create_edge_list, free_edge_list,
4171          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
4172          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
4173          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
4174          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
4175          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
4176          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
4177         Move here from flow.c
4178         * cfgbuild.c: New file
4179         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
4180          make_edges, find_basic_blocks_1, find_basic_blocks,
4181          find_sub_basic_blocks): Move here from flow.c
4182         * cfgcleanup.c: New file.
4183         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
4184          merge_blocks_move_predecessor_nojumps,
4185          merge_blocks_move_successor_nojumps, merge_blocks,
4186          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
4187          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
4188         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
4189         if succeeded.
4190         * cfgloop.c: New file
4191         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
4192          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
4193          flow_loop_exit_edges_find, flow_loop_nodes_find,
4194          flow_loop_pre_header_scan, flow_loop_pre_header_find,
4195          flow_loop_tree_node_add, flow_loops_tree_build,
4196          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
4197          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
4198         Move here from flow.c
4199         * flow.c: Remove everything moved elsewhere
4200         * output.h (cleanup_cfg): Return bool.
4201
4202         * bb-reorder.c (reorder_block_def): Remove 'index'.
4203         (insert_intra_1): Add argument BB, set block for new note.
4204         (make_reorder_chain): Do not depdent on BB indexes.
4205         (make_reorder_chain_1): Do not use BB indexes.
4206         (label_for_bb): Likewise; set BB for new insn.
4207         (emit_jump_to_block_after): Likewise.
4208         (fixup_reoder_chain): Sanity check that all basic blocks
4209         are chained; verify newly created insn chain; remove
4210         undocnitional jump simplifying; Do not use BB indexes;
4211         properly initialize count and frequency information;
4212         dump reordered sequence.
4213         (insert_intra_bb_scope_notes): update call of insert_intra_1.
4214         (insert_inter_bb_scope_notes): Set block for new insn.
4215         (reorder_basic_blocks): Dump flow info before reoredering.
4216
4217 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4218
4219         * alias.c (clear_reg_alias_info): Use K&R format definition.
4220         Avoid unsigned warning.
4221         * builtins.c: Use "unsigned int", not "unsigned".
4222         (target_char_cast): Use host_integerp and tree_low_cst.
4223         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
4224         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
4225         (c_getstr): Likewise.
4226         (std_expand_builtin_va_arg): Use int_size_in_bytes.
4227         (builtin_memcpy_read_str): Avoid unsigned warning.
4228         (expand_builtin_memcpy): Alignments are unsigned.
4229         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
4230         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
4231         * predict.c (expensive_function_p): LIMIT now unsigned.
4232         * resource.c (mark_target_live_regs): Make some vars unsigned.
4233         * sdbout.c: Use "unsigned int", not "unsigned".
4234         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
4235         (sdbout_source_line): Likewise.
4236         (sdbout_record_type_name): Remove "const" for NAME declaration.
4237         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
4238
4239 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
4240
4241         * calls.c (store_one_arg): Expand comment.
4242
4243 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4244
4245         * calls.c (store_one_arg): Make sure that the entire argument is
4246         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
4247
4248 2001-09-09  Richard Henderson  <rth@redhat.com>
4249
4250         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
4251
4252 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
4253
4254         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
4255
4256 2001-09-09  Richard Henderson  <rth@redhat.com>
4257
4258         * config/alpha/alpha.c (alpha_next_sequence_number): New.
4259         (alpha_this_literal_sequence_number): New.
4260         (alpha_this_gpdisp_sequence_number): New.
4261         (some_operand, input_operand): Add HIGH.
4262         (local_symbolic_operand): New.
4263         (alpha_encode_section_info): New.
4264         (alpha_legitimate_address_p): Allow LO_SUM.
4265         (alpha_legitimize_address): Generate HIGH+LO_SUM.
4266         (alpha_expand_mov): Likewise.
4267         (secondary_reload_class): Check memory_operand not general_operand
4268         for FP_REGS test.
4269         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
4270         (alpha_expand_unaligned_store): Likewise.
4271         (alpha_expand_unaligned_load_words): Likewise.
4272         (alpha_expand_unaligned_store_words): Likewise.
4273         (alpha_expand_block_clear): Likewise.
4274         (print_operand): Handle %#, %*, %H.
4275         (print_operand_address): Handle LO_SUM.
4276         (find_lo_sum): New.
4277         (alpha_does_function_need_gp): Use it.
4278         (alpha_expand_block_move): Fix signed compare warnings.
4279         (alpha_sa_mask, alpha_align_insns): Likewise.
4280         * config/alpha/alpha-protos.h: Update.
4281         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
4282         (MASK_EXPLICIT_RELOCS): New.
4283         (TARGET_SWITCHES): Add -mexplicit-relocs.
4284         (EXTRA_CONSTRAINT): Add 'T'.
4285         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
4286         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
4287         (ENCODE_SECTION_INFO): Out line.
4288         (REDO_SECTION_INFO_P): New.
4289         (STRIP_NAME_ENCODING): New.
4290         (ASM_OUTPUT_LABELREF): New.
4291         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
4292         (PREDICATE_CODES): Update.
4293         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
4294         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
4295         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
4296         builtin_setjmp_receiver_er, exception_receiver_1_er,
4297         call_value_osf_1_er): New patterns.
4298         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
4299         (movqi, movhi, movsi): Add explicit $31 base register to lda.
4300         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
4301         (FINAL_PRESCAN_INSN): New.
4302
4303 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
4304
4305         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
4306
4307 2001-09-08  Andreas Jaeger  <aj@suse.de>
4308
4309         * i386.h (TARGET_SWITCHES): Fix description.
4310
4311 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
4312
4313         * rs6000.c (num_insns_constant): Compute number of instructions
4314         more accurately.
4315
4316         * doc/install.texi: Explain AIX exception handling work-around.
4317         Update URL for AIX fixes.
4318
4319 2001-09-07  Jim Wilson  <wilson@redhat.com>
4320
4321         * alias.c (clear_reg_alias_info): New.
4322         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
4323         * rtl.h (clear_reg_alias_info): Declare.
4324
4325 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4326
4327         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
4328         available.
4329         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
4330         (m16m,edivm,emulm): Change declaration to match definition.
4331
4332 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
4333
4334         * reload.c (push_reload): Check for subreg_lowpart_p instead of
4335         SUBREG_BYTE being 0 when determining if the inner part of a subreg
4336         can be reloaded.
4337
4338 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4339
4340         * c-common.c (signed_or_unsigned_type): Handle machine mode types
4341         which have no corresponding C type.
4342         * fold_const.c (target_isinf,target_isnan,target_negative): Update
4343         the representation of 64-bit doubles to work with 64-bit ints.
4344
4345 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
4346
4347         * config/mips/mips.c (override_options): Do not override ISA when ABI
4348         specified if MIPS_CPU_STRING_DEFAULT was specified.
4349
4350 2001-09-07  Richard Henderson  <rth@redhat.com>
4351
4352         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
4353         (express_from_1): Wrap lines.
4354         * rtlanal.c (commutative_operand_precedence): Rename from
4355         operand_preference; export.
4356         * rtl.h: Declare it.
4357         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
4358         (simplify_binary_operation): Invoke simplify_plus_minus on
4359         (CONST (PLUS ...)) as well.
4360         (struct simplify_plus_minus_op_data): New.
4361         (simplify_plus_minus_op_data_cmp): New.
4362         (simplify_plus_minus): Use them.  Avoid infinite recursion with
4363         simplify_binary_operation wrt CONST.
4364
4365 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
4366
4367         * h8300-protos.h (general_operand_dst_push): Remove.
4368         * h8300.c (general_operand_dst_push): Likewise.
4369         * h8300.h (OK_FOR_T): Likewise.
4370         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
4371         * h8300.md (pushqi_h8300): New.
4372         (pushqi_h8300hs): Likewise.
4373         (pushqi): Likewise.
4374         (pushhi_h8300): Likewise.
4375         (pushhi_h8300hs): Likewise.
4376         (pushhi): Likewise.
4377
4378 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4379
4380         * genattrtab.c (attr_printf): First arg is unsigned.
4381         Clean up formatting of callers.
4382
4383 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
4384
4385         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
4386         registers.
4387
4388 2001-09-07  Andreas Jaeger  <aj@suse.de>
4389
4390         * i386.h (TARGET_SWITCHES): Fix descriptions.
4391
4392 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4393
4394         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
4395
4396 2001-09-06  Ira Ruben  <ira@apple.com>
4397
4398         Remove OP_IDENTIFIER.
4399         * tree.def (OP_IDENTIFIER): Remove.
4400         * tree.c (tree_node_kind enum): Remove op_id_kind.
4401         (tree_node_kind_names): Remove "op_identifiers".
4402         (make_node): Remove OP_IDENTIFIER test.
4403         (build_op_identifier): Removed because it isn't being used.
4404         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
4405         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
4406
4407 2001-09-06  Richard Henderson  <rth@redhat.com>
4408
4409         * simplify-rtx.c (simplify_binary_operation): Revert last change.
4410
4411 2001-09-06  Richard Henderson  <rth@redhat.com>
4412
4413         * simplify-rtx.c (simplify_binary_operation): Simplify contents
4414         of CONST.
4415
4416 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4417
4418         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
4419         number used for CR register.
4420
4421 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4422                           Joern Rennecke (amylaar@cygnus.com)
4423
4424         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
4425         * h8300.c (initial_offset): Handle offset between RP and FP.
4426         (h8300_return_addr_rtx): New function.
4427         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
4428         return register.
4429         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
4430         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4431         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
4432         (CAN_ELIMINATE, REGISTER_NAMES):
4433         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
4434
4435 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
4436
4437         Remove TYPE_NONCOPIED_PARTS.
4438         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
4439         (struct tree_type): Remove noncopied_parts.
4440         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
4441         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
4442         (fixed_type_p): Remove.
4443         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
4444         (expand_expr, MODIFY_EXPR): Likewise.
4445         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
4446         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
4447
4448 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
4449
4450         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
4451         compiler warnings.
4452         (mask64_operand): Likewise.
4453         (includes_rldic_lshift_p): Likewise.
4454         (includes_rldicr_lshift_p): Likewise.
4455
4456 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
4457
4458         * objc/objc-act.c (build_message_expr): If a class method cannot
4459         be found, do not issue a warning if a corresponding instance
4460         method exists in the root class.
4461
4462 2001-09-05  Richard Henderson  <rth@redhat.com>
4463
4464         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
4465
4466 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
4467
4468         * function.c (ggc_mark_struct_function): Mark f->outer.
4469         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
4470         * integrate.c (output_inline_function): ... not here.
4471
4472 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
4473
4474         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
4475
4476         * i386.c (size_cost): New static variable.
4477         (override_function): Use size_cost when -Os is specified.
4478
4479         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
4480         properly;  Use current_function_calls_eh_return.
4481         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
4482         use leave to avoid depdendancy chain.
4483
4484         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
4485         get BB loop_depth instead of computing it from LOOP notes.
4486
4487         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
4488
4489 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4490
4491         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4492         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4493         UNALIGNED_DOUBLE_INT_ASM_OP): Define
4494
4495 2001-09-05  Jeffrey A Law  (law@cygnus.com)
4496             Jason Merrill (jason@redhat.com)
4497
4498         * stor-layout.c (layout_type): Complain if an array's size can
4499         not be represented in a size_t.
4500
4501         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
4502
4503 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
4504
4505         * gcc.c: (process_command) Add parentheses around assignment
4506         used as truth value.
4507
4508 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4509
4510         * config/mips/mips.c (save_restore_insns): Don't mark any register
4511         save slots as unchanging if current_function_calls_eh_return.
4512
4513 2001-09-05  Richard Henderson  <rth@redhat.com>
4514
4515         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
4516         * config/alpha/alpha-protos.h: Declare it.
4517         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
4518         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
4519         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
4520         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
4521         (REG_OK_FOR_BASE_P): Select one of the above.
4522
4523 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
4524
4525         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
4526         (crti.o): Prefix name of object file with $(T).
4527         (crtn.o): Likewise.
4528
4529 2001-09-05  David S. Miller  <davem@redhat.com>
4530
4531         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4532         * config/sparc/linux64.h: Likewise.
4533
4534 2001-09-05  Andreas Jaeger  <aj@suse.de>
4535
4536         * doc/invoke.texi (i386 Options): -mwide-multiply is not
4537         available anymore, remove the documentation.
4538         (i386 Options): Fix typo, cleanup index entries.
4539
4540         * prefix.c (concat): Remove, we can use the version from liberty.
4541
4542 2001-09-05  Richard Henderson  <rth@redhat.com>
4543
4544         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
4545         New functions split out of md file expanders.
4546         * config/alpha/alpha-protos.h: Declare them.
4547         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
4548
4549 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4550
4551         * cppmacro.c (funlike_invocation_p): No need to restore context.
4552
4553 2001-09-04  Richard Henderson  <rth@redhat.com>
4554
4555         * reload.c (push_reload): Export.
4556         * reload.h (push_reload): Declare it.
4557
4558         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
4559         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4560         * config/alpha/alpha.c (alpha_legitimize_address): New.
4561         (alpha_legitimize_reload_address): Likewise.
4562         * config/alpha/alpha-protos.h: Declare them.
4563
4564 2001-09-04  Stan Shebs  <shebs@apple.com>
4565
4566         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
4567         * config/darwin.c (machopic_stub_name): Account for internally
4568         generated lib calls such as memcpy.
4569
4570 2001-09-04  Richard Henderson  <rth@redhat.com>
4571
4572         * unwind.h (_UA_END_OF_STACK): New flag.
4573         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
4574
4575 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
4576
4577         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
4578
4579 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
4580
4581         * config/mips/mips.c (save_restore_insns): Change base_offset to
4582         fp_offset in second call to mips_emit_frame_related_store.
4583
4584 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
4585
4586         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
4587         sometimes be represented as a NOTE of type
4588         NOTE_INSN_DELETED_LABEL.
4589         (Insns): Document NOTE_INSN_DELETED_LABEL.
4590
4591 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
4592
4593         * c-common.h (tree_dump_index): Add more comments.
4594         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
4595         (dump_option_value_info): New struct.
4596         (dump_options): New array.
4597         (dump_switch_p): Parse switch options symbolically.
4598         * doc/invoke.texi (-fdump-ast): Rename to ...
4599         (-fdump-tree): ... here. Document that options are symbolic, and
4600         not all are applicable.
4601
4602 2001-09-04  David S. Miller  <davem@redhat.com>
4603
4604         * config/sparc/sparc.md (define_splits): Kill constraints.
4605
4606         Cleanup redundant and unused insn attributes.
4607         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
4608         binary, and move.  Mark ialu as default.
4609         (commented out define_function_unit "alu"): Kill.
4610         (define_attr "use_clobbered"): Kill.
4611         (whole file): Kill address insn type references.  Replace
4612         all unary/binary/move references with ialu.
4613         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
4614         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
4615         TYPE_IALU.
4616
4617         Simplify length insn attribute and make more judicious use
4618         of insn attribute defaulting.
4619         * config/sparc/sparc.md (all insns with length > one): Mark as
4620         insn type multi if real instructions, else use default if
4621         it is a forced splitter.
4622         (all insns with length == one): Use default insn length.
4623         (all insns of type ialu): Use default insn type.
4624
4625         Fix erroneous insn attribute settings.
4626         (addx): Set insn type to misc.
4627         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
4628         const_umulsidi3_sp64): Set insn type to imul.
4629
4630         Track SFmode vs DFmode insns according to UltraSPARC
4631         scheduling rules.
4632         * config/sparc/sparc.md ("fptype"): New attribute, default
4633         to "single".
4634         (all DFmode single insns): Mark as fptype "double".
4635
4636 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
4637
4638         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
4639
4640 2001-09-03  Richard Henderson  <rth@redhat.com>
4641
4642         * function.h (struct function): Add arg_pointer_save_area_init.
4643         * function.c (expand_function_end): Init arg_pointer_save_area.
4644         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
4645         when called from a nested function.
4646
4647 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
4648
4649         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
4650         is enabled.
4651
4652 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
4653
4654         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
4655
4656 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
4657
4658         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
4659         (emit_push_insn): Use specified padding direction when
4660         STACK_PUSH_CODE is POST_INC.
4661
4662         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
4663
4664 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4665
4666         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
4667
4668 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4669
4670         * cppinit.c (cpp_start_read): Free the imacros list as we
4671         traverse it.  Don't free the chains before returning.
4672         (_cpp_push_next_buffer): Only try pushing buffers if we've
4673         completed -imacros handling.
4674
4675 2001-08-31  Eric Christopher  <echristo@redhat.com>
4676
4677         * gcc.c (handle_braces): Add explaination for abort.
4678
4679 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
4680
4681         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
4682         move adjustment of bitpos instead.
4683
4684 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
4685
4686         * function.c: Remove all_functions.  Make outer_function_chain
4687         static.
4688         (init_function_start): Don't add new function structure to
4689         all_functions.
4690         (find_function_data, push_function_context_to,
4691         pop_function_context_from, put_var_into_stack,
4692         trampoline_address): Update for changed structure element names.
4693         (push_function_context_to): Disentangle.
4694         (free_after_compilation): Also free F.
4695         (expand_dummy_function_end): Don't free cfun here.
4696         (put_var_into_stack): Comment why we can't use find_function_data here.
4697         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
4698         (mark_function_chain): Split into maybe_mark_struct_function and
4699         ggc_mark_struct_function.  Export the latter.
4700         (init_function_once): Mark from cfun and outer_function_chain;
4701         not all_functions.
4702
4703         * function.h (struct function): Kill next_global.  Rename next
4704         to outer.  All users updated to match.
4705         (all_functions, outer_function_chain): Don't declare.
4706
4707         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
4708         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
4709         don't touch f->inlinable, after calling rest_of_compilation.
4710
4711         * tree.h: Forward-declare struct function.  Prototype
4712         ggc_mark_struct_function.
4713
4714 2001-08-31  Kazu Hirata  <kazu@hxi.com>
4715
4716         * config/h8300/h8300.md (*andorhi3): Fix typos.
4717
4718 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4719
4720         * calls.c (emit_library_call_value): Don't use a fixed
4721         argument after VA_CLOSE, i.e. out of scope in traditional C.
4722
4723         * emit-rtl.c (gen_rtvec): Likewise.
4724
4725 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4726
4727         * Makefile.in (c-pragma.o): Depend on output.h.
4728         (reorg.o): Depend on except.h.
4729
4730         * c-pragma.c: Include output.h.
4731
4732         * reorg.c: Include except.h.
4733
4734         * unwind-dw2.c: Call __builtin_alloca, not alloca.
4735
4736 2001-08-31  Richard Henderson  <rth@redhat.com>
4737
4738         * sched-deps.c (add_dependence): Don't elide dependancy if the
4739         conditional used by insn is modified in elem.
4740
4741 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
4742
4743         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4744
4745 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
4746
4747         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
4748         dump_switch_p.
4749
4750 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4751
4752         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
4753         function.
4754         (stormy16_asm_out_constructor): New function.
4755         (TARGET_ASM_CONSTRUCTOR): Define.
4756         (TARGET_ASM_DESTRUCTOR): Define.
4757
4758 2001-08-31  Andreas Jaeger  <aj@suse.de>
4759
4760         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
4761         * loop.c (add_label_notes): Likewise.
4762         * reload.c (find_reloads): Likewise.
4763         * config/sh/sh.c (machine_dependent_reorg): Likewise.
4764
4765 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
4766
4767         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
4768         code here.  Take _Unwind_{W,Sw}ord*.
4769         (read_encoded_value_with_base): Use them.
4770         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
4771         words.
4772         (extract_cie_info): Simplify read_?leb128 handling.
4773         (execute_stack_op, execute_cfa_program): Likewise.
4774         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
4775
4776 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
4777
4778         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
4779         the frame pointer to pop the stack if convenient.
4780
4781         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
4782         Don't use post-increment before combine.
4783         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
4784         a call-saved register.
4785
4786 2001-08-31  Andreas Jaeger  <aj@suse.de>
4787
4788         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
4789         code was correct.
4790
4791 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
4792
4793         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
4794         not DIV/MOD, of course.
4795
4796 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
4797
4798         * rtl.def: Undo my patch commited 2001-08-27.
4799
4800         * genattrtab.c: Ditto.
4801
4802         * rtl.h: Ditto.
4803
4804         * sched-int.h: Ditto.
4805
4806         * target-def.h: Ditto.
4807
4808         * target.h: Ditto.
4809
4810         * haifa-sched.c: Ditto.
4811
4812         * sched-rgn.c: Ditto.
4813
4814         * sched-vis.c: Ditto.
4815
4816         * Makefile.in: Ditto.
4817
4818         * doc/md.texi: Ditto.
4819
4820         * doc/tm.texi: Ditto.
4821
4822         * doc/contrib.texi: Ditto.
4823
4824         * doc/gcc.texi: Ditto.
4825
4826         * genattrtab.h: Remove it.
4827
4828         * genautomata.c: Remove it.
4829
4830         * genattr.c: Undo my patch and Richard Henderson's patch commited
4831         2001-08-27.
4832
4833 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
4834
4835         * config.gcc (h8300-*-elf*): New case.
4836         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
4837         (SUBTARGET_CPP_SPEC): Define.
4838         (EXTRA_SPECS): Define.
4839         (SUBTARGET_EXTRA_SPECS): Define.
4840         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
4841         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
4842
4843 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
4844
4845         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
4846         (LIB2FUNCS_EXTRA): Define.
4847         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
4848         config/h8300/fixunssfsi.c: New file.
4849
4850 2001-08-30  Kazu Hirata  <kazu@hxi.com>
4851
4852         * config/h8300/h8300.md (zero_extendqihi2): Changes to
4853         define_expand to accomodate target-specific attributes.
4854         (anonymous zero_extendqihi2 patterns): New.
4855
4856 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
4857
4858         * h8300.md (*andorhi3): New pattern.
4859
4860 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
4861
4862         * h8300.c (dosize): Fix test for "sub".
4863
4864 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
4865
4866         * c-typeck.c (pointer_diff): Try to eliminate common term before
4867         doing conversions.
4868
4869 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
4870
4871         * config/arm/arm.c (arm_compute_initial_elimination_offset):
4872         Account for the saves of the FP registers.
4873
4874         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
4875         (TEXT_SECTION_ASM_OP): Define.
4876         (INIT_SECTION_ASM_OP): Define.
4877         (FINI_SECTION_ASM_OP): Define.
4878         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
4879         (RDATA_SECTION_FUNCITON): Provide prototype.
4880
4881 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
4882
4883         * reload1.c (move2add_note_store): Correct typo checking for
4884         argument pushes.
4885
4886 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
4887
4888         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
4889         note should not be considered outside the libcall block.
4890
4891 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4892
4893         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
4894
4895 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4896
4897         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
4898
4899 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4900
4901         * config/h8300/h8300-protos.h: Add a prototype for
4902         emit_logical_op.
4903         * config/h8300/h8300.c (emit_logical_op): New.
4904         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
4905         (andsi3): Likewise.
4906         (iorhi3): Likewise.
4907         (iorsi3): Likewise.
4908         (xorhi3): Likewise.
4909         (xorsi3): Likewise.
4910
4911 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4912
4913         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
4914         comparison with rtx INTVAL.
4915         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
4916         expression.
4917         * pa.h (FUNCTION_ARG_SIZE): Likewise.
4918
4919 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4920
4921         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
4922         comment typos.
4923
4924 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4925
4926         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
4927         (reg n) to (mem (pre_dec (reg n))
4928         (anonymous movsi pattern): Likewise.
4929
4930 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4931
4932         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
4933
4934 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4935
4936         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
4937         several special constants.
4938
4939 2001-08-29  Kazu Hirata  <kazu@hxi.com>
4940
4941         * config/h8300/lib1funcs.asm: Fix comment typos.
4942
4943 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4944
4945         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
4946         Fix format specifier warnings.
4947
4948         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
4949         inet_makeaddr, semctl): Prototype.
4950
4951         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
4952         (save_restore_insns): Use base_offset, not gp_offset.
4953
4954         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
4955         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4956
4957 2001-08-29  Richard Henderson  <rth@redhat.com>
4958
4959         * bb-reorder.c (function_tail_eff_head): New.
4960         (record_effective_endpoints): Set it.
4961         (fixup_reorder_chain): Use it.
4962
4963 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4964
4965         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
4966
4967 2001-08-28  Dale Johannesen  <dalej@apple.com>
4968
4969         * config/darwin.c (machopic_function_base_name): Add const
4970         qualifier to a string.
4971         (darwin_encode_section_info): Ditto.
4972
4973 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4974
4975         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
4976         function definition.
4977
4978 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4979
4980         * df.h (struct df): Add rts_order variable.
4981
4982         * df.c (df_visit_next_rts): New function.
4983         (df_visit_next): Renamed to df_visit_next_rc
4984         (df_analyse_1): Allocate/compute/free rts_order as well.
4985         (df_rd_global_compute): Use df_visit_next_rc instead of
4986         df_visit_next.
4987         (df_ru_global_compute): Use df_visit_next_rts instead of
4988         df_visit_next.
4989
4990         * flow.c (flow_reverse_top_sort_order_compute): New function.
4991
4992         * basic-block.h: Add prototype.
4993
4994 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
4995
4996         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
4997         blocks, the BB_REACHABLE is now set, rather than aux being
4998         non-NULL. Update the test to reflect this.
4999
5000 2001-08-28  Eric Christopher  <echristo@redhat.com>
5001
5002         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
5003         config/mips/crti.asm: Ditto.
5004
5005 2001-08-28  Eric Christopher <echristo@redhat.com>
5006             Richard Henderson <rth@redhat.com>
5007
5008         * c-pragma.h (add_weak): Move prototype from here...
5009         * output.h (add_weak): ... to here.
5010         * varasm.c (add_weak): Fix typo.
5011         * config/mips/crti.asm: New file.
5012         * config/mips/crtn.asm: Ditto.
5013         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
5014         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
5015         (INVOKE__main): Ditto.
5016         (INIT_SECTION_ASM_OP): New.
5017         (FINI_SECTION_ASM_OP): Ditto.
5018         (STARTFILE_SPEC): Add crti.
5019         (ENDFILE_SPEC): Add crtn.
5020         * config/mips/elf64.h: Same.
5021         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
5022         Remove.
5023         * config/mips/vxworks.h: Ditto.
5024         * config/mips/t-elf: Support crti and crtn.
5025
5026 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
5027
5028         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
5029         INSN_LIST.
5030
5031 2001-08-28  Richard Henderson  <rth@redhat.com>
5032
5033         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
5034         (one_cmplbi2 splitter): Remove redundant test.
5035
5036 2001-08-28  Dale Johannesen  <dalej@apple.com>
5037
5038         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
5039
5040 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
5041
5042         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
5043
5044 2001-08-28  Stan Shebs  <shebs@apple.com>
5045
5046         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
5047         (UNALIGNED_SHORT_ASM_OP): Define.
5048         (UNALIGNED_INT_ASM_OP): Define.
5049
5050 2001-08-28  Will Cohen  <wcohen@redhat.com>
5051
5052         * config/rs6000/rs6000.md (store_multiple): Correct RTL
5053         generation for first set.
5054
5055 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5056
5057         * flow.c (redirect_edge_succ_nodup): Return new edge.
5058         (try_simplify_condjump): Use new edge.
5059         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
5060
5061         * cse.c (cse_basic_block): Skip note instructions.
5062
5063 2001-08-27  Richard Henderson  <rth@redhat.com>
5064
5065         * combine.c (combine_simplify_rtx): Don't reverse condition
5066         if there is no reverse for the condition.
5067         (simplify_comparison): Don't simplify subregs from INT to FP.
5068
5069         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
5070         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
5071         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
5072         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
5073         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
5074         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
5075
5076 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
5077
5078         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
5079         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
5080         (pushqi1): New.
5081         (adddi_dilshr32, adddi_dishl32): Only data register can be
5082         source for mem destination.
5083
5084         * expmed.c (store_bit_field): Ignore adjustment to bitpos
5085         and use bitnum to decide about register move.
5086
5087 2001-08-27  Richard Henderson  <rth@redhat.com>
5088
5089         * genattr.c (main): Emit state_t even when not doing scheduling.
5090
5091 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5092             Richard Henderson  <rth@redhat.com>
5093
5094         * gcse.c (reg_first_set, reg_last_set): Replace with ...
5095         (reg_avail_info, current_bb): ... these.
5096         (oprs_unchanged_p, record_last_reg_set_info): Use them.
5097         (compute_hash_table): Likewise.
5098
5099 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
5100
5101         * flow.c (verify_flow_info): Use checksums to verify edges.
5102
5103 2001-08-27  Richard Henderson  <rth@redhat.com>
5104
5105         * genautomata.c (expand_automata): Always create a description.
5106
5107 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5108
5109         * optabs.c (expand_binop): Correctly handle the carry in multiword
5110         add/subtract operations.
5111
5112 2001-08-27  Fred Fish  <fnf@be.com>
5113
5114         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
5115         __SIZE_TYPE__.
5116
5117 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
5118
5119         * reload.c (find_reloads_toplev): Back out this change:
5120
5121         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
5122
5123         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
5124         mem if the address is a mode_dependent_address_p.
5125
5126 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5127
5128         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5129         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5130         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5131         RTL constructions.
5132
5133         * genattr.c (main): New variable num_insn_reservations.  Increase
5134         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5135         pipeline hazard recognizer interface.
5136
5137         * genattrtab.h: New file.
5138
5139         * genattrtab.c: Include genattrtab.h.
5140         (attr_printf, check_attr_test, make_internal_attr,
5141         make_numeric_value): Move protypes into genattrtab.h.  Define them
5142         as external.
5143         (num_dfa_decls): New global variable.
5144         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5145         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5146         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5147         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5148
5149         * genautomata.c: New file.
5150
5151         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5152
5153         * sched-int.h: (curr_state): Add the external definition for
5154         automaton pipeline interface.
5155         (haifa_insn_data): Add comments for members blockage and units.
5156
5157         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5158         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5159         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5160         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5161         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5162         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5163         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5164         macros.
5165         (TARGET_SCHED): Use the new macros.
5166
5167         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5168         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5169         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5170         dfa_bubble): New members in gcc_target.sched.
5171
5172         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5173         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5174         (insn_queue): Redefine it as pointer to array.
5175         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5176         INSN_QUEUE_SIZE.
5177         (max_insn_queue_index_macro_value): New variable.
5178         (curr_state, dfa_state_size, ready_try): New varaibles for
5179         automaton interface.
5180         (ready_element, ready_remove, max_issue): New function prototypes
5181         for automaton interface.
5182         (choose_ready): New function prototype.
5183         (insn_unit, blockage_range): Add comments.
5184         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5185         FUNCTION_UNITS_SIZE == 0.
5186         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5187         actual_hazard, potential_hazard): Add comments.
5188         (insn_cost): Use cost -1 as undefined value.  Remove
5189         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5190         pipeline interface.
5191         (ready_element, ready_remove): New functions for automaton
5192         interface.
5193         (schedule_insn): Add new code for automaton pipeline interface.
5194         (queue_to_ready): Add new code for automaton pipeline interface.
5195         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5196         (debug_ready_list): Print newline when the queue is empty.
5197         (max_issue): New function for automaton pipeline interface.
5198         (choose_ready): New function.
5199         (schedule_block): Add new code for automaton pipeline interface.
5200         Print ready list before scheduling each insn.
5201         (sched_init): Add new code for automaton pipeline interface.
5202         Initiate insn cost by -1.
5203         (sched_finish): Free the current automaton state and finalize
5204         automaton pipeline interface.
5205
5206         * sched-rgn.c: Include target.h.
5207         (init_ready_list, new_ready, debug_dependencies): Add new code for
5208         automaton pipeline interface.
5209
5210         * sched-vis.c: Include target.h.
5211         (get_visual_tbl_length): Add code for automaton interface.
5212         (target_units, print_block_visualization):  Add comments.
5213
5214         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5215         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5216         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5217         (getruntime.o, genautomata.o): New entries.
5218         (genattrtab.o): Add new dependency file genattrtab.h.
5219         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5220         (getruntime.o, hashtab.o): New entries for canadian cross.
5221
5222         * doc/md.texi: Description of automaton based model.
5223
5224         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5225         Add comments.
5226         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5227         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5228         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5229         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5230         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5231         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5232         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5233         hook descriptions.
5234         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5235         MAX_DFA_ISSUE_RATE): New macro descriptions.
5236
5237         * doc/contrib.texi: Add dfa based scheduler contribution.
5238
5239         * doc/gcc.texi: Add more information about genattrtab.
5240
5241 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
5242
5243         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
5244         an RTL basic block.
5245
5246 2001-08-27  Richard Henderson  <rth@redhat.com>
5247
5248         * function.c (expand_function_end): Don't init arg_pointer_save_area.
5249         (get_arg_pointer_save_area): New.  Create an init it here.
5250         (fix_lexical_addr): Use it.
5251         * function.h: Declare it.
5252         * builtins.c (expand_builtin_setjmp_receiver): Use it.
5253         * stmt.c (expand_nl_goto_receiver): Use it.
5254
5255 2001-08-27  Richard Henderson  <rth@redhat.com>
5256
5257         * final.c (final_scan_insn): Don't enter APP_ON mode for
5258         empty asm strings.
5259
5260         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
5261         alignment for assemble_integer for DW_EH_PE_aligned.
5262         * except.c (output_function_exception_table): Likewise.
5263
5264 2001-08-26  Andreas Jaeger  <aj@suse.de>
5265
5266         * c-tree.h: Add prototyp for c_sizeof_nowarn.
5267
5268 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
5269
5270         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
5271
5272 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
5273
5274         * config/rs6000/rs6000.c (mask_operand): Rewrite without
5275         bit-shifting loop.
5276         (mask64_operand): Likewise.
5277         (rldic_operand): Delete.
5278         (includes_lshift64_p): Delete.
5279         (includes_rldic_lshift_p): New function.
5280         (includes_rldicr_lshift_p): New function.
5281         (print_operand): Don't call rldic_operand in case 'W'.
5282         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
5283         (includes_lshift64_p): Remove.
5284         (includes_rldic_lshift_p): Declare.
5285         (includes_rldicr_lshift_p): Declare.
5286         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
5287         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
5288         Replace match_operand rldic_operand predicate with
5289         const_int_operand.  Replace includes_lshift64_p condition with
5290         includes_rldic_lshift_p.
5291         <ashldi3_internal 64 bit rldicr patterns>: New.
5292
5293 2001-08-27  Andreas Jaeger  <aj@suse.de>
5294
5295         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5296         * errors.c: Likewise.
5297         * final.c: Likewise.
5298         * dwarf2asm.c: Likewise.
5299         * doprint.c (checkit): Likewise.
5300         * diagnostic.c: Likewise.
5301         * collect2.c: Likewise.
5302         * calls.c: Likewise.
5303         * c-semantics.c (build_stmt): Likewise.
5304         * c-format.c (status_warning): Likewise.
5305         * c-errors.c (pedwarn_c99): Likewise.
5306         * builtins.c (validate_arglist): Likewise.
5307         * config/pj/pj.c (pj_printf): Likewise.
5308         * fix-header.c: Likewise.
5309         * gcc.c: Likewise.
5310         * gcov.c (fnotice): Likewise.
5311         * gensupport.c (message_with_line): Likewise.
5312         * mips-tfile.c: Likewise.
5313         * protoize.c (notice): Likewise.
5314         * read-rtl.c (fatal_with_file_and_line): Likewise.
5315         * rtl-error.c: Likewise.
5316         * tradcpp.c: Likewise.
5317         * tree.c: Likewise.
5318         * cp/tree.c (build_min_nt): Likewise.
5319         (build_min): Likewise.
5320         * cp/lex.c: Likewise.
5321         * cp/errfn.c: Likewise.
5322         * cp/rtti.c (create_pseudo_type_info): Likewise.
5323
5324 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
5325
5326         * df.c (df_uses_record): Return after recording all uses
5327         in ASM_OPERANDS.
5328
5329 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
5330
5331         * df.c (df_insn_modify): Realloc the INSN table here, if
5332         necessary, here, too.
5333
5334 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
5335
5336         * config/mips/mips.c (mips_function_value): Handle complex return
5337         values.
5338
5339 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
5340
5341         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
5342         unshared.
5343         * reload.c (make_memloc): Copy result if it is still
5344         reg_equiv_memory_loc[regno] on return.
5345         (subst_reloads) [ENABLE_CHECKING]: Check that none of
5346         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
5347         reg_equiv_mem are modified by the substitutions.
5348
5349 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5350
5351         * predict.c (expensive_function_p): New.
5352         * rtl.h (expensive_function_p): Declare.
5353         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
5354         (use_fast_prologue_epilogue): New static variable.
5355         (expand_prologue): Set it; emit short prologues if unset.
5356         (expand_epilogue): Likewise.
5357
5358 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5359
5360         * config.gcc: Add stormy16-*-elf case.
5361         * config/stormy16/stormy-abi: New file.
5362         * config/stormy16/stormy16-lib2.c: New file.
5363         * config/stormy16/stormy16-protos.h: New file.
5364         * config/stormy16/stormy16.c: New file.
5365         * config/stormy16/stormy16.h: New file.
5366         * config/stormy16/stormy16.md: New file.
5367         * config/stormy16/t-stormy16: New file.
5368
5369 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5370
5371         * i386.h (no-accumulate-outgoing-args): Use proper mask.
5372
5373 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
5374
5375         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
5376         descriptor members are pointer size, not constant 4.
5377         * config/rs6000/rs6000.md (define_splits): Remove more unused
5378         constraints.
5379
5380 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5381
5382         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5383
5384 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
5385
5386         * cp/rtti.c (VPARAMS): Fix parameter.
5387
5388 2001-08-24  Zack Weinberg  <zackw@panix.com>
5389
5390         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
5391         to zero.
5392         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
5393         to switch.
5394         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
5395         in if controlling use of insv.
5396         (extract_bit_field): Likewise, for extv and extzv.
5397
5398 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
5399
5400         * i386.md (movcc peep2): Fix load of 0.
5401
5402 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5403
5404         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
5405         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
5406
5407 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
5408
5409         * c-pragma.h: Move weak_syms and weak_decls...
5410         * varasm.c: ...here.  Now static.
5411         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
5412         depend on HANDLE_PRAGMA_WEAK.
5413
5414         * c-common.c (c_alignof, c_alignof_expr): Move here...
5415         * c-typeck.c: ...from here.
5416         * c-tree.h, c-common.h: Adjust.
5417
5418 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
5419
5420         * config/ia64/ia64.c (rws_update): If !pred, set write_count
5421         instead of incrementing it.
5422
5423         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
5424         asm ready, don't try to move them all into the same array element.
5425
5426 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5427
5428         * function.c (thread_prologue_and_epilogue_insns): Avoid
5429         fallthru flag on edge to exit.
5430
5431         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
5432
5433         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
5434         dead edges.
5435
5436 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5437
5438         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
5439         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
5440         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
5441         Remove prototype.
5442
5443 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
5444
5445         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
5446         replace "GNU CC" with "GCC".
5447
5448 2001-08-23  Richard Henderson  <rth@redhat.com>
5449
5450         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
5451         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
5452         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
5453         Need GR between FR and not GR_AND_FR.
5454         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
5455         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
5456         AR regs before GR regs.
5457         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
5458         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
5459         (REGISTER_MOVE_COST): Update.
5460         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
5461
5462 2001-08-23  Richard Henderson  <rth@redhat.com>
5463
5464         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
5465         a register class.
5466
5467 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
5468
5469         * reload1.c (emit_reload_insns): Don't look for notes
5470         on a NULL store_insn.
5471
5472 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5473
5474         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
5475         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
5476         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
5477         format specifier warnings.
5478         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
5479
5480 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
5481
5482         * config/i386/i386-protos.h: Correct declaration of
5483         i386_pe_asm_named_section.
5484
5485 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5486
5487         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
5488         variable i.
5489         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
5490
5491 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5492
5493         * cpperror.c (print_location): Don't show _Pragma.
5494         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
5495         and file change callback generation here.
5496         (stack_include_file): Update use of cpp_push_buffer.
5497         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
5498         (struct cpp_buffer): Remove type, pfile members.
5499         * cppinit.c (cpp_handle_option): Use free_chain.
5500         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
5501         (skip_escaped_newlines, get_effective_char, lex_percent): Take
5502         a cpp_reader rather than a cpp_buffer.
5503         (skip_escaped_newlines, get_effective_char, skip_block_comment,
5504         skip_line_comment, parse_string, lex_percent, lex_dot,
5505         _cpp_lex_token): Update accordingly.
5506         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
5507         generation here.
5508         (cpp_push_buffer): Update prototype.
5509         (run_directive): Update use of cpp_push_buffer.
5510         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
5511         handle_assertion): Update use of run_directive.
5512         * cpplib.h (enum cpp_buffer_type): Remove.
5513         (cpp_push_buffer): Update prototype.
5514         * fix-header.c (read_scan_file): Update.
5515
5516 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5517
5518         * gcc.c (struct prefix_list): Change prefix to const char *.
5519
5520 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5521
5522         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
5523
5524 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
5525
5526         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
5527         from a new MEM.
5528
5529         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
5530         a squeezable note.
5531         * rtl.h: Adjust.
5532         * ifcvt.c (dead_or_predicable): Adjust.
5533         * loop.c (find_and_verify_loops): Adjust.
5534         * stmt.c (expand_end_case): Adjust.
5535         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
5536         head and end insn pointers in the basic block, not just local copies.
5537         (merge_blocks_move_predecessor_nojumps): Likewise.
5538
5539 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
5540
5541         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
5542         bitmap.h, builtin-types.def, builtins.c, builtins.def,
5543         c-aux-info.c, c-common.c, c-common.def, c-common.h,
5544         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
5545         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
5546         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
5547         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
5548         conditions.h, config.gcc, configure.frag, configure.in,
5549         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
5550         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
5551         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
5552         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
5553         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
5554         emit-rtl.c, errors.c, errors.h, except.c, except.h,
5555         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
5556         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
5557         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
5558         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
5559         gencheck.c, gencodes.c, genconfig.c, genemit.c,
5560         genextract.c, genflags.c, gengenrtl.c, genmultilib,
5561         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
5562         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
5563         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
5564         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
5565         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
5566         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
5567         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
5568         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
5569         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
5570         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
5571         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
5572         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
5573         params.h, predict.c, predict.def, predict.h, prefix.c,
5574         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
5575         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
5576         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
5577         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
5578         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
5579         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
5580         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
5581         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
5582         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
5583         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
5584         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
5585         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
5586         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
5587         xcoffout.h: replace "GNU CC" with "GCC".
5588
5589 2001-08-21  Richard Henderson  <rth@redhat.com>
5590
5591         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
5592         (final_scan_insn): Consider jump tables data even if we have no
5593         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
5594         ADDR_VEC_ALIGN.
5595         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
5596         (ASM_OUTPUT_CASE_END): Remove.
5597         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
5598         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
5599         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5600
5601 2001-08-21  Richard Henderson  <rth@redhat.com>
5602
5603         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
5604         at barrier insns.  Emit stop bits before barriers.
5605
5606         * flow.c (flow_find_cross_jump): Don't consider unconditional
5607         return insns for commoning.
5608
5609         * final.c (compute_alignments): Fix typo.
5610
5611         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
5612         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
5613         (store_bit_field): Use mode_for_extraction more places.
5614         (extract_bit_field): Likewise.
5615
5616 2001-08-21  Zack Weinberg  <zackw@panix.com>
5617
5618         * caller-save.c: Don't include insn-codes.h.
5619         (reg_save_code, reg_restore_code): Make arrays of int.
5620         All uses updated to match.
5621         (insert_save, insert_restore): No need to initialize "code"
5622         variable upon declaration.
5623         * Makefile.in: update dependencies; fix typo in clean rule.
5624
5625 2001-08-21  Richard Henderson  <rth@redhat.com>
5626
5627         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
5628         (merge_if_block): Handle fallout from same.
5629
5630 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5631
5632         * builtins.c (type_to_class): Fix typo in last change.
5633
5634 2001-08-21  Richard Henderson  <rth@redhat.com>
5635
5636         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
5637         ia64_asm_output_label.
5638
5639         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
5640         copy of gp while the real gp register contains garbage.
5641
5642 2001-08-21  Zack Weinberg  <zackw@panix.com>
5643
5644         * expmed.c (mode_for_extraction): New function.
5645         (store_bit_field, extract_bit_field): Use it.
5646         * expr.h: Prototype it and provide an enum for its first argument.
5647
5648         * combine.c, function.c, recog.c: Don't include insn-codes.h.
5649         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
5650         and digging through the insn_data tables.
5651         * Makefile.in: Update dependencies.
5652
5653 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5654
5655         * cppfiles.c (stack_include_file): line-map.c now handles include
5656         depth.
5657         (handle_missing_handler): Similarly.
5658         (_cpp_execute_include): Similarly.
5659         (_cpp_pop_file_buffer): Similarly.
5660         * cpphash.h (struct cpp_reader): Remove system_include_depth,
5661         buffer_stack_depth and include_depth.
5662         * cpplib.c (do_include_common): line-map.c now handles include depth.
5663         (cpp_push_buffer): Similarly.
5664         (_cpp_pop_buffer): Similarly.
5665         * cppmacro.c (builtin_macro): Update.
5666         * line-map.c (init_line_maps): Set depth.
5667         (add_line_map): Increment "used" earlier.  Update and use the
5668         include depth.
5669         (trace_include): Use the include depth.
5670         * line-map.h (struct line_maps): New member depth.
5671
5672 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5673
5674         * cppfiles.c (stack_include_file): Don't handle -H here.
5675         * cppinit.c (cpp_start_read): Set include tracing after
5676         cpp_post_options and after stacking the main file.
5677         * line-map.c (trace_include): New.
5678         (init_line_maps, add_line_map): Update.
5679         * line-map.h (struct line_maps): New member trace_includes.
5680
5681 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5682
5683         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
5684         * cppfiles.c (stack_include_file): Only stack a file if there
5685         is something to do.  Return a boolean indicating whether a
5686         buffer was stacked or not.
5687         (_cpp_execute_include): Similarly.
5688         (_cpp_read_file): Similarly.
5689         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
5690
5691 2001-08-21  Sam Steingold  <sds@gnu.org>
5692
5693         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
5694         (RECACHE): keep obufp_before_macroname up to date
5695
5696 2001-08-21  Zack Weinberg  <zackw@panix.com>
5697
5698         * stmt.c: Don't include insn-codes.h.
5699         (expand_end_case): Machine specific logic moved to expr.c.
5700         No need to worry about __builtin_classify_type.
5701         (check_for_full_enumeration_handling, emit_case_nodes):
5702         Kill #if 0 blocks.
5703
5704         * builtins.o (expand_builtin_classify_type): Split up so code
5705         can be shared with fold_builtin_classify_type.
5706         (type_to_class, fold_builtin_classify_type): New functions.
5707         (fold_builtins): Handle __builtin_classify_type.
5708
5709         * expr.c (do_tablejump): Now static.
5710         (case_values_threshold, try_casesi, try_tablejump): New;
5711         code mostly from stmt.c (expand_end_case).
5712         (expr.h): Update prototypes.
5713
5714         * Makefile.in (stmt.o): Update dependencies.
5715
5716 2001-08-21  Will Cohen  <wcohen@redhat.com>
5717
5718         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
5719         declaration of variable i.
5720         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
5721         declaration of variable i.
5722
5723 2001-08-21  Richard Henderson  <rth@redhat.com>
5724
5725         * crtstuff.c: Fix thinko last change.  Move list tails to start
5726         of CRT_END section.  Tidy ifdefs.
5727         (__EH_FRAME_BEGIN__): Always static for ELF.
5728         (__do_global_ctors_1): Rename from __frame_dummy.
5729         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
5730         name change; don't hide __EH_FRAME_BEGIN__.
5731
5732 2001-08-21  Richard Henderson  <rth@redhat.com>
5733
5734         * gdbinit.in: Move break on exit after break on fancy_abort.
5735
5736         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
5737         sized types.
5738
5739 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5740
5741         * cpphash.h (_cpp_push_next_buffer): New.
5742         * cppinit.c (do_includes): Remove.
5743         (push_include, free_chain, _cpp_push_next_buffer): New.
5744         (cpp_start_read): Use them to rework command line option handling.
5745         (cpp_handle_option): Combine handling of -include and -imacros.
5746         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
5747         appropriate.  Always insert missing \n at EOF.
5748         * cpplib.c (start_directive): Get the directive position right.
5749         * cppmain.c (cb_file_change): Always print the first line, unless
5750         preprocessed.
5751
5752 2001-08-20  Andreas Jaeger  <aj@suse.de>
5753
5754         * profile.c (compute_branch_probabilities): Remove extra new-line
5755         in error message.
5756         * flow.c (verify_flow_info): Likewise.
5757
5758 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5759
5760         * basic-block.h (basic_block): Add new field 'flags'.
5761         (BB_REACHABLE): Define.
5762         (expunge_block): Declare.
5763         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
5764         (EXIT_BLOCK_PTR): Ditto.
5765         (expunge_block): Remove static declaration.
5766         (cleanup_cfg): Clear bb->aux on every basic block.
5767         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
5768         computing reachability.
5769         (delete_unreachable_blocks): Delete block b if b->flags has
5770         BB_REACHABLE unset.
5771
5772 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
5773
5774         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
5775
5776 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5777
5778         * sparc.c (sparc_variable_issue): Fix typo in last change.
5779
5780 2001-08-20  Richard Henderson  <rth@redhat.com>
5781
5782         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
5783
5784 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5785
5786         * pa.h (RETURN_IN_MEMORY): Improve comment.
5787
5788 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
5789
5790         * doc/invoke.texi (Profiling options): Clarify the interactions
5791         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
5792
5793 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
5794
5795         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
5796         command.
5797
5798 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5799
5800         * gcc.c (make_relative_prefix): Allocate a sufficiently large
5801         buffer.
5802
5803 2001-08-20  Richard Henderson  <rth@redhat.com>
5804
5805         * final.c (end_final): Fix typo last change.
5806
5807 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5808
5809         * cppinit.c (init_standard_includes): The returned buffer
5810         is already malloc-ed.
5811         * gcc.c (add_prefix): Similarly.
5812         * prefix.c (translate_name): Update to support clear buffer
5813         ownership rules.
5814         (update_path): Similarly.  Be sure to free any newly allocated
5815         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
5816         (tr): New function.
5817         * prefix.h (update_path): Update prototype and document.
5818         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
5819         up and update to new buffer ownership rules.
5820         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
5821
5822 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
5823
5824         * final.c (compute_alignments): New function.
5825         (init_insn_lengths): Do not care label_align.
5826         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
5827         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
5828         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
5829         (shorted_branches): Realloc label_align array; do
5830         not call init_insn_lengths; Do not care about loop alignments.
5831         * output.h (compute_alignments): Declare.
5832         * toplev.c (rest_of_compilation): Call compute_alignments.
5833         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
5834
5835         * predict.c (block_info_def): Add npredecesors, remove nvisited;
5836         change visited to tovisit.
5837         (propagate_freq): Use faster traversing algorithm.
5838         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
5839         to tovisit; reverse meaning.
5840
5841         * predict.c (struct block_info_def): Remove nvisited.
5842         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
5843         (estimate_bb_frequencies): Call mark_dfs_back_edges.
5844
5845 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
5846
5847         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
5848         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
5849         (TARGET_FUSED_MADD): New.
5850         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
5851         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
5852         the multiply-add instructions.
5853
5854 2001-08-19  Richard Henderson  <rth@redhat.com>
5855
5856         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
5857         is aligned to pointer size.
5858
5859 2001-08-19  Richard Henderson  <rth@redhat.com>
5860
5861         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
5862         display markers during final schedule.
5863
5864 2001-08-19  Richard Henderson  <rth@redhat.com>
5865
5866         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
5867
5868 2001-08-19  Richard Henderson  <rth@redhat.com>
5869
5870         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
5871         in the same string.
5872         (ASM_NAME_TO_STRING): Remove.
5873         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
5874         in the same string.  Remove support for expressions.
5875
5876 2001-08-19  Richard Henderson  <rth@redhat.com>
5877
5878         * config/i386/i386.md (tablejump): Make an expander; handle
5879         pic relative addressing here.
5880         (tablejump_1): Rename from tablejump_pic.
5881         (casesi): Remove.
5882
5883 2001-08-19  Richard Henderson  <rth@redhat.com>
5884
5885         * regclass.c (fix_register): Fix typo.
5886
5887 2001-08-18  Richard Henderson  <rth@redhat.com>
5888
5889         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
5890         (struct _Unwind_Context): Expand br_loc to hold it.
5891         (uw_frame_state_for): Handle leaf functions better.
5892         (uw_update_reg_address): Update for br_loc change.
5893
5894 2001-08-18  Richard Henderson  <rth@redhat.com>
5895
5896         * crtstuff.c: Move list heads before code that uses them.
5897         (__JCR_LIST__): Remove initial null.
5898         (frame_dummy, __frame_dummy): Do java registration here ...
5899         (__do_global_ctors_aux): ... not here.
5900
5901         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
5902         (__do_global_dtors_aux): Update to match.
5903         (__JCR_LIST__, __do_jv_register_classes): New.
5904         (.init): Call it.
5905         * config/ia64/crtend.asm (__JCR_END__): New.
5906         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
5907         instead of an indirect LTOFF22 reloc.
5908
5909 2001-08-18  Richard Henderson  <rth@redhat.com>
5910
5911         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
5912         * regclass.c (init_reg_sets_1): Fix typo.
5913         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
5914         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
5915         (ia64_compute_frame_size): Make ar.unat live when in use.
5916         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
5917         for ar.pfs; remove ar.unat handling.
5918         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
5919         call-saved.
5920         (PREDICATE_CODES): Add ar_pfs_reg_operand.
5921         * config/ia64/ia64-protos.h: Update decls.
5922         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
5923         (sibcall_pic): Likewise.
5924
5925 2001-08-18  Richard Henderson  <rth@redhat.com>
5926
5927         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
5928         pred_rel_mutex when searching for insn_group_barrier.
5929         * config/ia64/ia64.md (cycle_display): Combine the expander
5930         and insn patterns.
5931
5932         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
5933         bit before asm as needed.
5934
5935 2001-08-18  Richard Henderson  <rth@redhat.com>
5936
5937         * timevar.def (TV_MACH_DEP): New.
5938         * toplev.c (rest_of_compilation): Use it.
5939         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
5940
5941 2001-08-18  Zack Weinberg  <zackw@panix.com>
5942
5943         * unwind-dw2.c (execute_stack_op): Add default aborts to
5944         the inner switches to prevent warnings.
5945
5946 2001-08-18  Richard Henderson  <rth@redhat.com>
5947
5948         * timevar.h (struct timevar_time_def): Change element type to float.
5949         (ticks_to_msec, clocks_to_msec): Likewise.
5950         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
5951         (get_time): Likewise.
5952         (timevar_print): Adjust zero check and printing to match.
5953
5954 2001-08-18  Zack Weinberg  <zackw@panix.com>
5955
5956         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
5957         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
5958         Eliminate overfull or underfull hboxes.
5959
5960 2001-08-18  Zack Weinberg  <zackw@panix.com>
5961
5962         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
5963
5964 2001-08-18  Zack Weinberg  <zackw@panix.com>
5965
5966         * haifa-sched.c: Convert to target hooks.  Macros replaced
5967         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
5968         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
5969         MD_SCHED_FINISH, and HAVE_cycle_display.
5970         * target-def.h (TARGET_SCHED_ADJUST_COST,
5971         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
5972         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
5973         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
5974         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
5975         New hook #defines to be overridden.
5976         (TARGET_SCHED): Bring them all together.
5977         (TARGET_INITIALIZER): Update.
5978         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
5979         instead of 'struct rtx_def *' throughout.
5980         (struct sched): New set of hooks for the scheduler.
5981         * Makefile.in (haifa-sched.o): Depend on target.h.
5982         * doc/tm.texi: Document the new scheduler hooks, together in
5983         their own section, instead of scattered around.
5984         Fix a bunch of underfull/overfull hboxes.
5985
5986         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
5987         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
5988         sparc.h: Don't define any of the old scheduler macros.
5989
5990         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
5991         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
5992         sparc.c: Create hook functions from code extracted from
5993         corresponding target header, or make existing hooks static, as
5994         appropriate.  Set the appropriate entries in targetm.
5995
5996         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
5997         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
5998         rs6000-protos.h, s390-protos.h, sparc-protos.h:
5999         Remove prototypes for functions which are now static.
6000
6001         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
6002         related gunk; the Haifa scheduler is now the only choice.
6003
6004 2001-08-18  Zack Weinberg  <zackw@panix.com>
6005
6006         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
6007         * genopinit.c: Put floating point divide insns in sdiv_optab.
6008         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
6009         * config/gofast.h, config/c4x/c4x.h,
6010         config/ia64/hpux_longdouble.h, config/mips/mips.h,
6011         config/pa/long_double.h, config/rs6000/sysv4.h,
6012         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
6013         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
6014         (init_optabs): Use init_optabv for overflow-trapping optabs.
6015         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
6016         cmp_optab RTX codes so have_insn_for can find them.
6017
6018         * optabs.c (expand_simple_binop, expand_simple_unop,
6019         have_insn_for, gen_sub3_insn): New interfaces.
6020         * expr.h: Prototype new functions.
6021         (enum optab_methods): Move here from optabs.h.
6022
6023         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
6024         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
6025         Use new functions instead of working directly with optabs.
6026         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
6027         unroll.c: Don't include optabs.h.
6028         * caller-save.c, combine.c, function.c, stmt.c: Just include
6029         insn-codes.h, not optabs.h.
6030         * Makefile.in: Update dependencies.
6031
6032         * combine.c (make_compound_operation, simplify_comparison):
6033         Fix typos testing for this or that instruction.
6034
6035 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
6036
6037         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
6038         generating libgcc.a.
6039
6040 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6041
6042         * except.c (TYPE_HASH): Delete.
6043
6044         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
6045         HOST_WIDE_INT.
6046
6047         * tree.c (TYPE_HASH): Delete.
6048
6049         * tree.h (TYPE_HASH): Define.
6050
6051 2001-08-18  Graham Stott  <grahams@redhat.com>
6052
6053         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
6054         define_split.
6055         (adddi3_internal_2+2): Likewise.
6056         (eh_set_lr_di+1): Likewise.
6057
6058 2001-08-17  Richard Henderson  <rth@redhat.com>
6059
6060         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6061         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
6062         * dwarf2asm.c: ... here.
6063         * dwarfout.c: Remove them.
6064
6065         * varasm.c (assemble_integer): Add align parameter.
6066         (assemble_real, output_constant, output_constructor): Likewise.
6067         * output.h: Update decls.
6068         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
6069         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
6070         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
6071         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
6072         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
6073         Update all callers.
6074
6075         * final.c (end_final): Abort profile block generation if we
6076         havn't layed it out properly.
6077         * output.h (assemble_eh_integer): Remove stale decl.
6078         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
6079         (min_align): New.
6080         (assemble_integer): Handle unaligned data.
6081         (assemble_real): Abort on unaligned data.
6082         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
6083         anything useful.
6084         (default_dtor_section_asm_out_destructor): Use assemble_align.
6085         (default_named_section_asm_out_constructor): Likewise.
6086         (default_ctor_section_asm_out_constructor): Likewise.
6087         * config/darwin.c (machopic_asm_out_constructor): Likewise.
6088         (machopic_asm_out_destructor): Likewise.
6089         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
6090         (nextstep_asm_out_destructor): Likewise.
6091         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
6092         (vms_asm_out_destructor): Likewise.
6093
6094 2001-08-17  Richard Henderson  <rth@redhat.com>
6095
6096         * config/mips/iris6.h (TARGET_IRIX6): New.
6097         (current_section_name, current_section_flags): New.
6098         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
6099         (MAX_OFILE_ALIGNMENT): New.
6100         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
6101         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
6102         (copy_file_data): Split out from
6103         (mips_asm_file_end): ... here.
6104         (mips_asm_file_start): Remove extra .section directive.  Use
6105         tmpfile instead of mips_make_temp_file.
6106         (mips_unique_section): Use const char * as needed for warnings.
6107         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
6108         re-add align parameter.
6109         (iris6_asm_named_section): New.
6110         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
6111         (iris6_asm_output_align, iris6_section_align_1): New.
6112         (iris6_asm_file_start, iris6_asm_file_end): New.
6113         * config/mips/mips-protos.h: Update decls.
6114
6115 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
6116
6117         * doc/install.texi (Install GCC): Add links to build status pages.
6118         (Specific): Ditto.
6119         (Final install): Ditto; request updates for specific info
6120
6121 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6122
6123         * cpperror.c (print_location):  Don't take a file name; use the
6124         line map instead.
6125         (_cpp_begin_message): Similarly.
6126         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6127         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6128         (cpp_pedwarn_with_file_and_line): Remove.
6129         * cppfiles.c (stack_include_file): Update; set filename to stdin
6130         here when appropriate.
6131         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
6132         (_cpp_begin_message): Don't take a file name.
6133         * cppinit.c: Add comment.
6134         * cpplex.c: Fix end-of-directive indicator.
6135         * cpplib.c: Don't include intl.h.
6136         (run_directive, do_diagnostic): Update.
6137         (do_line): Update to not use nominal_fname.
6138         (cpp_push_buffer): Don't take a filename.
6139         * cpplib.h (struct ht): Remove.
6140         (cpp_push_buffer): Don't take a filename.
6141         (cpp_pedwarn_with_file_and_line): Remove.
6142         * cppmacro.c (struct cpp_macro): Remove file.
6143         (builtin_macro): Update.
6144         (_cpp_create_definition): Update.
6145         * cppmain.c: Correct comment.
6146         * fix-header.c (read_scan_file): Update.
6147
6148 2001-08-17  Kazu Hirata  <kazu@hxi.com>
6149
6150         * sbitmap.c: Fix comment formatting.
6151         * sched-deps.c: Likewise.
6152         * sibcall.c: Likewise.
6153         * simplify-rtx.c: Likewise.
6154         * ssa.c: Likewise.
6155         * ssa-ccp.c: Likewise.
6156         * stor-layout.c: Likewise.
6157         * timevar.c: Likewise.
6158         * toplev.c: Likewise.
6159         * unwind-dw2.c: Likewise.
6160         * unwind-dw2-fde.c: Likewise.
6161         * varasm.c: Likewise.
6162
6163 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6164
6165         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
6166         or larger than an integer in memory.
6167
6168 2001-08-17  Zack Weinberg  <zackw@panix.com>
6169
6170         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
6171         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
6172         * rtl.h: Don't forward-declare union tree_node here.  Don't
6173         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
6174         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6175         and tree respectively.
6176         * tree.h: Don't forward-declare struct rtx_def here.  Don't
6177         typedef tree here.  Change all uses of struct rtx_def *,
6178         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
6179         and tree respectively.
6180
6181 2001-08-17  Richard Henderson  <rth@redhat.com>
6182
6183         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
6184         config/mips/openbsd.h: Fix typos last change.
6185
6186 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6187
6188         * doc/invoke.texi (Optimize Options): The default for
6189         -finline-limit is 600.
6190
6191 2001-08-17  Richard Henderson  <rth@redhat.com>
6192
6193         * varasm.c (text_section): Allow TEXT_SECTION to override the
6194         printing of TEXT_SECTION_ASM_OP.
6195         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
6196         (DATA_SECTION, BSS_SECTION): Remove.
6197         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
6198         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
6199         Rename from s/_NAME//.
6200         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
6201         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
6202         (TEXT_SECTION): ... here.  New.
6203         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
6204         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
6205         * config/mips/openbsd.h: Likewise.
6206         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
6207         (mips_asm_file_end): Likewise test.
6208         (mips_output_function_epilogue): Likewise.  Switch back to data
6209         section after emitting the function.
6210
6211         * doc/tm.texi (Sections): Document TEXT_SECTION.
6212
6213 2001-08-17  Richard Henderson  <rth@redhat.com>
6214
6215         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
6216         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
6217
6218 2001-08-17  Richard Henderson  <rth@redhat.com>
6219
6220         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
6221         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
6222         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
6223         Add aligned attribute.
6224
6225 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
6226
6227         * config/sh/sh.md: Add modes to unspecs in first insn to match
6228         those in the second.
6229
6230         * Makefile.in: Fix collect2 copy for Cygwin.
6231
6232 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
6233
6234         Install the proper patch.
6235         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6236         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6237         (expand_function_start): Likewise.
6238         * stmt.c (expand_decl): Likewise.
6239         * varasm.c (make_decl_rtx): Likewise.
6240
6241 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6242
6243         * final.c: Undo my previous accidental checkin.
6244         * output.h: Likewise.
6245         * tm.texi: Likewise.
6246
6247 2001-08-16  Richard Henderson  <rth@redhat.com>
6248
6249         * varasm.c (named_section_flags): Remove align parameter.
6250         * varasm.c, dwarf2out.c: Update all callers.
6251         * output.h: Update prototypes.
6252
6253         * target.h (target.asm_out.named_section): Remove align parameter.
6254         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
6255         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
6256         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
6257         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
6258         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
6259
6260         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
6261         (get_named_section_flags, set_named_section_flags): New.
6262         (named_section_flags): Use them.
6263         (named_section): Do decl vs section flags check here...
6264         (default_section_type_flags): ... not here.
6265         (init_varasm_once): Create in_named_htab.
6266         (resolve_unique_section): Mark reloc unused.
6267
6268 2001-08-16  Richard Henderson  <rth@redhat.com>
6269
6270         * varasm.c (force_const_mem): Keep pool alignment in bits.
6271         (output_constant_pool): Use assemble_align.
6272
6273 2001-08-16  Zack Weinberg  <zackw@panix.com>
6274
6275         * doc/tm.texi: Remove extra @table command.
6276
6277 2001-08-16  Zack Weinberg  <zackw@panix.com>
6278
6279         * final.c (shorten_branches): Clear the end of the label_align
6280         array only if we made it larger.  Break up messy expressions
6281         for clarity.
6282
6283         * diagnostic.c (internal_error): Check for error recursion
6284         before doing ICE suppression.
6285
6286         * timevar.c: Timing variables now count in milliseconds.
6287         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
6288         (get_time): Not here.
6289         (timevar_print): Don't print any timer whose user, cpu, and
6290         wall times are all zero as displayed.
6291         * timevar.h: Update comment aboout units.  Make timevar
6292         counters unsigned.
6293
6294 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
6295
6296         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
6297         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
6298         (expand_function_start): Likewise.
6299         * stmt.c (expand_decl): Likewise.
6300         * varasm.c (make_decl_rtx): Likewise.
6301
6302 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
6303
6304         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
6305         (finalize_record_size): Don't set TYPE_USER_ALIGN.
6306
6307 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6308
6309         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
6310         variables.
6311
6312 2001-08-16  Andreas Jaeger  <aj@suse.de>
6313
6314         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
6315         prototype.
6316
6317 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
6318
6319         * rtl.h (only_sets_cc0_p): New prototype.
6320         * jump.c (sets_cc0_p): Handle INSN.
6321         (only_sets_cc0_p): New function.
6322         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
6323         (tidy_fallthru_edge): Likewise.
6324         * integrate.c (copy_insn_list): Likewise.
6325         * unroll.c (unroll_loop): Likewise.
6326         (copy_loop_body): Likewise.
6327
6328 2001-08-15  Jason Eckhardt  <jle@redhat.com>
6329
6330         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
6331
6332 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6333
6334         * predict.c (struct block_info_def): Remove nvisited.
6335         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
6336         (estimate_bb_frequencies): Call mark_dfs_back_edges.
6337
6338         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
6339         (ix86_adjust_cost): Teach scheduler that latency to load operand can
6340         be masked.
6341
6342 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
6343
6344         * predict.def: Update hitrates.
6345
6346 2001-08-15  Richard Henderson  <rth@redhat.com>
6347
6348         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
6349
6350 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
6351
6352         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
6353         note from its associated jump.
6354
6355 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6356
6357         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
6358         also on 64-bit s390x targets.
6359
6360 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
6361
6362         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
6363         function.
6364         (arm_expand_prologue): Handled nested functions which take a
6365         variable argument list.
6366         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
6367         macro with an invocation of
6368         arm_compute_initial_elimination_offset.
6369         * config/arm/arm-protos.h: Prototype
6370         arm_compute_initial_elimination_offset.
6371
6372 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6373
6374         * doc/install.texi (Specific, avr): Fix markup.
6375         (Specific, c4x): Ditto.
6376
6377 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6378
6379         * predict.c (dump_prediction): Change `bool' parameter to `int'.
6380
6381 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
6382
6383         * Makefile.in (OBJS): Add rtl-error.o
6384         (rtl-error.o): New rule.
6385         (diagnostic.o): Adjust dependency.
6386         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
6387         error_for_asm, _fatal_insn, _fatal_insn_not_found,
6388         warning_for_asm): Move to...
6389         rtl-error.c: ...here.  New file.
6390
6391 2001-08-14  Richard Henderson  <rth@redhat.com>
6392
6393         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
6394         if USING_SJLJ_EXCEPTIONS.
6395
6396 2001-08-14  Steve Ellcey <sje@cup.hp.com>
6397
6398         * tlink.c (scan_linker_output): Check string for unsatisfied in
6399         addition to undefined and unresolved.
6400
6401 2001-08-14  Graham Stott  <grahams@redhat.com>
6402
6403         * libgcc2.c (*): Replace EH_FRAME_SECTION with
6404         EH_FRAME_SECTION_NAME.
6405
6406 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
6407
6408         * genattrtab.c (simplify_test_exp_in_temp): New function.
6409         (simplify_test_exp): Avoid explicit use of temporary obstack.
6410         (simplify_cond, insert_right_side, evaluate_eq_attr,
6411         simplify_and_tree, simplify_or_tree, eliminate_known_true):
6412         Use simplify_test_exp_in_temp.
6413         (optimize_attrs): Iterate until expression stabilizes.
6414
6415 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
6416
6417         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
6418         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
6419
6420 2001-08-13  Richard Henderson  <rth@redhat.com>
6421
6422         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
6423         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
6424         * config/arm/conix-elf.h: Likewise.
6425
6426 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6427
6428         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
6429         in gcc.c.
6430         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6431
6432         * gcse.c (hash_scan_set): Expressions that are set as part of
6433         jump instructions are not available.
6434
6435 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6436
6437         * config/s390/s390.c (print_operand, s390_function_prologue,
6438         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
6439
6440 2001-08-13  Richard Henderson  <rth@redhat.com>
6441
6442         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
6443         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
6444         * doc/tm.texi (Exception Region Output): Document it.
6445
6446 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
6447
6448         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
6449         DWARF2 instead of stabs by default.
6450
6451 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6452
6453         * config/rs6000/rs6000.c: Include optabs.h.
6454
6455 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
6456
6457         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
6458         save/restore routines.
6459         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
6460
6461 2001-08-13  Andreas Jaeger  <aj@suse.de>
6462
6463         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
6464         the english is correct.
6465
6466 2001-08-13  Zack Weinberg  <zackw@panix.com>
6467
6468         * expr.h: Split out optab- and libfunc-related code to...
6469         * optabs.h, libfuncs.h: ... these new headers.
6470
6471         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
6472         (OPTABS_H): New.
6473         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
6474         dependencies.
6475         * mkconfig.sh: Don't include insn-codes.h from config.h.
6476
6477         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
6478         enum insn_code is available.  Move reload_in_optab and
6479         reload_out_optab array declarations to optabs.h.
6480         * regmove.c (gen_add3_insn): Move to optabs.c, export from
6481         there, prototype in expr.h.
6482         * gencodes.c: Cleanup: zap global variables, don't use
6483         printf where puts will do, don't bother defining MAX_INSN_CODE
6484         which nothing uses, let CODE_FOR_nothing get its value implicitly.
6485
6486         * genemit.c, genopinit.c: Include optabs.h in generated file.
6487         * genoutput.c: Include insn-codes.h in generated file.
6488         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
6489         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
6490         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
6491         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
6492         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
6493         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
6494         Include optabs.h.
6495         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
6496         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
6497         config/m88k/m88k.c, config/sparc/sparc.c:
6498         Include libfuncs.h.
6499         * reload.c: Include expr.h and optabs.h before reload.h.
6500         * config/alpha/alpha.c: Include tree.h before reload.h.
6501         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
6502         and reload.h in that order.
6503         * config/sparc/sparc.c: Include debug.h.
6504         * recog.c: Include insn-codes.h.
6505
6506 2001-08-13  Andreas Jaeger  <aj@suse.de>
6507
6508         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
6509         s390*linux.
6510
6511 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6512
6513         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
6514         * gcc.c (init_spec): Fix typo in comment.
6515         * varasm.c (data_section): Fix typo in comment.
6516
6517 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
6518
6519         * predict.c (dump_prediction): New argument "USED".
6520         (combine_predictions_for_insn): Determine the used heuristics,
6521         output the case no heuristic applied.
6522         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
6523
6524 2001-08-13  Andreas Jaeger  <aj@suse.de>
6525
6526         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
6527         register %rip.
6528
6529 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6530
6531         * jump.c: Fix formatting.
6532
6533 2001-08-13  Kazu Hirata  <kazu@hxi.com>
6534
6535         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
6536         length.
6537
6538 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
6539
6540         * loop.c (check_dbra_loop): Use condjump_label to compute
6541         jump_label.
6542
6543         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
6544         to better document the files they're in.
6545
6546 2001-08-12  Zack Weinberg  <zackw@panix.com>
6547
6548         * recog.h (struct insn_operand_data): Shrink 'mode' field
6549         to 16 bits.
6550
6551 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6552
6553         * gcc.c: Fix comment formatting.
6554         * gccspec.c: Likewise.
6555         * gcov.c: Likewise.
6556         * gcse.c: Likewise.
6557         * genemit.c: Likewise.
6558         * gengenrtl.c: Likewise.
6559         * genrecog.c: Likewise.
6560         * gensupport.c: Likewise.
6561         * ggc-page.c: Likewise.
6562         * global.c: Likewise.
6563         * graph.c: Likewise.
6564         * ifcvt.c: Likewise.
6565         * integrate.c: Likewise.
6566         * lcm.c: Likewise.
6567         * libgcc2.c: Likewise.
6568         * loop.c: Likewise.
6569         * mbchar.c: Likewise.
6570         * optabs.c: Likewise.
6571         * predict.c: Likewise.
6572         * prefix.c: Likewise.
6573         * profile.c: Likewise.
6574         * protoize.c: Likewise.
6575         * real.c: Likewise.
6576         * recog.c: Likewise.
6577         * regclass.c: Likewise.
6578         * regmove.c: Likewise.
6579         * reg-stack.c: Likewise.
6580         * reload1.c: Likewise.
6581         * resource.c: Likewise.
6582         * rtlanal.c: Likewise.
6583         * rtl.c: Likewise.
6584
6585 2001-08-12  Kazu Hirata  <kazu@hxi.com>
6586
6587         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
6588         a tree representing a constant is passed to the macro.
6589
6590 2001-08-12  Richard Henderson  <rth@redhat.com>
6591
6592         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
6593         (rs6000_elf_asm_out_destructor): New.
6594         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
6595         (DTORS_SECTION_ASM_OP): Remove.
6596         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6597         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
6598
6599 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
6600
6601         Revert:
6602         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6603         * gcc.c (set_collect_gcc_options): New function, split out from
6604         main.
6605         Ignore elided switches.
6606         (do_spec_1): Invoke before executing command.
6607         (set_input): Export.
6608         Move declaration ...
6609         * gcc.h (set_input): ... here.
6610         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6611         file.
6612
6613 2001-08-12  Richard Henderson  <rth@redhat.com>
6614
6615         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
6616         thinko wrt TARGET_RELOCATABLE.
6617
6618 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6619
6620         * fix-header.c (cb_file_change): Update prototype.
6621
6622 2001-08-11  Zack Weinberg  <zackw@panix.com>
6623
6624         * toplev.c (set_float_handler): Make static.
6625         * toplev.h: Don't prototype set_float_handler.
6626
6627         * simplify-rtx.c: Don't include setjmp.h.
6628         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
6629         New functions.
6630         (simplify_unary_operation, simplify_binary_operation): Use them,
6631         via do_float_handler.
6632
6633         * fold-const.c: Don't include setjmp.h.
6634         (exact_real_inverse_1): New function.
6635         (exact_real_inverse): Use it, via do_float_handler.
6636
6637         * varasm.c: Don't include setjmp.h.
6638         (assemble_real_1): New function.
6639         (assemble_real): Use it, via do_float_handler.
6640         Call internal_error if we get a trap here.
6641
6642         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
6643         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
6644
6645 2001-08-11  Zack Weinberg  <zackw@panix.com>
6646
6647         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
6648         STACK_BOUNDARY if not already defined.
6649
6650         * calls.c, function.c, reload1.c, explow.c: Don't default
6651         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
6652         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
6653
6654         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
6655         to run-time test.
6656
6657         * doc/tm.texi: Document that STACK_BOUNDARY is required;
6658         clarify difference between it and PREFERRED_STACK_BOUNDARY.
6659
6660 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6661
6662         * cppmacro.c (enter_macro_context): Push macro expansions even
6663         if empty.
6664
6665 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6666
6667         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
6668         (rs6000_elf_section_type_flags): Actually return a value.
6669
6670 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6671
6672         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
6673         Clean up code: add missing comments and prototypes, fix warnings,
6674         remove obsolete code, fix spacing to conform to coding style.
6675
6676 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
6677
6678         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
6679         and TARGET_ASM_CLOSE_PAREN.
6680         (regclass_map): CC register belongs to class NO_REGS.
6681         (legitimize_pic_address): Don't generate unnecessary moves
6682         (to avoid confusing loop optimization).
6683         (check_and_change_labels): Replace jump_long by indirect_jump.
6684         (s390_final_chunkify): Don't start a new literal pool on section
6685         switch in 64-bit code.
6686         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
6687
6688         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
6689         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
6690         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
6691         modes correctly.
6692         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
6693         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
6694         (CONST_COSTS): Fixed incorrect costs.
6695
6696         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
6697         Use emit_jump instead of emit_jump_insn (gen_jump).
6698         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
6699         (to avoid confusing flow analysis).
6700         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
6701         (casesi, casesi_jump): New.
6702         (jump_long): Removed.  Functionality merged into indirect_jump.
6703         (indirect_jump): Accept address_operand, not just register_operand.
6704         (cjump_long, icjump_long): Use same logic as indirect_jump.
6705         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
6706         Fixed broken setjmp/longjmp handling.
6707         (do_builtin_setjmp_setup): Removed.
6708
6709         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
6710         broken GNU as versions that don't accept .quad with large
6711         negative values.  Use hexadecimal output instead.
6712         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
6713         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
6714         FUNCTION_EPILOGUE): Removed.  Now in targetm.
6715
6716         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
6717
6718         * config/s390/fixdfdi.h: Add missing copyright statement.
6719         Fix type conflicts on 64-bit.  Add missing SFmode routines.
6720
6721         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
6722         email address.
6723
6724 2001-08-11  Richard Henderson  <rth@redhat.com>
6725
6726         * rtl.h (REG_EH_RETHROW): Remove.
6727         * rtl.c (reg_note_name): Update.
6728         * combine.c (distribute_notes): Don't check for it.
6729
6730 2001-08-11  Richard Henderson  <rth@redhat.com>
6731
6732         * combine.c (distribute_notes): Place REG_SETJMP.
6733
6734 2001-08-11  Richard Henderson  <rth@redhat.com>
6735
6736         * doc/extend.texi (Arrays and pointers implementation): Discourage
6737         relying on sign-extension of pointers.
6738
6739 2001-08-11  H.J. Lu <hjl@gnu.org>
6740
6741         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
6742         in_dtors.
6743         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
6744         RDATA_SECTION_ASM_OP.
6745
6746 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6747
6748         * doc/install.texi (Specific, c4x): Fix cross-reference to the
6749         main manual to work both for info and HTML versions.
6750
6751 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6752             Matt Kraai <kraai@alumni.carnegiemellon.edu>
6753
6754         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
6755         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
6756         (struct cpp_pool): New member first.
6757         * cppinit.c (append_include_chain): Plug memory leaks.
6758         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
6759         Allocate pragma structures from the (aligned) macro pool to
6760         avoid leaking memory.
6761         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
6762         so we don't leak memory.
6763         * hashtable.c (ht_destroy): New.
6764         * hashtable.h (ht_destroy): New.
6765
6766 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6767             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6768
6769         * c-lex.c (map): Make const.
6770         (cb_file_change): Update for callback passing a line map.
6771         Don't assume we have a previous map.  Remove sanity check
6772         about popping too many files.
6773         * cpperror.c (print_location): Make map const.
6774         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
6775         (cpp_make_system_header): Similarly.
6776         (search_from): Similarly.
6777         (_cpp_execute_include): Don't remember where we came from.
6778         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
6779         (struct cpp_reader): Make map const.
6780         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
6781         * cpplib.c (do_line): Update; line maps now hold sysp.
6782         (cpp_push_buffer): Similarly.
6783         (_cpp_do_file_change): Similarly; callback with map instead.
6784         (cpp_get_line_maps): Constify return value.
6785         (_cpp_pop_buffer): Update.
6786         * cpplib.h (struct cpp_file_change): Remove.
6787         (struct cpp_callbacks): Update.
6788         (cpp_get_line_maps): Constify return value.
6789         * cppmacro.c (_cpp_create_definition): Update.
6790         * cppmain.c (struct printer): Constify map.
6791         (maybe_print_line): Similarly.
6792         (print_line): Similarly.  Deduce flags 1 and 2 here.
6793         (cb_file_change): Update.
6794         * line-map.c (free_line_maps): Warn regardless.
6795         (add_line_map): Return pointer to const.  When passed NULL to_file
6796         with LC_LEAVE, use the obvious values for the return point so the
6797         caller doesn't have to figure them out.
6798         (lookup_line): Return pointer to const.
6799         (print_containing_files): Take pointer to const.
6800         * line-map.h (struct line_map): New members reason, sysp.
6801         (add_line_map): Return pointer to const.
6802         (lookup_line): Similarly.
6803         (print_containing_files): Take pointer to const.
6804
6805 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
6806             Richard Henderson  <rth@redhat.com>
6807
6808         * regmove.c (regmove_optimize): Avoid setting a register twice in
6809         a parallel set.
6810
6811 2001-08-10  Richard Henderson  <rth@redhat.com>
6812
6813         * doc/extend.texi (Arrays and pointers implementation): Document
6814         behavior of pointer/integer conversion.
6815
6816 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
6817
6818         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
6819
6820 2001-08-10  Richard Henderson  <rth@redhat.com>
6821
6822         * doc/extend.texi (C Implementation): New chapter.
6823         * doc/gcc.texi (Top): Link it in.
6824
6825 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
6826
6827         * doc/install.texi (Specific): Fix CVS merge botch.
6828
6829 2001-08-10  Richard Henderson  <rth@redhat.com>
6830
6831         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
6832         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
6833
6834 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
6835
6836         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
6837         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
6838         this macro is now required.
6839
6840         * cselib.c (cselib_process_insn), flow.c (propagate_block),
6841         loop.c (find_and_verify_loops), reload.c (reload): Check
6842         for rtx code of CALL_INSN, not CALL, when deciding if we
6843         need to check for REG_SETJMP note.
6844
6845         * gcse.c (compute_hash_table, compute_store_table): Update
6846         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
6847         logic.
6848
6849         * config/avr/avr.c: Fix typo.
6850         * config/convex/convex.c (expand_movstr): Use adjust_address.
6851         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
6852         variable.
6853         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
6854         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
6855         Fix typo.
6856         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
6857         Do define STACK_BOUNDARY.
6858         * config/i370/i370.c: Include expr.h.
6859         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
6860         config/pa/som.h, config/v850/v850.h: Take in_ctors and
6861         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
6862         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
6863         * config/m88k/m88k.c: Include c-tree.h after expr.h.
6864         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
6865         * config/romp/romp.c: Include expr.h after tree.h.
6866         Include toplev.h.
6867         (output_fpop): Use xmalloc, not oballoc.
6868         * config/we32k/we32k.c: Include expr.h.
6869
6870 2001-08-10  Kazu Hirata  <kazu@hxi.com>
6871
6872         * config/h8300/h8300.h: Fix formatting.
6873
6874 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
6875
6876         * c-common.h (RETURN_NULLIFIED_P): Lose.
6877         * c-semantics.c (genrtl_return_stmt): Don't check it.
6878
6879 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6880
6881         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
6882         (mips_annotate_frame_insn): New function.
6883         (mips_emit_frame_related_store): New function.
6884         (save_restore_insns): Don't mark instructions that set up the base
6885         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
6886         the store instructions instead.
6887         (mips_expand_prologue): If the stack size is moved into a temporary
6888         register, do not mark that move as frame-related.  Add a
6889         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
6890
6891 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6892
6893         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
6894         stack slot as unchanging if current_function_calls_eh_return.
6895
6896 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
6897
6898         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
6899         access the second half of the TFmode scratch operand.
6900
6901 2001-08-10  Anthony Green  <green@redhat.com>
6902
6903         * java/class.c (emit_register_classes): Conditionalize code on
6904         JCR_SECTION_NAME.
6905
6906 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6907
6908         * doc/install.texi (Specific, avr): Fix cross-reference to the
6909         main manual to work both for info and HTML versions.
6910
6911 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6912
6913         * stmt.c (expand_null_return_1): Remove code to generate simple returns
6914         and "use_goto" argument.
6915         (expand_null_return, expand_value_return): Update all callers.
6916         * function.c (expand_function_end): Remove code to generate simple
6917         return.
6918         * config/vax/vax.md (epilogue): New expander for function return.
6919         * doc/md.texi (epilogue): Remove "if defined".
6920
6921 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
6922
6923         * Makefile.in: Partially revert my previous change:
6924         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
6925         of the hashtab.o and safe-ctype.o rules.
6926
6927 2001-08-09  Richard Henderson  <rth@redhat.com>
6928
6929         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
6930         (USE_COLLECT2): Remove duplicate definition.
6931         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
6932         (use_collect2): Remove dead code.
6933         * configure.in (use_collect2): Remove will_use_collect2 and
6934         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
6935         * configure: Rebuild.
6936
6937         * target.h (targetm.asm_out.constructor): New.
6938         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
6939         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
6940         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
6941         * varasm.c (in_ctors, in_dtors): New.
6942         (assemble_constructor, assemble_destructor): Remove.
6943         (default_stabs_asm_out_destructor): New.
6944         (default_named_section_asm_out_destructor): New.
6945         (dtors_section, default_dtor_section_asm_out_destructor): New.
6946         (default_stabs_asm_out_constructor): New.
6947         (default_named_section_asm_out_constructor): New.
6948         (ctors_section, default_ctor_section_asm_out_constructor): New.
6949         * output.h: Update declarations.
6950         * c-decl.c (c_expand_body): Use target hooks instead of
6951         assemble_constructor and assemble_destructor.
6952         * profile.c (output_func_start_profiler): Likewise.
6953         * objc/objc-act.c (finish_objc): Likewise.
6954         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
6955         for the constructor.
6956         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
6957
6958         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
6959         (DTORS_SECTION_ASM_OP): Likewise.
6960         (__CTOR_LIST__): Use attribute section when possible.
6961         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
6962
6963         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
6964         ASM_OUTPUT_CONSTRUCTOR.
6965
6966         * config/darwin.c (machopic_asm_out_constructor): New.
6967         (machopic_asm_out_destructor): New.
6968         * config/darwin-protos.h: Update declarations.
6969         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6970         (ASM_OUTPUT_DESTRUCTOR): Remove.
6971         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6972         * config/nextstep.c (nextstep_asm_out_constructor): New.
6973         (nextstep_asm_out_destructor): New.
6974         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
6975         (ASM_OUTPUT_DESTRUCTOR): Remove.
6976         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6977         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
6978         ASM_OUTPUT_*STRUCTOR.
6979         * config/i386/aix386ng.h: Likewise.
6980
6981         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
6982         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
6983         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
6984         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
6985         * config/lynx.h: Likewise.
6986         * config/netware.h: Likewise.
6987         * config/psos.h: Likewise.
6988         * config/alpha/alpha-interix.h: Likewise.
6989         * config/alpha/elf.h: Likewise.
6990         * config/arc/arc.h: Likewise.
6991         * config/arm/aof.h: Likewise.
6992         * config/arm/coff.h: Likewise.
6993         * config/arm/elf.h: Likewise.
6994         * config/c4x/c4x.h: Likewise.
6995         * config/h8300/h8300.h: Likewise.
6996         * config/i386/cygwin.h: Likewise.
6997         * config/i386/djgpp.h: Likewise.
6998         * config/i386/i386-coff.h: Likewise.
6999         * config/i386/i386-interix.h: Likewise.
7000         * config/i386/sco5.h: Likewise.
7001         * config/i386/vsta.h: Likewise.
7002         * config/i386/win32.h: Likewise.
7003         * config/i960/i960-coff.h: Likewise.
7004         * config/ia64/sysv4.h: Likewise.
7005         * config/m68hc11/m68hc11.h: Likewise.
7006         * config/m68k/coff.h: Likewise.
7007         * config/m68k/mot3300.h: Likewise.
7008         * config/m88k/m88k.h: Likewise.
7009         * config/mcore/mcore-pe.h: Likewise.
7010         * config/mcore/mcore.h: Likewise.
7011         * config/mips/elf.h: Likewise.
7012         * config/mips/elf64.h: Likewise.
7013         * config/mips/iris6.h: Likewise.
7014         * config/pa/pa64-hpux.h: Likewise.
7015         * config/rs6000/sysv4.h: Likewise.
7016         * config/sh/sh.h: Likewise.
7017         * config/sparc/litecoff.h: Likewise.
7018
7019         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
7020         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
7021         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7022         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7023         (ASM_OUTPUT_DESTRUCTOR): Remove.
7024         * config/a29k/a29k.c: Move include of tree.h.
7025         * config/a29k/udi.h: Delete file.
7026         * config/alpha/alpha.c (vms_asm_out_constructor): New.
7027         (vms_asm_out_destructor): New.
7028         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
7029         (EXTRA_SECTION_FUNCTIONS): Likewise.
7030         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7031         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7032         * config/c4x/c4x.c: Move include of tree.h.
7033         * config/clipper/clipper.c (clix_asm_out_constructor): New.
7034         (clix_asm_out_destructor): New.
7035         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7036         (ASM_OUTPUT_DESTRUCTOR): Remove.
7037         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7038         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7039         (TARGET_ASM_CONSTRUCTOR): New.
7040         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
7041         (sco_asm_out_constructor): New.
7042         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
7043         * config/i386/svr3gas.h: Remove stack grows up code.
7044         Remove code duplicated from i386/sysv3.h.
7045         (TARGET_ASM_CONSTRUCTOR): New.
7046         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
7047         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
7048         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7049         (TARGET_ASM_CONSTRUCTOR): New.
7050         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
7051         (m68hc11_asm_out_destructor): New.
7052         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
7053         (TARGET_ASM_DESTRUCTOR): New.
7054         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
7055         * config/m68k/dpx2.h: Properly undef all the bits inherited from
7056         config/svr3.h pertaining to section manipulation.
7057         * config/m68k/dpx2g.h: Remove #if 0 code.
7058         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
7059         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
7060         (ASM_OUTPUT_CONSTRUCTOR): Remove.
7061         (TARGET_ASM_CONSTRUCTOR): New.
7062         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
7063         (m88k_svr3_asm_out_constructor): New.
7064         (m88k_svr3_asm_out_destructor): New.
7065         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7066         (ASM_OUTPUT_DESTRUCTOR): Remove.
7067         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7068         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
7069         * config/rs6000/aix.h: Likewise.
7070         * config/mips/rtems64.h: Don't undef removed constructor related bits.
7071         * config/mips/vxworks.h: Likewise.
7072         * config/rs6000/lynx.h: Likewise.
7073         * config/sh/elf.h: Likewise.
7074         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
7075         (DTORS_SECTION_ASM_OP): New.
7076         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7077         (ASM_OUTPUT_DESTRUCTOR): Remove.
7078         * config/sparc/sol2-sld-64.h: Likewise.
7079         * config/vax/vax.c (vms_asm_out_constructor): New.
7080         (vms_asm_out_destructor): New.
7081         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
7082         (ASM_OUTPUT_DESTRUCTOR): Remove.
7083         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7084
7085         * doc/tm.texi (@node Initialization): Update.
7086
7087 2001-08-09  Richard Henderson  <rth@redhat.com>
7088
7089         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
7090         (__do_global_dtors_aux): Use gp-relative static data to avoid
7091         one dynamic relocation.
7092         (__do_frame_setup): Register Java classes.
7093         * config/alpha/crtend.asm (__JCR_END__): New.
7094
7095 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
7096
7097         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
7098         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
7099         (GEN, STAGESTUFF): Add new files.
7100         (insn-constants.h, s-constants, tm-preds.h, s-preds,
7101         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
7102         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
7103         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
7104         as well as insn-codes.h and insn-flags.h in config.h; and no
7105         extra headers in tconfig.h and hconfig.h.
7106
7107         * gencodes.c: Eliminate code to generate predicate declarations
7108         or #defines for md-file constants.
7109         * genconstants.c, genpreds.c: New files.
7110
7111         * i386.md: Re-order guard expressions such that TARGET_64BIT
7112         comes first, when this permits better optimization.  Add
7113         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
7114         why this is desirable.
7115
7116 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
7117
7118         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
7119         (find_fde_for_dso): Remove.
7120         (_Unwind_IteratePhdrCallback): New.
7121         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
7122         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
7123
7124 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7125
7126         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
7127         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
7128
7129 2001-08-09  Graham Stott  <grahams@redhat.com>
7130
7131         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
7132         (vis_no_unit): Use it.
7133         (visualize_no_unit): Add the insn only if room exists.
7134
7135 2001-08-09  Graham Stott  <grahams@redhat.com>
7136
7137         * predict.c (estimate_probability): Replace magic numbers with
7138         appropriate enumeration.
7139
7140 2001-08-09  Graham Stott  <grahams@redhat.com>
7141
7142         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
7143         parameter.
7144         (EXTRACT_FLAGS): Likewise.
7145
7146 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
7147
7148         * config/mips/mips.c    (mips_legitimate_address_p): Check for
7149         CONST_INT in last patch.
7150
7151 2001-08-08  Anthony Green  <green@redhat.com>
7152
7153         * java/class.c (emit_register_classes): Use assemble_jcr if
7154         possible.  Keep the original mechanism as a fallback.
7155         * defaults.h (JCR_SECTION_NAME): Define if we have named section
7156         and weak symbol support.
7157         * crtstuff.c (__JCR_LIST__): Define.
7158         (__JCR_END__): Define.
7159         (_Jv_RegiserClasses): Define weak symbol if possible.
7160         (__do_global_ctors_aux): Register classes for ELF targets with
7161         weak symbol support.
7162
7163 2001-08-08  Kazu Hirata  <kazu@hxi.com>
7164
7165         * dbxout.c: Fix comment formatting.
7166         * dependence.c: Likewise.
7167         * df.c: Likewise.
7168         * diagnostic.c: Likewise.
7169         * dominance.c: Likewise.
7170         * doprint.c: Likewise.
7171         * dwarf2out.c: Likewise.
7172         * dwarfout.c: Likewise.
7173         * emit-rtl.c: Likewise.
7174         * except.c: Likewise.
7175         * explow.c: Likewise.
7176         * expmed.c: Likewise.
7177         * expr.c: Likewise.
7178         * flow.c: Likewise.
7179         * fold-const.c: Likewise.
7180         * function.c: Likewise.
7181
7182 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7183
7184         * global.c (retry_global_alloc): Avoid shadowing allocno.
7185
7186 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
7187
7188         * except.c (remove_fixup_regions): Fix typo.
7189
7190 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
7191
7192         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
7193         unsigned HOST_WIDE_INT to avoid warning.
7194         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
7195         * flow.c (set_block_for_new_insns): Likewise.
7196
7197 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
7198
7199         * sibcall.c (return_value_pseudo): New static variable.
7200         (skip_copy_to_return_value): Handle return_value_pseudo.
7201         (call_ends_block_p): Ensure that return_value_pseudo is set.
7202         (optimize_sibling_and_tail_recursive_call): Discover the
7203         load of pseudo return value in alternate exit block.
7204
7205 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7206
7207         * calls.c (ECF_ALWAYS_RETURN): New constant.
7208         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
7209         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
7210         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
7211         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
7212         * rtl.c (reg_note_name): New name.
7213         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
7214
7215 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
7216
7217         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
7218
7219 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
7220
7221         * alias.c (get_alias_set): Return a previously calculated
7222         alias set for a VAR_DECL.
7223         * function.c (gen_mem_addressof): Calculate the alias set before
7224         touching the RTL.
7225
7226 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
7227
7228         * predict.def: Set hitrates according our experimental run.
7229
7230 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
7231
7232         * i386.h (HARD_REGNO_RENAME_OK): New macro.
7233
7234 2001-08-08  H.J. Lu <hjl@gnu.org>
7235
7236         * config/mips/mips.c (mips_unique_section): New. Copied from
7237         config/mips/elf.h.
7238
7239         * config/mips/mips-protos.h (mips_unique_section): New
7240         prototype.
7241
7242         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
7243
7244         * config/mips/little.h: New. Generic little endian mips
7245         targets. Only mips*-*-linux* is converted to use it so far.
7246
7247         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
7248         (WCHAR_TYPE): Defined
7249         (WCHAR_TYPE_SIZE): Likewise.
7250         (INIT_SUBTARGET_OPTABS): Likewise.
7251         (BSS_SECTION_ASM_OP): Likewise.
7252         (SBSS_SECTION_ASM_OP): Likewise.
7253         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7254         (ASM_DECLARE_OBJECT_NAME): Likewise.
7255         (UNIQUE_SECTION): Likewise.
7256         (EXTRA_SECTIONS): Likewise.
7257         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
7258         (ASM_OUTPUT_DESTRUCTOR): Likewise.
7259         (ASM_OUTPUT_DEF): Likewise.
7260         (HANDLE_SYSV_PRAGMA): Removed.
7261         (NO_IMPLICIT_EXTERN_C): Likewise.
7262         (TARGET_MEM_FUNCTIONS): Likewise.
7263         (STARTFILE_SPEC): Likewise.
7264         (ENDFILE_SPEC): Likewise.
7265         (LIB_SPEC): Likewise.
7266         (INVOKE__main): Likewise.
7267         (CTOR_LIST_BEGIN): Likewise.
7268         (CTOR_LIST_END): Likewise.
7269         (DTOR_LIST_BEGIN): Likewise.
7270         (DTOR_LIST_END): Likewise.
7271         (SET_ASM_OP): Likewise.
7272         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7273         (ASM_OUTPUT_DEF): Likewise.
7274         (ASM_OUTPUT_IDENT): Likewise.
7275
7276         * config/mips/mips.h (ASM_SPEC): Undefine before define.
7277         (CPLUSPLUS_CPP_SPEC): Likewise.
7278         (ASM_APP_ON) Redefine only if not defined.
7279         (ASM_APP_OFF): Likewise.
7280         (ASM_OUTPUT_SOURCE_LINE): Likewise.
7281         (ASM_OUTPUT_IDENT): Likewise.
7282
7283         * config.gcc: Update tm_file for Linux/mips.
7284
7285 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
7286
7287         * cselib.c (cselib_record_sets): If insn is predicated, turn
7288         sources into IF_THEN_ELSEs.
7289
7290         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
7291         Turn into define_insn_and_split.
7292
7293         * sched-deps.c: Include "cselib.h".
7294         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
7295         Use cselib to turn memory addresses into VALUEs.
7296         (sched_analyze): Call cselib_init/cselib_finish if necessary.
7297         * sched-int.h (struct sched_info): New member USE_CSELIB.
7298         * sched-ebb.c (ebb_sched_info): Initialize it.
7299         * sched-rgn.c (rgn_sched_info): Likewise.
7300         * Makefile.in (sched-deps.o): Update dependencies.
7301
7302         * cselib.h (cselib_subst_to_values): Declare.
7303         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
7304         that have no value and autoincs to be handled by generating a new
7305         dummy value.
7306
7307 2001-08-08  Graham Stott  <grahams@redhat.com>
7308
7309         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
7310         within fixed length SEQUENCE.
7311
7312 2001-08-08  Graham Stott  <grahams@redhat.com>
7313
7314         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
7315         (diagnostic_prefixing_rule): Likewise.
7316         (diagnostic_line_cutoff): Likewise.
7317         (diagnostic_kind_count): Likewise.
7318
7319 2001-08-08  Graham Stott  <grahams@redhat.com>
7320
7321         * alias.c (find_base_decl): Delete redundent assignment.
7322
7323 2001-08-08  Graham Stott  <grahams@redhat.com>
7324
7325         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
7326         (abs): Uppercase and paranthesize macro parameter.
7327         (MEM_DEPENDENCY): Add whitespace.
7328
7329 2001-08-08  Graham Stott  <grahams@redhat.com>
7330
7331         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
7332         failure check for CONST_INT
7333
7334 2001-08-08  Graham Stott  <grahams@redhat.com>
7335
7336         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
7337         (libcall_dead_p): Likewise.
7338
7339         (mark_used_regs): Constify fmt.
7340         (find_use_as_address): Likewise.
7341
7342 2001-08-08  Graham Stott  <grahams@redhat.com>
7343
7344         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
7345          parameter.
7346
7347 2001-08-08  Graham Stott  <grahams@redhat.com>
7348
7349         * combine.c (combine_simplify_rtx): Update comment and
7350         remove erroneous test.
7351
7352 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7353
7354         * cppinit.c (cpp_finish): Pop the final buffer without comment.
7355         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
7356         take care to avoid multiple no-newline at EOF warnings in that
7357         case.
7358
7359 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
7360
7361         * calls.c (expand_call): Do not emit INSN_SETJMP note.
7362         (emit_library_call_value_1): Likewise.
7363         (emit_call_1): Emit REG_SETJMP note.
7364         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
7365         of INSN_SETJMP
7366         * cselib.c (cselib_process_insn): Likewise.
7367         * flow.c (propagate_block): Likewise.
7368         * loop.c (find_and_verify_loops): Likewise.
7369         * reload.c (find_equiv_regs): Likewise.
7370         * reload1.c (reload): Likewise.
7371         * resource.c (mark_referenced_resources,
7372         mark_set_resources): Likewise.
7373         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
7374         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
7375         * haifa-sched.c (unlink_other_notes): Likewise.
7376         (reemit_notes): Likewise.
7377         * sched-ebb.c (sched_ebb): Likewise.
7378         * sched-rgc.c (sched_region): Likewise.
7379         * rtl.c (note_insn_name): Likewise.
7380         (reg_note_name): Add REG_SETJMP
7381         * rtl.h (reg_note): Add REG_SETJMP.
7382         (insn_note): Remove NOTE_INSN_SETJMP.
7383
7384         * profile.c (branch_prob): Add fake edges for setjmp.
7385
7386 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
7387
7388         * config.gcc: Quote target_cpu_default2 correctly for
7389         powerpc*-*-* targets.
7390
7391 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7392
7393         * cpplib.h, line-map.h: Update comments.
7394         * cppmain.c (printer_init): Move inline.
7395         (maybe_print_line, print_line): Take a map pointer.
7396         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
7397         (cb_file_change): Don't use prior value of print.map.
7398
7399 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
7400
7401         * doc/install.texi: Document fine-grained multilib configuration.
7402
7403 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7404
7405         * rtlanal.c (find_first_parameter_load): Call note_stores
7406         only on the instructions.
7407
7408 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7409
7410         * alias.c (nonlocal_mentioned_p):
7411         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
7412         * calls.c (emit_call_1): Likewise.
7413         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
7414         * cselib.c (cselib_process_insn): Likewise.
7415         * df.c (df_insns_modify): Likewise.
7416         * flow.c (need_fake_edge_p): Likewise.
7417         (propagate_one_insn): Likewise.
7418         * haifa-sched.c (reemit_notes): Likewise.
7419         * integrate.c (copy_insn_list): Likewise.
7420         * jump.c (delete_prior_computation): Likewise.
7421         * local-alloc.c (validate_equiv_mem): Likewise.
7422         * loop.c (scan_loop): Likewise.
7423         * predict.c (estimate_probability): Likewise.
7424         * reload.c (reload): Likewise.
7425         * sched-deps (sched_analyze): Likewise.
7426         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
7427         * gcse.c (compute_hash_table): Likewise.
7428         (mark_call): Likewise.
7429         (store_killed_in_insn): Likewise.
7430
7431 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
7432
7433         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
7434
7435 2001-08-06  Richard Henderson  <rth@redhat.com>
7436
7437         * varasm.c (assemble_gc_entry): Remove.
7438         * output.h: Likewise.
7439
7440 2001-08-06  Richard Henderson  <rth@redhat.com>
7441
7442         * varasm.c (assemble_constructor): Take a symbol_ref and a
7443         priority instead of a bare string.  Move priority handling
7444         here from cp/decl2.c.
7445         * output.h: Update decls.
7446
7447         * c-decl.c (c_expand_body): Update calls to assemble_constructor
7448         and assemble_destructor.
7449         * profile.c (output_func_start_profiler): Likewise.
7450         * objc/objc-act.c (finish_objc): Likewise.
7451         (build_module_descriptor): Return the symbol not the symbol name.
7452
7453 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
7454
7455         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
7456         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
7457         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
7458         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
7459         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
7460         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
7461
7462 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7463
7464         * cpperror.c (print_containing_files): Moved to line-map.c.
7465         (print_location): line-map.c handles re-listing or otherwise.
7466         * cpphash.h (struct lexer_state): Remove next_bol.
7467         (struct cpp_buffer): Remove include_stack_listed.
7468         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
7469         Remove faked buffer handling.
7470         (_cpp_do_file_change): Tweak.
7471         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
7472         * cppmain.c (struct printer): Remove filename.
7473         (print_line, cb_file_change): Update accordingly.
7474         * line-map.c: Include intl.h.
7475         (init_line_maps): Initialize last_listed.
7476         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
7477         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
7478         (print_containing_files): New.
7479         * line-map.h (struct line_maps): New member last_listed.
7480         (print_containing_files, INCLUDED_FROM): New.
7481         * Makefile.in: Update.
7482         * po/POTFILES.in: Add line-map.c.
7483
7484 2001-08-06  Richard Henderson  <rth@redhat.com>
7485
7486         * except.c (convert_from_eh_region_ranges_1): Never mark
7487         USE or CLOBBER insns as throwing.
7488
7489         * expr.c (store_constructor): Don't clobber memory targets.
7490
7491 2001-08-06  Andreas Jaeger  <aj@suse.de>
7492
7493         * profile.c (branch_prob): Remove unused variable insn.
7494
7495         * Makefile.in (local-alloc.o): Add dependency on except.h.
7496
7497         * local-alloc.c: Include except.h for can_throw_internal prototype.
7498
7499 2001-08-06  Richard Henderson  <rth@redhat.com>
7500
7501         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
7502         * function.c (expand_main_function): Implement it.
7503         * doc/tm.texi: Document it.
7504
7505 2001-08-06  Stan Shebs  <shebs@apple.com>
7506
7507         * doc/install.texi: Document powerpc-*-darwin* details.
7508
7509 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
7510
7511         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
7512         (ASM_CPU_SPEC): Move back to rs6000.h
7513         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
7514
7515         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
7516
7517         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
7518         readded.
7519
7520         * config/rs6000/linux64.h: Ditto.
7521
7522         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7523         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
7524         nothing.
7525
7526         Remove accidently readded definitions of FUNCTION_PROLOGUE,
7527         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
7528
7529         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
7530         to rs6000.h
7531
7532 2001-08-05  Richard Henderson  <rth@redhat.com>
7533
7534         * local-alloc.c (update_equiv_regs): Do not move insns that
7535         can throw.
7536
7537 2001-08-05  Jan Hubicka  <jh@suse.cz>
7538
7539         * Makefile.in (reload1.o): Add dedendancy on except.h
7540         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
7541         prototypes.
7542         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
7543         indicating wehther edges has been cleaned up.
7544         * reload1.c: Inlucde except.h
7545         (fixup_abnormal_edges): Accept deleted insns.
7546         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
7547         after combine.
7548
7549 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7550
7551         * cpplib.c (do_line): Correct line number after pop_buffer.
7552
7553 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7554
7555         PR preprocessor/3824
7556         * line-map.c: Update comments.
7557         * line-map.h: Update comments.
7558         * tradcif.y: Don't consider large numbers unsigned.
7559
7560 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7561
7562         PR preprocessor/3081
7563         * c-lex.c (map): New.
7564         (cb_file_change): Update map and use it.
7565         (cb_def_pragma, cb_define, cb_undef): Use map and line.
7566         (c_lex): Update to use map.
7567         * cpperror.c (print_location): Move to using logical line numbers.
7568         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
7569         (cpp_make_system_header): Similarly.
7570         (_cpp_execute_include): Stop line numbering hacks.  Store the
7571         line we will return to.
7572         * cpphash.h (CPP_BUF_LINE): Remove.
7573         (struct cpp_buffer): Remove lineno and pseudo_newlines.
7574         Add map and return_to_line.
7575         (_cpp_do_file_change): Update.
7576         * cppinit.c (cpp_start_read): Update line kludge.
7577         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
7578         (trigraph_ok): Use logical line numbers for diagnostics.
7579         (skip_block_comment): Likewise.
7580         (skip_whitespace): Likewise.
7581         (skip_line_comment): Use pfile->line instead.
7582         (_cpp_lex_token): Update to use logical line numbering exclusively.
7583         Handle BOL locally.  Accept new lines in directives, but keep
7584         pfile->line decremented.  Diagnostics use logical lines.  Update
7585         directive handling.
7586         * cpplib.c (SEEN_EOL): New.
7587         (skip_rest_of_line, check_eol): Use it.
7588         (end_directive): Increase line number when accepting the newline
7589         at the end of a directive.
7590         (run_directive): Simplify.
7591         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
7592         (_cpp_do_file_change): Update to take buffer line number as an
7593         argument, and store the current map in the cpp_reader.  Remove
7594         line number kludges.
7595         (_cpp_do__Pragma): Restore output position after a _Pragma.
7596         (cpp_push_buffer): Don't set output line or lineno.
7597         (_cpp_pop_buffer): Transfer more info from a faked buffer.
7598         Remove line kludge.  Set output_line.
7599         * cppmacro.c (builtin_macro): Update handling of __LINE__.
7600         (parse_arg): Use logical lines.
7601         (save_lookahead_token): Save EOFs too now.
7602         * cppmain.c (struct printer): Fix comments.
7603         (printer_init): Simplify, let caller do errors.
7604         (scan_translation_unit, check_multiline_token, dump_macro): Update.
7605         (maybe_print_line): Simplify.
7606         (print_line): Don't print a linemarker if -P.
7607         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
7608         (cb_file_change): Simplify.
7609         * line-map.h (LAST_SOURCE_LINE): Fix.
7610         (CURRENT_LINE_MAP): New.
7611
7612 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
7613
7614         * doloop.c (doloop_modify_runtime): Properly compute number of
7615         iterations if loop was unrolled.
7616
7617         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
7618         if their CSELIB_VAL_PTRs are.
7619
7620         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
7621         (setup_spill_pointers): Initialize it.
7622         (spill_restore_mem): Set it.
7623         (do_spill, do_restore): Use it to add REG_INC note.
7624         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
7625
7626         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
7627         asms if other insns are available.
7628
7629         * config/ia64/ia64.c (condop_operator): New predicate.
7630         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
7631         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
7632         patterns.
7633
7634         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
7635         temporary register than directly using a MEM.
7636
7637 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7638
7639         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
7640         parameter in last change.
7641
7642 2001-08-04  Zack Weinberg  <zackw@panix.com>
7643
7644         * sparc.md: Don't use #if inside C test expression.
7645
7646 2001-08-04  Richard Henderson  <rth@redhat.com>
7647
7648         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
7649
7650 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7651
7652         * cpphash.h (struct cpp_reader): New member directive_line.
7653         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
7654         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
7655         do_pragma): Pass line to callbacks.
7656         (start_directive): Record line of directive.
7657         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
7658         cb_include): Similarly.
7659         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
7660         Similarly.
7661
7662 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7663
7664         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
7665         comment.
7666
7667 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7668
7669         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
7670
7671         * reload1.c (fixup_abnormal_edges): New static function.
7672         (reload): Use it.
7673
7674         * flow.c (need_fake_edge_p): New function.
7675         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
7676         avoid call insn to be very last insn in the insn stream.
7677
7678         * profile.c (branch_prob): Call flow_call_edges_add instead of
7679         doing that by hand; cleanup cfg to re-merge basic blocks once
7680         we are done.
7681
7682 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7683
7684         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
7685         are also on line-map.h.
7686         * cppfiles.c (stack_include_file): Update.
7687         * cpphash.h (struct cpp_buffer): New member return_at_eof.
7688         (_cpp_pop_buffer): New.
7689         * cppinit.c (cpp_destroy, cpp_finish): Update.
7690         (do_includes): Mark each buffer to return at EOF.
7691         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
7692         return as requested.
7693         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
7694         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
7695         * cpplib.h (cpp_pop_buffer): Remove.
7696         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
7697         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
7698         buffers.
7699         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
7700         to pop buffers.
7701         (do_preprocessing): Update.
7702         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
7703         * c-parse.in (_yylex): Similarly.
7704         * scan-decls.c (scan_decls): Similarly.
7705         * line-map.h: Update comments.
7706
7707         * objc/Make-lang.in (objc-act.o): Update dependencies.
7708
7709 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7710
7711         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
7712         and soft register for operand 0.
7713         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
7714
7715 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7716
7717         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
7718         register for operand 0.
7719         ("bitcmpqi_z_used"): Allow memory for operand 0.
7720         (split "bitcmpqi"): New split to handle address reg as operand 1.
7721
7722 2001-08-04  Andreas Jaeger  <aj@suse.de>
7723
7724         * gcse.c: Revert Daniel's last patch.
7725
7726 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7727
7728         * sparc-protos.h: Add prototypes for fp_zero_operand and
7729         reg_or_0_operand.
7730         * sh-protos.h: Add prototype for fpul_operand.
7731
7732 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
7733
7734         * doc/extend.texi (Other Builtins): Fix typo in last change.
7735
7736 2001-08-03  Richard Henderson  <rth@redhat.com>
7737
7738         * target.h (gcc_target): Add asm_out.named_section,
7739         section_type_flags, have_named_sections.
7740         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
7741         (TARGET_HAVE_NAMED_SECTIONS): New.
7742         (TARGET_SECTION_TYPE_FLAGS): New.
7743
7744         * Makefile.in (toplev.o): Depend on TARGET_H.
7745         (varasm.o, dbxout.o): Likewise.
7746         * c-common.c (decl_attributes): Check targetm.have_named_sections
7747         instead of ifdef ASM_OUTPUT_SECTION_NAME.
7748         * dbxout.c (dbxout_function_decl): Likewise.
7749         (dbxout_function_end): Likewise.
7750         * toplev.c (compile_file): Likewise.
7751         * varasm.c (exception_section): Likewise.
7752         * cp/decl2.c (finish_objects): Likewise.
7753
7754         * defaults.h (EH_FRAME_SECTION): Remove.
7755         (EH_FRAME_SECTION_ASM_OP): Remove.
7756         (EH_FRAME_SECTION_NAME): New.
7757         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
7758         (UNIQUE_SECTION_P): Remove.
7759         * dwarf2out.c (SECTION_FORMAT): Remove.
7760         (ASM_OUTPUT_SECTION): Remove.
7761         (output_call_frame_info): Use named_section_flags.
7762         (output_comp_unit, dwarf2out_start_source_file): Likewise.
7763         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
7764         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
7765         * varasm.c (in_eh_frame, eh_frame_section): Remove.
7766         (named_section_flags): New.
7767         (named_section): Use it and targetm.section_type_flags.
7768         (resolve_unique_section): New.
7769         (assemble_start_function): Use it.
7770         (asm_emit_uninitialised, assemble_variable): Likewise.
7771         (default_section_type_flags): New.
7772         (default_no_named_section, default_elf_asm_named_section): New.
7773         (default_coff_asm_named_section, default_pe_asm_named_section): New.
7774         * output.h: Update varasm.c decls.
7775         (SECTION_*): New flags.
7776
7777         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
7778         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
7779
7780         * config/elfos.h (UNIQUE_SECTION_P): Remove.
7781         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
7782         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
7783         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7784         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
7785         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
7786         * config/mips/elf.h, config/mips/elf64.h: Likewise.
7787         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
7788         * config/pa/pa64-hpux.h,
7789
7790         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
7791         (TARGET_ASM_NAMED_SECTION): New.
7792         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
7793         * config/alpha/vms.h, config/arm/coff.h: Likewise.
7794         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
7795         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
7796         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
7797         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
7798         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
7799         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
7800         * config/i386/sco5.h, config/i386/win32.h: Likewise.
7801         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
7802         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
7803         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
7804         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
7805         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
7806         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
7807         * config/sparc/sysv4.h: Likewise.
7808
7809         * config/nextstep.h: Error until named sections implemented.
7810
7811         * config/a29k/a29k.c (a29k_asm_named_section): New.
7812         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
7813         (vms_section_type_flags, vms_asm_named_section): New.
7814         * config/arm/arm.c (arm_elf_asm_named_section): New.
7815         * config/avr/avr.c (asm_output_section_name): Remove.
7816         * config/avr/avr-protos.h: Update.
7817         * config/c4x/c4x.c (c4x_asm_named_section): New.
7818         * config/h8300/h8300.c (h8300_asm_named_section): New.
7819         * config/i386/i386.c (sco_asm_named_section): New.
7820         * config/i386/winnt.c (SECTION_PE_SHARED): New.
7821         (i386_pe_section_type_flags): New.
7822         (i386_pe_asm_named_section): New.
7823         * config/i386/i386-protos.h: Update.
7824         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
7825         * config/mcore/mcore.c (mcore_asm_named_section): New.
7826         * config/mips/mips.c (iris6_asm_named_section): New.
7827         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
7828         instead of UNIQUE_SECTION_P.
7829         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
7830         (xcoff_asm_named_section): New.
7831         * config/sh/sh.c (sh_asm_named_section): New.
7832         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
7833
7834         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
7835         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
7836         (EH_FRAME_SECTION_NAME): New.
7837         (EXCEPTION_SECTION): New.
7838         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
7839         (DEBUG_*_SECTION): Remove.
7840         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
7841         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
7842         (EH_FRAME_SECTION_ASM_OP): Remove.
7843
7844         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
7845         (ASM_OUTPUT_SECTION_NAME): Remove.
7846         (TARGET_ASM_NAMED_SECTION): New.
7847         (TARGET_HAVE_NAMED_SECTIONS): New.
7848         (TARGET_SECTION_TYPE_FLAGS): New.
7849         (EH_FRAME_SECTION_ASM_OP): Remove.
7850         (EH_FRAME_SECTION_NAME): New.
7851
7852 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
7853
7854         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
7855         for complex expressions when cfun == 0.
7856         * doc/extend.texi: Document that __builtin_constant_p can be
7857         used in data initializers as well as functions.
7858
7859 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
7860
7861         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
7862         variable I locally, instead of expecting a declaration in the
7863         calling context.
7864
7865 2001-08-03  Richard Henderson  <rth@redhat.com>
7866
7867         * except.c (collect_one_action_chain): Add an explicit cleanup
7868         action if regions surrounding a catch were encoded entirely
7869         within the call-site entry.
7870
7871 2001-08-03  Richard Henderson  <rth@redhat.com>
7872
7873         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
7874         don't take REGNO of a non-register.
7875
7876 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7877
7878         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
7879         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
7880         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
7881         (__gthread_mutex_init_function): New function for mutex initialization.
7882
7883 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7884
7885         * Makefile.in: Revert screwed up commit.
7886
7887 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7888
7889         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
7890         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
7891         merged by linker script to get a final _exit().
7892         (__do_global_dtors): New for destructor handling in specific exit
7893         section.
7894         (__do_global_ctors): New for constructors in specific install section.
7895         (__map_data_section): Map data sections before running constructors.
7896         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
7897         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
7898         (DTORS_SECTION_ASM_OP): Likewise.
7899         (CTORS_SECTION_FUNCTION): Define to force a reference to
7900         __do_global_ctors.
7901         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
7902
7903 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7904
7905         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
7906
7907         * Makefile.in: Add df.h to gcse.c dependencies.
7908
7909 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7910
7911         * varasm.c (output_constant_def_contents): Use for the length of a
7912         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
7913         depending on which is larger.
7914
7915 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
7916
7917         * gcse.c: Include df.h for use as a dataflow analyzer.
7918         Remove regvec.
7919         Declaration of reg_set_info: gone.
7920         New df_analyzer variable used by store motion.
7921         (reg_set_info): Deleted.
7922         (mark_mem_regs): New function, analyze regs used by a mem.
7923         (store_ops_ok): Use dataflow analyzer results to determine if
7924         necessary regs are changed in the block.
7925         (find_moveable_store): Remove check for symbol ref, we can handle
7926         much more complex expressions now.
7927         (compute_store_table): Remove most of the code, it's unnecessary
7928         now that the dataflow analyzer records the info for us.
7929         (store_killed_after): Add parameter to say whether to do the
7930         store_ops_okay test, used to speed up testing when we already know
7931         the answer, and just want to know if the store itself was killed.
7932         (build_store_vector): Largely rewritten to calculate the various
7933         vectors properly, and somewhat optimized.
7934         (store_motion): Init the df_analyzer, get REG_DEF chains.
7935         Also handle trapping expressions (since mems almost always trap)
7936         (simple_mem): Redefine what a simple mem is.
7937
7938 2001-08-03  DJ Delorie  <dj@redhat.com>
7939
7940         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
7941         set from a constant part of the condition.
7942
7943 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
7944
7945         * mkdeps.c (deps_add_default_target): Make local variable
7946         ``start'' a const char pointer.
7947         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
7948
7949 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7950
7951         * doc/install.texi (Configuration): Fix markup.
7952         (Specific, i?86-*-udk): Likewise.
7953         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
7954         --with-gnu-ld.
7955         Document --enable-threads and --enable-libgcj status.
7956         (Specific, mips-sgi-irix*): Canonicalize triples.
7957         (Specific, mips-sgi-irix5): Warn about problems with this config.
7958         Mention required GNU as patch.
7959         Native assembler problems are fixed.
7960         (Specific, mips-sgi-irix6): Update O32 ABI support status.
7961         Document --enable-threads and --enable-libgcj status.
7962
7963 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
7964
7965         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
7966         of mkinstalldirs.
7967
7968 2001-08-03  Richard Henderson  <rth@redhat.com>
7969
7970         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
7971         constant data.
7972
7973 2001-08-03  Richard Henderson  <rth@redhat.com>
7974
7975         * rtlanal.c (find_first_parameter_load): Stop if we
7976         reach a CODE_LABEL at BOUNDARY.
7977
7978 2001-08-03  Richard Henderson  <rth@redhat.com>
7979
7980         * config/alpha/alpha.md (force_movdi): New insn.
7981         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
7982         Tweek FRP marking of VMS prologue insns.
7983         * config/alpha/vms.h (EPILOGUE_USES): New.
7984
7985 2001-08-02  Richard Henderson  <rth@redhat.com>
7986
7987         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
7988
7989 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
7990
7991         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
7992         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
7993         config/convex/convex.h, config/d30v/d30v.c,
7994         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7995         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
7996         config/mips/mips.h, config/mn10200/mn10200.h,
7997         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
7998         config/v850/v850.h, config/vax/openbsd.h,
7999         config/vax/openbsd1.h, config/vax/ultrix.h,
8000         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
8001         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
8002         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
8003         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
8004         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
8005         in comments and documentation.
8006
8007 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8008
8009         * line-map.c: New.
8010         * line-map.h: New.
8011         * Makefile.in (line-map.o): New.
8012         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
8013         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
8014         * cpperror.c (print_containing_files): Similarly.
8015         (print_location): Update.  Don't output a space before _Pragma.
8016         * cppfiles.c (stack_include_file): Set to line 1 immediately.
8017         (stack_include_filee, cpp_make_system_header): Update.
8018         (_cpp_execute_include): Get logical line number right for calling
8019         as-yet-unterminated #include.
8020         * cpphash.h (struct cpp_reader): Add line_maps.
8021         (_cpp_do_file_change): Update.
8022         * cppinit.c (cpp_create_reader): Initialize line maps.
8023         (cpp_destroy): Destroy line maps.
8024         (cpp_start_read): Get logical line number right.
8025         * cpplex.c (parse_string): Only warn once for multi-line strings.
8026         Use boolean variable for null warning.
8027         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
8028         already.
8029         (do_include_common): End the directive early.
8030         (do_line): Don't warn about out-of-range lines in preprocessed
8031         source.  Update.  Remove unused variables.
8032         (_cpp_do_file_change): Update for new line mapping.
8033         (pragma_cb): New typedef.
8034         (cpp_register_pragma): Stop looking ahead before calling the
8035         handler.  Clean up.
8036         (do_pragma_system_header): End directive early.
8037         (cpp_get_line_maps): New.
8038         (cpp_pop_buffer): Fudge logical line.  Update.
8039         * cpplib.h: Include line-map.h
8040         (enum cpp_fc_reason): Remove.
8041         (struct cpp_file_change): Update.
8042         (cpp_get_line_maps): New.
8043         * cppmain.c (struct_printer): New member map.
8044         (cb_file_change): Update for new mappings.
8045         * fix-header.c (cb_file_change): Similarly.
8046
8047 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
8048
8049         * Makefile.in (libgcc.mk): Define mkinstalldirs.
8050         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
8051
8052 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
8053
8054         * config/vax/vax.c: include expr.h.
8055
8056 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
8057
8058         * Makefile.in ($(srcdir)/configure): Only rebuild in
8059         maintainer mode.
8060         ($(srcdir)/config.in): Only define in maintainer mode.
8061         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
8062
8063 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
8064
8065         * doc/install.texi (Install GCC: Binaries): Update Bull info.
8066
8067 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8068
8069         * gcc.c (set_collect_gcc_options): New function, split out from
8070         main.
8071         Ignore elided switches.
8072         (do_spec_1): Invoke before executing command.
8073         (set_input): Export.
8074         Move declaration ...
8075         * gcc.h (set_input): ... here.
8076         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8077         file.
8078
8079 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
8080
8081         Kill -fhonor-std.
8082         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
8083         interaction.
8084         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
8085
8086 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
8087
8088         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
8089         for the unnamed instructions it expands to.
8090
8091 2001-08-02  Richard Henderson  <rth@redhat.com>
8092
8093         * regclass.c (call_really_used_regs): Conditionally define.
8094         (init_reg_sets_1): Don't use it if not defined.
8095         (fix_register): Similarly, don't set it.
8096
8097 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8098
8099         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
8100         Correct comment that had been missed in the previous change.
8101
8102 2001-08-01  Stan Shebs  <shebs@apple.com>
8103
8104         * config/darwin.c (machopic_stub_name): Try matching by name.
8105         (update_stubs): New function.
8106         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
8107         unconditionally.
8108
8109 2001-08-01  Richard Henderson  <rth@redhat.com>
8110
8111         * except.c (output_function_exception_table): Use assemble_align.
8112         * varasm.c (assemble_eh_label): Remove.
8113         (assemble_eh_align, assemble_eh_integer): Remove.
8114
8115 2001-08-01  Robert Lipe  <robertl@caldera.com>
8116
8117         * dwarfout.c: Remove reference to README.DWARF.
8118
8119 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
8120
8121         * regclass.c (call_really_used_regs): New array for registers which
8122         are actually used by a call.
8123         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
8124         new array.
8125         (fix_register): Set call_really_used too.
8126         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
8127         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
8128
8129 2001-08-01  Richard Henderson  <rth@redhat.com>
8130
8131         * read-rtl.c (read_name): Consider \r whitespace.
8132
8133 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
8134
8135         * config.gcc: Recognize powerpc-*-netbsd*.
8136
8137         * doc/install.texi (Host/target specific installation notes for
8138         GCC): Mention powerpc-*-netbsd*.
8139
8140         * config/rs6000/netbsd.h: New file.
8141         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
8142         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
8143         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
8144         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
8145         (TARGET_VERSION): Redefine.
8146
8147         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
8148         mcall-netbsd as a match for mcall-sysv.
8149         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
8150         (ncrti.S, ncrtn.S): New targets.
8151         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
8152
8153         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
8154         "netbsd' as a V4 ABI.
8155         (ASM_SPEC): Check for -mcall-netbsd.
8156         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
8157         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
8158         (LIB_SPEC, ENDFILE_SPEC): Ditto.
8159         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
8160         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
8161         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
8162         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
8163
8164         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
8165         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
8166
8167 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8168
8169         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
8170         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
8171         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
8172         including "unwind-pe.h".
8173
8174 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
8175
8176         * rs6000.md (define_splits): Kill unused constraints.
8177
8178 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
8179                               Jan Hubicka  <jh@suse.cz>
8180
8181         * function.c (thread_prologue_and_epilogue_insns): Kill code
8182         dealing with non-existent CFG.
8183
8184 2001-08-01  Kazu Hirata  <kazu@hxi.com>
8185
8186         * alias.c: Fix comment formatting.
8187         * bitmap.c: Likewise.
8188         * builtins.c: Likewise.
8189         * calls.c: Likewise.
8190         * c-common.c: Likewise.
8191         * c-decl.c: Likewise.
8192         * c-dump.c: Likewise.
8193         * c-lex.c: Likewise.
8194         * collect2.c: Likewise.
8195         * combine.c: Likewise.
8196         * conflict.c: Likewise.
8197         * cppfiles.c: Likewise.
8198         * cppinit.c: Likewise.
8199         * cpplex.c: Likewise.
8200         * cpplib.c: Likewise.
8201         * cppmacro.c: Likewise.
8202         * cppspec.c: Likewise.
8203         * c-pragma.c: Likewise.
8204         * crtstuff.c: Likewise.
8205         * cse.c: Likewise.
8206         * cselib.c: Likewise.
8207         * c-semantics.c: Likewise.
8208         * c-typeck.c: Likewise.
8209
8210 2001-08-01  H.J. Lu <hjl@gnu.org>
8211
8212         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
8213
8214 2001-08-01  H.J. Lu <hjl@gnu.org>
8215
8216         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
8217
8218 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
8219
8220         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
8221         contextualizing Objective-C class name lookup by the lexer.
8222         (typespec_reserved_nonattr): Disable ObjC class name lookup after
8223         seeing a TYPESPEC.
8224         (protocoldef): Add support for forward @protocol declarations.
8225         (yylexname): Suppress ObjC class name lookup in certain contexts;
8226         re-enable after lookup is complete.
8227         (_yylex): Re-enable ObjC class name lookup when certain
8228         punctuation marks are seen.
8229
8230         * objc/objc-act.c (check_protocol_recursively): New function used
8231         for finding circular dependencies in protocols.
8232         (objc_declare_protocols): New function for handling forward
8233         @protocol declarations.
8234         (receiver_is_class_object): Detect the case when 'self' is used
8235         inside of a class method.
8236         (build_message_expr): Issue a warning if class method is desired
8237         but instance method is found instead.
8238         (conforms_to_protocol): Streamline.
8239         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
8240         protocol Foo, even if 'Bar foo' does not.
8241         (check_protocols): Streamline.
8242         (start_protocol): Add checks for circular and duplicate protocol
8243         definitions.
8244         (encode_aggregate_within): For typedefs of structs, encode the
8245         underlying struct.
8246         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
8247         (objc_declare_protocols): New prototype.
8248
8249 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8250
8251         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
8252         * cpplex.c (handle_newline): Update prototype.  Maintain logical
8253         line number.
8254         (skip_escaped_newlines, skip_block_comment, parse_string):
8255         Update accordingly.
8256         (_cpp_lex_token): Update, and store token position within the token.
8257         * cpplib.h (struct cpp_token): Add line and column entries.
8258         * cppmacro.c (replace_args): Position stringified tokens correctly.
8259
8260 2001-08-01  Andreas Jaeger  <aj@suse.de>
8261
8262         * basic-block.h: Add prototype for last_loop_beg_note.
8263
8264 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
8265
8266         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
8267         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
8268         comment.
8269         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
8270         while handling WITH_CLEANUP_EXPR node. Use second operand calling
8271         expand_decl_cleanup.
8272         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
8273         the first RTX.
8274         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
8275         operand while calling simple_cst_equal.
8276         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
8277         operand is the cleanup expression, the third is the RTL_EXPR.
8278         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
8279
8280 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
8281
8282         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
8283
8284 2001-07-31  matthew green  <mrg@eterna.com.au>
8285
8286         * config.gcc (i386-*-netbsdelf): New description.
8287         * config/i386/netbsd-elf.h: New file.
8288
8289 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
8290
8291         * loop.c (check_dbra_loop): Use single_set to compute
8292         jump_label.
8293
8294 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
8295
8296         PowerPC reorg and support for powerpc64-*-linux*.
8297
8298         Also fixes emitting of constants on 32 bit and 64 bit
8299         platforms.
8300
8301         * config.gcc: powerpc64-*-linux* is a new target.
8302         Things that needed aix.h now also include xcoff.h
8303
8304         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
8305         xcoff.h.
8306         Move AIX specific stuff into aix.h.
8307         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
8308         with more than just XCOFF now.
8309         (SET_ASM_OP): Remove, now defined where needed.
8310         (FUNCTION_PROLOGUE): New macro definition.
8311         (FUNCTION_EPILOGUE): New macro definition.
8312         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
8313
8314         * config/rs6000/xcoff.h: New file.
8315
8316         * config/rs6000/linux64.h: New file.
8317
8318         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
8319
8320 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
8321
8322         * rs6000.c (print_operand_address): Handle ELF syntax.
8323         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
8324         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
8325         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
8326
8327 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
8328
8329         * rs6000.c (rs6000_override_options): Only disable
8330         flag_function_sections for XCOFF.
8331         (exact_log2_cint_operand): New predicate.
8332         (reg_or_{add,sub}_cint64_operand): New predicates.
8333         (add_operand): Compare CONST_INT with fewer function calls.
8334         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
8335         (print_operand, case 'p'): Ensure positive operand.
8336         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
8337         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
8338         (PREDICATE_CODES): Add new predicates.
8339         * rs6000.md (addsi3): Split 32-bit constants more correctly.
8340         (divsi3, modsi3): Ensure positive power-of-2.
8341         (adddi3): Use new predicate.  Split 32-bit constants more
8342         correctly.  Re-arrange splitter to handle any constant.
8343         (subdi3): Use new predicate.
8344         (divdi3, moddi3): Ensure positive power-of-2.
8345         (movdi): Use rs6000_emit_set_const.
8346         (load_toc_v4_pic_di): Delete.
8347
8348 2001-07-31  Graham Stott <grahams@redhat.com>
8349
8350         * function.c (pad_below): Revert 2001-07-26 patch.
8351
8352 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8353
8354         * reg-stack (convert_regs_1): Fix best edge condition.
8355
8356 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8357
8358         * jump.c (duplicate_loop_exit_test): Better test for jumps
8359         entering the loop; create loop pre_header.
8360
8361 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
8362
8363         * doc/install.texi: Add s390 and s390x as new targets.
8364         * doc/invoke.texi: Add documantation of S/390 and zSeries
8365         target options.
8366         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
8367
8368 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8369
8370         * config/m68k/m68k.md: Replace all general_operand with
8371         nonimmediate_operand for all destinations.
8372         * config/m68k/m68k.c (not_sp_operand): Likewise.
8373
8374 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
8375
8376         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
8377
8378 2001-07-30  Richard Henderson  <rth@redhat.com>
8379
8380         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
8381         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
8382
8383 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
8384
8385         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
8386         Add missing doc strings
8387         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
8388         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
8389
8390 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
8391
8392         * i386.c (ix86_output_main_function_alignment_hack): New function.
8393         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
8394
8395         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
8396         edges by EDGE_DFS_BACK flag.
8397         (dump_edge_info): Add dfs_back flag.
8398         * basic-block.h (EDGE_DFS_BACK): New constant.
8399         (mark_dfs_back_edges): Declare.
8400         * alias.c (loop_p): Remove.
8401         (mark_constant_function): Use mark_dfs_back_edges.
8402
8403         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
8404         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
8405         (compensate_edge): Break out from ...
8406         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
8407         (convert_regs_2): Set block_done once block is really done;
8408         Do updating of the predecesors counts.
8409
8410         * toplev.c (rest_of_compilation): Recompute block_for_insn
8411         before post-reload cfg_cleanup.
8412         * function.c (thread_prologue_epilogue_insns):
8413         Call set_block_for_new_insns when emitting prologue directly.
8414
8415 2001-07-30  Andreas Jaeger  <aj@suse.de>
8416
8417         * jump.c: Add prototype for mark_modified_reg.
8418
8419         * cse.c (set_live_p): Add unused attribute.
8420
8421         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
8422         overflow.
8423         (scan_for_source_files): Use long for count to avoid overflow.
8424         (output_data): Likewise.
8425         (output_data): Don't use string concatatenation to silence gcc
8426         -traditional.
8427
8428         * predict.c: Fix typos and grammar.
8429
8430         * gcse.c (insert_insn_end_bb): Remove unused variables.
8431
8432 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
8433
8434         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
8435         (attempt_auto_inc): LIkewise.
8436         (mark_used_reg): Likewise.
8437         (try_pre_increment_1): Likewise.
8438         * regclass.c (regclass): Likewise.
8439         * global.c (allocno_compare): Update comment; change scaling factor.
8440         * local-alloc.c (QTY_CMP_PRI): Likewise.
8441         * regs.h (REG_FREQ_FROM_BB): New.
8442         (REG_FREQ_MAX): Likewise.
8443
8444 2001-07-30  H.J. Lu <hjl@gnu.org>
8445
8446         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
8447         -D_GNU_SOURCE.
8448
8449 2001-07-30  H.J. Lu  (hjl@gnu.org)
8450
8451         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
8452         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8453         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
8454
8455 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
8456
8457         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
8458         as -mthumb-interwork when -mcpu=arm7 is specified.
8459
8460 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8461
8462         * predict.def (noreturn, loop branch, loop exit): Mark as first
8463         match heuristics.
8464
8465 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
8466
8467         * combine.c (try_combine): Avoid barrier after noop jumps.
8468
8469 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8470
8471         * cpphash.h (struct cpp_reader): Remove import_warning.
8472         * cpplib.c (skip_rest_of_line): Don't bother turning off
8473         macro expansion.
8474         (parse_include): Move include handling to...
8475         (do_include_common): ... here.  Move import warning from...
8476         (do_import): ... here.
8477         (do_pragma_poison): Don't do a callback for poison identifiers.
8478         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
8479         * cppmain.c (setup_callbacks): Similarly.
8480
8481 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8482
8483         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
8484         handle multiple sets.
8485         * except.c (sjlj_mark_call_sites): .... here.
8486         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
8487
8488 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
8489
8490         Suggested by Richard Henderson and Richard Kenner:
8491         * combine.c (recog_for_combine): Use the fake recog
8492         only if instruction does not match.
8493         * rtl.h (NOOP_MOVE_INSN_CODE): New.
8494         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
8495
8496         * combine.c (try_combine): Discover noop jump as direct jump.
8497
8498 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
8499
8500         * df.c (df_rd_global_compute): Add successors to worklist, not
8501         current item.
8502         (df_ru_global_compute): Ditto.
8503
8504 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
8505
8506         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
8507         increment REG_N_SETS.
8508
8509 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
8510
8511         * sbitmap.h: New prototype for sbitmap_a_xor_b.
8512
8513         * sbitmap.c (sbitmap_a_xor_b): New function.
8514         ifdef the basic block stuff on IN_GCC.
8515
8516 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8517
8518         * cppexp.c (parse_defined): Always record the macro name.
8519         (lex): Don't worry about identifiers, or special-case
8520         CPP_NOT here.
8521         (_cpp_parse_expr): Figure out at the end of the routine
8522         whether we saw a valid !defined() expression.
8523         * cppfiles.c (stack_include_file): Update for mi_valid.
8524         (_cpp_pop_file_buffer): Similarly.
8525         * cpplex.c (_cpp_lex_token): Similarly.
8526         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
8527         mi_if_not_defined, mi_lexed): Remove.
8528         (mi_valid): New.
8529         * cpplib.c (do_if): Simplify.
8530         (do_endif, push_conditional, _cpp_handle_directive): Update
8531         for renaming of mi_state to mi_valid.
8532 doc:
8533         * cpp.texi: Add index entries for digraphs, and add comment
8534         that C++ refers to them as alternative tokens.
8535
8536 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
8537
8538         * basic-block.h (CLEANUP_PRE_LOOP): New.
8539         * except.c (finish_eh_generation): Update call of cleanup_cfg.
8540         * sibcall.c (optimize_sibling_calls): Likewise.
8541         * toplev.c (rest_of_compilation): Likewise.
8542         * flow.c (try_forward_edges): Take argument MODE;
8543         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
8544         (try_optimize_cfg): Update call of try_forward_edges.
8545
8546 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
8547                                 Jan Hubicka  <jh@suse.cz>
8548
8549         * (validate_replace_rtx_1): Fix simplification of MINUS.
8550
8551 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8552
8553         PR preprocessor/3669
8554         * cppinit.c (init_dependency_output): Turn off dump requests
8555         if sending dependencies to stdout.
8556
8557 2001-07-28  Richard Henderson  <rth@redhat.com>
8558
8559         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
8560         not optimizing.
8561
8562 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
8563
8564         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
8565
8566 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8567
8568         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
8569         is VAR_DECL first to prevent an ICE.
8570
8571 2001-07-28  Richard Henderson  <rth@redhat.com>
8572
8573         * varasm.c (immed_real_const_1): Don't elide special cases for
8574         nested functions.
8575         (clear_const_double_mem): Clear const_tiny_rtx too.
8576
8577 2001-07-28  Richard Henderson  <rth@redhat.com>
8578
8579         * dwarf2out.c (dw_val_class_offset): New.
8580         (struct dw_ranges_struct, dw_ranges_ref): New.
8581         (ranges_table, ranges_table_allocated): New.
8582         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
8583         (add_AT_offset, add_ranges, output_ranges): New.
8584         (print_die, output_die): Handle dw_val_class_offset.
8585         (attr_checksum, size_of_die, value_format): Likewise.
8586         (gen_lexical_block_die): Handle non-contiguous blocks.
8587         (gen_block_die): Likewise.
8588         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
8589         if needed.  Dump the ranges table.
8590         * final.c (final_start_function): Remove unnecessary notes and
8591         rebuild the block tree before numbering the blocks.
8592         * function.c (reorder_blocks_0): Walk the existing block tree
8593         to unmark all blocks.
8594         (reorder_blocks_1): Create block fragments when duplicate block
8595         notes are seen.
8596         (reorder_fix_fragments): New.
8597         (reorder_blocks): Call it.
8598         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
8599
8600 2001-07-28  Richard Henderson  <rth@redhat.com>
8601
8602         * emit-rtl.c (adjust_address): Make a copy of the memory address.
8603
8604 2001-07-28  Richard Henderson  <rth@redhat.com>
8605
8606         * flow.c (add_to_mem_set_list): New function.
8607         (init_propagate_block_info): Use it.
8608         (mark_set_1): Likewise.
8609         (insn_dead_p): Canonicalize memory address for dead store
8610         comparison.  Allow wider mode stores to kill narrower mode stores.
8611         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
8612         (invalidate_mems_from_set): Don't handle MEMs.
8613
8614 2001-07-28  Kazu Hirata  <kazu@hxi.com>
8615
8616         * config/h8300/h8300.h: Fix formatting.
8617
8618 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8619
8620         * basic-block.h (EDGE_FREQUENCY): New macro.
8621         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
8622         for new BB/edges.
8623         * flow.c (find_sub_basic_blocks): Likewise.
8624         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
8625         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
8626
8627         * predict.c (DEF_PREDICTOR): New argument FLAGS.
8628         (HITRATE): New macro.
8629         (PRED_FLAG_FIRST_MATCH): New constant.
8630         (predictor_info): New field flgags.
8631         (combine_predictions_for_insn): Use DS theory to combine
8632         probabilities; set the edge probabilities when finished.
8633         (estimate_probability): Avoid duplicated matches
8634         of LOOP_BRANCH heuristics for nested loops; update comment.
8635         * predict.def: Add flags for each prediction, set probabilities
8636         according to B&L paper.
8637         * predict.h (DEF_PREDICTOR): New argument FLAGS.
8638
8639         * profile.c (compute_branch_probabilities):  Cleanup way the edge
8640         probabilities are computed and REG_BR_PROB notes are dropped; if
8641         values does not match, emit error.
8642         (init_branch_prob): Do error instead of warning when profile driven
8643         feedback is missing or corrupt.
8644
8645 2001-07-27  DJ Delorie  <dj@redhat.com>
8646
8647         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
8648         against a constant, try to adjust the compare to have the desired
8649         constant in it so that min/max optimizations happen more often.
8650
8651 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8652
8653         * flow.c (last_loop_beg_note): New function.
8654         (redirect_edge_and_branch): Use it.
8655         (split_edge): Likewise.
8656
8657         * alias.c (loop_p): Avoid uninitialized memory access.
8658
8659         * flow.c (try_forward_edges): Avoid accessing freed memory.
8660
8661         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
8662         variable access.
8663
8664 2001-07-26  Andrew Haley  <aph@redhat.com>
8665         Joern Rennecke <amylaar@redhat.com>
8666
8667         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
8668         (SUBTARGET_CPP_ENDIAN_SPEC): New.
8669         (SUBTARGET_CPP_SPEC): New.
8670         (CPP_SPEC): Remove.
8671         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
8672         (SUBTARGET_CPP_PTR_SPEC): New.
8673         (CPP_DEFAULT_CPU_SPEC): New.
8674         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
8675         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8676         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
8677         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
8678         (SUBTARGET_CPP_SPEC): Define as an empty string.
8679
8680 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8681
8682         * doc/install.texi (Configuration): Properly link the host
8683         specific instructions also when generating HTML.
8684
8685 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
8686
8687         * flow.c (redirect_edge_and_branch_force): Test
8688         target->global_live_at_start.
8689
8690 2001-07-26  Richard Henderson  <rth@redhat.com>
8691
8692         * simplify-rtx.c (avoid_constant_pool_reference): Export.
8693         * rtl.h (avoid_constant_pool_reference): Declare it.
8694         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
8695         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
8696
8697 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8698
8699         * rtl.h (cleanup_barriers): Declare.
8700         * jump.c (cleanup_barriers): New function.
8701         * toplev.c (rest_of_compilation): Call cleanup_barriers
8702         before loop optimizer and after bb_reorder.
8703
8704         * flow.c (back_edge_of_syntactic_loop_p): New.
8705         (split_edge): Use it.
8706
8707 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8708
8709         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
8710
8711 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
8712
8713         * cse.c (cse_process_notes): Replace any registers if the address
8714         remains valid.
8715
8716 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
8717
8718         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
8719         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
8720         (propagate_block): Update prototype.
8721         * flow.c (update_life_info): Simplify the CFG and
8722         recalculate the global regs which are alive when
8723         removing dead code during a global update.
8724         (propagate_block): Return non-zero if an INSN is
8725         deleted.
8726
8727 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8728
8729         * Makefile.in (LIBICONV): Define.
8730
8731 2001-07-26  Catherine Moore  <clm@redhat.com>
8732
8733         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
8734         of conditional to avoid tree checking errors.
8735
8736 2001-07-26  Kazu Hirata  <kazu@hxi.com>
8737
8738         * regmove.c (regmove_optimize): Don't replace a reg with
8739         another reg of a different mode.
8740
8741 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
8742
8743         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
8744         limit length of dependancy flush list.
8745         * params.h (MAX_PENDING_LIST_LENGTH): Define.
8746         * sched-int.h  (struct deps): Add pending_flush_length field.
8747         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
8748         has 1 element in it.
8749         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
8750         (sched_analyze): After a jump, if the pending memory flush list is too
8751         large, flush the pending lists.
8752         (init_deps): Initialize pending_flush_length to 0.
8753         * doc/invoke.texi (max_pending_list_length): Document parameter.
8754
8755 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8756
8757         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
8758         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
8759         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
8760
8761 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8762
8763         * cpphash.h (struct_lexer_state): Delete was_skipping.
8764         Move skipping here from struct cpp_reader.
8765         * cpplex.c (parse_identifier): Update.
8766         (_cpp_lex_token): Don't skip tokens in a directive.
8767         * cpplib.c (struct if_stack): Update.
8768         (start_directive, end_directive): Don't change skipping state.
8769         (_cpp_handle_directive): Update.
8770         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
8771         (do_else, do_endif): Update; only check for excess tokens if not
8772         in a skipped conditional block.
8773         (push_conditional): Update for new struct if_stack.
8774
8775 2001-07-26  Graham Stott  <grahams@redhat.com>
8776
8777         * function.c (locate_and_pad_parm): Also pad initial offset
8778         so that the total argument size also includes the padding.
8779
8780 2001-07-26  Graham Stott <grahams@redhat.com>
8781
8782         * gensupport.c (alter_output_for_insn): Correct enable checking failure
8783         change XSTR to XTMPL.
8784
8785         (process_one_cond_exec): Likewise
8786
8787 2001-07-25  Richard Henderson  <rth@redhat.com>
8788
8789         * varasm.c (assemble_variable): Create DECL_RTL before setting
8790         TREE_ASM_WRITTEN.
8791
8792 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
8793
8794         * predict.c (estimate_probability): Avoid duplicated predictions.
8795
8796         * loop.c (find_and_verify_loops): Grok multiple barriers.
8797
8798 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8799
8800         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
8801
8802         * dbxout.c: Consistently use putc instead of fputc.
8803         (print_wide_int): New function; call instead of direct fprintf.
8804         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
8805         (dbxout_type_fields, dbxout_type_method_1): Likewise.
8806         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
8807         (print_int_cst_octal): Likewise.
8808         (print_octal): Show we wrote characters.
8809         (dbxout_type): Set have_used_extensions in more places.
8810
8811 2001-07-25  Catherine Moore  <clm@redhat.com>
8812
8813         * config/v850/v850.c (v850_va_arg):  Use addr
8814         instead of valist to build incr.
8815
8816 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
8817
8818         * flow.c (delete_dead_jumptables): New function.
8819         (life_analyzis): Call it.
8820         * bb-reorder.c (skip_insns_after_block): Handle contradictory
8821         sequences.
8822
8823 2001-07-25  Richard Henderson  <rth@redhat.com>
8824
8825         * except.c (reachable_handlers): Handle a region being removed
8826         out from under a RESX.
8827
8828 2001-07-25  Richard Henderson  <rth@redhat.com>
8829
8830         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
8831         swap GE/GT if it is an fp comparison.
8832
8833 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
8834
8835         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
8836         operands.
8837
8838 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
8839
8840         * ssa.c (rename_insn_1): Do not wrap an assignment to a
8841         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
8842         glitch.
8843
8844         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
8845         throw an exception.
8846         (visit_expression): When attempting to simplify an expression,
8847         retrieve any modes for arguments before they are simplified
8848         to constants.
8849
8850 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8851             Janis Johnson  <janis@us.ibm.com>
8852
8853         * stmt.c (expand_goto): A nonlocal goto can be a call too.
8854         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
8855         pointer parameters to match documented usage of nonlocal_goto.
8856         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
8857         parameters to their correct order.
8858         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
8859         parameters to their correct order.
8860
8861 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
8862
8863         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
8864
8865 2001-07-25  Jan Hubicka  <jh@suse.cz>
8866             Richard Henderson  <rth@redhat.com>
8867
8868         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
8869         the sequence.
8870         (make_edges): New argument update_p; populate the edge cache if set.
8871         (find_basic_blocks): Update make_edges invocation.
8872
8873 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8874
8875         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
8876
8877 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8878
8879         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
8880         -Acpu and -Amachine.h.
8881         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
8882         Corrected header to say ELF not a.out.
8883         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
8884         when given -msoft-float.
8885
8886 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8887
8888         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
8889         extra multilib parts like arm-elf.
8890         (i960-*-coff*, i960-*-rtems): Should not use collect2.
8891         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
8892         crtfini.o as extra multilib parts.
8893
8894 2001-07-24  Joel Sherrill <joel@OARcorp.com>
8895
8896         * configure.in: Add rtems as a supported thread model.
8897         * gthr-rtems.h: Add missing entry point __gthread_active_p.
8898         * configure: Rebuilt.
8899
8900 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
8901
8902         * stor-layout.c (get_mode_alignment): make it work when
8903         BITS_PER_UNIT is not a power of two.
8904         * builtins.c (get_pointer_alignment): Likewise.
8905
8906 2001-07-24  Richard Henderson  <rth@redhat.com>
8907
8908         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
8909         the retrieved constant into the expected mode.
8910
8911 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
8912
8913         * flow.c (try_simplify_condjump): Avoid duplicated edges.
8914         (verify_flow_info): Check for duplicated edges; clarify
8915         error reporting.
8916
8917         * flow.c (block_label): Update basic_block_for_insn.
8918         (commit_edge_insertions): Call compute_bb_for_insn.
8919
8920         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
8921         returns too.
8922
8923         * flow.c (redirect_edge_and_branch,
8924         try_optimize_cfg): Use redirect_edge_succ_nodup
8925         (redirect_edge_succ_nodup): New.
8926         * basic_block.h (redirect_edge_succ_nodup): Declare.
8927
8928         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
8929         after gcse.
8930
8931 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8932
8933         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
8934         (try_crossjump_to_edge): Update commetns.
8935         (try_crossjump_bb): Likewise.
8936
8937 2001-07-24  Richard Henderson  <rth@redhat.com>
8938
8939         * combine.c (distribute_notes): Move set of need_refresh
8940         for noop_move_p down to catch all cases.
8941
8942 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
8943
8944         * recog.c (split_all_insns_noflow): New.
8945         * rtl.h (split_all_insns_noflow): Declare.
8946         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
8947         * m68hc11.c (m68hc11_reorg): Likewise.
8948         * sh.c (machine_dependent_reorg): Likewise.
8949         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
8950         call.
8951
8952 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8953
8954         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
8955         (ashlsi3_n splitter): Likewise.
8956         (lshrsi3_n splitter): Likewise.
8957
8958         (GOTaddr2picreg): Make const SImode.
8959         (sym_label2reg): Likewise.
8960         (symGOT2reg): Likewise.
8961         (symGOTOFF2reg) Likewise.
8962
8963         (casesi_worker_0): Make unspec SImode.
8964
8965 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
8966
8967         * config/sh/sh.c (barrier_align): Check that an operand really is
8968         an insn before extracting its INSN_CODE.
8969
8970 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
8971
8972         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
8973         dangling else.
8974
8975         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
8976         for SImode to prevent overflow.
8977
8978 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8979
8980         * config/mips/irix6-libc-compat.c: New file.
8981         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
8982         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
8983         passing workaround.
8984
8985 2001-07-24  lars brinkhoff  <lars@nocrew.org>
8986
8987         * rtl.texi (REG_POINTER): Document.
8988         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
8989         QFmode, HFmode, TQFmode, QCmode, and HCmode.
8990
8991 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
8992
8993         * flow.c (delete_noop_moves): Do not confuse libcall regions.
8994
8995 2001-07-23  Richard Henderson  <rth@redhat.com>
8996
8997         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
8998
8999 2001-07-23  Kazu Hirata  <kazu@hxi.com>
9000
9001         * config/h8300/h8300-protos.h: Add a prototype for
9002         general_operand_dst_push.
9003         * config/h8300/h8300.c (general_operand_dst_push): New.
9004         * config/h8300/h8300.h (OK_FOR_T): New.
9005         (EXTRA_CONSTRAINT): Use it.
9006         * config/h8300/h8300.md (movqi_push): Remove and integrate into
9007         the existing movqi pattern.
9008         (movhi_push): Likewise.
9009
9010         * reload.c: Fix comment typos.
9011
9012 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
9013
9014         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
9015
9016 2001-07-23  H.J. Lu  (hjl@gnu.org)
9017
9018         * doc/extend.texi: Update __builtin_return_address and
9019         __builtin_frame_address.
9020
9021 2001-07-23  Richard Henderson  <rth@redhat.com>
9022
9023         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
9024         before CSE.
9025         * config/i386/i386.md: New setcc+movzbl peephole2.
9026
9027 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9028
9029         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
9030         * objc/objc-act.c: Include debug.h.
9031         (synth_module_prologue): Save and restore debug hooks too.
9032
9033 2001-07-23  lars brinkhoff  <lars@nocrew.org>
9034
9035         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
9036         and C4X_FLOAT_FORMAT.
9037         (BOOL_TYPE_SIZE): Document.
9038
9039 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
9040
9041         * unroll.c (loop_iterations): Fix miscalculation of initial
9042         giv offset.
9043
9044 2001-07-13  Andrew Haley  <aph@redhat.com>
9045
9046         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
9047         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
9048         * config/sh/sh.c (sh_can_redirect_branch): New function.
9049         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
9050         * reorg.c (steal_delay_list_from_target): Use
9051         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
9052
9053 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
9054
9055         * flow.c (try_simplify_condjump): Unlink insn chain on
9056         fallthru edge; use can_fallthru.
9057
9058 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
9059
9060         * basic-block.h (find_sub_basic_block): Declare.
9061         * flow.c (make_edges): New arguments MIN and MAX;
9062         (find_sub_basic_blocks): Revamp to use make_edges
9063         and purge_dead_edges.
9064         (find_basic_blocks): Update call of find_sub_basic_block.
9065
9066         * recog.c (split_all_insns): Always expect CFG to be consistent;
9067         call find_sub_basic_blocks in case something has changed.
9068         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
9069         has been built.
9070
9071         * basic-block.h (delete_noop_moves): Declare.
9072         * combine.c (combine_instructions): Call it.
9073         (recog_for_combine): Tolerate noop moves
9074         (distribute_notes): Force refresh when register dies at noop move.
9075         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
9076         too.
9077         (life_analysis): Update delete_noop_moves call.
9078         (set_noop_p): Move too ...
9079         * rtlanal.c (noop_move_p): ... here.
9080         * rtl.h (noop_move_p): Declare.
9081
9082         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
9083         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
9084         after combine.
9085         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
9086         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
9087
9088 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
9089
9090         * reload.c (push_reload): Fix typo in comment.
9091         (find_reloads_address): Ditto.
9092         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
9093
9094 2001-07-22  Richard Henderson  <rth@redhat.com>
9095
9096         * flow.c: Grammar check and clarify a lot of comments.
9097         (try_simplify_condjump): Rename variables to be clearer.
9098         (try_forward_edges): Skip complex and fallthru edges.
9099         Rearrange tests to avoid duplicate checks.
9100         (flow_find_cross_jump): Likewise.
9101         (outgoing_edges_match): Allow match if neither branch has
9102         probability data.  Loosen probability match to 5%.
9103         (try_crossjump_to_edge): Hoist repeated indirection into
9104         local variables.
9105         (try_crossjump_bb): Don't check complex edges.  Eliminate
9106         redundant crossjump tests.
9107         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
9108         checks before more expensive checks.
9109
9110 2001-07-22  Richard Henderson  <rth@redhat.com>
9111
9112         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
9113         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
9114         arguments.
9115
9116 2001-07-22  Richard Henderson  <rth@redhat.com>
9117
9118         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
9119         (const_sint32_operand): Likewise.
9120         * m68k.md (anon mulsi pattern): Use const_int_operand not
9121         const_sint32_operand.
9122         (umulsi3_highpart): Zero extend a constant input.
9123         (smulsi3_highpart): Don't bother checking SImode constant.
9124         (const_umulsi3_highpart): Give op3 DImode.
9125         (const_smulsi3_highpart): Likewise.
9126
9127 2001-07-22  Richard Henderson  <rth@redhat.com>
9128
9129         * flow.c (split_block): Make sure bb_note is included in the
9130         new block when splitting before a label.
9131
9132 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9133
9134         * basic-block.h (redirect_edge_and_branch_force,
9135         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
9136         * flow.c (redirect_edge_and_branch_force,
9137         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
9138         (redirect_edge_and_branch_force): Fix copying of lifeness information.
9139         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
9140         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
9141         instead of label; update CFG after transformation.
9142         (find_if_case_1): Update call, use redirect_edge_and_branch_force
9143         for finishing the transformation; handle even case where ELSE
9144         does not follow THEN.
9145         (find_if_case_2): Update call of dead_or_predictable; simplify
9146         CFG update.
9147
9148         * emit-rtl.c (split_branch_probability): New global variable.
9149         (try_split): Take care to set split_branch_probability and
9150         create REG_BR_PROB note for new jump insns.
9151         * md.texi (define_split): Document new feature.
9152
9153         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
9154
9155 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9156
9157         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
9158         (asm_out_file): Remove redundant declaration.
9159         (assemble_asm): Remove old #if 0 block.
9160         (assemble_variable): Remove end of function; debug output is
9161         now handled with global_decl.  Remove old #if 0 block.  Update.
9162         Remove saved_in_section and associated no-op code.
9163         * Makefile.in (varasm.o): Correct dependencies.
9164
9165 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
9166
9167         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9168         the definition in defaults.h.
9169
9170 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
9171
9172         * jump.c: Update comments.
9173         (delete_barrier_successors, delete_unreferenced_labels,
9174         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
9175         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
9176         jump_optimize, jump_optimize_minimal): Kill.
9177         (rebuild_jump_labels): Move code from jump_optimize_1.
9178         (purge_line_number_notes): Likewise.
9179         (copy_loop_headers): Likewise.
9180         * reg-stack.c: Update comment.
9181         * stmt.c: Likewise.
9182         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
9183         JUMP_AFTER_REGSCAN): Kill.
9184         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
9185         purge_line_number_notes and copy_loop_headers.
9186
9187 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
9188            Richard Henderson  <rth@redhat.com>
9189
9190         * dbxout.c (dbxout_global_decl): New.
9191         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9192         * sdbout.c (sdbout_finish): New.
9193         (sdbout_debug_hooks): Use it, add comments.
9194         (sdbout_global_decl): Defer initialised public vars to
9195         sdbout_finish.
9196         * varasm.c (assemble_variable): Don't output debug information
9197         for file-scope variables.
9198
9199 2001-07-22  Richard Henderson  <rth@redhat.com>
9200
9201         * config/alpha/alpha.c (get_trap_mode_suffix): New.
9202         (get_round_mode_suffix): New.
9203         (print_operand): Use them for [/].  Remove support for [&'`()+].
9204         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
9205         * config/alpha/alpha.md (attr round_suffix): New.
9206         (attr trap_suffix): New.
9207         (all insns): Set them appropriately.  Use %/ instead of the
9208         myriad punctuators.
9209
9210 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9211
9212         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
9213
9214 2001-07-22  Richard Henderson  <rth@redhat.com>
9215
9216         * regrename.c (regrename_optimize): Compute nregs for each
9217         potential target register.
9218
9219 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
9220            Richard Henderson  <rth@redhat.com>
9221
9222         * dbxout.c (dbxout_global_decl): New.
9223         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
9224         * sdbout.c (sdbout_finish): New.
9225         (sdbout_debug_hooks): Use it, add comments.
9226         (sdbout_global_decl): Defer initialised public vars to
9227         sdbout_finish.
9228         * varasm.c (assemble_variable): Don't output debug information
9229         for file-scope variables.
9230
9231 2001-07-21  H.J. Lu  (hjl@gnu.org)
9232
9233         * config/mips/mips.c (mips_cpu): Moved into ...
9234         (override_options): Here.
9235
9236         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
9237         mips_tune.
9238         (mips_cpu): Removed.
9239
9240 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9241
9242         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
9243         ("iorqi3"): Likewise.
9244         ("xorqi3"): Likewise.
9245         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
9246         ("*subhi3_sp): Likewise.
9247         ("*subhi3"): Likewise.
9248         ("extendhisi2"): Accept D, X and Y as source operand to avoid
9249         reload problems.
9250
9251 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9252
9253         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
9254         * config/freebsd.h: Likewise.
9255         * config/linux.h: Likewise.
9256         * config/openbsd.h: Likewise.
9257         * config/alpha/linux-elf.h: Likewise.
9258         * config/arm/linux-elf.h: Likewise.
9259         * config/d30v/d30v.h: Likewise.
9260         * config/fr30/fr30.h: Likewise.
9261         * config/ia64/aix.h: Likewise.
9262         * config/ia64/ia64.h: Likewise.
9263         * config/mips/linux.h: Likewise.
9264         * config/pj/pj.h: Likewise.
9265         * config/rs6000/linux.h: Likewise.
9266         * config/sparc/linux.h: Likewise.
9267         * config/sparc/linux64.h: Likewise.
9268
9269 2001-07-20  Bruce Korb  <bkorb@gnu.org>
9270
9271         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
9272         because getc() and char* may disagree on signedness.
9273
9274 2001-07-20  Richard Henderson  <rth@redhat.com>
9275
9276         * doc/rtl.texi (REG_DEAD): Update for current semantics.
9277
9278         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
9279         insns to delete in the presence of cc0 in a jump insn.
9280
9281 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
9282                                 Jan Hubicka  <jh@suse.cz>
9283
9284         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
9285         of doing the change by hand.
9286
9287 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
9288
9289         * rtlanal.c (set_noop_p): Return true for noop jumps.
9290
9291         * expr.c (emit_single_push_insn): Add call to push expander.
9292         * expr.h (optab_index): Add OTI_push
9293         (push_optab): New constant.
9294         * genopinit.c (optabs): Add push_optab.
9295         * optabs.c (init_optab): Init push optab.
9296         * md.texi (push??1): Document
9297
9298 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9299
9300         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
9301         expand to emit the pattern; put a REG_INC note for push/pop
9302         instructions.
9303         ("movdf", "movdf_internal"): Likewise.
9304         ("movsi", "movsi_internal"): Likewise.
9305         ("movsf", "movsf_internal"): Likewise.
9306         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
9307
9308 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9309
9310         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
9311         gen_highpart.
9312
9313 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
9314
9315         * params.def: Change default max inline insns to 100.
9316
9317 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
9318
9319         * combine.c (combine_simplify_rtx): Generate a new shift operation
9320         when simplifying the first operand of a (neg (ashift)) expression.
9321
9322 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9323
9324         * regclass.c (N_REG_INTS): Use only 32 bits per element.
9325
9326 2001-07-20  Kelley Cook  <kelley.cook@home.com>
9327
9328         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
9329         information.   Move rest into ...
9330         (*-*-solaris): ... here.  Eliminate redundant information and
9331         reword necessary packages section.  Delete 4.x assembler bug info.
9332         (sparc-sun-*): Merge into ...
9333         (sparc-sun-sunos*): here.
9334
9335 2001-07-20  Catherine Moore  <clm@redhat.com>
9336
9337         * config/v850/v850.md (casesi): Generate LABEL_REF
9338         with Pmode.
9339
9340 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9341
9342         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
9343         * i386.c (ix86_zero_extend_to_Pmode): Make global.
9344         * i386.md (strclrsi expander): Use it.
9345
9346 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9347
9348         * integrate.c (copy_insn_list): handle
9349         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
9350         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
9351         identically as to CODE_LABEL.
9352
9353         * fold-const (fold): Convert A/B/C to A/(B*C) and
9354         A/(B/C) to (A/B)*C
9355
9356         * except.c (connect_post_landing_pads): Delete the RESX insns.
9357
9358 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
9359
9360         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
9361
9362         * config/mips/mips.md (nmadd/nmsub): Use macro.
9363
9364 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
9365
9366         * cppinit.c (remove_dup_dir): Make static.
9367         (remove_dup_dirs): Make static. Only warn about preempting a
9368         system directory with a non-system directory.
9369
9370 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9371
9372         * ifcvt.c (noce_try_store_flag_constants): Correct order
9373         of parameters to trunc_int_for_mode.
9374
9375 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
9376
9377         * reorg.c (fill_simple_delay_slots): If an instruction might throw
9378         an exception that will be caught within this function, do not fill
9379         its delay slot with any subsequent instruction.
9380
9381 2001-07-19  Steve Ellcey <sje@cup.hp.com>
9382
9383         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
9384         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
9385         pointer extension instruction.
9386         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
9387         * simplify-rtx.c (simplify_unary_operation) Likewise.
9388         * explow.c (convert_memory_address) Check value of
9389         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
9390         less than zero.
9391         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
9392         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
9393         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
9394         Add Multilib Support.
9395         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
9396         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
9397         Add Multilib Support.
9398         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
9399         support.
9400         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
9401         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
9402         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
9403
9404 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
9405
9406         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
9407         old and new operands in `<', `3' and `b'.
9408
9409 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9410
9411         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
9412         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
9413         (toplev.o): Don't depend on xcoffout.h.
9414         * c-decl.c: Include debug.h
9415         (duplicate_decls): Use debug hook.
9416         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
9417         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9418         (dbxout_types): Remove.
9419         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
9420         * debug.c (do_nothing_debug_hooks): Update.
9421         (debug_true_tree, debug_nothing_rtx): New.
9422         * debug.h (struct rtx_def): New.
9423         (struct gcc_debug_hooks): New hooks ignore_block,
9424         outlining_inline_function and label.
9425         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
9426         dwarf2out_frame_finish): New.
9427         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
9428         Make static, update prototype.
9429         (dwarf2_debug_hooks): Update.
9430         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
9431         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
9432         * dwarfout.c (dwarf_debug_hooks): Update.
9433         * emit-rtl.c: Include debug.h.
9434         (remove_unnecessary_notes): Use debug hook.
9435         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
9436         (final_scan_insn): Use debug hook.
9437         * integrate.c (output_inline_function): Use debug hook.
9438         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
9439         (sdb_debug_hooks): Update.
9440         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
9441         * toplev.c: Don't include xcoffout.h.
9442         (note_outlining_of_inline_function, debug_ignore_block): Remove.
9443         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
9444         Remove.
9445         * tree.h (dwarf2out_do_frame): Remove.
9446
9447 2001-07-19  Catherine Moore  <clm@cygnus.com>
9448
9449         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
9450
9451 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
9452
9453         * reload1.c (eliminate_regs_in_insn): When updating a set
9454         to the frame pointer to the hardware frame pointer, perform
9455         the update always not just when REPLACE is set.
9456
9457         * reload1.c (choose_reload_regs): Don't inherit a reload
9458         that crosses multiple registers if registers past the first
9459         don't fit in the desired class.
9460
9461         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
9462         when negating constants.
9463
9464 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
9465
9466         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
9467         * doc/tree.texi: Ditto.
9468
9469 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
9470             Jakub Jelinek  <jakub@redhat.com>
9471
9472         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
9473         (extract_cie_info): Handle "eh" augmentation properly,
9474         remember eh_ptr.
9475         (struct frame_state, __frame_state_for): New.
9476
9477 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9478
9479         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
9480         HANDLE_SYSV_PRAGMA): Define.
9481         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
9482         previous args.
9483         (copy_object): Caller changed.
9484
9485 2001-07-19  Andreas Schwab  <schwab@suse.de>
9486
9487         * configure.in (assembler dwarf2 debug_line support): Define nop
9488         insn for m68k.
9489         * configure: Regenerated.
9490
9491 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9492
9493         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
9494         dwarfout.h.
9495         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
9496         to conditionally compiled block.
9497         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9498         * dbxout.h (dbxout_function): Remove.
9499         * debug.c (do_nothing_debug_hooks): Update.
9500         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
9501         global_decl, deferred_inline_function.
9502         * dwarf2out.c (dwarf2_debug_hooks): Update.
9503         (dwarf2out_global_decl): New.
9504         * dwarfout.c: Don't include dwarfout.h.
9505         (dwarfout_global_decl, dwarfout_function_decl,
9506         dwarfout_deferred_inline_function): New.
9507         (dwarf_debug_hooks): Update.
9508         * dwarfout.h: Remove.
9509         * final.c: Don't include dwarfout.h.
9510         * sdbout.c (sdbout_global_decl): New.
9511         (sdbout_debug_hooks): Update.
9512         * toplev.c: Don't include dwarfout.h.
9513         (check_global_declarations, rest_of_compilation): Use new debug hooks.
9514         (note_deferral_of_defined_inline_function): Remove.
9515         * toplev.h (note_deferral_of_defined_inline_function): Remove.
9516         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
9517         * ch/lex.c: Don't include dwarfout.h.
9518         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
9519         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
9520         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
9521         * cp/optimize.c: Include debug.h.
9522         (maybe_clone_body): Use debug hook.
9523         * cp/semantics.c: Include debug.h.
9524         (expand_body): Use debug hook.
9525         * po/POTFILES.in: Remove dwarfout.h.
9526
9527 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9528
9529         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
9530         * c-parse.in (yyerror, _yylex): Similarly.
9531         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
9532         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
9533         Update comments.
9534         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
9535         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
9536
9537 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
9538
9539         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
9540         in-class declaration at -g1.  Fixes c++/2814.
9541
9542 2001-07-18  Richard Henderson  <rth@redhat.com>
9543
9544         * doc/md.texi (reload_in/out): Document restrictions in predicates
9545         and constraints for these patterns.  Document empty string matching
9546         ALL_REGS.
9547
9548 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9549
9550         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
9551
9552 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9553
9554         * cse.c: Undo my previous patch.
9555
9556 2001-07-18  Tom Tromey  <tromey@redhat.com>
9557
9558         For PR java/2812:
9559         * configure: Rebuilt.
9560         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
9561         instead.
9562         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
9563
9564 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
9565                                 Jan Hubicka  <jh@suse.cz>
9566
9567         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
9568         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
9569         * jump.c (mark_jump_label): Do not forward branches.
9570
9571 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9572
9573         * cse.c (delete_trivially_dead_insns): Delete the libcall block
9574         when return value is unused.
9575
9576 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9577
9578         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
9579
9580 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
9581
9582         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
9583         on error.  We can't blindly return the result of
9584         pthread_mutex_trylock because it returns a positive number on
9585         error, while we must return -1 on error.
9586         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
9587         fixes.
9588         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
9589
9590 2001-07-18  Andreas Jaeger  <aj@suse.de>
9591
9592         * integrate.c (output_inline_function): Correct type of debug_hooks.
9593
9594 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
9595
9596         * combine.c (combine_simplify_rtx): DIV can be treated
9597         associatively for floats if unsafe math optimisations are enabled.
9598
9599 2001-07-17  Richard Henderson  <rth@redhat.com>
9600
9601         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
9602
9603 2001-07-17  Richard Henderson  <rth@redhat.com>
9604
9605         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
9606         don't force the function address into a register.
9607         (expand_call, emit_library_call_value_1): Update callers.
9608         * builtins.c (expand_builtin_apply): Likewise.
9609         * expr.h (prepare_call_address): Update decl.
9610
9611 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
9612
9613         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
9614         config directory.
9615         * config/i386/chorus.h: Move up.
9616         * config/sparc/chorus.h: Likewise.
9617         * config/rs6000/chorus.h: Likewise.
9618         * config/chorus.h: Moved here.
9619
9620 2001-07-17  Andreas Schwab  <schwab@suse.de>
9621
9622         * configure.in  (assembler eh_frame optimization): Handle big
9623         endian.
9624         * configure: Regenerated.
9625
9626 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
9627
9628         * expr.c (epxand_expr): Convert divisions into multiplications by
9629         reciprocals if -ffast-math.
9630
9631 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9632
9633         * dbxout.c (dbxout_really_begin_function): Rename to
9634         dbxout_begin_function.
9635         (dbx_debug_hooks, xcoff_debug_hooks): Update.
9636         (dbxout_begin_function): Remove.
9637         (dbxout_function): Update.
9638         (dbxout_source_line): Update prototype.
9639         * dbxout.h (dbxout_begin_function): Remove.
9640         * debug.c (do_nothing_debug_hooks): Update.
9641         (debug_nothing_tree): Update.
9642         (debug_nothing_charstar_rtx): Remove.
9643         * debug.h (union tree_node): Declare.
9644         (struct rtx_def): Remove.
9645         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
9646         begin_function.  Change source_line prototype.
9647         (debug_nothing_tree): New.
9648         (debug_nothing_charstar_rtx): Delete.
9649         (dwarf2out_begin_prologue): Moved from ...
9650         * tree.h: ... here.
9651         * dwarf2out.c (dwarf2_debug_hooks): Update.
9652         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
9653         debug info, call dwarf2out_source_line.
9654         (dwarf2out_souce_line): Update prototype.
9655         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
9656         Change prototype, make static.
9657         (dwarfout_source_line): Update prototype.
9658         (dwarf_debug_hooks): Update.
9659         * dwarfout.h (dwarfout_begin_function): Remove.
9660         * final.c (final_start_function, final_scan_insn): Use appropriate
9661         debug hooks, update to use notice_source_line.
9662         (output_source_line): Rename notice_source_line.  Don't call the
9663         source_line debug hook.
9664         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
9665         make static, update prototype.
9666         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
9667         prototype.
9668         (sdbout_end_prologue): New.
9669         (sdbout_source_line): Update prototype.
9670         (sdbout_debug_hooks): Update.
9671         (sdbout_symbol): Remove unused var.
9672         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
9673         Delete.
9674         * varasm.c: Include debug.h.
9675         (assemble_start_function): Use begin_function debug_hook.
9676         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9677         update with prototype.
9678         (xcoffout_source_line): Update prototype.
9679         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
9680         update prototype.
9681         (xcoffout_source_line): Update prototype.
9682
9683 2001-07-17  Richard Henderson  <rth@redhat.com>
9684
9685         * c-typeck.c (build_binary_op): Do not shorten unsigned
9686         right shift after sign extension.
9687
9688 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
9689
9690         * combine.c (combine_simplify_rtx): Attempt to simplify
9691         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
9692
9693         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
9694         (simplify_binary_operation, simplify_unary_operation,
9695          simplify_relational_operation): Use it.
9696
9697         * combine.c (combine_simplify_rtx): Don't do associative law
9698         on divisions; allow associative law on floats.
9699
9700 2001-07-17  H.J. Lu <hjl@gnu.org>
9701             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9702
9703         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
9704         ASM_OUTPUT_WEAK_ALIAS are defined.
9705         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
9706         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
9707         Moved ...
9708         * config/mips/iris5.h: ... here.
9709         (HANDLE_SYSV_PRAGMA): Defined as 1.
9710         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
9711         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
9712         symbol.
9713
9714 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
9715
9716         * c-parse.in (all_prefix_attributes): New variable.
9717         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
9718         (maybe_resetattrs): New production.
9719         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
9720         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
9721         notype_initdcl, nested_function, notype_nested_function,
9722         component_decl, components, components_notype,
9723         component_declarator, component_notype_declarator,
9724         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
9725         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
9726         after a comma being applied to more than one declarator.
9727         * doc/extend.texi (Attribute Syntax): Update.  Remove
9728         documentation of bugs that are no longer present.
9729
9730 2001-07-13  Eric Christopher  <echristo@redhat.com>
9731
9732         * config/mips/mips.h: Change TUNE_MIPS* options to use
9733         mips_tune.
9734         (EXTRA_SPECS): Add cc1_cpu_spec.
9735         * config/mips/mips.md (muldf3): Fix typo.
9736
9737 2001-07-16  Richard Henderson  <rth@redhat.com>
9738
9739         * config/m68k/m68k.c: Include expr.h and reload.h.
9740         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
9741         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
9742
9743 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9744             Richard Henderson  <rth@redhat.com>
9745
9746         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
9747         (insn_live_p): Fix fall off end of function.
9748         (dead_libcall_p): Remove COUNTS argument; update callers.
9749         (delete_trivially_dead_insns): Remove unused variables.
9750
9751 2001-07-17  Andreas Jaeger  <aj@suse.de>
9752
9753         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
9754         x86-64 pic support.
9755
9756         * lcm.c (optimize_mode_switching): Avoid warning for unused
9757         variable if !NORMAL_MODE.
9758
9759         * flow.c (try_crossjump_to_edge): Remove unused variable.
9760
9761 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9762
9763         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
9764         atexit declaration in stdlib.h.
9765
9766 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
9767
9768         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
9769
9770 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9771
9772         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
9773         * except.c (finish_eh_generation): Update call of cleanup_cfg;
9774         do rebuild_jump_labels instead of jump_optimize
9775         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
9776         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
9777         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
9778
9779         * flow.c: Include timevar.h
9780         (find_basic_block): Push/pop timevar;
9781         (cleanup_cfg): Likewise.
9782         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
9783         * Makefile: Add dependencies on timevar.h
9784
9785         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
9786         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
9787
9788         * rtl.h (delete_trivially_dead_insns): Add new parameter.
9789         * toplev.c (rest_of_compilation): Update calls.
9790         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
9791         (delete_trivially_dead_insns): ... here; accept new argument
9792         preserve_basic_blocks; preserve basic blocks if set.
9793
9794         * reg-stack.c (stack_regs_mentioned): Return 0 if
9795         stack_regs_mentioned_data is not initialized.
9796         (reg_to_stack): Make stack_regs_mentioned survive after the
9797         reg-stack is completted; do not call cleanup_cfg.
9798         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
9799         make cleanup_cfg after bb-reorder to output to debug file.
9800
9801 2001-07-16  Richard Henderson  <rth@redhat.com>
9802
9803         * regclass.c (init_reg_sets): Use only 32 bits per initializer
9804         from int_reg_class_contents.
9805
9806 2001-07-16  Richard Henderson  <rth@redhat.com>
9807
9808         * hard-reg-set.h (regs_invalidated_by_call): Declare.
9809         * regclass.c (regs_invalidated_by_call): Move from cse.c.
9810         (init_reg_sets_1): Move initialization from cse_main.
9811         * cse.c (regs_invalidated_by_call): Move to regclass.c.
9812         (cse_main): Move its initialization also.
9813         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
9814         * flow.c (propagate_one_insn): Likewise.
9815         * gcse.c (compute_hash_table): Likewise.
9816         (compute_kill_rd, compute_store_table): Likewise.
9817         * sched-deps.c (sched_analyze_1): Likewise.
9818
9819 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
9820
9821         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
9822         gen_rtx_SET.
9823
9824 2001-07-16  Steve Ellcey <sje@cup.hp.com>
9825
9826         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
9827         in if statement so we don't access undefined memory.
9828
9829 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
9830
9831         * gcse.c: Update comment at top.
9832         Update comment on mem handling.
9833         mem_last_set, mem_first_set, mem_set_in_block: gone.
9834         Declaration of reg_set_info: gone.
9835         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
9836         pointless with load_killed_in_block_p (they are *more*
9837         conservative then it, not less, and less accurate).
9838         (oprs_not_set_p): Ditto.
9839         (alloc_gcse_mem): Don't allocate mem_set_in_block
9840         (free_gcse_mem): Don't free it, either.
9841         (record_last_mem_set_info): Update comment in front, remove
9842         mem_*set_* stuff. Note the reason we don't handle stores directly
9843         here.
9844         (compute_hash_table): Update comments to reflect reality. Remove
9845         mem_*set_* references.
9846         (reset_opr_set_tables): Remove mem_*set_* references.
9847         (mark_call): Ditto.
9848         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
9849         (mark_clobber): Ditto (on both parts, we double set here too).
9850         (expr_killed_p): Remove mem_set_in_block test.
9851         (compute_transp): Remove mem_set_in_block test.
9852
9853         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
9854         of edge, and removal of phi alternative to dump file.
9855         (ssa_ccp_substitute_constants): Add note about register now being
9856         constant, and which uses were replaced in what insns to dump file.
9857
9858 2001-07-16  Andreas Jaeger  <aj@suse.de>
9859
9860         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
9861         variables of type HOST_WIDEST_INT.
9862
9863         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
9864         (__bb_exit_func): Correct type of count_max to avoid overflow.
9865         (num_digits): Handle long long argument.
9866
9867         * combine.c (gen_lowpart_for_combine): Remove unused variable.
9868
9869 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9870
9871         * output.h (sdb_begin_function_line): Restore as an extern
9872         variable.
9873         * sdbout.c (sdb_begin_function_line): Make extern.
9874
9875 2001-07-15  Richard Henderson  <rth@redhat.com>
9876
9877         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
9878         * genrecog.c (maybe_both_true_mode): New.
9879         (maybe_both_true_2): Use it.
9880         (write_switch): Don't put Pmode in a switch.
9881         * rtl.c (mode arrays): Don't explicitly size them.
9882
9883 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9884
9885         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
9886         handling; move unconditional splitting before mode switching.
9887
9888         * i386.md (type): Add fistp type.
9889         (i387, length_attr, scheduling definitions): Handle this type.
9890         (fix_trunc?f?i2): Revamp to use mode switching.
9891         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
9892         * i386.h (fp_cw_mode): New enum
9893         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
9894         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
9895
9896 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9897
9898         * Makefile.in (integrate.o): Add debug.h.
9899         * integrate.c (debug.h): Add.
9900         (output_inline_function): Save, reset, and restore debug_hooks.
9901
9902 2001-07-15  Richard Henderson  <rth@redhat.com>
9903
9904         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
9905         instead of COMPARE for the EQUIV expression.
9906
9907 2001-07-15  Richard Henderson  <rth@redhat.com>
9908
9909         * flow.c (redirect_edge_and_branch_force): Initialize
9910         global_live_at_start and global_live_at_end.
9911         (allocate_bb_life_data): Export.
9912         * basic-block.h (allocate_bb_life_data): Declare.
9913         * toplev.c (rest_of_compilation): Call it.
9914
9915 2001-07-15  Richard Henderson  <rth@redhat.com>
9916
9917         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
9918         (alpha_tablejump_best_label): New.
9919         * config/alpha/alpha-protos.h: Declare them.
9920         * config/alpha/alpha.md: Use braced strings for code blocks.
9921         (tablejump_osf): Break out add with r29.
9922         (tablejump_osf_internal): Remove.
9923         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
9924         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
9925
9926 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9927
9928         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
9929         of the movable.
9930
9931         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
9932
9933         * i386-protos.h (ix86_split_fp_branch): Update prototype.
9934         (ix86_fp_jump_nontrivial_p): New.
9935         * i386.md (fp_jcc_?): Update call of split_fp_branch;
9936         use ix86_fp_jump_nontrivial_p.
9937         * i386.c (ix86_fp_jump_nontrivial_p): New.
9938         (ix86_split_fp_branch): Accept code instead of rtx.
9939         (ix86_expand_compare): Expand comparison early in case
9940         doing so is resonably cheap.
9941
9942 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
9943
9944         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
9945         not 'machine'.
9946         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
9947         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
9948
9949 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
9950
9951         * dbxout.c (dbxout_source_line): Make static, update prototype.
9952         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
9953         (dbxout_init, dbxout_finish, dbxout_source_line,
9954         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
9955         * dbxout.h (dbxout_source_line): Delete.
9956         * debug.c (debug_nothing_file, debug_nothing_file_int,
9957         debug_nothing_file_charstar_rtx): New.
9958         (do_nothing_debug_hooks): Update.
9959         (debug_nothing_void, debug_nothing_charstar_rtx,
9960         dwarf2out_end_epilogue): New.
9961         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9962         * debug.h (struct rtx_def): Declare.
9963         (gcc_debug_hooks): New hooks source_line, end_epilogue
9964         and end_function.
9965         (debug_nothing_void, debug_nothing_charstar_rtx,
9966         dwarf2out_end_epilogue): New.
9967         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
9968         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
9969         (dwarf2_debug_hooks): Update.
9970         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
9971         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
9972         * dwarf2out.h (dwarf2out_source_line): Remove.
9973         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
9974         Make static, update prototype.
9975         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
9976         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
9977         (dwarf_debug_hooks): Update.
9978         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
9979         dwarfout_end_function): Remove.
9980         * final.c (profile_function): Use debug hooks for ending functions
9981         and epilogues.
9982         (output_source_line, final_end_function): Update prototype,
9983         use debug hooks.
9984         (final_start_function, final_scan_insn): Update.
9985         * output.h (sdb_begin_function_line): Remove.
9986         (final_end_function): Update prototype.
9987         * sdbout.c (sdb_begin_function_line): Make static.
9988         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
9989         (sdbout_source_line): New.
9990         (sdbout_end_epilogue, sdbout_end_function): Make static, update
9991         prototypes.
9992         (sdb_debug_hooks): Update.
9993         (sdbout_init, sdbout_source_line,
9994         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
9995         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
9996         * toplev.c (compile_file, rest_of_compilation): Update.
9997         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
9998         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
9999         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
10000         Update for prototype changes.
10001         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
10002         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
10003
10004 2001-07-15  Richard Henderson  <rth@redhat.com>
10005
10006         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
10007         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
10008         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
10009         * config/alpha/alpha.c: Likewise.
10010         * config/alpha/alpha.md: Likewise.
10011         * config/alpha/alpha32.h: Likewise.
10012         * config/alpha/vms.h: Likewise.
10013         (OPEN_VMS): Remove.
10014
10015 2001-07-14  Richard Henderson  <rth@redhat.com>
10016
10017         * config/alpha/alpha.md: Use define_constants for unspec values.
10018         Substitute throughout.
10019
10020 2001-07-14  Tim Josling  <tej@melbpc.org.au>
10021
10022         * tree.def (EXPON_EXPR) remove. Never supported anyway.
10023
10024 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10025
10026         * pa.md: Remove unused constraints from define_split's.
10027
10028 2001-04-14  Richard Henderson  <rth@redhat.com>
10029
10030         * ifcvt.c (find_cond_trap): Test for exit block.
10031
10032 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
10033
10034         Re-install recently reverted patch.
10035         * emit-rtl.c (try_split): Update mark_jump_label call.
10036         * flow.c (find_sub_basic_blocks): Likewise.
10037         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10038         jump_back_p): Kill.
10039         (mark_all_labels): Kill second parameter.
10040         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10041         (rebuild_jump_labels, jump_optimize_minimal): Update call
10042         of jump_optimize_1.
10043         (jump_optimize_1): Kill crossjumping code.
10044         (mark_jump_label): Kill cross_jump parameter.
10045         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10046         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10047         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10048          splitting.
10049         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10050         DFI_bpro.
10051         (dump_file_info): Likewise.
10052         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10053         reorganize passes to do reg-stack first, bb-reorder second.
10054         * invoke.texi (-d letters doc): Remove the jump2 pass.
10055
10056 2001-07-14  Richard Henderson  <rth@redhat.com>
10057
10058         * ifcvt.c (find_cond_trap): New.
10059         (find_if_header): Call it.
10060         (merge_if_block): Relax existing jump sanity check.
10061         * jump.c (jump_optimize_1): Remove conditional trap handling.
10062
10063 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
10064
10065         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
10066         millicode.
10067         (insn_refs_are_delayed): Correct comment.
10068         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
10069         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
10070         instead of r31.  Make associated insn !TARGET_64BIT, and
10071         provide an additional 64-bit insn that clobbers r2.
10072         (divsi3): Likewise.
10073         (udivsi3): Likewise.
10074         (modsi3): Likewise.
10075         (umodsi3): Likewise.
10076
10077 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
10078
10079         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
10080
10081         * flow.c (redirect_edge_and_branch_force, split_edge,
10082         try_crossjump_to_edge): Use set_block_for_new_insns.
10083         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
10084
10085 2001-07-13  H.J. Lu  (hjl@gnu.org)
10086
10087         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
10088         the correct patch.
10089
10090 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10091
10092         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
10093
10094 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
10095
10096         * c-common.c (decl_attributes): Take a pointer to the node to
10097         which attributes are to be attached, and a flags argument.
10098         * c-common.h (enum attribute_flags): New.
10099         (decl_attributes): Update prototype.
10100         * c-decl.c (start_decl, push_parm_decl, finish_struct,
10101         finish_enum, start_function): Update calls to decl_attributes.
10102         * c-parse.in (component_declarator, component_notype_declarator,
10103         label): Update calls to decl_attributes.
10104
10105 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
10106
10107         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
10108         * config/avr/avr.c (legitimate_address_p): Return value changed
10109         from letter to register classes. For better debugging.
10110
10111 2001-07-13  Kazu Hirata  <kazu@hxi.com>
10112
10113         * jump.c (reversed_comparison_code_parts): Fix comment typos.
10114
10115 2001-07-13  H.J. Lu  (hjl@gnu.org)
10116
10117         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
10118
10119 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
10120
10121         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
10122         correctly for shared configurations.
10123         * config/t-libgcc-pic:  New.
10124         * config/{i386,m68k,sparc}/t-openbsd:  New.
10125         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
10126         Support -shared.  Support debugging libraries with -g.
10127         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
10128         frame information does not emit pointer diffs.
10129         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
10130         emit pointer diffs.
10131
10132 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
10133
10134         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
10135
10136 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
10137
10138         * combine.c (try_combine): Ensure const_int pow2 is positive.
10139
10140 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
10141
10142         * config.gcc: Add configuration for s/390.
10143         * config/s390/s390.c: New. Subroutines for code generation.
10144         * config/s390/s390.h: New. Definitions for s/390.
10145         * config/s390/s390-protos.h: New. Prototypes.
10146         * config/s390/linux.h: New. Definitions for linux for s/390.
10147         * config/s390/linux64.h: New. Definitions for linux for zSeries.
10148         * config/s390/t-linux: New. Makefile fragment.
10149         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
10150         * config/s390/fixdfdi.h: New. Fix L_fix*di.
10151
10152 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
10153
10154         * emit-rtl.c (try_split): Update mark_jump_label call.
10155         * flow.c (find_sub_basic_blocks): Likewise.
10156         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
10157         jump_back_p): Kill.
10158         (mark_all_labels): Kill second parameter.
10159         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
10160         (rebuild_jump_labels, jump_optimize_minimal): Update call
10161         of jump_optimize_1.
10162         (jump_optimize_1): Kill crossjumping code.
10163         (mark_jump_label): Kill cross_jump parameter.
10164         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
10165         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
10166         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
10167          splitting.
10168         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
10169         DFI_bpro.
10170         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
10171         reorganize passes to do reg-stack first, bb-reorder second.
10172         * invoke.texi (-d letters doc): Remove the jump2 pass.
10173
10174 2001-07-12  Steve Ellcey <sje@cup.hp.com>
10175
10176         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
10177
10178 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10179
10180         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
10181         basic blocks.
10182         (verify_flow_info): Make diagnostics prettier.
10183
10184 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10185
10186         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
10187
10188         * flow.c (outgoing_edges_match): Return early if condition reversal
10189         failed.
10190
10191 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
10192
10193         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
10194         (mips_move_2words): When splitting a move into two instructions,
10195         prefix the second address operand with '%D'.
10196
10197 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10198
10199         * Makefile.in (final.o): Depend on debug.h.
10200         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
10201         (dbx_debug_hooks): Add new hooks.
10202         (xcoff_debug_hooks): New.
10203         * debug.c (debug_nothing_file_int_int): New.
10204         (do_nothing_debug_hooks): Update.
10205         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
10206         (debug_nothing_file_int_int): New.
10207         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
10208         static, update prototype.
10209         (dwarf2_debug_hooks): Update.
10210         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
10211         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
10212         static, update prototype.
10213         (dwarf_debug_hooks): Update.
10214         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
10215         * final.c: Include debug.h.
10216         (final_scan_insn): Use debug hooks when beginning and ending blocks.
10217         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
10218         static, update prototype.
10219         (sdb_debug_hooks): Update.
10220         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
10221         * toplev.c: Distinguish between xcoff and dbx.
10222
10223         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
10224         Call all debug hooks, not just dwarf ones.
10225
10226 2001-07-11  Timothy Wall  <twall@redhat.com>
10227
10228         * config.gcc: Add configuration for AIX5/IA64.
10229         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
10230         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
10231         support prefix/suffix code.
10232         * config/ia64/t-aix: New.  Makefile fragment.
10233         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
10234
10235 2001-07-11  Kazu Hirata  <kazu@hxi.com>
10236
10237         * recog.c (validate_change): Fix a comment typo.
10238
10239 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10240
10241         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
10242         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
10243         hooks directly.
10244         * dbxout.c (dbx_debug_hooks): Add new hooks.
10245         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
10246         make static.
10247         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
10248         make static.
10249         * dbxout.h (dbxout_start_new_source_file,
10250         dbxout_resume_previous_source_file): Delete.
10251         * debug.c (do_nothing_debug_hooks): Add new hooks.
10252         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10253         (debug_nothing_int_charstar, debug_nothing_int): New.
10254         * debug.h (gcc_debug_hooks): New hooks define, undef,
10255         start_source_file and end_source_file.
10256         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
10257         (debug_nothing_int_charstar, debug_nothing_int): New.
10258         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
10259         the conditionally compiled section.
10260         (dwarf2out_start_source_file, dwarf2out_end_source_file,
10261         dwarf2out_define, dwarf2out_undef): Make static.
10262         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
10263         dwarf2out_define, dwarf2out_undef): Remove.
10264         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
10265         (dwarfout_start_source_file, dwarfout_end_source_file,
10266         dwarfout_define, dwarfout_undef): Make static.
10267         (dwarfout_start_source_file_check,
10268         dwarfout_end_source_file_check): New.
10269         (dwarfout_define, dwarfout_finish): Update.
10270         * dwarfout.h (dwarfout_start_new_source_file,
10271         dwarfout_resume_previous_source_file, dwarfout_define,
10272         dwarfout_undef): Remove.
10273         * sdbout.c (sdb_debug_hooks): Add new hooks.
10274         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
10275         make static.
10276         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
10277         make static, take an arg.
10278         * sdbout.h (sdbout_start_new_source_file,
10279         sdbout_resume_previous_source_file): Delete.
10280         * toplev.c (debug_start_source_file, debug_end_source_file,
10281         debug_define, debug_undef): Delete.
10282         * toplev.h (debug_start_source_file, debug_end_source_file,
10283         debug_define, debug_undef): Delete.
10284
10285         * java/jcf-parse.c: Include debug.h.
10286         (parse_class_file): Update to use debug hooks directly.
10287         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
10288
10289 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10290
10291         * alias.c (set_mem_alias_set): New function.
10292         * rtl.h (set_mem_alias_set): Declare it.
10293         * builtins.c (expand_builtin_return_addr): Call it instead of
10294         using MEM_ALIAS_SET accessor.
10295         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
10296         (get_memory_rtx, expand_builtin_va_arg): Likewise.
10297         (expand_builtin_va_copy):Likewise.
10298         * caller-save.c (setup_save_areas): Likewise.
10299         * calls.c (compute_argument_addresses): Likewise.
10300         * explow.c (set_mem_attributes): Likewise.
10301         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
10302         (expand_assignment, store_constructor_field, store_field): Likewise.
10303         (expand_expr_unaligned): Likewise.
10304         * function.c (assign_stack_temp_for_type): Likewise.
10305         (put_reg_into_stack, gen_mem_addressof): Likewise.
10306         * ifcvt.c (noce_try_cmove_arith): Likewise.
10307         * reload1.c (reload, alter_reg): Likewise.
10308         * config/alpha/alpha.c (get_aligned_mem): Likewise.
10309         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
10310         (alpha_expand_unaligned_store): Likewise
10311         (alpha_expand_unaligned_load_words): Likewise.
10312         (alpha_expand_unaligned_store_words): Likewise.
10313         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
10314         (alpha_expand_epilogue): Likewise.
10315         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
10316         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
10317         * config/i386/i386.c (legitimize_pic_address): Likewise.
10318         * config/i960/i960.c (setup_incoming_varargs): Likewise.
10319         * config/ia64/ia64.c (spill_restore_mem): Likewise.
10320         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10321         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
10322         * config/mips/mips.c (mips_va_arg): Likewise.
10323         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10324         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10325         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10326         (setup_incoming_varargs, rs6000_va_arg): Likewise.
10327         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
10328         (rs6000_emit_epilogue): Likewise.
10329         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
10330         * config/sparc/sparc.c (sparc_va_arg): Likewise.
10331         * config/v850/v850.c (v850_va_arg): Likewise.
10332
10333 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
10334
10335         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
10336         when fallthru edge is present.
10337         (mege_blocks): Handle case where creation of jump insn
10338         is required.
10339
10340         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
10341         CLEANUP_POST_REGSTACK): New constants.
10342         * except.c (finish_eh_generation): Update call of cleanup_cfg,
10343         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
10344         * output.h (cleanup_cfg): Update prototype.
10345         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
10346         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
10347         cleanup_cfg call; kill missleading comment.
10348         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
10349         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
10350         parameter; control optimizations performed using it.
10351         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
10352         try_crossjump_bb): New functions.
10353
10354 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10355
10356         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
10357         extern.
10358         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
10359         pa_output_function_prologue.
10360         * pa-protos.h (pa_output_function_prologue): New prototype.
10361
10362 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10363
10364         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
10365         and low to get correct sign extension in low+high test.
10366
10367 2001-07-11  Janis Johnson <janis@us.ibm.com>
10368
10369         * gcov.c (arcdata): Use gcov_type to fix branch percentage
10370         for large hit count.
10371
10372         * profile.c (branch_prob): Fix .bbg info for computed gotos
10373         and C++ EH code.
10374
10375 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
10376
10377         * stmt.c (parse_output_constraint): New function, split out
10378         from ...
10379         (expand_asm_operands): ... here.  Use parse_output_constraint.
10380         * tree.h (parse_output_constraint): Declare it.
10381
10382 2001-07-11  Richard Henderson  <rth@redhat.com>
10383
10384         * bitmap.c: Comment some functions; fiddle whitespace.
10385         (bitmap_free): Don't export.
10386         (bitmap_element_allocate): Use memset.
10387         * bitmap.h (bitmap_free): Don't declare.
10388
10389 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
10390
10391         * gcse.c, lcm.c, sched-deps.c:
10392         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
10393
10394         * flow.c (flow_loops_find): Free dom if we found no loops, since
10395         we aren't going to save it.
10396
10397         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
10398         done.
10399
10400 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
10401
10402         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
10403
10404 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10405
10406         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
10407         #ifndef DWARF2_DEBUGGING_INFO.
10408
10409 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10410
10411         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
10412
10413 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10414
10415         * config/mips/mips.c (gen_int_relational): Tell the caller not to
10416         reverse a branch if a NE comparison is implemented with GTU.
10417
10418 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
10419             H.J. Lu  <hjl@gnu.org>
10420
10421         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
10422         constant addresses.
10423         (call_internal2): Likewise.
10424         (call_value_internal1): Likewise.
10425         (call_value_internal2): Likewise.
10426         (call_value_multiple_internal1): Likewise.
10427         (call_value_multiple_internal2): Likewise.
10428
10429 2001-07-10  Kazu Hirata  <kazu@hxi.com>
10430
10431         * calls.c (emit_library_call_value_1): Fix a comment typo.
10432         * dwarf2out.c (mem_loc_descriptor): Likewise.
10433         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
10434
10435 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
10436
10437         * simplify-rtx.c (simplify_subreg): Fix typo in comment
10438
10439 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10440
10441         * recog.c (offsettable_address_p): Handle LO_SUM case.
10442         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
10443         instead of plus_constant.
10444
10445 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10446
10447         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
10448         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
10449
10450 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10451
10452         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
10453         adjust_address_nv instead of plus_constant.
10454
10455 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10456
10457         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
10458         dwarf2out.o): Depend on debug.h, wrap long lines.
10459         * dbxout.c: Include debug.h.
10460         (dbx_debug_hooks): New.
10461         (dbxout_init): Make static, take just 2 args.
10462         (dbxout_finish): Make static.
10463         * dbxout.h (dbxout_init, dbxout_finish): Delete.
10464         * debug.c: New file.
10465         * debug.h: New file.
10466         * dwarf2out.c: Include debug.h.
10467         (dwarf2_debug_hooks): New.
10468         (dwarf2out_init): Make static.
10469         (dwarf2out_finish): Make static, take 2 args.
10470         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
10471         * dwarfout.c: Include debug.h.
10472         (dwarf_debug_hooks): New.
10473         (dwarfout_init): Make static.
10474         (dwarfout_finish): Make static, take 2 args.
10475         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
10476         * sdbout.c: Include debug.h.
10477         (sdb_debug_hooks): New.
10478         (sdbout_init): Make static, take 2 args.
10479         * sdbout.h (sdbout_init): Delete.
10480         * toplev.c: Include debug.h.
10481         (debug_hooks): New.
10482         (compile_file): Set deubg_hooks based on command line options.
10483         Use the hooks unconditionally rather than conditional compilation.
10484
10485 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
10486
10487         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
10488         first_insn_after_basic_block_note instead.
10489
10490         * df.c (df_bb_refs_unlink): #if 0 out for now.
10491
10492 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
10493
10494         * ssa.h: Add prototype for ssa_const_prop
10495         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
10496         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
10497         (ssa_fast_dce): Remove unused variable
10498
10499 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10500
10501         * diagnostic.c (finish_diagnostic): Rename to
10502         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
10503         calls thourghout.
10504
10505 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
10506
10507         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
10508         .loc support.
10509
10510         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
10511         (dump_file): Only pad the demangled name with spaces if the
10512         mangled name was padded with spaces.
10513
10514 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
10515
10516         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
10517         edge detection.
10518
10519 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10520
10521         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
10522         extraction if no direct load if either EXPAND_CONST_ADDRESS or
10523         EXPAND_INITIALIZER.
10524
10525         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
10526         whether can put offset inside LO_SUM to check mode alignment, not size.
10527
10528 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10529
10530         * doc/tm.texi (Misc): Fix thinko.
10531
10532 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
10533
10534         * regmove.c (replace_in_call_usage): Fix warnings.
10535         * sched-deps.c (add_dependence): Fix warnings.
10536         * simplify-rtx.c (simplify_subreg): Likewise.
10537         Return NULL_RTX instead of NULL.
10538
10539         * reg-stack.c (emit_swap_insn): Eliminate warnings.
10540         (subst_asm_stack_regs): Likewise.
10541
10542         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
10543         warnings.
10544
10545         * dwarf2out.c (output_call_frame_info): Declare i as int.
10546         (build_abbrev_table): Declare n_alloc as int.
10547         (dwarf2out_finish): Initialize die.
10548         * except.c: Declare sjlj_funcdef_number as unsigned.
10549         (connect_post_landing_pads): Declare j as unsigned.
10550         (convert_to_eh_region_ranges): Initialize call_site.
10551         (output_function_exception_table): Initialize tt_format_size.
10552         * expr.c (move_by_pieces_1): Initialize to1.
10553         (store_constructor): Initialize minelt and maxelt.
10554         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
10555         * function.c (instantiate_decls): Avoid signed/unsigned warning.
10556
10557         * c-decl.c (combine_parm_decls): Unused, remove.
10558         * c-tree.h: Remove prototype for combine_parm_decls.
10559
10560         * reload.c (push_reload): Fix warning.
10561         (regno_clobbered_p): Likewise.
10562         * reload1.c (replace_pseudos_in_call_usage): Likewise.
10563         (reload_combine): Likewise.
10564
10565         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
10566         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
10567         warnings.
10568         * bitmap.c (bitmap_operation): Change user.
10569         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
10570
10571 2001-07-10  Eric Christopher  <echristo@redhat.com>
10572
10573         * config/mips/mips.c (override_options): Fix typo.
10574
10575 2001-07-09  Stan Shebs  <shebs@apple.com>
10576
10577         * target.h (struct gcc_target): New fields init_builtins and
10578         expand_builtin.
10579         * target-def.h (TARGET_INIT_BUILTINS): New macro.
10580         (TARGET_EXPAND_BUILTIN): New macro.
10581         (TARGET_INITIALIZER): Add them.
10582         * builtins.c: Include target.h.
10583         (expand_builtin): Use targetm.expand_builtin.
10584         (default_init_builtins): New function.
10585         (default_expand_builtin): New function.
10586         * expr.h (default_init_builtins): Declare.
10587         (default_expand_builtin): Declare.
10588         * c-common.c (c_common_nodes_and_builtins): Use
10589         targetm.init_builtins.
10590         * defaults.h (MD_INIT_BUILTINS): Remove.
10591         * Makefile.in (builtins.o): Depend on target.h.
10592
10593         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
10594         (TARGET_EXPAND_BUILTIN): Define.
10595         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
10596         (MD_EXPAND_BUILTIN): Remove.
10597
10598         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
10599         (TARGET_EXPAND_BUILTIN): Define.
10600         (c4x_init_builtins): Make endlink arg a local.
10601         (c4x_print_operand): Fix typos in adjust_address usages.
10602         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
10603         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
10604         (MD_EXPAND_BUILTIN): Remove.
10605
10606         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
10607         (TARGET_EXPAND_BUILTIN): Define.
10608         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
10609         (ix86_init_builtins): Call new function only if TARGET_MMX.
10610         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
10611         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
10612         (MD_EXPAND_BUILTIN): Remove.
10613
10614         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
10615         (TARGET_EXPAND_BUILTIN): Define.
10616         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
10617         (MD_EXPAND_BUILTIN): Remove.
10618
10619         * doc/tm.texi: Document these changes.
10620
10621 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
10622
10623         * basic-block.h (tree_node): Forward declare if needed.
10624         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
10625         (BLOCK_HEAD_TREE): Define.
10626         (BLOCK_END_TREE): Define.
10627         (struct loops): Rename field 'tree' to 'tree_root'.
10628         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
10629         'end_tree'.
10630         (flow_loops_tree_build): Rename reference to field 'tree' to
10631         'tree_root'.
10632         (flow_loops_level_compute): Ditto.
10633         * predict.c (estimate_bb_frequencies): Ditto.
10634         * tree.h (struct tree_common): Add field 'aux'.
10635
10636 2001-07-09  Stan Shebs  <shebs@apple.com>
10637
10638         * config/darwin.c (darwin_encode_section_info): Don't mark any
10639         DECL_EXTERNAL node as defined.
10640
10641 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10642
10643         * pa.c (pa_init_machine_status, pa_mark_machine_status,
10644         pa_free_machine_status, hppa_init_pic_save): Delete.
10645         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
10646         (hppa_profile_hook): Use hppa_pic_save_rtx.
10647         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
10648         hppa_init_pic_save): Delete.
10649         (hppa_pic_save_rtx): Declare.
10650         * pa.md (call, call_value, sibcall, sibcall_value,
10651         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
10652
10653 2001-07-09  Kazu Hirata  <kazu@hxi.com>
10654
10655         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
10656         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
10657
10658 2001-07-09  Andreas Jaeger  <aj@suse.de>
10659
10660         * output.h: Add declaration of final_forward_branch_p.
10661
10662         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
10663
10664         * varray.c: Include errors.h for internal_error and trim_filename
10665         declarations.
10666
10667         * Makefile.in (varray.o): Add errors.h.
10668
10669 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
10670
10671         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
10672         * optabs.c (have_add2_insn): Check whether the add insn chosen
10673         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
10674         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
10675
10676 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
10677
10678         * Makefile.in (OBJS): Add ssa-ccp.o
10679         (ssa-ccp.o): Add dependencies.
10680         * toplev.c (DFI_ssa_ccp): New dump file enum.
10681         (dump_file): Add entry for dumping after SSA CCP.
10682         (flag_ssa_ccp): New flag variable.
10683         (f_options): Add -fssa-ccp.
10684         (rest_of_compilation): Run SSA CCP if requested.
10685         * timevar.def (TV_SSA_CCP): New timevar.
10686         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
10687         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
10688         Fix minor typo in SSA DCE documentation.
10689         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
10690         Add documentation for new dump option.  Renumber dump files
10691         appropriately.
10692
10693 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10694
10695         * emit-rtl.c (gen_highpart_mode): New.
10696         * rtl.h (gen_highpart_mode): Declare.
10697         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
10698         operand can be VOIDmode constant.
10699
10700 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
10701
10702         * flow.c (redirect_edge_and_branch_force): New.
10703         (can_fallthru): Ensure that basic blocks are succeeding.
10704         (try_optimize_cfg): Do not delete basic block if it is the last one.
10705
10706         * flow.c (try_redirect_by_replacing_jump): Do not remove
10707         jumps with side effects, unlink chain on fallthru edge;
10708         set block for new jump instruction; avoid basic block to
10709         over by line number note.
10710
10711         * flow.c (try_simplify_condjump): Verify that the condjump
10712         is not always falling trought.
10713
10714         Re-install patch:
10715         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
10716
10717         * flow.c (forwarder_block_p): Fix for fallthru blocks.
10718         (try_redirect_by_replacing_jump): Update properly the count
10719         and frequency information.
10720
10721 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10722
10723         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
10724         address that is a LO_SUM specially.
10725         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
10726
10727         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
10728
10729         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
10730         (operand_subword): Use them.
10731         (change_address_1): Renamed from change_address; new arg VALIDATE.
10732         * expr.h: Reflect above changes; change_address now macro.
10733         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
10734         making MEM.
10735         * cselib.c (add_mem_for_addr): Likewise.
10736         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
10737         * regmove.c (try_apply_stack_adjustment): Likewise.
10738         * reload.c (push_reload, make_memloc): Likewise.
10739         * reload1.c (eliminate_regs): Likewise.
10740         * simplify-rtx.c (simplify_replace_rtx): Likewise.
10741         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
10742         adjust_addess.
10743         * combine.c (make_extraction, simplify_shift_const): Likewise.
10744         (gen_lowpart_for_combine): Likewise.
10745         * cse.c (gen_lowpart_if_possible): Likewise.
10746         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
10747         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
10748         * optabs.c (gen_move_insn): Likewise.
10749         * reload1.c (alter_reg): Likewise.
10750         * simplify-rtx.c (simplify_subreg): Likewise.
10751         * stmt.c (expand_anon_union_decl): Likewise.
10752         * recog.c (validate_replace_rtx_1): Likewise.
10753         (expr.h): Include.
10754         * Makefile.in (recog.o): Add $(EXPR_H).
10755         * explow.c (stabilize): Call replace_equiv_address.
10756         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
10757         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
10758
10759 2001-07-03  Andrew Haley  <aph@redhat.com>
10760
10761         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
10762         the mode of the memory location.
10763
10764 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
10765
10766         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
10767
10768 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
10769
10770         * final.c (output_addr_const): Use target opening and
10771         closing parentheses.
10772         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
10773         defaults, add to TARGET_ASM_OUT.
10774         * target.h (struct gcc_target): Add open_paren and close_paren.
10775         * doc/md.texi: Update.
10776         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
10777         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
10778         TARGET_ASM_CLOSE_PAREN.
10779         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10780         Override.
10781         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
10782         Override.
10783         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
10784         * config/a29k/a29k.h: Similarly.
10785         * config/alpha/alpha.h: Similarly.
10786         * config/arc/arc.h: Similarly.
10787         * config/arm/aof.h: Similarly.
10788         * config/arm/aout.h: Similarly.
10789         * config/avr/avr.h: Similarly.
10790         * config/c4x/c4x.h: Similarly.
10791         * config/clipper/clipper.h: Similarly.
10792         * config/convex/convex.h: Similarly.
10793         * config/d30v/d30v.h: Similarly.
10794         * config/dsp16xx/dsp16xx.h: Similarly.
10795         * config/elxsi/elxsi.h: Similarly.
10796         * config/fr30/fr30.h: Similarly.
10797         * config/h8300/h8300.h: Similarly.
10798         * config/i370/i370.h: Similarly.
10799         * config/i386/i386.h: Similarly.
10800         * config/i860/i860.h: Similarly.
10801         * config/i960/i960.h: Similarly.
10802         * config/ia64/ia64.h: Similarly.
10803         * config/m32r/m32r.h: Similarly.
10804         * config/m68hc11/m68hc11.h: Similarly.
10805         * config/m68k/m68k.h: Similarly.
10806         * config/m88k/m88k.h: Similarly.
10807         * config/mcore/mcore.h: Similarly.
10808         * config/mips/mips.h: Similarly.
10809         * config/mn10200/mn10200.h: Similarly.
10810         * config/mn10300/mn10300.h: Similarly.
10811         * config/ns32k/ns32k.h: Similarly.
10812         * config/pa/pa.h: Similarly.
10813         * config/pdp11/pdp11.h: Similarly.
10814         * config/pj/pj.h: Similarly.
10815         * config/romp/romp.h: Similarly.
10816         * config/rs6000/rs6000.h: Similarly.
10817         * config/sh/sh.h: Similarly.
10818         * config/sparc/sparc.h: Similarly.
10819         * config/v850/v850.h: Similarly.
10820         * config/vax/vax.h: Similarly.
10821         * config/we32k/we32k.h: Similarly.
10822
10823 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
10824
10825         * doc/c-tree.texi: Document representation of attributes.
10826
10827 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10828
10829         * doc/tm.texi: Update some places for the rename of target to
10830         targetm.  Fix typo.
10831
10832 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10833
10834         * target.h (struct gcc_target): Add insert_attributes.
10835         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
10836         (TARGET_INITIALIZER): Update.
10837         * tree.c, tree.h (default_insert_attributes): New function.
10838         Update comments on other default functions to refer to targetm,
10839         not target.
10840         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
10841         TARGET_INSERT_ATTRIBUTES.
10842         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
10843         * c-common.c (decl_attributes): Use targetm.insert_attributes.
10844         Don't use PRAGMA_INSERT_ATTRIBUTES.
10845         * Makefile.in (c-common.o): Depend on $(TARGET_H).
10846         * c-decl.c (start_decl, start_function): Don't call
10847         SET_DEFAULT_DECL_ATTRIBUTES.
10848         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10849         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
10850         declare.
10851         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
10852         (c4x_check_attribute): Avoid modifying attribute list itself.
10853         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
10854         Make static.
10855         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
10856         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
10857         declare.
10858         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
10859         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
10860         Make static.
10861         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
10862         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
10863         declare.
10864         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
10865         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
10866         Adjust parameters.  Make static.
10867
10868 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10869
10870         * c-common.c (decl_attributes): Only take a single attributes
10871         parameter.
10872         * c-common.h (decl_attributes): Update prototype.
10873         * c-decl.c (start_decl, start_function): Only take a single
10874         attributes parameter.  Update calls to decl_attributes.
10875         (finish_struct, finish_enum): Update calls to decl_attributes.
10876         (push_parm_decl): Expect unified list of attributes.  Update call
10877         to decl_attributes.
10878         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
10879         notype_nested_function, component_declarator,
10880         component_notype_declarator, label): Update calls to
10881         decl_attributes.
10882         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
10883         lists that are passed to push_parm_decl.
10884         * c-tree.h (start_function, start_decl): Update prototypes.
10885         * config/sh/sh-protos.h, config/sh/sh.c
10886         (sh_pragma_insert_attributes): Only take a single attributes
10887         parameter.
10888         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
10889         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
10890         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
10891         build_module_descriptor, generate_static_references,
10892         generate_strings, build_selector_translation_table,
10893         generate_descriptor_table, generate_protocols,
10894         generate_ivars_list, generate_dispatch_table,
10895         generate_protocol_list, generate_category,
10896         generate_shared_structures, really_start_method, add_objc_decls,
10897         generate_classref_translation_entry): Update calls to start_decl
10898         and start_function.
10899         (build_tmp_function_decl, start_method_def): Unify attribute lists
10900         that are passed to push_parm_decl.
10901
10902 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10903
10904         * final.c (no_asm_to_stream): New.
10905         (final_scan_insn): Use target structures for prologue ends
10906         and epilogue starts.
10907         * output.h (no_asm_to_stream): New.
10908         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
10909         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
10910         (TARGET_ASM_OUT): Update.
10911         * target.h (struct gcc_target): New members function_end_prologue
10912         and function_begin_epilogue.
10913         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
10914         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
10915         * config/alpha/alpha.c (output_end_prologue): Rename to
10916         alpha_output_function_end_prologue.  Use in target struct
10917         and make static.
10918         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
10919         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
10920         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
10921         ia64_output_function_end_prologue.  Use in target struct
10922         and make static.
10923         (ia64_function_prologue, ia64_funciton_epilogue): Rename
10924         mistyped prototypes.
10925         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
10926         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
10927         Delete.
10928         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
10929         an use in target struct, make static.
10930         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
10931         Delete.
10932
10933 2001-07-08  Richard Henderson  <rth@redhat.com>
10934
10935         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
10936
10937 2001-07-08  Richard Henderson  <rth@redhat.com>
10938
10939         * config/i386/i386.md: Remove constraints strings from define_split
10940         and define_peephole2 patterns.
10941         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
10942         (eh_return): Use them.
10943
10944 2001-07-08  Richard Henderson  <rth@redhat.com>
10945
10946         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
10947         Document MD_FALLBACK_FRAME_STATE_FOR.
10948
10949 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10950
10951         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
10952         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
10953         elimination.
10954         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
10955
10956 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
10957
10958         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
10959         of the label inside NAME as opposed to just the end of NAME.
10960
10961 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10962
10963         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
10964         * config/alpha/alpha.c (alpha_init_machine_status,
10965         alpha_mark_machine_status, alpha_free_machine_status): Delete.
10966         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
10967         (vms_valid_decl_attribute_p): Make static, conditionally compile.
10968         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
10969
10970 2001-07-06  Stan Shebs  <shebs@apple.com>
10971
10972         * target.h (targetm): Rename global from "target", so as not to
10973         conflict with local variables.
10974         * c-decl.c: Ditto.
10975         * c-typeck.c: Ditto.
10976         * final.c: Ditto.
10977         * tree.c: Ditto.
10978         * cp/decl.c: Ditto.
10979         * cp/decl2.c: Ditto.
10980         * cp/typeck.c: Ditto.
10981         * 1750a/1750a.c: Ditto.
10982         * a29k/a29k.c: Ditto.
10983         * arc/arc.c: Ditto.
10984         * arm/arm.c: Ditto.
10985         * avr/avr.c: Ditto.
10986         * clipper/clipper.c: Ditto.
10987         * convex/convex.c: Ditto.
10988         * d30v/d30v.c: Ditto.
10989         * dsp16xx/dsp16xx.c: Ditto.
10990         * elxsi/elxsi.c: Ditto.
10991         * fr30/fr30.c: Ditto.
10992         * h8300/h8300.c: Ditto.
10993         * i370/i370.c: Ditto.
10994         * i386/i386.c: Ditto.
10995         * i860/i860.c: Ditto.
10996         * i960/i960.c: Ditto.
10997         * ia64/ia64.c: Ditto.
10998         * m32r/m32r.c: Ditto.
10999         * m68hc11/m68hc11.c: Ditto.
11000         * m68k/m68k.c: Ditto.
11001         * m88k/m88k.c: Ditto.
11002         * mips/mips.c: Ditto.
11003         * ns32k/ns32k.c: Ditto.
11004         * pa/pa.c: Ditto.
11005         * pdp11/pdp11.c: Ditto.
11006         * romp/romp.c: Ditto.
11007         * rs6000/rs6000.c: Ditto.
11008         * sh/sh.c: Ditto.
11009         * sparc/sparc.c: Ditto.
11010         * vax/vax.c: Ditto.
11011         * we32k/we32k.c: Ditto.
11012         * doc/tm.texi: Update the manual to match.
11013
11014 2001-07-06  Richard Henderson  <rth@redhat.com>
11015
11016         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
11017         DWARF2_UNWIND_INFO not just whether it is defined.
11018
11019 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
11020
11021         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
11022         call to simplify_binary_operation returns a new pattern.
11023
11024 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11025
11026         * glimits.h (__SHRT_MAX__): New.
11027         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
11028         (SHRT_MAX): Define in terms of __SHRT_MAX__.
11029
11030 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
11031
11032         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
11033         avoid warnings.
11034
11035 2001-07-06  Richard Henderson  <rth@redhat.com>
11036
11037         * bitmap.c (bitmap_release_memory): Move adjacent to the
11038         allocation functions.
11039         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
11040         the implementation.  Binary search for the set bit.
11041         (bitmap_union_of_diff): Allocate the temporary on the stack
11042         instead of using xmalloc.
11043
11044 2001-07-06  Richard Henderson  <rth@redhat.com>
11045
11046         * genrecog.c (validate_pattern): Warn for constraints in
11047         define_{expand,split,peephole2}.  Remove strict_low_part
11048         before looking up match_dup.
11049
11050 2001-07-06  DJ Delorie  <dj@redhat.com>
11051
11052         * doc/gcc.texi (Makefile): Rename to be a more general purpose
11053         chapter about various build hints and history.  Add section
11054         talking about the various types of native and cross builds.
11055
11056 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11057
11058         * Makefile.in (final.o): Depend on target.h.
11059         * final.c: Include target.h.
11060         (default_function_pro_epilogue): New.
11061         (final_start_function): Use target structure for function prologues.
11062         (final_end_function): Use target structure for function epilogues.
11063         * fold-const.c (real_hex_to_f): Constify s and p.
11064         * output.h (default_function_pro_epilogue): New.
11065         * real.h (real_hex_to_f): Update prototype.
11066         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
11067         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
11068         (TARGET_INITIALIZER): Update.
11069         * target.h (gcc_target): Add struct asm_out.
11070         * doc/tm.texi: Update.
11071
11072 config:
11073         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
11074         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
11075         in cpu/cpu.c, or rename old functions consistently.  Take
11076         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
11077         redundant macros and prototypes.  Make new functions static.
11078
11079         * 1750a/1750a.c: Similarly.
11080         * 1750a/1750a.h: Similarly.
11081         * a29k/a29k-protos.h: Similarly.
11082         * a29k/a29k.c: Similarly.
11083         * a29k/a29k.h: Similarly.
11084         * arc/arc-protos.h: Similarly.
11085         * arc/arc.c: Similarly.
11086         * arc/arc.h: Similarly.
11087         * arm/arm-protos.h: Similarly.
11088         * arm/arm.c: Similarly.
11089         * arm/arm.h: Similarly.
11090         * avr/avr-protos.h: Similarly.
11091         * avr/avr.c: Similarly.
11092         * avr/avr.h: Similarly.
11093         * clipper/clipper-protos.h: Similarly.
11094         * clipper/clipper.c: Similarly.
11095         * clipper/clipper.h: Similarly.
11096         * convex/convex.c: Similarly.
11097         * convex/convex.h: Similarly.
11098         * d30v/d30v-protos.h: Similarly.
11099         * d30v/d30v.c: Similarly.
11100         * d30v/d30v.h: Similarly.
11101         * d30v/d30v.md: Similarly.
11102         * dsp16xx/dsp16xx-protos.h: Similarly.
11103         * dsp16xx/dsp16xx.c: Similarly.
11104         * dsp16xx/dsp16xx.h: Similarly.
11105         * elxsi/elxsi.c: Similarly.
11106         * elxsi/elxsi.h: Similarly.
11107         * fr30/fr30.c: Similarly.
11108         * fr30/fr30.md: Similarly.
11109         * h8300/h8300-protos.h: Similarly.
11110         * h8300/h8300.c: Similarly.
11111         * h8300/h8300.h: Similarly.
11112         * i370/i370-protos.h: Similarly.
11113         * i370/i370.c: Similarly.
11114         * i370/i370.h: Similarly.
11115         * i386/i386.c: Similarly.
11116         * i386/osf1elf.h: Similarly.
11117         * i386/osfrose.h: Similarly.
11118         * i860/i860-protos.h: Similarly.
11119         * i860/i860.c: Similarly.
11120         * i860/i860.h: Similarly.
11121         * i960/i960-protos.h: Similarly.
11122         * i960/i960.c: Similarly.
11123         * i960/i960.h: Similarly.
11124         * ia64/ia64-protos.h: Similarly.
11125         * ia64/ia64.c: Similarly.
11126         * ia64/ia64.h: Similarly.
11127         * m32r/m32r-protos.h: Similarly.
11128         * m32r/m32r.c: Similarly.
11129         * m32r/m32r.h: Similarly.
11130         * m68hc11/m68hc11-protos.h: Similarly.
11131         * m68hc11/m68hc11.c: Similarly.
11132         * m68hc11/m68hc11.h: Similarly.
11133         * m68k/crds.h: Similarly.
11134         * m68k/dpx2.h: Similarly.
11135         * m68k/m68k-protos.h: Similarly.
11136         * m68k/m68k.c: Similarly.
11137         * m68k/m68k.h: Similarly.
11138         * m68k/news.h: Similarly.
11139         * m88k/m88k-protos.h: Similarly.
11140         * m88k/m88k.c: Similarly.
11141         * m88k/m88k.h: Similarly.
11142         * mips/mips-protos.h: Similarly.
11143         * mips/mips.c: Similarly.
11144         * mips/mips.h: Similarly.
11145         * ns32k/merlin.h: Similarly.
11146         * ns32k/ns32k.c: Similarly.
11147         * ns32k/ns32k.h: Similarly.
11148         * ns32k/tek6000.h: Similarly.
11149         * pa/pa-protos.h: Similarly.
11150         * pa/pa.c: Similarly.
11151         * pa/pa.h: Similarly.
11152         * pdp11/2bsd.h: Similarly.
11153         * pdp11/pdp11-protos.h: Similarly.
11154         * pdp11/pdp11.c: Similarly.
11155         * pdp11/pdp11.h: Similarly.
11156         * romp/romp-protos.h: Similarly.
11157         * romp/romp.c: Similarly.
11158         * romp/romp.h: Similarly.
11159         * rs6000/rs6000-protos.h: Similarly.
11160         * rs6000/rs6000.c: Similarly.
11161         * rs6000/rs6000.h: Similarly.
11162         * rs6000/sysv4.h: Similarly.
11163         * sh/sh-protos.h: Similarly.
11164         * sh/sh.c: Similarly.
11165         * sh/sh.h: Similarly.
11166         * sparc/sparc-protos.h: Similarly.
11167         * sparc/sparc.c: Similarly.
11168         * sparc/sparc.h: Similarly.
11169         * vax/vax.c: Similarly.
11170         * vax/vax.h: Similarly.
11171         * vax/vms.h: Similarly.
11172         * we32k/we32k.c: Similarly.
11173         * we32k/we32k.h: Similarly.
11174
11175 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
11176
11177         * basic-block.h (first_insn_after_basic_block_note): Declare.
11178         * flow.c (first_insn_after_basic_block_note): Define.  Moved
11179         from...
11180         * ssa.c (first_insn_after_basic_block_note): Remove.
11181         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
11182         necessary.
11183         (ssa_eliminate_dead_code): Properly update the CFG and PHI
11184         nodes when we find a dead conditional branch.  Insert BARRIERs
11185         after any blocks with no successors, but which do not have
11186         any BARRIERs.
11187
11188 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
11189
11190         * varray.c (varray_check_failed): Use internal_error.
11191
11192 2001-07-05  Andrew Haley  <aph@redhat.com>
11193
11194         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
11195         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
11196         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
11197
11198 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
11199
11200         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
11201         reference if the target constant is also a SYMBOL_REF.
11202
11203 2001-07-05  Eric Christopher  <echristo@redhat.com>
11204
11205         * config/mips/mips.h (MASK_MIPS3900): Remove.
11206         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
11207         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
11208         (TARGET_MIPS3900): Change to use mips_arch.
11209         (TARGET_MIPS4000): New.
11210         (TARGET_MIPS4100): New.
11211         (TARGET_MIPS4300): New.
11212         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
11213         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
11214         for -mipsX.
11215         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
11216         (ISA_HAS_BRANCHLIKELY): To here.
11217         (CC1_CPU_SPEC):  New.
11218         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
11219         (mips_arch_string): Declare.
11220         (mips_arch): Declare.
11221         (TARGET_OPTIONS): Add -march and -mtune.
11222
11223         * config/mips/mips.c (mips_arch_string): New.
11224         (mips_arch): New.
11225         (override_options): Handle -march for codegen and -mtune
11226         for scheduling. Use mips_arch. Move tx39 target default here.
11227         (mips_parse_cpu): Move error message to override_options.
11228
11229         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
11230
11231         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
11232
11233         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
11234         (MIPS Options): Ditto.  Change mcpu entry to historical text.
11235
11236 2001-07-05  H.J. Lu  (hjl@gnu.org)
11237
11238         * config/mips/mips.c (mips_parse_cpu): New function to parse
11239         -march=*/-mcpu=*.
11240
11241 2001-07-05  Jim Wilson  <wilson@redhat.com>
11242
11243         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
11244         * config/ia64/t-ia64: Likewise.
11245         (LIB1ASMFUNCS): Update comment.
11246
11247 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
11248
11249         * doc/install.texi (Install GCC: Binaries): Fix typo.
11250
11251 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11252
11253         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
11254         reference using the stack pointer, adjust it since we push Y
11255         temporarily.
11256         ("*ashrsi3"): Likewise.
11257         ("*lshrsi3"): Likewise.
11258
11259 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11260
11261         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
11262         when -fomit-frame-pointer is used.
11263
11264 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
11265
11266         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
11267         (try_redirect_by_replacing_jump): Reverse updating properly the
11268         count and frequency information.  Reverse removing cc0 setter.
11269         (forwarder_block_p): Reverse fixing for fallthru blocks.
11270
11271 2001-07-05  DJ Delorie  <dj@redhat.com>
11272
11273         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
11274         (translate_options): If the above is defined, use it to map
11275         given options to new options.
11276         * doc/tm.texi: Document it.
11277
11278 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
11279             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11280
11281         * doc/invoke.texi (Optimize Options): Document that -fgcse may
11282         cause programs using computed gotos to run more slowly.
11283
11284 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11285
11286         * doc/install.texi (Specific): Markup, spelling and typo fixes.
11287         Fixed sorting.
11288         Consistently require binutils 2.11.2, not prereleases.
11289         (Specific, decstation-*): Canonicalize as mips-dec-*.
11290         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
11291         always necessary.
11292         (Specific, m68k-altos): Removed reference to README.altos, deleted.
11293         (Specific, mips-*): Reword MIPS C compiler requirements.
11294         (Specific, powerpc*-*-*): New, mention --with-cpu once.
11295         (Specific, sunv5): Removed, obsolete.
11296
11297 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11298
11299         * dwarf2out.c (output_loc_list): Use an all ones mask for
11300         .text asm output and don't rely on long long
11301         literals. Reformat some long lines.
11302
11303 2001-07-05  Andreas Jaeger  <aj@suse.de>
11304
11305         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
11306         section.
11307
11308 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11309
11310         * dwarf2out.c (dwarf2out_define): Update comment.
11311         (dwarf2out_undef): Ditto.
11312         (dwarf2out_start_source_file): Ditto.
11313         (dwarf2out_end_source_file): Ditto.
11314         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
11315         since we never call the start/end debug hook for the primary file.
11316
11317 2001-07-04  Kazu Hirata  <kazu@hxi.com>
11318
11319         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
11320         from shll.
11321
11322 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11323
11324         * cppinit.c (remove_dup_dirs): Inform if a system include
11325         directory is being reordered.
11326         * doc/invoke.texi (Directory Options): GCC warns if you hide a
11327         system include.
11328         * doc/cpp.texi (Search Paths): Likewise.
11329         * doc/gcc.texi (Interoperation): Remove information about
11330         -I/usr/include.
11331
11332 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
11333
11334         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
11335         (VARRAY_TOP_CHAR_PTR): Likewise.
11336
11337 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11338
11339         * gcc.c (process_command): Don't assign elements of a const char*.
11340
11341 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11342
11343         * emit-rtl.c (change_address): Don't abort if invalid address while
11344         reload is in progress.
11345
11346 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11347
11348         * c-lex.c (cb_file_change): Pass line number to
11349         debug_start_source_file.
11350         (cb_undefine): Pass correct line number to debug_undef.
11351
11352         * toplev.c (debug_start_source_file): Add line number to
11353         parameters. Pass it along to dwarf2out_start_source_file.
11354         (decode_g_option): Stop resetting debug level back to normal when
11355         we change debug formats, unless the current level is
11356         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
11357         3).
11358
11359         * toplev.h (debug_start_source_file): Add line number to
11360         parameters.
11361
11362         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
11363         parameters.
11364
11365         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
11366         parameters.
11367         Output debug_macinfo data for starting file if requested.
11368         (dwarf2out_end_source_file): Output debug_macinfo data for ending
11369         file if requested.
11370         (dwarf2out_define): Output debug_macinfo data for defining a macro
11371         if requested.
11372         (dwarf2out_undef): Output debug_macinfo data for undefining a
11373         macro if requested.
11374         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
11375         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
11376         (macinfo_section_label): New. DWARF2 macro info section label.
11377         (dwarf2out_init): If we want macro info, output the start label
11378         for the section.
11379         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
11380         attribute to the compilation unit die pointing to the macro info.
11381
11382 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
11383
11384         * dwarf2out.c (new_loc_list): Move to inside #ifdef
11385         DWARF2_DEBUGGING_INFO.
11386         (add_loc_descr_to_loc_list): Ditto.
11387         (output_loc_list): Ditto.
11388         Also, fix thinko in curr not being initialized.
11389         (gen_internal_sym): Ditto.
11390
11391 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11392
11393         * emit-rtl.c (replace_equiv_address): New function.
11394         * expr.h (replace_equiv_address): New declaration.
11395         * explow.c (validize_mem): Call it instead of change_address and
11396         also call if -fforce-addr and address is constant.
11397         * expr.c: Replace more calls to change_address with adjust_address
11398         and/or replace_equiv_address or to validize_mem.
11399         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
11400         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
11401         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11402         * config/i370/i370.md, config/i860/i860.md: Likewise.
11403         * config/i960/i960.md, config/mips/mips.c: Likewise.
11404         * config/mips/mips.md, config/pa/pa.md: Likewise.
11405         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
11406         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
11407
11408 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11409
11410         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
11411
11412         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
11413         function.
11414
11415 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11416
11417         * doc/include: New directory.
11418         * doc/fdl.texi: Move to doc/include/fdl.texi.
11419         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
11420         * doc/include/funding.texi, doc/include/gpl.texi: New files.
11421         * doc/gcc.texi: Use funding.texi and gpl.texi.
11422         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
11423         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
11424         Update dependencies and use -I $(docdir)/include.
11425
11426 2001-07-04  Anthony Green  <green@redhat.com>
11427
11428         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
11429
11430 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11431
11432         * doc/install.texi (sparc64-*-*): Remove garbage.
11433
11434 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
11435
11436         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
11437         Fix typo in last change to use adjust_address.
11438
11439 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11440
11441         * doc/install.texi (Specific): Update information for *-*-solaris*.
11442
11443 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11444
11445         * explow.c (plus_constant_wide): Reinitialize Y for restart.
11446
11447 2001-07-03  Stan Shebs  <shebs@apple.com>
11448
11449         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
11450         case for flag_no_mach_text_sections.
11451         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
11452         * config/darwin.c (flag_no_mach_text_sections): Remove.
11453         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
11454
11455 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11456
11457         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
11458         and avoid checking for constant as first operand.
11459         * recog.c (find_constant_term_loc): No longer static.
11460         (adj_offettable_operand): Delete.
11461         * rtl.h (adj_offsettable_operand): Delete declaration.
11462         (find_constant_term): Add declaration.
11463         * caller-save.c: Replace calls to adj_offsettable_operand with calls
11464         to adjust_address.
11465         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
11466         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
11467         * config/i386/i386.c, config/i386/i386.md: Likewise.
11468         * config/i860/i860.c, config/i960/i960.c: Likewise.
11469         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
11470         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
11471         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
11472         * config/mips/mips.c, config/mips/mips.md: Likewise.
11473         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
11474         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
11475         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
11476         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
11477         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
11478         * config/ns32k/ns32k.md: Likewise.
11479
11480 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
11481
11482         * rtl.c (copy_rtx): Handle 'T' format letter.
11483         * gensupport.c (collect_insn_data): Likewise.
11484         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
11485
11486 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
11487
11488         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
11489         -B option.  Use 'dir' not 'foo' as example directory name.
11490
11491 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11492
11493         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11494         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
11495
11496 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11497
11498         * doc/cppinternals.texi: Improve formatting and logical markup.
11499
11500 2001-07-03  Andreas Jaeger  <aj@suse.de>
11501
11502         * Makefile.in (insn-recog.o): Add dependency on reload.h.
11503
11504         * genrecog.c (write_header): Include reload.h for prototypes in
11505         insn-recog.c.
11506
11507 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11508
11509 config:
11510         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
11511         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11512         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
11513         i386_pe_valid_type_attribute_p): Add.
11514         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
11515         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
11516
11517 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11518
11519         * explow.c (plus_constant_wide, case LO_SUM): New case.
11520         (plus_constant_for_output_wide): Delete.
11521         * rtl.h (plus_constant_for_output): Delete.
11522         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
11523         instead of plus_constant_for_output.
11524         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
11525         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
11526         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
11527         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
11528         * config/sparc/sparc.md: Likewise.
11529         Convert some change_address calls to adjust_address.
11530
11531 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
11532
11533         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
11534         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
11535         documentation of -std and -Wwrite-strings.
11536
11537 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11538
11539         * cse.c (canon_hash): Don't register registers in very small
11540         register classes, as extending their lifetime might cause
11541         reload to fail.
11542
11543 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11544
11545         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
11546
11547         * flow.c (forwarder_block_p): Fix for fallthru blocks.
11548         (try_redirect_by_replacing_jump): Update properly the count
11549         and frequency information.
11550
11551 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
11552
11553         * toplev.c (dump_file_index): Move SSA dumps just after first
11554         jump dump.
11555         (dump_file): Corresponding changes.
11556         (rest_of_compilation): Move SSA path to just after the first
11557         jump pass.
11558         * doc/gcc.texi (Passes): Update due to movement of SSA path.
11559         * doc/invoke.texi: Update dump file #s as they were completely
11560         out of date with reality.
11561
11562 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
11563
11564         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
11565
11566         * expr.c (emit_move_insn_1): Deal with non-default
11567         STACK_PUSH_CODE.
11568
11569         * expr.c (emit_single_push_insn): Fix warning.
11570
11571 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11572
11573         * expr.c (emit_move_insn_1): Avoid modifying
11574         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
11575
11576 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11577
11578         * emit-rtl.c (adjust_address): New function.
11579         * expr.h (adjust_address): Add declaration.
11580         * builtins.c: Replace some calls to change_address with calls to it
11581         or to validize_mem.
11582         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
11583         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
11584         * config/arm/arm.c, config/convex/convex.c: Likewise.
11585         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
11586         * config/i386/i386.c, config/i386/i386.md: Likewise.
11587         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
11588         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
11589         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
11590         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
11591         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
11592
11593 2001-07-02  Jim Wilson  <wilson@redhat.com>
11594
11595         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
11596
11597 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
11598
11599         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
11600         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
11601
11602 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11603
11604         * cppinit.c (lang_defaults): New table.
11605         (set_lang): Just read from lang_defaults into the live options
11606         structure.
11607
11608 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
11609
11610         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
11611         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
11612         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
11613
11614 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11615
11616         * doc/install.texi: Various spelling and markup fixes.
11617         (Installing GCC): Component specific installation instructions are
11618         gone.
11619         Fix reference.
11620         Warn about removing old install dir in the presence of shared libs.
11621         (Configuration): Invoke with options target to match configure
11622         --help.
11623         Consistently refer to gas, gld pathnames.
11624         Invert --enable-multilib documentation.
11625         Remove references to old compiler versions.
11626
11627 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11628
11629         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
11630
11631 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11632
11633         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
11634         section.
11635         (Specific, mips*-sgi-irix5): Note IDO download.
11636         Reworded MIPS C hints.
11637         Use GNU as instead of GAS.
11638         Markup fixes.
11639         Removed SGI Freeware reference, IRIX 6 only.
11640         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
11641         Note N64 library requirement/workaround.
11642         Update O32 hints.
11643         Complete list of structure passing bug victims.
11644
11645 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11646
11647         * doc/install.texi: Remove CVS Id.
11648
11649 2001-07-02  Andreas Jaeger  <aj@suse.de>
11650
11651         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
11652         (find_inherently_necessary): Remove unused variable.
11653
11654 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
11655
11656         * c-common.h (TDI_inlined): New ast dump phase.
11657         (dump_flag_name): New function.
11658         * c-dump.c (dump_files): Add inlined phase.
11659         (dump_flag_name): Define.
11660         * doc/invoke.texi (-fdump-ast-inlined): Document.
11661
11662 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11663
11664         * stor-layout.c (layout_decl): Revert change to handling of alignment
11665         in packed types.
11666
11667 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11668
11669         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
11670         for FIELD_DECL.
11671
11672 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
11673
11674         * doc/tm.texi (FUNCTION_ARG): Document that the last call
11675         is special.
11676
11677 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11678
11679         * tlink.c (recompile_files): Remove COMPILER_PATH and
11680         LIBRARY_PATH from the environment.
11681
11682 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
11683
11684         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
11685         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
11686         enumerators.
11687         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
11688
11689         * c-parse.in (OBJC_STRING): Kill.
11690         (objc_string): Decompose to [objc_string] '@' STRING.
11691         (reswords): Take the leading '@' off all the Objective C keywords.
11692         (objc_rid_sans_at): Kill.
11693         (init_reswords): Don't initialize it.
11694         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
11695         (_yylex): Kill reconsider label.  Look ahead one token after
11696         an '@'; if we get an identifier, check whether it's an
11697         Objective C @-keyword.  If so, return the keyword.  Otherwise,
11698         put back the token and return the '@' as a terminal.
11699
11700         * cpplib.c (lex_macro_node): Remove unnecessary check for
11701         leading '@' on identifier.  Clarify control flow and commentary.
11702
11703 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11704
11705         * cse.c (new_label_ref): Variable deleted.
11706         (insert): Remove set of new_label_ref.
11707         (check_for_label_ref): New function.
11708         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
11709
11710 See ChangeLog.5 for earlier changes.