OSDN Git Service

cc9e2e93b12be184dc5e4e0e6a30be3ed3a57b4a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * doc/cppinternals.texi: Update.
4
5 2001-10-04  Eric Christopher  <echristo@redhat.com>
6
7         * config/mips/mips.c (init_cumulative_args): Remember to set
8         cum->prototype.
9         * config.gcc: Redo linux configuration. Add target_cpu_default
10         of soft-float to all mipsisa32 combinations and tx39.
11         * config/mips/linux.h: Remove include of mips.h.
12
13 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
14
15         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
16         HOST_LDFLAGS and HOST_CPPFLAGS.
17
18 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
19
20         * c-parse.in (objc_inherit_code, objc_pq_context,
21         objc_public_flag): Make static.
22         (objc_interface_context, objc_implementation_context,
23         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
24         global tree array in objc/objc-act.[ch].
25         (methoddef): Remove unnecessary code.
26
27         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
28         Hoist struct definitions to objc-act.h.
29         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
30         cat_count): Place declaration in objc-act.h.
31         (objc_tree_index): Move enumeration to objc-act.h.
32         (objc_global_trees): Place declaration and macro accessors in
33         objc-act.h.
34         (implementation_context): Remove duplicate; use
35         objc_implementation_context instead:
36         (method_context): Remove duplicate; use objc_method_context
37         instead.
38         (objc_ellipsis_node, objc_method_prototype_template,
39         implemented_classes, function_type): Move global vars to
40         objc_global_trees.
41         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
42         (build_message_expr): Move actual construction of ObjC message
43         send nodes to finish_message_expr.
44         (finish_message_expr): New routine, contains code formerly in
45         build_message_expr.
46         * objc/objc-act.h (finish_message_expr): New prototype.
47         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
48         declarations; these vars are now part of objc_global_trees.
49         (objc_tree_index, objc_global_trees): Move definitions from
50         objc-act.c.
51         * objc/objc-tree.def: Update copyright info.
52
53 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
54
55         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
56         op is NULL.
57         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
58         only if TARGET_ARCH64.
59
60 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
61
62         * doc/extend.texi: Fix some problems with previous checkin.
63         * doc/invoke.texi: Likewise.
64
65 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
66
67         * cpphash.h: Update comments.
68         (cpp_context): Update.
69         (spec_nodes): Remove n__Pragma.
70         * cppinit.c (cpp_create_reader): Update.
71         (builtin_array): Add _Pragma.
72         * cpplib.h: Update comments.
73         (NODE_DISABLED, BT_PRAGMA): New.
74         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
75         * cppmacro.c (struct cpp_macro): Remove disabled.
76         (builtin_macro): Return int, handle _Pragma, push the new token
77         on the context stack.
78         (funlike_invocation_p): Unconstify, update.
79         (enter_macro_context): Handle builtins here.
80         (replace_args, push_token_context, push_ptoken_context):
81         Update for prototype changes.
82         (_cpp_pop_context): Update.
83         (cpp_get_token): Don't handle buitins, nor _Pragma here.
84         (cpp_sys_macro_p): Update.
85         (_cpp_free_definition): Clear disabled flag.
86         (_cpp_create_definition): Upate.
87         * cppmain.c: Update comments.
88
89 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
90                                Andreas Jaeger <aj@suse.de>,
91                                Jan Hubicka    <jh@suse.cz>
92
93         * doc/invoke.texi (i386 Options): Document x86-64 options.
94         (i386 and x86-64 Options): Rename i386 options section.
95
96         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
97         (TARGET_SWITCHES): Add -munwind-info.
98         (MASK_NO_UNWIND_INFO): New.
99         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
100         biarch compilation.
101         (ASM_OUTPUT_DOUBLE_INT): New.
102
103         * config/i386/linux64.h: New spec file for Linux x86-64 support.
104         * config.gcc: Fix tm_file settings for x86-64.
105         * config/i386/x86-64.h: New file with OS independent x86-64
106         definitions.
107         * config/i386/biarch64.h: New file used to configure compiler
108         to biarch/64bit compilation.
109
110         * config/i386/i386.c: (override_options): Set flags default
111         for 64bit compilation.
112
113 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
114
115         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
116         (ix86_expand_int_movcc): Optimize DImode conditional moves with
117         constants on x86_64.
118         (ix86_attr_length_immediate_default): Support MODE_DI.
119         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
120         condition.
121         (indirect_jump, tablejump): Turn into expander.
122
123 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
124
125         * c-common.c (c_format_attribute_table): Make format and
126         format_arg attributes apply to function types rather than to
127         decls.
128         (is_valid_printf_arglist): Construct an attribute list and pass
129         that to check_function_format rather than a name.
130         * c-common.h (check_function_format): Adjust prototype.
131         * c-decl.c (duplicate_decls): Preserve attributes from type of
132         built-in decl when allowing for harmless conflict in types.
133         * c-format.c (record_function_format,
134         record_international_format, function_format_list,
135         international_format_info, international_format_list): Remove.
136         (function_format_info): Remove next, name and assembler_name.
137         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
138         (decode_format_attr): New.
139         (handle_format_attribute): Handle receiving a type rather than a
140         decl.  Call decode_format_attr.  Store format information in a
141         function_format_info.
142         (handle_format_arg_attribute): Correct comment.  Handle receiving
143         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
144         arg_num.
145         (check_format_info_recurse, check_format_info_main): Take argument
146         numbers as unsigned HOST_WIDE_INT.
147         (check_function_format): Take a list of attributes from the
148         function type rather than a name or assembler name.  Check for
149         format attributes in that list and the attributes on the type of
150         the current function rather than looking through
151         function_format_list.
152         (check_format_info): Use unsigned HOST_WIDE_INT for argument
153         numbers.
154         (check_format_info_recurse): Take format_arg attributes from the
155         type of the function calls rather than using
156         international_format_list.  Allow for multiple format_arg
157         attributes.
158         * c-typeck.c (build_function_call): Pass type attributes to
159         check_function_format rather than name or assembler name.  Don't
160         require there to be a name or assembler name to check formats.
161
162 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
163
164         * attribs.c (decl_attributes): Possibly call
165         insert_default_attributes to insert default attributes on
166         functions in a lazy manner.
167         * builtin-attrs.def: New file; define the default format and
168         format_arg attributes.
169         * c-common.c (c_format_attribute_table): Move to earlier in the
170         file.
171         (c_common_nodes_and_builtins): Initialize format_attribute_table.
172         (enum built_in_attribute, built_in_attributes,
173         c_attrs_initialized, c_init_attributes,
174         c_common_insert_default_attributes): New.
175         (c_common_lang_init): Don't initialize format_attribute_table.  Do
176         call c_init_attributes.
177         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
178         * c-common.h (init_function_format_info): Don't declare.
179         (c_common_insert_default_attributes): Declare.
180         * c-decl.c (implicitly_declare, builtin_function): Call
181         decl_attributes.
182         (init_decl_processing): Don't call init_function_format_info.
183         (insert_default_attributes): New.
184         * c-format.c (handle_format_attribute,
185         handle_format_arg_attribute): Be quiet about inappropriate
186         declaration when applying default attributes.
187         (init_function_format_info): Remove.
188         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
189         (insert_default_attributes): Declare.
190
191 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
192
193         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
194
195 2001-10-01  Jim Wilson  <wilson@redhat.com>
196
197         * sched-deps.c (add_dependence): When elide conditional dependence,
198         check that insn doesn't modify cond2.
199
200 2001-10-01  Dale Johannesen  <dalej@apple.com>
201
202         * config/rs6000/rs6000.h (enum processor_type): Add support
203         for 7400 (G4) and 7450.
204         (RTX_COSTS): Ditto.
205         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
206         (rs6000_issue_rate): Ditto.
207         (rs6000_adjust_cost): Fix cycle counts for compares.
208         (debug_stack_info):  Fix an obvious typo.
209         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
210         * doc/invoke.texi: Document.
211         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
212         for Darwin.
213         (PROCESSOR_DEFAULT): Ditto.
214
215 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
216
217         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
218         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
219         later recursive make invocation.
220
221 2001-10-01  Hans Boehm  <boehm@acm.org>
222
223         * optabs.c (emit_libcall_block): When using non-call exceptions,
224         don't add REG_LIBCALL reg notes to trapping calls.
225
226 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
227
228         * flow.c (propagate_block_delete_libcall): Remove unused first arg
229         (propagate_one_insn):  Update for above change
230
231 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
232
233         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
234         _Unwind_GetTextRelBase): Argument is unused.
235
236 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
237
238         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
239         Loop through NOPs, placeholders, and components.
240         Don't go through NOPs if change mode.
241         (record_alias_subset): Do nothing if SUBSET and SET are the same.
242         * emit-rtl.c (set_mem_alias_set): Enable check.
243         * expr.c (find_placeholder): New function.
244         (expand_expr, case PLACEHOLDER_EXPR): Use it.
245         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
246         to modify it and avoid unneeded copies.
247         * expr.h (expand_expr): Always define.
248         (find_placeholder): New declaration.
249
250 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
251
252         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
253         operand 2 is the stack pointer.
254         ("addr-peephole"): Fix address computation peephole when operand 2
255         is the stack pointer.
256
257 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
258
259         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
260         (ix86_setup_incoming_varargs): Likewise.
261
262 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
263
264         * stor-layout.c (layout_type): Don't complain about too-large
265         array here.
266
267 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
268
269         * function.c (keep_stack_depressed): Don't use delete_insn.
270
271         * expr.h (set_mem_alias_set): Move decl to here.
272         * rtl.h (mem_attrs): New typedef and struct.
273         (union rtunion_def): Add field for mem_attrs.
274         (X0MEMATTR, MEM_ATTRS): New macros.
275         (MEM_ALIAS_SET): Use MEM_ATTRS.
276         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
277         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
278         (set_mem_alias_set): Delete decl from here.
279
280         * alias.c (set_mem_alias_set): Delete from here.
281         * emit-rtl.c (mem_attrs_htab): New variable.
282         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
283         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
284         (mem_attrs_mark, get_mem_attrs): Likewise.
285         (gen_rtx_MEM): Clear MEM_ATTRS.
286         (set_mem_attributes): Move to here.
287         (set_mem_alias_set): Likewise, and call get_mem_attrs.
288         (init_emit_once): const_int_htab now deletable htab.
289         Initialize mem_attrs_htab.
290         * explow.c (set_mem_attributes): Delete from here.
291         * function.c (put_var_into_stack): Clear MEM_ATTRS.
292         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
293         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
294         * reload1.c (reload): Rework changing REG to MEM.
295
296 2001-09-30  H.J. Lu <hjl@gnu.org>
297
298         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
299         * config.in: Rebuild.
300
301 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
302
303         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
304         ("tsthi_1"): Avoid allocation in register y.
305         ("*movqi_68hc12"): Reorganize and fix constraints.
306         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
307         ("addqi3"): Likewise.
308         ("addhi3"): Fix constraints.
309         ("*logicalhi3_zexthi"): Disparage soft registers.
310
311 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
312
313         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
314         to tmp reg.
315
316 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
317
318         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
319         that we use setjmp/longjmp exceptions.
320
321 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
322
323         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
324         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
325         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
326         _cpp_pool_alloc, _cpp_next_chunk): Remove.
327         (_cpp_extend_buff, BUFF_ROOM): Update.
328         (_cpp_append_extend_buff): New.
329         (struct cpp_reader): Remove macro_pool, add a_buff.
330         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
331         macro_pool.
332         (cpp_destroy): Free a_buff instead of macro_pool.
333         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
334         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
335         _cpp_pool_alloc, ): Remove.
336         (parse_number, parse_string): Update use of _cpp_extend_buff.
337         (_cpp_extend_buff): Update.
338         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
339         * cpplib.c (glue_header_name, parse_answer):
340         Update use of _cpp_extend_buff.
341         (cpp_register_pragma, cpp_register_pragma_space): Use
342         _cpp_aligned_alloc.
343         (do_assert, do_unassert): Check for EOL, update.
344         * cppmacro.c (stringify_arg, collect_args): Update to use
345         _cpp_extend_buff and _cpp_append_extend_buff.
346         (save_parameter, parse_params, alloc_expansion_token,
347         _cpp_create_definition): Rework memory management.
348
349 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
350
351         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
352         update md_exec_prefix.
353         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
354         to string constant.
355
356 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
357
358         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
359         (SELECT_CC_MODE): Use s390_select_ccmode.
360         * config/s390/s390-protos.h (s390_select_ccmode): Add.
361         * config/s390/s390.c (s390_select_ccmode): New.
362         (s390_match_ccmode): Add CCLmode.
363         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
364         (output_branch_condition, output_inverse_branch_condition): Removed.
365         (print_operand): Use s390_branch_condition_mnemonic.
366         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
367         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
368         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
369
370         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
371         when converting conditional branches to far branches.
372         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
373         cmpint_di): Use CCSmode instead of CCUmode.
374
375         * config/s390/s390.c (legitimate_la_operand_p): New.
376         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
377         * config/s390/s390.md (movsi): Convert load address patterns to
378         arithmetic operations when necessary.
379         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
380         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
381         (*do_la_reg_0): Don't use before reload.
382
383         * config/s390/s390.c (legitimize_address): Make more efficient
384         use of two-register addressing mode.
385
386         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
387         with -mno-backchain in some corner cases.
388
389         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
390
391 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
392
393         * reload.c (find_reloads): Mark new USE insns with QImode.
394         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
395         find_reloads_subreg_address): Likewise.
396         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
397         encountered.
398         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
399         CLOBBERs.
400         (reload): Make sure there are no USEs with mode other than
401         VOIDmode.  At the end, remove those marked with QImode.
402
403 2001-09-29  Per Bothner  <per@bothner.com>
404
405         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
406         * Makefile.in (includedir):  Rename to local_includedir.
407         (includedir):  Define as $(prefix)/include.
408         * config.in (PREFIX_INCLUDE_DIR):  New variable.
409         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
410
411 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
412
413         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
414         storehps builtins.
415         * doc/extend.texi (Vector Extensions): New node.
416         * doc/invoke.texi (Machine Dependent Options): Add documentation for
417         i386 -mmmx, -msse, -m3dnow.
418
419 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
420
421         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
422
423 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
424
425         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
426
427         * doc/invoke.texi (Optimize Options): Delete spurious @table.
428
429 2001-09-28  Richard Henderson  <rth@redhat.com>
430
431         * varasm.c (assemble_integer): Bound alignment check by
432         BIGGEST_ALIGNMENT.
433
434         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
435
436 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
437
438         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
439
440 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
441
442         Mostly from Graham Stott  <grahams@redhat.com>
443         * c-common.c (type_for_mode): Add support for V2SFmode.
444         * tree.c (build_common_tree_nodes_2): Likewise.
445         * tree.h (enum tree_index, global_trees): Likewise.
446         * config/i386/i386.c (x86_3dnow_a): New variable.
447         (override_options): Support 3Dnow extensions.
448         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
449         Athlon's version of 3Dnow.
450         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
451         (ix86_expand_builtin): Handle them.
452         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
453         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
454         TARGET_3DNOW_A): New macros.
455         (TARGET_SWITCHES): Add 3Dnow switches.
456         (VALID_MMX_REG_MODE_3DNOW): New macro.
457         (VECTOR_MODE_SUPPORTED_P): Use it.
458         (enum ix86_builtins): Add entries for 3Dnow builtins.
459         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
460         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
461         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
462         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
463         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
464         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
465         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
466         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
467         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
468         sfence_insn, prefetch): Make these available if TARGET_SSE or
469         TARGET_3DNOW_A.
470
471 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
472
473         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
474         ix86_va_start, ix86_build_va_list): Declare.
475         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
476         ix86_va_start, ix86_build_va_list): New global functions.
477         * i386.md (sse_prologue_save_insn): New insn.
478         (sse_prologue_save): New expander.
479         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
480         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
481
482 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
483
484         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
485         Use size_t everywhere, make definitions consistent with
486         prototypes.
487
488 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
489
490         * gcse.c (replace_store_insn): Use delete_insn.
491         * loop.c (move_movables): Likewise; avoid delete_insn
492         from clobbering notes moved elsewhere.
493         (check_dbra_loop): Use delete_insn.
494         * ssa.c (convert_from_ssa): Likewise.
495         * cse.c (cse_insn): Use delete_insn.
496
497 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
498
499         * cpphash.h (struct cpp_buff): Make unsigned.
500         (_cpp_get_buff): Take length of size_t.
501         (_cpp_unaligned_alloc): New.
502         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
503         (struct cpp_reader): Remove ident_pool.  Add u_buff.
504         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
505         (cpp_destroy): Destroy u_buff, not ident_pool.
506         * cpplex.c (parse_number, parse_string, save_comment,
507         cpp_token_as_text): Update to use the unaligned buffer.
508         (new_buff): Make unsigned.
509         (_cpp_unaligned_alloc): New.
510         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
511         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
512         Similarly.
513         (collect_args): Make unsigned.
514
515 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
516
517         * cpplex.c (cpp_output_token): Use a putc loop for
518         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
519
520         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
521         * configure, config.in: Regenerate.
522         * system.h: Replace fwrite and fprintf with their unlocked
523         variants if available.
524
525 2001-09-27  Richard Henderson  <rth@redhat.com>
526
527         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
528         in favour of .eh_frame.
529
530 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
531
532         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
533         to macros.
534         (LIBCALL_VALUE): Likewise.
535
536 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
537
538         * cpphash.h: Update comment.
539         * cpplex.c: Update comments.
540         (_cpp_can_paste): Remove.
541         * cpplib.h (_cpp_can_paste): Remove.
542         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
543         lexer rather than _cpp_can_paste.
544
545 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
546
547         * doc/cppinternals.texi: Update.
548
549 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
550
551         * cpphash.h (struct cpp_pool): Remove locks and locked.
552         (struct cpp_context): Add member buff.
553         (struct cpp_reader): Remove member argument_pool.
554         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
555         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
556         * cpplex.c (chunk_suitable): Remove pool argument.
557         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
558         (new_buff, _cpp_extend_buff): Update.
559         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
560         which buffer is returned.
561         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
562         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
563         * cppmacro.c (lock_pools, unlock_pools): Remove.
564         (push_ptoken_context): Take a _cpp_buff.
565         (enter_macro_context): Pool locking removed.
566         (replace_args): Use a _cpp_buff for the replacement list with
567         arguments replaced.
568         (push_token_context): Clear buff.
569         (expand_arg): Use _cpp_pop_context.
570         (_cpp_pop_context): Free a context's buffer, if any.
571
572 2001-09-26  DJ Delorie  <dj@redhat.com>
573
574         * c-typeck.c (digest_init): Check for sizeless arrays.
575
576 2001-09-26  Richard Henderson  <rth@redhat.com>
577
578         * optabs.c (init_one_libfunc): Create a dummy function type
579         instead of using error_mark_node.
580
581 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
582
583         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
584         _cpp_extend_buff, _cpp_free_buff): New.
585         (struct cpp_reader): New member free_buffs.
586         * cppinit.c (cpp_destroy): Free buffers.
587         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
588         _cpp_extend_buff, _cpp_free_buff): New.
589         * cpplib.h (struct cpp_options): Remove unused member.
590         * cppmacro.c (collect_args): New.  Combines the old parse_arg
591         and parse_args.  Use _cpp_buff for memory allocation.
592         (funlike_invocation_p, replace_args): Update.
593
594 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
595
596         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
597
598 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
599
600         * except.c (sjlj_mark_call_sites): Change address inside sequence.
601
602 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
603
604         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
605         glibc.
606
607 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
608             Jim Wilson  <wilson@redhat.com>
609
610         * doc/install.texi (Specific, ia64-*-linux): Document.
611
612 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
613
614         * Makefile.in (cfgrtl.o): Add.
615         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
616         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
617         free_aux_for_edge): Declare.
618         * cfg.c
619         (HAVE_return): Undefine.
620         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
621         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
622         free_aux_for_edge): New global functions.
623         (first_delete_block): New static variable.
624         (init_flow): Clear first_delete_block.
625         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
626          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
627          try_redirect_by_replacing_jump, last_loop_beg_note,
628          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
629          delete_insn, delete_insn_chain, create_basic_block_structure,
630          create_basic_block, flow_delete_block, compute_bb_for_insn,
631          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
632          set_block_for_new_insns, split_block, merge_blocks_nomove,
633          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
634          redirect_edge_and_branch, force_nonfallthru_and_redirect,
635          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
636          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
637          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
638          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
639          purge_all_dead_edges): Move to ....
640         * cfgrtl.c: New file; .... Here.
641
642         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
643         (reroder_basic_block): Use alloc_aux_for_blocks.
644         * predict.c (estimate_bb_frequencies): Likewise; use
645         alloc_aux_for_edges.
646         * profile.c (compute_branch_probabilities): Likewise.
647         (branch_prob): Likewise.
648         * reg-stack.c (reg_to_stack): Likewise.
649
650         * emit-rtl.c (emit_insns_after): Never return NULL.
651
652         * basic-block.h (set_block_for_new_insns): Delete.
653         * cfgrtl.c (set_block_for_new_insns): Delete.
654
655         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
656         calls when crossjumping.
657
658         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
659         * unroll.c (copy_loop_body): Use delete_insn.
660
661         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
662         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
663         keep_stack_depressed): Likewise.
664         * gcse.c (cprop_cc0_jump): Likewise.
665         * local-alloc.c (update_equiv_regs): Likewise.
666         * loop.c (scan_loop, loop_delete_insns): Likewise.
667         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
668         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
669         delete_output_reload, delete_address_reloads_1,
670         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
671         Likewise.
672         * sibcall.c (replace_call_placeholder): Likewise.
673         * cse.c (cse_insn): Likewise.
674
675 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
676
677         From Graham Stott  <grahams@redhat.com>
678         (def_builtin): Only define builtins appropriate for target_flags.  All
679         callers changed.
680         (builtin_decsription): Add new field mask which is used to determine
681         when to define the builtin via the macro def_builtin.
682
683         (bdesc_comi): Initialise new mask fields.
684         (bdesc_2srg): Likewise.
685         (bdesc_1arg): Likewise.
686
687         * config/i386/i386.c (ix86_init_builtins): Correct return type
688         building v4hi_ftype_v4hi_int_int tree node.
689         (ix86_expand_sse_comi): Fix typo swapping operands.
690         Don't swap comparision condition, it is already swapped.
691         (ix86_expand_sse_compare): Before swapping operands
692         move operand 1 into new rtx and not the target rtx.
693         Don't swap comparison condition, it is already swapped.
694         Always check whether we need to create a new TARGET.
695
696         * config/i386/i386.md: (sse_comi) Fix typos.
697         (sse_ucomi): Likewise.
698         (cvtss2si): Fix operand 0 contraint.
699         (cvttss2si): Likewise.
700         (sse_unpckhps): Fix mode for operand 2.
701         (sse_unpcklps): Likewise.
702
703 2001-09-25  Graham Stott  <grahams@redhat.com>
704
705         * sibcall.c (skip_copy_to_return_value): Tighten return value
706         copy check.
707
708 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
709
710         * rs6000.c (lwa_operand): Address must be word aligned.
711
712 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
713
714         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
715         number has been set.
716         (type_hash_mark): Mark type itself.
717
718 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
719
720         * c-lex.c (cb_def_pragma): Update.
721         (c_lex): Update, and skip padding.
722         * cppexp.c (lex, parse_defined): Update, remove unused variable.
723         * cpphash.h (struct toklist): Delete.
724         (union utoken): New.
725         (struct cpp_context): Update.
726         (struct cpp_reader): New members eof, avoid_paste.
727         (_cpp_temp_token): New.
728         * cppinit.c (cpp_create_reader): Update.
729         * cpplex.c (_cpp_temp_token): New.
730         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
731         (cpp_output_token): Don't print leading whitespace.
732         (cpp_output_line): Update.
733         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
734         do_include_common, do_line, do_ident, do_pragma,
735         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
736         parse_assertion): Update.
737         (get_token_no_padding): New.
738         * cpplib.h (CPP_PADDING): New.
739         (AVOID_LPASTE): Delete.
740         (struct cpp_token): New union member source.
741         (cpp_get_token): Update.
742         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
743         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
744         replace_args, quote_string, stringify_arg, parse_arg, next_context,
745         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
746         _cpp_backup_tokens, _cpp_create_definition): Update.
747         (push_arg_context): Delete.
748         (padding_token, push_token_context, push_ptoken_context): New.
749         (make_string_token, make_number_token): Update, rename.
750         (cpp_get_token): Update to handle tokens as pointers to const,
751         and insert padding appropriately.
752         * cppmain.c (struct printer): New member prev.
753         (check_multiline_token): Constify.
754         (do_preprocessing, cb_line_change): Update.
755         (scan_translation_unit): Update to handle spacing.
756         * scan-decls.c (get_a_token): New.
757         (skip_to_closing_brace, scan_decls): Update.
758         * fix-header.c (read_scan_file): Update.
759
760         * doc/cpp.texi: Update.
761
762 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
763
764         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
765         leak by passing malloc'ed pointer to reconcat, not concat.
766
767 2001-09-24  DJ Delorie  <dj@redhat.com>
768
769         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
770
771 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
772
773         * flow.c (delete_dead_jumptables): Delete jumptable if the only
774         reference is from the literal pool.
775
776 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
777
778         * doc/install.texi (Final install): Request additional information
779         in mail about successful builds.
780
781 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
782
783         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
784         initial value of return pointer register instead of value in frame-20.
785         Revise comments.
786
787 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
788
789         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
790         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
791         the libcall if there isn't a referenced identifier for the symbol.
792
793 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
794
795         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
796         non 64-bit machines.  Use these as a plabel for the trampoline.
797         (TRAMPOLINE_SIZE): Adjust size for new words.
798         (INITIALIZE_TRAMPOLINE): Initialize new words.
799         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
800         pointer to the plabel in the trampoline.
801
802 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
803
804         * pa.c (function_arg): Pass floating arguments in both general and
805         floating registers in indirect (dynamic) calls when generating code
806         for the 32 bit ABI and the HP assembler.
807
808 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
809
810         * doc/install.texi: Markup fixes.
811         Use Solaris 2, SunOS 4 as appropriate.
812         (Specific, *-*-solaris2*): Explain this.
813         Unconditionally warn against /usr/ucb tools.
814         Remove Sun as warning, obsolete.
815         Move X11 header bug workaround here, update patches.
816         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
817         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
818
819 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
820
821         * errors.h (warning, error, fatal, internal_error): Don't mark
822         with ATTRIBUTE_PRINTF_n.
823         * toplev.h (internal_error, fatal_io_error, warning, error,
824         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
825         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
826         Likewise.
827
828 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
829
830         * function.c (pop_function_context_from): var_refs_queue
831         and temp slots now in GC memory.
832         (mark_function_status, free_after_compilation): Likewise;
833         also struct function now in GC memory.
834         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
835         (combine_temp_slots): Likewise.
836         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
837         (prepare_function_start): Use GC memory for struct function.
838         (mark_temp_slot): Deleted.
839         (gcc_mark_struct_function): struct function now in GC memory.
840
841         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
842         code for division, not modulus.
843
844         * rtl.def (MEM): Remove obsolete part of comment.
845
846 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
847
848         * c-format.c (init_function_format_info): Check __builtin_printf
849         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
850         in gnu89 mode.
851
852 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
853
854         * c-common.c (format_attribute_table): Remove decl.
855         * tree.h (format_attribute_table, lang_attribute_table): New decls.
856         (lang_attribute_common): Likewise.
857
858         * function.c (fix_lexical_address): Use set_mem_alias_set.
859         (expand_function_start): Likewise.
860         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
861
862         * varasm.c (output_constant): Fix unused variable warning.
863
864         * attribs.c: New file, from c-common.c.
865         (attribute_tables): Now four elements.
866         (format_attribute_table, lang_attribute_common): New variables.
867         (init_attributes): Reflect above changes.
868         (handle_mode_attribute): Delete check for wider than uintmax.
869         * c-common.c: Delete parts moved to attribs.c.
870         (enum attrs): Deleted; unused.
871         (c_format_attribute_table): New variable.
872         (c_common_lang_init): Initialize format_attribute_table with it.
873         * c-common.h (decl_attributes): Remove decl.
874         * tree.h (decl_attribute): Move it to here.
875         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
876         (attribs.o): New rule.
877
878 2001-09-22  Andreas Jaeger  <aj@suse.de>
879
880         * builtins.c (c_getstr): Remove unused variable.
881
882 2001-09-21  Richard Henderson  <rth@redhat.com>
883
884         * reload1.c (reload): Use delete_insn instead of splatting
885         NOTE_INSN_DELETED.
886
887 2001-09-21  Richard Henderson  <rth@redhat.com>
888
889         * reload.c (push_secondary_reload): Don't check for "=" in output
890         constraint after ""->ALL_REGS check.
891
892 2001-09-21  Richard Henderson  <rth@redhat.com>
893
894         * predict.c (expected_value_to_br_prob): Use pc_set.
895
896         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
897         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
898
899 2001-09-21  Richard Henderson  <rth@redhat.com>
900
901         * rtl.h (LCT_RETURNS_TWICE): New.
902         * calls.c (emit_call_1): Set current_function_calls_setjmp for
903         ECF_RETURNS_TWICE.
904         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
905         to ECF_RETURNS_TWICE.
906         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
907         call to setjmp.
908
909         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
910
911         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
912         (JMP_BUF_SIZE): New.
913
914 2001-09-21  Richard Henderson  <rth@redhat.com>
915
916         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
917         to R8_REGS.
918
919 2001-09-21  Richard Henderson  <rth@redhat.com>
920
921         * tree.def (FDESC_EXPR): New.
922         * expr.c (expand_expr): Handle it.
923         * varasm.c (initializer_constant_valid_p): Likewise.
924         (output_constant): Likewise.
925         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
926         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
927         (ASM_OUTPUT_FDESC): New.
928         * doc/tm.texi: Document the new macros.
929
930 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
931
932         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
933         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
934         once merging is complete.
935
936 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
937
938         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
939
940 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
941
942         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
943         that would be invalid after a merge.
944
945 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
946
947         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
948         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
949         remove some labels.
950         (flow_delete_insn): This one.
951         (delete_insn_chain): Rename from ...; do not care labels.
952         (flow_delete_insn_chain): ... this one.
953         (flow_delete_block): Remove the insns one BB has been expunged.
954         (merge_blocks_nomove): Likewise.
955         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
956         updating BB boundaries.
957         (tidy_fallthru_edge): Likewise.
958         (commit_one_edge_insertion): Likewise.
959         * cfgbuild.c (find_basic_block): Likewise.
960         (find_basic_blocks_1): Likewise.
961         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
962         (try_crossjump_to_edge): Likewise.
963         (try_optimize_cfg): Likewise.
964         * cse.c (delete_trivially_dead_insns): Likewise.
965         * df.c (df_insn_delete): Likewise.
966         * doloop.c (doloop_modify): Use delete_related_insns.
967         * emit-rtl.c (try_split): Likewise.
968         (remove_insn): Update BB boundaries.
969         * expect.c (connect_post_landing_pads): Use delete_related_insns.
970         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
971         updating BB boundaries.
972         (propagate_block_delete_insn): Likewise.
973         (propagate_block_delete_libcall): Likewise.
974         * function.c (delete_handlers): Use delete_related_insns.
975         (thread_prologue_and_epilogue_insns): Likewise.
976         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
977         * genpeep.c (gen_peephole): Use delete_related_insns.
978         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
979         BB boundaries.
980         (find_cond_trap): Likewise.
981         * integrate.c (save_for_inline): Use delete_related_insns.
982         (copy_insn_list): Likewise.
983         * jump.c (pruge_linie_number_notes): Likewise.
984         (duplicate_loop_exit_test): Likewise.
985         (delete_computation): Likewise.
986         (delete_related_insn): Rename from ...; use delete_insn
987         (delete_insn): ... this one.
988         (redirect_jump): Use delete_related_insns.
989         * loop.c (scan_loop): Likewise.
990         (move_movables): Likewise.
991         (find_and_verify_loops): Likewise.
992         (check_dbra_loop): Likewise.
993         * recog.c (peephole2_optimize): Likewise.
994         * reg-stack.c (delete_insn_for_stacker): Remove.
995         (move_for_stack_reg): Use delete_insn.
996         * regmove.c (combine_stack_adjustments_for_block): Likewise.
997         * reload1.c (delete_address_reloads): Use delete_related_insns.
998         (fixup_abnormal_edges): Use delete_insn.
999         * recog.c (emit_delay_sequence): Use delete_related_insns.
1000         (delete_from-delay_slot): Likewise.
1001         (delete_scheduled_jump): likewise.
1002         (optimize_skip): Likewise.
1003         (try_merge_delay_insns): Likewise.
1004         (full_simple_delay_slots): Likewise.
1005         (fill_slots_from_thread): Likewise.
1006         (relax_delay_slots): Likewise.
1007         (make_return_insns): Likewise.
1008         (dbr_schedule): Likewise.
1009         * rtl.h (delete_insn): Rename to delete_related_insns.
1010         (delete_insn, delete_insn_chain): New prototypes.
1011         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
1012         by df_insn_delete already.
1013         * ssa-dce.c (delete_insn_bb): Use delete_insn.
1014         * ssa.c (convert_from_ssa): Use delete_related_insns.
1015         * unroll.c (unroll_loop): Likewise.
1016         (calculate_giv_inc): Likewise.
1017         (copy_loop_body): Likewise.
1018
1019         * i386-protos.h (ix86_libcall_value, ix86_function_value,
1020         ix86_function_arg_regno_p, ix86_function_arg_boundary,
1021         ix86_return_in_memory, ix86_function_value): Declare.
1022         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
1023         new static valurables.
1024         (x86_64_reg_class): New enum
1025         (x86_64_reg_class_name): New array.
1026         (classify_argument, examine_argument, construct_container,
1027          merge_classes): New static functions.
1028         (optimization_options): Enable flag_omit_frame_pointer and disable
1029         flag_pcc_struct_return on 64bit.
1030         (ix86_libcall_value, ix86_function_value,
1031         ix86_function_arg_regno_p, ix86_function_arg_boundary,
1032         ix86_return_in_memory, ix86_function_value): New global functions.
1033         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
1034         (function_arg_advance): Handle x86_64 passing conventions.
1035         (function_arg): Likewise.
1036         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
1037         (RETURN_IN_MEMORY): Move offline.
1038         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
1039         (FUNCTION_VALUE_REGNO_P): New macro.
1040         (FUNCTION_ARG_REGNO_P): Move offline.
1041         (struct ix86_args): Add maybe_vaarg.
1042         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
1043         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
1044
1045 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
1046
1047         * s390.md: Changed attributes for scheduling.
1048         * s390.c: (s390_adjust_cost, s390_adjust_priority)
1049         Changed scheduling
1050
1051 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1052
1053         Table-driven attributes.
1054         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
1055         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
1056         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
1057         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
1058         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
1059         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
1060         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
1061         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
1062         * tree.h (struct tree_decl): Change machine_attributes to
1063         attributes.
1064         * doc/c-tree.texi: Document that all attributes are now attached
1065         to decls and types.
1066         * c-common.c (add_attribute, attrtab, attrtab_idx,
1067         default_valid_lang_attribute, valid_lang_attribute): Remove.
1068         (attribute_tables, attributes_initialized,
1069         c_common_attribute_table, default_lang_attribute_table): New
1070         variables.
1071         (handle_packed_attribute, handle_nocommon_attribute,
1072         handle_common_attribute, handle_noreturn_attribute,
1073         handle_unused_attribute, handle_const_attribute,
1074         handle_transparent_union_attribute, handle_constructor_attribute,
1075         handle_destructor_attribute, handle_mode_attribute,
1076         handle_section_attribute, handle_aligned_attribute,
1077         handle_weak_attribute, handle_alias_attribute,
1078         handle_no_instrument_function_attribute,
1079         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
1080         handle_no_limit_stack_attribute, handle_pure_attribute): New
1081         functions.
1082         (init_attributes, decl_attributes): Rewrite to implement
1083         table-driven attributes.
1084         * c-common.h (enum attribute_flags): Move to tree.h.
1085         * c-format.c (decl_handle_format_attribute,
1086         decl_handle_format_arg_attribute): Rename to
1087         handle_format_attribute and handle_format_arg_attribute.  Update
1088         for table-driven attributes.
1089         * c-common.h (decl_handle_format_attribute,
1090         decl_handle_format_arg_attribute): Remove prototypes.
1091         (handle_format_attribute, handle_format_arg_attribute): Add
1092         prototypes.
1093         * c-decl.c (grokdeclarator): Handle attributes nested inside
1094         declarators.
1095         * c-parse.in (setattrs, maybe_setattrs): Remove.
1096         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
1097         Update to handle nested attributes properly.
1098         (maybe_resetattrs, after_type_declarator,
1099         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
1100         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
1101         properly.
1102         (make_pointer_declarator): Update to handle nested attributes
1103         properly.
1104         * doc/extend.texi: Update documentation of limits of attributes
1105         syntax.  Warn about problems with attribute semantics in C++.
1106         * target.h (struct target): Remove valid_decl_attribute and
1107         valid_type_attribute.  Add attribute_table and
1108         function_attribute_inlinable_p.
1109         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
1110         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
1111         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
1112         Add.
1113         (TARGET_INITIALIZER): Update.
1114         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
1115         definition.
1116         (function_attribute_inlinable_p): New function.  Check for the
1117         presence of any machine attributes before using
1118         targetm.function_attribute_inlinable_p.
1119         (function_cannot_inline_p): Update.
1120         * Makefile.in (integrate.o): Update dependencies.
1121         * doc/tm.texi: Update documentation of target attributes and
1122         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
1123         * tree.c (default_valid_attribute_p, valid_machine_attribute):
1124         Remove.
1125         (default_target_attribute_table,
1126         default_function_attribute_inlinable_p): New.
1127         (lookup_attribute): Update comment to clarify handling of multiple
1128         attributes with the same name.
1129         (merge_attributes, attribute_list_contained): Allow multiple
1130         attributes with the same name but different arguments to appear in
1131         the same attribute list.
1132         * tree.h (default_valid_attribute_p): Remove prototype.
1133         (struct attribute_spec): New.
1134         (default_target_attribute_table): Declare.
1135         (enum attribute_flags): Move from c-common.h.  Add
1136         ATTR_FLAG_TYPE_IN_PLACE.
1137         (default_function_attribute_inlinable_p): Declare.
1138         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
1139         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1140         (TARGET_ATTRIBUTE_TABLE): Define.
1141         (vms_attribute_table): New.
1142         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
1143         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1144         (TARGET_ATTRIBUTE_TABLE): Define.
1145         (arc_attribute_table, arc_handle_interrupt_attribute): New.
1146         * config/arm/arm.c (arm_valid_type_attribute_p,
1147         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
1148         Remove.
1149         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
1150         define.
1151         (TARGET_ATTRIBUTE_TABLE): Define.
1152         (arm_attribute_table, arm_handle_fndecl_attribute,
1153         arm_handle_isr_attribute): New.
1154         * config/avr/avr.c (avr_valid_type_attribute,
1155         avr_valid_decl_attribute): Remove.
1156         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
1157         define.
1158         (TARGET_ATTRIBUTE_TABLE): Define.
1159         (avr_attribute_table, avr_handle_progmem_attribute,
1160         avr_handle_fndecl_attribute): New.
1161         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
1162         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1163         (TARGET_ATTRIBUTE_TABLE): Define.
1164         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
1165         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
1166         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1167         (TARGET_ATTRIBUTE_TABLE): Define.
1168         (h8300_attribute_table, h8300_handle_fndecl_attribute,
1169         h8300_handle_eightbit_data_attribute,
1170         h8300_handle_tiny_data_attribute): New.
1171         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
1172         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
1173         Remove prototypes.
1174         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
1175         declarations.
1176         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
1177         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
1178         define.
1179         (TARGET_ATTRIBUTE_TABLE): Define.
1180         (ix86_attribute_table, ix86_handle_cdecl_attribute,
1181         ix86_handle_regparm_attribute): New.
1182         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
1183         i386_pe_valid_type_attribute_p): Remove.
1184         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
1185         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
1186         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1187         (TARGET_ATTRIBUTE_TABLE): Define.
1188         (ia64_attribute_table): New.
1189         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
1190         interrupt_ident2, model_ident1, model_ident2): Remove.
1191         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1192         (TARGET_ATTRIBUTE_TABLE): Define.
1193         (init_idents): Update.
1194         (m32r_attribute_table, m32r_handle_model_attribute): New.
1195         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
1196         Remove.
1197         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1198         (TARGET_ATTRIBUTE_TABLE): Define.
1199         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
1200         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
1201         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1202         (TARGET_ATTRIBUTE_TABLE): Define.
1203         (mcore_attribute_table, mcore_handle_naked_attribute): New.
1204         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
1205         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1206         (TARGET_ATTRIBUTE_TABLE): Define.
1207         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
1208         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
1209         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1210         (TARGET_ATTRIBUTE_TABLE): Define.
1211         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
1212         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
1213         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1214         (TARGET_ATTRIBUTE_TABLE): Define.
1215         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
1216         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
1217         New.
1218         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
1219         Remove.
1220         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
1221         (TARGET_ATTRIBUTE_TABLE): Define.
1222         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
1223         New.
1224         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
1225         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1226         (TARGET_ATTRIBUTE_TABLE): Define.
1227         (v850_attribute_table, v850_handle_interrupt_attribute,
1228         v850_handle_data_area_attribute): New.
1229         * config/v850/v850-c.c (mark_current_function_as_interrupt):
1230         Return void.  Call decl_attributes instead of
1231         valid_machine_attribute.
1232
1233 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
1234
1235         * sh-protos.h (sh_pr_n_sets): Declare.
1236         * sh.c (calc_live_regs): If the initial value for PR has been copied,
1237         look at the copy to determine if PR needs to be saved.
1238         sh_pr_n_sets: New function.
1239         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
1240         (ALLOCATE_INITIAL_VALUE): Define.
1241
1242         * sh.c (initial_elimination_offset):
1243         Fix RETURN_ADDRESS_POINTER_REGNUM case.
1244
1245 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
1246
1247         * integrate.c (allocate_initial_values): New function.
1248         * integrate.h (allocate_initial_values): Declare.
1249         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
1250         here...
1251         * reload1.c (reload): And initialization of reg_equiv_memory_loc
1252         from here...
1253         * toplev.c (rest_of_compilation): To here.
1254         Call allocate_initial_values.
1255         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
1256
1257 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1258
1259         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
1260
1261 2001-09-20  DJ Delorie  <dj@redhat.com>
1262
1263         * c-typeck.c (really_start_incremental_init): Discriminate
1264         between zero-length arrays and flexible arrays.
1265         (push_init_level): Detect zero-length arrays and handle them
1266         like fixed-sized arrays.
1267         * expr.c (store_constructor): Handle zero-length arrays and
1268         flexible arrays correctly.
1269         * doc/extend.texi: Update zero-length array notes.
1270
1271 2001-09-20  Jim Wilson  <wilson@redhat.com>
1272
1273         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
1274         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
1275         for issue port conflicts.
1276         (cycle_end_fill_slots): TYPE_L instructions take two slots.
1277
1278 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
1279
1280         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
1281         on ia64.
1282
1283 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1284
1285         * fold-const.c (hashtab.h): Include.
1286         (int_const_binop): Remove FORSIZE arg and compute from type; all
1287         callers changed.
1288         Call size_int_type_wide for all single-word constants.
1289         (size_htab_hash, size_htab_eq): New functions.
1290         (size_int_type_wide): Rework to use hash table.
1291         * ggc-common.c (hashtab.h): Include.
1292         (struct d_htab_root): New struct.
1293         (d_htab_roots): New variable.
1294         (ggc_add_deletable_htab, ggc_htab_delete): New functions
1295         (ggc_mark_roots): Handle deletable htabs.
1296         * ggc-page.c (ggc_marked_p): New function.
1297         * ggc-simple.c (ggc_marked_p): Likewise.
1298         * ggc.h: Reformatting throughout.
1299         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
1300         * tree.c (init_obstacks): Make type_hash_table a deletable root.
1301         (type_hash_add): Allocate struct type_hash from GC memory.
1302         (mark_hash_entry, mark_type_hash): Deleted.
1303         (type_hash_marked_p, type_hash_mark): New functions.
1304         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
1305
1306 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
1307
1308         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
1309         than SImode.
1310
1311 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1312
1313         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
1314         array-too-large test for signed sizetype.
1315
1316 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1317
1318         * i386.md (indirect_jump): Allow Pmode operand.
1319         (tablejump): LIkewise; perform expansion to 64bit mode.
1320         * i386.c (symbolic_operand): Allow 64bit PIC references.
1321         (pic_symbolic_operand): Likewise.
1322         (ix86_find_base_term): Strip the 64bit PIC references.
1323         (legitimate_pic_address_disp_p): Handle 64bit PIC.
1324         (legitimize_pic_address): Likewise.
1325         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
1326         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
1327
1328 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
1329
1330         * stringpool.c (get_identifier_with_length): New function.
1331         * tree.h (get_identifier_with_length): New prototype.
1332
1333 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
1334             David Edelsohn  <edelsohn@gnu.org>
1335
1336         Revert:
1337         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
1338         already sign-extended.
1339
1340         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
1341         * config/rs6000/rs6000.c (logical_operand): Always compare op as
1342         HOST_WIDE_INT.
1343         (rs6000_emit_set_long_const): Avoid unnecessary shift.
1344         (output_profile_hook): Declare label_name const.
1345         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
1346         to match constraints.
1347
1348 2001-09-19  Stan Shebs  <shebs@apple.com>
1349
1350         * alias.c: Fix typos in comments.
1351         * sched-rgn.c (init_ready_list): Ditto.
1352         * unwind-dw2.c (uw_frame_state_for): Ditto.
1353         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
1354         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
1355         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
1356
1357 2001-09-19  Richard Henderson  <rth@redhat.com>
1358
1359         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
1360         to the exit block.
1361         * Makefile.in (cfg.o): Depend on TM_P_H.
1362
1363 2001-09-19  Richard Henderson  <rth@redhat.com>
1364
1365         * config/alpha/alpha.c (local_symbol_p): Split out from ...
1366         (local_symbolic_operand): ... here.
1367         (small_symbolic_operand): Check mode.
1368         (global_symbolic_operand): New.
1369         (input_operand): Reject symbolics if explicit relocs.
1370         (call_operand): Tidy.
1371         (alpha_legitimize_address): Use movdi_er_high_g.
1372         (alpha_expand_mov): Likewise.
1373         * config/alpha/alpha-protos.h: Update.
1374         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1375         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
1376         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
1377         (UNSPECV_LDGP2): Remove.
1378         (all call patterns): Use 's' not 'i' for symbolic constraint.
1379         (call_osf call_value_osf): Use call_operand.
1380         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
1381         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
1382         (prologue_ldgp_1_er): Remove.
1383         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
1384         (builtin_setjmp_receiver_er patterns): Use them.
1385         (exception_receiver_er): Likewise.
1386
1387 2001-09-19  Richard Henderson  <rth@redhat.com>
1388
1389         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
1390
1391         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
1392         and NON_LOCAL_GOTO notes.
1393         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
1394         copy over CALL_INSN_FUNCTION_USAGE.
1395
1396 2001-09-18  Catherine Moore  <clm@redhat.com>
1397
1398         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
1399         Define as 0.
1400
1401 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
1402
1403         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
1404         new-style tm_file specification.  Specify correct tm_p_file,
1405         md_file, and out_file for s390x.
1406
1407         * config/s390/linux.h, linux64.h:  Don't include other target
1408         macro header files.  Now handled via tm_file.
1409
1410         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
1411         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
1412         are defined before use.
1413
1414 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
1415
1416         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
1417         code generation only for Gnu assembler.
1418
1419 2001-09-18  Catherine Moore  <clm@redhat.com>
1420
1421         * config/stormy16 (LIB_SPEC): Remove -lnosys.
1422
1423 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
1424
1425         * config/mips/mips.c (mips_frame_set): New.
1426         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
1427         a parallel frame-related expression with a set for each register.
1428
1429 2001-09-18  Philip Blundell  <philb@gnu.org>
1430
1431         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
1432         header files.
1433
1434 2001-09-17  Dale Johannesen  <dalej@apple.com>
1435
1436         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
1437         * config/rs6000/aix.h (FIXED_R2): Define.
1438         * config/rs6000/darwin.h (FIXED_R2): Define.
1439         * config/rs6000/sysv4.h (FIXED_R2): Define.
1440
1441 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
1442
1443         * except.c (dw2_build_landing_pads): New local
1444         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
1445         barrier after clobbers.  Fixes c++/4012.
1446
1447 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1448
1449         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
1450
1451 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1452
1453         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
1454         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
1455
1456 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1457
1458         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
1459         alloca/strcpy.
1460
1461 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1462
1463         * cpphash.h (_cpp_lex_direct): New.
1464         * cpplex.c (_cpp_lex_token): Update.
1465         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
1466         and increment that pointer.
1467         * cppmacro.c (alloc_expansion_token): New.
1468         (lex_expansion_token): Lex macro expansion directly into
1469         macro storage.
1470
1471 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
1472
1473         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
1474
1475 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
1476
1477         * basic-block.h (free_bb_for_insn): Declare.
1478         * bb-reorder.c (label_for_bb): Use block_label.
1479         (emit_jump_to_block_after): Remove.
1480         (insert_intra_1): Do not update block_for_insn.
1481         (insert_inter_bb_scope_notes): Likewise; update bb->end
1482         * cfg.c (free_bb_for_insn): New.
1483         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
1484         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
1485         (commit_one_edge_insertion): Likewise.
1486         (commit_one_edge_insertion): Do not update BB boundary.
1487         (commit_edge_insertions): Do not call compute_bb_for_insn.
1488         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
1489         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
1490         (merge_blocks_move_successor_nojumps): Likewise.
1491         (try_crossjump_to_edge): Do not update block_for_insn.
1492         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
1493         * df.c (df_pattern_emit_later): Do not update BB boundary.
1494         (df_jump_pattern_emit_after): Likewise.
1495         (df_insn_move_before): Use emit_insn_before.
1496         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
1497          properly.
1498         (add_insn_after, add_insn_before, emit_insns_after): Update BB
1499         boundaries and basic_block_for_insn.
1500         (reorder_insns_nobb): Rename from reorder_insns.
1501         (reorder_insns): New.
1502         (emit_block_insn_before, emit_block_insn_after): Kill.
1503         * flow.c (check_function_return_warnings): Do not call
1504         compute_bb_for_insn; Do not free basic_block_for_insn.
1505         (attempt_auto_inc): Do not update basic_block_for_insn.
1506         * function.c (emit_return_into_block): Likewise;
1507         do not update BB boundaries.
1508         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
1509         (insert_insn_end_bb): Use emit_insn_before; Likewise.
1510         (pre_insert_copy_insn): Likewise.
1511         (update_ld_motion_notes): Likewise.
1512         (insert_insn_start_bb): Likewise.
1513         (replace_store_insn): Likewise.
1514         * ifcvt.c (noce_process_if_block): Likewise.
1515         (if_convert): Do not call compute_bb_for_insn.
1516         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
1517         Use emit_insn_before and emit_insn_after.
1518         * recog.c (split_all_insns): Do not update BB boundaries;
1519         Do not call compute_bb_for_insn.
1520         (peephole2_optimize): Do not update BB boundaries.
1521         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
1522         emit_insn_before.
1523         (emit_swap_insn): Likewise.
1524         (convert_regs_1): Likewise.
1525         * reload1.c (reload): Call compute_bb_for_insn.
1526         * rtl.h (reorder_insns_nobb): Declare.
1527         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
1528         * toplev.c (rest_of_compilation): Call free_bb_for_insn
1529         at places CFG is invalidated; do not call compute_bb_for_insn.
1530
1531         * cfg.c (expunge_block): Invalidate BB structure.
1532
1533         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
1534         array.
1535
1536         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
1537
1538 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1539
1540         * cpphash.h (_cpp_lex_token): Update prototype.
1541         * cpplex.c (_cpp_lex_token): New prototype.
1542         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
1543         lex_macro_node, read_flag, do_pragma_poison): Update.
1544         * cppmacro.c (cpp_get_token, parse_params,
1545         lex_expansion_token): Update.
1546
1547 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1548
1549         * cppmain.c (scan_translation_unit): Don't worry about
1550         putting a space after hashes.
1551         * cpplib.c (directive_diagnostics): New.
1552         (_cpp_handle_directive): Update to use directive_diagnostics.
1553         (run_directive): Don't toggle prevent_expansion.
1554         (do_line): Backup in case of the line extension.
1555         * cpplib.h (cpp_lexer_pos): Remove.
1556         * cppmacro.c (_cpp_create_definition): Precede a leading #
1557         with whitespace.
1558
1559 2001-09-15  Richard Henderson  <rth@redhat.com>
1560
1561         * c-typeck.c (comptypes): Handle zero-length arrays properly.
1562
1563 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1564
1565         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
1566
1567 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1568
1569         PR preprocessor/3571
1570         * tradcpp.c (handle_directive): Skip non-vertical space.
1571
1572 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1573
1574         * cppmain.c (setup_callbacks): Set line callback only
1575         if outputting preprocessed source.
1576
1577 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1578
1579         * collect2.c (main): Const-ification.
1580         * gcc.c (translate_options, process_command): Use xstrdup in
1581         lieu of xmalloc/strcpy.
1582         (main): Use concat in lieu of xmalloc/strcpy/strcat.
1583
1584 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1585
1586         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
1587         example.
1588
1589 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1590
1591         * scan-decls.c (scan_decls): Fix typo.
1592
1593 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1594
1595         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
1596         Split mlstring_pos into mls_line and mls_col.
1597         * cppinit.c (cpp_create_reader): Initialize line to 1.
1598         (cpp_destroy): Free tokenruns.
1599         (push_include): Don't update lexer_pos.
1600         * cpplex.c (unterminated, parse_string): Update.
1601         (lex_token): Don't update lexer_pos, update.
1602         * cpplib.c (if_stack): Save line instead of line + col.
1603         (start_directive, _cpp_do__Pragma, do_else, do_elif,
1604         push_conditional, _cpp_pop_buffer): Update.
1605         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
1606         (_cpp_create_definition): Update.
1607
1608 2001-09-15  Eric Christopher  <echristo@redhat.com>
1609
1610         * config/mips/abi64.h: Add support for MEABI.
1611
1612 2001-09-15  Eric Christopher  <echristo@redhat.com>
1613
1614         * config/mips/mips.md: Add unspec #2.
1615         (reload_indi): Use.
1616         (reload_outdi): Ditto.
1617         (reload_outsi): Ditto.
1618         (HILO_delay): New.
1619
1620 2001-09-15  Eric Christopher  <echristo@redhat.com>
1621             Jason Eckhardt  <jle@redhat.com>
1622
1623         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
1624         * config/mips/isa32-linux.h: New file.
1625         * config/mips/isa3264.h: Ditto.
1626         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
1627         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
1628         (output_block_mode): Support MEABI.
1629         (function_arg): Ditto. Fix floating point arg passing.
1630         (mips_va_start): Ditto.
1631         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
1632         processors.
1633         (mips_asm_file_start): Add new section to pass abi to gdb.
1634         (function_arg_pass_by_reference): Support MEABI.
1635         (mips_parse_cpu): Support mips32 and mips64 processors.
1636         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
1637         TARGET_MIPS5KC.  Support isa32 and isa64.
1638         (processor_type): Add r4kc, r5kc, r20kc.
1639         (GENERATE_MULT3_SI): New.
1640         (GENERATE_MULT3_DI): Ditto.
1641         (GENERATE_MULT3): Remove.
1642         (ISA_HAS_64BIT_REGS): Add isa == 64.
1643         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
1644         (ISA_HAS_MADD_MSUB): New.
1645         (ISA_HAS_CLZ_CLO): Ditto.
1646         (ISA_HAS_DCLZ_DCLO): Ditto.
1647         (ABI_GAS_ASM_SPEC): New.
1648         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
1649         (ASM_SPEC): Ditto.
1650         (LINK_SPEC): Ditto.
1651         (SUBTARGET_CC1_SPEC): Ditto.
1652         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
1653         (PAD_VARARGS_DOWN): Support MEABI.
1654         (HARD_REGNO_NREGS): Move to mips.c.
1655         (ASM_OUTPUT_IDENT): Add #undef.
1656         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
1657         (mulsi3): Use GENERATE_MULT3_SI.
1658         (mulsi3_mult3): Ditto.  Support mips32, mips64.
1659         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
1660         (mul_sub_si): New pattern.
1661         (unnamed splitters): New.
1662         (muldi3): Use GENERATE_MULT3_DI.
1663         (muldi3_internal2): Ditto.
1664         (movdicc): Support mips32.
1665         * config/mips/t-isa3264: New file.
1666
1667 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
1668
1669         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
1670         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
1671         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
1672
1673         * reorg.c (fill_slots_from_thread): After call to
1674         steal_delay_list_from_target, update own_thread as new_thread may
1675         have branched.
1676
1677 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1678
1679         * cpperror.c (print_location): Take line and column, for
1680         default positioning use the previously lexed token.
1681         (_cpp_begin_message): Take line and column.
1682         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1683         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1684         * cpphash.h (_cpp_begin_message): Update prototype.
1685         * cppinit.c (push_include): Don't set output line.
1686         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
1687         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
1688         (do_pragma): Kludge for front ends.  Don't expand macros at all.
1689         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
1690         (struct cpp_token): Remove output_line.
1691         (struct cpp_callbacks): New member line_change.
1692         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
1693         cpp_get_token): Preserve BOL flag.
1694         (cpp_get_line): Remove.
1695         (_cpp_backup_tokens): Remove useless abort().
1696         * cppmain.c (cb_line_change): New.
1697         (scan_translation_unit): Don't worry about starting new lines here.
1698         * scan-decls.c (scan_decls): Update.
1699         * c-lex.c (c_lex, init_c_lex): Update.
1700         (cb_line_change, src_lineno): New.
1701
1702 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
1703
1704         * tree.c (append_random_chars): Generate the random
1705         characters in a reproducable fashion.
1706
1707 2001-09-14  Richard Henderson  <rth@redhat.com>
1708
1709         * config/i386/i386.c (internal_label_prefix): New.
1710         (internal_label_prefix_len): New.
1711         (override_options): Set them.
1712         (local_symbolic_operand): New.
1713         (legitimate_pic_address_disp_p): Use it.
1714         (legitimize_pic_address): Likewise.
1715
1716 2001-09-14  Marc Espie <espie@openbsd.org>
1717
1718         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
1719         correctly.
1720
1721 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1722
1723         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
1724         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
1725
1726 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
1727
1728         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
1729         invocation of SUBREG_REGNO_OFFSET.
1730
1731         * haifa-sched.c: Fix typo in FSF copyright statement.
1732         * sched-deps.c: Fix typo in FSF copyright statement.
1733         * sched-ebb.c: Fix typo in FSF copyright statement.
1734         * sched-rgn.c: Fix typo in FSF copyright statement.
1735         * sched-vis.c: Fix typo in FSF copyright statement.
1736
1737         * config.gcc: Move inclusion of arm elf specific header files
1738         from the files themselves into the tm_file variable.  Make
1739         sure that elfos.h is included before target specific elf
1740         headers.
1741         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
1742         already defined.
1743         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
1744         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
1745         ASM_OUTPUT_CASE_LABEL): Protect definition.
1746         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
1747         not already defined.
1748         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
1749         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
1750         Remove duplicate definition.
1751         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
1752         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
1753         (RDATA_SECTION_FUNCTION): Remove redundant definition.
1754         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
1755         Remove inclusion of arm/elf.h.
1756         * config/arm/unknown-elf.h: as for conix-elf.h.
1757         (STARTFILE_SPEC): Include crti.o and crtn.o.
1758         * config/arm/linux-elf.h: as for conix-elf.h.
1759         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
1760         * config/arm/strongarm-elf.h: Remove inclusion of
1761         unknown-elf.h.
1762         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
1763         * config/arm/unknown-elf-oabi.h: Remove inclusion of
1764         unknown-elf.h and elf.h.
1765         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
1766         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
1767         ASM_WEAKEN_LABEL): Remove redundant definition.
1768         * config/arm/elf.h: Test for inclusion of elfos.h
1769         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
1770         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
1771         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
1772         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
1773         redundant definition.
1774         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
1775         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
1776         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
1777         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
1778         Add rules to build crti.o and crtn.o
1779         * crti.asm: New file.
1780         * crtn.asm: New file.
1781
1782 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1783
1784         * c-parse.in (_yylex): Use _cpp_backup_tokens.
1785         * cpphash.h (struct tokenrun): Add prev.
1786         (struct lexer_state): Remove bol.
1787         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
1788         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
1789         : Remove.
1790         * cppinit.c (cpp_create_reader): Don't set bol.
1791         (cpp_destroy): Don't free lookaheads.
1792         * cpplex.c (lex_directive): Remove.
1793         (next_tokenrun): Update.
1794         (_cpp_lex_token): Clean up logic.
1795         (lex_token): Update to return a pointer to lexed token, since it
1796         can move to the start of the buffer.  Simpify newline handling.
1797         * cpplib.c (SEEN_EOL): Update.
1798         (skip_rest_of_line): Remove lookahead stuff.
1799         (end_directive): Line numbers are already incremented.  Revert
1800         to start of lexed token buffer if we can.
1801         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
1802         parse_answer): Use _cpp_backup_tokens.
1803         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
1804         instead.  Don't check for EOL.
1805         (do_include_common, do_line, do_pragma_system_header): Use
1806         skip_rest_of_line.
1807         * cpplib.h (BOL, _cpp_backup_tokens): New.
1808         * cppmacro.c (save_lookahead_token, take_lookahead_token,
1809         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
1810         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
1811         (builtin_macro): Don't use cpp_get_line.
1812         (cpp_get_line): Short term kludge.
1813         (parse_arg): Handle directives in arguments here.  Back up when
1814         appropriate.  Store EOF at end of argument list.
1815         (funlike_invocation_p): Use _cpp_backup_tokens.
1816         (push_arg_context): Account for EOF at end of list.
1817         (cpp_get_token): Remove lookahead stuff.  Update.
1818
1819 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1820
1821         * c-parse.in (yyerror): Const-ification and/or static-ization.
1822         * c-typeck.c (push_member_name): Likewise.
1823         * collect2.c (main): Likewise.
1824         * dbxout.c (dbxout_parms): Likewise.
1825         * diagnostic.c (format_with_decl): Likewise.
1826         * dwarf2out.c (output_ranges): Likewise.
1827         * dwarfout.c (fundamental_type_code): Likewise.
1828         * except.c (dw2_output_call_site_table): Likewise.
1829         * gcc.c (do_spec_1): Likewise.
1830         * genopinit.c (optabs): Likewise.
1831         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
1832         gen_declaration_1, handle_impent): Likewise.
1833         * protoize.c (default_include, in_system_include_dir, abspath):
1834         Likewise.
1835         * sched-vis.c (visualize_stall_cycles): Likewise.
1836         * sdbout.c (plain_type_1, sdbout_end_function,
1837         sdbout_end_epilogue): Likewise.
1838         * varasm.c (decode_reg_name): Likewise.
1839
1840         * 1750a.c (mod_regno_adjust): Likewise.
1841         * alpha.c (alpha_write_one_linkage,
1842         unicosmk_output_default_externs): Likewise.
1843         * arm.c (arm_condition_codes): Likewise.
1844         * arm.h (arm_condition_codes): Likewise.
1845         * avr.c (output_movsisf, encode_section_info): Likewise.
1846         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
1847         Likewise.
1848         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
1849         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
1850         * m88k.c (output_function_profiler): Likewise.
1851         * mips.c (mips_output_conditional_branch): Likewise.
1852         * ns32k.c (ns32k_out_reg_names): Likewise.
1853         * ns32k.h (ns32k_out_reg_names): Likewise.
1854         * pj.c (pj_output_rval): Likewise.
1855         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
1856         * sparc.c (sparc_flat_function_prologue,
1857         sparc_flat_function_epilogue): Likewise.
1858
1859 2001-09-13  Markus Werle <numerical.simulation@web.de>
1860             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1861
1862         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
1863         Aachen University of Technology".
1864
1865 2001-09-13  Andreas Schwab  <schwab@suse.de>
1866
1867         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
1868         C99.
1869
1870 2001-09-13  Richard Henderson  <rth@redhat.com>
1871
1872         * config/alpha/alpha.c (small_symbolic_operand): New.
1873         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
1874         (some_operand, input_operand): Don't handle HIGH.
1875         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
1876         (alpha_expand_mov): Likewise.
1877         (print_operand) [H]: Just print HIGH symbol.
1878         (print_operand_address): Handle small data.
1879         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
1880         (TARGET_SWITCHES): Add -msmall-data/large-data.
1881         (PIC_OFFSET_TABLE_REGNUM): New.
1882         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
1883         (PREDICATE_COES): Update.
1884         * config/alpha/alpha.md (adddi_er_high): New.
1885         (adddi_er_low): Handle small data.
1886         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
1887         prefer .sdata to .rodata.
1888         (SELECT_RTX_SECTION): Likewise.
1889
1890 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
1891
1892         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
1893         defining __size_t and leaving size_t undefined.
1894
1895 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
1896
1897         * basic-block.h (expunge_block): Declare.
1898         * cfg.c (expunge_block): Remove static declaration.
1899
1900 2001-09-12  Richard Henderson  <rth@redhat.com>
1901
1902         * integrate.c (copy_insn_list): Copy label name from
1903         NOTE_INSN_DELETED_LABEL.
1904
1905 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1906
1907         * c-common.c (c_tree_code_name): Const-ification.
1908         * c-decl.c (c_decode_option): Likewise.
1909         * c-typeck.c (warn_for_assignment): Likewise.
1910         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
1911         Likewise.
1912         * cppinit.c (output_deps): Likewise.
1913         * dependence.c (dependence_string, direction_string): Likewise.
1914         * dwarf2out.c (output_ranges): Likewise.
1915         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
1916         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
1917         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
1918         standard_startfile_prefix, standard_startfile_prefix_1,
1919         standard_startfile_prefix_2, tooldir_base_prefix,
1920         standard_bindir_prefix, find_a_file): Likewise.
1921         * genattrtab.c (make_length_attrs): Likewise.
1922         * gencheck.c (tree_codes): Likewise.
1923         * genemit.c (gen_split): Likewise.
1924         * genrecog.c (special_mode_pred_table): Likewise.
1925         * graph.c (graph_ext): Likewise.
1926         * protoize (default_include): Likewise.
1927         * reload.c (reload_when_needed_name): Likewise.
1928         * sched-vis.c (visualize_stall_cycles): Likewise.
1929         * tlink.c (recompile_files): Likewise.
1930         * toplev.c (decode_g_option): Likewise.
1931         * tradcpp.c (output_deps): Likewise.
1932         * varasm.c (decode_reg_name): Likewise.
1933
1934         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
1935         Const-ification.
1936         * arm.md: Likewise.
1937         * avr.c (avr_regnames, encode_section_info): Likewise.
1938         * c4x.c (float_reg_names): Likewise.
1939         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
1940         * elfos.h (const_section): Likewise.
1941         * i386.c (ix86_comp_type_attributes): Likewise.
1942         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
1943         * ia64/aix.h (UNIQUE_SECTION): Likewise.
1944         * ia64.c (type_names): Likewise.
1945         * m68hc11.c (reg_class_names): Likewise.
1946         * m88k.c (m_options): Likewise.
1947         * mips.c (mips_output_conditional_branch, mips_unique_section):
1948         Likewise.
1949         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1950         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
1951         ultra_code_names): Likewise.
1952         * sparc.h (OVERRIDE_OPTIONS): Likewise.
1953
1954 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1955
1956         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
1957         Use --fatal-warnings option for gas.
1958         * configure: Rebuilt.
1959
1960 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1961
1962         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
1963
1964 2001-09-11  Jim Wilson  <wilson@redhat.com>
1965
1966         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
1967
1968 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1969
1970         * builtins.c (c_strlen): Treat an offset too large for a
1971         HOST_WIDE_INT as out of range.
1972
1973 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
1974
1975         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
1976         (EDGE_CRITICAL_P): New predicate.
1977         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
1978         handling.
1979         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
1980         (dump_edge_info): Remove "crit".
1981         * cfganal.c (mark_critical_edges): Kill.
1982         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
1983         * cfgcleanup.c (cleanup_cfg): Likewise.
1984         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
1985         (find_spanning_tree): Likewise.
1986         * reg-stack.c (convert_regs_1): Likewise.
1987         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
1988
1989         * basic-block.h (create_basic_block_structure): New.
1990         (create_basic_block): Update prototype.
1991         (force_nonfallthru): New.
1992         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
1993         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
1994         handle updating of block_for_insn, creating of empty BBs and BBs at
1995         the end of INSN chain.
1996         (create_basic_block): New function.
1997         (split_block): Use create_basic_block.
1998         (force_nonfallthru_and_redirect): Break out from ...; cleanup
1999         (redirect_edge_and_branch_force): ... here.
2000         (force_nonfallthru): New.
2001         (split_edge): Rewrite to use force_nonfallthru and create_block.
2002         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
2003         (find_basic_blocks): Free basic_block_for_insn.
2004         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
2005
2006         * cfg.c: Fix formating.
2007         * cfgcleanup.c: Fix formating.
2008         (merge_blocks, tail_recursion_label_p): Return bool.
2009         (merge_blocks_move_predecessor_nojumps,
2010          merge_blocks_move_successor_nojumps): Return void.
2011
2012 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
2013
2014         * configure.in: Check whether assembler supports section merging.
2015         * config.in: Rebuilt.
2016         * configure: Rebuilt.
2017         * varasm.c (variable_section, output_constant_pool): Pass alignment
2018         to SELECT_SECTION and SELECT_RTX_SECTION.
2019         (mergeable_string_section): New.
2020         (mergeable_constant_section): New.
2021         (default_elf_asm_named_section): Output SECTION_MERGE and
2022         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
2023         * output.h (mergeable_string_section): New.
2024         (mergeable_constant_section): New.
2025         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
2026         * toplev.c (flag_merge_constants): New.
2027         (f_options): Add -fmerge-constants and -fmerge-all-constants
2028         options.
2029         (toplev_main): Default to -fno-merge-constants if not optimizing.
2030         * flags.h (flag_merge_constants): Add extern.
2031         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
2032         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
2033         argument.
2034         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
2035         Define if assembler has working .subsection -1 support.
2036         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
2037         Put constant into special SHF_MERGE sections if the linker should
2038         attempt to merge duplicates.
2039         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
2040         macro argument.
2041         Put constant into special SHF_MERGE sections if the linker should
2042         attempt to merge duplicates.
2043         * config/alpha/elf.h: Likewise.
2044         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
2045         has working .subsection -1 support.
2046         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
2047         SELECT_SECTION.
2048         * config/svr3.h: Likewise.
2049         * config/darwin.h: Likewise.
2050         * config/arm/aof.h: Likewise.
2051         * config/arm/linux-elf.h: Likewise.
2052         * config/avr/avr.h: Likewise.
2053         * config/c4x/c4x.h: Likewise.
2054         * config/d30v/d30v.h: Likewise.
2055         * config/i386/dgux.h: Likewise.
2056         * config/i386/osfrose.h: Likewise.
2057         * config/i386/sco5.h: Likewise.
2058         * config/i386/svr3gas.h: Likewise.
2059         * config/ia64/aix.h: Likewise.
2060         * config/m32r/m32r.h: Likewise.
2061         * config/m68k/m68k.h: Likewise.
2062         * config/m88k/dgux.h: Likewise.
2063         * config/m88k/m88k.h: Likewise.
2064         * config/mcore/mcore-pe.h: Likewise.
2065         * config/mips/mips.h: Likewise.
2066         * config/pa/pa.h: Likewise.
2067         * config/pa/pa-linux.h: Likewise.
2068         * config/romp/romp.h: Likewise.
2069         * config/rs6000/sysv4.h: Likewise.
2070         * config/rs6000/xcoff.h: Likewise.
2071         * config/s390/linux.h: Likewise.
2072         * config/sparc/sparc.h: Likewise.
2073         * config/sparc/sysv4.h: Likewise.
2074         * config/stormy16/stormy16.h: Likewise.
2075         * config/v850/v850.h: Likewise.
2076         * config/vax/vms.h: Likewise.
2077         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
2078         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
2079         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
2080         default_elf_asm_named_section for SHF_MERGE sections.
2081
2082 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
2083
2084         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
2085         is OK.
2086
2087 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2088
2089         * c-common.c (split_specs_attrs): Allow for empty attributes with
2090         empty TREE_PURPOSE.  Fixes PR c/4294.
2091
2092 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
2093
2094         * basic-block.h (cached_make_edge, make_single_succ): New.
2095         (make_edge): Remove first parameter.
2096         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
2097         * cfg.c (cached_make_edge): Rename from make_edge; return newly
2098         created edge; use obstack allocation.
2099         (make_edge, make_single_succ_edge): New.
2100         (first_removed_edge): New static variable.
2101         (init_flow): Initialize first_removed_edge and n_edges.
2102         (clear_edges): Use remove_edge.
2103         (flow_delete_block): Likewise.
2104         (remove_edge): Add removed edges to the removed edges list.
2105         (split_block, redirect_edge_and_branch_force, split_edge):
2106         Use make_edge.
2107         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
2108         (add_noreturn_fake_exit_edges): Likewise.
2109         (connect_infinite_loops_to_exit): Liekwise.
2110         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
2111         Use cached_make_edge.
2112         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
2113         * profile.c (branch_prob): Update make_edge call.
2114         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2115
2116 2001-09-11  Richard Henderson  <rth@redhat.com>
2117
2118         * config/alpha/alpha.c: Tidy formatting.
2119         (local_symbolic_operand): Verify mode.
2120         (alpha_sa_mask): Ignore unicos for eh_return.
2121         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
2122         * config/alpha/alpha.md (umk divsi patterns): Remove.
2123         (extendsfdf2): Remove unicos check.
2124         (tablejump): Merge vms and unicos code; always use direct set
2125         plus label_ref use.
2126
2127 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2128
2129         * config.gcc (alpha*-*-unicosmk*): New target.
2130
2131         * config/alpha/alpha-protos.h (symbolic_operand,
2132         unicosmk_add_call_info_word, unicosmk_add_extern,
2133         unicosmk_defer_case_vector, unicosmk_unique_section,
2134         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
2135         unicosmk_asm_file_start, unicosmk_asm_file_end,
2136         unicosmk_output_common): Declare.
2137
2138         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
2139         direct_return, function_arg, alpha_va_start, alpha_va_arg,
2140         alpha_does_function_need_gp, alpha_end_function): Support Cray
2141         Unicos/Mk.
2142         (alpha_init_machine_status, alpha_mark_machine_status,
2143         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
2144         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
2145         unicosmk_asm_named_section, unicosmk_insert_attributes,
2146         unicosmk_section_type_flags, symbolic_operand,
2147         unicosmk_output_module_name, unicosmk_output_default_externs,
2148         unicosmk_output_dex, unicosmk_output_externs,
2149         unicosmk_output_addr_vec, unicosmk_ssib_name,
2150         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
2151         unicosmk_asm_file_end, unicosmk_output_common,
2152         unicosmk_section_type_flags, unicosmk_unique_section,
2153         unicosmk_add_call_info_word, unicosmk_text_section,
2154         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
2155         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
2156         unicosmk_dex_count, unicosmk_special_name): New.
2157         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
2158         TARGET_ABI_UNICOSMK.
2159         (get_aligned_mem, alpha_expand_unaligned_load,
2160         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
2161         alpha_expand_unaligned_store_words): Support big-endian mode.
2162         (print_operand): Likewise. New format specifier 't'. Use
2163         TARGET_AS_SLASH_BEFORE_SUFFIX.
2164         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
2165         (alpha_pv_save_size): Update with above change.
2166         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
2167         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
2168         Unicos/Mk.
2169
2170         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
2171         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
2172         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
2173         (EXTRA_CONSTRAINT): New constraint 'U'.
2174         (PREDICATE_CODES): Add symbolic_operand.
2175
2176         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
2177         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
2178         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
2179         (integer division and modulus patterns): Split in default and
2180         Unicos/Mk versions.
2181         (*divmodsi_internal, *divmoddi_internal): Disable for
2182         TARGET_ABI_UNICOSMK.
2183         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
2184         little-endian and big-endian versions.
2185         (ext, ins, msk): Likewise.
2186         (extv, extzv, insv): Support big-endian mode.
2187         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
2188         (call_umk, call_value_umk, *call_umk, tablejump_umk,
2189         *tablejump_umk_internal, *call_value_umk): New.
2190         (*movdi_nofix): Add pattern for loading an address into a register on
2191         TARGET_ABI_UNICOSMK.
2192         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
2193         (umk_mismatch_args, arg_home_umk): New.
2194         (various insns): Don't use mov, fmov, nop, fnop and unop.
2195         (realign): Support TARGET_ABI_UNICOSMK.
2196
2197         * config/alpha/unicosmk.h: New file.
2198         * config/alpha/t-unicosmk: New file.
2199
2200         * fixinc/inclhack.def (unicosmk_restrict): New.
2201         * fixinc/fixincl.x: Regenerate.
2202
2203         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
2204         (wchar_t): Check for and define __WCHAR_T__.
2205
2206 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
2207
2208         * combine.c (simplify_shift_const): Treat shifts by the mode
2209         size as undefined.
2210
2211 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2212
2213         * cpphash.h (struct tokenrun): New.
2214         (struct cpp_context): New member bol.
2215         (struct cpp_reader): New members.
2216         (_cpp_init_tokenrun): New.
2217         * cppinit.c (cpp_create_reader): Set up the token runs.
2218         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
2219         (lex_token): New internalised version of _cpp_lex_token.  Don't
2220         handle directives or the multiple include opimisation here any
2221         more.  Simply lex a token.
2222         * cpplib.c (run_directive): Clear bol.
2223         (_cpp_pop_buffer): Set bol.
2224         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
2225         arguments.
2226
2227 2001-09-11  Michael Meissner  <meissner@redhat.com>
2228
2229         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
2230         give an error if the user uses -mfp32.
2231         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
2232         default options.
2233         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
2234         floating point register size.
2235         (EXTRA_SPECS): Add CPP_FPR_SPEC.
2236
2237         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
2238         HOST_WIDE_INT_PRINT_DEC to properly print the result of
2239         int_size_in_bytes.
2240         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
2241         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
2242
2243 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
2244
2245         * dbxout.c (dbxout_parms): Fix typo in comment.
2246         * unroll.c (loop_find_equiv_value): Ditto.
2247         * toplev.c (rest_of_compilation): Ditto.
2248         * loop.c (scan_loop): Ditto.
2249         * dwarf2out.c (struct dw_fde_struct): Ditto.
2250
2251 2001-09-10  Zack Weinberg  <zackw@panix.com>
2252
2253         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
2254         copying identifier when we're just going to throw it away.
2255         (parse_identifier_slow): New routine to handle abnormal cases.
2256         (_cpp_lex_token): Update call site.
2257
2258         * hashtable.c (ht_lookup): Don't assume that the string we've
2259         been given is NUL-terminated.
2260         * system.h: #define __builtin_expect(a, b) to (a) if not
2261         GCC >=3.0.
2262
2263 2001-09-10  Michael Meissner  <meissner@redhat.com>
2264
2265         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
2266         binutils, gdb.
2267
2268 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
2269
2270         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
2271
2272 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2273
2274         * builtins.c (c_getstr): Correct thinko in last change and further
2275         cleanup.
2276
2277 2001-09-10  Tim Freeman <tim@fungibole.com>
2278
2279         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
2280         into varray's and register them as roots with the garbage
2281         collector so they are not collected too soon.
2282
2283 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
2284
2285         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
2286         New.
2287         * basic-block.h (flow_obstack, label_value_list,
2288         tail_recursion_label_list): Declare
2289         (tidy_fallthru_edges): Declare.
2290         (expunge_block, last_loop_beg_note): Delete.
2291         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
2292         * cfg.c: New file
2293         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
2294         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
2295         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
2296         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
2297         expunge_block, flow_delete_block, compute_bb_for_insn,
2298         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
2299         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
2300         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
2301         try_redirect_by_replacing_jump, last_loop_beg_note,
2302         redirect_edge_and_branch, redirect_edge_and_branch_force,
2303         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
2304         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
2305         commit_edge_insertions, dump_flow_info, debug_flow_info,
2306         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
2307         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
2308         Move here from flow.c
2309         * cfganal.c: New file.
2310         (forwarder_block_p, can_fallthru, mark_critical_edges,
2311          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
2312          find_unreachable_blocks, create_edge_list, free_edge_list,
2313          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
2314          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
2315          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
2316          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
2317          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
2318          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
2319         Move here from flow.c
2320         * cfgbuild.c: New file
2321         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
2322          make_edges, find_basic_blocks_1, find_basic_blocks,
2323          find_sub_basic_blocks): Move here from flow.c
2324         * cfgcleanup.c: New file.
2325         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
2326          merge_blocks_move_predecessor_nojumps,
2327          merge_blocks_move_successor_nojumps, merge_blocks,
2328          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
2329          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
2330         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
2331         if succeeded.
2332         * cfgloop.c: New file
2333         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
2334          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
2335          flow_loop_exit_edges_find, flow_loop_nodes_find,
2336          flow_loop_pre_header_scan, flow_loop_pre_header_find,
2337          flow_loop_tree_node_add, flow_loops_tree_build,
2338          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
2339          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
2340         Move here from flow.c
2341         * flow.c: Remove everything moved elsewhere
2342         * output.h (cleanup_cfg): Return bool.
2343
2344         * bb-reorder.c (reorder_block_def): Remove 'index'.
2345         (insert_intra_1): Add argument BB, set block for new note.
2346         (make_reorder_chain): Do not depdent on BB indexes.
2347         (make_reorder_chain_1): Do not use BB indexes.
2348         (label_for_bb): Likewise; set BB for new insn.
2349         (emit_jump_to_block_after): Likewise.
2350         (fixup_reoder_chain): Sanity check that all basic blocks
2351         are chained; verify newly created insn chain; remove
2352         undocnitional jump simplifying; Do not use BB indexes;
2353         properly initialize count and frequency information;
2354         dump reordered sequence.
2355         (insert_intra_bb_scope_notes): update call of insert_intra_1.
2356         (insert_inter_bb_scope_notes): Set block for new insn.
2357         (reorder_basic_blocks): Dump flow info before reoredering.
2358
2359 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2360
2361         * alias.c (clear_reg_alias_info): Use K&R format definition.
2362         Avoid unsigned warning.
2363         * builtins.c: Use "unsigned int", not "unsigned".
2364         (target_char_cast): Use host_integerp and tree_low_cst.
2365         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
2366         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
2367         (c_getstr): Likewise.
2368         (std_expand_builtin_va_arg): Use int_size_in_bytes.
2369         (builtin_memcpy_read_str): Avoid unsigned warning.
2370         (expand_builtin_memcpy): Alignments are unsigned.
2371         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
2372         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
2373         * predict.c (expensive_function_p): LIMIT now unsigned.
2374         * resource.c (mark_target_live_regs): Make some vars unsigned.
2375         * sdbout.c: Use "unsigned int", not "unsigned".
2376         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
2377         (sdbout_source_line): Likewise.
2378         (sdbout_record_type_name): Remove "const" for NAME declaration.
2379         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
2380
2381 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
2382
2383         * calls.c (store_one_arg): Expand comment.
2384
2385 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2386
2387         * calls.c (store_one_arg): Make sure that the entire argument is
2388         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
2389
2390 2001-09-09  Richard Henderson  <rth@redhat.com>
2391
2392         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
2393
2394 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
2395
2396         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
2397
2398 2001-09-09  Richard Henderson  <rth@redhat.com>
2399
2400         * config/alpha/alpha.c (alpha_next_sequence_number): New.
2401         (alpha_this_literal_sequence_number): New.
2402         (alpha_this_gpdisp_sequence_number): New.
2403         (some_operand, input_operand): Add HIGH.
2404         (local_symbolic_operand): New.
2405         (alpha_encode_section_info): New.
2406         (alpha_legitimate_address_p): Allow LO_SUM.
2407         (alpha_legitimize_address): Generate HIGH+LO_SUM.
2408         (alpha_expand_mov): Likewise.
2409         (secondary_reload_class): Check memory_operand not general_operand
2410         for FP_REGS test.
2411         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
2412         (alpha_expand_unaligned_store): Likewise.
2413         (alpha_expand_unaligned_load_words): Likewise.
2414         (alpha_expand_unaligned_store_words): Likewise.
2415         (alpha_expand_block_clear): Likewise.
2416         (print_operand): Handle %#, %*, %H.
2417         (print_operand_address): Handle LO_SUM.
2418         (find_lo_sum): New.
2419         (alpha_does_function_need_gp): Use it.
2420         (alpha_expand_block_move): Fix signed compare warnings.
2421         (alpha_sa_mask, alpha_align_insns): Likewise.
2422         * config/alpha/alpha-protos.h: Update.
2423         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
2424         (MASK_EXPLICIT_RELOCS): New.
2425         (TARGET_SWITCHES): Add -mexplicit-relocs.
2426         (EXTRA_CONSTRAINT): Add 'T'.
2427         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
2428         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
2429         (ENCODE_SECTION_INFO): Out line.
2430         (REDO_SECTION_INFO_P): New.
2431         (STRIP_NAME_ENCODING): New.
2432         (ASM_OUTPUT_LABELREF): New.
2433         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
2434         (PREDICATE_CODES): Update.
2435         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
2436         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
2437         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
2438         builtin_setjmp_receiver_er, exception_receiver_1_er,
2439         call_value_osf_1_er): New patterns.
2440         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
2441         (movqi, movhi, movsi): Add explicit $31 base register to lda.
2442         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
2443         (FINAL_PRESCAN_INSN): New.
2444
2445 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
2446
2447         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
2448
2449 2001-09-08  Andreas Jaeger  <aj@suse.de>
2450
2451         * i386.h (TARGET_SWITCHES): Fix description.
2452
2453 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
2454
2455         * rs6000.c (num_insns_constant): Compute number of instructions
2456         more accurately.
2457
2458         * doc/install.texi: Explain AIX exception handling work-around.
2459         Update URL for AIX fixes.
2460
2461 2001-09-07  Jim Wilson  <wilson@redhat.com>
2462
2463         * alias.c (clear_reg_alias_info): New.
2464         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
2465         * rtl.h (clear_reg_alias_info): Declare.
2466
2467 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2468
2469         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
2470         available.
2471         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
2472         (m16m,edivm,emulm): Change declaration to match definition.
2473
2474 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
2475
2476         * reload.c (push_reload): Check for subreg_lowpart_p instead of
2477         SUBREG_BYTE being 0 when determining if the inner part of a subreg
2478         can be reloaded.
2479
2480 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2481
2482         * c-common.c (signed_or_unsigned_type): Handle machine mode types
2483         which have no corresponding C type.
2484         * fold_const.c (target_isinf,target_isnan,target_negative): Update
2485         the representation of 64-bit doubles to work with 64-bit ints.
2486
2487 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
2488
2489         * config/mips/mips.c (override_options): Do not override ISA when ABI
2490         specified if MIPS_CPU_STRING_DEFAULT was specified.
2491
2492 2001-09-07  Richard Henderson  <rth@redhat.com>
2493
2494         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
2495         (express_from_1): Wrap lines.
2496         * rtlanal.c (commutative_operand_precedence): Rename from
2497         operand_preference; export.
2498         * rtl.h: Declare it.
2499         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
2500         (simplify_binary_operation): Invoke simplify_plus_minus on
2501         (CONST (PLUS ...)) as well.
2502         (struct simplify_plus_minus_op_data): New.
2503         (simplify_plus_minus_op_data_cmp): New.
2504         (simplify_plus_minus): Use them.  Avoid infinite recursion with
2505         simplify_binary_operation wrt CONST.
2506
2507 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
2508
2509         * h8300-protos.h (general_operand_dst_push): Remove.
2510         * h8300.c (general_operand_dst_push): Likewise.
2511         * h8300.h (OK_FOR_T): Likewise.
2512         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
2513         * h8300.md (pushqi_h8300): New.
2514         (pushqi_h8300hs): Likewise.
2515         (pushqi): Likewise.
2516         (pushhi_h8300): Likewise.
2517         (pushhi_h8300hs): Likewise.
2518         (pushhi): Likewise.
2519
2520 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2521
2522         * genattrtab.c (attr_printf): First arg is unsigned.
2523         Clean up formatting of callers.
2524
2525 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
2526
2527         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
2528         registers.
2529
2530 2001-09-07  Andreas Jaeger  <aj@suse.de>
2531
2532         * i386.h (TARGET_SWITCHES): Fix descriptions.
2533
2534 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2535
2536         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
2537
2538 2001-09-06  Ira Ruben  <ira@apple.com>
2539
2540         Remove OP_IDENTIFIER.
2541         * tree.def (OP_IDENTIFIER): Remove.
2542         * tree.c (tree_node_kind enum): Remove op_id_kind.
2543         (tree_node_kind_names): Remove "op_identifiers".
2544         (make_node): Remove OP_IDENTIFIER test.
2545         (build_op_identifier): Removed because it isn't being used.
2546         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
2547         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
2548
2549 2001-09-06  Richard Henderson  <rth@redhat.com>
2550
2551         * simplify-rtx.c (simplify_binary_operation): Revert last change.
2552
2553 2001-09-06  Richard Henderson  <rth@redhat.com>
2554
2555         * simplify-rtx.c (simplify_binary_operation): Simplify contents
2556         of CONST.
2557
2558 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2559
2560         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
2561         number used for CR register.
2562
2563 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
2564                           Joern Rennecke (amylaar@cygnus.com)
2565
2566         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
2567         * h8300.c (initial_offset): Handle offset between RP and FP.
2568         (h8300_return_addr_rtx): New function.
2569         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
2570         return register.
2571         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
2572         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
2573         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
2574         (CAN_ELIMINATE, REGISTER_NAMES):
2575         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
2576
2577 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
2578
2579         Remove TYPE_NONCOPIED_PARTS.
2580         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
2581         (struct tree_type): Remove noncopied_parts.
2582         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
2583         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
2584         (fixed_type_p): Remove.
2585         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
2586         (expand_expr, MODIFY_EXPR): Likewise.
2587         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
2588         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
2589
2590 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
2591
2592         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
2593         compiler warnings.
2594         (mask64_operand): Likewise.
2595         (includes_rldic_lshift_p): Likewise.
2596         (includes_rldicr_lshift_p): Likewise.
2597
2598 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
2599
2600         * objc/objc-act.c (build_message_expr): If a class method cannot
2601         be found, do not issue a warning if a corresponding instance
2602         method exists in the root class.
2603
2604 2001-09-05  Richard Henderson  <rth@redhat.com>
2605
2606         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
2607
2608 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
2609
2610         * function.c (ggc_mark_struct_function): Mark f->outer.
2611         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
2612         * integrate.c (output_inline_function): ... not here.
2613
2614 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
2615
2616         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
2617
2618         * i386.c (size_cost): New static variable.
2619         (override_function): Use size_cost when -Os is specified.
2620
2621         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
2622         properly;  Use current_function_calls_eh_return.
2623         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
2624         use leave to avoid depdendancy chain.
2625
2626         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
2627         get BB loop_depth instead of computing it from LOOP notes.
2628
2629         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
2630
2631 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2632
2633         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2634         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2635         UNALIGNED_DOUBLE_INT_ASM_OP): Define
2636
2637 2001-09-05  Jeffrey A Law  (law@cygnus.com)
2638             Jason Merrill (jason@redhat.com)
2639
2640         * stor-layout.c (layout_type): Complain if an array's size can
2641         not be represented in a size_t.
2642
2643         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
2644
2645 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
2646
2647         * gcc.c: (process_command) Add parentheses around assignment
2648         used as truth value.
2649
2650 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
2651
2652         * config/mips/mips.c (save_restore_insns): Don't mark any register
2653         save slots as unchanging if current_function_calls_eh_return.
2654
2655 2001-09-05  Richard Henderson  <rth@redhat.com>
2656
2657         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
2658         * config/alpha/alpha-protos.h: Declare it.
2659         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
2660         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
2661         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
2662         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
2663         (REG_OK_FOR_BASE_P): Select one of the above.
2664
2665 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
2666
2667         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
2668         (crti.o): Prefix name of object file with $(T).
2669         (crtn.o): Likewise.
2670
2671 2001-09-05  David S. Miller  <davem@redhat.com>
2672
2673         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2674         * config/sparc/linux64.h: Likewise.
2675
2676 2001-09-05  Andreas Jaeger  <aj@suse.de>
2677
2678         * doc/invoke.texi (i386 Options): -mwide-multiply is not
2679         available anymore, remove the documentation.
2680         (i386 Options): Fix typo, cleanup index entries.
2681
2682         * prefix.c (concat): Remove, we can use the version from liberty.
2683
2684 2001-09-05  Richard Henderson  <rth@redhat.com>
2685
2686         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
2687         New functions split out of md file expanders.
2688         * config/alpha/alpha-protos.h: Declare them.
2689         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
2690
2691 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2692
2693         * cppmacro.c (funlike_invocation_p): No need to restore context.
2694
2695 2001-09-04  Richard Henderson  <rth@redhat.com>
2696
2697         * reload.c (push_reload): Export.
2698         * reload.h (push_reload): Declare it.
2699
2700         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
2701         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2702         * config/alpha/alpha.c (alpha_legitimize_address): New.
2703         (alpha_legitimize_reload_address): Likewise.
2704         * config/alpha/alpha-protos.h: Declare them.
2705
2706 2001-09-04  Stan Shebs  <shebs@apple.com>
2707
2708         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
2709         * config/darwin.c (machopic_stub_name): Account for internally
2710         generated lib calls such as memcpy.
2711
2712 2001-09-04  Richard Henderson  <rth@redhat.com>
2713
2714         * unwind.h (_UA_END_OF_STACK): New flag.
2715         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
2716
2717 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
2718
2719         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
2720
2721 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
2722
2723         * config/mips/mips.c (save_restore_insns): Change base_offset to
2724         fp_offset in second call to mips_emit_frame_related_store.
2725
2726 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
2727
2728         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
2729         sometimes be represented as a NOTE of type
2730         NOTE_INSN_DELETED_LABEL.
2731         (Insns): Document NOTE_INSN_DELETED_LABEL.
2732
2733 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
2734
2735         * c-common.h (tree_dump_index): Add more comments.
2736         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
2737         (dump_option_value_info): New struct.
2738         (dump_options): New array.
2739         (dump_switch_p): Parse switch options symbolically.
2740         * doc/invoke.texi (-fdump-ast): Rename to ...
2741         (-fdump-tree): ... here. Document that options are symbolic, and
2742         not all are applicable.
2743
2744 2001-09-04  David S. Miller  <davem@redhat.com>
2745
2746         * config/sparc/sparc.md (define_splits): Kill constraints.
2747
2748         Cleanup redundant and unused insn attributes.
2749         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
2750         binary, and move.  Mark ialu as default.
2751         (commented out define_function_unit "alu"): Kill.
2752         (define_attr "use_clobbered"): Kill.
2753         (whole file): Kill address insn type references.  Replace
2754         all unary/binary/move references with ialu.
2755         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
2756         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
2757         TYPE_IALU.
2758
2759         Simplify length insn attribute and make more judicious use
2760         of insn attribute defaulting.
2761         * config/sparc/sparc.md (all insns with length > one): Mark as
2762         insn type multi if real instructions, else use default if
2763         it is a forced splitter.
2764         (all insns with length == one): Use default insn length.
2765         (all insns of type ialu): Use default insn type.
2766
2767         Fix erroneous insn attribute settings.
2768         (addx): Set insn type to misc.
2769         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
2770         const_umulsidi3_sp64): Set insn type to imul.
2771
2772         Track SFmode vs DFmode insns according to UltraSPARC
2773         scheduling rules.
2774         * config/sparc/sparc.md ("fptype"): New attribute, default
2775         to "single".
2776         (all DFmode single insns): Mark as fptype "double".
2777
2778 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
2779
2780         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
2781
2782 2001-09-03  Richard Henderson  <rth@redhat.com>
2783
2784         * function.h (struct function): Add arg_pointer_save_area_init.
2785         * function.c (expand_function_end): Init arg_pointer_save_area.
2786         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
2787         when called from a nested function.
2788
2789 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
2790
2791         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
2792         is enabled.
2793
2794 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
2795
2796         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
2797
2798 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
2799
2800         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
2801         (emit_push_insn): Use specified padding direction when
2802         STACK_PUSH_CODE is POST_INC.
2803
2804         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
2805
2806 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2807
2808         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
2809
2810 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2811
2812         * cppinit.c (cpp_start_read): Free the imacros list as we
2813         traverse it.  Don't free the chains before returning.
2814         (_cpp_push_next_buffer): Only try pushing buffers if we've
2815         completed -imacros handling.
2816
2817 2001-08-31  Eric Christopher  <echristo@redhat.com>
2818
2819         * gcc.c (handle_braces): Add explaination for abort.
2820
2821 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
2822
2823         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
2824         move adjustment of bitpos instead.
2825
2826 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
2827
2828         * function.c: Remove all_functions.  Make outer_function_chain
2829         static.
2830         (init_function_start): Don't add new function structure to
2831         all_functions.
2832         (find_function_data, push_function_context_to,
2833         pop_function_context_from, put_var_into_stack,
2834         trampoline_address): Update for changed structure element names.
2835         (push_function_context_to): Disentangle.
2836         (free_after_compilation): Also free F.
2837         (expand_dummy_function_end): Don't free cfun here.
2838         (put_var_into_stack): Comment why we can't use find_function_data here.
2839         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
2840         (mark_function_chain): Split into maybe_mark_struct_function and
2841         ggc_mark_struct_function.  Export the latter.
2842         (init_function_once): Mark from cfun and outer_function_chain;
2843         not all_functions.
2844
2845         * function.h (struct function): Kill next_global.  Rename next
2846         to outer.  All users updated to match.
2847         (all_functions, outer_function_chain): Don't declare.
2848
2849         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
2850         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
2851         don't touch f->inlinable, after calling rest_of_compilation.
2852
2853         * tree.h: Forward-declare struct function.  Prototype
2854         ggc_mark_struct_function.
2855
2856 2001-08-31  Kazu Hirata  <kazu@hxi.com>
2857
2858         * config/h8300/h8300.md (*andorhi3): Fix typos.
2859
2860 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2861
2862         * calls.c (emit_library_call_value): Don't use a fixed
2863         argument after VA_CLOSE, i.e. out of scope in traditional C.
2864
2865         * emit-rtl.c (gen_rtvec): Likewise.
2866
2867 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2868
2869         * Makefile.in (c-pragma.o): Depend on output.h.
2870         (reorg.o): Depend on except.h.
2871
2872         * c-pragma.c: Include output.h.
2873
2874         * reorg.c: Include except.h.
2875
2876         * unwind-dw2.c: Call __builtin_alloca, not alloca.
2877
2878 2001-08-31  Richard Henderson  <rth@redhat.com>
2879
2880         * sched-deps.c (add_dependence): Don't elide dependancy if the
2881         conditional used by insn is modified in elem.
2882
2883 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
2884
2885         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
2886
2887 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
2888
2889         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
2890         dump_switch_p.
2891
2892 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
2893
2894         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
2895         function.
2896         (stormy16_asm_out_constructor): New function.
2897         (TARGET_ASM_CONSTRUCTOR): Define.
2898         (TARGET_ASM_DESTRUCTOR): Define.
2899
2900 2001-08-31  Andreas Jaeger  <aj@suse.de>
2901
2902         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
2903         * loop.c (add_label_notes): Likewise.
2904         * reload.c (find_reloads): Likewise.
2905         * config/sh/sh.c (machine_dependent_reorg): Likewise.
2906
2907 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
2908
2909         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
2910         code here.  Take _Unwind_{W,Sw}ord*.
2911         (read_encoded_value_with_base): Use them.
2912         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
2913         words.
2914         (extract_cie_info): Simplify read_?leb128 handling.
2915         (execute_stack_op, execute_cfa_program): Likewise.
2916         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
2917
2918 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
2919
2920         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
2921         the frame pointer to pop the stack if convenient.
2922
2923         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
2924         Don't use post-increment before combine.
2925         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
2926         a call-saved register.
2927
2928 2001-08-31  Andreas Jaeger  <aj@suse.de>
2929
2930         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
2931         code was correct.
2932
2933 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
2934
2935         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
2936         not DIV/MOD, of course.
2937
2938 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
2939
2940         * rtl.def: Undo my patch commited 2001-08-27.
2941
2942         * genattrtab.c: Ditto.
2943
2944         * rtl.h: Ditto.
2945
2946         * sched-int.h: Ditto.
2947
2948         * target-def.h: Ditto.
2949
2950         * target.h: Ditto.
2951
2952         * haifa-sched.c: Ditto.
2953
2954         * sched-rgn.c: Ditto.
2955
2956         * sched-vis.c: Ditto.
2957
2958         * Makefile.in: Ditto.
2959
2960         * doc/md.texi: Ditto.
2961
2962         * doc/tm.texi: Ditto.
2963
2964         * doc/contrib.texi: Ditto.
2965
2966         * doc/gcc.texi: Ditto.
2967
2968         * genattrtab.h: Remove it.
2969
2970         * genautomata.c: Remove it.
2971
2972         * genattr.c: Undo my patch and Richard Henderson's patch commited
2973         2001-08-27.
2974
2975 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
2976
2977         * config.gcc (h8300-*-elf*): New case.
2978         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
2979         (SUBTARGET_CPP_SPEC): Define.
2980         (EXTRA_SPECS): Define.
2981         (SUBTARGET_EXTRA_SPECS): Define.
2982         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
2983         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
2984
2985 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
2986
2987         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
2988         (LIB2FUNCS_EXTRA): Define.
2989         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
2990         config/h8300/fixunssfsi.c: New file.
2991
2992 2001-08-30  Kazu Hirata  <kazu@hxi.com>
2993
2994         * config/h8300/h8300.md (zero_extendqihi2): Changes to
2995         define_expand to accomodate target-specific attributes.
2996         (anonymous zero_extendqihi2 patterns): New.
2997
2998 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
2999
3000         * h8300.md (*andorhi3): New pattern.
3001
3002 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
3003
3004         * h8300.c (dosize): Fix test for "sub".
3005
3006 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
3007
3008         * c-typeck.c (pointer_diff): Try to eliminate common term before
3009         doing conversions.
3010
3011 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
3012
3013         * config/arm/arm.c (arm_compute_initial_elimination_offset):
3014         Account for the saves of the FP registers.
3015
3016         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
3017         (TEXT_SECTION_ASM_OP): Define.
3018         (INIT_SECTION_ASM_OP): Define.
3019         (FINI_SECTION_ASM_OP): Define.
3020         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
3021         (RDATA_SECTION_FUNCITON): Provide prototype.
3022
3023 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
3024
3025         * reload1.c (move2add_note_store): Correct typo checking for
3026         argument pushes.
3027
3028 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
3029
3030         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
3031         note should not be considered outside the libcall block.
3032
3033 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3034
3035         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
3036
3037 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3038
3039         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
3040
3041 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3042
3043         * config/h8300/h8300-protos.h: Add a prototype for
3044         emit_logical_op.
3045         * config/h8300/h8300.c (emit_logical_op): New.
3046         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
3047         (andsi3): Likewise.
3048         (iorhi3): Likewise.
3049         (iorsi3): Likewise.
3050         (xorhi3): Likewise.
3051         (xorsi3): Likewise.
3052
3053 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3054
3055         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
3056         comparison with rtx INTVAL.
3057         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
3058         expression.
3059         * pa.h (FUNCTION_ARG_SIZE): Likewise.
3060
3061 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3062
3063         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
3064         comment typos.
3065
3066 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3067
3068         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
3069         (reg n) to (mem (pre_dec (reg n))
3070         (anonymous movsi pattern): Likewise.
3071
3072 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3073
3074         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
3075
3076 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3077
3078         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
3079         several special constants.
3080
3081 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3082
3083         * config/h8300/lib1funcs.asm: Fix comment typos.
3084
3085 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3086
3087         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
3088         Fix format specifier warnings.
3089
3090         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
3091         inet_makeaddr, semctl): Prototype.
3092
3093         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
3094         (save_restore_insns): Use base_offset, not gp_offset.
3095
3096         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
3097         (ASM_OUTPUT_BYTE): Fix format specifier warning.
3098
3099 2001-08-29  Richard Henderson  <rth@redhat.com>
3100
3101         * bb-reorder.c (function_tail_eff_head): New.
3102         (record_effective_endpoints): Set it.
3103         (fixup_reorder_chain): Use it.
3104
3105 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3106
3107         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
3108
3109 2001-08-28  Dale Johannesen  <dalej@apple.com>
3110
3111         * config/darwin.c (machopic_function_base_name): Add const
3112         qualifier to a string.
3113         (darwin_encode_section_info): Ditto.
3114
3115 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3116
3117         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
3118         function definition.
3119
3120 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
3121
3122         * df.h (struct df): Add rts_order variable.
3123
3124         * df.c (df_visit_next_rts): New function.
3125         (df_visit_next): Renamed to df_visit_next_rc
3126         (df_analyse_1): Allocate/compute/free rts_order as well.
3127         (df_rd_global_compute): Use df_visit_next_rc instead of
3128         df_visit_next.
3129         (df_ru_global_compute): Use df_visit_next_rts instead of
3130         df_visit_next.
3131
3132         * flow.c (flow_reverse_top_sort_order_compute): New function.
3133
3134         * basic-block.h: Add prototype.
3135
3136 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
3137
3138         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
3139         blocks, the BB_REACHABLE is now set, rather than aux being
3140         non-NULL. Update the test to reflect this.
3141
3142 2001-08-28  Eric Christopher  <echristo@redhat.com>
3143
3144         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
3145         config/mips/crti.asm: Ditto.
3146
3147 2001-08-28  Eric Christopher <echristo@redhat.com>
3148             Richard Henderson <rth@redhat.com>
3149
3150         * c-pragma.h (add_weak): Move prototype from here...
3151         * output.h (add_weak): ... to here.
3152         * varasm.c (add_weak): Fix typo.
3153         * config/mips/crti.asm: New file.
3154         * config/mips/crtn.asm: Ditto.
3155         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
3156         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
3157         (INVOKE__main): Ditto.
3158         (INIT_SECTION_ASM_OP): New.
3159         (FINI_SECTION_ASM_OP): Ditto.
3160         (STARTFILE_SPEC): Add crti.
3161         (ENDFILE_SPEC): Add crtn.
3162         * config/mips/elf64.h: Same.
3163         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
3164         Remove.
3165         * config/mips/vxworks.h: Ditto.
3166         * config/mips/t-elf: Support crti and crtn.
3167
3168 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
3169
3170         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
3171         INSN_LIST.
3172
3173 2001-08-28  Richard Henderson  <rth@redhat.com>
3174
3175         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
3176         (one_cmplbi2 splitter): Remove redundant test.
3177
3178 2001-08-28  Dale Johannesen  <dalej@apple.com>
3179
3180         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
3181
3182 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
3183
3184         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
3185
3186 2001-08-28  Stan Shebs  <shebs@apple.com>
3187
3188         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
3189         (UNALIGNED_SHORT_ASM_OP): Define.
3190         (UNALIGNED_INT_ASM_OP): Define.
3191
3192 2001-08-28  Will Cohen  <wcohen@redhat.com>
3193
3194         * config/rs6000/rs6000.md (store_multiple): Correct RTL
3195         generation for first set.
3196
3197 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
3198
3199         * flow.c (redirect_edge_succ_nodup): Return new edge.
3200         (try_simplify_condjump): Use new edge.
3201         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
3202
3203         * cse.c (cse_basic_block): Skip note instructions.
3204
3205 2001-08-27  Richard Henderson  <rth@redhat.com>
3206
3207         * combine.c (combine_simplify_rtx): Don't reverse condition
3208         if there is no reverse for the condition.
3209         (simplify_comparison): Don't simplify subregs from INT to FP.
3210
3211         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
3212         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
3213         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
3214         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
3215         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
3216         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
3217
3218 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
3219
3220         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
3221         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
3222         (pushqi1): New.
3223         (adddi_dilshr32, adddi_dishl32): Only data register can be
3224         source for mem destination.
3225
3226         * expmed.c (store_bit_field): Ignore adjustment to bitpos
3227         and use bitnum to decide about register move.
3228
3229 2001-08-27  Richard Henderson  <rth@redhat.com>
3230
3231         * genattr.c (main): Emit state_t even when not doing scheduling.
3232
3233 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
3234             Richard Henderson  <rth@redhat.com>
3235
3236         * gcse.c (reg_first_set, reg_last_set): Replace with ...
3237         (reg_avail_info, current_bb): ... these.
3238         (oprs_unchanged_p, record_last_reg_set_info): Use them.
3239         (compute_hash_table): Likewise.
3240
3241 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
3242
3243         * flow.c (verify_flow_info): Use checksums to verify edges.
3244
3245 2001-08-27  Richard Henderson  <rth@redhat.com>
3246
3247         * genautomata.c (expand_automata): Always create a description.
3248
3249 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
3250
3251         * optabs.c (expand_binop): Correctly handle the carry in multiword
3252         add/subtract operations.
3253
3254 2001-08-27  Fred Fish  <fnf@be.com>
3255
3256         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
3257         __SIZE_TYPE__.
3258
3259 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
3260
3261         * reload.c (find_reloads_toplev): Back out this change:
3262
3263         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
3264
3265         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
3266         mem if the address is a mode_dependent_address_p.
3267
3268 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
3269
3270         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3271         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3272         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3273         RTL constructions.
3274
3275         * genattr.c (main): New variable num_insn_reservations.  Increase
3276         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
3277         pipeline hazard recognizer interface.
3278
3279         * genattrtab.h: New file.
3280
3281         * genattrtab.c: Include genattrtab.h.
3282         (attr_printf, check_attr_test, make_internal_attr,
3283         make_numeric_value): Move protypes into genattrtab.h.  Define them
3284         as external.
3285         (num_dfa_decls): New global variable.
3286         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3287         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3288         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3289         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
3290
3291         * genautomata.c: New file.
3292
3293         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3294
3295         * sched-int.h: (curr_state): Add the external definition for
3296         automaton pipeline interface.
3297         (haifa_insn_data): Add comments for members blockage and units.
3298
3299         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3300         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3301         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3302         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3303         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3304         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3305         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3306         macros.
3307         (TARGET_SCHED): Use the new macros.
3308
3309         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3310         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3311         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3312         dfa_bubble): New members in gcc_target.sched.
3313
3314         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3315         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3316         (insn_queue): Redefine it as pointer to array.
3317         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3318         INSN_QUEUE_SIZE.
3319         (max_insn_queue_index_macro_value): New variable.
3320         (curr_state, dfa_state_size, ready_try): New varaibles for
3321         automaton interface.
3322         (ready_element, ready_remove, max_issue): New function prototypes
3323         for automaton interface.
3324         (choose_ready): New function prototype.
3325         (insn_unit, blockage_range): Add comments.
3326         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3327         FUNCTION_UNITS_SIZE == 0.
3328         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3329         actual_hazard, potential_hazard): Add comments.
3330         (insn_cost): Use cost -1 as undefined value.  Remove
3331         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
3332         pipeline interface.
3333         (ready_element, ready_remove): New functions for automaton
3334         interface.
3335         (schedule_insn): Add new code for automaton pipeline interface.
3336         (queue_to_ready): Add new code for automaton pipeline interface.
3337         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3338         (debug_ready_list): Print newline when the queue is empty.
3339         (max_issue): New function for automaton pipeline interface.
3340         (choose_ready): New function.
3341         (schedule_block): Add new code for automaton pipeline interface.
3342         Print ready list before scheduling each insn.
3343         (sched_init): Add new code for automaton pipeline interface.
3344         Initiate insn cost by -1.
3345         (sched_finish): Free the current automaton state and finalize
3346         automaton pipeline interface.
3347
3348         * sched-rgn.c: Include target.h.
3349         (init_ready_list, new_ready, debug_dependencies): Add new code for
3350         automaton pipeline interface.
3351
3352         * sched-vis.c: Include target.h.
3353         (get_visual_tbl_length): Add code for automaton interface.
3354         (target_units, print_block_visualization):  Add comments.
3355
3356         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3357         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3358         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3359         (getruntime.o, genautomata.o): New entries.
3360         (genattrtab.o): Add new dependency file genattrtab.h.
3361         (genattrtab): Add new dependencies.  Link it with `libm.a'.
3362         (getruntime.o, hashtab.o): New entries for canadian cross.
3363
3364         * doc/md.texi: Description of automaton based model.
3365
3366         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3367         Add comments.
3368         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3369         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3370         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3371         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3372         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3373         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3374         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3375         hook descriptions.
3376         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3377         MAX_DFA_ISSUE_RATE): New macro descriptions.
3378
3379         * doc/contrib.texi: Add dfa based scheduler contribution.
3380
3381         * doc/gcc.texi: Add more information about genattrtab.
3382
3383 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
3384
3385         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
3386         an RTL basic block.
3387
3388 2001-08-27  Richard Henderson  <rth@redhat.com>
3389
3390         * function.c (expand_function_end): Don't init arg_pointer_save_area.
3391         (get_arg_pointer_save_area): New.  Create an init it here.
3392         (fix_lexical_addr): Use it.
3393         * function.h: Declare it.
3394         * builtins.c (expand_builtin_setjmp_receiver): Use it.
3395         * stmt.c (expand_nl_goto_receiver): Use it.
3396
3397 2001-08-27  Richard Henderson  <rth@redhat.com>
3398
3399         * final.c (final_scan_insn): Don't enter APP_ON mode for
3400         empty asm strings.
3401
3402         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
3403         alignment for assemble_integer for DW_EH_PE_aligned.
3404         * except.c (output_function_exception_table): Likewise.
3405
3406 2001-08-26  Andreas Jaeger  <aj@suse.de>
3407
3408         * c-tree.h: Add prototyp for c_sizeof_nowarn.
3409
3410 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
3411
3412         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
3413
3414 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
3415
3416         * config/rs6000/rs6000.c (mask_operand): Rewrite without
3417         bit-shifting loop.
3418         (mask64_operand): Likewise.
3419         (rldic_operand): Delete.
3420         (includes_lshift64_p): Delete.
3421         (includes_rldic_lshift_p): New function.
3422         (includes_rldicr_lshift_p): New function.
3423         (print_operand): Don't call rldic_operand in case 'W'.
3424         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
3425         (includes_lshift64_p): Remove.
3426         (includes_rldic_lshift_p): Declare.
3427         (includes_rldicr_lshift_p): Declare.
3428         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
3429         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
3430         Replace match_operand rldic_operand predicate with
3431         const_int_operand.  Replace includes_lshift64_p condition with
3432         includes_rldic_lshift_p.
3433         <ashldi3_internal 64 bit rldicr patterns>: New.
3434
3435 2001-08-27  Andreas Jaeger  <aj@suse.de>
3436
3437         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
3438         * errors.c: Likewise.
3439         * final.c: Likewise.
3440         * dwarf2asm.c: Likewise.
3441         * doprint.c (checkit): Likewise.
3442         * diagnostic.c: Likewise.
3443         * collect2.c: Likewise.
3444         * calls.c: Likewise.
3445         * c-semantics.c (build_stmt): Likewise.
3446         * c-format.c (status_warning): Likewise.
3447         * c-errors.c (pedwarn_c99): Likewise.
3448         * builtins.c (validate_arglist): Likewise.
3449         * config/pj/pj.c (pj_printf): Likewise.
3450         * fix-header.c: Likewise.
3451         * gcc.c: Likewise.
3452         * gcov.c (fnotice): Likewise.
3453         * gensupport.c (message_with_line): Likewise.
3454         * mips-tfile.c: Likewise.
3455         * protoize.c (notice): Likewise.
3456         * read-rtl.c (fatal_with_file_and_line): Likewise.
3457         * rtl-error.c: Likewise.
3458         * tradcpp.c: Likewise.
3459         * tree.c: Likewise.
3460         * cp/tree.c (build_min_nt): Likewise.
3461         (build_min): Likewise.
3462         * cp/lex.c: Likewise.
3463         * cp/errfn.c: Likewise.
3464         * cp/rtti.c (create_pseudo_type_info): Likewise.
3465
3466 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
3467
3468         * df.c (df_uses_record): Return after recording all uses
3469         in ASM_OPERANDS.
3470
3471 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
3472
3473         * df.c (df_insn_modify): Realloc the INSN table here, if
3474         necessary, here, too.
3475
3476 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
3477
3478         * config/mips/mips.c (mips_function_value): Handle complex return
3479         values.
3480
3481 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
3482
3483         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
3484         unshared.
3485         * reload.c (make_memloc): Copy result if it is still
3486         reg_equiv_memory_loc[regno] on return.
3487         (subst_reloads) [ENABLE_CHECKING]: Check that none of
3488         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
3489         reg_equiv_mem are modified by the substitutions.
3490
3491 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
3492
3493         * predict.c (expensive_function_p): New.
3494         * rtl.h (expensive_function_p): Declare.
3495         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
3496         (use_fast_prologue_epilogue): New static variable.
3497         (expand_prologue): Set it; emit short prologues if unset.
3498         (expand_epilogue): Likewise.
3499
3500 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
3501
3502         * config.gcc: Add stormy16-*-elf case.
3503         * config/stormy16/stormy-abi: New file.
3504         * config/stormy16/stormy16-lib2.c: New file.
3505         * config/stormy16/stormy16-protos.h: New file.
3506         * config/stormy16/stormy16.c: New file.
3507         * config/stormy16/stormy16.h: New file.
3508         * config/stormy16/stormy16.md: New file.
3509         * config/stormy16/t-stormy16: New file.
3510
3511 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
3512
3513         * i386.h (no-accumulate-outgoing-args): Use proper mask.
3514
3515 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
3516
3517         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
3518         descriptor members are pointer size, not constant 4.
3519         * config/rs6000/rs6000.md (define_splits): Remove more unused
3520         constraints.
3521
3522 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3523
3524         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3525
3526 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
3527
3528         * cp/rtti.c (VPARAMS): Fix parameter.
3529
3530 2001-08-24  Zack Weinberg  <zackw@panix.com>
3531
3532         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
3533         to zero.
3534         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
3535         to switch.
3536         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
3537         in if controlling use of insv.
3538         (extract_bit_field): Likewise, for extv and extzv.
3539
3540 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
3541
3542         * i386.md (movcc peep2): Fix load of 0.
3543
3544 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3545
3546         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
3547         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
3548
3549 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
3550
3551         * c-pragma.h: Move weak_syms and weak_decls...
3552         * varasm.c: ...here.  Now static.
3553         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
3554         depend on HANDLE_PRAGMA_WEAK.
3555
3556         * c-common.c (c_alignof, c_alignof_expr): Move here...
3557         * c-typeck.c: ...from here.
3558         * c-tree.h, c-common.h: Adjust.
3559
3560 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
3561
3562         * config/ia64/ia64.c (rws_update): If !pred, set write_count
3563         instead of incrementing it.
3564
3565         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
3566         asm ready, don't try to move them all into the same array element.
3567
3568 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
3569
3570         * function.c (thread_prologue_and_epilogue_insns): Avoid
3571         fallthru flag on edge to exit.
3572
3573         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
3574
3575         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
3576         dead edges.
3577
3578 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
3579
3580         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
3581         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
3582         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
3583         Remove prototype.
3584
3585 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
3586
3587         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
3588         replace "GNU CC" with "GCC".
3589
3590 2001-08-23  Richard Henderson  <rth@redhat.com>
3591
3592         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
3593         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
3594         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
3595         Need GR between FR and not GR_AND_FR.
3596         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
3597         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
3598         AR regs before GR regs.
3599         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
3600         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
3601         (REGISTER_MOVE_COST): Update.
3602         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
3603
3604 2001-08-23  Richard Henderson  <rth@redhat.com>
3605
3606         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
3607         a register class.
3608
3609 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
3610
3611         * reload1.c (emit_reload_insns): Don't look for notes
3612         on a NULL store_insn.
3613
3614 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3615
3616         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
3617         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
3618         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
3619         format specifier warnings.
3620         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
3621
3622 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
3623
3624         * config/i386/i386-protos.h: Correct declaration of
3625         i386_pe_asm_named_section.
3626
3627 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3628
3629         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
3630         variable i.
3631         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
3632
3633 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3634
3635         * cpperror.c (print_location): Don't show _Pragma.
3636         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
3637         and file change callback generation here.
3638         (stack_include_file): Update use of cpp_push_buffer.
3639         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
3640         (struct cpp_buffer): Remove type, pfile members.
3641         * cppinit.c (cpp_handle_option): Use free_chain.
3642         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
3643         (skip_escaped_newlines, get_effective_char, lex_percent): Take
3644         a cpp_reader rather than a cpp_buffer.
3645         (skip_escaped_newlines, get_effective_char, skip_block_comment,
3646         skip_line_comment, parse_string, lex_percent, lex_dot,
3647         _cpp_lex_token): Update accordingly.
3648         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
3649         generation here.
3650         (cpp_push_buffer): Update prototype.
3651         (run_directive): Update use of cpp_push_buffer.
3652         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
3653         handle_assertion): Update use of run_directive.
3654         * cpplib.h (enum cpp_buffer_type): Remove.
3655         (cpp_push_buffer): Update prototype.
3656         * fix-header.c (read_scan_file): Update.
3657
3658 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3659
3660         * gcc.c (struct prefix_list): Change prefix to const char *.
3661
3662 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3663
3664         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
3665
3666 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
3667
3668         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
3669         from a new MEM.
3670
3671         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
3672         a squeezable note.
3673         * rtl.h: Adjust.
3674         * ifcvt.c (dead_or_predicable): Adjust.
3675         * loop.c (find_and_verify_loops): Adjust.
3676         * stmt.c (expand_end_case): Adjust.
3677         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
3678         head and end insn pointers in the basic block, not just local copies.
3679         (merge_blocks_move_predecessor_nojumps): Likewise.
3680
3681 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
3682
3683         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
3684         bitmap.h, builtin-types.def, builtins.c, builtins.def,
3685         c-aux-info.c, c-common.c, c-common.def, c-common.h,
3686         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
3687         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
3688         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
3689         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
3690         conditions.h, config.gcc, configure.frag, configure.in,
3691         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
3692         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
3693         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
3694         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
3695         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
3696         emit-rtl.c, errors.c, errors.h, except.c, except.h,
3697         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
3698         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
3699         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
3700         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
3701         gencheck.c, gencodes.c, genconfig.c, genemit.c,
3702         genextract.c, genflags.c, gengenrtl.c, genmultilib,
3703         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
3704         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
3705         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
3706         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
3707         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
3708         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
3709         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
3710         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
3711         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
3712         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
3713         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
3714         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
3715         params.h, predict.c, predict.def, predict.h, prefix.c,
3716         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
3717         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
3718         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
3719         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
3720         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
3721         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
3722         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
3723         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
3724         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
3725         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
3726         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
3727         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
3728         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
3729         xcoffout.h: replace "GNU CC" with "GCC".
3730
3731 2001-08-21  Richard Henderson  <rth@redhat.com>
3732
3733         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
3734         (final_scan_insn): Consider jump tables data even if we have no
3735         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
3736         ADDR_VEC_ALIGN.
3737         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
3738         (ASM_OUTPUT_CASE_END): Remove.
3739         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
3740         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
3741         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
3742
3743 2001-08-21  Richard Henderson  <rth@redhat.com>
3744
3745         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
3746         at barrier insns.  Emit stop bits before barriers.
3747
3748         * flow.c (flow_find_cross_jump): Don't consider unconditional
3749         return insns for commoning.
3750
3751         * final.c (compute_alignments): Fix typo.
3752
3753         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
3754         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
3755         (store_bit_field): Use mode_for_extraction more places.
3756         (extract_bit_field): Likewise.
3757
3758 2001-08-21  Zack Weinberg  <zackw@panix.com>
3759
3760         * caller-save.c: Don't include insn-codes.h.
3761         (reg_save_code, reg_restore_code): Make arrays of int.
3762         All uses updated to match.
3763         (insert_save, insert_restore): No need to initialize "code"
3764         variable upon declaration.
3765         * Makefile.in: update dependencies; fix typo in clean rule.
3766
3767 2001-08-21  Richard Henderson  <rth@redhat.com>
3768
3769         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
3770         (merge_if_block): Handle fallout from same.
3771
3772 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3773
3774         * builtins.c (type_to_class): Fix typo in last change.
3775
3776 2001-08-21  Richard Henderson  <rth@redhat.com>
3777
3778         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
3779         ia64_asm_output_label.
3780
3781         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
3782         copy of gp while the real gp register contains garbage.
3783
3784 2001-08-21  Zack Weinberg  <zackw@panix.com>
3785
3786         * expmed.c (mode_for_extraction): New function.
3787         (store_bit_field, extract_bit_field): Use it.
3788         * expr.h: Prototype it and provide an enum for its first argument.
3789
3790         * combine.c, function.c, recog.c: Don't include insn-codes.h.
3791         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
3792         and digging through the insn_data tables.
3793         * Makefile.in: Update dependencies.
3794
3795 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3796
3797         * cppfiles.c (stack_include_file): line-map.c now handles include
3798         depth.
3799         (handle_missing_handler): Similarly.
3800         (_cpp_execute_include): Similarly.
3801         (_cpp_pop_file_buffer): Similarly.
3802         * cpphash.h (struct cpp_reader): Remove system_include_depth,
3803         buffer_stack_depth and include_depth.
3804         * cpplib.c (do_include_common): line-map.c now handles include depth.
3805         (cpp_push_buffer): Similarly.
3806         (_cpp_pop_buffer): Similarly.
3807         * cppmacro.c (builtin_macro): Update.
3808         * line-map.c (init_line_maps): Set depth.
3809         (add_line_map): Increment "used" earlier.  Update and use the
3810         include depth.
3811         (trace_include): Use the include depth.
3812         * line-map.h (struct line_maps): New member depth.
3813
3814 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3815
3816         * cppfiles.c (stack_include_file): Don't handle -H here.
3817         * cppinit.c (cpp_start_read): Set include tracing after
3818         cpp_post_options and after stacking the main file.
3819         * line-map.c (trace_include): New.
3820         (init_line_maps, add_line_map): Update.
3821         * line-map.h (struct line_maps): New member trace_includes.
3822
3823 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3824
3825         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
3826         * cppfiles.c (stack_include_file): Only stack a file if there
3827         is something to do.  Return a boolean indicating whether a
3828         buffer was stacked or not.
3829         (_cpp_execute_include): Similarly.
3830         (_cpp_read_file): Similarly.
3831         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
3832
3833 2001-08-21  Sam Steingold  <sds@gnu.org>
3834
3835         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
3836         (RECACHE): keep obufp_before_macroname up to date
3837
3838 2001-08-21  Zack Weinberg  <zackw@panix.com>
3839
3840         * stmt.c: Don't include insn-codes.h.
3841         (expand_end_case): Machine specific logic moved to expr.c.
3842         No need to worry about __builtin_classify_type.
3843         (check_for_full_enumeration_handling, emit_case_nodes):
3844         Kill #if 0 blocks.
3845
3846         * builtins.o (expand_builtin_classify_type): Split up so code
3847         can be shared with fold_builtin_classify_type.
3848         (type_to_class, fold_builtin_classify_type): New functions.
3849         (fold_builtins): Handle __builtin_classify_type.
3850
3851         * expr.c (do_tablejump): Now static.
3852         (case_values_threshold, try_casesi, try_tablejump): New;
3853         code mostly from stmt.c (expand_end_case).
3854         (expr.h): Update prototypes.
3855
3856         * Makefile.in (stmt.o): Update dependencies.
3857
3858 2001-08-21  Will Cohen  <wcohen@redhat.com>
3859
3860         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
3861         declaration of variable i.
3862         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
3863         declaration of variable i.
3864
3865 2001-08-21  Richard Henderson  <rth@redhat.com>
3866
3867         * crtstuff.c: Fix thinko last change.  Move list tails to start
3868         of CRT_END section.  Tidy ifdefs.
3869         (__EH_FRAME_BEGIN__): Always static for ELF.
3870         (__do_global_ctors_1): Rename from __frame_dummy.
3871         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
3872         name change; don't hide __EH_FRAME_BEGIN__.
3873
3874 2001-08-21  Richard Henderson  <rth@redhat.com>
3875
3876         * gdbinit.in: Move break on exit after break on fancy_abort.
3877
3878         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
3879         sized types.
3880
3881 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3882
3883         * cpphash.h (_cpp_push_next_buffer): New.
3884         * cppinit.c (do_includes): Remove.
3885         (push_include, free_chain, _cpp_push_next_buffer): New.
3886         (cpp_start_read): Use them to rework command line option handling.
3887         (cpp_handle_option): Combine handling of -include and -imacros.
3888         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
3889         appropriate.  Always insert missing \n at EOF.
3890         * cpplib.c (start_directive): Get the directive position right.
3891         * cppmain.c (cb_file_change): Always print the first line, unless
3892         preprocessed.
3893
3894 2001-08-20  Andreas Jaeger  <aj@suse.de>
3895
3896         * profile.c (compute_branch_probabilities): Remove extra new-line
3897         in error message.
3898         * flow.c (verify_flow_info): Likewise.
3899
3900 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
3901
3902         * basic-block.h (basic_block): Add new field 'flags'.
3903         (BB_REACHABLE): Define.
3904         (expunge_block): Declare.
3905         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
3906         (EXIT_BLOCK_PTR): Ditto.
3907         (expunge_block): Remove static declaration.
3908         (cleanup_cfg): Clear bb->aux on every basic block.
3909         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
3910         computing reachability.
3911         (delete_unreachable_blocks): Delete block b if b->flags has
3912         BB_REACHABLE unset.
3913
3914 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
3915
3916         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
3917
3918 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3919
3920         * sparc.c (sparc_variable_issue): Fix typo in last change.
3921
3922 2001-08-20  Richard Henderson  <rth@redhat.com>
3923
3924         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
3925
3926 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3927
3928         * pa.h (RETURN_IN_MEMORY): Improve comment.
3929
3930 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
3931
3932         * doc/invoke.texi (Profiling options): Clarify the interactions
3933         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
3934
3935 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
3936
3937         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
3938         command.
3939
3940 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3941
3942         * gcc.c (make_relative_prefix): Allocate a sufficiently large
3943         buffer.
3944
3945 2001-08-20  Richard Henderson  <rth@redhat.com>
3946
3947         * final.c (end_final): Fix typo last change.
3948
3949 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3950
3951         * cppinit.c (init_standard_includes): The returned buffer
3952         is already malloc-ed.
3953         * gcc.c (add_prefix): Similarly.
3954         * prefix.c (translate_name): Update to support clear buffer
3955         ownership rules.
3956         (update_path): Similarly.  Be sure to free any newly allocated
3957         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
3958         (tr): New function.
3959         * prefix.h (update_path): Update prototype and document.
3960         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
3961         up and update to new buffer ownership rules.
3962         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
3963
3964 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
3965
3966         * final.c (compute_alignments): New function.
3967         (init_insn_lengths): Do not care label_align.
3968         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
3969         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
3970         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
3971         (shorted_branches): Realloc label_align array; do
3972         not call init_insn_lengths; Do not care about loop alignments.
3973         * output.h (compute_alignments): Declare.
3974         * toplev.c (rest_of_compilation): Call compute_alignments.
3975         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
3976
3977         * predict.c (block_info_def): Add npredecesors, remove nvisited;
3978         change visited to tovisit.
3979         (propagate_freq): Use faster traversing algorithm.
3980         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
3981         to tovisit; reverse meaning.
3982
3983         * predict.c (struct block_info_def): Remove nvisited.
3984         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
3985         (estimate_bb_frequencies): Call mark_dfs_back_edges.
3986
3987 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
3988
3989         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
3990         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
3991         (TARGET_FUSED_MADD): New.
3992         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
3993         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
3994         the multiply-add instructions.
3995
3996 2001-08-19  Richard Henderson  <rth@redhat.com>
3997
3998         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
3999         is aligned to pointer size.
4000
4001 2001-08-19  Richard Henderson  <rth@redhat.com>
4002
4003         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
4004         display markers during final schedule.
4005
4006 2001-08-19  Richard Henderson  <rth@redhat.com>
4007
4008         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
4009
4010 2001-08-19  Richard Henderson  <rth@redhat.com>
4011
4012         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
4013         in the same string.
4014         (ASM_NAME_TO_STRING): Remove.
4015         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
4016         in the same string.  Remove support for expressions.
4017
4018 2001-08-19  Richard Henderson  <rth@redhat.com>
4019
4020         * config/i386/i386.md (tablejump): Make an expander; handle
4021         pic relative addressing here.
4022         (tablejump_1): Rename from tablejump_pic.
4023         (casesi): Remove.
4024
4025 2001-08-19  Richard Henderson  <rth@redhat.com>
4026
4027         * regclass.c (fix_register): Fix typo.
4028
4029 2001-08-18  Richard Henderson  <rth@redhat.com>
4030
4031         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
4032         (struct _Unwind_Context): Expand br_loc to hold it.
4033         (uw_frame_state_for): Handle leaf functions better.
4034         (uw_update_reg_address): Update for br_loc change.
4035
4036 2001-08-18  Richard Henderson  <rth@redhat.com>
4037
4038         * crtstuff.c: Move list heads before code that uses them.
4039         (__JCR_LIST__): Remove initial null.
4040         (frame_dummy, __frame_dummy): Do java registration here ...
4041         (__do_global_ctors_aux): ... not here.
4042
4043         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
4044         (__do_global_dtors_aux): Update to match.
4045         (__JCR_LIST__, __do_jv_register_classes): New.
4046         (.init): Call it.
4047         * config/ia64/crtend.asm (__JCR_END__): New.
4048         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
4049         instead of an indirect LTOFF22 reloc.
4050
4051 2001-08-18  Richard Henderson  <rth@redhat.com>
4052
4053         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
4054         * regclass.c (init_reg_sets_1): Fix typo.
4055         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
4056         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
4057         (ia64_compute_frame_size): Make ar.unat live when in use.
4058         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
4059         for ar.pfs; remove ar.unat handling.
4060         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
4061         call-saved.
4062         (PREDICATE_CODES): Add ar_pfs_reg_operand.
4063         * config/ia64/ia64-protos.h: Update decls.
4064         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
4065         (sibcall_pic): Likewise.
4066
4067 2001-08-18  Richard Henderson  <rth@redhat.com>
4068
4069         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
4070         pred_rel_mutex when searching for insn_group_barrier.
4071         * config/ia64/ia64.md (cycle_display): Combine the expander
4072         and insn patterns.
4073
4074         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
4075         bit before asm as needed.
4076
4077 2001-08-18  Richard Henderson  <rth@redhat.com>
4078
4079         * timevar.def (TV_MACH_DEP): New.
4080         * toplev.c (rest_of_compilation): Use it.
4081         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
4082
4083 2001-08-18  Zack Weinberg  <zackw@panix.com>
4084
4085         * unwind-dw2.c (execute_stack_op): Add default aborts to
4086         the inner switches to prevent warnings.
4087
4088 2001-08-18  Richard Henderson  <rth@redhat.com>
4089
4090         * timevar.h (struct timevar_time_def): Change element type to float.
4091         (ticks_to_msec, clocks_to_msec): Likewise.
4092         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
4093         (get_time): Likewise.
4094         (timevar_print): Adjust zero check and printing to match.
4095
4096 2001-08-18  Zack Weinberg  <zackw@panix.com>
4097
4098         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
4099         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
4100         Eliminate overfull or underfull hboxes.
4101
4102 2001-08-18  Zack Weinberg  <zackw@panix.com>
4103
4104         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
4105
4106 2001-08-18  Zack Weinberg  <zackw@panix.com>
4107
4108         * haifa-sched.c: Convert to target hooks.  Macros replaced
4109         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
4110         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
4111         MD_SCHED_FINISH, and HAVE_cycle_display.
4112         * target-def.h (TARGET_SCHED_ADJUST_COST,
4113         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
4114         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
4115         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
4116         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
4117         New hook #defines to be overridden.
4118         (TARGET_SCHED): Bring them all together.
4119         (TARGET_INITIALIZER): Update.
4120         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
4121         instead of 'struct rtx_def *' throughout.
4122         (struct sched): New set of hooks for the scheduler.
4123         * Makefile.in (haifa-sched.o): Depend on target.h.
4124         * doc/tm.texi: Document the new scheduler hooks, together in
4125         their own section, instead of scattered around.
4126         Fix a bunch of underfull/overfull hboxes.
4127
4128         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
4129         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
4130         sparc.h: Don't define any of the old scheduler macros.
4131
4132         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
4133         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
4134         sparc.c: Create hook functions from code extracted from
4135         corresponding target header, or make existing hooks static, as
4136         appropriate.  Set the appropriate entries in targetm.
4137
4138         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
4139         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
4140         rs6000-protos.h, s390-protos.h, sparc-protos.h:
4141         Remove prototypes for functions which are now static.
4142
4143         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
4144         related gunk; the Haifa scheduler is now the only choice.
4145
4146 2001-08-18  Zack Weinberg  <zackw@panix.com>
4147
4148         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
4149         * genopinit.c: Put floating point divide insns in sdiv_optab.
4150         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
4151         * config/gofast.h, config/c4x/c4x.h,
4152         config/ia64/hpux_longdouble.h, config/mips/mips.h,
4153         config/pa/long_double.h, config/rs6000/sysv4.h,
4154         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
4155         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
4156         (init_optabs): Use init_optabv for overflow-trapping optabs.
4157         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
4158         cmp_optab RTX codes so have_insn_for can find them.
4159
4160         * optabs.c (expand_simple_binop, expand_simple_unop,
4161         have_insn_for, gen_sub3_insn): New interfaces.
4162         * expr.h: Prototype new functions.
4163         (enum optab_methods): Move here from optabs.h.
4164
4165         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
4166         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
4167         Use new functions instead of working directly with optabs.
4168         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
4169         unroll.c: Don't include optabs.h.
4170         * caller-save.c, combine.c, function.c, stmt.c: Just include
4171         insn-codes.h, not optabs.h.
4172         * Makefile.in: Update dependencies.
4173
4174         * combine.c (make_compound_operation, simplify_comparison):
4175         Fix typos testing for this or that instruction.
4176
4177 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
4178
4179         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
4180         generating libgcc.a.
4181
4182 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4183
4184         * except.c (TYPE_HASH): Delete.
4185
4186         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
4187         HOST_WIDE_INT.
4188
4189         * tree.c (TYPE_HASH): Delete.
4190
4191         * tree.h (TYPE_HASH): Define.
4192
4193 2001-08-18  Graham Stott  <grahams@redhat.com>
4194
4195         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
4196         define_split.
4197         (adddi3_internal_2+2): Likewise.
4198         (eh_set_lr_di+1): Likewise.
4199
4200 2001-08-17  Richard Henderson  <rth@redhat.com>
4201
4202         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4203         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
4204         * dwarf2asm.c: ... here.
4205         * dwarfout.c: Remove them.
4206
4207         * varasm.c (assemble_integer): Add align parameter.
4208         (assemble_real, output_constant, output_constructor): Likewise.
4209         * output.h: Update decls.
4210         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
4211         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
4212         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
4213         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
4214         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
4215         Update all callers.
4216
4217         * final.c (end_final): Abort profile block generation if we
4218         havn't layed it out properly.
4219         * output.h (assemble_eh_integer): Remove stale decl.
4220         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
4221         (min_align): New.
4222         (assemble_integer): Handle unaligned data.
4223         (assemble_real): Abort on unaligned data.
4224         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
4225         anything useful.
4226         (default_dtor_section_asm_out_destructor): Use assemble_align.
4227         (default_named_section_asm_out_constructor): Likewise.
4228         (default_ctor_section_asm_out_constructor): Likewise.
4229         * config/darwin.c (machopic_asm_out_constructor): Likewise.
4230         (machopic_asm_out_destructor): Likewise.
4231         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
4232         (nextstep_asm_out_destructor): Likewise.
4233         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
4234         (vms_asm_out_destructor): Likewise.
4235
4236 2001-08-17  Richard Henderson  <rth@redhat.com>
4237
4238         * config/mips/iris6.h (TARGET_IRIX6): New.
4239         (current_section_name, current_section_flags): New.
4240         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
4241         (MAX_OFILE_ALIGNMENT): New.
4242         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
4243         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
4244         (copy_file_data): Split out from
4245         (mips_asm_file_end): ... here.
4246         (mips_asm_file_start): Remove extra .section directive.  Use
4247         tmpfile instead of mips_make_temp_file.
4248         (mips_unique_section): Use const char * as needed for warnings.
4249         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
4250         re-add align parameter.
4251         (iris6_asm_named_section): New.
4252         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
4253         (iris6_asm_output_align, iris6_section_align_1): New.
4254         (iris6_asm_file_start, iris6_asm_file_end): New.
4255         * config/mips/mips-protos.h: Update decls.
4256
4257 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
4258
4259         * doc/install.texi (Install GCC): Add links to build status pages.
4260         (Specific): Ditto.
4261         (Final install): Ditto; request updates for specific info
4262
4263 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4264
4265         * cpperror.c (print_location):  Don't take a file name; use the
4266         line map instead.
4267         (_cpp_begin_message): Similarly.
4268         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
4269         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
4270         (cpp_pedwarn_with_file_and_line): Remove.
4271         * cppfiles.c (stack_include_file): Update; set filename to stdin
4272         here when appropriate.
4273         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
4274         (_cpp_begin_message): Don't take a file name.
4275         * cppinit.c: Add comment.
4276         * cpplex.c: Fix end-of-directive indicator.
4277         * cpplib.c: Don't include intl.h.
4278         (run_directive, do_diagnostic): Update.
4279         (do_line): Update to not use nominal_fname.
4280         (cpp_push_buffer): Don't take a filename.
4281         * cpplib.h (struct ht): Remove.
4282         (cpp_push_buffer): Don't take a filename.
4283         (cpp_pedwarn_with_file_and_line): Remove.
4284         * cppmacro.c (struct cpp_macro): Remove file.
4285         (builtin_macro): Update.
4286         (_cpp_create_definition): Update.
4287         * cppmain.c: Correct comment.
4288         * fix-header.c (read_scan_file): Update.
4289
4290 2001-08-17  Kazu Hirata  <kazu@hxi.com>
4291
4292         * sbitmap.c: Fix comment formatting.
4293         * sched-deps.c: Likewise.
4294         * sibcall.c: Likewise.
4295         * simplify-rtx.c: Likewise.
4296         * ssa.c: Likewise.
4297         * ssa-ccp.c: Likewise.
4298         * stor-layout.c: Likewise.
4299         * timevar.c: Likewise.
4300         * toplev.c: Likewise.
4301         * unwind-dw2.c: Likewise.
4302         * unwind-dw2-fde.c: Likewise.
4303         * varasm.c: Likewise.
4304
4305 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4306
4307         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
4308         or larger than an integer in memory.
4309
4310 2001-08-17  Zack Weinberg  <zackw@panix.com>
4311
4312         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
4313         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
4314         * rtl.h: Don't forward-declare union tree_node here.  Don't
4315         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
4316         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
4317         and tree respectively.
4318         * tree.h: Don't forward-declare struct rtx_def here.  Don't
4319         typedef tree here.  Change all uses of struct rtx_def *,
4320         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
4321         and tree respectively.
4322
4323 2001-08-17  Richard Henderson  <rth@redhat.com>
4324
4325         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
4326         config/mips/openbsd.h: Fix typos last change.
4327
4328 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4329
4330         * doc/invoke.texi (Optimize Options): The default for
4331         -finline-limit is 600.
4332
4333 2001-08-17  Richard Henderson  <rth@redhat.com>
4334
4335         * varasm.c (text_section): Allow TEXT_SECTION to override the
4336         printing of TEXT_SECTION_ASM_OP.
4337         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
4338         (DATA_SECTION, BSS_SECTION): Remove.
4339         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
4340         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
4341         Rename from s/_NAME//.
4342         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
4343         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
4344         (TEXT_SECTION): ... here.  New.
4345         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
4346         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
4347         * config/mips/openbsd.h: Likewise.
4348         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
4349         (mips_asm_file_end): Likewise test.
4350         (mips_output_function_epilogue): Likewise.  Switch back to data
4351         section after emitting the function.
4352
4353         * doc/tm.texi (Sections): Document TEXT_SECTION.
4354
4355 2001-08-17  Richard Henderson  <rth@redhat.com>
4356
4357         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
4358         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
4359
4360 2001-08-17  Richard Henderson  <rth@redhat.com>
4361
4362         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
4363         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
4364         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
4365         Add aligned attribute.
4366
4367 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
4368
4369         * config/sh/sh.md: Add modes to unspecs in first insn to match
4370         those in the second.
4371
4372         * Makefile.in: Fix collect2 copy for Cygwin.
4373
4374 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
4375
4376         Install the proper patch.
4377         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
4378         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
4379         (expand_function_start): Likewise.
4380         * stmt.c (expand_decl): Likewise.
4381         * varasm.c (make_decl_rtx): Likewise.
4382
4383 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
4384
4385         * final.c: Undo my previous accidental checkin.
4386         * output.h: Likewise.
4387         * tm.texi: Likewise.
4388
4389 2001-08-16  Richard Henderson  <rth@redhat.com>
4390
4391         * varasm.c (named_section_flags): Remove align parameter.
4392         * varasm.c, dwarf2out.c: Update all callers.
4393         * output.h: Update prototypes.
4394
4395         * target.h (target.asm_out.named_section): Remove align parameter.
4396         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
4397         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
4398         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
4399         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
4400         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
4401
4402         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
4403         (get_named_section_flags, set_named_section_flags): New.
4404         (named_section_flags): Use them.
4405         (named_section): Do decl vs section flags check here...
4406         (default_section_type_flags): ... not here.
4407         (init_varasm_once): Create in_named_htab.
4408         (resolve_unique_section): Mark reloc unused.
4409
4410 2001-08-16  Richard Henderson  <rth@redhat.com>
4411
4412         * varasm.c (force_const_mem): Keep pool alignment in bits.
4413         (output_constant_pool): Use assemble_align.
4414
4415 2001-08-16  Zack Weinberg  <zackw@panix.com>
4416
4417         * doc/tm.texi: Remove extra @table command.
4418
4419 2001-08-16  Zack Weinberg  <zackw@panix.com>
4420
4421         * final.c (shorten_branches): Clear the end of the label_align
4422         array only if we made it larger.  Break up messy expressions
4423         for clarity.
4424
4425         * diagnostic.c (internal_error): Check for error recursion
4426         before doing ICE suppression.
4427
4428         * timevar.c: Timing variables now count in milliseconds.
4429         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
4430         (get_time): Not here.
4431         (timevar_print): Don't print any timer whose user, cpu, and
4432         wall times are all zero as displayed.
4433         * timevar.h: Update comment aboout units.  Make timevar
4434         counters unsigned.
4435
4436 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
4437
4438         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
4439         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
4440         (expand_function_start): Likewise.
4441         * stmt.c (expand_decl): Likewise.
4442         * varasm.c (make_decl_rtx): Likewise.
4443
4444 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
4445
4446         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
4447         (finalize_record_size): Don't set TYPE_USER_ALIGN.
4448
4449 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4450
4451         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
4452         variables.
4453
4454 2001-08-16  Andreas Jaeger  <aj@suse.de>
4455
4456         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
4457         prototype.
4458
4459 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
4460
4461         * rtl.h (only_sets_cc0_p): New prototype.
4462         * jump.c (sets_cc0_p): Handle INSN.
4463         (only_sets_cc0_p): New function.
4464         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
4465         (tidy_fallthru_edge): Likewise.
4466         * integrate.c (copy_insn_list): Likewise.
4467         * unroll.c (unroll_loop): Likewise.
4468         (copy_loop_body): Likewise.
4469
4470 2001-08-15  Jason Eckhardt  <jle@redhat.com>
4471
4472         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
4473
4474 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
4475
4476         * predict.c (struct block_info_def): Remove nvisited.
4477         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
4478         (estimate_bb_frequencies): Call mark_dfs_back_edges.
4479
4480         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
4481         (ix86_adjust_cost): Teach scheduler that latency to load operand can
4482         be masked.
4483
4484 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
4485
4486         * predict.def: Update hitrates.
4487
4488 2001-08-15  Richard Henderson  <rth@redhat.com>
4489
4490         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
4491
4492 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
4493
4494         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
4495         note from its associated jump.
4496
4497 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
4498
4499         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
4500         also on 64-bit s390x targets.
4501
4502 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
4503
4504         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
4505         function.
4506         (arm_expand_prologue): Handled nested functions which take a
4507         variable argument list.
4508         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
4509         macro with an invocation of
4510         arm_compute_initial_elimination_offset.
4511         * config/arm/arm-protos.h: Prototype
4512         arm_compute_initial_elimination_offset.
4513
4514 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4515
4516         * doc/install.texi (Specific, avr): Fix markup.
4517         (Specific, c4x): Ditto.
4518
4519 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4520
4521         * predict.c (dump_prediction): Change `bool' parameter to `int'.
4522
4523 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
4524
4525         * Makefile.in (OBJS): Add rtl-error.o
4526         (rtl-error.o): New rule.
4527         (diagnostic.o): Adjust dependency.
4528         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
4529         error_for_asm, _fatal_insn, _fatal_insn_not_found,
4530         warning_for_asm): Move to...
4531         rtl-error.c: ...here.  New file.
4532
4533 2001-08-14  Richard Henderson  <rth@redhat.com>
4534
4535         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
4536         if USING_SJLJ_EXCEPTIONS.
4537
4538 2001-08-14  Steve Ellcey <sje@cup.hp.com>
4539
4540         * tlink.c (scan_linker_output): Check string for unsatisfied in
4541         addition to undefined and unresolved.
4542
4543 2001-08-14  Graham Stott  <grahams@redhat.com>
4544
4545         * libgcc2.c (*): Replace EH_FRAME_SECTION with
4546         EH_FRAME_SECTION_NAME.
4547
4548 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4549
4550         * genattrtab.c (simplify_test_exp_in_temp): New function.
4551         (simplify_test_exp): Avoid explicit use of temporary obstack.
4552         (simplify_cond, insert_right_side, evaluate_eq_attr,
4553         simplify_and_tree, simplify_or_tree, eliminate_known_true):
4554         Use simplify_test_exp_in_temp.
4555         (optimize_attrs): Iterate until expression stabilizes.
4556
4557 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
4558
4559         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
4560         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
4561
4562 2001-08-13  Richard Henderson  <rth@redhat.com>
4563
4564         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
4565         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
4566         * config/arm/conix-elf.h: Likewise.
4567
4568 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
4569
4570         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
4571         in gcc.c.
4572         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
4573
4574         * gcse.c (hash_scan_set): Expressions that are set as part of
4575         jump instructions are not available.
4576
4577 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
4578
4579         * config/s390/s390.c (print_operand, s390_function_prologue,
4580         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
4581
4582 2001-08-13  Richard Henderson  <rth@redhat.com>
4583
4584         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
4585         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
4586         * doc/tm.texi (Exception Region Output): Document it.
4587
4588 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
4589
4590         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
4591         DWARF2 instead of stabs by default.
4592
4593 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
4594
4595         * config/rs6000/rs6000.c: Include optabs.h.
4596
4597 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
4598
4599         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
4600         save/restore routines.
4601         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
4602
4603 2001-08-13  Andreas Jaeger  <aj@suse.de>
4604
4605         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
4606         the english is correct.
4607
4608 2001-08-13  Zack Weinberg  <zackw@panix.com>
4609
4610         * expr.h: Split out optab- and libfunc-related code to...
4611         * optabs.h, libfuncs.h: ... these new headers.
4612
4613         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
4614         (OPTABS_H): New.
4615         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
4616         dependencies.
4617         * mkconfig.sh: Don't include insn-codes.h from config.h.
4618
4619         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
4620         enum insn_code is available.  Move reload_in_optab and
4621         reload_out_optab array declarations to optabs.h.
4622         * regmove.c (gen_add3_insn): Move to optabs.c, export from
4623         there, prototype in expr.h.
4624         * gencodes.c: Cleanup: zap global variables, don't use
4625         printf where puts will do, don't bother defining MAX_INSN_CODE
4626         which nothing uses, let CODE_FOR_nothing get its value implicitly.
4627
4628         * genemit.c, genopinit.c: Include optabs.h in generated file.
4629         * genoutput.c: Include insn-codes.h in generated file.
4630         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
4631         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
4632         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
4633         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
4634         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
4635         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
4636         Include optabs.h.
4637         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
4638         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
4639         config/m88k/m88k.c, config/sparc/sparc.c:
4640         Include libfuncs.h.
4641         * reload.c: Include expr.h and optabs.h before reload.h.
4642         * config/alpha/alpha.c: Include tree.h before reload.h.
4643         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
4644         and reload.h in that order.
4645         * config/sparc/sparc.c: Include debug.h.
4646         * recog.c: Include insn-codes.h.
4647
4648 2001-08-13  Andreas Jaeger  <aj@suse.de>
4649
4650         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
4651         s390*linux.
4652
4653 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4654
4655         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
4656         * gcc.c (init_spec): Fix typo in comment.
4657         * varasm.c (data_section): Fix typo in comment.
4658
4659 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
4660
4661         * predict.c (dump_prediction): New argument "USED".
4662         (combine_predictions_for_insn): Determine the used heuristics,
4663         output the case no heuristic applied.
4664         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
4665
4666 2001-08-13  Andreas Jaeger  <aj@suse.de>
4667
4668         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
4669         register %rip.
4670
4671 2001-08-13  Kazu Hirata  <kazu@hxi.com>
4672
4673         * jump.c: Fix formatting.
4674
4675 2001-08-13  Kazu Hirata  <kazu@hxi.com>
4676
4677         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
4678         length.
4679
4680 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
4681
4682         * loop.c (check_dbra_loop): Use condjump_label to compute
4683         jump_label.
4684
4685         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
4686         to better document the files they're in.
4687
4688 2001-08-12  Zack Weinberg  <zackw@panix.com>
4689
4690         * recog.h (struct insn_operand_data): Shrink 'mode' field
4691         to 16 bits.
4692
4693 2001-08-12  Kazu Hirata  <kazu@hxi.com>
4694
4695         * gcc.c: Fix comment formatting.
4696         * gccspec.c: Likewise.
4697         * gcov.c: Likewise.
4698         * gcse.c: Likewise.
4699         * genemit.c: Likewise.
4700         * gengenrtl.c: Likewise.
4701         * genrecog.c: Likewise.
4702         * gensupport.c: Likewise.
4703         * ggc-page.c: Likewise.
4704         * global.c: Likewise.
4705         * graph.c: Likewise.
4706         * ifcvt.c: Likewise.
4707         * integrate.c: Likewise.
4708         * lcm.c: Likewise.
4709         * libgcc2.c: Likewise.
4710         * loop.c: Likewise.
4711         * mbchar.c: Likewise.
4712         * optabs.c: Likewise.
4713         * predict.c: Likewise.
4714         * prefix.c: Likewise.
4715         * profile.c: Likewise.
4716         * protoize.c: Likewise.
4717         * real.c: Likewise.
4718         * recog.c: Likewise.
4719         * regclass.c: Likewise.
4720         * regmove.c: Likewise.
4721         * reg-stack.c: Likewise.
4722         * reload1.c: Likewise.
4723         * resource.c: Likewise.
4724         * rtlanal.c: Likewise.
4725         * rtl.c: Likewise.
4726
4727 2001-08-12  Kazu Hirata  <kazu@hxi.com>
4728
4729         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
4730         a tree representing a constant is passed to the macro.
4731
4732 2001-08-12  Richard Henderson  <rth@redhat.com>
4733
4734         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
4735         (rs6000_elf_asm_out_destructor): New.
4736         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
4737         (DTORS_SECTION_ASM_OP): Remove.
4738         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4739         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
4740
4741 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
4742
4743         Revert:
4744         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4745         * gcc.c (set_collect_gcc_options): New function, split out from
4746         main.
4747         Ignore elided switches.
4748         (do_spec_1): Invoke before executing command.
4749         (set_input): Export.
4750         Move declaration ...
4751         * gcc.h (set_input): ... here.
4752         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
4753         file.
4754
4755 2001-08-12  Richard Henderson  <rth@redhat.com>
4756
4757         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
4758         thinko wrt TARGET_RELOCATABLE.
4759
4760 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4761
4762         * fix-header.c (cb_file_change): Update prototype.
4763
4764 2001-08-11  Zack Weinberg  <zackw@panix.com>
4765
4766         * toplev.c (set_float_handler): Make static.
4767         * toplev.h: Don't prototype set_float_handler.
4768
4769         * simplify-rtx.c: Don't include setjmp.h.
4770         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
4771         New functions.
4772         (simplify_unary_operation, simplify_binary_operation): Use them,
4773         via do_float_handler.
4774
4775         * fold-const.c: Don't include setjmp.h.
4776         (exact_real_inverse_1): New function.
4777         (exact_real_inverse): Use it, via do_float_handler.
4778
4779         * varasm.c: Don't include setjmp.h.
4780         (assemble_real_1): New function.
4781         (assemble_real): Use it, via do_float_handler.
4782         Call internal_error if we get a trap here.
4783
4784         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
4785         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
4786
4787 2001-08-11  Zack Weinberg  <zackw@panix.com>
4788
4789         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
4790         STACK_BOUNDARY if not already defined.
4791
4792         * calls.c, function.c, reload1.c, explow.c: Don't default
4793         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
4794         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
4795
4796         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
4797         to run-time test.
4798
4799         * doc/tm.texi: Document that STACK_BOUNDARY is required;
4800         clarify difference between it and PREFERRED_STACK_BOUNDARY.
4801
4802 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4803
4804         * cppmacro.c (enter_macro_context): Push macro expansions even
4805         if empty.
4806
4807 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4808
4809         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
4810         (rs6000_elf_section_type_flags): Actually return a value.
4811
4812 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
4813
4814         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
4815         Clean up code: add missing comments and prototypes, fix warnings,
4816         remove obsolete code, fix spacing to conform to coding style.
4817
4818 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
4819
4820         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
4821         and TARGET_ASM_CLOSE_PAREN.
4822         (regclass_map): CC register belongs to class NO_REGS.
4823         (legitimize_pic_address): Don't generate unnecessary moves
4824         (to avoid confusing loop optimization).
4825         (check_and_change_labels): Replace jump_long by indirect_jump.
4826         (s390_final_chunkify): Don't start a new literal pool on section
4827         switch in 64-bit code.
4828         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
4829
4830         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
4831         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
4832         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
4833         modes correctly.
4834         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
4835         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
4836         (CONST_COSTS): Fixed incorrect costs.
4837
4838         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
4839         Use emit_jump instead of emit_jump_insn (gen_jump).
4840         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
4841         (to avoid confusing flow analysis).
4842         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
4843         (casesi, casesi_jump): New.
4844         (jump_long): Removed.  Functionality merged into indirect_jump.
4845         (indirect_jump): Accept address_operand, not just register_operand.
4846         (cjump_long, icjump_long): Use same logic as indirect_jump.
4847         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
4848         Fixed broken setjmp/longjmp handling.
4849         (do_builtin_setjmp_setup): Removed.
4850
4851         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
4852         broken GNU as versions that don't accept .quad with large
4853         negative values.  Use hexadecimal output instead.
4854         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
4855         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
4856         FUNCTION_EPILOGUE): Removed.  Now in targetm.
4857
4858         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
4859
4860         * config/s390/fixdfdi.h: Add missing copyright statement.
4861         Fix type conflicts on 64-bit.  Add missing SFmode routines.
4862
4863         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
4864         email address.
4865
4866 2001-08-11  Richard Henderson  <rth@redhat.com>
4867
4868         * rtl.h (REG_EH_RETHROW): Remove.
4869         * rtl.c (reg_note_name): Update.
4870         * combine.c (distribute_notes): Don't check for it.
4871
4872 2001-08-11  Richard Henderson  <rth@redhat.com>
4873
4874         * combine.c (distribute_notes): Place REG_SETJMP.
4875
4876 2001-08-11  Richard Henderson  <rth@redhat.com>
4877
4878         * doc/extend.texi (Arrays and pointers implementation): Discourage
4879         relying on sign-extension of pointers.
4880
4881 2001-08-11  H.J. Lu <hjl@gnu.org>
4882
4883         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
4884         in_dtors.
4885         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
4886         RDATA_SECTION_ASM_OP.
4887
4888 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4889
4890         * doc/install.texi (Specific, c4x): Fix cross-reference to the
4891         main manual to work both for info and HTML versions.
4892
4893 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4894             Matt Kraai <kraai@alumni.carnegiemellon.edu>
4895
4896         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
4897         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
4898         (struct cpp_pool): New member first.
4899         * cppinit.c (append_include_chain): Plug memory leaks.
4900         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
4901         Allocate pragma structures from the (aligned) macro pool to
4902         avoid leaking memory.
4903         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
4904         so we don't leak memory.
4905         * hashtable.c (ht_destroy): New.
4906         * hashtable.h (ht_destroy): New.
4907
4908 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4909             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4910
4911         * c-lex.c (map): Make const.
4912         (cb_file_change): Update for callback passing a line map.
4913         Don't assume we have a previous map.  Remove sanity check
4914         about popping too many files.
4915         * cpperror.c (print_location): Make map const.
4916         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
4917         (cpp_make_system_header): Similarly.
4918         (search_from): Similarly.
4919         (_cpp_execute_include): Don't remember where we came from.
4920         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
4921         (struct cpp_reader): Make map const.
4922         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
4923         * cpplib.c (do_line): Update; line maps now hold sysp.
4924         (cpp_push_buffer): Similarly.
4925         (_cpp_do_file_change): Similarly; callback with map instead.
4926         (cpp_get_line_maps): Constify return value.
4927         (_cpp_pop_buffer): Update.
4928         * cpplib.h (struct cpp_file_change): Remove.
4929         (struct cpp_callbacks): Update.
4930         (cpp_get_line_maps): Constify return value.
4931         * cppmacro.c (_cpp_create_definition): Update.
4932         * cppmain.c (struct printer): Constify map.
4933         (maybe_print_line): Similarly.
4934         (print_line): Similarly.  Deduce flags 1 and 2 here.
4935         (cb_file_change): Update.
4936         * line-map.c (free_line_maps): Warn regardless.
4937         (add_line_map): Return pointer to const.  When passed NULL to_file
4938         with LC_LEAVE, use the obvious values for the return point so the
4939         caller doesn't have to figure them out.
4940         (lookup_line): Return pointer to const.
4941         (print_containing_files): Take pointer to const.
4942         * line-map.h (struct line_map): New members reason, sysp.
4943         (add_line_map): Return pointer to const.
4944         (lookup_line): Similarly.
4945         (print_containing_files): Take pointer to const.
4946
4947 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
4948             Richard Henderson  <rth@redhat.com>
4949
4950         * regmove.c (regmove_optimize): Avoid setting a register twice in
4951         a parallel set.
4952
4953 2001-08-10  Richard Henderson  <rth@redhat.com>
4954
4955         * doc/extend.texi (Arrays and pointers implementation): Document
4956         behavior of pointer/integer conversion.
4957
4958 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
4959
4960         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
4961
4962 2001-08-10  Richard Henderson  <rth@redhat.com>
4963
4964         * doc/extend.texi (C Implementation): New chapter.
4965         * doc/gcc.texi (Top): Link it in.
4966
4967 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
4968
4969         * doc/install.texi (Specific): Fix CVS merge botch.
4970
4971 2001-08-10  Richard Henderson  <rth@redhat.com>
4972
4973         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
4974         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
4975
4976 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
4977
4978         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
4979         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
4980         this macro is now required.
4981
4982         * cselib.c (cselib_process_insn), flow.c (propagate_block),
4983         loop.c (find_and_verify_loops), reload.c (reload): Check
4984         for rtx code of CALL_INSN, not CALL, when deciding if we
4985         need to check for REG_SETJMP note.
4986
4987         * gcse.c (compute_hash_table, compute_store_table): Update
4988         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
4989         logic.
4990
4991         * config/avr/avr.c: Fix typo.
4992         * config/convex/convex.c (expand_movstr): Use adjust_address.
4993         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
4994         variable.
4995         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
4996         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
4997         Fix typo.
4998         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
4999         Do define STACK_BOUNDARY.
5000         * config/i370/i370.c: Include expr.h.
5001         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
5002         config/pa/som.h, config/v850/v850.h: Take in_ctors and
5003         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
5004         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
5005         * config/m88k/m88k.c: Include c-tree.h after expr.h.
5006         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
5007         * config/romp/romp.c: Include expr.h after tree.h.
5008         Include toplev.h.
5009         (output_fpop): Use xmalloc, not oballoc.
5010         * config/we32k/we32k.c: Include expr.h.
5011
5012 2001-08-10  Kazu Hirata  <kazu@hxi.com>
5013
5014         * config/h8300/h8300.h: Fix formatting.
5015
5016 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
5017
5018         * c-common.h (RETURN_NULLIFIED_P): Lose.
5019         * c-semantics.c (genrtl_return_stmt): Don't check it.
5020
5021 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5022
5023         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
5024         (mips_annotate_frame_insn): New function.
5025         (mips_emit_frame_related_store): New function.
5026         (save_restore_insns): Don't mark instructions that set up the base
5027         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
5028         the store instructions instead.
5029         (mips_expand_prologue): If the stack size is moved into a temporary
5030         register, do not mark that move as frame-related.  Add a
5031         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
5032
5033 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5034
5035         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
5036         stack slot as unchanging if current_function_calls_eh_return.
5037
5038 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5039
5040         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
5041         access the second half of the TFmode scratch operand.
5042
5043 2001-08-10  Anthony Green  <green@redhat.com>
5044
5045         * java/class.c (emit_register_classes): Conditionalize code on
5046         JCR_SECTION_NAME.
5047
5048 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5049
5050         * doc/install.texi (Specific, avr): Fix cross-reference to the
5051         main manual to work both for info and HTML versions.
5052
5053 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5054
5055         * stmt.c (expand_null_return_1): Remove code to generate simple returns
5056         and "use_goto" argument.
5057         (expand_null_return, expand_value_return): Update all callers.
5058         * function.c (expand_function_end): Remove code to generate simple
5059         return.
5060         * config/vax/vax.md (epilogue): New expander for function return.
5061         * doc/md.texi (epilogue): Remove "if defined".
5062
5063 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
5064
5065         * Makefile.in: Partially revert my previous change:
5066         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
5067         of the hashtab.o and safe-ctype.o rules.
5068
5069 2001-08-09  Richard Henderson  <rth@redhat.com>
5070
5071         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
5072         (USE_COLLECT2): Remove duplicate definition.
5073         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
5074         (use_collect2): Remove dead code.
5075         * configure.in (use_collect2): Remove will_use_collect2 and
5076         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
5077         * configure: Rebuild.
5078
5079         * target.h (targetm.asm_out.constructor): New.
5080         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
5081         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
5082         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
5083         * varasm.c (in_ctors, in_dtors): New.
5084         (assemble_constructor, assemble_destructor): Remove.
5085         (default_stabs_asm_out_destructor): New.
5086         (default_named_section_asm_out_destructor): New.
5087         (dtors_section, default_dtor_section_asm_out_destructor): New.
5088         (default_stabs_asm_out_constructor): New.
5089         (default_named_section_asm_out_constructor): New.
5090         (ctors_section, default_ctor_section_asm_out_constructor): New.
5091         * output.h: Update declarations.
5092         * c-decl.c (c_expand_body): Use target hooks instead of
5093         assemble_constructor and assemble_destructor.
5094         * profile.c (output_func_start_profiler): Likewise.
5095         * objc/objc-act.c (finish_objc): Likewise.
5096         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
5097         for the constructor.
5098         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
5099
5100         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
5101         (DTORS_SECTION_ASM_OP): Likewise.
5102         (__CTOR_LIST__): Use attribute section when possible.
5103         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
5104
5105         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
5106         ASM_OUTPUT_CONSTRUCTOR.
5107
5108         * config/darwin.c (machopic_asm_out_constructor): New.
5109         (machopic_asm_out_destructor): New.
5110         * config/darwin-protos.h: Update declarations.
5111         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5112         (ASM_OUTPUT_DESTRUCTOR): Remove.
5113         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5114         * config/nextstep.c (nextstep_asm_out_constructor): New.
5115         (nextstep_asm_out_destructor): New.
5116         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5117         (ASM_OUTPUT_DESTRUCTOR): Remove.
5118         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5119         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
5120         ASM_OUTPUT_*STRUCTOR.
5121         * config/i386/aix386ng.h: Likewise.
5122
5123         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
5124         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
5125         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
5126         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5127         * config/lynx.h: Likewise.
5128         * config/netware.h: Likewise.
5129         * config/psos.h: Likewise.
5130         * config/alpha/alpha-interix.h: Likewise.
5131         * config/alpha/elf.h: Likewise.
5132         * config/arc/arc.h: Likewise.
5133         * config/arm/aof.h: Likewise.
5134         * config/arm/coff.h: Likewise.
5135         * config/arm/elf.h: Likewise.
5136         * config/c4x/c4x.h: Likewise.
5137         * config/h8300/h8300.h: Likewise.
5138         * config/i386/cygwin.h: Likewise.
5139         * config/i386/djgpp.h: Likewise.
5140         * config/i386/i386-coff.h: Likewise.
5141         * config/i386/i386-interix.h: Likewise.
5142         * config/i386/sco5.h: Likewise.
5143         * config/i386/vsta.h: Likewise.
5144         * config/i386/win32.h: Likewise.
5145         * config/i960/i960-coff.h: Likewise.
5146         * config/ia64/sysv4.h: Likewise.
5147         * config/m68hc11/m68hc11.h: Likewise.
5148         * config/m68k/coff.h: Likewise.
5149         * config/m68k/mot3300.h: Likewise.
5150         * config/m88k/m88k.h: Likewise.
5151         * config/mcore/mcore-pe.h: Likewise.
5152         * config/mcore/mcore.h: Likewise.
5153         * config/mips/elf.h: Likewise.
5154         * config/mips/elf64.h: Likewise.
5155         * config/mips/iris6.h: Likewise.
5156         * config/pa/pa64-hpux.h: Likewise.
5157         * config/rs6000/sysv4.h: Likewise.
5158         * config/sh/sh.h: Likewise.
5159         * config/sparc/litecoff.h: Likewise.
5160
5161         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
5162         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
5163         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5164         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5165         (ASM_OUTPUT_DESTRUCTOR): Remove.
5166         * config/a29k/a29k.c: Move include of tree.h.
5167         * config/a29k/udi.h: Delete file.
5168         * config/alpha/alpha.c (vms_asm_out_constructor): New.
5169         (vms_asm_out_destructor): New.
5170         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
5171         (EXTRA_SECTION_FUNCTIONS): Likewise.
5172         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5173         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5174         * config/c4x/c4x.c: Move include of tree.h.
5175         * config/clipper/clipper.c (clix_asm_out_constructor): New.
5176         (clix_asm_out_destructor): New.
5177         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5178         (ASM_OUTPUT_DESTRUCTOR): Remove.
5179         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5180         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5181         (TARGET_ASM_CONSTRUCTOR): New.
5182         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
5183         (sco_asm_out_constructor): New.
5184         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
5185         * config/i386/svr3gas.h: Remove stack grows up code.
5186         Remove code duplicated from i386/sysv3.h.
5187         (TARGET_ASM_CONSTRUCTOR): New.
5188         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5189         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
5190         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5191         (TARGET_ASM_CONSTRUCTOR): New.
5192         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
5193         (m68hc11_asm_out_destructor): New.
5194         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
5195         (TARGET_ASM_DESTRUCTOR): New.
5196         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
5197         * config/m68k/dpx2.h: Properly undef all the bits inherited from
5198         config/svr3.h pertaining to section manipulation.
5199         * config/m68k/dpx2g.h: Remove #if 0 code.
5200         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
5201         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
5202         (ASM_OUTPUT_CONSTRUCTOR): Remove.
5203         (TARGET_ASM_CONSTRUCTOR): New.
5204         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
5205         (m88k_svr3_asm_out_constructor): New.
5206         (m88k_svr3_asm_out_destructor): New.
5207         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5208         (ASM_OUTPUT_DESTRUCTOR): Remove.
5209         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5210         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
5211         * config/rs6000/aix.h: Likewise.
5212         * config/mips/rtems64.h: Don't undef removed constructor related bits.
5213         * config/mips/vxworks.h: Likewise.
5214         * config/rs6000/lynx.h: Likewise.
5215         * config/sh/elf.h: Likewise.
5216         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
5217         (DTORS_SECTION_ASM_OP): New.
5218         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5219         (ASM_OUTPUT_DESTRUCTOR): Remove.
5220         * config/sparc/sol2-sld-64.h: Likewise.
5221         * config/vax/vax.c (vms_asm_out_constructor): New.
5222         (vms_asm_out_destructor): New.
5223         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5224         (ASM_OUTPUT_DESTRUCTOR): Remove.
5225         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5226
5227         * doc/tm.texi (@node Initialization): Update.
5228
5229 2001-08-09  Richard Henderson  <rth@redhat.com>
5230
5231         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
5232         (__do_global_dtors_aux): Use gp-relative static data to avoid
5233         one dynamic relocation.
5234         (__do_frame_setup): Register Java classes.
5235         * config/alpha/crtend.asm (__JCR_END__): New.
5236
5237 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
5238
5239         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
5240         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
5241         (GEN, STAGESTUFF): Add new files.
5242         (insn-constants.h, s-constants, tm-preds.h, s-preds,
5243         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
5244         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
5245         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
5246         as well as insn-codes.h and insn-flags.h in config.h; and no
5247         extra headers in tconfig.h and hconfig.h.
5248
5249         * gencodes.c: Eliminate code to generate predicate declarations
5250         or #defines for md-file constants.
5251         * genconstants.c, genpreds.c: New files.
5252
5253         * i386.md: Re-order guard expressions such that TARGET_64BIT
5254         comes first, when this permits better optimization.  Add
5255         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
5256         why this is desirable.
5257
5258 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
5259
5260         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
5261         (find_fde_for_dso): Remove.
5262         (_Unwind_IteratePhdrCallback): New.
5263         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
5264         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
5265
5266 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5267
5268         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
5269         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
5270
5271 2001-08-09  Graham Stott  <grahams@redhat.com>
5272
5273         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
5274         (vis_no_unit): Use it.
5275         (visualize_no_unit): Add the insn only if room exists.
5276
5277 2001-08-09  Graham Stott  <grahams@redhat.com>
5278
5279         * predict.c (estimate_probability): Replace magic numbers with
5280         appropriate enumeration.
5281
5282 2001-08-09  Graham Stott  <grahams@redhat.com>
5283
5284         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
5285         parameter.
5286         (EXTRACT_FLAGS): Likewise.
5287
5288 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
5289
5290         * config/mips/mips.c    (mips_legitimate_address_p): Check for
5291         CONST_INT in last patch.
5292
5293 2001-08-08  Anthony Green  <green@redhat.com>
5294
5295         * java/class.c (emit_register_classes): Use assemble_jcr if
5296         possible.  Keep the original mechanism as a fallback.
5297         * defaults.h (JCR_SECTION_NAME): Define if we have named section
5298         and weak symbol support.
5299         * crtstuff.c (__JCR_LIST__): Define.
5300         (__JCR_END__): Define.
5301         (_Jv_RegiserClasses): Define weak symbol if possible.
5302         (__do_global_ctors_aux): Register classes for ELF targets with
5303         weak symbol support.
5304
5305 2001-08-08  Kazu Hirata  <kazu@hxi.com>
5306
5307         * dbxout.c: Fix comment formatting.
5308         * dependence.c: Likewise.
5309         * df.c: Likewise.
5310         * diagnostic.c: Likewise.
5311         * dominance.c: Likewise.
5312         * doprint.c: Likewise.
5313         * dwarf2out.c: Likewise.
5314         * dwarfout.c: Likewise.
5315         * emit-rtl.c: Likewise.
5316         * except.c: Likewise.
5317         * explow.c: Likewise.
5318         * expmed.c: Likewise.
5319         * expr.c: Likewise.
5320         * flow.c: Likewise.
5321         * fold-const.c: Likewise.
5322         * function.c: Likewise.
5323
5324 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5325
5326         * global.c (retry_global_alloc): Avoid shadowing allocno.
5327
5328 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
5329
5330         * except.c (remove_fixup_regions): Fix typo.
5331
5332 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
5333
5334         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
5335         unsigned HOST_WIDE_INT to avoid warning.
5336         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
5337         * flow.c (set_block_for_new_insns): Likewise.
5338
5339 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
5340
5341         * sibcall.c (return_value_pseudo): New static variable.
5342         (skip_copy_to_return_value): Handle return_value_pseudo.
5343         (call_ends_block_p): Ensure that return_value_pseudo is set.
5344         (optimize_sibling_and_tail_recursive_call): Discover the
5345         load of pseudo return value in alternate exit block.
5346
5347 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5348
5349         * calls.c (ECF_ALWAYS_RETURN): New constant.
5350         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
5351         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
5352         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
5353         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
5354         * rtl.c (reg_note_name): New name.
5355         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
5356
5357 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
5358
5359         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
5360
5361 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
5362
5363         * alias.c (get_alias_set): Return a previously calculated
5364         alias set for a VAR_DECL.
5365         * function.c (gen_mem_addressof): Calculate the alias set before
5366         touching the RTL.
5367
5368 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
5369
5370         * predict.def: Set hitrates according our experimental run.
5371
5372 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
5373
5374         * i386.h (HARD_REGNO_RENAME_OK): New macro.
5375
5376 2001-08-08  H.J. Lu <hjl@gnu.org>
5377
5378         * config/mips/mips.c (mips_unique_section): New. Copied from
5379         config/mips/elf.h.
5380
5381         * config/mips/mips-protos.h (mips_unique_section): New
5382         prototype.
5383
5384         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
5385
5386         * config/mips/little.h: New. Generic little endian mips
5387         targets. Only mips*-*-linux* is converted to use it so far.
5388
5389         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
5390         (WCHAR_TYPE): Defined
5391         (WCHAR_TYPE_SIZE): Likewise.
5392         (INIT_SUBTARGET_OPTABS): Likewise.
5393         (BSS_SECTION_ASM_OP): Likewise.
5394         (SBSS_SECTION_ASM_OP): Likewise.
5395         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5396         (ASM_DECLARE_OBJECT_NAME): Likewise.
5397         (UNIQUE_SECTION): Likewise.
5398         (EXTRA_SECTIONS): Likewise.
5399         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
5400         (ASM_OUTPUT_DESTRUCTOR): Likewise.
5401         (ASM_OUTPUT_DEF): Likewise.
5402         (HANDLE_SYSV_PRAGMA): Removed.
5403         (NO_IMPLICIT_EXTERN_C): Likewise.
5404         (TARGET_MEM_FUNCTIONS): Likewise.
5405         (STARTFILE_SPEC): Likewise.
5406         (ENDFILE_SPEC): Likewise.
5407         (LIB_SPEC): Likewise.
5408         (INVOKE__main): Likewise.
5409         (CTOR_LIST_BEGIN): Likewise.
5410         (CTOR_LIST_END): Likewise.
5411         (DTOR_LIST_BEGIN): Likewise.
5412         (DTOR_LIST_END): Likewise.
5413         (SET_ASM_OP): Likewise.
5414         (ASM_OUTPUT_SOURCE_LINE): Likewise.
5415         (ASM_OUTPUT_DEF): Likewise.
5416         (ASM_OUTPUT_IDENT): Likewise.
5417
5418         * config/mips/mips.h (ASM_SPEC): Undefine before define.
5419         (CPLUSPLUS_CPP_SPEC): Likewise.
5420         (ASM_APP_ON) Redefine only if not defined.
5421         (ASM_APP_OFF): Likewise.
5422         (ASM_OUTPUT_SOURCE_LINE): Likewise.
5423         (ASM_OUTPUT_IDENT): Likewise.
5424
5425         * config.gcc: Update tm_file for Linux/mips.
5426
5427 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
5428
5429         * cselib.c (cselib_record_sets): If insn is predicated, turn
5430         sources into IF_THEN_ELSEs.
5431
5432         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
5433         Turn into define_insn_and_split.
5434
5435         * sched-deps.c: Include "cselib.h".
5436         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
5437         Use cselib to turn memory addresses into VALUEs.
5438         (sched_analyze): Call cselib_init/cselib_finish if necessary.
5439         * sched-int.h (struct sched_info): New member USE_CSELIB.
5440         * sched-ebb.c (ebb_sched_info): Initialize it.
5441         * sched-rgn.c (rgn_sched_info): Likewise.
5442         * Makefile.in (sched-deps.o): Update dependencies.
5443
5444         * cselib.h (cselib_subst_to_values): Declare.
5445         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
5446         that have no value and autoincs to be handled by generating a new
5447         dummy value.
5448
5449 2001-08-08  Graham Stott  <grahams@redhat.com>
5450
5451         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
5452         within fixed length SEQUENCE.
5453
5454 2001-08-08  Graham Stott  <grahams@redhat.com>
5455
5456         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
5457         (diagnostic_prefixing_rule): Likewise.
5458         (diagnostic_line_cutoff): Likewise.
5459         (diagnostic_kind_count): Likewise.
5460
5461 2001-08-08  Graham Stott  <grahams@redhat.com>
5462
5463         * alias.c (find_base_decl): Delete redundent assignment.
5464
5465 2001-08-08  Graham Stott  <grahams@redhat.com>
5466
5467         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
5468         (abs): Uppercase and paranthesize macro parameter.
5469         (MEM_DEPENDENCY): Add whitespace.
5470
5471 2001-08-08  Graham Stott  <grahams@redhat.com>
5472
5473         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
5474         failure check for CONST_INT
5475
5476 2001-08-08  Graham Stott  <grahams@redhat.com>
5477
5478         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
5479         (libcall_dead_p): Likewise.
5480
5481         (mark_used_regs): Constify fmt.
5482         (find_use_as_address): Likewise.
5483
5484 2001-08-08  Graham Stott  <grahams@redhat.com>
5485
5486         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
5487          parameter.
5488
5489 2001-08-08  Graham Stott  <grahams@redhat.com>
5490
5491         * combine.c (combine_simplify_rtx): Update comment and
5492         remove erroneous test.
5493
5494 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5495
5496         * cppinit.c (cpp_finish): Pop the final buffer without comment.
5497         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
5498         take care to avoid multiple no-newline at EOF warnings in that
5499         case.
5500
5501 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
5502
5503         * calls.c (expand_call): Do not emit INSN_SETJMP note.
5504         (emit_library_call_value_1): Likewise.
5505         (emit_call_1): Emit REG_SETJMP note.
5506         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
5507         of INSN_SETJMP
5508         * cselib.c (cselib_process_insn): Likewise.
5509         * flow.c (propagate_block): Likewise.
5510         * loop.c (find_and_verify_loops): Likewise.
5511         * reload.c (find_equiv_regs): Likewise.
5512         * reload1.c (reload): Likewise.
5513         * resource.c (mark_referenced_resources,
5514         mark_set_resources): Likewise.
5515         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
5516         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
5517         * haifa-sched.c (unlink_other_notes): Likewise.
5518         (reemit_notes): Likewise.
5519         * sched-ebb.c (sched_ebb): Likewise.
5520         * sched-rgc.c (sched_region): Likewise.
5521         * rtl.c (note_insn_name): Likewise.
5522         (reg_note_name): Add REG_SETJMP
5523         * rtl.h (reg_note): Add REG_SETJMP.
5524         (insn_note): Remove NOTE_INSN_SETJMP.
5525
5526         * profile.c (branch_prob): Add fake edges for setjmp.
5527
5528 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
5529
5530         * config.gcc: Quote target_cpu_default2 correctly for
5531         powerpc*-*-* targets.
5532
5533 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5534
5535         * cpplib.h, line-map.h: Update comments.
5536         * cppmain.c (printer_init): Move inline.
5537         (maybe_print_line, print_line): Take a map pointer.
5538         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
5539         (cb_file_change): Don't use prior value of print.map.
5540
5541 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
5542
5543         * doc/install.texi: Document fine-grained multilib configuration.
5544
5545 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
5546
5547         * rtlanal.c (find_first_parameter_load): Call note_stores
5548         only on the instructions.
5549
5550 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5551
5552         * alias.c (nonlocal_mentioned_p):
5553         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
5554         * calls.c (emit_call_1): Likewise.
5555         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
5556         * cselib.c (cselib_process_insn): Likewise.
5557         * df.c (df_insns_modify): Likewise.
5558         * flow.c (need_fake_edge_p): Likewise.
5559         (propagate_one_insn): Likewise.
5560         * haifa-sched.c (reemit_notes): Likewise.
5561         * integrate.c (copy_insn_list): Likewise.
5562         * jump.c (delete_prior_computation): Likewise.
5563         * local-alloc.c (validate_equiv_mem): Likewise.
5564         * loop.c (scan_loop): Likewise.
5565         * predict.c (estimate_probability): Likewise.
5566         * reload.c (reload): Likewise.
5567         * sched-deps (sched_analyze): Likewise.
5568         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
5569         * gcse.c (compute_hash_table): Likewise.
5570         (mark_call): Likewise.
5571         (store_killed_in_insn): Likewise.
5572
5573 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
5574
5575         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
5576
5577 2001-08-06  Richard Henderson  <rth@redhat.com>
5578
5579         * varasm.c (assemble_gc_entry): Remove.
5580         * output.h: Likewise.
5581
5582 2001-08-06  Richard Henderson  <rth@redhat.com>
5583
5584         * varasm.c (assemble_constructor): Take a symbol_ref and a
5585         priority instead of a bare string.  Move priority handling
5586         here from cp/decl2.c.
5587         * output.h: Update decls.
5588
5589         * c-decl.c (c_expand_body): Update calls to assemble_constructor
5590         and assemble_destructor.
5591         * profile.c (output_func_start_profiler): Likewise.
5592         * objc/objc-act.c (finish_objc): Likewise.
5593         (build_module_descriptor): Return the symbol not the symbol name.
5594
5595 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
5596
5597         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
5598         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
5599         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
5600         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
5601         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
5602         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
5603
5604 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5605
5606         * cpperror.c (print_containing_files): Moved to line-map.c.
5607         (print_location): line-map.c handles re-listing or otherwise.
5608         * cpphash.h (struct lexer_state): Remove next_bol.
5609         (struct cpp_buffer): Remove include_stack_listed.
5610         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
5611         Remove faked buffer handling.
5612         (_cpp_do_file_change): Tweak.
5613         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
5614         * cppmain.c (struct printer): Remove filename.
5615         (print_line, cb_file_change): Update accordingly.
5616         * line-map.c: Include intl.h.
5617         (init_line_maps): Initialize last_listed.
5618         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
5619         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
5620         (print_containing_files): New.
5621         * line-map.h (struct line_maps): New member last_listed.
5622         (print_containing_files, INCLUDED_FROM): New.
5623         * Makefile.in: Update.
5624         * po/POTFILES.in: Add line-map.c.
5625
5626 2001-08-06  Richard Henderson  <rth@redhat.com>
5627
5628         * except.c (convert_from_eh_region_ranges_1): Never mark
5629         USE or CLOBBER insns as throwing.
5630
5631         * expr.c (store_constructor): Don't clobber memory targets.
5632
5633 2001-08-06  Andreas Jaeger  <aj@suse.de>
5634
5635         * profile.c (branch_prob): Remove unused variable insn.
5636
5637         * Makefile.in (local-alloc.o): Add dependency on except.h.
5638
5639         * local-alloc.c: Include except.h for can_throw_internal prototype.
5640
5641 2001-08-06  Richard Henderson  <rth@redhat.com>
5642
5643         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
5644         * function.c (expand_main_function): Implement it.
5645         * doc/tm.texi: Document it.
5646
5647 2001-08-06  Stan Shebs  <shebs@apple.com>
5648
5649         * doc/install.texi: Document powerpc-*-darwin* details.
5650
5651 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
5652
5653         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
5654         (ASM_CPU_SPEC): Move back to rs6000.h
5655         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
5656
5657         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
5658
5659         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
5660         readded.
5661
5662         * config/rs6000/linux64.h: Ditto.
5663
5664         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
5665         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
5666         nothing.
5667
5668         Remove accidently readded definitions of FUNCTION_PROLOGUE,
5669         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
5670
5671         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
5672         to rs6000.h
5673
5674 2001-08-05  Richard Henderson  <rth@redhat.com>
5675
5676         * local-alloc.c (update_equiv_regs): Do not move insns that
5677         can throw.
5678
5679 2001-08-05  Jan Hubicka  <jh@suse.cz>
5680
5681         * Makefile.in (reload1.o): Add dedendancy on except.h
5682         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
5683         prototypes.
5684         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
5685         indicating wehther edges has been cleaned up.
5686         * reload1.c: Inlucde except.h
5687         (fixup_abnormal_edges): Accept deleted insns.
5688         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
5689         after combine.
5690
5691 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5692
5693         * cpplib.c (do_line): Correct line number after pop_buffer.
5694
5695 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5696
5697         PR preprocessor/3824
5698         * line-map.c: Update comments.
5699         * line-map.h: Update comments.
5700         * tradcif.y: Don't consider large numbers unsigned.
5701
5702 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5703
5704         PR preprocessor/3081
5705         * c-lex.c (map): New.
5706         (cb_file_change): Update map and use it.
5707         (cb_def_pragma, cb_define, cb_undef): Use map and line.
5708         (c_lex): Update to use map.
5709         * cpperror.c (print_location): Move to using logical line numbers.
5710         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
5711         (cpp_make_system_header): Similarly.
5712         (_cpp_execute_include): Stop line numbering hacks.  Store the
5713         line we will return to.
5714         * cpphash.h (CPP_BUF_LINE): Remove.
5715         (struct cpp_buffer): Remove lineno and pseudo_newlines.
5716         Add map and return_to_line.
5717         (_cpp_do_file_change): Update.
5718         * cppinit.c (cpp_start_read): Update line kludge.
5719         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
5720         (trigraph_ok): Use logical line numbers for diagnostics.
5721         (skip_block_comment): Likewise.
5722         (skip_whitespace): Likewise.
5723         (skip_line_comment): Use pfile->line instead.
5724         (_cpp_lex_token): Update to use logical line numbering exclusively.
5725         Handle BOL locally.  Accept new lines in directives, but keep
5726         pfile->line decremented.  Diagnostics use logical lines.  Update
5727         directive handling.
5728         * cpplib.c (SEEN_EOL): New.
5729         (skip_rest_of_line, check_eol): Use it.
5730         (end_directive): Increase line number when accepting the newline
5731         at the end of a directive.
5732         (run_directive): Simplify.
5733         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
5734         (_cpp_do_file_change): Update to take buffer line number as an
5735         argument, and store the current map in the cpp_reader.  Remove
5736         line number kludges.
5737         (_cpp_do__Pragma): Restore output position after a _Pragma.
5738         (cpp_push_buffer): Don't set output line or lineno.
5739         (_cpp_pop_buffer): Transfer more info from a faked buffer.
5740         Remove line kludge.  Set output_line.
5741         * cppmacro.c (builtin_macro): Update handling of __LINE__.
5742         (parse_arg): Use logical lines.
5743         (save_lookahead_token): Save EOFs too now.
5744         * cppmain.c (struct printer): Fix comments.
5745         (printer_init): Simplify, let caller do errors.
5746         (scan_translation_unit, check_multiline_token, dump_macro): Update.
5747         (maybe_print_line): Simplify.
5748         (print_line): Don't print a linemarker if -P.
5749         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
5750         (cb_file_change): Simplify.
5751         * line-map.h (LAST_SOURCE_LINE): Fix.
5752         (CURRENT_LINE_MAP): New.
5753
5754 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
5755
5756         * doloop.c (doloop_modify_runtime): Properly compute number of
5757         iterations if loop was unrolled.
5758
5759         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
5760         if their CSELIB_VAL_PTRs are.
5761
5762         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
5763         (setup_spill_pointers): Initialize it.
5764         (spill_restore_mem): Set it.
5765         (do_spill, do_restore): Use it to add REG_INC note.
5766         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
5767
5768         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
5769         asms if other insns are available.
5770
5771         * config/ia64/ia64.c (condop_operator): New predicate.
5772         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
5773         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
5774         patterns.
5775
5776         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
5777         temporary register than directly using a MEM.
5778
5779 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
5780
5781         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
5782         parameter in last change.
5783
5784 2001-08-04  Zack Weinberg  <zackw@panix.com>
5785
5786         * sparc.md: Don't use #if inside C test expression.
5787
5788 2001-08-04  Richard Henderson  <rth@redhat.com>
5789
5790         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
5791
5792 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5793
5794         * cpphash.h (struct cpp_reader): New member directive_line.
5795         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
5796         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
5797         do_pragma): Pass line to callbacks.
5798         (start_directive): Record line of directive.
5799         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
5800         cb_include): Similarly.
5801         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
5802         Similarly.
5803
5804 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
5805
5806         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
5807         comment.
5808
5809 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
5810
5811         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
5812
5813         * reload1.c (fixup_abnormal_edges): New static function.
5814         (reload): Use it.
5815
5816         * flow.c (need_fake_edge_p): New function.
5817         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
5818         avoid call insn to be very last insn in the insn stream.
5819
5820         * profile.c (branch_prob): Call flow_call_edges_add instead of
5821         doing that by hand; cleanup cfg to re-merge basic blocks once
5822         we are done.
5823
5824 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
5825
5826         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
5827         are also on line-map.h.
5828         * cppfiles.c (stack_include_file): Update.
5829         * cpphash.h (struct cpp_buffer): New member return_at_eof.
5830         (_cpp_pop_buffer): New.
5831         * cppinit.c (cpp_destroy, cpp_finish): Update.
5832         (do_includes): Mark each buffer to return at EOF.
5833         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
5834         return as requested.
5835         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
5836         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
5837         * cpplib.h (cpp_pop_buffer): Remove.
5838         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
5839         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
5840         buffers.
5841         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
5842         to pop buffers.
5843         (do_preprocessing): Update.
5844         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
5845         * c-parse.in (_yylex): Similarly.
5846         * scan-decls.c (scan_decls): Similarly.
5847         * line-map.h: Update comments.
5848
5849         * objc/Make-lang.in (objc-act.o): Update dependencies.
5850
5851 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5852
5853         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
5854         and soft register for operand 0.
5855         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
5856
5857 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5858
5859         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
5860         register for operand 0.
5861         ("bitcmpqi_z_used"): Allow memory for operand 0.
5862         (split "bitcmpqi"): New split to handle address reg as operand 1.
5863
5864 2001-08-04  Andreas Jaeger  <aj@suse.de>
5865
5866         * gcse.c: Revert Daniel's last patch.
5867
5868 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
5869
5870         * sparc-protos.h: Add prototypes for fp_zero_operand and
5871         reg_or_0_operand.
5872         * sh-protos.h: Add prototype for fpul_operand.
5873
5874 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
5875
5876         * doc/extend.texi (Other Builtins): Fix typo in last change.
5877
5878 2001-08-03  Richard Henderson  <rth@redhat.com>
5879
5880         * target.h (gcc_target): Add asm_out.named_section,
5881         section_type_flags, have_named_sections.
5882         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
5883         (TARGET_HAVE_NAMED_SECTIONS): New.
5884         (TARGET_SECTION_TYPE_FLAGS): New.
5885
5886         * Makefile.in (toplev.o): Depend on TARGET_H.
5887         (varasm.o, dbxout.o): Likewise.
5888         * c-common.c (decl_attributes): Check targetm.have_named_sections
5889         instead of ifdef ASM_OUTPUT_SECTION_NAME.
5890         * dbxout.c (dbxout_function_decl): Likewise.
5891         (dbxout_function_end): Likewise.
5892         * toplev.c (compile_file): Likewise.
5893         * varasm.c (exception_section): Likewise.
5894         * cp/decl2.c (finish_objects): Likewise.
5895
5896         * defaults.h (EH_FRAME_SECTION): Remove.
5897         (EH_FRAME_SECTION_ASM_OP): Remove.
5898         (EH_FRAME_SECTION_NAME): New.
5899         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
5900         (UNIQUE_SECTION_P): Remove.
5901         * dwarf2out.c (SECTION_FORMAT): Remove.
5902         (ASM_OUTPUT_SECTION): Remove.
5903         (output_call_frame_info): Use named_section_flags.
5904         (output_comp_unit, dwarf2out_start_source_file): Likewise.
5905         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
5906         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
5907         * varasm.c (in_eh_frame, eh_frame_section): Remove.
5908         (named_section_flags): New.
5909         (named_section): Use it and targetm.section_type_flags.
5910         (resolve_unique_section): New.
5911         (assemble_start_function): Use it.
5912         (asm_emit_uninitialised, assemble_variable): Likewise.
5913         (default_section_type_flags): New.
5914         (default_no_named_section, default_elf_asm_named_section): New.
5915         (default_coff_asm_named_section, default_pe_asm_named_section): New.
5916         * output.h: Update varasm.c decls.
5917         (SECTION_*): New flags.
5918
5919         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
5920         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
5921
5922         * config/elfos.h (UNIQUE_SECTION_P): Remove.
5923         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
5924         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
5925         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
5926         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
5927         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
5928         * config/mips/elf.h, config/mips/elf64.h: Likewise.
5929         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
5930         * config/pa/pa64-hpux.h,
5931
5932         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
5933         (TARGET_ASM_NAMED_SECTION): New.
5934         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
5935         * config/alpha/vms.h, config/arm/coff.h: Likewise.
5936         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
5937         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
5938         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
5939         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
5940         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
5941         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
5942         * config/i386/sco5.h, config/i386/win32.h: Likewise.
5943         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
5944         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
5945         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
5946         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
5947         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
5948         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
5949         * config/sparc/sysv4.h: Likewise.
5950
5951         * config/nextstep.h: Error until named sections implemented.
5952
5953         * config/a29k/a29k.c (a29k_asm_named_section): New.
5954         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
5955         (vms_section_type_flags, vms_asm_named_section): New.
5956         * config/arm/arm.c (arm_elf_asm_named_section): New.
5957         * config/avr/avr.c (asm_output_section_name): Remove.
5958         * config/avr/avr-protos.h: Update.
5959         * config/c4x/c4x.c (c4x_asm_named_section): New.
5960         * config/h8300/h8300.c (h8300_asm_named_section): New.
5961         * config/i386/i386.c (sco_asm_named_section): New.
5962         * config/i386/winnt.c (SECTION_PE_SHARED): New.
5963         (i386_pe_section_type_flags): New.
5964         (i386_pe_asm_named_section): New.
5965         * config/i386/i386-protos.h: Update.
5966         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
5967         * config/mcore/mcore.c (mcore_asm_named_section): New.
5968         * config/mips/mips.c (iris6_asm_named_section): New.
5969         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
5970         instead of UNIQUE_SECTION_P.
5971         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
5972         (xcoff_asm_named_section): New.
5973         * config/sh/sh.c (sh_asm_named_section): New.
5974         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
5975
5976         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
5977         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
5978         (EH_FRAME_SECTION_NAME): New.
5979         (EXCEPTION_SECTION): New.
5980         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
5981         (DEBUG_*_SECTION): Remove.
5982         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
5983         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
5984         (EH_FRAME_SECTION_ASM_OP): Remove.
5985
5986         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
5987         (ASM_OUTPUT_SECTION_NAME): Remove.
5988         (TARGET_ASM_NAMED_SECTION): New.
5989         (TARGET_HAVE_NAMED_SECTIONS): New.
5990         (TARGET_SECTION_TYPE_FLAGS): New.
5991         (EH_FRAME_SECTION_ASM_OP): Remove.
5992         (EH_FRAME_SECTION_NAME): New.
5993
5994 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
5995
5996         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
5997         for complex expressions when cfun == 0.
5998         * doc/extend.texi: Document that __builtin_constant_p can be
5999         used in data initializers as well as functions.
6000
6001 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
6002
6003         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
6004         variable I locally, instead of expecting a declaration in the
6005         calling context.
6006
6007 2001-08-03  Richard Henderson  <rth@redhat.com>
6008
6009         * except.c (collect_one_action_chain): Add an explicit cleanup
6010         action if regions surrounding a catch were encoded entirely
6011         within the call-site entry.
6012
6013 2001-08-03  Richard Henderson  <rth@redhat.com>
6014
6015         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
6016         don't take REGNO of a non-register.
6017
6018 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6019
6020         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
6021         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
6022         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
6023         (__gthread_mutex_init_function): New function for mutex initialization.
6024
6025 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6026
6027         * Makefile.in: Revert screwed up commit.
6028
6029 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6030
6031         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
6032         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
6033         merged by linker script to get a final _exit().
6034         (__do_global_dtors): New for destructor handling in specific exit
6035         section.
6036         (__do_global_ctors): New for constructors in specific install section.
6037         (__map_data_section): Map data sections before running constructors.
6038         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
6039         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
6040         (DTORS_SECTION_ASM_OP): Likewise.
6041         (CTORS_SECTION_FUNCTION): Define to force a reference to
6042         __do_global_ctors.
6043         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
6044
6045 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6046
6047         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
6048
6049         * Makefile.in: Add df.h to gcse.c dependencies.
6050
6051 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6052
6053         * varasm.c (output_constant_def_contents): Use for the length of a
6054         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
6055         depending on which is larger.
6056
6057 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6058
6059         * gcse.c: Include df.h for use as a dataflow analyzer.
6060         Remove regvec.
6061         Declaration of reg_set_info: gone.
6062         New df_analyzer variable used by store motion.
6063         (reg_set_info): Deleted.
6064         (mark_mem_regs): New function, analyze regs used by a mem.
6065         (store_ops_ok): Use dataflow analyzer results to determine if
6066         necessary regs are changed in the block.
6067         (find_moveable_store): Remove check for symbol ref, we can handle
6068         much more complex expressions now.
6069         (compute_store_table): Remove most of the code, it's unnecessary
6070         now that the dataflow analyzer records the info for us.
6071         (store_killed_after): Add parameter to say whether to do the
6072         store_ops_okay test, used to speed up testing when we already know
6073         the answer, and just want to know if the store itself was killed.
6074         (build_store_vector): Largely rewritten to calculate the various
6075         vectors properly, and somewhat optimized.
6076         (store_motion): Init the df_analyzer, get REG_DEF chains.
6077         Also handle trapping expressions (since mems almost always trap)
6078         (simple_mem): Redefine what a simple mem is.
6079
6080 2001-08-03  DJ Delorie  <dj@redhat.com>
6081
6082         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
6083         set from a constant part of the condition.
6084
6085 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
6086
6087         * mkdeps.c (deps_add_default_target): Make local variable
6088         ``start'' a const char pointer.
6089         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
6090
6091 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6092
6093         * doc/install.texi (Configuration): Fix markup.
6094         (Specific, i?86-*-udk): Likewise.
6095         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
6096         --with-gnu-ld.
6097         Document --enable-threads and --enable-libgcj status.
6098         (Specific, mips-sgi-irix*): Canonicalize triples.
6099         (Specific, mips-sgi-irix5): Warn about problems with this config.
6100         Mention required GNU as patch.
6101         Native assembler problems are fixed.
6102         (Specific, mips-sgi-irix6): Update O32 ABI support status.
6103         Document --enable-threads and --enable-libgcj status.
6104
6105 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6106
6107         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
6108         of mkinstalldirs.
6109
6110 2001-08-03  Richard Henderson  <rth@redhat.com>
6111
6112         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
6113         constant data.
6114
6115 2001-08-03  Richard Henderson  <rth@redhat.com>
6116
6117         * rtlanal.c (find_first_parameter_load): Stop if we
6118         reach a CODE_LABEL at BOUNDARY.
6119
6120 2001-08-03  Richard Henderson  <rth@redhat.com>
6121
6122         * config/alpha/alpha.md (force_movdi): New insn.
6123         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
6124         Tweek FRP marking of VMS prologue insns.
6125         * config/alpha/vms.h (EPILOGUE_USES): New.
6126
6127 2001-08-02  Richard Henderson  <rth@redhat.com>
6128
6129         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
6130
6131 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
6132
6133         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
6134         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
6135         config/convex/convex.h, config/d30v/d30v.c,
6136         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6137         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
6138         config/mips/mips.h, config/mn10200/mn10200.h,
6139         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
6140         config/v850/v850.h, config/vax/openbsd.h,
6141         config/vax/openbsd1.h, config/vax/ultrix.h,
6142         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
6143         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
6144         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
6145         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
6146         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
6147         in comments and documentation.
6148
6149 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6150
6151         * line-map.c: New.
6152         * line-map.h: New.
6153         * Makefile.in (line-map.o): New.
6154         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
6155         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
6156         * cpperror.c (print_containing_files): Similarly.
6157         (print_location): Update.  Don't output a space before _Pragma.
6158         * cppfiles.c (stack_include_file): Set to line 1 immediately.
6159         (stack_include_filee, cpp_make_system_header): Update.
6160         (_cpp_execute_include): Get logical line number right for calling
6161         as-yet-unterminated #include.
6162         * cpphash.h (struct cpp_reader): Add line_maps.
6163         (_cpp_do_file_change): Update.
6164         * cppinit.c (cpp_create_reader): Initialize line maps.
6165         (cpp_destroy): Destroy line maps.
6166         (cpp_start_read): Get logical line number right.
6167         * cpplex.c (parse_string): Only warn once for multi-line strings.
6168         Use boolean variable for null warning.
6169         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
6170         already.
6171         (do_include_common): End the directive early.
6172         (do_line): Don't warn about out-of-range lines in preprocessed
6173         source.  Update.  Remove unused variables.
6174         (_cpp_do_file_change): Update for new line mapping.
6175         (pragma_cb): New typedef.
6176         (cpp_register_pragma): Stop looking ahead before calling the
6177         handler.  Clean up.
6178         (do_pragma_system_header): End directive early.
6179         (cpp_get_line_maps): New.
6180         (cpp_pop_buffer): Fudge logical line.  Update.
6181         * cpplib.h: Include line-map.h
6182         (enum cpp_fc_reason): Remove.
6183         (struct cpp_file_change): Update.
6184         (cpp_get_line_maps): New.
6185         * cppmain.c (struct_printer): New member map.
6186         (cb_file_change): Update for new mappings.
6187         * fix-header.c (cb_file_change): Similarly.
6188
6189 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6190
6191         * Makefile.in (libgcc.mk): Define mkinstalldirs.
6192         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
6193
6194 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
6195
6196         * config/vax/vax.c: include expr.h.
6197
6198 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6199
6200         * Makefile.in ($(srcdir)/configure): Only rebuild in
6201         maintainer mode.
6202         ($(srcdir)/config.in): Only define in maintainer mode.
6203         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
6204
6205 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
6206
6207         * doc/install.texi (Install GCC: Binaries): Update Bull info.
6208
6209 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6210
6211         * gcc.c (set_collect_gcc_options): New function, split out from
6212         main.
6213         Ignore elided switches.
6214         (do_spec_1): Invoke before executing command.
6215         (set_input): Export.
6216         Move declaration ...
6217         * gcc.h (set_input): ... here.
6218         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6219         file.
6220
6221 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
6222
6223         Kill -fhonor-std.
6224         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
6225         interaction.
6226         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
6227
6228 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
6229
6230         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
6231         for the unnamed instructions it expands to.
6232
6233 2001-08-02  Richard Henderson  <rth@redhat.com>
6234
6235         * regclass.c (call_really_used_regs): Conditionally define.
6236         (init_reg_sets_1): Don't use it if not defined.
6237         (fix_register): Similarly, don't set it.
6238
6239 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6240
6241         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
6242         Correct comment that had been missed in the previous change.
6243
6244 2001-08-01  Stan Shebs  <shebs@apple.com>
6245
6246         * config/darwin.c (machopic_stub_name): Try matching by name.
6247         (update_stubs): New function.
6248         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
6249         unconditionally.
6250
6251 2001-08-01  Richard Henderson  <rth@redhat.com>
6252
6253         * except.c (output_function_exception_table): Use assemble_align.
6254         * varasm.c (assemble_eh_label): Remove.
6255         (assemble_eh_align, assemble_eh_integer): Remove.
6256
6257 2001-08-01  Robert Lipe  <robertl@caldera.com>
6258
6259         * dwarfout.c: Remove reference to README.DWARF.
6260
6261 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
6262
6263         * regclass.c (call_really_used_regs): New array for registers which
6264         are actually used by a call.
6265         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
6266         new array.
6267         (fix_register): Set call_really_used too.
6268         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
6269         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
6270
6271 2001-08-01  Richard Henderson  <rth@redhat.com>
6272
6273         * read-rtl.c (read_name): Consider \r whitespace.
6274
6275 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
6276
6277         * config.gcc: Recognize powerpc-*-netbsd*.
6278
6279         * doc/install.texi (Host/target specific installation notes for
6280         GCC): Mention powerpc-*-netbsd*.
6281
6282         * config/rs6000/netbsd.h: New file.
6283         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
6284         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
6285         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
6286         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
6287         (TARGET_VERSION): Redefine.
6288
6289         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
6290         mcall-netbsd as a match for mcall-sysv.
6291         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
6292         (ncrti.S, ncrtn.S): New targets.
6293         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
6294
6295         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
6296         "netbsd' as a V4 ABI.
6297         (ASM_SPEC): Check for -mcall-netbsd.
6298         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
6299         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
6300         (LIB_SPEC, ENDFILE_SPEC): Ditto.
6301         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
6302         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
6303         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
6304         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
6305
6306         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
6307         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
6308
6309 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
6310
6311         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
6312         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
6313         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
6314         including "unwind-pe.h".
6315
6316 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
6317
6318         * rs6000.md (define_splits): Kill unused constraints.
6319
6320 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
6321                               Jan Hubicka  <jh@suse.cz>
6322
6323         * function.c (thread_prologue_and_epilogue_insns): Kill code
6324         dealing with non-existent CFG.
6325
6326 2001-08-01  Kazu Hirata  <kazu@hxi.com>
6327
6328         * alias.c: Fix comment formatting.
6329         * bitmap.c: Likewise.
6330         * builtins.c: Likewise.
6331         * calls.c: Likewise.
6332         * c-common.c: Likewise.
6333         * c-decl.c: Likewise.
6334         * c-dump.c: Likewise.
6335         * c-lex.c: Likewise.
6336         * collect2.c: Likewise.
6337         * combine.c: Likewise.
6338         * conflict.c: Likewise.
6339         * cppfiles.c: Likewise.
6340         * cppinit.c: Likewise.
6341         * cpplex.c: Likewise.
6342         * cpplib.c: Likewise.
6343         * cppmacro.c: Likewise.
6344         * cppspec.c: Likewise.
6345         * c-pragma.c: Likewise.
6346         * crtstuff.c: Likewise.
6347         * cse.c: Likewise.
6348         * cselib.c: Likewise.
6349         * c-semantics.c: Likewise.
6350         * c-typeck.c: Likewise.
6351
6352 2001-08-01  H.J. Lu <hjl@gnu.org>
6353
6354         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
6355
6356 2001-08-01  H.J. Lu <hjl@gnu.org>
6357
6358         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
6359
6360 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
6361
6362         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
6363         contextualizing Objective-C class name lookup by the lexer.
6364         (typespec_reserved_nonattr): Disable ObjC class name lookup after
6365         seeing a TYPESPEC.
6366         (protocoldef): Add support for forward @protocol declarations.
6367         (yylexname): Suppress ObjC class name lookup in certain contexts;
6368         re-enable after lookup is complete.
6369         (_yylex): Re-enable ObjC class name lookup when certain
6370         punctuation marks are seen.
6371
6372         * objc/objc-act.c (check_protocol_recursively): New function used
6373         for finding circular dependencies in protocols.
6374         (objc_declare_protocols): New function for handling forward
6375         @protocol declarations.
6376         (receiver_is_class_object): Detect the case when 'self' is used
6377         inside of a class method.
6378         (build_message_expr): Issue a warning if class method is desired
6379         but instance method is found instead.
6380         (conforms_to_protocol): Streamline.
6381         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
6382         protocol Foo, even if 'Bar foo' does not.
6383         (check_protocols): Streamline.
6384         (start_protocol): Add checks for circular and duplicate protocol
6385         definitions.
6386         (encode_aggregate_within): For typedefs of structs, encode the
6387         underlying struct.
6388         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
6389         (objc_declare_protocols): New prototype.
6390
6391 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6392
6393         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
6394         * cpplex.c (handle_newline): Update prototype.  Maintain logical
6395         line number.
6396         (skip_escaped_newlines, skip_block_comment, parse_string):
6397         Update accordingly.
6398         (_cpp_lex_token): Update, and store token position within the token.
6399         * cpplib.h (struct cpp_token): Add line and column entries.
6400         * cppmacro.c (replace_args): Position stringified tokens correctly.
6401
6402 2001-08-01  Andreas Jaeger  <aj@suse.de>
6403
6404         * basic-block.h: Add prototype for last_loop_beg_note.
6405
6406 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
6407
6408         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
6409         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
6410         comment.
6411         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
6412         while handling WITH_CLEANUP_EXPR node. Use second operand calling
6413         expand_decl_cleanup.
6414         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
6415         the first RTX.
6416         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
6417         operand while calling simple_cst_equal.
6418         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
6419         operand is the cleanup expression, the third is the RTL_EXPR.
6420         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
6421
6422 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
6423
6424         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
6425
6426 2001-07-31  matthew green  <mrg@eterna.com.au>
6427
6428         * config.gcc (i386-*-netbsdelf): New description.
6429         * config/i386/netbsd-elf.h: New file.
6430
6431 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
6432
6433         * loop.c (check_dbra_loop): Use single_set to compute
6434         jump_label.
6435
6436 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
6437
6438         PowerPC reorg and support for powerpc64-*-linux*.
6439
6440         Also fixes emitting of constants on 32 bit and 64 bit
6441         platforms.
6442
6443         * config.gcc: powerpc64-*-linux* is a new target.
6444         Things that needed aix.h now also include xcoff.h
6445
6446         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
6447         xcoff.h.
6448         Move AIX specific stuff into aix.h.
6449         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
6450         with more than just XCOFF now.
6451         (SET_ASM_OP): Remove, now defined where needed.
6452         (FUNCTION_PROLOGUE): New macro definition.
6453         (FUNCTION_EPILOGUE): New macro definition.
6454         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
6455
6456         * config/rs6000/xcoff.h: New file.
6457
6458         * config/rs6000/linux64.h: New file.
6459
6460         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
6461
6462 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
6463
6464         * rs6000.c (print_operand_address): Handle ELF syntax.
6465         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
6466         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
6467         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
6468
6469 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
6470
6471         * rs6000.c (rs6000_override_options): Only disable
6472         flag_function_sections for XCOFF.
6473         (exact_log2_cint_operand): New predicate.
6474         (reg_or_{add,sub}_cint64_operand): New predicates.
6475         (add_operand): Compare CONST_INT with fewer function calls.
6476         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
6477         (print_operand, case 'p'): Ensure positive operand.
6478         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
6479         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
6480         (PREDICATE_CODES): Add new predicates.
6481         * rs6000.md (addsi3): Split 32-bit constants more correctly.
6482         (divsi3, modsi3): Ensure positive power-of-2.
6483         (adddi3): Use new predicate.  Split 32-bit constants more
6484         correctly.  Re-arrange splitter to handle any constant.
6485         (subdi3): Use new predicate.
6486         (divdi3, moddi3): Ensure positive power-of-2.
6487         (movdi): Use rs6000_emit_set_const.
6488         (load_toc_v4_pic_di): Delete.
6489
6490 2001-07-31  Graham Stott <grahams@redhat.com>
6491
6492         * function.c (pad_below): Revert 2001-07-26 patch.
6493
6494 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
6495
6496         * reg-stack (convert_regs_1): Fix best edge condition.
6497
6498 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
6499
6500         * jump.c (duplicate_loop_exit_test): Better test for jumps
6501         entering the loop; create loop pre_header.
6502
6503 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
6504
6505         * doc/install.texi: Add s390 and s390x as new targets.
6506         * doc/invoke.texi: Add documantation of S/390 and zSeries
6507         target options.
6508         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
6509
6510 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
6511
6512         * config/m68k/m68k.md: Replace all general_operand with
6513         nonimmediate_operand for all destinations.
6514         * config/m68k/m68k.c (not_sp_operand): Likewise.
6515
6516 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
6517
6518         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
6519
6520 2001-07-30  Richard Henderson  <rth@redhat.com>
6521
6522         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
6523         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
6524
6525 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
6526
6527         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
6528         Add missing doc strings
6529         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
6530         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
6531
6532 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
6533
6534         * i386.c (ix86_output_main_function_alignment_hack): New function.
6535         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
6536
6537         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
6538         edges by EDGE_DFS_BACK flag.
6539         (dump_edge_info): Add dfs_back flag.
6540         * basic-block.h (EDGE_DFS_BACK): New constant.
6541         (mark_dfs_back_edges): Declare.
6542         * alias.c (loop_p): Remove.
6543         (mark_constant_function): Use mark_dfs_back_edges.
6544
6545         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
6546         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
6547         (compensate_edge): Break out from ...
6548         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
6549         (convert_regs_2): Set block_done once block is really done;
6550         Do updating of the predecesors counts.
6551
6552         * toplev.c (rest_of_compilation): Recompute block_for_insn
6553         before post-reload cfg_cleanup.
6554         * function.c (thread_prologue_epilogue_insns):
6555         Call set_block_for_new_insns when emitting prologue directly.
6556
6557 2001-07-30  Andreas Jaeger  <aj@suse.de>
6558
6559         * jump.c: Add prototype for mark_modified_reg.
6560
6561         * cse.c (set_live_p): Add unused attribute.
6562
6563         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
6564         overflow.
6565         (scan_for_source_files): Use long for count to avoid overflow.
6566         (output_data): Likewise.
6567         (output_data): Don't use string concatatenation to silence gcc
6568         -traditional.
6569
6570         * predict.c: Fix typos and grammar.
6571
6572         * gcse.c (insert_insn_end_bb): Remove unused variables.
6573
6574 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
6575
6576         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
6577         (attempt_auto_inc): LIkewise.
6578         (mark_used_reg): Likewise.
6579         (try_pre_increment_1): Likewise.
6580         * regclass.c (regclass): Likewise.
6581         * global.c (allocno_compare): Update comment; change scaling factor.
6582         * local-alloc.c (QTY_CMP_PRI): Likewise.
6583         * regs.h (REG_FREQ_FROM_BB): New.
6584         (REG_FREQ_MAX): Likewise.
6585
6586 2001-07-30  H.J. Lu <hjl@gnu.org>
6587
6588         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
6589         -D_GNU_SOURCE.
6590
6591 2001-07-30  H.J. Lu  (hjl@gnu.org)
6592
6593         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
6594         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
6595         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
6596
6597 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
6598
6599         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
6600         as -mthumb-interwork when -mcpu=arm7 is specified.
6601
6602 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
6603
6604         * predict.def (noreturn, loop branch, loop exit): Mark as first
6605         match heuristics.
6606
6607 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
6608
6609         * combine.c (try_combine): Avoid barrier after noop jumps.
6610
6611 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6612
6613         * cpphash.h (struct cpp_reader): Remove import_warning.
6614         * cpplib.c (skip_rest_of_line): Don't bother turning off
6615         macro expansion.
6616         (parse_include): Move include handling to...
6617         (do_include_common): ... here.  Move import warning from...
6618         (do_import): ... here.
6619         (do_pragma_poison): Don't do a callback for poison identifiers.
6620         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
6621         * cppmain.c (setup_callbacks): Similarly.
6622
6623 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
6624
6625         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
6626         handle multiple sets.
6627         * except.c (sjlj_mark_call_sites): .... here.
6628         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
6629
6630 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
6631
6632         Suggested by Richard Henderson and Richard Kenner:
6633         * combine.c (recog_for_combine): Use the fake recog
6634         only if instruction does not match.
6635         * rtl.h (NOOP_MOVE_INSN_CODE): New.
6636         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
6637
6638         * combine.c (try_combine): Discover noop jump as direct jump.
6639
6640 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
6641
6642         * df.c (df_rd_global_compute): Add successors to worklist, not
6643         current item.
6644         (df_ru_global_compute): Ditto.
6645
6646 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
6647
6648         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
6649         increment REG_N_SETS.
6650
6651 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
6652
6653         * sbitmap.h: New prototype for sbitmap_a_xor_b.
6654
6655         * sbitmap.c (sbitmap_a_xor_b): New function.
6656         ifdef the basic block stuff on IN_GCC.
6657
6658 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6659
6660         * cppexp.c (parse_defined): Always record the macro name.
6661         (lex): Don't worry about identifiers, or special-case
6662         CPP_NOT here.
6663         (_cpp_parse_expr): Figure out at the end of the routine
6664         whether we saw a valid !defined() expression.
6665         * cppfiles.c (stack_include_file): Update for mi_valid.
6666         (_cpp_pop_file_buffer): Similarly.
6667         * cpplex.c (_cpp_lex_token): Similarly.
6668         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
6669         mi_if_not_defined, mi_lexed): Remove.
6670         (mi_valid): New.
6671         * cpplib.c (do_if): Simplify.
6672         (do_endif, push_conditional, _cpp_handle_directive): Update
6673         for renaming of mi_state to mi_valid.
6674 doc:
6675         * cpp.texi: Add index entries for digraphs, and add comment
6676         that C++ refers to them as alternative tokens.
6677
6678 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
6679
6680         * basic-block.h (CLEANUP_PRE_LOOP): New.
6681         * except.c (finish_eh_generation): Update call of cleanup_cfg.
6682         * sibcall.c (optimize_sibling_calls): Likewise.
6683         * toplev.c (rest_of_compilation): Likewise.
6684         * flow.c (try_forward_edges): Take argument MODE;
6685         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
6686         (try_optimize_cfg): Update call of try_forward_edges.
6687
6688 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
6689                                Jan Hubicka  <jh@suse.cz>
6690
6691         * (validate_replace_rtx_1): Fix simplification of MINUS.
6692
6693 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6694
6695         PR preprocessor/3669
6696         * cppinit.c (init_dependency_output): Turn off dump requests
6697         if sending dependencies to stdout.
6698
6699 2001-07-28  Richard Henderson  <rth@redhat.com>
6700
6701         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
6702         not optimizing.
6703
6704 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
6705
6706         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
6707
6708 2001-07-28  Kazu Hirata  <kazu@hxi.com>
6709
6710         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
6711         is VAR_DECL first to prevent an ICE.
6712
6713 2001-07-28  Richard Henderson  <rth@redhat.com>
6714
6715         * varasm.c (immed_real_const_1): Don't elide special cases for
6716         nested functions.
6717         (clear_const_double_mem): Clear const_tiny_rtx too.
6718
6719 2001-07-28  Richard Henderson  <rth@redhat.com>
6720
6721         * dwarf2out.c (dw_val_class_offset): New.
6722         (struct dw_ranges_struct, dw_ranges_ref): New.
6723         (ranges_table, ranges_table_allocated): New.
6724         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
6725         (add_AT_offset, add_ranges, output_ranges): New.
6726         (print_die, output_die): Handle dw_val_class_offset.
6727         (attr_checksum, size_of_die, value_format): Likewise.
6728         (gen_lexical_block_die): Handle non-contiguous blocks.
6729         (gen_block_die): Likewise.
6730         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
6731         if needed.  Dump the ranges table.
6732         * final.c (final_start_function): Remove unnecessary notes and
6733         rebuild the block tree before numbering the blocks.
6734         * function.c (reorder_blocks_0): Walk the existing block tree
6735         to unmark all blocks.
6736         (reorder_blocks_1): Create block fragments when duplicate block
6737         notes are seen.
6738         (reorder_fix_fragments): New.
6739         (reorder_blocks): Call it.
6740         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
6741
6742 2001-07-28  Richard Henderson  <rth@redhat.com>
6743
6744         * emit-rtl.c (adjust_address): Make a copy of the memory address.
6745
6746 2001-07-28  Richard Henderson  <rth@redhat.com>
6747
6748         * flow.c (add_to_mem_set_list): New function.
6749         (init_propagate_block_info): Use it.
6750         (mark_set_1): Likewise.
6751         (insn_dead_p): Canonicalize memory address for dead store
6752         comparison.  Allow wider mode stores to kill narrower mode stores.
6753         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
6754         (invalidate_mems_from_set): Don't handle MEMs.
6755
6756 2001-07-28  Kazu Hirata  <kazu@hxi.com>
6757
6758         * config/h8300/h8300.h: Fix formatting.
6759
6760 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6761
6762         * basic-block.h (EDGE_FREQUENCY): New macro.
6763         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
6764         for new BB/edges.
6765         * flow.c (find_sub_basic_blocks): Likewise.
6766         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
6767         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
6768
6769         * predict.c (DEF_PREDICTOR): New argument FLAGS.
6770         (HITRATE): New macro.
6771         (PRED_FLAG_FIRST_MATCH): New constant.
6772         (predictor_info): New field flgags.
6773         (combine_predictions_for_insn): Use DS theory to combine
6774         probabilities; set the edge probabilities when finished.
6775         (estimate_probability): Avoid duplicated matches
6776         of LOOP_BRANCH heuristics for nested loops; update comment.
6777         * predict.def: Add flags for each prediction, set probabilities
6778         according to B&L paper.
6779         * predict.h (DEF_PREDICTOR): New argument FLAGS.
6780
6781         * profile.c (compute_branch_probabilities):  Cleanup way the edge
6782         probabilities are computed and REG_BR_PROB notes are dropped; if
6783         values does not match, emit error.
6784         (init_branch_prob): Do error instead of warning when profile driven
6785         feedback is missing or corrupt.
6786
6787 2001-07-27  DJ Delorie  <dj@redhat.com>
6788
6789         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
6790         against a constant, try to adjust the compare to have the desired
6791         constant in it so that min/max optimizations happen more often.
6792
6793 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
6794
6795         * flow.c (last_loop_beg_note): New function.
6796         (redirect_edge_and_branch): Use it.
6797         (split_edge): Likewise.
6798
6799         * alias.c (loop_p): Avoid uninitialized memory access.
6800
6801         * flow.c (try_forward_edges): Avoid accessing freed memory.
6802
6803         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
6804         variable access.
6805
6806 2001-07-26  Andrew Haley  <aph@redhat.com>
6807         Joern Rennecke <amylaar@redhat.com>
6808
6809         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
6810         (SUBTARGET_CPP_ENDIAN_SPEC): New.
6811         (SUBTARGET_CPP_SPEC): New.
6812         (CPP_SPEC): Remove.
6813         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
6814         (SUBTARGET_CPP_PTR_SPEC): New.
6815         (CPP_DEFAULT_CPU_SPEC): New.
6816         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
6817         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
6818         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
6819         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
6820         (SUBTARGET_CPP_SPEC): Define as an empty string.
6821
6822 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6823
6824         * doc/install.texi (Configuration): Properly link the host
6825         specific instructions also when generating HTML.
6826
6827 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
6828
6829         * flow.c (redirect_edge_and_branch_force): Test
6830         target->global_live_at_start.
6831
6832 2001-07-26  Richard Henderson  <rth@redhat.com>
6833
6834         * simplify-rtx.c (avoid_constant_pool_reference): Export.
6835         * rtl.h (avoid_constant_pool_reference): Declare it.
6836         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
6837         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
6838
6839 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
6840
6841         * rtl.h (cleanup_barriers): Declare.
6842         * jump.c (cleanup_barriers): New function.
6843         * toplev.c (rest_of_compilation): Call cleanup_barriers
6844         before loop optimizer and after bb_reorder.
6845
6846         * flow.c (back_edge_of_syntactic_loop_p): New.
6847         (split_edge): Use it.
6848
6849 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6850
6851         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
6852
6853 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
6854
6855         * cse.c (cse_process_notes): Replace any registers if the address
6856         remains valid.
6857
6858 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
6859
6860         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
6861         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
6862         (propagate_block): Update prototype.
6863         * flow.c (update_life_info): Simplify the CFG and
6864         recalculate the global regs which are alive when
6865         removing dead code during a global update.
6866         (propagate_block): Return non-zero if an INSN is
6867         deleted.
6868
6869 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6870
6871         * Makefile.in (LIBICONV): Define.
6872
6873 2001-07-26  Catherine Moore  <clm@redhat.com>
6874
6875         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
6876         of conditional to avoid tree checking errors.
6877
6878 2001-07-26  Kazu Hirata  <kazu@hxi.com>
6879
6880         * regmove.c (regmove_optimize): Don't replace a reg with
6881         another reg of a different mode.
6882
6883 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
6884
6885         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
6886         limit length of dependancy flush list.
6887         * params.h (MAX_PENDING_LIST_LENGTH): Define.
6888         * sched-int.h  (struct deps): Add pending_flush_length field.
6889         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
6890         has 1 element in it.
6891         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
6892         (sched_analyze): After a jump, if the pending memory flush list is too
6893         large, flush the pending lists.
6894         (init_deps): Initialize pending_flush_length to 0.
6895         * doc/invoke.texi (max_pending_list_length): Document parameter.
6896
6897 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6898
6899         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
6900         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
6901         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
6902
6903 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6904
6905         * cpphash.h (struct_lexer_state): Delete was_skipping.
6906         Move skipping here from struct cpp_reader.
6907         * cpplex.c (parse_identifier): Update.
6908         (_cpp_lex_token): Don't skip tokens in a directive.
6909         * cpplib.c (struct if_stack): Update.
6910         (start_directive, end_directive): Don't change skipping state.
6911         (_cpp_handle_directive): Update.
6912         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
6913         (do_else, do_endif): Update; only check for excess tokens if not
6914         in a skipped conditional block.
6915         (push_conditional): Update for new struct if_stack.
6916
6917 2001-07-26  Graham Stott  <grahams@redhat.com>
6918
6919         * function.c (locate_and_pad_parm): Also pad initial offset
6920         so that the total argument size also includes the padding.
6921
6922 2001-07-26  Graham Stott <grahams@redhat.com>
6923
6924         * gensupport.c (alter_output_for_insn): Correct enable checking failure
6925         change XSTR to XTMPL.
6926
6927         (process_one_cond_exec): Likewise
6928
6929 2001-07-25  Richard Henderson  <rth@redhat.com>
6930
6931         * varasm.c (assemble_variable): Create DECL_RTL before setting
6932         TREE_ASM_WRITTEN.
6933
6934 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
6935
6936         * predict.c (estimate_probability): Avoid duplicated predictions.
6937
6938         * loop.c (find_and_verify_loops): Grok multiple barriers.
6939
6940 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6941
6942         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
6943
6944         * dbxout.c: Consistently use putc instead of fputc.
6945         (print_wide_int): New function; call instead of direct fprintf.
6946         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
6947         (dbxout_type_fields, dbxout_type_method_1): Likewise.
6948         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
6949         (print_int_cst_octal): Likewise.
6950         (print_octal): Show we wrote characters.
6951         (dbxout_type): Set have_used_extensions in more places.
6952
6953 2001-07-25  Catherine Moore  <clm@redhat.com>
6954
6955         * config/v850/v850.c (v850_va_arg):  Use addr
6956         instead of valist to build incr.
6957
6958 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
6959
6960         * flow.c (delete_dead_jumptables): New function.
6961         (life_analyzis): Call it.
6962         * bb-reorder.c (skip_insns_after_block): Handle contradictory
6963         sequences.
6964
6965 2001-07-25  Richard Henderson  <rth@redhat.com>
6966
6967         * except.c (reachable_handlers): Handle a region being removed
6968         out from under a RESX.
6969
6970 2001-07-25  Richard Henderson  <rth@redhat.com>
6971
6972         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
6973         swap GE/GT if it is an fp comparison.
6974
6975 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
6976
6977         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
6978         operands.
6979
6980 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
6981
6982         * ssa.c (rename_insn_1): Do not wrap an assignment to a
6983         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
6984         glitch.
6985
6986         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
6987         throw an exception.
6988         (visit_expression): When attempting to simplify an expression,
6989         retrieve any modes for arguments before they are simplified
6990         to constants.
6991
6992 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
6993             Janis Johnson  <janis@us.ibm.com>
6994
6995         * stmt.c (expand_goto): A nonlocal goto can be a call too.
6996         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
6997         pointer parameters to match documented usage of nonlocal_goto.
6998         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
6999         parameters to their correct order.
7000         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
7001         parameters to their correct order.
7002
7003 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
7004
7005         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
7006
7007 2001-07-25  Jan Hubicka  <jh@suse.cz>
7008             Richard Henderson  <rth@redhat.com>
7009
7010         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
7011         the sequence.
7012         (make_edges): New argument update_p; populate the edge cache if set.
7013         (find_basic_blocks): Update make_edges invocation.
7014
7015 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7016
7017         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
7018
7019 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7020
7021         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
7022         -Acpu and -Amachine.h.
7023         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
7024         Corrected header to say ELF not a.out.
7025         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
7026         when given -msoft-float.
7027
7028 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7029
7030         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
7031         extra multilib parts like arm-elf.
7032         (i960-*-coff*, i960-*-rtems): Should not use collect2.
7033         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
7034         crtfini.o as extra multilib parts.
7035
7036 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7037
7038         * configure.in: Add rtems as a supported thread model.
7039         * gthr-rtems.h: Add missing entry point __gthread_active_p.
7040         * configure: Rebuilt.
7041
7042 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
7043
7044         * stor-layout.c (get_mode_alignment): make it work when
7045         BITS_PER_UNIT is not a power of two.
7046         * builtins.c (get_pointer_alignment): Likewise.
7047
7048 2001-07-24  Richard Henderson  <rth@redhat.com>
7049
7050         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
7051         the retrieved constant into the expected mode.
7052
7053 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
7054
7055         * flow.c (try_simplify_condjump): Avoid duplicated edges.
7056         (verify_flow_info): Check for duplicated edges; clarify
7057         error reporting.
7058
7059         * flow.c (block_label): Update basic_block_for_insn.
7060         (commit_edge_insertions): Call compute_bb_for_insn.
7061
7062         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
7063         returns too.
7064
7065         * flow.c (redirect_edge_and_branch,
7066         try_optimize_cfg): Use redirect_edge_succ_nodup
7067         (redirect_edge_succ_nodup): New.
7068         * basic_block.h (redirect_edge_succ_nodup): Declare.
7069
7070         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
7071         after gcse.
7072
7073 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
7074
7075         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
7076         (try_crossjump_to_edge): Update commetns.
7077         (try_crossjump_bb): Likewise.
7078
7079 2001-07-24  Richard Henderson  <rth@redhat.com>
7080
7081         * combine.c (distribute_notes): Move set of need_refresh
7082         for noop_move_p down to catch all cases.
7083
7084 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
7085
7086         * recog.c (split_all_insns_noflow): New.
7087         * rtl.h (split_all_insns_noflow): Declare.
7088         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
7089         * m68hc11.c (m68hc11_reorg): Likewise.
7090         * sh.c (machine_dependent_reorg): Likewise.
7091         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
7092         call.
7093
7094 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
7095
7096         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
7097         (ashlsi3_n splitter): Likewise.
7098         (lshrsi3_n splitter): Likewise.
7099
7100         (GOTaddr2picreg): Make const SImode.
7101         (sym_label2reg): Likewise.
7102         (symGOT2reg): Likewise.
7103         (symGOTOFF2reg) Likewise.
7104
7105         (casesi_worker_0): Make unspec SImode.
7106
7107 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
7108
7109         * config/sh/sh.c (barrier_align): Check that an operand really is
7110         an insn before extracting its INSN_CODE.
7111
7112 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
7113
7114         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
7115         dangling else.
7116
7117         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
7118         for SImode to prevent overflow.
7119
7120 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7121
7122         * config/mips/irix6-libc-compat.c: New file.
7123         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
7124         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
7125         passing workaround.
7126
7127 2001-07-24  lars brinkhoff  <lars@nocrew.org>
7128
7129         * rtl.texi (REG_POINTER): Document.
7130         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
7131         QFmode, HFmode, TQFmode, QCmode, and HCmode.
7132
7133 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
7134
7135         * flow.c (delete_noop_moves): Do not confuse libcall regions.
7136
7137 2001-07-23  Richard Henderson  <rth@redhat.com>
7138
7139         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
7140
7141 2001-07-23  Kazu Hirata  <kazu@hxi.com>
7142
7143         * config/h8300/h8300-protos.h: Add a prototype for
7144         general_operand_dst_push.
7145         * config/h8300/h8300.c (general_operand_dst_push): New.
7146         * config/h8300/h8300.h (OK_FOR_T): New.
7147         (EXTRA_CONSTRAINT): Use it.
7148         * config/h8300/h8300.md (movqi_push): Remove and integrate into
7149         the existing movqi pattern.
7150         (movhi_push): Likewise.
7151
7152         * reload.c: Fix comment typos.
7153
7154 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
7155
7156         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
7157
7158 2001-07-23  H.J. Lu  (hjl@gnu.org)
7159
7160         * doc/extend.texi: Update __builtin_return_address and
7161         __builtin_frame_address.
7162
7163 2001-07-23  Richard Henderson  <rth@redhat.com>
7164
7165         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
7166         before CSE.
7167         * config/i386/i386.md: New setcc+movzbl peephole2.
7168
7169 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7170
7171         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
7172         * objc/objc-act.c: Include debug.h.
7173         (synth_module_prologue): Save and restore debug hooks too.
7174
7175 2001-07-23  lars brinkhoff  <lars@nocrew.org>
7176
7177         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
7178         and C4X_FLOAT_FORMAT.
7179         (BOOL_TYPE_SIZE): Document.
7180
7181 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
7182
7183         * unroll.c (loop_iterations): Fix miscalculation of initial
7184         giv offset.
7185
7186 2001-07-13  Andrew Haley  <aph@redhat.com>
7187
7188         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
7189         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
7190         * config/sh/sh.c (sh_can_redirect_branch): New function.
7191         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
7192         * reorg.c (steal_delay_list_from_target): Use
7193         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
7194
7195 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
7196
7197         * flow.c (try_simplify_condjump): Unlink insn chain on
7198         fallthru edge; use can_fallthru.
7199
7200 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
7201
7202         * basic-block.h (find_sub_basic_block): Declare.
7203         * flow.c (make_edges): New arguments MIN and MAX;
7204         (find_sub_basic_blocks): Revamp to use make_edges
7205         and purge_dead_edges.
7206         (find_basic_blocks): Update call of find_sub_basic_block.
7207
7208         * recog.c (split_all_insns): Always expect CFG to be consistent;
7209         call find_sub_basic_blocks in case something has changed.
7210         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
7211         has been built.
7212
7213         * basic-block.h (delete_noop_moves): Declare.
7214         * combine.c (combine_instructions): Call it.
7215         (recog_for_combine): Tolerate noop moves
7216         (distribute_notes): Force refresh when register dies at noop move.
7217         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
7218         too.
7219         (life_analysis): Update delete_noop_moves call.
7220         (set_noop_p): Move too ...
7221         * rtlanal.c (noop_move_p): ... here.
7222         * rtl.h (noop_move_p): Declare.
7223
7224         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
7225         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
7226         after combine.
7227         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
7228         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
7229
7230 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
7231
7232         * reload.c (push_reload): Fix typo in comment.
7233         (find_reloads_address): Ditto.
7234         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
7235
7236 2001-07-22  Richard Henderson  <rth@redhat.com>
7237
7238         * flow.c: Grammar check and clarify a lot of comments.
7239         (try_simplify_condjump): Rename variables to be clearer.
7240         (try_forward_edges): Skip complex and fallthru edges.
7241         Rearrange tests to avoid duplicate checks.
7242         (flow_find_cross_jump): Likewise.
7243         (outgoing_edges_match): Allow match if neither branch has
7244         probability data.  Loosen probability match to 5%.
7245         (try_crossjump_to_edge): Hoist repeated indirection into
7246         local variables.
7247         (try_crossjump_bb): Don't check complex edges.  Eliminate
7248         redundant crossjump tests.
7249         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
7250         checks before more expensive checks.
7251
7252 2001-07-22  Richard Henderson  <rth@redhat.com>
7253
7254         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
7255         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
7256         arguments.
7257
7258 2001-07-22  Richard Henderson  <rth@redhat.com>
7259
7260         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
7261         (const_sint32_operand): Likewise.
7262         * m68k.md (anon mulsi pattern): Use const_int_operand not
7263         const_sint32_operand.
7264         (umulsi3_highpart): Zero extend a constant input.
7265         (smulsi3_highpart): Don't bother checking SImode constant.
7266         (const_umulsi3_highpart): Give op3 DImode.
7267         (const_smulsi3_highpart): Likewise.
7268
7269 2001-07-22  Richard Henderson  <rth@redhat.com>
7270
7271         * flow.c (split_block): Make sure bb_note is included in the
7272         new block when splitting before a label.
7273
7274 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
7275
7276         * basic-block.h (redirect_edge_and_branch_force,
7277         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
7278         * flow.c (redirect_edge_and_branch_force,
7279         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
7280         (redirect_edge_and_branch_force): Fix copying of lifeness information.
7281         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
7282         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
7283         instead of label; update CFG after transformation.
7284         (find_if_case_1): Update call, use redirect_edge_and_branch_force
7285         for finishing the transformation; handle even case where ELSE
7286         does not follow THEN.
7287         (find_if_case_2): Update call of dead_or_predictable; simplify
7288         CFG update.
7289
7290         * emit-rtl.c (split_branch_probability): New global variable.
7291         (try_split): Take care to set split_branch_probability and
7292         create REG_BR_PROB note for new jump insns.
7293         * md.texi (define_split): Document new feature.
7294
7295         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
7296
7297 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7298
7299         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
7300         (asm_out_file): Remove redundant declaration.
7301         (assemble_asm): Remove old #if 0 block.
7302         (assemble_variable): Remove end of function; debug output is
7303         now handled with global_decl.  Remove old #if 0 block.  Update.
7304         Remove saved_in_section and associated no-op code.
7305         * Makefile.in (varasm.o): Correct dependencies.
7306
7307 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
7308
7309         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7310         the definition in defaults.h.
7311
7312 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
7313
7314         * jump.c: Update comments.
7315         (delete_barrier_successors, delete_unreferenced_labels,
7316         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
7317         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
7318         jump_optimize, jump_optimize_minimal): Kill.
7319         (rebuild_jump_labels): Move code from jump_optimize_1.
7320         (purge_line_number_notes): Likewise.
7321         (copy_loop_headers): Likewise.
7322         * reg-stack.c: Update comment.
7323         * stmt.c: Likewise.
7324         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
7325         JUMP_AFTER_REGSCAN): Kill.
7326         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
7327         purge_line_number_notes and copy_loop_headers.
7328
7329 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
7330            Richard Henderson  <rth@redhat.com>
7331
7332         * dbxout.c (dbxout_global_decl): New.
7333         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
7334         * sdbout.c (sdbout_finish): New.
7335         (sdbout_debug_hooks): Use it, add comments.
7336         (sdbout_global_decl): Defer initialised public vars to
7337         sdbout_finish.
7338         * varasm.c (assemble_variable): Don't output debug information
7339         for file-scope variables.
7340
7341 2001-07-22  Richard Henderson  <rth@redhat.com>
7342
7343         * config/alpha/alpha.c (get_trap_mode_suffix): New.
7344         (get_round_mode_suffix): New.
7345         (print_operand): Use them for [/].  Remove support for [&'`()+].
7346         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
7347         * config/alpha/alpha.md (attr round_suffix): New.
7348         (attr trap_suffix): New.
7349         (all insns): Set them appropriately.  Use %/ instead of the
7350         myriad punctuators.
7351
7352 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7353
7354         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
7355
7356 2001-07-22  Richard Henderson  <rth@redhat.com>
7357
7358         * regrename.c (regrename_optimize): Compute nregs for each
7359         potential target register.
7360
7361 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
7362            Richard Henderson  <rth@redhat.com>
7363
7364         * dbxout.c (dbxout_global_decl): New.
7365         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
7366         * sdbout.c (sdbout_finish): New.
7367         (sdbout_debug_hooks): Use it, add comments.
7368         (sdbout_global_decl): Defer initialised public vars to
7369         sdbout_finish.
7370         * varasm.c (assemble_variable): Don't output debug information
7371         for file-scope variables.
7372
7373 2001-07-21  H.J. Lu  (hjl@gnu.org)
7374
7375         * config/mips/mips.c (mips_cpu): Moved into ...
7376         (override_options): Here.
7377
7378         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
7379         mips_tune.
7380         (mips_cpu): Removed.
7381
7382 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7383
7384         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
7385         ("iorqi3"): Likewise.
7386         ("xorqi3"): Likewise.
7387         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
7388         ("*subhi3_sp): Likewise.
7389         ("*subhi3"): Likewise.
7390         ("extendhisi2"): Accept D, X and Y as source operand to avoid
7391         reload problems.
7392
7393 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
7394
7395         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
7396         * config/freebsd.h: Likewise.
7397         * config/linux.h: Likewise.
7398         * config/openbsd.h: Likewise.
7399         * config/alpha/linux-elf.h: Likewise.
7400         * config/arm/linux-elf.h: Likewise.
7401         * config/d30v/d30v.h: Likewise.
7402         * config/fr30/fr30.h: Likewise.
7403         * config/ia64/aix.h: Likewise.
7404         * config/ia64/ia64.h: Likewise.
7405         * config/mips/linux.h: Likewise.
7406         * config/pj/pj.h: Likewise.
7407         * config/rs6000/linux.h: Likewise.
7408         * config/sparc/linux.h: Likewise.
7409         * config/sparc/linux64.h: Likewise.
7410
7411 2001-07-20  Bruce Korb  <bkorb@gnu.org>
7412
7413         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
7414         because getc() and char* may disagree on signedness.
7415
7416 2001-07-20  Richard Henderson  <rth@redhat.com>
7417
7418         * doc/rtl.texi (REG_DEAD): Update for current semantics.
7419
7420         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
7421         insns to delete in the presence of cc0 in a jump insn.
7422
7423 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
7424                                Jan Hubicka  <jh@suse.cz>
7425
7426         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
7427         of doing the change by hand.
7428
7429 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
7430
7431         * rtlanal.c (set_noop_p): Return true for noop jumps.
7432
7433         * expr.c (emit_single_push_insn): Add call to push expander.
7434         * expr.h (optab_index): Add OTI_push
7435         (push_optab): New constant.
7436         * genopinit.c (optabs): Add push_optab.
7437         * optabs.c (init_optab): Init push optab.
7438         * md.texi (push??1): Document
7439
7440 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7441
7442         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
7443         expand to emit the pattern; put a REG_INC note for push/pop
7444         instructions.
7445         ("movdf", "movdf_internal"): Likewise.
7446         ("movsi", "movsi_internal"): Likewise.
7447         ("movsf", "movsf_internal"): Likewise.
7448         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
7449
7450 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7451
7452         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
7453         gen_highpart.
7454
7455 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
7456
7457         * params.def: Change default max inline insns to 100.
7458
7459 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
7460
7461         * combine.c (combine_simplify_rtx): Generate a new shift operation
7462         when simplifying the first operand of a (neg (ashift)) expression.
7463
7464 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7465
7466         * regclass.c (N_REG_INTS): Use only 32 bits per element.
7467
7468 2001-07-20  Kelley Cook  <kelley.cook@home.com>
7469
7470         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
7471         information.   Move rest into ...
7472         (*-*-solaris): ... here.  Eliminate redundant information and
7473         reword necessary packages section.  Delete 4.x assembler bug info.
7474         (sparc-sun-*): Merge into ...
7475         (sparc-sun-sunos*): here.
7476
7477 2001-07-20  Catherine Moore  <clm@redhat.com>
7478
7479         * config/v850/v850.md (casesi): Generate LABEL_REF
7480         with Pmode.
7481
7482 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
7483
7484         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
7485         * i386.c (ix86_zero_extend_to_Pmode): Make global.
7486         * i386.md (strclrsi expander): Use it.
7487
7488 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7489
7490         * integrate.c (copy_insn_list): handle
7491         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
7492         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
7493         identically as to CODE_LABEL.
7494
7495         * fold-const (fold): Convert A/B/C to A/(B*C) and
7496         A/(B/C) to (A/B)*C
7497
7498         * except.c (connect_post_landing_pads): Delete the RESX insns.
7499
7500 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
7501
7502         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
7503
7504         * config/mips/mips.md (nmadd/nmsub): Use macro.
7505
7506 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
7507
7508         * cppinit.c (remove_dup_dir): Make static.
7509         (remove_dup_dirs): Make static. Only warn about preempting a
7510         system directory with a non-system directory.
7511
7512 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
7513
7514         * ifcvt.c (noce_try_store_flag_constants): Correct order
7515         of parameters to trunc_int_for_mode.
7516
7517 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
7518
7519         * reorg.c (fill_simple_delay_slots): If an instruction might throw
7520         an exception that will be caught within this function, do not fill
7521         its delay slot with any subsequent instruction.
7522
7523 2001-07-19  Steve Ellcey <sje@cup.hp.com>
7524
7525         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
7526         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
7527         pointer extension instruction.
7528         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
7529         * simplify-rtx.c (simplify_unary_operation) Likewise.
7530         * explow.c (convert_memory_address) Check value of
7531         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
7532         less than zero.
7533         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
7534         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
7535         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
7536         Add Multilib Support.
7537         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
7538         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
7539         Add Multilib Support.
7540         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
7541         support.
7542         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
7543         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
7544         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
7545
7546 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
7547
7548         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
7549         old and new operands in `<', `3' and `b'.
7550
7551 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7552
7553         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
7554         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
7555         (toplev.o): Don't depend on xcoffout.h.
7556         * c-decl.c: Include debug.h
7557         (duplicate_decls): Use debug hook.
7558         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
7559         (dbx_debug_hooks, xcoff_debug_hooks): Update.
7560         (dbxout_types): Remove.
7561         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
7562         * debug.c (do_nothing_debug_hooks): Update.
7563         (debug_true_tree, debug_nothing_rtx): New.
7564         * debug.h (struct rtx_def): New.
7565         (struct gcc_debug_hooks): New hooks ignore_block,
7566         outlining_inline_function and label.
7567         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
7568         dwarf2out_frame_finish): New.
7569         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
7570         Make static, update prototype.
7571         (dwarf2_debug_hooks): Update.
7572         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
7573         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
7574         * dwarfout.c (dwarf_debug_hooks): Update.
7575         * emit-rtl.c: Include debug.h.
7576         (remove_unnecessary_notes): Use debug hook.
7577         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
7578         (final_scan_insn): Use debug hook.
7579         * integrate.c (output_inline_function): Use debug hook.
7580         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
7581         (sdb_debug_hooks): Update.
7582         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
7583         * toplev.c: Don't include xcoffout.h.
7584         (note_outlining_of_inline_function, debug_ignore_block): Remove.
7585         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
7586         Remove.
7587         * tree.h (dwarf2out_do_frame): Remove.
7588
7589 2001-07-19  Catherine Moore  <clm@cygnus.com>
7590
7591         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
7592
7593 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
7594
7595         * reload1.c (eliminate_regs_in_insn): When updating a set
7596         to the frame pointer to the hardware frame pointer, perform
7597         the update always not just when REPLACE is set.
7598
7599         * reload1.c (choose_reload_regs): Don't inherit a reload
7600         that crosses multiple registers if registers past the first
7601         don't fit in the desired class.
7602
7603         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
7604         when negating constants.
7605
7606 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
7607
7608         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
7609         * doc/tree.texi: Ditto.
7610
7611 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
7612             Jakub Jelinek  <jakub@redhat.com>
7613
7614         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
7615         (extract_cie_info): Handle "eh" augmentation properly,
7616         remember eh_ptr.
7617         (struct frame_state, __frame_state_for): New.
7618
7619 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7620
7621         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
7622         HANDLE_SYSV_PRAGMA): Define.
7623         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
7624         previous args.
7625         (copy_object): Caller changed.
7626
7627 2001-07-19  Andreas Schwab  <schwab@suse.de>
7628
7629         * configure.in (assembler dwarf2 debug_line support): Define nop
7630         insn for m68k.
7631         * configure: Regenerated.
7632
7633 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7634
7635         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
7636         dwarfout.h.
7637         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
7638         to conditionally compiled block.
7639         (dbx_debug_hooks, xcoff_debug_hooks): Update.
7640         * dbxout.h (dbxout_function): Remove.
7641         * debug.c (do_nothing_debug_hooks): Update.
7642         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
7643         global_decl, deferred_inline_function.
7644         * dwarf2out.c (dwarf2_debug_hooks): Update.
7645         (dwarf2out_global_decl): New.
7646         * dwarfout.c: Don't include dwarfout.h.
7647         (dwarfout_global_decl, dwarfout_function_decl,
7648         dwarfout_deferred_inline_function): New.
7649         (dwarf_debug_hooks): Update.
7650         * dwarfout.h: Remove.
7651         * final.c: Don't include dwarfout.h.
7652         * sdbout.c (sdbout_global_decl): New.
7653         (sdbout_debug_hooks): Update.
7654         * toplev.c: Don't include dwarfout.h.
7655         (check_global_declarations, rest_of_compilation): Use new debug hooks.
7656         (note_deferral_of_defined_inline_function): Remove.
7657         * toplev.h (note_deferral_of_defined_inline_function): Remove.
7658         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
7659         * ch/lex.c: Don't include dwarfout.h.
7660         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
7661         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
7662         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
7663         * cp/optimize.c: Include debug.h.
7664         (maybe_clone_body): Use debug hook.
7665         * cp/semantics.c: Include debug.h.
7666         (expand_body): Use debug hook.
7667         * po/POTFILES.in: Remove dwarfout.h.
7668
7669 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7670
7671         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
7672         * c-parse.in (yyerror, _yylex): Similarly.
7673         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
7674         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
7675         Update comments.
7676         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
7677         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
7678
7679 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
7680
7681         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
7682         in-class declaration at -g1.  Fixes c++/2814.
7683
7684 2001-07-18  Richard Henderson  <rth@redhat.com>
7685
7686         * doc/md.texi (reload_in/out): Document restrictions in predicates
7687         and constraints for these patterns.  Document empty string matching
7688         ALL_REGS.
7689
7690 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7691
7692         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
7693
7694 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7695
7696         * cse.c: Undo my previous patch.
7697
7698 2001-07-18  Tom Tromey  <tromey@redhat.com>
7699
7700         For PR java/2812:
7701         * configure: Rebuilt.
7702         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
7703         instead.
7704         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
7705
7706 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
7707                                Jan Hubicka  <jh@suse.cz>
7708
7709         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
7710         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
7711         * jump.c (mark_jump_label): Do not forward branches.
7712
7713 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
7714
7715         * cse.c (delete_trivially_dead_insns): Delete the libcall block
7716         when return value is unused.
7717
7718 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7719
7720         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
7721
7722 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
7723
7724         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
7725         on error.  We can't blindly return the result of
7726         pthread_mutex_trylock because it returns a positive number on
7727         error, while we must return -1 on error.
7728         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
7729         fixes.
7730         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
7731
7732 2001-07-18  Andreas Jaeger  <aj@suse.de>
7733
7734         * integrate.c (output_inline_function): Correct type of debug_hooks.
7735
7736 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
7737
7738         * combine.c (combine_simplify_rtx): DIV can be treated
7739         associatively for floats if unsafe math optimisations are enabled.
7740
7741 2001-07-17  Richard Henderson  <rth@redhat.com>
7742
7743         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
7744
7745 2001-07-17  Richard Henderson  <rth@redhat.com>
7746
7747         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
7748         don't force the function address into a register.
7749         (expand_call, emit_library_call_value_1): Update callers.
7750         * builtins.c (expand_builtin_apply): Likewise.
7751         * expr.h (prepare_call_address): Update decl.
7752
7753 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
7754
7755         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
7756         config directory.
7757         * config/i386/chorus.h: Move up.
7758         * config/sparc/chorus.h: Likewise.
7759         * config/rs6000/chorus.h: Likewise.
7760         * config/chorus.h: Moved here.
7761
7762 2001-07-17  Andreas Schwab  <schwab@suse.de>
7763
7764        * configure.in  (assembler eh_frame optimization): Handle big
7765        endian.
7766        * configure: Regenerated.
7767
7768 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
7769
7770         * expr.c (epxand_expr): Convert divisions into multiplications by
7771         reciprocals if -ffast-math.
7772
7773 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7774
7775         * dbxout.c (dbxout_really_begin_function): Rename to
7776         dbxout_begin_function.
7777         (dbx_debug_hooks, xcoff_debug_hooks): Update.
7778         (dbxout_begin_function): Remove.
7779         (dbxout_function): Update.
7780         (dbxout_source_line): Update prototype.
7781         * dbxout.h (dbxout_begin_function): Remove.
7782         * debug.c (do_nothing_debug_hooks): Update.
7783         (debug_nothing_tree): Update.
7784         (debug_nothing_charstar_rtx): Remove.
7785         * debug.h (union tree_node): Declare.
7786         (struct rtx_def): Remove.
7787         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
7788         begin_function.  Change source_line prototype.
7789         (debug_nothing_tree): New.
7790         (debug_nothing_charstar_rtx): Delete.
7791         (dwarf2out_begin_prologue): Moved from ...
7792         * tree.h: ... here.
7793         * dwarf2out.c (dwarf2_debug_hooks): Update.
7794         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
7795         debug info, call dwarf2out_source_line.
7796         (dwarf2out_souce_line): Update prototype.
7797         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
7798         Change prototype, make static.
7799         (dwarfout_source_line): Update prototype.
7800         (dwarf_debug_hooks): Update.
7801         * dwarfout.h (dwarfout_begin_function): Remove.
7802         * final.c (final_start_function, final_scan_insn): Use appropriate
7803         debug hooks, update to use notice_source_line.
7804         (output_source_line): Rename notice_source_line.  Don't call the
7805         source_line debug hook.
7806         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
7807         make static, update prototype.
7808         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
7809         prototype.
7810         (sdbout_end_prologue): New.
7811         (sdbout_source_line): Update prototype.
7812         (sdbout_debug_hooks): Update.
7813         (sdbout_symbol): Remove unused var.
7814         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
7815         Delete.
7816         * varasm.c: Include debug.h.
7817         (assemble_start_function): Use begin_function debug_hook.
7818         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
7819         update with prototype.
7820         (xcoffout_source_line): Update prototype.
7821         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
7822         update prototype.
7823         (xcoffout_source_line): Update prototype.
7824
7825 2001-07-17  Richard Henderson  <rth@redhat.com>
7826
7827         * c-typeck.c (build_binary_op): Do not shorten unsigned
7828         right shift after sign extension.
7829
7830 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
7831
7832         * combine.c (combine_simplify_rtx): Attempt to simplify
7833         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
7834
7835         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
7836         (simplify_binary_operation, simplify_unary_operation,
7837          simplify_relational_operation): Use it.
7838
7839         * combine.c (combine_simplify_rtx): Don't do associative law
7840         on divisions; allow associative law on floats.
7841
7842 2001-07-17  H.J. Lu <hjl@gnu.org>
7843             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7844
7845         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
7846         ASM_OUTPUT_WEAK_ALIAS are defined.
7847         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
7848         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
7849         Moved ...
7850         * config/mips/iris5.h: ... here.
7851         (HANDLE_SYSV_PRAGMA): Defined as 1.
7852         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
7853         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
7854         symbol.
7855
7856 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7857
7858         * c-parse.in (all_prefix_attributes): New variable.
7859         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
7860         (maybe_resetattrs): New production.
7861         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
7862         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
7863         notype_initdcl, nested_function, notype_nested_function,
7864         component_decl, components, components_notype,
7865         component_declarator, component_notype_declarator,
7866         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
7867         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
7868         after a comma being applied to more than one declarator.
7869         * doc/extend.texi (Attribute Syntax): Update.  Remove
7870         documentation of bugs that are no longer present.
7871
7872 2001-07-13  Eric Christopher  <echristo@redhat.com>
7873
7874         * config/mips/mips.h: Change TUNE_MIPS* options to use
7875         mips_tune.
7876         (EXTRA_SPECS): Add cc1_cpu_spec.
7877         * config/mips/mips.md (muldf3): Fix typo.
7878
7879 2001-07-16  Richard Henderson  <rth@redhat.com>
7880
7881         * config/m68k/m68k.c: Include expr.h and reload.h.
7882         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
7883         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
7884
7885 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
7886             Richard Henderson  <rth@redhat.com>
7887
7888         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
7889         (insn_live_p): Fix fall off end of function.
7890         (dead_libcall_p): Remove COUNTS argument; update callers.
7891         (delete_trivially_dead_insns): Remove unused variables.
7892
7893 2001-07-17  Andreas Jaeger  <aj@suse.de>
7894
7895         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
7896         x86-64 pic support.
7897
7898         * lcm.c (optimize_mode_switching): Avoid warning for unused
7899         variable if !NORMAL_MODE.
7900
7901         * flow.c (try_crossjump_to_edge): Remove unused variable.
7902
7903 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7904
7905         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
7906         atexit declaration in stdlib.h.
7907
7908 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
7909
7910         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
7911
7912 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
7913
7914         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
7915         * except.c (finish_eh_generation): Update call of cleanup_cfg;
7916         do rebuild_jump_labels instead of jump_optimize
7917         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
7918         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
7919         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
7920
7921         * flow.c: Include timevar.h
7922         (find_basic_block): Push/pop timevar;
7923         (cleanup_cfg): Likewise.
7924         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
7925         * Makefile: Add dependencies on timevar.h
7926
7927         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
7928         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
7929
7930         * rtl.h (delete_trivially_dead_insns): Add new parameter.
7931         * toplev.c (rest_of_compilation): Update calls.
7932         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
7933         (delete_trivially_dead_insns): ... here; accept new argument
7934         preserve_basic_blocks; preserve basic blocks if set.
7935
7936         * reg-stack.c (stack_regs_mentioned): Return 0 if
7937         stack_regs_mentioned_data is not initialized.
7938         (reg_to_stack): Make stack_regs_mentioned survive after the
7939         reg-stack is completted; do not call cleanup_cfg.
7940         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
7941         make cleanup_cfg after bb-reorder to output to debug file.
7942
7943 2001-07-16  Richard Henderson  <rth@redhat.com>
7944
7945         * regclass.c (init_reg_sets): Use only 32 bits per initializer
7946         from int_reg_class_contents.
7947
7948 2001-07-16  Richard Henderson  <rth@redhat.com>
7949
7950         * hard-reg-set.h (regs_invalidated_by_call): Declare.
7951         * regclass.c (regs_invalidated_by_call): Move from cse.c.
7952         (init_reg_sets_1): Move initialization from cse_main.
7953         * cse.c (regs_invalidated_by_call): Move to regclass.c.
7954         (cse_main): Move its initialization also.
7955         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
7956         * flow.c (propagate_one_insn): Likewise.
7957         * gcse.c (compute_hash_table): Likewise.
7958         (compute_kill_rd, compute_store_table): Likewise.
7959         * sched-deps.c (sched_analyze_1): Likewise.
7960
7961 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
7962
7963         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
7964         gen_rtx_SET.
7965
7966 2001-07-16  Steve Ellcey <sje@cup.hp.com>
7967
7968         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
7969         in if statement so we don't access undefined memory.
7970
7971 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
7972
7973         * gcse.c: Update comment at top.
7974         Update comment on mem handling.
7975         mem_last_set, mem_first_set, mem_set_in_block: gone.
7976         Declaration of reg_set_info: gone.
7977         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
7978         pointless with load_killed_in_block_p (they are *more*
7979         conservative then it, not less, and less accurate).
7980         (oprs_not_set_p): Ditto.
7981         (alloc_gcse_mem): Don't allocate mem_set_in_block
7982         (free_gcse_mem): Don't free it, either.
7983         (record_last_mem_set_info): Update comment in front, remove
7984         mem_*set_* stuff. Note the reason we don't handle stores directly
7985         here.
7986         (compute_hash_table): Update comments to reflect reality. Remove
7987         mem_*set_* references.
7988         (reset_opr_set_tables): Remove mem_*set_* references.
7989         (mark_call): Ditto.
7990         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
7991         (mark_clobber): Ditto (on both parts, we double set here too).
7992         (expr_killed_p): Remove mem_set_in_block test.
7993         (compute_transp): Remove mem_set_in_block test.
7994
7995         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
7996         of edge, and removal of phi alternative to dump file.
7997         (ssa_ccp_substitute_constants): Add note about register now being
7998         constant, and which uses were replaced in what insns to dump file.
7999
8000 2001-07-16  Andreas Jaeger  <aj@suse.de>
8001
8002         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
8003         variables of type HOST_WIDEST_INT.
8004
8005         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
8006         (__bb_exit_func): Correct type of count_max to avoid overflow.
8007         (num_digits): Handle long long argument.
8008
8009         * combine.c (gen_lowpart_for_combine): Remove unused variable.
8010
8011 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8012
8013         * output.h (sdb_begin_function_line): Restore as an extern
8014         variable.
8015         * sdbout.c (sdb_begin_function_line): Make extern.
8016
8017 2001-07-15  Richard Henderson  <rth@redhat.com>
8018
8019         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
8020         * genrecog.c (maybe_both_true_mode): New.
8021         (maybe_both_true_2): Use it.
8022         (write_switch): Don't put Pmode in a switch.
8023         * rtl.c (mode arrays): Don't explicitly size them.
8024
8025 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8026
8027         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
8028         handling; move unconditional splitting before mode switching.
8029
8030         * i386.md (type): Add fistp type.
8031         (i387, length_attr, scheduling definitions): Handle this type.
8032         (fix_trunc?f?i2): Revamp to use mode switching.
8033         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
8034         * i386.h (fp_cw_mode): New enum
8035         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
8036         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
8037
8038 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8039
8040         * Makefile.in (integrate.o): Add debug.h.
8041         * integrate.c (debug.h): Add.
8042         (output_inline_function): Save, reset, and restore debug_hooks.
8043
8044 2001-07-15  Richard Henderson  <rth@redhat.com>
8045
8046         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
8047         instead of COMPARE for the EQUIV expression.
8048
8049 2001-07-15  Richard Henderson  <rth@redhat.com>
8050
8051         * flow.c (redirect_edge_and_branch_force): Initialize
8052         global_live_at_start and global_live_at_end.
8053         (allocate_bb_life_data): Export.
8054         * basic-block.h (allocate_bb_life_data): Declare.
8055         * toplev.c (rest_of_compilation): Call it.
8056
8057 2001-07-15  Richard Henderson  <rth@redhat.com>
8058
8059         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
8060         (alpha_tablejump_best_label): New.
8061         * config/alpha/alpha-protos.h: Declare them.
8062         * config/alpha/alpha.md: Use braced strings for code blocks.
8063         (tablejump_osf): Break out add with r29.
8064         (tablejump_osf_internal): Remove.
8065         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
8066         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
8067
8068 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8069
8070         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
8071         of the movable.
8072
8073         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
8074
8075         * i386-protos.h (ix86_split_fp_branch): Update prototype.
8076         (ix86_fp_jump_nontrivial_p): New.
8077         * i386.md (fp_jcc_?): Update call of split_fp_branch;
8078         use ix86_fp_jump_nontrivial_p.
8079         * i386.c (ix86_fp_jump_nontrivial_p): New.
8080         (ix86_split_fp_branch): Accept code instead of rtx.
8081         (ix86_expand_compare): Expand comparison early in case
8082         doing so is resonably cheap.
8083
8084 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
8085
8086         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
8087         not 'machine'.
8088         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
8089         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
8090
8091 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8092
8093         * dbxout.c (dbxout_source_line): Make static, update prototype.
8094         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
8095         (dbxout_init, dbxout_finish, dbxout_source_line,
8096         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
8097         * dbxout.h (dbxout_source_line): Delete.
8098         * debug.c (debug_nothing_file, debug_nothing_file_int,
8099         debug_nothing_file_charstar_rtx): New.
8100         (do_nothing_debug_hooks): Update.
8101         (debug_nothing_void, debug_nothing_charstar_rtx,
8102         dwarf2out_end_epilogue): New.
8103         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
8104         * debug.h (struct rtx_def): Declare.
8105         (gcc_debug_hooks): New hooks source_line, end_epilogue
8106         and end_function.
8107         (debug_nothing_void, debug_nothing_charstar_rtx,
8108         dwarf2out_end_epilogue): New.
8109         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
8110         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
8111         (dwarf2_debug_hooks): Update.
8112         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
8113         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
8114         * dwarf2out.h (dwarf2out_source_line): Remove.
8115         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
8116         Make static, update prototype.
8117         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
8118         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
8119         (dwarf_debug_hooks): Update.
8120         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
8121         dwarfout_end_function): Remove.
8122         * final.c (profile_function): Use debug hooks for ending functions
8123         and epilogues.
8124         (output_source_line, final_end_function): Update prototype,
8125         use debug hooks.
8126         (final_start_function, final_scan_insn): Update.
8127         * output.h (sdb_begin_function_line): Remove.
8128         (final_end_function): Update prototype.
8129         * sdbout.c (sdb_begin_function_line): Make static.
8130         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
8131         (sdbout_source_line): New.
8132         (sdbout_end_epilogue, sdbout_end_function): Make static, update
8133         prototypes.
8134         (sdb_debug_hooks): Update.
8135         (sdbout_init, sdbout_source_line,
8136         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
8137         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
8138         * toplev.c (compile_file, rest_of_compilation): Update.
8139         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
8140         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
8141         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
8142         Update for prototype changes.
8143         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
8144         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
8145
8146 2001-07-15  Richard Henderson  <rth@redhat.com>
8147
8148         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
8149         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
8150         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
8151         * config/alpha/alpha.c: Likewise.
8152         * config/alpha/alpha.md: Likewise.
8153         * config/alpha/alpha32.h: Likewise.
8154         * config/alpha/vms.h: Likewise.
8155         (OPEN_VMS): Remove.
8156
8157 2001-07-14  Richard Henderson  <rth@redhat.com>
8158
8159         * config/alpha/alpha.md: Use define_constants for unspec values.
8160         Substitute throughout.
8161
8162 2001-07-14  Tim Josling  <tej@melbpc.org.au>
8163
8164         * tree.def (EXPON_EXPR) remove. Never supported anyway.
8165
8166 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8167
8168         * pa.md: Remove unused constraints from define_split's.
8169
8170 2001-04-14  Richard Henderson  <rth@redhat.com>
8171
8172         * ifcvt.c (find_cond_trap): Test for exit block.
8173
8174 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
8175
8176         Re-install recently reverted patch.
8177         * emit-rtl.c (try_split): Update mark_jump_label call.
8178         * flow.c (find_sub_basic_blocks): Likewise.
8179         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
8180         jump_back_p): Kill.
8181         (mark_all_labels): Kill second parameter.
8182         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
8183         (rebuild_jump_labels, jump_optimize_minimal): Update call
8184         of jump_optimize_1.
8185         (jump_optimize_1): Kill crossjumping code.
8186         (mark_jump_label): Kill cross_jump parameter.
8187         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
8188         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
8189         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
8190          splitting.
8191         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
8192         DFI_bpro.
8193         (dump_file_info): Likewise.
8194         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
8195         reorganize passes to do reg-stack first, bb-reorder second.
8196         * invoke.texi (-d letters doc): Remove the jump2 pass.
8197
8198 2001-07-14  Richard Henderson  <rth@redhat.com>
8199
8200         * ifcvt.c (find_cond_trap): New.
8201         (find_if_header): Call it.
8202         (merge_if_block): Relax existing jump sanity check.
8203         * jump.c (jump_optimize_1): Remove conditional trap handling.
8204
8205 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
8206
8207         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
8208         millicode.
8209         (insn_refs_are_delayed): Correct comment.
8210         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
8211         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
8212         instead of r31.  Make associated insn !TARGET_64BIT, and
8213         provide an additional 64-bit insn that clobbers r2.
8214         (divsi3): Likewise.
8215         (udivsi3): Likewise.
8216         (modsi3): Likewise.
8217         (umodsi3): Likewise.
8218
8219 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
8220
8221         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
8222
8223         * flow.c (redirect_edge_and_branch_force, split_edge,
8224         try_crossjump_to_edge): Use set_block_for_new_insns.
8225         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
8226
8227 2001-07-13  H.J. Lu  (hjl@gnu.org)
8228
8229         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
8230         the correct patch.
8231
8232 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
8233
8234         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
8235
8236 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
8237
8238         * c-common.c (decl_attributes): Take a pointer to the node to
8239         which attributes are to be attached, and a flags argument.
8240         * c-common.h (enum attribute_flags): New.
8241         (decl_attributes): Update prototype.
8242         * c-decl.c (start_decl, push_parm_decl, finish_struct,
8243         finish_enum, start_function): Update calls to decl_attributes.
8244         * c-parse.in (component_declarator, component_notype_declarator,
8245         label): Update calls to decl_attributes.
8246
8247 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
8248
8249         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
8250         * config/avr/avr.c (legitimate_address_p): Return value changed
8251         from letter to register classes. For better debugging.
8252
8253 2001-07-13  Kazu Hirata  <kazu@hxi.com>
8254
8255         * jump.c (reversed_comparison_code_parts): Fix comment typos.
8256
8257 2001-07-13  H.J. Lu  (hjl@gnu.org)
8258
8259         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
8260
8261 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
8262
8263         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
8264         correctly for shared configurations.
8265         * config/t-libgcc-pic:  New.
8266         * config/{i386,m68k,sparc}/t-openbsd:  New.
8267         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
8268         Support -shared.  Support debugging libraries with -g.
8269         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
8270         frame information does not emit pointer diffs.
8271         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
8272         emit pointer diffs.
8273
8274 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
8275
8276         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
8277
8278 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
8279
8280         * combine.c (try_combine): Ensure const_int pow2 is positive.
8281
8282 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
8283
8284         * config.gcc: Add configuration for s/390.
8285         * config/s390/s390.c: New. Subroutines for code generation.
8286         * config/s390/s390.h: New. Definitions for s/390.
8287         * config/s390/s390-protos.h: New. Prototypes.
8288         * config/s390/linux.h: New. Definitions for linux for s/390.
8289         * config/s390/linux64.h: New. Definitions for linux for zSeries.
8290         * config/s390/t-linux: New. Makefile fragment.
8291         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
8292         * config/s390/fixdfdi.h: New. Fix L_fix*di.
8293
8294 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
8295
8296         * emit-rtl.c (try_split): Update mark_jump_label call.
8297         * flow.c (find_sub_basic_blocks): Likewise.
8298         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
8299         jump_back_p): Kill.
8300         (mark_all_labels): Kill second parameter.
8301         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
8302         (rebuild_jump_labels, jump_optimize_minimal): Update call
8303         of jump_optimize_1.
8304         (jump_optimize_1): Kill crossjumping code.
8305         (mark_jump_label): Kill cross_jump parameter.
8306         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
8307         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
8308         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
8309          splitting.
8310         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
8311         DFI_bpro.
8312         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
8313         reorganize passes to do reg-stack first, bb-reorder second.
8314         * invoke.texi (-d letters doc): Remove the jump2 pass.
8315
8316 2001-07-12  Steve Ellcey <sje@cup.hp.com>
8317
8318         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
8319
8320 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
8321
8322         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
8323         basic blocks.
8324         (verify_flow_info): Make diagnostics prettier.
8325
8326 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8327
8328         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
8329
8330         * flow.c (outgoing_edges_match): Return early if condition reversal
8331         failed.
8332
8333 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
8334
8335         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
8336         (mips_move_2words): When splitting a move into two instructions,
8337         prefix the second address operand with '%D'.
8338
8339 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8340
8341         * Makefile.in (final.o): Depend on debug.h.
8342         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
8343         (dbx_debug_hooks): Add new hooks.
8344         (xcoff_debug_hooks): New.
8345         * debug.c (debug_nothing_file_int_int): New.
8346         (do_nothing_debug_hooks): Update.
8347         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
8348         (debug_nothing_file_int_int): New.
8349         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
8350         static, update prototype.
8351         (dwarf2_debug_hooks): Update.
8352         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
8353         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
8354         static, update prototype.
8355         (dwarf_debug_hooks): Update.
8356         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
8357         * final.c: Include debug.h.
8358         (final_scan_insn): Use debug hooks when beginning and ending blocks.
8359         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
8360         static, update prototype.
8361         (sdb_debug_hooks): Update.
8362         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
8363         * toplev.c: Distinguish between xcoff and dbx.
8364
8365         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
8366         Call all debug hooks, not just dwarf ones.
8367
8368 2001-07-11  Timothy Wall  <twall@redhat.com>
8369
8370         * config.gcc: Add configuration for AIX5/IA64.
8371         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
8372         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
8373         support prefix/suffix code.
8374         * config/ia64/t-aix: New.  Makefile fragment.
8375         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
8376
8377 2001-07-11  Kazu Hirata  <kazu@hxi.com>
8378
8379         * recog.c (validate_change): Fix a comment typo.
8380
8381 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8382
8383         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
8384         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
8385         hooks directly.
8386         * dbxout.c (dbx_debug_hooks): Add new hooks.
8387         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
8388         make static.
8389         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
8390         make static.
8391         * dbxout.h (dbxout_start_new_source_file,
8392         dbxout_resume_previous_source_file): Delete.
8393         * debug.c (do_nothing_debug_hooks): Add new hooks.
8394         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
8395         (debug_nothing_int_charstar, debug_nothing_int): New.
8396         * debug.h (gcc_debug_hooks): New hooks define, undef,
8397         start_source_file and end_source_file.
8398         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
8399         (debug_nothing_int_charstar, debug_nothing_int): New.
8400         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
8401         the conditionally compiled section.
8402         (dwarf2out_start_source_file, dwarf2out_end_source_file,
8403         dwarf2out_define, dwarf2out_undef): Make static.
8404         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
8405         dwarf2out_define, dwarf2out_undef): Remove.
8406         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
8407         (dwarfout_start_source_file, dwarfout_end_source_file,
8408         dwarfout_define, dwarfout_undef): Make static.
8409         (dwarfout_start_source_file_check,
8410         dwarfout_end_source_file_check): New.
8411         (dwarfout_define, dwarfout_finish): Update.
8412         * dwarfout.h (dwarfout_start_new_source_file,
8413         dwarfout_resume_previous_source_file, dwarfout_define,
8414         dwarfout_undef): Remove.
8415         * sdbout.c (sdb_debug_hooks): Add new hooks.
8416         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
8417         make static.
8418         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
8419         make static, take an arg.
8420         * sdbout.h (sdbout_start_new_source_file,
8421         sdbout_resume_previous_source_file): Delete.
8422         * toplev.c (debug_start_source_file, debug_end_source_file,
8423         debug_define, debug_undef): Delete.
8424         * toplev.h (debug_start_source_file, debug_end_source_file,
8425         debug_define, debug_undef): Delete.
8426
8427         * java/jcf-parse.c: Include debug.h.
8428         (parse_class_file): Update to use debug hooks directly.
8429         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
8430
8431 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8432
8433         * alias.c (set_mem_alias_set): New function.
8434         * rtl.h (set_mem_alias_set): Declare it.
8435         * builtins.c (expand_builtin_return_addr): Call it instead of
8436         using MEM_ALIAS_SET accessor.
8437         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
8438         (get_memory_rtx, expand_builtin_va_arg): Likewise.
8439         (expand_builtin_va_copy):Likewise.
8440         * caller-save.c (setup_save_areas): Likewise.
8441         * calls.c (compute_argument_addresses): Likewise.
8442         * explow.c (set_mem_attributes): Likewise.
8443         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
8444         (expand_assignment, store_constructor_field, store_field): Likewise.
8445         (expand_expr_unaligned): Likewise.
8446         * function.c (assign_stack_temp_for_type): Likewise.
8447         (put_reg_into_stack, gen_mem_addressof): Likewise.
8448         * ifcvt.c (noce_try_cmove_arith): Likewise.
8449         * reload1.c (reload, alter_reg): Likewise.
8450         * config/alpha/alpha.c (get_aligned_mem): Likewise.
8451         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
8452         (alpha_expand_unaligned_store): Likewise
8453         (alpha_expand_unaligned_load_words): Likewise.
8454         (alpha_expand_unaligned_store_words): Likewise.
8455         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
8456         (alpha_expand_epilogue): Likewise.
8457         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8458         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
8459         * config/i386/i386.c (legitimize_pic_address): Likewise.
8460         * config/i960/i960.c (setup_incoming_varargs): Likewise.
8461         * config/ia64/ia64.c (spill_restore_mem): Likewise.
8462         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8463         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
8464         * config/mips/mips.c (mips_va_arg): Likewise.
8465         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8466         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8467         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8468         (setup_incoming_varargs, rs6000_va_arg): Likewise.
8469         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
8470         (rs6000_emit_epilogue): Likewise.
8471         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
8472         * config/sparc/sparc.c (sparc_va_arg): Likewise.
8473         * config/v850/v850.c (v850_va_arg): Likewise.
8474
8475 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
8476
8477         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
8478         when fallthru edge is present.
8479         (mege_blocks): Handle case where creation of jump insn
8480         is required.
8481
8482         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
8483         CLEANUP_POST_REGSTACK): New constants.
8484         * except.c (finish_eh_generation): Update call of cleanup_cfg,
8485         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
8486         * output.h (cleanup_cfg): Update prototype.
8487         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
8488         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
8489         cleanup_cfg call; kill missleading comment.
8490         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
8491         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
8492         parameter; control optimizations performed using it.
8493         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
8494         try_crossjump_bb): New functions.
8495
8496 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8497
8498         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
8499         extern.
8500         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
8501         pa_output_function_prologue.
8502         * pa-protos.h (pa_output_function_prologue): New prototype.
8503
8504 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8505
8506         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
8507         and low to get correct sign extension in low+high test.
8508
8509 2001-07-11  Janis Johnson <janis@us.ibm.com>
8510
8511         * gcov.c (arcdata): Use gcov_type to fix branch percentage
8512         for large hit count.
8513
8514         * profile.c (branch_prob): Fix .bbg info for computed gotos
8515         and C++ EH code.
8516
8517 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
8518
8519         * stmt.c (parse_output_constraint): New function, split out
8520         from ...
8521         (expand_asm_operands): ... here.  Use parse_output_constraint.
8522         * tree.h (parse_output_constraint): Declare it.
8523
8524 2001-07-11  Richard Henderson  <rth@redhat.com>
8525
8526         * bitmap.c: Comment some functions; fiddle whitespace.
8527         (bitmap_free): Don't export.
8528         (bitmap_element_allocate): Use memset.
8529         * bitmap.h (bitmap_free): Don't declare.
8530
8531 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
8532
8533         * gcse.c, lcm.c, sched-deps.c:
8534         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
8535
8536         * flow.c (flow_loops_find): Free dom if we found no loops, since
8537         we aren't going to save it.
8538
8539         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
8540         done.
8541
8542 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
8543
8544         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
8545
8546 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8547
8548         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
8549         #ifndef DWARF2_DEBUGGING_INFO.
8550
8551 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
8552
8553         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
8554
8555 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
8556
8557         * config/mips/mips.c (gen_int_relational): Tell the caller not to
8558         reverse a branch if a NE comparison is implemented with GTU.
8559
8560 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
8561             H.J. Lu  <hjl@gnu.org>
8562
8563         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
8564         constant addresses.
8565         (call_internal2): Likewise.
8566         (call_value_internal1): Likewise.
8567         (call_value_internal2): Likewise.
8568         (call_value_multiple_internal1): Likewise.
8569         (call_value_multiple_internal2): Likewise.
8570
8571 2001-07-10  Kazu Hirata  <kazu@hxi.com>
8572
8573         * calls.c (emit_library_call_value_1): Fix a comment typo.
8574         * dwarf2out.c (mem_loc_descriptor): Likewise.
8575         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
8576
8577 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
8578
8579         * simplify-rtx.c (simplify_subreg): Fix typo in comment
8580
8581 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8582
8583         * recog.c (offsettable_address_p): Handle LO_SUM case.
8584         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
8585         instead of plus_constant.
8586
8587 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8588
8589         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
8590         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
8591
8592 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8593
8594         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
8595         adjust_address_nv instead of plus_constant.
8596
8597 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8598
8599         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
8600         dwarf2out.o): Depend on debug.h, wrap long lines.
8601         * dbxout.c: Include debug.h.
8602         (dbx_debug_hooks): New.
8603         (dbxout_init): Make static, take just 2 args.
8604         (dbxout_finish): Make static.
8605         * dbxout.h (dbxout_init, dbxout_finish): Delete.
8606         * debug.c: New file.
8607         * debug.h: New file.
8608         * dwarf2out.c: Include debug.h.
8609         (dwarf2_debug_hooks): New.
8610         (dwarf2out_init): Make static.
8611         (dwarf2out_finish): Make static, take 2 args.
8612         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
8613         * dwarfout.c: Include debug.h.
8614         (dwarf_debug_hooks): New.
8615         (dwarfout_init): Make static.
8616         (dwarfout_finish): Make static, take 2 args.
8617         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
8618         * sdbout.c: Include debug.h.
8619         (sdb_debug_hooks): New.
8620         (sdbout_init): Make static, take 2 args.
8621         * sdbout.h (sdbout_init): Delete.
8622         * toplev.c: Include debug.h.
8623         (debug_hooks): New.
8624         (compile_file): Set deubg_hooks based on command line options.
8625         Use the hooks unconditionally rather than conditional compilation.
8626
8627 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
8628
8629         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
8630         first_insn_after_basic_block_note instead.
8631
8632         * df.c (df_bb_refs_unlink): #if 0 out for now.
8633
8634 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
8635
8636         * ssa.h: Add prototype for ssa_const_prop
8637         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
8638         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
8639         (ssa_fast_dce): Remove unused variable
8640
8641 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
8642
8643         * diagnostic.c (finish_diagnostic): Rename to
8644         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
8645         calls thourghout.
8646
8647 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
8648
8649         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
8650         .loc support.
8651
8652         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
8653         (dump_file): Only pad the demangled name with spaces if the
8654         mangled name was padded with spaces.
8655
8656 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
8657
8658         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
8659         edge detection.
8660
8661 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8662
8663         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
8664         extraction if no direct load if either EXPAND_CONST_ADDRESS or
8665         EXPAND_INITIALIZER.
8666
8667         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
8668         whether can put offset inside LO_SUM to check mode alignment, not size.
8669
8670 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
8671
8672         * doc/tm.texi (Misc): Fix thinko.
8673
8674 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
8675
8676         * regmove.c (replace_in_call_usage): Fix warnings.
8677         * sched-deps.c (add_dependence): Fix warnings.
8678         * simplify-rtx.c (simplify_subreg): Likewise.
8679         Return NULL_RTX instead of NULL.
8680
8681         * reg-stack.c (emit_swap_insn): Eliminate warnings.
8682         (subst_asm_stack_regs): Likewise.
8683
8684         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
8685         warnings.
8686
8687         * dwarf2out.c (output_call_frame_info): Declare i as int.
8688         (build_abbrev_table): Declare n_alloc as int.
8689         (dwarf2out_finish): Initialize die.
8690         * except.c: Declare sjlj_funcdef_number as unsigned.
8691         (connect_post_landing_pads): Declare j as unsigned.
8692         (convert_to_eh_region_ranges): Initialize call_site.
8693         (output_function_exception_table): Initialize tt_format_size.
8694         * expr.c (move_by_pieces_1): Initialize to1.
8695         (store_constructor): Initialize minelt and maxelt.
8696         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
8697         * function.c (instantiate_decls): Avoid signed/unsigned warning.
8698
8699         * c-decl.c (combine_parm_decls): Unused, remove.
8700         * c-tree.h: Remove prototype for combine_parm_decls.
8701
8702         * reload.c (push_reload): Fix warning.
8703         (regno_clobbered_p): Likewise.
8704         * reload1.c (replace_pseudos_in_call_usage): Likewise.
8705         (reload_combine): Likewise.
8706
8707         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
8708         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
8709         warnings.
8710         * bitmap.c (bitmap_operation): Change user.
8711         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
8712
8713 2001-07-10  Eric Christopher  <echristo@redhat.com>
8714
8715         * config/mips/mips.c (override_options): Fix typo.
8716
8717 2001-07-09  Stan Shebs  <shebs@apple.com>
8718
8719         * target.h (struct gcc_target): New fields init_builtins and
8720         expand_builtin.
8721         * target-def.h (TARGET_INIT_BUILTINS): New macro.
8722         (TARGET_EXPAND_BUILTIN): New macro.
8723         (TARGET_INITIALIZER): Add them.
8724         * builtins.c: Include target.h.
8725         (expand_builtin): Use targetm.expand_builtin.
8726         (default_init_builtins): New function.
8727         (default_expand_builtin): New function.
8728         * expr.h (default_init_builtins): Declare.
8729         (default_expand_builtin): Declare.
8730         * c-common.c (c_common_nodes_and_builtins): Use
8731         targetm.init_builtins.
8732         * defaults.h (MD_INIT_BUILTINS): Remove.
8733         * Makefile.in (builtins.o): Depend on target.h.
8734
8735         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
8736         (TARGET_EXPAND_BUILTIN): Define.
8737         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
8738         (MD_EXPAND_BUILTIN): Remove.
8739
8740         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
8741         (TARGET_EXPAND_BUILTIN): Define.
8742         (c4x_init_builtins): Make endlink arg a local.
8743         (c4x_print_operand): Fix typos in adjust_address usages.
8744         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
8745         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
8746         (MD_EXPAND_BUILTIN): Remove.
8747
8748         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
8749         (TARGET_EXPAND_BUILTIN): Define.
8750         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
8751         (ix86_init_builtins): Call new function only if TARGET_MMX.
8752         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
8753         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
8754         (MD_EXPAND_BUILTIN): Remove.
8755
8756         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
8757         (TARGET_EXPAND_BUILTIN): Define.
8758         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
8759         (MD_EXPAND_BUILTIN): Remove.
8760
8761         * doc/tm.texi: Document these changes.
8762
8763 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
8764
8765         * basic-block.h (tree_node): Forward declare if needed.
8766         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
8767         (BLOCK_HEAD_TREE): Define.
8768         (BLOCK_END_TREE): Define.
8769         (struct loops): Rename field 'tree' to 'tree_root'.
8770         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
8771         'end_tree'.
8772         (flow_loops_tree_build): Rename reference to field 'tree' to
8773         'tree_root'.
8774         (flow_loops_level_compute): Ditto.
8775         * predict.c (estimate_bb_frequencies): Ditto.
8776         * tree.h (struct tree_common): Add field 'aux'.
8777
8778 2001-07-09  Stan Shebs  <shebs@apple.com>
8779
8780         * config/darwin.c (darwin_encode_section_info): Don't mark any
8781         DECL_EXTERNAL node as defined.
8782
8783 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8784
8785         * pa.c (pa_init_machine_status, pa_mark_machine_status,
8786         pa_free_machine_status, hppa_init_pic_save): Delete.
8787         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
8788         (hppa_profile_hook): Use hppa_pic_save_rtx.
8789         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
8790         hppa_init_pic_save): Delete.
8791         (hppa_pic_save_rtx): Declare.
8792         * pa.md (call, call_value, sibcall, sibcall_value,
8793         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
8794
8795 2001-07-09  Kazu Hirata  <kazu@hxi.com>
8796
8797         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
8798         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
8799
8800 2001-07-09  Andreas Jaeger  <aj@suse.de>
8801
8802         * output.h: Add declaration of final_forward_branch_p.
8803
8804         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
8805
8806         * varray.c: Include errors.h for internal_error and trim_filename
8807         declarations.
8808
8809         * Makefile.in (varray.o): Add errors.h.
8810
8811 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
8812
8813         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
8814         * optabs.c (have_add2_insn): Check whether the add insn chosen
8815         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
8816         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
8817
8818 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
8819
8820         * Makefile.in (OBJS): Add ssa-ccp.o
8821         (ssa-ccp.o): Add dependencies.
8822         * toplev.c (DFI_ssa_ccp): New dump file enum.
8823         (dump_file): Add entry for dumping after SSA CCP.
8824         (flag_ssa_ccp): New flag variable.
8825         (f_options): Add -fssa-ccp.
8826         (rest_of_compilation): Run SSA CCP if requested.
8827         * timevar.def (TV_SSA_CCP): New timevar.
8828         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
8829         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
8830         Fix minor typo in SSA DCE documentation.
8831         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
8832         Add documentation for new dump option.  Renumber dump files
8833         appropriately.
8834
8835 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8836
8837         * emit-rtl.c (gen_highpart_mode): New.
8838         * rtl.h (gen_highpart_mode): Declare.
8839         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
8840         operand can be VOIDmode constant.
8841
8842 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
8843
8844         * flow.c (redirect_edge_and_branch_force): New.
8845         (can_fallthru): Ensure that basic blocks are succeeding.
8846         (try_optimize_cfg): Do not delete basic block if it is the last one.
8847
8848         * flow.c (try_redirect_by_replacing_jump): Do not remove
8849         jumps with side effects, unlink chain on fallthru edge;
8850         set block for new jump instruction; avoid basic block to
8851         over by line number note.
8852
8853         * flow.c (try_simplify_condjump): Verify that the condjump
8854         is not always falling trought.
8855
8856         Re-install patch:
8857         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
8858
8859         * flow.c (forwarder_block_p): Fix for fallthru blocks.
8860         (try_redirect_by_replacing_jump): Update properly the count
8861         and frequency information.
8862
8863 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8864
8865         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
8866         address that is a LO_SUM specially.
8867         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
8868
8869         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
8870
8871         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
8872         (operand_subword): Use them.
8873         (change_address_1): Renamed from change_address; new arg VALIDATE.
8874         * expr.h: Reflect above changes; change_address now macro.
8875         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
8876         making MEM.
8877         * cselib.c (add_mem_for_addr): Likewise.
8878         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
8879         * regmove.c (try_apply_stack_adjustment): Likewise.
8880         * reload.c (push_reload, make_memloc): Likewise.
8881         * reload1.c (eliminate_regs): Likewise.
8882         * simplify-rtx.c (simplify_replace_rtx): Likewise.
8883         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
8884         adjust_addess.
8885         * combine.c (make_extraction, simplify_shift_const): Likewise.
8886         (gen_lowpart_for_combine): Likewise.
8887         * cse.c (gen_lowpart_if_possible): Likewise.
8888         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
8889         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
8890         * optabs.c (gen_move_insn): Likewise.
8891         * reload1.c (alter_reg): Likewise.
8892         * simplify-rtx.c (simplify_subreg): Likewise.
8893         * stmt.c (expand_anon_union_decl): Likewise.
8894         * recog.c (validate_replace_rtx_1): Likewise.
8895         (expr.h): Include.
8896         * Makefile.in (recog.o): Add $(EXPR_H).
8897         * explow.c (stabilize): Call replace_equiv_address.
8898         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
8899         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
8900
8901 2001-07-03  Andrew Haley  <aph@redhat.com>
8902
8903         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
8904         the mode of the memory location.
8905
8906 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
8907
8908         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
8909
8910 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8911
8912         * final.c (output_addr_const): Use target opening and
8913         closing parentheses.
8914         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
8915         defaults, add to TARGET_ASM_OUT.
8916         * target.h (struct gcc_target): Add open_paren and close_paren.
8917         * doc/md.texi: Update.
8918         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
8919         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
8920         TARGET_ASM_CLOSE_PAREN.
8921         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
8922         Override.
8923         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
8924         Override.
8925         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
8926         * config/a29k/a29k.h: Similarly.
8927         * config/alpha/alpha.h: Similarly.
8928         * config/arc/arc.h: Similarly.
8929         * config/arm/aof.h: Similarly.
8930         * config/arm/aout.h: Similarly.
8931         * config/avr/avr.h: Similarly.
8932         * config/c4x/c4x.h: Similarly.
8933         * config/clipper/clipper.h: Similarly.
8934         * config/convex/convex.h: Similarly.
8935         * config/d30v/d30v.h: Similarly.
8936         * config/dsp16xx/dsp16xx.h: Similarly.
8937         * config/elxsi/elxsi.h: Similarly.
8938         * config/fr30/fr30.h: Similarly.
8939         * config/h8300/h8300.h: Similarly.
8940         * config/i370/i370.h: Similarly.
8941         * config/i386/i386.h: Similarly.
8942         * config/i860/i860.h: Similarly.
8943         * config/i960/i960.h: Similarly.
8944         * config/ia64/ia64.h: Similarly.
8945         * config/m32r/m32r.h: Similarly.
8946         * config/m68hc11/m68hc11.h: Similarly.
8947         * config/m68k/m68k.h: Similarly.
8948         * config/m88k/m88k.h: Similarly.
8949         * config/mcore/mcore.h: Similarly.
8950         * config/mips/mips.h: Similarly.
8951         * config/mn10200/mn10200.h: Similarly.
8952         * config/mn10300/mn10300.h: Similarly.
8953         * config/ns32k/ns32k.h: Similarly.
8954         * config/pa/pa.h: Similarly.
8955         * config/pdp11/pdp11.h: Similarly.
8956         * config/pj/pj.h: Similarly.
8957         * config/romp/romp.h: Similarly.
8958         * config/rs6000/rs6000.h: Similarly.
8959         * config/sh/sh.h: Similarly.
8960         * config/sparc/sparc.h: Similarly.
8961         * config/v850/v850.h: Similarly.
8962         * config/vax/vax.h: Similarly.
8963         * config/we32k/we32k.h: Similarly.
8964
8965 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
8966
8967         * doc/c-tree.texi: Document representation of attributes.
8968
8969 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
8970
8971         * doc/tm.texi: Update some places for the rename of target to
8972         targetm.  Fix typo.
8973
8974 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
8975
8976         * target.h (struct gcc_target): Add insert_attributes.
8977         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
8978         (TARGET_INITIALIZER): Update.
8979         * tree.c, tree.h (default_insert_attributes): New function.
8980         Update comments on other default functions to refer to targetm,
8981         not target.
8982         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
8983         TARGET_INSERT_ATTRIBUTES.
8984         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
8985         * c-common.c (decl_attributes): Use targetm.insert_attributes.
8986         Don't use PRAGMA_INSERT_ATTRIBUTES.
8987         * Makefile.in (c-common.o): Depend on $(TARGET_H).
8988         * c-decl.c (start_decl, start_function): Don't call
8989         SET_DEFAULT_DECL_ATTRIBUTES.
8990         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
8991         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
8992         declare.
8993         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
8994         (c4x_check_attribute): Avoid modifying attribute list itself.
8995         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
8996         Make static.
8997         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
8998         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
8999         declare.
9000         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
9001         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
9002         Make static.
9003         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
9004         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
9005         declare.
9006         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
9007         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
9008         Adjust parameters.  Make static.
9009
9010 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9011
9012         * c-common.c (decl_attributes): Only take a single attributes
9013         parameter.
9014         * c-common.h (decl_attributes): Update prototype.
9015         * c-decl.c (start_decl, start_function): Only take a single
9016         attributes parameter.  Update calls to decl_attributes.
9017         (finish_struct, finish_enum): Update calls to decl_attributes.
9018         (push_parm_decl): Expect unified list of attributes.  Update call
9019         to decl_attributes.
9020         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
9021         notype_nested_function, component_declarator,
9022         component_notype_declarator, label): Update calls to
9023         decl_attributes.
9024         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
9025         lists that are passed to push_parm_decl.
9026         * c-tree.h (start_function, start_decl): Update prototypes.
9027         * config/sh/sh-protos.h, config/sh/sh.c
9028         (sh_pragma_insert_attributes): Only take a single attributes
9029         parameter.
9030         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
9031         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
9032         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
9033         build_module_descriptor, generate_static_references,
9034         generate_strings, build_selector_translation_table,
9035         generate_descriptor_table, generate_protocols,
9036         generate_ivars_list, generate_dispatch_table,
9037         generate_protocol_list, generate_category,
9038         generate_shared_structures, really_start_method, add_objc_decls,
9039         generate_classref_translation_entry): Update calls to start_decl
9040         and start_function.
9041         (build_tmp_function_decl, start_method_def): Unify attribute lists
9042         that are passed to push_parm_decl.
9043
9044 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9045
9046         * final.c (no_asm_to_stream): New.
9047         (final_scan_insn): Use target structures for prologue ends
9048         and epilogue starts.
9049         * output.h (no_asm_to_stream): New.
9050         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
9051         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
9052         (TARGET_ASM_OUT): Update.
9053         * target.h (struct gcc_target): New members function_end_prologue
9054         and function_begin_epilogue.
9055         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
9056         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
9057         * config/alpha/alpha.c (output_end_prologue): Rename to
9058         alpha_output_function_end_prologue.  Use in target struct
9059         and make static.
9060         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
9061         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
9062         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
9063         ia64_output_function_end_prologue.  Use in target struct
9064         and make static.
9065         (ia64_function_prologue, ia64_funciton_epilogue): Rename
9066         mistyped prototypes.
9067         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
9068         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
9069         Delete.
9070         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
9071         an use in target struct, make static.
9072         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
9073         Delete.
9074
9075 2001-07-08  Richard Henderson  <rth@redhat.com>
9076
9077         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
9078
9079 2001-07-08  Richard Henderson  <rth@redhat.com>
9080
9081         * config/i386/i386.md: Remove constraints strings from define_split
9082         and define_peephole2 patterns.
9083         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
9084         (eh_return): Use them.
9085
9086 2001-07-08  Richard Henderson  <rth@redhat.com>
9087
9088         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
9089         Document MD_FALLBACK_FRAME_STATE_FOR.
9090
9091 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9092
9093         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
9094         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
9095         elimination.
9096         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
9097
9098 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
9099
9100         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
9101         of the label inside NAME as opposed to just the end of NAME.
9102
9103 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9104
9105         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
9106         * config/alpha/alpha.c (alpha_init_machine_status,
9107         alpha_mark_machine_status, alpha_free_machine_status): Delete.
9108         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
9109         (vms_valid_decl_attribute_p): Make static, conditionally compile.
9110         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
9111
9112 2001-07-06  Stan Shebs  <shebs@apple.com>
9113
9114         * target.h (targetm): Rename global from "target", so as not to
9115         conflict with local variables.
9116         * c-decl.c: Ditto.
9117         * c-typeck.c: Ditto.
9118         * final.c: Ditto.
9119         * tree.c: Ditto.
9120         * cp/decl.c: Ditto.
9121         * cp/decl2.c: Ditto.
9122         * cp/typeck.c: Ditto.
9123         * 1750a/1750a.c: Ditto.
9124         * a29k/a29k.c: Ditto.
9125         * arc/arc.c: Ditto.
9126         * arm/arm.c: Ditto.
9127         * avr/avr.c: Ditto.
9128         * clipper/clipper.c: Ditto.
9129         * convex/convex.c: Ditto.
9130         * d30v/d30v.c: Ditto.
9131         * dsp16xx/dsp16xx.c: Ditto.
9132         * elxsi/elxsi.c: Ditto.
9133         * fr30/fr30.c: Ditto.
9134         * h8300/h8300.c: Ditto.
9135         * i370/i370.c: Ditto.
9136         * i386/i386.c: Ditto.
9137         * i860/i860.c: Ditto.
9138         * i960/i960.c: Ditto.
9139         * ia64/ia64.c: Ditto.
9140         * m32r/m32r.c: Ditto.
9141         * m68hc11/m68hc11.c: Ditto.
9142         * m68k/m68k.c: Ditto.
9143         * m88k/m88k.c: Ditto.
9144         * mips/mips.c: Ditto.
9145         * ns32k/ns32k.c: Ditto.
9146         * pa/pa.c: Ditto.
9147         * pdp11/pdp11.c: Ditto.
9148         * romp/romp.c: Ditto.
9149         * rs6000/rs6000.c: Ditto.
9150         * sh/sh.c: Ditto.
9151         * sparc/sparc.c: Ditto.
9152         * vax/vax.c: Ditto.
9153         * we32k/we32k.c: Ditto.
9154         * doc/tm.texi: Update the manual to match.
9155
9156 2001-07-06  Richard Henderson  <rth@redhat.com>
9157
9158         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
9159         DWARF2_UNWIND_INFO not just whether it is defined.
9160
9161 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
9162
9163         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
9164         call to simplify_binary_operation returns a new pattern.
9165
9166 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9167
9168         * glimits.h (__SHRT_MAX__): New.
9169         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
9170         (SHRT_MAX): Define in terms of __SHRT_MAX__.
9171
9172 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
9173
9174         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
9175         avoid warnings.
9176
9177 2001-07-06  Richard Henderson  <rth@redhat.com>
9178
9179         * bitmap.c (bitmap_release_memory): Move adjacent to the
9180         allocation functions.
9181         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
9182         the implementation.  Binary search for the set bit.
9183         (bitmap_union_of_diff): Allocate the temporary on the stack
9184         instead of using xmalloc.
9185
9186 2001-07-06  Richard Henderson  <rth@redhat.com>
9187
9188         * genrecog.c (validate_pattern): Warn for constraints in
9189         define_{expand,split,peephole2}.  Remove strict_low_part
9190         before looking up match_dup.
9191
9192 2001-07-06  DJ Delorie  <dj@redhat.com>
9193
9194         * doc/gcc.texi (Makefile): Rename to be a more general purpose
9195         chapter about various build hints and history.  Add section
9196         talking about the various types of native and cross builds.
9197
9198 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9199
9200         * Makefile.in (final.o): Depend on target.h.
9201         * final.c: Include target.h.
9202         (default_function_pro_epilogue): New.
9203         (final_start_function): Use target structure for function prologues.
9204         (final_end_function): Use target structure for function epilogues.
9205         * fold-const.c (real_hex_to_f): Constify s and p.
9206         * output.h (default_function_pro_epilogue): New.
9207         * real.h (real_hex_to_f): Update prototype.
9208         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
9209         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
9210         (TARGET_INITIALIZER): Update.
9211         * target.h (gcc_target): Add struct asm_out.
9212         * doc/tm.texi: Update.
9213
9214 config:
9215         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
9216         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
9217         in cpu/cpu.c, or rename old functions consistently.  Take
9218         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
9219         redundant macros and prototypes.  Make new functions static.
9220
9221         * 1750a/1750a.c: Similarly.
9222         * 1750a/1750a.h: Similarly.
9223         * a29k/a29k-protos.h: Similarly.
9224         * a29k/a29k.c: Similarly.
9225         * a29k/a29k.h: Similarly.
9226         * arc/arc-protos.h: Similarly.
9227         * arc/arc.c: Similarly.
9228         * arc/arc.h: Similarly.
9229         * arm/arm-protos.h: Similarly.
9230         * arm/arm.c: Similarly.
9231         * arm/arm.h: Similarly.
9232         * avr/avr-protos.h: Similarly.
9233         * avr/avr.c: Similarly.
9234         * avr/avr.h: Similarly.
9235         * clipper/clipper-protos.h: Similarly.
9236         * clipper/clipper.c: Similarly.
9237         * clipper/clipper.h: Similarly.
9238         * convex/convex.c: Similarly.
9239         * convex/convex.h: Similarly.
9240         * d30v/d30v-protos.h: Similarly.
9241         * d30v/d30v.c: Similarly.
9242         * d30v/d30v.h: Similarly.
9243         * d30v/d30v.md: Similarly.
9244         * dsp16xx/dsp16xx-protos.h: Similarly.
9245         * dsp16xx/dsp16xx.c: Similarly.
9246         * dsp16xx/dsp16xx.h: Similarly.
9247         * elxsi/elxsi.c: Similarly.
9248         * elxsi/elxsi.h: Similarly.
9249         * fr30/fr30.c: Similarly.
9250         * fr30/fr30.md: Similarly.
9251         * h8300/h8300-protos.h: Similarly.
9252         * h8300/h8300.c: Similarly.
9253         * h8300/h8300.h: Similarly.
9254         * i370/i370-protos.h: Similarly.
9255         * i370/i370.c: Similarly.
9256         * i370/i370.h: Similarly.
9257         * i386/i386.c: Similarly.
9258         * i386/osf1elf.h: Similarly.
9259         * i386/osfrose.h: Similarly.
9260         * i860/i860-protos.h: Similarly.
9261         * i860/i860.c: Similarly.
9262         * i860/i860.h: Similarly.
9263         * i960/i960-protos.h: Similarly.
9264         * i960/i960.c: Similarly.
9265         * i960/i960.h: Similarly.
9266         * ia64/ia64-protos.h: Similarly.
9267         * ia64/ia64.c: Similarly.
9268         * ia64/ia64.h: Similarly.
9269         * m32r/m32r-protos.h: Similarly.
9270         * m32r/m32r.c: Similarly.
9271         * m32r/m32r.h: Similarly.
9272         * m68hc11/m68hc11-protos.h: Similarly.
9273         * m68hc11/m68hc11.c: Similarly.
9274         * m68hc11/m68hc11.h: Similarly.
9275         * m68k/crds.h: Similarly.
9276         * m68k/dpx2.h: Similarly.
9277         * m68k/m68k-protos.h: Similarly.
9278         * m68k/m68k.c: Similarly.
9279         * m68k/m68k.h: Similarly.
9280         * m68k/news.h: Similarly.
9281         * m88k/m88k-protos.h: Similarly.
9282         * m88k/m88k.c: Similarly.
9283         * m88k/m88k.h: Similarly.
9284         * mips/mips-protos.h: Similarly.
9285         * mips/mips.c: Similarly.
9286         * mips/mips.h: Similarly.
9287         * ns32k/merlin.h: Similarly.
9288         * ns32k/ns32k.c: Similarly.
9289         * ns32k/ns32k.h: Similarly.
9290         * ns32k/tek6000.h: Similarly.
9291         * pa/pa-protos.h: Similarly.
9292         * pa/pa.c: Similarly.
9293         * pa/pa.h: Similarly.
9294         * pdp11/2bsd.h: Similarly.
9295         * pdp11/pdp11-protos.h: Similarly.
9296         * pdp11/pdp11.c: Similarly.
9297         * pdp11/pdp11.h: Similarly.
9298         * romp/romp-protos.h: Similarly.
9299         * romp/romp.c: Similarly.
9300         * romp/romp.h: Similarly.
9301         * rs6000/rs6000-protos.h: Similarly.
9302         * rs6000/rs6000.c: Similarly.
9303         * rs6000/rs6000.h: Similarly.
9304         * rs6000/sysv4.h: Similarly.
9305         * sh/sh-protos.h: Similarly.
9306         * sh/sh.c: Similarly.
9307         * sh/sh.h: Similarly.
9308         * sparc/sparc-protos.h: Similarly.
9309         * sparc/sparc.c: Similarly.
9310         * sparc/sparc.h: Similarly.
9311         * vax/vax.c: Similarly.
9312         * vax/vax.h: Similarly.
9313         * vax/vms.h: Similarly.
9314         * we32k/we32k.c: Similarly.
9315         * we32k/we32k.h: Similarly.
9316
9317 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
9318
9319         * basic-block.h (first_insn_after_basic_block_note): Declare.
9320         * flow.c (first_insn_after_basic_block_note): Define.  Moved
9321         from...
9322         * ssa.c (first_insn_after_basic_block_note): Remove.
9323         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
9324         necessary.
9325         (ssa_eliminate_dead_code): Properly update the CFG and PHI
9326         nodes when we find a dead conditional branch.  Insert BARRIERs
9327         after any blocks with no successors, but which do not have
9328         any BARRIERs.
9329
9330 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
9331
9332         * varray.c (varray_check_failed): Use internal_error.
9333
9334 2001-07-05  Andrew Haley  <aph@redhat.com>
9335
9336         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
9337         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
9338         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
9339
9340 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
9341
9342         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
9343         reference if the target constant is also a SYMBOL_REF.
9344
9345 2001-07-05  Eric Christopher  <echristo@redhat.com>
9346
9347         * config/mips/mips.h (MASK_MIPS3900): Remove.
9348         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
9349         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
9350         (TARGET_MIPS3900): Change to use mips_arch.
9351         (TARGET_MIPS4000): New.
9352         (TARGET_MIPS4100): New.
9353         (TARGET_MIPS4300): New.
9354         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
9355         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
9356         for -mipsX.
9357         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
9358         (ISA_HAS_BRANCHLIKELY): To here.
9359         (CC1_CPU_SPEC):  New.
9360         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
9361         (mips_arch_string): Declare.
9362         (mips_arch): Declare.
9363         (TARGET_OPTIONS): Add -march and -mtune.
9364
9365         * config/mips/mips.c (mips_arch_string): New.
9366         (mips_arch): New.
9367         (override_options): Handle -march for codegen and -mtune
9368         for scheduling. Use mips_arch. Move tx39 target default here.
9369         (mips_parse_cpu): Move error message to override_options.
9370
9371         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
9372
9373         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
9374
9375         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
9376         (MIPS Options): Ditto.  Change mcpu entry to historical text.
9377
9378 2001-07-05  H.J. Lu  (hjl@gnu.org)
9379
9380         * config/mips/mips.c (mips_parse_cpu): New function to parse
9381         -march=*/-mcpu=*.
9382
9383 2001-07-05  Jim Wilson  <wilson@redhat.com>
9384
9385         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
9386         * config/ia64/t-ia64: Likewise.
9387         (LIB1ASMFUNCS): Update comment.
9388
9389 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
9390
9391         * doc/install.texi (Install GCC: Binaries): Fix typo.
9392
9393 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9394
9395         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
9396         reference using the stack pointer, adjust it since we push Y
9397         temporarily.
9398         ("*ashrsi3"): Likewise.
9399         ("*lshrsi3"): Likewise.
9400
9401 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9402
9403         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
9404         when -fomit-frame-pointer is used.
9405
9406 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
9407
9408         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
9409         (try_redirect_by_replacing_jump): Reverse updating properly the
9410         count and frequency information.  Reverse removing cc0 setter.
9411         (forwarder_block_p): Reverse fixing for fallthru blocks.
9412
9413 2001-07-05  DJ Delorie  <dj@redhat.com>
9414
9415         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
9416         (translate_options): If the above is defined, use it to map
9417         given options to new options.
9418         * doc/tm.texi: Document it.
9419
9420 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
9421             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9422
9423         * doc/invoke.texi (Optimize Options): Document that -fgcse may
9424         cause programs using computed gotos to run more slowly.
9425
9426 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9427
9428         * doc/install.texi (Specific): Markup, spelling and typo fixes.
9429         Fixed sorting.
9430         Consistently require binutils 2.11.2, not prereleases.
9431         (Specific, decstation-*): Canonicalize as mips-dec-*.
9432         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
9433         always necessary.
9434         (Specific, m68k-altos): Removed reference to README.altos, deleted.
9435         (Specific, mips-*): Reword MIPS C compiler requirements.
9436         (Specific, powerpc*-*-*): New, mention --with-cpu once.
9437         (Specific, sunv5): Removed, obsolete.
9438
9439 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
9440
9441         * dwarf2out.c (output_loc_list): Use an all ones mask for
9442         .text asm output and don't rely on long long
9443         literals. Reformat some long lines.
9444
9445 2001-07-05  Andreas Jaeger  <aj@suse.de>
9446
9447         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
9448         section.
9449
9450 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
9451
9452         * dwarf2out.c (dwarf2out_define): Update comment.
9453         (dwarf2out_undef): Ditto.
9454         (dwarf2out_start_source_file): Ditto.
9455         (dwarf2out_end_source_file): Ditto.
9456         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
9457         since we never call the start/end debug hook for the primary file.
9458
9459 2001-07-04  Kazu Hirata  <kazu@hxi.com>
9460
9461         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
9462         from shll.
9463
9464 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
9465
9466         * cppinit.c (remove_dup_dirs): Inform if a system include
9467         directory is being reordered.
9468         * doc/invoke.texi (Directory Options): GCC warns if you hide a
9469         system include.
9470         * doc/cpp.texi (Search Paths): Likewise.
9471         * doc/gcc.texi (Interoperation): Remove information about
9472         -I/usr/include.
9473
9474 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
9475
9476         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
9477         (VARRAY_TOP_CHAR_PTR): Likewise.
9478
9479 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9480
9481         * gcc.c (process_command): Don't assign elements of a const char*.
9482
9483 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9484
9485         * emit-rtl.c (change_address): Don't abort if invalid address while
9486         reload is in progress.
9487
9488 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
9489
9490         * c-lex.c (cb_file_change): Pass line number to
9491         debug_start_source_file.
9492         (cb_undefine): Pass correct line number to debug_undef.
9493
9494         * toplev.c (debug_start_source_file): Add line number to
9495         parameters. Pass it along to dwarf2out_start_source_file.
9496         (decode_g_option): Stop resetting debug level back to normal when
9497         we change debug formats, unless the current level is
9498         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
9499         3).
9500
9501         * toplev.h (debug_start_source_file): Add line number to
9502         parameters.
9503
9504         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
9505         parameters.
9506
9507         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
9508         parameters.
9509         Output debug_macinfo data for starting file if requested.
9510         (dwarf2out_end_source_file): Output debug_macinfo data for ending
9511         file if requested.
9512         (dwarf2out_define): Output debug_macinfo data for defining a macro
9513         if requested.
9514         (dwarf2out_undef): Output debug_macinfo data for undefining a
9515         macro if requested.
9516         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
9517         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
9518         (macinfo_section_label): New. DWARF2 macro info section label.
9519         (dwarf2out_init): If we want macro info, output the start label
9520         for the section.
9521         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
9522         attribute to the compilation unit die pointing to the macro info.
9523
9524 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
9525
9526         * dwarf2out.c (new_loc_list): Move to inside #ifdef
9527         DWARF2_DEBUGGING_INFO.
9528         (add_loc_descr_to_loc_list): Ditto.
9529         (output_loc_list): Ditto.
9530         Also, fix thinko in curr not being initialized.
9531         (gen_internal_sym): Ditto.
9532
9533 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9534
9535         * emit-rtl.c (replace_equiv_address): New function.
9536         * expr.h (replace_equiv_address): New declaration.
9537         * explow.c (validize_mem): Call it instead of change_address and
9538         also call if -fforce-addr and address is constant.
9539         * expr.c: Replace more calls to change_address with adjust_address
9540         and/or replace_equiv_address or to validize_mem.
9541         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
9542         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
9543         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
9544         * config/i370/i370.md, config/i860/i860.md: Likewise.
9545         * config/i960/i960.md, config/mips/mips.c: Likewise.
9546         * config/mips/mips.md, config/pa/pa.md: Likewise.
9547         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
9548         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
9549
9550 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9551
9552         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
9553
9554         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
9555         function.
9556
9557 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
9558
9559         * doc/include: New directory.
9560         * doc/fdl.texi: Move to doc/include/fdl.texi.
9561         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
9562         * doc/include/funding.texi, doc/include/gpl.texi: New files.
9563         * doc/gcc.texi: Use funding.texi and gpl.texi.
9564         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
9565         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
9566         Update dependencies and use -I $(docdir)/include.
9567
9568 2001-07-04  Anthony Green  <green@redhat.com>
9569
9570         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
9571
9572 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9573
9574         * doc/install.texi (sparc64-*-*): Remove garbage.
9575
9576 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
9577
9578         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
9579         Fix typo in last change to use adjust_address.
9580
9581 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9582
9583         * doc/install.texi (Specific): Update information for *-*-solaris*.
9584
9585 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9586
9587         * explow.c (plus_constant_wide): Reinitialize Y for restart.
9588
9589 2001-07-03  Stan Shebs  <shebs@apple.com>
9590
9591         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
9592         case for flag_no_mach_text_sections.
9593         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
9594         * config/darwin.c (flag_no_mach_text_sections): Remove.
9595         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
9596
9597 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9598
9599         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
9600         and avoid checking for constant as first operand.
9601         * recog.c (find_constant_term_loc): No longer static.
9602         (adj_offettable_operand): Delete.
9603         * rtl.h (adj_offsettable_operand): Delete declaration.
9604         (find_constant_term): Add declaration.
9605         * caller-save.c: Replace calls to adj_offsettable_operand with calls
9606         to adjust_address.
9607         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
9608         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
9609         * config/i386/i386.c, config/i386/i386.md: Likewise.
9610         * config/i860/i860.c, config/i960/i960.c: Likewise.
9611         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
9612         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
9613         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
9614         * config/mips/mips.c, config/mips/mips.md: Likewise.
9615         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
9616         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
9617         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
9618         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
9619         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
9620         * config/ns32k/ns32k.md: Likewise.
9621
9622 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
9623
9624         * rtl.c (copy_rtx): Handle 'T' format letter.
9625         * gensupport.c (collect_insn_data): Likewise.
9626         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
9627
9628 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
9629
9630         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
9631         -B option.  Use 'dir' not 'foo' as example directory name.
9632
9633 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9634
9635         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9636         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
9637
9638 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
9639
9640         * doc/cppinternals.texi: Improve formatting and logical markup.
9641
9642 2001-07-03  Andreas Jaeger  <aj@suse.de>
9643
9644         * Makefile.in (insn-recog.o): Add dependency on reload.h.
9645
9646         * genrecog.c (write_header): Include reload.h for prototypes in
9647         insn-recog.c.
9648
9649 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9650
9651 config:
9652         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
9653         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
9654         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
9655         i386_pe_valid_type_attribute_p): Add.
9656         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
9657         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
9658
9659 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9660
9661         * explow.c (plus_constant_wide, case LO_SUM): New case.
9662         (plus_constant_for_output_wide): Delete.
9663         * rtl.h (plus_constant_for_output): Delete.
9664         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
9665         instead of plus_constant_for_output.
9666         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
9667         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
9668         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
9669         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
9670         * config/sparc/sparc.md: Likewise.
9671         Convert some change_address calls to adjust_address.
9672
9673 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
9674
9675         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
9676         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
9677         documentation of -std and -Wwrite-strings.
9678
9679 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
9680
9681         * cse.c (canon_hash): Don't register registers in very small
9682         register classes, as extending their lifetime might cause
9683         reload to fail.
9684
9685 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9686
9687         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
9688
9689         * flow.c (forwarder_block_p): Fix for fallthru blocks.
9690         (try_redirect_by_replacing_jump): Update properly the count
9691         and frequency information.
9692
9693 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
9694
9695         * toplev.c (dump_file_index): Move SSA dumps just after first
9696         jump dump.
9697         (dump_file): Corresponding changes.
9698         (rest_of_compilation): Move SSA path to just after the first
9699         jump pass.
9700         * doc/gcc.texi (Passes): Update due to movement of SSA path.
9701         * doc/invoke.texi: Update dump file #s as they were completely
9702         out of date with reality.
9703
9704 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
9705
9706         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
9707
9708         * expr.c (emit_move_insn_1): Deal with non-default
9709         STACK_PUSH_CODE.
9710
9711         * expr.c (emit_single_push_insn): Fix warning.
9712
9713 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9714
9715         * expr.c (emit_move_insn_1): Avoid modifying
9716         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
9717
9718 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9719
9720         * emit-rtl.c (adjust_address): New function.
9721         * expr.h (adjust_address): Add declaration.
9722         * builtins.c: Replace some calls to change_address with calls to it
9723         or to validize_mem.
9724         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
9725         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
9726         * config/arm/arm.c, config/convex/convex.c: Likewise.
9727         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
9728         * config/i386/i386.c, config/i386/i386.md: Likewise.
9729         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
9730         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
9731         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
9732         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
9733         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
9734
9735 2001-07-02  Jim Wilson  <wilson@redhat.com>
9736
9737         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
9738
9739 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
9740
9741         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
9742         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
9743
9744 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
9745
9746         * cppinit.c (lang_defaults): New table.
9747         (set_lang): Just read from lang_defaults into the live options
9748         structure.
9749
9750 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
9751
9752         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
9753         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
9754         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
9755
9756 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9757
9758         * doc/install.texi: Various spelling and markup fixes.
9759         (Installing GCC): Component specific installation instructions are
9760         gone.
9761         Fix reference.
9762         Warn about removing old install dir in the presence of shared libs.
9763         (Configuration): Invoke with options target to match configure
9764         --help.
9765         Consistently refer to gas, gld pathnames.
9766         Invert --enable-multilib documentation.
9767         Remove references to old compiler versions.
9768
9769 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9770
9771         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
9772
9773 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9774
9775         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
9776         section.
9777         (Specific, mips*-sgi-irix5): Note IDO download.
9778         Reworded MIPS C hints.
9779         Use GNU as instead of GAS.
9780         Markup fixes.
9781         Removed SGI Freeware reference, IRIX 6 only.
9782         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
9783         Note N64 library requirement/workaround.
9784         Update O32 hints.
9785         Complete list of structure passing bug victims.
9786
9787 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9788
9789         * doc/install.texi: Remove CVS Id.
9790
9791 2001-07-02  Andreas Jaeger  <aj@suse.de>
9792
9793         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
9794         (find_inherently_necessary): Remove unused variable.
9795
9796 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
9797
9798         * c-common.h (TDI_inlined): New ast dump phase.
9799         (dump_flag_name): New function.
9800         * c-dump.c (dump_files): Add inlined phase.
9801         (dump_flag_name): Define.
9802         * doc/invoke.texi (-fdump-ast-inlined): Document.
9803
9804 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9805
9806         * stor-layout.c (layout_decl): Revert change to handling of alignment
9807         in packed types.
9808
9809 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9810
9811         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
9812         for FIELD_DECL.
9813
9814 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
9815
9816         * doc/tm.texi (FUNCTION_ARG): Document that the last call
9817         is special.
9818
9819 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
9820
9821         * tlink.c (recompile_files): Remove COMPILER_PATH and
9822         LIBRARY_PATH from the environment.
9823
9824 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
9825
9826         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
9827         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
9828         enumerators.
9829         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
9830
9831         * c-parse.in (OBJC_STRING): Kill.
9832         (objc_string): Decompose to [objc_string] '@' STRING.
9833         (reswords): Take the leading '@' off all the Objective C keywords.
9834         (objc_rid_sans_at): Kill.
9835         (init_reswords): Don't initialize it.
9836         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
9837         (_yylex): Kill reconsider label.  Look ahead one token after
9838         an '@'; if we get an identifier, check whether it's an
9839         Objective C @-keyword.  If so, return the keyword.  Otherwise,
9840         put back the token and return the '@' as a terminal.
9841
9842         * cpplib.c (lex_macro_node): Remove unnecessary check for
9843         leading '@' on identifier.  Clarify control flow and commentary.
9844
9845 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9846
9847         * cse.c (new_label_ref): Variable deleted.
9848         (insert): Remove set of new_label_ref.
9849         (check_for_label_ref): New function.
9850         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
9851
9852 See ChangeLog.5 for earlier changes.