OSDN Git Service

* config/alpha/alpha.c (alpha_next_sequence_number): New.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-09-09  Richard Henderson  <rth@redhat.com>
2
3         * config/alpha/alpha.c (alpha_next_sequence_number): New.
4         (alpha_this_literal_sequence_number): New.
5         (alpha_this_gpdisp_sequence_number): New.
6         (some_operand, input_operand): Add HIGH.
7         (local_symbolic_operand): New.
8         (alpha_encode_section_info): New.
9         (alpha_legitimate_address_p): Allow LO_SUM.
10         (alpha_legitimize_address): Generate HIGH+LO_SUM.
11         (alpha_expand_mov): Likewise.
12         (secondary_reload_class): Check memory_operand not general_operand
13         for FP_REGS test.
14         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
15         (alpha_expand_unaligned_store): Likewise.
16         (alpha_expand_unaligned_load_words): Likewise.
17         (alpha_expand_unaligned_store_words): Likewise.
18         (alpha_expand_block_clear): Likewise.
19         (print_operand): Handle %#, %*, %H.
20         (print_operand_address): Handle LO_SUM.
21         (find_lo_sum): New.
22         (alpha_does_function_need_gp): Use it.
23         (alpha_expand_block_move): Fix signed compare warnings.
24         (alpha_sa_mask, alpha_align_insns): Likewise.
25         * config/alpha/alpha-protos.h: Update.
26         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
27         (MASK_EXPLICIT_RELOCS): New.
28         (TARGET_SWITCHES): Add -mexplicit-relocs.
29         (EXTRA_CONSTRAINT): Add 'T'.
30         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
31         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
32         (ENCODE_SECTION_INFO): Out line.
33         (REDO_SECTION_INFO_P): New.
34         (STRIP_NAME_ENCODING): New.
35         (ASM_OUTPUT_LABELREF): New.
36         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
37         (PREDICATE_CODES): Update.
38         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
39         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
40         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
41         builtin_setjmp_receiver_er, exception_receiver_1_er,
42         call_value_osf_1_er): New patterns.
43         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
44         (movqi, movhi, movsi): Add explicit $31 base register to lda.
45         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
46         (FINAL_PRESCAN_INSN): New.
47
48 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
49
50         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
51
52 2001-09-08  Andreas Jaeger  <aj@suse.de>
53
54         * i386.h (TARGET_SWITCHES): Fix description.
55
56 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
57
58         * rs6000.c (num_insns_constant): Compute number of instructions
59         more accurately.
60
61         * doc/install.texi: Explain AIX exception handling work-around.
62         Update URL for AIX fixes.
63
64 2001-09-07  Jim Wilson  <wilson@redhat.com>
65
66         * alias.c (clear_reg_alias_info): New.
67         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
68         * rtl.h (clear_reg_alias_info): Declare.
69
70 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
71
72         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
73         available.
74         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
75         (m16m,edivm,emulm): Change declaration to match definition.
76
77 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
78
79         * reload.c (push_reload): Check for subreg_lowpart_p instead of
80         SUBREG_BYTE being 0 when determining if the inner part of a subreg
81         can be reloaded.
82
83 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
84
85         * c-common.c (signed_or_unsigned_type): Handle machine mode types
86         which have no corresponding C type.
87         * fold_const.c (target_isinf,target_isnan,target_negative): Update
88         the representation of 64-bit doubles to work with 64-bit ints.
89
90 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
91
92         * config/mips/mips.c (override_options): Do not override ISA when ABI
93         specified if MIPS_CPU_STRING_DEFAULT was specified.
94
95 2001-09-07  Richard Henderson  <rth@redhat.com>
96
97         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
98         (express_from_1): Wrap lines.
99         * rtlanal.c (commutative_operand_precedence): Rename from
100         operand_preference; export.
101         * rtl.h: Declare it.
102         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
103         (simplify_binary_operation): Invoke simplify_plus_minus on
104         (CONST (PLUS ...)) as well.
105         (struct simplify_plus_minus_op_data): New.
106         (simplify_plus_minus_op_data_cmp): New.
107         (simplify_plus_minus): Use them.  Avoid infinite recursion with
108         simplify_binary_operation wrt CONST.
109
110 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
111
112         * h8300-protos.h (general_operand_dst_push): Remove.
113         * h8300.c (general_operand_dst_push): Likewise.
114         * h8300.h (OK_FOR_T): Likewise.
115         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
116         * h8300.md (pushqi_h8300): New.
117         (pushqi_h8300hs): Likewise.
118         (pushqi): Likewise.
119         (pushhi_h8300): Likewise.
120         (pushhi_h8300hs): Likewise.
121         (pushhi): Likewise.
122
123 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
124
125         * genattrtab.c (attr_printf): First arg is unsigned.
126         Clean up formatting of callers.
127
128 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
129
130         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
131         registers.
132
133 2001-09-07  Andreas Jaeger  <aj@suse.de>
134
135         * i386.h (TARGET_SWITCHES): Fix descriptions.
136
137 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
138
139         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
140
141 2001-09-06  Ira Ruben  <ira@apple.com>
142
143         Remove OP_IDENTIFIER.
144         * tree.def (OP_IDENTIFIER): Remove.
145         * tree.c (tree_node_kind enum): Remove op_id_kind.
146         (tree_node_kind_names): Remove "op_identifiers".
147         (make_node): Remove OP_IDENTIFIER test.
148         (build_op_identifier): Removed because it isn't being used.
149         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
150         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
151
152 2001-09-06  Richard Henderson  <rth@redhat.com>
153
154         * simplify-rtx.c (simplify_binary_operation): Revert last change.
155
156 2001-09-06  Richard Henderson  <rth@redhat.com>
157
158         * simplify-rtx.c (simplify_binary_operation): Simplify contents
159         of CONST.
160
161 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
162
163         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
164         number used for CR register.
165
166 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
167                           Joern Rennecke (amylaar@cygnus.com)
168
169         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
170         * h8300.c (initial_offset): Handle offset between RP and FP.
171         (h8300_return_addr_rtx): New function.
172         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
173         return register.
174         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
175         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
176         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
177         (CAN_ELIMINATE, REGISTER_NAMES):
178         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
179
180 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
181
182         Remove TYPE_NONCOPIED_PARTS.
183         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
184         (struct tree_type): Remove noncopied_parts.
185         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
186         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
187         (fixed_type_p): Remove.
188         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
189         (expand_expr, MODIFY_EXPR): Likewise.
190         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
191         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
192
193 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
194
195         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
196         compiler warnings.
197         (mask64_operand): Likewise.
198         (includes_rldic_lshift_p): Likewise.
199         (includes_rldicr_lshift_p): Likewise.
200
201 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
202
203         * objc/objc-act.c (build_message_expr): If a class method cannot
204         be found, do not issue a warning if a corresponding instance
205         method exists in the root class.
206
207 2001-09-05  Richard Henderson  <rth@redhat.com>
208
209         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
210
211 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
212
213         * function.c (ggc_mark_struct_function): Mark f->outer.
214         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
215         * integrate.c (output_inline_function): ... not here.
216
217 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
218
219         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
220
221         * i386.c (size_cost): New static variable.
222         (override_function): Use size_cost when -Os is specified.
223
224         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
225         properly;  Use current_function_calls_eh_return.
226         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
227         use leave to avoid depdendancy chain.
228
229         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
230         get BB loop_depth instead of computing it from LOOP notes.
231
232         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
233
234 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
235
236         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
237         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
238         UNALIGNED_DOUBLE_INT_ASM_OP): Define
239
240 2001-09-05  Jeffrey A Law  (law@cygnus.com)
241             Jason Merrill (jason@redhat.com)
242
243         * stor-layout.c (layout_type): Complain if an array's size can
244         not be represented in a size_t.
245
246         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
247
248 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
249
250         * gcc.c: (process_command) Add parentheses around assignment
251         used as truth value.
252
253 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
254
255         * config/mips/mips.c (save_restore_insns): Don't mark any register
256         save slots as unchanging if current_function_calls_eh_return.
257
258 2001-09-05  Richard Henderson  <rth@redhat.com>
259
260         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
261         * config/alpha/alpha-protos.h: Declare it.
262         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
263         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
264         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
265         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
266         (REG_OK_FOR_BASE_P): Select one of the above.
267
268 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
269
270         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
271         (crti.o): Prefix name of object file with $(T).
272         (crtn.o): Likewise.
273
274 2001-09-05  David S. Miller  <davem@redhat.com>
275
276         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
277         * config/sparc/linux64.h: Likewise.
278
279 2001-09-05  Andreas Jaeger  <aj@suse.de>
280
281         * doc/invoke.texi (i386 Options): -mwide-multiply is not
282         available anymore, remove the documentation.
283         (i386 Options): Fix typo, cleanup index entries.
284
285         * prefix.c (concat): Remove, we can use the version from liberty.
286
287 2001-09-05  Richard Henderson  <rth@redhat.com>
288
289         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
290         New functions split out of md file expanders.
291         * config/alpha/alpha-protos.h: Declare them.
292         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
293
294 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
295
296         * cppmacro.c (funlike_invocation_p): No need to restore context.
297
298 2001-09-04  Richard Henderson  <rth@redhat.com>
299
300         * reload.c (push_reload): Export.
301         * reload.h (push_reload): Declare it.
302
303         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
304         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
305         * config/alpha/alpha.c (alpha_legitimize_address): New.
306         (alpha_legitimize_reload_address): Likewise.
307         * config/alpha/alpha-protos.h: Declare them.
308
309 2001-09-04  Stan Shebs  <shebs@apple.com>
310
311         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
312         * config/darwin.c (machopic_stub_name): Account for internally
313         generated lib calls such as memcpy.
314
315 2001-09-04  Richard Henderson  <rth@redhat.com>
316
317         * unwind.h (_UA_END_OF_STACK): New flag.
318         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
319
320 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
321
322         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
323
324 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
325
326         * config/mips/mips.c (save_restore_insns): Change base_offset to
327         fp_offset in second call to mips_emit_frame_related_store.
328
329 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
330
331         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
332         sometimes be represented as a NOTE of type
333         NOTE_INSN_DELETED_LABEL.
334         (Insns): Document NOTE_INSN_DELETED_LABEL.
335
336 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
337
338         * c-common.h (tree_dump_index): Add more comments.
339         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
340         (dump_option_value_info): New struct.
341         (dump_options): New array.
342         (dump_switch_p): Parse switch options symbolically.
343         * doc/invoke.texi (-fdump-ast): Rename to ...
344         (-fdump-tree): ... here. Document that options are symbolic, and
345         not all are applicable.
346
347 2001-09-04  David S. Miller  <davem@redhat.com>
348
349         * config/sparc/sparc.md (define_splits): Kill constraints.
350
351         Cleanup redundant and unused insn attributes.
352         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
353         binary, and move.  Mark ialu as default.
354         (commented out define_function_unit "alu"): Kill.
355         (define_attr "use_clobbered"): Kill.
356         (whole file): Kill address insn type references.  Replace
357         all unary/binary/move references with ialu.
358         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
359         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
360         TYPE_IALU.
361
362         Simplify length insn attribute and make more judicious use
363         of insn attribute defaulting.
364         * config/sparc/sparc.md (all insns with length > one): Mark as
365         insn type multi if real instructions, else use default if
366         it is a forced splitter.
367         (all insns with length == one): Use default insn length.
368         (all insns of type ialu): Use default insn type.
369
370         Fix erroneous insn attribute settings.
371         (addx): Set insn type to misc.
372         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
373         const_umulsidi3_sp64): Set insn type to imul.
374
375         Track SFmode vs DFmode insns according to UltraSPARC
376         scheduling rules.
377         * config/sparc/sparc.md ("fptype"): New attribute, default
378         to "single".
379         (all DFmode single insns): Mark as fptype "double".
380
381 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
382
383         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
384
385 2001-09-03  Richard Henderson  <rth@redhat.com>
386
387         * function.h (struct function): Add arg_pointer_save_area_init.
388         * function.c (expand_function_end): Init arg_pointer_save_area.
389         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
390         when called from a nested function.
391
392 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
393
394         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
395         is enabled.
396
397 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
398
399         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
400
401 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
402
403         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
404         (emit_push_insn): Use specified padding direction when
405         STACK_PUSH_CODE is POST_INC.
406
407         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
408
409 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
410
411         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
412
413 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
414
415         * cppinit.c (cpp_start_read): Free the imacros list as we
416         traverse it.  Don't free the chains before returning.
417         (_cpp_push_next_buffer): Only try pushing buffers if we've
418         completed -imacros handling.
419
420 2001-08-31  Eric Christopher  <echristo@redhat.com>
421
422         * gcc.c (handle_braces): Add explaination for abort.
423
424 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
425
426         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
427         move adjustment of bitpos instead.
428
429 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
430
431         * function.c: Remove all_functions.  Make outer_function_chain
432         static.
433         (init_function_start): Don't add new function structure to
434         all_functions.
435         (find_function_data, push_function_context_to,
436         pop_function_context_from, put_var_into_stack,
437         trampoline_address): Update for changed structure element names.
438         (push_function_context_to): Disentangle.
439         (free_after_compilation): Also free F.
440         (expand_dummy_function_end): Don't free cfun here.
441         (put_var_into_stack): Comment why we can't use find_function_data here.
442         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
443         (mark_function_chain): Split into maybe_mark_struct_function and
444         ggc_mark_struct_function.  Export the latter.
445         (init_function_once): Mark from cfun and outer_function_chain;
446         not all_functions.
447
448         * function.h (struct function): Kill next_global.  Rename next
449         to outer.  All users updated to match.
450         (all_functions, outer_function_chain): Don't declare.
451
452         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
453         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
454         don't touch f->inlinable, after calling rest_of_compilation.
455
456         * tree.h: Forward-declare struct function.  Prototype
457         ggc_mark_struct_function.
458
459 2001-08-31  Kazu Hirata  <kazu@hxi.com>
460
461         * config/h8300/h8300.md (*andorhi3): Fix typos.
462
463 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
464
465         * calls.c (emit_library_call_value): Don't use a fixed
466         argument after VA_CLOSE, i.e. out of scope in traditional C.
467
468         * emit-rtl.c (gen_rtvec): Likewise.
469
470 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
471
472         * Makefile.in (c-pragma.o): Depend on output.h.
473         (reorg.o): Depend on except.h.
474
475         * c-pragma.c: Include output.h.
476
477         * reorg.c: Include except.h.
478
479         * unwind-dw2.c: Call __builtin_alloca, not alloca.
480
481 2001-08-31  Richard Henderson  <rth@redhat.com>
482
483         * sched-deps.c (add_dependence): Don't elide dependancy if the
484         conditional used by insn is modified in elem.
485
486 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
487
488         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
489
490 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
491
492         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
493         dump_switch_p.
494
495 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
496
497         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
498         function.
499         (stormy16_asm_out_constructor): New function.
500         (TARGET_ASM_CONSTRUCTOR): Define.
501         (TARGET_ASM_DESTRUCTOR): Define.
502
503 2001-08-31  Andreas Jaeger  <aj@suse.de>
504
505         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
506         * loop.c (add_label_notes): Likewise.
507         * reload.c (find_reloads): Likewise.
508         * config/sh/sh.c (machine_dependent_reorg): Likewise.
509
510 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
511
512         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
513         code here.  Take _Unwind_{W,Sw}ord*.
514         (read_encoded_value_with_base): Use them.
515         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
516         words.
517         (extract_cie_info): Simplify read_?leb128 handling.
518         (execute_stack_op, execute_cfa_program): Likewise.
519         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
520
521 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
522
523         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
524         the frame pointer to pop the stack if convenient.
525
526         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
527         Don't use post-increment before combine.
528         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
529         a call-saved register.
530
531 2001-08-31  Andreas Jaeger  <aj@suse.de>
532
533         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
534         code was correct.
535
536 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
537
538         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
539         not DIV/MOD, of course.
540
541 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
542
543         * rtl.def: Undo my patch commited 2001-08-27.
544
545         * genattrtab.c: Ditto.
546
547         * rtl.h: Ditto.
548
549         * sched-int.h: Ditto.
550
551         * target-def.h: Ditto.
552
553         * target.h: Ditto.
554
555         * haifa-sched.c: Ditto.
556
557         * sched-rgn.c: Ditto.
558
559         * sched-vis.c: Ditto.
560
561         * Makefile.in: Ditto.
562
563         * doc/md.texi: Ditto.
564
565         * doc/tm.texi: Ditto.
566
567         * doc/contrib.texi: Ditto.
568
569         * doc/gcc.texi: Ditto.
570
571         * genattrtab.h: Remove it.
572
573         * genautomata.c: Remove it.
574
575         * genattr.c: Undo my patch and Richard Henderson's patch commited
576         2001-08-27.
577
578 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
579
580         * config.gcc (h8300-*-elf*): New case.
581         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
582         (SUBTARGET_CPP_SPEC): Define.
583         (EXTRA_SPECS): Define.
584         (SUBTARGET_EXTRA_SPECS): Define.
585         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
586         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
587
588 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
589
590         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
591         (LIB2FUNCS_EXTRA): Define.
592         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
593         config/h8300/fixunssfsi.c: New file.
594
595 2001-08-30  Kazu Hirata  <kazu@hxi.com>
596
597         * config/h8300/h8300.md (zero_extendqihi2): Changes to
598         define_expand to accomodate target-specific attributes.
599         (anonymous zero_extendqihi2 patterns): New.
600
601 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
602
603         * h8300.md (*andorhi3): New pattern.
604
605 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
606
607         * h8300.c (dosize): Fix test for "sub".
608
609 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
610
611         * c-typeck.c (pointer_diff): Try to eliminate common term before
612         doing conversions.
613
614 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
615
616         * config/arm/arm.c (arm_compute_initial_elimination_offset):
617         Account for the saves of the FP registers.
618
619         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
620         (TEXT_SECTION_ASM_OP): Define.
621         (INIT_SECTION_ASM_OP): Define.
622         (FINI_SECTION_ASM_OP): Define.
623         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
624         (RDATA_SECTION_FUNCITON): Provide prototype.
625
626 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
627
628         * reload1.c (move2add_note_store): Correct typo checking for
629         argument pushes.
630
631 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
632
633         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
634         note should not be considered outside the libcall block.
635
636 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
637
638         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
639
640 2001-08-29  Kazu Hirata  <kazu@hxi.com>
641
642         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
643
644 2001-08-29  Kazu Hirata  <kazu@hxi.com>
645
646         * config/h8300/h8300-protos.h: Add a prototype for
647         emit_logical_op.
648         * config/h8300/h8300.c (emit_logical_op): New.
649         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
650         (andsi3): Likewise.
651         (iorhi3): Likewise.
652         (iorsi3): Likewise.
653         (xorhi3): Likewise.
654         (xorsi3): Likewise.
655
656 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
657
658         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
659         comparison with rtx INTVAL.
660         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
661         expression.
662         * pa.h (FUNCTION_ARG_SIZE): Likewise.
663
664 2001-08-29  Kazu Hirata  <kazu@hxi.com>
665
666         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
667         comment typos.
668
669 2001-08-29  Kazu Hirata  <kazu@hxi.com>
670
671         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
672         (reg n) to (mem (pre_dec (reg n))
673         (anonymous movsi pattern): Likewise.
674
675 2001-08-29  Kazu Hirata  <kazu@hxi.com>
676
677         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
678
679 2001-08-29  Kazu Hirata  <kazu@hxi.com>
680
681         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
682         several special constants.
683
684 2001-08-29  Kazu Hirata  <kazu@hxi.com>
685
686         * config/h8300/lib1funcs.asm: Fix comment typos.
687
688 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
689
690         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
691         Fix format specifier warnings.
692
693         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
694         inet_makeaddr, semctl): Prototype.
695
696         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
697         (save_restore_insns): Use base_offset, not gp_offset.
698
699         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
700         (ASM_OUTPUT_BYTE): Fix format specifier warning.
701
702 2001-08-29  Richard Henderson  <rth@redhat.com>
703
704         * bb-reorder.c (function_tail_eff_head): New.
705         (record_effective_endpoints): Set it.
706         (fixup_reorder_chain): Use it.
707
708 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
709
710         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
711
712 2001-08-28  Dale Johannesen  <dalej@apple.com>
713
714         * config/darwin.c (machopic_function_base_name): Add const
715         qualifier to a string.
716         (darwin_encode_section_info): Ditto.
717
718 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
719
720         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
721         function definition.
722
723 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
724
725         * df.h (struct df): Add rts_order variable.
726
727         * df.c (df_visit_next_rts): New function.
728         (df_visit_next): Renamed to df_visit_next_rc
729         (df_analyse_1): Allocate/compute/free rts_order as well.
730         (df_rd_global_compute): Use df_visit_next_rc instead of
731         df_visit_next.
732         (df_ru_global_compute): Use df_visit_next_rts instead of
733         df_visit_next.
734
735         * flow.c (flow_reverse_top_sort_order_compute): New function.
736
737         * basic-block.h: Add prototype.
738
739 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
740
741         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
742         blocks, the BB_REACHABLE is now set, rather than aux being
743         non-NULL. Update the test to reflect this.
744
745 2001-08-28  Eric Christopher  <echristo@redhat.com>
746
747         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
748         config/mips/crti.asm: Ditto.
749
750 2001-08-28  Eric Christopher <echristo@redhat.com>
751             Richard Henderson <rth@redhat.com>
752
753         * c-pragma.h (add_weak): Move prototype from here...
754         * output.h (add_weak): ... to here.
755         * varasm.c (add_weak): Fix typo.
756         * config/mips/crti.asm: New file.
757         * config/mips/crtn.asm: Ditto.
758         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
759         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
760         (INVOKE__main): Ditto.
761         (INIT_SECTION_ASM_OP): New.
762         (FINI_SECTION_ASM_OP): Ditto.
763         (STARTFILE_SPEC): Add crti.
764         (ENDFILE_SPEC): Add crtn.
765         * config/mips/elf64.h: Same.
766         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
767         Remove.
768         * config/mips/vxworks.h: Ditto.
769         * config/mips/t-elf: Support crti and crtn.
770
771 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
772
773         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
774         INSN_LIST.
775
776 2001-08-28  Richard Henderson  <rth@redhat.com>
777
778         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
779         (one_cmplbi2 splitter): Remove redundant test.
780
781 2001-08-28  Dale Johannesen  <dalej@apple.com>
782
783         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
784
785 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
786
787         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
788
789 2001-08-28  Stan Shebs  <shebs@apple.com>
790
791         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
792         (UNALIGNED_SHORT_ASM_OP): Define.
793         (UNALIGNED_INT_ASM_OP): Define.
794
795 2001-08-28  Will Cohen  <wcohen@redhat.com>
796
797         * config/rs6000/rs6000.md (store_multiple): Correct RTL
798         generation for first set.
799
800 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
801
802         * flow.c (redirect_edge_succ_nodup): Return new edge.
803         (try_simplify_condjump): Use new edge.
804         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
805
806         * cse.c (cse_basic_block): Skip note instructions.
807
808 2001-08-27  Richard Henderson  <rth@redhat.com>
809
810         * combine.c (combine_simplify_rtx): Don't reverse condition
811         if there is no reverse for the condition.
812         (simplify_comparison): Don't simplify subregs from INT to FP.
813
814         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
815         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
816         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
817         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
818         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
819         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
820
821 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
822
823         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
824         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
825         (pushqi1): New.
826         (adddi_dilshr32, adddi_dishl32): Only data register can be
827         source for mem destination.
828
829         * expmed.c (store_bit_field): Ignore adjustment to bitpos
830         and use bitnum to decide about register move.
831
832 2001-08-27  Richard Henderson  <rth@redhat.com>
833
834         * genattr.c (main): Emit state_t even when not doing scheduling.
835
836 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
837             Richard Henderson  <rth@redhat.com>
838
839         * gcse.c (reg_first_set, reg_last_set): Replace with ...
840         (reg_avail_info, current_bb): ... these.
841         (oprs_unchanged_p, record_last_reg_set_info): Use them.
842         (compute_hash_table): Likewise.
843
844 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
845
846         * flow.c (verify_flow_info): Use checksums to verify edges.
847
848 2001-08-27  Richard Henderson  <rth@redhat.com>
849
850         * genautomata.c (expand_automata): Always create a description.
851
852 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
853
854         * optabs.c (expand_binop): Correctly handle the carry in multiword
855         add/subtract operations.
856
857 2001-08-27  Fred Fish  <fnf@be.com>
858
859         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
860         __SIZE_TYPE__.
861
862 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
863
864         * reload.c (find_reloads_toplev): Back out this change:
865
866         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
867
868         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
869         mem if the address is a mode_dependent_address_p.
870
871 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
872
873         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
874         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
875         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
876         RTL constructions.
877
878         * genattr.c (main): New variable num_insn_reservations.  Increase
879         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
880         pipeline hazard recognizer interface.
881
882         * genattrtab.h: New file.
883
884         * genattrtab.c: Include genattrtab.h.
885         (attr_printf, check_attr_test, make_internal_attr,
886         make_numeric_value): Move protypes into genattrtab.h.  Define them
887         as external.
888         (num_dfa_decls): New global variable.
889         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
890         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
891         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
892         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
893
894         * genautomata.c: New file.
895
896         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
897
898         * sched-int.h: (curr_state): Add the external definition for
899         automaton pipeline interface.
900         (haifa_insn_data): Add comments for members blockage and units.
901
902         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
903         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
904         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
905         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
906         TARGET_SCHED_DFA_POST_CYCLE_INSN,
907         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
908         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
909         macros.
910         (TARGET_SCHED): Use the new macros.
911
912         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
913         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
914         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
915         dfa_bubble): New members in gcc_target.sched.
916
917         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
918         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
919         (insn_queue): Redefine it as pointer to array.
920         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
921         INSN_QUEUE_SIZE.
922         (max_insn_queue_index_macro_value): New variable.
923         (curr_state, dfa_state_size, ready_try): New varaibles for
924         automaton interface.
925         (ready_element, ready_remove, max_issue): New function prototypes
926         for automaton interface.
927         (choose_ready): New function prototype.
928         (insn_unit, blockage_range): Add comments.
929         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
930         FUNCTION_UNITS_SIZE == 0.
931         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
932         actual_hazard, potential_hazard): Add comments.
933         (insn_cost): Use cost -1 as undefined value.  Remove
934         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
935         pipeline interface.
936         (ready_element, ready_remove): New functions for automaton
937         interface.
938         (schedule_insn): Add new code for automaton pipeline interface.
939         (queue_to_ready): Add new code for automaton pipeline interface.
940         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
941         (debug_ready_list): Print newline when the queue is empty.
942         (max_issue): New function for automaton pipeline interface.
943         (choose_ready): New function.
944         (schedule_block): Add new code for automaton pipeline interface.
945         Print ready list before scheduling each insn.
946         (sched_init): Add new code for automaton pipeline interface.
947         Initiate insn cost by -1.
948         (sched_finish): Free the current automaton state and finalize
949         automaton pipeline interface.
950
951         * sched-rgn.c: Include target.h.
952         (init_ready_list, new_ready, debug_dependencies): Add new code for
953         automaton pipeline interface.
954
955         * sched-vis.c: Include target.h.
956         (get_visual_tbl_length): Add code for automaton interface.
957         (target_units, print_block_visualization):  Add comments.
958
959         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
960         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
961         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
962         (getruntime.o, genautomata.o): New entries.
963         (genattrtab.o): Add new dependency file genattrtab.h.
964         (genattrtab): Add new dependencies.  Link it with `libm.a'.
965         (getruntime.o, hashtab.o): New entries for canadian cross.
966
967         * doc/md.texi: Description of automaton based model.
968
969         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
970         Add comments.
971         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
972         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
973         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
974         TARGET_SCHED_DFA_POST_CYCLE_INSN,
975         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
976         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
977         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
978         hook descriptions.
979         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
980         MAX_DFA_ISSUE_RATE): New macro descriptions.
981
982         * doc/contrib.texi: Add dfa based scheduler contribution.
983
984         * doc/gcc.texi: Add more information about genattrtab.
985
986 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
987
988         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
989         an RTL basic block.
990
991 2001-08-27  Richard Henderson  <rth@redhat.com>
992
993         * function.c (expand_function_end): Don't init arg_pointer_save_area.
994         (get_arg_pointer_save_area): New.  Create an init it here.
995         (fix_lexical_addr): Use it.
996         * function.h: Declare it.
997         * builtins.c (expand_builtin_setjmp_receiver): Use it.
998         * stmt.c (expand_nl_goto_receiver): Use it.
999
1000 2001-08-27  Richard Henderson  <rth@redhat.com>
1001
1002         * final.c (final_scan_insn): Don't enter APP_ON mode for
1003         empty asm strings.
1004
1005         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
1006         alignment for assemble_integer for DW_EH_PE_aligned.
1007         * except.c (output_function_exception_table): Likewise.
1008
1009 2001-08-26  Andreas Jaeger  <aj@suse.de>
1010
1011         * c-tree.h: Add prototyp for c_sizeof_nowarn.
1012
1013 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
1014
1015         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
1016
1017 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
1018
1019         * config/rs6000/rs6000.c (mask_operand): Rewrite without
1020         bit-shifting loop.
1021         (mask64_operand): Likewise.
1022         (rldic_operand): Delete.
1023         (includes_lshift64_p): Delete.
1024         (includes_rldic_lshift_p): New function.
1025         (includes_rldicr_lshift_p): New function.
1026         (print_operand): Don't call rldic_operand in case 'W'.
1027         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
1028         (includes_lshift64_p): Remove.
1029         (includes_rldic_lshift_p): Declare.
1030         (includes_rldicr_lshift_p): Declare.
1031         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
1032         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
1033         Replace match_operand rldic_operand predicate with
1034         const_int_operand.  Replace includes_lshift64_p condition with
1035         includes_rldic_lshift_p.
1036         <ashldi3_internal 64 bit rldicr patterns>: New.
1037
1038 2001-08-27  Andreas Jaeger  <aj@suse.de>
1039
1040         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1041         * errors.c: Likewise.
1042         * final.c: Likewise.
1043         * dwarf2asm.c: Likewise.
1044         * doprint.c (checkit): Likewise.
1045         * diagnostic.c: Likewise.
1046         * collect2.c: Likewise.
1047         * calls.c: Likewise.
1048         * c-semantics.c (build_stmt): Likewise.
1049         * c-format.c (status_warning): Likewise.
1050         * c-errors.c (pedwarn_c99): Likewise.
1051         * builtins.c (validate_arglist): Likewise.
1052         * config/pj/pj.c (pj_printf): Likewise.
1053         * fix-header.c: Likewise.
1054         * gcc.c: Likewise.
1055         * gcov.c (fnotice): Likewise.
1056         * gensupport.c (message_with_line): Likewise.
1057         * mips-tfile.c: Likewise.
1058         * protoize.c (notice): Likewise.
1059         * read-rtl.c (fatal_with_file_and_line): Likewise.
1060         * rtl-error.c: Likewise.
1061         * tradcpp.c: Likewise.
1062         * tree.c: Likewise.
1063         * cp/tree.c (build_min_nt): Likewise.
1064         (build_min): Likewise.
1065         * cp/lex.c: Likewise.
1066         * cp/errfn.c: Likewise.
1067         * cp/rtti.c (create_pseudo_type_info): Likewise.
1068
1069 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
1070
1071         * df.c (df_uses_record): Return after recording all uses
1072         in ASM_OPERANDS.
1073
1074 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
1075
1076         * df.c (df_insn_modify): Realloc the INSN table here, if
1077         necessary, here, too.
1078
1079 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
1080
1081         * config/mips/mips.c (mips_function_value): Handle complex return
1082         values.
1083
1084 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
1085
1086         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
1087         unshared.
1088         * reload.c (make_memloc): Copy result if it is still
1089         reg_equiv_memory_loc[regno] on return.
1090         (subst_reloads) [ENABLE_CHECKING]: Check that none of
1091         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
1092         reg_equiv_mem are modified by the substitutions.
1093
1094 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
1095
1096         * predict.c (expensive_function_p): New.
1097         * rtl.h (expensive_function_p): Declare.
1098         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
1099         (use_fast_prologue_epilogue): New static variable.
1100         (expand_prologue): Set it; emit short prologues if unset.
1101         (expand_epilogue): Likewise.
1102
1103 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
1104
1105         * config.gcc: Add stormy16-*-elf case.
1106         * config/stormy16/stormy-abi: New file.
1107         * config/stormy16/stormy16-lib2.c: New file.
1108         * config/stormy16/stormy16-protos.h: New file.
1109         * config/stormy16/stormy16.c: New file.
1110         * config/stormy16/stormy16.h: New file.
1111         * config/stormy16/stormy16.md: New file.
1112         * config/stormy16/t-stormy16: New file.
1113
1114 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
1115
1116         * i386.h (no-accumulate-outgoing-args): Use proper mask.
1117
1118 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
1119
1120         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
1121         descriptor members are pointer size, not constant 4.
1122         * config/rs6000/rs6000.md (define_splits): Remove more unused
1123         constraints.
1124
1125 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1126
1127         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1128
1129 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
1130
1131         * cp/rtti.c (VPARAMS): Fix parameter.
1132
1133 2001-08-24  Zack Weinberg  <zackw@panix.com>
1134
1135         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
1136         to zero.
1137         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
1138         to switch.
1139         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
1140         in if controlling use of insv.
1141         (extract_bit_field): Likewise, for extv and extzv.
1142
1143 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
1144
1145         * i386.md (movcc peep2): Fix load of 0.
1146
1147 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1148
1149         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
1150         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
1151
1152 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
1153
1154         * c-pragma.h: Move weak_syms and weak_decls...
1155         * varasm.c: ...here.  Now static.
1156         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
1157         depend on HANDLE_PRAGMA_WEAK.
1158
1159         * c-common.c (c_alignof, c_alignof_expr): Move here...
1160         * c-typeck.c: ...from here.
1161         * c-tree.h, c-common.h: Adjust.
1162
1163 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
1164
1165         * config/ia64/ia64.c (rws_update): If !pred, set write_count
1166         instead of incrementing it.
1167
1168         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
1169         asm ready, don't try to move them all into the same array element.
1170
1171 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
1172
1173         * function.c (thread_prologue_and_epilogue_insns): Avoid
1174         fallthru flag on edge to exit.
1175
1176         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
1177
1178         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
1179         dead edges.
1180
1181 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
1182
1183         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
1184         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
1185         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
1186         Remove prototype.
1187
1188 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
1189
1190         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
1191         replace "GNU CC" with "GCC".
1192
1193 2001-08-23  Richard Henderson  <rth@redhat.com>
1194
1195         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
1196         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
1197         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
1198         Need GR between FR and not GR_AND_FR.
1199         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
1200         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
1201         AR regs before GR regs.
1202         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1203         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
1204         (REGISTER_MOVE_COST): Update.
1205         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
1206
1207 2001-08-23  Richard Henderson  <rth@redhat.com>
1208
1209         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
1210         a register class.
1211
1212 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
1213
1214         * reload1.c (emit_reload_insns): Don't look for notes
1215         on a NULL store_insn.
1216
1217 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1218
1219         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
1220         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
1221         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
1222         format specifier warnings.
1223         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
1224
1225 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
1226
1227         * config/i386/i386-protos.h: Correct declaration of
1228         i386_pe_asm_named_section.
1229
1230 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1231
1232         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
1233         variable i.
1234         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
1235
1236 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1237
1238         * cpperror.c (print_location): Don't show _Pragma.
1239         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
1240         and file change callback generation here.
1241         (stack_include_file): Update use of cpp_push_buffer.
1242         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
1243         (struct cpp_buffer): Remove type, pfile members.
1244         * cppinit.c (cpp_handle_option): Use free_chain.
1245         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
1246         (skip_escaped_newlines, get_effective_char, lex_percent): Take
1247         a cpp_reader rather than a cpp_buffer.
1248         (skip_escaped_newlines, get_effective_char, skip_block_comment,
1249         skip_line_comment, parse_string, lex_percent, lex_dot,
1250         _cpp_lex_token): Update accordingly.
1251         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
1252         generation here.
1253         (cpp_push_buffer): Update prototype.
1254         (run_directive): Update use of cpp_push_buffer.
1255         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
1256         handle_assertion): Update use of run_directive.
1257         * cpplib.h (enum cpp_buffer_type): Remove.
1258         (cpp_push_buffer): Update prototype.
1259         * fix-header.c (read_scan_file): Update.
1260
1261 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1262
1263         * gcc.c (struct prefix_list): Change prefix to const char *.
1264
1265 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1266
1267         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
1268
1269 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
1270
1271         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
1272         from a new MEM.
1273
1274         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
1275         a squeezable note.
1276         * rtl.h: Adjust.
1277         * ifcvt.c (dead_or_predicable): Adjust.
1278         * loop.c (find_and_verify_loops): Adjust.
1279         * stmt.c (expand_end_case): Adjust.
1280         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
1281         head and end insn pointers in the basic block, not just local copies.
1282         (merge_blocks_move_predecessor_nojumps): Likewise.
1283
1284 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
1285
1286         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
1287         bitmap.h, builtin-types.def, builtins.c, builtins.def,
1288         c-aux-info.c, c-common.c, c-common.def, c-common.h,
1289         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
1290         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
1291         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
1292         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
1293         conditions.h, config.gcc, configure.frag, configure.in,
1294         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
1295         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
1296         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
1297         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
1298         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
1299         emit-rtl.c, errors.c, errors.h, except.c, except.h,
1300         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
1301         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
1302         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
1303         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
1304         gencheck.c, gencodes.c, genconfig.c, genemit.c,
1305         genextract.c, genflags.c, gengenrtl.c, genmultilib,
1306         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
1307         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
1308         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
1309         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
1310         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
1311         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
1312         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
1313         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
1314         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
1315         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
1316         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
1317         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
1318         params.h, predict.c, predict.def, predict.h, prefix.c,
1319         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
1320         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
1321         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
1322         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
1323         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
1324         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
1325         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
1326         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
1327         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
1328         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
1329         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
1330         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
1331         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
1332         xcoffout.h: replace "GNU CC" with "GCC".
1333
1334 2001-08-21  Richard Henderson  <rth@redhat.com>
1335
1336         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
1337         (final_scan_insn): Consider jump tables data even if we have no
1338         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
1339         ADDR_VEC_ALIGN.
1340         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
1341         (ASM_OUTPUT_CASE_END): Remove.
1342         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
1343         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
1344         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1345
1346 2001-08-21  Richard Henderson  <rth@redhat.com>
1347
1348         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
1349         at barrier insns.  Emit stop bits before barriers.
1350
1351         * flow.c (flow_find_cross_jump): Don't consider unconditional
1352         return insns for commoning.
1353
1354         * final.c (compute_alignments): Fix typo.
1355
1356         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
1357         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
1358         (store_bit_field): Use mode_for_extraction more places.
1359         (extract_bit_field): Likewise.
1360
1361 2001-08-21  Zack Weinberg  <zackw@panix.com>
1362
1363         * caller-save.c: Don't include insn-codes.h.
1364         (reg_save_code, reg_restore_code): Make arrays of int.
1365         All uses updated to match.
1366         (insert_save, insert_restore): No need to initialize "code"
1367         variable upon declaration.
1368         * Makefile.in: update dependencies; fix typo in clean rule.
1369
1370 2001-08-21  Richard Henderson  <rth@redhat.com>
1371
1372         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
1373         (merge_if_block): Handle fallout from same.
1374
1375 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1376
1377         * builtins.c (type_to_class): Fix typo in last change.
1378
1379 2001-08-21  Richard Henderson  <rth@redhat.com>
1380
1381         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
1382         ia64_asm_output_label.
1383
1384         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
1385         copy of gp while the real gp register contains garbage.
1386
1387 2001-08-21  Zack Weinberg  <zackw@panix.com>
1388
1389         * expmed.c (mode_for_extraction): New function.
1390         (store_bit_field, extract_bit_field): Use it.
1391         * expr.h: Prototype it and provide an enum for its first argument.
1392
1393         * combine.c, function.c, recog.c: Don't include insn-codes.h.
1394         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
1395         and digging through the insn_data tables.
1396         * Makefile.in: Update dependencies.
1397
1398 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1399
1400         * cppfiles.c (stack_include_file): line-map.c now handles include
1401         depth.
1402         (handle_missing_handler): Similarly.
1403         (_cpp_execute_include): Similarly.
1404         (_cpp_pop_file_buffer): Similarly.
1405         * cpphash.h (struct cpp_reader): Remove system_include_depth,
1406         buffer_stack_depth and include_depth.
1407         * cpplib.c (do_include_common): line-map.c now handles include depth.
1408         (cpp_push_buffer): Similarly.
1409         (_cpp_pop_buffer): Similarly.
1410         * cppmacro.c (builtin_macro): Update.
1411         * line-map.c (init_line_maps): Set depth.
1412         (add_line_map): Increment "used" earlier.  Update and use the
1413         include depth.
1414         (trace_include): Use the include depth.
1415         * line-map.h (struct line_maps): New member depth.
1416
1417 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1418
1419         * cppfiles.c (stack_include_file): Don't handle -H here.
1420         * cppinit.c (cpp_start_read): Set include tracing after
1421         cpp_post_options and after stacking the main file.
1422         * line-map.c (trace_include): New.
1423         (init_line_maps, add_line_map): Update.
1424         * line-map.h (struct line_maps): New member trace_includes.
1425
1426 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1427
1428         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
1429         * cppfiles.c (stack_include_file): Only stack a file if there
1430         is something to do.  Return a boolean indicating whether a
1431         buffer was stacked or not.
1432         (_cpp_execute_include): Similarly.
1433         (_cpp_read_file): Similarly.
1434         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
1435
1436 2001-08-21  Sam Steingold  <sds@gnu.org>
1437
1438         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
1439         (RECACHE): keep obufp_before_macroname up to date
1440
1441 2001-08-21  Zack Weinberg  <zackw@panix.com>
1442
1443         * stmt.c: Don't include insn-codes.h.
1444         (expand_end_case): Machine specific logic moved to expr.c.
1445         No need to worry about __builtin_classify_type.
1446         (check_for_full_enumeration_handling, emit_case_nodes):
1447         Kill #if 0 blocks.
1448
1449         * builtins.o (expand_builtin_classify_type): Split up so code
1450         can be shared with fold_builtin_classify_type.
1451         (type_to_class, fold_builtin_classify_type): New functions.
1452         (fold_builtins): Handle __builtin_classify_type.
1453
1454         * expr.c (do_tablejump): Now static.
1455         (case_values_threshold, try_casesi, try_tablejump): New;
1456         code mostly from stmt.c (expand_end_case).
1457         (expr.h): Update prototypes.
1458
1459         * Makefile.in (stmt.o): Update dependencies.
1460
1461 2001-08-21  Will Cohen  <wcohen@redhat.com>
1462
1463         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
1464         declaration of variable i.
1465         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
1466         declaration of variable i.
1467
1468 2001-08-21  Richard Henderson  <rth@redhat.com>
1469
1470         * crtstuff.c: Fix thinko last change.  Move list tails to start
1471         of CRT_END section.  Tidy ifdefs.
1472         (__EH_FRAME_BEGIN__): Always static for ELF.
1473         (__do_global_ctors_1): Rename from __frame_dummy.
1474         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
1475         name change; don't hide __EH_FRAME_BEGIN__.
1476
1477 2001-08-21  Richard Henderson  <rth@redhat.com>
1478
1479         * gdbinit.in: Move break on exit after break on fancy_abort.
1480
1481         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
1482         sized types.
1483
1484 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1485
1486         * cpphash.h (_cpp_push_next_buffer): New.
1487         * cppinit.c (do_includes): Remove.
1488         (push_include, free_chain, _cpp_push_next_buffer): New.
1489         (cpp_start_read): Use them to rework command line option handling.
1490         (cpp_handle_option): Combine handling of -include and -imacros.
1491         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
1492         appropriate.  Always insert missing \n at EOF.
1493         * cpplib.c (start_directive): Get the directive position right.
1494         * cppmain.c (cb_file_change): Always print the first line, unless
1495         preprocessed.
1496
1497 2001-08-20  Andreas Jaeger  <aj@suse.de>
1498
1499         * profile.c (compute_branch_probabilities): Remove extra new-line
1500         in error message.
1501         * flow.c (verify_flow_info): Likewise.
1502
1503 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
1504
1505         * basic-block.h (basic_block): Add new field 'flags'.
1506         (BB_REACHABLE): Define.
1507         (expunge_block): Declare.
1508         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
1509         (EXIT_BLOCK_PTR): Ditto.
1510         (expunge_block): Remove static declaration.
1511         (cleanup_cfg): Clear bb->aux on every basic block.
1512         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
1513         computing reachability.
1514         (delete_unreachable_blocks): Delete block b if b->flags has
1515         BB_REACHABLE unset.
1516
1517 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
1518
1519         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
1520
1521 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1522
1523         * sparc.c (sparc_variable_issue): Fix typo in last change.
1524
1525 2001-08-20  Richard Henderson  <rth@redhat.com>
1526
1527         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
1528
1529 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1530
1531         * pa.h (RETURN_IN_MEMORY): Improve comment.
1532
1533 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
1534
1535         * doc/invoke.texi (Profiling options): Clarify the interactions
1536         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
1537
1538 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
1539
1540         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
1541         command.
1542
1543 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1544
1545         * gcc.c (make_relative_prefix): Allocate a sufficiently large
1546         buffer.
1547
1548 2001-08-20  Richard Henderson  <rth@redhat.com>
1549
1550         * final.c (end_final): Fix typo last change.
1551
1552 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1553
1554         * cppinit.c (init_standard_includes): The returned buffer
1555         is already malloc-ed.
1556         * gcc.c (add_prefix): Similarly.
1557         * prefix.c (translate_name): Update to support clear buffer
1558         ownership rules.
1559         (update_path): Similarly.  Be sure to free any newly allocated
1560         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
1561         (tr): New function.
1562         * prefix.h (update_path): Update prototype and document.
1563         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
1564         up and update to new buffer ownership rules.
1565         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
1566
1567 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
1568
1569         * final.c (compute_alignments): New function.
1570         (init_insn_lengths): Do not care label_align.
1571         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
1572         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
1573         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
1574         (shorted_branches): Realloc label_align array; do
1575         not call init_insn_lengths; Do not care about loop alignments.
1576         * output.h (compute_alignments): Declare.
1577         * toplev.c (rest_of_compilation): Call compute_alignments.
1578         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
1579
1580         * predict.c (block_info_def): Add npredecesors, remove nvisited;
1581         change visited to tovisit.
1582         (propagate_freq): Use faster traversing algorithm.
1583         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
1584         to tovisit; reverse meaning.
1585
1586         * predict.c (struct block_info_def): Remove nvisited.
1587         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1588         (estimate_bb_frequencies): Call mark_dfs_back_edges.
1589
1590 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
1591
1592         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1593         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1594         (TARGET_FUSED_MADD): New.
1595         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1596         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1597         the multiply-add instructions.
1598
1599 2001-08-19  Richard Henderson  <rth@redhat.com>
1600
1601         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1602         is aligned to pointer size.
1603
1604 2001-08-19  Richard Henderson  <rth@redhat.com>
1605
1606         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1607         display markers during final schedule.
1608
1609 2001-08-19  Richard Henderson  <rth@redhat.com>
1610
1611         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1612
1613 2001-08-19  Richard Henderson  <rth@redhat.com>
1614
1615         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1616         in the same string.
1617         (ASM_NAME_TO_STRING): Remove.
1618         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1619         in the same string.  Remove support for expressions.
1620
1621 2001-08-19  Richard Henderson  <rth@redhat.com>
1622
1623         * config/i386/i386.md (tablejump): Make an expander; handle
1624         pic relative addressing here.
1625         (tablejump_1): Rename from tablejump_pic.
1626         (casesi): Remove.
1627
1628 2001-08-19  Richard Henderson  <rth@redhat.com>
1629
1630         * regclass.c (fix_register): Fix typo.
1631
1632 2001-08-18  Richard Henderson  <rth@redhat.com>
1633
1634         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1635         (struct _Unwind_Context): Expand br_loc to hold it.
1636         (uw_frame_state_for): Handle leaf functions better.
1637         (uw_update_reg_address): Update for br_loc change.
1638
1639 2001-08-18  Richard Henderson  <rth@redhat.com>
1640
1641         * crtstuff.c: Move list heads before code that uses them.
1642         (__JCR_LIST__): Remove initial null.
1643         (frame_dummy, __frame_dummy): Do java registration here ...
1644         (__do_global_ctors_aux): ... not here.
1645
1646         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1647         (__do_global_dtors_aux): Update to match.
1648         (__JCR_LIST__, __do_jv_register_classes): New.
1649         (.init): Call it.
1650         * config/ia64/crtend.asm (__JCR_END__): New.
1651         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1652         instead of an indirect LTOFF22 reloc.
1653
1654 2001-08-18  Richard Henderson  <rth@redhat.com>
1655
1656         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1657         * regclass.c (init_reg_sets_1): Fix typo.
1658         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1659         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1660         (ia64_compute_frame_size): Make ar.unat live when in use.
1661         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1662         for ar.pfs; remove ar.unat handling.
1663         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1664         call-saved.
1665         (PREDICATE_CODES): Add ar_pfs_reg_operand.
1666         * config/ia64/ia64-protos.h: Update decls.
1667         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1668         (sibcall_pic): Likewise.
1669
1670 2001-08-18  Richard Henderson  <rth@redhat.com>
1671
1672         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1673         pred_rel_mutex when searching for insn_group_barrier.
1674         * config/ia64/ia64.md (cycle_display): Combine the expander
1675         and insn patterns.
1676
1677         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1678         bit before asm as needed.
1679
1680 2001-08-18  Richard Henderson  <rth@redhat.com>
1681
1682         * timevar.def (TV_MACH_DEP): New.
1683         * toplev.c (rest_of_compilation): Use it.
1684         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1685
1686 2001-08-18  Zack Weinberg  <zackw@panix.com>
1687
1688         * unwind-dw2.c (execute_stack_op): Add default aborts to
1689         the inner switches to prevent warnings.
1690
1691 2001-08-18  Richard Henderson  <rth@redhat.com>
1692
1693         * timevar.h (struct timevar_time_def): Change element type to float.
1694         (ticks_to_msec, clocks_to_msec): Likewise.
1695         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
1696         (get_time): Likewise.
1697         (timevar_print): Adjust zero check and printing to match.
1698
1699 2001-08-18  Zack Weinberg  <zackw@panix.com>
1700
1701         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
1702         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
1703         Eliminate overfull or underfull hboxes.
1704
1705 2001-08-18  Zack Weinberg  <zackw@panix.com>
1706
1707         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1708
1709 2001-08-18  Zack Weinberg  <zackw@panix.com>
1710
1711         * haifa-sched.c: Convert to target hooks.  Macros replaced
1712         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
1713         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
1714         MD_SCHED_FINISH, and HAVE_cycle_display.
1715         * target-def.h (TARGET_SCHED_ADJUST_COST,
1716         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
1717         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
1718         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
1719         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
1720         New hook #defines to be overridden.
1721         (TARGET_SCHED): Bring them all together.
1722         (TARGET_INITIALIZER): Update.
1723         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
1724         instead of 'struct rtx_def *' throughout.
1725         (struct sched): New set of hooks for the scheduler.
1726         * Makefile.in (haifa-sched.o): Depend on target.h.
1727         * doc/tm.texi: Document the new scheduler hooks, together in
1728         their own section, instead of scattered around.
1729         Fix a bunch of underfull/overfull hboxes.
1730
1731         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
1732         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
1733         sparc.h: Don't define any of the old scheduler macros.
1734
1735         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
1736         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
1737         sparc.c: Create hook functions from code extracted from
1738         corresponding target header, or make existing hooks static, as
1739         appropriate.  Set the appropriate entries in targetm.
1740
1741         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
1742         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
1743         rs6000-protos.h, s390-protos.h, sparc-protos.h:
1744         Remove prototypes for functions which are now static.
1745
1746         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
1747         related gunk; the Haifa scheduler is now the only choice.
1748
1749 2001-08-18  Zack Weinberg  <zackw@panix.com>
1750
1751         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
1752         * genopinit.c: Put floating point divide insns in sdiv_optab.
1753         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
1754         * config/gofast.h, config/c4x/c4x.h,
1755         config/ia64/hpux_longdouble.h, config/mips/mips.h,
1756         config/pa/long_double.h, config/rs6000/sysv4.h,
1757         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
1758         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
1759         (init_optabs): Use init_optabv for overflow-trapping optabs.
1760         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
1761         cmp_optab RTX codes so have_insn_for can find them.
1762
1763         * optabs.c (expand_simple_binop, expand_simple_unop,
1764         have_insn_for, gen_sub3_insn): New interfaces.
1765         * expr.h: Prototype new functions.
1766         (enum optab_methods): Move here from optabs.h.
1767
1768         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
1769         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
1770         Use new functions instead of working directly with optabs.
1771         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
1772         unroll.c: Don't include optabs.h.
1773         * caller-save.c, combine.c, function.c, stmt.c: Just include
1774         insn-codes.h, not optabs.h.
1775         * Makefile.in: Update dependencies.
1776
1777         * combine.c (make_compound_operation, simplify_comparison):
1778         Fix typos testing for this or that instruction.
1779
1780 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
1781
1782         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
1783         generating libgcc.a.
1784
1785 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1786
1787         * except.c (TYPE_HASH): Delete.
1788
1789         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
1790         HOST_WIDE_INT.
1791
1792         * tree.c (TYPE_HASH): Delete.
1793
1794         * tree.h (TYPE_HASH): Define.
1795
1796 2001-08-18  Graham Stott  <grahams@redhat.com>
1797
1798         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
1799         define_split.
1800         (adddi3_internal_2+2): Likewise.
1801         (eh_set_lr_di+1): Likewise.
1802
1803 2001-08-17  Richard Henderson  <rth@redhat.com>
1804
1805         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1806         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
1807         * dwarf2asm.c: ... here.
1808         * dwarfout.c: Remove them.
1809
1810         * varasm.c (assemble_integer): Add align parameter.
1811         (assemble_real, output_constant, output_constructor): Likewise.
1812         * output.h: Update decls.
1813         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
1814         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
1815         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
1816         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
1817         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
1818         Update all callers.
1819
1820         * final.c (end_final): Abort profile block generation if we
1821         havn't layed it out properly.
1822         * output.h (assemble_eh_integer): Remove stale decl.
1823         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
1824         (min_align): New.
1825         (assemble_integer): Handle unaligned data.
1826         (assemble_real): Abort on unaligned data.
1827         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
1828         anything useful.
1829         (default_dtor_section_asm_out_destructor): Use assemble_align.
1830         (default_named_section_asm_out_constructor): Likewise.
1831         (default_ctor_section_asm_out_constructor): Likewise.
1832         * config/darwin.c (machopic_asm_out_constructor): Likewise.
1833         (machopic_asm_out_destructor): Likewise.
1834         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
1835         (nextstep_asm_out_destructor): Likewise.
1836         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
1837         (vms_asm_out_destructor): Likewise.
1838
1839 2001-08-17  Richard Henderson  <rth@redhat.com>
1840
1841         * config/mips/iris6.h (TARGET_IRIX6): New.
1842         (current_section_name, current_section_flags): New.
1843         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
1844         (MAX_OFILE_ALIGNMENT): New.
1845         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
1846         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
1847         (copy_file_data): Split out from
1848         (mips_asm_file_end): ... here.
1849         (mips_asm_file_start): Remove extra .section directive.  Use
1850         tmpfile instead of mips_make_temp_file.
1851         (mips_unique_section): Use const char * as needed for warnings.
1852         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
1853         re-add align parameter.
1854         (iris6_asm_named_section): New.
1855         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
1856         (iris6_asm_output_align, iris6_section_align_1): New.
1857         (iris6_asm_file_start, iris6_asm_file_end): New.
1858         * config/mips/mips-protos.h: Update decls.
1859
1860 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
1861
1862         * doc/install.texi (Install GCC): Add links to build status pages.
1863         (Specific): Ditto.
1864         (Final install): Ditto; request updates for specific info
1865
1866 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1867
1868         * cpperror.c (print_location):  Don't take a file name; use the
1869         line map instead.
1870         (_cpp_begin_message): Similarly.
1871         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1872         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1873         (cpp_pedwarn_with_file_and_line): Remove.
1874         * cppfiles.c (stack_include_file): Update; set filename to stdin
1875         here when appropriate.
1876         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
1877         (_cpp_begin_message): Don't take a file name.
1878         * cppinit.c: Add comment.
1879         * cpplex.c: Fix end-of-directive indicator.
1880         * cpplib.c: Don't include intl.h.
1881         (run_directive, do_diagnostic): Update.
1882         (do_line): Update to not use nominal_fname.
1883         (cpp_push_buffer): Don't take a filename.
1884         * cpplib.h (struct ht): Remove.
1885         (cpp_push_buffer): Don't take a filename.
1886         (cpp_pedwarn_with_file_and_line): Remove.
1887         * cppmacro.c (struct cpp_macro): Remove file.
1888         (builtin_macro): Update.
1889         (_cpp_create_definition): Update.
1890         * cppmain.c: Correct comment.
1891         * fix-header.c (read_scan_file): Update.
1892
1893 2001-08-17  Kazu Hirata  <kazu@hxi.com>
1894
1895         * sbitmap.c: Fix comment formatting.
1896         * sched-deps.c: Likewise.
1897         * sibcall.c: Likewise.
1898         * simplify-rtx.c: Likewise.
1899         * ssa.c: Likewise.
1900         * ssa-ccp.c: Likewise.
1901         * stor-layout.c: Likewise.
1902         * timevar.c: Likewise.
1903         * toplev.c: Likewise.
1904         * unwind-dw2.c: Likewise.
1905         * unwind-dw2-fde.c: Likewise.
1906         * varasm.c: Likewise.
1907
1908 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1909
1910         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
1911         or larger than an integer in memory.
1912
1913 2001-08-17  Zack Weinberg  <zackw@panix.com>
1914
1915         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
1916         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
1917         * rtl.h: Don't forward-declare union tree_node here.  Don't
1918         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
1919         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1920         and tree respectively.
1921         * tree.h: Don't forward-declare struct rtx_def here.  Don't
1922         typedef tree here.  Change all uses of struct rtx_def *,
1923         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1924         and tree respectively.
1925
1926 2001-08-17  Richard Henderson  <rth@redhat.com>
1927
1928         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
1929         config/mips/openbsd.h: Fix typos last change.
1930
1931 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1932
1933         * doc/invoke.texi (Optimize Options): The default for
1934         -finline-limit is 600.
1935
1936 2001-08-17  Richard Henderson  <rth@redhat.com>
1937
1938         * varasm.c (text_section): Allow TEXT_SECTION to override the
1939         printing of TEXT_SECTION_ASM_OP.
1940         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
1941         (DATA_SECTION, BSS_SECTION): Remove.
1942         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
1943         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
1944         Rename from s/_NAME//.
1945         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
1946         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
1947         (TEXT_SECTION): ... here.  New.
1948         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
1949         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
1950         * config/mips/openbsd.h: Likewise.
1951         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
1952         (mips_asm_file_end): Likewise test.
1953         (mips_output_function_epilogue): Likewise.  Switch back to data
1954         section after emitting the function.
1955
1956         * doc/tm.texi (Sections): Document TEXT_SECTION.
1957
1958 2001-08-17  Richard Henderson  <rth@redhat.com>
1959
1960         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
1961         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
1962
1963 2001-08-17  Richard Henderson  <rth@redhat.com>
1964
1965         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
1966         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
1967         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
1968         Add aligned attribute.
1969
1970 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
1971
1972         * config/sh/sh.md: Add modes to unspecs in first insn to match
1973         those in the second.
1974
1975         * Makefile.in: Fix collect2 copy for Cygwin.
1976
1977 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
1978
1979         Install the proper patch.
1980         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1981         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1982         (expand_function_start): Likewise.
1983         * stmt.c (expand_decl): Likewise.
1984         * varasm.c (make_decl_rtx): Likewise.
1985
1986 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
1987
1988         * final.c: Undo my previous accidental checkin.
1989         * output.h: Likewise.
1990         * tm.texi: Likewise.
1991
1992 2001-08-16  Richard Henderson  <rth@redhat.com>
1993
1994         * varasm.c (named_section_flags): Remove align parameter.
1995         * varasm.c, dwarf2out.c: Update all callers.
1996         * output.h: Update prototypes.
1997
1998         * target.h (target.asm_out.named_section): Remove align parameter.
1999         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
2000         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
2001         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
2002         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
2003         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
2004
2005         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
2006         (get_named_section_flags, set_named_section_flags): New.
2007         (named_section_flags): Use them.
2008         (named_section): Do decl vs section flags check here...
2009         (default_section_type_flags): ... not here.
2010         (init_varasm_once): Create in_named_htab.
2011         (resolve_unique_section): Mark reloc unused.
2012
2013 2001-08-16  Richard Henderson  <rth@redhat.com>
2014
2015         * varasm.c (force_const_mem): Keep pool alignment in bits.
2016         (output_constant_pool): Use assemble_align.
2017
2018 2001-08-16  Zack Weinberg  <zackw@panix.com>
2019
2020         * doc/tm.texi: Remove extra @table command.
2021
2022 2001-08-16  Zack Weinberg  <zackw@panix.com>
2023
2024         * final.c (shorten_branches): Clear the end of the label_align
2025         array only if we made it larger.  Break up messy expressions
2026         for clarity.
2027
2028         * diagnostic.c (internal_error): Check for error recursion
2029         before doing ICE suppression.
2030
2031         * timevar.c: Timing variables now count in milliseconds.
2032         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
2033         (get_time): Not here.
2034         (timevar_print): Don't print any timer whose user, cpu, and
2035         wall times are all zero as displayed.
2036         * timevar.h: Update comment aboout units.  Make timevar
2037         counters unsigned.
2038
2039 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
2040
2041         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
2042         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
2043         (expand_function_start): Likewise.
2044         * stmt.c (expand_decl): Likewise.
2045         * varasm.c (make_decl_rtx): Likewise.
2046
2047 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
2048
2049         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
2050         (finalize_record_size): Don't set TYPE_USER_ALIGN.
2051
2052 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2053
2054         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
2055         variables.
2056
2057 2001-08-16  Andreas Jaeger  <aj@suse.de>
2058
2059         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
2060         prototype.
2061
2062 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
2063
2064         * rtl.h (only_sets_cc0_p): New prototype.
2065         * jump.c (sets_cc0_p): Handle INSN.
2066         (only_sets_cc0_p): New function.
2067         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
2068         (tidy_fallthru_edge): Likewise.
2069         * integrate.c (copy_insn_list): Likewise.
2070         * unroll.c (unroll_loop): Likewise.
2071         (copy_loop_body): Likewise.
2072
2073 2001-08-15  Jason Eckhardt  <jle@redhat.com>
2074
2075         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
2076
2077 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
2078
2079         * predict.c (struct block_info_def): Remove nvisited.
2080         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
2081         (estimate_bb_frequencies): Call mark_dfs_back_edges.
2082
2083         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
2084         (ix86_adjust_cost): Teach scheduler that latency to load operand can
2085         be masked.
2086
2087 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
2088
2089         * predict.def: Update hitrates.
2090
2091 2001-08-15  Richard Henderson  <rth@redhat.com>
2092
2093         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
2094
2095 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
2096
2097         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
2098         note from its associated jump.
2099
2100 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2101
2102         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
2103         also on 64-bit s390x targets.
2104
2105 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
2106
2107         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
2108         function.
2109         (arm_expand_prologue): Handled nested functions which take a
2110         variable argument list.
2111         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
2112         macro with an invocation of
2113         arm_compute_initial_elimination_offset.
2114         * config/arm/arm-protos.h: Prototype
2115         arm_compute_initial_elimination_offset.
2116
2117 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2118
2119         * doc/install.texi (Specific, avr): Fix markup.
2120         (Specific, c4x): Ditto.
2121
2122 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2123
2124         * predict.c (dump_prediction): Change `bool' parameter to `int'.
2125
2126 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
2127
2128         * Makefile.in (OBJS): Add rtl-error.o
2129         (rtl-error.o): New rule.
2130         (diagnostic.o): Adjust dependency.
2131         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
2132         error_for_asm, _fatal_insn, _fatal_insn_not_found,
2133         warning_for_asm): Move to...
2134         rtl-error.c: ...here.  New file.
2135
2136 2001-08-14  Richard Henderson  <rth@redhat.com>
2137
2138         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
2139         if USING_SJLJ_EXCEPTIONS.
2140
2141 2001-08-14  Steve Ellcey <sje@cup.hp.com>
2142
2143         * tlink.c (scan_linker_output): Check string for unsatisfied in
2144         addition to undefined and unresolved.
2145
2146 2001-08-14  Graham Stott  <grahams@redhat.com>
2147
2148         * libgcc2.c (*): Replace EH_FRAME_SECTION with
2149         EH_FRAME_SECTION_NAME.
2150
2151 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
2152
2153         * genattrtab.c (simplify_test_exp_in_temp): New function.
2154         (simplify_test_exp): Avoid explicit use of temporary obstack.
2155         (simplify_cond, insert_right_side, evaluate_eq_attr,
2156         simplify_and_tree, simplify_or_tree, eliminate_known_true):
2157         Use simplify_test_exp_in_temp.
2158         (optimize_attrs): Iterate until expression stabilizes.
2159
2160 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
2161
2162         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
2163         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
2164
2165 2001-08-13  Richard Henderson  <rth@redhat.com>
2166
2167         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
2168         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
2169         * config/arm/conix-elf.h: Likewise.
2170
2171 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
2172
2173         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
2174         in gcc.c.
2175         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2176
2177         * gcse.c (hash_scan_set): Expressions that are set as part of
2178         jump instructions are not available.
2179
2180 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
2181
2182         * config/s390/s390.c (print_operand, s390_function_prologue,
2183         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
2184
2185 2001-08-13  Richard Henderson  <rth@redhat.com>
2186
2187         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
2188         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
2189         * doc/tm.texi (Exception Region Output): Document it.
2190
2191 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
2192
2193         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
2194         DWARF2 instead of stabs by default.
2195
2196 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
2197
2198         * config/rs6000/rs6000.c: Include optabs.h.
2199
2200 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
2201
2202         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
2203         save/restore routines.
2204         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
2205
2206 2001-08-13  Andreas Jaeger  <aj@suse.de>
2207
2208         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
2209         the english is correct.
2210
2211 2001-08-13  Zack Weinberg  <zackw@panix.com>
2212
2213         * expr.h: Split out optab- and libfunc-related code to...
2214         * optabs.h, libfuncs.h: ... these new headers.
2215
2216         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
2217         (OPTABS_H): New.
2218         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
2219         dependencies.
2220         * mkconfig.sh: Don't include insn-codes.h from config.h.
2221
2222         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
2223         enum insn_code is available.  Move reload_in_optab and
2224         reload_out_optab array declarations to optabs.h.
2225         * regmove.c (gen_add3_insn): Move to optabs.c, export from
2226         there, prototype in expr.h.
2227         * gencodes.c: Cleanup: zap global variables, don't use
2228         printf where puts will do, don't bother defining MAX_INSN_CODE
2229         which nothing uses, let CODE_FOR_nothing get its value implicitly.
2230
2231         * genemit.c, genopinit.c: Include optabs.h in generated file.
2232         * genoutput.c: Include insn-codes.h in generated file.
2233         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
2234         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
2235         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
2236         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
2237         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
2238         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
2239         Include optabs.h.
2240         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
2241         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
2242         config/m88k/m88k.c, config/sparc/sparc.c:
2243         Include libfuncs.h.
2244         * reload.c: Include expr.h and optabs.h before reload.h.
2245         * config/alpha/alpha.c: Include tree.h before reload.h.
2246         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
2247         and reload.h in that order.
2248         * config/sparc/sparc.c: Include debug.h.
2249         * recog.c: Include insn-codes.h.
2250
2251 2001-08-13  Andreas Jaeger  <aj@suse.de>
2252
2253         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
2254         s390*linux.
2255
2256 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2257
2258         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
2259         * gcc.c (init_spec): Fix typo in comment.
2260         * varasm.c (data_section): Fix typo in comment.
2261
2262 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
2263
2264         * predict.c (dump_prediction): New argument "USED".
2265         (combine_predictions_for_insn): Determine the used heuristics,
2266         output the case no heuristic applied.
2267         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
2268
2269 2001-08-13  Andreas Jaeger  <aj@suse.de>
2270
2271         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
2272         register %rip.
2273
2274 2001-08-13  Kazu Hirata  <kazu@hxi.com>
2275
2276         * jump.c: Fix formatting.
2277
2278 2001-08-13  Kazu Hirata  <kazu@hxi.com>
2279
2280         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
2281         length.
2282
2283 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
2284
2285         * loop.c (check_dbra_loop): Use condjump_label to compute
2286         jump_label.
2287
2288         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
2289         to better document the files they're in.
2290
2291 2001-08-12  Zack Weinberg  <zackw@panix.com>
2292
2293         * recog.h (struct insn_operand_data): Shrink 'mode' field
2294         to 16 bits.
2295
2296 2001-08-12  Kazu Hirata  <kazu@hxi.com>
2297
2298         * gcc.c: Fix comment formatting.
2299         * gccspec.c: Likewise.
2300         * gcov.c: Likewise.
2301         * gcse.c: Likewise.
2302         * genemit.c: Likewise.
2303         * gengenrtl.c: Likewise.
2304         * genrecog.c: Likewise.
2305         * gensupport.c: Likewise.
2306         * ggc-page.c: Likewise.
2307         * global.c: Likewise.
2308         * graph.c: Likewise.
2309         * ifcvt.c: Likewise.
2310         * integrate.c: Likewise.
2311         * lcm.c: Likewise.
2312         * libgcc2.c: Likewise.
2313         * loop.c: Likewise.
2314         * mbchar.c: Likewise.
2315         * optabs.c: Likewise.
2316         * predict.c: Likewise.
2317         * prefix.c: Likewise.
2318         * profile.c: Likewise.
2319         * protoize.c: Likewise.
2320         * real.c: Likewise.
2321         * recog.c: Likewise.
2322         * regclass.c: Likewise.
2323         * regmove.c: Likewise.
2324         * reg-stack.c: Likewise.
2325         * reload1.c: Likewise.
2326         * resource.c: Likewise.
2327         * rtlanal.c: Likewise.
2328         * rtl.c: Likewise.
2329
2330 2001-08-12  Kazu Hirata  <kazu@hxi.com>
2331
2332         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
2333         a tree representing a constant is passed to the macro.
2334
2335 2001-08-12  Richard Henderson  <rth@redhat.com>
2336
2337         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
2338         (rs6000_elf_asm_out_destructor): New.
2339         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
2340         (DTORS_SECTION_ASM_OP): Remove.
2341         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2342         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
2343
2344 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
2345
2346         Revert:
2347         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2348         * gcc.c (set_collect_gcc_options): New function, split out from
2349         main.
2350         Ignore elided switches.
2351         (do_spec_1): Invoke before executing command.
2352         (set_input): Export.
2353         Move declaration ...
2354         * gcc.h (set_input): ... here.
2355         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2356         file.
2357
2358 2001-08-12  Richard Henderson  <rth@redhat.com>
2359
2360         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
2361         thinko wrt TARGET_RELOCATABLE.
2362
2363 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2364
2365         * fix-header.c (cb_file_change): Update prototype.
2366
2367 2001-08-11  Zack Weinberg  <zackw@panix.com>
2368
2369         * toplev.c (set_float_handler): Make static.
2370         * toplev.h: Don't prototype set_float_handler.
2371
2372         * simplify-rtx.c: Don't include setjmp.h.
2373         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
2374         New functions.
2375         (simplify_unary_operation, simplify_binary_operation): Use them,
2376         via do_float_handler.
2377
2378         * fold-const.c: Don't include setjmp.h.
2379         (exact_real_inverse_1): New function.
2380         (exact_real_inverse): Use it, via do_float_handler.
2381
2382         * varasm.c: Don't include setjmp.h.
2383         (assemble_real_1): New function.
2384         (assemble_real): Use it, via do_float_handler.
2385         Call internal_error if we get a trap here.
2386
2387         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
2388         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
2389
2390 2001-08-11  Zack Weinberg  <zackw@panix.com>
2391
2392         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
2393         STACK_BOUNDARY if not already defined.
2394
2395         * calls.c, function.c, reload1.c, explow.c: Don't default
2396         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
2397         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
2398
2399         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
2400         to run-time test.
2401
2402         * doc/tm.texi: Document that STACK_BOUNDARY is required;
2403         clarify difference between it and PREFERRED_STACK_BOUNDARY.
2404
2405 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2406
2407         * cppmacro.c (enter_macro_context): Push macro expansions even
2408         if empty.
2409
2410 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2411
2412         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
2413         (rs6000_elf_section_type_flags): Actually return a value.
2414
2415 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
2416
2417         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
2418         Clean up code: add missing comments and prototypes, fix warnings,
2419         remove obsolete code, fix spacing to conform to coding style.
2420
2421 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
2422
2423         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
2424         and TARGET_ASM_CLOSE_PAREN.
2425         (regclass_map): CC register belongs to class NO_REGS.
2426         (legitimize_pic_address): Don't generate unnecessary moves
2427         (to avoid confusing loop optimization).
2428         (check_and_change_labels): Replace jump_long by indirect_jump.
2429         (s390_final_chunkify): Don't start a new literal pool on section
2430         switch in 64-bit code.
2431         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
2432
2433         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
2434         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
2435         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
2436         modes correctly.
2437         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
2438         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
2439         (CONST_COSTS): Fixed incorrect costs.
2440
2441         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
2442         Use emit_jump instead of emit_jump_insn (gen_jump).
2443         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
2444         (to avoid confusing flow analysis).
2445         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
2446         (casesi, casesi_jump): New.
2447         (jump_long): Removed.  Functionality merged into indirect_jump.
2448         (indirect_jump): Accept address_operand, not just register_operand.
2449         (cjump_long, icjump_long): Use same logic as indirect_jump.
2450         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
2451         Fixed broken setjmp/longjmp handling.
2452         (do_builtin_setjmp_setup): Removed.
2453
2454         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
2455         broken GNU as versions that don't accept .quad with large
2456         negative values.  Use hexadecimal output instead.
2457         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
2458         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
2459         FUNCTION_EPILOGUE): Removed.  Now in targetm.
2460
2461         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
2462
2463         * config/s390/fixdfdi.h: Add missing copyright statement.
2464         Fix type conflicts on 64-bit.  Add missing SFmode routines.
2465
2466         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
2467         email address.
2468
2469 2001-08-11  Richard Henderson  <rth@redhat.com>
2470
2471         * rtl.h (REG_EH_RETHROW): Remove.
2472         * rtl.c (reg_note_name): Update.
2473         * combine.c (distribute_notes): Don't check for it.
2474
2475 2001-08-11  Richard Henderson  <rth@redhat.com>
2476
2477         * combine.c (distribute_notes): Place REG_SETJMP.
2478
2479 2001-08-11  Richard Henderson  <rth@redhat.com>
2480
2481         * doc/extend.texi (Arrays and pointers implementation): Discourage
2482         relying on sign-extension of pointers.
2483
2484 2001-08-11  H.J. Lu <hjl@gnu.org>
2485
2486         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
2487         in_dtors.
2488         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
2489         RDATA_SECTION_ASM_OP.
2490
2491 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2492
2493         * doc/install.texi (Specific, c4x): Fix cross-reference to the
2494         main manual to work both for info and HTML versions.
2495
2496 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2497             Matt Kraai <kraai@alumni.carnegiemellon.edu>
2498
2499         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
2500         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
2501         (struct cpp_pool): New member first.
2502         * cppinit.c (append_include_chain): Plug memory leaks.
2503         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
2504         Allocate pragma structures from the (aligned) macro pool to
2505         avoid leaking memory.
2506         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
2507         so we don't leak memory.
2508         * hashtable.c (ht_destroy): New.
2509         * hashtable.h (ht_destroy): New.
2510
2511 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2512             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2513
2514         * c-lex.c (map): Make const.
2515         (cb_file_change): Update for callback passing a line map.
2516         Don't assume we have a previous map.  Remove sanity check
2517         about popping too many files.
2518         * cpperror.c (print_location): Make map const.
2519         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
2520         (cpp_make_system_header): Similarly.
2521         (search_from): Similarly.
2522         (_cpp_execute_include): Don't remember where we came from.
2523         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
2524         (struct cpp_reader): Make map const.
2525         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
2526         * cpplib.c (do_line): Update; line maps now hold sysp.
2527         (cpp_push_buffer): Similarly.
2528         (_cpp_do_file_change): Similarly; callback with map instead.
2529         (cpp_get_line_maps): Constify return value.
2530         (_cpp_pop_buffer): Update.
2531         * cpplib.h (struct cpp_file_change): Remove.
2532         (struct cpp_callbacks): Update.
2533         (cpp_get_line_maps): Constify return value.
2534         * cppmacro.c (_cpp_create_definition): Update.
2535         * cppmain.c (struct printer): Constify map.
2536         (maybe_print_line): Similarly.
2537         (print_line): Similarly.  Deduce flags 1 and 2 here.
2538         (cb_file_change): Update.
2539         * line-map.c (free_line_maps): Warn regardless.
2540         (add_line_map): Return pointer to const.  When passed NULL to_file
2541         with LC_LEAVE, use the obvious values for the return point so the
2542         caller doesn't have to figure them out.
2543         (lookup_line): Return pointer to const.
2544         (print_containing_files): Take pointer to const.
2545         * line-map.h (struct line_map): New members reason, sysp.
2546         (add_line_map): Return pointer to const.
2547         (lookup_line): Similarly.
2548         (print_containing_files): Take pointer to const.
2549
2550 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
2551             Richard Henderson  <rth@redhat.com>
2552
2553         * regmove.c (regmove_optimize): Avoid setting a register twice in
2554         a parallel set.
2555
2556 2001-08-10  Richard Henderson  <rth@redhat.com>
2557
2558         * doc/extend.texi (Arrays and pointers implementation): Document
2559         behavior of pointer/integer conversion.
2560
2561 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
2562
2563         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2564
2565 2001-08-10  Richard Henderson  <rth@redhat.com>
2566
2567         * doc/extend.texi (C Implementation): New chapter.
2568         * doc/gcc.texi (Top): Link it in.
2569
2570 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
2571
2572         * doc/install.texi (Specific): Fix CVS merge botch.
2573
2574 2001-08-10  Richard Henderson  <rth@redhat.com>
2575
2576         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
2577         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
2578
2579 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
2580
2581         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
2582         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
2583         this macro is now required.
2584
2585         * cselib.c (cselib_process_insn), flow.c (propagate_block),
2586         loop.c (find_and_verify_loops), reload.c (reload): Check
2587         for rtx code of CALL_INSN, not CALL, when deciding if we
2588         need to check for REG_SETJMP note.
2589
2590         * gcse.c (compute_hash_table, compute_store_table): Update
2591         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2592         logic.
2593
2594         * config/avr/avr.c: Fix typo.
2595         * config/convex/convex.c (expand_movstr): Use adjust_address.
2596         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2597         variable.
2598         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2599         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2600         Fix typo.
2601         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2602         Do define STACK_BOUNDARY.
2603         * config/i370/i370.c: Include expr.h.
2604         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2605         config/pa/som.h, config/v850/v850.h: Take in_ctors and
2606         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2607         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2608         * config/m88k/m88k.c: Include c-tree.h after expr.h.
2609         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2610         * config/romp/romp.c: Include expr.h after tree.h.
2611         Include toplev.h.
2612         (output_fpop): Use xmalloc, not oballoc.
2613         * config/we32k/we32k.c: Include expr.h.
2614
2615 2001-08-10  Kazu Hirata  <kazu@hxi.com>
2616
2617         * config/h8300/h8300.h: Fix formatting.
2618
2619 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
2620
2621         * c-common.h (RETURN_NULLIFIED_P): Lose.
2622         * c-semantics.c (genrtl_return_stmt): Don't check it.
2623
2624 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
2625
2626         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2627         (mips_annotate_frame_insn): New function.
2628         (mips_emit_frame_related_store): New function.
2629         (save_restore_insns): Don't mark instructions that set up the base
2630         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
2631         the store instructions instead.
2632         (mips_expand_prologue): If the stack size is moved into a temporary
2633         register, do not mark that move as frame-related.  Add a
2634         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2635
2636 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
2637
2638         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2639         stack slot as unchanging if current_function_calls_eh_return.
2640
2641 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
2642
2643         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2644         access the second half of the TFmode scratch operand.
2645
2646 2001-08-10  Anthony Green  <green@redhat.com>
2647
2648         * java/class.c (emit_register_classes): Conditionalize code on
2649         JCR_SECTION_NAME.
2650
2651 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2652
2653         * doc/install.texi (Specific, avr): Fix cross-reference to the
2654         main manual to work both for info and HTML versions.
2655
2656 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2657
2658         * stmt.c (expand_null_return_1): Remove code to generate simple returns
2659         and "use_goto" argument.
2660         (expand_null_return, expand_value_return): Update all callers.
2661         * function.c (expand_function_end): Remove code to generate simple
2662         return.
2663         * config/vax/vax.md (epilogue): New expander for function return.
2664         * doc/md.texi (epilogue): Remove "if defined".
2665
2666 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
2667
2668         * Makefile.in: Partially revert my previous change:
2669         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2670         of the hashtab.o and safe-ctype.o rules.
2671
2672 2001-08-09  Richard Henderson  <rth@redhat.com>
2673
2674         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2675         (USE_COLLECT2): Remove duplicate definition.
2676         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2677         (use_collect2): Remove dead code.
2678         * configure.in (use_collect2): Remove will_use_collect2 and
2679         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2680         * configure: Rebuild.
2681
2682         * target.h (targetm.asm_out.constructor): New.
2683         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2684         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2685         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2686         * varasm.c (in_ctors, in_dtors): New.
2687         (assemble_constructor, assemble_destructor): Remove.
2688         (default_stabs_asm_out_destructor): New.
2689         (default_named_section_asm_out_destructor): New.
2690         (dtors_section, default_dtor_section_asm_out_destructor): New.
2691         (default_stabs_asm_out_constructor): New.
2692         (default_named_section_asm_out_constructor): New.
2693         (ctors_section, default_ctor_section_asm_out_constructor): New.
2694         * output.h: Update declarations.
2695         * c-decl.c (c_expand_body): Use target hooks instead of
2696         assemble_constructor and assemble_destructor.
2697         * profile.c (output_func_start_profiler): Likewise.
2698         * objc/objc-act.c (finish_objc): Likewise.
2699         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
2700         for the constructor.
2701         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
2702
2703         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
2704         (DTORS_SECTION_ASM_OP): Likewise.
2705         (__CTOR_LIST__): Use attribute section when possible.
2706         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
2707
2708         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
2709         ASM_OUTPUT_CONSTRUCTOR.
2710
2711         * config/darwin.c (machopic_asm_out_constructor): New.
2712         (machopic_asm_out_destructor): New.
2713         * config/darwin-protos.h: Update declarations.
2714         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2715         (ASM_OUTPUT_DESTRUCTOR): Remove.
2716         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2717         * config/nextstep.c (nextstep_asm_out_constructor): New.
2718         (nextstep_asm_out_destructor): New.
2719         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2720         (ASM_OUTPUT_DESTRUCTOR): Remove.
2721         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2722         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
2723         ASM_OUTPUT_*STRUCTOR.
2724         * config/i386/aix386ng.h: Likewise.
2725
2726         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
2727         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
2728         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2729         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2730         * config/lynx.h: Likewise.
2731         * config/netware.h: Likewise.
2732         * config/psos.h: Likewise.
2733         * config/alpha/alpha-interix.h: Likewise.
2734         * config/alpha/elf.h: Likewise.
2735         * config/arc/arc.h: Likewise.
2736         * config/arm/aof.h: Likewise.
2737         * config/arm/coff.h: Likewise.
2738         * config/arm/elf.h: Likewise.
2739         * config/c4x/c4x.h: Likewise.
2740         * config/h8300/h8300.h: Likewise.
2741         * config/i386/cygwin.h: Likewise.
2742         * config/i386/djgpp.h: Likewise.
2743         * config/i386/i386-coff.h: Likewise.
2744         * config/i386/i386-interix.h: Likewise.
2745         * config/i386/sco5.h: Likewise.
2746         * config/i386/vsta.h: Likewise.
2747         * config/i386/win32.h: Likewise.
2748         * config/i960/i960-coff.h: Likewise.
2749         * config/ia64/sysv4.h: Likewise.
2750         * config/m68hc11/m68hc11.h: Likewise.
2751         * config/m68k/coff.h: Likewise.
2752         * config/m68k/mot3300.h: Likewise.
2753         * config/m88k/m88k.h: Likewise.
2754         * config/mcore/mcore-pe.h: Likewise.
2755         * config/mcore/mcore.h: Likewise.
2756         * config/mips/elf.h: Likewise.
2757         * config/mips/elf64.h: Likewise.
2758         * config/mips/iris6.h: Likewise.
2759         * config/pa/pa64-hpux.h: Likewise.
2760         * config/rs6000/sysv4.h: Likewise.
2761         * config/sh/sh.h: Likewise.
2762         * config/sparc/litecoff.h: Likewise.
2763
2764         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
2765         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2766         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2767         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2768         (ASM_OUTPUT_DESTRUCTOR): Remove.
2769         * config/a29k/a29k.c: Move include of tree.h.
2770         * config/a29k/udi.h: Delete file.
2771         * config/alpha/alpha.c (vms_asm_out_constructor): New.
2772         (vms_asm_out_destructor): New.
2773         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
2774         (EXTRA_SECTION_FUNCTIONS): Likewise.
2775         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2776         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2777         * config/c4x/c4x.c: Move include of tree.h.
2778         * config/clipper/clipper.c (clix_asm_out_constructor): New.
2779         (clix_asm_out_destructor): New.
2780         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2781         (ASM_OUTPUT_DESTRUCTOR): Remove.
2782         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2783         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2784         (TARGET_ASM_CONSTRUCTOR): New.
2785         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
2786         (sco_asm_out_constructor): New.
2787         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
2788         * config/i386/svr3gas.h: Remove stack grows up code.
2789         Remove code duplicated from i386/sysv3.h.
2790         (TARGET_ASM_CONSTRUCTOR): New.
2791         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2792         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
2793         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2794         (TARGET_ASM_CONSTRUCTOR): New.
2795         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
2796         (m68hc11_asm_out_destructor): New.
2797         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
2798         (TARGET_ASM_DESTRUCTOR): New.
2799         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
2800         * config/m68k/dpx2.h: Properly undef all the bits inherited from
2801         config/svr3.h pertaining to section manipulation.
2802         * config/m68k/dpx2g.h: Remove #if 0 code.
2803         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
2804         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
2805         (ASM_OUTPUT_CONSTRUCTOR): Remove.
2806         (TARGET_ASM_CONSTRUCTOR): New.
2807         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
2808         (m88k_svr3_asm_out_constructor): New.
2809         (m88k_svr3_asm_out_destructor): New.
2810         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2811         (ASM_OUTPUT_DESTRUCTOR): Remove.
2812         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2813         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
2814         * config/rs6000/aix.h: Likewise.
2815         * config/mips/rtems64.h: Don't undef removed constructor related bits.
2816         * config/mips/vxworks.h: Likewise.
2817         * config/rs6000/lynx.h: Likewise.
2818         * config/sh/elf.h: Likewise.
2819         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
2820         (DTORS_SECTION_ASM_OP): New.
2821         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2822         (ASM_OUTPUT_DESTRUCTOR): Remove.
2823         * config/sparc/sol2-sld-64.h: Likewise.
2824         * config/vax/vax.c (vms_asm_out_constructor): New.
2825         (vms_asm_out_destructor): New.
2826         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2827         (ASM_OUTPUT_DESTRUCTOR): Remove.
2828         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2829
2830         * doc/tm.texi (@node Initialization): Update.
2831
2832 2001-08-09  Richard Henderson  <rth@redhat.com>
2833
2834         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
2835         (__do_global_dtors_aux): Use gp-relative static data to avoid
2836         one dynamic relocation.
2837         (__do_frame_setup): Register Java classes.
2838         * config/alpha/crtend.asm (__JCR_END__): New.
2839
2840 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
2841
2842         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
2843         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
2844         (GEN, STAGESTUFF): Add new files.
2845         (insn-constants.h, s-constants, tm-preds.h, s-preds,
2846         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
2847         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
2848         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
2849         as well as insn-codes.h and insn-flags.h in config.h; and no
2850         extra headers in tconfig.h and hconfig.h.
2851
2852         * gencodes.c: Eliminate code to generate predicate declarations
2853         or #defines for md-file constants.
2854         * genconstants.c, genpreds.c: New files.
2855
2856         * i386.md: Re-order guard expressions such that TARGET_64BIT
2857         comes first, when this permits better optimization.  Add
2858         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
2859         why this is desirable.
2860
2861 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
2862
2863         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
2864         (find_fde_for_dso): Remove.
2865         (_Unwind_IteratePhdrCallback): New.
2866         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
2867         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
2868
2869 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2870
2871         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
2872         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
2873
2874 2001-08-09  Graham Stott  <grahams@redhat.com>
2875
2876         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
2877         (vis_no_unit): Use it.
2878         (visualize_no_unit): Add the insn only if room exists.
2879
2880 2001-08-09  Graham Stott  <grahams@redhat.com>
2881
2882         * predict.c (estimate_probability): Replace magic numbers with
2883         appropriate enumeration.
2884
2885 2001-08-09  Graham Stott  <grahams@redhat.com>
2886
2887         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
2888         parameter.
2889         (EXTRACT_FLAGS): Likewise.
2890
2891 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
2892
2893         * config/mips/mips.c    (mips_legitimate_address_p): Check for
2894         CONST_INT in last patch.
2895
2896 2001-08-08  Anthony Green  <green@redhat.com>
2897
2898         * java/class.c (emit_register_classes): Use assemble_jcr if
2899         possible.  Keep the original mechanism as a fallback.
2900         * defaults.h (JCR_SECTION_NAME): Define if we have named section
2901         and weak symbol support.
2902         * crtstuff.c (__JCR_LIST__): Define.
2903         (__JCR_END__): Define.
2904         (_Jv_RegiserClasses): Define weak symbol if possible.
2905         (__do_global_ctors_aux): Register classes for ELF targets with
2906         weak symbol support.
2907
2908 2001-08-08  Kazu Hirata  <kazu@hxi.com>
2909
2910         * dbxout.c: Fix comment formatting.
2911         * dependence.c: Likewise.
2912         * df.c: Likewise.
2913         * diagnostic.c: Likewise.
2914         * dominance.c: Likewise.
2915         * doprint.c: Likewise.
2916         * dwarf2out.c: Likewise.
2917         * dwarfout.c: Likewise.
2918         * emit-rtl.c: Likewise.
2919         * except.c: Likewise.
2920         * explow.c: Likewise.
2921         * expmed.c: Likewise.
2922         * expr.c: Likewise.
2923         * flow.c: Likewise.
2924         * fold-const.c: Likewise.
2925         * function.c: Likewise.
2926
2927 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2928
2929         * global.c (retry_global_alloc): Avoid shadowing allocno.
2930
2931 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
2932
2933         * except.c (remove_fixup_regions): Fix typo.
2934
2935 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
2936
2937         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
2938         unsigned HOST_WIDE_INT to avoid warning.
2939         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
2940         * flow.c (set_block_for_new_insns): Likewise.
2941
2942 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
2943
2944         * sibcall.c (return_value_pseudo): New static variable.
2945         (skip_copy_to_return_value): Handle return_value_pseudo.
2946         (call_ends_block_p): Ensure that return_value_pseudo is set.
2947         (optimize_sibling_and_tail_recursive_call): Discover the
2948         load of pseudo return value in alternate exit block.
2949
2950 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
2951
2952         * calls.c (ECF_ALWAYS_RETURN): New constant.
2953         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
2954         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
2955         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
2956         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
2957         * rtl.c (reg_note_name): New name.
2958         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
2959
2960 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
2961
2962         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
2963
2964 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
2965
2966         * alias.c (get_alias_set): Return a previously calculated
2967         alias set for a VAR_DECL.
2968         * function.c (gen_mem_addressof): Calculate the alias set before
2969         touching the RTL.
2970
2971 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
2972
2973         * predict.def: Set hitrates according our experimental run.
2974
2975 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
2976
2977         * i386.h (HARD_REGNO_RENAME_OK): New macro.
2978
2979 2001-08-08  H.J. Lu <hjl@gnu.org>
2980
2981         * config/mips/mips.c (mips_unique_section): New. Copied from
2982         config/mips/elf.h.
2983
2984         * config/mips/mips-protos.h (mips_unique_section): New
2985         prototype.
2986
2987         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
2988
2989         * config/mips/little.h: New. Generic little endian mips
2990         targets. Only mips*-*-linux* is converted to use it so far.
2991
2992         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
2993         (WCHAR_TYPE): Defined
2994         (WCHAR_TYPE_SIZE): Likewise.
2995         (INIT_SUBTARGET_OPTABS): Likewise.
2996         (BSS_SECTION_ASM_OP): Likewise.
2997         (SBSS_SECTION_ASM_OP): Likewise.
2998         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2999         (ASM_DECLARE_OBJECT_NAME): Likewise.
3000         (UNIQUE_SECTION): Likewise.
3001         (EXTRA_SECTIONS): Likewise.
3002         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
3003         (ASM_OUTPUT_DESTRUCTOR): Likewise.
3004         (ASM_OUTPUT_DEF): Likewise.
3005         (HANDLE_SYSV_PRAGMA): Removed.
3006         (NO_IMPLICIT_EXTERN_C): Likewise.
3007         (TARGET_MEM_FUNCTIONS): Likewise.
3008         (STARTFILE_SPEC): Likewise.
3009         (ENDFILE_SPEC): Likewise.
3010         (LIB_SPEC): Likewise.
3011         (INVOKE__main): Likewise.
3012         (CTOR_LIST_BEGIN): Likewise.
3013         (CTOR_LIST_END): Likewise.
3014         (DTOR_LIST_BEGIN): Likewise.
3015         (DTOR_LIST_END): Likewise.
3016         (SET_ASM_OP): Likewise.
3017         (ASM_OUTPUT_SOURCE_LINE): Likewise.
3018         (ASM_OUTPUT_DEF): Likewise.
3019         (ASM_OUTPUT_IDENT): Likewise.
3020
3021         * config/mips/mips.h (ASM_SPEC): Undefine before define.
3022         (CPLUSPLUS_CPP_SPEC): Likewise.
3023         (ASM_APP_ON) Redefine only if not defined.
3024         (ASM_APP_OFF): Likewise.
3025         (ASM_OUTPUT_SOURCE_LINE): Likewise.
3026         (ASM_OUTPUT_IDENT): Likewise.
3027
3028         * config.gcc: Update tm_file for Linux/mips.
3029
3030 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
3031
3032         * cselib.c (cselib_record_sets): If insn is predicated, turn
3033         sources into IF_THEN_ELSEs.
3034
3035         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
3036         Turn into define_insn_and_split.
3037
3038         * sched-deps.c: Include "cselib.h".
3039         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
3040         Use cselib to turn memory addresses into VALUEs.
3041         (sched_analyze): Call cselib_init/cselib_finish if necessary.
3042         * sched-int.h (struct sched_info): New member USE_CSELIB.
3043         * sched-ebb.c (ebb_sched_info): Initialize it.
3044         * sched-rgn.c (rgn_sched_info): Likewise.
3045         * Makefile.in (sched-deps.o): Update dependencies.
3046
3047         * cselib.h (cselib_subst_to_values): Declare.
3048         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
3049         that have no value and autoincs to be handled by generating a new
3050         dummy value.
3051
3052 2001-08-08  Graham Stott  <grahams@redhat.com>
3053
3054         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
3055         within fixed length SEQUENCE.
3056
3057 2001-08-08  Graham Stott  <grahams@redhat.com>
3058
3059         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
3060         (diagnostic_prefixing_rule): Likewise.
3061         (diagnostic_line_cutoff): Likewise.
3062         (diagnostic_kind_count): Likewise.
3063
3064 2001-08-08  Graham Stott  <grahams@redhat.com>
3065
3066         * alias.c (find_base_decl): Delete redundent assignment.
3067
3068 2001-08-08  Graham Stott  <grahams@redhat.com>
3069
3070         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
3071         (abs): Uppercase and paranthesize macro parameter.
3072         (MEM_DEPENDENCY): Add whitespace.
3073
3074 2001-08-08  Graham Stott  <grahams@redhat.com>
3075
3076         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
3077         failure check for CONST_INT
3078
3079 2001-08-08  Graham Stott  <grahams@redhat.com>
3080
3081         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
3082         (libcall_dead_p): Likewise.
3083
3084         (mark_used_regs): Constify fmt.
3085         (find_use_as_address): Likewise.
3086
3087 2001-08-08  Graham Stott  <grahams@redhat.com>
3088
3089         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
3090          parameter.
3091
3092 2001-08-08  Graham Stott  <grahams@redhat.com>
3093
3094         * combine.c (combine_simplify_rtx): Update comment and
3095         remove erroneous test.
3096
3097 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3098
3099         * cppinit.c (cpp_finish): Pop the final buffer without comment.
3100         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
3101         take care to avoid multiple no-newline at EOF warnings in that
3102         case.
3103
3104 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
3105
3106         * calls.c (expand_call): Do not emit INSN_SETJMP note.
3107         (emit_library_call_value_1): Likewise.
3108         (emit_call_1): Emit REG_SETJMP note.
3109         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
3110         of INSN_SETJMP
3111         * cselib.c (cselib_process_insn): Likewise.
3112         * flow.c (propagate_block): Likewise.
3113         * loop.c (find_and_verify_loops): Likewise.
3114         * reload.c (find_equiv_regs): Likewise.
3115         * reload1.c (reload): Likewise.
3116         * resource.c (mark_referenced_resources,
3117         mark_set_resources): Likewise.
3118         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
3119         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
3120         * haifa-sched.c (unlink_other_notes): Likewise.
3121         (reemit_notes): Likewise.
3122         * sched-ebb.c (sched_ebb): Likewise.
3123         * sched-rgc.c (sched_region): Likewise.
3124         * rtl.c (note_insn_name): Likewise.
3125         (reg_note_name): Add REG_SETJMP
3126         * rtl.h (reg_note): Add REG_SETJMP.
3127         (insn_note): Remove NOTE_INSN_SETJMP.
3128
3129         * profile.c (branch_prob): Add fake edges for setjmp.
3130
3131 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
3132
3133         * config.gcc: Quote target_cpu_default2 correctly for
3134         powerpc*-*-* targets.
3135
3136 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3137
3138         * cpplib.h, line-map.h: Update comments.
3139         * cppmain.c (printer_init): Move inline.
3140         (maybe_print_line, print_line): Take a map pointer.
3141         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
3142         (cb_file_change): Don't use prior value of print.map.
3143
3144 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
3145
3146         * doc/install.texi: Document fine-grained multilib configuration.
3147
3148 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3149
3150         * rtlanal.c (find_first_parameter_load): Call note_stores
3151         only on the instructions.
3152
3153 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3154
3155         * alias.c (nonlocal_mentioned_p):
3156         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
3157         * calls.c (emit_call_1): Likewise.
3158         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
3159         * cselib.c (cselib_process_insn): Likewise.
3160         * df.c (df_insns_modify): Likewise.
3161         * flow.c (need_fake_edge_p): Likewise.
3162         (propagate_one_insn): Likewise.
3163         * haifa-sched.c (reemit_notes): Likewise.
3164         * integrate.c (copy_insn_list): Likewise.
3165         * jump.c (delete_prior_computation): Likewise.
3166         * local-alloc.c (validate_equiv_mem): Likewise.
3167         * loop.c (scan_loop): Likewise.
3168         * predict.c (estimate_probability): Likewise.
3169         * reload.c (reload): Likewise.
3170         * sched-deps (sched_analyze): Likewise.
3171         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
3172         * gcse.c (compute_hash_table): Likewise.
3173         (mark_call): Likewise.
3174         (store_killed_in_insn): Likewise.
3175
3176 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
3177
3178         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
3179
3180 2001-08-06  Richard Henderson  <rth@redhat.com>
3181
3182         * varasm.c (assemble_gc_entry): Remove.
3183         * output.h: Likewise.
3184
3185 2001-08-06  Richard Henderson  <rth@redhat.com>
3186
3187         * varasm.c (assemble_constructor): Take a symbol_ref and a
3188         priority instead of a bare string.  Move priority handling
3189         here from cp/decl2.c.
3190         * output.h: Update decls.
3191
3192         * c-decl.c (c_expand_body): Update calls to assemble_constructor
3193         and assemble_destructor.
3194         * profile.c (output_func_start_profiler): Likewise.
3195         * objc/objc-act.c (finish_objc): Likewise.
3196         (build_module_descriptor): Return the symbol not the symbol name.
3197
3198 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
3199
3200         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
3201         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
3202         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
3203         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
3204         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
3205         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
3206
3207 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3208
3209         * cpperror.c (print_containing_files): Moved to line-map.c.
3210         (print_location): line-map.c handles re-listing or otherwise.
3211         * cpphash.h (struct lexer_state): Remove next_bol.
3212         (struct cpp_buffer): Remove include_stack_listed.
3213         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
3214         Remove faked buffer handling.
3215         (_cpp_do_file_change): Tweak.
3216         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
3217         * cppmain.c (struct printer): Remove filename.
3218         (print_line, cb_file_change): Update accordingly.
3219         * line-map.c: Include intl.h.
3220         (init_line_maps): Initialize last_listed.
3221         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
3222         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
3223         (print_containing_files): New.
3224         * line-map.h (struct line_maps): New member last_listed.
3225         (print_containing_files, INCLUDED_FROM): New.
3226         * Makefile.in: Update.
3227         * po/POTFILES.in: Add line-map.c.
3228
3229 2001-08-06  Richard Henderson  <rth@redhat.com>
3230
3231         * except.c (convert_from_eh_region_ranges_1): Never mark
3232         USE or CLOBBER insns as throwing.
3233
3234         * expr.c (store_constructor): Don't clobber memory targets.
3235
3236 2001-08-06  Andreas Jaeger  <aj@suse.de>
3237
3238         * profile.c (branch_prob): Remove unused variable insn.
3239
3240         * Makefile.in (local-alloc.o): Add dependency on except.h.
3241
3242         * local-alloc.c: Include except.h for can_throw_internal prototype.
3243
3244 2001-08-06  Richard Henderson  <rth@redhat.com>
3245
3246         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
3247         * function.c (expand_main_function): Implement it.
3248         * doc/tm.texi: Document it.
3249
3250 2001-08-06  Stan Shebs  <shebs@apple.com>
3251
3252         * doc/install.texi: Document powerpc-*-darwin* details.
3253
3254 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
3255
3256         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
3257         (ASM_CPU_SPEC): Move back to rs6000.h
3258         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
3259
3260         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
3261
3262         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
3263         readded.
3264
3265         * config/rs6000/linux64.h: Ditto.
3266
3267         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3268         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
3269         nothing.
3270
3271         Remove accidently readded definitions of FUNCTION_PROLOGUE,
3272         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
3273
3274         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3275         to rs6000.h
3276
3277 2001-08-05  Richard Henderson  <rth@redhat.com>
3278
3279         * local-alloc.c (update_equiv_regs): Do not move insns that
3280         can throw.
3281
3282 2001-08-05  Jan Hubicka  <jh@suse.cz>
3283
3284         * Makefile.in (reload1.o): Add dedendancy on except.h
3285         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
3286         prototypes.
3287         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
3288         indicating wehther edges has been cleaned up.
3289         * reload1.c: Inlucde except.h
3290         (fixup_abnormal_edges): Accept deleted insns.
3291         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
3292         after combine.
3293
3294 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3295
3296         * cpplib.c (do_line): Correct line number after pop_buffer.
3297
3298 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3299
3300         PR preprocessor/3824
3301         * line-map.c: Update comments.
3302         * line-map.h: Update comments.
3303         * tradcif.y: Don't consider large numbers unsigned.
3304
3305 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3306
3307         PR preprocessor/3081
3308         * c-lex.c (map): New.
3309         (cb_file_change): Update map and use it.
3310         (cb_def_pragma, cb_define, cb_undef): Use map and line.
3311         (c_lex): Update to use map.
3312         * cpperror.c (print_location): Move to using logical line numbers.
3313         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
3314         (cpp_make_system_header): Similarly.
3315         (_cpp_execute_include): Stop line numbering hacks.  Store the
3316         line we will return to.
3317         * cpphash.h (CPP_BUF_LINE): Remove.
3318         (struct cpp_buffer): Remove lineno and pseudo_newlines.
3319         Add map and return_to_line.
3320         (_cpp_do_file_change): Update.
3321         * cppinit.c (cpp_start_read): Update line kludge.
3322         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
3323         (trigraph_ok): Use logical line numbers for diagnostics.
3324         (skip_block_comment): Likewise.
3325         (skip_whitespace): Likewise.
3326         (skip_line_comment): Use pfile->line instead.
3327         (_cpp_lex_token): Update to use logical line numbering exclusively.
3328         Handle BOL locally.  Accept new lines in directives, but keep
3329         pfile->line decremented.  Diagnostics use logical lines.  Update
3330         directive handling.
3331         * cpplib.c (SEEN_EOL): New.
3332         (skip_rest_of_line, check_eol): Use it.
3333         (end_directive): Increase line number when accepting the newline
3334         at the end of a directive.
3335         (run_directive): Simplify.
3336         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
3337         (_cpp_do_file_change): Update to take buffer line number as an
3338         argument, and store the current map in the cpp_reader.  Remove
3339         line number kludges.
3340         (_cpp_do__Pragma): Restore output position after a _Pragma.
3341         (cpp_push_buffer): Don't set output line or lineno.
3342         (_cpp_pop_buffer): Transfer more info from a faked buffer.
3343         Remove line kludge.  Set output_line.
3344         * cppmacro.c (builtin_macro): Update handling of __LINE__.
3345         (parse_arg): Use logical lines.
3346         (save_lookahead_token): Save EOFs too now.
3347         * cppmain.c (struct printer): Fix comments.
3348         (printer_init): Simplify, let caller do errors.
3349         (scan_translation_unit, check_multiline_token, dump_macro): Update.
3350         (maybe_print_line): Simplify.
3351         (print_line): Don't print a linemarker if -P.
3352         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
3353         (cb_file_change): Simplify.
3354         * line-map.h (LAST_SOURCE_LINE): Fix.
3355         (CURRENT_LINE_MAP): New.
3356
3357 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
3358
3359         * doloop.c (doloop_modify_runtime): Properly compute number of
3360         iterations if loop was unrolled.
3361
3362         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
3363         if their CSELIB_VAL_PTRs are.
3364
3365         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
3366         (setup_spill_pointers): Initialize it.
3367         (spill_restore_mem): Set it.
3368         (do_spill, do_restore): Use it to add REG_INC note.
3369         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
3370
3371         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
3372         asms if other insns are available.
3373
3374         * config/ia64/ia64.c (condop_operator): New predicate.
3375         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
3376         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
3377         patterns.
3378
3379         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
3380         temporary register than directly using a MEM.
3381
3382 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
3383
3384         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
3385         parameter in last change.
3386
3387 2001-08-04  Zack Weinberg  <zackw@panix.com>
3388
3389         * sparc.md: Don't use #if inside C test expression.
3390
3391 2001-08-04  Richard Henderson  <rth@redhat.com>
3392
3393         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
3394
3395 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3396
3397         * cpphash.h (struct cpp_reader): New member directive_line.
3398         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
3399         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
3400         do_pragma): Pass line to callbacks.
3401         (start_directive): Record line of directive.
3402         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
3403         cb_include): Similarly.
3404         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
3405         Similarly.
3406
3407 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
3408
3409         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
3410         comment.
3411
3412 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3413
3414         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
3415
3416         * reload1.c (fixup_abnormal_edges): New static function.
3417         (reload): Use it.
3418
3419         * flow.c (need_fake_edge_p): New function.
3420         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
3421         avoid call insn to be very last insn in the insn stream.
3422
3423         * profile.c (branch_prob): Call flow_call_edges_add instead of
3424         doing that by hand; cleanup cfg to re-merge basic blocks once
3425         we are done.
3426
3427 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3428
3429         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
3430         are also on line-map.h.
3431         * cppfiles.c (stack_include_file): Update.
3432         * cpphash.h (struct cpp_buffer): New member return_at_eof.
3433         (_cpp_pop_buffer): New.
3434         * cppinit.c (cpp_destroy, cpp_finish): Update.
3435         (do_includes): Mark each buffer to return at EOF.
3436         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
3437         return as requested.
3438         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
3439         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
3440         * cpplib.h (cpp_pop_buffer): Remove.
3441         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
3442         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
3443         buffers.
3444         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
3445         to pop buffers.
3446         (do_preprocessing): Update.
3447         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
3448         * c-parse.in (_yylex): Similarly.
3449         * scan-decls.c (scan_decls): Similarly.
3450         * line-map.h: Update comments.
3451
3452         * objc/Make-lang.in (objc-act.o): Update dependencies.
3453
3454 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3455
3456         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
3457         and soft register for operand 0.
3458         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
3459
3460 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3461
3462         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
3463         register for operand 0.
3464         ("bitcmpqi_z_used"): Allow memory for operand 0.
3465         (split "bitcmpqi"): New split to handle address reg as operand 1.
3466
3467 2001-08-04  Andreas Jaeger  <aj@suse.de>
3468
3469         * gcse.c: Revert Daniel's last patch.
3470
3471 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
3472
3473         * sparc-protos.h: Add prototypes for fp_zero_operand and
3474         reg_or_0_operand.
3475         * sh-protos.h: Add prototype for fpul_operand.
3476
3477 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
3478
3479         * doc/extend.texi (Other Builtins): Fix typo in last change.
3480
3481 2001-08-03  Richard Henderson  <rth@redhat.com>
3482
3483         * target.h (gcc_target): Add asm_out.named_section,
3484         section_type_flags, have_named_sections.
3485         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
3486         (TARGET_HAVE_NAMED_SECTIONS): New.
3487         (TARGET_SECTION_TYPE_FLAGS): New.
3488
3489         * Makefile.in (toplev.o): Depend on TARGET_H.
3490         (varasm.o, dbxout.o): Likewise.
3491         * c-common.c (decl_attributes): Check targetm.have_named_sections
3492         instead of ifdef ASM_OUTPUT_SECTION_NAME.
3493         * dbxout.c (dbxout_function_decl): Likewise.
3494         (dbxout_function_end): Likewise.
3495         * toplev.c (compile_file): Likewise.
3496         * varasm.c (exception_section): Likewise.
3497         * cp/decl2.c (finish_objects): Likewise.
3498
3499         * defaults.h (EH_FRAME_SECTION): Remove.
3500         (EH_FRAME_SECTION_ASM_OP): Remove.
3501         (EH_FRAME_SECTION_NAME): New.
3502         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
3503         (UNIQUE_SECTION_P): Remove.
3504         * dwarf2out.c (SECTION_FORMAT): Remove.
3505         (ASM_OUTPUT_SECTION): Remove.
3506         (output_call_frame_info): Use named_section_flags.
3507         (output_comp_unit, dwarf2out_start_source_file): Likewise.
3508         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
3509         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
3510         * varasm.c (in_eh_frame, eh_frame_section): Remove.
3511         (named_section_flags): New.
3512         (named_section): Use it and targetm.section_type_flags.
3513         (resolve_unique_section): New.
3514         (assemble_start_function): Use it.
3515         (asm_emit_uninitialised, assemble_variable): Likewise.
3516         (default_section_type_flags): New.
3517         (default_no_named_section, default_elf_asm_named_section): New.
3518         (default_coff_asm_named_section, default_pe_asm_named_section): New.
3519         * output.h: Update varasm.c decls.
3520         (SECTION_*): New flags.
3521
3522         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
3523         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
3524
3525         * config/elfos.h (UNIQUE_SECTION_P): Remove.
3526         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
3527         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
3528         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3529         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
3530         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
3531         * config/mips/elf.h, config/mips/elf64.h: Likewise.
3532         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
3533         * config/pa/pa64-hpux.h,
3534
3535         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
3536         (TARGET_ASM_NAMED_SECTION): New.
3537         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
3538         * config/alpha/vms.h, config/arm/coff.h: Likewise.
3539         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
3540         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
3541         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
3542         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
3543         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3544         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
3545         * config/i386/sco5.h, config/i386/win32.h: Likewise.
3546         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
3547         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
3548         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
3549         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
3550         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
3551         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
3552         * config/sparc/sysv4.h: Likewise.
3553
3554         * config/nextstep.h: Error until named sections implemented.
3555
3556         * config/a29k/a29k.c (a29k_asm_named_section): New.
3557         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
3558         (vms_section_type_flags, vms_asm_named_section): New.
3559         * config/arm/arm.c (arm_elf_asm_named_section): New.
3560         * config/avr/avr.c (asm_output_section_name): Remove.
3561         * config/avr/avr-protos.h: Update.
3562         * config/c4x/c4x.c (c4x_asm_named_section): New.
3563         * config/h8300/h8300.c (h8300_asm_named_section): New.
3564         * config/i386/i386.c (sco_asm_named_section): New.
3565         * config/i386/winnt.c (SECTION_PE_SHARED): New.
3566         (i386_pe_section_type_flags): New.
3567         (i386_pe_asm_named_section): New.
3568         * config/i386/i386-protos.h: Update.
3569         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
3570         * config/mcore/mcore.c (mcore_asm_named_section): New.
3571         * config/mips/mips.c (iris6_asm_named_section): New.
3572         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
3573         instead of UNIQUE_SECTION_P.
3574         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
3575         (xcoff_asm_named_section): New.
3576         * config/sh/sh.c (sh_asm_named_section): New.
3577         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
3578
3579         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
3580         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
3581         (EH_FRAME_SECTION_NAME): New.
3582         (EXCEPTION_SECTION): New.
3583         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
3584         (DEBUG_*_SECTION): Remove.
3585         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
3586         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
3587         (EH_FRAME_SECTION_ASM_OP): Remove.
3588
3589         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3590         (ASM_OUTPUT_SECTION_NAME): Remove.
3591         (TARGET_ASM_NAMED_SECTION): New.
3592         (TARGET_HAVE_NAMED_SECTIONS): New.
3593         (TARGET_SECTION_TYPE_FLAGS): New.
3594         (EH_FRAME_SECTION_ASM_OP): Remove.
3595         (EH_FRAME_SECTION_NAME): New.
3596
3597 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
3598
3599         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3600         for complex expressions when cfun == 0.
3601         * doc/extend.texi: Document that __builtin_constant_p can be
3602         used in data initializers as well as functions.
3603
3604 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
3605
3606         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3607         variable I locally, instead of expecting a declaration in the
3608         calling context.
3609
3610 2001-08-03  Richard Henderson  <rth@redhat.com>
3611
3612         * except.c (collect_one_action_chain): Add an explicit cleanup
3613         action if regions surrounding a catch were encoded entirely
3614         within the call-site entry.
3615
3616 2001-08-03  Richard Henderson  <rth@redhat.com>
3617
3618         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3619         don't take REGNO of a non-register.
3620
3621 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3622
3623         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3624         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3625         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3626         (__gthread_mutex_init_function): New function for mutex initialization.
3627
3628 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
3629
3630         * Makefile.in: Revert screwed up commit.
3631
3632 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3633
3634         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3635         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3636         merged by linker script to get a final _exit().
3637         (__do_global_dtors): New for destructor handling in specific exit
3638         section.
3639         (__do_global_ctors): New for constructors in specific install section.
3640         (__map_data_section): Map data sections before running constructors.
3641         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3642         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3643         (DTORS_SECTION_ASM_OP): Likewise.
3644         (CTORS_SECTION_FUNCTION): Define to force a reference to
3645         __do_global_ctors.
3646         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3647
3648 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
3649
3650         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3651
3652         * Makefile.in: Add df.h to gcse.c dependencies.
3653
3654 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3655
3656         * varasm.c (output_constant_def_contents): Use for the length of a
3657         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3658         depending on which is larger.
3659
3660 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
3661
3662         * gcse.c: Include df.h for use as a dataflow analyzer.
3663         Remove regvec.
3664         Declaration of reg_set_info: gone.
3665         New df_analyzer variable used by store motion.
3666         (reg_set_info): Deleted.
3667         (mark_mem_regs): New function, analyze regs used by a mem.
3668         (store_ops_ok): Use dataflow analyzer results to determine if
3669         necessary regs are changed in the block.
3670         (find_moveable_store): Remove check for symbol ref, we can handle
3671         much more complex expressions now.
3672         (compute_store_table): Remove most of the code, it's unnecessary
3673         now that the dataflow analyzer records the info for us.
3674         (store_killed_after): Add parameter to say whether to do the
3675         store_ops_okay test, used to speed up testing when we already know
3676         the answer, and just want to know if the store itself was killed.
3677         (build_store_vector): Largely rewritten to calculate the various
3678         vectors properly, and somewhat optimized.
3679         (store_motion): Init the df_analyzer, get REG_DEF chains.
3680         Also handle trapping expressions (since mems almost always trap)
3681         (simple_mem): Redefine what a simple mem is.
3682
3683 2001-08-03  DJ Delorie  <dj@redhat.com>
3684
3685         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3686         set from a constant part of the condition.
3687
3688 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
3689
3690         * mkdeps.c (deps_add_default_target): Make local variable
3691         ``start'' a const char pointer.
3692         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
3693
3694 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3695
3696         * doc/install.texi (Configuration): Fix markup.
3697         (Specific, i?86-*-udk): Likewise.
3698         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
3699         --with-gnu-ld.
3700         Document --enable-threads and --enable-libgcj status.
3701         (Specific, mips-sgi-irix*): Canonicalize triples.
3702         (Specific, mips-sgi-irix5): Warn about problems with this config.
3703         Mention required GNU as patch.
3704         Native assembler problems are fixed.
3705         (Specific, mips-sgi-irix6): Update O32 ABI support status.
3706         Document --enable-threads and --enable-libgcj status.
3707
3708 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
3709
3710         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
3711         of mkinstalldirs.
3712
3713 2001-08-03  Richard Henderson  <rth@redhat.com>
3714
3715         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
3716         constant data.
3717
3718 2001-08-03  Richard Henderson  <rth@redhat.com>
3719
3720         * rtlanal.c (find_first_parameter_load): Stop if we
3721         reach a CODE_LABEL at BOUNDARY.
3722
3723 2001-08-03  Richard Henderson  <rth@redhat.com>
3724
3725         * config/alpha/alpha.md (force_movdi): New insn.
3726         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
3727         Tweek FRP marking of VMS prologue insns.
3728         * config/alpha/vms.h (EPILOGUE_USES): New.
3729
3730 2001-08-02  Richard Henderson  <rth@redhat.com>
3731
3732         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
3733
3734 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
3735
3736         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
3737         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
3738         config/convex/convex.h, config/d30v/d30v.c,
3739         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3740         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
3741         config/mips/mips.h, config/mn10200/mn10200.h,
3742         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
3743         config/v850/v850.h, config/vax/openbsd.h,
3744         config/vax/openbsd1.h, config/vax/ultrix.h,
3745         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
3746         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
3747         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
3748         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
3749         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
3750         in comments and documentation.
3751
3752 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3753
3754         * line-map.c: New.
3755         * line-map.h: New.
3756         * Makefile.in (line-map.o): New.
3757         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
3758         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
3759         * cpperror.c (print_containing_files): Similarly.
3760         (print_location): Update.  Don't output a space before _Pragma.
3761         * cppfiles.c (stack_include_file): Set to line 1 immediately.
3762         (stack_include_filee, cpp_make_system_header): Update.
3763         (_cpp_execute_include): Get logical line number right for calling
3764         as-yet-unterminated #include.
3765         * cpphash.h (struct cpp_reader): Add line_maps.
3766         (_cpp_do_file_change): Update.
3767         * cppinit.c (cpp_create_reader): Initialize line maps.
3768         (cpp_destroy): Destroy line maps.
3769         (cpp_start_read): Get logical line number right.
3770         * cpplex.c (parse_string): Only warn once for multi-line strings.
3771         Use boolean variable for null warning.
3772         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
3773         already.
3774         (do_include_common): End the directive early.
3775         (do_line): Don't warn about out-of-range lines in preprocessed
3776         source.  Update.  Remove unused variables.
3777         (_cpp_do_file_change): Update for new line mapping.
3778         (pragma_cb): New typedef.
3779         (cpp_register_pragma): Stop looking ahead before calling the
3780         handler.  Clean up.
3781         (do_pragma_system_header): End directive early.
3782         (cpp_get_line_maps): New.
3783         (cpp_pop_buffer): Fudge logical line.  Update.
3784         * cpplib.h: Include line-map.h
3785         (enum cpp_fc_reason): Remove.
3786         (struct cpp_file_change): Update.
3787         (cpp_get_line_maps): New.
3788         * cppmain.c (struct_printer): New member map.
3789         (cb_file_change): Update for new mappings.
3790         * fix-header.c (cb_file_change): Similarly.
3791
3792 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
3793
3794         * Makefile.in (libgcc.mk): Define mkinstalldirs.
3795         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
3796
3797 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
3798
3799         * config/vax/vax.c: include expr.h.
3800
3801 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
3802
3803         * Makefile.in ($(srcdir)/configure): Only rebuild in
3804         maintainer mode.
3805         ($(srcdir)/config.in): Only define in maintainer mode.
3806         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
3807
3808 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
3809
3810         * doc/install.texi (Install GCC: Binaries): Update Bull info.
3811
3812 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3813
3814         * gcc.c (set_collect_gcc_options): New function, split out from
3815         main.
3816         Ignore elided switches.
3817         (do_spec_1): Invoke before executing command.
3818         (set_input): Export.
3819         Move declaration ...
3820         * gcc.h (set_input): ... here.
3821         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
3822         file.
3823
3824 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
3825
3826         Kill -fhonor-std.
3827         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
3828         interaction.
3829         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
3830
3831 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
3832
3833         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
3834         for the unnamed instructions it expands to.
3835
3836 2001-08-02  Richard Henderson  <rth@redhat.com>
3837
3838         * regclass.c (call_really_used_regs): Conditionally define.
3839         (init_reg_sets_1): Don't use it if not defined.
3840         (fix_register): Similarly, don't set it.
3841
3842 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3843
3844         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
3845         Correct comment that had been missed in the previous change.
3846
3847 2001-08-01  Stan Shebs  <shebs@apple.com>
3848
3849         * config/darwin.c (machopic_stub_name): Try matching by name.
3850         (update_stubs): New function.
3851         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
3852         unconditionally.
3853
3854 2001-08-01  Richard Henderson  <rth@redhat.com>
3855
3856         * except.c (output_function_exception_table): Use assemble_align.
3857         * varasm.c (assemble_eh_label): Remove.
3858         (assemble_eh_align, assemble_eh_integer): Remove.
3859
3860 2001-08-01  Robert Lipe  <robertl@caldera.com>
3861
3862         * dwarfout.c: Remove reference to README.DWARF.
3863
3864 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
3865
3866         * regclass.c (call_really_used_regs): New array for registers which
3867         are actually used by a call.
3868         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
3869         new array.
3870         (fix_register): Set call_really_used too.
3871         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
3872         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
3873
3874 2001-08-01  Richard Henderson  <rth@redhat.com>
3875
3876         * read-rtl.c (read_name): Consider \r whitespace.
3877
3878 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
3879
3880         * config.gcc: Recognize powerpc-*-netbsd*.
3881
3882         * doc/install.texi (Host/target specific installation notes for
3883         GCC): Mention powerpc-*-netbsd*.
3884
3885         * config/rs6000/netbsd.h: New file.
3886         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
3887         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
3888         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
3889         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
3890         (TARGET_VERSION): Redefine.
3891
3892         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
3893         mcall-netbsd as a match for mcall-sysv.
3894         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
3895         (ncrti.S, ncrtn.S): New targets.
3896         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
3897
3898         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
3899         "netbsd' as a V4 ABI.
3900         (ASM_SPEC): Check for -mcall-netbsd.
3901         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
3902         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
3903         (LIB_SPEC, ENDFILE_SPEC): Ditto.
3904         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
3905         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
3906         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
3907         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
3908
3909         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
3910         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
3911
3912 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3913
3914         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
3915         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
3916         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
3917         including "unwind-pe.h".
3918
3919 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
3920
3921         * rs6000.md (define_splits): Kill unused constraints.
3922
3923 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
3924                               Jan Hubicka  <jh@suse.cz>
3925
3926         * function.c (thread_prologue_and_epilogue_insns): Kill code
3927         dealing with non-existent CFG.
3928
3929 2001-08-01  Kazu Hirata  <kazu@hxi.com>
3930
3931         * alias.c: Fix comment formatting.
3932         * bitmap.c: Likewise.
3933         * builtins.c: Likewise.
3934         * calls.c: Likewise.
3935         * c-common.c: Likewise.
3936         * c-decl.c: Likewise.
3937         * c-dump.c: Likewise.
3938         * c-lex.c: Likewise.
3939         * collect2.c: Likewise.
3940         * combine.c: Likewise.
3941         * conflict.c: Likewise.
3942         * cppfiles.c: Likewise.
3943         * cppinit.c: Likewise.
3944         * cpplex.c: Likewise.
3945         * cpplib.c: Likewise.
3946         * cppmacro.c: Likewise.
3947         * cppspec.c: Likewise.
3948         * c-pragma.c: Likewise.
3949         * crtstuff.c: Likewise.
3950         * cse.c: Likewise.
3951         * cselib.c: Likewise.
3952         * c-semantics.c: Likewise.
3953         * c-typeck.c: Likewise.
3954
3955 2001-08-01  H.J. Lu <hjl@gnu.org>
3956
3957         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
3958
3959 2001-08-01  H.J. Lu <hjl@gnu.org>
3960
3961         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
3962
3963 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
3964
3965         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
3966         contextualizing Objective-C class name lookup by the lexer.
3967         (typespec_reserved_nonattr): Disable ObjC class name lookup after
3968         seeing a TYPESPEC.
3969         (protocoldef): Add support for forward @protocol declarations.
3970         (yylexname): Suppress ObjC class name lookup in certain contexts;
3971         re-enable after lookup is complete.
3972         (_yylex): Re-enable ObjC class name lookup when certain
3973         punctuation marks are seen.
3974
3975         * objc/objc-act.c (check_protocol_recursively): New function used
3976         for finding circular dependencies in protocols.
3977         (objc_declare_protocols): New function for handling forward
3978         @protocol declarations.
3979         (receiver_is_class_object): Detect the case when 'self' is used
3980         inside of a class method.
3981         (build_message_expr): Issue a warning if class method is desired
3982         but instance method is found instead.
3983         (conforms_to_protocol): Streamline.
3984         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
3985         protocol Foo, even if 'Bar foo' does not.
3986         (check_protocols): Streamline.
3987         (start_protocol): Add checks for circular and duplicate protocol
3988         definitions.
3989         (encode_aggregate_within): For typedefs of structs, encode the
3990         underlying struct.
3991         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
3992         (objc_declare_protocols): New prototype.
3993
3994 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3995
3996         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
3997         * cpplex.c (handle_newline): Update prototype.  Maintain logical
3998         line number.
3999         (skip_escaped_newlines, skip_block_comment, parse_string):
4000         Update accordingly.
4001         (_cpp_lex_token): Update, and store token position within the token.
4002         * cpplib.h (struct cpp_token): Add line and column entries.
4003         * cppmacro.c (replace_args): Position stringified tokens correctly.
4004
4005 2001-08-01  Andreas Jaeger  <aj@suse.de>
4006
4007         * basic-block.h: Add prototype for last_loop_beg_note.
4008
4009 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
4010
4011         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
4012         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
4013         comment.
4014         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
4015         while handling WITH_CLEANUP_EXPR node. Use second operand calling
4016         expand_decl_cleanup.
4017         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
4018         the first RTX.
4019         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
4020         operand while calling simple_cst_equal.
4021         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
4022         operand is the cleanup expression, the third is the RTL_EXPR.
4023         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
4024
4025 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
4026
4027         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
4028
4029 2001-07-31  matthew green  <mrg@eterna.com.au>
4030
4031         * config.gcc (i386-*-netbsdelf): New description.
4032         * config/i386/netbsd-elf.h: New file.
4033
4034 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
4035
4036         * loop.c (check_dbra_loop): Use single_set to compute
4037         jump_label.
4038
4039 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
4040
4041         PowerPC reorg and support for powerpc64-*-linux*.
4042
4043         Also fixes emitting of constants on 32 bit and 64 bit
4044         platforms.
4045
4046         * config.gcc: powerpc64-*-linux* is a new target.
4047         Things that needed aix.h now also include xcoff.h
4048
4049         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
4050         xcoff.h.
4051         Move AIX specific stuff into aix.h.
4052         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
4053         with more than just XCOFF now.
4054         (SET_ASM_OP): Remove, now defined where needed.
4055         (FUNCTION_PROLOGUE): New macro definition.
4056         (FUNCTION_EPILOGUE): New macro definition.
4057         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
4058
4059         * config/rs6000/xcoff.h: New file.
4060
4061         * config/rs6000/linux64.h: New file.
4062
4063         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
4064
4065 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
4066
4067         * rs6000.c (print_operand_address): Handle ELF syntax.
4068         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
4069         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
4070         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
4071
4072 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
4073
4074         * rs6000.c (rs6000_override_options): Only disable
4075         flag_function_sections for XCOFF.
4076         (exact_log2_cint_operand): New predicate.
4077         (reg_or_{add,sub}_cint64_operand): New predicates.
4078         (add_operand): Compare CONST_INT with fewer function calls.
4079         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
4080         (print_operand, case 'p'): Ensure positive operand.
4081         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
4082         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
4083         (PREDICATE_CODES): Add new predicates.
4084         * rs6000.md (addsi3): Split 32-bit constants more correctly.
4085         (divsi3, modsi3): Ensure positive power-of-2.
4086         (adddi3): Use new predicate.  Split 32-bit constants more
4087         correctly.  Re-arrange splitter to handle any constant.
4088         (subdi3): Use new predicate.
4089         (divdi3, moddi3): Ensure positive power-of-2.
4090         (movdi): Use rs6000_emit_set_const.
4091         (load_toc_v4_pic_di): Delete.
4092
4093 2001-07-31  Graham Stott <grahams@redhat.com>
4094
4095         * function.c (pad_below): Revert 2001-07-26 patch.
4096
4097 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
4098
4099         * reg-stack (convert_regs_1): Fix best edge condition.
4100
4101 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
4102
4103         * jump.c (duplicate_loop_exit_test): Better test for jumps
4104         entering the loop; create loop pre_header.
4105
4106 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
4107
4108         * doc/install.texi: Add s390 and s390x as new targets.
4109         * doc/invoke.texi: Add documantation of S/390 and zSeries
4110         target options.
4111         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
4112
4113 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
4114
4115         * config/m68k/m68k.md: Replace all general_operand with
4116         nonimmediate_operand for all destinations.
4117         * config/m68k/m68k.c (not_sp_operand): Likewise.
4118
4119 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
4120
4121         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
4122
4123 2001-07-30  Richard Henderson  <rth@redhat.com>
4124
4125         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
4126         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
4127
4128 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
4129
4130         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
4131         Add missing doc strings
4132         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
4133         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
4134
4135 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
4136
4137         * i386.c (ix86_output_main_function_alignment_hack): New function.
4138         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
4139
4140         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
4141         edges by EDGE_DFS_BACK flag.
4142         (dump_edge_info): Add dfs_back flag.
4143         * basic-block.h (EDGE_DFS_BACK): New constant.
4144         (mark_dfs_back_edges): Declare.
4145         * alias.c (loop_p): Remove.
4146         (mark_constant_function): Use mark_dfs_back_edges.
4147
4148         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
4149         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
4150         (compensate_edge): Break out from ...
4151         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
4152         (convert_regs_2): Set block_done once block is really done;
4153         Do updating of the predecesors counts.
4154
4155         * toplev.c (rest_of_compilation): Recompute block_for_insn
4156         before post-reload cfg_cleanup.
4157         * function.c (thread_prologue_epilogue_insns):
4158         Call set_block_for_new_insns when emitting prologue directly.
4159
4160 2001-07-30  Andreas Jaeger  <aj@suse.de>
4161
4162         * jump.c: Add prototype for mark_modified_reg.
4163
4164         * cse.c (set_live_p): Add unused attribute.
4165
4166         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
4167         overflow.
4168         (scan_for_source_files): Use long for count to avoid overflow.
4169         (output_data): Likewise.
4170         (output_data): Don't use string concatatenation to silence gcc
4171         -traditional.
4172
4173         * predict.c: Fix typos and grammar.
4174
4175         * gcse.c (insert_insn_end_bb): Remove unused variables.
4176
4177 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
4178
4179         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
4180         (attempt_auto_inc): LIkewise.
4181         (mark_used_reg): Likewise.
4182         (try_pre_increment_1): Likewise.
4183         * regclass.c (regclass): Likewise.
4184         * global.c (allocno_compare): Update comment; change scaling factor.
4185         * local-alloc.c (QTY_CMP_PRI): Likewise.
4186         * regs.h (REG_FREQ_FROM_BB): New.
4187         (REG_FREQ_MAX): Likewise.
4188
4189 2001-07-30  H.J. Lu <hjl@gnu.org>
4190
4191         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
4192         -D_GNU_SOURCE.
4193
4194 2001-07-30  H.J. Lu  (hjl@gnu.org)
4195
4196         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
4197         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4198         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
4199
4200 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
4201
4202         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
4203         as -mthumb-interwork when -mcpu=arm7 is specified.
4204
4205 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
4206
4207         * predict.def (noreturn, loop branch, loop exit): Mark as first
4208         match heuristics.
4209
4210 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
4211
4212         * combine.c (try_combine): Avoid barrier after noop jumps.
4213
4214 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4215
4216         * cpphash.h (struct cpp_reader): Remove import_warning.
4217         * cpplib.c (skip_rest_of_line): Don't bother turning off
4218         macro expansion.
4219         (parse_include): Move include handling to...
4220         (do_include_common): ... here.  Move import warning from...
4221         (do_import): ... here.
4222         (do_pragma_poison): Don't do a callback for poison identifiers.
4223         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
4224         * cppmain.c (setup_callbacks): Similarly.
4225
4226 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
4227
4228         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
4229         handle multiple sets.
4230         * except.c (sjlj_mark_call_sites): .... here.
4231         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
4232
4233 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
4234
4235         Suggested by Richard Henderson and Richard Kenner:
4236         * combine.c (recog_for_combine): Use the fake recog
4237         only if instruction does not match.
4238         * rtl.h (NOOP_MOVE_INSN_CODE): New.
4239         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
4240
4241         * combine.c (try_combine): Discover noop jump as direct jump.
4242
4243 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
4244
4245         * df.c (df_rd_global_compute): Add successors to worklist, not
4246         current item.
4247         (df_ru_global_compute): Ditto.
4248
4249 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
4250
4251         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
4252         increment REG_N_SETS.
4253
4254 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
4255
4256         * sbitmap.h: New prototype for sbitmap_a_xor_b.
4257
4258         * sbitmap.c (sbitmap_a_xor_b): New function.
4259         ifdef the basic block stuff on IN_GCC.
4260
4261 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4262
4263         * cppexp.c (parse_defined): Always record the macro name.
4264         (lex): Don't worry about identifiers, or special-case
4265         CPP_NOT here.
4266         (_cpp_parse_expr): Figure out at the end of the routine
4267         whether we saw a valid !defined() expression.
4268         * cppfiles.c (stack_include_file): Update for mi_valid.
4269         (_cpp_pop_file_buffer): Similarly.
4270         * cpplex.c (_cpp_lex_token): Similarly.
4271         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
4272         mi_if_not_defined, mi_lexed): Remove.
4273         (mi_valid): New.
4274         * cpplib.c (do_if): Simplify.
4275         (do_endif, push_conditional, _cpp_handle_directive): Update
4276         for renaming of mi_state to mi_valid.
4277 doc:
4278         * cpp.texi: Add index entries for digraphs, and add comment
4279         that C++ refers to them as alternative tokens.
4280
4281 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
4282
4283         * basic-block.h (CLEANUP_PRE_LOOP): New.
4284         * except.c (finish_eh_generation): Update call of cleanup_cfg.
4285         * sibcall.c (optimize_sibling_calls): Likewise.
4286         * toplev.c (rest_of_compilation): Likewise.
4287         * flow.c (try_forward_edges): Take argument MODE;
4288         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
4289         (try_optimize_cfg): Update call of try_forward_edges.
4290
4291 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
4292                                Jan Hubicka  <jh@suse.cz>
4293
4294         * (validate_replace_rtx_1): Fix simplification of MINUS.
4295
4296 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4297
4298         PR preprocessor/3669
4299         * cppinit.c (init_dependency_output): Turn off dump requests
4300         if sending dependencies to stdout.
4301
4302 2001-07-28  Richard Henderson  <rth@redhat.com>
4303
4304         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
4305         not optimizing.
4306
4307 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
4308
4309         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
4310
4311 2001-07-28  Kazu Hirata  <kazu@hxi.com>
4312
4313         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
4314         is VAR_DECL first to prevent an ICE.
4315
4316 2001-07-28  Richard Henderson  <rth@redhat.com>
4317
4318         * varasm.c (immed_real_const_1): Don't elide special cases for
4319         nested functions.
4320         (clear_const_double_mem): Clear const_tiny_rtx too.
4321
4322 2001-07-28  Richard Henderson  <rth@redhat.com>
4323
4324         * dwarf2out.c (dw_val_class_offset): New.
4325         (struct dw_ranges_struct, dw_ranges_ref): New.
4326         (ranges_table, ranges_table_allocated): New.
4327         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
4328         (add_AT_offset, add_ranges, output_ranges): New.
4329         (print_die, output_die): Handle dw_val_class_offset.
4330         (attr_checksum, size_of_die, value_format): Likewise.
4331         (gen_lexical_block_die): Handle non-contiguous blocks.
4332         (gen_block_die): Likewise.
4333         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
4334         if needed.  Dump the ranges table.
4335         * final.c (final_start_function): Remove unnecessary notes and
4336         rebuild the block tree before numbering the blocks.
4337         * function.c (reorder_blocks_0): Walk the existing block tree
4338         to unmark all blocks.
4339         (reorder_blocks_1): Create block fragments when duplicate block
4340         notes are seen.
4341         (reorder_fix_fragments): New.
4342         (reorder_blocks): Call it.
4343         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
4344
4345 2001-07-28  Richard Henderson  <rth@redhat.com>
4346
4347         * emit-rtl.c (adjust_address): Make a copy of the memory address.
4348
4349 2001-07-28  Richard Henderson  <rth@redhat.com>
4350
4351         * flow.c (add_to_mem_set_list): New function.
4352         (init_propagate_block_info): Use it.
4353         (mark_set_1): Likewise.
4354         (insn_dead_p): Canonicalize memory address for dead store
4355         comparison.  Allow wider mode stores to kill narrower mode stores.
4356         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
4357         (invalidate_mems_from_set): Don't handle MEMs.
4358
4359 2001-07-28  Kazu Hirata  <kazu@hxi.com>
4360
4361         * config/h8300/h8300.h: Fix formatting.
4362
4363 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
4364
4365         * basic-block.h (EDGE_FREQUENCY): New macro.
4366         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
4367         for new BB/edges.
4368         * flow.c (find_sub_basic_blocks): Likewise.
4369         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
4370         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
4371
4372         * predict.c (DEF_PREDICTOR): New argument FLAGS.
4373         (HITRATE): New macro.
4374         (PRED_FLAG_FIRST_MATCH): New constant.
4375         (predictor_info): New field flgags.
4376         (combine_predictions_for_insn): Use DS theory to combine
4377         probabilities; set the edge probabilities when finished.
4378         (estimate_probability): Avoid duplicated matches
4379         of LOOP_BRANCH heuristics for nested loops; update comment.
4380         * predict.def: Add flags for each prediction, set probabilities
4381         according to B&L paper.
4382         * predict.h (DEF_PREDICTOR): New argument FLAGS.
4383
4384         * profile.c (compute_branch_probabilities):  Cleanup way the edge
4385         probabilities are computed and REG_BR_PROB notes are dropped; if
4386         values does not match, emit error.
4387         (init_branch_prob): Do error instead of warning when profile driven
4388         feedback is missing or corrupt.
4389
4390 2001-07-27  DJ Delorie  <dj@redhat.com>
4391
4392         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
4393         against a constant, try to adjust the compare to have the desired
4394         constant in it so that min/max optimizations happen more often.
4395
4396 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
4397
4398         * flow.c (last_loop_beg_note): New function.
4399         (redirect_edge_and_branch): Use it.
4400         (split_edge): Likewise.
4401
4402         * alias.c (loop_p): Avoid uninitialized memory access.
4403
4404         * flow.c (try_forward_edges): Avoid accessing freed memory.
4405
4406         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
4407         variable access.
4408
4409 2001-07-26  Andrew Haley  <aph@redhat.com>
4410         Joern Rennecke <amylaar@redhat.com>
4411
4412         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
4413         (SUBTARGET_CPP_ENDIAN_SPEC): New.
4414         (SUBTARGET_CPP_SPEC): New.
4415         (CPP_SPEC): Remove.
4416         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
4417         (SUBTARGET_CPP_PTR_SPEC): New.
4418         (CPP_DEFAULT_CPU_SPEC): New.
4419         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
4420         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4421         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
4422         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4423         (SUBTARGET_CPP_SPEC): Define as an empty string.
4424
4425 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4426
4427         * doc/install.texi (Configuration): Properly link the host
4428         specific instructions also when generating HTML.
4429
4430 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
4431
4432         * flow.c (redirect_edge_and_branch_force): Test
4433         target->global_live_at_start.
4434
4435 2001-07-26  Richard Henderson  <rth@redhat.com>
4436
4437         * simplify-rtx.c (avoid_constant_pool_reference): Export.
4438         * rtl.h (avoid_constant_pool_reference): Declare it.
4439         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
4440         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
4441
4442 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
4443
4444         * rtl.h (cleanup_barriers): Declare.
4445         * jump.c (cleanup_barriers): New function.
4446         * toplev.c (rest_of_compilation): Call cleanup_barriers
4447         before loop optimizer and after bb_reorder.
4448
4449         * flow.c (back_edge_of_syntactic_loop_p): New.
4450         (split_edge): Use it.
4451
4452 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4453
4454         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
4455
4456 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
4457
4458         * cse.c (cse_process_notes): Replace any registers if the address
4459         remains valid.
4460
4461 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
4462
4463         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
4464         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
4465         (propagate_block): Update prototype.
4466         * flow.c (update_life_info): Simplify the CFG and
4467         recalculate the global regs which are alive when
4468         removing dead code during a global update.
4469         (propagate_block): Return non-zero if an INSN is
4470         deleted.
4471
4472 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4473
4474         * Makefile.in (LIBICONV): Define.
4475
4476 2001-07-26  Catherine Moore  <clm@redhat.com>
4477
4478         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
4479         of conditional to avoid tree checking errors.
4480
4481 2001-07-26  Kazu Hirata  <kazu@hxi.com>
4482
4483         * regmove.c (regmove_optimize): Don't replace a reg with
4484         another reg of a different mode.
4485
4486 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
4487
4488         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
4489         limit length of dependancy flush list.
4490         * params.h (MAX_PENDING_LIST_LENGTH): Define.
4491         * sched-int.h  (struct deps): Add pending_flush_length field.
4492         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
4493         has 1 element in it.
4494         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
4495         (sched_analyze): After a jump, if the pending memory flush list is too
4496         large, flush the pending lists.
4497         (init_deps): Initialize pending_flush_length to 0.
4498         * doc/invoke.texi (max_pending_list_length): Document parameter.
4499
4500 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4501
4502         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
4503         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
4504         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
4505
4506 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4507
4508         * cpphash.h (struct_lexer_state): Delete was_skipping.
4509         Move skipping here from struct cpp_reader.
4510         * cpplex.c (parse_identifier): Update.
4511         (_cpp_lex_token): Don't skip tokens in a directive.
4512         * cpplib.c (struct if_stack): Update.
4513         (start_directive, end_directive): Don't change skipping state.
4514         (_cpp_handle_directive): Update.
4515         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
4516         (do_else, do_endif): Update; only check for excess tokens if not
4517         in a skipped conditional block.
4518         (push_conditional): Update for new struct if_stack.
4519
4520 2001-07-26  Graham Stott  <grahams@redhat.com>
4521
4522         * function.c (locate_and_pad_parm): Also pad initial offset
4523         so that the total argument size also includes the padding.
4524
4525 2001-07-26  Graham Stott <grahams@redhat.com>
4526
4527         * gensupport.c (alter_output_for_insn): Correct enable checking failure
4528         change XSTR to XTMPL.
4529
4530         (process_one_cond_exec): Likewise
4531
4532 2001-07-25  Richard Henderson  <rth@redhat.com>
4533
4534         * varasm.c (assemble_variable): Create DECL_RTL before setting
4535         TREE_ASM_WRITTEN.
4536
4537 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
4538
4539         * predict.c (estimate_probability): Avoid duplicated predictions.
4540
4541         * loop.c (find_and_verify_loops): Grok multiple barriers.
4542
4543 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4544
4545         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
4546
4547         * dbxout.c: Consistently use putc instead of fputc.
4548         (print_wide_int): New function; call instead of direct fprintf.
4549         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
4550         (dbxout_type_fields, dbxout_type_method_1): Likewise.
4551         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
4552         (print_int_cst_octal): Likewise.
4553         (print_octal): Show we wrote characters.
4554         (dbxout_type): Set have_used_extensions in more places.
4555
4556 2001-07-25  Catherine Moore  <clm@redhat.com>
4557
4558         * config/v850/v850.c (v850_va_arg):  Use addr
4559         instead of valist to build incr.
4560
4561 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
4562
4563         * flow.c (delete_dead_jumptables): New function.
4564         (life_analyzis): Call it.
4565         * bb-reorder.c (skip_insns_after_block): Handle contradictory
4566         sequences.
4567
4568 2001-07-25  Richard Henderson  <rth@redhat.com>
4569
4570         * except.c (reachable_handlers): Handle a region being removed
4571         out from under a RESX.
4572
4573 2001-07-25  Richard Henderson  <rth@redhat.com>
4574
4575         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
4576         swap GE/GT if it is an fp comparison.
4577
4578 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
4579
4580         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
4581         operands.
4582
4583 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
4584
4585         * ssa.c (rename_insn_1): Do not wrap an assignment to a
4586         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
4587         glitch.
4588
4589         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4590         throw an exception.
4591         (visit_expression): When attempting to simplify an expression,
4592         retrieve any modes for arguments before they are simplified
4593         to constants.
4594
4595 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
4596             Janis Johnson  <janis@us.ibm.com>
4597
4598         * stmt.c (expand_goto): A nonlocal goto can be a call too.
4599         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4600         pointer parameters to match documented usage of nonlocal_goto.
4601         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4602         parameters to their correct order.
4603         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4604         parameters to their correct order.
4605
4606 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
4607
4608         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4609
4610 2001-07-25  Jan Hubicka  <jh@suse.cz>
4611             Richard Henderson  <rth@redhat.com>
4612
4613         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4614         the sequence.
4615         (make_edges): New argument update_p; populate the edge cache if set.
4616         (find_basic_blocks): Update make_edges invocation.
4617
4618 2001-07-24  Joel Sherrill <joel@OARcorp.com>
4619
4620         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4621
4622 2001-07-24  Joel Sherrill <joel@OARcorp.com>
4623
4624         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4625         -Acpu and -Amachine.h.
4626         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4627         Corrected header to say ELF not a.out.
4628         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4629         when given -msoft-float.
4630
4631 2001-07-24  Joel Sherrill <joel@OARcorp.com>
4632
4633         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4634         extra multilib parts like arm-elf.
4635         (i960-*-coff*, i960-*-rtems): Should not use collect2.
4636         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4637         crtfini.o as extra multilib parts.
4638
4639 2001-07-24  Joel Sherrill <joel@OARcorp.com>
4640
4641         * configure.in: Add rtems as a supported thread model.
4642         * gthr-rtems.h: Add missing entry point __gthread_active_p.
4643         * configure: Rebuilt.
4644
4645 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
4646
4647         * stor-layout.c (get_mode_alignment): make it work when
4648         BITS_PER_UNIT is not a power of two.
4649         * builtins.c (get_pointer_alignment): Likewise.
4650
4651 2001-07-24  Richard Henderson  <rth@redhat.com>
4652
4653         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4654         the retrieved constant into the expected mode.
4655
4656 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
4657
4658         * flow.c (try_simplify_condjump): Avoid duplicated edges.
4659         (verify_flow_info): Check for duplicated edges; clarify
4660         error reporting.
4661
4662         * flow.c (block_label): Update basic_block_for_insn.
4663         (commit_edge_insertions): Call compute_bb_for_insn.
4664
4665         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4666         returns too.
4667
4668         * flow.c (redirect_edge_and_branch,
4669         try_optimize_cfg): Use redirect_edge_succ_nodup
4670         (redirect_edge_succ_nodup): New.
4671         * basic_block.h (redirect_edge_succ_nodup): Declare.
4672
4673         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4674         after gcse.
4675
4676 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
4677
4678         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4679         (try_crossjump_to_edge): Update commetns.
4680         (try_crossjump_bb): Likewise.
4681
4682 2001-07-24  Richard Henderson  <rth@redhat.com>
4683
4684         * combine.c (distribute_notes): Move set of need_refresh
4685         for noop_move_p down to catch all cases.
4686
4687 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
4688
4689         * recog.c (split_all_insns_noflow): New.
4690         * rtl.h (split_all_insns_noflow): Declare.
4691         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
4692         * m68hc11.c (m68hc11_reorg): Likewise.
4693         * sh.c (machine_dependent_reorg): Likewise.
4694         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
4695         call.
4696
4697 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
4698
4699         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
4700         (ashlsi3_n splitter): Likewise.
4701         (lshrsi3_n splitter): Likewise.
4702
4703         (GOTaddr2picreg): Make const SImode.
4704         (sym_label2reg): Likewise.
4705         (symGOT2reg): Likewise.
4706         (symGOTOFF2reg) Likewise.
4707
4708         (casesi_worker_0): Make unspec SImode.
4709
4710 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
4711
4712         * config/sh/sh.c (barrier_align): Check that an operand really is
4713         an insn before extracting its INSN_CODE.
4714
4715 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
4716
4717         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
4718         dangling else.
4719
4720         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
4721         for SImode to prevent overflow.
4722
4723 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4724
4725         * config/mips/irix6-libc-compat.c: New file.
4726         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
4727         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
4728         passing workaround.
4729
4730 2001-07-24  lars brinkhoff  <lars@nocrew.org>
4731
4732         * rtl.texi (REG_POINTER): Document.
4733         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
4734         QFmode, HFmode, TQFmode, QCmode, and HCmode.
4735
4736 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
4737
4738         * flow.c (delete_noop_moves): Do not confuse libcall regions.
4739
4740 2001-07-23  Richard Henderson  <rth@redhat.com>
4741
4742         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
4743
4744 2001-07-23  Kazu Hirata  <kazu@hxi.com>
4745
4746         * config/h8300/h8300-protos.h: Add a prototype for
4747         general_operand_dst_push.
4748         * config/h8300/h8300.c (general_operand_dst_push): New.
4749         * config/h8300/h8300.h (OK_FOR_T): New.
4750         (EXTRA_CONSTRAINT): Use it.
4751         * config/h8300/h8300.md (movqi_push): Remove and integrate into
4752         the existing movqi pattern.
4753         (movhi_push): Likewise.
4754
4755         * reload.c: Fix comment typos.
4756
4757 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4758
4759         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
4760
4761 2001-07-23  H.J. Lu  (hjl@gnu.org)
4762
4763         * doc/extend.texi: Update __builtin_return_address and
4764         __builtin_frame_address.
4765
4766 2001-07-23  Richard Henderson  <rth@redhat.com>
4767
4768         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
4769         before CSE.
4770         * config/i386/i386.md: New setcc+movzbl peephole2.
4771
4772 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4773
4774         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
4775         * objc/objc-act.c: Include debug.h.
4776         (synth_module_prologue): Save and restore debug hooks too.
4777
4778 2001-07-23  lars brinkhoff  <lars@nocrew.org>
4779
4780         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
4781         and C4X_FLOAT_FORMAT.
4782         (BOOL_TYPE_SIZE): Document.
4783
4784 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
4785
4786         * unroll.c (loop_iterations): Fix miscalculation of initial
4787         giv offset.
4788
4789 2001-07-13  Andrew Haley  <aph@redhat.com>
4790
4791         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
4792         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
4793         * config/sh/sh.c (sh_can_redirect_branch): New function.
4794         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
4795         * reorg.c (steal_delay_list_from_target): Use
4796         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
4797
4798 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
4799
4800         * flow.c (try_simplify_condjump): Unlink insn chain on
4801         fallthru edge; use can_fallthru.
4802
4803 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
4804
4805         * basic-block.h (find_sub_basic_block): Declare.
4806         * flow.c (make_edges): New arguments MIN and MAX;
4807         (find_sub_basic_blocks): Revamp to use make_edges
4808         and purge_dead_edges.
4809         (find_basic_blocks): Update call of find_sub_basic_block.
4810
4811         * recog.c (split_all_insns): Always expect CFG to be consistent;
4812         call find_sub_basic_blocks in case something has changed.
4813         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
4814         has been built.
4815
4816         * basic-block.h (delete_noop_moves): Declare.
4817         * combine.c (combine_instructions): Call it.
4818         (recog_for_combine): Tolerate noop moves
4819         (distribute_notes): Force refresh when register dies at noop move.
4820         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
4821         too.
4822         (life_analysis): Update delete_noop_moves call.
4823         (set_noop_p): Move too ...
4824         * rtlanal.c (noop_move_p): ... here.
4825         * rtl.h (noop_move_p): Declare.
4826
4827         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
4828         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
4829         after combine.
4830         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
4831         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
4832
4833 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
4834
4835         * reload.c (push_reload): Fix typo in comment.
4836         (find_reloads_address): Ditto.
4837         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
4838
4839 2001-07-22  Richard Henderson  <rth@redhat.com>
4840
4841         * flow.c: Grammar check and clarify a lot of comments.
4842         (try_simplify_condjump): Rename variables to be clearer.
4843         (try_forward_edges): Skip complex and fallthru edges.
4844         Rearrange tests to avoid duplicate checks.
4845         (flow_find_cross_jump): Likewise.
4846         (outgoing_edges_match): Allow match if neither branch has
4847         probability data.  Loosen probability match to 5%.
4848         (try_crossjump_to_edge): Hoist repeated indirection into
4849         local variables.
4850         (try_crossjump_bb): Don't check complex edges.  Eliminate
4851         redundant crossjump tests.
4852         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
4853         checks before more expensive checks.
4854
4855 2001-07-22  Richard Henderson  <rth@redhat.com>
4856
4857         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
4858         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
4859         arguments.
4860
4861 2001-07-22  Richard Henderson  <rth@redhat.com>
4862
4863         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
4864         (const_sint32_operand): Likewise.
4865         * m68k.md (anon mulsi pattern): Use const_int_operand not
4866         const_sint32_operand.
4867         (umulsi3_highpart): Zero extend a constant input.
4868         (smulsi3_highpart): Don't bother checking SImode constant.
4869         (const_umulsi3_highpart): Give op3 DImode.
4870         (const_smulsi3_highpart): Likewise.
4871
4872 2001-07-22  Richard Henderson  <rth@redhat.com>
4873
4874         * flow.c (split_block): Make sure bb_note is included in the
4875         new block when splitting before a label.
4876
4877 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
4878
4879         * basic-block.h (redirect_edge_and_branch_force,
4880         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
4881         * flow.c (redirect_edge_and_branch_force,
4882         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
4883         (redirect_edge_and_branch_force): Fix copying of lifeness information.
4884         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
4885         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
4886         instead of label; update CFG after transformation.
4887         (find_if_case_1): Update call, use redirect_edge_and_branch_force
4888         for finishing the transformation; handle even case where ELSE
4889         does not follow THEN.
4890         (find_if_case_2): Update call of dead_or_predictable; simplify
4891         CFG update.
4892
4893         * emit-rtl.c (split_branch_probability): New global variable.
4894         (try_split): Take care to set split_branch_probability and
4895         create REG_BR_PROB note for new jump insns.
4896         * md.texi (define_split): Document new feature.
4897
4898         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
4899
4900 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4901
4902         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
4903         (asm_out_file): Remove redundant declaration.
4904         (assemble_asm): Remove old #if 0 block.
4905         (assemble_variable): Remove end of function; debug output is
4906         now handled with global_decl.  Remove old #if 0 block.  Update.
4907         Remove saved_in_section and associated no-op code.
4908         * Makefile.in (varasm.o): Correct dependencies.
4909
4910 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
4911
4912         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4913         the definition in defaults.h.
4914
4915 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
4916
4917         * jump.c: Update comments.
4918         (delete_barrier_successors, delete_unreferenced_labels,
4919         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
4920         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
4921         jump_optimize, jump_optimize_minimal): Kill.
4922         (rebuild_jump_labels): Move code from jump_optimize_1.
4923         (purge_line_number_notes): Likewise.
4924         (copy_loop_headers): Likewise.
4925         * reg-stack.c: Update comment.
4926         * stmt.c: Likewise.
4927         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
4928         JUMP_AFTER_REGSCAN): Kill.
4929         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
4930         purge_line_number_notes and copy_loop_headers.
4931
4932 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
4933            Richard Henderson  <rth@redhat.com>
4934
4935         * dbxout.c (dbxout_global_decl): New.
4936         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4937         * sdbout.c (sdbout_finish): New.
4938         (sdbout_debug_hooks): Use it, add comments.
4939         (sdbout_global_decl): Defer initialised public vars to
4940         sdbout_finish.
4941         * varasm.c (assemble_variable): Don't output debug information
4942         for file-scope variables.
4943
4944 2001-07-22  Richard Henderson  <rth@redhat.com>
4945
4946         * config/alpha/alpha.c (get_trap_mode_suffix): New.
4947         (get_round_mode_suffix): New.
4948         (print_operand): Use them for [/].  Remove support for [&'`()+].
4949         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
4950         * config/alpha/alpha.md (attr round_suffix): New.
4951         (attr trap_suffix): New.
4952         (all insns): Set them appropriately.  Use %/ instead of the
4953         myriad punctuators.
4954
4955 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4956
4957         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
4958
4959 2001-07-22  Richard Henderson  <rth@redhat.com>
4960
4961         * regrename.c (regrename_optimize): Compute nregs for each
4962         potential target register.
4963
4964 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
4965            Richard Henderson  <rth@redhat.com>
4966
4967         * dbxout.c (dbxout_global_decl): New.
4968         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4969         * sdbout.c (sdbout_finish): New.
4970         (sdbout_debug_hooks): Use it, add comments.
4971         (sdbout_global_decl): Defer initialised public vars to
4972         sdbout_finish.
4973         * varasm.c (assemble_variable): Don't output debug information
4974         for file-scope variables.
4975
4976 2001-07-21  H.J. Lu  (hjl@gnu.org)
4977
4978         * config/mips/mips.c (mips_cpu): Moved into ...
4979         (override_options): Here.
4980
4981         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
4982         mips_tune.
4983         (mips_cpu): Removed.
4984
4985 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4986
4987         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
4988         ("iorqi3"): Likewise.
4989         ("xorqi3"): Likewise.
4990         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
4991         ("*subhi3_sp): Likewise.
4992         ("*subhi3"): Likewise.
4993         ("extendhisi2"): Accept D, X and Y as source operand to avoid
4994         reload problems.
4995
4996 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4997
4998         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
4999         * config/freebsd.h: Likewise.
5000         * config/linux.h: Likewise.
5001         * config/openbsd.h: Likewise.
5002         * config/alpha/linux-elf.h: Likewise.
5003         * config/arm/linux-elf.h: Likewise.
5004         * config/d30v/d30v.h: Likewise.
5005         * config/fr30/fr30.h: Likewise.
5006         * config/ia64/aix.h: Likewise.
5007         * config/ia64/ia64.h: Likewise.
5008         * config/mips/linux.h: Likewise.
5009         * config/pj/pj.h: Likewise.
5010         * config/rs6000/linux.h: Likewise.
5011         * config/sparc/linux.h: Likewise.
5012         * config/sparc/linux64.h: Likewise.
5013
5014 2001-07-20  Bruce Korb  <bkorb@gnu.org>
5015
5016         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
5017         because getc() and char* may disagree on signedness.
5018
5019 2001-07-20  Richard Henderson  <rth@redhat.com>
5020
5021         * doc/rtl.texi (REG_DEAD): Update for current semantics.
5022
5023         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
5024         insns to delete in the presence of cc0 in a jump insn.
5025
5026 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
5027                                Jan Hubicka  <jh@suse.cz>
5028
5029         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
5030         of doing the change by hand.
5031
5032 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
5033
5034         * rtlanal.c (set_noop_p): Return true for noop jumps.
5035
5036         * expr.c (emit_single_push_insn): Add call to push expander.
5037         * expr.h (optab_index): Add OTI_push
5038         (push_optab): New constant.
5039         * genopinit.c (optabs): Add push_optab.
5040         * optabs.c (init_optab): Init push optab.
5041         * md.texi (push??1): Document
5042
5043 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5044
5045         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
5046         expand to emit the pattern; put a REG_INC note for push/pop
5047         instructions.
5048         ("movdf", "movdf_internal"): Likewise.
5049         ("movsi", "movsi_internal"): Likewise.
5050         ("movsf", "movsf_internal"): Likewise.
5051         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
5052
5053 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5054
5055         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
5056         gen_highpart.
5057
5058 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
5059
5060         * params.def: Change default max inline insns to 100.
5061
5062 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
5063
5064         * combine.c (combine_simplify_rtx): Generate a new shift operation
5065         when simplifying the first operand of a (neg (ashift)) expression.
5066
5067 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5068
5069         * regclass.c (N_REG_INTS): Use only 32 bits per element.
5070
5071 2001-07-20  Kelley Cook  <kelley.cook@home.com>
5072
5073         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
5074         information.   Move rest into ...
5075         (*-*-solaris): ... here.  Eliminate redundant information and
5076         reword necessary packages section.  Delete 4.x assembler bug info.
5077         (sparc-sun-*): Merge into ...
5078         (sparc-sun-sunos*): here.
5079
5080 2001-07-20  Catherine Moore  <clm@redhat.com>
5081
5082         * config/v850/v850.md (casesi): Generate LABEL_REF
5083         with Pmode.
5084
5085 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
5086
5087         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
5088         * i386.c (ix86_zero_extend_to_Pmode): Make global.
5089         * i386.md (strclrsi expander): Use it.
5090
5091 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5092
5093         * integrate.c (copy_insn_list): handle
5094         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
5095         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
5096         identically as to CODE_LABEL.
5097
5098         * fold-const (fold): Convert A/B/C to A/(B*C) and
5099         A/(B/C) to (A/B)*C
5100
5101         * except.c (connect_post_landing_pads): Delete the RESX insns.
5102
5103 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
5104
5105         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
5106
5107         * config/mips/mips.md (nmadd/nmsub): Use macro.
5108
5109 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
5110
5111         * cppinit.c (remove_dup_dir): Make static.
5112         (remove_dup_dirs): Make static. Only warn about preempting a
5113         system directory with a non-system directory.
5114
5115 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
5116
5117         * ifcvt.c (noce_try_store_flag_constants): Correct order
5118         of parameters to trunc_int_for_mode.
5119
5120 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
5121
5122         * reorg.c (fill_simple_delay_slots): If an instruction might throw
5123         an exception that will be caught within this function, do not fill
5124         its delay slot with any subsequent instruction.
5125
5126 2001-07-19  Steve Ellcey <sje@cup.hp.com>
5127
5128         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
5129         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
5130         pointer extension instruction.
5131         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
5132         * simplify-rtx.c (simplify_unary_operation) Likewise.
5133         * explow.c (convert_memory_address) Check value of
5134         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
5135         less than zero.
5136         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
5137         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
5138         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
5139         Add Multilib Support.
5140         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
5141         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
5142         Add Multilib Support.
5143         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
5144         support.
5145         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
5146         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
5147         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
5148
5149 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
5150
5151         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
5152         old and new operands in `<', `3' and `b'.
5153
5154 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5155
5156         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
5157         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
5158         (toplev.o): Don't depend on xcoffout.h.
5159         * c-decl.c: Include debug.h
5160         (duplicate_decls): Use debug hook.
5161         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
5162         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5163         (dbxout_types): Remove.
5164         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
5165         * debug.c (do_nothing_debug_hooks): Update.
5166         (debug_true_tree, debug_nothing_rtx): New.
5167         * debug.h (struct rtx_def): New.
5168         (struct gcc_debug_hooks): New hooks ignore_block,
5169         outlining_inline_function and label.
5170         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
5171         dwarf2out_frame_finish): New.
5172         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
5173         Make static, update prototype.
5174         (dwarf2_debug_hooks): Update.
5175         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
5176         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
5177         * dwarfout.c (dwarf_debug_hooks): Update.
5178         * emit-rtl.c: Include debug.h.
5179         (remove_unnecessary_notes): Use debug hook.
5180         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
5181         (final_scan_insn): Use debug hook.
5182         * integrate.c (output_inline_function): Use debug hook.
5183         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
5184         (sdb_debug_hooks): Update.
5185         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
5186         * toplev.c: Don't include xcoffout.h.
5187         (note_outlining_of_inline_function, debug_ignore_block): Remove.
5188         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
5189         Remove.
5190         * tree.h (dwarf2out_do_frame): Remove.
5191
5192 2001-07-19  Catherine Moore  <clm@cygnus.com>
5193
5194         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
5195
5196 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
5197
5198         * reload1.c (eliminate_regs_in_insn): When updating a set
5199         to the frame pointer to the hardware frame pointer, perform
5200         the update always not just when REPLACE is set.
5201
5202         * reload1.c (choose_reload_regs): Don't inherit a reload
5203         that crosses multiple registers if registers past the first
5204         don't fit in the desired class.
5205
5206         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
5207         when negating constants.
5208
5209 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
5210
5211         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
5212         * doc/tree.texi: Ditto.
5213
5214 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
5215             Jakub Jelinek  <jakub@redhat.com>
5216
5217         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
5218         (extract_cie_info): Handle "eh" augmentation properly,
5219         remember eh_ptr.
5220         (struct frame_state, __frame_state_for): New.
5221
5222 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5223
5224         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
5225         HANDLE_SYSV_PRAGMA): Define.
5226         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
5227         previous args.
5228         (copy_object): Caller changed.
5229
5230 2001-07-19  Andreas Schwab  <schwab@suse.de>
5231
5232         * configure.in (assembler dwarf2 debug_line support): Define nop
5233         insn for m68k.
5234         * configure: Regenerated.
5235
5236 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5237
5238         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
5239         dwarfout.h.
5240         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
5241         to conditionally compiled block.
5242         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5243         * dbxout.h (dbxout_function): Remove.
5244         * debug.c (do_nothing_debug_hooks): Update.
5245         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
5246         global_decl, deferred_inline_function.
5247         * dwarf2out.c (dwarf2_debug_hooks): Update.
5248         (dwarf2out_global_decl): New.
5249         * dwarfout.c: Don't include dwarfout.h.
5250         (dwarfout_global_decl, dwarfout_function_decl,
5251         dwarfout_deferred_inline_function): New.
5252         (dwarf_debug_hooks): Update.
5253         * dwarfout.h: Remove.
5254         * final.c: Don't include dwarfout.h.
5255         * sdbout.c (sdbout_global_decl): New.
5256         (sdbout_debug_hooks): Update.
5257         * toplev.c: Don't include dwarfout.h.
5258         (check_global_declarations, rest_of_compilation): Use new debug hooks.
5259         (note_deferral_of_defined_inline_function): Remove.
5260         * toplev.h (note_deferral_of_defined_inline_function): Remove.
5261         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
5262         * ch/lex.c: Don't include dwarfout.h.
5263         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
5264         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
5265         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
5266         * cp/optimize.c: Include debug.h.
5267         (maybe_clone_body): Use debug hook.
5268         * cp/semantics.c: Include debug.h.
5269         (expand_body): Use debug hook.
5270         * po/POTFILES.in: Remove dwarfout.h.
5271
5272 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5273
5274         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
5275         * c-parse.in (yyerror, _yylex): Similarly.
5276         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
5277         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
5278         Update comments.
5279         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
5280         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
5281
5282 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
5283
5284         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
5285         in-class declaration at -g1.  Fixes c++/2814.
5286
5287 2001-07-18  Richard Henderson  <rth@redhat.com>
5288
5289         * doc/md.texi (reload_in/out): Document restrictions in predicates
5290         and constraints for these patterns.  Document empty string matching
5291         ALL_REGS.
5292
5293 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5294
5295         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
5296
5297 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
5298
5299         * cse.c: Undo my previous patch.
5300
5301 2001-07-18  Tom Tromey  <tromey@redhat.com>
5302
5303         For PR java/2812:
5304         * configure: Rebuilt.
5305         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
5306         instead.
5307         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
5308
5309 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
5310                                Jan Hubicka  <jh@suse.cz>
5311
5312         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
5313         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
5314         * jump.c (mark_jump_label): Do not forward branches.
5315
5316 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
5317
5318         * cse.c (delete_trivially_dead_insns): Delete the libcall block
5319         when return value is unused.
5320
5321 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5322
5323         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
5324
5325 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
5326
5327         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
5328         on error.  We can't blindly return the result of
5329         pthread_mutex_trylock because it returns a positive number on
5330         error, while we must return -1 on error.
5331         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
5332         fixes.
5333         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
5334
5335 2001-07-18  Andreas Jaeger  <aj@suse.de>
5336
5337         * integrate.c (output_inline_function): Correct type of debug_hooks.
5338
5339 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
5340
5341         * combine.c (combine_simplify_rtx): DIV can be treated
5342         associatively for floats if unsafe math optimisations are enabled.
5343
5344 2001-07-17  Richard Henderson  <rth@redhat.com>
5345
5346         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
5347
5348 2001-07-17  Richard Henderson  <rth@redhat.com>
5349
5350         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
5351         don't force the function address into a register.
5352         (expand_call, emit_library_call_value_1): Update callers.
5353         * builtins.c (expand_builtin_apply): Likewise.
5354         * expr.h (prepare_call_address): Update decl.
5355
5356 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
5357
5358         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
5359         config directory.
5360         * config/i386/chorus.h: Move up.
5361         * config/sparc/chorus.h: Likewise.
5362         * config/rs6000/chorus.h: Likewise.
5363         * config/chorus.h: Moved here.
5364
5365 2001-07-17  Andreas Schwab  <schwab@suse.de>
5366
5367        * configure.in  (assembler eh_frame optimization): Handle big
5368        endian.
5369        * configure: Regenerated.
5370
5371 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5372
5373         * expr.c (epxand_expr): Convert divisions into multiplications by
5374         reciprocals if -ffast-math.
5375
5376 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5377
5378         * dbxout.c (dbxout_really_begin_function): Rename to
5379         dbxout_begin_function.
5380         (dbx_debug_hooks, xcoff_debug_hooks): Update.
5381         (dbxout_begin_function): Remove.
5382         (dbxout_function): Update.
5383         (dbxout_source_line): Update prototype.
5384         * dbxout.h (dbxout_begin_function): Remove.
5385         * debug.c (do_nothing_debug_hooks): Update.
5386         (debug_nothing_tree): Update.
5387         (debug_nothing_charstar_rtx): Remove.
5388         * debug.h (union tree_node): Declare.
5389         (struct rtx_def): Remove.
5390         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
5391         begin_function.  Change source_line prototype.
5392         (debug_nothing_tree): New.
5393         (debug_nothing_charstar_rtx): Delete.
5394         (dwarf2out_begin_prologue): Moved from ...
5395         * tree.h: ... here.
5396         * dwarf2out.c (dwarf2_debug_hooks): Update.
5397         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
5398         debug info, call dwarf2out_source_line.
5399         (dwarf2out_souce_line): Update prototype.
5400         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
5401         Change prototype, make static.
5402         (dwarfout_source_line): Update prototype.
5403         (dwarf_debug_hooks): Update.
5404         * dwarfout.h (dwarfout_begin_function): Remove.
5405         * final.c (final_start_function, final_scan_insn): Use appropriate
5406         debug hooks, update to use notice_source_line.
5407         (output_source_line): Rename notice_source_line.  Don't call the
5408         source_line debug hook.
5409         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
5410         make static, update prototype.
5411         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
5412         prototype.
5413         (sdbout_end_prologue): New.
5414         (sdbout_source_line): Update prototype.
5415         (sdbout_debug_hooks): Update.
5416         (sdbout_symbol): Remove unused var.
5417         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
5418         Delete.
5419         * varasm.c: Include debug.h.
5420         (assemble_start_function): Use begin_function debug_hook.
5421         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5422         update with prototype.
5423         (xcoffout_source_line): Update prototype.
5424         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5425         update prototype.
5426         (xcoffout_source_line): Update prototype.
5427
5428 2001-07-17  Richard Henderson  <rth@redhat.com>
5429
5430         * c-typeck.c (build_binary_op): Do not shorten unsigned
5431         right shift after sign extension.
5432
5433 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
5434
5435         * combine.c (combine_simplify_rtx): Attempt to simplify
5436         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
5437
5438         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
5439         (simplify_binary_operation, simplify_unary_operation,
5440          simplify_relational_operation): Use it.
5441
5442         * combine.c (combine_simplify_rtx): Don't do associative law
5443         on divisions; allow associative law on floats.
5444
5445 2001-07-17  H.J. Lu <hjl@gnu.org>
5446             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5447
5448         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
5449         ASM_OUTPUT_WEAK_ALIAS are defined.
5450         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
5451         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
5452         Moved ...
5453         * config/mips/iris5.h: ... here.
5454         (HANDLE_SYSV_PRAGMA): Defined as 1.
5455         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
5456         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
5457         symbol.
5458
5459 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
5460
5461         * c-parse.in (all_prefix_attributes): New variable.
5462         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
5463         (maybe_resetattrs): New production.
5464         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
5465         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
5466         notype_initdcl, nested_function, notype_nested_function,
5467         component_decl, components, components_notype,
5468         component_declarator, component_notype_declarator,
5469         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
5470         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
5471         after a comma being applied to more than one declarator.
5472         * doc/extend.texi (Attribute Syntax): Update.  Remove
5473         documentation of bugs that are no longer present.
5474
5475 2001-07-13  Eric Christopher  <echristo@redhat.com>
5476
5477         * config/mips/mips.h: Change TUNE_MIPS* options to use
5478         mips_tune.
5479         (EXTRA_SPECS): Add cc1_cpu_spec.
5480         * config/mips/mips.md (muldf3): Fix typo.
5481
5482 2001-07-16  Richard Henderson  <rth@redhat.com>
5483
5484         * config/m68k/m68k.c: Include expr.h and reload.h.
5485         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
5486         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
5487
5488 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
5489             Richard Henderson  <rth@redhat.com>
5490
5491         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
5492         (insn_live_p): Fix fall off end of function.
5493         (dead_libcall_p): Remove COUNTS argument; update callers.
5494         (delete_trivially_dead_insns): Remove unused variables.
5495
5496 2001-07-17  Andreas Jaeger  <aj@suse.de>
5497
5498         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
5499         x86-64 pic support.
5500
5501         * lcm.c (optimize_mode_switching): Avoid warning for unused
5502         variable if !NORMAL_MODE.
5503
5504         * flow.c (try_crossjump_to_edge): Remove unused variable.
5505
5506 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5507
5508         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
5509         atexit declaration in stdlib.h.
5510
5511 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
5512
5513         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
5514
5515 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
5516
5517         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
5518         * except.c (finish_eh_generation): Update call of cleanup_cfg;
5519         do rebuild_jump_labels instead of jump_optimize
5520         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5521         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
5522         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
5523
5524         * flow.c: Include timevar.h
5525         (find_basic_block): Push/pop timevar;
5526         (cleanup_cfg): Likewise.
5527         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
5528         * Makefile: Add dependencies on timevar.h
5529
5530         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
5531         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
5532
5533         * rtl.h (delete_trivially_dead_insns): Add new parameter.
5534         * toplev.c (rest_of_compilation): Update calls.
5535         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
5536         (delete_trivially_dead_insns): ... here; accept new argument
5537         preserve_basic_blocks; preserve basic blocks if set.
5538
5539         * reg-stack.c (stack_regs_mentioned): Return 0 if
5540         stack_regs_mentioned_data is not initialized.
5541         (reg_to_stack): Make stack_regs_mentioned survive after the
5542         reg-stack is completted; do not call cleanup_cfg.
5543         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
5544         make cleanup_cfg after bb-reorder to output to debug file.
5545
5546 2001-07-16  Richard Henderson  <rth@redhat.com>
5547
5548         * regclass.c (init_reg_sets): Use only 32 bits per initializer
5549         from int_reg_class_contents.
5550
5551 2001-07-16  Richard Henderson  <rth@redhat.com>
5552
5553         * hard-reg-set.h (regs_invalidated_by_call): Declare.
5554         * regclass.c (regs_invalidated_by_call): Move from cse.c.
5555         (init_reg_sets_1): Move initialization from cse_main.
5556         * cse.c (regs_invalidated_by_call): Move to regclass.c.
5557         (cse_main): Move its initialization also.
5558         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
5559         * flow.c (propagate_one_insn): Likewise.
5560         * gcse.c (compute_hash_table): Likewise.
5561         (compute_kill_rd, compute_store_table): Likewise.
5562         * sched-deps.c (sched_analyze_1): Likewise.
5563
5564 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
5565
5566         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
5567         gen_rtx_SET.
5568
5569 2001-07-16  Steve Ellcey <sje@cup.hp.com>
5570
5571         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
5572         in if statement so we don't access undefined memory.
5573
5574 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
5575
5576         * gcse.c: Update comment at top.
5577         Update comment on mem handling.
5578         mem_last_set, mem_first_set, mem_set_in_block: gone.
5579         Declaration of reg_set_info: gone.
5580         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
5581         pointless with load_killed_in_block_p (they are *more*
5582         conservative then it, not less, and less accurate).
5583         (oprs_not_set_p): Ditto.
5584         (alloc_gcse_mem): Don't allocate mem_set_in_block
5585         (free_gcse_mem): Don't free it, either.
5586         (record_last_mem_set_info): Update comment in front, remove
5587         mem_*set_* stuff. Note the reason we don't handle stores directly
5588         here.
5589         (compute_hash_table): Update comments to reflect reality. Remove
5590         mem_*set_* references.
5591         (reset_opr_set_tables): Remove mem_*set_* references.
5592         (mark_call): Ditto.
5593         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
5594         (mark_clobber): Ditto (on both parts, we double set here too).
5595         (expr_killed_p): Remove mem_set_in_block test.
5596         (compute_transp): Remove mem_set_in_block test.
5597
5598         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5599         of edge, and removal of phi alternative to dump file.
5600         (ssa_ccp_substitute_constants): Add note about register now being
5601         constant, and which uses were replaced in what insns to dump file.
5602
5603 2001-07-16  Andreas Jaeger  <aj@suse.de>
5604
5605         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5606         variables of type HOST_WIDEST_INT.
5607
5608         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5609         (__bb_exit_func): Correct type of count_max to avoid overflow.
5610         (num_digits): Handle long long argument.
5611
5612         * combine.c (gen_lowpart_for_combine): Remove unused variable.
5613
5614 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
5615
5616         * output.h (sdb_begin_function_line): Restore as an extern
5617         variable.
5618         * sdbout.c (sdb_begin_function_line): Make extern.
5619
5620 2001-07-15  Richard Henderson  <rth@redhat.com>
5621
5622         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5623         * genrecog.c (maybe_both_true_mode): New.
5624         (maybe_both_true_2): Use it.
5625         (write_switch): Don't put Pmode in a switch.
5626         * rtl.c (mode arrays): Don't explicitly size them.
5627
5628 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
5629
5630         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5631         handling; move unconditional splitting before mode switching.
5632
5633         * i386.md (type): Add fistp type.
5634         (i387, length_attr, scheduling definitions): Handle this type.
5635         (fix_trunc?f?i2): Revamp to use mode switching.
5636         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5637         * i386.h (fp_cw_mode): New enum
5638         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5639         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5640
5641 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5642
5643         * Makefile.in (integrate.o): Add debug.h.
5644         * integrate.c (debug.h): Add.
5645         (output_inline_function): Save, reset, and restore debug_hooks.
5646
5647 2001-07-15  Richard Henderson  <rth@redhat.com>
5648
5649         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5650         instead of COMPARE for the EQUIV expression.
5651
5652 2001-07-15  Richard Henderson  <rth@redhat.com>
5653
5654         * flow.c (redirect_edge_and_branch_force): Initialize
5655         global_live_at_start and global_live_at_end.
5656         (allocate_bb_life_data): Export.
5657         * basic-block.h (allocate_bb_life_data): Declare.
5658         * toplev.c (rest_of_compilation): Call it.
5659
5660 2001-07-15  Richard Henderson  <rth@redhat.com>
5661
5662         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5663         (alpha_tablejump_best_label): New.
5664         * config/alpha/alpha-protos.h: Declare them.
5665         * config/alpha/alpha.md: Use braced strings for code blocks.
5666         (tablejump_osf): Break out add with r29.
5667         (tablejump_osf_internal): Remove.
5668         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5669         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5670
5671 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5672
5673         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5674         of the movable.
5675
5676         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5677
5678         * i386-protos.h (ix86_split_fp_branch): Update prototype.
5679         (ix86_fp_jump_nontrivial_p): New.
5680         * i386.md (fp_jcc_?): Update call of split_fp_branch;
5681         use ix86_fp_jump_nontrivial_p.
5682         * i386.c (ix86_fp_jump_nontrivial_p): New.
5683         (ix86_split_fp_branch): Accept code instead of rtx.
5684         (ix86_expand_compare): Expand comparison early in case
5685         doing so is resonably cheap.
5686
5687 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
5688
5689         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
5690         not 'machine'.
5691         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
5692         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
5693
5694 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5695
5696         * dbxout.c (dbxout_source_line): Make static, update prototype.
5697         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
5698         (dbxout_init, dbxout_finish, dbxout_source_line,
5699         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
5700         * dbxout.h (dbxout_source_line): Delete.
5701         * debug.c (debug_nothing_file, debug_nothing_file_int,
5702         debug_nothing_file_charstar_rtx): New.
5703         (do_nothing_debug_hooks): Update.
5704         (debug_nothing_void, debug_nothing_charstar_rtx,
5705         dwarf2out_end_epilogue): New.
5706         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5707         * debug.h (struct rtx_def): Declare.
5708         (gcc_debug_hooks): New hooks source_line, end_epilogue
5709         and end_function.
5710         (debug_nothing_void, debug_nothing_charstar_rtx,
5711         dwarf2out_end_epilogue): New.
5712         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5713         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
5714         (dwarf2_debug_hooks): Update.
5715         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
5716         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
5717         * dwarf2out.h (dwarf2out_source_line): Remove.
5718         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
5719         Make static, update prototype.
5720         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
5721         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
5722         (dwarf_debug_hooks): Update.
5723         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
5724         dwarfout_end_function): Remove.
5725         * final.c (profile_function): Use debug hooks for ending functions
5726         and epilogues.
5727         (output_source_line, final_end_function): Update prototype,
5728         use debug hooks.
5729         (final_start_function, final_scan_insn): Update.
5730         * output.h (sdb_begin_function_line): Remove.
5731         (final_end_function): Update prototype.
5732         * sdbout.c (sdb_begin_function_line): Make static.
5733         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
5734         (sdbout_source_line): New.
5735         (sdbout_end_epilogue, sdbout_end_function): Make static, update
5736         prototypes.
5737         (sdb_debug_hooks): Update.
5738         (sdbout_init, sdbout_source_line,
5739         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
5740         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
5741         * toplev.c (compile_file, rest_of_compilation): Update.
5742         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
5743         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
5744         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
5745         Update for prototype changes.
5746         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
5747         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
5748
5749 2001-07-15  Richard Henderson  <rth@redhat.com>
5750
5751         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
5752         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
5753         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
5754         * config/alpha/alpha.c: Likewise.
5755         * config/alpha/alpha.md: Likewise.
5756         * config/alpha/alpha32.h: Likewise.
5757         * config/alpha/vms.h: Likewise.
5758         (OPEN_VMS): Remove.
5759
5760 2001-07-14  Richard Henderson  <rth@redhat.com>
5761
5762         * config/alpha/alpha.md: Use define_constants for unspec values.
5763         Substitute throughout.
5764
5765 2001-07-14  Tim Josling  <tej@melbpc.org.au>
5766
5767         * tree.def (EXPON_EXPR) remove. Never supported anyway.
5768
5769 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5770
5771         * pa.md: Remove unused constraints from define_split's.
5772
5773 2001-04-14  Richard Henderson  <rth@redhat.com>
5774
5775         * ifcvt.c (find_cond_trap): Test for exit block.
5776
5777 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
5778
5779         Re-install recently reverted patch.
5780         * emit-rtl.c (try_split): Update mark_jump_label call.
5781         * flow.c (find_sub_basic_blocks): Likewise.
5782         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5783         jump_back_p): Kill.
5784         (mark_all_labels): Kill second parameter.
5785         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5786         (rebuild_jump_labels, jump_optimize_minimal): Update call
5787         of jump_optimize_1.
5788         (jump_optimize_1): Kill crossjumping code.
5789         (mark_jump_label): Kill cross_jump parameter.
5790         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5791         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5792         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5793          splitting.
5794         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5795         DFI_bpro.
5796         (dump_file_info): Likewise.
5797         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5798         reorganize passes to do reg-stack first, bb-reorder second.
5799         * invoke.texi (-d letters doc): Remove the jump2 pass.
5800
5801 2001-07-14  Richard Henderson  <rth@redhat.com>
5802
5803         * ifcvt.c (find_cond_trap): New.
5804         (find_if_header): Call it.
5805         (merge_if_block): Relax existing jump sanity check.
5806         * jump.c (jump_optimize_1): Remove conditional trap handling.
5807
5808 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
5809
5810         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
5811         millicode.
5812         (insn_refs_are_delayed): Correct comment.
5813         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
5814         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
5815         instead of r31.  Make associated insn !TARGET_64BIT, and
5816         provide an additional 64-bit insn that clobbers r2.
5817         (divsi3): Likewise.
5818         (udivsi3): Likewise.
5819         (modsi3): Likewise.
5820         (umodsi3): Likewise.
5821
5822 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
5823
5824         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
5825
5826         * flow.c (redirect_edge_and_branch_force, split_edge,
5827         try_crossjump_to_edge): Use set_block_for_new_insns.
5828         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
5829
5830 2001-07-13  H.J. Lu  (hjl@gnu.org)
5831
5832         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
5833         the correct patch.
5834
5835 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
5836
5837         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
5838
5839 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
5840
5841         * c-common.c (decl_attributes): Take a pointer to the node to
5842         which attributes are to be attached, and a flags argument.
5843         * c-common.h (enum attribute_flags): New.
5844         (decl_attributes): Update prototype.
5845         * c-decl.c (start_decl, push_parm_decl, finish_struct,
5846         finish_enum, start_function): Update calls to decl_attributes.
5847         * c-parse.in (component_declarator, component_notype_declarator,
5848         label): Update calls to decl_attributes.
5849
5850 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
5851
5852         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
5853         * config/avr/avr.c (legitimate_address_p): Return value changed
5854         from letter to register classes. For better debugging.
5855
5856 2001-07-13  Kazu Hirata  <kazu@hxi.com>
5857
5858         * jump.c (reversed_comparison_code_parts): Fix comment typos.
5859
5860 2001-07-13  H.J. Lu  (hjl@gnu.org)
5861
5862         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
5863
5864 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
5865
5866         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
5867         correctly for shared configurations.
5868         * config/t-libgcc-pic:  New.
5869         * config/{i386,m68k,sparc}/t-openbsd:  New.
5870         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
5871         Support -shared.  Support debugging libraries with -g.
5872         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
5873         frame information does not emit pointer diffs.
5874         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
5875         emit pointer diffs.
5876
5877 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
5878
5879         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
5880
5881 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
5882
5883         * combine.c (try_combine): Ensure const_int pow2 is positive.
5884
5885 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
5886
5887         * config.gcc: Add configuration for s/390.
5888         * config/s390/s390.c: New. Subroutines for code generation.
5889         * config/s390/s390.h: New. Definitions for s/390.
5890         * config/s390/s390-protos.h: New. Prototypes.
5891         * config/s390/linux.h: New. Definitions for linux for s/390.
5892         * config/s390/linux64.h: New. Definitions for linux for zSeries.
5893         * config/s390/t-linux: New. Makefile fragment.
5894         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
5895         * config/s390/fixdfdi.h: New. Fix L_fix*di.
5896
5897 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
5898
5899         * emit-rtl.c (try_split): Update mark_jump_label call.
5900         * flow.c (find_sub_basic_blocks): Likewise.
5901         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5902         jump_back_p): Kill.
5903         (mark_all_labels): Kill second parameter.
5904         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5905         (rebuild_jump_labels, jump_optimize_minimal): Update call
5906         of jump_optimize_1.
5907         (jump_optimize_1): Kill crossjumping code.
5908         (mark_jump_label): Kill cross_jump parameter.
5909         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5910         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5911         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5912          splitting.
5913         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5914         DFI_bpro.
5915         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5916         reorganize passes to do reg-stack first, bb-reorder second.
5917         * invoke.texi (-d letters doc): Remove the jump2 pass.
5918
5919 2001-07-12  Steve Ellcey <sje@cup.hp.com>
5920
5921         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
5922
5923 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5924
5925         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
5926         basic blocks.
5927         (verify_flow_info): Make diagnostics prettier.
5928
5929 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
5930
5931         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
5932
5933         * flow.c (outgoing_edges_match): Return early if condition reversal
5934         failed.
5935
5936 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
5937
5938         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
5939         (mips_move_2words): When splitting a move into two instructions,
5940         prefix the second address operand with '%D'.
5941
5942 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5943
5944         * Makefile.in (final.o): Depend on debug.h.
5945         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
5946         (dbx_debug_hooks): Add new hooks.
5947         (xcoff_debug_hooks): New.
5948         * debug.c (debug_nothing_file_int_int): New.
5949         (do_nothing_debug_hooks): Update.
5950         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
5951         (debug_nothing_file_int_int): New.
5952         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
5953         static, update prototype.
5954         (dwarf2_debug_hooks): Update.
5955         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
5956         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
5957         static, update prototype.
5958         (dwarf_debug_hooks): Update.
5959         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
5960         * final.c: Include debug.h.
5961         (final_scan_insn): Use debug hooks when beginning and ending blocks.
5962         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
5963         static, update prototype.
5964         (sdb_debug_hooks): Update.
5965         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
5966         * toplev.c: Distinguish between xcoff and dbx.
5967
5968         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
5969         Call all debug hooks, not just dwarf ones.
5970
5971 2001-07-11  Timothy Wall  <twall@redhat.com>
5972
5973         * config.gcc: Add configuration for AIX5/IA64.
5974         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
5975         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
5976         support prefix/suffix code.
5977         * config/ia64/t-aix: New.  Makefile fragment.
5978         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
5979
5980 2001-07-11  Kazu Hirata  <kazu@hxi.com>
5981
5982         * recog.c (validate_change): Fix a comment typo.
5983
5984 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5985
5986         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
5987         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
5988         hooks directly.
5989         * dbxout.c (dbx_debug_hooks): Add new hooks.
5990         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
5991         make static.
5992         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
5993         make static.
5994         * dbxout.h (dbxout_start_new_source_file,
5995         dbxout_resume_previous_source_file): Delete.
5996         * debug.c (do_nothing_debug_hooks): Add new hooks.
5997         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5998         (debug_nothing_int_charstar, debug_nothing_int): New.
5999         * debug.h (gcc_debug_hooks): New hooks define, undef,
6000         start_source_file and end_source_file.
6001         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
6002         (debug_nothing_int_charstar, debug_nothing_int): New.
6003         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
6004         the conditionally compiled section.
6005         (dwarf2out_start_source_file, dwarf2out_end_source_file,
6006         dwarf2out_define, dwarf2out_undef): Make static.
6007         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
6008         dwarf2out_define, dwarf2out_undef): Remove.
6009         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
6010         (dwarfout_start_source_file, dwarfout_end_source_file,
6011         dwarfout_define, dwarfout_undef): Make static.
6012         (dwarfout_start_source_file_check,
6013         dwarfout_end_source_file_check): New.
6014         (dwarfout_define, dwarfout_finish): Update.
6015         * dwarfout.h (dwarfout_start_new_source_file,
6016         dwarfout_resume_previous_source_file, dwarfout_define,
6017         dwarfout_undef): Remove.
6018         * sdbout.c (sdb_debug_hooks): Add new hooks.
6019         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
6020         make static.
6021         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
6022         make static, take an arg.
6023         * sdbout.h (sdbout_start_new_source_file,
6024         sdbout_resume_previous_source_file): Delete.
6025         * toplev.c (debug_start_source_file, debug_end_source_file,
6026         debug_define, debug_undef): Delete.
6027         * toplev.h (debug_start_source_file, debug_end_source_file,
6028         debug_define, debug_undef): Delete.
6029
6030         * java/jcf-parse.c: Include debug.h.
6031         (parse_class_file): Update to use debug hooks directly.
6032         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
6033
6034 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6035
6036         * alias.c (set_mem_alias_set): New function.
6037         * rtl.h (set_mem_alias_set): Declare it.
6038         * builtins.c (expand_builtin_return_addr): Call it instead of
6039         using MEM_ALIAS_SET accessor.
6040         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
6041         (get_memory_rtx, expand_builtin_va_arg): Likewise.
6042         (expand_builtin_va_copy):Likewise.
6043         * caller-save.c (setup_save_areas): Likewise.
6044         * calls.c (compute_argument_addresses): Likewise.
6045         * explow.c (set_mem_attributes): Likewise.
6046         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
6047         (expand_assignment, store_constructor_field, store_field): Likewise.
6048         (expand_expr_unaligned): Likewise.
6049         * function.c (assign_stack_temp_for_type): Likewise.
6050         (put_reg_into_stack, gen_mem_addressof): Likewise.
6051         * ifcvt.c (noce_try_cmove_arith): Likewise.
6052         * reload1.c (reload, alter_reg): Likewise.
6053         * config/alpha/alpha.c (get_aligned_mem): Likewise.
6054         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
6055         (alpha_expand_unaligned_store): Likewise
6056         (alpha_expand_unaligned_load_words): Likewise.
6057         (alpha_expand_unaligned_store_words): Likewise.
6058         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
6059         (alpha_expand_epilogue): Likewise.
6060         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6061         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
6062         * config/i386/i386.c (legitimize_pic_address): Likewise.
6063         * config/i960/i960.c (setup_incoming_varargs): Likewise.
6064         * config/ia64/ia64.c (spill_restore_mem): Likewise.
6065         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6066         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
6067         * config/mips/mips.c (mips_va_arg): Likewise.
6068         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6069         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6070         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6071         (setup_incoming_varargs, rs6000_va_arg): Likewise.
6072         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
6073         (rs6000_emit_epilogue): Likewise.
6074         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6075         * config/sparc/sparc.c (sparc_va_arg): Likewise.
6076         * config/v850/v850.c (v850_va_arg): Likewise.
6077
6078 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
6079
6080         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
6081         when fallthru edge is present.
6082         (mege_blocks): Handle case where creation of jump insn
6083         is required.
6084
6085         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
6086         CLEANUP_POST_REGSTACK): New constants.
6087         * except.c (finish_eh_generation): Update call of cleanup_cfg,
6088         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
6089         * output.h (cleanup_cfg): Update prototype.
6090         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
6091         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
6092         cleanup_cfg call; kill missleading comment.
6093         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
6094         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
6095         parameter; control optimizations performed using it.
6096         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
6097         try_crossjump_bb): New functions.
6098
6099 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6100
6101         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
6102         extern.
6103         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
6104         pa_output_function_prologue.
6105         * pa-protos.h (pa_output_function_prologue): New prototype.
6106
6107 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6108
6109         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
6110         and low to get correct sign extension in low+high test.
6111
6112 2001-07-11  Janis Johnson <janis@us.ibm.com>
6113
6114         * gcov.c (arcdata): Use gcov_type to fix branch percentage
6115         for large hit count.
6116
6117         * profile.c (branch_prob): Fix .bbg info for computed gotos
6118         and C++ EH code.
6119
6120 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
6121
6122         * stmt.c (parse_output_constraint): New function, split out
6123         from ...
6124         (expand_asm_operands): ... here.  Use parse_output_constraint.
6125         * tree.h (parse_output_constraint): Declare it.
6126
6127 2001-07-11  Richard Henderson  <rth@redhat.com>
6128
6129         * bitmap.c: Comment some functions; fiddle whitespace.
6130         (bitmap_free): Don't export.
6131         (bitmap_element_allocate): Use memset.
6132         * bitmap.h (bitmap_free): Don't declare.
6133
6134 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
6135
6136         * gcse.c, lcm.c, sched-deps.c:
6137         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
6138
6139         * flow.c (flow_loops_find): Free dom if we found no loops, since
6140         we aren't going to save it.
6141
6142         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
6143         done.
6144
6145 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
6146
6147         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
6148
6149 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6150
6151         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
6152         #ifndef DWARF2_DEBUGGING_INFO.
6153
6154 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
6155
6156         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
6157
6158 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
6159
6160         * config/mips/mips.c (gen_int_relational): Tell the caller not to
6161         reverse a branch if a NE comparison is implemented with GTU.
6162
6163 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
6164             H.J. Lu  <hjl@gnu.org>
6165
6166         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
6167         constant addresses.
6168         (call_internal2): Likewise.
6169         (call_value_internal1): Likewise.
6170         (call_value_internal2): Likewise.
6171         (call_value_multiple_internal1): Likewise.
6172         (call_value_multiple_internal2): Likewise.
6173
6174 2001-07-10  Kazu Hirata  <kazu@hxi.com>
6175
6176         * calls.c (emit_library_call_value_1): Fix a comment typo.
6177         * dwarf2out.c (mem_loc_descriptor): Likewise.
6178         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
6179
6180 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
6181
6182         * simplify-rtx.c (simplify_subreg): Fix typo in comment
6183
6184 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6185
6186         * recog.c (offsettable_address_p): Handle LO_SUM case.
6187         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
6188         instead of plus_constant.
6189
6190 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6191
6192         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
6193         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
6194
6195 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6196
6197         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
6198         adjust_address_nv instead of plus_constant.
6199
6200 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
6201
6202         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
6203         dwarf2out.o): Depend on debug.h, wrap long lines.
6204         * dbxout.c: Include debug.h.
6205         (dbx_debug_hooks): New.
6206         (dbxout_init): Make static, take just 2 args.
6207         (dbxout_finish): Make static.
6208         * dbxout.h (dbxout_init, dbxout_finish): Delete.
6209         * debug.c: New file.
6210         * debug.h: New file.
6211         * dwarf2out.c: Include debug.h.
6212         (dwarf2_debug_hooks): New.
6213         (dwarf2out_init): Make static.
6214         (dwarf2out_finish): Make static, take 2 args.
6215         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
6216         * dwarfout.c: Include debug.h.
6217         (dwarf_debug_hooks): New.
6218         (dwarfout_init): Make static.
6219         (dwarfout_finish): Make static, take 2 args.
6220         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
6221         * sdbout.c: Include debug.h.
6222         (sdb_debug_hooks): New.
6223         (sdbout_init): Make static, take 2 args.
6224         * sdbout.h (sdbout_init): Delete.
6225         * toplev.c: Include debug.h.
6226         (debug_hooks): New.
6227         (compile_file): Set deubg_hooks based on command line options.
6228         Use the hooks unconditionally rather than conditional compilation.
6229
6230 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
6231
6232         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
6233         first_insn_after_basic_block_note instead.
6234
6235         * df.c (df_bb_refs_unlink): #if 0 out for now.
6236
6237 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
6238
6239         * ssa.h: Add prototype for ssa_const_prop
6240         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
6241         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
6242         (ssa_fast_dce): Remove unused variable
6243
6244 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6245
6246         * diagnostic.c (finish_diagnostic): Rename to
6247         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
6248         calls thourghout.
6249
6250 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
6251
6252         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
6253         .loc support.
6254
6255         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
6256         (dump_file): Only pad the demangled name with spaces if the
6257         mangled name was padded with spaces.
6258
6259 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
6260
6261         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
6262         edge detection.
6263
6264 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6265
6266         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
6267         extraction if no direct load if either EXPAND_CONST_ADDRESS or
6268         EXPAND_INITIALIZER.
6269
6270         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
6271         whether can put offset inside LO_SUM to check mode alignment, not size.
6272
6273 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6274
6275         * doc/tm.texi (Misc): Fix thinko.
6276
6277 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
6278
6279         * regmove.c (replace_in_call_usage): Fix warnings.
6280         * sched-deps.c (add_dependence): Fix warnings.
6281         * simplify-rtx.c (simplify_subreg): Likewise.
6282         Return NULL_RTX instead of NULL.
6283
6284         * reg-stack.c (emit_swap_insn): Eliminate warnings.
6285         (subst_asm_stack_regs): Likewise.
6286
6287         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
6288         warnings.
6289
6290         * dwarf2out.c (output_call_frame_info): Declare i as int.
6291         (build_abbrev_table): Declare n_alloc as int.
6292         (dwarf2out_finish): Initialize die.
6293         * except.c: Declare sjlj_funcdef_number as unsigned.
6294         (connect_post_landing_pads): Declare j as unsigned.
6295         (convert_to_eh_region_ranges): Initialize call_site.
6296         (output_function_exception_table): Initialize tt_format_size.
6297         * expr.c (move_by_pieces_1): Initialize to1.
6298         (store_constructor): Initialize minelt and maxelt.
6299         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
6300         * function.c (instantiate_decls): Avoid signed/unsigned warning.
6301
6302         * c-decl.c (combine_parm_decls): Unused, remove.
6303         * c-tree.h: Remove prototype for combine_parm_decls.
6304
6305         * reload.c (push_reload): Fix warning.
6306         (regno_clobbered_p): Likewise.
6307         * reload1.c (replace_pseudos_in_call_usage): Likewise.
6308         (reload_combine): Likewise.
6309
6310         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
6311         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
6312         warnings.
6313         * bitmap.c (bitmap_operation): Change user.
6314         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6315
6316 2001-07-10  Eric Christopher  <echristo@redhat.com>
6317
6318         * config/mips/mips.c (override_options): Fix typo.
6319
6320 2001-07-09  Stan Shebs  <shebs@apple.com>
6321
6322         * target.h (struct gcc_target): New fields init_builtins and
6323         expand_builtin.
6324         * target-def.h (TARGET_INIT_BUILTINS): New macro.
6325         (TARGET_EXPAND_BUILTIN): New macro.
6326         (TARGET_INITIALIZER): Add them.
6327         * builtins.c: Include target.h.
6328         (expand_builtin): Use targetm.expand_builtin.
6329         (default_init_builtins): New function.
6330         (default_expand_builtin): New function.
6331         * expr.h (default_init_builtins): Declare.
6332         (default_expand_builtin): Declare.
6333         * c-common.c (c_common_nodes_and_builtins): Use
6334         targetm.init_builtins.
6335         * defaults.h (MD_INIT_BUILTINS): Remove.
6336         * Makefile.in (builtins.o): Depend on target.h.
6337
6338         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
6339         (TARGET_EXPAND_BUILTIN): Define.
6340         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
6341         (MD_EXPAND_BUILTIN): Remove.
6342
6343         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
6344         (TARGET_EXPAND_BUILTIN): Define.
6345         (c4x_init_builtins): Make endlink arg a local.
6346         (c4x_print_operand): Fix typos in adjust_address usages.
6347         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
6348         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
6349         (MD_EXPAND_BUILTIN): Remove.
6350
6351         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
6352         (TARGET_EXPAND_BUILTIN): Define.
6353         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
6354         (ix86_init_builtins): Call new function only if TARGET_MMX.
6355         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
6356         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
6357         (MD_EXPAND_BUILTIN): Remove.
6358
6359         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
6360         (TARGET_EXPAND_BUILTIN): Define.
6361         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
6362         (MD_EXPAND_BUILTIN): Remove.
6363
6364         * doc/tm.texi: Document these changes.
6365
6366 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
6367
6368         * basic-block.h (tree_node): Forward declare if needed.
6369         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
6370         (BLOCK_HEAD_TREE): Define.
6371         (BLOCK_END_TREE): Define.
6372         (struct loops): Rename field 'tree' to 'tree_root'.
6373         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
6374         'end_tree'.
6375         (flow_loops_tree_build): Rename reference to field 'tree' to
6376         'tree_root'.
6377         (flow_loops_level_compute): Ditto.
6378         * predict.c (estimate_bb_frequencies): Ditto.
6379         * tree.h (struct tree_common): Add field 'aux'.
6380
6381 2001-07-09  Stan Shebs  <shebs@apple.com>
6382
6383         * config/darwin.c (darwin_encode_section_info): Don't mark any
6384         DECL_EXTERNAL node as defined.
6385
6386 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6387
6388         * pa.c (pa_init_machine_status, pa_mark_machine_status,
6389         pa_free_machine_status, hppa_init_pic_save): Delete.
6390         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
6391         (hppa_profile_hook): Use hppa_pic_save_rtx.
6392         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
6393         hppa_init_pic_save): Delete.
6394         (hppa_pic_save_rtx): Declare.
6395         * pa.md (call, call_value, sibcall, sibcall_value,
6396         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
6397
6398 2001-07-09  Kazu Hirata  <kazu@hxi.com>
6399
6400         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
6401         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
6402
6403 2001-07-09  Andreas Jaeger  <aj@suse.de>
6404
6405         * output.h: Add declaration of final_forward_branch_p.
6406
6407         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
6408
6409         * varray.c: Include errors.h for internal_error and trim_filename
6410         declarations.
6411
6412         * Makefile.in (varray.o): Add errors.h.
6413
6414 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
6415
6416         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
6417         * optabs.c (have_add2_insn): Check whether the add insn chosen
6418         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
6419         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
6420
6421 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
6422
6423         * Makefile.in (OBJS): Add ssa-ccp.o
6424         (ssa-ccp.o): Add dependencies.
6425         * toplev.c (DFI_ssa_ccp): New dump file enum.
6426         (dump_file): Add entry for dumping after SSA CCP.
6427         (flag_ssa_ccp): New flag variable.
6428         (f_options): Add -fssa-ccp.
6429         (rest_of_compilation): Run SSA CCP if requested.
6430         * timevar.def (TV_SSA_CCP): New timevar.
6431         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
6432         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
6433         Fix minor typo in SSA DCE documentation.
6434         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
6435         Add documentation for new dump option.  Renumber dump files
6436         appropriately.
6437
6438 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
6439
6440         * emit-rtl.c (gen_highpart_mode): New.
6441         * rtl.h (gen_highpart_mode): Declare.
6442         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
6443         operand can be VOIDmode constant.
6444
6445 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
6446
6447         * flow.c (redirect_edge_and_branch_force): New.
6448         (can_fallthru): Ensure that basic blocks are succeeding.
6449         (try_optimize_cfg): Do not delete basic block if it is the last one.
6450
6451         * flow.c (try_redirect_by_replacing_jump): Do not remove
6452         jumps with side effects, unlink chain on fallthru edge;
6453         set block for new jump instruction; avoid basic block to
6454         over by line number note.
6455
6456         * flow.c (try_simplify_condjump): Verify that the condjump
6457         is not always falling trought.
6458
6459         Re-install patch:
6460         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6461
6462         * flow.c (forwarder_block_p): Fix for fallthru blocks.
6463         (try_redirect_by_replacing_jump): Update properly the count
6464         and frequency information.
6465
6466 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6467
6468         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
6469         address that is a LO_SUM specially.
6470         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
6471
6472         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
6473
6474         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
6475         (operand_subword): Use them.
6476         (change_address_1): Renamed from change_address; new arg VALIDATE.
6477         * expr.h: Reflect above changes; change_address now macro.
6478         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
6479         making MEM.
6480         * cselib.c (add_mem_for_addr): Likewise.
6481         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6482         * regmove.c (try_apply_stack_adjustment): Likewise.
6483         * reload.c (push_reload, make_memloc): Likewise.
6484         * reload1.c (eliminate_regs): Likewise.
6485         * simplify-rtx.c (simplify_replace_rtx): Likewise.
6486         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
6487         adjust_addess.
6488         * combine.c (make_extraction, simplify_shift_const): Likewise.
6489         (gen_lowpart_for_combine): Likewise.
6490         * cse.c (gen_lowpart_if_possible): Likewise.
6491         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6492         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
6493         * optabs.c (gen_move_insn): Likewise.
6494         * reload1.c (alter_reg): Likewise.
6495         * simplify-rtx.c (simplify_subreg): Likewise.
6496         * stmt.c (expand_anon_union_decl): Likewise.
6497         * recog.c (validate_replace_rtx_1): Likewise.
6498         (expr.h): Include.
6499         * Makefile.in (recog.o): Add $(EXPR_H).
6500         * explow.c (stabilize): Call replace_equiv_address.
6501         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
6502         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
6503
6504 2001-07-03  Andrew Haley  <aph@redhat.com>
6505
6506         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
6507         the mode of the memory location.
6508
6509 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
6510
6511         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
6512
6513 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6514
6515         * final.c (output_addr_const): Use target opening and
6516         closing parentheses.
6517         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
6518         defaults, add to TARGET_ASM_OUT.
6519         * target.h (struct gcc_target): Add open_paren and close_paren.
6520         * doc/md.texi: Update.
6521         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
6522         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
6523         TARGET_ASM_CLOSE_PAREN.
6524         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6525         Override.
6526         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6527         Override.
6528         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6529         * config/a29k/a29k.h: Similarly.
6530         * config/alpha/alpha.h: Similarly.
6531         * config/arc/arc.h: Similarly.
6532         * config/arm/aof.h: Similarly.
6533         * config/arm/aout.h: Similarly.
6534         * config/avr/avr.h: Similarly.
6535         * config/c4x/c4x.h: Similarly.
6536         * config/clipper/clipper.h: Similarly.
6537         * config/convex/convex.h: Similarly.
6538         * config/d30v/d30v.h: Similarly.
6539         * config/dsp16xx/dsp16xx.h: Similarly.
6540         * config/elxsi/elxsi.h: Similarly.
6541         * config/fr30/fr30.h: Similarly.
6542         * config/h8300/h8300.h: Similarly.
6543         * config/i370/i370.h: Similarly.
6544         * config/i386/i386.h: Similarly.
6545         * config/i860/i860.h: Similarly.
6546         * config/i960/i960.h: Similarly.
6547         * config/ia64/ia64.h: Similarly.
6548         * config/m32r/m32r.h: Similarly.
6549         * config/m68hc11/m68hc11.h: Similarly.
6550         * config/m68k/m68k.h: Similarly.
6551         * config/m88k/m88k.h: Similarly.
6552         * config/mcore/mcore.h: Similarly.
6553         * config/mips/mips.h: Similarly.
6554         * config/mn10200/mn10200.h: Similarly.
6555         * config/mn10300/mn10300.h: Similarly.
6556         * config/ns32k/ns32k.h: Similarly.
6557         * config/pa/pa.h: Similarly.
6558         * config/pdp11/pdp11.h: Similarly.
6559         * config/pj/pj.h: Similarly.
6560         * config/romp/romp.h: Similarly.
6561         * config/rs6000/rs6000.h: Similarly.
6562         * config/sh/sh.h: Similarly.
6563         * config/sparc/sparc.h: Similarly.
6564         * config/v850/v850.h: Similarly.
6565         * config/vax/vax.h: Similarly.
6566         * config/we32k/we32k.h: Similarly.
6567
6568 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6569
6570         * doc/c-tree.texi: Document representation of attributes.
6571
6572 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6573
6574         * doc/tm.texi: Update some places for the rename of target to
6575         targetm.  Fix typo.
6576
6577 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6578
6579         * target.h (struct gcc_target): Add insert_attributes.
6580         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
6581         (TARGET_INITIALIZER): Update.
6582         * tree.c, tree.h (default_insert_attributes): New function.
6583         Update comments on other default functions to refer to targetm,
6584         not target.
6585         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
6586         TARGET_INSERT_ATTRIBUTES.
6587         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
6588         * c-common.c (decl_attributes): Use targetm.insert_attributes.
6589         Don't use PRAGMA_INSERT_ATTRIBUTES.
6590         * Makefile.in (c-common.o): Depend on $(TARGET_H).
6591         * c-decl.c (start_decl, start_function): Don't call
6592         SET_DEFAULT_DECL_ATTRIBUTES.
6593         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6594         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6595         declare.
6596         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6597         (c4x_check_attribute): Avoid modifying attribute list itself.
6598         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6599         Make static.
6600         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6601         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6602         declare.
6603         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6604         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6605         Make static.
6606         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6607         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6608         declare.
6609         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6610         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6611         Adjust parameters.  Make static.
6612
6613 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6614
6615         * c-common.c (decl_attributes): Only take a single attributes
6616         parameter.
6617         * c-common.h (decl_attributes): Update prototype.
6618         * c-decl.c (start_decl, start_function): Only take a single
6619         attributes parameter.  Update calls to decl_attributes.
6620         (finish_struct, finish_enum): Update calls to decl_attributes.
6621         (push_parm_decl): Expect unified list of attributes.  Update call
6622         to decl_attributes.
6623         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6624         notype_nested_function, component_declarator,
6625         component_notype_declarator, label): Update calls to
6626         decl_attributes.
6627         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6628         lists that are passed to push_parm_decl.
6629         * c-tree.h (start_function, start_decl): Update prototypes.
6630         * config/sh/sh-protos.h, config/sh/sh.c
6631         (sh_pragma_insert_attributes): Only take a single attributes
6632         parameter.
6633         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6634         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6635         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6636         build_module_descriptor, generate_static_references,
6637         generate_strings, build_selector_translation_table,
6638         generate_descriptor_table, generate_protocols,
6639         generate_ivars_list, generate_dispatch_table,
6640         generate_protocol_list, generate_category,
6641         generate_shared_structures, really_start_method, add_objc_decls,
6642         generate_classref_translation_entry): Update calls to start_decl
6643         and start_function.
6644         (build_tmp_function_decl, start_method_def): Unify attribute lists
6645         that are passed to push_parm_decl.
6646
6647 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6648
6649         * final.c (no_asm_to_stream): New.
6650         (final_scan_insn): Use target structures for prologue ends
6651         and epilogue starts.
6652         * output.h (no_asm_to_stream): New.
6653         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6654         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6655         (TARGET_ASM_OUT): Update.
6656         * target.h (struct gcc_target): New members function_end_prologue
6657         and function_begin_epilogue.
6658         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6659         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6660         * config/alpha/alpha.c (output_end_prologue): Rename to
6661         alpha_output_function_end_prologue.  Use in target struct
6662         and make static.
6663         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6664         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6665         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6666         ia64_output_function_end_prologue.  Use in target struct
6667         and make static.
6668         (ia64_function_prologue, ia64_funciton_epilogue): Rename
6669         mistyped prototypes.
6670         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6671         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6672         Delete.
6673         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6674         an use in target struct, make static.
6675         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6676         Delete.
6677
6678 2001-07-08  Richard Henderson  <rth@redhat.com>
6679
6680         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6681
6682 2001-07-08  Richard Henderson  <rth@redhat.com>
6683
6684         * config/i386/i386.md: Remove constraints strings from define_split
6685         and define_peephole2 patterns.
6686         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6687         (eh_return): Use them.
6688
6689 2001-07-08  Richard Henderson  <rth@redhat.com>
6690
6691         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
6692         Document MD_FALLBACK_FRAME_STATE_FOR.
6693
6694 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6695
6696         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
6697         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
6698         elimination.
6699         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
6700
6701 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
6702
6703         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
6704         of the label inside NAME as opposed to just the end of NAME.
6705
6706 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6707
6708         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
6709         * config/alpha/alpha.c (alpha_init_machine_status,
6710         alpha_mark_machine_status, alpha_free_machine_status): Delete.
6711         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
6712         (vms_valid_decl_attribute_p): Make static, conditionally compile.
6713         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
6714
6715 2001-07-06  Stan Shebs  <shebs@apple.com>
6716
6717         * target.h (targetm): Rename global from "target", so as not to
6718         conflict with local variables.
6719         * c-decl.c: Ditto.
6720         * c-typeck.c: Ditto.
6721         * final.c: Ditto.
6722         * tree.c: Ditto.
6723         * cp/decl.c: Ditto.
6724         * cp/decl2.c: Ditto.
6725         * cp/typeck.c: Ditto.
6726         * 1750a/1750a.c: Ditto.
6727         * a29k/a29k.c: Ditto.
6728         * arc/arc.c: Ditto.
6729         * arm/arm.c: Ditto.
6730         * avr/avr.c: Ditto.
6731         * clipper/clipper.c: Ditto.
6732         * convex/convex.c: Ditto.
6733         * d30v/d30v.c: Ditto.
6734         * dsp16xx/dsp16xx.c: Ditto.
6735         * elxsi/elxsi.c: Ditto.
6736         * fr30/fr30.c: Ditto.
6737         * h8300/h8300.c: Ditto.
6738         * i370/i370.c: Ditto.
6739         * i386/i386.c: Ditto.
6740         * i860/i860.c: Ditto.
6741         * i960/i960.c: Ditto.
6742         * ia64/ia64.c: Ditto.
6743         * m32r/m32r.c: Ditto.
6744         * m68hc11/m68hc11.c: Ditto.
6745         * m68k/m68k.c: Ditto.
6746         * m88k/m88k.c: Ditto.
6747         * mips/mips.c: Ditto.
6748         * ns32k/ns32k.c: Ditto.
6749         * pa/pa.c: Ditto.
6750         * pdp11/pdp11.c: Ditto.
6751         * romp/romp.c: Ditto.
6752         * rs6000/rs6000.c: Ditto.
6753         * sh/sh.c: Ditto.
6754         * sparc/sparc.c: Ditto.
6755         * vax/vax.c: Ditto.
6756         * we32k/we32k.c: Ditto.
6757         * doc/tm.texi: Update the manual to match.
6758
6759 2001-07-06  Richard Henderson  <rth@redhat.com>
6760
6761         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
6762         DWARF2_UNWIND_INFO not just whether it is defined.
6763
6764 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
6765
6766         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
6767         call to simplify_binary_operation returns a new pattern.
6768
6769 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6770
6771         * glimits.h (__SHRT_MAX__): New.
6772         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
6773         (SHRT_MAX): Define in terms of __SHRT_MAX__.
6774
6775 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
6776
6777         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
6778         avoid warnings.
6779
6780 2001-07-06  Richard Henderson  <rth@redhat.com>
6781
6782         * bitmap.c (bitmap_release_memory): Move adjacent to the
6783         allocation functions.
6784         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
6785         the implementation.  Binary search for the set bit.
6786         (bitmap_union_of_diff): Allocate the temporary on the stack
6787         instead of using xmalloc.
6788
6789 2001-07-06  Richard Henderson  <rth@redhat.com>
6790
6791         * genrecog.c (validate_pattern): Warn for constraints in
6792         define_{expand,split,peephole2}.  Remove strict_low_part
6793         before looking up match_dup.
6794
6795 2001-07-06  DJ Delorie  <dj@redhat.com>
6796
6797         * doc/gcc.texi (Makefile): Rename to be a more general purpose
6798         chapter about various build hints and history.  Add section
6799         talking about the various types of native and cross builds.
6800
6801 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6802
6803         * Makefile.in (final.o): Depend on target.h.
6804         * final.c: Include target.h.
6805         (default_function_pro_epilogue): New.
6806         (final_start_function): Use target structure for function prologues.
6807         (final_end_function): Use target structure for function epilogues.
6808         * fold-const.c (real_hex_to_f): Constify s and p.
6809         * output.h (default_function_pro_epilogue): New.
6810         * real.h (real_hex_to_f): Update prototype.
6811         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
6812         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
6813         (TARGET_INITIALIZER): Update.
6814         * target.h (gcc_target): Add struct asm_out.
6815         * doc/tm.texi: Update.
6816
6817 config:
6818         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
6819         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
6820         in cpu/cpu.c, or rename old functions consistently.  Take
6821         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
6822         redundant macros and prototypes.  Make new functions static.
6823
6824         * 1750a/1750a.c: Similarly.
6825         * 1750a/1750a.h: Similarly.
6826         * a29k/a29k-protos.h: Similarly.
6827         * a29k/a29k.c: Similarly.
6828         * a29k/a29k.h: Similarly.
6829         * arc/arc-protos.h: Similarly.
6830         * arc/arc.c: Similarly.
6831         * arc/arc.h: Similarly.
6832         * arm/arm-protos.h: Similarly.
6833         * arm/arm.c: Similarly.
6834         * arm/arm.h: Similarly.
6835         * avr/avr-protos.h: Similarly.
6836         * avr/avr.c: Similarly.
6837         * avr/avr.h: Similarly.
6838         * clipper/clipper-protos.h: Similarly.
6839         * clipper/clipper.c: Similarly.
6840         * clipper/clipper.h: Similarly.
6841         * convex/convex.c: Similarly.
6842         * convex/convex.h: Similarly.
6843         * d30v/d30v-protos.h: Similarly.
6844         * d30v/d30v.c: Similarly.
6845         * d30v/d30v.h: Similarly.
6846         * d30v/d30v.md: Similarly.
6847         * dsp16xx/dsp16xx-protos.h: Similarly.
6848         * dsp16xx/dsp16xx.c: Similarly.
6849         * dsp16xx/dsp16xx.h: Similarly.
6850         * elxsi/elxsi.c: Similarly.
6851         * elxsi/elxsi.h: Similarly.
6852         * fr30/fr30.c: Similarly.
6853         * fr30/fr30.md: Similarly.
6854         * h8300/h8300-protos.h: Similarly.
6855         * h8300/h8300.c: Similarly.
6856         * h8300/h8300.h: Similarly.
6857         * i370/i370-protos.h: Similarly.
6858         * i370/i370.c: Similarly.
6859         * i370/i370.h: Similarly.
6860         * i386/i386.c: Similarly.
6861         * i386/osf1elf.h: Similarly.
6862         * i386/osfrose.h: Similarly.
6863         * i860/i860-protos.h: Similarly.
6864         * i860/i860.c: Similarly.
6865         * i860/i860.h: Similarly.
6866         * i960/i960-protos.h: Similarly.
6867         * i960/i960.c: Similarly.
6868         * i960/i960.h: Similarly.
6869         * ia64/ia64-protos.h: Similarly.
6870         * ia64/ia64.c: Similarly.
6871         * ia64/ia64.h: Similarly.
6872         * m32r/m32r-protos.h: Similarly.
6873         * m32r/m32r.c: Similarly.
6874         * m32r/m32r.h: Similarly.
6875         * m68hc11/m68hc11-protos.h: Similarly.
6876         * m68hc11/m68hc11.c: Similarly.
6877         * m68hc11/m68hc11.h: Similarly.
6878         * m68k/crds.h: Similarly.
6879         * m68k/dpx2.h: Similarly.
6880         * m68k/m68k-protos.h: Similarly.
6881         * m68k/m68k.c: Similarly.
6882         * m68k/m68k.h: Similarly.
6883         * m68k/news.h: Similarly.
6884         * m88k/m88k-protos.h: Similarly.
6885         * m88k/m88k.c: Similarly.
6886         * m88k/m88k.h: Similarly.
6887         * mips/mips-protos.h: Similarly.
6888         * mips/mips.c: Similarly.
6889         * mips/mips.h: Similarly.
6890         * ns32k/merlin.h: Similarly.
6891         * ns32k/ns32k.c: Similarly.
6892         * ns32k/ns32k.h: Similarly.
6893         * ns32k/tek6000.h: Similarly.
6894         * pa/pa-protos.h: Similarly.
6895         * pa/pa.c: Similarly.
6896         * pa/pa.h: Similarly.
6897         * pdp11/2bsd.h: Similarly.
6898         * pdp11/pdp11-protos.h: Similarly.
6899         * pdp11/pdp11.c: Similarly.
6900         * pdp11/pdp11.h: Similarly.
6901         * romp/romp-protos.h: Similarly.
6902         * romp/romp.c: Similarly.
6903         * romp/romp.h: Similarly.
6904         * rs6000/rs6000-protos.h: Similarly.
6905         * rs6000/rs6000.c: Similarly.
6906         * rs6000/rs6000.h: Similarly.
6907         * rs6000/sysv4.h: Similarly.
6908         * sh/sh-protos.h: Similarly.
6909         * sh/sh.c: Similarly.
6910         * sh/sh.h: Similarly.
6911         * sparc/sparc-protos.h: Similarly.
6912         * sparc/sparc.c: Similarly.
6913         * sparc/sparc.h: Similarly.
6914         * vax/vax.c: Similarly.
6915         * vax/vax.h: Similarly.
6916         * vax/vms.h: Similarly.
6917         * we32k/we32k.c: Similarly.
6918         * we32k/we32k.h: Similarly.
6919
6920 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
6921
6922         * basic-block.h (first_insn_after_basic_block_note): Declare.
6923         * flow.c (first_insn_after_basic_block_note): Define.  Moved
6924         from...
6925         * ssa.c (first_insn_after_basic_block_note): Remove.
6926         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
6927         necessary.
6928         (ssa_eliminate_dead_code): Properly update the CFG and PHI
6929         nodes when we find a dead conditional branch.  Insert BARRIERs
6930         after any blocks with no successors, but which do not have
6931         any BARRIERs.
6932
6933 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
6934
6935         * varray.c (varray_check_failed): Use internal_error.
6936
6937 2001-07-05  Andrew Haley  <aph@redhat.com>
6938
6939         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
6940         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
6941         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
6942
6943 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
6944
6945         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
6946         reference if the target constant is also a SYMBOL_REF.
6947
6948 2001-07-05  Eric Christopher  <echristo@redhat.com>
6949
6950         * config/mips/mips.h (MASK_MIPS3900): Remove.
6951         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
6952         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
6953         (TARGET_MIPS3900): Change to use mips_arch.
6954         (TARGET_MIPS4000): New.
6955         (TARGET_MIPS4100): New.
6956         (TARGET_MIPS4300): New.
6957         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
6958         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
6959         for -mipsX.
6960         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
6961         (ISA_HAS_BRANCHLIKELY): To here.
6962         (CC1_CPU_SPEC):  New.
6963         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
6964         (mips_arch_string): Declare.
6965         (mips_arch): Declare.
6966         (TARGET_OPTIONS): Add -march and -mtune.
6967
6968         * config/mips/mips.c (mips_arch_string): New.
6969         (mips_arch): New.
6970         (override_options): Handle -march for codegen and -mtune
6971         for scheduling. Use mips_arch. Move tx39 target default here.
6972         (mips_parse_cpu): Move error message to override_options.
6973
6974         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
6975
6976         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
6977
6978         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
6979         (MIPS Options): Ditto.  Change mcpu entry to historical text.
6980
6981 2001-07-05  H.J. Lu  (hjl@gnu.org)
6982
6983         * config/mips/mips.c (mips_parse_cpu): New function to parse
6984         -march=*/-mcpu=*.
6985
6986 2001-07-05  Jim Wilson  <wilson@redhat.com>
6987
6988         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
6989         * config/ia64/t-ia64: Likewise.
6990         (LIB1ASMFUNCS): Update comment.
6991
6992 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
6993
6994         * doc/install.texi (Install GCC: Binaries): Fix typo.
6995
6996 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6997
6998         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
6999         reference using the stack pointer, adjust it since we push Y
7000         temporarily.
7001         ("*ashrsi3"): Likewise.
7002         ("*lshrsi3"): Likewise.
7003
7004 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7005
7006         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
7007         when -fomit-frame-pointer is used.
7008
7009 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
7010
7011         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
7012         (try_redirect_by_replacing_jump): Reverse updating properly the
7013         count and frequency information.  Reverse removing cc0 setter.
7014         (forwarder_block_p): Reverse fixing for fallthru blocks.
7015
7016 2001-07-05  DJ Delorie  <dj@redhat.com>
7017
7018         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
7019         (translate_options): If the above is defined, use it to map
7020         given options to new options.
7021         * doc/tm.texi: Document it.
7022
7023 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
7024             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7025
7026         * doc/invoke.texi (Optimize Options): Document that -fgcse may
7027         cause programs using computed gotos to run more slowly.
7028
7029 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7030
7031         * doc/install.texi (Specific): Markup, spelling and typo fixes.
7032         Fixed sorting.
7033         Consistently require binutils 2.11.2, not prereleases.
7034         (Specific, decstation-*): Canonicalize as mips-dec-*.
7035         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
7036         always necessary.
7037         (Specific, m68k-altos): Removed reference to README.altos, deleted.
7038         (Specific, mips-*): Reword MIPS C compiler requirements.
7039         (Specific, powerpc*-*-*): New, mention --with-cpu once.
7040         (Specific, sunv5): Removed, obsolete.
7041
7042 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7043
7044         * dwarf2out.c (output_loc_list): Use an all ones mask for
7045         .text asm output and don't rely on long long
7046         literals. Reformat some long lines.
7047
7048 2001-07-05  Andreas Jaeger  <aj@suse.de>
7049
7050         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
7051         section.
7052
7053 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
7054
7055         * dwarf2out.c (dwarf2out_define): Update comment.
7056         (dwarf2out_undef): Ditto.
7057         (dwarf2out_start_source_file): Ditto.
7058         (dwarf2out_end_source_file): Ditto.
7059         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
7060         since we never call the start/end debug hook for the primary file.
7061
7062 2001-07-04  Kazu Hirata  <kazu@hxi.com>
7063
7064         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
7065         from shll.
7066
7067 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
7068
7069         * cppinit.c (remove_dup_dirs): Inform if a system include
7070         directory is being reordered.
7071         * doc/invoke.texi (Directory Options): GCC warns if you hide a
7072         system include.
7073         * doc/cpp.texi (Search Paths): Likewise.
7074         * doc/gcc.texi (Interoperation): Remove information about
7075         -I/usr/include.
7076
7077 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
7078
7079         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
7080         (VARRAY_TOP_CHAR_PTR): Likewise.
7081
7082 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7083
7084         * gcc.c (process_command): Don't assign elements of a const char*.
7085
7086 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7087
7088         * emit-rtl.c (change_address): Don't abort if invalid address while
7089         reload is in progress.
7090
7091 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
7092
7093         * c-lex.c (cb_file_change): Pass line number to
7094         debug_start_source_file.
7095         (cb_undefine): Pass correct line number to debug_undef.
7096
7097         * toplev.c (debug_start_source_file): Add line number to
7098         parameters. Pass it along to dwarf2out_start_source_file.
7099         (decode_g_option): Stop resetting debug level back to normal when
7100         we change debug formats, unless the current level is
7101         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
7102         3).
7103
7104         * toplev.h (debug_start_source_file): Add line number to
7105         parameters.
7106
7107         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
7108         parameters.
7109
7110         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
7111         parameters.
7112         Output debug_macinfo data for starting file if requested.
7113         (dwarf2out_end_source_file): Output debug_macinfo data for ending
7114         file if requested.
7115         (dwarf2out_define): Output debug_macinfo data for defining a macro
7116         if requested.
7117         (dwarf2out_undef): Output debug_macinfo data for undefining a
7118         macro if requested.
7119         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
7120         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
7121         (macinfo_section_label): New. DWARF2 macro info section label.
7122         (dwarf2out_init): If we want macro info, output the start label
7123         for the section.
7124         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
7125         attribute to the compilation unit die pointing to the macro info.
7126
7127 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
7128
7129         * dwarf2out.c (new_loc_list): Move to inside #ifdef
7130         DWARF2_DEBUGGING_INFO.
7131         (add_loc_descr_to_loc_list): Ditto.
7132         (output_loc_list): Ditto.
7133         Also, fix thinko in curr not being initialized.
7134         (gen_internal_sym): Ditto.
7135
7136 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7137
7138         * emit-rtl.c (replace_equiv_address): New function.
7139         * expr.h (replace_equiv_address): New declaration.
7140         * explow.c (validize_mem): Call it instead of change_address and
7141         also call if -fforce-addr and address is constant.
7142         * expr.c: Replace more calls to change_address with adjust_address
7143         and/or replace_equiv_address or to validize_mem.
7144         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
7145         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
7146         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7147         * config/i370/i370.md, config/i860/i860.md: Likewise.
7148         * config/i960/i960.md, config/mips/mips.c: Likewise.
7149         * config/mips/mips.md, config/pa/pa.md: Likewise.
7150         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
7151         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
7152
7153 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7154
7155         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
7156
7157         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
7158         function.
7159
7160 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7161
7162         * doc/include: New directory.
7163         * doc/fdl.texi: Move to doc/include/fdl.texi.
7164         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
7165         * doc/include/funding.texi, doc/include/gpl.texi: New files.
7166         * doc/gcc.texi: Use funding.texi and gpl.texi.
7167         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
7168         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
7169         Update dependencies and use -I $(docdir)/include.
7170
7171 2001-07-04  Anthony Green  <green@redhat.com>
7172
7173         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
7174
7175 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7176
7177         * doc/install.texi (sparc64-*-*): Remove garbage.
7178
7179 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
7180
7181         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
7182         Fix typo in last change to use adjust_address.
7183
7184 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7185
7186         * doc/install.texi (Specific): Update information for *-*-solaris*.
7187
7188 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7189
7190         * explow.c (plus_constant_wide): Reinitialize Y for restart.
7191
7192 2001-07-03  Stan Shebs  <shebs@apple.com>
7193
7194         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
7195         case for flag_no_mach_text_sections.
7196         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
7197         * config/darwin.c (flag_no_mach_text_sections): Remove.
7198         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
7199
7200 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7201
7202         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
7203         and avoid checking for constant as first operand.
7204         * recog.c (find_constant_term_loc): No longer static.
7205         (adj_offettable_operand): Delete.
7206         * rtl.h (adj_offsettable_operand): Delete declaration.
7207         (find_constant_term): Add declaration.
7208         * caller-save.c: Replace calls to adj_offsettable_operand with calls
7209         to adjust_address.
7210         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
7211         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
7212         * config/i386/i386.c, config/i386/i386.md: Likewise.
7213         * config/i860/i860.c, config/i960/i960.c: Likewise.
7214         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
7215         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
7216         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
7217         * config/mips/mips.c, config/mips/mips.md: Likewise.
7218         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
7219         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
7220         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
7221         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
7222         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
7223         * config/ns32k/ns32k.md: Likewise.
7224
7225 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
7226
7227         * rtl.c (copy_rtx): Handle 'T' format letter.
7228         * gensupport.c (collect_insn_data): Likewise.
7229         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
7230
7231 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
7232
7233         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
7234         -B option.  Use 'dir' not 'foo' as example directory name.
7235
7236 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7237
7238         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7239         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
7240
7241 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
7242
7243         * doc/cppinternals.texi: Improve formatting and logical markup.
7244
7245 2001-07-03  Andreas Jaeger  <aj@suse.de>
7246
7247         * Makefile.in (insn-recog.o): Add dependency on reload.h.
7248
7249         * genrecog.c (write_header): Include reload.h for prototypes in
7250         insn-recog.c.
7251
7252 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7253
7254 config:
7255         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
7256         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7257         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
7258         i386_pe_valid_type_attribute_p): Add.
7259         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
7260         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
7261
7262 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7263
7264         * explow.c (plus_constant_wide, case LO_SUM): New case.
7265         (plus_constant_for_output_wide): Delete.
7266         * rtl.h (plus_constant_for_output): Delete.
7267         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
7268         instead of plus_constant_for_output.
7269         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
7270         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
7271         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
7272         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
7273         * config/sparc/sparc.md: Likewise.
7274         Convert some change_address calls to adjust_address.
7275
7276 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
7277
7278         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
7279         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
7280         documentation of -std and -Wwrite-strings.
7281
7282 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
7283
7284         * cse.c (canon_hash): Don't register registers in very small
7285         register classes, as extending their lifetime might cause
7286         reload to fail.
7287
7288 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
7289
7290         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
7291
7292         * flow.c (forwarder_block_p): Fix for fallthru blocks.
7293         (try_redirect_by_replacing_jump): Update properly the count
7294         and frequency information.
7295
7296 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
7297
7298         * toplev.c (dump_file_index): Move SSA dumps just after first
7299         jump dump.
7300         (dump_file): Corresponding changes.
7301         (rest_of_compilation): Move SSA path to just after the first
7302         jump pass.
7303         * doc/gcc.texi (Passes): Update due to movement of SSA path.
7304         * doc/invoke.texi: Update dump file #s as they were completely
7305         out of date with reality.
7306
7307 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
7308
7309         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
7310
7311         * expr.c (emit_move_insn_1): Deal with non-default
7312         STACK_PUSH_CODE.
7313
7314         * expr.c (emit_single_push_insn): Fix warning.
7315
7316 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
7317
7318         * expr.c (emit_move_insn_1): Avoid modifying
7319         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
7320
7321 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7322
7323         * emit-rtl.c (adjust_address): New function.
7324         * expr.h (adjust_address): Add declaration.
7325         * builtins.c: Replace some calls to change_address with calls to it
7326         or to validize_mem.
7327         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
7328         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
7329         * config/arm/arm.c, config/convex/convex.c: Likewise.
7330         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7331         * config/i386/i386.c, config/i386/i386.md: Likewise.
7332         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
7333         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
7334         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
7335         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
7336         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
7337
7338 2001-07-02  Jim Wilson  <wilson@redhat.com>
7339
7340         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
7341
7342 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
7343
7344         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
7345         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
7346
7347 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
7348
7349         * cppinit.c (lang_defaults): New table.
7350         (set_lang): Just read from lang_defaults into the live options
7351         structure.
7352
7353 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
7354
7355         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
7356         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
7357         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
7358
7359 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7360
7361         * doc/install.texi: Various spelling and markup fixes.
7362         (Installing GCC): Component specific installation instructions are
7363         gone.
7364         Fix reference.
7365         Warn about removing old install dir in the presence of shared libs.
7366         (Configuration): Invoke with options target to match configure
7367         --help.
7368         Consistently refer to gas, gld pathnames.
7369         Invert --enable-multilib documentation.
7370         Remove references to old compiler versions.
7371
7372 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7373
7374         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
7375
7376 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7377
7378         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
7379         section.
7380         (Specific, mips*-sgi-irix5): Note IDO download.
7381         Reworded MIPS C hints.
7382         Use GNU as instead of GAS.
7383         Markup fixes.
7384         Removed SGI Freeware reference, IRIX 6 only.
7385         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
7386         Note N64 library requirement/workaround.
7387         Update O32 hints.
7388         Complete list of structure passing bug victims.
7389
7390 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7391
7392         * doc/install.texi: Remove CVS Id.
7393
7394 2001-07-02  Andreas Jaeger  <aj@suse.de>
7395
7396         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
7397         (find_inherently_necessary): Remove unused variable.
7398
7399 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
7400
7401         * c-common.h (TDI_inlined): New ast dump phase.
7402         (dump_flag_name): New function.
7403         * c-dump.c (dump_files): Add inlined phase.
7404         (dump_flag_name): Define.
7405         * doc/invoke.texi (-fdump-ast-inlined): Document.
7406
7407 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7408
7409         * stor-layout.c (layout_decl): Revert change to handling of alignment
7410         in packed types.
7411
7412 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7413
7414         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
7415         for FIELD_DECL.
7416
7417 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
7418
7419         * doc/tm.texi (FUNCTION_ARG): Document that the last call
7420         is special.
7421
7422 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
7423
7424         * tlink.c (recompile_files): Remove COMPILER_PATH and
7425         LIBRARY_PATH from the environment.
7426
7427 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
7428
7429         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
7430         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
7431         enumerators.
7432         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
7433
7434         * c-parse.in (OBJC_STRING): Kill.
7435         (objc_string): Decompose to [objc_string] '@' STRING.
7436         (reswords): Take the leading '@' off all the Objective C keywords.
7437         (objc_rid_sans_at): Kill.
7438         (init_reswords): Don't initialize it.
7439         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
7440         (_yylex): Kill reconsider label.  Look ahead one token after
7441         an '@'; if we get an identifier, check whether it's an
7442         Objective C @-keyword.  If so, return the keyword.  Otherwise,
7443         put back the token and return the '@' as a terminal.
7444
7445         * cpplib.c (lex_macro_node): Remove unnecessary check for
7446         leading '@' on identifier.  Clarify control flow and commentary.
7447
7448 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7449
7450         * cse.c (new_label_ref): Variable deleted.
7451         (insert): Remove set of new_label_ref.
7452         (check_for_label_ref): New function.
7453         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
7454
7455 See ChangeLog.5 for earlier changes.