OSDN Git Service

60268df67e846f715a7edc6d21fe32bb51708778
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Sat Jun 17 10:33:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * gcc.texi: Remove reference to stupid.c.
4
5 2000-06-16  Benjamin Chelf  <chelf@codesourcery.com>
6
7         * c-common.c (c_tree_code_type): New array.
8         (c_tree_code_length): Likewise.
9         (c_tree_code_name): Likewise.
10         (add_c_tree_codes): New function.
11
12         * c-common.h (add_c_tree_codes): Declare.
13         (enum c_tree_code): New enum.
14
15         * c-lex.c (init_parse): Added call to add_c_tree_codes.
16         
17 2000-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18
19         * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
20         select pattern to also match macro defs with only one argument.
21
22 Thu Jun 15 18:56:12 2000  Jeffrey A Law  (law@cygnus.com)
23
24         * i386.md: Create new [right,left] rotate and right shift
25         patterns to optimize shift by 1 bit for certain ia32 processors.
26         Update patterns which perform left shifts to optimize shift by
27         1 bit for certain ia32 processors.
28         * i386.c (const_int_1_operand): New predicate.
29         * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
30         * i386-protos.h (const_int_1_operand): Prototype.
31
32 Wed Jun 14 23:46:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
33
34         * mips.c (machine_dependent_reorg): Fix braces for nested if.
35
36 2000-06-14  Geoff Keating  <geoffk@cygnus.com>
37
38         * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
39         LABEL_REFs.
40
41 2000-06-14  Richard Henderson  <rth@cygnus.com>
42
43         * conflict.c (conflict_graph_compute): Don't look for REG_INC.
44
45         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
46         auto-inc code.
47
48         * print-rtl.c (print_rtx): Emit space before mem alias set.
49
50 2000-06-14  David Edelsohn  <edelsohn@gnu.org>
51
52         * rs6000.c (expand_block_move): Fix typo in earlier change.
53         (print_operand): Remove unused variables neg and op.
54         (toc_hash_mark_entry): Fix prototype.
55
56 2000-06-14  Benjamin Chelf  <chelf@codesourcery.com>
57
58         * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
59         (THEN_CLAUSE): Likewise.
60         (ELSE_CLAUSE): Likewise.
61         (WHILE_COND): Likewise.
62         (WHILE_BODY): Likewise.
63         (DO_COND): Likewise.
64         (DO_BODY): Likewise.
65         (RETURN_EXPR): Likewise.
66         (EXPR_STMT_EXPR): Likewise.
67         (FOR_INIT_STMT): Likewise.
68         (FOR_COND): Likewise.
69         (FOR_EXPR): Likewise.
70         (FOR_BODY): Likewise.
71         (SWITCH_COND): Likewise.
72         (SWITCH_BODY): Likewise.
73         (CASE_LOW): Likewise.
74         (CASE_HIGH): Likewise.
75         (GOTO_DESTINATION): Likewise.
76         (COMPOUND_BODY): Likewise.
77         (ASM_CV_QUAL): Likewise.
78         (ASM_STRING): Likewise.
79         (ASM_OUTPUTS): Likewise.
80         (ASM_INPUTS): Likewise.
81         (ASM_CLOBBERS): Likewise.
82         (DECL_STMT_DECL): Likewise.
83         (STMT_EXPR_STMT): Likewise.
84         (LABEL_STMT_LABEL): Likewise.
85         (SCOPE_BEGIN_P): Likewise.
86         (SCOPE_END_P): Likewise.
87         (SCOPE_STMT_BLOCK): Likewise.
88         (SCOPE_NULLIFIED_P): Likewise.
89         (SCOPE_NO_CLEANUPS_P): Likewise.
90         (SCOPE_PARTIAL_P): Likewise.
91         (ASM_VOLATILE_P): Likewise.
92         (STMT_LINENO): Likewise.
93         (STMT_LINENO_FOR_FN_P): Likewise.
94
95         * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
96         ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
97         FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
98         CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
99         SCOPE_STMT, CASE_LABEL, STMT_EXPR.
100
101         * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
102         
103 2000-06-14  David O'Brien  <obrien@FreeBSD.org>
104
105         * gcc.c (main): Quiet compiler warnings.  argv is assumed to be
106         writable in parts of the GCC code.
107
108         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
109         specification match cast.
110
111 Wed Jun 14 09:25:57 2000  Jeffrey A Law  (law@cygnus.com)
112
113         * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
114         * configure, config.in: Rebuilt.
115         * sys-protos.h: Similarly.
116
117 Wed Jun 14 03:39:58 EDT 2000  John Wehle  (john@feith.com)
118
119         * ifcvt.c (EDGE_COMPLEX): Move definition ...
120         * basic-block.h (EDGE_COMPLEX): ... here.
121
122         * loop.c (check_dbra_loop): Specify the register when
123         generating REG_NONNEG notes and don't generate duplicates.
124
125 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
126
127         * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
128         (struct tree_type, struct tree_decl): Add user_align member.
129         * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
130         (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
131         and DECL_USER_ALIGN 0, cap alignment to this value.
132         (place_field): Likewise.
133         (finalize_type_size): Set TYPE_USER_ALIGN.
134         (layout_type): Likewise.
135         (initialize_sizetypes): Likewise.
136         * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
137         DECL_USER_ALIGN to 1.
138         * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
139         (xfer_tag): Set TYPE_USER_ALIGN.
140         (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
141         (finish_enum): Likewise.
142         * stmt.c (expand_decl): Set DECL_USER_ALIGN.
143         (expand_anon_union_decl): Likewise.
144         * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
145         (build_index_type): Set TYPE_USER_ALIGN.
146         (build_range_type): Likewise.
147         (build_common_tree_nodes_2): Likewise.
148         * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
149
150 2000-06-13  Andreas Jaeger  <aj@suse.de>
151
152         * configure.in: Use --enable-checking=misc,tree,gc by default if
153         no --enable-checking option is given and for
154         --enable-checking=yes.
155         * configure: Rebuilt.
156
157 2000-06-13  Richard Henderson  <rth@cygnus.com>
158
159         * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
160         (__throw): Don't pass the address of a label.
161
162         * config/ia64/ia64.c (ia64_compute_frame_size): Use
163         current_function_is_leaf.
164         (ia64_expand_prologue): Likewise.  Modify return_address_pointer_rtx
165         instead of reg_names[RETURN_ADDRESS_REGNUM].
166         (ia64_init_machine_status): Reset return_address_pointer_rtx.
167         * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
168         from RETURN_ADDRESS_REGNUM.  Update all uses.
169         (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
170         zero instead of null on failure.
171         (ELIMINABLE_REGS): Add ra->b0 elimination.
172         (CAN_ELIMINATE): Update accordingly.
173         (INITIAL_ELIMINATION_OFFSET): Likewise.
174         (REGISTER_NAMES): Use an illegal assembler name for
175         RETURN_ADDRESS_POINTER_REGNUM.
176
177 2000-06-13  Richard Henderson  <rth@cygnus.com>
178
179         * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
180         GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
181         (REG_CLASS_NAMES): Likewise.
182         (REG_CLASS_CONTENTS): Likewise.
183         (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
184         (HARD_REGNO_MODE_OK): Remove references to them.
185         (REGNO_REG_CLASS): Likewise.
186         (REG_CLASS_FROM_LETTER): Likewise.
187         (CLASS_MAX_NREGS): Likewise.
188         (REGISTER_MOVE_COST): Likewise.
189         * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
190         * config/ia64/ia64.md (*): Replace "e" constraints with "f".
191         (movqi_internal): Special case moves from zero.
192         (movhi_internal, movsi_internal): Likewise.
193         (movdi_internal): Likewise.  Fill out "f" constraints.
194         (movsf_internal): Fill out "r" constraints.
195         (movdf_internal): Likewise.
196
197 2000-06-13  Richard Henderson  <rth@cygnus.com>
198
199         * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
200         alive before reload.
201
202         * haifa-sched.c (struct deps): Add in_post_call_group_p.
203         (add_dependence): Handle notes between SCHED_GROUP_P insns.
204         (remove_dependence): Always define.
205         (set_sched_group_p): New.
206         (sched_analyze_2): Use it.
207         (sched_analyze_insn): Don't special-case naked uses.  Look for
208         and extend in_post_call_group_p.
209         (sched_analyze): Clear stale SCHED_GROUP_P.  Set in_post_call_group_p.
210         (init_deps): Clear in_post_call_group_p.
211
212 2000-06-13  Richard Henderson  <rth@cygnus.com>
213
214         * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
215         CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
216         and hard-coded tests.
217         (simplify_set): Likewise.
218         (gen_lowpart_for_combine): Likewise.
219         * emit-rtl.c (gen_lowpart_common): Likewise.
220         * global.c (find_reg): Likewise.
221         * local-alloc.c (find_free_reg): Likewise.
222         * recog.c (register_operand): Likewise.
223         * regclass.c (init_reg_sets_1): Likewise.
224         (record_operand_costs, regclass): Likewise.
225         * reload.c (push_reload): Likewise.
226         * reload1.c (choose_reload_regs): Likewise.
227         * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
228         * local-alloc.c (struct qty): Rename changes_size to changes_mode.
229         Update all references.
230         * regs.h (struct reg_info_def): Likewise.
231         (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
232         * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
233         (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
234
235         * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
236         (CLASS_CANNOT_CHANGE_MODE_P): New.
237         * config/mips/mips.h: Likewise.
238         * config/pa/pa32-regs.h: Likewise.
239         * config/pa/pa64-regs.h: Likewise.
240         * config/rs6000/rs6000.h: Likewise.
241         * config/sh/sh.h: Likewise.
242         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
243         (CLASS_CANNOT_CHANGE_MODE_P): New.
244         * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
245         * config/d30v/d30v.h: Likewise.
246
247 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
248
249         * configure.in: Add AC_TYPE_GETGROUPS test.
250         * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
251         * configure: Rebuilt.
252         * config.in: Rebuilt.
253
254 2000-06-13  Richard Henderson  <rth@cygnus.com>
255
256         * explow.c (set_mem_attributes): Do nothing for NULL type.
257
258 Tue Jun 13 14:45:10 2000  Jeffrey A Law  (law@cygnus.com)
259
260         * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
261         correctly.
262
263 2000-06-13  James E. Wilson  <wilson@cygnus.com>
264
265         * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
266
267 Tue Jun 13 14:05:35 2000  Jeffrey A Law  (law@cygnus.com)
268
269         * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
270
271 2000-06-13  Philipp Thomas  <pthomas@suse.de>
272
273         * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
274         * configure: Rebuilt.
275
276 2000-06-07  David O'Brien  <obrien@FreeBSD.org>
277
278         * configure.in:  Adjust FreeBSD bits to match changes to config.guess.
279         We now default to ELF for the i386, and a.out is the special case.
280         * configure:  Rebuilt.
281
282 Tue Jun 13 10:05:30 2000  Hans-Peter Nilsson  <hp@axis.com>
283
284         * final.c (final_scan_insn): Delete notes between cc0 setter and
285         user when restarting from setter.
286
287 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
288
289         * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
290         cast to squelch signed/unsigned warnings.
291
292 2000-06-13  Zack Weinberg  <zack@wolery.cumb.org>
293
294         * cpplib.c (handle_directive): Print non-NUL-terminated string
295         with %.*s.
296
297 2000-06-12  Michael Meissner  <meissner@redhat.com>
298
299         * ifcvt.c (dead_or_predicable): Don't do conditional execution
300         path if the machine needs extra support to do conditional
301         execution.
302
303 Mon Jun 12 17:04:17 2000  Jeffrey A Law  (law@cygnus.com)
304
305         * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
306         to print the alias set.
307         * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
308
309 2000-06-12  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
310
311         * config/float-vax.h: Add GFLOAT defines.
312
313 Mon Jun  12  9:44:00 2000  Mark Klein  <mklein@dis.com>
314
315         * configure.in: Update tm dependencies for MPE.
316         * configure: Rebuilt.
317
318 2000-06-12  H.J. Lu  <hjl@gnu.org>
319
320         * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
321
322 2000-06-12  David Edelsohn  <edelsohn@gnu.org>
323
324         * aix41.h (SUBTARGET_SWITCHES): Delete threads.
325         (CPP_SPEC): Change mthreads to pthread.
326         (LIB_SPEC): Likewise.
327         (STARTFILE_SPEC): Likewise.
328         * aix43.h (SUBTARGET_SWITCHES): Delete threads.
329         (CPP_SPEC): Change mthreads to pthread.
330         (LIB_SPEC): Likewise.
331         (STARTFILE_SPEC): Likewise.
332         * rs6000-protos.h (reg_or_arith_cint_operand): New.
333         * rs6000.c (reg_or_arith_cint_operand): New.
334         (num_insns_constant_wide): Decorate unsigned constant.
335         * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
336         * rs6000.md (addsi3): Use new predicate.
337         (subsi3, adddi3, subdi3): Likewise.
338
339 2000-06-12  Mark Mitchell  <mark@codesourcery.com>
340
341         * c-common.c (lang_get_alias_set): Fix typo.
342
343 2000-06-12  Richard Earnshaw <rearnsha@arm.com>
344
345         * flow.c (mark_used_regs): Revert last change.
346         (life_analysis): Remove PROP_AUTOINC if running after reload.
347         (propagate_one_insn): PROP_AUTOINC is always off after reload.
348
349 2000-06-11  Richard Earnshaw <rearnsha@arm.com>
350
351         * flow.c (mark_used_regs): Don't call find_auto_inc after reload
352         has run.
353
354 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
355
356         * bb-reorder.c (build_scope_forest): Initialize variable
357         `curr_scope'.
358
359         * calls.c (expand_call): Likewise for variables
360         `save_pending_stack_adjust' and `save_stack_pointer_delta'.
361
362         * i386.c (function_arg_advance, function_arg): Cast to avoid
363         signed/unsigned warnings.
364
365         * i386.h (MEMORY_MOVE_COST): Likewise.
366
367         * ifcvt.c (cond_exec_process_if_block): Initialize variables
368         `else_start' and `else_end'.
369
370         * libgcc2.h (__eh_alloc, __eh_free): Prototype.
371
372         * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
373
374 2000-06-10  Mark Mitchell  <mark@codesourcery.com>
375
376         * Makefile.in (libintl.a): Depend on intl.all.
377
378 2000-06-09  H.J. Lu  (hjl@gnu.org)
379
380         * Makefile.in (c-parse.o): Also depend on output.h.
381
382 2000-06-09  Rodney Brown  <RodneyBrown@mynd.com>
383
384         * mcore-protos.h: discards const warning removal.
385         * mcore.c: discards const warning removal.
386
387 2000-06-09  Kazu Hirata  <kazu@hxi.com>
388
389         * config/h8300/lib1funcs.asm: Declare the machine architecture at
390         the beginning of the file.
391
392 2000-06-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
393
394         * real.h:  Add prototype for ldexp.
395
396 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
397
398         * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
399         it ggc_alloc, drop second argument, never clear returned memory.
400         * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
401         (ggc_alloc_cleared): New.
402         * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
403         ggc_alloc_obj.  Remove ggc_alloc macro.
404         (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
405
406         * rtl.c (rtvec_alloc): Clear the vector always.
407         (rtx_alloc): Clear the first word always.  Remove dirty
408         obstack tricks (this routine is no longer a bottleneck).
409         * tree.c (make_node): Clear the new node always.
410         (make_tree_vec): Likewise.
411         (tree_cons): Clear the common structure always.  
412         (build1): Likewise; also, clear TREE_COMPLEXITY.
413         * gengenrtl.c: Use puts wherever possible.  Remove extra
414         newlines.
415         (gendef): Clear the first word of an RTX in the generator
416         function, irrespective of ggc_p.  Initialize '0' slots to
417         NULL.
418         (genlegend): Don't generate obstack_alloc_rtx routine, just a
419         thin wrapper macro around obstack_alloc.
420
421         * stmt.c (expand_fixup): Use ggc_alloc.
422         * c-typeck.c (add_pending_init): Use ggc_alloc.
423         * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
424         * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
425         const0_rtx when it is created.
426         (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
427         we are not in a function.
428
429         * tree.c (tree_class_check_failed): Make second arg an int.
430         * tree.h: Update prototype.
431
432 2000-06-09  Geoff Keating  <geoffk@cygnus.com>
433
434         * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
435         of an error_mark_node.
436
437 Fri Jun  9 20:35:13 2000  Denis Chertykov  <denisc@overta.ru>
438
439         * config/avr/avr.c (asm_output_section_name): bugfix.
440
441 2000-06-09  Jason Merrill  <jason@casey.soma.redhat.com>
442
443         * timevar.def: Add TV_EXPAND.
444         * timevar.c (timevar_print): Update timing information.
445         * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
446
447         * stmt.c (expand_return): Check for error_mark_node.
448
449 2000-06-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
450
451         * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
452
453         * scan-types.sh (VALUE) Wrap use with double quotes to protect
454         variable against filename expansion when it contains "char *".
455
456         * system.h (SSIZE_MAX): Delete backup definition.
457
458         * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
459         instead of SSIZE_MAX.
460
461 2000-06-09  Jakub Jelinek  <jakub@redhat.com>
462
463         * configure.in: Check whether gas supports -relax.
464         * configure, config.in: Rebuilt.
465         * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
466         (EXTRA_SPECS): Add asm_relax.
467         (ASM_SPEC): Add %(asm_relax).
468         (TARGET_SWITCHES): Add -mrelax and -mno-relax.
469         * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
470         (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
471         (ASM_SPEC): Add %(asm_relax).
472         * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
473         * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
474         never use sethi/jmpl for leaf tail calls.  Use or with rs2 %g0
475         instead of mov, so that gas can further optimize it.
476
477 2000-06-08  James E. Wilson  <wilson@bletchleypark.cygnus.com>
478
479         * dwarf2out.c (size_of_die, case dw_val_class_const): Use
480         size_of_sleb128.
481         (value_format, case dw_val_class_const): Use sdata format.
482         (output_die): Call output_sleb128.
483
484 2000-06-08  James E. Wilson  <wilson@cygnus.com>
485
486         * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
487         UNALIGNED_DOUBLE_INT_ASM_OP.  Rename old macro to
488         ASM_OUTPUT_DWARF_CONST_DOUBLE.
489         (output_die, case dw_val_class_unsigned_const): Correct call to
490         ASM_OUTPUT_DWARF_DATA8.
491         (output_die, case dw_val_class_long_long): Use
492         ASM_OUTPUT_DWARF_CONST_DOUBLE.
493         * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
494         pos is zero.
495         
496         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
497         (output_function_prologue): Fix mispelling.
498         (output_function_prologue, output_function_epilogue): Reorder to
499         match ia64.c definition order.
500         * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
501         (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
502         Use r3 instead of r2 for large stack restores.
503         (ia64_output_end_prologue): New function.
504         (process_set): Emit ".restore sp" for epilogue stack restores.
505         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
506         
507 2000-06-08  Jakub Jelinek  <jakub@redhat.com>
508
509         * dbxout.c (dbxout_type_fields): Don't segfault on fields with
510         incomplete types.
511
512 2000-06-08  Nathan Sidwell  <nathan@codesourcery.com>
513
514         * frame.c (end_fde_sort): Remove extraneous erratic array test.
515
516 2000-06-08  Denis Perchine <dyp@perchine.com>
517
518         * frame.c (start_fde_sort): Don't malloc (0).
519
520 2000-06-07  Zack Weinberg  <zack@wolery.cumb.org>
521
522         * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
523         error_mark_node. 
524         * print-tree.c (print_node): The transparent_union_flag means
525         different things for unions and arrays.  Do not inspect it
526         with TYPE_TRANSPARENT_UNION.
527
528 2000-06-06  Jakub Jelinek  <jakub@redhat.com>
529
530         * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
531         returned NULL.
532
533 Wed Jun  7 20:34:33 2000  Denis Chertykov  <denisc@overta.ru>
534
535         * config/avr/avr.c (asm_output_section_name): output section
536         attributes.
537         * config/avr/libgcc.S (.text.libgcc): declare section attributes.
538
539 2000-06-06  James E. Wilson  <wilson@cygnus.com>
540
541         * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
542         fields into header field.
543         (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
544         macros to access length, flags, and version info from header field.
545         * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
546         * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
547         (__do_global_ctors_aux): Fix caller.
548         * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
549         prologue_flag to header.  Pass to read_P_record.
550         (read_P_record): New argument header.  Implement P4 format.
551         Multiply P7_T_SIZE by 16.
552         (execute_one_ia64_descriptor): New static local region_header.  Pass to
553         get_unwind_record.  Copy r to region_header if r is a header record.
554         (print_all_records): Likewise.
555         (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
556         (__get_personality, __get_except_table): Likewise.
557         * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
558
559 2000-06-06  Philipp Thomas  <pthomas@suse.de>
560
561         * configure.in (AC_C_INLINE): Added.
562         * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
563         * configure: Regenerate.
564
565 2000-06-06  Mark Mitchell  <mark@codesourcery.com>
566
567         * c-common.h (c_language_kind): New type.
568         (c_language): New variab.e
569         * c-common.c (lang_get_alias_set): Don't put structures in
570         non-zero alias sets in C++.
571         * c-decl.c (c_language): Define it.
572         * c-lex.c (doing_objc_thang): Remove.
573         * c-tree.h (doing_objc_thang): Make it a macro.
574         * objc/objc-act.c (lang_decode_option): Set c_language, not
575         doing_objc_thang. 
576         
577 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
578
579         * diagnostic.c (output_maximum_width): Remove.
580         (doing_line_wrapping): Tweak.
581         (diagnostic_buffer): New object.
582         (global_output_buffer): New object.
583         (output_destroy_prefix): New function.
584         (default_initialize_buffer): Likewise.
585         (reshape_diagnostic_buffer): Likewise.
586         (initialize_diagnostics): Likewise.
587         (output_clear): Tweak.
588         (line_wrapper_printf): Adjust call to init_output_buffer.
589         (vline_wrapper_message_with_location): Likewise.  Use
590         output_destroy_prefix. 
591         (v_message_with_decl): Likewise.
592
593         * diagnostic.h (struct output_buffer): Constify prefix.
594         (init_output_buffer, output_get_prefix): Constify.
595         (diagnostic_message_length_per_line): Likewise.
596         (reshape_diagnostic_buffer): Declare.
597         (default_initialize_buffer): Declare.
598         (initialize_diagnostics): Declare.
599         (diagnostic_buffer): Declare new obbject.
600
601         * toplev.c: #include diagnostic.h
602         (display_help): Document diagnostic formatting options.
603         (decode_f_option): Handle diagnostic formatting options.
604         (main): Setup initialization for diagnostic messages outputter.
605
606         * toplev.h (set_message_length): Remove.
607
608         * Makefile.in (toplev.o): Depends upon diagnostic.h
609
610         * invoke.texi : Document diagnostics formatting options.
611
612 Tue Jun  6 19:25:32 2000  Philippe De Muyter  <phdm@macqel.be>
613
614         * configure.in (Make the links): Typo fix : the file that must be
615         included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
616         * configure: File rebuilt.
617
618 2000-06-06  Nathan Sidwell  <nathan@codesourcery.com>
619
620         * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
621         (eh_context): Add alloc_mask and alloc_buffer emergency fallback
622         space.
623         * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
624         emergency eh_context buffer, if malloc fails.
625         (__eh_free): Moved from cp/exception.cc. Release to emergency
626         eh_context buffer, if appropriate.
627
628 2000-06-06  Jason Merrill  <jason@casey.soma.redhat.com>
629
630         * expr.c (store_expr): Fix typo.
631
632 2000-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
633
634         * m68k.c (legitimize_pic_address): Move prototype ...
635         
636         * m68k-protos.h (legitimize_pic_address): ... here.
637
638         * m68k.md (legitimize_pic_address): Delete prototypes.
639         (untyped_call): Invoke GEN_CALL(), not gen_call().
640
641         * nextstep.c: Include system.h and toplev.h.
642         (get_directive_line): Don't prototype.
643         (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
644
645         * nextstep.h (handle_pragma): Prototype.
646         (SECTION_FUNCTION): Prototype FUNCTION().  Move prototype of
647         objc_section_init ...
648         (EXTRA_SECTION_FUNCTIONS): ... here.
649
650 Tue Jun  6 08:17:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
651
652         * sdbout.c (struct sdb_file): NAME now const.
653         (sdbout_init): input_file_name now const.
654         (sdbout_start_new_source_file): FILENAME now const.
655         * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
656
657 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
658
659         * c-typeck.c (build_conditional_expr): Handle complex data types.
660
661 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
662
663         * explow.c (maybe_set_unchanging): New function, broken out from...
664         (set_mem_attributes): Here.
665         * expr.h: Declare it.
666         * stmt.c (expand_decl): Call it.
667
668 2000-06-05  Richard Henderson  <rth@cygnus.com>
669
670         * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
671         while looking for a register to inherit from.
672
673 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
674
675         * Makefile.in (libgcc.ready): Lose.
676         (libgcc.mk): Just use mv, not move-if-change.
677         (LIBGCC_DEPS): New macro.
678         (libgcc.a): Use it.
679         (stmp-multilib): Likewise.
680         * mklibgcc.in (stmp-dirs): New target.  Make everything depend on
681         it rather than the directories themselves.
682         (LIB2ADD): Depend on the list file rather than 'force'.
683
684         * fold-const.c (fold, case COND_EXPR): Elide conversion between
685         cv-qualified versions of types.
686
687 Mon Jun  5 14:06:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
688
689         * config/sparc/sparc.c (short_branch): Correct error in range
690         computation.
691
692 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
693
694         * fixinc/inclhack.def: New include hacks for ultrix.
695         * (nested_ultrix): Replaced by ultrix_nested_svc.
696         * (ultrix_atof_param): test_text string added.
697         * (ultrix_ifdef): Modified select string.
698
699 2000-06-05  Zack Weinberg  <zack@wolery.cumb.org>
700
701         * objc/objc-act.c (generate_method_descriptors): Register
702         objc_method_prototype_template as a GC root.
703         (comp_method_with_proto): Register function_type as a GC root.
704         (comp_proto_with_proto): Replace function_type1 and
705         function_type2 with a two-element array; register it as a GC root.
706
707         (generate_protocols, build_protocol_initializer,
708         generate_protocol_list, build_category_initializer,
709         build_shared_structure_initializer): Do not cache cast_type
710         and/or cast_type2.
711
712 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
713
714         * function.c (assign_parms): Add missing argument to set_mem_attributes
715         call.
716
717 2000-06-05  Nathan Sidwell  <nathan@codesourcery.com>
718
719         * tree.h (VOID_TYPE_P): New macro.
720         (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
721         * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
722         (get_parm_info): Likewise.
723         (store_parm_decls): Likewise.
724         (combine_parm_decls): Likewise.
725         (finish_function): Likewise.
726         * c-typeck.c (build_function_call): Likewise.
727         (build_binary_op): Likewise.
728         (build_conditional_expr): Likewise.
729         (internal_build_compound_expr): Likewise.
730         (convert_for_assignment): Likewise.
731         * stmt.c (expend_expr_stmt): Likewise.
732         (warn_if_unused_value): Likewise.
733         (expand_return): Likewise.
734         * c-parse.in (primary): Likewise.
735         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
736         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
737
738 Mon Jun  5 06:46:28 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
739
740         * alias.c (get_alias_set): If compnent is addressable, use alias
741         set of component.
742         * c-decl.c (init_decl_processing): Don't call record_component_aliases.
743         (grokdeclarator): Likewise.
744         * c-typeck.c (common_type): Likewise.
745
746 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
747
748         * Makefile.in (OBJS): Remove dyn_string.o
749         (dyn-string.o): Delete rule.
750         * dyn-string.c: Delete file
751         * dyn-string.h: Likewise.
752         
753 2000-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
754
755         * Makefile.in (intl.*): Honor non-zero exit codes in the intl
756         subdir.
757
758 2000-06-03  Geoff Keating  <geoffk@cygnus.com>
759
760         * alias.c (record_component_aliases): Don't inspect
761         DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
762
763 Sat Jun  3 19:05:30 2000  Michael Meissner  <meissner@redhat.com>
764
765         * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
766         it with the pattern to do machine dependent work.
767         (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
768         use it to modify the true/false tests used in conditional
769         execution.  If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
770         defined, invoke them if the conversion to conditional execution
771         was successful or not.
772
773         * tm.texi (IFCVT_MODIFY_TESTS): Document.
774         (IFCVT_MODIFY_INSN): Ditto.
775         (IFCVT_MODIFY_FINAL): Ditto.
776         (IFCVT_MODIFY_CANCEL): Ditto.
777
778 Sat Jun  3 15:26:13 2000  Matt Kraai <kraai@alumni.carnegiemellon.edu>
779
780         * toplev.c (main): Fix misspellings of possibility and language.
781
782 2000-06-03  Richard Henderson  <rth@cygnus.com>
783
784         * alias.c (record_alias_subset): Initialize has_zero_child in the
785         superset.
786
787 2000-06-03  Richard Earnshaw (rearnsha@arm.com)
788
789         * arm.md (untyped_call): Use GEN_CALL macro.
790
791 2000-06-02  Pekka Nikander  <pnr@teldanex.tcm.hut.fi>
792
793         * Makefile.in: Use $(MAKE) not "make"
794
795 Fri Jun  2 19:31:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
796
797         * alias.c (struct alias_set_entry): New field has_zero_child.
798         (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
799         (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
800         do nothing.
801         Call record_component_aliases for aggregate types.
802         (record_alias_subset): Set has_zero_child.
803         (record_component_aliases, case ARRAY_TYPE): Do nothing if
804         TYPE_NONALIASES_COMPONENT.
805         (record_component_aliases, case RECORD_TYPE): Test
806         DECL_NONADDRESSABLE_P.
807         * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
808         of TREE_ADDRESSABLE.
809         * calls.c (initialize_argument_information): Only test
810         TYPE_TRANSPARENT_UNION for UNION_TYPE.
811         * function.c (assign_parms): Likewise.
812         * integrate.c (function_cannot_inline_p): Likewise.
813         * stor-layout.c (finish_record_layout): Don't call
814         record_component_aliases.
815         * tree.h (struct tree_int_cst): Use struct tree_common.
816         (struct tree_real_cst, struct tree_string): Likewise.
817         (struct tree_complex, struct tree_identifier): Likewise.
818         (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
819         (struct tree_block, struct tree_type, struct tree_decl): Likewise.
820         (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
821         (TYPE_NONALIASES_COMPONENT): New macro.
822         (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
823         (DECL_NONADDRESSABLE_P): New macro.
824         (struct tree_decl): Reorder bits for clarity of how many left;
825         add non_adressable.
826
827 2000-06-02  Jason Merrill  <jason@casey.soma.redhat.com>
828
829         * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
830         * mklibgcc.in (force): New target.
831         Make LIB2ADD stuff depend on it.
832
833 2000-06-02  Richard Henderson  <rth@cygnus.com>
834
835         * alias.c (lang_get_alias_set): Remove.
836         (get_alias_set): Call it directly, not indirectly.
837         * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
838         * c-common.h (c_get_alias_set): Don't declare.
839         * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
840         * expr.h (lang_get_alias_set): Declare as function, not pointer.
841         
842 2000-06-02  Bruce Korb  <bkorb@gnu.org>
843
844         * fixinc/server.c(sig_handler):  resume closing server on SIGPIPE
845         (server_setup):  define the server's master pid
846         (close_server):  actually do the deed IFF we are the server's master
847
848 2000-06-02  Jakub Jelinek  <jakub@redhat.com>
849
850         * c-common.c (c_get_alias_set): Check whether signed_type did not
851         return its argument before calling get_alias_set on the result.
852
853 2000-06-02  Andrew MacLeod  <amacleod@cygnus.com>
854
855         * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
856
857 Fri Jun  2 00:22:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
858
859         * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
860         (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
861         for TARGET_NOMACSAVE.
862         (NOMACSAVE_BIT): Define.
863         (TARGET_NOMACSAVE): Define.
864         (TARGET_SWITCHES): Add "nomacsave".
865
866 2000-06-02  Toshiyasu Morita  <toshi.morita@sega.com>
867
868         * sh.md (untyped_call): Remove excess parameters
869
870 2000-06-01  Loren J. Rittle  <ljrittle@acm.org>
871
872         * fixinc/inclhack.def (osf_namespace_a): Relax expression to
873         match that used before the conversion to c_fix style.
874         * fixinc/fixincl.x: regenerate
875
876 2000-06-01  Stan Cox  <scox@cygnus.com>
877
878         * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
879         macro argument typo.
880
881 2000-06-01  Zack Weinberg  <zack@wolery.cumb.org>
882
883         * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL.  Improve
884         error message.
885         * cpplib.c (parse_include): Remove support for VAX-C 
886         "#include starlet" misfeature.
887
888 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
889
890         * cppfiles.c: conditionally define O_BINARY.
891         (open_include_file): pass O_BINARY to open().
892
893 2000-06-01  Richard Henderson  <rth@cygnus.com>
894
895         * i960.c (i960_br_predict_opcode): Remove.
896         (i960_print_operand) [+]: Emit branch prediction hints.
897         (i960_function_arg): Return early for VOIDmode.
898         (i960_round_align): Return early for incomplete types.
899         * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
900         * i960.md (all conditional branches): Add "%+".
901
902 Thu Jun  1 12:24:21 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
903
904         * alias.c (get_alias_set): Don't call language-specific routine more
905         than is needed and clean up code a bit.
906         * c-common.c (c_get_alias_set): All references whose type
907         is char get alias set 0, but character types need not.
908         * varasm.c (make_function_rtl): Don't call set_mem_attributes.
909         (make_decl_rtl): Don't call it for FUNCTION_DECL.
910
911 2000-06-01  Bruce Korb  <bkorb@gnu.org>
912
913         * fixinc/tests/base/...: new base result files
914
915 Thu Jun  1 09:37:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
916
917         * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
918         * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
919         * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
920         will use FCOMI.
921         
922 2000-06-01  Richard Henderson  <rth@cygnus.com>
923
924         * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
925
926         * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
927
928 2000-05-31  Richard Henderson  <rth@cygnus.com>
929
930         * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
931         CONSTANT_POOL_ADDRESS_P addresses for .sdata.
932         * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
933
934 2000-05-31  Richard Henderson  <rth@cygnus.com>
935
936         * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
937         * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
938         (ia64_print_operand) [+]: ... here.  Use current_output_insn.
939         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
940         * config/ia64/ia64.md (all branch/call patterns): Use %+.
941
942 2000-05-31  Richard Henderson  <rth@cygnus.com>
943
944         * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
945
946 2000-05-31  Richard Henderson  <rth@cygnus.com>
947
948         * ifcvt.c (merge_if_block): Be prepared for JOIN to have no 
949         remaining edges.
950         (find_if_block): Allow THEN with no outgoing edges.
951         * flow.c (merge_blocks_nomove): Remove a barrier not following
952         a jump as well.
953
954 2000-05-31  Richard Henderson  <rth@cygnus.com>
955
956         * flow.c (propagate_block): Move initialization of mem_set_list ...
957         (init_propagate_block_info): ... here.  Also track blocks with 
958         no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
959
960 2000-05-31  Richard Henderson  <rth@cygnus.com>
961
962         * jump.c (jump_optimize_1): Revert 05-18 change.
963
964 2000-05-31  Mark Mitchell  <mark@codesourcery.com>
965
966         * invoke.texi: Remove documentation for -fguiding-decls.
967
968 2000-05-31  Richard Henderson  <rth@cygnus.com>
969
970         * configure.in: Fix typo last change.
971
972 2000-05-31  Philipp Thomas  <pthomas@suse.de>
973
974         * configure.in (enable-nls): Enable if build == host, i.e. when 
975         not building a canadian cross compiler.
976         (enable-maintainer-mode): Added for use with i18n.
977         * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
978         cross section of ALL_LINGUAS and LINGUAS.
979         * configure: Rebuild.
980
981 2000-05-31  Bruce Korb  <bkorb@gnu.org>
982
983         * fixinc/check.tpl: rework to use test result tree
984         * fixinc/Makefile.in: change invocation of check script
985         * fixinc/check.diff: No longer needed
986         * fixinc/fixincl.x: regenerate
987         * fixinc/inclhack.def:  add new tests
988         * fixinc/tests/base/arch/i960/archI960.h:  New test result
989         * fixinc/tests/base/curses.h: modified test result
990         * fixinc/tests/base/stdio.h: ditto
991         * fixinc/tests/base/time.h: ditto
992         * fixinc/tests/base/sys/asm.h: ditto
993         * fixinc/tests/base/sys/stat.h: ditto
994         * fixinc/tests/base/sys/wait.h: ditto
995
996 Wed May 31 13:17:20 2000  Philippe De Muyter  <phdm@macqel.be>
997
998         * except.c (clear_function_eh_region): Do not free NULL.
999
1000 Wed May 31 08:07:52 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1001
1002         * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
1003         * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
1004         (REG_BASE_VALUE): Remove unneeded cast to unsigned.
1005         (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
1006         (find_base_decl): New function, from c_find_base_decl in c-common.c.
1007         (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
1008         (get_alias_set): Likewise.
1009         Major rework to do more things and allow language-specific code
1010         to just handle special-cases.
1011         (record_alias_subset): Args are HOST_WIDE_INT.
1012         (record_component_alias): Local vars are HOST_WIDE_INT.
1013         Don't handle COMPLEX_EXPR.
1014         (get_varargs_alias_set): Moved from builtins.c.
1015         (get_frame_alias_set): New function.
1016         * builtins.c (expand_builtin_return_address): Use frame alias set.
1017         (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
1018         for setjmp buffer.
1019         (get_memory_rtx): Rework to use set_mem_attributes.
1020         (get_varargs_alias_set): Deleted from here.
1021         * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
1022         (c_find_base_decl): Deleted from here.
1023         (c_get_alias_set): Remove many cases and rework to just handle
1024         C-specific cases.
1025         * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
1026         * c-decl.c (rtl.h, expr.h): Now included.
1027         (init_decl_processing): Call record_component_aliases on array types.
1028         (grokdeclarator): Likewise.
1029         Set TREE_ADDRESSABLE for all fields that are not bitfields.
1030         * c-typeck.c (common_type): Call record_component_aliases for array.
1031         * caller-save.c (setup_save_areas): Rework register loop for unsigned.
1032         Set all save areas to the frame alias set.
1033         * calls.c (initialie_argument_information): Call set_mem_attributes.
1034         (compute_argument_addresses, expand_call): Likewise.
1035         * explow.c (set_mem_attributes): New function.
1036         (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
1037         * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
1038         LEN and OFFSET now HOST_WIDE_INT.
1039         (clear_by_pieces): Similar changes.
1040         (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
1041         (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
1042         (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
1043         (clear_by_pieces_1): Likewise.
1044         (emit_push_insn): Call set_mem_attributes.
1045         (expand_expr, case INDIRECT_REF): Likewise.
1046         (expand_expr, case VAR_DECL): Call change_address.
1047         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
1048         tree_low_cst.
1049         (get_varargs_alias_set, get_frame_alias_set): New decls.
1050         (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
1051         (new_alias_set, set_mem_attributes): Likewse.
1052         * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
1053         (assign_stack_temp_for_type): Likewise.
1054         Can split slot even if alias set since can copy.
1055         Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
1056         (assign_temp): Use host_integerp and tree_low_cst.
1057         (put_var_into_stack): Properly handle SAVE_EXPR.
1058         (put_addressof_into_stack): Likewise.
1059         (assign_parms): Call set_mem_attributes.
1060         Delete #if 0 code.
1061         (fix_lexical_address): Put reference to chain into frame alias set.
1062         (expand_function_start): Call set_mem_attributes.
1063         * integrate.c (expand_inline_function): Likewise.
1064         * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
1065         * regmove.c (try_apply_stack_adjustment): Likewise.
1066         * reload.c (push_reload, make_memloc): Likewise.
1067         * reload1.c (alter_reg): Make alias sets for spilled pseudos.
1068         * rtl.def (MEM): Update comment.
1069         * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
1070         (move_by_pieces): Change length to HOST_WIDE_INT.
1071         (record_base_value, record_alias_subset): Delete from here.
1072         * stmt.c (expand_decl): Call set_mem_attributes.
1073         * stor-layout.c (finish_record_layout): Call record_component_aliases.i
1074         * toplev.c (compile_file): Call init_alias_once earlier.
1075         * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
1076         from here: now in alias.c.
1077         * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
1078         (struct tree_decl): Likewise.
1079         (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
1080         * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
1081         (output_constant_def, force_const_mem): Likewise.
1082         
1083         * flow.c (propagate_block): If block has no successors, stores to
1084         frame are dead if not used.
1085
1086 2000-05-31  Nathan Sidwell  <nathan@codesourcery.com>
1087
1088         * stmt (expand_end_case): Reorder conversion sequence for jump
1089         table to avoid extra truncations.
1090
1091 Wed May 31 01:31:42 2000  Jeffrey A Law  (law@cygnus.com)
1092
1093         * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
1094         in the block is more than just a simple conditional branch.
1095         (noce_process_if_block): Similarly.
1096
1097 Tue May 30 22:25:57 2000  Alexandre Oliva  <aoliva@cygnus.com>
1098
1099         * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
1100         queue.
1101
1102 2000-05-30  Michael Meissner  <meissner@redhat.com>
1103
1104         * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
1105         instructions.  Treat LO_SUM operations as loading the full integer
1106         constant.
1107
1108 2000-05-30  Richard Henderson  <rth@cygnus.com>
1109
1110         * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
1111
1112 2000-05-30  Richard Henderson  <rth@cygnus.com>
1113
1114         * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
1115
1116 2000-05-30  Bruce Korb  <bkorb@gnu.org>
1117
1118         * fixinc/tests/*:  Added expected result files for fixinc's make check
1119         * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
1120
1121 2000-05-30  Richard Henderson  <rth@cygnus.com>
1122
1123         * config/alpha/alpha.md (*setne_internal): Use match_operator
1124         instead of working down from insn.
1125
1126 2000-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1127
1128         * invoke.texi (-Wtraditional): Update WRT function macros.
1129
1130 Tue May 30 09:57:32 2000  Philippe De Muyter  <phdm@macqel.be>
1131
1132         * except.c (free_exception_table): Do not free NULL.
1133
1134 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
1135
1136         * cpplib.c (do_if): Don't save and restore only_seen_white here.
1137         * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
1138         and skipping here.
1139
1140 2000-05-29  Richard Earnshaw (rearnsha@arm.com)
1141
1142         * flow.c (mark_used_reg): If a register is unconditionally live, 
1143         remove any conditional death information.
1144
1145 2000-05-29  Richard Henderson  <rth@cygnus.com>
1146
1147         * final.c (current_output_insn): New.
1148         (final_scan_insn): Set it.
1149         * output.h: Declare it.
1150
1151 2000-05-29  Richard Henderson  <rth@cygnus.com>
1152
1153         * stor-layout.c (finalize_record_size): Fix typo.
1154
1155         * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
1156         if nlabel is null.
1157
1158 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
1159
1160         * cpplib.h (cpp_reader): Remove if_stack.  Change
1161         potential_control_macro to a cpp_hashnode *.  Add skipping flag.
1162         * cpphash.h (struct ihash): Change control_macro to a
1163         cpp_hashnode * and shorten name to cmacro.
1164         Add NEVER_REINCLUDE constant.
1165
1166         * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
1167         Examine the cmacro node directly, no need to call cpp_defined.
1168         (_cpp_execute_include, read_include_file): Set cmacro to
1169         NEVER_REINCLUDE, not U"".
1170         * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
1171         (cpp_get_token): If pfile->skipping is true, discard text and
1172         keep scanning until we hit a directive; don't expand macros.
1173
1174         * cpplib.c (struct if_stack): Remove if_succeeded, add
1175         was_skipping. Change control_macro to a cpp_hashnode * and
1176         shorten name to cmacro.  Remove typedef IF_STACK.
1177         (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
1178         (conditional_skip, skip_if_group,
1179         consider_directive_while_skipping): Delete.
1180         (push_conditional): New.
1181         (_cpp_handle_directive): Don't process directives other than
1182         conditionals if we are skipping.
1183
1184         (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
1185         Update to new scheme.
1186         (validate_else): Skip rest of line here, unconditionally.
1187         (_cpp_unwind_if_stack): The stack is per-buffer.  Force
1188         pfile->skipping off.
1189
1190         (all): Remove `scare quotes' from error messages.
1191
1192 2000-05-29  Richard Henderson  <rth@cygnus.com>
1193
1194         * function.c (emit_return_into_block): New line_note arg; emit it.
1195         (thread_prologue_and_epilogue_insns): Attempt to locate a line note
1196         for the close brace to accompany HAVE_return.  Move all line notes
1197         following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
1198
1199 2000-05-29  Richard Henderson  <rth@cygnus.com>
1200
1201         * longlong.h [__alpha] (count_leading_zeros): New.
1202         (count_trailing_zeros): New.
1203         (COUNT_LEADING_ZEROS_0): New.
1204
1205         * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
1206         (alpha_split_conditional_move): New.
1207         * config/alpha/alpha-protos.h: Prototype them.
1208         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1209         (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
1210         * config/alpha/alpha.md: Update ffs cix commentary.
1211         (*ze_and_ne): New.
1212         (*nabssf2, *nabsdf2): New.
1213         (*mov[qhsd]icc_internal): Use add_operand.
1214         (if_then_else constant splitters): New.
1215         (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
1216         (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
1217
1218 2000-05-29  Richard Henderson  <rth@cygnus.com>
1219
1220         * combine.c (force_to_mode) [MINUS]: Convert subtraction from
1221         a constant to NEG or NOT when conditions allow.
1222
1223         * combine.c (combine_simplify_rtx): Don't create an if_then_else
1224         unless both args are general_operand.  Don't canonicalize plus
1225         to ior unless it helps.
1226
1227         * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
1228         instead track register_life_up_to_date.  Toggle no_new_pseudos
1229         around if_convert.  
1230
1231 2000-05-28  Geoff Keating  <geoffk@cygnus.com>
1232
1233         * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
1234         so output_operand doesn't see them.
1235
1236 Sun May 28 18:37:07 2000  Clinton Popetz  <cpopetz@cygnus.com>
1237
1238         * lcm.c (make_preds_opaque): Fix comment.
1239         (optimize_mode_switching): Use NORMAL_MODE instead of 
1240         MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
1241         FP_MODE_NONE to no_mode.  Rename MODE_AT_ENTRY to NORMAL_MODE.
1242         Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
1243         * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
1244         (MODE_USES_IN_EXIT_BLOCK): Delete.
1245         (MODE_AT_ENTRY) Rename to NORMAL_MODE.
1246         * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
1247         (MODE_AT_ENTRY): Rename to NORMAL_MODE.
1248         (MODE_NEEDED): Don't look for USE.
1249         (EPILOGUE_USES): Define.
1250
1251 Sun May 28 23:26:59 2000  Philippe De Muyter <phdm@macqel.be>
1252
1253         * mklibgcc.in (all): Variable initialised to `libgcc'.
1254
1255 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
1256
1257         * toplev.h (skip_leading_substring): New macro.
1258         * toplev.c (decode_f_option): Use skip_leading_substring instead
1259         of strncmp.
1260         (decode_W_option): Likewise.
1261
1262 2000-05-28  Nick Clifton  <nickc@cygnus.com>
1263
1264         * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
1265         modify reg_names.
1266
1267 2000-05-28  Richard Henderson  <rth@cygnus.com>
1268
1269         * regclass.c (record_operand_costs): Protect reg_changes_size
1270         with CLASS_CANNOT_CHANGE_SIZE.
1271
1272         * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
1273
1274 2000-05-28  Richard Henderson  <rth@cygnus.com>
1275
1276         * function.c (diddle_return_value): A pcc-style struct return
1277         returns a pointer.
1278
1279 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
1280
1281         * cppfiles.c: Read files in, using mmap if possible, then
1282         prescan them separately.
1283         (read_file, read_with_read): New functions.
1284         * cpplex.c: Don't define UCHAR_MAX.
1285         (_cpp_read_and_prescan): Rename to _cpp_prescan.  Don't read
1286         the file here.
1287
1288         * cppinit.c (handle_option): Automatically define __cplusplus,
1289         __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
1290         the respective -lang switch.
1291
1292         * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
1293         prototype): Move to...
1294         * cpplib.h: ... here.  Rename struct hashnode to struct
1295         cpp_hashnode and give it a typedef.  Rename _cpp_lookup to
1296         cpp_lookup.  Add 'fe_value' slot, a union tree_node *.
1297
1298 2000-05-27  Geoffrey Keating  <geoffk@cygnus.com>
1299
1300         * config/rs6000/rs6000.md (movsi): Constify 'name'.
1301
1302         * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
1303         (class_can_change_size): New variable.
1304         (reg_changes_size): New variable.
1305         (init_reg_sets_1): Initialise class_can_change_size.
1306         (record_operand_costs): Remove subreg_changes_size.
1307         Don't pass it around.  Instead update reg_changes_size.
1308         (regclass): Initialise and free reg_changes_size.  If a register
1309         changes size, don't preference it to a class that contains
1310         registers that can't change size.
1311         (record_reg_classes): Don't look at subreg_changes_size.
1312
1313 2000-05-27  Richard Henderson  <rth@cygnus.com>
1314
1315         * print-rtl.c (reg_names): Remove const.
1316         * regclass.c (reg_names): Likewise.
1317         * regs.h (reg_names): Likewise.
1318         * hard-reg-set.h (reg_names): Likewise.
1319
1320 2000-05-27  Richard Henderson  <rth@cygnus.com>
1321
1322         * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
1323
1324 2000-05-27  Richard Henderson  <rth@cygnus.com>
1325
1326         * config/alpha/alpha.c (alpha_does_function_need_gp): Test
1327         TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
1328         (alpha_expand_prologue): Emit prologue_mcount if needed.
1329         * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
1330         * config/alpha/alpha.md (prologue_mcount): New.
1331         * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
1332         (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
1333         * config/alpha/netbsd.h: Likewise.
1334
1335 2000-05-27  Richard Henderson  <rth@cygnus.com>
1336
1337         * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
1338         change to config/elfos.h.
1339
1340 2000-05-27  Richard Henderson  <rth@cygnus.com>
1341
1342         * Makefile.in (resource.o): Depend on except.h.
1343         * except.h (output_exception_table_data): Prototype.
1344         * genconfig.c (gen_peephole2): Prototype.
1345         * genemit.c (main): Include ggc.h.
1346         * genoutput.c: Revert parts of last change: include errors.h
1347         (main): Set progname.
1348         * recog.c: Include hard-reg-set.h before recog.h.
1349         * resource.c: Include except.h.
1350
1351         * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
1352         with RTX_CODE.
1353         (alpha_write_linkage): Protect with BUFSIZ.
1354         (alpha_need_linkage): Update prototype.
1355         * config/alpha/alpha.c (function_arg): Move VMS code here.
1356         (alpha_links_base): Remove.
1357         (alpha_links): New.
1358         (mark_alpha_links_node, mark_alpha_links): New.
1359         (alpha_write_one_linkage): New.
1360         (alpha_need_linkage): Use a splay tree.  Build the linkage symbol.
1361         (alpha_write_linkage): Use splay_tree_foreach.
1362         * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
1363         to get the linkage symbol.
1364         (call_value_vms): Likewise.
1365         * config/alpha/elf.h (output_file_directive): Remove decl.
1366         (ctors_section, dtors_section): Prototype.
1367         (sbss_section, sdata_section): Prototype.
1368         * config/alpha/vms.h (FUNCTION_ARG): Remove.
1369         (readonly_section, link_section, literals_section): Prototype.
1370         (ctors_section, dtors_section): Prototype.
1371         (vms_valid_decl_attribute_p): Remove decl.
1372         (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
1373
1374 2000-05-27  Geoff Keating  <geoffk@cygnus.com>
1375
1376         * reload.c (get_secondary_mem): Don't widen floating-point modes.
1377
1378         * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
1379         substituting the REG in a (subreg:X (reg:Y ...)).
1380
1381 2000-05-28  Neil Booth  <NeilB@earthling.net>
1382
1383         * cpplex.c (_cpp_lex_line): Merge vertical space.  Flag
1384         first token of a line BOL.  Update EOF code for this.
1385         Remove illegal directive check - it appears in the (not
1386         yet committed) caller.
1387         * cpplib.h (BOL): New flag.
1388
1389 2000-05-28  Neil Booth  <NeilB@earthling.net>
1390
1391         * cpplex.c (_cpp_init_toklist): No comment space to initialise.
1392         (_cpp_free_toklist): No comment space to free.
1393         (expand_comment_space): Remove.
1394         (save_comment_space): Place the comment in the current token and
1395         not in a separate comment space.
1396         (_cpp_lex_line): Save comments during plain code and #define
1397         directives only.
1398         * cpplib.h (struct _cpp_toklist): Remove comment space.
1399
1400 2000-05-28  Neil Booth  <NeilB@earthling.net>
1401
1402         * cppexp.c (parse_assertion): Supply extra argument to
1403         _cpp_init_toklist.
1404         * cpplib.c (do_assert, do_unassert): Similarly.
1405         * cpphash.h (_cpp_init_toklist) Update.
1406         (_cpp_expand_token_space): New.
1407         (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
1408         * cpplex.c (_cpp_init_toklist): New argument.
1409         (parse_string2): New argument multiline_ok.
1410         (spell_token): Take a const cpp_token *.
1411         (INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
1412         (SPELL_ macros): Replace with enum.
1413         (expand_token_space): Replace with _cpp_expand_token_space.
1414         Take COUNT argument.
1415         (IS_DIRECTIVE): Update.
1416         (_cpp_lex_line): Update token structure before parsing number.
1417         Don't assume start at beginning of token list.
1418         (save_comment): Use INIT_TOKEN_NAME.
1419
1420 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
1421
1422         * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
1423         -Wmissing-prototypes.
1424         * configure: Regenerate.
1425         * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
1426
1427         * builtins.c, calls.c: Change all instances of gen_call_* or
1428         gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
1429         * calls.c (struct_value_size_rtx): Separate definition from
1430         initialization to avoid unused variable warning.
1431
1432         * genflags.c (gen_macro): New function.
1433         (gen_proto): Call it for gen_call_* and gen_sibcall_*.
1434         (gen_nonproto): Delete.
1435         (gen_insn): Put all insns on the same obstack.
1436         (main): Generate prototypes for everything unconditionally.
1437
1438         * configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented 
1439         out check for wchar_t.
1440         * acconfig.h: Add template for ssize_t.  Remove @TOP@.
1441         * system.h: Add infrastructure for defining missing   
1442         TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback  
1443         definitions of UCHAR_MAX and SSIZE_MAX.
1444         * configure: Regenerate.
1445         * config.in: Regenerate.
1446
1447         * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
1448         Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
1449         headers.
1450         (clean): No need to delete libgcc1.a, libgcc1-asm.a,
1451         libgcc2.a, or libgcc1.null.
1452
1453 2000-05-27  Richard Henderson  <rth@cygnus.com>
1454
1455         * Makefile.in (recog.o): Don't depend on resource.h.
1456         * recog.c: Don't include resource.h.
1457         (recog_last_allowed_insn): Remove.
1458         (recog_next_insn): Remove.
1459         (struct peep2_insn_data): New.
1460         (peep2_insn_data, peep2_current): New.
1461         (peep2_next_insn): New.
1462         (peep2_regno_dead_p, peep2_reg_dead_p): New.
1463         (peep2_find_free_register): New.
1464         (peephole2_optimize): Track life information by insn as we go.
1465         * recog.h: Update declarations.
1466         * resource.c (find_free_register, reg_dead_p): Remove.
1467         * resource.h: Remove their declarations.
1468         * toplev.c: Include hard-reg-set.h before recog.h.
1469
1470         * genconfig.c (max_insns_per_peep2): New.
1471         (gen_peephole2): New.
1472         (main): Call it.
1473         * genemit.c (output_peephole2_scratches): Generate calls to
1474         peep2_find_free_register; adjust surrounding code.
1475         (main): Have insn-emit.c include hard-reg-set.h before recog.h.
1476         * genrecog.c (change_state): Don't track last_insn.
1477         (write_action): Write into *_pmatch_len before accepting.
1478         (write_tree): Adjust peephole2_insns and subroutines to match.
1479
1480         * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
1481
1482         * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
1483         (hard_int_register_operand): New.
1484         * config/alpha/alpha-protos.h: Declare it.
1485         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1486         * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
1487         as needed; use peep2_reg_dead_p instead of dead_or_set_p.
1488
1489 2000-05-27  Richard Henderson  <rth@cygnus.com>
1490
1491         * function.c (thread_prologue_epilogue_insns): Don't move the
1492         line note at the head of the chain.  Only force a lineno note
1493         before the end of block 0.
1494
1495 2000-05-27  Richard Henderson  <rth@cygnus.com>
1496
1497         * gensupport.c (collect_insn_data): Record the maximum number
1498         of alternatives, not the last seen.
1499
1500         * genoutput.c: Don't include errors.h.
1501         (struct data): Add lineno member.
1502         (have_error): New.
1503         (scan_operands): Use message_with_line instead of error.
1504         (validate_insn_alternatives): Likewise.
1505         (gen_insn): Accept and store the pattern's line number.
1506         (gen_peephole, gen_expand, gen_split): Likewise.
1507         (main): Don't set progname.  Pass line_no to gen_foo.
1508
1509 2000-05-27  Richard Henderson  <rth@cygnus.com>
1510
1511         * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
1512         * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
1513         * config/d30v/d30v.md (attr predicable): New.
1514         (all insn patterns): Mark non-predicable patterns; use %: on the rest.
1515         (andsi3*): Unify into one pattern.
1516         (iorsi3*, xorsi3*): Likewise.
1517         (peephole2 patterns): Use peep2_reg_dead_p; verify not a
1518         conditional return.
1519         (old cond_exec patterns): Remove.
1520         (define_cond_exec): New.
1521
1522 Sat May 27 11:01:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1523
1524         * tree.h (TREE_CODE_LENGTH): New macro.
1525         * c-common.c (c_find_base_decl): Use it.
1526         * expr.c (safe_from_p): Likewise.
1527         * print-tree.c (print_node): Likewise.
1528         * tree.c (make_node, copy_node, get_identifier): Likewie.
1529         (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
1530         (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
1531         * fold-const.c (make_range): Likewise.
1532         (fold): Likewise; also use first_rtl_op.
1533         * c-iterate.c (collect_iterators): Use first_rtl_op.
1534         * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
1535         Use IS_EXPR_CODE_CLASS.
1536         (preexpand_calls): Likewise.
1537         * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
1538         and TREE_CODE_LENGTH.
1539         * stmt.c (warn_if_unused_value): If no operands, no unused value.
1540
1541 2000-05-26  Geoffrey Keating  <geoffk@cygnus.com>
1542
1543         * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
1544         than '%1(%*)'.
1545         (movdi_internal64): Likewise.
1546
1547         * config/rs6000/rs6000.md: Correct order of operands for DImode
1548         boolean patterns.
1549
1550         * config/rs6000/rs6000.c (boolean_or_operator): New function.
1551         * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
1552         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
1553         * config/rs6000/rs6000.md: Use boolean_or_operator instead of
1554         boolean_operator for the boolean patterns without NOTs.
1555
1556         * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
1557         from reg_or_u_cint_operand.  Change comment and behaviour.
1558         (logical_operand): Clean up, add assertion.
1559         (non_logical_cint_operand): Also check for
1560         reg_or_logical_cint_operand.
1561         * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
1562         * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
1563         in the expander.
1564         (xorsi3): Likewise.
1565         (iordi3): Likewise.
1566         (xordi3): Likewise.
1567
1568 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
1569
1570         * tree.h (struct record_layout_info): Rename to (struct
1571         record_layout_info_s).
1572         * stor-layout.c (start_record_layout): Replace
1573         `record_layout_info' with `record_layout_info_s'.
1574
1575 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
1576
1577         * flow.c (find_label_refs): New function.
1578         (find_basic_blocks_1): Call it for each alternative of a call 
1579         placeholder.
1580
1581 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
1582
1583         * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
1584         of get_pc.
1585
1586 2000-05-25  Richard Henderson  <rth@cygnus.com>
1587
1588         * config/alpha/alpha.c (alpha_comparison_operator): Don't be
1589         so strict about DImode.
1590         (alpha_swapped_comparison_operator): Likewise.
1591         * config/alpha/alpha.md (*setne_internal): Name it.  Allow
1592         any integer output mode.
1593         (*setcc_internal): Likewise.
1594         (*setcc_swapped_internal): Likewise.
1595         (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
1596         (*mov[qhs]icc_internal): New.
1597         (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
1598
1599 2000-05-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1600
1601         * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
1602
1603 2000-05-25  Richard Henderson  <rth@cygnus.com>
1604
1605         * bb-reorder.c (reorder_block_def): Reorder elements for size.
1606         Remove add_jump; add next; replace flags with visited.
1607         (rbd_init): Remove.
1608         (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
1609         (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
1610         (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
1611         (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
1612         (RBI): New.
1613         (reorder_index, reorder_last_visited): Remove.
1614         (skip_insns_after_block): Rewrite to use a switch.
1615         (get_common_dest): Remove.
1616         (chain_reorder_blocks): Remove.
1617         (record_effective_endpoints): Split out from reorder_basic_blocks.
1618         (make_reorder_chain): Likewise.  Loop until all blocks are placed.
1619         (make_reorder_chain_1): Renamed from old make_reorder_chain.
1620         Only construct the reorder chain, do not move insns.  Try harder
1621         to tail recurse.
1622         (label_for_bb, emit_jump_to_block_after): New.
1623         (fixup_reorder_chain): Use them.  Do bulk block movement.  Examine
1624         and adjust the jump insns appropriately.  Fixup basic_block_info.
1625         (verify_insn_chain): Always define.
1626         (relate_bbs_with_scopes): Call xmalloc, not xcalloc.  Fix thinko
1627         in allocation size.
1628         (make_new_scope): Don't write zeros to calloc'd space.
1629         (build_scope_forest): Rely on xrealloc to DTRT.
1630         (reorder_basic_blocks): Don't build loop nest.  Don't fail if
1631         profile_arc_flag.  Streamline EH test.
1632
1633         * flow.c (redirect_edge_succ, redirect_edge_pred): New.
1634         * basic-block.h: Declare them.
1635
1636 2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
1637
1638         * emit-rtl.c (reset_used_decls): New function.
1639         (unshare_all_rtl_again): Call it.
1640
1641 2000-05-25  Zack Weinberg  <zack@wolery.cumb.org>
1642
1643         * cpplex.c (maybe_macroexpand): Warn about function-like
1644         macros used in non-function context, if -Wtraditional.
1645
1646 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
1647
1648         * recog.c (peephole2_optimize): Use INSN_P.
1649
1650 2000-05-25  Richard Henderson  <rth@cygnus.com>
1651
1652         * ifcvt.c (seq_contains_jump): New.
1653         (noce_try_store_flag_constants): Use it to fail conversion.
1654         (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
1655
1656 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
1657
1658         * except.h (can_throw): Declare it.
1659         * except.c (can_throw): Give it external linkage.
1660         * resource.c (find_dead_or_set_registers): Use can_throw.
1661         
1662 2000-05-25  Richard Henderson  <rth@cygnus.com>
1663
1664         * flow.c (mark_set_1): Don't record conditionally dead memory.
1665
1666 2000-05-25  Jan Hubicka  <jh@suse.cz>
1667
1668         * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
1669         and pc_set at the place of simplejump_p and condjump_p.
1670         * cse.c (record_jump_equiv): Likewise.
1671         * emit-rtl.c (emit): Likewise.
1672         * explow.c (find_next_ref): Likewise.
1673         * flow.c (tidy_fallthru_edge): Likewise.
1674         (init_propagate_block_info): Likewise.
1675         * gcse.c (delete_null_pointer_checks): Likewise.
1676         * ifcvt.c (cond_exec_get_condition, noce_get_condition,
1677         dead_or_predicable): Likewise.
1678         * integrate.c (copy_insn_list): Likewise.
1679         * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
1680         for_each_insn_in_loop, check_dbra_loop, get_condition,
1681         insert_bct, load_mems): Likewise.
1682         * resource.c (find_dead_or_set_registers): Likewise.
1683         * sibcalls.c (simplejump_p): Likewise.
1684         * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
1685
1686 2000-05-25  David Edelsohn  <edelsohn@gnu.org>
1687
1688         * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
1689         to STRING case.  Use doubleword STRING move for TARGET_POWERPC64
1690         when unaligned.
1691         * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
1692         (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
1693         (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
1694         * rs6000.md: Name various internal patterns.
1695
1696 2000-05-25  Jan Hubicka  <jh@suse.cz>
1697
1698         * jump.c (invert_exp_1): Remove first argument, use pc_set
1699         to get the expression.
1700         (redirect_exp): Make static; redirect only the pc_set expression,
1701         remove first argument.
1702         (invert_exp): Remove first argument, make static.
1703         (jump_optimize): Use any_condjump_p, any_uncondjump_p and
1704         any_onlyjump at most places where we originaly did condjump_p
1705         and simplejump_p.
1706         (jump_back_p, follow_jumps, thread_jumps): Likewise.
1707         (delete_barrier_succesors): Use pc_set.
1708         (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
1709         calls of invert_exp and redirect_exp.
1710         * rtl.h (redirect_exp, invert_exp): Remove.
1711         * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
1712
1713 2000-05-25  Richard Henderson  <rth@cygnus.com>
1714
1715         * stmt.c (expand_end_bindings): Fix thinko last change.
1716
1717 2000-05-25  Andrew MacLeod  <amacleod@cygnus.com>
1718             Andrew Haley  <aph@cygnus.com>
1719
1720         * except.c  (func_eh_entry): Add emitted field.
1721         (new_eh_region_entry): Set emitted field to 0;
1722         (output_exception_table_entry): Only emit previously un-emitted data,
1723         and send it to the eh_data section.
1724         (output_exception_table): Break out common parts. Output
1725         exception table for entire compilation unit to eh_data section.
1726         (output_exception_table_data): Common parts of output_exception_table.
1727         Send output to eh_data section.
1728         (output_function_exception_table): Output exception table data for
1729         a single function to eh_data section.
1730         (free_exception_table): New external to free the table.
1731         * except.h (free_exception_table): Add prototype.
1732         (output_function_exception_table): Add prototype.
1733         * final.c (final_end_function): Output function exception table
1734         for IA64_UNWIND_INFO.
1735         (final_scan_insn): Emit any unwind directives for an insn.
1736
1737         * frame-dwarf2.c: New file containing all DWARF 2 specific code
1738         from frame.c.
1739         * frame.c: Remove all DWARF 2 specific code.
1740         * config/ia64/frame-ia64.c: New file.
1741         (gthread_stuff): Make all gthread available with 
1742         IA64_UNWIND_INFO.
1743         (dwarf_fde): Define an IA64 struct for dwarf_fde.
1744         (__register_frame_info, __register_frame): Move to common area of file.
1745         (__register_frame_info_table, __register_frame_table): Move to common i
1746         area.
1747         (__deregister_frame_info, __deregister_frame): Move to common area.
1748         (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
1749         (read_uleb128): New version for ia64.
1750         (get_unwind_record): Read the next IA-64 unwind record.
1751         (read_R_record): Read a region header record.
1752         (process_a_b_reg_code): X record helper.
1753         (read_X_record): Read an X format record.
1754         (read_B_record): Read a B format record.
1755         (P3_record_types): List of record types matching the P3 format.
1756         (P7_record_types): List of record types matching the P7 format.
1757         (P8_record_types): List of record types matching the P8 format.
1758         (read_P_record): Read a P format record.
1759         (init_ia64_reg_loc): Set default fields for a register.
1760         (init_ia64_unwind_frame): Set defaults for all register records.
1761         (execute_one_ia64_descriptor): Execute one descriptor record.
1762         (rse_address_add): Calculate the position of a local reg in memory.
1763         (normalize_reg_loc): Turn a location descriptor into a memory address.
1764         (maybe_normalize_reg_loc): Only normalize a descriptor if it falls 
1765         within a specified PC offset range.
1766         (get_real_reg_value): Given a register location, retrieve its value.
1767         (set_real_reg_value): Change the value of a register location.
1768         (copy_reg_value): Copy reg values, if needed.
1769         (copy_saved_reg_state): Copy all registers that need to be copied.
1770         (process_state_between): Normalize all frame register records that
1771         fall within the specified PC range.
1772         (frame_translate): Take a processed frame description, and turn 
1773         everything into addresses.
1774         (build_ia64_frame_state ): Find and create frame state record for a PC.
1775         (get_personality): Get the personality routine for a given frame.
1776         (get_except_table): Get the exception table for a given frame.
1777         (record_name): Unwind record names for debugging.
1778         (print_record): Print and unwind record.
1779         (print_all_records): Print an entire unwind image.
1780         (__ia64_backtrace): Print a backtrace.
1781         (ia64_backtrace_helper): New function.
1782         (__register_frame_info_aux): New function.
1783         * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
1784
1785         * frame.h (enum unw_record_type): New unwind record types.
1786         (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
1787         (struct unw_r_record, unwind_record): New unwind record structs.
1788         (struct unwind_info_ptr): Unwind information layout.
1789         (IA64_UNW_LOC_TYPE_*): Macros for different types for location 
1790         descriptors.
1791         (struct ia64_reg_loc): Register location description.
1792         (struct ia64_frame_state): Location of all registers in a frame.
1793         (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
1794         * libgcc2.c (__ia64_personality_v1): Personality routine.
1795         (__calc_caller_bsp): Calculate the bsp register for the caller's
1796         frame.
1797         (ia64_throw_helper): Figure out who to return to and set up the 
1798         registers.
1799         (__throw): Throw routine.
1800
1801         * output.h (assemble_eh_align, assemble_eh_label): New functions
1802         to generate EH info where we want it.   
1803         (assemble_eh_integer): New function.
1804         * toplev.c (compile_file): Output module level exception table for
1805         non-ia64 targets.
1806         (main): Set exceptions_via_longjump and flag_new_exceptions based 
1807         on IA64_UNWIND_INFO too.
1808
1809         * varasm.c (assemble_eh_label): Generate a label via
1810         ASM_OUTPUT_EH_LABEL if it has been specified.
1811         (assemble_eh_align): Generate an alignment directive via 
1812         ASM_OUTPUT_EH_ALIGN if it has been specified.
1813         (assemble_eh_label): Generate an integer value via
1814         ASM_OUTPUT_EH_type if they have been specified.
1815         * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
1816         (ia64_init_builtins): Add __builtin_ia64_bsp
1817         and __builtin_ia64_flushrs.     
1818         (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
1819         IA64_BUILTIN_FLUSHRS.
1820         * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
1821         IA64_BUILTIN_FLUSHRS.
1822
1823         * config/ia64/ia64.md (flushrs): New insn to flush the register
1824         stack.  Add to unspec list.
1825
1826         * config/ia64/crtbegin.asm (frame_object): Change size.
1827         (__do_frame_setup_aux): New function.
1828         * config/ia64/crtend.asm: call __do_frame_setup_aux.
1829         * config/ia64/t-ia64 (LIB2ADDEH): Add.
1830         * Makefile.in (LIB2ADDEH): Add.
1831         (LIB2ADD): Use LIB2ADDEH.
1832         
1833 2000-05-24  Richard Henderson  <rth@cygnus.com>
1834
1835         * recog.c (offsettable_address_p): If mode size is zero, assume
1836         BIGGEST_ALIGNMENT.
1837
1838 2000-05-24  J. David Anglin  <dave@hiauly.hia.nrc.ca>
1839
1840         * configure.in: Check for -Wno-long-long option support and improve
1841         handling of warning CFLAGS for stages 1 and 2.
1842         * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
1843         * configure: Regenerate.
1844
1845 Wed May 24 19:37:53 2000  Jeffrey A Law  (law@cygnus.com)
1846
1847         * gcc.texi: Remove contributor list.  Instead include contrib.texi.
1848         * contrib.texi: New file.
1849
1850 Thu May 25 02:27:22 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1851
1852         * loop.c (basic_induction_var): Avoid double recording of an increment.
1853
1854 Thu May 25 02:19:27 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1855
1856         * Back out this patch:
1857         Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
1858           * loop.h (struct induction): Add multi_insn_incr.
1859           * loop.c (basic_induction_var): New multi_insn_incr argument.
1860           Set it if we search back through previous insns for the biv.
1861           (record_biv): New multi_insn_incr argument; fill in struct induction.
1862           (strength_reduce): Discard an iv with multiple bivs, any of
1863           which require multiple insns to increment.
1864
1865         * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
1866
1867 Thu May 25 02:09:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1868
1869         * rtl.h (loc_mentioned_in_p): Declare.
1870         * reload.c (loc_mentioned_in_p): Moved from here...
1871         * rtlanal.c (loc_mentioned_in_p): to here.  No longer static.
1872         Fix loop increment for 'E' handling.
1873         * loop.c (strength_reduce): When doing biv->giv conversion,
1874         take multi-insn biv increments into account.
1875
1876 2000-05-24  Jason Merrill  <jason@casey.soma.redhat.com>
1877
1878         * stmt.c (expand_end_bindings): Look through NOTEs to find a
1879         BARRIER.
1880
1881 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
1882
1883         * calls.c (expand_call): Handle cleanups in tail-recursion
1884         arguments analagously to cleanups in sibling calls.
1885
1886 2000-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1887
1888         * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
1889         All callers changed.
1890
1891 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
1892
1893         * expr.c (expand_assignment, store_expr, expand_expr,
1894         expand_expr_unaligned): Set in_check_memory_usage while emitting
1895         chkr_check_addr libcall.
1896
1897 2000-05-24  Nick Clifton  <nickc@cygnus.com>
1898
1899         * fold-const.c (extract_muldiv): When constructing a
1900         multiplier/divisor, do not expect const_binop to correctly
1901         determine if overflow has occured, so check explicitly.
1902
1903 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
1904
1905         * c-decl.c (build_enumerator): Don't modify the value's type,
1906         convert it.
1907
1908 2000-05-24  Andreas Jaeger  <aj@suse.de>
1909
1910         * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
1911
1912 2000-05-24  Eric Christopher <echristo@cygnus.com>
1913
1914         * configure.in: Redefine inhibit_libc conditions.
1915         * libgcc2.c: Remove inhibit_libc conditional define.
1916         * configure: Regenerate.
1917
1918 2000-05-24  Phil Edwards  <pme@sourceware.cygnus.com>
1919
1920         * configure.in:  For --enable-languages=LIST, check for empty LIST.
1921         * configure:  Regenerate.
1922
1923 2000-05-24  Lars Brinkhoff  <lars@nocrew.org>
1924
1925         * pdp11.h (STACK_BOUNDARY): Define.
1926
1927 2000-05-24  Jakub Jelinek  <jakub@redhat.com>
1928
1929         * ifcvt.c (if_convert): Update life info globally.
1930
1931 2000-05-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1932
1933         * emit-rtl.c (unshare_all_decls): New function.
1934         (unshare_all_rtl): Call it.
1935
1936 2000-05-23  Nick Clifton  <nickc@cygnus.com>
1937
1938         * configure.in: Treat 'strongarm' as if it were 'arm' when
1939         determining cpu type.
1940
1941         * configure: Regenerate.
1942
1943         * config/arm/arm.c: Change 'char *' to 'const char *' for cases
1944         where constant strings are involved.
1945
1946         * config/arm/arm.h (arm_condition_codes): Change type to 'const
1947         char *'.
1948
1949         * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
1950         cases where constant strings are involved.
1951
1952 Tue May 23 15:08:31 2000  Clinton Popetz  <cpopetz@cygnus.com>
1953
1954         * config/sh/sh.c (gen_far_branch, split_branches): Update
1955         to reflect new prototypes for redirect_jump and invert_jump.
1956         (sh_insn_length_adjustment): Get rid of const warnings.
1957
1958 2000-05-23  Kazu Hirata  <kazu@hxi.com>
1959
1960         * invoke.texi (Options for Debugging Your Program or GCC): Update
1961         the names of dump files.
1962
1963 Tue May 23 13:58:52 2000  Philippe De Muyter  <phdm@macqel.be>
1964
1965         * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
1966         * configure: Regenerated.
1967
1968 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
1969
1970         * simplify-rtx.c (SIGN_EXTEND): New macro.
1971         (simplify_unary_operation, simplify_binary_operation, 
1972         simplify_relational_operation): Use SIGN_EXTEND.  Make low
1973         halves of (low, high) pairs unsigned if they weren't already.       
1974         (simplify_ternary_operation): Cast INTVAL to unsigned before
1975         comparing to a MODE_BITSIZE.
1976
1977 2000-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1978
1979         * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
1980         rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
1981         
1982         * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
1983         gcc_AC_NEED_DECLARATIONS.
1984
1985         * dwarfout.c: Don't prototype time().
1986
1987         * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
1988
1989         * system.h: Likewise.
1990
1991         * toplev.c: Likewise.
1992
1993 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
1994
1995         * c-decl.c (pushdecl): Invert sense of test for non-global types.
1996
1997 Tue May 23 18:11:42 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1998
1999         * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
2000
2001 2000-05-23  Jonathan Larmour  <jlarmour@redhat.co.uk>
2002
2003         * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
2004
2005 Tue May 23 06:50:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2006
2007         * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
2008         (alpha_start_function): Never write ..ng label if VMS or NT.
2009         (alpha_align_insns): Remove GP_IN_USE arg.
2010         Alignment now unsigned.
2011         (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
2012         * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
2013         and two define_insn's.
2014
2015 2000-05-22  Richard Henderson  <rth@cygnus.com>
2016
2017         * combine.c (simplify_comparison): Use trunc_int_for_mode.
2018
2019 2000-05-22  Richard Henderson  <rth@cygnus.com>
2020
2021         * stor-layout.c (place_field): Change rli->size to rli->offset.
2022
2023 2000-05-22  Richard Henderson  <rth@cygnus.com>
2024
2025         * function.c (thread_prologue_and_epilogue_insns): Make sure 
2026         existing line number notes appear after the prologue.
2027
2028 Mon May 22 21:49:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2029
2030         * config/alpha/alpha.c (alpha_fnname): New static variable.
2031         (print_operand, case '~'): New case.
2032         (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
2033         (alpha_start_function): Set alpha_fnname.
2034         Write "ng" label if no ldgp; don't write ldgp insn.
2035         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
2036         * config/alpha/alpha.md (prologue_ldgp): New define_insn.
2037
2038 Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
2039
2040         * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
2041         on deleted labels.
2042
2043 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
2044
2045         * varasm.c (eh_frame_section): Revert change to argument list.
2046
2047 Mon May 22 13:14:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2048
2049         * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
2050         (gen_extend_insn, can_fix_p, can_float_p): Likewise.
2051         
2052         * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
2053         dangling "else" that causes "break" to be conditional.
2054         Also remove unneeded code at start.
2055
2056 Mon May 22 17:31:35 2000  Philippe De Muyter  <phdm@macqel.be>
2057
2058         * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
2059         * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
2060         * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
2061
2062 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
2065         just one argument.
2066
2067 Mon May 22 06:57:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2068
2069         * alias.c (record_component_aliases): New function.
2070         * tree.h: Clean up some declarations and comments.
2071         (record_component_aliases): New declaration.
2072         * tree.c (get_alias_set): If type and has alias set, use it.
2073
2074 2000-05-22  Richard Henderson  <rth@cygnus.com>
2075
2076         * simplify-rtx.c (simplify_ternary_operation): Try to simplify
2077         IF_THEN_ELSE to a setcc form.
2078         * jump.c (can_reverse_comparison_p): Be prepared for insn null.
2079
2080 2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2081
2082         * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
2083         (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
2084
2085 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2086
2087         * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
2088         not a PARALLEL.
2089
2090 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
2091
2092         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2093         * config/mn10300/mn10300.c (print_operand): Likewise.
2094
2095         * final.c (split_double): Right shift of negative values is not
2096         portable.
2097
2098         * ifcvt.c (if_convert): Scan and kill dead code.
2099
2100         * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
2101
2102 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
2103
2104         * diagnostic.c: Eliminate implicit int.
2105         * except.c, gcc.c: Add static prototypes.
2106         * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
2107         * gensupport.c (process_rtx): Use XVEC to initialize vector
2108         slot of 'split'.
2109
2110         * print-rtl.c: If DEBUG_REGISTER_NAMES, define static 
2111         debug_reg_names instead of static reg_names.  If not, define
2112         global reg_names.
2113         * regclass.c: Don't define global reg_names unless
2114         DEBUG_REGISTER_NAMES is defined.
2115
2116         * reload1.c (order_regs_for_reload): Remove unused variable.
2117         * varasm.c: Include output.h after defaults.h.  Define
2118         eh_frame_section as function of no args, not of unspecified args.
2119
2120         * gcc.c: Constify argbuf; arguments to store_arg,
2121         process_command, main; elements of struct command and struct
2122         switchstr; local variables in execute, process_command, main.
2123
2124 2000-05-20  Bruce Korb  <bkorb@gnu.org>
2125
2126         * fixinc/inclhack.def:  many applications of c_fix=format + tests
2127         * fixinc/check.diff:  regenerated
2128         * fixinc/fixincl.x:  regenerated
2129
2130 Sat May 20 09:30:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2131
2132         * alias.c: Clarify some comments.
2133         (record_base_value): REGNO is unsigned.
2134         * rtl.h (record_base_value): Likewise.
2135
2136         * alias.c (aliases_everything_p): Don't special-case QImode here.
2137         * c-common.c (c_get_alias_set): Do it here.
2138         Handle BIT_FIELD_REF by getting alias info for arg.
2139         Use POINTER_TYPE_P.
2140
2141 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
2142
2143         * mklibgcc.in: Restore rule to create ${dir}.
2144
2145 Sat May 20 08:45:41 2000  H.J. Lu  <hjl@gnu.org>
2146
2147         * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
2148         GCC_FOR_TARGET used by MULTILIBS.
2149         * mklibgcc.in: Make sure each .o file depends on the
2150         directory it will be in.
2151         Make the multilib directory depends libgcc.
2152
2153 Sat May 20 08:29:28 2000  H.J. Lu  <hjl@gnu.org>
2154
2155         * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
2156
2157 Sat May 20 07:27:35 2000  Alexandre Oliva  <aoliva@cygnus.com>
2158
2159         * fold-const.c (make_range): Handle degenerated intervals.
2160         Fixes c-torture/execute/991221-1.c
2161
2162 Fri May 19 18:16:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2163
2164         * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
2165         * reload.c (find_equiv_reg): Likewise.
2166         * alias.c (init_alias_analysis): Likewise.
2167         Only call prologue_epilogue_contains on insns.
2168         * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
2169         * bb-reorder.c (hard-reg-set.h): Include earlier.
2170         * haifa-sched.c (hard-reg-set.h): Likewise.
2171         * ifcvt.c (hard-reg-set.h): Likewise.
2172         * local-alloc.c (hard-reg-set.h): Likewise.
2173         * loop.c (hard-reg-set.h): Likewise.
2174         * predict.c (hard-reg-set.h): Likewise.
2175         * regrename.c (hard-reg-set.h): Likewise.
2176         * flow.c (hard-reg-set.h): Likewise.
2177         (reg_set_to_hard_reg_set): New function.
2178         * bitmap.c (regs.h, basic-block.h): No longer include.
2179         (bitmap.h): Now include.
2180         * conflict.c (hard-reg-set.h): Include.
2181         * profile.c (hard-reg-set.h): Likewise.
2182         * print-rtl.c (hard-reg-set.h): Likewise.
2183         * sbitmap.c (hard-reg-set.h): Likewise.
2184         * toplev.c (hard-reg-set.h): Likewise.
2185         * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
2186         * hard-reg-set.h (reg_names): Now constant.
2187         * regs.h (reg_names): Likewise.
2188         * regclass.c (reg_names): Likewise.
2189         * loop.h (basic-block.h): No longer include.
2190         (bitmap.h): Now include.
2191         * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
2192         * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
2193         (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
2194
2195 2000-05-19  Jan Hubicka  <jh@suse.cz>
2196             Richard Henderson  <rth@cygnus.com>
2197
2198         * basic-block.h (struct edge_def): New field "count".
2199         (struct basic_block_def): Likewise.
2200         * flow.c (entry_exit_blocks): Add count fileds.
2201         (split_edge): Keep count information up-to-date.
2202         (dump_edge_info, dump_flow_info): Dump count fields.
2203
2204         * final.c (count_instrumented_edges): Rename to edge from arc.
2205         (end_final): Update users.
2206         * profile.c: Include expr.h, basic-block.h.
2207         (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
2208         (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
2209         (ignore_next_note, return_label_execution_count): Kill.
2210         (bbg_file_name, da_file_name): Kill.
2211         (edge_info, bb_info): New structures.
2212         (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
2213         (count_instrumented_edges, total_num_edges): Rename to edge from arc.
2214         (total_num_edges_instrumented): Likewise.
2215         (init_arc, expand_spanning_tree): Kill.
2216         (fill_spanning_tree, tablejump_entry_p): Kill.
2217         (instrument_edges):  Rewrite from instrument_arcs to use
2218         commit_edge_insertions infrastructure.
2219         (compute_branch_probabilities): Remove arguments; rewrite for
2220         CFG infrastructure; use rtl_dump_file directly.
2221         (branch_prob, find_spanning_tree): Likewise.
2222         (union_groups, find_group): New.
2223         (init_branch_prob): Make bbg_file_name and da_file_name local.
2224         (end_branch_prob): Use rtl_dump_file directly.
2225         (init_edge_profiler): Rename to edge from arc.
2226         (output_arc_profiler): Kill.
2227         (gen_edge_profiler): New.
2228         (output_func_start_profiler): Turn off profiling.  Make the
2229         constructor static when we can.
2230         * rtl.h (branch_prob, end_branch_prob): Update prototypes.
2231
2232         * toplev.c (DFI_flow): Remove.
2233         (DFI_cfg, DFI_life): New.
2234         (dump_file): Update accordingly.
2235         (compile_file): Call end_branch_prob if profile_arc_flag too.
2236         (rest_of_compilation): Move flow1 cfg creation to DFI_cfg.  Do edge
2237         profiling after the CFG is built.  Move flow1 life analysis to
2238         DFI_life.  Always estimate remaining probabilities.
2239
2240 2000-05-19  Richard Henderson  <rth@cygnus.com>
2241
2242         * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
2243
2244         * flow.c (make_edges): The sibling call edge to exit is abnormal.
2245
2246 2000-05-19  Richard Henderson  <rth@cygnus.com>
2247
2248         * jump.c (redirect_jump): Add delete_unused argument.  Don't
2249         remove labels and code following when LABEL_NUSES goes to zero.
2250         (invert_jump): Likewise.
2251         (jump_optimize_1): Fix redirect/invert arguments.
2252         (do_cross_jump, thread_jumps): Likewise.
2253         * flow.c (split_edge): Likewise.
2254         * reorg.c (optimize_skip): Likewise.
2255         (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
2256         * profile.c (instrument_arcs): Likewise.
2257         * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
2258         * rtl.h: Update prototypes.
2259
2260 Fri May 19 12:05:13 2000  Clinton Popetz  <cpopetz@cygnus.com>
2261
2262         * ssa.c (convert_from_ssa): Tell life_analysis we need death 
2263         notes.
2264         (make_regs_equivalent_over_bad_edges): Only look at abnormal
2265         critical edges.
2266
2267 2000-05-19  Zack Weinberg  <zack@wolery.cumb.org>
2268
2269         * cpphash.c (funlike_macroexpand): Make sure not to walk p1
2270         past l1 when deleting whitespace and markers.              
2271
2272         * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
2273         * cpplib.c (do_unassert): Put the list to compare against on
2274         the stack.
2275
2276 2000-05-19  Bruce Korb  <bkorb@gnu.org>
2277
2278         * fixinc/README:  cleaned up old documentation
2279         * fixinc/check.diff: regenerated & verified on OSR5 on ix86
2280         * fixinc/check.tpl: compute the list of needed directories
2281         emit "#if defined(name)" because of conflict
2282         omit machine name differences from output differences
2283         * fixinc/inclhack.def( m88k_multi_incl ):  Use `wrap' function
2284         (machine_name): change test text to use `sed' markers
2285         * fixinc/fixincl.x: regen
2286
2287 Fri May 19 06:49:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2288
2289         * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
2290         a CONSTRUCTOR.
2291
2292 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
2293
2294         * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
2295         it to match the current practice.
2296
2297 2000-05-18  Mark Mitchell  <mark@codesourcery.com>
2298
2299         * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
2300
2301 2000-05-18  Richard Henderson  <rth@cygnus.com>
2302
2303         * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
2304         * rtl.h (insn_dependant_p): Declare it.
2305         * loop.c (strength_reduce): Use it.
2306
2307 2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
2308
2309         * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
2310         16-bit and 64-bit clean-up.
2311
2312 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
2313
2314         * configure.in (*-pc-msdosdjgpp): Set float_format to none.
2315         * configure: Rebuilt.
2316
2317 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
2318
2319         * genopinit.c: Use $ for escape sequences in optab patterns.
2320         Remove backslashes from optab patterns.  Change $A, $B, $C to
2321         expand to (int) whatever instead of just whatever; remove
2322         explicit (int) from all optab patterns.
2323
2324         * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
2325         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
2326         genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
2327         genrecog.c: Remove private copies of xmalloc, xrealloc, and
2328         xstrdup.
2329
2330 2000-05-18  Richard Henderson  <rth@cygnus.com>
2331
2332         * jump.c (jump_optimize_1): Base minimum insn count during
2333         find_cross_jump on BRANCH_COST.
2334
2335 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
2336
2337         * print-rtl.c (print_rtx): Only print note line number as string
2338         if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
2339         * final.c (final_scan_insn): Do nothing for note line number 0.
2340
2341 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
2342
2343         * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
2344         from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
2345         NOTE_INSN_DELETED_LABEL.
2346
2347 2000-05-18  Nick Clifton  <nickc@cygnus.com>
2348
2349         * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
2350         uninitialised data in .rodata not .bss, and do not interpret an
2351         error in the initialisation value as meaning that the variable
2352         should be placed in the .bss section.
2353
2354 Thu May 18 12:10:18 2000  Philippe De Muyter  <phdm@macqel.be>
2355
2356         * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
2357         not `$ac_cv_prog_cc_cc_c_o'.
2358         * configure: Regenerated.
2359
2360 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
2361             Richard Henderson  <rth@cygnus.com>
2362
2363         * c-common.h (enum c_tree_index): Add g77 type entries.
2364         (g77_integer_type_node, g77_uinteger_type_node): New.
2365         (g77_longint_type_node, g77_ulongint_type_node): New.
2366         * c-decl.c (init_decl_processing): Initialize them.
2367
2368 2000-05-18  Richard Henderson  <rth@cygnus.com>
2369
2370         * config/h8300/h8300.md (subs patterns): Use %G to negate.
2371
2372         * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
2373         (small_power_of_two): Likewise; use exact_log2.
2374         (adds_subs_operand, one_insn_adds_subs_operand): Remove.
2375         (output_adds_subs): Remove.
2376         (two_insn_adds_subs_operand): New.
2377         (split_adds_subs): New.
2378         * config/h8300/h8300-protos.h: Update.
2379         * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
2380         (CONST_OK_FOR_L): Match strict adds operands.
2381         (CONST_OK_FOR_N): Match struct subs operands.
2382         * config/h8300/h8300.md (adds_subs insns): Remove.
2383         (addhi patterns): Output adds/subs directly.
2384         (addsi_h8300h): Likewise.
2385         (addhi/addsi splitters): New.  Decompose two_insn_adds_subs_operand.
2386
2387 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
2388
2389         * cppexp.c (parse_assertion): New.
2390         (lex): Call it for CPP_HASH.  Remove CPP_ASSERTION case.
2391         (_cpp_parse_expr): Remove case '#'.  Don't set
2392         parsing_if_directive.
2393         * cpphash.c (collect_objlike_expansion,
2394         collect_funlike_expansion, collect_params,
2395         _cpp_create_definition): The list no longer has a trailing
2396         VSPACE token.
2397         * cpphash.h (enum node_type): Add T_ASSERTION.
2398         (struct hashnode): Remove aschain, add pred.
2399         (struct predicate): New.
2400         Update prototypes.
2401
2402         * cpplex.c (expand_token_space): Handle both offset and
2403         nonoffset lists.
2404         (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
2405         (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
2406         _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
2407         _cpp_equiv_toklists): New.
2408         (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
2409         stop at any single-character token, not just newline.
2410         (_cpp_lex_token): Remove special cases for #define and #if.
2411         (cpp_get_token): Expect # as a separate token type.  Remove
2412         DIRECTIVE case.
2413         (_cpp_get_directive_token): Remove DIRECTIVE case.
2414         (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
2415
2416         * cpplib.c (_cpp_check_directive): Set dirno and
2417         SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
2418         (_cpp_handle_directive): Run # <number> through the same logic
2419         as normal directives.
2420         (do_define): Don't set parsing_define_directive.  Use
2421         _cpp_scan_until.  The list does not have a VSPACE at the end.
2422         (do_if): Save, clear, and restore only_seen_white around 
2423         _cpp_parse_expr.
2424         (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
2425         (do_assert, do_unassert): Rewrite.
2426
2427         * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
2428         (LIST_OFFSET): New flag.
2429         (struct cpp_toklist): Replace dir_handler and dir_flags with
2430         dirno and flags.
2431         (struct cpp_reader): Remove parsing_if_directive and
2432         parsing_define_directive.
2433
2434 2000-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2435
2436         * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
2437         following the cabs decl which terminate on the following line.
2438         Add the corresponding test_text case.
2439
2440 2000-05-18  Neil Booth  <NeilB@earthling.net>
2441
2442         * cppinit.c (cpp_reader_init): Initialise col_adjust and
2443         default tab stop size.
2444         (no_num, OPT_ftabstop): New.
2445         (handle_option): Handle "ftabstop=" command-line option.
2446         (print_help): Document it.
2447         * cpplex.c (COLUMN): Remove.
2448         (handle_newline): Reset col_adjust.
2449         (skip_whitespace): Update col_adjust as tabs encountered.
2450         (_cpp_lex_line): Update to use col_adjust.  Call
2451         skip_whitespace for all whitespace.
2452         * cpplib.h (struct cpp_options): New member tabstop.
2453         (struct cpp_reader): New member col_adjust.
2454         (CPP_BUF_COL): Update.
2455         (CPP_BUF_COLUMN): New.
2456         * cpp.texi: Document "-ftabstop=" command line option.
2457
2458 Wed May 17 18:19:41 2000  Philippe De Muyter  <phdm@macqel.be>
2459
2460         * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
2461         files.
2462         * configure: Rebuilt.
2463
2464 Wed May 17 18:06:12 2000  John David Anglin <dave@hiauly1.hia.nrc.ca>
2465
2466         * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
2467
2468         * tree.c (build_common_tree_nodes): Do not build TI nodes unless
2469         HOST_BITS_PER_WIDE_INT is >= 64.
2470
2471 2000-05-17  Richard Henderson  <rth@cygnus.com>
2472
2473         * jump.c (jump_optimize_1): Remove inactive but real insns
2474         in jump-to-next-insn optimization.
2475
2476 2000-05-17  Richard Henderson  <rth@cygnus.com>
2477
2478         * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
2479         unless OPTIMIZE_MODE_SWITCHING.  Conditionally set no_new_pseudos.
2480         Don't call recompute_reg_usage if no_new_pseudos is true.
2481         * lcm.c (optimize_mode_switching): Move ifdefs outside function.
2482         Return true if we did work; update global life information.
2483         * basic-block.h (optimize_mode_switching): Update decl.
2484
2485 2000-05-17  Neil Booth  <neilb@earthling.net>
2486
2487         * cpplex.c (expand_name_space): Don't use ptrdiff_t.
2488
2489 2000-05-17  Zack Weinberg  <zack@wolery.cumb.org>
2490
2491         * cpplib.c: New feature, #pragma system_header.
2492         * cpp.texi: Document special treatment of system headers, and
2493         the various mechanisms to get a header that special treatment.
2494
2495 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2496
2497         * system.h (offsetof): Define at the very end, to ensure we prefer
2498         the platform's definition if available.
2499
2500 2000-05-16  Bruce Korb  <bkorb@gnu.org>
2501
2502         * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
2503         * fixinc/server.c: likewise
2504         * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
2505         + #ifdef debugging code + use #def constant for
2506         sub-pattern count
2507         * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
2508         on C++ math namespace
2509
2510 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2511
2512         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
2513         Don't check the return value of sprintf.  Use asprintf to avoid
2514         buffer overflows.
2515
2516 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
2517
2518         * flags.h (warn_unused_function, warn_unused_label,
2519         warn_unused_parameter, warn_unused_variable, warn_unused_value):
2520         Replace ``warn_unused''.
2521         (set_Wunused): Add declaration.
2522         * toplev.c (set_Wunused): New function.
2523         (warn_unused_function, warn_unused_label, warn_unused_parameter,
2524         warn_unused_variable, warn_unused_value): New variables.
2525         (W_options): Add -Wunused-function, -Wunused-function,
2526         -Wunused-label, -Wunused-parameter, -Wunused-variable and
2527         -Wunused-value.  Delete -Wunused.  Handled in decode_W_option.
2528
2529         * toplev.c (decode_W_option): Update -Wunused flags by calling
2530         set_Wunused.
2531         * c-decl.c (c_decode_option): Ditto for -Wall.
2532
2533         * stmt.c (expand_expr_stmt, expand_expr_stmt,
2534         warn_about_unused_variables): Replace warn_unused with more
2535         explicit warn_unused_value et.al.
2536         * function.c (expand_function_end): Ditto.
2537         * c-typeck.c (internal_build_compound_expr,
2538         internal_build_compound_expr): Ditto.
2539         * c-decl.c (poplevel, pop_label_level): Ditto.
2540         * toplev.c (check_global_declarations): Replace warn_unused with
2541         check for either warn_unused_function or warn_unused_variable.
2542
2543         * gcc.1, invoke.texi (Warning Options): Document
2544         -Wunused-function, -Wunused-function, -Wunused-label,
2545         -Wunused-parameter, -Wunused-variable and -Wunused-value options.
2546
2547 Wed May 17 10:28:12 2000  Philippe De Muyter  <phdm@macqel.be>
2548
2549         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
2550         $(srcdir), not in the current directory.
2551
2552 2000-05-16  Richard Henderson  <rth@cygnus.com>
2553
2554         * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
2555         assembler supports it.
2556         (.fini, .init): Use a gp-relative indirect call.
2557         (__do_global_dtors_aux): Preserve the gp; rebundle.
2558         (__do_frame_setup): Likewise.
2559         * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
2560         (.init): Use a gp-relative indirect call.
2561         (__do_global_ctors_aux): Preserve the gp.
2562
2563 2000-05-16  Richard Henderson  <rth@cygnus.com>
2564
2565         * flow.c (commit_one_edge_insertion): Be prepared for a return
2566         insn to be inserted on the edge with a normal jump.
2567         * jump.c (jump_optimize_1): Don't look to create return isns.
2568
2569         * flow.c (flow_delete_insn): Don't adjust reference count of notes.
2570         * jump.c (jump_optimize_1): Likewise.
2571         (returnjump_p): Verify the argument is a JUMP_INSN.
2572         * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
2573
2574 2000-05-16  Nick Clifton  <nickc@cygnus.com>
2575
2576         * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
2577         GET_RTX_CLASS (GET_CODE ()) == 'i'.
2578         (large_insn_p): Ditto.
2579         (m32r_is_insn): New function: Return true if the insn contains
2580         an executable instruction.
2581         (m32r_adjust_insn): Use m32r_is_insn.
2582         (m32r_sched_reorder): Use m32r_is_insn.
2583         (m32r_sched_variable_issue): Use m32r_is_insn.
2584
2585 2000-05-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2586
2587         * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
2588         VAR_DECL.
2589
2590         * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
2591
2592         * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
2593         according to given options.
2594
2595 Tue May 16 12:17:31 2000  Jeffrey A Law  (law@cygnus.com)
2596
2597         * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
2598         if X has VOIDmode either.
2599         (LIMIT_RELOAD_CLASS): Similarly.
2600
2601         * mn10200.md (indirect_jump, tablejump): Use "register_operand",
2602         not "general_operand" to match the processor's capabilities.
2603
2604 2000-05-16  Bruce Korb  <bkorb@gnu.org>
2605
2606         * fixinc/README:  corrected return address
2607         * fixinc/check.diff:  regenerate, now that test works
2608         * fixinc/fixfixes.c(format_fix,format_write): reformatted
2609         (char_macro_def_fix,char_macro_use_fix): corrected and
2610         rewrote to use regex to parse the text
2611         * fixinc/inclhack.def: more testing
2612         * fixinc/fixincl.x:  regenerated
2613
2614         * fixinc/inclhack.def: added several "test_text" attributes
2615         changed several fixes to use `c_fix = format'
2616         re-alphabetized the fixes
2617
2618         * fixinc/check.diff: regenerate
2619         * fixinc/fixincl.x: regenerate
2620         * fixinc/check.tpl: added `sparc' and `netinet' to the list
2621         of created dirs
2622
2623
2624 2000-05-16  Alexandre Oliva  <aoliva@cygnus.com>
2625
2626         * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
2627
2628 2000-05-15  Richard Henderson  <rth@cygnus.com>
2629
2630         * toplev.c (rest_of_compilation): Run full jump pass before
2631         find_basic_blocks of flow2.
2632
2633 2000-05-15  Richard Henderson  <rth@cygnus.com>
2634
2635         * jump.c: Fix typos and clarify commentary from last change.
2636         (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
2637         (safe_to_remove_jump_p): Remove.
2638         (condjump_label): Use pc_set.
2639
2640 2000-05-15  Richard Henderson  <rth@cygnus.com>
2641
2642         * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
2643         that get in the way after reload.
2644         (cond_exec_process_if_block): Skip a label heading THEN block.
2645
2646 2000-05-15  Richard Henderson  <rth@cygnus.com>
2647
2648         * varasm.c (output_constant_pool): Abort instead of converting
2649         (improperly) deleted labels to zero.
2650
2651 2000-05-16  Neil Booth  <NeilB@earthling.net>
2652
2653         * cpplex.c (parse_string2): Update comment.
2654         (cpp_lex_line): No special assertion treatment for '('.
2655         * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
2656         * cpplib.h (SYNTAX_ASSERT): Remove.
2657
2658 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2659
2660         * jump.c (condjump_p):  Mark as depreached.
2661         (any_condump_p): New.
2662         (any_uncondump_p): New.
2663         (pc_set): New.
2664         (safe_to_remove_jump_p): New.
2665         * rtl.h (any_condump_p, any_uncondjump_p, pc_set
2666         safe_to_remove_jump_p): Declare.
2667
2668 Mon May 15 21:07:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2669
2670         * calls.c: Re-install both patches reverted by last patch.
2671         (struct arg_data): New field tail_call_reg.
2672         (initialize_argument_information): Initialize tail_call_reg
2673         (load_register_parameters): New argument flags, use
2674         tail_call_reg when emiting tail call sequence.
2675         (expand_call): Update call of load_register_parameters;
2676         copy unadjusted_args_size to adjusted_args_size.
2677
2678 Mon May 15 19:01:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2679
2680         * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
2681         and bct_p parameters to flags.
2682         * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
2683         * rtl.h (loop_optimize): Update prototype.
2684         * toplev.c (rest_of_compilation): Update call of loop_optimize.
2685
2686 2000-05-15  Jakub Jelinek  <jakub@redhat.com>
2687
2688         * calls.c (expand_call): Move expand_start_target_temps call after
2689         start_sequence().
2690
2691 2000-05-15  Neil Booth  <NeilB@earthling.net>
2692
2693         * cpphash.c (trad_stringify, warn_trad_stringify,
2694         collect_params): Make some pointers pointers to const.
2695         * cpplex.c (auto_expand_name_space) Guaranteed to always
2696         expand by at least one character.
2697         (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
2698         (struct token_spelling): Use const U_CHAR * rather than PTR.
2699         (expand_name_space): Fix up token pointers if name space
2700         is moved when expanding.
2701         (INIT_NAME, cpp_scan_line, parse_name, parse_number,
2702         parse_string2, save_comment, spell_token, cpp_output_list):
2703         Update so the routines handle tokens with a direct pointer to
2704         their text, rather than an offset into the token's list's namebuf.
2705         (_cpp_lex_line): Rearrange for clarity.
2706
2707         * cpplib.c (_cpp_check_directive): Similarly.
2708         (do_define): Make SYM a pointer to const.
2709         * cpplib.h (struct cpp_name): Replace offset with direct pointer.
2710         (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
2711         (TOK_OFFSET): Delete.
2712         (TOK_NAME): Update.
2713
2714 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
2715
2716         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
2717         64-bit ABI.
2718
2719         * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE 
2720         into account.
2721         (logical_u_operand): Delete.
2722         (non_logical_cint_operand): Rewrite to take MODE into account.
2723         (non_logical_u_cint_operand): Delete.
2724         (boolean_operator): New function.
2725         (print_operand): Add new %q operand.
2726         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
2727         remove logical_u_operand and non_logical_u_cint_operand,
2728         update logical_operand and non_logical_cint_operand.
2729         * config/rs6000/rs6000.md: Rewrite the patterns for performing
2730         logical operations to use %q.
2731
2732         * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
2733         (movdi): Make similar to movsi.
2734         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
2735         is no such thing as a DImode CONST_DOUBLE.
2736         * config/rs6000/rs6000.c (output_toc): Likewise.
2737         
2738         * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
2739         codes when old mnemonics are in use.  Print register names
2740         for cc registers when requested.
2741
2742         * optabs.c (expand_float): Don't allow mode widening that causes
2743         double rounding.
2744
2745         * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
2746         flags to their current names -maix64 and -maix32.
2747
2748 2000-05-14  Bruce Korb  <bkorb@gnu.org>
2749
2750         * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
2751         and/or after current text of file
2752         * fixinc/fixlib.c(must_malloc):
2753         * fixinc/fixlib.h(must_malloc): + reformatting
2754         * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
2755         with usages of ``c_fix = wrap;''
2756         Add several tests and use the ``c_fix = format'' fixer more.
2757         * fixinc/fixincl.x: regen
2758         * fixinc/check.diff: regen
2759         * fixinc/check.tpl: emit the associated header with the missing
2760         test message
2761
2762 Sun May 14 17:58:59 2000  Hans-Peter Nilsson  <hp@axis.com>
2763
2764         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
2765         variables $src and $dst.
2766         
2767 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
2768
2769         * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
2770         (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
2771         (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
2772         (struct output_buffer: emitted_prefix_p, prefixing_rule): New
2773         fields. 
2774         (set_message_prefixing_rule): Declare.
2775
2776         * diagnostic.c: (current_prefixing_rule): New variable.
2777         (set_message_prefixing_rule): Define.
2778         (output_set_prefix): Adjust buffer->emitted_prefix_p.
2779         (init_output_buffer): Adjust Initialization.
2780         (output_emit_prefix): Rewrite.  Take prefixing rules into account.
2781         
2782 Sat May 13 11:05:47 2000  Philippe De Muyter  <phdm@macqel.be>
2783
2784         * ifcvt.c (if_convert): Do not free NULL.
2785
2786 2000-05-12  Nick Clifton  <nickc@cygnus.com>
2787
2788         * config/fr30/fr30.c (fr30_move_double): New function:  Emit code
2789         to move a double word value.
2790         (di_operand): New function: Return true if the operand is suitbale
2791         for a double word move operation.
2792         (nonimmediate_di_operand): New function: Return true if the
2793         operand is a DImode register or MEM.
2794
2795         * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
2796         nonimmediate_di_operand.
2797
2798         * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
2799         nonimmediate_di_operand.
2800
2801         * config/fr30/fr30.md (movdi): New pattern.  Required because
2802         other patterns generate DImode results.
2803         (movdi_insn): New pattern.
2804
2805 2000-05-12  Richard Henderson  <rth@cygnus.com>
2806
2807         * config/alpha/alpha.c (struct shadow_summary): Define
2808         bitfields as type unsigned int.
2809
2810 Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>
2811
2812         * config/avr/t-avr: Added definition of FLOAT while generates
2813         fp-bit.c
2814
2815         * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
2816         peepholes for tst+jump = sbrs/sbrc optimization.
2817
2818 Fry May 12 20:03:00 CEST 2000  Jan Hubicka  <jh@suse.cz>
2819
2820         * expr.c (emit_push_insn): Do not adjust stack pointer when
2821         preallocating.
2822
2823 Fri May 12 19:03:58 2000  Philippe De Muyter  <phdm@macqel.be>
2824
2825         * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
2826         * system.h (offsetof): ... to here.
2827
2828 2000-05-12  Richard Henderson  <rth@cygnus.com>
2829
2830         * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
2831         * final.c (final_end_function): Use app_disable.  Rearrange note
2832         handling into a switch.  Emit deleted labels.
2833         (output_asm_label): Generate label strings for deleted labels.
2834         * flow.c (tail_recursion_label_list): New.
2835         (find_basic_blocks_1): Set label_value_list directly.  Collect list
2836         of tail recursion labels from call_placeholders.  Don't add deleted
2837         labels to the label value list.
2838         (cleanup_cfg): Use free_EXPR_LIST_list.
2839         (flow_delete_insn_chain): Turn non-removable labels into notes.
2840         (flow_delete_block): Don't disable deleting the block because of
2841         a non-removable label.
2842         (tail_recursion_label_p): New.
2843         (merge_blocks_move_predecessor_nojumps): Don't disable the merge
2844         because of a label.
2845         (merge_blocks_move_successor_nojumps): Likewise.  Also move a
2846         jump table.
2847         (merge_blocks): Disable a merge because of tail recursion labels.
2848         * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
2849         Use a more accurate measure of not merging the join block.
2850         (find_if_block): Don't disable conversion because of a label.
2851         (find_if_case_1, find_if_case_2): Likewise.
2852         * jump.c (duplicate_loop_exit_test): Preserve the kind of list
2853         element when copying.
2854         (squeeze_notes): Also leave EH notes.
2855         (mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
2856         REG_LABEL notes.
2857         (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
2858         deleting a label.
2859         * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
2860         NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
2861         referring to a deleted label.  Convert tail handling to a switch.
2862         * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
2863         for NOTE_INSN_DELETED_LABEL.
2864         (NOTE): Fix commentary.
2865         * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
2866         (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
2867         (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
2868         (LABEL_NUSES, LABEL_REFS): Likewise.
2869         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
2870
2871 2000-05-12  Bruce Korb  <bkorb@gnu.org>
2872
2873         * fixinc/fixfixes.c(format_write): buglet & relaxed rules
2874         * fixinc/check.diff: updated
2875         * fixinc/inclhack.def: corrected & added some test_text-s
2876         * fixinc/genfixes: removed unneeded options to autogen invocation
2877         * fixinc/fixincl.tpl: Specified the output file
2878         * fixinc/fixfixes.c: visual appearance
2879         * fixinc/fixincl.x: regenerate
2880
2881 2000-05-12  Zack Weinberg <zack@wolery.cumb.org>
2882
2883         * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
2884         CTRL_defn_fix): Delete.
2885         (fix_char_macro_defines, fix_char_macro_uses): Rename to
2886         char_macro_def_fix and char_macro_use_fix, respectively.  Put
2887         them into the FIXUP_TABLE.  Get the string to search for from
2888         a c_fix_arg.
2889
2890         (format_write): New function.
2891         (format_fix): Use it.
2892
2893         (FIX_PROC_HEAD): Constify text parameter.
2894         (machine_name_fix): Constify all char *s.
2895         * fixtests.c (skip_quote): Remove double static.
2896
2897         * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
2898         ctrl_use_quotes): Update for new scheme.
2899         * fixincl.x: Regenerate.
2900
2901 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
2902
2903         * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
2904         DWARF2_DEBUG.
2905         (DWARF2_ASM_LINE_DEBUG_INFO): Define.
2906         (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
2907
2908 2000-05-11  Robert Lipe <robertlipe@usa.net>
2909
2910         * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
2911         * fixincl.x: Regenerate.
2912
2913 2000-05-11  Richard Henderson  <rth@cygnus.com>
2914
2915         * calls.c: Revert both 05-09 patches.
2916
2917 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
2918
2919         * config/mn10300/mn10300.c (print_operand): Print FP constants in
2920         hexadecimal.
2921         * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
2922         for FP values.
2923
2924         * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
2925         and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
2926
2927 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
2928
2929         * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
2930
2931 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
2932
2933         * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
2934
2935 Thu May 11 22:28:05 2000  Denis Chertykov  <denisc@overta.ru>
2936
2937         * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
2938         * config/avr/avr.c (jump_over_one_insn_p): New function.
2939         * config/avr/avr.md: New peepholes added. Output test and
2940         conditional jump to "sbrc" or "sbrs" command.
2941
2942 2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
2943
2944         * cppmain.c (main): Use IS_DIR_SEPARATOR.
2945
2946 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
2947
2948         * except.c (find_exception_handler_labels_1): New function.
2949         (find_exception_handler_labels): Split into two functions, dive
2950         into CALL_PLACEHOLDERs when looking for exception handler labels.
2951
2952 2000-05-11 Stan Cox <scox@cygnus.com>
2953
2954         * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
2955         * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
2956         * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
2957
2958 2000-05-11  Bruce Korb  <bkorb@gnu.org>
2959
2960         * fixinc/fixfixes.c (double_slash_fix):  obsolete
2961         (else_endif_label_fix): obsolete
2962         (format_fix):  new, unused as yet
2963         (main): obsolete
2964         * fixinc/fixlib.h: added fix description struct for use by format_fix
2965         * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
2966         * fixinc/Makefile.in:  compile fixfixes.c and fixtests.c as separate
2967         modules.  Removed the vestiges of the script version.
2968         Added support for "make check".
2969         * fixinc/check.diff: base diff file (needs work!!)
2970         * fixinc/check.tpl: quiet the fixup output
2971         * fixinc/fixtests.c (main): obsolete
2972         * fixinc/fixincl.sh:  don't bother copying fixincl to ..
2973         * fixinc/fixincl.tpl:  provide for arguments to c_fix routines
2974
2975 Thu May 11 11:57:02 MET DST 2000  Jan Hubicka <jh@suse.cz>
2976
2977         * toplev.c (rest_of_compilation): Remove dead code after
2978         combine.
2979
2980 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
2981
2982         * cpphash.c (collect_funlike_expansion): Make "# is not
2983         followed by a macro argument name" a pedwarn, not an error.
2984         Preserve the # in the output.  Suppress the warning if lang_asm.
2985
2986 Thu May 11 01:19:31 2000  Jeffrey A Law  (law@cygnus.com)
2987
2988         * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
2989         * configure: Rebuilt.
2990
2991 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
2992
2993         * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
2994
2995 2000-05-10  Kazu Hirata  <kazu@hxi.com>
2996
2997         * combine.c (try_combine): Fix a typo.
2998
2999 Wed May 10 21:31:44 2000  Jim Wilson  <wilson@cygnus.com>
3000
3001         * config/ia64/ia64.md (insv): Add comment.
3002
3003 2000-05-10  Richard Henderson  <rth@cygnus.com>
3004
3005         * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
3006         * mklibgcc.in: Rewrite to not use functions.  Don't shortcut
3007         dependancies on FPBIT and DPBIT.
3008
3009 2000-05-10  Nick Clifton  <nickc@redhat.com>
3010
3011         * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
3012         when optimising for size.
3013         (mark_used_regs:) Ditto.
3014         (try_pre_increment_1): Ditto.
3015
3016 2000-05-10  Zack Weinberg  <zack@wolery.cumb.org>
3017
3018         * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
3019         Make error message friendlier.
3020
3021         * cpphash.h (struct hashnode): Use struct hack for name
3022         member.
3023         * cpphash.c (struct hashdummy): New.
3024         (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
3025         (make_HASHNODE): No need to set ->name pointer.  Correct
3026         setting of p.
3027         (cpp_lookup): Make 'dummy' a struct hashdummy.  Tidy up a bit.
3028
3029 2000-05-10  Richard Henderson  <rth@cygnus.com>
3030
3031         * flow.c (find_basic_blocks_1): Remove any spare bb_note
3032         after completion.
3033
3034 2000-05-10  Bruce Korb  <bkorb@gnu.org>
3035
3036         * fixinc/gnu-regex.c:  reg_syntax_t re_syntax_options must be static
3037
3038 2000-05-10  Eric Schweitz  <schweitz@nortelnetworks.com>
3039
3040         * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
3041         after we enter .debug.
3042
3043 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
3044
3045         * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
3046         abstract instance of a nested inline function.
3047
3048         * stor-layout.c (finish_record_layout): finalize_type_size
3049         before laying out the pending_statics.
3050
3051 Wed 10 May 09:36:47 2000  Neil Booth  <NeilB@earthling.net>
3052
3053         * cpplex.c (spell_token): New function.
3054         (spell_string, spell_comment, spell_name): fold into
3055         spell_token.    
3056         (I, S): Add macros.
3057         (E, H): Remove macros.
3058         (save_comment): Save comment opening characters too.
3059         (_cpp_lex_file): Update to use spell_token.  Tidy up comment
3060         handling.
3061         * cpplib.h (I, S): Add macros.
3062         (E, H): Remove macros.
3063         (TTYPE_TABLE): Update entries for new speller.
3064         (SYNTAX_ASSERT): Remove.
3065
3066 Wed 10 May 09:08:30 2000  Neil Booth  <NeilB@earthling.net>
3067
3068         * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
3069         when removing escaped newlines.  Reverse sense of test for
3070         escaped newline.
3071
3072 2000-05-09  Richard Henderson  <rth@cygnus.com>
3073
3074         * flow.c (find_basic_blocks_1): Do not delete the first
3075         bb_note we run across.
3076         (create_basic_block): Use reorder_insns to move an existing
3077         bb_note to the correct place.
3078
3079 2000-05-09  Richard Henderson  <rth@cygnus.com>
3080
3081         * calls.c (expand_call): Increment currently_expanding_call
3082         before calling optimize_tail_recursion.
3083
3084 Tue May  9 18:54:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3085
3086         * reload1.c (reload_combine): Fix errors in last change.
3087
3088 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
3089
3090         * gcc.c (used_arg): Skip over a semicolon at the end of the
3091         split-up loop; don't break out of it.
3092
3093         * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
3094         (tree.o): Depend on output.h.
3095
3096         * c-decl.c (pending_invalid_xref_file,
3097         current_function_prototype_file): Constify.
3098         (pushdecl): Constify a local char *.
3099         (define_label): Constify filename parameter.
3100         * c-lex.c (init_parse): Constify parameter and return value.
3101         * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
3102         * c-tree.h: Update prototypes.
3103         * c-parse.in: Constify filename member of %union, and if_stmt_file.
3104         * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
3105         objc/objc-parse.c: Regenerate.
3106
3107         * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
3108         * dwarfout.h: Update prototypes.
3109         * expr.c (expand_expr): Constify a local char *.
3110         * flags.h: Constify main_input_filename.
3111         * function.c (expand_function_end): Constify filename parameter.
3112         * genrecog.c (make_insn_sequence): Use a character array for
3113         c_test_pos.
3114         (main): Remove unused variables.
3115         * input.h: Constify input_filename, main_input_filename, and
3116         file_stack.name.  Update prototypes.
3117         * output.h: Declare first_global_object_name and
3118         weak_global_object_name here, as const char *.
3119         * stmt.c (expand_asm_operands): Constify filename parameter.
3120         * toplev.c (compile_file, push_srcloc, debug_start_source_file):
3121         Constify filename parameter.
3122         (input_filename, main_input_filename): Constify.
3123         * toplev.h: Update prototypes.
3124         * tree.c: Include output.h.  Don't declare
3125         first_global_object_name or weak_global_object_name.  Clean up string
3126         bashing in get_file_function_name_long.
3127         * tree.h (struct tree_decl): Constify filename member.
3128         (input_filename): Constify.
3129         Update prototypes.
3130         * varasm.c (first_global_object_name, weak_global_object_name):
3131         Constify.
3132         (assemble_start_function, assemble_variable): Clean up string bashing.
3133
3134         * gcc.c: Constify all spec-related strings initialized,
3135         transitively, from string constants.  Constify all strings
3136         and string variables related to multilibs.
3137         (set_spec, read_specs): Cast argument to free to PTR.
3138         (used_arg): Do not modify multilib_matches.  Use strncmp plus
3139         length comparison to compare multilib switches.
3140         * genmultilib: Constify everything declared in multilib.h.
3141
3142 Tue May  9 22:28:03 2000  Denis Chertykov  <denisc@overta.ru>
3143
3144         * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
3145         as deleted.
3146
3147 Tue May  9 20:52:43 2000  Denis Chertykov  <denisc@overta.ru>
3148
3149         * config/avr/avr-protos.h (extra_constraint): change a type of
3150         second argument from char to int to avoid warnings.
3151         (asm_output_byte): Likewise.
3152         
3153         * config/avr/avr.c (MAX_LD_OFFSET) New macro.
3154         (initial_elimination_offset): Handle elimination from
3155         FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
3156         (legitimate_address_p): Use MAX_LD_OFFSET.
3157         (legitimize_address): Likewise.
3158         (out_movqi_r_mr): Likewise.
3159         (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
3160         (out_movsi_r_mr): Use MAX_LD_OFFSET.
3161         (out_movsi_mr_r): Likewise.
3162         (out_movqi_mr_r): Likewise.
3163         (out_movhi_mr_r): Likewise.
3164         (notice_update_cc): Correct CC for the ashrqi3 with the shift
3165         count as CONST_INT != 6.
3166         (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
3167         shift count is a CONSTANT_P, but not a CONST_INT.
3168         (ashlhi3_out): Coding style modifications.
3169         (ashlsi3_out): Likewise.
3170         (ashrhi3_out): Likewise.
3171         (ashrsi3_out): Likewise.
3172         (lshrhi3_out): Likewise.
3173         (lshrsi3_out): Likewise.
3174         (ashrqi3_out): Generate shift for any known constant count without
3175         scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
3176         but not a CONST_INT.
3177         (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
3178         shift count is a CONSTANT_P, but not a CONST_INT. 
3179         (extra_constraint): change a type of
3180         second argument from char to int to avoid warnings.
3181         (asm_output_byte): Likewise.
3182         (asm_file_end): Output size generated commands count as a hex
3183         number too.
3184
3185         * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
3186
3187         * config/avr/avr.md (addhi3): Fragment commented by &&0 is
3188         removed.
3189         (ashlqi3): Values of "length" attribute changed. Shift count
3190         uses constraints 'n' instead of 'i'.
3191         (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
3192         shifts without clobber register.
3193         (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
3194         (call_insn): Correct test for which_alternative == 1 (was 0).
3195         (call_value_insn): Likewise.
3196         
3197         * config/avr/t-avr: Remove definition of FLOAT while generates
3198         fp-bit.c
3199
3200 2000-05-09  Bruce Korb  <bkorb@gnu.org>
3201
3202         * fixinc/check.tpl:  Template for checking fixes
3203         * fixinc/inclhack.def:  Added 'test_text' for many fixes
3204         disable hpux8_bogus_inlines on SCO
3205         * fixinc/fixinc.sco:  Oh, yes, we don't need this any more.
3206
3207 Tue May  9 16:30:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3208
3209         * calls.c (expand_call): Reorganize somewhat in order
3210         to avoid unnecesary recalculation inside loop and make
3211         tail call failure code cleaner.
3212         
3213 Tue May  9 06:30:20 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3214
3215         * alias.c (nonlocal_reference_p): Minor reformatting.
3216         * reload.c (find_equiv_reg): Simplify logic for
3217         CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
3218         some some reformatting.
3219         * reload1.c (reload_combine): Don't assume everything in
3220         CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
3221
3222 2000-05-08  Richard Henderson  <rth@cygnus.com>
3223
3224         * final.c (current_insn_predicate): New.
3225         (final_scan_insn): Set it.
3226         * output.h (current_insn_predicate): Declare.
3227
3228         * ifcvt.c (cond_exec_process_insns): New argument prob_val.
3229         Attach it to call insns.
3230         (cond_exec_process_if_block): Track probability for true and
3231         false branches.
3232         (dead_or_predicable): Likewise.
3233
3234         * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
3235         (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
3236         (PROB_VERY_LIKELY, PROB_ALWAYS): New.
3237         (estimate_probability, expected_value_to_br_prob): Use them.
3238
3239         * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
3240         * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
3241         (ia64_expand_prediction): New.
3242         (emit_insn_group_barriers): Don't look at notes.  Emit barriers
3243         as needed after calls.
3244         (ia64_epilogue_uses): Mark b0 used.
3245         * config/ia64/ia64.md (beq_true, beq_false): Remove.
3246         (bne_true, bne_false): Remove.
3247         (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
3248         (br_true, br_false): New.  Use predicate_operator and
3249         ia64_expand_prediction.
3250         (return_true, return_false): Likewise.
3251         (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
3252         (call_internal1, call_value_internal): Likewise.
3253         (call_value_internal1, call_multiple_values_internal1): Likewise.
3254
3255         * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
3256
3257         * config/ia64/ia64.md (extendsfdf2): Split only after reload.
3258
3259 2000-05-08  Richard Henderson  <rth@cygnus.com>
3260
3261         * rtlanal.c (may_trap_p): Consider old-style and volatile
3262         asms to trap.
3263
3264 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
3265
3266         * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
3267
3268 2000-05-08  Richard Henderson  <rth@cygnus.com>
3269
3270         * config/ia64/ia64.h (predicate_operator): Declare.
3271
3272         * config/ia64/ia64.md (extendsfdf2): Split the nop case out
3273         of existance.
3274
3275         * gensupport.c (process_rtx): Copy and post-process each member
3276         of the define_insn rtvec individually.
3277
3278 Mon  8 May 22:17:35 2000  Neil Booth  <NeilB@earthling.net>
3279
3280         * cpplex.c (spell_token): New function.
3281         (TOKEN_LEN): Add 1 for whitespace.
3282         (_cpp_lex_file): Update to use spell_token.
3283         * cpplib.h (E): Remove.
3284         (TTYPE_TABLE): Update CPP_VSPACE entry.
3285
3286 2000-05-08  Richard Henderson  <rth@cygnus.com>
3287
3288         * flow.c (init_propagate_block_info): Watch out for conditional
3289         branch to next instruction, and thus one outgoing edge.
3290
3291         * config/ia64/ia64.c (ia64_encode_section_info): Exit early
3292         for global register variables; don't special case __[CD]TOR_LIST__;
3293         mind ggc_p for string allocation.
3294
3295 2000-05-08  Nick Clifton  <nickc@cygnus.com>
3296
3297         * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
3298
3299 2000-05-08  Bruce Korb  <bkorb@gnu.org>
3300
3301         * fixinc/mkfixinc.sh:  fixinc.sco is no longer used
3302         i?86-*-msdosdjgpp* no longer uses fixincludes
3303         * fixinc/genfixes:  inclhack.sh and fixincl.sh are no longer generated
3304         * fixinc/inclhack.sh:  deleted
3305         * fixinc/hackshell.tpl:  deleted
3306         * fixinc/inclhack.tpl:  deleted
3307         * fixinc/Makefile.in:  Remove dependencies on above
3308         * fixinc/fixincl.sh:  "DO NOT EDIT" text modified
3309
3310 2000-05-08  Andreas Jaeger  <aj@suse.de>
3311
3312         * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
3313         support.
3314
3315 2000-05-07  Zack Weinberg  <zack@wolery.cumb.org>
3316
3317         * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
3318         substitutions.
3319
3320 Sun  7 May 08:43:53 2000  Neil Booth  <NeilB@earthling.net>
3321
3322         * cpplex.c: Move new lexer definitions and prototypes
3323         to top.  Conditional include these and the code if
3324         NEW_LEXER is defined.  Rename functions whose names
3325         clash if this code included.
3326
3327 Sun May  7 00:54:57 EDT 2000  John Wehle  (john@feith.com)
3328
3329         * rtl.def (COND_EXEC): Clarify.
3330
3331         * i386.md (extendsidi2): Clobber (reg:CC 17) in the
3332         same fashion as zero_extendsidi2.
3333
3334 2000-05-06  Richard Henderson  <rth@cygnus.com>
3335
3336         * config/ia64/ia64.c (predicate_operator): New.
3337         (ia64_print_operand): Handle 'J'.
3338         (rtx_needs_barrier): Handle COND_EXEC.
3339         * config/ia64/ia64.h (BRANCH_COST): Define.
3340         (PREDICATE_CODES): Update.
3341         * config/ia64/ia64.md: Docuement used unspec values.
3342         (attr predicable): New.
3343         (movxf, movxf_internal): New.
3344         (extendsfdf2): Don't comment out nop.
3345         (floatdidf2): Remove.
3346         (truncxfsf2, truncxfdf2, floatdixf2): New.
3347         (abssi2, absdi2): Put the neg in the "true" slot.
3348         (conditional branch instructions): Mark not predicable.
3349         (cmov*_internal): Use predicate_operator.  Split to cond_exec.
3350         (abs*_internal): Likewise.
3351         (alloc, set_bsp): Mark not predicable.
3352         (barrier, insn_group_barrier, flush_cache): Likewise.
3353         (define_cond_exec): New.
3354
3355 2000-05-06  Richard Henderson  <rth@cygnus.com>
3356
3357         * c-decl.c: Include "tm_p.h".
3358
3359         * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
3360         (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
3361         (ia64_expand_op_and_fetch): Declare.
3362         * config/ia64/ia64.c: Include "toplev.h".  Kill trailing whitespace.
3363         (setjmp_operand): Constify variables for XSTR.
3364         (ia64_encode_section_info): Likewise.
3365         (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
3366         values to int.
3367         (ia64_asm_output_external): Constify name.
3368         (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
3369         (process_for_unwind_directive): Provide switch default.
3370         (ia64_expand_compare_and_swap): Remove unused variables.
3371         (ia64_expand_builtin): Likewise.
3372         * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
3373         for printing.
3374
3375         * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
3376         (symbolic_operand, function_operand, setjmp_operand): Likewise.
3377         (shift_count_operand, shift_32bit_count_operand): Likewise.
3378         (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
3379         (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
3380         (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
3381         (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
3382         (ia64_expand_builtin): Likewise.
3383         (call_multiple_values_operation): Make dest_regno unsigned.
3384
3385 2000-05-06  Richard Henderson  <rth@cygnus.com>
3386
3387         * rtl.def (DEFINE_COND_EXEC): New.
3388         * md.texi: Document it.
3389
3390         * gensupport.c (input_file): Remove.
3391         (struct queue_elem): Add lineno.
3392         (rtx_ready_queue): Remove.
3393         (errors): New.
3394         (predicable_default): New.
3395         (predicable_true, predicable_false): New.
3396         (define_attr_queue, define_attr_tail): New.
3397         (define_insn_queue, define_insn_tail): New.
3398         (define_cond_exec_queue, define_cond_exec_tail): New.
3399         (other_queue, other_tail): New.
3400         (queue_pattern): New.
3401         (process_rtx): Add patterns to the appropriate queues.
3402         (is_predicable, identify_predicable_attribute): New.
3403         (n_alternatives, collect_insn_data): New.
3404         (alter_predicate_for_insn, alter_test_for_insn): New.
3405         (shift_output_template, alter_output_for_insn): New.
3406         (process_one_cond_exec, process_define_cond_exec): New.
3407         (init_md_reader): Read the entire file.  Process define_cond_exec.
3408         (read_md_rtx): Return elements from the queues.
3409
3410 2000-05-06  Richard Henderson  <rth@cygnus.com>
3411
3412         * flow.c (mark_set_1): Don't update conditional life info
3413         if the register is not_dead.
3414
3415 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
3416
3417         * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
3418         (mostlyclean): Also delete fixincl, fixinc.sh, and
3419         specs.ready, and make clean in the fixinc subdir.
3420
3421 2000-05-06  Richard Henderson  <rth@cygnus.com>
3422
3423         * Makefile.in (gensupport.o): Compile for the host.
3424         (host-prefix gensuuprt.o): Remove.
3425         (genflags.o): Depend on gensupport.h and OBSTACK_H.
3426         (genattrtab.o): Likewise.
3427         (gencodes.o): Depend on gensupport.h.
3428         (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
3429         (genpeep.o, genattr.o, genoutput.o): Likewise.
3430
3431         * gensupport.c (obstack, rtl_obstack): New.
3432         (init_md_reader): Initialize rtl_obstack.
3433         * gensupport.h (rtl_obstack): Declare.
3434         (message_with_line): Declare.
3435
3436         * genattr.c: Remove all traces of obstack manipulation.
3437         * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
3438         * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
3439
3440         * genattrtab.c (obstack, rtl_obstack): Remove.
3441         (main): Don't init rtl_obstack.
3442         * genflags.c: Likewise.
3443
3444         * genrecog.c (message_with_line): Move ...
3445         * gensupport.c: ... here.
3446
3447 2000-05-06  Richard Henderson  <rth@cygnus.com>
3448
3449         * c-typeck.c (build_c_cast): Remove dead code.
3450
3451 2000-05-06  Richard Henderson  <rth@cygnus.com>
3452
3453         * flow.c (split_edge): Don't allocate global_live_at_start for
3454         the new block unless the old blocks had them as well.
3455
3456         * flow.c (mark_set_1): Respect not_dead when updating reg_live.
3457
3458         * ifcvt.c (noce_process_if_block): Don't use an insn_b from
3459         test_bb if a or b uses x.
3460
3461 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
3462
3463         * cpphash.h: Remove conditional #define of __extension__.
3464         * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
3465         RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
3466         (ENABLE_RTL_CHECKING only).
3467         * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
3468         CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
3469         (ENABLE_TREE_CHECKING only).
3470         * varray.h: Add __extension__ to VARRAY_CHECK macro
3471         (ENABLE_CHECKING only).
3472
3473 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3474
3475         Use new tail-calling mechanism on ARM.
3476         * arm.md (sibcall, sibcall_value): New expands.
3477         (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
3478         (tailcalling peepholes): Delete.
3479         (push_multi): Simplify.
3480         * arm.c (lr_save_eliminated): Delete definition.
3481         (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
3482         (output_return_instruction): Remove checks on lr_save_eliminated.
3483         (output_arm_prologue): Remove old tail-calling code.
3484         (arm_output_epilogue): New parameter, really_return.  All callers
3485         changed.  Handle tail-calling epilogues.
3486         * arm.h (lr_save_eliminated): Delete declaration.
3487         (frame_pointer_needed): Delete declaration.
3488         * arm-protos.h (arm_output_epilogue): Adjust prototype.
3489
3490         * arm.md (is_thumb): Examine symbol thumb_code, not expression
3491         TARGET_ARM.
3492         * arm.c (thumb_code): Define it.
3493         (arm_override_options): Set it.
3494         * arm.h (thumb_code): Declare it.
3495         
3496 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3497
3498         * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
3499
3500 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3501
3502         * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
3503         bogus clobber to insns.
3504         (load_multiple_operation, store_mulitple_operation): Don't check 
3505         for it.
3506         * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
3507
3508         * arm.md (and_scc, ior_scc): Add missing mode.
3509
3510         * arm.md (call_value_symbol): Remove predicate from op2.
3511
3512         * arm.h (SPECIAL_MODE_PREDICATES): Define.
3513         
3514 Sat May  6 06:25:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3515
3516         * expr.c (get_subtarget): New function.
3517         (force_operand, expand_expr, do_store_flag): Use it.
3518
3519         * toplev.c (compile_file): Don't take strlen of NAME if null.
3520
3521 2000-05-06  David Edelsohn  <edelsohn@gnu.org>
3522
3523         * xcoffout.c (xcoff_current_include_file,
3524         xcoff_current_function_file, xcoff_lastfile): Constify char *.
3525         (xcoffout_source_file, xcoffout_source_line): Make filename 'const
3526         char *'.
3527         (xcoffout_declare_function): Make name 'const char *'.
3528         (xcoffout_end_epilogue): Make fname 'const char *'
3529         * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
3530         xcoffout_declare_function, xcoffout_source_line): Match above.
3531
3532         * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
3533         -maix64 is error.
3534         * rs6000.c (print_operand): Fix lossage typo.
3535         (output_cbranch): Remove "cr" decoration for now.
3536         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'. 
3537
3538 Sat May  6 06:55:32 2000  Denis Chertykov  <denisc@overta.ru>
3539
3540         * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
3541         constant count.
3542
3543 2000-05-05  Bruce Korb  <bkorb@gnu.org>
3544
3545         * fixinc/genfixes: Improve the matching for make target names
3546
3547 2000-05-05  Catherine Moore  <clm@cygnus.com>
3548
3549         * c-common.c (decl_attributes):  For TYPE_DECLs attach the
3550         attribute to the decl.
3551         * c-decl.c (pushdecl): Propagate the USED attribute to the 
3552         type copy.
3553
3554 2000-05-05  Richard Henderson  <rth@cygnus.com>
3555
3556         * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
3557         same way emit_group_load does.
3558
3559 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
3560
3561         * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
3562
3563         * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
3564         (main): Likewise.
3565
3566 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
3567
3568         * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
3569
3570 Fri May  5 10:29:21 2000  Marc Espie <espie@cvs.openbsd.org>
3571
3572         * config/openbsd.h (LINK_SPEC): pass correct flags to ld 
3573         to support -shared, on platforms with dynamic libraries.
3574
3575 Fri May  5 10:27:06 2000  Philippe De Muyter  <phdm@macqel.be>
3576
3577         * system.h (S_ISBLK): Provide fallback definition.
3578
3579 2000-05-05  Geoff Berry  <geoffb@bops.com>
3580
3581         * extend.texi (Extended Asm): Document inability to give asm
3582         statements access to condition codes.
3583
3584 2000-05-05  Marek Michalkiewicz  <marekm@linux.org.pl>
3585
3586         * varasm.c (asm_emit_uninitialised): Use 0, not NULL
3587         as arg 2 of UNIQUE_SECTION.
3588
3589 Fri May  5 10:11:41 2000  Jeffrey A Law  (law@cygnus.com)
3590
3591         * predict.c: Remove May 4 change.
3592         * bb-reorder.c (make_reorder_chain): Do not perform block movement
3593         if we have predicted the branch at 50-50 probability.
3594
3595 2000-05-05  Richard Henderson  <rth@cygnus.com>
3596
3597         * flow.c (init_propagate_block_info): Fix merge error
3598         in HAVE_conditional_execution code.
3599
3600 Fri May  5 07:43:50 2000  Denis Chertykov  <denisc@overta.ru>
3601
3602         * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
3603         shift cycle for unknown shift count. Also generates dec + brpl.
3604         (ashlqi3_out): Don't generate dec + brpl which now generates by
3605         `out_shift_with_cnt'.
3606         (ashlhi3_out): Likewise.
3607         (ashlsi3_out): Likewise.
3608         (ashrqi3_out): Likewise.
3609         (ashrhi3_out): Likewise.
3610         (ashrsi3_out): Likewise.
3611         (lshrqi3_out): Likewise.
3612         (lshrhi3_out): Likewise.
3613         (lshrsi3_out): Likewise.
3614
3615 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
3616
3617         * gcc.c (free_split_directories): Correct typo in explanation
3618         of make_relative_prefix.
3619
3620 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
3621
3622         * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
3623         comparison codes to branch_comparison_operator.
3624
3625 2000-05-04  Richard Henderson  <rth@cygnus.com>
3626
3627         * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
3628
3629 2000-05-04  Richard Henderson  <rth@cygnus.com>
3630
3631         * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
3632         (DPBIT_FUNCS): Remove _sf_to_usi.
3633         (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
3634
3635         * ifcvt.c (noce_process_if_block): Fail if A or B modified
3636         between condition and jump.
3637
3638         * libgcc2.c (near eh_context_specific): Comment #endif string.
3639         * longlong.h: Don't use strings with embedded newlines.
3640
3641 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
3642
3643         * config/rs6000/rs6000-protos.h: Add output_cbranch.
3644         * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
3645         (print_operand): Delete %t and %T codes.
3646         (output_cbranch): New function.  Support branch prediction.
3647         * config/rs6000/rs6000.md: Use output_cbranch for
3648         conditional branches and returns.
3649
3650 2000-05-04  Jason Merrill  <jason@casey.cygnus.com>
3651
3652         * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
3653         * stor-layout.c (place_field): Likewise.
3654         * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
3655         * expr.c (store_expr): Make align unsigned.
3656         * explow.c (plus_constant_wide): Make low words unsigned.
3657         * expmed.c (choose_multiplier): Likewise.
3658         * fold-const.c (fold):  Likewise.
3659         * tree.h (build_int_2): Likewise.
3660         * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
3661         * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
3662         (init_emit): Change cast to unsigned char*.
3663         * varasm.c (compare_constant_1): Add cast to char*.
3664         * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
3665         * reload1.c (reload): Likewise.
3666
3667         * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
3668
3669 Thu May  4 14:37:23 2000  Jeffrey A Law  (law@cygnus.com)
3670
3671         * predict.c (estimate_probability): If no prediction was found, then
3672         predict the successor that is the next physical block (if such a
3673         successor exists).
3674
3675 2000-05-04  Richard Henderson  <rth@cygnus.com>
3676
3677         * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
3678
3679 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3680
3681         * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
3682
3683 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
3684
3685         * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move 
3686         attribute macros from here ...
3687         (CPP_SPEC): to here.
3688         * i386/mingw32.h (CPP_PREDEFINES): Likewise.
3689         (CPP_SPEC): Likewise.
3690         * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros. 
3691
3692         * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
3693         (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
3694
3695 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3696
3697         * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
3698         
3699         * diagnostic (vbuild_message_string, build_message_string,
3700         build_location_prefix, output_get_prefix, init_output_buffer,
3701         output_notice, vline_wrapper_message_with_location,
3702         v_message_with_decl, default_print_error_function): De-constify.
3703         (set_real_maximum_length): Prototype.
3704
3705         * diagnostic.h (struct output_buffer, init_output_buffer,
3706         output_get_prefix, output_set_prefix): De-constify.
3707
3708         * function.c (init_function_start): Constify.
3709
3710         * gensupport.c (remove_constraints, process_rtx): Prototype.
3711
3712         * gthr-posix.h: Indent uses of #pragma.
3713
3714         * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
3715         Prototype.
3716
3717         * predict.c (find_expected_value): Delete prototype.
3718         (expected_value_to_br_prob): Initialize variable `ev_reg'.
3719
3720         * sbitmap.h (debug_sbitmap): Prototype.
3721
3722         * ssa.c (compute_coalesced_reg_partition): Prototype.
3723
3724         * stor-layout.c (debug_rli): Prototype.
3725
3726         * tree.h (round_down): Prototype.
3727         (init_function_start): Constify.
3728
3729 2000-05-04  Zack Weinberg  <zack@wolery.cumb.org>
3730
3731         * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
3732         (overly conservative).  Change extern inline wrappers to
3733         static inline, define them always, use PARAMS properly.
3734         * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
3735         whitespace warnings for \f and \v at the beginning of a line.
3736
3737 Thu May  4 10:03:50 2000  Jeffrey A Law  (law@cygnus.com)
3738
3739         * haifa-sched.c (schedule_insns): Free the flow edge list when it
3740         is no longer needed
3741
3742 2000-05-04  Bruce Korb  <bkorb@gnu.org>
3743
3744         * fixincl/inclhack.def: added broken_cabs -
3745         Remove `extern double cabs' declarations from math.h
3746         * fixincl/inclhack.sh: regen
3747         * fixincl/fixincl.x: regen
3748         * fixincl/fixincl.c: Remove BOGOSITY code
3749         * fixincl/mkfixinc.sh: Remove code for installing "shell" version
3750
3751 Thu May  4 09:45:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3752
3753         * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
3754         MEM_ALIAS_SET.
3755         * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
3756         when calling MEM_COPY_ATTRIBUTES.
3757         * emit-rtl.c (operand_subword, change_address): Likewise.
3758         * explow.c (stabilize): Likewise.
3759         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
3760         * integrate.c (copy_rtx_and_substitute): Likewise.
3761         * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
3762         when calling MEM_COPY_ATTRIBUTES.
3763         (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
3764         Likewise.
3765         * cse.c (gen_lowpart_if_possible): Likewise.
3766         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
3767         * optabs.c (gen_move_insn): Likewise.
3768         * recog.c (validate_replace_rtx_1): Likewise.
3769         * simplify-rtx.c (add_mem_for_addr): Likewise.
3770         * stmt.c (expand_anon_union_decl): Likewise.
3771         * config/arm/arm.md: Likewise.
3772         * config/h8300/h7300.c (fix_bit_operand): Likewise.
3773         * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
3774         (block_move_no_loop, block_move_sequence): Likewise.
3775         * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
3776         * config/alpha/alpha.c (get_aligned_mem): Likewise.
3777         Clear MEM_ALIAS_SET.
3778         * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
3779         MEM_COPY_ATTRIBUTES.
3780
3781 2000-05-03  Robert Lipe <robertlipe@usa.net>
3782         
3783         * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
3784         to suppress libgcc1.
3785         (i[34567]86-*-sco3.2v5*) Likewise.
3786         (i[34567]86-*-sco3.2v4*) Likewise.
3787         (i[34567]86-*-sco) Likewise.
3788         (i[34567]86-*-solaris2) Likewise.
3789         (i[34567]86-*-sysv5*) Likewise.
3790         (i[34567]86-*-sysv4*) Likewise.
3791         (i[34567]86-*-udk*) Likewise.
3792         (i[34567]86-*-sysv*) Likewise.
3793
3794 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
3795
3796         * cpphash.h (U): New define, to correct type of string constants.
3797         (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
3798         routines, to do casts when passing unsigned strings to libc.
3799         * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
3800
3801         * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
3802         * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
3803         * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
3804         * cpplex.c (parse_ifdef, parse_include, validate_else): Make
3805         second argument an U_CHAR *.
3806
3807         * cppinit.c (builtin_array): Make name and value U_CHAR *, add
3808         length field, clean up initializer.
3809         (ISTABLE): Add __extension__ to designated-
3810         initializers version.
3811         * cpplex.c (CHARTAB): Likewise.
3812
3813         * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
3814         case so the file won't be empty.
3815
3816 Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>
3817
3818         * bb-reorder.c (struct reorder_block_def): Member succ removed.
3819         (REORDER_BLOCK_SUCC): Removed.
3820         (enum reorder_skip_type): Removed.
3821         (skip_insns_between_block): Renamed to skip_insns_after_block.
3822         Removed second argument. Removed dead code and cleaned up.
3823         (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
3824         (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
3825         second parameter to skip_insns_after_block.
3826
3827 Wed May  3 13:29:54 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3828
3829         * tree.c (staticp, case LABEL_DECL): New case.
3830
3831 2000-05-03  Richard Henderson  <rth@cygnus.com>
3832
3833         * Makefile.in (start.encap): Do not depend on LIBGCC1.
3834
3835         * mklibgcc1.in: Fix typo last change.
3836
3837 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
3838
3839         * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
3840         (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
3841         (GCC_CFLAGS): Use it.
3842         (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
3843         * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
3844         objc/Make-lang.in: Use it.
3845
3846 2000-05-03  Jason R Thorpe  <thorpej@zembu.com>
3847
3848         * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
3849
3850 2000-05-03  Richard Henderson  <rth@cygnus.com>
3851
3852         * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
3853         LIBGCC1 empty with libgcc1.null.
3854
3855 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
3856
3857         * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
3858         change.
3859
3860 2000-05-03  Greg McGary  <gkm@gnu.org>
3861
3862         * tree.h (tree_common): Add bounded_flag member.  Remove
3863         inaccurate comment about number of remaining bits.
3864         (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
3865         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
3866         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
3867         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
3868         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
3869         (TYPE_QUAL_BOUNDED): New constant.
3870         (TYPE_QUALS): Handle bounded qualifier.
3871         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
3872         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
3873         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
3874         TYPE_AMBIENT_BOUNDEDNESS): New macros.
3875         (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
3876         (tree_type): Add pointer_depth member.  Remove
3877         inaccurate comment about number of remaining bits.
3878         (DECL_POINTER_DEPTH): Add macro.
3879         (tree_decl): Add pointer_depth member.
3880
3881 Wed May  3 22:52:53 2000  Denis Chertykov  <denisc@overta.ru>
3882
3883         * config/avr/avr-protos.h (test_hard_reg_class): Declared.
3884         * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
3885         (lshrhi3_out): Likewise.
3886         (ashrsi3_out): bugfix in shift by 8.
3887         (test_hard_reg_class): New function.
3888         * config/avr/avr.md: Bugfix inside conditions in peepholes.
3889         (ashlhi3): removed define_expand of this pattern.
3890         (*ashlhi3_insn): renamed to ashlhi3.
3891         (ashlsi3): removed define_expand of this pattern.
3892         (*ashlsi3_insn): renamed to ashlsi3.
3893         (ashrqi3): removed define_expand of this pattern.
3894         (*ashrqi3_insn): renamed to ashrqi3.
3895         (ashrhi3): removed define_expand of this pattern.
3896         (*ashrhi3_insn): renamed to ashrhi3.
3897         (ashrsi3): removed define_expand of this pattern.
3898         (*ashrsi3_insn): renamed to ashrsi3.
3899         (lshrhi3): removed define_expand of this pattern.
3900         (*lshrhi3_insn): renamed to lshrhi3.
3901         (lshrsi3): removed define_expand of this pattern.
3902         (*lshrsi3_insn): renamed to lshrsi3.
3903
3904 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
3905
3906         * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
3907         inclusion of "system.h".
3908
3909 Wed May  3 11:43:53 2000  Jim Wilson  <wilson@cygnus.com>
3910
3911         * config/ia64/ia64.c (ia64_encode_section_info): Add check for
3912         TREE_ASM_WRITTEN.
3913
3914 2000-05-03  David Mosberger  <davidm@hpl.hp.com>
3915
3916         * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
3917         if -mauto-pic is on.
3918         (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
3919         -mconstant-gp is in effect and function-descriptors are being used
3920         to make indirect calls.
3921         * config/ia64/ia64.h (MASK_CONST_GP): New macro.
3922         (MASK_AUTO_PIC): Ditto.
3923         (TARGET_CONST_GP): Ditto.
3924         (TARGET_AUTO_PIC): Ditto.
3925         (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
3926         (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
3927         -mno-pic is in effect.
3928         (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
3929         * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
3930         -mauto-pic is in effect.
3931         (gprel64_offset): New pattern.
3932         (load_gprel64): Ditto.
3933         (call): Handle -mauto-pic like -mno-pic (don't use fptr).  If
3934         -mconstant-gp is in effect, no need to preserve gp around direct
3935         calls.
3936         (call_value): Ditto.
3937         * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
3938         (FUNCTION_PROFILER): Define.
3939         * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
3940         @fptr() directive when -mno-pic or -mauto-pic is in effect.
3941         (ASM_OUTPUT_DESTRUCTOR): Ditto.
3942
3943 2000-05-03  Richard Henderson  <rth@cygnus.com>
3944
3945         * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
3946         (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
3947         (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
3948         (mklibgcc, libgcc.mk): New targets.
3949         (libgcc.a): Use libgcc.mk.
3950         (stmp-multilib): Likewise.
3951         (stmp-multilib-sub): Remove.
3952         (mostlyclean): Don't delete libgcc2 temp files.
3953         * configure.in (AC_PROG_CC_C_O): Add.
3954         (NO_MINUS_C_MINUS_O): Substitute it.
3955         (all_outputs): Add mklibgcc.
3956         * mklibgcc.in: New file.
3957
3958 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
3959
3960         * cppexp.c (op_t): Make an int.
3961
3962         * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
3963
3964         * varasm.c (initializer_constant_valid_p): Fix parenthesis.
3965
3966         * gensupport.c (process_rtx): Fix macros used.
3967
3968 2000-05-03  Richard Henderson  <rth@cygnus.com>
3969
3970         * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
3971         call-clobbered registers of a call.
3972
3973 Wed May  3 12:40:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
3974
3975         * gensupport.c: New file.
3976         * gensupport.h: New file.
3977         * Makefile.in (HOST_RTL): Depend on gensupport.
3978         (gensupport.o) New rule.
3979         * genattr.c: Use gensupport for reading .md files.
3980         * genattrtab.c: Ditto. 
3981         * gencodes.c: Ditto. 
3982         * genconfig.c: Ditto. 
3983         * genemit.c: Ditto. 
3984         * genextract.c: Ditto. 
3985         * genflags.c: Ditto. 
3986         * genopinit.c: Ditto. 
3987         * genoutput.c: Ditto. 
3988         * genpeep.c: Ditto. 
3989         * genrecog.c: Ditto.
3990         * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
3991         * md.texi (Insn Splitting): Document define_insn_and_split.
3992
3993 Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>
3994
3995         * flow.c (verify_flow_info): Added two more sanity checks. The
3996         first checks that the blocks are numbered consecutively. The second
3997         checks that n_basic_blocks is actually equal to the number of
3998         basic blocks in the insn chain.
3999
4000 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
4001
4002         * cpplib.h: Add accessor macros for token lists.
4003         * cpplib.c, cpphash.c, cpplex.c: Use them.
4004
4005 Wed May  3 09:29:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4006
4007         * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
4008         memory usage if not in a function.
4009         * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
4010         return address if static.
4011
4012 Wed May  3 13:14:49 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4013
4014         * ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
4015         whether address may trap.
4016
4017 Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>
4018
4019         * bb-reorder (chain_reorder_blocks): Changed code to test for
4020         EDGE_FALLTHRU rather than making erroneous assumption that the
4021         first outgoing edge is the fall-through edge.
4022
4023 Tue May  2 18:20:31 2000  Donald Lindsay  <dlindsay@hound.cygnus.com>
4024
4025         * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new 
4026         ABI for varargs, across all MIPS. This is incompatible because the
4027         va_list (__builtin_va_list) structure is different, so a compilation
4028         unit passing a va_list and a compilation unit being passed one, should
4029         both be compiled with the same ABI. (The old structure had two 
4030         pointers, now it has three.)
4031
4032 Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>
4033
4034         * bb-reorder.c (struct reorder_block_def): Remove members end,
4035         block_begin, and block_end.
4036         (REORDER_BLOCK_OLD_END): Delete.
4037         (REORDER_BLOCK_BEGIN): Delete.
4038         (REORDER_BLOCK_END): Delete.
4039         (chain_reorder_blocks): Remove dead code.
4040
4041 Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>
4042
4043         * bb-reorder.c (remove_scope_notes): Check for both types of scope
4044         notes as the end of a basic block before deleting.
4045
4046 2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>
4047
4048         * final.c (final_start_function): Fix spelling of "necessary".
4049
4050 2000-05-02  Jason Merrill  <jason@casey.cygnus.com>
4051
4052         * toplev.c (debug_ignore_block): Return int.
4053         * dwarf2out.c (dwarf2out_ignore_block): Likewise.
4054         * toplev.h, dwarf2out.h: Adjust.
4055         * emit-rtl.c (remove_unnecessary_notes): Test return value.
4056
4057         * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
4058         * toplev.c, final.c, rtl.h: Adjust.
4059
4060 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4061
4062         * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
4063         * configure.in: Look for makeinfo in the unified tree, then
4064         for a system makeinfo which is sufficiently new.
4065         * Makefile.in: If configure says makeinfo is too old, don't
4066         build or install Info documentation.
4067
4068 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4069
4070         * cpphash.c (collect_params): Fix off-by-one error.
4071         (dump_hash_helper): Dump all four macro nodetypes.
4072
4073 2000-05-02  Jakub Jelinek  <jakub@redhat.com>
4074
4075         * cpphash.c (trad_stringify): Adjust p after stringification as
4076         well.
4077
4078 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4079
4080         * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
4081         (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
4082
4083         * cppfiles.c (file_cleanup): Delete.
4084         * cpphash.c (macro_cleanup): Delete.
4085         (collect_objlike_expansion, collect_funlike_expansion,
4086         macarg, scan_arguments): Remove CPP_POP case.
4087
4088         * cpplex.c (null_cleanup): Delete.
4089         (cpp_pop_buffer): Do the work that was done in the cleanups
4090         here.  Call _cpp_unwind_if_stack from here.
4091         (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
4092         cpp_scan_buffer): Run until we see CPP_EOF and the top of
4093         stack is the buffer _below_ the one we stacked.
4094         (cpp_get_token): Always pop an exhausted buffer.  Return
4095         CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
4096         * cpplib.c (skip_if_group): Don't call cpp_get_token to
4097         increment the line number.
4098         (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
4099
4100         * fix-header.c (read_scan_file) [parsing getchar()]: Run until
4101         we see CPP_EOF and the top of stack is the buffer _below_ the
4102         one we stacked.
4103         * scan-decls.c: Likewise.
4104
4105 2000-05-02  Andrew Haley  <aph@cygnus.com>
4106
4107         * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
4108         where this function is called for the second time on a decl that
4109         has had its section info changed in such a way as to move it out
4110         of small data/bss.  
4111         * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
4112
4113 2000-05-01  Richard Henderson  <rth@cygnus.com>
4114
4115         * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
4116         the sequence we're moving, not to merge_bb->head.
4117
4118 2000-05-01  Richard Henderson  <rth@cygnus.com>
4119
4120         * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
4121         reference to alpha/t-linux.
4122         (alpha*-*-linux-gnu*): Likewise.
4123         * configure: Rebuild.
4124
4125         * calls.c (expand_call): Don't emit reg notes for a sibcall.
4126
4127         * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
4128         if not in SSA form.
4129
4130         * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
4131
4132 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
4133
4134         * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
4135         TREE_THIS_VOLATILE.
4136
4137 2000-05-01  Richard Henderson  <rth@cygnus.com>
4138
4139         * ifcvt.c (noce_emit_cmove): Conditionally compile call to
4140         emit_conditional_move.
4141
4142 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
4143
4144         * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
4145         as the dynamic linker.
4146
4147 2000-05-01  Zack Weinberg  <zack@wolery.cumb.org>
4148
4149         * cppfiles.c (open_include_file): Open file in blocking mode.
4150         (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
4151         Only exclude block devices and directories.
4152
4153         * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
4154         static.  Allocate the hashnode and its string in the same
4155         block of memory.
4156         (del_HASHNODE): Don't free h->name.
4157         (_cpp_lookup): If there is no entry for this string, create
4158         one, of type T_VOID.
4159         (_cpp_lookup_slot): Delete.
4160         * cpphash.h: Update prototypes.
4161
4162         * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
4163         not hp == NULL.
4164         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
4165         do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
4166         node here, just fill in the value field properly.  "Delete"
4167         entries by setting the value field to T_VOID.  Check for
4168         hp->type == T_VOID, not hp == NULL.
4169
4170         * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
4171         * cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
4172         hashtab.h.
4173
4174 2000-05-01  Alexandre Oliva  <aoliva@cygnus.com>
4175
4176         * config/mn10300/mn10300.c (print_operand_address): Do not add
4177         zero to SP.
4178
4179         * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
4180         adjusted by less than 256 bytes, use ret regardless of having any
4181         callee-saved register to restore.
4182
4183 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
4184
4185         * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
4186
4187 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
4188
4189         * config/i386/djgpp.h (INT_ASM_OP): Define.
4190         (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
4191         (ASM_WEAKEN_LABEL): Define.
4192         (MASK_BNU210): Define.
4193         (SUBTARGET_SWITCHES): Define.
4194         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
4195         (MAKE_DECL_ONE_ONLY): Define.
4196         (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
4197
4198 2000-05-01  Mumit Khan  <khan@xraylith.wisc.edu>
4199
4200         * i386/cygwin.h (INT_ASM_OP): Define.
4201
4202 Mon May  1 18:20:06 2000  Denis Chertykov  <denisc@overta.ru>
4203
4204         * config/avr/avr.c (address_cost): renamed to avr_address_cost.
4205         * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
4206
4207 Mon May  1 17:50:44 2000  Denis Chertykov  <denisc@overta.ru>
4208
4209         * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
4210         __tmp_reg__ and __zero_reg__ initialization.
4211
4212 2000-04-30  Richard Henderson  <rth@cygnus.com>
4213
4214         * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
4215
4216         * ifcvt.c (noce_process_if_block): Fail the conversion if X is
4217         referenced bewteen the condition and the jump.  Don't delete
4218         anything but the jump.
4219
4220 Sun Apr 30 22:48:24 2000  Jason Eckhardt  <jle@cygnus.com>
4221
4222         * bb-reorder.c (scope_def): New struct.
4223         (scope_forest_info): New struct.
4224         (struct reorder_block_def): New member "scope".
4225         (REORDER_BLOCK_SCOPE): New macro.
4226         (relate_bbs_with_scopes): New function and prototype.
4227         (make_new_scope): Likewise.
4228         (build_scope_forest): Likewise.
4229         (remove_scope_notes): Likewise.
4230         (insert_intra_1): Likewise.
4231         (insert_intra_bb_scope_notes): Likewise.
4232         (insert_inter_bb_scope_notes): Likewise.
4233         (rebuild_scope_notes): Likewise.
4234         (free_scope_forest_1): Likewise.
4235         (free_scope_forest): Likewise.
4236         (dump_scope_forest): Likewise.
4237         (dump_scope_forest_1): Likewise.
4238         (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
4239         Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
4240         block.
4241         (reorder_basic_blocks): Added calls to build_scope_scope_forest
4242         and remove_scope_notes before reordering is done. Added calls to
4243         rebuild_scope_notes, free_scope_forest, and reorder_blocks after
4244         after reordering is done.
4245
4246 2000-40-30  Bruce Korb  <bkorb@gnu.org>
4247
4248         * fixinc/inclhack.def:  Added definitions needed by OSR5,
4249         removed two stale entries (defined away with OLD_CPP).
4250         * fixinc/inclhack.sh: regen
4251         * fixinc/fixincl.x: regen
4252
4253 2000-04-30  Richard Henderson  <rth@cygnus.com>
4254
4255         * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
4256         from the last insn in the sequence.
4257
4258 2000-04-30  Zack Weinberg  <zack@wolery.cumb.org>
4259
4260         * cpplex.c (cpp_idcmp): New function.
4261         * cpplib.h: Prototype it.
4262         * scan_decls.c (scan_decls): Use it to inspect token names.
4263         * fix-header.c (read_scan_file): Likewise.  Set system_header_p on
4264         the file being run through the preprocessor.
4265         (check_macro_names): Provide length of token to cpp_defined.
4266
4267         * Makefile.in: Remove stale warning message.
4268
4269         * cppfiles.c (redundant_include_p): Provide length of token to
4270         cpp_defined.
4271         * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
4272         values are unsigned int.
4273         (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
4274         (_cpp_lookup_slot): Do not calculate the hash, either.
4275         * cpphash.h: Update prototypes.
4276         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
4277         Hashes are unsigned int.  Calculate hash here, pass by value
4278         to _cpp_lookup_slot.
4279
4280 2000-04-30  Bernd Schmidt  <bernds@cygnus.co.uk>
4281
4282         * simplify-rtx.c (check_value_useless): Delete function.
4283         (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
4284         by hand.
4285         (cselib_invalidate_regno): Likewise.
4286         (cselib_invalidate_mem_1): Likewise.
4287         (references_value_p): Recognize useless values by the fact that they
4288         have no locations.
4289         (discard_useless_values): Likewise.
4290         (cselib_record_set): This may turn a useless value
4291         into a useful one.
4292
4293 2000-04-30  Richard Henderson  <rth@cygnus.com>
4294
4295         * config/d30v: New port.
4296
4297         * configure.in (d30v-*): Set fp format.
4298         * configure: Rebuild.
4299
4300 2000-04-30  Richard Henderson  <rth@cygnus.com>
4301
4302         * ifcvt.c: New file.
4303         * Makefile.in (OBJS): Add it.
4304         (ifcvt.o): New target.
4305         * jump.c (jump_optimize_1): Remove all code related to if-conversion,
4306         and conditional arithmetic.
4307         (find_insert_position): Remove.
4308         * timevar.def (TV_IFCVT, TV_IFCVT2): New.
4309         * toplev.c (DFI_ce, DFI_ce2): New.
4310         (dump_file): Add ce and ce2 dumps.
4311         (rest_of_compilation): Run if_convert a couple o times.  Set
4312         cse_not_expected after cse2.  Don't set no_new_pseudos until
4313         after sched1 or recompute_reg_usage.
4314
4315 2000-04-30  Richard Henderson  <rth@cygnus.com>
4316
4317         * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
4318         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
4319
4320 2000-04-30  Richard Henderson  <rth@cygnus.com>
4321
4322         * flow.c (struct reg_cond_life_info): New.
4323         (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
4324         (init_propagate_block_info): Initialize them.
4325         (free_propagate_block_info): Destruct them.
4326         (mark_set_1): Consider conditional life before killing a register.
4327         (mark_regno_cond_dead): New.
4328         (free_reg_cond_life_info): New.
4329         (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
4330         (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
4331         (mark_used_reg): Record conditional life.
4332
4333         * haifa-sched.c (schedule_insns): Disable death counting
4334         sanity check for HAVE_conditional_execution.
4335
4336 2000-04-30  Richard Henderson  <rth@cygnus.com>
4337
4338         * Makefile.in (TIMEVAR_H): New.
4339         (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
4340         (timevar.h): Remove rule.
4341
4342 2000-04-29  Richard Henderson  <rth@cygnus.com>
4343
4344         * config/alpha/crtend.asm: Use C comments instead of #.
4345         * config/alpha/crtbegin.asm: Likewise.  Mark __dso_handle hidden.
4346
4347         * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
4348
4349 2000-04-29  Zack Weinberg  <zack@wolery.cumb.org>
4350
4351         * cpphash.h (enum node_type: Take out T_MCONST.
4352         (union hashval): Move into struct hashnode.
4353         (struct hashnode): Pack tighter.  Remove file, line, col
4354         members.
4355         * cpphash.c: Constify most of the macro-definition structures.
4356         (struct definition): Replace by struct object_defn
4357         and struct funct_defn.  Put file, line, column information
4358         here.  All users updated to match.
4359         (_cpp_create_definition, _cpp_macroexpand): Remove special
4360         case for #define WORD OTHERWORD.
4361         * cpplib.c (do_undef): Remove T_MCONST case.
4362
4363         * cpphash.h: Move struct reflist, struct definition, and the
4364         DEFINITION typedef to cpphash.c.  Use 'struct definition *' in
4365         union hashval.  _cpp_free_definition takes a HASHNODE pointer.
4366         * cpphash.c (_cpp_free_definition): Free data pointed to by
4367         MCONST, XCONST, MACRO, and FMACRO nodes properly.
4368         (_cpp_create_definition, del_HASHNODE): Just call
4369         _cpp_free_definition to clear out a hashnode.
4370         * cpplib.c (do_pragma_poison): Likewise.
4371
4372 Sat Apr 29 12:25:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
4373
4374         * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
4375         LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
4376         FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
4377         (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
4378         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
4379         REGNO_AM33_P): Redefine in terms of the new macros.
4380         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4381         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
4382         STRUCT_VALUE): Likewise.
4383         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
4384         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise.  Moved.
4385
4386 Sat Apr 29 01:18:45 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4387
4388         * regmove.c (struct record_stack_memrefs_data): New.
4389         (record_stack_memrefs): New function.
4390         (combine_stack_adjustments_for_block): Use it.
4391
4392 Sat Apr 29 01:15:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4393
4394         * calls.c (calls_function_1):  Propertly handle TREE_LIST expressions;
4395         use special_function_p to detect alloca.
4396
4397 Fri Apr 28 16:30:33 2000  Marc Espie <espie@cvs.openbsd.org>
4398
4399         * gcc.texi: Fixes for makeinfo 4.0 --html.
4400
4401 2000-04-28  Zack Weinberg  <zack@wolery.cumb.org>
4402
4403         * pcp.h: Delete file.
4404
4405 2000-04-28  Kazu Hirata  <kazu@hxi.com>
4406
4407         * h8300.c (function_epilogue): Clean up flags when the last insn
4408         in a function is a barrier.
4409
4410 2000-04-28  Chris Demetriou  <cgd@sibyte.com>
4411
4412         * configure.in (sparc-hal-solaris2*): protect [] glob from
4413         my expansion.
4414         (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
4415         rather than hard-coded constants in target_cpu_default2.
4416         * configure: Regenerate.
4417
4418 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
4419
4420         * tree.c (get_callee_fndecl): Extract the initial value from
4421         a readonly decl.
4422
4423 2000-04-28  Richard Henderson  <rth@cygnus.com>
4424
4425         * varasm.c (record_constant_1): Record the CODE_LABEL when
4426         taking the address of a LABEL_REF.
4427
4428 2000-04-28  Richard Henderson  <rth@cygnus.com>
4429             Jan Hubicka  <jh@suse.cz>
4430
4431         * calls.c (combine_pending_stack_adjustment_and_call): Return the
4432         adjustment; don't do the stack adjust.
4433         (expand_call): Call compute_argument_block_size right before
4434         allocating the block; update comment; don't do alignment sanity
4435         checking for sibling call; use args_size instead of
4436         unadjusted_args_size before args_size is adjusted.  Use
4437         combine_pending_stack_adjustment_and_call to compute stack adjust
4438         for must_preallocate case.
4439
4440         * expr.c (push_block): Remove shadow `temp' in inner scope.
4441
4442 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
4443
4444         * toplev.c (rest_of_compilation): Call
4445         note_deferral_of_defined_inline_function even if the function
4446         can't be inlined.
4447
4448 2000-04-28  Scott Bambrough  <scottb@netwinder.org>
4449
4450         * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
4451
4452 2000-04-28  Richard Henderson  <rth@cygnus.com>
4453
4454         * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
4455
4456 2000-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4457
4458         * timevar.c (init_timevar): DeANSIfy function definition.
4459
4460 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
4461
4462         * Makefile.in (timevar.o): Depend on flags.h.
4463         * timevar.c (unused_stack_instances): New variable.
4464         (timevar_push): Take a timevar_stack_def from
4465         unused_stack_instances if available.
4466         (timevar_pop): Push the popped timevar_stack_def onto
4467         unused_stack_instances.
4468         (TIMEVAR_ENABLE): New macro.
4469         (timevar_def): Make standalone a 1-bit field.  Add field used.
4470         (get_time): Rename parameter to now.  Return after clearing it if
4471         not TIMEVAR_ENABLE.
4472         (init_timevar): Do nothing if not TIMEVAR_ENABLE.
4473         (timevar_pop): Likewise.
4474         (timevar_stop): Likewise.
4475         (timevar_push): Likewise.  Mark the timing variable as used.
4476         (timevar_start): Likewise.
4477         (timevar_print): Do nothing if not TIMEVAR_ENABLE.  Don't print
4478         timevars that were never used.
4479
4480 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
4481
4482         * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
4483         always TREE_READONLY.
4484
4485 2000-04-27  Ulrich Drepper  <drepper@cygnus.com>
4486
4487         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
4488         for call instruction with mode QImode.
4489
4490 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
4491
4492         * Makefile.in (OBJS): Add timevar.o.
4493         (toplev.o): Depend on timevar.h.
4494         (ggc-simple.o): Likewise.
4495         (ggc-page.o): Likewise.
4496         (timevar.o): New rule.
4497         (timevar.h): New rule.
4498
4499         * timevar.h: New file.
4500         * timevar.c: Likewise.
4501         * timevar.def: Likewise.
4502
4503         * toplev.h (gc_time, parse_time, varconst_time): Remove.
4504         * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
4505         throughout.
4506         (TIMEVAR): Remove macro.
4507         (gc_time, parse_time, varconst_time, integration_time, jump_time,
4508         cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
4509         flow_time, combine_time, regmove_time, sched_time,
4510         local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
4511         sched2_time, dbr_sched_time, reorder_blocks_time,
4512         rename_registers_time, shorten_branch_time, stack_reg_time,
4513         to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
4514         all_time): Remove.
4515         (compile_file): Don't initialize time variables.  Call
4516         init_timevar and start TV_TOTAL timer.  Call timevar_print instead
4517         of many calls to print_time.
4518         (rest_of_compilation): Add timing for reload_cse_regs.
4519         (get_run_time): Removed to timevar.c.
4520         (print_time): Likewise.
4521         (get_run_time): Implement using TV_TOTAL time variable.
4522         (print_time): Get total run time from get_run_time.
4523         * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
4524         computing elapsed time explicitly.
4525         * ggc-simple.c (ggc_collect): Likewise.
4526         (gc_time): Remove declaration.
4527
4528 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
4529
4530         * calls.c (combine_pending_stack_adjustment_and_call): New function.
4531         (expand_call): Use it.
4532
4533 2000-04-27  Jan Hubicka  <jh@suse.cz>
4534
4535         * flow.c (mark_set_1):  Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
4536         fields.
4537
4538 Thu Apr 27 12:47:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
4539
4540         * config/mn10300/mn10300.md (movhi): Simplify.  Prefer data
4541         registers.
4542
4543 Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4544
4545         * function.c (epilogue_done): Pass whole insn to record_insns.
4546
4547 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4548
4549         * cse.c (CSE_ADDRESS_COST): Remove.
4550         (find_best_addr): Add new parameter "MODE", use address_cost instead
4551         of CSE_ADDRESS_COST
4552         (address_cost): New.
4553         (fold_rtx): Update call of find_best_addr.
4554         * rtl.h (address_cost): Declare.
4555         * loop.c (general_induction_var): Add new parameter "MODE", use
4556         address_cost instead of ADDRESS_COST
4557         (init_loop): Use address_cost instead of ADDRESS_COST.
4558         (check_insn_for_givs): Update call of general_induction_var.
4559         (find_mem_givs): Likewise.
4560         (consec_sets_giv): Likewise.
4561         * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
4562         * i386.c (ix86_address_cost): New.
4563         * i386-protos.h (ix86_address_cost): Declare.
4564
4565 Thu Apr 27 11:45:16 2000  Alexandre Oliva  <aoliva@cygnus.com>
4566
4567         * config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
4568         registers.
4569
4570 Thu Apr 27 16:11:00 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4571
4572         * expr.c (store_expr): Use clear_storage instead of direct memset
4573         libcall.
4574
4575 Thu Apr 27 10:36:51 2000  Alexandre Oliva  <aoliva@cygnus.com>
4576
4577         * config/mn10300/mn10300.c (mn10300_address_cost): Test
4578         ASHIFT, AND and LABEL_REF.
4579
4580 Thu Apr 27 15:08:46 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4581
4582         * invoke.texi (-foptimize-sibling-calls): Fix.
4583
4584 Thu Apr 27 14:54:22 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4585
4586         * loop.c (load_mems)  Don't use hard registers for the hoisting.
4587
4588         * unroll.c (unroll_loop): Avoid overflow in the n_iterations
4589         calculation; rename const_equiv array in the preconditioning code
4590         from loop_unroll to loop_unroll_precondition
4591
4592 2000-04-27  Richard Henderson  <rth@cygnus.com>
4593
4594         * flow.c (struct propagate_block_info): Remove new_dead, new_live;
4595         add new_set.
4596         (propagate_one_insn): Clear it.  Don't update reg_live here.
4597         (init_propagate_block_info): Update for pbi member changes.
4598         (free_propagate_block_info): Likewise.
4599         (mark_set_1): Know that zero_extract, sign_extract, and
4600         strict_low_part don't kill their argument.  Alter hard subregs.
4601         Update new_set for non-CLOBBER sets.  Update reg_live.
4602         (find_auto_inc): Update reg_live, not new_dead.
4603         (mark_used_reg): Update reg_live, not new_live.  Examine new_set
4604         to determine if the reg in question was set this insn.  Only update
4605         reg info with PROP_REG_INFO.
4606
4607 2000-04-26  Richard Henderson  <rth@cygnus.com>
4608
4609         * flow.c (allocate_reg_life_data): Set max_regno here ...
4610         (life_analysis): ... not here.
4611
4612         * flow.c (calculate_global_regs_live): Force stack pointer
4613         live at end.
4614
4615 2000-04-26  Richard Henderson  <rth@cygnus.com>
4616
4617         * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
4618         commit change group changes.
4619         (invert_exp_1): Similarly.
4620         (redirect_exp, invert_exp): Use them.
4621         (redirect_jump_1): New.
4622         (invert_jump_1): New.
4623         (jump_optimize_1): Remove code subsumed by condexec.c.
4624         * rtl.h (invert_jump_1, redirect_jump_1): Declare.
4625
4626 2000-04-26  Richard Henderson  <rth@cygnus.com>
4627
4628         * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
4629
4630         * genconfig.c (main): Set all HAVE_foo to 1.
4631
4632         * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
4633
4634 2000-04-26  Alex Samuel  <samuel@codesourcery.com>
4635
4636         * invoke.texi: Document -fssa flag.
4637
4638 2000-04-26  Richard Henderson  <rth@cygnus.com>
4639
4640         * flow.c (count_reg_sets_1): Remove.
4641         (count_reg_sets, count_reg_references): Remove.
4642         (recompute_reg_usage): Implement with update_life_info.
4643         Reallocate life data.
4644
4645 2000-04-26  Richard Henderson  <rth@cygnus.com>
4646
4647         * flow.c (update_life_info): Consider blocks null to mean the
4648         universal set.
4649         (calculate_global_regs_live): Likewise.
4650         (life_analysis): Do that instead of collecting all_blocks.
4651
4652 2000-04-26  Richard Henderson  <rth@cygnus.com>
4653
4654         * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
4655         a still-valid conditional jump.
4656
4657 2000-04-26  Richard Henderson  <rth@cygnus.com>
4658
4659         * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
4660
4661         * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
4662         * flow.c (calculate_loop_depth): Remove.
4663         * output.h (calculate_loop_depth): Don't declare.
4664         * toplev.c (rest_of_compilation): Expand calculate_loop_depth
4665         inline; run estimate_probability at the same time.
4666
4667 2000-04-26  Neil Booth  <NeilB@earthling.net>
4668
4669         * cpplib.h: "~=" is not a single pp-token.
4670         * cpplex.c: Correct commentary.
4671
4672 2000-04-26  Richard Henderson  <rth@cygnus.com>
4673
4674         * flow.c (mark_set_1): New arguments code and flags; update all
4675         callers.  Track regno_first and regno_last; do HARD_REGNO_NREGS
4676         test in one place.  Tidy flags tests.  Don't bias REG_N_REFS by
4677         loop_depth when optimizing for size.  Do new_dead update after
4678         emitting REG_UNUSED notes.  Merge mark_set_reg code.
4679         (mark_set_reg): Remove.
4680         (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
4681         arrange to not emit REG_UNUSED notes.
4682
4683 2000-04-26  Richard Henderson  <rth@cygnus.com>
4684
4685         * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
4686         * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
4687
4688 2000-04-26  Richard Henderson  <rth@cygnus.com>
4689
4690         * flow.c (propagate_one_insn): Break out from propagate_block.
4691         (init_propagate_block_info): Likewise.
4692         (free_propagate_block_info): Likewise.
4693         (propagate_block): Use them.  Export.
4694         * basic-block.h: Declare them all.
4695
4696 2000-04-26  Richard Henderson  <rth@cygnus.com>
4697
4698         * basic-block.h (life_analysis): Declare here ...
4699         * output.h: ... not here.
4700         * flow.c (life_analysis): Remove nregs parameter; replace
4701         remove_dead_code with flags.  Remove ssa dead code check.
4702         Only init alias analysis if we'll use it.
4703         * reg-stack.c (reg_to_stack): Update life_analysis arguments.
4704         * ssa.c (convert_to_ssa): Likewise.
4705         (convert_from_ssa): Likewise.
4706         * toplev.c (rest_of_compilation): Likewise.
4707
4708 2000-04-26  Richard Henderson  <rth@cygnus.com>
4709
4710         * flow.c (flow_delete_block): Rename from delete_block.  Export.
4711         * basic-block.h (flow_delete_block): Declare.
4712
4713 2000-04-26  David S. Miller  <davem@redhat.com>
4714
4715         * optabs.c (emit_libcall_block): Verify insns with INSN_P before
4716         taking a PATTERN of it.
4717
4718 2000-04-26  <NeilB@earthling.net>
4719
4720         * cpplex.c (spell_other, spell_char): Remove.
4721         (SPELL_CHAR): New.
4722         (token_spelling, trigraph_map): Use unsigned chars.
4723         (_cpp_lex_line): Tidy up the switch statement.
4724         * cpplib.h: Implement spell_char with spell_string.
4725         (C): New.
4726
4727 2000-04-26  <RodneyBrown@pmsc.com>
4728
4729         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
4730         * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
4731
4732 2000-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4733
4734         * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
4735         reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
4736         dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
4737         dwarf2out_return_save, dwarf2out_return_reg,
4738         dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
4739         add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
4740         gen_compile_unit_die, dwarf2out_init): Constify a char*.
4741
4742         * dwarf2out.h (dwarf2out_init): Likewise.
4743
4744         * dwarfout.c (filename_entry, primary_filename, last_filename,
4745         type_tag, output_compile_unit_die, dwarfout_init): Likewise.
4746
4747         * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
4748         dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
4749         dwarf2out_return_reg): Likewise.
4750
4751 2000-04-26  Andreas Jaeger  <aj@suse.de>
4752
4753         * extend.texi (Function Attributes): Fix description of pure
4754         attribute.
4755
4756 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
4757
4758         * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
4759         before calling rest_of_compilation.
4760
4761 2000-04-26  Andreas Jaeger  <aj@suse.de>
4762
4763         * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
4764         last patch.
4765
4766 2000-04-25  Richard Henderson  <rth@cygnus.com>
4767
4768         * cse.c (cse_insn): Emit barrier after unconditional jump.
4769
4770         * calls.c (expand_call): Disable tail call generation once
4771         rtx_equal_function_value_matters is false.
4772
4773         * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
4774         like EDGE_EH edges.
4775
4776 2000-04-25  Jason Merrill  <jason@casey.cygnus.com>
4777
4778         * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
4779
4780         * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
4781
4782         * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
4783         is the primary DIE for a member function.
4784         (gen_decl_die): Call set_decl_origin_self here.
4785         * dwarfout.c (output_decl): And here.
4786         * integrate.c (output_inline_function): Not here.
4787         Don't clear DECL_INLINE until after calling rest_of_compilation.
4788         (set_decl_origin_self): No longer static.
4789         * tree.h: Add prototype.
4790         * toplev.c (note_deferral_of_defined_inline_function): Only write
4791         out abstract instance for actual inlines.
4792
4793 2000-04-25  Alexandre Oliva  <aoliva@cygnus.com>
4794
4795         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
4796         EXTENDED_REGS only if TARGET_AM33.
4797         * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
4798         SP_REGS to register allocation and reloading unless absolutely
4799         necessary.
4800         (movsi3): Remove special-case of adding non-constants to SP.
4801
4802 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4803
4804         * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
4805         INCLUDES to search and does not provide any of its own.  Also it
4806         now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
4807         parameters.  Also it does not call AC_DEFINE.
4808         (gcc_AC_NEED_DECLARATIONS): Likewise.  Also this macro now calls
4809         AC_DEFINE and provides for automatic entries for autoheader.
4810         (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
4811
4812         * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
4813         so we can pass -I flags and include gansidecl.h/system.h in this
4814         test.
4815
4816         * acconfig.h: Delete all NEED_DECLARATION_* entries.
4817
4818 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4819
4820         * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
4821         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
4822         ENABLE_GC_ALWAYS_COLLECT): Delete entries.
4823
4824         * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
4825         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
4826         ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
4827         for these macros.  Clean up spacing and linewraps.
4828
4829 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
4830
4831         * calls.c (expand_call): Use get_callee_fndecl.
4832
4833         * print-tree.c (print_node): Print the chain of an _EXPR.
4834
4835 Tue Apr 25 16:16:04 2000  Andrew MacLeod  <amacleod@cygnus.com>
4836                           Jim Wilson  <wilson@cygnus.com>
4837                           Andrew Haley  <aph@cygnus.com>
4838
4839         * config/ia64/crtbegin.asm: Add IA-64 unwind support.  Correct alloc
4840         and gp save/restore problems.
4841         * config/ia64/crtend.asm: Add IA-64 unwind support.
4842         * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
4843         in fr_pad_size calculation.
4844         (save_restore_insns): Move PR save area.  Correct uses of
4845         RTX_FRAME_RELATED_P.
4846         (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
4847         (ia64_expand_epilogue): Add eh_epilogue support.
4848         (ia64_function_prologue): Emit .prologue directive.
4849         (ia64_init_machine_status, ia64_mark_machine_status): New functions.
4850         (ia64_override_options): Set init_machine_status and
4851         mark_machine_status.
4852         (rtx_needs_barrier): Handle bsp reads and writes.
4853         (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
4854         New static variables.
4855         (process_set, process_for_unwind_directive): New functions.
4856         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
4857         ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
4858         ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
4859         macros.
4860         (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
4861         (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
4862         (struct machine_function): Define.
4863         * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
4864
4865 2000-04-25  Bruce Korb  <bkorb@gnu.org>
4866
4867         * fixinc/Makefile.in: make the removal of old programs more
4868         robust
4869         * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
4870         install-bin and install-sh
4871
4872 2000-04-25  Nick Clifton  <nickc@cygnus.com>
4873
4874         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
4875         defined, define to return zero.
4876         (function_cannot_inline_p): If a function has any target
4877         specific attributes, then use the macro
4878         FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
4879         whether it can be inlined.  If it cannot, issue a suitable
4880         explanation.
4881
4882         * tm.texi: Add a new node 'Inlining' to document the new macro
4883         FUNCTION_ATTRIBUTE_INLINABLE_P.
4884
4885 2000-04-25  Zack Weinberg  <zack@wolery.cumb.org>
4886
4887         * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
4888         commentary.
4889
4890 2000-04-25  Neil Booth  <NeilB@earthling.net>
4891
4892         Restore previous patch, plus the following fixes:
4893
4894         * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
4895         flags, not CPP_OPEN_PAREN.
4896         * cpplex.c (expand_token_space, init_token_list,
4897         cpp_free_token_list): Put the dummy token at list->tokens[-1].
4898         (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
4899
4900 Tue Apr 25 14:06:40 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4901
4902         * config/i386/freebsd.h (INT_ASM_OP): Define.
4903
4904 Tue Apr 25 14:51:07 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4905
4906         * loop.c (strength_reduce): Fix typo in the last checkin.
4907
4908 Tue Apr 25 07:33:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4909
4910         * stor-layout.c (finalize_record_size): Simplify to use existing
4911         functions.
4912         (compute_record_mode): No longer static.
4913         * tree.h (compute_record_mode): New declaration.
4914
4915 2000-04-25  Neil Booth  <NeilB@earthling.net>
4916
4917         * Revert my patch below until cause of build failures
4918         determined.
4919
4920 2000-04-25  Richard Henderson  <rth@cygnus.com>
4921
4922         * combine.c (combine_instructions): Add missing argument
4923         to try_combine.
4924
4925         * toplev.c (rest_of_compilation): Delay sibcall optimization
4926         until after emit_eh_context.
4927
4928 2000-04-24  Nick Clifton  <nickc@redhat.com>
4929
4930         * combine.c (combine_instructions): Do not try to combine a
4931         sequence of insns when the second insn has been replaced by a
4932         note.
4933
4934 Mon Apr 24 17:34:18 2000  Mumit Khan  <khan@xraylith.wisc.edu>
4935
4936         * gcc.c (load_specs): New static function.
4937         (read_specs): Use it.
4938
4939         * gcc.c (lookup_compiler): Make multiple passes for case
4940         insensitive filesystems.
4941
4942 2000-04-24  Neil Booth  <NeilB@earthling.net>
4943
4944         * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
4945         * cpphash.h (_cpp_check_directive): new.
4946         * cpplex.c (handle_newline, cpp_free_token_list,
4947         init_trigraph_map, trigraph_ok, trigraph_replace,
4948         backslash_start, skip_block_comment, skip_line_comment,
4949         skip_whitespace, parse_name, parse_number, parse_string,
4950         copy_comment, _cpp_lex_line, spell_char, spell_string,
4951         spell_comment, spell_name, spell_other, _cpp_lex_file,
4952         _cpp_output_list): new.
4953         (expand_name_space): take length argument.
4954         (init_token_list): add comment list initialisation.
4955         (cpp_scan_line): use auto_expand_name_space.  PREV_WHITESPACE
4956         instead of HSPACE_BEFORE.
4957
4958         * cpplib.c (_cpp_check_directive): new
4959         * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
4960         DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
4961         (HSPACE_BEFORE): delete.
4962         (TTYPE_TABLE): rearrange.
4963         (struct cpp_toklist): update.
4964
4965 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4966
4967         * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
4968         gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
4969         argument form of AC_DEFINE.
4970
4971         * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
4972         HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
4973         WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
4974         HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
4975         HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
4976
4977         * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
4978
4979 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4980
4981         * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
4982         deduced.h): Use -isystem, not -I, for including system headers.
4983
4984 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4985
4986         * config/fr30/fr30.md (addsi3): Do not use small add instruction if
4987         the source register is the frame pointer or arg pointer.
4988         (addsi3_small_int): Disallow if source register is the frame
4989         pointer or arg pointer.
4990
4991 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4992
4993         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
4994         call to AC_MSG_RESULT.
4995
4996 2000-04-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
4997
4998         * invoke.texi: Correct grammatical errors, document
4999         -fno-gnu-keywords as identical to -fno-asm for C++.
5000
5001 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5002
5003         * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
5004         GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
5005         GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
5006         AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
5007         EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
5008
5009         * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
5010         GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
5011         GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
5012         GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
5013         new macros names.
5014
5015 2000-04-24  Mumit Khan  <khan@xraylith.wisc.edu>
5016
5017         * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
5018         (pop_alignment): Likewise.
5019         (handle_pragma_token): Likewise.
5020
5021 2000-04-24  Robert Lipe <robertlipe@usa.net>
5022
5023         * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
5024
5025 2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>
5026
5027         * combine.c (try_combine): Update reg_nonzero_bits of
5028         newi2pat before newpat.
5029
5030 Mon Apr 24 10:19:48 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5031
5032         * loop.c (strength_reduce): Simplify test to INSN_P.
5033         (record_giv): Attempt to simplify the add value, use CONSTANT_P
5034         expressions instead of CONST_INT.
5035         (express_from_1): Likewise.
5036
5037 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
5038
5039         * regs.h (reg_n_max): Don't declare.
5040         * flow.c (reg_n_max): Don't define.
5041         * regclass.c (renumber): Don't initialize to zero.
5042         (regno_allocated): Likewise.
5043         (reg_n_max): Define.
5044         (allocate_reg_info): Don't initialize unnecessarily.
5045
5046 Mon Apr 24 00:21:36 2000  Jeffrey A Law  (law@cygnus.com)
5047
5048         * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
5049         and blockage_p in the newly allocated attribute.
5050
5051 Sun Apr 23 20:16:49 2000  Alexandre Oliva  <aoliva@cygnus.com>
5052
5053         * config/mn10300/mn10300.md (addsi): `inc4' on address
5054         registers does not modify cc, but `inc' on an extended
5055         register does.
5056
5057 Sun Apr 23 16:24:35 2000  Denis Chertykov  <denisc@overta.ru>
5058
5059         * reload.c (find_equiv_reg): Checks all valueno regs
5060         as a reload_reg_p regs.
5061
5062 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
5063
5064         * cpphash.c (collect_objlike_expansion): Add sanity check.
5065         (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST.  If
5066         the buffer is the empty string, return.  Mark __DATE__ and
5067         __TIME__ as XCONST nodes, not MCONST.
5068         (_cpp_macroexpand): Avoid pushing an empty buffer.
5069         (funlike_macroexpand): Don't pop token_buffer here.
5070
5071 Sun Apr 23 18:37:53 2000  Alexandre Oliva  <aoliva@cygnus.com>
5072
5073         * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
5074         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
5075         (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
5076         (REGNO_OK_FOR_BASE_P): Define in terms of them.
5077         (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
5078         (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
5079         (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
5080
5081 Sun Apr 23 22:23:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5082
5083         * loop.c (simplify_giv_expr):  Be more agressive on simplifying
5084         constant MULT givs.
5085
5086 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
5087
5088         * cpphash.h (struct definition): Move file, line, col members...
5089         (struct hashnode): ... here.  Also add 'disabled' flag.
5090         (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
5091         T_IDENTITY.  Remove T_DISABLED.
5092         Update prototypes.
5093
5094         * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
5095         (collect_expansion): Split into collect_objlike_expansion and
5096         collect_funlike_expansion.
5097         (_cpp_macroexpand): Split out scan_arguments, stringify, and
5098         funlike_macroexpand.
5099         (_cpp_compare_defs): Rename compare_defs, make static.
5100         (_cpp_make_hashnode): Initialize hp->disabled.
5101         (macro_cleanup): Adjust for new token types.  Clear
5102         m->disabled.
5103         (_cpp_create_definition): Move code here to determine what
5104         sort of macro it is, and code to check for redefinitions, from
5105         do_define.  Implement a few simple cases without creating a
5106         full DEFINITION.
5107         (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
5108         Handle the simple cases.
5109         (push_macro_expansion): Set buf->has_escapes and hp->disabled
5110         here.
5111
5112         * cppinit.c (builtin_array): Change MCONST to XCONST
5113         everywhere.
5114         * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
5115         fix check for disabled and function-like macros.
5116         * cpplib.c (do_define): Move most logic to
5117         _cpp_create_definition.
5118         (do_undef): Handle new special token types.
5119
5120 Sun Apr 23 14:27:44 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5121
5122         * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
5123         of CONSTANT_P for mult_val; always use validate_change to update insn.
5124
5125 2000-04-22  Zack Weinberg  <zack@wolery.cumb.org>
5126
5127         * cpphash.c (trad_stringify, add_pat): New functions.
5128         (collect_expansion): Restore support for -traditional syntax.
5129         Use trad_stringify and add_pat.
5130         (_cpp_macroexpand): Restore support for -traditional semantics.
5131         * cpplex.c (_cpp_scan_line): Don't change space_before if we
5132         get a COMMENT token.
5133         (_cpp_lex_token): Provide COMMENT tokens to caller if
5134         traditional and parsing_define_directive.
5135         (skip_comment): Warn about // comments if -Wtraditional.
5136         * cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
5137         proper node type.
5138         (do_undef): Don't warn about undefining EMPTY nodes.
5139
5140 Sat Apr 22 22:35:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5141
5142         * loop.c (strength_reduce): Fix biv removal code.
5143
5144 2000-04-22  Richard Henderson  <rth@cygnus.com>
5145
5146         * predict.c (estimate_probability): Examine both sides of
5147         a branch for no exits.  Use 90% not 50% for predict taken.
5148         Reorg for one copy of note generation code.
5149
5150 2000-04-22  Richard Henderson  <rth@cygnus.com>
5151
5152         * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
5153
5154 2000-04-22  Richard Henderson  <rth@cygnus.com>
5155
5156         * diagnostic.c (init_output_buffer): Don't initialize format_args.
5157         (output_clear): Likewise.
5158         (output_printf): Use va_copy.
5159         (vline_wrapper_message_with_location): Likewise.
5160         (v_message_with_decl): Likewise.
5161         (line_wrapper_printf): VA_START infor buffer.format_args directly.
5162         * system.h (va_copy): Provide default implementation.
5163
5164 2000-04-22  Richard Henderson  <rth@cygnus.com>
5165
5166         * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
5167         the collected condition is not a constant.
5168
5169 2000-04-22  Gabriel Dos Reis  <gdr@codesourcery.com>
5170
5171         * diagnostic.h: New file.
5172
5173         * Makefile.in (diagnostic.o): Depends on diagnostic.h
5174
5175         * diagnostic.c: Tweak.  Rationalize the output logic.  Adjust
5176         various function prototypes.
5177         (diagnostic.h): #include.
5178         (struct output_buffer): Move into diagnostic.h.
5179         (get_output_prefix): Rename to output_get_prefix.  Export.
5180         (init_output_buffer): Export. Break out.  Ajust intialization.
5181         (output_space_left, output_append): Export.
5182         (output_newline): Rename to output_add_newline.  Export.
5183         (output_clear): Nullify additional output_buffer fields.
5184         (output_puts): Rename to output_add_string.  Export.
5185         (dump_output): Rename to output_flush_on.  Export.
5186         (build_location_prefix): Constify return-type.
5187         (emit_output_prefix): Rename to output_emit_prefix. Export.
5188         (set_real_maximum_length): New function.
5189         (output_set_maximum_length): Ditto
5190         (output_clear): Ditto.
5191         (output_add_character): Ditto.
5192         (output_add_integer): Ditto.
5193         (output_add_space): Ditto.
5194         (output_format): Ditto.
5195         (output_printf): Adjust buffer initialization.
5196         (vline_wrapper_message_with_location): Ditto.
5197         (v_message_with_decl): Ditto.  Adjust call to output_puts
5198         and get_output_prefix.
5199         (default_print_error_function): Adjust buffer intialization.
5200
5201 Sat Apr 22 06:45:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5202
5203         * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
5204         of VOID_TYPE.
5205
5206 Fri Apr 21 18:33:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
5207
5208         * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
5209         of explicit 0.
5210
5211 Fri Apr 21 18:30:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
5212
5213         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
5214         accurate data about SP moves.
5215
5216 Fri Apr 21 18:28:28 2000  Alexandre Oliva  <aoliva@cygnus.com>
5217
5218         * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
5219         aliases to AM33 registers.
5220
5221 Fri Apr 21 18:26:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
5222
5223         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
5224         to all EXTENDED bitmaps.
5225
5226 Fri Apr 21 18:17:12 2000  Alexandre Oliva  <aoliva@cygnus.com>
5227
5228         * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
5229         * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
5230         * config/mn10300/mn10300.c (mn10300_address_cost): New function.
5231
5232 Fri Apr 21 18:11:56 2000  Alexandre Oliva  <aoliva@cygnus.com>
5233
5234         * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
5235         the operand is not constant.
5236
5237 Fri Apr 21 14:58:29 2000  Denis Chertykov  <denisc@overta.ru>
5238
5239         * reload.c (find_equiv_reg): Checks all valueno and regno regs
5240         as a call-clobbered regs.
5241
5242 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5243
5244         * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
5245         * rtl.h: Likewise.
5246         * rtl.def: Update comment.
5247         * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
5248         * integrate.c (expand_inline_function): Likewise.
5249         * profile.c (branch_prob): Likewise.
5250         * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
5251         * print-rtl.c (print_rtx): Likewise.
5252         * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
5253         (reemit_notes): Likewise; also use enum insn_note.
5254
5255         * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
5256         (place_field): Properly compute know and actual alignment.
5257
5258         * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
5259         in proper format.
5260
5261         * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
5262         note for REG1.
5263
5264 2000-04-21  Zack Weinberg  <zack@wolery.cumb.org>
5265
5266         * cpphash.c (struct arg, struct arglist): Const-ify strings.
5267         (warn_trad_stringify, duplicate_arg_p): New helper functions.
5268         (collect_expansion): Rewrite to scan over a token list.
5269         Remove -traditional support.
5270         (collect_formal_parameters): Rename to collect_params; rewrite
5271         to scan over a token list.
5272         (_cpp_create_definition): Adjust to scan a token list.
5273         (_cpp_macroexpand): Remove -traditional support.
5274         (_cpp_compare_defs): Whitespace is now canonicalized.
5275         (comp_def_part): Delete function.
5276
5277         * cpphash.h: Update prototypes.
5278         * cpplex.c (init_token_list): Don't set lineno if there is no
5279         buffer.
5280         (pedantic_whitespace): New function.
5281         (_cpp_scan_line): Mark tokens that had hspace before.  Don't
5282         consume a newline.  Use pedantic_whitespace.
5283         (_cpp_lex_token): Remove support for -traditional macros.
5284         (_cpp_get_define_token): Delete.
5285         (_cpp_get_directive_token): Do the real work here.  Use
5286         pedantic_whitespace.
5287         (_cpp_init_input_buffer): Initialize pfile->directbuf.
5288
5289         * cpplib.c (get_macro_name): Delete.
5290         (do_define): Read the entire line into pfile->directbuf, then
5291         feed the token list to _cpp_create_definition.
5292         * cpplib.h (HSPACE_BEFORE): new define.
5293         (struct cpp_reader): Add a toklist member, "directbuf".
5294
5295         * predict.c (estimate_probability): New heuristic: if a jump
5296         branches around a block with no successors, predict it taken.
5297         Disentangle control flow.
5298
5299 2000-04-20  Richard Henderson  <rth@cygnus.com>
5300
5301         * loop.c (emit_iv_add_mult): Revert last change.
5302
5303 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
5304
5305         * cpplib.h (enum cpp_ttype): Add token types for all
5306         punctuators.  Distinguish pp-numbers from valid C numbers.
5307         Give some tokens better names.  Initialize from macro.
5308         (struct cpp_name, cpp_token, cpp_toklist): New data
5309         structures.
5310         Update prototypes.
5311         * cpplex.c (bump_column, expand_name_space,
5312         expand_token_space, init_token_list, cpp_output_list,
5313         _cpp_scan_line):  New functions.
5314         (output_line_command): Add third argument, new line number.
5315         * cpphash.h: Update prototypes.
5316         * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
5317         token names.
5318
5319 2000-04-20  Richard Henderson  <rth@cygnus.com>
5320
5321         * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
5322
5323 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
5324
5325         * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
5326         object pointed to.
5327
5328 Thu Apr 20 14:19:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5329
5330         * loop.c (emit_iv_add_mult):  Simplify it's input and emit
5331         REG_EQUAL note explaining the calculated value.
5332
5333         * calls.c (expand_call): Avoid unnecesary precalculation
5334         and outgoing parameters space guarding for sibling calls.
5335         (store_one_arg): Likewise.
5336
5337 Thu Apr 20 08:01:07 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5338
5339         * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
5340         (rest_of_compilation): Write sibling dump file and account
5341         for time as jump time.
5342         * invoke.texi: Update documentation on dump flags.
5343
5344 2000-04-19  Marek Michalkiewicz  <marekm@linux.org.pl>
5345
5346         * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
5347
5348 2000-04-19  Zack Weinberg  <zack@wolery.cumb.org>
5349
5350         * cpphash.c (special_symbol): Represent an empty macro with
5351         "\r \r " not just "\r ".
5352         (_cpp_macroexpand): Correct condition for the foo ( ) special
5353         case.
5354         (unsafe_chars): Handle EOF as second argument.
5355         (push_macro_expansion): Simplify test for removing escape at
5356         end.  Do not trim both escapes if there is no text in between.
5357
5358 2000-04-19  Jim Blandy  <jimb@redhat.com>
5359
5360         * dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
5361         of PTR_SIZE, when appropriate.
5362
5363 2000-04-19  Mark Mitchell  <mark@codesourcery.com>
5364
5365         * system.h (ONLY_INT_FIELDS): Make sure it is defined.
5366         (USE_ENUM_BITFIELDS): Fix typo.
5367
5368 Wed Apr 19 12:14:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5369
5370         * stor-layout.c (place_field): Set rli->offset_align properly.
5371
5372 2000-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5373
5374         * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
5375         INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
5376         PARM_BOUNDARY): Remove unnecessary casts.
5377
5378 Wed Apr 19 12:02:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5379
5380         * calls.c (precompute_arguments): Remove must_preallocate and
5381         args_size calls.
5382         (expand_call): Update call of precompute_arguments.
5383
5384         * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
5385         check_insn_for_givs): Break out from ...
5386         (strength_reduce) ... here; use for_every_insn_in_loop to call
5387         check_insn_for_givs.
5388         * loop.h (for_every_insn_in_loop): Declare.
5389         (loop_insn_callback): New type.
5390
5391 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
5392
5393         * cpplib.c (do_pragma_poison):  Strings in the token buffer are
5394         not nul-terminated.
5395
5396 Tue Apr 18 16:04:12 2000  Jim Wilson  <wilson@cygnus.com>
5397
5398         * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
5399         flag_pic and RELOC.
5400
5401 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
5402
5403         * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
5404
5405         * configure.in: Delete --disable-cpplib option and all
5406         references to cpp_main.
5407         * configure: Regenerate.
5408         * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
5409         @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
5410         cccp.o, cccp, or cppmain.  Link cppmain.o straight to
5411         cpp$(exeext).  Add --no-headers to makeinfo command line when
5412         generating INSTALL.  Install and uninstall cpp.1 manpage, not
5413         cccp.1.
5414         * install.texi: Delete all references to cexp.y/cexp.c.
5415         Delete ancient instructions for compiling GCC on 3b1.
5416         * INSTALL: Regenerate.
5417
5418         * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
5419         mips/t-elf, mips/t-r3900: Remove references to cccp.c.
5420         * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
5421         cexp.c/cexp.y.
5422         * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
5423         which is no longer tested anywhere.
5424
5425         * cppinit.c (handle_option): Don't run error message through
5426         gettext twice.
5427
5428 Tue Apr 18 14:16:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5429
5430         * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
5431         * cpperror.c (hashtab.h): Now include.
5432         * cppexp.c (hashtab.h): Likewise.
5433         * cpplex.c (hashtab.h): Likewise.
5434         * cppfiles.c (hashtab.h): Likewise.
5435         (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
5436         to htab_find_slot_with_hash.
5437         * cpphash.c (hashtab.h): Now include.
5438         (_cpp_lookup_slot): INSERT is now enum insert_option.
5439         * cpphash.h (_cpp_lookup_slot): Likewise.
5440         * cppinit.c (hashtab.h): Include earlier.
5441         (initialize_builtins): Pass enum to htab_find_slot.
5442         * cpplib.c (hashtab.h): Now include.
5443         (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
5444         (do_pragma_poison, do_assert): Likewise.
5445         * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
5446         htab_find_slot_with_hash.
5447         * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
5448         * tree.c (type_hash_add): Likewise.
5449         (build1): Minor cleanup.
5450
5451         * ggc-common.c: Add missing blanks.
5452         * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
5453         * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
5454
5455         * stmt.c (mark_case_node): New function.
5456         (mark_case_nesting): Call it.
5457
5458         * expmed.c (emit_store_flag): If comparing two-word integer
5459         with zero, can optimize NE, EQ, GE, and LT.
5460
5461         * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
5462         * conflict.c: Minor cleanups.
5463         * optabs.c: Add blank line
5464         * simplify-rtx.c: Minor cleanups.
5465
5466 2000-04-18  Stan Cox  <scox@cygnus.com>
5467
5468         * gengenrtl.c (genlegend): Fix misspelling.
5469
5470 2000-04-18  Robert Lipe  <robertlipe@usa.net>
5471
5472         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
5473         bitfields of the host compiler are not signed quantities.
5474         * config.in: Regenerate.
5475         * configure: Regenerate.
5476         * system.h (USE_ENUM_BITFIELDS): Added.
5477         (ENUM_BITFIELDS): Added.
5478         * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
5479         (SHORT_ENUM_BUG): Deleted.
5480         * tree.h (tree_common): Members `code', `mode', `built_in_class',
5481         now ENUM_BITFIELD.
5482         * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
5483         (CODE_FIELD_BUG): Likewise.
5484         * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
5485         (OLD_CC): Likewise.
5486         * config/m68k/x-ccur (X_CFLAGS): Likewise.
5487
5488 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
5489
5490         * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
5491         mark is active.
5492
5493 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
5494
5495         * cppexp.c (lex): Don't assume tokens are NUL terminated.
5496         * cpplib.c (do_include, do_import, do_include_next,
5497         read_line_number, detect_if_not_defined): Likewise.
5498         * cpphash.c (collect_expansion): Likewise.
5499         (special_symbol, _cpp_macroexpand): Check return from
5500         cpp_file_buffer.
5501         * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
5502         macros.  Delete all uses.
5503
5504         * gcc.dg/cpp-mi.c: Add two more test cases.
5505         * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
5506
5507 2000-04-17  Richard Henderson  <rth@cygnus.com>
5508
5509         * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
5510         (reorder_basic_blocks): If no epilogue in rtl, force last block last.
5511
5512 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
5513
5514         * function.c (expand_function_start): Use hard_function_value to
5515         compute the RTL to use for DECL_RESULT.
5516
5517 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5518
5519         * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
5520         (x86_integer_DFmode_moves, x86_partial_reg_dependency,
5521          x86_memory_mismatch_stall): New global variables.
5522         (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
5523         alloved; fix load penalties for Athlon.
5524         * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
5525         x86_memory_mismatch_stall): Declare.
5526         (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
5527          TARGET_MEMORY_MISMATCH_STALL): New.
5528         * i386.md (athlon scheduling parameters): Fix latencies according to
5529         Athlon Optimization Manual.
5530         (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
5531         vector.
5532         (fsqrt instruction patterns): Set athlon_decode to direct.
5533         (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
5534         PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
5535         (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
5536         and TARGET_PARTIAL_REGISTER_STALL machines.
5537         (pushdf_nointeger): New pattern.
5538         (pushdf_integer): Rename from pushdf.
5539         (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
5540         (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
5541
5542 2000-04-17  Richard Henderson  <rth@cygnus.com>
5543
5544         * loop.c (canonicalize_condition): Add WANT_REG argument.
5545         Stop the search if we match it.
5546         * expr.h (canonicalize_condition): Update decl.
5547         * predict.c (expected_value_to_br_prob): Use it.  Track last
5548         expected value note.
5549         (find_expected_value): Remove.
5550
5551         * reorg.c (mostly_true_jump): Always use BR_PROB if present.
5552
5553 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
5554
5555         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
5556         (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
5557         a plain file.
5558         * configure.in: Call AC_FUNC_MMAP_FILE.
5559         * configure: Regenerate.
5560         * config.in: Regenerate.
5561
5562         * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
5563         * fixinc/fixincl.c: Likewise.
5564
5565 2000-04-17  Richard Henderson  <rth@cygnus.com>
5566
5567         * builtins.c (expand_builtin_expect): New.
5568         (expand_builtin): Call it.
5569         * builtins.def (BUILT_IN_EXPECT): New.
5570         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
5571         * extend.texi: Document it.
5572
5573         * predict.c (expected_value_to_br_prob): New.
5574         (find_expected_value): New.
5575         * basic-block.h (expected_value_to_br_prob): Declare.
5576         * toplev.c (rest_of_compilation): Invoke it.
5577
5578         * rtl.h (NOTE_EXPECTED_VALUE): New.
5579         (NOTE_INSN_EXPECTED_VALUE): New.
5580         * rtl.c (note_insn_name): Update.
5581         * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
5582         cases; handle NOTE_INSN_EXPECTED_VALUE.
5583
5584 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5585
5586         * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
5587         leaf sibcall delay slot if flag_pic.
5588         (output_sibcall): Always emit call for leaf sibcall if flag_pic.
5589
5590 2000-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5591
5592         * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
5593
5594         * fixproto: If fix-header fails, exit with an error.
5595
5596 Mon Apr 17 14:59:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5597
5598         * cse.c (struct check_depdendence_data): New.
5599         (check_dependence): New function.
5600         (invalidate): Use check_depdenence.
5601
5602 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
5603
5604         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
5605         UNITS_PER_WORD is unsigned.
5606
5607         * tree.h (struct tree_common): Remove misleading comment.
5608
5609 2000-04-16  Dave Pitts  <dpitts@cozx.com>
5610
5611         * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
5612         message in quotes. Otherwise, IBM's make program treats the '#' as the
5613         start of a comment and ignores the remainder of the line.
5614
5615         * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
5616         upper case.
5617         * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
5618         * cexp.y (initialize_random_junk): Likewise.
5619         * cppfiles.c (find_include_file): Cast alloca return value.
5620         * cppinit.c (initialize_standard_includes): Likewise.
5621         * cpplib.c (cpp_define, cpp_undef): Likewise.
5622         * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
5623         * final.c (output_asm_insn): Allow for holes in EBCDIC.
5624         * fold-const.c (CHARMASK): New.
5625         (real_hex_to_f): Use it.
5626         * real.c (CHARMASK): New.
5627         (etoasc, asctoeg): Use it.
5628         (asctoeg): EBCDIC lower case characters preceed upper case.
5629
5630         * i370.c (mvs_add_label): Change spacing for coding conventions.
5631         * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
5632         outputing case vectors.
5633         (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
5634         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
5635         since vector in in the data CSECT.
5636         (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
5637         * i370.md (Many patterns): Put the length in the XL directives.
5638         (movdi): Put back STM and MVC in definition.
5639         (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
5640         pattern using the TCA.
5641         * oe.h (CPP_SPEC): Added to allow trigraphs.
5642         * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
5643         not support the "long long" type.
5644
5645 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
5646
5647         * config/mips/mips-protos.h (mips_legitimate_address_p): New
5648         function.
5649         (mips_reg_mode_ok_for_base_p): Likewise.
5650         * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
5651         (REG_OK_FOR_INDEX_P): Define unconditionally.
5652         (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
5653         (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
5654         * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
5655         that GET_MODE_SIZE is unsigned.
5656         (mips_reg_mode_ok_for_base_p): Define.
5657         (mips_legitimate_address_p): Likewise.  Adjust now
5658         that GET_MODE_SIZE is unsigned.
5659         (block_move_loop): Make the number of bytes unsigned.
5660         (expand_block_move): Likewise.
5661         (function_arg): Make the loop counter unsigned to match the
5662         boundary condition.
5663
5664 2000-04-16  Richard Henderson  <rth@cygnus.com>
5665
5666         * rtl.h (enum insn_note): New enumeration.  Subsume
5667         NOTE_INSN_DELETED and friends.
5668         (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
5669         * rtl.c (note_insn_name): Tweak string order.
5670
5671 2000-04-15  Zack Weinberg  <zack@wolery.cumb.org>
5672
5673         * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
5674         to offset * 2.
5675
5676         * cpplex.c (output_line_command): Remove debugging prints.
5677         (cpp_output_tokens): Don't write out a zero-length buffer or
5678         try to see if it has a newline in it.
5679         (_cpp_expand_to_buffer): Copy the source buffer before pushing.
5680         (_cpp_read_and_prescan): Move shift-down of pushback bytes to
5681         the end of the loop.  Use memmove.  Don't read past the end of
5682         the buffer.  Remove trailing newlines from error messages.
5683
5684 2004-04-16  Neil Booth  <NeilB@earthling.net>
5685
5686         * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
5687         * cpplib.c: Add new syntax flags to directive table, and
5688         supporting macros.
5689
5690 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
5691
5692         * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
5693         using ret $N.
5694
5695 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
5696
5697         * toplev.c (display_help): Prefix "f" to "sched-verbose=".
5698         * haifa-sched.c: Update -fsched-verbose comments to use "=".
5699
5700 Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5701
5702         * Makefile.in (ggc-page.o): Now includes toplev.h.
5703         * ggc-page.c (toplev.h): Now included.
5704         (gc_time): Remove declaration.
5705         (ggc_collect): TIME now long.
5706         * toplev.c (parse_time, varasm_time, gc_time): Still global; all
5707         others static.
5708         * toplev.h (gc_time, parse_time, gc_time): New declarations.
5709
5710         * toplev.c: Make *_time variable long to reduce chance of overflow.
5711         (TIMEVAR): Likewise for `otime'.
5712         (print_time): Arg is now long; compute percentage in FP and round.
5713         * toplev.h (print_time): Arg is long.
5714
5715         * tree.c: Minor whitespace changes.
5716
5717         * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
5718         * configure: Rebuilt.
5719         * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
5720         (__fixunsxfDI): Renamed from __fixunsxfdi.
5721         (__fixunsdfDI): Renamed from __fixunsdfdi.
5722         (__fixunssfDI): Renamed from __fixunssfdi.
5723         (__floatdisf): Use proper type in REP_BIT macro.
5724         (__fixunsxfSI): Renamed from __fixunsxfsi.
5725         (__fixunsdfSI): Renamed from __fixunsdfsi.
5726         (__fixunssfSI): Renamed from __fixunssfsi.
5727         * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
5728         Change location of macros and upper-case some names as above.
5729         * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
5730         * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
5731
5732         * varasm.c (assemble_variable): Add cast to remove warning.
5733         (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
5734
5735         * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
5736         * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
5737         region number to -1.
5738
5739 2000-04-15  Richard Earnshaw (rearnsah@arm.com)
5740
5741         * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
5742         call unshare_all_rtl.
5743
5744         * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
5745
5746 Fri Apr 14 16:58:45 2000  Jim Wilson  <wilson@cygnus.com>
5747
5748         * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
5749         Use .s1 not .s0 for all FP instructions.
5750
5751 2000-04-14  Zack Weinberg  <zack@wolery.cumb.org>
5752
5753         * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
5754         interfaces.
5755         (safe_fwrite, output_line_command): New static functions.
5756         (cpp_expand_to_buffer): Now private to cpplib.
5757         (cpp_scan_buffer): Take a printer.
5758
5759         * cpphash.h: Update prototypes.
5760         * cpplib.h: Update prototypes.
5761         (cpp_printer): New.
5762         (cpp_buffer): Remove last_nominal_fname.
5763         (cpp_reader): Remove lineno.
5764
5765         * cppmain.c: Use a cpp_printer.
5766         * fix-header.c: No need to inhibit line commands.  Call
5767         cpp_start_read with no printer.
5768
5769         * cpperror.c (cpp_notice_from_errno): Provide default name.
5770         * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
5771         (find_include_file, cpp_read_file): Use make_IHASH.
5772         (file_cleanup): Set control_macro and clear
5773         input_stack_listing_current here.
5774         (_cpp_execute_include): Don't output entering-file marker.
5775         * cpphash.c (special_symbol): Look for the line number in the
5776         buffer, not the reader.
5777         (_cpp_macroexpand): No need to disable line commands.
5778         (_cpp_dump_definition): No need to generate line commands.
5779         (dump_hash_helper): Remove excess newline from output.
5780         * cppinit.c (dump_special_to_buffer): No need to generate line
5781         commands.
5782         (cpp_printer_init): New.
5783         (cpp_start_read): Take a printer, and start it up if it's not
5784         NULL.  No need to generate line commands.
5785         (cpp_finish): Expect no buffers stacked at all.  Take a
5786         printer argument, and flush the output buffer if it's not
5787         NULL.
5788         * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
5789         Don't put two hashes at the beginning of an assertion.
5790         (cpp_get_token): Don't increment pfile->lineno or emit line
5791         commands here.  Return EOF if there's no buffer when we get
5792         EOF.
5793         * cpplib.c (do_define, skip_if_group):
5794         No need to disable line commands.
5795         (_cpp_output_line_command): Delete function.
5796         (do_line): Don't emit line commands here, but set things up so
5797         they will be emitted if necessary.  Use _cpp_fake_ihash to
5798         make unique nominal_fnames if necessary.
5799         (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
5800         with 0 for column, not -1.
5801         (_cpp_handle_eof): Don't set the control macro here.  Don't
5802         clear input_stack_listing_current here.  Don't emit line
5803         commands.
5804
5805 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
5806
5807         * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
5808         always, use the default SVR4 start address.
5809
5810         * config/rs6000/linux.h (LINK_SPEC): Don't define.
5811         (LINK_SHLIB_SPEC): Define.
5812         (LINK_START_DEFAULT_SPEC): Define.
5813         (LINK_OS_DEFAULT_SPEC): Define.
5814
5815         * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
5816
5817         * config/rs6000/eabi.asm (__eabi): Call __init rather than
5818         __do_global_ctors to handle constructors.
5819         * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
5820         (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
5821         (STARTFILE_MVME_SPEC): Likewise.
5822         (STARTFILE_SIM_SPEC): Likewise.
5823         (ENDFILE_ADS_SPEC): Use crtend.
5824         (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
5825         (ENDFILE_MVME_SPEC): Likewise.
5826         (ENDFILE_SIM_SPEC): Likewise.
5827         (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
5828         (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
5829         (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
5830         (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
5831         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
5832         (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
5833         (CRTSTUFF_T_CFLAGS_S): Define.
5834         * config/rs6000/eabi-ctors.c: Delete.
5835
5836         * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
5837         boundary.
5838         (__fini): Likewise.
5839         * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
5840         boundary.
5841         (__fini): Likewise.
5842
5843 Fri Apr 14 16:09:02 2000  Jim Wilson  <wilson@cygnus.com>
5844
5845         * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
5846         plus mask size is smaller or equal to the mode size.
5847
5848 Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5849
5850         * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
5851         not yet set.
5852
5853         * expr.c (reload.h): Now included.
5854         (emit_block_move): Set volatile_ok when checking for movstr.
5855         (emit_move_1): Check for replacements in addresses in multi-word case.
5856         * Makefile.in (expr.o): Now includes reload.h.
5857
5858         * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
5859         Never have a LIBCALL end a basic block.
5860         (find_basic_blocks_1): Likewise.
5861         Reorganize CALL_INSN cases.
5862
5863         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
5864
5865 Fri Apr 14 10:54:22 2000  Jim Wilson  <wilson@cygnus.com>
5866
5867         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
5868         completers from mov.ret instruction.
5869
5870 2000-04-14  Richard Henderson  <rth@cygnus.com>
5871
5872         * fold-const.c (extract_muldiv): Don't distribute and widen
5873         multiply across plus for non-sizetype unsigned types.
5874
5875 2000-04-14  Richard Henderson  <rth@cygnus.com>
5876
5877         * flow.c (find_auto_inc): Don't autoinc eliminable registers.
5878         If the original source is dead in the incr insn, it's dead now.
5879
5880 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5881
5882         * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
5883         see if DECL_BIT_FIELD needs to still be set.
5884
5885         * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
5886
5887         * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
5888         print_int_cst_octal with something that's not an INTEGER_CST.
5889
5890         * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
5891         and not a SUBREG to a FLOAT rtl.
5892
5893 Thu Apr 13 19:39:56 2000  Clinton Popetz  <cpopetz@cygnus.com>
5894
5895         * emit-rtl.c (try_split): Avoid infinite loop if the split
5896         results in a sequence that contains the original insn.
5897
5898 2000-04-13  Andreas Jaeger  <aj@suse.de>
5899
5900         * config/mips/mips.c (expand_block_move): Pass alignment
5901         argument to move_by_pieces in bits, not bytes.
5902
5903         * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
5904         __pic__ for little endian.
5905
5906 2000-04-13  Andreas Jaeger  <aj@suse.de>
5907
5908         * config/i386/i386-protos.h: Add prototype for
5909         uno_comparison_operator.
5910
5911 Thu Apr 13 15:55:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5912
5913         * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
5914         * calls.c (ECF_PURE): New flag.
5915         (emit_call_1): Handle ECF_PURE calls.
5916         (initialize_argument_information): Unset ECF_PURE flag too.
5917         (precompute_arguments): Precompute for ECF_PURE too.
5918         (expand_call): Handle ECF_PURE calls too.
5919         (emit_library_call_value_1): Rename no_queue argument to fn_type,
5920         accept value of 2 as pure function.
5921         (emit_library_call_value, emit_library_call): Rename no_queue argument
5922         to fn_type.
5923         * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
5924
5925         * tree.h (DECL_IS_PURE): New macro.
5926         (struct tree_decl): Add pure_flag.
5927         * c-common.c (enum attrs): Add attribute "pure".
5928         (init_attributes): Initialize attribute "pure"
5929         (decl_attributes): Handle attribute "pure".
5930         * extend.texi (Attribute "pure"): Document.
5931         * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
5932         in pure function.
5933         (flags_from_decl_or_type): Support attribute "pure".
5934
5935 2000-04-13  Jason Merrill  <jason@casey.cygnus.com>
5936
5937         * cpplex.c (_cpp_lex_token): Handle digraphs.  Don't null-terminate
5938         the token except for numbers and identifiers.
5939
5940 Thu Apr 13 00:09:16 EDT 2000  John Wehle  (john@feith.com)
5941
5942         * i386.c (ix86_expand_binary_operator,
5943         ix86_expand_unary_operator): Check no_new_pseudos
5944         instead of reload_in_progress and reload_completed.
5945         (ix86_split_ashldi, ix86_split_ashrdi,
5946         ix86_split_lshrdi): Check no_new_pseudos instead
5947         of reload_completed.
5948
5949 2000-04-12  Jeffrey A Law  (law@cygnus.com)
5950
5951         * function.c (purge_addressof): Unshare any shared rtl created by
5952         purge_addressof and its children.
5953
5954 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
5955
5956         * function.c (aggregate_value_p): VOID_TYPE nodes are never
5957         aggregates.
5958
5959 2000-04-05  Andreas Jaeger  <aj@suse.de>
5960
5961         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
5962         not compiling PIC code, add flags for mabi=64.
5963         (SUBTARGET_CPP_SIZE_SPEC): New.
5964         (SUBTARGET_CPP_SPEC): New.
5965         (CPP_PREDEFINES): Define __PIC__ and __pic__.  PIC code is default
5966         for MIPS/Linux and lots of code needs these defines.
5967
5968 Wed Apr 12 22:44:11 2000  Hans-Peter Nilsson  <hp@axis.com>
5969
5970         * reorg.c (fill_slots_from_thread): Check side_effects_p when
5971         trying the "opposite arithmetic" approach.
5972
5973 Wed Apr 12 20:51:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5974
5975         * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
5976         (struct sh_args): Add new field force_mem.
5977         (INIT_CUMULATIVE_ARGS): Initialize it.
5978         (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
5979
5980 Wed Apr 12 17:20:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5981
5982         * calls.c (expand_call): Do not reverse args in "equal from" field.
5983         (emit_library_call_value_1): Emit_libcall_block for const and pure
5984         function.
5985
5986 Wed Apr 12 16:00:25 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5987
5988         * reload1.c (reload_combine): Don't enable optimization for fixed
5989         registers when encountering a BARRIER.
5990
5991 Wed Apr 12 15:54:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5992
5993         * builtins.c (expand_builtin_memcmp): Do expansion even with
5994         !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
5995
5996         * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
5997         stack is propertly aligned; add sanity checking for aligned
5998         stack pointer.
5999         (expand_library_call_value_1): Add sanity checking for aligned
6000         stack pointer.
6001
6002 Wed Apr 12 07:51:54 2000  Catherine Moore  <clm@cygnus.com>
6003
6004         * calls.c (emit_library_call_value_1): Change 3rd arg to
6005         locate_and_pad_parm to disregard the setting of partial.
6006
6007 Wed Apr 12 08:47:38 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6008
6009         * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
6010
6011         * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
6012         CALL_INSN from the normal case.
6013
6014 Fri Apr  7 12:23:04 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6015
6016         * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
6017         New global variables.
6018         (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
6019         adjustment.
6020         * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
6021         Declare,
6022         (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
6023          TARGET_ADD_ESP_8): New macros.
6024         * i386.md: Add peep2s to convert esp adjustments to push and pop
6025         instructions.
6026         (pushsi_prologue, popsi_epilogue): New patterns.
6027
6028 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
6029
6030         * real.c (toe64): Remove stale #endif from the last change.
6031
6032 2000-04-12  Stephen L Moshier  <moshier@mediaone.net>
6033
6034         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
6035         * real.c (toe64): Revert previous change.
6036
6037 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
6038
6039         * objc/objc-act.c: Include ggc.h.
6040         (objc_tree_index, objc_global_trees): Convert most of the
6041         static tree variables into a static array with previous names
6042         as defines.
6043         (objc_ellipsis_node): New variable.
6044         (lang_init): Call objc_act_parse_init and c_parse_init.
6045         Create objc_ellipsis_node.
6046         (build_selector_translation_table): Use objc_ellipsis_node instead
6047         of (tree)1.
6048         (hack_method_prototype): Likewise.
6049         (get_arg_type_list): Likewise.
6050         (start_method_def): Likewise.
6051         (continue_method_def): Likewise.
6052         (gen_method_decl): Likewise.
6053         (ggc_mark_imp_list): New function.
6054         (ggc_mark_hash_table): New function.
6055         (objc_act_parse_init): New function.
6056         * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
6057         * c-parse.in (c_parse_init): For objc add roots of objc specific
6058         local tree variables.
6059         * objc/objc-parse.y: Rebuilt.
6060         * objc/objc-parse.c: Rebuilt.
6061         (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
6062
6063 Wed Apr 12 01:00:44 EDT 2000  John Wehle  (john@feith.com)
6064
6065         * cse.c (delete_trivially_dead_insns): Also delete insns
6066         that copy a register to itself where the destination is
6067         a strict_low_part.
6068
6069 2000-04-11  Richard Henderson  <rth@cygnus.com>
6070
6071         * flow.c (struct propagate_block_info): Add new_dead, new_live.
6072         (propagate_block): Initialize them.  Use them in parallel instead
6073         of one tmp variable, ie revert much of the 0408 and 0407 functional
6074         changes, but keep the structural changes.
6075         (mark_set_regs): Take new_dead from propagate_block_info instead.
6076         (mark_set_1, mark_set_reg): Likewise.
6077         (mark_used_regs): Likewise with new_live.
6078         (mark_used_reg): Likewise.  Revert 0408 change.
6079
6080 2000-04-11  Nick Clifton  <nickc@cygnus.com>
6081
6082         * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
6083         restriction.
6084         (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
6085
6086 2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6087
6088         * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
6089         const section to output a CONSTRUCTOR based on the same conditions
6090         used for VAR_DECLs.
6091
6092 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
6093
6094         * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
6095         * pa/pa-protos.h (output_call): Add additional argument indicating
6096         if the call is a sibling/tail call.
6097         (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
6098         (compute_64bit_ior, cmpib_comparison_operator): Likewise.
6099         (function_arg, function_arg_partial_nregs): Likewise
6100         * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
6101         (emit_move_sequence): Zero extend certain constants as needed
6102         for TARGET_64BIT.
6103         (compute_zdepdi_operands, output_64bit_and): New functions.
6104         (output_64bit_ior, function_arg): Likewise.
6105         (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
6106         (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
6107         (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
6108         (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
6109         (output_bvb): Likewise.
6110         (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
6111         (output_call): New argument 'sibcall'.  Generate sibcall sequences
6112         as needed.
6113         (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT.  For
6114         (ouput_arg_descriptor): Do not emit argument descriptors for
6115         TARGET_64BIT.
6116         * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
6117         defined.
6118         (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
6119         (FUNCTION_OK_FOR_SIBALL): Define.
6120         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
6121         (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
6122         (CPP_SPEC): Use new spec infrastructure.
6123         (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
6124         (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
6125         (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
6126         (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
6127         (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
6128         (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
6129         (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
6130         (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
6131         (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
6132         (FUNCTION_ARG); Call out to C code.
6133         (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6134         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
6135         (MIN_UNITS_PER_WORD): Likewise.
6136         * pa/pa.md (cmpdi): New expander.
6137         (scc patterns, movstrsi): Not available for TARGET_64BIT.
6138         (64bit conditional arithmetic): New patterns.
6139         (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
6140         (movsicc): Not available if modes on all the operands to not match.
6141         (movdicc): New expander and associated patterns.
6142         (64bit branches): New patterns.
6143         (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
6144         (pre_ldd, post_std): New patterns.
6145         (64bit addil, load low part): New patterns.
6146         (special movsf constant): Not available for TARGET_64BIT.
6147         (movsf, movdf expanders): Force constants into memory.
6148         (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
6149         (64bit movdf/movdi patterns): New patterns.
6150         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
6151         for TARGET_64BIT.
6152         (extendqidi2, extendhidi2, extendsidi2): Similarly.
6153         (adddi3 expander): Allow "arith_operand" for second input.
6154         (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
6155         (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
6156         (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
6157         (muldi3): New expander for TARGET_64BIT.
6158         (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
6159         for TARGET_64BIT.
6160         (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
6161         patterns for TARGET_64BIT.
6162         (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
6163         patterns for TARGET_64BIT.
6164         (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
6165         (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
6166         (sibcall_epilogue): New expander.
6167         (casesi): Tweak for TARGET_64BIT.
6168         (call expanders): Set & use the outgoing argument pointer.  Use the
6169         64bit call patterns as needed. Add additional arg to output_call.
6170         (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
6171         (sibcall, sibcall_internal_symref): New expanders.
6172         (sibcall_value, sibcall_value_internal_symref
6173         (interspace_jump): Turn into an expander + matching patterns.
6174         (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
6175         * pa/pa64-regs.h: Eliminate trigraph sequences.
6176         * pa/pa64-start.h (TARGET_PA_20): Fix typo.
6177
6178 2000-04-11  Zack Weinberg  <zack@wolery.cumb.org>
6179
6180         * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
6181         cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
6182         cpp_token with cpp_ttype everywhere.
6183         * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
6184         Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
6185         CPP_BUF_COL.  Line and column numbers are unsigned int, not
6186         long.
6187         * cpplex.c (cpp_buf_line_and_col): Delete.
6188         * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
6189         'long lineno' to 'unsigned int lineno'.
6190         (CPP_BUF_LINE, CPP_BUF_COL): New macros.
6191
6192 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6193
6194         * extend.texi: ISO C99 is not a draft anymore.
6195         * invoke.texi: ISO C++ is not a draft anymore.
6196         * cpp.texi: __cplusplus is required by the ISO standard.
6197
6198         * extend.texi (-fthis-is-variable): Undocument.
6199         * flags.h (warn_template_debugging): Remove declaration.
6200         * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
6201         -Wenum-clash, -Wtemplate-debugging): Undocument.
6202
6203 2000-04-10  Nick Clifton  <nickc@cygnus.com>
6204
6205         * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
6206         integer.
6207         (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
6208         integer.
6209         (ARM_SIGN_EXTEND): Use HOST_UINT.
6210         (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
6211         (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
6212         (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
6213         (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
6214
6215         * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
6216         (arm_gen_constant): Use HOST_UINT.
6217         (arm_canonicalize_constant): Use HOST_UINT.
6218         (arm_reload_in_hi): Use HOST_UINT.
6219         (arm_reload_out_hi): Use HOST_UINT.
6220         (output_multi_immediate): Use HOST_UINT.
6221         (int_log2): Use HOST_UINT.
6222         (arm_poke_function_name): Use HOST_UINT.
6223         (arm_output_epilogue): Use arm_volatile_func().
6224         (output_thumb_prologue): Use arm_strip_name_encoding().
6225
6226 Mon Apr 10 15:40:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6227
6228         * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
6229         of sequence point problems.
6230
6231 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
6232
6233         * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
6234         Recomment.
6235         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
6236
6237 Mon Apr 10 07:21:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6238
6239         * sbitmap.h: Whitespace changes and use upper-case macro args.
6240         (struct simple_bitmap_def): All sizes now unsigned.
6241         (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
6242         * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
6243         (sbitmap_vector_alloc): Parms and local vars now unsigned.
6244         (sbitmap_zero): Cast bzero arg to PTR.
6245         (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
6246         (sbitmap_union_of_diffs): Change loop index to unsigned and rework
6247         loop to make structure clearer.
6248         (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
6249         (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
6250         (sbitmap_a_and_b_or_c): Likewise.
6251         (sbitmap_intersection_of_succs): Minor cleanups.
6252         (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
6253         (sbitmap_union_of_preds): Likewise.
6254         (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
6255         (debug_sbitmap): New function.
6256
6257         * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
6258         * c-typeck.c (convert_for_assignment): Likewise.
6259
6260         * expmed.c (init_expmed): Don't free objects we make.
6261         * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
6262
6263         * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
6264         (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
6265
6266         * gcse.c (expr_hash_table_size): Now unsigned.
6267         (compute_ae_gen): Local variable `i' now unsigned.
6268         (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
6269         (compute_transout, hoist_code): Likewise.
6270         (compute_local_properties): Likewise, also hash_table_size.
6271         (alloc_expr_hash_table): N_INSNS now unsigned.
6272         (delete_null_pointer_checks): Mark arg F as unused.
6273
6274         * regrename.c: Minor cleanups, including chang some variables
6275         to unsigned int.
6276
6277 2000-04-10  Neil Booth  <NeilB@earthling.net>
6278
6279         * cpplex.c (skip_block_comment): Use pointer arithmetic rather
6280         than GETC ().
6281         * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
6282
6283 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6284
6285         * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
6286         __classof__, and __headof__ from the list of gnu keywords.
6287         (-ansi): Remove -foperator-names from list of implied options.
6288         Do not call it ANSI C++.
6289         (-foperator-names): Document as -fno-operator-names.
6290
6291 2000-04-09  Zack Weinberg  <zack@wolery.cumb.org>
6292
6293         * cpphash.c (timestamp): Delete.
6294         (del_HASHNODE): If type is T_MCONST, free value.cpval.
6295         (special_symbol): Remove unnecessary braces.  Remove
6296         T_VERSION.  Treat T_STDC like T_CONST unless
6297         STDC_0_IN_SYSTEM_HEADERS.  Render both __DATE__ and __TIME__
6298         when one is encountered, then convert them into T_MCONST
6299         nodes.
6300         * cppinit.c (builtin_array): version_string is T_MCONST.
6301         __STDC__ has a "1" in its cpval.  Don't have a terminator
6302         entry.  Clean up which entries are dumped.
6303         (initialize_builtins): Only __STDC__ gets the special
6304         -traditional treatment.  Count the length of builtin_array.
6305         Render version_string here.
6306         * cpphash.h: Remove T_VERSION.  Add T_MCONST.
6307         * cpplib.h (struct cpp_reader): Remove timebuf.
6308
6309 2000-04-09  Richard Henderson  <rth@cygnus.com>
6310
6311         * genrecog.c (pred): Update comparison_operator for the unordered
6312         operators.
6313
6314         * config/i386/i386.c (no_comparison_operator): Disallow unordered
6315         operators.
6316         (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
6317         (uno_comparison_operator): New.
6318         (put_condition_code): Handle UNORDERED/ORDERED.
6319         (unsigned_comparison): Likewise.
6320         (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
6321         (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
6322         (ix86_expand_fp_compare): Use them.  Take scratch as argument,
6323         update all callers.  Handle all 8 unordered operators.
6324         (ix86_expand_setcc): Lose the unordered argument, update all callers.
6325         (ix86_expand_branch): Likewise.  Don't fully expand fp branches.
6326         * config/i386/i386.h (PREDICATE_CODES): Update.
6327         * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
6328         (ix86_expand_branch, ix86_expand_setcc): Update.
6329         * config/i386/i386.md (sunordered, sordered): New.
6330         (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
6331         (bunordered, bordered): New.
6332         (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
6333         (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
6334         (*fp_jcc_5, *fp_jcc_6, and splitters): New.
6335
6336 2000-04-09  Philip Blundell  <philb@gnu.org>
6337
6338         * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
6339
6340 Sun Apr  9 15:16:14 EDT 2000  John Wehle  (john@feith.com)
6341
6342         * i386.md (fix_truncsfhi2, fix_truncdfhi2,
6343         fix_truncxfhi2): New patterns.
6344         * i386.c (output_fix_trunc): Handle converting to HImode.
6345
6346 2000-04-08  Alex Samuel  <samuel@codesourcery.com>
6347
6348         * ssa.c (convert_to_ssa): Eliminate dead code when calling
6349         life_analysis.
6350         (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
6351         (for_each_successor_phi): Change parameter to basic_block.
6352         (coalesce_regs_in_successor_phi_nodes): Likewise.
6353         (coalesce_regs_in_copies): Likewise.
6354         (compute_coalesced_reg_partition): Use basic_block instead of index.
6355         * rtl.h (convert_to_ssa): Delete.
6356         (convert_from_ssa): Likewise.
6357         (successor_phi_fn): Likewise.
6358         (for_each_successor_phi): Likewise.
6359         (in_ssa_form): Likewise.
6360         * basic-block.h (convert_to_ssa): Moved from rtl.h.
6361         (convert_from_ssa): Likewise.
6362         (successor_phi_fn): Likewise.
6363         (in_ssa_form): Likewise.
6364         (for_each_successor_phi): Likewise.  Change parameter to basic_block.
6365         * flow.c (calculate_global_regs_live): Pass a basic_block to
6366         for_each_successor_phi.
6367
6368 2000-04-08  Richard Henderson  <rth@cygnus.com>
6369
6370         * flow.c (mark_used_reg): Use reg_set_p to determine if a register
6371         was modified in the current insn.
6372
6373 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6374
6375         * arm/thumb.md: Delete.
6376         * arm/thumb-protos.h: Delete.
6377
6378 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6379
6380         Merge changes from merged-arm-thumb-backend-branch onto trunk.
6381
6382         2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6383
6384         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
6385         into branch.
6386
6387         * arm.md (nop): Use the standard RTL expression.  Don't code as a
6388         define_expand.
6389         (*arm_nop, *thumb_nop): Delete.
6390
6391         * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
6392         constants.  Use casts instead.
6393         (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
6394         output_multi_immediate, arm_poke_function_name): Likewise.
6395         * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
6396         MASK_RETURN_ADDDR): Likewise.
6397
6398         2000-03-31  Richard Earnshaw (rearnsha@arm.com)
6399
6400         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
6401         into branch.
6402
6403         * arm.md (eh_epilogue): New function.
6404         * arm.h (struct machine_function): Move to here ...
6405         * arm.c: ... from here.
6406         (arm_output_epilogue): Support epilogues for __builtin_eh_return.
6407         (thumb_exit): Extra parameter eh_ofs.  All callers changed.
6408         Handle epilogues for __builtin_eh_return.  Make bit-fields unsigned.
6409
6410         2000-03-30  Nick Clifton  <nickc@cygnus.com>
6411
6412         * config/arm/semi.h (ASM_SPEC): Restore definition.
6413         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
6414
6415         * config/arm/elf.h (ASM_SPEC): Restore definition.
6416         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
6417
6418         * config/arm/arm.h (ASM_SPEC): Remove definition.
6419         (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
6420
6421         2000-03-26  Bernd Schmidt <bernds@cygnus.co.uk>
6422
6423         * config/arm/arm.c: Disable -fschedule-insns for Thumb.
6424
6425         2000-03-24  Nick Clifton  <nickc@cygnus.com>
6426
6427         Various formating tidyups, elimination of compile time
6428         warnings and synchronisation with internal sources:
6429
6430         * config/arm/arm-protos.h (assemble_align): Add prototype.
6431         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
6432         (gen_comapre_reg): Rename to arm_gen_compare_reg.
6433         (arm_return_addr_rtx): Rename to arm_return_addr.
6434
6435         * config/arm/arm.c: Include except.h.
6436         Define shorter typenames for strict minipool_node and struct
6437         minipool_fix.
6438         (arm_return_in_memory): For WinCE return all structures <= 32 bits
6439         in memory.
6440         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
6441         (gen_comapre_reg): Rename to arm_gen_compare_reg.
6442
6443         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6444         already defined.
6445         (ASM_SPEC): Define if not already defined.
6446         (ASM_OUTPUT_DEF_FROM_DECLS): Define.
6447
6448         * config/arm/arm.md: Rename references to gen_rotated_half_load to
6449         arm_gen_rotated_half_load, and references to gen_comapre_reg to
6450         arm_gen_compare_reg.
6451         (indirect_jump):  Only accept register operands.
6452         (load_indirect_jump): Keep this pattern since combine can generate
6453         it.
6454
6455         * config/arm/coff.h: Include aout.h.
6456         (MULTILIB_DEFAULTS): Only define if not already defined.
6457
6458         * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
6459         into arm.h (so that COFF ports can support thumb based aliases).
6460         (ASM_SPEC): Move definition into arm.h
6461
6462         * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
6463         redundant apcs spec.
6464         (ASM_SPEC): Move definition to arm.h
6465
6466         * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
6467
6468         * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
6469         for entries in the .bss section
6470
6471         2000-03-23  Nick Clifton  <nickc@cygnus.com>
6472
6473         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
6474         to thumb_far_jump_used_p.
6475
6476         * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
6477         single integer parameter.
6478
6479         * config/arm/arm.c (struct machine_function): Add two new
6480         fields, 'far_jump_used' and 'arg_pointer_live'.
6481         (thumb_far_jump_used_p): Once the decision has been made that
6482         far jumps might be used, always return true.
6483         If being called from the initial elimination offset macro then
6484         do not bother to perform the test if the arg pointer is not
6485         being used.
6486         (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
6487         (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
6488
6489         2000-03-23  Richard Earnshaw (rearnsha@arm.com)
6490
6491         * arm.c (output_return_instruction): Handle more cases where we can
6492         return from a function with an ldr instruction.
6493         (arm_output_epilogue): Likewise.
6494
6495         * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
6496         if we need to push a large stack frame and there are no callee-saved
6497         registers.
6498
6499         * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
6500         in ARM code if the frame pointer has been eliminated.
6501
6502         * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
6503         unspec_volatile arguments to avoid duplicates.
6504         (consttable_1, consttable_2): Fixes for big-endian mode.
6505
6506         * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
6507         as appropriate.
6508
6509         Re-write constant pool code.
6510         * arm.c (minipool_node, minipool_fix): New types.
6511         (minifix): Delete type.
6512         (arm_add_minipool_constant): Delete.
6513         (arm_compute_minipool_offsets, arm_find_barrier,
6514         arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
6515         (get_jump_table_size): Now returns HOST_WIDE_INT.
6516         (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
6517         functions.
6518         (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
6519         (assign_minipool_offsets, arm_print_value): Likewise.
6520         (dump_minipool): Rewrite.
6521         (arm_barrier_cost): New function.
6522         (create_fix_barrier): New function.
6523         (push_minipool_barrier): New function.
6524         (push_minipool_fix): Record additional information about the fixup
6525         required.
6526         (note_invalid_constants): Remove push for (UNSPEC 3).  Don't
6527         check the mode of what needs fixing.
6528         (arm_reorg): Rewrite.
6529
6530         2000-03-08  Nick Clifton  <nickc@cygnus.com>
6531
6532         * config/arm/arm.md (indirect_jump): Force constant addresses into
6533         a register.
6534
6535         2000-03-01  Bernd Schmidt <bernds@cygnus.co.uk>
6536
6537         * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
6538
6539         2000-02-24  Nick Clifton  <nickc@cygnus.com>
6540
6541         * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
6542         adjust is word aligned.
6543         (thumb_expand_epilogue): Make sure that stack adjust is word
6544         aligned.
6545
6546         * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
6547
6548         2000-02-24  Bernd Schmidt <bernds@cygnus.com>
6549
6550         * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
6551         pointer relative addresses.
6552
6553         2000-02-10  Richard Earnshaw  <rearnsha@arm.com>
6554
6555         * arm.c (find_barrier): Find the last barrier within the allowed
6556         range.
6557
6558         2000-02-09  Nick Clifton  <nickc@cygnus.com>
6559
6560         * config/arm/arm-protos.h: Replace PROTO with PARAMS.
6561
6562         2000-02-09  Nick Clifton  <nickc@cygnus.com>
6563
6564         * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
6565         ARM_FUNCTION_PROFILER.
6566
6567         * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
6568         ARM_FUNCTION_PROFILER.
6569
6570         * config/arm/linux-oldld.h: Imported from mainline sources.
6571
6572         2000-02-07  Nick Clifton  <nickc@cygnus.com>
6573
6574         * config/arm/lib1funcs.asm: Merge in thumb functions from
6575         lib1thumb.asm.
6576
6577         * config/arm/lib1thumb.asm: Delete.
6578
6579         2000-02-04  Nick Clifton  <nickc@cygnus.com>
6580
6581         * config/arm/arm.c: Sychronised with current Red hat local
6582         sources.
6583         * config/arm/arm.h: Ditto.
6584         * config/arm/arm-protos.h: Ditto.
6585
6586         2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
6587
6588         * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
6589
6590         * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
6591         byte stores.
6592
6593         2000-02-02  Nick Clifton  <nickc@cygnus.com>
6594
6595         * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
6596
6597         * config/arm/arm.md (epilogue): Fix rtl checking abort because
6598         (return) was emited using an emit_insn() call.
6599
6600         2000-01-31  Nick Clifton  <nickc@cygnus.com>
6601
6602         * config/arm/arm.c (output_thumb_prologue): Fix bug generating
6603         thumb stack frame.
6604         (thumb_exit): Move frame pointer back into hard frame pointer
6605         register if backtracing is being used.
6606
6607         2000-01-13  Richard Earnshaw (rearnsha@arm.com)
6608
6609         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
6610         into branch.
6611
6612         1999-12-15  Bernd Schmidt  <bernds@cygnus.co.uk>
6613
6614         * config/arm/arm.md (neg_pool_offset): Provide default for new
6615         attribute.
6616         (arm_movsi_insn): Add neg_pool_offset attribute.
6617         * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
6618         rtx for the insn that starts the scan and an unsigned long for its
6619         address.  Add MIN_OFFSET and PINSERTED args.  All callers changed.
6620         Change scan to ignore insns before MIN_OFFSET.  Store size of inserted
6621         instructions in *PINSERTED.
6622         (struct minipool_fixup): Add MIN_ADDRESS elt.
6623         (sort_fixups): Compute it.
6624         (arm_reorg): Changes to support inserting pools before the insn to be
6625         fixed up.
6626
6627         1999-12-08  Bernd Schmidt  <bernds@cygnus.co.uk>
6628
6629         * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
6630         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
6631         * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
6632
6633         Wed Nov  3 10:04:07 1999  Nick Clifton  <nickc@cygnus.com>
6634
6635         * config/arm/semi.h (TARGET_VERSION): Do not define if already
6636         defined.
6637         (TARGET_DEFAULT): Do not define if already defined.
6638
6639         Tue Nov  2 10:37:25 1999  Nick Clifton  <nickc@cygnus.com>
6640
6641         * config/arm/arm.md (anddi3): Allow disjoint source operands.
6642         (iordi3): Allow disjoint source operands.
6643         (xordi3): Allow disjoint source operands.
6644         (negdi2): Permit construction for ARM and Thumb.
6645         (arm_negdi2): Renamed version of old negdi2 pattern.
6646         (thumb_negdi2): New pattern: Only permit non-overlapping
6647         source and destination.
6648
6649         Fri Oct 29 18:52:38 1999  Nick Clifton  <nickc@cygnus.com>
6650
6651         * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
6652         scratch low register so that it will not be deleted.
6653
6654         Fri Oct 29 15:23:48 1999  Nick Clifton  <nickc@cygnus.com>
6655
6656         * config/arm/pe.h (ARM_PE): Define.
6657
6658         * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
6659         interfacearm attribute if this is a PE toolchain.
6660         (output_return_instruction): Do not emit anything if the function
6661         has the naked attribute set.
6662         (is_called_in_ARM_mode): If the function has the interfacearm
6663         attribute then return true.
6664         (thumb_expand_prologue): Do not generate a prologue for naked
6665         functions.
6666         (thumb_expand_epilogue): Do not generate an epilogie for a naked
6667         function.
6668         (output_thumb_prologue): Do not bother if the function is naked.
6669         Strip PE encoding from function name before emitting.
6670
6671         Thu Oct 28 11:05:13 1999  Richard Earnshaw <rearnsha@arm.com>
6672
6673         * arm.md (pic_load_addr): Fix constraints.
6674
6675         * arm.md (casesi_insn): Fix mis-applied patch.
6676
6677         * arm.md ("core" function unit): Add rules for single- and
6678         multi-cycle insns.
6679         (All TARGET_THUMB patterns): Add "type" attribute information
6680         where needed.
6681         * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
6682         the following insn is a CALL.
6683
6684         * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
6685         pointer.
6686         * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
6687         ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
6688         (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
6689
6690         Wed Oct 27 14:40:48 1999  Nick Clifton  <nickc@cygnus.com>
6691
6692         * config/arm/linux-gas.h: oops - this file was missed out when the
6693         branch was created...
6694
6695         Tue Oct 26 17:07:38 1999  Richard Earnshaw <rearnsha@arm.com>
6696
6697         * thumb.c: Deleted.  Move contents to ...
6698         * arm.c: ... here.
6699         * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
6700         rule for thumb.o
6701         * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
6702         * configure: Regen.
6703
6704         * arm-protos.h: Use RTX_CODE and tidy up long lines.  Don't
6705         declare a prototype for asm_output_align();
6706
6707         * arm.c (thumb_condition_code): Delete.
6708         (arm_print_operand): Always use arm_condition_code array.
6709
6710         * arm.c (thumb_return_addr_rtx): Delete.
6711         (arm_save_machine_status, arm_restore_machine_status): Delete.
6712         (arm_init_machine_status, arm_mark_machine_status): New functions.
6713         (arm_init_expanders): Update accordingly.
6714         (arm_return_addr): Renamed from arm_return_addr_rtx.  Rewrite.
6715         (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
6716         * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
6717
6718         Tue Oct 26 13:24:16 1999  Nick Clifton  <nickc@cygnus.com>
6719
6720         * configure.in : Fix arm-*-aout target to use new t-arm-aout
6721         script.
6722         * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
6723         targets.
6724
6725         Tue Oct 26 11:27:12 1999  Nick Clifton  <nickc@cygnus.com>
6726
6727         * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
6728         stack backtrace structure.
6729
6730         * config/arm/arm-protos.h: Add prototypes for functions defined in
6731         arm/pe.h.
6732
6733         * config/arm/arm.c (arm_override_options): Fix selection of
6734         attributes of default processor.
6735
6736         * config/arm/coff.h: Delete needless #include.
6737
6738         * config/arm/pe.c: Delete unused code.
6739
6740         * config/arm/pe.h (CPP_DEFINES): Delete
6741         (SUBTARGET_CPP_SPEC): Define.
6742         (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
6743
6744         * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
6745
6746         Mon Oct 25 15:42:09 1999  Richard Earnshaw (rearnsha@arm.com)
6747
6748         * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
6749         updated.
6750         (CAN_DEBUG_WITHOUT_FP): Define.
6751         (FIXED_REGISTERS): Make r11 call-saved.
6752         (CALL_USED_REGISTERS): Likewise.
6753         (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
6754         (FRAME_POINTER_REQUIRED): Correct logic for determining when a
6755         frame-pointer is required.
6756         (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
6757         * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
6758         if the target normally needs a stack frame in non-leaf functions.
6759         (use_return_insn): Correct logic for determining when a return
6760         instruction can be used.
6761         (output_return_instruction): Handle the frame-pointer register as
6762         a normal register when not TARGET_APCS_FRAME.
6763         (arm_output_prologue): Likewise.
6764         (arm_output_epilogue): Likewise.
6765         (output_func_epilogue): Likewise.
6766         (arm_expand_prologue): Likewise.
6767         * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
6768
6769         * arm.c (use_return_insn): No need to check floating point regs if
6770         TARGET_SOFT_FLOAT.
6771         (arm_find_minipool_constant): Correct typo; use GET_CODE to get
6772         the code of value stored in the minipool array.
6773         (arm_add_minipool_constant): Likewise.
6774
6775 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6776
6777         * basic-block.h (conflict_graph_enum_fn): K&R fix.
6778
6779 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6780
6781         * tree.c (tree_expr_nonnegative_p): New function.
6782
6783         * tree.h (tree_expr_nonnegative_p): Declare.
6784
6785         * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
6786         elide some sign_compare warnings.
6787         (build_conditional_expr): Likewise.
6788
6789 Sat Apr  8 00:21:51 EDT 2000  John Wehle  (john@feith.com)
6790
6791         * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
6792
6793         * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
6794         * i386.c (print_operand): Use the proper suffix for a 387 HImode
6795         operand.  Abort if a 387 operand has an unsupported size.
6796
6797 2000-04-08  Neil Booth  <NeilB@earthling.net>
6798
6799         * cppexp.c (parse_charconst): Null does not end character
6800         constants.
6801         * cppinit.c (ISTABLE): Null character handled as whitespace.
6802         * cpplex.c (null_warning):  new function.
6803         (skip_string): Emit warning if nulls encountered.
6804         (_cpp_skip_hspace): Emit warning if nulls encountered.
6805         (_cpp_lex_token): Emit warning if nulls encountered.  Drop
6806         them.
6807         * cpp.texi: Update.
6808
6809 2000-04-07  Richard Henderson  <rth@cygnus.com>
6810
6811         * flow.c (loop_depth): Remove.
6812         (reg_next_use, cc0_live, mem_set_list): Replace with ...
6813         (struct propagate_block_info): New.
6814         (life_analysis): Don't allocate reg_next_use.
6815         (propagate_block_delete_insn): Break out of propagate_block.
6816         Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
6817         (propagate_block_delete_libcall): Likewise.
6818         (propagate_block): Create a propagate_block_info struct to pass
6819         to subroutines.  Allocate one not two temporary regsets.  Don't
6820         clobber memory for const calls.  Look for clobbers in
6821         CALL_INSN_FUNCTION_USAGE.
6822         (mark_set_regs): Recognize COND_EXEC.
6823         (mark_set_reg): Break out of mark_set_1.
6824         (mark_used_reg): Break out of mark_used_regs.
6825         (mark_used_regs): Recognize COND_EXEC.
6826         (insn_dead_p): Use propagate_block_info struct.
6827         (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
6828         (find_auto_inc, try_pre_increment_1): Likewise.
6829         (print_rtl_with_bb): Dump regs live at end too.
6830         (count_reg_sets_1): Pass in loop_depth.
6831         (count_reg_sets, count_reg_references): Likewise.
6832         (recompute_reg_usage): Provide it.
6833
6834 2000-04-07  Richard Henderson  <rth@cygnus.com>
6835
6836         * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
6837         not the raw files.
6838
6839 2000-04-07  Zack Weinberg  <zack@wolery.cumb.org>
6840
6841         * cpplib.c (do_elif): Skip the rest of the line if we're
6842         not going to bother evaluating it.
6843         (skip_if_group): Clear pfile->only_seen_white.  Reorder loop
6844         to avoid pointless calls to the lexer.
6845
6846 Fri Apr  7 11:50:54 2000  Jim Wilson  <wilson@cygnus.com>
6847
6848         * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
6849
6850 2000-04-07  Jason Merrill  <jason@casey.cygnus.com>
6851
6852         * calls.c (expand_call): emit_queue if we're trying a sibcall.
6853
6854 2000-04-07  Jakub Jelinek  <jakub@redhat.com>
6855
6856         * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
6857
6858 2000-04-06  Geoff Keating  <geoffk@cygnus.com>
6859
6860         * Makefile.in: Build crtbeginS and crtendS like crtbegin and
6861         crtend so they can be multilibbed.
6862         (STAGESTUFF): Remove s-crt and s-crtS.
6863
6864 2000-04-07  Richard Henderson  <rth@cygnus.com>
6865
6866         * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
6867         if we discover we need a pseudo and no_new_pseudos is true.
6868         * config/alpha/alpha.md (ne:DI insn): New.
6869         (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
6870
6871 2000-04-07  Richard Henderson  <rth@cygnus.com>
6872
6873         * rtl.def (COND_EXEC): New.
6874         * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
6875         * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
6876
6877         * genconfig.c (have_cond_arith_flag): Remove.
6878         (have_cond_exec_flag): New.
6879         (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
6880         (main): Print HAVE_conditional_execution.
6881
6882         * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
6883         (sched_analyze_insn, print_pattern): Likewise.
6884         * reload.c (find_equiv_reg): Likewise.
6885         * rtlanal.c (reg_referenced_p): Likewise.
6886         (note_stores, dead_or_set_regno_p): Likewise.
6887         (reg_overlap_mentioned_p): Rewrite to use a switch.
6888
6889         * ggc.h (struct rtx_def): Forward declare.
6890
6891         * print-rtl.c (debug_rtx_range): New.
6892         * rtl.h (debug_rtx_range): Declare.
6893
6894         * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
6895
6896         * gcse.c (gcse_main): Don't rebuild the CFG here.
6897         (delete_null_pointer_checks): Likewise.
6898         * ssa.c (convert_to_ssa): Likewise.
6899         * toplev.c (rest_of_compilation): Do it here instead.  Combine
6900         sequential calls to TIMEVAR.  Consistently use `insns' instead of
6901         `get_insns()'.  Always split insns after reload when optimizing.
6902
6903         * basic-block.h (merge_blocks_nomove): Declare.
6904         (tidy_fallthru_edge): Declare.
6905         * flow.c (merge_blocks_nomove): Document as merging into previous
6906         blocks.  Remove cruft from between blocks; remove all edges out of A.
6907         (tidy_fallthru_edge): Export.
6908
6909 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
6910
6911         * ssa.c (compute_conservative_reg_partition): Declare with
6912         void arguments.
6913         * toplev.c (clean_dump_file): Remove previously-deleted function
6914         inadvertantly merged back in.
6915         * conflict.c (conflict_graph_add): Use a single call to
6916         htab_find_slot to look up and insert.
6917
6918 2000-04-06  Richard Henderson  <rth@cygnus.com>
6919
6920         * genrecog.c (*): Rename _last_insn to last_insn.
6921         (make_insn_sequence): Set the position of the peephole2 C test
6922         to be at the last insn.
6923
6924 2000-04-06  Richard Henderson  <rth@cygnus.com>
6925
6926         * flow.c (compute_flow_dominators): Free worklist.
6927
6928 2000-04-06  Michael Matz  <matzmich@cs.tu-berlin.de>
6929
6930         * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
6931
6932 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
6933
6934         * rtl.h (INSN_P): New macro.
6935         (successor_phi_fn): New typedef.
6936         (for_each_successor_phi): New prototype.
6937         (in_ssa_form): New variable.
6938         (PHI_NODE_P): Likewise.
6939         * flow.c (calculate_global_regs_live): Add to new_live_at_end from
6940         phi nodes in successors.
6941         (mark_used_regs): Add PHI case.
6942         (set_phi_alternative_reg): New function.
6943         (life_analysis): Assert that dead code elimination is not selected
6944         when in SSA form.
6945         * toplev.c (to_ssa_time): New variable.
6946         (from_ssa_time): Likewise.
6947         (compile_file): Zero to_ssa_time and from_ssa_time.
6948         Print time to convert to and from SSA.
6949         (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
6950         (print_time): Compute percent fraction as integer.
6951         * ssa.c (PHI_NODE_P): Moved to rtl.h.
6952         (convert_to_ssa): Check if we're already in SSA.
6953         Don't eliminate dead code in life_analysis.
6954         Rerun flow and life analysis at bottom.
6955         (eliminate_phi): Use canonical regnos when adding nodes.
6956         (mark_reg_in_phi): New function.
6957         (mark_phi_and_copy_regs): Likewise.
6958         (convert_from_ssa): Rerun life analysis at top.
6959         Use coalesced partition.
6960         Check for removing a phi node at the end of the block.
6961         (compute_coalesced_reg_partition): New function.
6962         (coalesce_regs_in_copies): Likewise.
6963         (coalesce_reg_in_phi): Likewise.
6964         (coalesce_regs_in_sucessor_phi_nodes): Likewise.
6965         (for_each_successor_phi): Likewise.
6966         (rename_context): New struct.
6967         (rename_block): Use a rename_context with rename_insn_1.  When
6968         renaming sets of a subreg, emit a copy of the entire reg first.
6969         (rename_insn_1): Treat data as a rename_context *.  Save current
6970         insn in set_data.
6971         (rename_set_data): Add field set_insn.
6972         * Makefile.in (HASHTAB_H): Move up in file.
6973         (OBSTACK_H): New macro.
6974         (collect2.o): Use OBSTACK_H in dependencies.
6975         (sdbout.o): Likewise.
6976         (emit-rtl.o): Likewise.
6977         (simplify-rtx.o): Likewise.
6978         (fix-header.o): Likewise.
6979         (OBJS): Add conflict.o.
6980         (conflict.o): New rule.
6981         * basic-block.h: Include partition.h.
6982         (conflict_graph): New typedef.
6983         (conflict_graph_enum_fn): Likewise.
6984         (conflict_graph_new): New prototype.
6985         (conflict_graph_delete): Likewise.
6986         (conflict_graph_add): Likewise.
6987         (conflict_graph_conflict_p): Likewise.
6988         (conflict_graph_enum): Likewise.
6989         (conflict_graph_merge_regs): Likewise.
6990         (conflict_graph_print): Likewise.
6991         (conflict_graph_compute): Likewise.
6992         * conflict.c: New file.
6993
6994 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
6995
6996         * tlink.c (read_repo_files): Don't look for .rpo info for
6997         linker flags.
6998
6999 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7000
7001         * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
7002
7003 Thu Apr  6 19:34:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7004
7005         * config/sh/lib1funcs.asm (___udivsi3_i4):
7006         ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
7007         only depends on FMOVD_WORKS.
7008
7009 Thu Apr  6 19:11:47 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7010
7011         * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
7012         make double constant 8-byte aligned.
7013
7014 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
7015
7016         * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
7017         movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
7018         movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
7019         (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
7020         Accept storing GENERAL_REGS into offsetable memory.
7021         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
7022         building a TFmode constant other than 0.0L into GENERAL_REGS.
7023
7024 2000-04-06  Clinton Popetz  <cpopetz@cygnus.com>
7025
7026         * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
7027
7028 2000-04-06  Zack Weinberg  <zack@wolery.cumb.org>
7029
7030         * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
7031         (macro_cleanup): No need to cast pbuf->macro.
7032         (collect_expansion): Use _cpp_get_define_token.  Goto done if
7033         it returns VSPACE.  Remove check for trailing space after
7034         CPP_COMMENT.
7035         (_cpp_create_definition): Don't diddle flags here.  Return
7036         directly on error.
7037         (unsafe_chars): Handle c1 being EOF.
7038         (push_macro_expansion): Use unsafe_chars for both accidental-paste
7039         checks.  Don't push the buffer till after we're done with
7040         them.
7041         * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
7042         (PEEKN, FORWARD, GETC, PEEKC): Use them.
7043         (cpp_push_buffer): Don't set new->alimit.  Set new->mark
7044         appropriately.
7045         (_cpp_parse_assertion): Don't NUL terminate.
7046         (_cpp_lex_token): Fix -traditional macro handling.  Don't skip
7047         hspace before calling _cpp_parse_assertion.  Remove all sets
7048         of only_seen_white. Treat '\f' as hspace.  Don't do anything
7049         special with '\n' here.
7050         (maybe_macroexpand): Handle T_EMPTY hash entries without
7051         pushing a buffer at all.
7052         (cpp_get_token): Handle clearing only_seen_white here.  Handle
7053         incrementing the line number here.  Clear
7054         potential_control_macro as well as only_seen_white, if
7055         appropriate.
7056         (cpp_get_non_space_token): Don't eat CPP_POP tokens.
7057         (_cpp_get_define_token): New function, basically like
7058         _cpp_get_directive_token was but doesn't eat horizontal space.
7059         Don't do anything with only_seen_white here.
7060         (_cpp_get_directive_token): Just call _cpp_get_define_token
7061         repeatedly till it returns non-hspace.
7062
7063         * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
7064         (conditional_skip, skip_if_group): Return int.
7065         (DIRECTIVE_TABLE): Change origin of all conditional directives
7066         to "COND".
7067         (TRAD_DIRECT_P): New macro.
7068         (_cpp_handle_directive): Use _cpp_get_directive_token.  Issue
7069         an error for a bogus directive, unless -lang-asm.  Use
7070         TRAD_DIRECT_P. Loop calling handler functions till one returns
7071         zero.
7072         (get_macro_name): Don't diddle flags here.
7073         (do_define): Diddle flags here.  Use _cpp_get_directive_token.
7074         Create T_EMPTY nodes for #define macro /* nothing */.
7075         (do_undef): Don't copy the name.  Use _cpp_get_directive_token.
7076         Use hp->name when calling pass_thru_directive.
7077         (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
7078         Return the result of conditional_skip and/or skip_if_group.
7079         Don't call _cpp_output_line_command.
7080         (consider_directive_while_skipping): Use _cpp_get_directive_token.
7081         Issue -Wtraditional warnings as appropriate.  Don't complain
7082         about unrecognized directives.  If we are to stop skipping,
7083         return the number of the directive that ended the skip.
7084         (skip_if_group): Use _cpp_get_directive_token.  Turn off macro
7085         expansion and line commands while skipping.  Return the result
7086         of consider_directive_while_skipping, if nonzero.
7087         (do_endif): Just set potential_control_macro here.
7088         (validate_else): Use _cpp_get_directive_token.
7089         (do_assert, do_unassert): Don't save pointers into the
7090         token_buffer across calls to the lexer.  Use
7091         _cpp_get_directive_token.
7092
7093         * cpplib.h (cpp_buffer): Remove alimit and colno.  Make mark a
7094         pointer, not an offset.  Replace 'data', which was a generic
7095         pointer, with 'macro', which points to a struct hashnode.
7096         (cpp_reader): Add 'potential_control_macro' pointer.
7097         * cpphash.h (T_UNUSED): Replace with T_EMPTY.
7098         (CPP_BUF_GET, CPP_FORWARD): Delete.
7099         (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
7100         (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
7101         ACTIVE_MARK_P): Update.
7102         (_cpp_get_define_token): New internal function.
7103         * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
7104
7105 2000-04-05   Benjamin Kosnik  <bkoz@cygnus.com>
7106
7107         * configure.in: And here.
7108         * configure: Regenerate.
7109         * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
7110         --enable-libstdcxx-v3 is passed at configure time.
7111         * config.h.in: Regenerate.
7112
7113 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
7114
7115         * final.c (final): Use xcalloc to allocate line_note_exists.
7116         * function.c (free_after_compilation): Free the temp_slots.
7117         (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
7118         (combine_temp_slot): Free temp_slots when they get combined.
7119         (purge_addressof): Fix typo in comment.
7120         * stmt.c (mark_goto_fixup): Mark the fixup itself.
7121         (expand_fixup): Allocate the fixup with ggc_alloc_obj.
7122
7123         * ggc.h: Include varray.h.
7124         (ggc_pending_trees): Declare.
7125         (ggc_mark_tree_children): Remove declaration.
7126         (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
7127         * ggc-common.c (ggc_pending_trees): New variable.
7128         (ggc_mark_roots): Call ggc_mark_trees.
7129         (ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
7130         the ggc_pending_trees.
7131         * Makefile.in (GGC_H): New variable.  Use it throughout in place
7132         of ggc.h.
7133
7134 Thu Apr  6 00:30:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7135
7136         * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
7137         GET_MODE_SIZE.
7138
7139 Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7140
7141         * sh.c (sh_insn_length_adjustment): New function.
7142         * sh-protos.h (sh_insn_length_adjustment): Declare.
7143         * sh.h (ADJUST_INSN_LENGTH): Use it.
7144
7145 Wed Apr  5 12:35:18 2000  Hans-Peter Nilsson  <hp@axis.com>
7146
7147         * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
7148         from the insn where REG_RETVAL is added.
7149         (emit_no_conflict_block): Ditto.
7150
7151         * md.texi (Standard Names): Clarify when movX is needed.
7152
7153         * combine.c (simplify_comparison) [MINUS]: Do not replace
7154         all (op (minus A B) 0) with (op A B).
7155
7156 Wed Apr  5 18:03:31 2000  Toshiyasu Morita  (toshi.morita@sega.com)
7157                           J"orn Rennecke <amylaar@cygnus.co.uk>
7158
7159         * sh.md (block_lump_real_i4): Add missing clobber of T_REG
7160         (block_lump_real): Likewise.
7161
7162 2000-04-05  Chris Demetriou  <cgd@netbsd.org>
7163
7164         * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
7165         remaining non-zero debugging masks.
7166
7167 Wed Apr  5 09:44:07 2000  Jeffrey A Law  (law@cygnus.com)
7168
7169         * basic-block.h (verify_flow_info): Declare.
7170         (flow_loop_outside_edge_p): Declare.
7171         * flow.c (verify_flow_info): Remove declaration.
7172         (clear_log_links, flow_loop_outside_edge_p): Likewise.
7173
7174 Wed Apr  5 09:34:26 2000  Philippe De Muyter <phdm@macqel.be>
7175
7176         * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
7177         not C++ comments.
7178
7179 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
7180
7181         * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
7182         snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
7183         seqdi_zero_trunc+1): Allow splits only if registers are
7184         different.
7185
7186 2000-04-04  Ulrich Drepper  <drepper@cygnus.com>
7187
7188         * acconfig.h: Add HAVE_GAS_HIDDEN.
7189         * config.in: Regenerated.
7190         * configure.in: Add test for .hidden pseudo-op in gas.
7191         * configure: Regenerated.
7192         * crtstuff.c: Include auto-host.h.
7193         Emit additional .hidden pseudo-op for __dso_handle if the
7194         assembler knows about it.
7195
7196 2000-04-04  Philippe De Muyter  <phdm@macqel.be>
7197
7198         * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
7199         before freeing argnames.
7200         * cpplib.c (do_ifndef): Cast return value of xstrdup.
7201
7202 2000-04-05  Michael Meissner  <meissner@redhat.com>
7203
7204         * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
7205         Walton <jonboy@gordian.com> to make memory references with update
7206         work wtih -mregnames.
7207
7208 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7209
7210         * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
7211         (regrename_optimize): Rename variables `def_uses' and
7212         `ext_basic_blocks' to avoid conflicts with similarly named
7213         typedefs in traditional C.
7214
7215         * calls.c (initialize_argument_information): Fix typo in previous
7216         change.
7217
7218 2000-04-04  Richard Henderson  <rth@cygnus.com>
7219
7220         * regrename.c (consider_available): Test fixed_regs not
7221         PIC_OFFSET_TABLE_REGNUM.
7222
7223 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
7224
7225         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
7226         crtend.
7227         (CRTSTUFF_T_CFLAGS_S): Delete definition.
7228         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
7229         (ENDFILE_LINUX_SPEC): Always use crtend.
7230         * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
7231         (powerpc-*-linux-gnu): Likewise.
7232         * configure: Regenerate.
7233
7234         * config/rs6000/eabi.h: Don't include sysv4.h.
7235         (MULTILIB_DEFAULTS): Don't define.
7236         * config/rs6000/eabiaix.h: Don't include eabi.h.
7237         * config/rs6000/eabile.h: Delete.
7238         * config/rs6000/eabilesim.h: Delete.
7239         * config/rs6000/eabisim.h: Don't include eabi.h.
7240         * config/rs6000/linux.h: Don't include sysv4.h.
7241         (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
7242         (MULTILIB_DEFAULTS): Don't redefine.
7243         * config/rs6000/rtems.h: Don't include eabi.h.
7244         * config/rs6000/sol2.h: Don't include sysv4le.h.
7245         * config/rs6000/sysv4le.h: Don't include sysv4.h.
7246         * config/rs6000/t-ppc: Delete.
7247         * config/rs6000/t-ppcgas: Correct comment.
7248         * config/rs6000/t-ppcos: Correct comment.  Don't build
7249         multilibs for -fPIC, rather use -fPIC -mstrict-align
7250         as default.
7251         * config/rs6000/t-ppc: Delete.
7252         * config/rs6000/vxppc.h: Don't include sysv4.h.
7253         * config/rs6000/vxppcle.h: Delete.
7254         * configure.in: Use multiple header files for p2pc ELF targets
7255         powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
7256         powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
7257         powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
7258         powerpc-vxworks, powerpcle-vxworks.  Assume GAS functionality is
7259         always available for these platforms.
7260
7261 2000-04-04  Richard Henderson  <rth@cygnus.com>
7262
7263         * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
7264
7265 2000-04-04  Stan Cox  <scox@cygnus.com>
7266
7267         * Makefile.in: Add rules for regrename.o
7268         * regrename.c: New file.
7269         * rtl.h (regrename_optimize): Add prototype.
7270         * toplev.c (rename_registers_dump, flag_rename_registers): New variables
7271         (compile_file, decode_d_option): Add support for -frename-registers.
7272         (rest_of_compilation): Call regrename_optimize.
7273         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
7274         New macros.
7275
7276 2000-04-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7277
7278         * Makefile (gccbug): New target.
7279         (doc): Depend on it.
7280         * gcc.texi (Bugs): Link subnodes.
7281         (gccbug): New node.
7282         * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
7283         Document severities, priorities, and classes in bug form.
7284
7285 2000-04-04  Zack Weinberg  <zack@wolery.cumb.org>
7286
7287         * cpplex.c (trigraph_map, speccase): Combine into single
7288         table, chartab.
7289         (NORMAL, NONTRI): New macros.
7290         (_cpp_read_and_prescan): Change to use unified table.  Use
7291         is_hspace to test for whitespace.
7292
7293         * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
7294         definition that doesn't provoke the "empty body in an
7295         if-statement" warning.
7296
7297 2000-04-04  Clinton Popetz  <cpopetz@cygnus.com>
7298
7299         * builtins.c (expand_builtin_strlen): Force the source to
7300         be a memory address.
7301
7302 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7303
7304         * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
7305
7306 Tue Apr  4 19:17:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7307
7308         * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
7309          ECF_LONGJMP, ECF_FORK_OR_EXEC):  New constants.
7310         (ECF_IS_CONST): Rename to ECF_CONST.
7311         (special_function_p): Make static, change interface.
7312         (flags_from_decl_or_type, try_to_integrate): Break out from ...
7313         (expand_call) ... here; convert number of variables to flags.
7314         (emit_library_call_vlue_1): Likewise.
7315         (setjmp_call_p): New function.
7316         (initialize_argument_information): Accepts flags as argument;
7317         return flags.
7318         (precompute_arguments): Likewise.
7319         * tree.h (special_function_p): Remove.
7320         (setjmp_call_p): Add prototype.
7321
7322 2000-04-04  Jakub Jelinek  <jakub@redhat.com>
7323
7324         * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
7325         so that addresses are offsetable by up to 16 bytes.
7326         (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
7327         non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
7328         offsetable.
7329
7330         * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
7331         (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
7332         (movsf): Don't force any constant to memory if target is integer
7333         hard register.
7334         Move fp_zero_operand check below the const0_rtx check.
7335         (movtf): Likewise. Also allow fp_zero_operand for stores into
7336         memory.
7337         (movdf): Likewise. Also allow fp_zero_operand for stores into
7338         memory and into integer hard registers.
7339         (clear_df, clear_dfp, movdf_const_intreg_sp32,
7340         movdf_const_intreg_sp64): Remove.
7341         (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
7342         conditions.
7343         (movdf_no_e_insn_v9_sp32): New pattern.
7344         (movdf_insn_v9only): Remove.
7345         (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
7346         (movdf_insn_sp64): Remove.
7347         (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
7348         (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
7349         (following splits): Rewrite conditions. Add two new splits
7350         for storing 0.0 into memory and registers.
7351         (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
7352         (movtf_insn_sp32): Redo constraints and conditions.
7353         (movtf_insn_vis_sp32): New pattern.
7354         (movtf_no_e_insn_sp32): Redo constraints and conditions.
7355         (movtf_insn_hq_sp64): Likewise.
7356         (movtf_insn_hq_vis_sp64): New pattern.
7357         (movtf_insn_sp64): Redo constraints and conditions.
7358         (movtf_insn_vis_sp64): New pattern.
7359         (movtf_no_e_insn_sp64): Redo constraints and conditions.
7360         (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
7361         or memory.
7362         * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
7363         -mvis or -m64 to take down the number of various reload patterns.
7364
7365 Tue Apr  4 00:41:53 2000  Jeffrey A Law  (law@cygnus.com)
7366
7367         * pa/pa-64.h: New file.
7368         * pa/pa64-regs.h: New file.
7369         * pa/pa64-start.h: New file.
7370         * pa/t-pa64: New file.
7371         * pa/xm-pa64hpux.h: New file.
7372
7373 2000-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7374
7375         * sparc.c (output_restore_regs): Prototype.
7376         (sparc_emit_float_lib_cmp): Constification.
7377
7378         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
7379
7380         * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
7381         Prototype.
7382
7383         * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
7384         (get_value_hash, hash_rtx): Likewise.
7385
7386         * ssa.c (compute_conservative_reg_partition): Prototype.
7387
7388         * tree.c (mark_hash_entry): Prototype.
7389
7390 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
7391
7392         * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
7393         * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
7394         * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
7395
7396         * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
7397         * objc/lang-specs.h: Likewise.
7398
7399 2000-04-03  Neil Booth  <NeilB@earthling.net>
7400
7401         * cppexp.c: wrap long lines.  New macros CPP_ICE, SYNTAX_ERROR
7402         and SYNTAX_ERROR2. Replace `' in messages with ''.
7403         (op_to_str): Make re-entrant.
7404         (_cpp_parse_expr): Implement new error macros. Use | rather
7405         than || to logically or 2 boolean integers.  Simply expression
7406         checking we have a left operand iff needed.
7407
7408 2000-04-03  Nick Clifton  <nickc@cygnus.com>
7409
7410         * Makefile.in (diagnostic.o): Depend upon diagnostic.c
7411
7412 2000-04-03  Philip Blundell  <philb@gnu.org>
7413
7414         * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
7415
7416 2000-04-03  Felix Lee  <flee@cygnus.com>
7417
7418         * fixinc/server.c (find_shell): New function.  Avoid $SHELL.
7419         (run_shell): Use it.
7420
7421 2000-04-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
7422
7423         * Makefile.in (stmp-int-hdrs): Make include subdir here...
7424         (stmp-fixproto): ...rather than here.
7425
7426 Mon Apr  3 00:50:06 2000  Jason Eckhardt <jle@cygnus.com>
7427
7428         * pa.c (print_operand): Compute 'base' only inside the code paths
7429         that use it.
7430
7431 2000-04-03  Geoffrey Keating  <geoffk@cygnus.com>
7432
7433         * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
7434         CEIL_DIV_EXPR.
7435
7436 2000-04-03  Philipp Thomas  <pthomas@suse.de>
7437
7438         * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
7439
7440 Mon Apr  3 00:02:59 2000  Brad Lucier <lucier@math.purdue.edu>
7441
7442         * Makefile.in (alias.o): Depend on $(TREE_H).
7443
7444 2000-04-02  Zack Weinberg  <zack@wolery.cumb.org>
7445
7446         * cppinit.c (cpp_start_read): Turn off -Wtraditional if
7447         processing C++.
7448         * cpplib.c (_cpp_handle_directive): Improve warnings for
7449         traditional C and indented directives.
7450
7451         * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
7452         fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
7453         fixinc/inclhack.def: Indent the # of #include_next one space.
7454         * cp/rtti.c: Un-indent #if and #endif.
7455
7456         * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
7457         syntax error, but an error has already been printed.
7458         * cpplex.c (_cpp_parse_assertion): Give a more specific error
7459         message when called with nothing remaining on the line.
7460         (_cpp_lex_token): If _cpp_parse_assertion fails, return an
7461         OTHER token, not an ASSERTION.
7462         * cpplib.c (do_assert): When we create a 'base' node, clear
7463         its aschain pointer.
7464
7465 2000-04-02  Neil Booth <NeilB@earthling.net>
7466
7467         * cppexp.c:  New typedef op_t.  struct operation and struct
7468         token updated to use it.
7469         (op_to_str): New function.
7470         (_cpp_parse_expr): Error messages modified to use op_to_str.
7471
7472 2000-04-02  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7473
7474         * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
7475         before checking MUST_PASS_IN_STACK.
7476
7477 2000-04-02  Neil Booth <NeilB@earthling.net>
7478
7479         * cppexp.c:  New FINISHED dummy token.  Combine operator initial
7480         flags and initial priority into a single constant.  New
7481         EQUALITY macro.  New operator flag SHORT_CIRCUIT.
7482         (_parse_cpp_expr): Implement new constants.  Take left operand
7483         checks out of reduction loop.  Handle SHORT_CIRCUIT.  End of
7484         parse indicated by reducing FINISHED token.  Remove new lines
7485         from cpp_error messages.
7486
7487 2000-04-01  Mark Mitchell  <mark@codesourcery.com>
7488
7489         * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
7490         permanent obstack.
7491
7492 2000-04-01  Zack Weinberg  <zack@wolery.cumb.org>
7493
7494         * cpplib.c: Include symcat.h.  Add 'origin' field to struct
7495         directive.  Add origin values to DIRECTIVE_TABLE.  Generate
7496         the strings and function names on the fly.  Take the #sccs
7497         entry out of the table if SCCS_DIRECTIVE is not defined.
7498         (_cpp_handle_directive): Decide if the # was at the beginning
7499         of the line here.  Issue -pedantic warnings for extended
7500         directives here.  Warn about K+R directives with the #
7501         indented, and C89/extended directives with the # not indented,
7502         here.
7503         (do_import, do_include_next, do_warning, do_ident, do_sccs,
7504         do_assert, do_unassert): Don't issue pedantic warning here.
7505
7506         * cpphash.h: Add CPP_WTRADITIONAL macro.
7507         * cpplib.h (struct cpp_options): Rename warn_stringify to
7508         warn_traditional; update comments.
7509         * cppinit.c (handle_option): Set warn_traditional not
7510         warn_stringify.
7511         * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
7512         CPP_WTRADITIONAL (pfile).
7513         * cpplex.c (_cpp_lex_token): Don't decide if directives should
7514         be ignored in -traditional mode here.
7515
7516         * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
7517         to initialize speccase[] and trigraph_map[].  Delete all
7518         references to pfile->input_speccase.  Always treat '?' as a
7519         special character.  Remove table-initialization code from
7520         _cpp_init_input_buffer.
7521
7522         * cpplib.h (struct cpp_reader): Remove input_speccase field.
7523         * cppinit.c (cpp_cleanup): Don't free input_speccase.
7524
7525 2000-04-01  Richard Henderson  <rth@cygnus.com>
7526
7527         * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
7528         (mostlyclean): Likewise.
7529
7530         * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
7531         (struct dump_file_info, enum dump_file_index, dump_file): New.
7532         (open_dump_file): Take a dump_file_index not a suffix, and a decl
7533         not a string.  Clean out file if we havn't yet done so.  Do nothing
7534         if the dump isn't enabled.
7535         (close_dump_file): Do nothing if the dump isn't open.  Dump
7536         graph data if requested.
7537         (dump_rtl, clean_dump_file): Remove.
7538         (compile_file): Don't clean the dump files.  Only finalize .bp dump
7539         if flag_test_coverage or flag_branch_probabilities.  Only finalize
7540         .combine dump if optimizing.  Iterate over dump_file to finalize the
7541         graph dumps.
7542         (rest_of_compilation): Update for open_dump_file/close_dump_file.
7543         Convert all uses of dump_rtl.
7544         (decode_d_option): Iterate over dump_file to implement 'a' and to
7545         locate pass-specific dumps.
7546
7547 2000-04-01  Neil Booth <NeilB@earthling.net>
7548
7549         * cppexp.c: Redefine priority constants.
7550         (_cpp_parse_expr): Replace left and right priority scheme with
7551         single priority logic.  Move LOGICAL to same place as COMPARE.
7552         Remove bogus check for multiple unary +/- operators.
7553
7554 2000-04-01  Neil Booth <NeilB@earthling.net>
7555
7556         * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
7557         within the switch statement.  Binary operations break out of
7558         the switch naturally.  '(' tokens handled by forcing
7559         immediate shift.  ')' handled by forcing immediate reduce to
7560         the previous '('.  New error messages.
7561
7562 2000-03-31  Geoff Keating  <geoffk@cygnus.com>
7563
7564         * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
7565         part', it's already in use.  Use %K instead.  Add a return at the
7566         end of what is now %K.
7567         * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
7568
7569 Sat Apr  1 02:05:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7570
7571         * builtins.c  (expand_builtin_apply):  Pass proper parameters to
7572         allocate_dynamic_stack_space.
7573         * calls.c (emit_call_1):  Do not adjust stack pointer for SIB,
7574         update stack_pointer_delta; do not update arg_size_so_far.
7575         (compute_argument_block_size): Use stack_delta instead of
7576         stack_pointer_pending and arg_size_so_far.
7577         (expand_call): Add sanity checking for stack_pointer_delta;
7578         save and restore stack_pointer_delta for SIB, use
7579         stack_pointer_delta for alignment; do not update arg_space_so_far.
7580         (emit_library_call_value): Use stack_pointer_delta for alignment.
7581         (store_one_arg): Do not update arg_space_so_far.
7582         * explow.c (adjust_stack, anti_adjust_stack): Update
7583         stack_pointer_delta.
7584         (allocate_dynamic_stack_space): Add sanity checking for
7585         stack_pointer_delta.
7586         * expr.c (init_expr, clear_pending_stack_adjust): Clear
7587         stack_pointer_delta.
7588         (emit_push_insn): Update stack_pointer_delta.
7589         * function.h (struct expr_status): Add x_stack_pointer_delta;
7590         remove x_arg_space_so_far.
7591         (arg_space_so_far): Remove.
7592         (stack_pointer_delta): New macro.
7593
7594 2000-03-31  Zack Weinberg  <zack@wolery.cumb.org>
7595
7596         * cpplib.h: Merge struct cpp_options into struct cpp_reader.
7597         Reorder struct cpp_options and struct cpp_reader for better
7598         packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
7599         takes two args.  Change all 'char' flags to 'unsigned char'.
7600         Move show_column flag into struct cpp_options.  Don't
7601         prototype cpp_options_init.
7602         * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
7603         cppinit.c, cpplex.c, cpplib.c:
7604         Replace CPP_OPTIONS (pfile)->whatever with
7605         CPP_OPTION (pfile, whatever), and likewise for
7606         opts = CPP_OPTIONS (pfile); ... opts->whatever;
7607
7608         * cppinit.c (merge_include_chains): Take a cpp_reader *.
7609         Extract CPP_OPTION (pfile, pending) and work with that
7610         directly.
7611         (cpp_options_init): Delete.
7612         (cpp_reader_init): Turn on on-by-default options here.
7613         Allocate the pending structure here.
7614         (cl_options, enum opt_code): Define these from the same table,
7615         kept in a large macro.  Add -fshow-column and -fno-show-column
7616         options.
7617
7618         * cpperror.c (v_message): If show_column is off, don't print
7619         the column number.
7620
7621         * cppmain.c: Update for new interface.
7622         * fix-header.c: Likewise.
7623
7624 2000-03-30  Geoff Keating  <geoffk@cygnus.com>
7625
7626         * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
7627         definition.
7628         * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
7629         are passed to any invocation of AR_FOR_TARGET.
7630         (AR_CREATE_FOR_TARGET): New macro.
7631         (AR_EXTRACT_FOR_TARGET): New macro.
7632         (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
7633         AR_EXTRACT_FOR_TARGET.
7634         (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
7635         in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
7636         `$(AR_FOR_TARGET) x'.  Pass AR_CREATE_FOR_TARGET and
7637         AR_EXTRACT_FOR_TARGET to sub-makes.
7638
7639 2000-03-31  Neil Booth <NeilB@earthling.net>
7640
7641         * cppexp.c: Delete SKIP_OPERAND.  Correct priority
7642         PAREN_INNER_PRIO.
7643         (_cpp_parse_expr): Check for multiple unary +/- operators.
7644         Correct priorities of ':' and '?'.  Treat ')' as having a
7645         value.  Ensure conditional expression is not void.
7646
7647 2000-03-31  Mark Mitchell  <mark@codesourcery.com>
7648
7649         * alias.c (canon_rtx): Make it global.
7650         (rtx_equal_for_memref_p): CONST_INT equality is now pointer
7651         equality.
7652         * cse.c (struct table_elt): Add canon_exp.
7653         (insert): Clear it.
7654         (invalidate): Canonicalize expressions only once.
7655         * rtl.h (canon_rtx): Declare.
7656
7657 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
7658
7659         * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
7660         * alias.c (reg_known_value): Add comments.
7661         (init_alias_analysis): Likewise.
7662         * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
7663         address.
7664         (cse_basic_block): Fix typo in comment.
7665         * emit-rtl.c: Include hashtab.h.
7666         (const_int_htab): New variable.
7667         (const_int_htab_hash): New function.
7668         (const_int_htab_eq): Likewise.
7669         (rtx_htab_mark_1): Likewise.
7670         (rtx_htab_mark): Likewise.
7671         (gen_rtx_CONST_INT): Cache all CONST_INTs.
7672         (unshare_all_rtx): Fix formatting.
7673         (init_emit_once): Initialize const_int_htab.
7674         * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
7675         address.
7676         * rtl.texi: Document the fact that all CONST_INTs with the same
7677         value are shared.
7678
7679 2000-03-30  Richard Henderson  <rth@cygnus.com>
7680
7681         * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
7682
7683 2000-03-30  Zack Weinberg  <zack@wolery.cumb.org>
7684
7685         * configure.in: Comment out --enable-c-cpplib stanza.
7686         * configure: Regenerate.
7687
7688 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7689
7690         * expr.c (store_constructor): Properly compute displacement and
7691         alignment when offset is variable.
7692
7693         * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
7694         cases of alignment in bytes.
7695
7696 Thu Mar 30 13:30:40 2000  Jeffrey A Law  (law@cygnus.com)
7697
7698         * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
7699         since it is used to generate c-parse.y.
7700         * objc-parse.c, objc-parse.y: Regenerated.
7701
7702         * function.c (expand_function_end): Pass alignment argument to
7703         emit_block_move in bits, not bytes.
7704
7705 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7706
7707         * expr.c (move_by_pieces_ninsns): Fix one more missing align
7708         correction.
7709
7710         * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
7711
7712         * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
7713         * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
7714         * function.c (assign_parms): Likewise.
7715         * integrate.c (expand_inline_function): Likewise.
7716         * stmt.c (expand_decl): Likewise.
7717         (copy_rtx_and_substitute): Likewise.
7718         * expr.c (expand_expr, expand_expr_unaligned): Likewise.
7719         (clear_by_pieces): Fix error in last change.
7720         * emit-rtl.c (init_emit): Set known registers alignment in bits.
7721         * function.h (regno_pointer_align): Now unsigned.
7722         * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
7723         is in bits.
7724         * config/i386/i386.c (aligned_operand): Likewise.
7725         * config/sparc/sparc.c (mem_min_alignment): Likewise.
7726         * config/alpha/alpha.c (aligned_memory_operand): Likewise.
7727         (unaligned_memory_operand): Likewise.
7728         (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
7729         Also make alignments and sizes unsigned and some whitespace cleanup.
7730         (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
7731
7732         * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
7733         (expand_builtin_apply): Pass alignment to emit_block_move in bits.
7734         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
7735         (expand_builtin_memset): Likewise, but to clear_storage.
7736         * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
7737         (restore_fixed_argument_area): Likewise.
7738         (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
7739         (load_register_parameters): Likewise, to emit_group_load.
7740         (expand_call): Likewise, to emit_group_store and emit_block_move.
7741         (emit_library_call_value_1): Likewise, to emit_block_move.
7742         (store_one_arg): Likewise, and to emit_push_insn.
7743         * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
7744         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
7745         * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
7746         (emit_block_move, emit_group_load, emit_group_store): Likewise.
7747         (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
7748         (expand_assigment, store_expr, store_constructor_field): Likewise.
7749         (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
7750         (store_constructor, store_field, get_inner_reference): Likewise.
7751         Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
7752         (expand_expr, case COMPONENT_REF): Likewise.
7753         (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
7754         and positions; reindent code.
7755         * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
7756         * function.c (purge_addressof_1): Pass bit align to store_bit_field.
7757         (assign_parms): Likewise to emit_group_store.
7758         * optabs.c (prepare_cmp_insn): Alignment is in bits.
7759         (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
7760         * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
7761         (expand_return): Likewise to {extract,store}_bit_field.
7762         * stor-layout.c (get_mode_alignment): Minor cleanup.
7763         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
7764         * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
7765
7766 2000-03-29  Nick Clifton  <nickc@cygnus.com>
7767
7768         * config/arm/arm.h: Undo effects of previous delta:
7769         (ASM_SPEC): Do not define.
7770         (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
7771
7772         * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
7773         typo.
7774
7775 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
7776
7777         * cppinit.c (cpp_start_read): Call initialize_dependency_output
7778         only after reading in the primary source file.
7779
7780 2000-03-29  Geoff Keating  <geoffk@cygnus.com>
7781
7782         * c-common.c (c_common_nodes_and_builtins): The first parameter to
7783         __builtin_va_start and __builtin_va_copy is now either a 'va_list'
7784         or a reference to a va_list.
7785         * builtins.c (stabilize_va_list): Simplify now we don't have to
7786         work around C array address decay.
7787         * c-typeck.c (convert_for_assignment): Handle assignment to
7788         a reference parameter by taking the address of the RHS.
7789         * ginclude/stdarg.h (va_start): Don't take address of first parameter.
7790         (va_copy): Likewise.
7791         (__va_copy): Likewise.
7792         * ginclude/varargs.h (va_start): Likewise.
7793         (__va_copy): Likewise.
7794
7795 Wed Mar 29 15:44:53 2000  Jeffrey A Law  (law@cygnus.com)
7796
7797         * i386/djgpp.h: Remove extraneous "+".
7798
7799         * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
7800
7801         * calls.c (expand_call): Fix typo in last change.
7802
7803 2000-03-29  Jason Merrill  <jason@casey.cygnus.com>
7804
7805         * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
7806         been expanded.
7807
7808 Wed Mar 29 15:39:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7809
7810         * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
7811         (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
7812         (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
7813         * tree.c (bit_position, byte_position): Likewise.
7814         * tree.h: Declare new functions.
7815
7816 2000-03-29  Nick Clifton  <nickc@cygnus.com>
7817
7818         * config/arm/arm.c: Minor formatting changes/
7819         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
7820         already defined.
7821         (ASM_SPEC): Define if not already defined.
7822
7823 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
7824
7825         * cppfiles.c (cpp_read_file): Don't pass zero-length string to
7826         _cpp_calc_hash.
7827
7828 2000-03-29  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
7831         value, don't output it as unsigned.
7832
7833 Wed Mar 29 10:53:49 2000  Jeffrey A Law  (law@cygnus.com)
7834
7835         * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
7836
7837 2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7838
7839         * c-common.c (c_common_nodes_and_builtins): Don't special case
7840         cplus_mode when declaring builtin bzero/bcmp, always avoid
7841         prototype arguments.
7842
7843 2000-03-29  Bruce Korb  <bkorb@gnu.org>
7844
7845         * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
7846         to a non-file
7847
7848 Wed Mar 29 15:08:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7849
7850         Convert ACCUMULATE_OUTGOING_ARGS to an expression.
7851         * calls.c (PUSH_ARGS_REVERSED) Change to expression.
7852         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
7853         (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
7854         (save_fixed_argument_area, restore_fixed_argument_area):
7855         conditionize by #ifdef REG_PARM_STACK_SPACE only.
7856         (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
7857         to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
7858         (precompute_register_parameters): Avoid #ifdefs on
7859         ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
7860         (stire_one_args): Likewise.
7861         (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
7862         (emit_library_call_value_1): Likewise.
7863         (compute_argument_block_size): Align to STACK_BOUNDARY only for
7864         ACCUMULATE_OUTGOING_ARGS.
7865         * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
7866         value.
7867         (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
7868         (use_crosses_set_p): Likewise.
7869         * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
7870         #define ACCUMULATE_OUTGOING_ARGS 1.
7871         * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
7872         frames.
7873         * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
7874         constants.
7875         (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
7876         (TARGET_SWITCHES): Add push-args, no-push-args,
7877         accumulate-outgoing-args and no-accumulate-outgoing-args.
7878         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
7879         * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
7880         (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
7881         and PUSH_ROUNDING.
7882         (emit_push_insn): Likewise.
7883         * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
7884         (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
7885         * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
7886         (STACK_DYNAMIC_OFFSET): Define correctly for both
7887         ACCUMULATE_OUTGOING_ARGS and normal mode.
7888         * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
7889         * tm.texi (PUSH_ARGS): Document.
7890         (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
7891
7892 Wed Mar 29 11:51:13 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7893
7894         * flags.h (flag_optimize_sibling_calls): Declare.
7895         * calls.c (expand_call): Fail sibcall when
7896         !flag_optimize_sibling_calls
7897         * invoke.texi (flag_optimize_sibling_calls): Document.
7898         * toplev.c (flag_optimize_sibling_calls): New global variable.
7899         (f_options): Add flag_optimize_sibling_calls.
7900         (rest_of_compilation): Conditionize
7901         optimize_sibling_and_tail_recursive_calls by
7902         flag_optimize_sibling_calls.
7903         (main): Set flag_optimize_sibling_calls for -O2.
7904         * stmt.c (expand_return): Conditionize tail recursion by
7905         flag_optimize_sibling_calls.
7906
7907 2000-03-29  Richard Henderson  <rth@cygnus.com>
7908
7909         * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
7910         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
7911
7912 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
7913
7914         * except.c (add_eh_table_entry): Mark type_info's as referenced.
7915
7916 2000-03-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
7917
7918         * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
7919         is given.
7920         * config/rs6000/aix43.h (CPP_SPEC): Likewise.
7921         * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
7922         * config/rs6000/aix.h: then modified likewise.
7923
7924 2000-03-28  Richard Henderson  <rth@cygnus.com>
7925
7926         * rtl.h: Redistribute enum reg_note documentation.
7927         Kill trailing whitespace.
7928         * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
7929         Kill trailing whitespace.
7930
7931 2000-03-28  Zack Weinberg  <zack@wolery.cumb.org>
7932
7933         * cppfiles.c (hash_IHASH): Just return i->hash.
7934         (cpp_included): Set dummy.hash using _cpp_calc_hash.  Use
7935         htab_find_with_hash.
7936         (cpp_read_file): Likewise.
7937         (find_include_file): Likewise.  Properly initialize
7938         ih->nshort.  Share ih->name and ih->nshort if possible.
7939         * cpphash.c (_cpp_calc_hash): New function.
7940         (hash_HASHNODE): Just return h->hash.
7941         (_cpp_lookup): Set dummy.hash using _cpp_calc_hash.  Use
7942         htab_find_with_hash.
7943         * cpphash.h: Prototype _cpp_calc_hash.
7944         * cppinit.c (initialize_builtins): Provide a valid hash
7945         to _cpp_make_hashnode, using _cpp_calc_hash.
7946
7947         * cpphash.c (collect_expansion): # is not a special character
7948         in object-like macros.  In -traditional mode, /**/ is not
7949         token paste at the beginning or end of the line.
7950         * cpplib.c (do_include, do_import, do_include_next): If
7951         parse_include fails, return immediately.
7952
7953 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
7954
7955         * config/arm/arm.md (return peepholes): Update to reflect the new
7956         call insn patterns.
7957         * config/arm/arm.c (arm_volatile_func): Also check
7958         current_function_nothrow.
7959         (output_return_instruction, output_func_prologue): Use it.
7960         (arm_output_epilogue, arm_expand_prologue): Likewise.
7961
7962 2000-03-27  Tom Tromey  <tromey@cygnus.com>
7963
7964         * gcc.c (handle_braces): In {x*...} case, break out of loop if
7965         switch is found.
7966
7967 Tue Mar 28 11:55:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7968
7969         * expr.c (store_constructor): SIZE now signed.
7970         For EXPR_SIZE, don't evaluate size; just needed if constant.
7971         * fold-const.c (fold): Fix a number of cases when folded tree is
7972         wrong type.
7973         * function.c (flush_addressof): Reenable.
7974         * tree.h (flush_addressof): Likewise.
7975         * toplev.c (independent_decode_option): Look at strings_processed.
7976         * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
7977
7978 Tue Mar 28 08:29:46 2000  Jan Hubicka  <jh@suse.cz>
7979
7980         * sibcall.c (indentify_call_return_value): Find last call in the chain;
7981         Allow stack adjustment after function call.
7982
7983         * regmove.c (struct csa_memlist): Make mem field rtx *.
7984         (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
7985         (try_apply_stack_adjustment): Replace whole MEM rtx.
7986         (combine_stack_adjustments_for_block): Update calls
7987         to record_one_stack_ref.
7988
7989 2000-03-28  Neil Booth  <NeilB@earthling.net>
7990
7991         * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
7992         '\\' rather than a null character, so nulls are not special.  Fix
7993         "\\\n" handling in end-of-buffer conditions.  Use trigraph map to
7994         speed trigraph conversion.
7995         (_cpp_init_input_buffer): Initialize trigraph map.
7996
7997 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
7998
7999         * config/i386/i386.c (output_387_binary_op): Correct intel
8000         mode assembly output, and add spaces after commas in AT&T
8001         output.  Correct Unixware assembler comment.  Document input
8002         constraints.  Comment fp operations.  Reduce profligate buffer
8003         size.  Remove extraneous abort.  Localize temp var.
8004         (SYSV386_COMPAT): Define.  Add !SYSV386_COMPAT code.
8005         (output_fix_trunc): Add spaces after commas in assembly output.
8006
8007 2000-03-27  Richard Henderson  <rth@cygnus.com>
8008
8009         * i386-protos.h (ix86_match_ccmode): Declare.
8010         * i386.c (ix86_match_ccmode): New.
8011         (ix86_expand_fp_compare): Update for pattern renames.
8012         (ix86_expand_strlensi_unroll_1): Likewise.
8013         * i386.h (EXTRA_CC_MODES): Add CCZ.
8014         (SELECT_CC_MODE): Use it for EQ/NE zero.
8015         * i386.md (cmpsi_ccz_1): New.
8016         (cmpqi_ccz_1): New.
8017         (*testsi_ccz_1): New.
8018         (testqi_ccz_1): New.
8019         (cmpsi_ccno_1): Rename from cmpsi_0.
8020         (testsi_ccno_1): Rename from testsi_1.
8021         (testqi_ccno_1): Rename from testqi_1.
8022         (*testqi_ext_ccz_0): Rename from testqi_ext_0.
8023         (testqi_ext_ccno_0): Rename from *testqi_ext_1.
8024         (*cmphi_0): Use ix86_match_ccmode.
8025         (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
8026         (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
8027         (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
8028         (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
8029         (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
8030         (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
8031         (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
8032         (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
8033         (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
8034         (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
8035         (appropriate peepholes): Likewise.
8036         (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
8037         (*subsi_3, *subhi_3, *subqi_3): Remove.
8038         (*negdi2_1+1 splitter): Use CCZ for neg patterns.
8039         (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
8040         (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
8041         (*neghi2_cmpz, *negqi2_cmpz): Similarly.
8042         (x86_shift_adj_1): Use CCZ.
8043         (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
8044
8045 2000-03-27  Stan Cox  <scox@cygnus.com>
8046
8047         * resource.h (mark_resource_type): New.
8048         * resource.c (find_dead_or_set_registers, mark_target_live_regs,
8049         find_free_register): Use mark_resource_type.
8050         (mark_set_resources): Change include_delayed_effects
8051         to mark_resource_type.
8052         * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
8053         redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
8054         Use mark_resource_type.
8055
8056 2000-03-27  Richard Henderson  <rth@cygnus.com>
8057
8058         * i386.md (call_pop_0, call_value_pop_0): New.
8059         (call_pop_1): Remove constraint from unused arg.  Support sibcalls.
8060         (call_value_pop_1): Likewise.
8061         (call_0, call_value_0): New.
8062         (call_1, call_value_1): Remove constraint from unused arg.
8063
8064 2000-03-27  Nick Clifton  <nickc@cygnus.com>
8065
8066         * invoke.texi (Spec Files): Document new spec % command created by
8067         Tom Tromey's recent patch.
8068
8069 2000-03-27  Jakub Jelinek  <jakub@redhat.com>
8070
8071         * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
8072         if not defined.
8073
8074 Mon Mar 27 06:04:22 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8075
8076         * expr.c (expand_assignment): Fix typo in last change.
8077
8078         * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
8079
8080 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8081
8082         * c-convert.c (convert): Return if output or input type is ERROR_MARK.
8083         * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
8084         and DECL_INLINE if FUNCTION_DECL.
8085         (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
8086         (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
8087         Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
8088         (combine_parm_decls): Likewise.
8089         * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
8090         * print-tree.c (print_node): Likewise.
8091         Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
8092         DECL_TRANSPARENT_UNION on proper decl types.
8093         Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
8094         * stor-layout.c (layout_decl): Only check DECL_PACKED and
8095         DECL_BIT_FIELD of FIELD_DECL.
8096         * tree.h (DECL_RESULT_FLD): New macro.
8097
8098         * expr.c (expand_assignment): Add code to handle variable-sized
8099         BLKmode case.
8100
8101 2000-03-26  Richard Henderson  <rth@cygnus.com>
8102
8103         * calls.c (expand_call): Pass parms not original exp to
8104         optimize_tail_recursion.  Mind return value instead of looking
8105         for a barrier.
8106         * stmt.c (optimize_tail_recursion): Take parameter list, not entire
8107         call_expr.  Move checks for call_expr and current_function_decl ...
8108         (expand_return): ... here.
8109
8110 2000-03-26  Tom Tromey  <tromey@cygnus.com>
8111
8112         * gcc.c (handle_braces): Recognize `%{<S}' construct.
8113         (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
8114         defines.
8115         (process_command): Use them.
8116         (check_live_switch): Likewise.
8117         (give_switch): Skip ignored switches.
8118
8119 2000-03-26  Jan Hubicka  <jh@suse.cz>
8120
8121         * jump.c (jump_optimize_1): Fix typo in elide optimizations
8122         for minimal jump pass test.
8123
8124 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
8125
8126         * integrate.c (function_cannot_inline_p): Do inline functions that
8127         return `void'.
8128
8129 Sun Mar 26 11:37:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8130
8131         * stor-layout.c (layout_type, set_sizetype): early_type_list is
8132         now a list of TREE_LIST entries, not types.
8133         * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
8134
8135         * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
8136         * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
8137         int_bit_position.
8138         * config/mips/mips.c (function_arg): Likewise; also remove cast
8139         and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
8140         (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
8141         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
8142         * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
8143         (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
8144         (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
8145         (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
8146         (struct mips_arg): arg_number, arg_words, fp_arg_words, and
8147         num_adjusts now unsigned.
8148         (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
8149         * config/sparc/sparc.c (struct function_arg_record_value_parms):
8150         NREGS now unsigned.
8151         (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
8152         as is BITPOS variable; use host_integerp and int_bit_position.
8153         (function_arg_record_value_2): Likewise.
8154         (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
8155         Variable REGNO now unsigned.
8156         (function_arg_record_value): NREGS now unsigned.
8157
8158 2000-03-26  Bernd Schmidt  <bernds@cygnus.co.uk>
8159
8160         * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
8161
8162 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8163
8164         * Rework fields used to describe positions of bitfields and
8165         modify sizes to be unsigned and use HOST_WIDE_INT.
8166         * alias.c (reg_known_value_size): Now unsigned.
8167         * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
8168         (really_start_incremental_init): Use bitsize_zero_node.
8169         (push_init_level, pop_init_level, output_init_element): Likewise.
8170         Use bitsize_unit_node and bitsize_one_node.
8171         (output_pending_init_elements, process_init_element): Likewise.
8172         * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
8173         (make_extraction): Position and length HOST_WIDE_INT and unsigned
8174         HOST_WIDE_INT, respectively.
8175         (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
8176         (num_sign_bit_copies): Returns unsigned.
8177         BITWIDTH now unsigned; rework arithmetic.
8178         Remove recursive call from arg to MAX.
8179         (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
8180         (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
8181         REGNO now unsigned.
8182         (set_nonzero_bit_and_sign_copies): NUM now unsigned.
8183         (find_split_point, expand_compound_operation, make_extraction): LEN
8184         now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
8185         (make_field_assignment): Likewise.
8186         (combine_simplify_rtx): Add cast.
8187         (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
8188         (force_to_mode): WIDTH now unsigned; add cast.
8189         (if_then_else_cond): SIZE now unsigned.
8190         (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
8191         (extended_count): Now returns unsigned.
8192         (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
8193         Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
8194         (simplify_comparison): MODE_WIDTH now unsigned.
8195         (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
8196         (mark_used_regs_combine): Likewise; rework arithmetic.
8197         (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
8198         (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
8199         (record_promoted_value): REGNO now unsigned.
8200         (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
8201         (get_last_value): REGNO now unsigned.
8202         (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
8203         (reg_dead_regno, reg_dead_endregno): Now unsigned.
8204         (remove_death): Arg REGNO now unsigned.
8205         (move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
8206         (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
8207         now unsigned.
8208         * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
8209         * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
8210         (struct cse_reg_info): REGNO now unsigned.
8211         (cached_regno): Now unsigned.
8212         (REGNO_QTY_VALID_P): Add cast.
8213         (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
8214         (remove_invalid_regs): Likewise.
8215         (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
8216         as are variables END and I.
8217         (get_cse_reg_info, insert): Likewise.
8218         (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
8219         (canon_hash): Likewise.
8220         (insert_regs, lookup_for_remove): REGNO now unsigned.
8221         (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
8222         New variable RN.
8223         * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
8224         * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
8225         * emit-rtl.c (subreg_realpart_p): Add cast.
8226         (operand_subword): Arg I is now unsigned as is var PARTWORDS.
8227         (operand_subword_force): Arg I is now unsigned.
8228         * except.c (eh_regs): Variable I is now unsigned.
8229         * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
8230         * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
8231         length is unsigned HOST_WIDE_INT; likewise for internal variables.
8232         (store_split_bit_field, extract_fixed_bit_field): Likewise.
8233         (extract_split_bit_field, store_bit_field, extract_bit_field):
8234         Likewise.
8235         * expr.c (store_constructor_fields, store_constructor, store_field):
8236         Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
8237         (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
8238         (do_jump): Likewise.
8239         (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
8240         MAX_SIZE is now unsigned.
8241         (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
8242         (emit_group_store): Likewise.
8243         (emit_move_insn): I now unsigned.
8244         (store_constructor): Use host_integerp, tree_low_cst, and
8245         bitsize_unit_node.
8246         (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
8247         Rework all calculations to use trees and new fields.
8248         * expr.h (promoted_input_arg): Regno now unsigned.
8249         (store_bit_field, extract_bit_field): Adjust types of pos and size.
8250         (mark_seen_cases): Arg is HOST_WIDE_INT.
8251         * flow.c (verify_wide_reg_1): REGNO now unsigned.
8252         * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
8253         precisions and alignments are unsigned.
8254         (optimize_bit_field_compare, fold_truthop): Likewise.
8255         (int_const_binop): Adjust threshold for size_int_type_wide call.
8256         (fold_convert): Likewise.
8257         (size_int_type_wide): Make table larger and fix thinko that only
8258         had half of table used.
8259         (all_ones_mask_p, fold): Precisions are unsigned.
8260         * function.c (put_reg_info_stack): REGNO is unsigned.
8261         (instantiate_decl): Size is HOST_WIDE_INT.
8262         (instantiate_virtual_regs): I is unsigned.
8263         (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
8264         (promoted_input_arg): REGNO is unsigned.
8265         * function.h (struct function): x_max_parm_reg is now unsigned.
8266         * gcse.c (max_gcse_regno): Now unsigned.
8267         (struct null_pointer_info): min_reg and max_reg now unsigned.
8268         (lookup_set, next_set): REGNO arg now unsigned.
8269         (compute_hash_table): REGNO and I now unsigned.
8270         (handle_avail_expr): regnum_for_replacing now unsigned.
8271         (cprop_insn): REGNO now unsigned.
8272         (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
8273         * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
8274         * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
8275         * hard-reg-set.h (reg_class_size): Now unsigned.
8276         * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
8277         * jump.c (mark_modified_reg): I now unsigned; add cast.
8278         (rtx_equal_for_thread_p): Add cast.
8279         * loop.c (max_reg_before_loop): Now unsigned.
8280         (struct_movable): REGNO now unsigned.
8281         (try_copy_prop): REGNO arg unsigned.
8282         (regs_match_p): XN and YN now unsigned.
8283         (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
8284         (strength_reduce): Likewise; NREGS also unsigned.
8285         (first_increment_giv, last_increment_giv unsigned): Now unsigned.
8286         * loop.h (struct iv_class): REGNO now unsigned.
8287         (max_reg_before_loop, first_increment_giv, last_increment_giv):
8288         Now unsigned.
8289         * machmode.h (mode_size, mode_unit_size): Now unsigned.
8290         (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
8291         * optabs.c (expand_binop): I and NWORDS now unsigned.
8292         (expand_unop): I now unsigned.
8293         * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
8294         print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
8295         * real.c (significand_size): Now returns unsigned.
8296         * real.h (significand_size): Likewise.
8297         * regclass.c (reg_class_size): Now unsigned.
8298         (choose_hard_reg_mode): Both operands now unsigned.
8299         (record_reg_classes): REGNO and NR now unsigned.
8300         (reg_scan): NREGS now unsigned.
8301         (reg_scan_update): old_max_regno now unsigned.
8302         (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
8303         * reload.c (find_valid_class): BEST_SIZE now unsigned.
8304         (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
8305         (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
8306         Likewise for variable R.
8307         (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
8308         as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
8309         (find_equiv_reg): Add casts.
8310         (regno_clobbered_p): Arg REGNO now unsigned.
8311         * reload.h (struct reload): NREGS now unsigned.
8312         (refers_to_regno_for_reload_p): Regno args are unsigned.
8313         (regno_clobbered_p): Likewise.
8314         * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
8315         (compute_use_by_pseudos): REGNO now unsigned.
8316         (find_reg): I and J now unsigned, new variable K, and change loop
8317         variables accordingly; THIS_NREGS now unsigned.
8318         (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
8319         (spill_hard_reg): REGNO arg now unsigned; add casts.
8320         (forget_old_reloads_1): REGNO, NR, and I now unsigned.
8321         (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
8322         (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
8323         END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
8324         (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
8325         (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
8326         (emit_reload_insns): REGNO now unsigned.
8327         (reload_cse_move2add): Add cast.
8328         (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
8329         and rework loop.
8330         * resource.c (mark_referenced_resources, mark_set_resources): New
8331         variable R; REGNO and LAST_REGNO now unsigned.
8332         (mark_target_live_regs): J and REGNO now unsigned.
8333         * rtl.c (mode_size, mode_unit_size): Now unsigned.
8334         * rtl.h (union rtunion_def): New field rtuint.
8335         (XCUINT): New macro.
8336         (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
8337         (operand_subword, operand_subword_force): Word number is unsigned.
8338         (choose_hard_reg_mode): Operands are unsigned.
8339         (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
8340         (find_regno_note, find_regno_fusage, replace_regs): Likewise.
8341         (regno_use_in, combine_instructions, remove_death): Likewise.
8342         (reg_scan, reg_scan_update): Likewise.
8343         (extended_count): Return is unsigned.
8344         * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
8345         INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
8346         (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
8347         (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
8348         (reg_reg_last_1): FIRS and LAST now unsigned.
8349         (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
8350         (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
8351         now unsigned.
8352         (find_regno_note, regno_use_in): Arg REGNO now unsigned.
8353         (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
8354         (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
8355         (replace_regs): Arg NREGS now unsigned.
8356         * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
8357         * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
8358         (simplify_binary_operation): Likewise.
8359         (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
8360         THIS_LAST now unsigned.
8361         (cselib_record_set): Add cast.
8362         * ssa.c (ssa_max_reg_num): Now unsigned.
8363         (rename_block): REGNO now unsigned.
8364         * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
8365         sizes now unsigned.
8366         (all_cases_count): Just return -1 not -2.
8367         COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
8368         Rework tests to use trees whenever possible.
8369         Use host_integerp and tree_low_cst.
8370         (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
8371         Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
8372         (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
8373         * stor-layout.c (mode_for_size): SIZE arg now unsigned.
8374         (smallest_mode_for_size): Likewise.
8375         (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
8376         KNOWN_ALIGN is now an alignment, so simplify code.
8377         Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
8378         (start_record_layout): Renamed from new_record_layout_info.
8379         Update to new fields.
8380         (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
8381         New functions.
8382         (place_union_field): Renamed from layout_union_field.
8383         Update to use new fields in rli.
8384         (place_field): Renamed from layout_field.
8385         Major rewrite to use new fields in rli; pass alignment to layout_decl.
8386         (finalize_record_size): Rework to use new fields in rli and handle
8387         union.
8388         (compute_record_mode): Rework to simplify and to use new DECL fields.
8389         (finalize_type_size): Make rounding more consistent.
8390         (finish_union_layout): Deleted.
8391         (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
8392         (layout_type, case RECORD_TYPE): Call new function names.
8393         (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
8394         (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
8395         (get_best_mode): UNIT is now unsigned; remove casts.
8396         * tree.c (bit_position): Compute from new fields.
8397         (byte_position, int_byte_position): New functions.
8398         (print_type_hash_statistics): Cast to remove warning.
8399         (build_range_type): Use host_integerp and tree_low_cst to try to hash.
8400         (build_index_type): Likewise; make subtype of sizetype.
8401         (build_index_2_type): Pass sizetype to build_range_type.
8402         (build_common_tree_nodes): Use size_int and bitsize_int to
8403         initialize nodes; add bitsize_{zero,one,unit}_node.
8404         * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
8405         (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
8406         (DECL_PACKED, DECL_BIT_FIELD): Likewise.
8407         (DECL_FIELD_BITPOS): Deleted.
8408         (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
8409         (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
8410         (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
8411         (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
8412         (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
8413         (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
8414         (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
8415         (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
8416         (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
8417         (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
8418         (DECL_ALIGN): Adjust to new field in union.
8419         (DECL_OFFSET_ALIGN): New field.
8420         (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
8421         (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
8422         (union tree_decl): Add struct for both aligns.
8423         (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
8424         (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
8425         (struct record_layout_info): Rework fields to have offset
8426         alignment and byte and bit position.
8427         (start_record_layout, place_field): Renamed from old names.
8428         (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
8429         (byte_position, int_byte_position): Likewise.
8430         (get_inner_reference): Change types of position and length.
8431         * unroll.c (unroll_loop): New variable R; use for some loops.
8432         MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
8433         (calculate_giv_inc): Arg REGNO now unsigned.
8434         (copy_loop_body): REGNO and SRC_REGNO now unsigned.
8435         * varasm.c (assemble_variable): Clean up handling of size using
8436         host_integerp and tree_low_cst.
8437         (decode_addr_const): Use byte, not bit, position.
8438         (output_constructor): bitpos and offsets are HOST_WIDE_INT;
8439         use tree_low_cst and int_bit_position.
8440         * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
8441
8442 Fri Mar 24 20:13:49 2000  Jason Eckhardt  <jle@cygnus.com>
8443
8444         * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
8445         (reorder_block_def): New members eff_head and eff_end.
8446         (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
8447         (verify_insn_chain): New function.
8448         (skip_insns_between_block): Add code to skip deleted insns.
8449         Check for note before using.
8450         (chain_reorder_blocks): Replace calls to skip_insns_between_block
8451         with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
8452         Check for note before using.
8453         (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
8454         (fixup_reorder_chain): Restructure, clean up, defect removal.
8455         (reorder_basic_blocks): Remove last_insn and references to it.
8456         Moved insn chain verification code into a new function (see above).
8457         Delete defective code that sets last insn.
8458         Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
8459         all blocks.
8460
8461 2000-03-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8462
8463         * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
8464
8465 2000-03-24  Richard Henderson  <rth@cygnus.com>
8466
8467         * tree.c (lang_safe_for_unsave): Remove.
8468         (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
8469         allowing for two levels of unsafeness.  Remove lang hook.
8470         * tree.h: Update declarations.
8471         * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
8472         Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
8473         Always fail sibcalls when there are pending cleanups.
8474
8475 2000-03-24  Geoff Keating  <geoffk@cygnus.com>
8476
8477         * flow.c (propagate_block): When we delete an ADDR_VEC,
8478         also delete the BARRIER following it if there is one.
8479
8480 2000-03-24  Richard Henderson  <rth@cygnus.com>
8481
8482         * builtins.c (expand_builtin_bzero): Convert `length' argument
8483         to sizetype.
8484
8485 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
8486
8487         * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
8488         comparison if regno's are equal.
8489         * calls.c (initialize_argument_informat): Add ecf_flags argument.
8490         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
8491         (expand_call): Update caller.
8492         Avoid making a sibling call if argument size of the callee is larger
8493         than argument size of the caller.
8494         Call hard_function_value with outgoing set if in sibcall pass.
8495         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
8496
8497         * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
8498         Change LEAF_REGISTERS from an array initializer to actual array
8499         identifier. Move static global variable into the function.
8500         (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
8501         sequences for leaf functions.
8502         * global.c (global_alloc): Likewise.
8503         * tm.texi (LEAF_REGISTERS): Update documentation.
8504
8505         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
8506         TARGET_FLAT leaf disabling hack.
8507         (LEAF_REGISTERS): Changed from an array initializer to actual array
8508         identifier to avoid duplication and remove the above hack.
8509         (FUNCTION_OK_FOR_SIBCALL): Define.
8510         * config/sparc/sparc.md (sibcall): New attr type. Use it almost
8511         always like call attribute.
8512         (eligible_for_sibcall_delay): New attribute.
8513         (sibcall): New delay type.
8514         (sibcall, sibcall_value, sibcall_epilogue): New expands.
8515         (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
8516         sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
8517         * config/sparc/sparc.c (sparc_leaf_regs): New array.
8518         (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
8519         New functions.
8520         (output_function_epilogue): Move part of the code into
8521         output_restore_regs.
8522         (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
8523         TYPE_SIBCALL.
8524         * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
8525         prototypes.
8526
8527         * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
8528         until infrastructure is finished.
8529
8530 Fri Mar 24 13:49:45 2000  Jeffrey A Law  (law@cygnus.com)
8531
8532         * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
8533         (save_parm_insns): Not here.
8534
8535 2000-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8536
8537         * builtins.c (expand_builtin_bzero): New function.
8538         (expand_builtin): Handle bzero.
8539
8540         * builtins.def: Add BUILT_IN_BZERO.
8541
8542         * c-common.c (c_common_nodes_and_builtins): Provide builtin
8543         prototype & function for bzero.
8544
8545 2000-03-23  Michael Meissner  <meissner@redhat.com>
8546
8547         * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
8548         change adding TARGET_FP to the TF floating point insns, except for
8549         trunctfsf2, which generates direct calls to truncdfsf2.
8550
8551 2000-03-23  Geoff Keating  <geoffk@cygnus.com>
8552
8553         * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
8554         try to protect against middle-end changes that break binary
8555         compatibility.
8556         (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
8557
8558 2000-03-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8559
8560         * config/c4x/c4x.md (load_immed_address):  Add DP reg clobber.
8561
8562 Thu Mar 23 17:10:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8563
8564         * calls.c (expand_call): If TARGET is passed by reference and
8565         is readonly, write a CLOBBER.
8566
8567 2000-03-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8568
8569         * builtins.c (expand_builtin): Handle bcmp.
8570
8571         * builtins.def: Add BUILT_IN_BCMP.
8572
8573         * c-common.c (c_common_nodes_and_builtins): Provide builtin
8574         prototype & function for bcmp.
8575
8576 Thu Mar 23 11:34:39 2000  Jim Wilson  <wilson@cygnus.com>
8577
8578         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
8579         (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
8580         * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
8581
8582 Thu Mar 23 16:04:40 2000  Andrew Haley  <aph@cygnus.com>
8583
8584         * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
8585         alternative when using -fp64 -gp32.
8586
8587 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
8588
8589         * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
8590         * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
8591         * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
8592
8593         * frame.h (frame_state): Revert last change.
8594         * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
8595         * libgcc2.c (throw_helper): Revert last change.
8596
8597 2000-03-22  Richard Henderson  <rth@cygnus.com>
8598
8599         * stmt.c (expand_asm_operands): Don't promote the temporary.
8600
8601 2000-03-22  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8602
8603         * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
8604         * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
8605           c_get_alias_set): Likewise.
8606         * c-decl.c (duplicate_decls): Likewise.
8607         * c-typeck.c (default_conversion,build_unary_op): Likewise.
8608         * calls.c (initialize_argument_information): Likewise.
8609         * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
8610         Likewise.
8611         * dwarfout.c (decl_class_context,output_type): Likewise.
8612         * expr.c (get_inner_reference): Likewise.
8613         * fold-const.c (simple_operand_p,fold): Likewise.
8614         * function.c (aggregate_value_p): Likewise.
8615         * stmt.c (expand_asm_operands): Likewise.
8616         * varasm.c (named_section): Likewise.
8617
8618 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
8619
8620         Implement dwarf2 exception handling for the ARM.
8621         * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
8622         (DWARF_FRAME_RETURN_COLUMN): Define.
8623         * config/arm/arm.c (emit_multi_reg_push): Return rtx.  Attach
8624         REG_FRAME_RELATED_EXPR note.
8625         (emit_sfm): Likewise.
8626         (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
8627         * dwarf2out.c (reg_save): Handle saving a register to itself.
8628         (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
8629         * except.c (eh_regs): Don't use the static chain reg if it's
8630         callee-saved.
8631         * frame.h (frame_state): Add cfa_saved field.
8632         * frame.c (execute_cfa_insn): Set it.
8633         * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
8634         the epilogue.
8635         * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
8636         Now takes a parm.
8637         (instantiate_virtual_regs): Adjust.
8638         * tm.texi: Adjust.
8639         * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
8640         * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
8641         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
8642
8643         * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
8644         (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
8645
8646 2000-03-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8647
8648         * builtins.def: New file.
8649
8650         * Makefile.in (TREE_H): Depend on builtins.def.
8651
8652         * builtins.c (built_in_names): Use builtins.def.
8653
8654         * tree.h (built_in_function): Likewise.
8655
8656 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
8657
8658         * tree.c (size_in_bytes): Return size_zero_node, not
8659         integer_zero_node.
8660
8661 2000-03-22  Geoff Keating  <geoffk@cygnus.com>
8662
8663         * config/fp-bit.c (pack_d): Correct the case when a denormal
8664         is rounded up and stops being denormal.
8665
8666 2000-03-21  Richard Henderson  <rth@cygnus.com>
8667
8668         * config/alpha/alpha.c (function_arg): Check for void_type_node
8669         before using MUST_PASS_IN_STACK.
8670
8671 2000-03-21  Stephane Carrez  <stcarrez@worldnet.fr>
8672
8673         * regmove.c (combine_stack_adjustments_for_block): Check that
8674         the stack pointer is a valid memory address.
8675
8676 Wed Mar 22 11:44:50 MET 2000  Jan Hubicka  <jh@suse.cz>
8677
8678         * calls.c: re-install Mar 16 emit_library_call merge.
8679
8680 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
8681
8682         * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
8683         we cannot be sure that if reload_completed base register will
8684         be properly aligned.
8685
8686 2000-03-21  Richard Henderson  <rth@cygnus.com>
8687
8688         * flow.c (delete_block): Fix typo last change.
8689
8690 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
8691
8692         * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
8693         not COMPLETE_TYPE_P, to check the type of the expression.
8694
8695 2000-03-21  Michael Meissner  <meissner@redhat.com>
8696
8697         * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
8698         all floating point insns that just tested the macro
8699         TARGET_HAS_XFLOATING_LIBS.
8700         (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
8701         used to only use the gprs.
8702
8703 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
8704
8705         * tree.h (COMPLETE_TYPE_P): New macro.
8706         (COMPLETE_OR_VOID_TYPE_P): New macro.
8707         (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
8708         * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
8709         * c-aux-info.c (gen_type): Use them.
8710         * c-common.c (c_expand_expr_stmt): Likewise.
8711         * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
8712         grokdeclarator, grokparms, finish_struct, start_function,
8713         store_parm_decls, combine_parm_decls): Likewise.
8714         * c-parse.y (cast_expr): Likewise.
8715         * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
8716         c_size_in_bytes, c_alignof, build_component_ref,
8717         build_indirect_ref, build_array_ref, convert_arguments,
8718         build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
8719         * calls.c (initialize_argument_information): Likewise.
8720         * convert.c (convert_to_integer): Likewise.
8721         * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
8722         * dwarfout.c (location_or_const_value_attribute,
8723         output_enumeration_type_die, output_structure_type_die,
8724         output_union_type_die, output_type): Likewise.
8725         * expr.c (safe_from_p, expand_expr): Likewise.
8726         * function.c (assign_parms): Likewise.
8727         * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
8728         * tree.c (build_array_type, build_function_type,
8729         build_method_type, build_offset_type, build_complex_type): Likewise.
8730         * c-parse.c, c-parse.h: Regenerated.
8731
8732 2000-03-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8733
8734         * config/c4x/rtems.h: Include config/rtems.h.
8735
8736 Tue Mar 21 09:24:00 2000  Denis Chertykov  <denisc@overta.ru>
8737
8738         * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
8739         decl is a FUNCTION_DECL
8740
8741 Mon Mar 20 19:53:53 2000  Jim Wilson  <wilson@cygnus.com>
8742
8743         * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
8744         function uses output registers.  Don't save RP for leaf functions.
8745         Do save RP even if no epilogue.
8746         * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
8747         (CALL_USED_REGISTERS): Unmark in registers.
8748         (REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
8749         to near the middle.
8750
8751 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
8752
8753         * config/rs6000/rs6000.md (bunordered): New expander.
8754         (bordered): New expander.
8755         (buneq): New expander.
8756         (bunge): New expander.
8757         (bungt): New expander.
8758         (bunle): New expander.
8759         (bunlt): New expander.
8760         (bltgt): New expander.
8761
8762         * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
8763         (ccr_bit_negated_p): New function.
8764         (print_operand): For %C, generate appropriate cror for UNEQ,
8765         UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.
8766
8767 2000-03-20  Andreas Jaeger  <aj@suse.de>
8768
8769         * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
8770         warning.
8771
8772         * tree.h (safe_for_unsave): Prototype.
8773
8774 2000-03-20  Richard Henderson  <rth@cygnus.com>
8775
8776         * regmove.c (stack_memref_p): Fix typo, reorg for readability.
8777         (combine_stack_adjustments_for_block): Don't allow sp references
8778         in the side of a set we're not fixing up.
8779         * toplev.c (rest_of_compilation): Run combine_stack_adjustments
8780         after life_analysis.
8781
8782 2000-03-20  Richard Henderson  <rth@cygnus.com>
8783
8784         * calls.c (expand_call): Don't bother generating tail call
8785         sequences if there are pending cleanups.  Use
8786         expand_start_target_temps/expand_end_target_temps to elide
8787         cleanups created during sibcall expansion.
8788
8789 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
8790
8791         * configure.in: Set $IFS to a value if it doesn't already have one
8792         in the --enable-checking handling.
8793         * configure: Regenerate.
8794
8795 2000-03-20  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8796
8797         * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
8798         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
8799         Regenerated.
8800
8801 Mon Mar 20 11:43:15 MET 2000  Jan Hubicka  <jh@suse.cz>
8802
8803         * jump.c (delete_noop_moves): Remove code attempting to
8804         combine stack adjustments.
8805
8806 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8807
8808         * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
8809         * except.c (emit_cleanup_handler): Use them.
8810         (expand_end_all_catch): Likewise.
8811         * function.c (fixup_var_refs): Likewise.
8812         (expand_function_end): Clear catch_clauses_last.
8813         * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
8814         * except.h (struct eh_status): New field x_catch_clauses_last.
8815         (catch_clauses_last): New define.
8816
8817         * Makefile.in (tree.o): Depend on HASHTAB_H.
8818         * tree.c: Include hashtab.h.
8819         (struct type_hash): Remove next field.
8820         (TYPE_HASH_SIZE): Remove.
8821         (TYPE_HASH_INITIAL_SIZE): New define.
8822         (type_hash_table): Change type to htab_t.
8823         (type_hash_eq, type_hash_hash, print_type_hash_statistics,
8824         mark_hash_entry): New functions.
8825         (init_obstacks): Allocate type hash.
8826         (type_hash_lookup): Use htab functions.
8827         (type_hash_add, mark_type_hash): Likewise.
8828         (dump_tree_statistics): Call print_type_hash_statistics.
8829
8830 2000-03-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8831
8832         * rs6000/t-aix41: New file.
8833
8834         * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
8835
8836 Sun Mar 19 13:27:30 2000  Hans-Peter Nilsson  <hp@axis.com>
8837
8838         * tm.texi (Driver): Fix typos and tweak entry for
8839         INCLUDE_DEFAULTS.
8840         Move misplaced STRUCT_FORCE_BLK entry ...
8841         (Storage Layout): ... to here.
8842         (Run-time Target): Recommend having TARGET_MASK_... helper macros.
8843
8844 2000-03-19  Richard Henderson  <rth@cygnus.com>
8845
8846         * flow.c (delete_block): Delete the addr_vec along with the block.
8847         (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
8848         reference labels.
8849
8850         * fold-const.c (extract_muldiv): Apply type check for defined
8851         overflow to multiply as well as divide.
8852
8853         * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
8854
8855 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
8856
8857         * emit-rtl.c (remove_unncessary_notes): Check that all
8858         NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
8859         associated NOTE_BLOCK.
8860         * function.h (identify_blocks): Update comments.
8861         (reorder_blocks): Declare.
8862         * function.c (identify_blocks): Don't take paramters.
8863         (reorder_blocks): Don't take parameters.
8864         * loop.h (find_loop_tree_blocks): Remove.
8865         (unroll_block_trees): Likewise.
8866         * loop.c (loop_optimize): Don't call find_loop_tree_blocks.  Use
8867         reorder_blocks instead of unroll_block_trees.h
8868         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
8869         * stmt.c (find_loop_tree_blocks): Remove.
8870         (unroll_block_trees): Likewise.
8871         * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
8872         in whole-function mode.
8873         * tree.h (reorder_blocks): Remove declaration.
8874
8875         * expr.c: Include intl.h.
8876         * Makefile.in (expr.o): Depend on intl.h.
8877
8878 2000-03-18  Richard Henderson  <rth@cygnus.com>
8879
8880         * expr.c (emit_move_insn_1): Clarify cannot_inline message.
8881
8882 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
8883
8884         * tree.h (tree_index): Remove enumerals for integer types.
8885         (integer_type_kind): New type.
8886         (integer_types): New variable.
8887         (char_type_node): Adjust.
8888         (signed_char_type_node): Likewise.
8889         (unsigned_char_type_node): Likewise.
8890         (short_integer_type_node): Likewise.
8891         (short_unsigned_type_node): Likewise.
8892         (integer_type_node): Likewise.
8893         (unsigned_type_node): Likewise.
8894         (long_integer_type_node): Likewise.
8895         (long_unsigned_type_node): Likewise.
8896         (long_long_integer_type_node): Likewise.
8897         (long_long_unsigned_type_node): Likewise.
8898         * tree.c (integer_types): New variable.
8899         (init_obstacks): Register it as a root.
8900
8901 Sat Mar 18 14:38:00 2000  Jason Eckhardt  <jle@cygnus.com>
8902
8903         * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
8904         NEXT_INSN. Update last insn in chain.
8905
8906 2000-03-17  Jason Merrill  <jason@casey.cygnus.com>
8907
8908         * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
8909         with TYPE_DECL_SUPPRESS_DEBUG set.
8910
8911 2000-03-18  Richard Henderson  <rth@cygnus.com>
8912
8913         * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
8914
8915 2000-03-18  Richard Henderson  <rth@cygnus.com>
8916
8917         * i386.c (call_insn_operand): Always allow SYMBOL_REF,
8918         care for HALF_PIC_P.
8919         (expander_call_insn_operand): Remove.
8920         (ix86_expand_epilogue): New arg `emit_return' to control return insn.
8921         * i386.h (PREDICATE_CODES): Update.
8922         * i386.md (all call expanders): Remove predicates, remove special
8923         handling for half-pic.
8924         (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
8925         (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
8926         (sibcall_epilogue): New.
8927
8928 2000-03-17  Richard Henderson  <rth@cygnus.com>
8929
8930         * rtlanal.c (single_set): Reject if the parallel has anything
8931         except SET or USE or CLOBBER.
8932
8933 2000-03-17  Jeff Law  <law@cygnus.com>
8934             Richard Henderson  <rth@cygnus.com>
8935
8936         * Makefile.in (OBJS): Add sibcall.o.
8937         (sibcall.o): New.
8938         * sibcall.c: New file.
8939         * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
8940         (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
8941         (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
8942         Emit sibcall patterns when requested.  Update all callers.
8943         (expand_call): Generate CALL_PLACEHOLDER insns when tail call
8944         elimination seems feasable.
8945         * final.c (leaf_function_p): Sibling calls don't discount being
8946         a leaf function.
8947         * flow.c (HAVE_sibcall_epilogue): Provide default.
8948         (find_basic_blocks_1): Sibling calls don't throw.
8949         (make_edges): Make edge from sibling call to EXIT.
8950         (propagate_block): Don't remove sibcall_epilogue insns.
8951         * function.c (prologue, epilogue): Turn into varrays.  Update all uses.
8952         (sibcall_epilogue): New.
8953         (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
8954         (identify_blocks_1): Likewise.  Break out from ...
8955         (identify_blocks): ... here.
8956         (reorder_blocks_1): Scan CALL_PLACEHOLDER.  Break out from ...
8957         (reorder_blocks): ... here.
8958         (init_function_for_compilation): Zap prologue/epilogue as varrays.
8959         (record_insns): Extend a varray instead of mallocing new memory.
8960         (contains): Read a varray not array of ints.
8961         (sibcall_epilogue_contains): New.
8962         (thread_prologue_and_epilogue_insns): Emit and record
8963         sibcall_epilogue patterns.
8964         (init_function_once): Allocate prologue/epilogue varrays.
8965         * genflags.c (gen_insn): Treat sibcall patterns as calls.
8966         * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
8967         Broken out from ...
8968         (save_for_inline_nocopy): ... here.
8969         (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
8970         Broken out from ...
8971         (expand_inline_function): ... here.
8972         (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
8973         (subst_constants): Handle 'n' formats.
8974         * jump.c (jump_optimize_minimal): New.
8975         (jump_optimize_1): New arg `minimal'; update callers.  Elide most
8976         optimizations if it's set.
8977         * rtl.c (copy_rtx): Do copy jump & call for insns.
8978         * rtl.h (struct rtx_def): Document use of jump and call for insns.
8979         (SIBLING_CALL_P): New.
8980         (sibcall_use_t): New.
8981         * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
8982         Invoke optimize_sibling_and_tail_recursive_calls.
8983         * tree.c (lang_safe_for_unsave): New.
8984         (safe_for_unsave): New.
8985         * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
8986
8987         * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
8988         * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
8989         (*sibcall_osf_1, *sibcall_value_osf_1): New.
8990
8991 2000-03-17  Mark Mitchell  <mark@codesourcery.com>
8992
8993         * objc/objc-act.c (encode_method_prototype): Pass types, not
8994         PARM_DECLs, to int_size_in_bytes.
8995
8996 Fri Mar 17 11:51:34 2000  Jim Wilson  <wilson@cygnus.com>
8997
8998         * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
8999
9000         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9001         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
9002
9003 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9004
9005         * Clean up usages of TREE_INT_CST_LOW.
9006         * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
9007         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
9008         Regenerated.
9009         * c-tree.h (min_precision): Move declaration to here.
9010         * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
9011         (build_unary_op, add_pending_init): Use bit_position.
9012         (pending_init_member, process_init_element): Likewise.
9013         (really_start_incremental_init, push_init_level, pop_init_level):
9014         Don't make copies of nodes or modify them in place, use consistent
9015         types when tracking positions, and use tree routines computations.
9016         (set_init_index, output_init_element): Likewise.
9017         (output_pending_init_elements, process_init_element): Likewise.
9018         * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
9019         tree_low_cst and int_bit_position; also minor cleanup.
9020         (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
9021         (print_cst_octal): Precision is unsigned.
9022         (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
9023         * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
9024         (simple_type_align_in_bits): Result is unsigned int.
9025         Use tree_int_low_cst and host_integerp.
9026         (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
9027         (field_byte_offset): Result is HOST_WIDE_INT.
9028         Change types of internal variables so alignments are unsigned int,
9029         offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
9030         Use host_integerp, tree_low_cst, and int_bit_position.
9031         (add_bit_offset_attribute): Likewise.
9032         (add_data_member_location_attribute): Use tree_cst_low.
9033         (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
9034         (add_bit_size_attribute): Use tree_low_cst.
9035         (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
9036         * dwarfout.c: Similar changes to dwarf2out.c.
9037         * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
9038         * genoutput.c (n_occurences): Return -1 for null string.
9039         (strip_whitespace): Accept null string and make into function.
9040         (scan_operands): Reflect above changes.
9041         * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
9042         (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
9043         * ssa.c (rename_registers): Add missing cast of arg to bzero.
9044         * tree.c (int_size_in_bytes): Check for too big to represent.
9045         (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
9046         * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
9047         New declarations.
9048         (min_precision): Delete from here.
9049         * varasm.c (decode_addr_const): Use host_integerp, bit_position,
9050         and int_bit_position.
9051         * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
9052         (encode_method_def): Likewise.
9053         (build_ivar_list_initializer): Use int_bit_position.
9054         (generate_shared_structures): Convert size.
9055         (encode_type, encode_complete_bitfield): Use integer_zerop.
9056         (encode_bitfield): Use tree_low_cst and int_bit_position.
9057
9058 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9059
9060         * config/c4x/c4x.h (CPP_SPEC): Fix typo.
9061
9062 2000-03-17  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9063
9064         * call.c (special_function_p): It is only malloc if it returns
9065         Pmode.
9066
9067 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9068
9069         * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
9070         (C33_FLAG, TARGET_C3X): Add macros.
9071         (TARGET_SWITCHES): Add -m33 option.
9072         * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
9073
9074 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9075
9076         * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
9077         (PARALLEL_PACK_FLAG): Delete.
9078         (TARGET_SWITCHES): Update.
9079         (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
9080
9081 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9082
9083         * fold-const.c (fold): Fix a few cases when the returned result
9084         is not of the same type as the input.
9085
9086 2000-03-16  Nick Clifton  <nickc@cygnus.com>
9087
9088         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
9089         warning.
9090
9091 2000-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9092
9093         * libgcc2.h: Move prototypes above macros with the same name.
9094         Wrap some function prototypes in the conditional which indicates
9095         whether they are supported, i.e. "BITS_PER_UNIT == 8".
9096
9097 2000-03-16  Richard Henderson  <rth@cygnus.com>
9098
9099         * calls.c: Revert last two changes.
9100
9101 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
9102
9103         * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
9104         has exponent 0 is a zero.
9105
9106         * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
9107         HASH may already be nonzero.  Add code/mode into hash value
9108         immediately after repeat label.
9109         (cselib_lookup): Don't leave the hash table in an inconsistent
9110         state before a hash lookup operation.
9111
9112 Thu Mar 16 17:03:10 MET 2000  Jan Hubicka  <jh@suse.cz>
9113
9114         * i386.md (all HI and QI mode non-move patterns):  Conditionize
9115         by TARGET_[HQ]IMODE_MATH.
9116         * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
9117         x86_promote_qi_regs): Declare.
9118         (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
9119         TARGET_PROMOTE_QI_REGS): New macros.
9120         (PROMOTE_MODE): New macro.
9121         * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
9122         x86_promote_qi_regs): New global variables.
9123
9124 Thu Mar 16 16:50:44 MET 2000  Jan Hubicka  <jh@suse.cz>
9125
9126         * calls.c (emit_library_call_value_1): Break out from ...; handle
9127         VOIDmode function calls too.
9128         (emit_library_call_value): ... here.
9129         (emit_library_call): Implement by calling emit_library_call_value_1.
9130
9131 Thu Mar 16 16:01:30 MET 2000  Jan Hubicka  <jh@suse.cz>
9132
9133         * calls.c (expand_call): Do sanity checking on arg_space_so_far.
9134         Update arg_space_so_far on stack adjustments.
9135         (emit_library_call, emit_library_call_value): Likewise; take into
9136         account arg_space_so_far and pending_stack_adjust when calculcating
9137         the boundary.
9138
9139 Thu Mar 16 09:02:19 2000  Jason Eckhardt  <jle@cygnus.com>
9140
9141         * flow.c: Move all basic block reordering code into its own file.
9142         (create_basic_block): Externalize.
9143         * bb-reorder.c: New file. Copy all basic block reordering code from
9144         flow.c to this file.
9145         (reorder_basic_blocks): Fix fencepost error in for-loop.
9146         (reorder_basic_blocks): Remove braces from single statement for-loops.
9147         * basic-block.h: Add declaration for create_basic_block.
9148         * Makefile.in: Add rules for bb-reorder.o.
9149
9150 2000-03-16  Neil Booth  <NeilB@earthling.net>
9151
9152         * cppinit.c (handle_option):  Implement #unassert directive
9153         as -A- command line option.
9154         (print_help):  Update.
9155         * cpptexi.c:  Update.
9156
9157 Thu Mar 16 02:14:16 2000  Hans-Peter Nilsson  <hp@bitrange.com>
9158
9159         * md.texi (Standard Names): Document `jump'.
9160
9161 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
9162
9163         * calls.c (emit_call_1): Nothrow functions can still have nonlocal
9164         gotos.
9165
9166 2000-03-15  Geoff Keating  <geoffk@cygnus.com>
9167
9168         Merge changes from newppc-branch onto trunk.
9169
9170         2000-03-15  Geoff Keating  <geoffk@cygnus.com>
9171
9172         * rs6000.c (toc_hash_table): Update for new hash table functions.
9173         (toc_hash_function): Likewise.
9174         (toc_hash_eq): Likewise.
9175         (toc_hash_mark_entry): Likewise.
9176         (toc_hash_mark_table): Likewise.
9177         (output_toc): Likewise.
9178         (rs6000_add_gc_roots): Likewise.
9179
9180         2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9181
9182         * t-aix43 (AR_FOR_TARGET): Deleted.  Moved `-X32_64'...
9183         (AR_FLAGS_FOR_TARGET): here.  New macro.
9184
9185         2000-03-05  Clinton Popetz  <cpopetz@cygnus.com>
9186
9187         * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
9188         fpmem_operand) Delete.
9189         (xer_operand) New.
9190         (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
9191         (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
9192         (rs6000_save_machine_status, rs6000_restore_machine_status,
9193         rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
9194         references to above variables.
9195         (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
9196         * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
9197         DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
9198         (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
9199         (XER_REGNO_P, XER_REGNO): New.
9200         (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
9201         (PREDICATE_CODES): Change fpmem_operand to xer_operand.
9202         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
9203         XER_REGNO_P.
9204         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
9205         REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS,         and remove FLOAT_OR_FPMEM_REGS.
9206         (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
9207
9208         2000-02-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9209
9210         * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
9211         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
9212         * rs6000.h: from here.
9213
9214         * rs6000-protos.h (rs6000_select_section): Provide prototype.
9215         (rs6000_select_rtx_section): Likewise.
9216         (rs6000_encode_section_info): Likewise.
9217         (sdata_section): Likewise.
9218         (sdata2_section): Likewise.
9219         (sbss_section): Likewise.
9220         * sysv4.h (rs6000_select_section): Delete prototype.
9221         (rs6000_select_rtx_section): Likewise.
9222         (rs6000_encode_section_info): Likewise.
9223         (sdata_section): Likewise.
9224         (sdata2_section): Likewise.
9225         (sbss_section): Likewise.
9226         (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
9227
9228         * sysv4.h: Delete various unnecessary #undef's and put a comment
9229         on the remaining ones.
9230         Change various comments according to coding standard.
9231
9232         2000-02-29  Clinton Popetz  <cpopetz@cygnus.com>
9233
9234         * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
9235         CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
9236         (CR0_REGNO_P) Remove.
9237         * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
9238         setup_incoming_varargs, mtcrf_operation, print_operand,
9239         rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
9240         Use the above macros.
9241
9242         2000-02-24  Clinton Popetz  <cpopetz@cygnus.com>
9243
9244         * config/rs6000/rs6000.md: Added a new alternative for each
9245         pattern that had a 'x' alternative but no 'y' alternative.
9246         Added a new split for each of the above patterns.
9247
9248         2000-02-18  Geoff Keating  <geoffk@cygnus.com>
9249
9250         * aix41.h (ASM_CPU_SPEC): Delete.
9251         (CPP_CPU_SPEC): Delete.
9252
9253         * aix.h (RS6000_OUTPUT_BASENAME): Define.
9254         (ASM_OUTPUT_LABEL): Define.
9255         (ASM_GLOBALIZE_LABEL): Define.
9256         (STRIP_NAME_ENCODING): Define.
9257         * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
9258         (STRIP_NAME_ENCODING): Don't define.
9259         (ASM_OUTPUT_LABEL): Don't define.
9260         (ASM_GLOBALIZE_LABEL): Don't define.
9261         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
9262         names, and ASM_OUTPUT_LABEL to output labels, rather than
9263         asm_fprintf.
9264         (ASM_OUTPUT_LABEL): Define.
9265         (ASM_OUTPUT_INT): Use assemble_name.
9266         (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
9267         (STRIP_NAME_ENCODING): Don't undefine first.
9268         (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
9269         ELF.
9270         (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
9271         specified with 'asm' even with -fleading-underscore.
9272         * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
9273         (output_epilog): Likewise.
9274         (output_toc): Likewise.
9275         * tramp.asm: Handle -fleading-underscore correctly.
9276
9277         * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
9278         -mminimal-toc.
9279         (nonlocal_goto_receiver): Delete.
9280         * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
9281
9282         * rs6000.h (ASM_OUTPUT_DEF): Don't define.
9283         (SET_ASM_OP): Define.
9284         * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
9285
9286         * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
9287         (ASM_LONG): Define.
9288
9289         * rs6000.c (rs6000_dll_import_ref): Delete, not used.
9290         * rs6000-protos.h (rs6000_dll_import_ref): Delete.
9291
9292         * rs6000.h: Add 'u' to more constants.
9293
9294         2000-02-18  David Edelsohn  <edelsohn@gnu.org>
9295
9296         * rs6000.md (mfcr+shift): Delete PowerPC64 version.
9297
9298         2000-02-15  David Edelsohn  <edelsohn@gnu.org>
9299
9300         * rs6000.c (reg_or_u_cint_operand): New function.
9301         (logical_operand): Handle 64-bit hosts.
9302         (logical_u_operand): New function.
9303         (non_logical_cint_operand): Handle 64-bit hosts.
9304         (non_logical_u_cint_operand): New function.
9305         * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
9306         (PREDICATE_CODES): Define new functions.
9307         * rs6000-protos.h: Declare new functions.
9308         * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
9309         (movdi_64): Bracket code intended for 64-bit hosts.  Create
9310         CONST_DOUBLE for 32-bit values.
9311         (scc insns): Generate DImode compares.
9312         (mfcr insns): Create DImode versions.
9313         (sge matchers): New patterns.
9314
9315         2000-02-15  Gabriel Paubert  <paubert@iram.es>
9316
9317         * rs6000.md: Correct instructions length attributes and
9318         constraints on unsigned compare instructions.
9319         (*ne0): Disable for PowerPC64.
9320
9321         2000-02-11  Geoff Keating  <geoffk@cygnus.com>
9322
9323         * rs6000.c (output_function_profiler): Use .long for a 32-bit
9324         quantity, fix profile1.C test failure under -fPIC.
9325
9326         * rs6000.c: Add 'u' to many constants to suppress warnings.
9327         (constant_pool_expr_1): Make static.
9328         (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
9329         * rs6000.h: Add 'u' to many constants to suppress warnings.
9330
9331         * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
9332         for the start of the TOC, instead of LCTOC..0.
9333         * aix.h (toc_section): Use LCTOC..1 under AIX for the start
9334         of the TOC.
9335         * rs6000.md (load_toc_aix_si): Use LCTOC..1.
9336         (load_toc_aix_di): Use LCTOC..1.
9337
9338         * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
9339         * rs6000.c (rs6000_legitimize_address): New function from
9340         LEGITIMIZE_ADDRESS.  Only use create_TOC_reference on
9341         symbols in the constant pool that really are TOC references.
9342         (print_operand_address): For ELF, write TOC offsets under
9343         -fPIC as subtractions in the insn.
9344         (output_toc): For ELF, define symbols in TOC as normal labels,
9345         to match RTL.
9346         (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
9347         * rs6000-protos.h (rs6000_legitimize_address): Prototype.
9348         (create_TOC_reference): Prototype only when RTX_CODE is defined.
9349         * rs6000.md (movsi): Only use create_TOC_reference on
9350         symbols in the constant pool that really are TOC references.
9351
9352         * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
9353         * rs6000.c (rs6000_reorg): Delete.
9354         * rs6000-protos.h (rs6000_reorg): Delete.
9355
9356         2000-02-09  Geoff Keating  <geoffk@cygnus.com>
9357
9358         * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
9359
9360         * aix.h (SETUP_FRAME_ADDRESSES): Define.
9361         * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
9362         [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
9363         [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
9364         * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
9365         rs6000_aix_emit_builtin_unwind_init.
9366         * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
9367         rs6000_emit_eh_toc_restore on AIX.
9368         (return_eh_si): Use r2.
9369         (return_eh_di): Use r2.
9370
9371         * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
9372         since we're breaking binary compatibility anyway.
9373
9374         2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
9375
9376         * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
9377         constant_pool_expr_p): Declare them.
9378         (constant_pool_expr_p): Declare it.
9379         * config/rs6000/rs6000.c (toc_label_name): Define.
9380         (rs6000_override_options): Set toc_label_name.
9381         (input_operand): Allow any TOC_RELATIVE_EXPR_P.
9382         (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
9383         uses_TOC): New functions.
9384         (print_operand): Delete old '*' case.
9385         (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9386         and strip off rtl for TOC before calling output_addr_const.
9387         (rs6000_emit_load_toc_table): Use toc_label_name.
9388         * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
9389         the default.
9390         (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
9391         (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
9392         (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
9393         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
9394         into explicit TOC_REGISTER offsets.
9395         (TOC_REGISTER): New macro.
9396         * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
9397         TARGET_TOC to reference TOC_REGISTER.
9398         (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
9399         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
9400         uses_TOC before emitting label references.
9401
9402         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
9403
9404         * rs6000.md (stack_tie): Fix warning.
9405
9406         * eabi-ctors.c: Use 'asm' names for the start/end variables,
9407         to handle -fleading-underscore.
9408         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
9409         (USER_LABEL_PREFIX): New macro.
9410         (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
9411         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
9412         * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
9413         call-linux can use the same multilibs.
9414         * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
9415         and call-linux multilibs.  Do multilib with -fleading-underscore.
9416         (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
9417         (MULTILIB_EXCEPTIONS): Remove call-linux exceptions.  Add restrictions
9418         to call-aix.
9419
9420         * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
9421         have MASK_SOFT_FLOAT set.
9422         (CPP_FLOAT_DEFAULT_SPEC): New macro.
9423         (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
9424         CPP_FLOAT_DEFAULT_SPEC.
9425
9426         * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
9427         * rs6000.md: Whitespace change.
9428         * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
9429         * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
9430
9431         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
9432
9433         * rs6000.md (eh_epilogue): New expander.
9434         (eh_reg_restore): New expand/split/insn combination.
9435         (return_eh_si): New insn.
9436         (return_eh_di): New insn.
9437
9438         * eabi-ci.asm: Put a label at the start of the .eh_frame section.
9439         * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
9440         * eabi-ctors.c (__do_global_ctors): Register this object's
9441         frame.  Clean up.  Call atexit() after the constructors.
9442         (__do_global_dtors): Deregister this object's frame.  Clean up.
9443         Allow for recursive calls to exit().
9444         * rs6000.c (fixuplabelno): New variable.
9445         * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
9446         TARGET_RELOCATABLE, it slows down exec() under linux.
9447         (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
9448
9449         * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
9450         (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
9451         (ASM_OUTPUT_DWARF_DELTA2): New macro.
9452         (ASM_OUTPUT_DWARF_DELTA4): New macro.
9453         (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
9454         (ASM_OUTPUT_DWARF_ADDR): New macro.
9455         (ASM_OUTPUT_DWARF_DATA4): New macro.
9456         (ASM_OUTPUT_DWARF_DATA2): New macro.
9457         (ASM_OUTPUT_DWARF_OFFSET4): New macro.
9458         (ASM_OUTPUT_DWARF_OFFSET): New macro.
9459         (UNALIGNED_INT_ASM_OP): New macro, fake definition.
9460
9461         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
9462
9463         * rs6000.c (rs6000_sr_alias_set): New variable.
9464         (rs6000_override_options): Initialise rs6000_sr_alias_set.
9465         (rs6000_emit_stack_tie): New function.
9466         (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
9467         in a way that dwarf2out can understand.
9468         (rs6000_frame_related): New function.
9469         (rs6000_emit_prologue): Use rs6000_sr_alias_set.  Specify
9470         RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
9471         Use rs6000_emit_stack_tie when needed.
9472         (rs6000_emit_epilogue): Use rs6000_sr_alias_set.  Don't set
9473         RTX_FRAME_RELATED_P.  Use rs6000_emit_stack_tie when needed.
9474         * rs6000.md (stack_tie): New insn.
9475         (return_internal_si): Allow return value to be in the count
9476         register.
9477         (return_internal_di): Likewise.
9478
9479         * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
9480
9481         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
9482
9483         * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
9484
9485         2000-01-31  Geoff Keating  <geoffk@cygnus.com>
9486
9487         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
9488
9489         * rs6000.md (stmw): Use the right POWER opcode.
9490         (lmw): Likewise.
9491
9492         2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9493
9494         * rs6000-protos.h: New file.
9495
9496         * rs6000.c: Include tm_p.h.  Fix compile time warnings.
9497
9498         * rs6000.h: Move prototypes to rs6000-protos.h.  Fix compile time
9499         warnings.
9500
9501         * sysv4.h: Likewise.
9502
9503         2000-01-28  Geoff Keating  <geoffk@cygnus.com>
9504
9505         * ../../configure.in: Delete powerpcle-*-winnt*
9506         and powerpcle-*-pe|powerpcle-*-cygwin*.
9507         * ../../configure: Regenerated.
9508         * cygwin.h: Delete.
9509         * rs6000.h (OBJECT_WINDOWS_NT): Delete.
9510         (TARGET_WINDOWS_NT): Delete.
9511         (ABI_NT): Delete.
9512         (CALL_NT_DLLIMPORT): Delete.
9513         Delete NT-specific code.
9514         * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
9515         * win-nt.h: Delete.
9516         * t-winnt: Delete.
9517         * nt-ci.asm: Delete.
9518         * nt-cn.asm: Delete.
9519         * ntstack.asm: Delete.
9520
9521         2000-01-27  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9522
9523         * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
9524         (ASM_FILE_START): Likewise.
9525         (ASM_DECLARE_FUNCTION_NAME): Likewise.
9526         (ASM_OUTPUT_LABELREF): Likewise.
9527         (ASM_OUTPUT_SKIP): Likewise.
9528         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
9529         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9530         (ASM_OUTPUT_CASE_LABEL): Likewise.
9531         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9532         (ASM_OUTPUT_ASCII): Likewise.
9533
9534         2000-01-27  Clinton Popetz  <cpopetz@cygnus.com>
9535
9536         * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
9537         reload_toc_labelno for non-prologue TOC reloads.  Also, don't
9538         increment rs6000_pic_labelno here.
9539         (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
9540         and increment rs6000_pic_labelno here.
9541
9542         2000-01-24  Geoffrey Keating  <geoffk@cygnus.com>
9543
9544         * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
9545         rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
9546         allocation knows (reg) is dead before the insn.
9547
9548         2000-01-21  Geoff Keating  <geoffk@cygnus.com>
9549
9550         * rs6000.md (movsi_to_cr): Correct typo in output template.
9551
9552         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
9553
9554         * rs6000.c (rs6000_pic_labelno): Always define.
9555         (rs6000_pic_func_labelno): Delete.
9556         (lmw_operation): Check for a zero base register,
9557         which doesn't mean what we want.
9558         (stmw_operation): New function.
9559         (print_operand): Define new 'l' modifier.
9560         (rs6000_stack_info): We must save all 64 bits of the registers
9561         if TARGET_POWERPC64.
9562         (rs6000_output_load_toc_table): Delete.
9563         (rs6000_emit_load_toc_table): New function.
9564         (rs6000_allocate_stack_space): Delete.
9565         (rs6000_emit_allocate_stack): New function.
9566         (rs6000_emit_prologue): New function.
9567         (output_prolog): Use rs6000_emit_prologue.
9568         (rs6000_emit_epilogue): Change a few variable names to be
9569         more accurate.  Restore all 64 bits of the registers if
9570         TARGET_POWERPC64.  Only restore the FP registers which were used
9571         if they are being saved/restored one-at-a-time.
9572         (output_mi_thunk): Delete inefficient code generation.
9573         (output_function_profiler): Don't use rs6000_output_load_toc_table.
9574         * rs6000.h: Declare rs6000_emit_load_toc_table,
9575         rs6000_allocate_stack_space, stmw_operation.  Don't declare
9576         rs6000_output_load_toc_table.
9577         * rs6000.md (elf_high): Allow register 0, but discourage it
9578         heavily.
9579         (elf_low): Support loading into register 0.
9580         (load_toc_aix_si): New pattern.
9581         (load_toc_aix_di): New pattern.
9582         (load_toc_v4_pic_si): New pattern.
9583         (load_toc_v4_pic_di): New pattern.
9584         (load_toc_v4_PIC_1): New pattern.
9585         (load_toc_v4_PIC_1b): New pattern.
9586         (load_toc_v4_PIC_2): New pattern.
9587         (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
9588         (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
9589         (prologue): New expander.
9590         (movesi_from_cr): New pattern.
9591         (stmw): New pattern.
9592         (save_fpregs_si): New pattern.
9593         (save_fpregs_di): New pattern.
9594
9595         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9596
9597         * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
9598         (movdi): Likewise.
9599         (movhi): Likewise.
9600         (movqi): Likewise.
9601
9602         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9603
9604         * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
9605         at present.
9606         (movsi_got_internal): Likewise.
9607         (movsi_got_internal+1): Likewise.
9608         (set_sp): 'unspec 7' does a SImode clobber.
9609
9610         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9611
9612         * rs6000.md (floatsidf2): Don't use the fpmem "register", just
9613         allocate a stack temporary.
9614         (floatsidf2_internal): Likewise.
9615         (floatsidf2_internal+1): Likewise.  Don't do bizzare hacks
9616         with unspec.
9617         (floatunssidf2): Don't use the fpmem "register", just
9618         allocate a stack temporary.
9619         (floatunssidf2_internal): Likewise.
9620         (floatunssidf2_internal+1): Likewise.  Don't do bizzare hacks
9621         with unspec.
9622         (floatsidf2_loadaddr): Delete.
9623         (floatsidf2_store1): Delete.
9624         (floatsidf2_store2): Delete.
9625         (floatsidf2_load): Delete.
9626         (fix_truncdfsi2): Don't use the fpmem "register", just
9627         allocate a stack temporary.
9628         (fix_truncdfsi2_internal_si): Delete.
9629         (fix_truncdfsi2_internal_di): Delete.
9630         (fix_truncdfsi2_internal): New insn.
9631         (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
9632         (fix_truncdfsi2_store): Delete.
9633         (fix_truncdfsi2_load): Delete.
9634         (fctiwz): Produce gen_fctiwz.
9635
9636         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
9637
9638         * eabi.h (INVOKE__main): Define.
9639         * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
9640         specially.
9641         (rs6000_emit_prologue): Likewise.
9642         * rs6000.h (struct rs6000_stack): Don't keep track of whether
9643         this is the main program.
9644
9645         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9646
9647         * rs6000.c (rs6000_va_arg): Delete some unused variables.
9648
9649         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9650
9651         * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
9652         goes after the argument.
9653
9654         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
9655
9656         * rs6000.md: Document 'unspec' values used.
9657         (epilogue): New expander.
9658         (movesi_to_cr_one): New expander.
9659         (movesi_to_cr and following): New pattern.
9660         (lmw): New pattern.
9661         (return_internal_si): New pattern.
9662         (return_internal_di): New pattern.
9663         (return_and_restore_fpregs_si): New pattern.
9664         (return_and_restore_fpregs_di): New pattern.
9665         * rs6000.h: Declare new functions.
9666         * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
9667         rather than rs6000_calls_p.
9668         (rs6000_makes_calls): Delete.
9669         (lmw_operation): New function.
9670         (mtcrf_operation): New function.
9671         (rs6000_emit_epilogue): New function.
9672         (output_epilog): Call rs6000_emit_epilogue and final if
9673         !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
9674
9675         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
9676
9677         * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
9678         * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
9679         * aix.h (SUBTARGET_SWITCHES): Document switches.
9680         * rs6000.h: (TARGET_SWITCHES): Don't print options twice.  Make
9681         sched-prolog and sched-epilog the same.  Document all the
9682         switches.
9683         (TARGET_OPTIONS): No longer allow -mdebug-.
9684
9685         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
9686
9687         * rs6000.h (ASM_FILE_END): Move to aix.h.
9688         (EXTRA_SECTIONS): Move to aix.h.
9689         (READONLY_DATA_SECTION): Move to aix.h.
9690         (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
9691         (SELECT_SECTION): Move to aix.h.
9692         (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
9693         (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
9694         (LINK_REGISTER_REGNUM): New definition.
9695         (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
9696         (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
9697         AIX and SVR4.
9698         * sysv4.h: Delete the code between the inclusion of rs6000.h
9699         and svr4.h.
9700         (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
9701         (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
9702         (RS6000_REG_SAVE): Move generic definition to rs6000.h.
9703         (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
9704         * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
9705         (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
9706         (fix_truncdfsi2_internal_di): New pattern.
9707         (fix_truncdfsi2_store): The second arg here is Pmode too.
9708         (fix_truncdfsi2_load): The second arg here is Pmode too.
9709         (tablejumpdi): Now that switch tables hold only SImode values,
9710         gcc needs to know how to add them to the pc which is DImode.
9711         * rs6000.c (rs6000_stack_info): Use symbolic name for
9712         LINK_REGISTER_REGNUM.
9713         (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
9714         (output_toc): Delete unused variables s1 and s2.
9715         (output_ascii): Use fputs not fprintf on a variable string.
9716
9717         2000-01-07  David Edelsohn  <edelsohn@gnu.org>
9718
9719         * rs6000.c (processor_target_table): Add power3 as alias for 630.
9720         * aix43.h: Revert Aug 2 change.
9721         (HAS_INIT_SECTION): Define, not visible yet.
9722         (LD_INIT_SWITCH): Define, not visible yet.
9723         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
9724
9725         2000-01-04  Joel Sherrill (joel@OARcorp.com>
9726
9727         * config/rs6000/rtems.h: Include config/rtems.h.
9728
9729         2000-01-04  David Edelsohn  <edelsohn@gnu.org>
9730
9731         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
9732         (SLOW_UNALIGNED_ACCESS): Define.
9733         (CASE_VECTOR_MODE): Always use 32-bit offsets.
9734         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
9735         (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
9736         (toc_section): Likewise and .toc pseudo-op.
9737         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
9738         64-bit mode.
9739         (TEXT_SECTION_ASM_OP): Likewise.
9740         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
9741         32-bit offsets.
9742
9743         1999-12-17  Jakub Jelinek  <jakub@redhat.com>
9744
9745         * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
9746         UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
9747         compiling libgcc2.
9748
9749         2000-01-06  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9750
9751         * rs6000.h: Move more stuff from here...
9752         * aix.h: to here.
9753         * sysv4.h: Cleanup accordingly.
9754         * netware.h: Likewise
9755
9756         2000-01-05  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9757
9758         * rs6000.h: Continue cleanup.
9759         * aix.h: Likewise.
9760         * lynx.h: Likewise.
9761         * netware.h: Likewise.
9762         * sol2.h: Likewise.
9763         * sysv4.h: Likewise.
9764         * win-nt.h: Likewise.
9765
9766         * rs6000.h (TARGET_SWITCHES): Add descriptions.
9767         (TARGET_OPTIONS): Likewise.
9768
9769         * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
9770         (SUBTARGET_OPTIONS): Likewise.
9771
9772         * rs6000.md: Fix compile time warnings.
9773
9774         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
9775
9776         vxworks patches from the Cygnus tree originally by
9777         Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
9778         <vmakarov@cygnus.com>.
9779         * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
9780         (ENDFILE_SPEC): Likewise.
9781         (LIB_VXWORKS_SPEC): New macro.
9782         (STARTFILE_VXWORKS_SPEC): New macro.
9783         (ENDFILE_VXWORKS_SPEC): New macro.
9784         (LINK_START_VXWORKS_SPEC): New macro.
9785         (LINK_OS_VXWORKS_SPEC): New macro.
9786         (CPP_OS_VXWORKS_SPEC): New macro.
9787         (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
9788         * vxppc.h: Rewrite to use proper configuration method.
9789         * vxppcle.h: New file.
9790         * ../../configure.in: Add powerpcle-wrs-vxworks*.
9791         * ../../configure: Rebuilt.
9792
9793         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
9794
9795         Lots of changes to rs6000.h, sysv4.h, aix.h,
9796         aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
9797         with the aim that rs6000.h is the first header
9798         included and the others override it.
9799         * aix.h: New file.
9800
9801         * x-aix41-gld: Remove.
9802         * x-aix43: Remove.
9803         * x-aix41: Remove target-specific switches, and don't specify
9804         -Wl,-bbigtoc as we don't need it any more.
9805         * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
9806         Use t-aix43 for AIX 4.3 and above.
9807         * ../../configure: Regenerated.
9808
9809         * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
9810         options, that don't do anything yet.
9811         (MASK_SCHED_PROLOG): New macro.
9812         (MASK_SCHED_EPILOG): New macro.
9813         (TARGET_SCHED_PROLOG): New macro.
9814         (TARGET_SCHED_EPILOG): New macro.
9815
9816         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
9817
9818         * rs6000.c: Correct comment, the `minimal' TOCs are actually
9819         one per translation unit, not one per function.
9820         (output_toc): Also do duplicate constant elimination
9821         for per-translation-unit TOCs.
9822
9823         * rs6000.md (nonlocal_goto_receiver): Put it back as before.  Add
9824         a comment explaining _exactly_ when this pattern gets used.
9825         (builtin_setjmp_receiver): New pattern for better clarity.
9826         (init_v4_pic): Move it into a section dealing with TOC registers.
9827
9828         1999-12-30  Geoff Keating  <geoffk@cygnus.com>
9829
9830         * rs6000.c (toc_hash_table): New variable.
9831         (rs6000_hash_constant): New function.
9832         (toc_hash_function): New function.
9833         (toc_hash_eq): New function.
9834         (toc_hash_mark_entry): New function.
9835         (toc_hash_mark_table): New function.
9836         (output_toc): Don't output duplicate TOC entries in
9837         a single file.
9838         (rs6000_add_gc_roots): Add the hash table as a GC root.
9839         * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
9840         where they clearly shouldn't be.  This may need to be fixed
9841         later when there is a GNU ar for AIX.
9842         * x-aix43: Don't define CLIB or AR_FOR_TARGET.
9843         Don't define BOOT_LDFLAGS as it is now not necessary.
9844
9845         1999-12-29  Geoff Keating  <geoffk@cygnus.com>
9846
9847         * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
9848         for va_list on AIX.  Use unsigned_char_type_node rather than
9849         constructing our own version on svr4.
9850
9851         1999-12-17  Geoff Keating  <geoffk@cygnus.com>
9852
9853         * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
9854         since patently it's not.
9855
9856         1999-12-08  Geoff Keating  <geoffk@cygnus.com>
9857
9858         * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
9859         define_expand/define_insn pair, and handle restore of the
9860         SVR4 -fpic register.
9861
9862 Wed Mar 15 15:43:38 2000  Jeffrey A Law  (law@cygnus.com)
9863
9864         * acconfig.h (HAVE_GAS_WEAK): New define.
9865         * configure.in (assembler weak support): Check for .weak support.
9866         * config.in, configure: Rebuilt.
9867         * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
9868         HAVE_GAS_WEAK is defined.
9869
9870 2000-03-15  Nick Clifton  <nickc@cygnus.com>
9871
9872         * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
9873         asm_fprintf().
9874
9875 2000-03-15  Zack Weinberg  <zack@wolery.cumb.org>
9876
9877         * cppfiles.c (open_include_file): New function.
9878         (find_include_file, cpp_read_file): Use it.
9879
9880 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
9881
9882         * cpphash.c (dump_hash_helper): Take the slot, not the element.
9883
9884 Wed Mar 15 14:28:54 2000  Jason Eckhardt  <jle@cygnus.com>
9885
9886         * flow.c (verify_flow_info): Check for unconditional return.
9887
9888 Wed Mar 15 11:34:27 2000  Jim Wilson  <wilson@cygnus.com>
9889
9890         * config/ia64/ia64.md (restore_stack_nonlocal): New.
9891         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
9892         (__ia64_restore_stack_nonlocal): New.
9893         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
9894
9895 2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9896
9897         * cpphash.c (collect_formal_parameters): Do not complain about
9898         parameter names that just start with `__VA_ARGS__'.
9899
9900 Wed Mar 15 13:26:58 MET 2000  Jan Hubicka  <jh@suse.cz>
9901
9902         * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
9903         movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
9904         * i386.c (pentiumpro_cost): Set mul cost to 4.
9905         (x86_use_movx): Set for PPro.
9906
9907 Wed Mar 15 13:07:05 MET 2000  Jan Hubicka  <jh@suse.cz>
9908
9909         * i386.md (ix86_compute_frame_size): stack_alignment_needed is
9910         STACK_BOUNDARY for empty frames now.
9911
9912 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
9913
9914         * stor-layout.c (layout_union): Remove.
9915         (layout_union_field): New function, split out from layout_union.
9916         (finish_union_layout): Likewise.
9917         (layout_field): Handle unions by calling layout_union_field.
9918         (finish_record_layout): Handle unions.
9919         (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
9920         QUAL_UNION_TYPE handling.
9921
9922 Wed Feb 23 13:00:06 CET 2000  Jan Hubicka  <jh@suse.cz>
9923
9924         * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
9925         end of basic block is jump_insn, not barrier; use create_basic_block
9926         instead of creating basic block by hand.
9927
9928 2000-03-14  Jason Eckhardt  <jle@cygnus.com>
9929
9930         * flow.c (reorder_basic_blocks): Account for barriers when writing
9931         over NEXT_INSN (last_bb->end).
9932         (verify_flow_info): Add check for missing barriers.
9933
9934 2000-03-14  Greg McGary  <gkm@gnu.org>
9935
9936         * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
9937         * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
9938         * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
9939         __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
9940         __unbounded, __unbounded__): New keywords.
9941         * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
9942         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
9943         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
9944
9945 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
9946
9947         * cselib.h: New file.
9948         * alias.c: Include "cselib.h".
9949         (fixed_scalar_and_varying_struct_p): Accept the addresses of the
9950         MEMs as two new arguments.
9951         (get_addr): New static function.
9952         (find_base_term): Handle VALUEs.
9953         (memrefs_conflict_p): Likewise.
9954         (true_dependence): Call get_addr on the addresses.
9955         Call fixed_scalar_and_varying_struct_p with addresses that have been
9956         passed through get_addr and canon_rtx.
9957         (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
9958         with true_dependence.
9959         Call get_addr on the addresses; don't call canon_rtx on the MEMs.
9960         * loop.c: Include "cselib.h".
9961         (load_mems): Process extended basic block that enters the loop with
9962         cselib.  Use that information to change initialization of the shadow
9963         register so that a constant equivalence is seen by later passes.
9964         * reload1.c: Include "cselib.h".
9965         (reload_cse_invalidate_regno): Delete function.
9966         (reload_cse_mem_conflict_p): Likewise.
9967         (reload_cse_invalidate_mem): Likewise.
9968         (reload_cse_invalidate_rtx): Likewise.
9969         (reload_cse_regno_equal_p): Likewise.
9970         (reload_cse_check_clobber): Likewise.
9971         (reload_cse_record_set): Likewise.
9972         (reg_values): Delete static variable.
9973         (invalidate_regno_rtx): Likewise.
9974         (reload_cse_delete_noop_set): New static function.
9975         (reload_cse_simplify): New static function, broken out of
9976         reload_cse_regs_1.
9977         (reload_cse_noop_set_p): Delete unused argument INSN.
9978         Just call rtx_equal_for_cselib_p on set source and destination.
9979         (reload_cse_regs_1): Break out some code into reload_cse_simplify and
9980         reload_cse_delete_noop_set.  Delete code to keep track of values; use
9981         cselib functions instead.  Delete code to push/pop obstacks.
9982         (reload_cse_simplify_set): Use cselib to find equivalent values.
9983         Delete code to push/pop obstacks.
9984         (reload_cse_simplify_operands): Likewise.
9985         * rtl.def (VALUE): New rtx code.
9986         * rtl.h (union rtunion_def): New elt rt_cselib.
9987         (X0CSELIB, CSELIB_VAL_PTR): New macros.
9988         * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
9989         (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
9990         unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
9991         discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
9992         hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
9993         cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
9994         cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
9995         cselib_record_set, cselib_record_sets): New static functions.
9996         (cselib_lookup, cselib_update_varray_sizes, cselib_init,
9997         cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
9998         references_value_p): New functions.
9999         (MAX_USELESS_VALUES, REG_VALUES): New macros.
10000         (table, cselib_current_insn, next_unknown_value, cselib_nregs,
10001         n_useless_values, reg_values, callmem, cselib_obstack,
10002         cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
10003         New static variables.
10004         * varray.h (union varray_data_tag): New elt te.
10005         (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
10006         * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
10007         dependencies.
10008
10009 2000-03-14  Nick Clifton  <nickc@cygnus.com>
10010
10011         * gcc.c (do_spec_1): Catch the case where %* is used in a
10012         substitution pattern, but it has not been initialised.
10013         Issue a meaningful error message if an unrecognised operator
10014         is encountered in a spec string.
10015
10016 2000-03-14  Richard Earnshaw <rearnsha@arm.com>
10017
10018         * function.c (prepare_function_start): Correctly initialize
10019         cfun->stack_alignment_needed.
10020
10021 2000-03-14  Zack Weinberg  <zack@wolery.cumb.org>
10022
10023         * cppfiles.c (find_include_file): Don't assume nshort is a
10024         substring of name.
10025
10026 Tue Mar 14 08:42:21 2000  Jeffrey A Law  (law@cygnus.com)
10027
10028         * configure.in (hppa configurations): Add pa32-regs.h to the
10029         list of tm files as appropriate.
10030         * configure: Rebuilt.
10031         * pa.c (compute_frame_size): Remove explicit knowledge about FP
10032         register numbering.
10033         (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
10034         (fmpyaddoperands, fmpysuboperands): Likewise.
10035         * pa.h: Remove various definitions which depend on knowing
10036         how registers are numbered.
10037         * pa32-regs.h: New file with PA32 register numbering specific
10038         definitions.
10039
10040 2000-03-14  Richard Henderson  <rth@cygnus.com>
10041
10042         * regmove.c (combine_stack_adjustments): New.
10043         (stack_memref_p, single_set_for_csa): New.
10044         (free_csa_memlist, record_one_stack_memref): New.
10045         (try_apply_stack_adjustment): New.
10046         (combine_stack_adjustments_for_block): New.
10047         * rtl.h (combine_stack_adjustments): Declare.
10048         * toplev.c (rest_of_compilation): Call it.
10049
10050         * i386.md: Revert 2000-01-16 change.
10051
10052 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10053
10054         * gccbug.in: Add web category, gcc specific classes.
10055
10056 2000-03-14  Nathan Sidwell  <nathan@codesourcery.com>
10057
10058         * stor-layout.c (finalize_record_size): Fix typo.
10059
10060 2000-03-14  Stan Shebs  <shebs@apple.com>
10061
10062         * c-typeck.c (c_alignof): Error on incomplete types.
10063         * extend.texi (Alignment): Document this.
10064
10065 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10066
10067         * cppfiles.c: Include mkdeps.h.
10068         (find_include_file, read_include_file): Remove _cpp_ prefix
10069         from name, make static.
10070         (_cpp_execute_include): New function, broken out of
10071         do_include.
10072
10073         * cpplib.c: Don't include mkdeps.h.
10074         (struct directive): Remove type field. Reorder entries.  The
10075         function takes only one argument.
10076         (struct if_stack): Make type field an int.
10077         (directive_table): Rename to dtable.  Generate it, the
10078         prototypes of the directive handlers, and the enum for the
10079         directive numbers, from a template macro.
10080         (do_ifndef, do_include_next, do_import): New functions.
10081         (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
10082         do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
10083         do_ident, do_assert, do_unassert, do_sccs): Take only one
10084         argument.
10085         (do_sccs): Define always, but alter behavior based on
10086         SCCS_DIRECTIVE.
10087         (_cpp_handle_directive, consider_directive_while_skipping):
10088         Restructure for new directive table layout.
10089
10090         (pass_thru_directive): Take a directive number, not a pointer
10091         to a struct directive.
10092         (parse_include): New function, broken out of do_include.
10093         (do_include, do_import, do_include_next): Use parse_include
10094         and _cpp_execute_include.
10095         (do_elif, do_else): Test for T_ELSE specifically when checking
10096         for #elif/#else after #else.
10097         (parse_ifdef): New function, broken out of do_ifdef.
10098         (validate_else): Expect a name arg without a leading #.
10099         (if_directive_name): Delete.
10100         (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
10101         directive handlers with only one argument.
10102
10103         * cpphash.h: Update prototypes.
10104         (enum node_type): Remove entries for directives.
10105         * Makefile.in: Update dependencies.
10106
10107         * cpphash.c (dump_hash_helper): Only dump nodes of type
10108         T_MACRO.  Emit a newline after each definition.
10109
10110 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10111
10112         * gccbug.in: New file.
10113         * configure.in (all_outputs): Add gccbug.
10114         * Makefile.in (install-common): Install gccbug.
10115         (GCCBUG_INSTALL_NAME): New variable.
10116         * configure: Rebuilt.
10117
10118 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
10119
10120         * function.c (put_var_into_stack): Use type_for_mode to calculate
10121         part_type.  Use MEM_SET_IN_STRUCT_P.
10122         * expr.c (store_field): Handle CONCAT.
10123         (store_constructor): Use fields_length.
10124         * tree.c (fields_length): New fn.
10125         * tree.h: Declare it.
10126
10127 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10128
10129         * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
10130         (cpplex.o): New target.
10131         * po/POTFILES.in: Add cpplex.c.
10132
10133         * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
10134         cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
10135         cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
10136         skip_block_comment, skip_line_comment, skip_comment,
10137         copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
10138         _cpp_parse_name, skip_string, parse_string,
10139         _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
10140         _cpp_get_directive_token, find_position,
10141         _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
10142         (maybe_macroexpand, _cpp_lex_token): New functions.
10143
10144         * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
10145         parse_goto_mark): Delete.
10146         (_cpp_handle_eof): New function.
10147         (_cpp_handle_directive): Rename from handle_directive.
10148         (_cpp_output_line_command): Rename from output_line_command.
10149         (do_if, do_elif): Call _cpp_parse_expr directly.
10150         * cppfiles.c (_cpp_read_include_file): Don't call
10151         init_input_buffer here.
10152         * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
10153         * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
10154         here; pop the token_buffer and skip the rest of the line here.
10155         * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
10156         here.
10157
10158         * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
10159         Define here.
10160         (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
10161         CPP_GOTO_MARK): New macros.
10162         (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
10163         _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
10164         _cpp_read_and_prescan, _cpp_init_input_buffer,
10165         _cpp_grow_token_buffer, _cpp_get_directive_token,
10166         _cpp_handle_directive, _cpp_handle_eof,
10167         _cpp_output_line_command): Prototype them here.
10168         * cpplib.h (enum cpp_token): Add CPP_MACRO.
10169         (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
10170         quote_string, output_line_command): Remove.
10171
10172 2000-03-13  Bernd Schmidt  <bernds@cygnus.co.uk>
10173
10174         * stmt.c (expand_end_case): RANGE may be signed, and when checking
10175         whether it is too large we must also verify that it isn't negative.
10176
10177 2000-03-13  Jakub Jelinek  <jakub@redhat.com>
10178
10179         * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
10180         (movsi_zero_liveg0): Remove.
10181         (movsf_insn_novis_liveg0): Remove.
10182         (negsi2): Remove.
10183         (negsi2_not_liveg0): Rename to negsi2.
10184         (one_cmplsi2): Remove.
10185         (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
10186         (one_cmplsi2_liveg0): Remove.
10187         * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
10188         MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
10189         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
10190         (PREDICATE_CODES): Remove zero_operand.
10191         * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
10192         TARGET_BROKEN_SAVERESTORE.
10193         (zero_operand): Remove.
10194         * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
10195         -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
10196         options.
10197         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10198         * config/sparc/linux-aout.h (TARGET_LIVE_G0,
10199         TARGET_BROKEN_SAVERESTORE): Remove.
10200         * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10201         Remove.
10202         * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10203         Remove.
10204         * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10205         Remove.
10206
10207         * config/sparc/sparc.md (return_df_no_fpu): New pattern.
10208
10209 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10210
10211         * cpplib.c (do_pragma_implementation): Fix off-by-one error
10212         truncating a string.  Don't assume tokens are nul terminated.
10213         Problem noted by Andreas Jaeger <aj@suse.de>
10214
10215 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
10216
10217         * dwarf2out.c (add_name_and_src_coords_attributes): Only add
10218         DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
10219         (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
10220
10221 2000-03-13  Richard Earnshaw <rearnsha@arm.com>
10222
10223         * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
10224         STRUCTURE_SIZE_BOUNDARY.
10225
10226 2000-03-13  Mark Mitchell  <mark@codesourcery.com>
10227
10228         * tree.h (record_layout_info_s): New structure.
10229         (record_layout_info): New type.
10230         (new_record_layout_info): New function.
10231         (layout_field): Likewise.
10232         (finish_record_layout): Likewise.
10233         * stor-layout.c (layout_record): Remove.
10234         (new_record_layout_info): New function.
10235         (layout_field): New function, broken out from layout_record.
10236         (finalize_record_size): Likewise.
10237         (compute_record_mode): Likewise.
10238         (finalize_type_size): New function, broken out from layout_type.
10239         (finish_record_layout): Likewise.
10240         (layout_type): Use them.
10241
10242 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
10243
10244         * cpphash.c: Don't include version.h.
10245         (special_symbol) [case T_VERSION]: Look for the string in
10246         hp->value.cpval; don't use version_string.
10247         * cppinit.c (initialize_builtins): Set hp->value.cpval for
10248         __VERSION__ to version_string.
10249         * Makefile.in (cpphash.o): Update deps.
10250
10251 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
10252
10253         Convert cpplib to use libiberty/hashtab.c.
10254
10255         * cpplib.h (struct cpp_reader): Make hashtab and
10256         all_include_files of type 'struct htab *'.  Delete HASHSIZE
10257         and ALL_INCLUDE_HASHSIZE macros.
10258
10259         * cpphash.h: Update prototypes.
10260         (struct hashnode): Remove next, prev, and bucket_hdr members.
10261         Make length a size_t.  Add hash member.
10262         (struct ihash): Remove next member.  Add hash member.  Make
10263         name a flexible array member.
10264
10265         * cppfiles.c: Include hashtab.h.
10266         (include_hash): Delete.
10267         (IHASHSIZE): New macro.
10268         (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
10269         (cpp_included): Do the hash lookup here.
10270         (_cpp_find_include_file): Rewrite.
10271         (cpp_read_file): Put the "fake" hash entry into the hash
10272         table.  Honor the control_macro, if it turns out we've seen
10273         the file before.  Don't push the buffer here.
10274         (_cpp_read_include_file): Push the buffer here.
10275         (OMODES): New macro.  Use it whenever we call open(2).
10276
10277         * cpphash.c: Include hashtab.h.
10278         (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
10279         _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
10280         _cpp_lookup_slot): New functions.
10281         (HASHSIZE): new macro.
10282         (hashf, _cpp_install, _cpp_delete_macro): Delete.
10283         (_cpp_lookup): Use hashtab.h routines.
10284
10285         * cppinit.c: Include hashtab.h.
10286         (cpp_reader_init): Call _cpp_init_macro_hash and
10287         _cpp_init_include_hash.  Don't allocate hashtab directly.
10288         (cpp_cleanup): Just call htab_delete on pfile->hashtab and
10289         pfile->all_include_files.
10290         (initialize_builtins): Use _cpp_make_hashnode and
10291         htab_find_slot to add hash entries.
10292         (cpp_finish): Just call _cpp_dump_macro_hash.
10293         * cpplib.c: Include hashtab.h.
10294         (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
10295         create hash entries.
10296         (do_pragma_poison, do_assert): Likewise.
10297         (do_include): Don't push the buffer here.  Don't increment
10298         system_include_depth unless _cpp_read_include_file succeeds.
10299         (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
10300         or htab_remove_elt.
10301         (do_pragma_implementation): Use alloca to create copy.
10302
10303         * Makefile.in: Update dependencies.
10304
10305 2000-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10306
10307         * cppinit.c (cl_directive_handler): More K&R fixing.
10308
10309 Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
10310
10311         * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
10312         STACK_BOUNDARY.
10313         * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
10314
10315 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10316
10317         * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
10318         Change from char[] to macros.
10319
10320 2000-03-12  Neil Booth  <NeilB@earthling.net>
10321
10322         * cppinit.c (cpp_start_read): Update indirect function
10323         call to K&R C.
10324
10325 Sat Mar 11 16:18:12 2000  Jim Wilson  <wilson@cygnus.com>
10326
10327         * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
10328         entry.
10329
10330         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10331         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
10332
10333 2000-03-11  Neil Booth  <NeilB@earthling.net>
10334
10335         * cppinit.c (struct pending option): Replace undef with a
10336         pointer to a directive handling routine.
10337         (struct cpp_pending): Replace separate assert_ and define_
10338         lists with one directive_ list.
10339         (new_pending_define): Rename new_pending_directive. Extra
10340         argument is the directive's handling routine.
10341         (handle_option): Update to use new_pending_directive.
10342
10343 2000-03-11  Neil Booth  <NeilB@earthling.net>
10344
10345         * cppfiles.c (file_cleanup, _cpp_find_include_file,
10346         remap_filename, _cpp_read_include_file, actual_directory,
10347         hack_vms_include_specification): Replace bcopy(), index() etc
10348         calls.  Add casts to some allocations.  Make some variables
10349         pointers to const [unsigned] char.
10350         * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
10351         collect_formal_parameters): Similarly.
10352         * cppinit.c (struct pending_option, append_include_chain,
10353         cpp_options_init, cpp_reader_init, initialize_standard_includes,
10354         cpp_start_read, new_pending_define, handle_option): Similarly.
10355         * cpplib.c (cpp_define, copy_comment, do_define, do_include,
10356         do_undef, do_error, do_warning, do_pragma, do_pragma_once,
10357         do_pragma_implementation, detect_if_not_defined,
10358         do_ifdef, skip_if_group, cpp_get_token, parse_string,
10359         do_assert, do_unassert): Similarly.
10360         * cpplib.h (cpp_buffer, cpp_options): Update types.  Update
10361         function prototypes.
10362         * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
10363
10364 2000-03-10  Richard Henderson  <rth@cygnus.com>
10365
10366         * builtins.c (expand_builtin_strlen): Revert last change.
10367         Use emit_insn_before if we're at the beginning of a sequence.
10368
10369 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
10370
10371         * builtins.c (expand_builtin_strlen): Make sure that we have something
10372         at the beginning of the sequence.
10373
10374         * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
10375         deferred inlines.
10376
10377         * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
10378
10379 2000-03-10  Richard Henderson  <rth@cygnus.com>
10380
10381         * except.c (can_throw): Use INTVAL on a CONST_INT.
10382         (reachable_handlers): Likewise.
10383         * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
10384
10385 2000-03-10  Andreas Jaeger  <aj@suse.de>
10386
10387         * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
10388         MD_STARTFILE_PREFIX since those are not needed on linux.
10389         (ASM_FILE_START): New, from mips/gnu.h.
10390
10391 2000-03-09  Richard Henderson  <rth@cygnus.com>
10392             Alex Samuel  <samuel@codesourcery.com> and others
10393
10394         * Makefile.in (ssa.o): New rule.
10395         (OBJS): Add ssa.o.
10396         (STAGESTUFF): Add *.ssa and *.ussa.
10397         (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
10398         * rtl.def (PHI): New RTL expression.
10399         * rtl.h (clear_log_links): New declaration.
10400         (convert_to_ssa): Likewise.
10401         (convert_from_ssa): Likewise.
10402         * flow.c (split_edge): If the entry node falls through to the
10403         split edge's source block, split the entry edge.
10404         (clear_log_links): New function.
10405         * toplev.c (ssa_dump): New variable.
10406         (flag_ssa): Likewise.
10407         (f_options): Add "ssa".
10408         (compile_file): Create SSA dump files.
10409         (rest_of_compilation): Go to and from SSA if enabled.
10410         (decide_d_option): Handle -de for SSA dump files.
10411         * ssa.c: New file.
10412
10413 Thu Mar  9 20:01:38 2000  Jim Wilson  <wilson@cygnus.com>
10414
10415         * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
10416         same as VAR_DECL.
10417
10418 2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
10419
10420         * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
10421
10422 Thu Mar  9 18:10:02 2000  Jeffrey A Law  (law@cygnus.com)
10423
10424         * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
10425         (MD_STARTFILE_PREFIX_1): New macro.
10426
10427 2000-03-09  Robert Lipe  <robertl@sco.com>
10428
10429         * config/ia64/ia64.c: Include system.h.
10430
10431 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
10432
10433         * except.c (nothrow_function_p): If -fno-exceptions, just return.
10434         (init_eh_nesting_info): Likewise.
10435
10436         * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
10437         (TREE_NOTHROW): Rename from TREE_RAISES.
10438         * toplev.c (rest_of_compilation): Set it.
10439         * print-tree.c (print_node): Adjust.
10440         * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
10441         (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
10442         * calls.c (emit_call_1): Add 'nothrow' parm.  Add
10443         REG_EH_REGION note as appropriate.
10444         (libfunc_nothrow): New fn.
10445         (emit_library_call, emit_library_call_value): Use it.
10446         (expand_call): Check TREE_NOTHROW.
10447
10448         * varasm.c (make_decl_rtl): Skip initial '*' when setting
10449         DECL_ASSEMBLER_NAME.
10450
10451 2000-03-09  Andreas Jaeger  <aj@suse.de>
10452
10453         * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
10454         (TARGET_MEM_FUNCTIONS): Define.
10455
10456 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
10457
10458         * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
10459
10460         * except.c (can_throw): See through a SEQUENCE.
10461         (nothrow_function_p): New fn.
10462         * except.h: Declare it.
10463         * function.c (current_function_nothrow): New var.
10464         (prepare_function_start): Initialize it.
10465         * output.h: Declare it.
10466         * toplev.c (rest_of_compilation): Set it.
10467         * dwarf2out.c (dwarf2out_begin_prologue): Use it.
10468
10469 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
10470
10471         * cpphash.c (collect_formal_parameters): strncmp returns 0 for
10472         match.  (cpp_compare_defs): Count the nul separator when
10473         advancing over argument names.
10474
10475 2000-03-09  Bernd Schmidt  <bernds@cygnus.co.uk>
10476
10477         * recog.c (preprocess_constraints): Matching constraints affect
10478         same alternative/different operand, not same operand/different
10479         alternative.
10480
10481         * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
10482         register and a constant specially.
10483
10484 2000-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10485
10486         * libgcc2.h: New file.
10487         * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
10488
10489 Wed Mar  8 16:19:42 2000  Jim Wilson  <wilson@cygnus.com>
10490
10491         * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
10492         * configure: Regenerate.
10493         * config/ia64: New.
10494
10495 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
10496
10497         * Makefile.in (LIBCPP_DEPS): New macro.
10498         (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
10499         it to declare deps.
10500         * cpperror.c: Include cpphash.h.
10501         * cppexp.c: Include cpphash.h.  Remove MULTIBYTE_CHARS
10502         dingleberry.
10503         (lex): Don't use CPP_WARN_UNDEF.
10504         (_cpp_parse_expr): Return an int, the truth value.
10505         * cppfiles.c: Include cpphash.h.
10506         (_cpp_merge_include_chains): Move to cppinit.c and make static.
10507         * cppinit.c (include_defaults_array): Disentangle.
10508         (cpp_cleanup): Don't free the if stack here.
10509         (cpp_finish): Pop off all buffers, not just one.
10510         * cpplib.c (eval_if_expr): Return int.
10511         (do_xifdef): Rename do_ifdef.
10512         (handle_directive): Don't use CPP_PREPROCESSED.
10513         (cpp_get_token): Don't use CPP_C89.
10514         * fix-header.c: Don't use CPP_OPTIONS.
10515
10516         * cpplib.h: Move U_CHAR, enum node_type, struct
10517         file_name_list, struct ihash, is_idchar, is_idstart,
10518         is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
10519         CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
10520         CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
10521         CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
10522         CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
10523         of _cpp_simplify_pathname, _cpp_find_include_file,
10524         _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
10525         Move struct if_stack to cpplib.c.  Move struct cpp_pending to
10526         cppinit.c.
10527         Change all uses of U_CHAR to be unsigned char instead.
10528         Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
10529
10530 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
10531
10532         * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
10533         (dwarf2out_begin_prologue): Set it.
10534         (output_call_frame_info): Don't emit EH unwind info for leaves.
10535
10536         * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
10537         can occur outside of an EH region.
10538         * except.c: Correct comments about rethrow behavior.
10539         (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
10540
10541 2000-03-08  Andrew MacLeod  <amacleod@cygnus.com>
10542
10543         * flow.c (make_edges): Always call make_eh_edge for calls.
10544
10545 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
10546
10547         * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
10548         (struct cpp_buffer): Remove fname and underflow fields.
10549         (struct cpp_reader): Remove get_token field.
10550         (struct include_hash): Rename to struct ihash.  Add typedef to
10551         IHASH.
10552         (struct if_stack): Remove fname field.
10553         (IF_STACK_FRAME): Rename to IF_STACK.
10554
10555         * cpperror.c (print_containing_files): Trust that there are no
10556         macro buffers below the top file buffer.
10557         * cppfiles.c: Replace all references to 'struct include_hash'
10558         with 'IHASH'.  Rename initialize_input_buffer to
10559         init_input_buffer.  Don't set or reference cpp_buffer->fname,
10560         use buffer->ihash->name instead.
10561         * cpphash.c (special_symbol): Use cpp_file_buffer.  Use NULL
10562         not CPP_NULL_BUFFER.
10563         * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
10564         IF_STACK_FRAME, IHASH not struct include_hash.
10565         * cpplib.c: Rename eval_if_expression to eval_if_expr.  Remove
10566         null_underflow.  Use IF_STACK not IF_STACK_FRAME, IHASH not
10567         struct include_hash, NULL not CPP_NULL_BUFFER.  Remove all
10568         references to cpp_buffer->fname (delete entirely, or use
10569         ->ihash->name instead) and IF_STACK->fname.
10570         (cpp_push_buffer): Don't set new->underflow.
10571         (do_include): Use cpp_file_buffer.
10572
10573         * cpphash.c (collect_formal_parameters): Remove duplicate
10574         increment of argslen.  Pedwarn in C99 mode if __VA_ARGS__ is
10575         used as a macro argument name.  Don't append "..." to namebuf
10576         for varargs macros.  After we're done scanning, go through
10577         namebuf and make it NUL separated, not comma separated.
10578         (_cpp_compare_defs): Remove register tag from variables.
10579         Expect defn->argnames to be NUL separated.
10580         (_cpp_dump_definition): Expect defn->argnames to be NUL
10581         separated and in forward order.
10582         * cpphash.h: Update documentation of argnames field.
10583
10584 2000-03-08  Richard Henderson  <rth@cygnus.com>
10585
10586         * builtins.c (expand_builtin_strlen): Be prepared for strlensi
10587         to fail.  Don't pre-expand the source operand.
10588
10589         * i386.md (strlensi): Initialize eoschar and align before use.
10590
10591 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
10592
10593         * expr.c (expand_expr, case ARRAY_REF): Still check for missing
10594         CONSTRUCTOR element.
10595
10596 2000-03-08  Gavin Romig-Koch  <gavin@cetus.cygnus.com>
10597
10598         * mips.c (mips_expand_prologue): If the last
10599         named argument is the vararg marker "va_list", treat it as
10600         an unnamed argument.
10601
10602 2000-03-08  Clinton Popetz  <cpopetz@cygnus.com>
10603
10604         * dbxout.c (dbxout_parms): When correcting for promoted
10605         big-endian parameters, use the mode of the DECL_RTL rather
10606         than UNITS_PER_WORD.
10607
10608 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
10609
10610         * c-common.h (make_fname_decl): Declare.
10611         * c-common.c (make_fname_decl): Define.
10612         (declare_hidden_char_array): Remove.
10613         (declare_function_name): Use make_fname_decl.
10614         * c-decl.c (c_make_fname_decl): New function.
10615         (init_decl_processing): Set make_fname_decl.
10616
10617 Tue Mar  7 23:50:31 2000  Jeffrey A Law  (law@cygnus.com)
10618
10619         * cccp.c (handle_directive): Initialize backslash_newlines_p.
10620
10621 2000-03-07  Philipp Thomas  <pthomas@suse.de>
10622
10623         * po/POTFILES.in: Remove cppalloc.c from file list.
10624
10625 2000-03-07  Steve Chamberlain  <sac@pobox.com>
10626
10627         * pj.c (pj_expand_prologue): current_function->args_info is
10628         now current_function_args_info.
10629
10630         * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
10631         LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
10632         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
10633
10634 2000-03-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10635
10636         * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
10637         output as hexadecimal rather than the default octal.
10638
10639 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
10640
10641         * cpphash.c (special_symbol): Fix thinko in previous commit.
10642
10643 2000-03-07  Neil Booth  <NeilB@earthling.net>
10644
10645         * cppexp.c (struct operation, left_shift, right_shift,
10646         cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
10647         "int"s to "unsigned int"s.
10648         * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
10649         Similarly.
10650         * cpplib.h: Update for above.
10651         * mkdeps.c (deps_init, deps_calc_target): Cast pointers
10652         returned from allocations.
10653
10654         * cppinit.c (opt_comp, parse_options): New functions.
10655         (handle_option): Use parse_option to parse a single command
10656         line option, that possibly takes an argument.
10657         (cpp_handle_options): Sort the array of command line options on
10658         first invocation (non-ASCII hosts only).
10659         (print_help): Update.
10660
10661 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
10662
10663         * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
10664         backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.
10665
10666         * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
10667         initialized.
10668         * cppinit.c (cpp_cleanup): Free imp->nshort also.
10669
10670         * cpperror.c (cpp_print_containing_files,
10671         cpp_print_file_and_line, v_cpp_message): Rename to
10672         print_containing_files, print_file_and_line, and v_message.
10673         * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
10674         to _cpp_parse_expr, parse_escape, and lex.
10675         (parse_charconst): Remove broken multibyte support.
10676         * cppfiles.c (include_hash): Make static.
10677         (cpp_included): New function.
10678         (merge_include_chains, find_include_file, finclude,
10679         simplify_pathname): Rename to _cpp_merge_include_chains,
10680         _cpp_find_include_file, _cpp_read_include_file, and
10681         _cpp_simplify_pathname.
10682         * cpphash.c (cpp_lookup, free_definition, delete_macro,
10683         cpp_install, create_definition, macroexpand, compare_defs,
10684         dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
10685         _cpp_delete_macro, _cpp_install, _cpp_create_definition,
10686         _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
10687         * cppinit.c (cpp_handle_option): Rename to handle_option, make
10688         static.
10689         * cpplib.c: Remove extern prototype of cpp_parse_expr.
10690
10691         * cpphash.h: Update prototypes.
10692         * cpplib.h: Likewise.  Prototype _cpp_parse_expr here.
10693
10694 2000-03-07  Andrew Haley  <aph@cygnus.com>
10695
10696         * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
10697         PTRDIFF_TYPE should be based solely on Pmode.
10698         (SIZE_TYPE): ditto.
10699
10700 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10701
10702         * rtl.h (rtunion_def): Constify member `rtstr'.
10703         (emit_line_note_after, emit_line_note, emit_line_note_force,
10704         emit_note, decode_asm_operands): Constify.
10705
10706         * cse.c (canon_hash): Likewise.
10707
10708         * dbxout.c (dbxout_block): Likewise.
10709
10710         * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
10711         v_warning_for_asm): Likewise.
10712
10713         * dwarfout.c (function_start_label): Likewise.
10714
10715         * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
10716         emit_line_note_force): Likewise.
10717
10718         * final.c (last_filename, asm_insn_count, final_scan_insn,
10719         output_source_line): Likewise.
10720
10721         * function.h (struct emit_status): Likewise.
10722
10723         * gcse.c (hash_expr_1): Likewise.
10724
10725         * genattr.c (gen_attr, main): Likewise.
10726
10727         * genattrtab.c (struct function_unit, current_alternative_string,
10728         write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
10729         attr_numeral, check_attr_test, check_attr_value,
10730         convert_set_attr_alternative, convert_set_attr,
10731         compute_alternative_mask, simplify_by_exploding, gen_attr,
10732         gen_unit): Likewise.
10733
10734         * genflags.c (gen_insn): Likewise.
10735
10736         * gengenrtl.c (type_from_format): Likewise.
10737
10738         * genopinit.c (gen_insn): Likewise.
10739
10740         * genoutput.c (n_occurrences, process_template, process_template):
10741         Likewise.
10742
10743         * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
10744         Likewise.
10745
10746         * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
10747         Likewise.
10748
10749         * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
10750         ggc_set_mark, ggc_get_size): Likewise.
10751
10752         * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
10753
10754         * optabs.c (init_one_libfunc): Likewise.
10755
10756         * output.h (assemble_start_function): Likewise.
10757
10758         * recog.c (decode_asm_operands): Likewise.
10759
10760         * toplev.c (rest_of_compilation): Likewise.
10761
10762         * tree.h (emit_line_note_after, emit_line_note,
10763         emit_line_note_force): Likewise.
10764
10765         * varasm.c (asm_output_bss, asm_output_aligned_bss,
10766         asm_emit_uninitialised, assemble_start_function,
10767         assemble_variable, const_hash, compare_constant_1,
10768         find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
10769
10770         * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
10771
10772         * alpha/alpha.md (call_vms, call_value_vms): Likewise.
10773
10774         * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
10775
10776         * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
10777
10778         * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
10779         arm_dllimport_name_p): Likewise.
10780
10781         * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
10782         Likewise.
10783
10784         * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
10785
10786         * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10787
10788         * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
10789         arm_mark_dllexport, arm_mark_dllimport,
10790         arm_pe_encode_section_info): Likewise.
10791
10792         * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
10793         ASM_FINISH_DECLARE_OBJECT): Likewise.
10794
10795         * arm/thumb.c (thumb_function_prologue): Likewise.
10796
10797         * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
10798
10799         * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10800
10801         * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
10802
10803         * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
10804
10805         * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
10806
10807         * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10808
10809         * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
10810         ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
10811
10812         * i386/i386-protos.h (asm_output_function_prefix): Likewise.
10813
10814         * i386/i386.c (asm_output_function_prefix): Likewise.
10815
10816         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
10817
10818         * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10819
10820         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
10821
10822         * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
10823         ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
10824         ASM_OUTPUT_SECTION_NAME): Likewise.
10825
10826         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
10827
10828         * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
10829
10830         * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
10831
10832         * m32r/m32r.c (m32r_encode_section_info): Likewise.
10833
10834         * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10835
10836         * mcore/mcore.c (mcore_encode_section_info): Likewise.
10837
10838         * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10839
10840         * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10841
10842         * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10843
10844         * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
10845
10846         * mips/mips.md (movdi, movsi): Likewise.
10847
10848         * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10849
10850         * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10851
10852         * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
10853
10854         * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
10855         ASM_OUTPUT_ASCII): Likewise.
10856
10857         * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
10858         output_mi_thunk, output_toc): Likewise.
10859
10860         * rs6000/rs6000.md (movsi): Likewise.
10861
10862         * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
10863
10864         * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
10865
10866         * v850/v850.c (print_operand, print_operand_address,
10867         v850_encode_data_area): Likewise.
10868
10869 2000-03-07  Clinton Popetz  <cpopetz@cygnus.com>
10870
10871         * config/mips/mips.md (zero_extendsidi2): Always force operand
10872         one to memory for mips16.
10873
10874 Mon Mar  6 15:22:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10875
10876         * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
10877         (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
10878         (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
10879         (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
10880         (min_precision): Result is unsigned.
10881         (add_double, neg_double, mul_double): Low word is unsigned.
10882         (lshift_double, rshift_double, lrotate_double): Likewise.
10883         (rrotate_double, div_and_round_double): Likewise.
10884         (tree_floor_log2, compare_tree_int): New functions.
10885         (preserve_rtl_expr_temps): New declaration.
10886         * c-common.c (declare_hidden_char_array): Use compare_tree_int.
10887         (decl_attributes): Use tree_log2 to find alignment.
10888         Check for TREE_INT_CST_HIGH for format args.
10889         (min_precision): Now unsigned.
10890         Use tree_floor_log2.
10891         (truthvalue_conversion): Delete long-disabled code.
10892         * c-decl.c (finish_struct): Clean up tests on field width.
10893         (finish_function): Use compare_tree_int.
10894         * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
10895         * c-typeck.c (comptypes): Use tree_int_cst_equal.
10896         (default_conversion, digest_init): Use compare_tree_int.
10897         (build_binary_op): Use integer_all_onesp and compare_tree_int.
10898         Fix type errors in forming masks.
10899         * calls.c (initialize_argument_information): Use compare_tree_int.
10900         * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
10901         * except.c (expand_eh_region_start_tree): Use compare_tree_int.
10902         * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
10903         (store_field): Use compare_tree_int.
10904         (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
10905         (expand_expr, case ARRAY_REF): Use compare_tree_int.
10906         (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
10907         (do_store_flag): Use compare_tree_int.
10908         * fold-const.c (encode, decode): Low part is always unsigned.
10909         (force_fit_type, add_double, neg_double, mul_double): Likewise.
10910         (lshift_double, rshift_double, lrotate_double): Likewise.
10911         (rrotate_double, div_and_round_double, int_const_binop): Likewise.
10912         (fold_convert): Use compare_tree_int.
10913         (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
10914         (invert_truthvalue, case INTEGER_CST): Likewise.
10915         (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
10916         * mkdeps.c (deps_dummy_targets): Make I unsigned.
10917         * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
10918         (lshift_double, rshift_double, lrotate_double, rrotate_double):
10919         Likewise.
10920         * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
10921         (expand_end_case): Use compare_tree_int.
10922         (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
10923         * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
10924         (layout_decl): Likewise.
10925         (layout_record, layout_union): Make sizes unsigned.
10926         (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
10927         (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
10928         * tree.c (struct type_hash): hashcode is unsigned.
10929         (build_type_attribute_variant, type_hash_list): Likewise.
10930         (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
10931         (attribute_hash_list, build_array_type, build_method_type): Likewise.
10932         (build_complex_type): Likewise.
10933         (real_value_from_int_cst): Remove unneeded casts.
10934         (integer_all_onesp): Add casts.
10935         (tree_floor_log2, compare_tree_int): New functions.
10936         (build_index_type): Use tree_int_cst_sgn.
10937         * varasm.c (assemble_variable): Use compare_tree_int.
10938
10939 2000-03-06  Jason Merrill  <jason@casey.cygnus.com>
10940
10941         * cpphash.c (collect_expansion): Also catch ## at start of macro.
10942
10943         * varasm.c (make_decl_rtl): Don't add a number to members of
10944         local classes.
10945         (make_function_rtl): Likewise.
10946
10947 2000-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10948
10949         * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
10950         patch from 2000-01-28.
10951
10952 2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
10953
10954         * config/sh/sh.c: (barrier_align): Handle a delay slot that is
10955         filled with an insn from the jump target.
10956
10957 2000-03-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10958
10959         * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
10960         (c4x_external_ref): Likewise.
10961         * config/c4x/c4x.c (struct name_list): Likewise.
10962
10963 1999-12-16  Ben Collins  <bcollins@debian.org>
10964
10965         * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
10966         argument to genmultilib.
10967         * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
10968         the contents into the multilib.h header.
10969         * gcc.c: Declare multilib_exclusions for the specs file.
10970         (set_multilib_dir): Use it.
10971         (print_multilib_info): Likewise.
10972         * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
10973         to pass to genmultilib.
10974
10975 2000-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10976
10977         * builtins.c (built_in_class_names, built_in_names): Constify a
10978         char*.
10979
10980         * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
10981         int.
10982         (_mcleanup): Ensure value matches format specifier in sprintf.
10983
10984         * cpphash.c (special_symbol): Don't needlessly cast away
10985         const-ness.
10986
10987         * cppinit.c (base_name): Delete unused prototype.
10988
10989         * mkdeps.c (deps_init): Make definition K&R safe.
10990
10991         * tree.h (built_in_class_names, built_in_names): Constify a
10992         char*.
10993
10994 2000-03-06  Jakub Jelinek  <jakub@redhat.com>
10995
10996         * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
10997         floating point instructions for epilogue delay.
10998
10999         * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
11000         to gas if it supports .register pseudo.
11001
11002         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
11003         LONG_DOUBLE_TYPE_SIZE if not defined.
11004         Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
11005         LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
11006         * real.c: Likewise.
11007         * gengenrtl.c: Likewise.
11008         * print-rtl.c: Likewise.
11009         * rtl.c: Likewise.
11010         * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
11011         MASK_LONG_DOUBLE_128.
11012         * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
11013         * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
11014         * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
11015         (SUBTARGET_SWITCHES): Define.
11016         (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
11017         with -mlong-double-128.
11018         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
11019         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
11020         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
11021         (CC1_SPEC): Include -mlong-double-{64,128} as needed.
11022         * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
11023         (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
11024         with -mlong-double-128.
11025         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
11026         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
11027         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
11028         * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
11029         TARGET_LONG_DOUBLE_128): Define.
11030         * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11031         * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
11032         long double on TARGET_ARCH64.
11033
11034 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
11035
11036         * function.c (free_temps_for_rtl_expr): Don't free slots
11037         that have been pushed into a higher level.
11038
11039         Revert this patch:
11040         2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11041
11042 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11043
11044         * basic-block.h (ALLOCA_REG_SET): Remove.
11045         (INITIALIZE_REG_SET): New macro.
11046         * flow.c (update_life_info): Use it.
11047         (calculate_global_regs_live): Likewise.
11048         (propagate_block): Likewise.
11049         * global.c (build_insn_chain): Likewise.
11050         * haifa-sched.c (schedule_region): Likewise.
11051
11052 2000-03-05  Stephane Carrez  <stcarrez@worldnet.fr>
11053
11054         * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
11055         (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
11056         (DWARF_ARANGES_PAD_SIZE): New define.
11057         (output_aranges): Use it to pad the address range header.
11058         (DWARF_ROUND): Fix for non power of 2 rounding.
11059
11060 2000-03-05  Jason Merrill  <jason@casey.cygnus.com>
11061
11062         * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
11063
11064 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11065
11066         * tree.def (RTL_EXPR): Update documentation.
11067         * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
11068         * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
11069         * function.c (preserve_rtl_expr_temp): New function.
11070         (preserve_rtl_expr_temps): Likewise.
11071         (preserve_rtl_expr_result): Use it.
11072
11073         Revert this patch:
11074         2000-03-04  Mark Mitchell  <mark@codesourcery.com>
11075
11076 2000-03-04  Thomas Schuster <Thomas.Schuster@gmx.net>
11077
11078         * regmove.c (copy_src_to_dest)  Do not create src->dest move
11079         for unchanging destination.
11080
11081 2000-03-04  Mark Mitchell  <mark@codesourcery.com>
11082
11083         * function.h (struct sequence_stack): Remove rtl_expr.
11084         (struct emit_staus): Likewise.
11085         (seq_rtl_expr): Remove.
11086         * tree.h (free_temps_for_rtl_expr): Don't declare.
11087         (start_sequence_for_rtl_expr): Likewise.
11088         * rtl.h (preserve_rtl_expr_result): Likewise.
11089         * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
11090         (start_sequence_for_rtl_expr): Remove.
11091         (push_topmost_sequence): Don't save sequence_rtl_expr.
11092         (pop_topmost_sequence): Remove comment about not restoring it.
11093         (end_sequence): Don't set seq_rtl_expr.
11094         (init_emit): Don't initialize it.
11095         (mark_sequence_stack): Don't mark it.
11096         (mark_emit_status): Likewise.
11097         * except.c (protect_with_terminate): Use
11098         start_sequence_for_rtl_expr, not start_sequence.
11099         * expr.c (expand_expr, case RTL_EXPR): Don't call
11100         preserve_rtl_expr_result or free_temps_for_rtl_expr.
11101         * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
11102         (preserve_rtl_expr_result): Remove.
11103         (free_temps_for_rtl_expr): Likewise.
11104         (pop_temp_slots): Likewise.
11105         (mark_temp_slot): Don't mark the rtl_expr.
11106         * stmt.c (expand_start_stmt_expr): Use start_sequence, not
11107         start_sequence_for_rtl_expr.
11108
11109 2000-03-04  Zack Weinberg  <zack@wolery.cumb.org>
11110
11111         * mkdeps.c, mkdeps.h: New files.
11112         * po/POTFILES.in: Add them.
11113         * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
11114         (cpplib.o, cppinit.o): Depend on mkdeps.h.
11115         (mkdeps.o): New target.
11116
11117         * cppfiles.c: Delete deps_output.
11118         * cppinit.c: Include mkdeps.h.  Delete known_suffixes,
11119         OBJECT_SUFFIX, and base_name.
11120         (cpp_cleanup): Use deps_free.  Free ihash->name when clearing
11121         the include hash.
11122         (initialize_dependency_output): Use deps_init,
11123         deps_add_target, deps_calc_target, and deps_add_dep.  Remove
11124         all the unnecessary string bashing.
11125         (cpp_finish): Use deps_write.  Remove an unnecessary nesting
11126         level.
11127         * cpplib.c (do_include): Use deps_add_dep.
11128         * cpplib.h (struct cpp_reader): Replace deps_buffer,
11129         deps_allocated_size, deps_size, deps_column members with
11130         single pointer to a struct deps.  Delete prototype of
11131         deps_output.
11132
11133         * cppinit.c: Fix thinko in previous patch.
11134
11135 Sat Mar  4 11:32:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11136
11137         * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
11138         * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
11139         (mode_for_size_tree): New function.
11140         (layout_decl, layout_type): Call it and clean up BLKmode checks.
11141         * tree.h (mode_for_size_tree): New declaration.
11142
11143         * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
11144
11145 2000-03-04  Jason Merrill  <jason@casey.cygnus.com>
11146
11147         * stmt.c (is_body_block): Move...
11148         * dwarfout.c, dwarf2out.c: ...from here.
11149         * tree.h: Declare it.
11150         * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
11151         * final.c (final_start_function): Do call remove_unnecessary_notes
11152         when scheduling.
11153
11154 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
11155
11156         * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
11157
11158         * cpplib.h (_dollar_ok): New macro.
11159         (is_idchar, is_idstart): Use it.
11160         (IStable): Rename to _cpp_IStable.  Declare it const if
11161         gcc >=2.7 or C99.  Delete all references to FAKE_CONST.
11162         (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
11163         is_space): Update for renamed IStable.
11164
11165         * cppinit.c: Delete all references to FAKE_CONST and CAT
11166         macros. Define init_IStable as empty macro if gcc >=2.7 or
11167         C99. Change TABLE() to ISTABLE and hardcode name of table.
11168         (cpp_start_read): Don't change the IStable based on
11169         dollars_in_ident.
11170
11171         * cpphash.c (unsafe_chars): Add pfile argument.  All callers
11172         changed.  Handle '$' for char1 correctly.
11173         * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
11174
11175         * cppexp.c (tokentab2): Make const.
11176         (cpp_lex): Make toktab const.
11177         * cppinit.c (include_defaults_array): Make const.
11178         (initialize_standard_includes): Make default_include const.
11179
11180 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
11181
11182         * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
11183         (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
11184         (gen_decl_die): Likewise.
11185         * dwarfout.c (dwarfout_file_scope_decl): Likewise.
11186         (output_decl): Likewise.
11187
11188         * varasm.c (make_function_rtl): If we change the name used in the
11189         rtl, update DECL_ASSEMBLER_NAME accordingly.
11190         (make_decl_rtl): Likewise.
11191
11192         * toplev.c (rest_of_compilation): Tweak formatting.
11193
11194         * toplev.c (rest_of_compilation): find_loop_tree_blocks before
11195         remove_unnecessary_notes.
11196         (debug_ignore_block): New fn.
11197         * toplev.h: Declare it.
11198         * emit-rtl.c (remove_unncessary_notes): Call it.
11199         * dwarf2out.c (dwarf2out_ignore_block): New fn.
11200         * dwarf2out.h: Declare it.
11201         * final.c (final_start_function): Don't call remove_unnecessary_notes
11202         if we did insn scheduling.
11203
11204 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
11205
11206         * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
11207         * cpplib.h: Delete SET_CPP_PEDANTIC.
11208
11209 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11210
11211         * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
11212         result is a RECORD_TYPE.
11213
11214 2000-03-03  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11215
11216         * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
11217
11218 2000-03-03  Richard Henderson  <rth@cygnus.com>
11219
11220         * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
11221         addition over compliments over shifts.
11222
11223 Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11224
11225         * reload1.c (reload_combine_note_use): Handle return register USEs.
11226         REG case: Handle multi-hard-register hard regs.
11227
11228 Fri Mar  3 07:38:34 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11229
11230         * md.texi: Document use of '*' in insn pattern name.
11231
11232 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
11233
11234         * calls.c (special_function_p): operator new may not be malloc-like.
11235
11236         * gcse.c (dump_hash_table): Really fix error in last change.
11237
11238 2000-03-02  Denis Chertykov  <denisc@overta.ru>
11239
11240         * avr.c (print_operand): Use print_operand_address instead of
11241         output_addr_const.
11242         * avr/libgcc.S: Cleanup code.
11243
11244 2000-03-02  Richard Henderson  <rth@cygnus.com>
11245
11246         * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
11247
11248 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
11249
11250         * tree.h (TYPE_ALIGN_UNIT): New macro.
11251
11252 2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
11253
11254         * i386.c: (constant_call_address_operand): Reject CONST_INT.
11255
11256 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
11257
11258         * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
11259         for the buffer.
11260         (SET_CPP_PEDANTIC): New macro.
11261         * cpplib.c (do_include): Don't bother checking system_header_p.
11262         (do_warning, do_ident, do_assert, do_unassert): Likewise.
11263         * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
11264
11265         * function.h (struct expr_status): Add x_arg_space_so_far.
11266         (arg_space_so_far): New macro.
11267         * expr.c (init_expr): Initialize it.
11268         * calls.c (emit_call_1): Reset it.
11269         (compute_argument_block_size, expand_call): Use it.
11270         (expand_call, store_one_arg): Increment it.
11271
11272 Thu Mar  2 17:27:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11273
11274         * varasm.c (output_constant): Strip off a CONVERT_EXPR to
11275         a UNION_TYPE.
11276
11277 2000-03-02  Zack Weinberg  <zack@wolery.cumb.org>
11278
11279         * cppfiles.c (cpp_read_file): New function.
11280
11281         * cpphash.c (collect_expansion): Make sure to reset last_token
11282         to NORM when we hit a string.  Handle trailing whitespace
11283         properly when the expansion is empty.
11284         (create_definition): Disable line commands while parsing the
11285         directive line.
11286         (dump_definition): If pfile->lineno == 0, output a line
11287         command ahead of the dump, and add a trailing newline.
11288
11289         * cppinit.c (append_include_chain): Add fifth argument, which
11290         indicates whether or not system headers are C++ aware.
11291         (initialize_standard_includes): New function,
11292         broken out of read_and_prescan.  Pass 'cxx_aware' value from
11293         the include_defaults_array on to append_include_chain.
11294         (dump_special_to_buffer): Const-ify char array.
11295         (builtin_array): Don't dump __BASE_FILE__.
11296         (cpp_start_read): Use cpp_read_file.  Reorder code for
11297         clarity.  Don't output line commands here for -D/-A/-U
11298         switches.  Don't call deps_output for files included with
11299         -include or -imacros.
11300
11301         * cpplib.c (do_define): Don't pay any attention to the second
11302         argument.
11303         (cpp_expand_to_buffer): Disable line commands while scanning.
11304         (output_line_command): Work in the file buffer.
11305         * cpplib.h: Remove no_record_file flag from struct cpp_reader.
11306         Fix formatting of comments.  Prototype cpp_read_file.
11307
11308 Thu Mar  2 13:29:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11309
11310         * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
11311         reference the language-equivalent of sizetype.
11312         * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
11313         * fold-const.c (size_binop, size_diffop): Put back checks.
11314         * gcse.c (dump_hash_table): Fix minor error in last change.
11315         * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
11316         Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
11317         all sizetypes.
11318
11319 Thu Mar  2 12:48:45 MET 2000  Jan Hubicka  <jh@suse.cz>
11320
11321         * calls.c (expand_call)  Do not attempt to combine stack adjustments
11322         with inhibit_defer_pop set.
11323
11324 2000-03-01  Mark Mitchell  <mark@codesourcery.com>
11325
11326         * stor-layout.c (layout_decl): Allow front-ends to explicitly set
11327         the DECL_SIZE for a FIELD_DECL.
11328
11329 2000-03-01  Bruce Korb  <bkorb@gnu.org>
11330
11331         * fixinc/inclhack.tpl: remove unused symlinks
11332         * fixinc/README: GCC Maintainer info
11333         * fixinc/inclhack.sh: regen
11334         * fixinc/fixincl.sh: regen
11335
11336 2000-03-01  Zack Weinberg  <zack@wolery.cumb.org>
11337
11338         * cpphash.c (collect_expansion): Trim trailing white space
11339         from macro definitions, but don't go past the last insertion
11340         point.
11341
11342 Wed Mar  1 12:14:31 MET 2000  Jan Hubicka  <jh@suse.cz>
11343
11344         * i386.md (mulqi3): New pattern.
11345
11346 2000-02-29  Zack Weinberg  <zack@wolery.cumb.org>
11347
11348         * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
11349         token types.
11350         (struct cpp_reader): Add parsing_if_directive and
11351         parsing_define_directive flags.
11352         (struct cpp_options): Remove output_conditionals flag.
11353         (check_macro_name): Delete prototype.
11354
11355         * cpphash.h (struct macrodef): Delete.
11356         (struct reflist): Separate from struct definition.
11357         (struct definition): Remove unused fields.  Add column number.
11358         (create_definition): Returns a DEFINITION *.  Takes a
11359         cpp_reader * and an int.
11360
11361         * cpphash.c (SKIP_WHITE_SPACE): Delete.
11362         (PEEKC): Copy defn from cpplib.c.
11363         (rest_extension, REST_EXTENSION_LENGTH): Delete.
11364         (struct arg): New.
11365         (struct arglist): Simplify.
11366         (collect_expansion): Rewrite.  Get tokens by calling
11367         cpp_get_token.  Add more error checking.
11368         (collect_formal_parameters): New function, broken out of
11369         create_definition and reworked to use get_directive_token.
11370         (create_definition): All real work is now in collect_expansion
11371         and collect_formal_parameters.  do_define handles finding the
11372         macro name.  Return a DEFINITION, not a MACRODEF.
11373         (macroexpand): Replace bcopy with memcpy throughout.  Replace
11374         character-at-a-time copy loop with memcpy and pointer increments.
11375         (compare-defs): d1->argnames / d2->argnames might be null.
11376
11377         * cpplib.c (copy_rest_of_line): Delete function.
11378         (skip_rest_of_line): Do all the work ourselves.
11379         (skip_string): New function.
11380         (parse_string): Use skip_string.
11381         (get_macro_name): New function.
11382         (check_macro_name): Delete.
11383         (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
11384         (cpp_skip_hspace): Use CPP_BUMP_LINE.
11385         (handle_directive): ICE if we're called on a macro buffer.
11386         (do_define): Determine macro name and type (funlike/objlike)
11387         here.  Expunge all uses of MACRODEF.
11388         (cpp_push_buffer): Set line_base to NULL.
11389         (do_undef, read_line_number): Don't worry about getting a POP token.
11390         (eval_if_expression): Set/reset parsing_if_directive around
11391         cpp_parse_expr. Don't clear only_seen_white.
11392         (skip_if_group): Remove output_conditionals logic.  Use
11393         skip_rest_of_line.
11394         (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
11395         tokens under appropriate conditions.
11396         (cpp_unassert): Call do_unassert not do_assert.  Oops.
11397
11398         * cppexp.c (parse_defined): New function, break out of
11399         cpp_lex.
11400         (cpp_lex): We now get CPP_ASSERTION tokens and can check them
11401         ourselves, with cpp_defined.
11402         * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
11403
11404         * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
11405         * gcc.dg/strpaste-2.c: New.
11406
11407 2000-02-29  Mark Mitchell  <mark@codesourcery.com>
11408
11409         * fold-const.c (size_binop): Don't asert inputs are the same and
11410         have TYPE_IS_SIZETYPE set.
11411         (size_diffop): Likewise.
11412
11413 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
11414
11415         * dwarfout.c (output_block): Output abstract blocks even if they
11416         don't have TREE_ASM_WRITTEN set.
11417
11418         * calls.c (emit_library_call): Check for null REG.
11419
11420 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11421
11422         * c-decl.c (current_function_decl): Move to toplev.c.
11423         (init_decl_processing): Don't add current_function_decl as a ggc
11424         root here.
11425         * dbxout.c (dbxout_symbol): Change return type to int.
11426         (dbxout_symbol_location, dbxout_syms): Likewise.
11427         (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
11428         any locals. Use current_function_func_begin_label if set.
11429         * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
11430         * dwarf2out.c (dwarf2out_begin_prologue): Set
11431         current_function_func_begin_label.
11432         * final.c (final_start_function): Reset it.
11433         * toplev.c (current_function_decl): Define it here.
11434         (current_function_func_begin_label): New variable.
11435         (main): Add both as ggc roots.
11436         * tree.h (current_function_func_begin_label): Declare.
11437
11438 Tue Feb 29 14:07:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11439
11440         * gcse.c: Cleanups throughout: mostly white-space, but also
11441         some minor rearrangement of code.
11442
11443 Tue Feb 29 10:45:59 2000  Jeffrey A Law  (law@cygnus.com)
11444
11445         * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
11446         returns a PARALLEL.  Use emit_group_load and use_group_regs
11447         as needed.
11448         (emit_library_call_value): Similarly.
11449
11450         * pa/t-pa: Use quadlib.c instead of quadlib.asm.
11451         * pa/quadlib.asm: Remove.
11452         * pa/quadlib.c: New file.
11453
11454         * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
11455         * configure: Rebuilt.
11456
11457 2000-02-29  Philip Blundell  <pb@futuretv.com>
11458
11459         * config/arm/conix-elf.h: New file.
11460         * configure.in (arm*-*-conix*): New configuration.
11461         * configure: Regenerate.
11462
11463 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
11464
11465         * dwarf2out.c (gen_block_die): Output abstract blocks even if they
11466         don't have TREE_ASM_WRITTEN set.
11467
11468 Mon Feb 28 21:07:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11469
11470         * Eliminate DECL_FIELD_SIZE.
11471         * builtins.c (built_in_class_names, built_in_names): New variables.
11472         * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
11473         * expr.c (expand_expr, case COMPONENT_REF): Get field size from
11474         DECL_SIZE, not DECL_FIELD_SIZE.
11475         * print-tree.c (print_node): Remove code that prints extra blank
11476         lines in some cases.
11477         Properly handle inline and builtin function cases.
11478         * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
11479         * tree.h (built_in_class_named, built_in_names): New declarations.
11480         (union tree_decl): Rename internal unions to u1 and u2 and change
11481         some of their components.
11482         Add new field built_in_class.
11483         (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
11484         Reflect above changes.
11485         (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
11486         (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
11487         * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
11488         (encode_field_decl): Likewise; also remove obsolete test for bitfield.
11489
11490 2000-02-28  Dmitri Makarov  <dim@windriver.com>
11491
11492         * extend.texi: Document ARM's support for long/short calls.
11493
11494         * invoke.texi: Document ARM's -mlong-calls command line switch.
11495
11496         * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
11497         (arm_encode_call_attribute): Add prototype.
11498         (arm_set_default_type_attribute): Add prototype.
11499         (arm_strip_name_encoding): Add prototype.
11500
11501         * config/arm/arm.c (arm_init_cumulative_args): replace
11502         initialisation og 'long_calls' field with initialisation of
11503         'call_cookie' field.
11504         (enum arm_pragma_enum): New enum.
11505         (arm_pragma_long_calls): New static variable.
11506         (arm_process_pragma): Also process "#pragma long_calls_off".
11507         (arm_valid_type_attribute_p): Accept short_call attribute.
11508         (arm_comp_type_attributes): Check long/short call attributes.
11509         (arm_encode_call_attribute):  New function:  Encode long_call
11510         or short_call attribute in function name.
11511         (arm_set_default_type_attributes): New function: Assign
11512         default attributes to newly defined type.
11513         (current_file_function_operand): New function: Return true if
11514         the symbol is a function which has already been compiled.
11515         (arm_is_longcall_p): New function: Return true if the
11516         indicated function should be called via a long call.
11517         (arm_get_strip_length): New function.  Returns number of
11518         prefix characters to be stripped from a function's name.
11519         (arm_strip_name_encoding): New function.  Strip prefix characters
11520         from a function's name.
11521
11522         * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
11523         with 'call_cookie'.
11524         (SHORT_CALL_FAG_CHAR): Define.
11525         (LONG_CALL_FAG_CHAR): Define.
11526         (ENCODED_SHORT_CALL_ATTR_P): Define.
11527         (ENCODED_LONG_CALL_ATTR_P): Define.
11528         (ARM_NAME_ENCODING_LENGTHS): Define.
11529         (STRIP_NAME_ENCODING): Define.
11530         (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
11531         (ARM_ENCODE_CALL_TYPE): Define.
11532         (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
11533         (ARM_DECLARE_FUNCTION_SIZE): Define.
11534         (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
11535
11536         * config/arm/arm.md (call): Call arm_is_longcall_p to decide
11537         if a long call is needed.
11538         (call_value): Ditto.
11539         (call_symbol): Ditto.
11540
11541         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
11542         ARM_DECLARE_FUNCTION_SIZE.
11543
11544         * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
11545         (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
11546         (ARM_STRIP_NAME_ENCODING): Undefine.
11547         (STRIP_NAME_ENCODING): Undefine.
11548         (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
11549         (ASM_DECLARE_FUNCTION_NAME): Ditto.
11550         (ASM_OUTPUT_COMMON): Ditto.
11551         (ASM_DECLARE_OBJECT_NAME): Ditto.
11552
11553         * config/arm/pe.c (arm_dllexport_name_p): Check for
11554         ARM_PE_FLAG_CHAR.
11555         (arm_dllimport_name_p): Ditto.
11556         (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
11557         (arm_mark_dllimport): Ditto.
11558
11559 Mon Feb 28 22:11:12 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11560
11561         * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
11562
11563 2000-02-28  Mark Mitchell  <mark@codesourcery.com>
11564
11565         * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
11566
11567 2000-02-28  Zack Weinberg  <zack@wolery.cumb.org>
11568
11569         * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
11570         * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
11571         NO_BUILTIN_WCHAR_TYPE is not defined.
11572         (CPP_WCHAR_TYPE): Delete.
11573         * cccp.c (main): Don't change wchar_type if cplusplus.
11574         (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
11575
11576 2000-02-28  Nick Clifton  <nickc@cygnus.com>
11577
11578         * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
11579
11580 Mon Feb 28 14:21:15 2000  Catherine Moore  <clm@cygnus.com>
11581
11582         * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
11583         (ASM_WEAKEN_LABEL): Define.
11584
11585 Mon Feb 28 13:07:19 MET 2000  Jan Hubicka  <jh@suse.cz>
11586
11587         * expr.c (store_constructor): Do not emit USE.
11588         * rtl.h (stupid_life_analysis): Remove.
11589
11590 Mon Feb 28 07:03:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11591
11592         * function.c (number_blocks): Reset next_block_index based on
11593         what debugging format is used, not what is defined.
11594
11595         * lcm.c: Minor reformatting throughout.
11596         (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
11597
11598         * toplev.c (rest_of_compilation): Account for time in
11599         optimize_mode_switching.
11600
11601         * jump.c (jump_optimize_1): Don't call delete_barrier_successors
11602         if only marking labels.
11603
11604 Mon Feb 28 12:53:57 MET 2000  Jan Hubicka  <jh@suse.cz>
11605
11606         * calls.c (expand_call): Attempt to combine stack adjustments with
11607         pending stack adjustments.
11608
11609 Mon Feb 28 11:34:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11610
11611         * loop.c (reg_in_basic_block_p): Don't abort when falling through
11612         to the end of the function.
11613
11614 2000-02-27  Mark Mitchell  <mark@codesourcery.com>
11615
11616         * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
11617         blocks.
11618         * final.c (next_block_index): Remove.
11619         (max_block_depth): Likewise.
11620         (pending_blocks): Likewise.
11621         (init_final): Don't initialize them.
11622         (final_start_function): Don't set next_block_index.  Set up
11623         BLOCK_NUMBER.
11624         (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
11625         * function.h (number_blocks): New function.
11626         * function.c (get_block_vector): New function.
11627         (identify_blocks): Use it.
11628         (reorder_blocks): Set NOTE_BLOCK.
11629         (number_blocks): New function.
11630         * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
11631         * tree.h (BLOCK_NUMBER): New macro.
11632         (tree_block): Add block_num field.
11633         * dbxout.c (next_block_number): Remove.
11634         (dbxout_init): Don't set it.
11635         (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
11636         set.  Use BLOCK_NUMBER, rather than next_block_num, to determine
11637         block numbers.
11638         * toplev.c (rest_of_compilation): Always call
11639         find_loop_tree_blocks.  Fix indentation.
11640         * dwarf2out.c (next_block_number): Remove.
11641         (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
11642         to determine block numbers.
11643         (gen_inlined_subroutine_die): Likewise.
11644         (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
11645         (decls_for_scope): Don't increment next_block_number.
11646         * dwarfout.c (next_block_number): Remove.
11647         (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
11648         to determine block numbers.
11649         (output_inlined_subroutine_die): Likewise.
11650         (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
11651         (output_decls_for_scope): Don't increment next_block_number.
11652         * sdbout.c (next_block_number): Remove.
11653         (sdbout_block): Use BLOCK_NUMBER.
11654         (sdbout_begin_block): Simplify.
11655         * xcoffout.c (next_block_number): Remove.
11656         (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
11657         (xcoffout_begin_block): Don't set next_block_number.
11658         (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
11659         next_block_number.
11660
11661 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11662
11663         * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
11664         (expand_builtin_strcpy): Pass correct type to size_binop.
11665         (expand_builtin_strcmp): Likewise.
11666         Clean up conditional structure.
11667         * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
11668         (complete_array_type): Don't use size_binop for MAXINDEX.
11669         * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
11670         (c_sizeof_nowarn, c_size_in_bytes): Likewise.
11671         (c_alignof): Use size_one_node.
11672         (build_unary_op): Pass arg of proper type to size_binop.
11673         (really_start_incremental_init, push_init_level): Use sizetype for
11674         constructor{,_bit,_unfilled}_index.
11675         (pop_init_label, output_init_element): Likewise.
11676         (output_pending_init_elements, process_init_element): Likewise.
11677         * calls.c (compute_argument_block_size): Field VAR is ssizetype.
11678         * expr.c (store_expr): Use size_int.
11679         (store_constructor): Use proper types for size_binop args.
11680         (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
11681         (expand_expr_unaligned): Likewise.
11682         (string_contant): Return object of sizetype.
11683         * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
11684         (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
11685         (ARGS_SIZE_TREE): Pass proper types to size_binop.
11686         * fold-const.c (int_const_binop): Refine when size_int is called.
11687         (fold_convert): Likewise.
11688         (size_int_wide): Rework to take KIND as arg, only take low order
11689         bits, handle new sizetype_tab datatype, and chain entries in
11690         size_table.
11691         (size_int_type_wide): New function.
11692         (size_binop): Validate types of arguments.
11693         (ssize_binop): Deleted.
11694         (size_diffop): New function.
11695         (extract_muldiv): Only fold division into multiplication for sizetypes.
11696         * function.c (assign_parms): Use size_diffop and make sure
11697         VAR field is of ssizetype; also pass proper type to size_binop.
11698         (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
11699         (round_down): Deleted from here.
11700         * store-layout.c (sizetype_tab): Now an array.
11701         (sizetype_set, early_root_list): New variables.
11702         (variable_size): Use size_one_node.
11703         (round_up): Pass proper type to size_binop.
11704         (round_down): Moved to here and corrected as above.
11705         (layout_record): Pass proper arg types to size_binop.
11706         (layout_type): Likewise.
11707         If sizetype_set is zero, record the type just laid out.
11708         (make_unsigned_type): Don't call set_sizetype;
11709         (make_signed_type): Likewise; also, call fixup_signed_type.
11710         (initialize_sizetypes): New function.
11711         (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
11712         set name of bitsizetype to "bit_size_type".
11713         Fix up type of sizes of all types made before call.
11714         * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
11715         * tree.c (fix_sizetype): Deleted.
11716         (build_common_tree_nodes): Call initialize_sizetypes.
11717         (build_common_tree_nodes_2): Don't call fix_sizetype.
11718         * tree.h (TYPE_IS_SIZETYPE): New macro.
11719         (initialize_sizetype): New declaration.
11720         (enum size_type_kind): New type.
11721         (struct sizetype_tab): Deleted.
11722         (sizetype_tab): Now array; adjust sizetype macros.
11723         (size_diffop, size_int_type_wide): New functions.
11724         (size_int_wide): Change number of args and type; access macros changed.
11725         (ssize_int, sbitsize_int): New macros.
11726         * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
11727         (ROUND_TYPE_SIZE_UNIT): New macro.
11728
11729 2000-02-27  Zack Weinberg  <zack@wolery.cumb.org>
11730
11731         * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
11732
11733 Sun Feb 27 07:44:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11734
11735         * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
11736         Mark as possibly unused.
11737
11738         * cse.c (cse_insn): Delete dead code involving tablejump.
11739         Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
11740
11741         * Makefile.in (libcpp.a): Start by deleting it.
11742
11743 2000-02-27  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11744
11745         * cpplib.h (enum file_change_code): Added rename_file.
11746         * cpplib.c (do_line): If a filename is given, set file_change to
11747         rename_file.
11748         (output_line_command): If file_change is rename_file, always
11749         output a # directive with the file name.
11750
11751         * cpplib.c (do_pragma): Accept #pragma without consecutive token.
11752
11753 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
11754
11755         * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
11756         when copying a PARM_DECL or RESULT_DECL.
11757
11758 2000-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11759
11760         * fix-header.c (recognized_function): Also fix prototypes for
11761         functions taking "void".
11762
11763 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
11764
11765         * reload1.c (do_output_reload): Check reg_reloaded_valid before
11766         looking at reg_reloaded_contents.
11767
11768 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
11769
11770         * Makefile.in (STMP_FIXINC): New toggle.
11771         (LIBGCC2_DEPS): Delete all references.
11772         (stmp-headers): Delete target.  All references either deleted
11773         or changed to stmp-int-headers.
11774         (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
11775         (LIBCPP_OBJS): Take out cppalloc.o.
11776         (cppalloc.o): Delete target.
11777         (stmp-int-hdrs): Depend on $(STMP_FIXINC).
11778         (gen-protos, fix-header): Link with libiberty.a.
11779         * build-make: Don't change FIXINCLUDES.  Override STMP_FIXINC
11780         to empty.
11781
11782         * configure.in: Remove refs to strerror.
11783         * acconfig.h: Take out NEED_DECLARATION_STRERROR.
11784         * system.h: Take out strerror stanza.
11785
11786         * cpperror.c (my_strerror): Delete function.
11787         (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
11788         * cppmain.c (main): Call xmalloc_set_program_name first thing.
11789         * cppalloc.c: Delete file.
11790         * gen-protos.c: Don't provide xrealloc.
11791
11792         * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
11793         xstrerror throughout.
11794
11795 2000-02-26  Bruce Korb  <bkorb@gnu.org>
11796
11797         * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
11798         match for DOS headers, too.
11799         * fixinc/inclhack.sh,fixincl.x: Regenerate.
11800
11801 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
11802
11803         * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define.  The default
11804         is right for most ELF targets.
11805         * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
11806         Let the default file use %U properly.
11807         * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define.  Use the
11808         default.
11809
11810         * config/fp-bit.c (pack_d): Properly handle rounding of denormal
11811         numbers.
11812
11813 Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11814
11815         * toplev.c (documented_lang_options): Correct spelling error.
11816         (decode_d_option, decode_f_option, main): Likewise.
11817
11818         * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
11819
11820         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
11821         to tell assembler it is permitted to expand large constants.
11822
11823 2000-02-25  Mumit Khan  <khan@xraylith.wisc.edu>
11824
11825         * protoize.c: (AUX_INFO_SUFFIX): New macro.
11826         (aux_info_suffix): Use.
11827         (SAVE_SUFFIX): New macro.
11828         (save_suffix): Use.
11829         (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
11830         (gen_aux_info_file): Use aux_info_suffix instead of ".X".
11831         (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
11832
11833         * invoke.texi (Running Protoize): Update documentation.
11834
11835 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
11836
11837         * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
11838
11839 2000-02-25  John Wehle  (john@feith.com)
11840
11841         * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
11842
11843 2000-02-25  Anthony Green  <green@cygnus.com>
11844
11845         * toplev.c (rest_of_compilation): Rebuild jump labels if
11846         combine_instructions has created a new direct jump.
11847         * combine.c (try_combine): Add new_direct_jump_p argument.  Set it
11848         when appropriate.
11849         (combine_instructions): Call try_combine with new argument.
11850         Return non-null value when new direct jump instruction is created.
11851         * rtl.h: combine_instructions returns an int.
11852
11853 Fri Feb 25 19:49:08 2000  Jeffrey A Law  (law@cygnus.com)
11854
11855         * cse.c (cse_insn): Replace the PATTERN of the insn with an new
11856         jump when changing a computed jump into a jump to a known
11857         target.
11858
11859 Fri Feb 25 19:22:44 2000  Graham Stott <grahams@rcp.co.uk>
11860
11861         * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
11862         to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
11863
11864         * i386.md (define_expand "clrstrsi"): Fix typo.
11865
11866 Fri Feb 25 18:49:39 2000  "K. Richard Pixley" <rich@microunity.com>
11867
11868         * rtl.texi: Fix typo.
11869
11870 Fri Feb 25 20:02:35 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11871
11872         * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
11873         UNITS_PER_WORD.  Change caller initial_elimination_offset.
11874         (rounded_frame_size): Take into account that argument pushed has
11875         changed.  Fix TARGET_ALIGN_DOUBLE problem.
11876
11877 2000-02-25  Geoff Keating  <geoffk@cygnus.com>
11878
11879         * haifa-sched.c (schedule_block): Explain the real reason
11880         we delete REG_SAVE_NOTEs on the first insn of a block.
11881         Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
11882
11883 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
11884
11885         * input.h (push_srcloc): New function.
11886         (pop_srcloc): Likewise.
11887         * toplev.c (push_srcloc): Define it.
11888         (pop_srcloc): Likewise.
11889
11890 2000-02-24  Richard Henderson  <rth@cygnus.com>
11891
11892         * flow.c (life_analysis): When collecting reg info, clear
11893         regs_ever_live.
11894
11895 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11896
11897         Fix bug exposed by reload.c no longer rounding the frame
11898         size to BIGGEST_ALIGNMENT:
11899         * sh.c (rounded_frame_size): New function.
11900         (sh_expand_prologue, sh_expand_epilogue): Use it.
11901         (initial_elimination_offset): Likewise.
11902
11903 Thu Feb 24 20:04:11 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11904
11905         Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
11906         * sh-protos.h (sh_need_epilogue): Declare.
11907         * sh.c (sh_need_epilogue_known): New static variable.
11908         (sh_need_epilogue): New function.
11909         (function_epilogue): Clear need_epilogue_known.
11910         * sh.md (return): Split into expander / insn pattern.
11911         Make the expander conditional on ! sh_need_epilogue ().
11912
11913 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
11914
11915         * machmode.h (get_mode_alignment): Declare.
11916         (GET_MODE_ALIGNMENT): Call it.
11917         * stor-layout.c (get_mode_alignment): New function. Make
11918         sure alignment is always power of 2.
11919
11920 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11921
11922         * i386.h: Remove useless definition of "I386" and misleading
11923         comment above it.
11924
11925 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11926
11927         * tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
11928         under which TREE_PERMANENT will be set.
11929         * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
11930         build1): Use TREE_SET_PERMANENT.
11931         * print-tree.c (print_node): Don't report value of
11932         TREE_PERMANENT if ggc_p is true.
11933
11934         * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
11935         decide whether to give a type a new alias set.
11936         * objc/objc-act.c (build_objc_string_object): Never copy the string.
11937         * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
11938         of value of 'obstack'.
11939
11940
11941 2000-02-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11942
11943         * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
11944
11945 2000-02-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11946
11947         * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
11948         * cpplib.c (cpp_get_token): Produce them.
11949         * cppexp.c (cpp_lex): Handle them.
11950
11951 2000-02-23  Nick Clifton  <nickc@cygnus.com>
11952
11953         * config/arm/arm.c (arm_comp_type_attributes): Simply and
11954         comment tests on type attributes.
11955
11956 Wed Feb 23 16:42:21 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11957
11958         * final.c (shorten_branches): Make value passed to LOOP_ALIGN
11959         conform to documentation.
11960         * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
11961         to check for special cases.
11962         * sh-protos.h (sh_loop_align): Declare.
11963         * sh.c (sh_loop_align): Define.
11964
11965 2000-02-22  Andrew Haley  <aph@cygnus.com>
11966
11967         * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
11968         (SIZE_TYPE): Is 32 bits when using -mgp32.
11969         (PTRDIFF_TYPE): Ditto.
11970
11971 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11972
11973         * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
11974
11975 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11976
11977         * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
11978         BIGGEST_FIELD_ALIGNMENT a constant.
11979
11980 2000-02-21  Jason Merrill  <jason@casey.cygnus.com>
11981
11982         * dwarf2out.c (output_line_info): Put the marker for the end of
11983         the line number info at the actual end.
11984         (gen_struct_or_union_type_die): Use decl_function_context
11985         to check for local classes.
11986         * dwarfout.c (output_type): Likewise.
11987
11988 Tue Feb 22 01:38:57 2000  Jeffrey A Law  (law@cygnus.com)
11989
11990         * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
11991         for arguments with a mode, but no type.
11992         (FUNCTION_ARG_CALLEE_COPIES): Similarly.
11993         * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
11994         * pa/long_double.h: New file.
11995         * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
11996         both have 128bit wide long doubles.
11997         * configure: Rebuilt.
11998
11999 2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12000
12001         * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
12002
12003         * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
12004         fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
12005         (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
12006
12007         * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
12008
12009         * integrate.c (compare_blocks, find_block): Likewise.
12010
12011         * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
12012
12013         * rtl.h (set_file_and_line_for_stmt): Constify a char*.
12014
12015         * stmt.c (stmt_status, set_file_and_line_for_stmt,
12016         expand_asm_operands): Likewise.
12017
12018 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
12019
12020         * predict.c (estimate_probability): Added the pointer heuristic to
12021         the collection of static branch predictors.
12022
12023 2000-02-21  Catherine Moore  <clm@cygnus.com>
12024
12025         * config/mips/mips.h (ASM_SPEC): Add -mfix700.
12026         * invoke.texi (-mfix7000): Document.
12027
12028 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
12029
12030         * diagnostic.c (init_output_buffer): Make it possible to output at
12031         least 32 characters if we're given a too long prefix.
12032
12033 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
12034
12035         * varasm.c (initializer_constant_valid_p): Call
12036         lang_expand_constant to simplify the constant.
12037
12038 2000-02-20  Bruce Korb  <bkorb@gnu.org>
12039
12040         * fixinc/inclhack.def(stdio_va_list):
12041         typedef needs to be disabled.
12042         * fixinc/inclhack.sh: regen
12043         * fixinc/fixincl.x: regen
12044
12045 2000-02-20  Geoff Keating  <geoffk@cygnus.com>
12046
12047         * print-rtl.c (print_rtx): Don't print addresses when
12048         flag_dump_unnumbered.
12049
12050 2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12051
12052         * sparc.c (sparc_output_scratch_registers): Mark parameter with
12053         ATTRIBUTE_UNUSED.
12054         (sparc_va_arg, sparc_flat_output_function_prologue,
12055         sparc_flat_output_function_epilogue): Cast value to unsigned in
12056         comparison.
12057         (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
12058
12059         * sparc.md: Add default case in switch.
12060
12061 2000-02-19  Richard Henderson  <rth@cygnus.com>
12062
12063         * c-typeck.c (add_pending_init): Don't abort for multiple
12064         fields at the same offset.
12065         (pending_init_member): Test the correct member.
12066
12067 2000-02-19  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12068
12069         * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
12070         instead of SImode.
12071         (start_catch_handler) : Same.
12072
12073 2000-02-19  Brad Lucier  (lucier@math.purdue.edu)
12074
12075         * Makefile.in: Have flow.o depend on $(EXPR_H)
12076
12077 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12078
12079         * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
12080         * c-decl.c (duplicate_decls, finish_enum): Likewise.
12081         (finish_decl): Remove -Wlarger-than code from here.
12082         * flags.h (id_clash_len): Now int.
12083         (larger_than_size): Now HOST_WIDE_INT.
12084         * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
12085         Clean up checking to see if in table.
12086         (make_bit_field_ref): Remove extra parm to bitsize_int.
12087         * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
12088         * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
12089         * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
12090         and for computing size of decl.
12091         * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
12092         Move -Wlarger-than code to here.
12093         (layout_record): Remove extra arg to bitsize_int.
12094         Set TYPE_BINFO_SIZE_UNIT.
12095         (layout_union): Remove extra arg to bitsize_int.
12096         Use proper type for size of QUAL_UNION.
12097         (layout_type): Remove extra arg to bitsize_int.
12098         * toplev.c (id_clash_len): Now int.
12099         (larger_than_size): Now HOST_WIDE_INT.
12100         (decode_W_option): Clean up id-clash and larger-than- cases.
12101         * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
12102         (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
12103         * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
12104         (struct tree_decl): New field size_unit.
12105         (size_int_wide): No HIGH operand; NUMBER is now signed.
12106         (size_int_2): Deleted.
12107         (size_int, bitsize_int): Don't use it and rework args.
12108         * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
12109
12110 Fri Feb 18 20:01:58 2000  Jeffrey A Law  (law@cygnus.com)
12111
12112         * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
12113
12114 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
12115
12116         * invoke.texi (Warning Options): Add an explanation of why
12117         you might want the -Wfloat-equal flag.
12118
12119 Fri Feb 18 20:08:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12120
12121         * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
12122         * cppinit.c (new_pending_define): Add cast to avoid warning.
12123         * expmed.c (extract_bit_field): Likewise.
12124         * flow.c (enum reorder_skip_type): New type.
12125         (skip_insns_between_blcok): New it.
12126         Rework to avoid warning about possibly undefined variable.
12127         * function.c (assign_parms): Make thisparm_boundary unsigned.
12128         * genrecog.c (write_switch): Cast XWINT result to int.
12129         * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
12130         * mips-tfile.c (init_file): Make two versions of FDR intializer:
12131         one for MIPS and one for Alpha.
12132         (get_tag, copy_object): Add casts to avoid warnings.
12133         * optabs.c (init_one_libfunc): Cast NAME to (char *).
12134         * reload.c (find_reloads): Make TYPE enum reload_type.
12135         * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
12136         * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
12137         * varasm.c (compare_constant_1): Add cast to avoid warning.
12138         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
12139         to (char *).
12140         (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
12141         Cast switch operand of size to int.
12142         (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
12143         * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
12144         in unhandled case.
12145
12146 2000-02-18  Nick Clifton  <nickc@cygnus.com>
12147
12148         * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
12149         anything for an alignment of zero.
12150
12151         * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
12152         anything for an alignment of zero.
12153
12154 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
12155
12156         * gcc.texi (Bug Reporting): Refer to bugs.html.
12157         (Bug Lists): Likewise.
12158         * system.h (GCCBUGURL): New preprocessor define.
12159         * rtl.c (fancy_abort): Use it.
12160         * gcc.c (main): Likewise.
12161
12162 2000-02-18  Richard Henderson  <rth@cygnus.com>
12163
12164         * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
12165         (life_analysis_1): Subsume into ...
12166         (life_analysis): ... here.  Force PROP_REG_INFO off after reload.
12167         Use update_life_info for the relaxation.
12168         (update_life_info): Update REG_BASIC_BLOCK for registers live on
12169         entry and regs_live_at_setjmp.
12170         (set_noop_p): Simplify.
12171         (notice_stack_pointer_modification_1): Renamed from s/_1//.
12172         (record_volatile_insns): Split into ...
12173         (delete_noop_moves): ... here,
12174         (notice_stack_pointer_modification): ... here,
12175         (insn_dead_p): ... and here.
12176         (propagate_block): Don't query INSN_VOLATILE.
12177         (mark_used_regs): Mind !PROP_REG_INFO.
12178         * toplev.c (rest_of_compilation): Call mark_constant_function here,
12179         not in life_analysis.
12180
12181 Fri Feb 18 01:29:22 EST 2000  John Wehle  (john@feith.com)
12182
12183         * loop.c (canonicalize_condition): New function,
12184         broken out of get_condition.
12185         (get_condition): Use it.
12186         * expr.h (canonicalize_condition): Prototype it.
12187
12188         * tree.h (tree_int_cst_msb): Declare.
12189         * tree.c (tree_int_cst_msb): New function.
12190
12191 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
12192
12193         * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
12194         isn't set.
12195
12196         * invoke.texi (-fmessage-length=n): Document.
12197
12198 2000-02-17  Jason Merrill  <jason@casey.cygnus.com>
12199
12200         * bitmap.c (bitmap_operation): Don't leak bitmap elements.
12201
12202 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
12203
12204         * function.c (thread_prologue_and_epilogue_insns): Put a line note
12205         after the prologue.
12206
12207 2000-02-17  Nick Clifton  <nickc@cygnus.com>
12208
12209         * config/arm/thumb.c: Replace includes of system headers with
12210         #include "system.h".
12211
12212 2000-02-16  Richard Henderson  <rth@cygnus.com>
12213
12214         * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
12215         Add crtbeginS.o and crtendS.o.
12216         * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
12217         (ENDFILE_SPEC): Use crtendS.o.
12218         * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
12219
12220         * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
12221         (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
12222         shared and present.
12223         (__dso_handle): New variable.
12224         * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
12225         bias to __CTOR_END__.
12226
12227 2000-02-16  Richard Henderson  <rth@cygnus.com>
12228
12229         * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
12230
12231 Wed Feb 16 21:40:04 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12232
12233         * longlong.h (__clz_tab): Declare as static to match definition.
12234
12235 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
12236
12237         * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
12238         (XREF_FILE_NAME): Define.
12239
12240         * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
12241         (EH_FRAME_SECTION_ASM_OP): Define.
12242         (IDENT_ASM_OP): Define.
12243         (TEXT_SECTION_ASM_OP): Define.
12244         (CPP_SPEC): Define.
12245         (CTORS_SECTION_ASM_OP): Define.
12246         (CTOR_SECTION_FUNCTION): Use it.
12247         (DTORS_SECTION_ASM_OP): Define.
12248         (DTOR_SECTION_FUNCTION): Use it.
12249
12250 2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
12251
12252         * reg-stack.c (emit_swap_insn): Do not put a new insn before a
12253         NOTE_BASIC_BLOCK.
12254
12255         * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
12256         debug_bb_n): New functions.
12257         (dump_flow_info, print_rtl_with_bb): Use dump_regset.
12258         * basic-block.h: Prototype new functions.
12259
12260 Wed Feb 16 21:07:53 2000  Denis Chertykov  <denisc@overta.ru>
12261
12262         * configure.in: Add support for avr target.
12263         * configure: Rebuilt.
12264
12265         * invoke.texi: Add AVR invocation docs.
12266         * install.texi: Add information about AVR.
12267         * md.texi: Add AVR constraint letters description.
12268         * extend.texi: Add description for AVR specific attributes.
12269
12270 2000-02-16  Jason Merrill  <jason@casey.cygnus.com>
12271
12272         * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
12273
12274 2000-02-16  Nick Clifton  <nickc@cygnus.com>
12275
12276         * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
12277         (make_insn_raw): Move RTL check here.
12278
12279 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12280
12281         * version.c: Include gansidecl.h and version.h.
12282
12283         * version.h: Wrap entire file in macro __GCC_VERSION_H__.
12284
12285         * configure.in (gcc_version): When setting, narrow search to
12286         lines containing `version_string'.
12287
12288         * Makefile.in (mainversion): Likewise.
12289         (GCC_H): New variable.
12290         (gcc.h): Delete target.
12291         (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
12292         (version.o): Depend on version.h.
12293         (dbxout.o): Don't depend on gcc.h.
12294
12295 Wed Feb 16 15:04:49 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12296                           Michael Meissner  <meissner@cygnus.com>
12297
12298         * md.texi (Simple Constraints): Add item about whitespace.
12299         * genoutput.c (strip_whitespace): New.
12300         (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
12301         strip_whitespace for constraints.
12302         Test pointer using NULL, not 0.
12303
12304 2000-02-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12305
12306         * cpplib.c (do_line): Pedwarn for #line > 32767.
12307
12308         * c-lex.c (readescape): Warn about '\x', but do not reject it.
12309
12310 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
12311
12312         * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
12313         to default cpp spec.
12314         (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
12315         * cpp.texi: Document __GNUC_PATCHLEVEL__.
12316         * cpp.1: Likewise.
12317
12318         * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
12319         default spec.
12320
12321 2000-02-15  Denis Chertykov  <denisc@overta.ru>
12322
12323         * configure.in: Add support for avr target.
12324
12325 Wed Feb 16 03:21:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12326
12327         * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
12328         (sh_addr_diff_vec_mode): Don't declare.
12329         * sh.c (sh_addr_diff_vec_mode): Delete.
12330
12331 Wed Feb 16 01:27:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12332
12333         * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
12334
12335 Wed Feb 16 00:58:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12336
12337         * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
12338         (smulsi3_highpart_i): Name.
12339         (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
12340         (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
12341         (smulsi3_highpart, umulsi3_highpart): Likewise.
12342
12343         (mulsidi3_i, umulsidi3_i): Make rtl describe operation
12344         correctly independent of endianness.
12345         (mulsidi3, umulsidi3): Now define_insn.  Hide details that
12346         confuse the optimizers.
12347         (mulsidi3+1, umulsidi3+1): New define_split.
12348
12349 Tue Feb 15 23:22:26 2000  Andrew Haley  <aph@cygnus.com>
12350
12351         * config/sh/sh.md: Guard insn splits against illegal registers.
12352         * config/sh/sh.h: Correct comment about macros.
12353
12354 Tue Feb 15 22:30:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12355                           Andrew MacLeod  <amacleod@cygnus.com>
12356
12357         * Makefile.in (lcm.o): Depend on insn-attr.h.
12358         * basic-block.h (optimize_mode_switching): Declare.
12359         * lcm.c (tm_p.h, insn-attr.h): #include.
12360         (seginfo, bb_info): New structs.
12361         (antic, transp, comp, delete, insert) : New file-scope static variables.
12362         (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
12363         (reg_becomes_live, optimize_mode_switching): Likewise.
12364         * tm.texi: Add description of mode switching macros.
12365         * toplev.c (rest_of_compilation): Call optimize_mode_switching.
12366
12367         * sh-protos.h (remove_dead_before_cse): Remove prototype.
12368         (fldi_ok, fpscr_set_from_mem): New prototypes.
12369         * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
12370         (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
12371         Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
12372         (sh_flag_remove_dead_before_cse): Remove declaration.
12373         (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
12374         (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
12375         (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12376         * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
12377         (barrier_align): Allow for JUMP_INSNS containing a parallel.
12378         (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
12379         (fldi_ok): New function.
12380         (get_fpscr_rtx): Add fpscr_rtx as GC root.
12381         (emit_sf_insn): Only generate fpu switches when optimize < 1.
12382         (emit_df_insn): Likewise.
12383         (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
12384         (sh_flag_remove_dead_before_cse): Delete.
12385         (get_free_reg, fpscr_set_from_mem): New functions.
12386         * sh.md (movdf, movsf): Remove no_new_pseudos code.
12387         (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
12388
12389 2000-02-15  Loren Rittle  <ljrittle@acm.org>
12390
12391         * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
12392
12393 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12394
12395         * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
12396         cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
12397
12398         * cccp.c: Include version.h and/or don't declare `version_string'.
12399         * collect2.c: Likewise.
12400         * alpha.c: Likewise.
12401         * arm/aof.h: Likewise.
12402         * arm/coff.h: Likewise.
12403         * arm/elf.h: Likewise.
12404         * arm/pe.h: Likewise.
12405         * arm/tcoff.h: Likewise.
12406         * arm/telf.h: Likewise.
12407         * arm/tpe.h: Likewise.
12408         * arm/vxarm.h: Likewise.
12409         * convex/convex.c: Likewise.
12410         * i386/dgux.c: Likewise.
12411         * i386/sun386.h: Likewise.
12412         * m88k/m88k.c: Likewise.
12413         * mcore/mcore-pe.h: Likewise.
12414         * mips/mips.h: Likewise.
12415         * romp/romp.h: Likewise.
12416         * sh/sh.c: Likewise.
12417         * cpphash.c: Likewise.
12418         * cppinit.c: Likewise.
12419         * dwarf2out.c: Likewise.
12420         * dwarfout.c: Likewise.
12421         * gcc.c: Likewise.
12422         * gcc.h: Likewise.
12423         * mips-tfile.c: Likewise.
12424         * protoize.c: Likewise.
12425         * toplev.c: Likewise.
12426         * tree.h: Likewise.
12427
12428         * version.c (version_string): Constify a char*.
12429
12430         * version.h: New file.
12431
12432 2000-02-14  Nick Clifton  <nickc@cygnus.com>
12433
12434         * configure.in: Add mcore-elf and mcore-pe targets.
12435         * configure: Regenerate.
12436
12437         * NEWS: Add note that MCore port has been contributed.
12438
12439         * invoke.texi: Document command line switches for MCore port.
12440         * install.texi: Add MCore to list of supported targets.
12441
12442 2000-02-14  Geoff Keating  <geoffk@cygnus.com>
12443
12444         * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
12445         then we will need to import the frame handling functions.
12446         (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
12447         to import the frames themselves.
12448
12449 Mon Feb 14 13:31:01 2000  Stan Cox  <scox@cygnus.com>
12450                           Jason Eckhardt  <jle@cygnus.com>
12451
12452         * basic_block.h: Added prototype for reorder_basic_blocks.
12453         * toplev.c: Changes to add -freorder-blocks and graph dump after
12454         block reordering is done.
12455         * flow.c (reorder_block_def): New structure for use during block
12456         reordering.
12457         (REORDER_BLOCK_*): New macros to access members of above structure.
12458         (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
12459         make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
12460         functions for block reordering.
12461
12462 Mon Feb 14 11:24:44 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12463
12464         * gcc.texi (Passes): Fix typo.
12465         * md.texi (Standard Names): Ditto.
12466         * tm.texi (Storage Layout): Ditto.
12467
12468 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
12469
12470         * cpplib.c (do_define): Only free the old definition if it
12471         actually had one.
12472
12473 2000-02-13   Neil Booth  <NeilB@earthling.net>
12474
12475         * cppfiles.c (read_and_prescan): When emitting deferred
12476         newlines, test speccase[] again instead of checking each
12477         possible whitespace character in turn.  When we encounter \r,
12478         look behind for \n first, then ahead.
12479
12480 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
12481
12482         * cse.c (cse_altered): New internal flag.
12483         (cse_insn): Set it if we changed an insn.
12484         (cse_main): Clear cse_altered before each basic block.
12485         Only garbage collect if cse_altered is true afterward.
12486
12487 Sun Feb 13 14:12:28 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12488
12489         * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
12490
12491 Sun Feb 13 13:21:55 2000  Jeffrey A Law  (law@cygnus.com)
12492
12493         * combine.c (simplify_comparison): Fix typo.
12494
12495 Sun Feb 13 12:57:52 2000  Neil Booth <NeilB@earthling.net>
12496
12497         * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
12498         consistently.
12499
12500 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12501
12502         * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
12503         previously inserted node instead of root node.  Caller changed.
12504
12505 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12506
12507         * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
12508
12509 2000-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12510
12511         * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
12512         __dereg_frame_dtor): Add prototype argument.
12513
12514         * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
12515
12516         * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
12517
12518         * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
12519
12520         * gthr-vxworks.h (__gthread_once): Likewise.
12521
12522         * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
12523
12524 Sat Feb 12 01:44:26 MET 2000  Jan Hubicka  <jh@suse.cz>
12525
12526         * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
12527         (ix86_expand_epilogue): ... here. Use mov instead of add to restore
12528         stack pointer in functions w/o saved registers, output LEAVE more often
12529         on TARGET_USE_LEAVE machines.
12530
12531 2000-02-07  Dmitri Makarov  <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
12532
12533         * config/arm/arm.c (arm_init_cumulative_args); New function:
12534         Initlaise the CUMULATIE_ARGS strcuture for a function
12535         defintion.
12536         (arm_function_arg): New function: Determine where to place a
12537         function's argument.  Also handles deciding the function's
12538         call cookie.
12539         (current_file_function_operand): New function: Return true if
12540         the symbol is a function which has already been compiled.
12541         (arm_is_long_call_p): New function: Return true if the
12542         indicated function should be called via a long call.
12543         (arm_valid_type_attribute_p): New function: Return true if the
12544         attribute is a valid, arm specific, attribute.
12545         (arm_comp_type_attribute): New function: Return true if the
12546         two types have compatable, arm specific, attributes.
12547
12548         * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
12549         structure.
12550         (FUNCTION_ARG): Redefine to call arm_function_arg.
12551         (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
12552         structure field.
12553         (INIT_CUMULATIVE_ARGS): Redefine to call
12554         arm_init_cumulative_args.
12555         (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
12556         field.
12557         (SETUP_INCOMING_VARARGS): Redefine to use correct structure
12558         field.
12559         (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
12560         functions.
12561         (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
12562         (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
12563         (COMP_TYPE_ATTRIBUTES): Define.
12564
12565         * config/arm/arm.md (call): Call arm_is_long_call_p to decide
12566         if a long call is needed.
12567         (call_value): Call arm_is_long_call_p to decide if a long call
12568         is needed.
12569         (call_symbol): Call arm_is_long_call_p to decide if a long call
12570         is needed.
12571
12572         * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
12573
12574 2000-02-11  Denis Chertykov  <denisc@overta.ru>
12575
12576         * README.AVR: New file with information about the avr ports.
12577         * config/avr: New directory with avr port files.
12578
12579 2000-02-11  Andreas Jaeger  <aj@suse.de>
12580
12581         * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
12582
12583 2000-02-11  Zack Weinberg  <zack@wolery.cumb.org>
12584
12585         * cpphash.c: Fix formatting, update commentary.
12586         (dump_definition): Take three separate arguments instead of a
12587         MACRODEF structure argument.
12588         * cpphash.h: Update prototype of dump_definition.
12589         * cppinit.c (cpp_finish): Update call of dump_definition.
12590
12591         * cpplib.c (do_define): Always create new hash entry with
12592         T_MACRO type.  Remove redundant check for redefinition of
12593         poisoned identifier.  Update call of dump_definition.
12594         (do_undef): Don't call check_macro_name.  Rename sym_length to
12595         len.
12596         (do_error, do_warning): Don't use copy_rest_of_line or
12597         SKIP_WHITE_SPACE.
12598         (do_warning): Don't use pedwarn for the actual warning,
12599         only the notice about its not being in the standard.  (Fixes
12600         bug with #warning in system headers.)
12601         (do_ident): Stricter argument checking - accept only a single
12602         string after #ident.  Also, macro-expand the line.
12603         (do_xifdef): Use cpp_defined.  De-obfuscate.
12604
12605         (do_pragma): Split out specific pragma handling to separate
12606         functions.  Use get_directive_token.  Update commentary.  Do
12607         not pass on #pragma once or #pragma poison to the front end.
12608         (do_pragma_once, do_pragma_implementation, do_pragma_poison,
12609         do_pragma_default): New.
12610
12611 Feb 11 12:30:53 2000  Jeffrey A Law  (law@cygnus.com)
12612
12613         * jump.c (jump_optimize_1): The first operand in a relational
12614         can be a CONST_INT.
12615         * optabs.c (emit_conditional_move): Handle relationals which
12616         have a known true/false result.
12617
12618 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
12619
12620         * function.c (thread_prologue_and_epilogue_insns): Don't insert
12621         a RETURN insn into a block which already ends with a jump.
12622
12623 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
12624
12625         * haifa-sched.c (BUF_LEN): Increase a lot.
12626
12627 2000-02-11  Nick Clifton  <nickc@cygnus.com>
12628
12629         * configure.in: Add tm_p_file specification for thumb targets.
12630         * configure: Regenerate.
12631
12632         * config/arm/thumb-protos.h: New file: Prototypes for exported
12633         functions defined in thumb.c.
12634
12635 2000-02-11  Robert Lipe  <robertl@sco.com>
12636
12637         * Makefile.in (bootstrap-lean): Remove additional files.
12638         (bootstrap2-lean): Likewise.
12639         (VOL_FILES): List of files for above.
12640
12641 2000-02-11  Nathan Sidwell  <nathan@acm.org>
12642
12643         * cpphash.c (special_symbol): Remove spurious argument to
12644         cpp_lookup.
12645
12646 2000-02-11  Joel Sherrill (joel@OARcorp.com>
12647
12648         * configure.in: (i*86-*-rtems*): Swapped elf and coff
12649         stanzas.
12650         * configure: Rebuilt.
12651
12652 2000-02-11  Rodney Brown  <RodneyBrown@pmsc.com>
12653
12654         * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
12655
12656 Fri Feb 11 02:59:05 2000  Jeffrey A Law  (law@cygnus.com)
12657
12658         * pa.c, pa.h: Remove trigraph sequences within comments.
12659
12660 Fri Feb 11 02:51:56 2000  Pavel Roskin <pavel_roskin@geocities.com>
12661
12662         * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
12663
12664 Fri Feb 11 02:48:30 2000  Brad Lucier  (lucier@math.purdue.edu)
12665
12666         * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
12667
12668 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12669
12670         * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
12671
12672 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12673
12674         * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
12675         (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
12676         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
12677         (ASM_FILE_END): Use c4x_file_end.
12678         * config/c4x/c4x.c (c4x_global_label): New function.
12679         (c4x_external_ref, c4x_file_end): Likewise.
12680
12681         * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
12682         (c4x_external_ref, c4x_end_file): Likewise.
12683
12684 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
12685
12686         * cppexp.c: Don't include cpphash.h.
12687         (parse_charconst, cpp_lex): Use cpp_defined.
12688         (cpp_lex): Use get_directive_token throughout.  Remove
12689         unnecessary cases from switch.  Move assertion-handling code
12690         down to OTHER case.
12691         (cpp_parse_expr): If we see '+' or '-', check the context to
12692         determine if they are unary or binary operators.  Streamline
12693         the jumps a bit.  Do not call skip_rest_of_line.
12694
12695         * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
12696         static.  Export get_directive_token.  Update commentary.
12697         (cpp_defined): New function.
12698         (do_define): Remove reference to T_PCSTRING.  Call
12699         free_definition to release memory for old definition, when
12700         redefining a macro.
12701         (eval_if_expression): Set only_seen_white to 0 before calling
12702         cpp_parse_expr.  Call skip_rest_of_line after it returns.
12703         (cpp_read_check_assertion): Don't preserve a pointer into the
12704         token buffer across a call to cpp_get_token.
12705
12706         * Makefile.in (cppexp.o): Don't depend on cpphash.h.
12707         * cppfiles.c (redundant_include_p): Use cpp_defined.
12708         * cpphash.c (free_definition): New function.
12709         (delete_macro): Use it.  Update commentary.
12710         * cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
12711         free_definition.
12712         * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
12713         from enum node_type.  Prototype cpp_defined and get_directive_token.
12714         Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
12715
12716         * fix-header.c (check_macro_names): Use cpp_defined.
12717         (read_scan_file): Set inhibit_warnings and inhibit_errors in
12718         the options structure.
12719
12720 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12721
12722         * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
12723
12724 2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
12725
12726         * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
12727         rather than die->die_tag.
12728
12729 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12730
12731         * combine.c (make_extraction, force_to_mode): Avoid warning on
12732         mixed-signedness conditionals.
12733         (make_field_assignment, nonzero_bits): Likewise.
12734         * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
12735         (store_split_bit_field, extract_split_bit_field): Likewise.
12736         (extract_fixed_bit_field, store_bit_field,
12737         * expr.c: Change alignment to be unsigned everywhere.
12738         (move_by_pieces, store_constructor_field, store_constructor):
12739         Alignment parm is unsigned.
12740         (emit_block_move, emit_group_load, emit_group_store): Likewise.
12741         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
12742         (do_compare_rtx_and_jump): Likewise.
12743         (move_by_pieces_ninsns, clear_by_pieces): Likewise.
12744         Compare align with GET_MODE_ALIGNMENT.
12745         (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
12746         (get_inner_reference): Likewise.
12747         (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
12748         (expand_assignment): Local vars for alignment now unsigned.
12749         (store_constructor, store_field, expand_expr, do_jump): Likewise.
12750         (do_compare_and_jump): Likewise.
12751         (store_field): Call new function expr_align.
12752         * expr.h (emit_block_move, emit_group_load, emit_group_store):
12753         Alignment arg now unsigned.
12754         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
12755         (do_compare_rtx_and_jump, store_bit_field): Likewise.
12756         (extract_bit_field): Likewise.
12757         * fold-const.c (add_double): Add cast to eliminate signedness warning.
12758         * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
12759         (get_best_mode): Alignment arg is unsigned.
12760         * rtl.h (move_by_pieces): Likewise.
12761         * store-layout.c (maximum_field_alignment, set_alignment):
12762         Now unsigned.
12763         (layout_decl): Alignment arg is now unsigned.
12764         Remove unneeded casts.
12765         (layout_record, layout_union, layout_type): Remove unneeded casts.
12766         Local alignment variables now unsigned.
12767         (get_best_mode): Alignment arg now unsigned.
12768         * tree.c (expr_align): New function.
12769         * tree.h (expr_align): Likewise.
12770         (maximum_field_alignment, set_alignment): Now unsigned.
12771         (get_inner_reference): Alignment argument is now pointer to unsigned.
12772         * varasm.c (assemble_variable): Add cast to eliminate warning.
12773
12774 Thu Feb 10 12:56:47 2000  Jim Wilson  <wilson@cygnus.com>
12775
12776         * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
12777         then store directly into op0.
12778
12779         * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
12780         the CALL_INSN, and emit the note immediately after it.
12781
12782 2000-02-10  Nick Clifton  <nickc@cygnus.com>
12783
12784         * config/arm/thumb.md (epilogue): Include a (return) in the
12785         generated insn, and emit it using emit_jump_insn not
12786         emit_insn.
12787
12788 Thu Feb 10 18:28:59 MET 2000  Jan Hubicka  <jh@suse.cz>
12789
12790         * function.c (assign_temp): Change zero-sized arrays to size 1.
12791         * integrate.c (expand_inline_function): Do not update
12792         stack_alignment_needed
12793         * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
12794         add some sanity checking, remove optimization for function with
12795         zero frame size.
12796
12797 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12798
12799         * flow.c (mark_regs_live_at_end): Delete unused variables.
12800
12801         * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
12802
12803         * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
12804         in macro FRAME_GROWS_DOWNWARD.
12805
12806         * stmt.c (expand_end_bindings): Delete unused variable.
12807
12808         * unroll.c (iteration_info): Mark parameter `loop' with
12809         ATTRIBUTE_UNUSED.
12810
12811 2000-02-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12812
12813         * fixinc/server.c (load_data): Return NULL if the marker line is
12814         not found.
12815         (run_shell): If load_data returns NULL, retry the command once, in
12816         a new shell.
12817
12818         * configure: Rebuilt.
12819
12820 2000-02-09  Bruce Korb  <bkorb@gnu.org>
12821
12822         * gcc/fixincludes:  ** DELETED **
12823         * gcc/fixcpp:  ** DELETED **
12824         * gcc/fixinc-nt.sed:  ** DELETED **
12825         * gcc/just-fixinc:  ** DELETED **
12826         * gcc/Makefile.in:  Removed out-dated commentary
12827         * gcc/configure.in: Removed fast-fixincludes disablement.
12828         * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
12829
12830 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
12831         * function.c (thread_prologue_and_epilogue_insns): Uncomment
12832         last change.
12833
12834 2000-02-09  Richard Henderson  <rth@cygnus.com>
12835
12836         * jump.c (delete_insn): Don't delete user labels at -O0.
12837
12838 2000-02-09  Robert Lipe  <robertl@sco.com>
12839
12840         * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
12841         Don't link with HOST_LIBS.
12842
12843 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
12844
12845         * configure.in: Correct --help text for --with-dwarf2.
12846         Put tm-dwarf2.h after other tm files, if it's requested.
12847         * configure: Regenerate.
12848         * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
12849         defining it.
12850
12851 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
12852
12853         * cpplib.h: Provide HASHNODE typedef and forward decl of
12854         struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
12855         DEFINITION, struct hashnode, struct macrodef, struct
12856         definition, scan_decls prototype, default defn of
12857         INCLUDE_LEN_FUDGE moved elsewhere.
12858
12859         * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
12860         definition, and struct hashnode moved here. Remove the unused
12861         'predefined' field from struct definition.  Replace the 'args'
12862         union with its sole member.  All users updated (cpphash.c).
12863         Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
12864         multiple include guard.
12865
12866         * cpphash.c (hashf): Make static; use better algorithm; drop
12867         HASHSIZE parameter; return an unsigned int.
12868         (cpp_lookup): Drop HASH parameter.  PFILE parameter is
12869         used. Calculate HASHSIZE modulus here.
12870         (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
12871         here.
12872         (create_definition): Drop PREDEFINITION parameter.
12873         * cpplib.c (do_define): Don't calculate a hash value here.
12874         Don't pass (keyword == NULL) to create_definition.
12875
12876         * scan.h: Prototype scan_decls here.
12877         * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
12878         * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
12879         callers of cpp_lookup and cpp_install updated.
12880
12881         * cpphash.c (macarg): Hoist all the flag diddling out of the
12882         function...
12883         (macroexpand): ... and out of the loop that calls macarg.
12884         Skip over the initial paren before macro arguments with
12885         cpp_get_non_space_token; point may be some distance before
12886         that paren.  Abort if it's not there.
12887
12888         * cpplib.c (parse_clear_mark): Delete function.
12889         (parse_set_mark, parse_goto_mark): Make static.
12890         (ACTIVE_MARK_P): New macro.
12891         (skip_block_comment, skip_line_comment): Do not bump the line
12892         if ACTIVE_MARK_P is true.
12893         (cpp_pop_buffer): The buffer to be popped may not have an
12894         active mark.
12895         (cpp_get_token): When looking for the initial paren before
12896         macro arguments, only set a mark in a file buffer, Always
12897         return to that mark before proceeding to call macroexpand or
12898         return a NAME token.
12899
12900         * cpplib.h: Remove prototypes of parse_set_mark,
12901         parse_clear_mark, parse_goto_mark.
12902         (struct cpp_options): Rename 'put_out_comments' to
12903         'discard_comments' and invert its sense.
12904         * cppinit.c, cpphash.c, cpplib.c: All users of
12905         put_out_comments changed to use discard_comments, with
12906         opposite sense.
12907
12908 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
12909
12910         * function.c (thread_prologue_and_epilogue_insns): Don't delete
12911         the edge from a block that both jumps and falls through to the
12912         fallthru block.
12913
12914 2000-02-09  Scott Bambrough  <scottb@netwinder.org>
12915
12916         * config/arm/arm.md (movsi): In PIC mode, make sure that a
12917         constant source address is legitimate.
12918
12919 2000-02-09  Philip Blundell  <pb@futuretv.com>
12920
12921         * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
12922         correctly.
12923
12924         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
12925         generating PIC.
12926         (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
12927
12928 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
12929
12930         * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
12931         ends with a newline and a NUL.  Don't be so clever manipulating
12932         strings.
12933
12934 Wed Feb  9 14:18:08 MET 2000  Jan Hubicka  <jh@suse.cz>
12935
12936         * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
12937         not to BIGGEST_ALIGNMENT.
12938
12939 2000-02-08  Geoff Keating  <geoffk@cygnus.com>
12940
12941         * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
12942         * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
12943         (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
12944         (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
12945         * frame.c (execute_cfa_insn): Handle
12946         DW_CFA_GNU_negative_offset_extended.
12947
12948 2000-02-08  Richard Henderson  <rth@cygnus.com>
12949
12950         * flow.c (tidy_fallthru_edges): Split out from ...
12951         (delete_unreachable_blocks): ... here.
12952         (find_basic_blocks): Use it.
12953
12954 Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12955
12956         * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
12957
12958 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
12959
12960         * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
12961         (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
12962         (fix-header.o): Don't depend on cpphash.h.
12963
12964         * scan.c (hashstr): New function.
12965         * scan.h: Prototype it.
12966         * fix-header.c: Don't include cpphash.h.  Use hashstr.
12967         * gen-protos.c: Don't include cpphash.h or cpplib.h.  Use
12968         hashstr.  Report hash table statistics.  Add private
12969         definition of xrealloc.
12970
12971 2000-02-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12972
12973         * i386.h (TARGET_SWITCHES): Fix typo in option name.
12974
12975 2000-02-08  Clinton Popetz  <cpopetz@cygnus.com>
12976
12977         * function.c (thread_prologue_and_epilogue_insns): Don't replace
12978         jumps with returns unless they are jumps to the fallthru block.
12979
12980 Tue Feb  8 07:53:55 2000  Jan Hubicka  <jh@suse.cz>
12981
12982         * i386.md (addqi3_cc): Fix contraints.
12983
12984 Tue Feb  8 01:39:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12985
12986         * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
12987
12988 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
12989
12990         * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
12991         carriage return after a macro name.
12992
12993 2000-02-07  Fred Fish  <fnf@be.com>
12994
12995         * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
12996         so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
12997
12998 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
12999
13000         * cppfiles.c (deps_output): Count spacers in deps_column.
13001
13002 2000-02-07  Neil Booth  <NeilB@earthling.net>
13003
13004         * cppinit.c (initialize_dependency_output): If there is no
13005         suffix, don't try to look for known suffixes.  Use strrchr.
13006         (cpp_start_read): Remove duplicate initialization.
13007
13008 Mon Feb  7 18:36:41 MET 2000  Jan Hubicka  <jh@suse.cz>
13009
13010         * calls.c (compute_argument_block_size): New argument
13011         preferred_stack_boundary.
13012         (expand_call): update cfun->preferred_stack_boundary, update call of
13013         compute_argument_block_size
13014         (emit_library_call): Increate cfun->preferred_stack_boundary
13015         to PREFERRED_STACK_BOUNDARY
13016         (emit_library_call_value): Likewise.
13017         * explow.c (allocate_dynamic_stack_spave): Likewise.
13018         * function.c (prepare_function_start): Set
13019         cfun->preferred_stack_boundary
13020         * function.h (struct function): Add preferred_stack_boundary field.
13021         * integrate.c (expand_inline_function): Update
13022         cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
13023         (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
13024         * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
13025
13026 2000-02-06  Zack Weinberg  <zack@wolery.cumb.org>
13027
13028         * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
13029         cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
13030         cpp_pedwarn, cpp_pedwarn_with_line,
13031         cpp_pedwarn_with_file_and_line): Move to cpperror.c.
13032         (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
13033         v_cpp_error_with_line, v_cpp_warning_with_line,
13034         cpp_message_from_errno, cpp_perror_with_name): Delete.
13035
13036         * cpperror.c (cpp_print_containing_files): Take starting
13037         buffer as argument.
13038         (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
13039         (v_cpp_message): Now called directly by all entry points.
13040         Remove -1 case.
13041         (cpp_pfatal_with_name, cpp_message): Delete.
13042         (cpp_notice_from_errno, cpp_ice): New functions.
13043         (cpp_notice): Is now for reporting error conditions, just
13044         without an associated file.
13045         (cpp_error, cpp_error_with_line): Don't do anything if
13046         opts->inhibit_errors is on.
13047         (cpp_pedwarn_with_file_and_line): Take column argument also.
13048
13049         * cpplib.h: Update prototypes of exported functions.
13050         (struct cpp_options): Add inhibit_errors.
13051
13052         * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
13053         non-error messages.  Include intl.h.
13054
13055         * cppinit.c, cppmain.c: Likewise.  Also, use
13056         cpp_notice_from_errno instead of cpp_perror_with_name or
13057         cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
13058
13059         * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
13060         report internal errors.
13061
13062         * cpplib.c (do_define): Switch bcopy to memcpy.
13063         Give cpp_pedwarn_with_file_and_line a dummy column argument.
13064
13065         * cpplib.c (copy_rest_of_line): Revert previous change: don't
13066         bail out early if we hit a line comment.
13067
13068 2000-02-06  Richard Henderson  <rth@cygnus.com>
13069
13070         * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
13071         * basic-block.h: Declare them.
13072         * emit-rtl.h (active_insn_p): New.
13073         (next_active_insn, prev_active_insn): Use it.
13074         * rtl.h: Declare it.
13075         * function.c (emit_return_into_block): New.
13076         (thread_prologue_and_epilogue_insns): Insert return insns instead
13077         of epilogues when possible.
13078         * jump.c (jump_optimize_1): Remove code to insert a return insn
13079         on the fallthru to the exit block.
13080
13081         * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
13082         and for non-empty stack frames.
13083         * i386.md (return): Expand to return-pop as needed.
13084
13085 2000-02-06  Richard Henderson  <rth@cygnus.com>
13086
13087         * simplify-rtx.c (simplify_relational_operation): Canonicalize
13088         constant to op1 for testing.
13089
13090 2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13091
13092         * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
13093         (fixuns_truncqfqi2): Use it.
13094
13095 2000-02-06  Richard Henderson  <rth@cygnus.com>
13096
13097         * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
13098         as a TYPE_LEA insn.
13099
13100         * i386.md (widening and peepholes): Mask the constant instead of
13101         using gen_lowpart.
13102
13103 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
13104
13105         * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
13106         input pointer before possibly branching off to the backslash
13107         code.
13108         * cpphash.c (macroexpand): Correctly delete \r escapes when
13109         stringifying parameters.
13110         * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
13111         if we can; bail out early if we hit a line comment.
13112         (handle_directive): Treat '# 123' in an .S file just like
13113         '# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
13114         Return 1 for '# not_a_directive'.
13115         (get_directive_token): Pop macro buffers here, so that
13116         cpp_get_token can't sneakily move past a newline.
13117         Add sanity checks.
13118         (cpp_get_token): goto randomchar if handle_directive returns 0.
13119
13120         * cppalloc.c: Update copyright.
13121         * cpplib.c: Merge all the static function prototypes into one
13122         block.
13123         * cpplib.h: Remove #if 0 block.
13124
13125         * cpperror.c: Remove #ifdef EMACS block.
13126         * cppmain.c: Likewise.
13127         * cpphash.c: Remove #if 0 blocks.
13128         * cppinit.c: Remove #if 0 blocks, and the -lint option.
13129         * cpplib.c: Remove #if 0 blocks and code referencing
13130         pcp_inside_if or for_lint.  Remove duplicate error message.
13131         Fix error messages for #else after #else or #elif.  Reformat.
13132         Remove archaic TODO list.
13133         * cpplib.h: Remove pcp_inside_if and for_lint flags.
13134
13135 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
13136
13137         * i386/osf1elf.h: Add missing backslash to multiline string.
13138
13139 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13140
13141         * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
13142
13143 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13144
13145         * Makefile.in (c-common.o): Depend on $(EXPR_H).
13146
13147         * c-common.c: Include expr.h.
13148
13149         * c-pragma.c (mark_align_stack): Add prototype.
13150
13151         * caller-save.c (add_stored_regs): Likewise.
13152
13153         * combine.c (record_promoted_value): Likewise.
13154
13155         * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
13156         Likewise.
13157
13158         * cppinit.c (new_pending_define): Likewise.
13159
13160         * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
13161
13162         * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
13163         AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
13164         AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
13165         class_scope_p): Likewise.
13166
13167         * dwarf2out.h (dwarf2out_set_demangle_name_func,
13168         dwarf2out_add_library_unit_info): Likewise.
13169
13170         * ggc.h (ggc_page_print_statistics): Likewise.
13171
13172         * haifa-sched.c (propagate_deps): Likewise.
13173
13174         * reg-stack.c (next_flags_user, record_label_references): Likewise.
13175
13176         * rtl.h (set_stack_check_libfunc): Likewise.
13177
13178         * toplev.h (set_fatal_function): Likewise.
13179
13180         * toplev.c (set_fatal_function): Delete prototype.
13181
13182         * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
13183
13184 2000-02-05  Geoff Keating  <geoffk@cygnus.com>
13185
13186         * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
13187         (FUNC_END): Likewise.
13188
13189 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13190
13191         * caller-save.c: Include tm_p.h.
13192
13193 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13194
13195         * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
13196
13197 2000-02-04  Neil Booth  <NeilB@earthling.net>
13198
13199         * cccp.c (main): Check 'dir' for a NULL pointer before passing
13200         it to strcmp.
13201
13202 2000-02-04  Zack Weinberg  <zack@wolery.cumb.org>
13203
13204         * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
13205         * genflags.c: Use the max_operand_1 logic from genemit.c to
13206         calculate how many arguments gen_insn prototypes have.  Remove
13207         NO_MD_PROTOTYPES ifdefs from the generated file.
13208         * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
13209         file.  Cast gen_insn initializers to insn_gen_fn.
13210         * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
13211         * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
13212
13213 2000-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13214
13215         * fixinc/Makefile.in (HDR): Add machname.h.
13216         (clean): Likewise.
13217
13218 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13219
13220         * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
13221         (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
13222         (c4x_cpu_version): Ditto.
13223         * config/c4x/c4x-protos.h: ... here.
13224
13225 2000-02-04  Jason Merrill  <jason@casey.cygnus.com>
13226
13227         * dwarf2out.c (add_abstract_origin_attribute): Don't call
13228         gen_abstract_function on our context if we're a nested function.
13229
13230 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13231
13232         * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
13233         * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
13234
13235 2000-02-04  Bruce Korb  <bkorb@gnu.org>
13236
13237         * fixinc/genfixes(machname.h):
13238         Move the functionality from gen-machine.h into this file.
13239         UNdef MN_NAME_PAT if there are no names to change.
13240         Also, be a little kinder when AutoGen is not present.
13241
13242         * fixinc/Makefile.in(machname.h):
13243         Change the generation rule to use genfixes.
13244
13245         * fixinc/fixfixes.c(machine_name):
13246         machine_name_fix's functionality now dependent upon whether
13247         MN_NAME_PAT is defined.
13248
13249         * fixinc/fixtests.c(machine_name):
13250         ditto.
13251
13252         * fixinc/fixlib.c(mn_get_regexps): conditional on definition
13253         of MN_NAME_PAT.
13254
13255         * fixinc/fixlib.h(mn_get_regexps):
13256         ditto
13257
13258         * fixinc/gen-machine.h: DELETED
13259
13260 2000-02-04  Jan Hubicka  <jh@suse.cz>
13261             Richard Henderson  <rth@cygnus.com>
13262
13263         * i386.c (SAVE_REGS_FIRST): Remove.
13264         (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
13265         (ix86_compute_frame_size): Likewise.
13266         (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
13267         (ix86_emit_restore_regs): Remove.
13268         (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
13269         when a frame pointer is in use.
13270         (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
13271         instead of pop to restore a register when profitable; emit leave
13272         when profitable.
13273         (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
13274         as a TYPE_LEA insn.
13275         (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
13276         * i386.md (prologue_allocate_stack): Remove.
13277         (epilogue_deallocate_stack): Remove.
13278         (pro_epilogue_adjust_stack): New.
13279
13280 2000-02-04  Richard Henderson  <rth@cygnus.com>
13281
13282         * function.c (diddle_return_value): Rework to use a callback function.
13283         Use current_function_return_rtx if it's been set up.
13284         (do_clobber_return_reg, clobber_return_register): New.
13285         (do_use_return_reg, use_return_register): New.
13286         (expand_function_end): Use them.
13287         * stmt.c (expand_null_return): Likewise.
13288         * function.h: Declare them.
13289         * flow.c (mark_regs_live_at_end): Use diddle_return_value.
13290         (mark_reg): Change arguments as appropriate for callback.
13291         * integrate.c (expand_inline_function): Revert 19 Jan change.
13292
13293 Fri Feb  4 20:25:42 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13294
13295         * tm.texi (Values in Registers): Fix typo: "fo" "for".
13296         (Misc): Say the scheduler, not the Haifa scheduler.
13297
13298 2000-02-04  Clinton Popetz  <cpopetz@cygnus.com>
13299
13300         * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
13301         when in_mem is set.  Update all callers.
13302
13303 2000-02-04  Richard Henderson  <rth@cygnus.com>
13304
13305         * i386/openbsd.h (INT_ASM_OP): Define.
13306
13307 Fri Feb  4 10:51:30 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13308
13309         * tm.texi: Fix various typos.
13310
13311 Thu Feb  3 17:17:32 2000  Steve Ellcey <sje@cup.hp.com>
13312
13313         * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
13314         (MD_STARTFILE_PREFIX_1): New macro.
13315
13316 Thu Feb  3 15:08:13 MET 2000  Jan Hubicka  <jh@suse.cz>
13317
13318         * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
13319         destination when needed.
13320         (strmovsi, strsetsi): New expander.
13321         (strmovsi_1, strsetsi_1): New pattern.
13322         * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
13323         TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
13324         (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
13325         * invoke.texi (align-stringops, inline-all-stringops): Document.
13326
13327 Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>
13328
13329         * i386/netbsd.h (INT_ASM_OP): Define.
13330
13331 2000-02-02  Zack Weinberg  <zack@wolery.cumb.org>
13332
13333         * cpplib.h (cpp_reader): Add new flag, no_directives.
13334         * cpphash.c (macarg): Set it.
13335         * cpplib.c (handle_directive): If no_directives is on and we
13336         find a directive, issue an error and discard the line.
13337
13338 Wed Feb  2 13:07:10 2000  Jim Wilson  <wilson@cygnus.com>
13339
13340         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
13341         FP constants.  Add ! TARGET_FPU check for FP constants.
13342
13343 2000-02-02  Clinton Popetz  <cpopetz@cygnus.com>
13344
13345         * flow.c (find_basic_blocks): Don't kill label_value_list
13346         here.
13347         (cleanup_cfg): Kill it here.
13348
13349 Wed Feb  2 08:12:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13350
13351         * expr.c (store_field): Ensure ALIGN is no stricter than the
13352         alignment of EXP.
13353
13354 2000-02-02  Richard Henderson  <rth@cygnus.com>
13355
13356         * jump.c (delete_insn): Partially revert 19 Jan change;
13357         don't convert unused code labels to notes at -O0.
13358
13359 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13360
13361         * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
13362         split_all_insns to recreate REG_LABEL notes for flow2 pass.
13363
13364 2000-02-01  Richard Henderson  <rth@cygnus.com>
13365
13366         * i386.c (general_no_elim_operand): New.
13367         (nonmemory_no_elim_operand): New.
13368         (ix86_expand_move): Copy eliminable operands before a push.
13369         * i386-protos.h: Declare new functions.
13370         * i386.h (CAN_ELIMINATE): Simplify.
13371         (PREDICATE_CODES): Update.
13372         * i386.md (push insns): Don't allow eliminable register operands.
13373
13374 2000-02-01  Richard Henderson  <rth@cygnus.com>
13375
13376         * flow.c (mark_regs_live_at_end): Follow expand_function_end and
13377         replace BLKmode with DECL_RTL's mode.
13378
13379 2000-02-01  Zack Weinberg  <zack@wolery.cumb.org>
13380
13381         * frame.c (find_fde): Convert for loop to do-while so compiler
13382         sees it's always executed at least once.
13383         * libgcc2.c (BBINBUFSIZE): Kill.
13384         (__bb_init_prg): Use fgets.
13385         (__bb_exit_trace_func): Don't paste strings.
13386         * unroll.c (unroll_loop): Initialize unroll_type, not
13387         unroll_number, and tweak logic to match.
13388
13389         * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
13390         all failure paths.
13391         (ix86_flags_dependant): Likewise.  Disentangle control flow.
13392         (ix86_sched_reorder): Break guts out to
13393         ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
13394         (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
13395         any possible use.
13396
13397         * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
13398         use string concatenation.  Don't save and restore esi.
13399
13400         * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
13401         (machname.h): Remove script to separate file.  Use two-step
13402         sequence so target is not created if script fails.
13403         * fixinc/gen-machname.h: New file.  Handle case where no non-reserved
13404         identifiers are defined.
13405         * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
13406         an empty string, machine_name doesn't need to do anything at
13407         all.
13408         (is_cxx_header): Add more cases to regexp.
13409         * fixinc/fixlib.h: Update prototype.
13410         * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
13411         mn_get_regexps.
13412         * fixinc/fixincl.c: Define NO_BOGOSITY.
13413
13414         * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
13415         (hp_sysfile): Add missing comma.
13416         (math_exception): Put the wrapper ifdefs at the beginning and
13417         the end of the file.
13418         * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
13419
13420 2000-02-01  Richard Henderson  <rth@cygnus.com>
13421
13422         * sparc.c (fp_zero_operand): Turn into a normal predicate.
13423         Use CONST0_RTX.  Update all callers.
13424         * sparc.h, sparc-protos.h: Update accordingly.
13425         * sparc.md (fp mov insns): Use fp_zero_operand directly
13426         where applicable.
13427
13428 Wed Feb  2 02:59:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13429
13430         * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
13431         example.
13432
13433 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13434
13435         * Makefile.in (specs.ready): New target.
13436         (fixinc.sh): Depend on `specs.ready' instead of `specs'.
13437
13438 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13439
13440         * fixinc.irix: Use unique filenames for writing into /tmp,
13441         * fixinc.ptx: Likewise.
13442         * fixinc.sco: Likewise.
13443         * fixinc.svr4: Likewise.
13444         * fixinc.winnt: Likewise.
13445
13446 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13447
13448         * tsystem.h: New file.
13449
13450         * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
13451         s-crtS): Depend on tsystem.h.
13452
13453         * crtstuff.c: Include tsystem.h.
13454         * frame.c: Likewise.
13455         * libgcc2.c: Likewise.
13456
13457 Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
13458
13459         * builtins.c (expand_builtin_memset): Expand for variable sized
13460         lengths too.
13461
13462 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au>
13463
13464         * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
13465         on ABI.
13466
13467 Tue Feb  1 00:57:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13468
13469         * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
13470
13471         * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
13472
13473 2000-01-31  Chandra Chavva <cchavva@cygnus.com>
13474
13475         * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
13476         case 3->2 combining (combining with splitting) in which 2 is CC0
13477         setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
13478         checked at the begining of the function with the aid of calling
13479         function 'can_combine_p'.
13480
13481 2000-01-31  Dave Brolley  <brolley@redhat.com>
13482
13483         * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
13484
13485 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
13486
13487         * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
13488         new label.
13489
13490 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13491
13492         * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
13493
13494         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
13495         PROTO -> PARAMS.
13496
13497 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
13498
13499         * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
13500         i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
13501         i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
13502         i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
13503         i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
13504         i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
13505         i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
13506         i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
13507         i386/vxi386.h, i386/win-nt.h, i386/win32.h:
13508         Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
13509
13510         * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
13511         Add %(cpp_cpu) to CPP_SPEC.
13512
13513         * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
13514         Add %(cc1_cpu) to CC1_SPEC.
13515
13516 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
13517
13518         * c-decl.c (c_decode_option): Accept optional numeric argument to
13519         -Wformat and set warn_format.
13520         * c-common.c: Don't emit warning about non-constant printf format
13521         string unless warn_format > 1.
13522
13523 2000-01-30  Richard Henderson  <rth@cygnus.com>
13524
13525         * alpha.md (return_internal): Allow after reload only.
13526
13527 2000-01-30  Richard Henderson  <rth@cygnus.com>
13528
13529         * i386.c (ix86_compute_frame_size): Omit padding1 if the
13530         local frame size is zero.
13531
13532 2000-01-30  Richard Henderson  <rth@cygnus.com>
13533
13534         * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
13535         * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
13536         * alpha.md (return): Turn into an expander.
13537         (return_internal): Don't use $26.
13538         (epilogue): Emit the return insn.
13539
13540 2000-01-30  Richard Henderson  <rth@cygnus.com>
13541
13542         * alpha.md (negtf2, abstf2): Fix word order thinko.
13543         (extendsftf2): New.
13544         (trunctfsf2): Avoid intermediate rounding errors.
13545
13546 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
13547
13548         * cppfiles.c (find_position): Drop 'colp' argument, return the
13549         new line base.
13550         (read_and_prescan): Adjust to match.  Don't ever manipulate
13551         line or line_base except via find_position.
13552
13553 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
13554
13555         * c-parse.in: Apply Ulrich's changes from c-parse.y.
13556         * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
13557         Regenerate.
13558
13559 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
13560
13561         * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
13562         just print "<command line>".  If 'filename' is null or an
13563         empty string, print "<stdin>" for the filename.
13564         * cpplib.c (do_define): Don't print the 'location of the
13565         previous definition' message if we're still parsing the
13566         command line.
13567         (cpp_pedwarn_with_file_and_line): Always call
13568         cpp_file_line_for_message.
13569
13570 2000-01-29  Mark Mitchell  <mark@codesourcery.com>
13571
13572         * flow.c (mark_regs_live_at_end): Fix typo.
13573
13574 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
13575
13576         * c-common.c: Adjust variable names, comments, help strings to c99.
13577         * c-lex.c: Likewise.
13578         * c-parse.y: Likewise.
13579         * c-tree.h: Likewise.
13580         * cccp.c: Likewise.
13581         * cpplib.h: Likewise.
13582         * c-decl.c: Likewise.  Recognize options with names "*99" as well.
13583         * cppinit.c: Likewise.
13584
13585 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13586
13587         * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
13588         * c4x.c: Define the optab rtx values.
13589         (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
13590         (c4x_emit_libcall): Use new optab rtx values.
13591         (c4x_emit_libcall3): Likewise.
13592         (c4x_emit_libcall_mulhi): Likewise.
13593         * c4x-protos.h: Add prototypes for optab rtx values and change
13594         prototypes for above c4x_emit_libcall functions.
13595
13596 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13597
13598         * c4x.c (c4x_output_ascii): Restrict line length of output when TI
13599         syntax is used.
13600         (c4x_function_prologue): Use regnames intead of float_reg_names when
13601         TI syntax is used.
13602         (c4x_function_epilogue): Likewise.
13603         (c4x_print_operand): Likewise.
13604         * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
13605         * c4x.md (set_high): Disable for TARGET_TI.
13606
13607 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13608
13609         * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
13610         of framepointer + constant to ADDR_REGS class.
13611         * c4x.md (addqi3, addqi3_noclobber_reload): Update.
13612         * c4x.c (std_or_reg_operand): New function.
13613         * c4x-protos.h (std_or_reg_operand): Prototype it.
13614
13615 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13616
13617         * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
13618                 object names as libgcc2.c.
13619         * libgcc.S: Use newly defined names.
13620
13621 Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
13622         * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
13623         function.
13624         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
13625         * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
13626         (FLOW_LOOP_LAST_BLOCK): Likewise.
13627
13628 2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13629
13630         * basic-block.h (struct loop): New fields 'first' and 'last'.
13631         * flow.c (flow_loops_find): Compute loop->first and loop->last.
13632         (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
13633         and loop->last to check for NOTE_INSN_LOOP_END.
13634
13635 Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>
13636
13637         * predict.c (estimate_probability): Use the new FIRST and LAST fields
13638         of the loop descriptor rather than HEADER and LATCH. Also added
13639         missing break statements as well making some coding style modifications
13640         as suggested by Michael Hayes.
13641
13642 2000-01-28  Richard Henderson  <rth@cygnus.com>
13643
13644         * flow.c (find_basic_blocks): Remove do_cleanup argument.
13645         Break out that code ...
13646         (cleanup_cfg): ... here.
13647         (commit_one_edge_insertion): Detect a return instruction being
13648         emitted to an edge.  Emit a barrier following; clear fallthru.
13649         (commit_edge_insertions): Verify CFG consistency.
13650         * function.c (expand_function_start): Kill unused variable.
13651         (expand_function_end): Likewise.
13652         (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
13653         to insert the epilogue.
13654
13655         * gcse.c (gcse_main): Adjust for find_basic_blocks change.
13656         (delete_null_pointer_checks): Likewise.
13657         * output.h: Likewise.
13658         * reg-stack.c (reg_to_stack): Likewise.
13659         * toplev.c (rest_of_compilation): Likewise.  Run
13660         thread_prologue_and_epilogue_insns after rebuilding the CFG.
13661
13662 2000-01-28  Richard Henderson  <rth@cygnus.com>
13663
13664         * Makefile.in (flow.o): Revert 24 Jan change.
13665         * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
13666         FUNCTION_VALUE result to DECL_RESULT's mode.
13667
13668         * haifa-sched.c (schedule_insns): Don't recompute reg info
13669         after reload.
13670
13671 2000-01-28  Zack Weinberg  <zack@wolery.cumb.org>
13672
13673         * configure.in: Make --enable-cpplib the default.
13674         * configure: Regenerate.
13675         * gcc.dg/990119-1.c: No longer expected to fail.
13676
13677 2000-01-28  Bernd Schmidt  <bernds@cygnus.co.uk>
13678
13679         * jump.c (jump_optimize_1): Delete an optimization that is also done
13680         by merge_blocks in flow.
13681
13682 2000-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13683
13684         * diagnostic.c (build_message_string, output_printf,
13685         line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
13686         (build_location_prefix): Fix non-literal format string.
13687
13688 2000-01-27  Richard Henderson  <rth@cygnus.com>
13689
13690         * alpha.md (trunctfsf2): New.
13691
13692 2000-01-27  Andrew Hobson  <ahobson@eng.mindspring.net>
13693
13694         * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
13695
13696 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
13697
13698         * cppinit.c (cpp_handle_option): Recognize C++ comments under
13699         -std=gnu89.
13700         * cpplib.c (skip_block_comment, skip_line_comment): Split code
13701         out of...
13702         (skip_comment) ... here.  Permit C++ comments in system
13703         headers always.  Warn about C++ comments in user code under
13704         -std=gnu89 -pedantic.
13705         (copy_comment): Use skip_comment.
13706         (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
13707         return EOF.
13708         (consider_directive_while_skipping, do_else, do_endif): Call
13709         validate_else unconditionally.
13710         (validate_else): Check CPP_PEDANTIC here.  Accept non-comment
13711         text after the conditional in a system header.
13712         * cpplib.h (struct cpp_buffer): Add flag
13713         warned_cplusplus_comments.
13714
13715 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
13716
13717         * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
13718         Use unshare_all_rtl_1.
13719         (unshare_all_rtl_again): New function.
13720         (unshare_all_rtl_1): New function split out of unshare_all_rtl.
13721
13722         * function.c (purge_addressof_1): Use unshare_all_rtl_again
13723         rather than resetting the 'used' flags ourself.
13724
13725         * toplev.c (rest_of_compilation): Add current_function_decl
13726         to the unshare_all_rtl call.
13727         * tree.h: Prototype unshare_all_rtl.
13728         * rtl.h: Prototype unshare_all_rtl_again here.
13729
13730 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
13731
13732         * genoutput.c (output_prologue): Include ggc.h in generated
13733         files.
13734         * Makefile.in (insn-output.o): Depends on ggc.h.
13735
13736 2000-01-27  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
13737             Hans-Peter Nilsson  <hp@bitrange.com>
13738
13739         * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
13740         Remove redundant include of xm-ns32k.h.
13741         * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
13742         Remove redundant include of xm-ns32k.h.
13743         * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
13744         Remove redundant include of xm-ns32k.h.
13745         * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
13746
13747         * ns32k/ns32k.h: Update comment on multiply-add instructions.
13748         (TARGET_SWITCHES): Add documentation strings.
13749         (DWARF_FRAME_REGNUM): Override default definition.
13750         (REG_CLASS_CONTENTS): Add comments.
13751         (SUBSET_P): Format to reduce line length.
13752         (SMALL_REGISTER_CLASSES): Make a run time option.
13753         (GO_IF_NONINDEXED_ADDRESS): Reformat.
13754         (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
13755         dereferencing it.  Braces to avoid "ambiguous else" were misplaced.
13756         (regclass_map): fix typo in comment.
13757         * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
13758         Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
13759         (trace, reg_or_mem_operand): Delete, unused function.
13760         (calc_address_cost): Small offsets are cheaper than large ones.
13761         (expand_block_move): Generate more efficient code when bytes is a
13762         known at compile time.
13763         * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
13764         (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
13765         instead of reg_or_mem_operand.
13766
13767         * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
13768         not general_operand.  Similarly use "=rm" or stricter, not "=g".
13769         For input operands, use stricter constraints than "g" if not
13770         general_operand.  Similarly use stricter predicate than
13771         "general_operand" when stricter constraints than "g" are present,
13772         except for matching constraints.
13773         (movstrsi): Use "memory_operand" for operands 0 and 1.
13774         (truncsiqi2, truncsihi2, trunchiqi2): Remove.
13775         (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
13776         not reg_or_mem_operand.
13777         (udivmoddisi4): Ditto.
13778         Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
13779         Use nonimmediate_operand for operand 3, not register_operand.
13780         (udivmoddiqi4_internal): Use register_operand for operand 1, not
13781         reg_or_mem_operand.
13782
13783 2000-01-27  Fred Fish  <fnf@be.com>
13784
13785         * gthr-posix.h: Fix typo; compatibily -> compatibility.
13786         * gthr-single.h: Likewise.
13787         * gthr-solaris.h: Likewise.
13788         * gthr-vxworks.h: Likewise.
13789         * gthr-win32.h: Likewise.
13790         * gthr.h: Likewise.
13791
13792 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
13793
13794         * cppinit.c: Add " (cpplib)" to end of string printed by
13795         -v / --version.
13796
13797 2000-01-27  Richard Henderson  <rth@cygnus.com>
13798
13799         * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
13800         testing for a signed comparison.
13801         (alpha_emit_floatuns): New.
13802         * alpha-protos.h: Declare it.
13803         * alpha.md (floatunsdisf2, floatunsdidf2): New.
13804         (extendsfdf2): Tidy.
13805
13806 2000-01-27  Jakub Jelinek  <jakub@redhat.com>
13807
13808         * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
13809         no -g option specifying debugging format, default to -gstabs+.
13810
13811 Wed Jan 26 22:19:14 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
13812
13813         * calls.c (special_function_p): New argument fork_or_exec.
13814         (expand_call): When profile_arc_flag is set and the function
13815         is in the fork_or_exec group, call __bb_fork_func first.
13816         * libgcc2.c, _bb module (__bb_fork_func): New function.
13817         (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
13818         output file.
13819         * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
13820         * tree.h (special_function_p): Update prototype.
13821
13822 2000-01-26  Richard Henderson  <rth@cygnus.com>
13823
13824         * alpha.c (alpha_split_tfmode_pair): New.
13825         * alpha-protos.h: Declare it.
13826         * alpha.md (abstf2, negtf2): New.
13827         (movtf insn): Add input G constraint.
13828         (movtf splitter): Use alpha_split_tfmode_pair.
13829
13830 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13831
13832         * i386/cygwin.h: PROTO -> PARAMS.
13833
13834 2000-01-26  Jakub Jelinek  <jakub@redhat.com>
13835
13836         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
13837         TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
13838         using _Qp_cmp/_Q_cmp and testing the return value.
13839         (print_operand): Call reverse_condition_maybe_unordered if
13840         we are handling CCFPmode or CCFPEmode.
13841         Handle ORDERED, UN* and LTGT comparisons.
13842         * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
13843         if not TARGET_HARD_QUAD.
13844         (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
13845         bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
13846         Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
13847         Adjust gen_b* calls so that they reflect return comparison of
13848         sparc_emit_float_lib_cmp.
13849
13850 2000-01-26  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13851
13852         * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
13853         incoming operands array is large enough for one more operand.
13854         (alpha_emit_xfloating_arith): Likewise.
13855
13856 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
13857
13858         * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
13859         file with one line and no trailing newline.
13860         Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
13861         * fixinc/fixtests.c (machine_name_test): Fix fencepost error
13862         checking if the match is on the line.
13863         * fixinc/gnu-regex.c: Provide regerror not __regerror.
13864
13865 2000-01-25  Richard Henderson  <rth@cygnus.com>
13866
13867         * sparc.c (output_cbranch): Fix accidental squashing of the
13868         fp branch pre-delay nop.
13869
13870 2000-01-25  Richard Henderson  <rth@cygnus.com>
13871
13872         * tree.def (UNNE_EXPR): Remove.
13873         * c-typeck.c (build_binary_op): Don't handle it.
13874         * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
13875
13876         * rtl.def (UNNE): Remove.
13877         (LTGT): Add.
13878         * jump.c (reverse_condition): Update accordingly.
13879         (swap_condition): Likewise.
13880         (comparison_dominates_p): Handle unordered comparisons.
13881         (reverse_condition_maybe_unordered): New.
13882         * rtl.h (reverse_condition_maybe_unordered): Declare.
13883
13884         * sparc.c (select_cc_mode): Update for UNNE/LTGT.
13885         (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
13886         * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
13887         * sparc.md (bltgt): New.
13888
13889 2000-01-25  Nick Clifton  <nickc@redhat.com>
13890
13891         * emit-rtl.c (emit_insn): Only check machine class insns for
13892         improper emission of a RETURN.
13893
13894 2000-01-25  Richard Henderson  <rth@cygnus.com>
13895
13896         * Makefile.in (flow.o): Depend on $(EXPR_H).
13897         * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
13898         duplicate the structure of diddle_return_value for keeping regs live.
13899
13900 2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13901
13902         * loop.c (current_loop_info): Delete.
13903         (consec_sets_invariant_p): Add loop argument, update callers.
13904         (get_condition_for_loop): Likewise.
13905         (count_nonfixed_reads, update_giv_derive): Likewise.
13906         (simplify_giv_expr, general_induction_var): Likewise.
13907         (consec_sets_giv, recombine_givs): Likewise.
13908         (move_movables): Delete loop_start and loop_end arguments,
13909         add loop argument, and update callers.
13910         (find_mem_givs, check_final_value): Likewise.
13911         (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
13912         (loop_invariant_p): Rename from invariant_p, add loop argument, and
13913         update callers.
13914         (basic_induction_var): Add loop argument, delete loop_level argument,
13915         and update callers.
13916         * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
13917         add loop argument, and update callers.
13918         (find_splittable_regs, find_splittable_givs): Likewise.
13919         (reg_dead_after_loop, loop_find_equiv_value): Likewise.
13920         (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
13921         (biv_total_increment): Delete loop_start and loop_end arguments;
13922         update callers.
13923         (precondition_loop_p): Delete loop_start and loop_info arguments;
13924         update callers.
13925         * loop.h (get_condition_for_loop): Add loop argument.
13926         (biv_total_increment): Delete loop_start and loop_end arguments.
13927         (precondition_loop_p): Delete loop_start and loop_info arguments;
13928         add loop argument.
13929         (final_biv_value): Delete loop_start and loop_end arguments;
13930         add loop argument.
13931         (final_giv_value, back_branch_in_range_p): Likewise.
13932
13933 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
13934
13935         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
13936
13937 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
13938
13939         * Makefile.in (c-gperf.h) : Change the "See" pointer to
13940         point to the new "generated_files" doc.
13941
13942 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
13943
13944         * config/fp-bit.c (_unord_f2): Fix typo.
13945
13946 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
13947
13948         * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
13949         c-typeck.c, objc/objc-act.c: Remove all references to obstack
13950         functions obsoleted by GC, such as push_obstacks_nochange,
13951         end_temporary_allocation, savealloc, saveable_tree_cons, etc.
13952         and code which existed only to decide whether or not to call
13953         them.  Remove now-unused NESTED argument from start_function;
13954         all callers changed.  Do not change behavior based on ggc_p.
13955         The use of the ixp_obstack in c-iterate.c and the util_obstack
13956         in objc/objc-act.c remain; these are not obsoleted by garbage
13957         collection.
13958         * c-tree.h: Update prototype for start_function.
13959
13960         * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
13961
13962 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
13963
13964         * config/mips/mips.md (zero_extendsidi2_internal): Disable for
13965         mips16.
13966
13967 2000-01-25  Richard Henderson  <rth@cygnus.com>
13968
13969         * sparc-protos.h (select_cc_mode): Declare.
13970         * sparc.c (select_cc_mode): New.  Handle unordered compares.
13971         (output_cbranch): Always reverse via code change.  Handle
13972         unordered compares.  Factor tests and string updates.
13973         * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
13974         (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
13975         * sparc.md (bunordered, bordered): New.
13976         (bungt, bunlt, buneq, bunge, bunle): New.
13977
13978 2000-01-25  Richard Henderson  <rth@cygnus.com>
13979
13980         * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
13981         * ggc-common.c (ggc_add_rtx_varray_root): New.
13982         (ggc_mark_rtx_varray): New.
13983         (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
13984         functions down below ggc_mark_foo.
13985         * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
13986
13987 2000-01-25  Richard Henderson  <rth@cygnus.com>
13988
13989         * alpha.c (secondary_reload_class): Don't allocate a secondary
13990         for integral mode memories into FLOAT_REGS.  Rearrange the more
13991         complicated memory expression inward.
13992
13993 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
13994
13995         * inclhack.def: Fixes to play nicer with FreeBSD, and
13996         corrections to comments.
13997         (cxx_unready): Add select expression.
13998         (irix_sockaddr): Add bypass expression.
13999         (machine_ansi_h_va_list): New fix.
14000         (stdio_va_list): No need to edit _BSD_VA_LIST_.
14001         Split out addition of "#include <stdarg.h>" to...
14002         (stdio_stdarg_h): ... here.
14003         (systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
14004         to stdlib.h also.  Do not munge _BSD_SIZE_T_.
14005         (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
14006         size_t.
14007         (ultrix_ifdef): Tighten up select expression.
14008
14009         * fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
14010         re_ct and max_mach to avoid use of shell.  Make printed names
14011         match names in inclhack.def.  Use static copyright date.
14012         Don't count c_test and test expressions as requiring regex_t
14013         slots.  Add some commentary.
14014         * inclhack.tpl: Do not include the 'This script contains N
14015         fixup scripts' line if PROGRAM is defined.  Use static
14016         copyright date.
14017
14018 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
14019
14020         * dwarf2out.c: include "varray.h", not dyn-string.h.
14021         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
14022         (addr_const_to_string, addr_to_string): Lose.
14023         (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
14024         (struct dw_val_struct): val_addr is now an rtx.
14025         (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
14026         (used_rtx_varray): New varray.
14027         (dwarf2out_init): Initialize it.
14028         (save_rtx): New fn.
14029         (mem_loc_descriptor, add_const_value_attribute): Call it instead of
14030         addr_to_string.
14031         * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
14032         sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
14033         * Makefile.in (dwarf2out.o): Update dependencies.
14034
14035 2000-01-24  Richard Henderson  <rth@cygnus.com>
14036
14037         * i386.c (i386_dwarf_output_addr_const): New.
14038         * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
14039
14040         * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
14041         if defined.
14042         * dwarfout.c (output_mem_loc_descriptor): Likewise.
14043         * i386.c (i386_simplify_dwarf_addr): New.
14044         * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
14045
14046 Mon Jan 24 16:56:10 2000  Jim Wilson  <wilson@cygnus.com>
14047
14048         * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
14049         TYPE_STUB_DECL is NULL.
14050
14051 2000-01-24  Richard Henderson  <rth@cygnus.com>
14052
14053         * builtins.c (expand_tree_builtin): Move ...
14054         * c-common.c (expand_tree_builtin): ... here.
14055
14056 2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14057
14058         * loop.h (LOOP_INFO): New accessor macro.
14059         * basic-block.h (struct loop): Rename field `info' to `aux'.
14060         * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
14061         (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
14062         * unroll.c (loop_iterations, unroll_loop): Likewise.
14063
14064 2000-01-24  Christopher Faylor <cgf@cygnus.com>
14065
14066         * config/i386/t-cygwin: Accomodate new winsup directory layout
14067         when searching for include files.
14068
14069 2000-01-24  Richard Henderson  <rth@cygnus.com>
14070
14071         * rtl.def: Add unordered fp comparisions.
14072         * tree.def: Likewise.
14073         * tree.h: Add ISO C 9x unordered fp comparision builtins.
14074
14075         * builtins.c (expand_tree_builtin): New function.
14076         * c-typeck.c (build_function_call): Use it.
14077         (build_binary_op): Support unordered compares.
14078         * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
14079
14080         * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
14081         (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
14082         * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
14083         (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
14084         * jump.c (reverse_condition): Don't abort for UNLE etc, but
14085         return UNKNOWN.
14086         (swap_condition): Handle unordered compares.
14087         (thread_jumps): Check can_reverse before reversing.
14088         * loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
14089         reversed for FP.
14090
14091         * optabs.c (can_compare_p): New argument CODE.  Verify branch or
14092         setcc is present before acking for cmp_optab.  Update all callers.
14093         (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
14094         * expmed.c (do_cmp_and_jump): Update for can_compare_p.
14095         * expr.c (expand_expr): Likewise.  Support unordered compares.
14096         (do_jump, do_store_flag): Likewise.
14097         * expr.h (enum libfunc_index): Add unordered compares.
14098
14099         * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
14100         (DPBIT_FUNCS): Add _unord_df.
14101         * config/fp-bit.c (_unord_f2): New.
14102         * fp-test.c (main): Try unordered compare builtins.
14103
14104         * alpha-protos.h (alpha_fp_comparison_operator): Declare.
14105         * alpha.c (alpha_comparison_operator): Check mode properly.
14106         (alpha_swapped_comparison_operator): Likewise.
14107         (signed_comparison_operator): Likewise.
14108         (alpha_fp_comparison_operator): New.
14109         (alpha_emit_conditional_branch): Handle unordered compares.
14110         * alpha.h (PREDICATE_CODES): Update.
14111         * alpha.md (fp compares): Use alpha_fp_comparison_operator.
14112         (bunordered, bordered): New.
14113
14114 2000-01-24  Richard Henderson  <rth@cygnus.com>
14115
14116         * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
14117         * alpha.md (movtf): New expander, insn, and splitter.
14118
14119 Mon Jan 24 19:49:47 MET 2000  Jan Hubicka  <jh@suse.cz>
14120
14121         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14122         dead registers.
14123
14124 Mon Jan 24 17:37:31 MET 2000  Jan Hubicka  <jh@suse.cz>
14125
14126         * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
14127         (FIXED_REGISTERS, CALL_USED_REGISTERS,
14128          REG_ALLOC_ORDER): Add frame pointer
14129         (FRAME_POINTER_REGNUM): Set to 20
14130         (HARD_FRAME_POINTER_REGNUM): New macro.
14131         (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
14132         to HARD_FRAME_POINTER.
14133         (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
14134         (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
14135         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
14136         (HI_REGISTER_NAMES): Add "frame".
14137         (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
14138         (debug_reg): Handle FRAME_POINTER_REGNUM.
14139         (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
14140         GENERAL_REGS and INDEX_REGS.
14141         * i386.c (SAVED_REGS_FIRST): new macro.
14142         (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
14143         (ix86_decompose_address, memory_address_length): Likewise.
14144         (regclass_map): Add frame pointer.
14145         (call_insn_operand): Handle frame_pointer_rtx.
14146         (reg_no_sp_operand): Likewise.
14147         (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
14148         (print_operand, legitimize_pic_address): Fix formating.
14149         (ix86_compute_frame_size): Make static, update prototype, new
14150         parameters padding1, padding2, use ix86_nsaved_regs, use
14151         stack_alignment_needed.
14152         (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
14153         to HARD_FRAME_POINTER_REGNUM conversions.
14154         (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
14155         (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
14156         (print_reg): Abort on FRAME_POINTER_REGNUM
14157
14158 Mon Jan 24 16:50:08 MET 2000  Jan Hubicka  <jh@suse.cz>
14159
14160         * i386.h (PREDICATE_CODES): Add aligned_operand.
14161         * i386.c (aligned_operand): New function.
14162         (ix86_aligned_p): Kill.
14163         * i386.md (movhi_1): Emit mov for aligned operands.
14164         (promoting peep2s): Use aligned_operand.
14165
14166 2000-01-23  Zack Weinberg  <zack@wolery.cumb.org>
14167
14168         * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
14169         expression to allow underscores in macro names.
14170         (fix_char_macro_defines): Increment scanning pointer.
14171
14172 2000-01-23  Richard Henderson  <rth@cygnus.com>
14173
14174         * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
14175         * alpha/osf5.h: New file.
14176         * configure.in (alpha-*-osf5): Add it to tm_file.
14177
14178         * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
14179
14180         * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
14181         (alpha_emit_xfloating_cvt, function_arg): Declare.
14182         * alpha.c (alpha_emit_conditional_branch): Call
14183         alpha_emit_xfloating_compare for TFmode compares.
14184         (alpha_lookup_xfloating_lib_func): New.
14185         (alpha_compute_xfloating_mode_arg): New.
14186         (alpha_emit_xfloating_libcall): New.
14187         (alpha_emit_xfloating_arith): New.
14188         (alpha_emit_xfloating_compare): New.
14189         (alpha_emit_xfloating_cvt): New.
14190         (print_operand): Add default abort case.
14191         (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
14192         * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
14193         (BIGGEST_ALIGNMENT): Increase to 128 bits.
14194         (RETURN_IN_MEMORY): True for TF/TCmode.
14195         (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
14196         (FUNCTION_ARG): Move to function_arg.
14197         (FUNCTION_ARG_PASS_BY_REFERENCE): New.
14198         (ASM_OUTPUT_LONG_DOUBLE): New.
14199         (ASM_OUTPUT_DOUBLE): Always output bits.
14200         * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
14201         (fix_trunctfdi2, floatditf2, floatunsditf2): New.
14202         (extenddftf2, trunctfdf2): New.
14203
14204 2000-01-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14205
14206         * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
14207         * config/sparc/sol2.h: ... here.
14208
14209 2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14210
14211         * basic-block.h (struct loops): New field `levels'.
14212         * flow.c (flow_loops_level_compute): Traverse all outer loops.
14213         (flow_loop_level_compute): Initialise level to 1.
14214         (flow_loops_find): Set loops->levels.
14215         (flow_loops_dump): Print loops->levels.
14216
14217 2000-01-23  Richard Henderson  <rth@cygnus.com>
14218
14219         * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
14220         (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
14221
14222 2000-01-23  Richard Henderson  <rth@cygnus.com>
14223
14224         * i386.c (dbx_register_map, svr4_dbx_register_map): New.
14225         * i386.h (DBX_REGISTER_NUMBER): Use them.
14226         * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
14227         * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
14228         * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
14229         * i386/sequent.h: Kill incorrect comment.
14230
14231 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
14232
14233         * ggc-page.c (struct page_entry): Make `context_depth' an
14234         `unsigned short'.
14235         (struct globals): Likewise.
14236
14237 2000-01-23  Clinton Popetz  <cpopetz@cygnus.com>
14238
14239         * loop.c (check_dbra_loop): When checking a loop for
14240         reversability, check the source of any stores to ensure
14241         they don't depend on an initial value.
14242
14243 2000-01-23  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14244
14245         * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
14246
14247 2000-01-22  Zack Weinberg  <zack@wolery.cumb.org>
14248
14249         * fixinc/fixincl.c: Move declarations of 'pz_fname' and
14250         'pz_scan' into scope of entire function.  Only affects
14251         compiles with -DDEBUG.
14252
14253 2000-01-22  Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
14254
14255         * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
14256         section naming to that prior to 2000-01-07 patch.
14257         * config/mips/elf.h (UNIQUE_SECTION): Ditto.
14258         * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
14259         * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
14260         * config/i386/interix.c (UNIQUE_SECTION): Ditto.
14261         * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
14262
14263 2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
14264
14265         * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
14266         constant.
14267
14268 2000-01-21  Jim Wilson  <wilson@cygnus.com>
14269
14270         * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
14271         * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
14272
14273 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
14274
14275         * cpphash.c (change_newlines): Delete function.
14276         (struct argdata): Delete 'newlines' and 'use_count' fields.
14277         (macroexpand): Remove code referencing those fields.
14278
14279 2000-01-22  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14280
14281         * loop.c (loops_info): New variable.
14282         (loop_optimize): Allocate loops->array and free it on exit.
14283         Allocate memory for loops_info and assign to each loop,
14284         replacing alloca.
14285         (find_and_verify_loops): Do not allocate loops->array.
14286
14287 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
14288
14289         * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
14290
14291 2000-01-21  Jakub Jelinek  <jakub@redhat.com>
14292
14293         * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
14294         pseudos if expanded after first flow.
14295         (movdi_pic_label_ref): Likewise.
14296
14297 2000-01-20  Richard Henderson  <rth@cygnus.com>
14298
14299         * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
14300
14301 2000-01-20  Zack Weinberg  <zack@wolery.cumb.org>
14302
14303         * Makefile.in (fixinc.sh): Depend on specs.
14304         * fixinc/Makefile.in: Add rule to create machname.h.
14305         (fixlib.o): Depend on machname.h.
14306         * fixinc/fixtests.c (machine_name): New test.
14307         * fixinc/fixfixes.c (machine_name): New fix.
14308         * fixinc/fixlib.c (mn_get_regexps): New helper function for
14309         the machine_name test and fix.
14310         * fixinc/fixlib.h: Prototype it.
14311         * fixinc/inclhack.def (machine_name): Use the C test and fix.
14312         * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
14313
14314         * gcc.c (do_spec_1) [case P]: Take care not to create
14315         identifiers with three leading or trailing underscores.
14316
14317         * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
14318         (fixincl): Don't specify libraries twice on link line.
14319         (gnu-regex.o): Remove special rule.
14320         * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
14321         defined by config.h.  Do not define _REGEX_RE_COMP.
14322         (regcomp): Allocate and initialize a fastmap.
14323         * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
14324
14325 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
14326
14327         * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
14328
14329 2000-01-19  Richard Henderson  <rth@cygnus.com>
14330
14331         * flow.c (propagate_block): Replace FIRST, LAST and BNUM
14332         arguments with BB.  Update all callers.  Tidy line wrapping.
14333
14334 2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
14335
14336         * emit-rtl.c (try_split): Return last_insn if we split the
14337         last_insn.
14338
14339 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
14340
14341         * i386-protos.h (ix86_compute_frame_size): Remove prototype.
14342         (ix86_initial_elimination_offset): Declare.
14343         * i386.c (ix86_nsaved_regs): Break out from ...
14344         (ix86_can_use_return_insn_p): ... here.
14345         (ix86_emit_save_regs): Break out from ...
14346         (ix86_expand_prologue): ... here.
14347         (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
14348         out from ...
14349         (ix86_expand_epilogue): ... here.
14350         (ix86_compute_frame_size): Make static, add prototype.
14351         (ix86_initial_elimination_offset): Break out from ...
14352         * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
14353
14354 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14355
14356         * recog.h (OUT_FCN): Delete.
14357
14358         * vax.md: Call `get_insn_template' instead of OUT_FCN.
14359
14360 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14361
14362         * cppalloc.c: PROTO -> PARAMS.
14363         * cpperror.c: Likewise.
14364         * cppfiles.c: Likewise.
14365         * cpplib.c: Likewise.
14366         * cpplib.h: Likewise.
14367
14368         * config/arm/arm-protos.h: PROTO -> PARAMS.
14369         * config/arm/arm.c: Likewise.
14370         * config/c4x/c4x.c: Likewise.
14371         * config/fr30/fr30-protos.h: Likewise.
14372         * config/nextstep.c: Likewise.
14373         * config/pa/pa.c: Likewise.
14374         * config/pj/pj.c: Likewise.
14375         * config/rs6000/rs6000.c: Likewise.
14376         * config/v850/v850-protos.h: Likewise.
14377         * config/v850/v850.c: Likewise.
14378
14379 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14380
14381         * i370-protos.h: New file.
14382
14383         * i370.c: Include tm_p.h.  Fix compile time warnings.
14384
14385         * i370.h: Move prototypes to i370-protos.h.  Fix compile time
14386         warnings.
14387
14388         * i370.md: Likewise.
14389
14390 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14391
14392         * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
14393         (target_isinf, target_isnan, eisnan): Mark parameter with
14394         ATTRIBUTE_UNUSED.
14395         (eiisinf): Wrap in INFINITY.
14396         (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
14397         (ibmtoe): Remove unused variable `rndsav'.
14398
14399 Wed Jan 19 20:23:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14400
14401         * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
14402         (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
14403
14404 2000-01-19  Zack Weinberg  <zack@wolery.cumb.org>
14405
14406         * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
14407         * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
14408         (fix_char_macro_defines, fix_char_macro_uses): New functions.
14409
14410         * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
14411         Recognize Emacs mode markers also.
14412         * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
14413         C++ comments in C++ headers.  Call is_cxx_header only if
14414         necessary.
14415
14416         * fixinc/inclhack.def (avoid_bool): Add select for the problem and
14417         bypass for ncurses.
14418         (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
14419         (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
14420         ... these, which use the new C fixes.
14421         (math_exception): Escape literal '+' in bypass expression.
14422
14423         * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
14424         Regenerate.
14425
14426 2000-01-19  Geoff Keating  <geoffk@cygnus.com>
14427
14428         * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
14429         inside the MEM.
14430
14431 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14432
14433         * loop.c (loop_optimize): Allocate loop_info structure for each loop
14434         prior to calling scan_loop.
14435
14436 Wed Jan 19 19:54:38 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14437
14438         * sh.c (find_barrier, gen_block_redirect): Fix indentation.
14439         (split_branches, calc_live_regs): Likewise.
14440
14441 Wed Jan 19 19:12:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14442
14443         * sh.md (fpu_single, fp_mode): New attributes.
14444
14445 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14446
14447         * loop.c (current_loop_info): Renamed from loop_info_data
14448         and changed to a pointer.
14449         (loop_optimize): Allocate loop_info structure for each loop
14450         and initialise to zero.
14451         (scan_loop): Set current_loop_info.
14452
14453         * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
14454         on iteration_var.
14455
14456 2000-01-19  Richard Henderson  <rth@cygnus.com>
14457
14458         * stupid.c: Die die die.
14459         * Makefile.in (OBJS): Remove stupid.o.
14460         (stupid.o): Likewise.
14461
14462         * except.c (emit_eh_context): Don't emit USEs for stupid.
14463         * explow.c (probe_stack_range): Likewise.
14464         * flags.h (obey_regdecls): Remove.
14465         * flow.c (find_basic_blocks): Don't run try_merge_blocks
14466         when not optimizing.
14467         (life_analysis): Limit data collection when not optimizing.
14468         (mark_regs_live_at_end): Always mark the return value registers.
14469         (mark_used_regs): Remove dummy RETURN case.
14470         (print_rtl_with_bb): Don't consult obey_regdecls.
14471         * function.c (use_variable, use_variable_after): Remove.
14472         (assign_parms): Consult optimize not obey_regdecls.
14473         (expand_function_start): Don't emit USEs for stupid.
14474         (expand_function_end): Likewise.
14475         * global.c (build_insn_chain): Export.
14476         * integrate.c (expand_inline_function): Kill return-value USE
14477         handling code.
14478         * jump.c (jump_optimize_1): Do simple jump optimizations and
14479         dead code elimination.
14480         (calculate_can_reach_end): Remove check_deleted argument.
14481         (delete_insn): Patch out insns even when not optimizing.
14482         * local-alloc.c (block_alloc): Don't do tying when not optimizing.
14483         * rtl.h (use_variable, use_variable_after): Remove declarations.
14484         (build_insn_chain): Declare.
14485         * stmt.c (expand_value_return): Don't emit USEs for stupid.
14486         (expand_end_bindings): Likewise.
14487         (expand_decl): Likewise.  Consult optimize not obey_regdecls.
14488         * toplev.c (obey_regdecls): Remove.
14489         (rest_of_compilation): Don't set it.  Kill stupid in favour of
14490         flow1, local-alloc, and reload.
14491         (main): Don't set obey_regdecls.
14492
14493         * config/nextstep.c (handle_pragma): Likewise.
14494
14495         * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
14496
14497         * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
14498
14499 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14500
14501         * alpha-protos.h: PROTO -> PARAMS.
14502         * alpha.c: Likewise.
14503         * elf.h: Likewise.
14504         * h8300.c: Likewise.
14505         * i386-protos.h: Likewise.
14506         * i386.c: Likewise.
14507         * m32r-protos.h: Likewise.
14508         * m32r.c: Likewise.
14509         * mips.c: Likewise.
14510         * mips.md: Likewise.
14511         * gmon-sol2.c: Likewise.
14512         * sparc.c: Likewise.
14513
14514 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14515
14516         * ns32k-protos.h: New file.
14517
14518         * ns32k.c: Fix compile time warnings.
14519
14520         * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
14521         warnings.
14522
14523         * ns32k.md: Likewise.
14524
14525 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14526
14527         * vax-protos.h: New file.
14528
14529         * vax.c: Fix compile time warnings.
14530
14531         * vax.h: Move prototypes to vax-protos.h.  Fix compile time
14532         warnings.
14533
14534         * vax.md: Likewise.
14535
14536         * vaxv.md: Likewise.
14537
14538 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14539
14540         * romp-protos.h: New file.
14541
14542         * romp.c: Fix compile time warnings.
14543
14544         * romp.h: Move prototypes to romp-protos.h.  Fix compile time
14545         warnings.
14546
14547         * romp.md: Likewise.
14548
14549 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14550
14551         * we32k-protos.h: New file.
14552
14553         * we32k.c: Fix compile time warnings.
14554
14555         * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
14556         warnings.
14557
14558 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14559
14560         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
14561
14562         * except.c (eh_regs): Likewise.
14563
14564         * final.c (output_operand): Likewise.
14565
14566         * fold-const.c (target_isinf, target_isnan): Likewise.
14567
14568 Tue Jan 18 16:19:55 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
14569
14570         * i386.h (BIGGEST_ALIGNMENT): Set to 128.
14571         (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
14572
14573         * i386.md (memstr): Do not use rep stosb for counts divisible by 4
14574         when optimize_size.
14575         (clrstrsi): Rewrite.
14576         (strsethi, strsetqi): New expanders.
14577         (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
14578         (cmpstrsi): Emit compare insn before cmpstrsi_1
14579         (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
14580         (strlensi_1): Likewise.
14581         (cmpstrsi_1): Likewise; do not output compare.
14582         (strlen expander): Do not unroll when optimizing for size.
14583         (*subsi3_carry): Rename to subsi3_carry
14584         (addqi3_cc): New pattern.
14585         * i386.h (processor_costs): Add move_ratio field.
14586         (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
14587         * i386.c (*_cost): Set move_ratio.
14588         (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
14589         (x86_expand_strlensi_1): Rewrite the main loop.
14590
14591 2000-01-17  Richard Henderson  <rth@cygnus.com>
14592
14593         * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
14594         * cse.c (find_comparison_args, fold_rtx): Likewise.
14595         * integrate.c (subst_constants): Likewise.
14596         * loop.c (get_condition): Likewise.
14597
14598         * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
14599
14600         * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
14601
14602 2000-01-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
14603
14604         * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
14605         (RESTORE_WARN_FLAGS): Unpack it.
14606         Change semantic type of extension to ttype.
14607         * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
14608         * c-parse.y, c-parse.c, objc/objc-parse.y,
14609         objc/objc-parse.c: Regenerate.
14610
14611 2000-01-17  Zack Weinberg  <zack@wolery.cumb.org>
14612
14613         * fixinc/fixlib.c: Add copyright notice.
14614         (compile_re): New function.
14615         * fixinc/fixlib.h: Prototype compile_re.
14616
14617         * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
14618         Use compile_re to compile regular expressions.
14619
14620         * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
14621         where the pattern matched.
14622
14623         * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
14624         use 'replace'.
14625         (ultrix_ansi_compat): Likewise.
14626         (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
14627         add egrep test.
14628         (interactv_add2, interactv_add3): Delete.
14629         (x11_sprintf): Don't use filename glob.
14630         * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
14631         Regenerate.
14632
14633 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14634
14635         * print-rtl.c: PROTO -> PARAMS.
14636         * real.c: Likewise.
14637         * reg-stack.c: Likewise.
14638         * resource.c: Likewise.
14639         * sdbout.h: Likewise.
14640         * simplify-rtx.c: Likewise.
14641         * stor-layout.c: Likewise.
14642         * stupid.c: Likewise.
14643         * xcoffout.c: Likewise.
14644         * xcoffout.h: Likewise.
14645
14646 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14647
14648         * toplev.c: PROTO -> PARAMS.
14649         * toplev.h: Likewise.
14650         * tree.c: Likewise.
14651         * tree.h: Likewise.
14652         * unroll.c: Likewise.
14653         * varasm.c: Likewise.
14654         * varray.c: Likewise.
14655         * varray.h: Likewise.
14656
14657 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14658
14659         * reload.c: PROTO -> PARAMS.
14660         * reload.h: Likewise.
14661         * reload1.c: Likewise.
14662         * reorg.c: Likewise.
14663         * resource.h: Likewise.
14664         * rtl.c: Likewise.
14665         * rtl.h: Likewise.
14666         * rtlanal.c: Likewise.
14667         * sbitmap.h: Likewise.
14668         * sdbout.c: Likewise.
14669         * stack.h: Likewise.
14670         * stmt.c: Likewise.
14671         * system.h: Likewise.
14672
14673 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14674
14675         * machmode.h: PROTO -> PARAMS.
14676         * mbchar.h: Likewise.
14677         * mips-tdump.c: Likewise.
14678         * mips-tfile.c: Likewise.
14679         * optabs.c: Likewise.
14680         * output.h: Likewise.
14681         * prefix.c: Likewise.
14682         * profile.c: Likewise.
14683         * protoize.c: Likewise.
14684         * real.h: Likewise.
14685         * recog.c: Likewise.
14686         * recog.h: Likewise.
14687         * regclass.c: Likewise.
14688         * regmove.c: Likewise.
14689         * regs.h: Likewise.
14690
14691 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14692
14693         * ggc-common.c: PROTO -> PARAMS.
14694         * ggc-page.c: Likewise.
14695         * ggc-simple.c: Likewise.
14696         * ggc.h: Likewise.
14697         * global.c: Likewise.
14698         * graph.c: Likewise.
14699         * gthr-win32.h: Likewise.
14700         * haifa-sched.c: Likewise.
14701         * halfpic.h: Likewise.
14702         * integrate.c: Likewise.
14703         * integrate.h: Likewise.
14704         * jump.c: Likewise.
14705         * lcm.c: Likewise.
14706         * local-alloc.c: Likewise.
14707         * loop.c: Likewise.
14708         * loop.h: Likewise.
14709
14710 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14711
14712         * genattr.c: PROTO -> PARAMS.
14713         * genattrtab.c: Likewise.
14714         * gencheck.c: Likewise.
14715         * gencodes.c: Likewise.
14716         * genconfig.c: Likewise.
14717         * genemit.c: Likewise.
14718         * genextract.c: Likewise.
14719         * genflags.c: Likewise.
14720         * gengenrtl.c: Likewise.
14721         * genopinit.c: Likewise.
14722         * genoutput.c: Likewise.
14723         * genpeep.c: Likewise.
14724         * genrecog.c: Likewise.
14725
14726 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
14727
14728         * tree.h (BINFO_VPTR_FIELD): Augment documentation.
14729
14730 2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14731
14732         * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
14733         * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
14734         * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
14735         * configure, config.in: Rebuilt.
14736
14737 2000-01-16  Zack Weinberg  <zack@wolery.cumb.org>
14738
14739         * config/i386/i386.md: Add peephole to merge successive stack
14740         adjusts.
14741
14742 Sat Jan 15 15:41:14 EST 2000  John Wehle  (john@feith.com)
14743
14744         * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
14745         instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
14746         when walking backwards to find all the parameter loads when
14747         the basic block ends in a call.
14748
14749 2000-01-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14750
14751         * loop.c (this_loop_info): Delete.
14752         (uid_loop): Add in place of uid_loop_num.  All uses updated.
14753         (loop_number_exit_count): Delete and replace with entry in loop
14754         structure.  All uses updated.
14755         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
14756         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
14757         (loop_outer_loop): Likewise.
14758         (loop_invalid, loop_number_exit_labels): Likewise.
14759         (loop_used_count_register): Delete and replace with entry in
14760         loop_info structure.
14761         (find_and_verify_loops): Add loops argument.
14762         (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
14763         loop_end, etc. arguments with loop structure pointer.  All callers
14764         changed.
14765         (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
14766         (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
14767         (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
14768         (insert_bct): Likewise.
14769         (basic_induction_var): New argument level.
14770         * loop.h (struct loop_info): Delete fields num, loops_enclosed,
14771         vtop, and cont.  Add used_count_register.
14772         (uid_loop): Delete declaration.
14773         (loop_number_exit_count): Likewise.
14774         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
14775         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
14776         (loop_outer_loop, loop_used_count_register): Likewise.
14777         (loop_invalid, loop_number_exit_labels): Likewise.
14778         (unroll_loop): Replace loop_start and loop_end arguments
14779         with loop structure pointer.
14780         (loop_precondition_p, loop_iterations): Likewise.
14781         Include basic-block.h.
14782         * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
14783         with loop structure pointer.
14784         (loop_precondition_p, loop_iterations): Likewise.
14785         * basic-block.h (struct loop): New entries vtop, cont,
14786         cont_dominator, start, end, top, scan_start, exit_labels,
14787         exit_count.
14788         * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
14789
14790 2000-01-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14791
14792         * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
14793
14794 2000-01-14  Nathan Sidwell  <sidwell@codesourcery.com>
14795
14796         * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
14797
14798 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14799
14800         * pdp11-protos.h: New file.
14801
14802         * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
14803         time warnings.
14804
14805         * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
14806         warnings.
14807
14808         * pdp11.md: Likewise.
14809
14810         * 2bsd.h: Likewise.
14811
14812 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14813
14814         * mn10300-protos.h: New file.
14815
14816         * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
14817         time warnings.
14818
14819         * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
14820         warnings.
14821
14822         * mn10300.md: Likewise.
14823
14824 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14825
14826         * mn10200-protos.h: New file.
14827
14828         * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
14829         time warnings.
14830
14831         * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
14832         warnings.
14833
14834         * mn10200.md: Likewise.
14835
14836 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14837
14838         * h8300-protos.h: New file.
14839
14840         * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
14841         time warnings.
14842
14843         * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
14844         warnings.
14845
14846         * h8300.md: Likewise.
14847
14848 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14849
14850         * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
14851         (asm_emit_uninitialised): Likewise.
14852
14853 2000-01-13  Gavin Romig-Koch  <gavin@cygnus.com>
14854
14855         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
14856         * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
14857
14858 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
14859
14860         * config/mips/mips.c (override_options): Don't turn on extra
14861         alignment for mips16.
14862
14863 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
14864
14865         * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
14866         eabi, and make sure queued POSTINCREMENT rtl is emitted at
14867         the right point.
14868
14869 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
14870
14871         * builtins.c (PAD_VARARGS_DOWN): Define.
14872         (std_expand_builtin_va_arg): Use the above macro.
14873         * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
14874         * tm.texi (Register Arguments): Document the above macro.
14875
14876 2000-01-14  Nick Clifton  <nickc@cygnus.com>
14877
14878         * emit-rtl.c (emit_insn): If checking is enabled, make sure
14879         that this function has not been used to emit a jump
14880         instruction.
14881
14882         * jump.c (return_jump_1): Cope with being passed a null rtx.
14883
14884 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14885
14886         * eh-common.h: PROTO -> PARAMS.
14887         * emit-rtl.c: Likewise.
14888         * errors.c: Likewise.
14889         * errors.h: Likewise.
14890         * except.c: Likewise.
14891         * except.h: Likewise.
14892         * explow.c: Likewise.
14893         * expmed.c: Likewise.
14894         * expr.c: Likewise.
14895         * expr.h: Likewise.
14896         * final.c: Likewise.
14897         * fix-header.c: Likewise.
14898         * flow.c: Likewise.
14899         * fold-const.c: Likewise.
14900         * function.c: Likewise.
14901         * function.h: Likewise.
14902         * gcc.c: Likewise.
14903         * gcov-io.h: Likewise.
14904         * gcov.c: Likewise.
14905         * gcse.c: Likewise.
14906
14907 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14908
14909         * sh-protos.h: New file.
14910
14911         * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
14912         Add static prototypes.  Fix compile time warnings.
14913
14914         * sh.h: Move prototypes to sh-protos.h.  Fix compile time warnings.
14915         * sh.md: Likewise.
14916         * elf.h: Likewise.
14917
14918 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14919
14920         * arc-protos.h: New file.
14921
14922         * arc.c: Include tm_p.h.  Add static prototypes.  Fix compile
14923         time warnings.
14924
14925         * arc.h: Move prototypes to arc-protos.h.  Fix compile time
14926         warnings.
14927
14928         * arc.md: Likewise.
14929
14930 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14931
14932         * dsp16xx-protos.h: New file.
14933
14934         * dsp16xx.c: Include tm_p.h.  Add static prototypes.  Fix compile
14935         time warnings.
14936
14937         * dsp16xx.h: Move prototypes to dsp16xx-protos.h.  Fix compile time
14938         warnings.
14939
14940         * dsp16xx.md: Likewise.
14941
14942 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14943
14944         * convex-protos.h: New file.
14945
14946         * convex.c: Include tm_p.h.  Add static prototypes.  Fix compile
14947         time warnings.
14948
14949         * convex.h: Move prototypes to convex-protos.h.  Fix compile time
14950         warnings.
14951
14952 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14953
14954         * elxsi-protos.h: New file.
14955
14956         * elxsi.c: Include tm_p.h.  Add static prototypes.  Fix compile
14957         time warnings.
14958
14959         * elxsi.h: Move prototypes to elxsi-protos.h.  Fix compile time
14960         warnings.
14961
14962         * elxsi.md: Likewise.
14963
14964 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
14965
14966         * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
14967         case for moving from HI/LO/HI_LO_REG.  This makes the behavior
14968         match the comment for MIPS16.
14969
14970 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
14971
14972         * flow.c (split_edge): Do not call set_block_for_insn if we
14973         do not have a basic_block_for_insn structure.
14974
14975         * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
14976         and destination functions are 32bit aligned within the trampoline.
14977         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
14978         (TRAMPOLINE_ALIGNMENT): Define.
14979
14980         * cse.c (cse_insn): When changing (set (pc) (reg)) to
14981         (set (pc) (label_ref)), verify the change creates a valid insn.
14982
14983         * fr30.c (call_operand): Tighten and rework to match rules for
14984         call RTL expressions.
14985         * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
14986         * fr30.md (call patterns): Improve constraints.
14987
14988 Thu Jan 13 23:44:03 2000  Richard Henderson  <rth@cygnus.com>
14989
14990         * fr30.c (fr30_expand_epilogue): Revert last change.
14991         Use emit_jump_insn for the return insn.
14992
14993 Thu Jan 13 14:46:03 2000  Jason Eckhardt  <jle@cygnus.com>
14994                           Stan Cox  <scox@cygnus.com>
14995
14996         * predict.c: New file. Preliminary infrastructure work for static
14997         branch prediction and basic block reordering.
14998         * basic-block.h: Add prototype for estimate_probability.
14999         * Makefile.in: Add rules for predict.o.
15000
15001 2000-01-13  Jason Merrill  <jason@yorick.cygnus.com>
15002
15003         * fixincludes (va_list): Use __not_va_list__ for the dummy.
15004         * fixinc/*: Likewise.
15005
15006 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15007
15008         * cccp.c: PROTO -> PARAMS.
15009         * cexp.y: Likewise.
15010         * collect2.c: Likewise.
15011         * combine.c: Likewise.
15012         * convert.h: Likewise.
15013         * cse.c: Likewise.
15014         * dbxout.c: Likewise.
15015         * dbxout.h: Likewise.
15016         * diagnostic.c: Likewise.
15017         * doprint.c: Likewise.
15018         * dwarf2out.c: Likewise.
15019         * dwarf2out.h: Likewise.
15020         * dwarfout.c: Likewise.
15021         * dwarfout.h: Likewise.
15022         * dyn-string.h: Likewise.
15023
15024 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15025
15026         * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
15027         macro conditionals guarding use.
15028
15029         * dwarf2out.c: Include "tm_p.h".
15030
15031         * function.c (locate_and_pad_parm): Mark parameter with
15032         ATTRIBUTE_UNUSED.
15033         (expand_function_end): Likewise for variable `context'.
15034
15035         * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
15036
15037 2000-01-13  Nick Clifton  <nickc@cygnus.com>
15038
15039         * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
15040         register to prevent compile time warnings.
15041
15042 2000-01-13  Zack Weinberg  <zack@wolery.cumb.org>
15043
15044         * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
15045         to avoid -Wtraditional warning.
15046
15047 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15048
15049         * 1750a-protos.h: New file.
15050
15051         * 1750a.c: Include tm_p.h.  Add static prototypes.  Fix compile
15052         time warnings.
15053
15054         * 1750a.h: Move prototypes to 1750a-protos.h.  Fix compile time
15055         warnings.
15056
15057         * 1750a.md: Likewise.
15058
15059 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15060
15061         * a29k-protos.h: New file.
15062
15063         * a29k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15064         time warnings.
15065
15066         * a29k.h: Move prototypes to a29k-protos.h.  Fix compile time
15067         warnings.
15068
15069 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15070
15071         * clipper-protos.h: New file.
15072
15073         * clipper.c: Include tm_p.h.  Add static prototypes.  Fix compile
15074         time warnings.
15075
15076         * clipper.h: Move prototypes to clipper-protos.h.  Fix compile time
15077         warnings.
15078
15079 Thu Jan 13 16:03:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15080
15081         * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
15082
15083 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
15084
15085         * configure.in (--enable-new-gxx-abi): New option.
15086         * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
15087         * Makefile.in (GXX_ABI_FLAG): New variable.
15088         * configure: Regenerate.
15089
15090 2000-01-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15091
15092         * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
15093         * tm.texi (FORCE_STRUCT_BLK): Document.
15094         * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
15095
15096 Wed Jan 12 23:12:47 2000  Hans-Peter Nilsson  <hp@axis.com>
15097
15098         * config/ns32k/ns32k.md: Revert Jan 9 change.
15099
15100         * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
15101         to a mode-test, if the predicate is address_operand.
15102
15103 Wed Jan 12 22:34:00 2000  Jeffrey A Law  (law@cygnus.com)
15104
15105         * combine.c (if_then_else_cond): Be careful about what kinds
15106         of RTL expressions are passed to operand_subword.
15107
15108         * flow.c (split_edge): If we have to insert a new jump, make
15109         sure to associate it with a basic block.
15110
15111         * flow.c (commit_one_edge_insertion): A block with one successor
15112         can end in a JUMP_INSN that is not a simplejump.
15113
15114 2000-01-12  Robert Lipe  <robertl@sco.com>
15115
15116         * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
15117         (BUILD_VA_LIST_TYPE): Define.
15118         (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
15119         with crtstuff.c.
15120
15121 2000-01-12  Jason Merrill  <jason@casey.cygnus.com>
15122
15123         * cccp.c (do_pragma): Add cast to (char *).
15124
15125 2000-01-12  Richard Henderson  <rth@cygnus.com>
15126             Fred Fish  <fnf@be.com>
15127             Jason Merrill  <jason@cygnus.com>
15128
15129         * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
15130         * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
15131         * i386/beos-elf.h, i386/beos-pe.h: New files.
15132
15133         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
15134         * cross-make (SYSTEM_HEADER_DIR): Define using
15135         CROSS_SYSTEM_HEADER_DIR.
15136
15137         * gcc.c (LIBRARY_PATH_ENV): Provide default.
15138         (process_command): Use it.
15139         (main): Likewise.  Kill trailing = from env vars.
15140         (build_search_list): Put it back.
15141         * collect2.c (main): Use LIBRARY_PATH_ENV.
15142
15143         * configure.in (GCC_NEED_DECLARATIONS): Add environ.
15144         * toplev.c: Use NEED_DECLARATION_ENVIRON.
15145
15146         * tm.texi (Frame Layout): Document SMALL_STACK.
15147         * c-common.c (c_common_nodes_and_builtins): Check it.
15148
15149         * system.h: Undef alloca after including glibc's <stdlib.h>,
15150         if USE_C_ALLOCA is defined.
15151
15152         * gcc.c (set_input): New fn.
15153         (main): After all input files are compiled, reset the input file
15154         info to the first.
15155
15156         * aclocal.m4 (rindex, index): If already defined, don't attempt
15157         to redefine.
15158
15159         * ginclude/varargs.h: (__va_list__): Define ifndef.
15160         * ginclude/stdarg.h: Likewise.
15161
15162         * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
15163         instead of unsigned char.
15164
15165         * hash.h (true, false, boolean): Undef before enum.
15166
15167         * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
15168         proper type of "HOST_WIDE_INT *", rather than their natural type of
15169         "unsigned HOST_WIDE_INT *".
15170
15171 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15172
15173         * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
15174
15175         * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
15176
15177         * regclass.c (choose_hard_reg_mode): Likewise.
15178
15179         * reload.c (find_valid_class, strict_memory_address_p): Likewise.
15180
15181         * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
15182
15183 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15184
15185         * c-common.c: PROTO -> PARAMS.
15186         * c-common.h: Likewise.
15187         * c-decl.c: Likewise.
15188         * c-iterate.c: Likewise.
15189         * c-lang.c: Likewise.
15190         * c-lex.c: Likewise.
15191         * c-lex.h: Likewise.
15192         * c-parse.in: Likewise.
15193         * c-pragma.c: Likewise.
15194         * c-pragma.h: Likewise.
15195         * c-tree.h: Likewise.
15196         * c-typeck.c: Likewise.
15197         * objc/objc-act.c: Likewise.
15198         * objc/objc-act.h: Likewise.
15199
15200 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15201
15202         * m88k-protos.h: New file.
15203
15204         * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15205         time warnings.
15206
15207         * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.
15208
15209         * m88k.md: Likewise.
15210
15211         * tekXD88.h: Likewise.
15212
15213 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15214
15215         * m68k-protos.h: New file.
15216
15217         * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15218         time warnings.
15219
15220         * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.
15221
15222         * mot3300.h: Likewise.
15223
15224 2000-01-12  Richard Earnshaw <rearnsha@arm.com>
15225
15226         * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
15227         extract_bitlst.
15228         (extract_bitlist): Declare bitlen.
15229
15230 2000-01-12  Zack Weinberg  <zack@wolery.cumb.org
15231
15232         * cccp.c: Accept and ignore -lang-fortran.
15233
15234         * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
15235         qualifiers don't match at any level of pointerness.
15236
15237 2000-01-12  Robert Lipe  <robertl@sco.com>
15238
15239         * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
15240
15241 2000-01-12  Bernd Schmidt  <bernds@cygnus.co.uk>
15242
15243         * reload1.c (reload_reg_unavailable): New static variable.
15244         (reload_reg_free_p): Test it.
15245         (reload_reg_free_for_value_p): Test it instead of
15246         reload_reg_used.
15247         (choose_reload_regs_init): Compute it.
15248
15249 Wed Jan 12 03:24:41 2000  Toshiyasu Morita (toshi.morita@sega.com)
15250
15251         * reorg.c (fill_slots_from_thread): Check modified_in_p
15252         before replacing.
15253
15254 Wed Jan 12 03:20:31 2000  John Marshall <john_w_marshall@palm.com>
15255
15256         * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
15257         these nodes even if INTERNALS is not set.
15258
15259 Wed Jan 12 09:39:22 2000  Nick Burrett  <nick.burrett@btinternet.com>
15260
15261         * gcse.c (delete_null_pointer_checks_1): Cope when
15262         get_condition cannot determine the condition.
15263
15264 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
15265
15266         * toplev.h (set_message_length): Declare.
15267
15268         * diagnostic.c (obstack_chunk_alloc): Define macro.
15269         (obstack_chunk_free): Likewise.
15270         (struct output_buffer): New data structure.
15271         (vmessage): Remove.
15272         (output_maximum_width): New variable.
15273         (doing_line_wrapping, set_message_length, init_output_buffer,
15274         get_output_prefix, output_space_left, emit_output_prefix,
15275         output_newline, output_append, output_puts, dump_output,
15276         vbuild_message_string, build_message_string, build_location_prefix,
15277         voutput_notice, output_printf, line_wrapper_printf,
15278         vline_wrapper_message_with_location):  New functions. Implement
15279         automatic line wrapping.
15280         (v_message_with_decl): Make it handle automatic line wrapping.
15281         (v_error_with_file_and_line): Likewise.
15282         (v_warning_with_file_and_line): Likewise.
15283         (announce_function): Likewise.
15284         (default_print_error_function): Likewise.
15285
15286 2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>
15287
15288         * cpplib.h (struct cpp_options): Change lang_asm to char.
15289         Add lang_fortran.
15290         * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
15291         done in cpp_handle_option now.
15292         (initialize_builtins): Take out special case code used only by
15293         __STDC_VERSION__.
15294         (cpp_handle_option): Turn off trigraphs and trigraph warnings
15295         if -traditional.  Recognize -lang-fortran and set
15296         lang_fortran, also turn off cplusplus_comments.
15297         (print_help): Document -lang-fortran.
15298         * cpplib.c (handle_directive): Ignore `# 123 "file"' if
15299         lang_asm. Ignore all directives other than `# 123 "file"' if
15300         CPP_PREPROCESSED.
15301         (cpp_get_token): If -traditional, don't recognize directives
15302         unless the # is in column 1.
15303         (parse_string): If lang_fortran or lang_asm, silently
15304         terminate strings ('' or "") at end of line.
15305         Remove unnecessary braces.
15306
15307 2000-01-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15308             Richard Henderson  <rth@cygnus.com>
15309
15310         * resource.c (mark_referenced_resources): Mark a set strict_low_part
15311         as used.
15312         * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
15313         strict_low_part when possible.
15314
15315 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15316
15317         * alias.c: PROTO -> PARAMS.
15318         * basic-block.h: Likewise.
15319         * bitmap.c: Likewise.
15320         * bitmap.h: Likewise.
15321         * builtins.c: Likewise.
15322         * c-aux-info.c: Likewise.
15323         * caller-save.c: Likewise.
15324         * calls.c: Likewise.
15325
15326 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15327
15328         * Makefile.in (toplev.o): Depend on regs.h.
15329
15330         * output.h (tdesc_section): Prototype.
15331
15332         * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
15333
15334         * sdbout.c: Include "tm_p.h".
15335
15336         * toplev.c: Include "regs.h".
15337
15338 Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
15339
15340         * unroll.c (unroll_loop): Add EH support.
15341
15342 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15343
15344         * pa-protos.h: New file.
15345
15346         * pa.c: Include recog.h and tm_p.h.
15347         (compute_zdepwi_operands, compute_movstrsi_length,
15348         remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
15349         find_addr_reg, import_milli): Add static prototypes.
15350         (pa_cpu_string, pa_arch_string): Constify a char*.
15351         (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
15352         (read_only_operand): Add argument `mode'.
15353         (singlemove_string, output_move_double, output_fp_move_double,
15354         output_block_move, output_and, output_ior, output_ascii,
15355         remove_useless_addtr_insns, milli_names, output_mul_insn,
15356         output_div_insn, output_mod_insn, output_arg_descriptor,
15357         output_cbranch, output_bb, output_bvb, output_dbra, ,
15358         output_millicode_call, output_call, hppa_encode_label,
15359         output_parallel_movb, output_parallel_addb): Constify a char*.
15360         (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
15361         (output_parallel_addb): Remove extra arg to `constrain_operands'
15362
15363         * pa.h:  Move all prototypes to pa-protos.h.
15364         (pa_cpu_string, pa_arch_string): Constify a char*.
15365         (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
15366
15367         * pa.md: Call `function_label_operand' with mode argument.
15368         Likewise for `read_only_operand'.
15369         Fix nesting of parens in call to `symbolic_operand'.
15370
15371 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15372
15373         * i860-protos.h: New file.
15374
15375         * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
15376         time warnings.
15377
15378         * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.
15379
15380         * i860.md: Likewise.
15381
15382 Tue Jan 11 18:59:35 MET 2000  Jan Hubicka <jh@suse.cz>
15383
15384         * i386.md (movstrsi expander): Rewrite.
15385         (movstrsi_1 insn): Deleted.
15386         (strmovhi, strmovqi expander): New expanders.
15387         (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
15388         * i386.c (x86_single_stringop): New global variable.
15389         * i386.h (x86_single_stringop): Declare.
15390         (TARGET_SINGLE_STRINGOP): New macro.
15391
15392 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
15393
15394         * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
15395         integer vararg POSTINCREMENT before the destination of the jump
15396         for the hard fp case.
15397         (function_arg_pass_by_reference): Pass a copy of CUM to
15398         FUNCTION_ARG.
15399
15400         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
15401         for CONSTANT_ADDRESS_P above while loop for subreg.
15402
15403 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
15404
15405         * flow.c (propagate_block): When a prologue/epilogue insn
15406         is marked dead, unconditionally clear libcall_is_dead and
15407         insn_is_dead, and only dump rtl if warnings aren't being
15408         suppressed.
15409
15410 Tue Jan 11 16:26:47 MET 2000  Jan Hubicka <jh@suse.cz>
15411
15412         * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
15413         * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
15414         (FIXED_REGISTERS): Set dirflag as fixed.
15415         (CALL_USED_REGISTERS): Set dirflag as used.
15416         (REG_ALLOC_ORDER): Set dirflag as last one.
15417         (DIRFLAG_REG): New macro.
15418         (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
15419         (HI_REGISTER_NAMES): Add dirflag.
15420         (DEBUF_PRINT_REG): Handle dirflag.
15421         * i386.md (type attribute): New cld and str types.
15422         (length_opcode attribute): Set cld and str to 1.
15423         (memory attribute): Set str to unknown - it is not clear from the
15424         patterns.
15425         (pent_np function unit): Prefixed string operations takes 12 cycles
15426         minimally; cld takes 2 cycles.
15427         (ppro_uops attribute): Str is "many" and cld is "few".
15428         (ppro_p0 unit): Handle cld here.
15429         (k6_alux unit): Handle cld and str types.
15430         (k6_load unit): It is ocupied by str opcodes.
15431         (k6_store unit): It is ocupied by str opcodes.
15432         (athlon_decode): Str is vector decoded.
15433         (athlon_ieu): Handle str and cld.
15434         (cld pattern): New.
15435         (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
15436         (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
15437         cmpstrsi_nz_1 insn): Do not output cld instruction
15438
15439 Tue Jan 11 06:14:39 2000  David Starner <dstarner98@aasaa.ofe.org>
15440
15441         * gcc.texi (G++ and GCC): Add Java and Chill.
15442         (Bug Critera): Don't list languages.
15443
15444         * gcc.texi (Incompatibilities): No longer claim most C compilers
15445         are K&R.
15446
15447         * gcc.texi (G++ and GCC): Update other front-ends list.
15448
15449 Tue Jan 11 05:49:01 2000  Jeffrey A Law  (law@cygnus.com)
15450
15451         * i386.c (ix86_expand_setcc): Fix typo.
15452         (ix86_expand_movcc): Similarly.
15453
15454         * Band-aid until haifa's bitset implementation is nuked.
15455         * haifa-sched.c (extract_bitlst): New parameter for size of the
15456         bitset in bits.  All callers changed.  Avoid looking at undefined
15457         bits in the bitset.
15458         (edgeset_bitsize): New variable.
15459         (schedule_region): Initialize edgeset_bitsize.
15460
15461 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15462
15463         * Makefile.in (optabs.o): Depend on real.h
15464         (resource.o): Depend on insn-attr.h
15465
15466         * builtins.c (result_vector): Wrap prototype in macro conditions
15467         governing definition and use.
15468
15469         * c-common.c: Include tm_p.h.
15470
15471         * c-lex.c: Likewise.
15472
15473         * elfos.h: Constify a char*.
15474
15475         * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
15476         (get_attr_length, shorten_branches, profile_after_prologue): Mark
15477         parameter with ATTRIBUTE_UNUSED.
15478
15479         * fold-const.c (exact_real_inverse): Wrap variable `i' in
15480         CHECK_FLOAT_VALUE.
15481
15482         * haifa-sched.c (schedule_insns): Mark parameter with
15483         ATTRIBUTE_UNUSED.
15484
15485         * optabs.c: Include real.h.
15486
15487         * real.h (ereal_atof): Add prototype arguments.
15488
15489         * resource.c: Include insn-attr.h.
15490
15491         * sdbout.c (sdbout_queue_anonymous_type,
15492         sdbout_dequeue_anonymous_types): Wrap in macro
15493         SDB_ALLOW_FORWARD_REFERENCES.
15494         (sdbout_init, sdbout_start_new_source_file): Mark parameter with
15495         ATTRIBUTE_UNUSED.
15496
15497         * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
15498
15499         * stupid.c: Include tm_p.h.
15500
15501         * tree.c (real_value_from_int_cst): Mark parameter with
15502         ATTRIBUTE_UNUSED.
15503
15504 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15505
15506         * i960-protos.h: New file.
15507
15508         * i960.c: Include tm_p.h.  Add static prototypes.  Fix compile
15509         time warnings.
15510
15511         * i960.h: Move prototypes to i960-protos.h.  Fix compile time warnings.
15512
15513 2000-01-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15514
15515         * combine.c (expand_field_assignment): Do not discard SUBREGs
15516         while computing nonzero_bits.
15517
15518 2000-01-09  Nick Clifton  <nickc@cygnus.com>
15519
15520         * config/arm/arm.c: Fix compile time warnings about signed vs
15521         unsigned constants.
15522         * config/arm/arm.h: Fix compile time warnings about signed vs
15523         unsigned constants.
15524
15525 2000-01-09  Philip Blundell  <philb@gnu.org>
15526
15527         * config/arm/arm.c (output_return_instruction): Use `ldr' rather
15528         than `ldm' with only one register.
15529         * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
15530         only one register.
15531
15532         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
15533         clobbered.
15534
15535 Sun Jan  9 17:50:23 2000  Hans-Peter Nilsson  <hp@axis.com>
15536
15537         * config/ns32k/ns32k.md (load or push effective address): Operand 1
15538         must have SImode.
15539
15540 2000-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15541
15542         * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
15543         assignment used as truth value.
15544
15545         * function.c (assign_temp): Mark parameter `dont_promote' with
15546         ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
15547         PROMOTE_FOR_CALL_ONLY.
15548
15549         * genrecog.c (write_subroutine): Mark variable `operands' with
15550         ATTRIBUTE_UNUSED.
15551
15552         * optabs.c (prepare_cmp_insn): Mark parameter `align' with
15553         ATTRIBUTE_UNUSED.
15554
15555         * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
15556         (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
15557
15558         * toplev.c (note_deferral_of_defined_inline_function): Likewise
15559         for `decl'.
15560
15561 2000-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15562
15563         * config/c4x.h: Tidy up comments.
15564         * config/c4x.c: Likewise.
15565
15566 Sun Jan  9 01:02:55 EST 2000  John Wehle  (john@feith.com)
15567
15568         * fold-const.c (lshift_double, rshift_double): Handle
15569         shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
15570
15571 2000-01-08  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15572
15573         * toplev.c (rest_of_compilation): Initialize cse_not_expected as
15574         in prepare_function_start().
15575
15576 Sat Jan  8 12:12:46 2000  Nick Clifton  <nickc@cygnus.com>
15577
15578         * config/v850/v850.c (expand_epilogue): Interrupt functions no
15579         longer allocate extra stack for function calls.
15580
15581 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15582
15583         * config/c4x/c4x.md (*subqf3_set): Fix typo.
15584
15585 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15586
15587         * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
15588
15589 2000-01-07  David Edelsohn  <edelsohn@gnu.org>
15590
15591         * rs6000.c (processor_target_table): Add power3 as alias for 630.
15592         * aix43.h: Revert Aug 2 change.
15593         (HAS_INIT_SECTION): Define, not visible yet.
15594         (LD_INIT_SWITCH): Define, not visible yet.
15595         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
15596
15597         * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
15598
15599         * collect2.c (main): Expand ld2 size further.
15600         (export_object_lst): Cast assignment to avoid warning.
15601         (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
15602         (scan_prog_file, COFF): Do not collect initialization or
15603         finalization functions generated for entire shared object if
15604         init/fini support present.
15605
15606 2000-01-07  Nick Clifton  <nickc@cygnus.com>
15607
15608         * config/elfos.h: Tidy up formatting of marcos.  Make sure
15609         that .section directives are always prefixed by a tab.
15610
15611         * config/svr4.h: Add #include "elfos.h" and remove duplicate
15612         definitions.
15613
15614 2000-01-07  Matt Austern  <austern@sgi.com>
15615
15616         * fold-const.c (real_hex_to_f): Remove duplicate declaration of
15617         expon.
15618
15619 Fri Jan  7 01:55:34 2000  Jeffrey A Law  (law@cygnus.com)
15620
15621         * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
15622         crtstuff.c.
15623         (crtbegin.o, s-crtS): Likewise.
15624
15625 2000-01-06  Richard Henderson  <rth@cygnus.com>
15626
15627         * alpha.md (adddi_2+1): Limit offset such that it will be
15628         loadable with a single ldah+lda pair.
15629         (adddi_2+2): Explicitly fail split if we can't make it work.
15630
15631 2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>
15632
15633         * protoize.c: Conditionally include unistd.h.
15634         (IS_SAME_PATH_CHAR): New macro.
15635         (IS_SAME_PATH): New macro.
15636         (CPLUS_FILE_SUFFIX): New macro.
15637         (cplus_suffix): New static variable.
15638         (is_abspath): New static function.
15639         (in_system_include_dir): Handle DOS style pathnames.
15640         (file_could_be_converted): Likewise.
15641         (file_normally_convertible): Likewise.
15642         (directory_specified_p): Likewise.
15643         (file_excluded_p): Likewise.
15644         (abspath): Likewise.
15645         (shortpath): Likewise.
15646         (referenced_file_is_newer): Likewise.
15647         (save_def_or_dec): Likewise.
15648         (do_processing): Likewise.
15649         (main): Likewise.
15650         (edit_file): Likewise. Use rename instead of link.
15651         (rename_c_file): Likewise. Don't rename syscalls file.
15652         (munge_compile_params): Define null device for DOS based systems.
15653         (process_aux_info_file): Use binary mode if appliable.
15654         (edit_file): Likewise.
15655         * invoke.texi (Running Protoize): Document C++ suffixes used.
15656
15657         * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
15658         IS_DIR_SEPARATOR macros.
15659         * collect2.c: Likewise.
15660         * cppinit.c: Likewise.
15661         * dwarf2out.c: Likewise.
15662         * gcc.c: Likewise.
15663         * gcov.c: Likewise.
15664         * prefix.c: Likewise.
15665         * rtl.c: Likewise.
15666         * toplev.c: Likewise.
15667         * system.h: And move to here.
15668
15669         * prefix.c (update_path): Fix typo in variable name.
15670
15671 2000-01-06  Richard Henderson  <rth@cygnus.com>
15672
15673         * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
15674         (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
15675         (count_reg_sets_1, count_reg_references): Likewise.
15676         (flow_loops_level_compute): Start counting actual loop depth at 1.
15677         (flow_loops_find): Likewise.
15678         * local-alloc.c (update_equiv_regs): Likewise.
15679         * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
15680
15681 2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
15682
15683         * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
15684         FIRST_PSEUDO_REGISTER
15685         * dwarf2out.c: Don't include frame.h
15686         * dwarfout.c: Likewise
15687         * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
15688         frame.h
15689
15690 Thu Jan  6 13:44:59 CET 2000  Jan Hubicka  <jh@suse.cz>
15691
15692         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
15693         dead registers.
15694
15695         * i386.c (movsf splitter): Fix typo in my last checkin.
15696
15697 2000-01-05  Nick Clifton  <nickc@cygnus.com>
15698
15699         * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
15700         own definition of this macro.
15701         (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
15702         flag_data_sections or UNIQUE_SECTION_P are true.
15703
15704         * tm.texi (UNIQUE_SECTION): Document that it can be called for
15705         unitialised data decls.
15706
15707         * config/i386/winnt.c (i386_pe_unique_section): Cope with
15708         being called for uninitialised data.
15709
15710         * config/i386/interix.c (i386_pe_unique_section): Cope with
15711         being called for uninitialised data.
15712
15713         * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
15714         for uninitialised data.
15715
15716         * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
15717         for uninitialised data.
15718
15719         * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
15720         for uninitialised data.
15721
15722         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
15723         (UNIQUE_SECTION_P): Always generate a unique section if
15724         flag_data_sections is true.
15725         (UNIQUE_SECTION): Also generate unique sections for
15726         uninitialised data.
15727         (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
15728         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
15729         named_section().
15730
15731 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15732
15733         * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
15734         SI, or DI.
15735
15736 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15737
15738         * config/c4x/c4x.md (udivqi3, divqi3): Delete.
15739         (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
15740         (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
15741         (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
15742         (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
15743
15744         * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
15745
15746 2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>
15747
15748         * c-decl.c (finish_enum): Simplify code to determine minimum and
15749         maximum values of the enum, and calculate the type.  Remove check
15750         for FUNCTION_DECLs in the values list, which cannot happen.  Replace
15751         the DECL_INITIAL of each enumeration constant with a copy converted
15752         to the enumeration type.  When updating variant types, don't bother
15753         updating the type itself.
15754
15755         * c-typeck.c (build_binary_op): Simplify conditional expressions
15756         when weeding out spurious signed-unsigned warnings.  Add new
15757         spurious warning category: if the unsigned quantity is an enum
15758         and its maximum value fits in signed_type(result_type).  Update
15759         commentary.
15760         (build_conditional_expr): Warn here if one alternative is signed
15761         and the other is unsigned.
15762
15763 2000-01-05  Nick Clifton  <nickc@cygnus.com>
15764
15765         * config/fr30/fr30.h: Remove extraneous comments.
15766
15767 2000-01-05  Bernd Schmidt  <bernds@cygnus.co.uk>
15768
15769         * reload1.c (choose_reload_regs): When disabling a reload, also
15770         set reload_spill_index to -1.
15771
15772 2000-01-04  Joel Sherrill (joel@OARcorp.com>
15773
15774         * configure.in (m68*-*-rtemscoff*): New target, formal name for
15775         old m68*-*-rtems*.
15776         (m68*-*-rtemself*): New target.
15777         (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
15778         (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
15779         (sparc*-*-rtemself*): New target.
15780         (sparc*-*-rtems*): Now elf not a.out.
15781         * config/i386/rtems.h: Include config/rtems.h.
15782         * config/i386/rtemself.h: Include config/rtems.h.
15783         * config/i960/rtems.h: Include config/rtems.h.
15784         * config/m68k/rtems.h: Include config/rtems.h.
15785         * config/m68k/rtemself.h: Include config/rtems.h.
15786         * config/mips/rtems64.h: Include config/rtems.h.
15787         * config/pa/rtems.h: Include config/rtems.h.
15788         * config/rs6000/rtems.h: Include config/rtems.h.
15789         * config/sh/rtems.h: Include config/rtems.h.
15790         * config/sh/rtemself.h: Include config/rtems.h.
15791         * config/sparc/rtems.h: Include config/rtems.h.
15792         * config/sparc/rtemself.h: Include config/rtems.h
15793
15794 Tue Jan  4 23:59:26 2000  Denis Chertykov <denisc@overta.ru>
15795
15796         * final.c (shorten_branches): Correctly compute length of
15797         asms without operands.
15798
15799 Tue Jan  4 22:55:41 2000  Steve Chamberlain <sac@pobox.com>
15800
15801         * configure.in: Add pj target.
15802         * configure: Regenerate.
15803         * config/pj: New directory.
15804         * config/pj/lib1funcs.S: New file.
15805         * config/pj/linux.h: New file.
15806         * config/pj/pj.c: New file.
15807         * config/pj/pj.md: New file.
15808         * config/pj/pjl.h: New file.
15809         * config/pj/t-pj: New file.
15810         * config/pj/xm-pj.h: New file
15811
15812 Tue Jan  4 22:30:16 2000  Jeffrey A Law  (law@cygnus.com)
15813
15814         * toplev.c (rest_of_compilation): Run shorten-branches before
15815         reg-stack for now.
15816
15817 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15818
15819         * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
15820         macros so that they're consistent with their names.
15821         * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
15822         * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
15823
15824 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15825
15826         * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
15827         modified inadvertently.
15828
15829 2000-01-04  Joel Sherrill <joel@OARcorp.com>
15830
15831         * configure.in (v850*-*-rtems*): New target.
15832         * configure: Regenerate.
15833         * config/v850/rtems.h: New file.
15834
15835 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
15836
15837         * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
15838         (__gthread_key_create): Likewise.
15839         (__gthread_key_dtor):  Likewise.
15840         (__gthread_once): Fix logic.
15841         (__gthread_key_delete): Cast away constness.
15842
15843         * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
15844         * invoke.texi: Document.
15845         * i386/mingw32.h (CPP_SPEC): Use.
15846         (LIBGCC_SPEC): Likewise.
15847         * i386/crtdll.h (LIBGCC_SPEC): Likewise.
15848
15849 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
15850
15851         * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
15852         (HANDLE_PRAGMA_PACK): Undefine.
15853         (SLOW_UNALIGNED_ACCESS): Define.
15854
15855 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
15856
15857         * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
15858         to default definition.
15859         (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
15860         (store_fixed_bit_field): Call macro with word_mode and alignment.
15861         (extract_bit_field): Call macro with relevant mode and alignment.
15862         * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
15863         to default definition.
15864         (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
15865         and alignment.
15866         (move_by_pieces_ninsns): Likewise.
15867         (clear_by_pieces): Likewise.
15868         (emit_push_insn): Likewise.
15869         (store_field): Call macro with relevant mode and alignment.
15870         (expand_expr): Likewise.
15871         (expand_expr_unaligned): Likewise.
15872
15873         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
15874         (SLOW_UNALIGNED_ACCESS): Define.
15875         (CASE_VECTOR_MODE): Always use 32-bit offsets.
15876         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
15877         (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
15878         (toc_section): Likewise and .toc pseudo-op.
15879         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
15880         64-bit mode.
15881         (TEXT_SECTION_ASM_OP): Likewise.
15882         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
15883         32-bit offsets.
15884
15885         * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
15886         * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
15887         * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
15888         * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
15889         * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
15890
15891 Tue Jan  4 11:44:13 2000  Jeffrey A Law  (law@cygnus.com)
15892
15893         * regclass.c: Revert my Jan 4 change to loop cost computation.
15894
15895 Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
15896
15897         * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
15898         compilation.
15899
15900 2000-01-04  Stan Cox  <scox@cygnus.com>
15901
15902         * haifa-sched.c (build_control_flow): Change unreachable simple
15903         loop test to check if current block has only one predecessor.
15904         (find_rgns): Initialize degree.  Use dest as degree index, not src.
15905
15906 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15907
15908         * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
15909
15910         * calls.c (expand_call): Likewise for
15911         `old_stack_arg_under_construction'.
15912
15913         * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
15914
15915         * function.c (pad_to_arg_alignment): Likewise for `save_var' and
15916         `save_constant'.
15917
15918         * gcc.c (execute): Likewise for `ut' and `st'.
15919
15920         * genattrtab.c (attr_rtx): Likewise for `rt_val'.
15921
15922         * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
15923
15924         * jump.c (jump_optimize_1): Likewise for `temp2'.
15925
15926         * local-alloc.c (block_alloc): Likewise for `r1'.
15927
15928         * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
15929
15930         * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
15931         (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
15932
15933         * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
15934         and `set2'.
15935
15936         * reload.c (find_reloads): Likewise for `goal_alternative_number'
15937         and `goal_earlyclobber'.
15938
15939         * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
15940
15941         * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
15942
15943         * stupid.c (stupid_life_analysis): Likewise for `chain'.
15944
15945         * unroll.c (copy_loop_body): Likewise for `copy'.
15946
15947         * varasm.c (output_constructor): Likewise for `byte'.
15948
15949 Tue Jan  4 15:34:34 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
15950
15951         * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
15952         all FP constants for constant->reg moves.
15953         (ix86_split_to_parts): Try to convert memory address into immediate
15954         when available in the constant pool.
15955         * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
15956         moves.
15957         (LEGITIMATE_CONSTANT_P): Return 1.
15958         * i386.md (pushsf): New splitter to convert constant pool memory
15959         reference to immediate.
15960         (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
15961         reload.
15962
15963 2000-01-04  Bernd Schmidt  <bernds@cygnus.co.uk>
15964
15965         * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
15966         (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
15967         ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
15968         (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
15969         rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
15970
15971 2000-01-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
15972
15973         * ginclude/stdbool.h:  Support compilation as C++.
15974
15975 Tue Jan  4 01:35:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15976
15977         * fold-const.c (make_range): Don't try to reverse an unbounded range.
15978
15979 Tue Jan  4 00:18:46 2000  Jeffrey A Law  (law@cygnus.com)
15980
15981         * regclass.c (regclass): Properly compute loop_cost.  Adjust
15982         comments.
15983
15984         * regclass.c: Fix minor whitespace problems.
15985
15986 2000-01-03  Anthony Green  <green@cygnus.com>
15987
15988         * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
15989         Restore the pic register if required.
15990
15991 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
15992
15993         * c-common.c (format_char_info): Update comment.
15994         (check_format_info): Recognize 'z' modifier in the same way 'Z'
15995         was recognized.  Emit warning for formats new in ISO C99 only
15996         if flag_isoc9x is not set.
15997
15998 Mon Jan  3 12:59:54 2000  Mark P. Mitchell  <mark@codesourcery.com>
15999
16000         * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
16001
16002 Mon Jan  3 15:33:37 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
16003
16004         * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
16005         SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
16006         (make_compound_operation): Choose cheaper alternative between
16007         ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
16008
16009         * regclass.c (op_costs): Remove global variable.
16010         (record_reg_classes): New parameter "op_costs" and "reg_pref".
16011         (record_operand_costs): Break out from ...
16012         (scan_one_insn): ... here.
16013         (dump_regclass): Make dumps nicer.
16014         (regclass): Dump preferrences choosed and changes done during passes.
16015
16016 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
16017
16018         * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
16019
16020 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
16021
16022         * config/sparc/sparc.c (gen_df_reg): New function.
16023         * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
16024         * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
16025         movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
16026         movtf_cc_reg_sp64+1): Use it.
16027
16028 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
16029
16030         * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
16031         copied LABEL_DECLs.
16032
16033 Mon Jan  3 02:54:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
16034
16035         * config/i386/i386.c (ix86_expand_unary_operator): Function
16036         definition made void.
16037         (ix86_expand_binary_operator): Update outdated preceding comment.
16038         * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
16039         prototype.
16040
16041         * config/i386/i386.c (override_options): Fix option-name typo.
16042
16043 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
16044
16045         * system.h (CEIL): Define.
16046         * builtins.c (CEIL): Remove.
16047         * expmed.c (CEIL): Likewise.
16048         * expr.c (CEIL): Likewise.
16049         * stor-layout.c (CEIL): Likewise.
16050
16051 2000-01-02  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16052
16053         * expr.c (store_constructor_field): Fix typo introduced with last
16054         gcc2 merge.
16055
16056 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
16057
16058         * tree.h (BINFO_N_BASETYPES): New macro.
16059
16060 2000-01-01  Bernd Schmidt  <bernds@cygnus.co.uk>
16061
16062         * expmed.c (emit_store_flag): Prevent losing a pending stack
16063         adjust the same way we prevent losing queued increments.
16064
16065 See ChangeLog.2 for earlier changes.