OSDN Git Service

2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-06-26  Joseph S. Myers  <jsm28@cam.ac.uk>
2
3         * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
4         Make warnings about implicit int be pedwarns in C99.  Don't warn
5         about duplicate type qualifiers in C99.
6         (start_function): Make warning about implict int return type be a
7         pedwarn in C99.
8         * c-lex.c (yylex): Don't warn about `long long' in C99.
9         * c-typeck.c (c_expand_return): In C99, always pedwarn about
10         `return' with no value in function returning non-void.
11
12 2000-06-26  Richard Henderson  <rth@cygnus.com>
13
14         * c-typeck.c (pedwarn_c99): New.
15         * diagnostic.c (verror, vwarning, vpedwarn): Export.
16         * toplev.h: Prototype them.
17
18 2000-06-26  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
19
20         * c-typeck.c (digest_init): Return error_mark_node node when
21         TREE_TYPE (init)  == error_mark_node.
22
23 2000-06-26  Philipp Thomas  <pthomas@suse.de>
24
25         * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
26         test for msgfmt without path instead.
27         * configure: Rebuilt.
28
29 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
30
31         * gengenrtl.c (special_rtx): Fix typo in comment.
32
33 2000-06-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
34
35         * mklibgcc.in (LIB2FUNCS): Add missing space.
36
37 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
38
39         * tree.h (enum tree_index): Add vector type nodes.
40         Add accessor macros for them.
41         (TYPE_REPRESENATION_TYPE): New macro.
42         * tree.c (build_common_tree_nodes_2): Build these nodes.
43         (finish_vector_type): New function.
44         * c-common.c (type_for_mode): Handle vector modes.
45         * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
46
47         * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
48         * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
49         * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
50         (gen_type_die): Likewise.
51         * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
52         (fundamental_type_code): Likewise.
53         (type_is_fundamental): VECTOR_TYPEs aren't.
54         (output_type): Handle VECTOR_TYPEs.
55
56 2000-06-25  Kazu Hirata  <kazu@hxi.com>
57
58         * config/arm.c: Fix a comment typo.
59         * config/arm.h: Likewise.
60
61 2000-06-25  Philipp Thomas  <pthomas@suse.de>
62
63         * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
64         compiler found.
65         AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
66         * configure: Rebuilt.
67         
68 2000-06-25  John David Anglin  <dave.anglin@nrc.ca>
69
70         * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
71
72 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
73
74         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
75         libgcc.a.
76
77 2000-06-24  Marc Espie <espie@cvs.openbsd.org>
78
79         * collect2.c (resolve_lib_name): Move '/' check to more rational place.
80
81 2000-06-24  Dirk Duellmann  <Dirk.Duellmann@cern.ch>
82
83         * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
84
85 2000-06-24  Jakub Jelinek  <jakub@redhat.com>
86
87         * stmt.c (expand_decl_cleanup): Emit a dummy insn after
88         last_unconditional_cleanup.
89
90 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
91
92         * tree.def (VECTOR_TYPE): New node type.
93         * tree.h: Adjust some comments to reflect addition of vector types.
94         (TYPE_VECTOR_SUBPARTS): New macro.
95         * stor-layout.c (layout_type): Handle VECTOR_TYPE.
96         * c-convert.c (convert): Likewise.
97         * convert.c (convert_to_integer): Handle vector modes.
98         (convert_to_vector): New function.
99         * convert.h (convert_to_vector): Declare.
100         * expr.c (convert_move): Handle vector modes.
101         * expmed.c (extract_bit_field): Don't abort for vector modes.
102
103 2000-06-24  Marek Michalkiewicz  <marekm@linux.org.pl>
104
105         * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
106         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
107         New functions, common code moved from function_{prologue,epilogue}
108         and extended to support the -mtiny-stack option.
109         (function_prologue, function_epilogue): Use them.
110         Use lo8/hi8 consistently for asm output readability.
111         (avr_hard_regno_mode_ok): New function.
112         * config/avr/avr.h (TARGET_SWITCHES): Fix typo.  Add -mtiny-stack.
113         (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
114         (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
115         * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
116         Write SPH before SPL.
117         (*movqi): No need to disable interrupts for just one "out"
118         in alternative 5.  Change length attribute from 4 to 1.
119         * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
120         Write SPH before SPL.
121
122 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
123
124         * rtl.texi (Vector Operations): New node.
125         (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
126         (Conversions): Add ss_truncate, us_truncate.
127         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
128         VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
129         US_TRUNCATE): New rtx codes.
130         * machmode.def: Add vector modes.
131         * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
132         MODE_VECTOR_FLOAT.
133         (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
134         (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
135         (VECTOR_MODE_P): New.
136
137 2000-06-24  Nathan Sidwell  <nathan@codesourcery.com>
138
139         * cpp.texi: Clarify #pragma GCC namespace.      
140
141 2000-06-24  Philipp Thomas  <pthomas@suse.de>
142
143         * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
144         all catalogs specified in ALL_LINGUAS.
145         * configure: Rebuilt.
146
147 2000-06-23  Jakub Jelinek  <jakub@redhat.com>
148
149         * config/sparc/sparc.md (reload_outdi+1): Handle
150         HOST_BITS_PER_WIDE_INT == 64 case correctly.
151         (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
152
153 2000-06-23  Geoffrey Keating  <geoffk@cygnus.com>
154
155         * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
156         struct vs. scalar-ness when -fno-strict-aliasing.
157
158 2000-06-23  Nathan Sidwell  <nathan@codesourcery.com>
159
160         * cpplib.c (struct pragma_entry): New structure.
161         (pragma_dispatch): Pragma dispatcher.
162         (top_pragmas, gcc_pragmas): New static variables.
163         (do_pragma): Use pragma_dispatch.
164         (do_pragma_gcc): New pragma handler.
165         * cpp.texi: Update.
166
167 2000-06-23  Jakub Jelinek  <jakub@redhat.com>
168
169         * calls.c (compute_argument_addresses): Force stack slots into
170         alias set 0.
171         * expr.c (emit_push_insn): Force pushes into alias set 0.
172
173 2000-06-23  Richard Henderson  <rth@cygnus.com>
174
175         * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
176         * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
177
178 2000-06-22  Jason Merrill  <jason@redhat.com>
179
180         * toplev.c (compile_file): Always call timevar_print.
181         * Makefile.in (calls.o): Depend on TIMEVAR_H.
182
183 2000-06-22  Nathan Sidwell  <nathan@codesourcery.com>
184
185         * varasm.c (constant_descriptor): Make contents unsigned char.
186         (mark_const_hash_entry): Adjust.
187         (const_hash): Just hash the code of unknown nodes.
188         (compare_constant_1): Adjust for unsigned char.
189         Use language specific expander on unknown nodes.
190         (record_constant_1): Likewise.
191
192 2000-06-21  Zack Weinberg  <zack@wolery.cumb.org>
193
194         * cppfiles.c (cpp_make_system_header): New function.
195         * cpplib.h: Prototype it.
196         * cpplib.c (do_line, do_pragma_system_header): Use it.
197         * fix-header.c (read_scan_file): Use it.
198
199         * fix-header.c (check_macro_names): Cast second arg of
200         cpp_defined to const unsigned char *.
201         (read_scan_file): Make getchar_call const unsigned char.
202
203 2000-06-21  Zack Weinberg  <zack@wolery.cumb.org>
204
205         * cppfiles.c: Include splay-tree.h, not hashtab.h.
206         (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
207         (destroy_include_file_node): New.
208         (_cpp_init_include_hash): Rename _cpp_init_include_table.
209         Create a splay tree, not a hash table.
210         (open_include_file): Look up the path in the include table,
211         do the multiple include optimization here, etc.
212         (cpp_included): Walk the path.
213         (find_include_file): Just walk the path calling
214         open_include_file, or call it directly for an absolute path.
215         (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
216         scheme.
217         (read_include_file): Update for new scheme.  Don't close the
218         file unless reading fails.
219         (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
220
221         * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
222         (struct include_file): New.
223         (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
224         macros.
225         (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
226         Update prototypes.
227
228         * cppinit.c: Include splay-tree.h.
229         (cpp_reader_init, cpp_cleanup): Update.
230
231         * cpplib.h (struct cpp_buffer): Change ihash field to 
232         'struct include_file *inc'.  Remove system_header_p.
233         (struct cpp_reader): Change all_include_files to a
234         struct splay_tree_s *.
235
236         * cpplex.c: Update all references to cpp_buffer->ihash and/or
237         cpp_buffer->system_header_p.
238         (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
239
240         * Makefile.in (SPLAY_TREE_H): New macro.
241         (cppfiles.o, cppinit.o): Update dependencies.
242
243 Wed Jun 21 11:05:48 2000  Martin Buchholz <martin@xemacs.org>
244
245         * invoke.texi (g++): "g++" is not a script anymore.
246
247 2000-06-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
248
249         * function.c (round_down): Delete obsolete prototype.
250
251         * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
252
253 2000-06-20  Zack Weinberg  <zack@wolery.cumb.org>
254
255         * configure.in: Use 'test a = b' not 'test a == b'.
256         * configure: Regen.
257
258         * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
259
260         * Makefile.in: Remove all references to HOST_INTLLIBS.
261
262         * cpplex.c (parse_name): Don't warn about $ in identifiers if
263         skipping.
264
265 2000-06-20  Philipp Thomas  <pthomas@suse.de>
266
267         * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
268         for PA 2.0.
269
270 Mon Jun 19 23:26:40 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
271
272         * Take REG_INC notes into account.
273
274 2000-06-19  Zack Weinberg  <zack@wolery.cumb.org>
275
276         * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
277         (primary: IDENTIFIER): Just call build_external_ref.
278         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
279         Regenerate.
280         * c-lex.c (lastiddecl): Remove.
281         (yylex): Replace all instances of lastiddecl with local
282         variables.
283
284         * c-typeck.c (build_external_ref): New function.  Treat decls
285         with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
286         Look up the decl from the id here.  Call lookup_objc_ivar.
287         * c-lang.c (lookup_objc_ivar): Stub.
288         * objc/objc-act.c (lookup_objc_ivar): New function.
289
290         * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
291         * c-lex.h: Don't declare lastiddecl.
292
293 2000-06-19  Benjamin Chelf  <chelf@codesourcery.com>
294
295         * c-common.h (IF_COND): Added documentation.
296         (THEN_CLAUSE): Likewise.
297         (ELSE_CLAUSE): Likewise.
298         (WHILE_COND): Likewise.
299         (WHILE_BODY): Likewise.
300         (DO_COND): Likewise.
301         (DO_BODY): Likewise.
302         (RETURN_EXPR): Likewise.
303         (EXPR_STMT_EXPR): Likewise.
304         (FOR_INIT_STMT): Likewise.
305         (FOR_COND): Likewise.
306         (FOR_EXPR): Likewise.
307         (FOR_BODY): Likewise.
308         (SWITCH_COND): Likewise.
309         (SWITCH_BODY): Likewise.
310         (CASE_LOW): Likewise.
311         (CASE_HIGH): Likewise.
312         (GOTO_DESTINATION): Likewise.
313         (COMPOUND_BODY): Likewise.
314         (ASM_CV_QUAL): Likewise.
315         (ASM_STRING): Likewise.
316         (ASM_OUTPUTS): Likewise.
317         (ASM_INPUTS): Likewise.
318         (ASM_CLOBBERS): Likewise.
319         (DECL_STMT_DECL): Likewise.
320         (STMT_EXPR_STMT): Likewise.
321         (LABEL_STMT_LABEL): Likewise.
322
323         * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
324         COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
325         RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
326         LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
327
328 2000-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
329
330         * configure.in (--enable-checking): Update --help doc to reflect
331         new defaults.  Ensure $ac_save_IFS is set before $IFS is changed.
332
333 Sun Jun 18 21:42:15 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
334
335         * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
336
337         * function.c (put_var_into_stack): Don't reference DECL_ fields
338         if input is a SAVE_EXPR.
339         Use set_mem_attributes in COMPLEX case.
340
341 2000-06-18  Richard Henderson  <rth@cygnus.com>
342
343         * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
344         (ia64_file_start): Declare.
345         * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
346         (GR_REGNO_P): Likewise.
347         * config/ia64/ia64.c: Many prototypes.
348         (ia64_reg_numbers): Constify.
349         (ia64_input_reg_names, ia64_local_reg_names): Likewise.
350         (ia64_section_threshold): Make unsigned.
351         (ia64_print_operand): Constify.
352         (fix_range): Constify.
353         (ia64_init_builtins): Don't compare signed vs unsigned.
354         (ia64_expand_builtin): Likewise.
355
356         * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
357         (CONSTRAINT_OK_FOR_Q): New.
358         * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
359         (movsf_internal, movdf_internal): Likewise.
360         (cmovdi_internal): Rewrite so that constraints and predicates match;
361         simplify splitters.
362         (cmovsi_internal): Likewise.
363
364         * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
365         (ASM_FILE_START): New.
366         * config/ia64/ia64.c (ia64_file_start): New.
367         (rtx_needs_barrier): Handle pred.rel.mutex.
368         (emit_predicate_relation_info): New.
369         * config/ia64/ia64.md (pred_rel_mutex): New.
370         * config/ia64/linux.h (ASM_SPEC): Define.
371         * config/ia64/sysv4.h (ASM_FILE_START): Define.
372
373         * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
374         filtering global register variables.
375
376 2000-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
377
378         * c-common.c (add_c_tree_codes): Fix definition for traditional C.
379
380 2000-06-17  Michael Meissner  <meissner@redhat.com>
381
382         * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
383         not present and there is a field after a '-'.
384
385 2000-06-17  Bruce Korb  <bkorb@gnu.org>
386
387         * fixinc/check.tpl:  finish the implementation of multiple tests
388         for a single fix
389         * fixinc/inclhack.def(ctrl_quotes_def): add a second test
390         (io_quotes_def): add a second test
391         (various): reorder `files' so that "limits.h" is never first
392         * fixinc/tests/base/*: update the testing output
393
394 Sat Jun 17 10:33:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
395
396         * gcc.texi: Remove reference to stupid.c.
397
398 2000-06-16  Benjamin Chelf  <chelf@codesourcery.com>
399
400         * c-common.c (c_tree_code_type): New array.
401         (c_tree_code_length): Likewise.
402         (c_tree_code_name): Likewise.
403         (add_c_tree_codes): New function.
404
405         * c-common.h (add_c_tree_codes): Declare.
406         (enum c_tree_code): New enum.
407
408         * c-lex.c (init_parse): Added call to add_c_tree_codes.
409
410 2000-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
411
412         * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
413         select pattern to also match macro defs with only one argument.
414
415 Thu Jun 15 18:56:12 2000  Jeffrey A Law  (law@cygnus.com)
416
417         * i386.md: Create new [right,left] rotate and right shift
418         patterns to optimize shift by 1 bit for certain ia32 processors.
419         Update patterns which perform left shifts to optimize shift by
420         1 bit for certain ia32 processors.
421         * i386.c (const_int_1_operand): New predicate.
422         * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
423         * i386-protos.h (const_int_1_operand): Prototype.
424
425 Wed Jun 14 23:46:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
426
427         * mips.c (machine_dependent_reorg): Fix braces for nested if.
428
429 2000-06-14  Geoff Keating  <geoffk@cygnus.com>
430
431         * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
432         LABEL_REFs.
433
434 2000-06-14  Richard Henderson  <rth@cygnus.com>
435
436         * conflict.c (conflict_graph_compute): Don't look for REG_INC.
437
438         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
439         auto-inc code.
440
441         * print-rtl.c (print_rtx): Emit space before mem alias set.
442
443 2000-06-14  David Edelsohn  <edelsohn@gnu.org>
444
445         * rs6000.c (expand_block_move): Fix typo in earlier change.
446         (print_operand): Remove unused variables neg and op.
447         (toc_hash_mark_entry): Fix prototype.
448
449 2000-06-14  Benjamin Chelf  <chelf@codesourcery.com>
450
451         * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
452         (THEN_CLAUSE): Likewise.
453         (ELSE_CLAUSE): Likewise.
454         (WHILE_COND): Likewise.
455         (WHILE_BODY): Likewise.
456         (DO_COND): Likewise.
457         (DO_BODY): Likewise.
458         (RETURN_EXPR): Likewise.
459         (EXPR_STMT_EXPR): Likewise.
460         (FOR_INIT_STMT): Likewise.
461         (FOR_COND): Likewise.
462         (FOR_EXPR): Likewise.
463         (FOR_BODY): Likewise.
464         (SWITCH_COND): Likewise.
465         (SWITCH_BODY): Likewise.
466         (CASE_LOW): Likewise.
467         (CASE_HIGH): Likewise.
468         (GOTO_DESTINATION): Likewise.
469         (COMPOUND_BODY): Likewise.
470         (ASM_CV_QUAL): Likewise.
471         (ASM_STRING): Likewise.
472         (ASM_OUTPUTS): Likewise.
473         (ASM_INPUTS): Likewise.
474         (ASM_CLOBBERS): Likewise.
475         (DECL_STMT_DECL): Likewise.
476         (STMT_EXPR_STMT): Likewise.
477         (LABEL_STMT_LABEL): Likewise.
478         (SCOPE_BEGIN_P): Likewise.
479         (SCOPE_END_P): Likewise.
480         (SCOPE_STMT_BLOCK): Likewise.
481         (SCOPE_NULLIFIED_P): Likewise.
482         (SCOPE_NO_CLEANUPS_P): Likewise.
483         (SCOPE_PARTIAL_P): Likewise.
484         (ASM_VOLATILE_P): Likewise.
485         (STMT_LINENO): Likewise.
486         (STMT_LINENO_FOR_FN_P): Likewise.
487
488         * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
489         ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
490         FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
491         CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
492         SCOPE_STMT, CASE_LABEL, STMT_EXPR.
493
494         * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
495
496 2000-06-14  David O'Brien  <obrien@FreeBSD.org>
497
498         * gcc.c (main): Quiet compiler warnings.  argv is assumed to be
499         writable in parts of the GCC code.
500
501         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
502         specification match cast.
503
504 Wed Jun 14 09:25:57 2000  Jeffrey A Law  (law@cygnus.com)
505
506         * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
507         * configure, config.in: Rebuilt.
508         * sys-protos.h: Similarly.
509
510 Wed Jun 14 03:39:58 EDT 2000  John Wehle  (john@feith.com)
511
512         * ifcvt.c (EDGE_COMPLEX): Move definition ...
513         * basic-block.h (EDGE_COMPLEX): ... here.
514
515         * loop.c (check_dbra_loop): Specify the register when
516         generating REG_NONNEG notes and don't generate duplicates.
517
518 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
519
520         * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
521         (struct tree_type, struct tree_decl): Add user_align member.
522         * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
523         (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
524         and DECL_USER_ALIGN 0, cap alignment to this value.
525         (place_field): Likewise.
526         (finalize_type_size): Set TYPE_USER_ALIGN.
527         (layout_type): Likewise.
528         (initialize_sizetypes): Likewise.
529         * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
530         DECL_USER_ALIGN to 1.
531         * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
532         (xfer_tag): Set TYPE_USER_ALIGN.
533         (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
534         (finish_enum): Likewise.
535         * stmt.c (expand_decl): Set DECL_USER_ALIGN.
536         (expand_anon_union_decl): Likewise.
537         * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
538         (build_index_type): Set TYPE_USER_ALIGN.
539         (build_range_type): Likewise.
540         (build_common_tree_nodes_2): Likewise.
541         * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
542
543 2000-06-13  Andreas Jaeger  <aj@suse.de>
544
545         * configure.in: Use --enable-checking=misc,tree,gc by default if
546         no --enable-checking option is given and for
547         --enable-checking=yes.
548         * configure: Rebuilt.
549
550 2000-06-13  Richard Henderson  <rth@cygnus.com>
551
552         * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
553         (__throw): Don't pass the address of a label.
554
555         * config/ia64/ia64.c (ia64_compute_frame_size): Use
556         current_function_is_leaf.
557         (ia64_expand_prologue): Likewise.  Modify return_address_pointer_rtx
558         instead of reg_names[RETURN_ADDRESS_REGNUM].
559         (ia64_init_machine_status): Reset return_address_pointer_rtx.
560         * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
561         from RETURN_ADDRESS_REGNUM.  Update all uses.
562         (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
563         zero instead of null on failure.
564         (ELIMINABLE_REGS): Add ra->b0 elimination.
565         (CAN_ELIMINATE): Update accordingly.
566         (INITIAL_ELIMINATION_OFFSET): Likewise.
567         (REGISTER_NAMES): Use an illegal assembler name for
568         RETURN_ADDRESS_POINTER_REGNUM.
569
570 2000-06-13  Richard Henderson  <rth@cygnus.com>
571
572         * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
573         GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
574         (REG_CLASS_NAMES): Likewise.
575         (REG_CLASS_CONTENTS): Likewise.
576         (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
577         (HARD_REGNO_MODE_OK): Remove references to them.
578         (REGNO_REG_CLASS): Likewise.
579         (REG_CLASS_FROM_LETTER): Likewise.
580         (CLASS_MAX_NREGS): Likewise.
581         (REGISTER_MOVE_COST): Likewise.
582         * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
583         * config/ia64/ia64.md (*): Replace "e" constraints with "f".
584         (movqi_internal): Special case moves from zero.
585         (movhi_internal, movsi_internal): Likewise.
586         (movdi_internal): Likewise.  Fill out "f" constraints.
587         (movsf_internal): Fill out "r" constraints.
588         (movdf_internal): Likewise.
589
590 2000-06-13  Richard Henderson  <rth@cygnus.com>
591
592         * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
593         alive before reload.
594
595         * haifa-sched.c (struct deps): Add in_post_call_group_p.
596         (add_dependence): Handle notes between SCHED_GROUP_P insns.
597         (remove_dependence): Always define.
598         (set_sched_group_p): New.
599         (sched_analyze_2): Use it.
600         (sched_analyze_insn): Don't special-case naked uses.  Look for
601         and extend in_post_call_group_p.
602         (sched_analyze): Clear stale SCHED_GROUP_P.  Set in_post_call_group_p.
603         (init_deps): Clear in_post_call_group_p.
604
605 2000-06-13  Richard Henderson  <rth@cygnus.com>
606
607         * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
608         CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
609         and hard-coded tests.
610         (simplify_set): Likewise.
611         (gen_lowpart_for_combine): Likewise.
612         * emit-rtl.c (gen_lowpart_common): Likewise.
613         * global.c (find_reg): Likewise.
614         * local-alloc.c (find_free_reg): Likewise.
615         * recog.c (register_operand): Likewise.
616         * regclass.c (init_reg_sets_1): Likewise.
617         (record_operand_costs, regclass): Likewise.
618         * reload.c (push_reload): Likewise.
619         * reload1.c (choose_reload_regs): Likewise.
620         * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
621         * local-alloc.c (struct qty): Rename changes_size to changes_mode.
622         Update all references.
623         * regs.h (struct reg_info_def): Likewise.
624         (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
625         * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
626         (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
627
628         * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
629         (CLASS_CANNOT_CHANGE_MODE_P): New.
630         * config/mips/mips.h: Likewise.
631         * config/pa/pa32-regs.h: Likewise.
632         * config/pa/pa64-regs.h: Likewise.
633         * config/rs6000/rs6000.h: Likewise.
634         * config/sh/sh.h: Likewise.
635         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
636         (CLASS_CANNOT_CHANGE_MODE_P): New.
637         * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
638         * config/d30v/d30v.h: Likewise.
639
640 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
641
642         * configure.in: Add AC_TYPE_GETGROUPS test.
643         * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
644         * configure: Rebuilt.
645         * config.in: Rebuilt.
646
647 2000-06-13  Richard Henderson  <rth@cygnus.com>
648
649         * explow.c (set_mem_attributes): Do nothing for NULL type.
650
651 Tue Jun 13 14:45:10 2000  Jeffrey A Law  (law@cygnus.com)
652
653         * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
654         correctly.
655
656 2000-06-13  James E. Wilson  <wilson@cygnus.com>
657
658         * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
659
660 Tue Jun 13 14:05:35 2000  Jeffrey A Law  (law@cygnus.com)
661
662         * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
663
664 2000-06-13  Philipp Thomas  <pthomas@suse.de>
665
666         * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
667         * configure: Rebuilt.
668
669 2000-06-07  David O'Brien  <obrien@FreeBSD.org>
670
671         * configure.in:  Adjust FreeBSD bits to match changes to config.guess.
672         We now default to ELF for the i386, and a.out is the special case.
673         * configure:  Rebuilt.
674
675 Tue Jun 13 10:05:30 2000  Hans-Peter Nilsson  <hp@axis.com>
676
677         * final.c (final_scan_insn): Delete notes between cc0 setter and
678         user when restarting from setter.
679
680 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
681
682         * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
683         cast to squelch signed/unsigned warnings.
684
685 2000-06-13  Zack Weinberg  <zack@wolery.cumb.org>
686
687         * cpplib.c (handle_directive): Print non-NUL-terminated string
688         with %.*s.
689
690 2000-06-12  Michael Meissner  <meissner@redhat.com>
691
692         * ifcvt.c (dead_or_predicable): Don't do conditional execution
693         path if the machine needs extra support to do conditional
694         execution.
695
696 Mon Jun 12 17:04:17 2000  Jeffrey A Law  (law@cygnus.com)
697
698         * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
699         to print the alias set.
700         * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
701
702 2000-06-12  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
703
704         * config/float-vax.h: Add GFLOAT defines.
705
706 Mon Jun  12  9:44:00 2000  Mark Klein  <mklein@dis.com>
707
708         * configure.in: Update tm dependencies for MPE.
709         * configure: Rebuilt.
710
711 2000-06-12  H.J. Lu  <hjl@gnu.org>
712
713         * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
714
715 2000-06-12  David Edelsohn  <edelsohn@gnu.org>
716
717         * aix41.h (SUBTARGET_SWITCHES): Delete threads.
718         (CPP_SPEC): Change mthreads to pthread.
719         (LIB_SPEC): Likewise.
720         (STARTFILE_SPEC): Likewise.
721         * aix43.h (SUBTARGET_SWITCHES): Delete threads.
722         (CPP_SPEC): Change mthreads to pthread.
723         (LIB_SPEC): Likewise.
724         (STARTFILE_SPEC): Likewise.
725         * rs6000-protos.h (reg_or_arith_cint_operand): New.
726         * rs6000.c (reg_or_arith_cint_operand): New.
727         (num_insns_constant_wide): Decorate unsigned constant.
728         * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
729         * rs6000.md (addsi3): Use new predicate.
730         (subsi3, adddi3, subdi3): Likewise.
731
732 2000-06-12  Mark Mitchell  <mark@codesourcery.com>
733
734         * c-common.c (lang_get_alias_set): Fix typo.
735
736 2000-06-12  Richard Earnshaw <rearnsha@arm.com>
737
738         * flow.c (mark_used_regs): Revert last change.
739         (life_analysis): Remove PROP_AUTOINC if running after reload.
740         (propagate_one_insn): PROP_AUTOINC is always off after reload.
741
742 2000-06-11  Richard Earnshaw <rearnsha@arm.com>
743
744         * flow.c (mark_used_regs): Don't call find_auto_inc after reload
745         has run.
746
747 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
748
749         * bb-reorder.c (build_scope_forest): Initialize variable
750         `curr_scope'.
751
752         * calls.c (expand_call): Likewise for variables
753         `save_pending_stack_adjust' and `save_stack_pointer_delta'.
754
755         * i386.c (function_arg_advance, function_arg): Cast to avoid
756         signed/unsigned warnings.
757
758         * i386.h (MEMORY_MOVE_COST): Likewise.
759
760         * ifcvt.c (cond_exec_process_if_block): Initialize variables
761         `else_start' and `else_end'.
762
763         * libgcc2.h (__eh_alloc, __eh_free): Prototype.
764
765         * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
766
767 2000-06-10  Mark Mitchell  <mark@codesourcery.com>
768
769         * Makefile.in (libintl.a): Depend on intl.all.
770
771 2000-06-09  H.J. Lu  (hjl@gnu.org)
772
773         * Makefile.in (c-parse.o): Also depend on output.h.
774
775 2000-06-09  Rodney Brown  <RodneyBrown@mynd.com>
776
777         * mcore-protos.h: discards const warning removal.
778         * mcore.c: discards const warning removal.
779
780 2000-06-09  Kazu Hirata  <kazu@hxi.com>
781
782         * config/h8300/lib1funcs.asm: Declare the machine architecture at
783         the beginning of the file.
784
785 2000-06-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
786
787         * real.h:  Add prototype for ldexp.
788
789 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
790
791         * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
792         it ggc_alloc, drop second argument, never clear returned memory.
793         * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
794         (ggc_alloc_cleared): New.
795         * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
796         ggc_alloc_obj.  Remove ggc_alloc macro.
797         (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
798
799         * rtl.c (rtvec_alloc): Clear the vector always.
800         (rtx_alloc): Clear the first word always.  Remove dirty
801         obstack tricks (this routine is no longer a bottleneck).
802         * tree.c (make_node): Clear the new node always.
803         (make_tree_vec): Likewise.
804         (tree_cons): Clear the common structure always.
805         (build1): Likewise; also, clear TREE_COMPLEXITY.
806         * gengenrtl.c: Use puts wherever possible.  Remove extra
807         newlines.
808         (gendef): Clear the first word of an RTX in the generator
809         function, irrespective of ggc_p.  Initialize '0' slots to
810         NULL.
811         (genlegend): Don't generate obstack_alloc_rtx routine, just a
812         thin wrapper macro around obstack_alloc.
813
814         * stmt.c (expand_fixup): Use ggc_alloc.
815         * c-typeck.c (add_pending_init): Use ggc_alloc.
816         * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
817         * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
818         const0_rtx when it is created.
819         (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
820         we are not in a function.
821
822         * tree.c (tree_class_check_failed): Make second arg an int.
823         * tree.h: Update prototype.
824
825 2000-06-09  Geoff Keating  <geoffk@cygnus.com>
826
827         * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
828         of an error_mark_node.
829
830 Fri Jun  9 20:35:13 2000  Denis Chertykov  <denisc@overta.ru>
831
832         * config/avr/avr.c (asm_output_section_name): bugfix.
833
834 2000-06-09  Jason Merrill  <jason@casey.soma.redhat.com>
835
836         * timevar.def: Add TV_EXPAND.
837         * timevar.c (timevar_print): Update timing information.
838         * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
839
840         * stmt.c (expand_return): Check for error_mark_node.
841
842 2000-06-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
843
844         * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
845
846         * scan-types.sh (VALUE) Wrap use with double quotes to protect
847         variable against filename expansion when it contains "char *".
848
849         * system.h (SSIZE_MAX): Delete backup definition.
850
851         * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
852         instead of SSIZE_MAX.
853
854 2000-06-09  Jakub Jelinek  <jakub@redhat.com>
855
856         * configure.in: Check whether gas supports -relax.
857         * configure, config.in: Rebuilt.
858         * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
859         (EXTRA_SPECS): Add asm_relax.
860         (ASM_SPEC): Add %(asm_relax).
861         (TARGET_SWITCHES): Add -mrelax and -mno-relax.
862         * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
863         (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
864         (ASM_SPEC): Add %(asm_relax).
865         * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
866         * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
867         never use sethi/jmpl for leaf tail calls.  Use or with rs2 %g0
868         instead of mov, so that gas can further optimize it.
869
870 2000-06-08  James E. Wilson  <wilson@bletchleypark.cygnus.com>
871
872         * dwarf2out.c (size_of_die, case dw_val_class_const): Use
873         size_of_sleb128.
874         (value_format, case dw_val_class_const): Use sdata format.
875         (output_die): Call output_sleb128.
876
877 2000-06-08  James E. Wilson  <wilson@cygnus.com>
878
879         * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
880         UNALIGNED_DOUBLE_INT_ASM_OP.  Rename old macro to
881         ASM_OUTPUT_DWARF_CONST_DOUBLE.
882         (output_die, case dw_val_class_unsigned_const): Correct call to
883         ASM_OUTPUT_DWARF_DATA8.
884         (output_die, case dw_val_class_long_long): Use
885         ASM_OUTPUT_DWARF_CONST_DOUBLE.
886         * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
887         pos is zero.
888
889         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
890         (output_function_prologue): Fix mispelling.
891         (output_function_prologue, output_function_epilogue): Reorder to
892         match ia64.c definition order.
893         * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
894         (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
895         Use r3 instead of r2 for large stack restores.
896         (ia64_output_end_prologue): New function.
897         (process_set): Emit ".restore sp" for epilogue stack restores.
898         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
899
900 2000-06-08  Jakub Jelinek  <jakub@redhat.com>
901
902         * dbxout.c (dbxout_type_fields): Don't segfault on fields with
903         incomplete types.
904
905 2000-06-08  Nathan Sidwell  <nathan@codesourcery.com>
906
907         * frame.c (end_fde_sort): Remove extraneous erratic array test.
908
909 2000-06-08  Denis Perchine <dyp@perchine.com>
910
911         * frame.c (start_fde_sort): Don't malloc (0).
912
913 2000-06-07  Zack Weinberg  <zack@wolery.cumb.org>
914
915         * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
916         error_mark_node.
917         * print-tree.c (print_node): The transparent_union_flag means
918         different things for unions and arrays.  Do not inspect it
919         with TYPE_TRANSPARENT_UNION.
920
921 2000-06-06  Jakub Jelinek  <jakub@redhat.com>
922
923         * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
924         returned NULL.
925
926 Wed Jun  7 20:34:33 2000  Denis Chertykov  <denisc@overta.ru>
927
928         * config/avr/avr.c (asm_output_section_name): output section
929         attributes.
930         * config/avr/libgcc.S (.text.libgcc): declare section attributes.
931
932 2000-06-06  James E. Wilson  <wilson@cygnus.com>
933
934         * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
935         fields into header field.
936         (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
937         macros to access length, flags, and version info from header field.
938         * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
939         * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
940         (__do_global_ctors_aux): Fix caller.
941         * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
942         prologue_flag to header.  Pass to read_P_record.
943         (read_P_record): New argument header.  Implement P4 format.
944         Multiply P7_T_SIZE by 16.
945         (execute_one_ia64_descriptor): New static local region_header.  Pass to
946         get_unwind_record.  Copy r to region_header if r is a header record.
947         (print_all_records): Likewise.
948         (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
949         (__get_personality, __get_except_table): Likewise.
950         * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
951
952 2000-06-06  Philipp Thomas  <pthomas@suse.de>
953
954         * configure.in (AC_C_INLINE): Added.
955         * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
956         * configure: Regenerate.
957
958 2000-06-06  Mark Mitchell  <mark@codesourcery.com>
959
960         * c-common.h (c_language_kind): New type.
961         (c_language): New variab.e
962         * c-common.c (lang_get_alias_set): Don't put structures in
963         non-zero alias sets in C++.
964         * c-decl.c (c_language): Define it.
965         * c-lex.c (doing_objc_thang): Remove.
966         * c-tree.h (doing_objc_thang): Make it a macro.
967         * objc/objc-act.c (lang_decode_option): Set c_language, not
968         doing_objc_thang.
969
970 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
971
972         * diagnostic.c (output_maximum_width): Remove.
973         (doing_line_wrapping): Tweak.
974         (diagnostic_buffer): New object.
975         (global_output_buffer): New object.
976         (output_destroy_prefix): New function.
977         (default_initialize_buffer): Likewise.
978         (reshape_diagnostic_buffer): Likewise.
979         (initialize_diagnostics): Likewise.
980         (output_clear): Tweak.
981         (line_wrapper_printf): Adjust call to init_output_buffer.
982         (vline_wrapper_message_with_location): Likewise.  Use
983         output_destroy_prefix.
984         (v_message_with_decl): Likewise.
985
986         * diagnostic.h (struct output_buffer): Constify prefix.
987         (init_output_buffer, output_get_prefix): Constify.
988         (diagnostic_message_length_per_line): Likewise.
989         (reshape_diagnostic_buffer): Declare.
990         (default_initialize_buffer): Declare.
991         (initialize_diagnostics): Declare.
992         (diagnostic_buffer): Declare new obbject.
993
994         * toplev.c: #include diagnostic.h
995         (display_help): Document diagnostic formatting options.
996         (decode_f_option): Handle diagnostic formatting options.
997         (main): Setup initialization for diagnostic messages outputter.
998
999         * toplev.h (set_message_length): Remove.
1000
1001         * Makefile.in (toplev.o): Depends upon diagnostic.h
1002
1003         * invoke.texi : Document diagnostics formatting options.
1004
1005 Tue Jun  6 19:25:32 2000  Philippe De Muyter  <phdm@macqel.be>
1006
1007         * configure.in (Make the links): Typo fix : the file that must be
1008         included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
1009         * configure: File rebuilt.
1010
1011 2000-06-06  Nathan Sidwell  <nathan@codesourcery.com>
1012
1013         * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
1014         (eh_context): Add alloc_mask and alloc_buffer emergency fallback
1015         space.
1016         * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
1017         emergency eh_context buffer, if malloc fails.
1018         (__eh_free): Moved from cp/exception.cc. Release to emergency
1019         eh_context buffer, if appropriate.
1020
1021 2000-06-06  Jason Merrill  <jason@casey.soma.redhat.com>
1022
1023         * expr.c (store_expr): Fix typo.
1024
1025 2000-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1026
1027         * m68k.c (legitimize_pic_address): Move prototype ...
1028
1029         * m68k-protos.h (legitimize_pic_address): ... here.
1030
1031         * m68k.md (legitimize_pic_address): Delete prototypes.
1032         (untyped_call): Invoke GEN_CALL(), not gen_call().
1033
1034         * nextstep.c: Include system.h and toplev.h.
1035         (get_directive_line): Don't prototype.
1036         (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
1037
1038         * nextstep.h (handle_pragma): Prototype.
1039         (SECTION_FUNCTION): Prototype FUNCTION().  Move prototype of
1040         objc_section_init ...
1041         (EXTRA_SECTION_FUNCTIONS): ... here.
1042
1043 Tue Jun  6 08:17:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1044
1045         * sdbout.c (struct sdb_file): NAME now const.
1046         (sdbout_init): input_file_name now const.
1047         (sdbout_start_new_source_file): FILENAME now const.
1048         * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
1049
1050 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
1051
1052         * c-typeck.c (build_conditional_expr): Handle complex data types.
1053
1054 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
1055
1056         * explow.c (maybe_set_unchanging): New function, broken out from...
1057         (set_mem_attributes): Here.
1058         * expr.h: Declare it.
1059         * stmt.c (expand_decl): Call it.
1060
1061 2000-06-05  Richard Henderson  <rth@cygnus.com>
1062
1063         * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
1064         while looking for a register to inherit from.
1065
1066 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
1067
1068         * Makefile.in (libgcc.ready): Lose.
1069         (libgcc.mk): Just use mv, not move-if-change.
1070         (LIBGCC_DEPS): New macro.
1071         (libgcc.a): Use it.
1072         (stmp-multilib): Likewise.
1073         * mklibgcc.in (stmp-dirs): New target.  Make everything depend on
1074         it rather than the directories themselves.
1075         (LIB2ADD): Depend on the list file rather than 'force'.
1076
1077         * fold-const.c (fold, case COND_EXPR): Elide conversion between
1078         cv-qualified versions of types.
1079
1080 Mon Jun  5 14:06:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1081
1082         * config/sparc/sparc.c (short_branch): Correct error in range
1083         computation.
1084
1085 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1086
1087         * fixinc/inclhack.def: New include hacks for ultrix.
1088         * (nested_ultrix): Replaced by ultrix_nested_svc.
1089         * (ultrix_atof_param): test_text string added.
1090         * (ultrix_ifdef): Modified select string.
1091
1092 2000-06-05  Zack Weinberg  <zack@wolery.cumb.org>
1093
1094         * objc/objc-act.c (generate_method_descriptors): Register
1095         objc_method_prototype_template as a GC root.
1096         (comp_method_with_proto): Register function_type as a GC root.
1097         (comp_proto_with_proto): Replace function_type1 and
1098         function_type2 with a two-element array; register it as a GC root.
1099
1100         (generate_protocols, build_protocol_initializer,
1101         generate_protocol_list, build_category_initializer,
1102         build_shared_structure_initializer): Do not cache cast_type
1103         and/or cast_type2.
1104
1105 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1106
1107         * function.c (assign_parms): Add missing argument to set_mem_attributes
1108         call.
1109
1110 2000-06-05  Nathan Sidwell  <nathan@codesourcery.com>
1111
1112         * tree.h (VOID_TYPE_P): New macro.
1113         (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
1114         * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
1115         (get_parm_info): Likewise.
1116         (store_parm_decls): Likewise.
1117         (combine_parm_decls): Likewise.
1118         (finish_function): Likewise.
1119         * c-typeck.c (build_function_call): Likewise.
1120         (build_binary_op): Likewise.
1121         (build_conditional_expr): Likewise.
1122         (internal_build_compound_expr): Likewise.
1123         (convert_for_assignment): Likewise.
1124         * stmt.c (expend_expr_stmt): Likewise.
1125         (warn_if_unused_value): Likewise.
1126         (expand_return): Likewise.
1127         * c-parse.in (primary): Likewise.
1128         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
1129         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
1130
1131 Mon Jun  5 06:46:28 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1132
1133         * alias.c (get_alias_set): If compnent is addressable, use alias
1134         set of component.
1135         * c-decl.c (init_decl_processing): Don't call record_component_aliases.
1136         (grokdeclarator): Likewise.
1137         * c-typeck.c (common_type): Likewise.
1138
1139 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
1140
1141         * Makefile.in (OBJS): Remove dyn_string.o
1142         (dyn-string.o): Delete rule.
1143         * dyn-string.c: Delete file
1144         * dyn-string.h: Likewise.
1145
1146 2000-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1147
1148         * Makefile.in (intl.*): Honor non-zero exit codes in the intl
1149         subdir.
1150
1151 2000-06-03  Geoff Keating  <geoffk@cygnus.com>
1152
1153         * alias.c (record_component_aliases): Don't inspect
1154         DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
1155
1156 Sat Jun  3 19:05:30 2000  Michael Meissner  <meissner@redhat.com>
1157
1158         * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
1159         it with the pattern to do machine dependent work.
1160         (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
1161         use it to modify the true/false tests used in conditional
1162         execution.  If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
1163         defined, invoke them if the conversion to conditional execution
1164         was successful or not.
1165
1166         * tm.texi (IFCVT_MODIFY_TESTS): Document.
1167         (IFCVT_MODIFY_INSN): Ditto.
1168         (IFCVT_MODIFY_FINAL): Ditto.
1169         (IFCVT_MODIFY_CANCEL): Ditto.
1170
1171 Sat Jun  3 15:26:13 2000  Matt Kraai <kraai@alumni.carnegiemellon.edu>
1172
1173         * toplev.c (main): Fix misspellings of possibility and language.
1174
1175 2000-06-03  Richard Henderson  <rth@cygnus.com>
1176
1177         * alias.c (record_alias_subset): Initialize has_zero_child in the
1178         superset.
1179
1180 2000-06-03  Richard Earnshaw (rearnsha@arm.com)
1181
1182         * arm.md (untyped_call): Use GEN_CALL macro.
1183
1184 2000-06-02  Pekka Nikander  <pnr@teldanex.tcm.hut.fi>
1185
1186         * Makefile.in: Use $(MAKE) not "make"
1187
1188 Fri Jun  2 19:31:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1189
1190         * alias.c (struct alias_set_entry): New field has_zero_child.
1191         (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
1192         (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
1193         do nothing.
1194         Call record_component_aliases for aggregate types.
1195         (record_alias_subset): Set has_zero_child.
1196         (record_component_aliases, case ARRAY_TYPE): Do nothing if
1197         TYPE_NONALIASES_COMPONENT.
1198         (record_component_aliases, case RECORD_TYPE): Test
1199         DECL_NONADDRESSABLE_P.
1200         * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
1201         of TREE_ADDRESSABLE.
1202         * calls.c (initialize_argument_information): Only test
1203         TYPE_TRANSPARENT_UNION for UNION_TYPE.
1204         * function.c (assign_parms): Likewise.
1205         * integrate.c (function_cannot_inline_p): Likewise.
1206         * stor-layout.c (finish_record_layout): Don't call
1207         record_component_aliases.
1208         * tree.h (struct tree_int_cst): Use struct tree_common.
1209         (struct tree_real_cst, struct tree_string): Likewise.
1210         (struct tree_complex, struct tree_identifier): Likewise.
1211         (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
1212         (struct tree_block, struct tree_type, struct tree_decl): Likewise.
1213         (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
1214         (TYPE_NONALIASES_COMPONENT): New macro.
1215         (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
1216         (DECL_NONADDRESSABLE_P): New macro.
1217         (struct tree_decl): Reorder bits for clarity of how many left;
1218         add non_adressable.
1219
1220 2000-06-02  Jason Merrill  <jason@casey.soma.redhat.com>
1221
1222         * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
1223         * mklibgcc.in (force): New target.
1224         Make LIB2ADD stuff depend on it.
1225
1226 2000-06-02  Richard Henderson  <rth@cygnus.com>
1227
1228         * alias.c (lang_get_alias_set): Remove.
1229         (get_alias_set): Call it directly, not indirectly.
1230         * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
1231         * c-common.h (c_get_alias_set): Don't declare.
1232         * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
1233         * expr.h (lang_get_alias_set): Declare as function, not pointer.
1234
1235 2000-06-02  Bruce Korb  <bkorb@gnu.org>
1236
1237         * fixinc/server.c(sig_handler):  resume closing server on SIGPIPE
1238         (server_setup):  define the server's master pid
1239         (close_server):  actually do the deed IFF we are the server's master
1240
1241 2000-06-02  Jakub Jelinek  <jakub@redhat.com>
1242
1243         * c-common.c (c_get_alias_set): Check whether signed_type did not
1244         return its argument before calling get_alias_set on the result.
1245
1246 2000-06-02  Andrew MacLeod  <amacleod@cygnus.com>
1247
1248         * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
1249
1250 Fri Jun  2 00:22:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1251
1252         * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
1253         (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
1254         for TARGET_NOMACSAVE.
1255         (NOMACSAVE_BIT): Define.
1256         (TARGET_NOMACSAVE): Define.
1257         (TARGET_SWITCHES): Add "nomacsave".
1258
1259 2000-06-02  Toshiyasu Morita  <toshi.morita@sega.com>
1260
1261         * sh.md (untyped_call): Remove excess parameters
1262
1263 2000-06-01  Loren J. Rittle  <ljrittle@acm.org>
1264
1265         * fixinc/inclhack.def (osf_namespace_a): Relax expression to
1266         match that used before the conversion to c_fix style.
1267         * fixinc/fixincl.x: regenerate
1268
1269 2000-06-01  Stan Cox  <scox@cygnus.com>
1270
1271         * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
1272         macro argument typo.
1273
1274 2000-06-01  Zack Weinberg  <zack@wolery.cumb.org>
1275
1276         * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL.  Improve
1277         error message.
1278         * cpplib.c (parse_include): Remove support for VAX-C
1279         "#include starlet" misfeature.
1280
1281 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
1282
1283         * cppfiles.c: conditionally define O_BINARY.
1284         (open_include_file): pass O_BINARY to open().
1285
1286 2000-06-01  Richard Henderson  <rth@cygnus.com>
1287
1288         * i960.c (i960_br_predict_opcode): Remove.
1289         (i960_print_operand) [+]: Emit branch prediction hints.
1290         (i960_function_arg): Return early for VOIDmode.
1291         (i960_round_align): Return early for incomplete types.
1292         * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
1293         * i960.md (all conditional branches): Add "%+".
1294
1295 Thu Jun  1 12:24:21 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1296
1297         * alias.c (get_alias_set): Don't call language-specific routine more
1298         than is needed and clean up code a bit.
1299         * c-common.c (c_get_alias_set): All references whose type
1300         is char get alias set 0, but character types need not.
1301         * varasm.c (make_function_rtl): Don't call set_mem_attributes.
1302         (make_decl_rtl): Don't call it for FUNCTION_DECL.
1303
1304 2000-06-01  Bruce Korb  <bkorb@gnu.org>
1305
1306         * fixinc/tests/base/...: new base result files
1307
1308 Thu Jun  1 09:37:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
1309
1310         * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
1311         * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
1312         * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
1313         will use FCOMI.
1314
1315 2000-06-01  Richard Henderson  <rth@cygnus.com>
1316
1317         * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
1318
1319         * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
1320
1321 2000-05-31  Richard Henderson  <rth@cygnus.com>
1322
1323         * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
1324         CONSTANT_POOL_ADDRESS_P addresses for .sdata.
1325         * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
1326
1327 2000-05-31  Richard Henderson  <rth@cygnus.com>
1328
1329         * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
1330         * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
1331         (ia64_print_operand) [+]: ... here.  Use current_output_insn.
1332         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
1333         * config/ia64/ia64.md (all branch/call patterns): Use %+.
1334
1335 2000-05-31  Richard Henderson  <rth@cygnus.com>
1336
1337         * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
1338
1339 2000-05-31  Richard Henderson  <rth@cygnus.com>
1340
1341         * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
1342         remaining edges.
1343         (find_if_block): Allow THEN with no outgoing edges.
1344         * flow.c (merge_blocks_nomove): Remove a barrier not following
1345         a jump as well.
1346
1347 2000-05-31  Richard Henderson  <rth@cygnus.com>
1348
1349         * flow.c (propagate_block): Move initialization of mem_set_list ...
1350         (init_propagate_block_info): ... here.  Also track blocks with
1351         no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
1352
1353 2000-05-31  Richard Henderson  <rth@cygnus.com>
1354
1355         * jump.c (jump_optimize_1): Revert 05-18 change.
1356
1357 2000-05-31  Mark Mitchell  <mark@codesourcery.com>
1358
1359         * invoke.texi: Remove documentation for -fguiding-decls.
1360
1361 2000-05-31  Richard Henderson  <rth@cygnus.com>
1362
1363         * configure.in: Fix typo last change.
1364
1365 2000-05-31  Philipp Thomas  <pthomas@suse.de>
1366
1367         * configure.in (enable-nls): Enable if build == host, i.e. when
1368         not building a canadian cross compiler.
1369         (enable-maintainer-mode): Added for use with i18n.
1370         * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
1371         cross section of ALL_LINGUAS and LINGUAS.
1372         * configure: Rebuild.
1373
1374 2000-05-31  Bruce Korb  <bkorb@gnu.org>
1375
1376         * fixinc/check.tpl: rework to use test result tree
1377         * fixinc/Makefile.in: change invocation of check script
1378         * fixinc/check.diff: No longer needed
1379         * fixinc/fixincl.x: regenerate
1380         * fixinc/inclhack.def:  add new tests
1381         * fixinc/tests/base/arch/i960/archI960.h:  New test result
1382         * fixinc/tests/base/curses.h: modified test result
1383         * fixinc/tests/base/stdio.h: ditto
1384         * fixinc/tests/base/time.h: ditto
1385         * fixinc/tests/base/sys/asm.h: ditto
1386         * fixinc/tests/base/sys/stat.h: ditto
1387         * fixinc/tests/base/sys/wait.h: ditto
1388
1389 Wed May 31 13:17:20 2000  Philippe De Muyter  <phdm@macqel.be>
1390
1391         * except.c (clear_function_eh_region): Do not free NULL.
1392
1393 Wed May 31 08:07:52 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1394
1395         * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
1396         * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
1397         (REG_BASE_VALUE): Remove unneeded cast to unsigned.
1398         (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
1399         (find_base_decl): New function, from c_find_base_decl in c-common.c.
1400         (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
1401         (get_alias_set): Likewise.
1402         Major rework to do more things and allow language-specific code
1403         to just handle special-cases.
1404         (record_alias_subset): Args are HOST_WIDE_INT.
1405         (record_component_alias): Local vars are HOST_WIDE_INT.
1406         Don't handle COMPLEX_EXPR.
1407         (get_varargs_alias_set): Moved from builtins.c.
1408         (get_frame_alias_set): New function.
1409         * builtins.c (expand_builtin_return_address): Use frame alias set.
1410         (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
1411         for setjmp buffer.
1412         (get_memory_rtx): Rework to use set_mem_attributes.
1413         (get_varargs_alias_set): Deleted from here.
1414         * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
1415         (c_find_base_decl): Deleted from here.
1416         (c_get_alias_set): Remove many cases and rework to just handle
1417         C-specific cases.
1418         * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
1419         * c-decl.c (rtl.h, expr.h): Now included.
1420         (init_decl_processing): Call record_component_aliases on array types.
1421         (grokdeclarator): Likewise.
1422         Set TREE_ADDRESSABLE for all fields that are not bitfields.
1423         * c-typeck.c (common_type): Call record_component_aliases for array.
1424         * caller-save.c (setup_save_areas): Rework register loop for unsigned.
1425         Set all save areas to the frame alias set.
1426         * calls.c (initialie_argument_information): Call set_mem_attributes.
1427         (compute_argument_addresses, expand_call): Likewise.
1428         * explow.c (set_mem_attributes): New function.
1429         (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
1430         * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
1431         LEN and OFFSET now HOST_WIDE_INT.
1432         (clear_by_pieces): Similar changes.
1433         (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
1434         (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
1435         (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
1436         (clear_by_pieces_1): Likewise.
1437         (emit_push_insn): Call set_mem_attributes.
1438         (expand_expr, case INDIRECT_REF): Likewise.
1439         (expand_expr, case VAR_DECL): Call change_address.
1440         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
1441         tree_low_cst.
1442         (get_varargs_alias_set, get_frame_alias_set): New decls.
1443         (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
1444         (new_alias_set, set_mem_attributes): Likewse.
1445         * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
1446         (assign_stack_temp_for_type): Likewise.
1447         Can split slot even if alias set since can copy.
1448         Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
1449         (assign_temp): Use host_integerp and tree_low_cst.
1450         (put_var_into_stack): Properly handle SAVE_EXPR.
1451         (put_addressof_into_stack): Likewise.
1452         (assign_parms): Call set_mem_attributes.
1453         Delete #if 0 code.
1454         (fix_lexical_address): Put reference to chain into frame alias set.
1455         (expand_function_start): Call set_mem_attributes.
1456         * integrate.c (expand_inline_function): Likewise.
1457         * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
1458         * regmove.c (try_apply_stack_adjustment): Likewise.
1459         * reload.c (push_reload, make_memloc): Likewise.
1460         * reload1.c (alter_reg): Make alias sets for spilled pseudos.
1461         * rtl.def (MEM): Update comment.
1462         * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
1463         (move_by_pieces): Change length to HOST_WIDE_INT.
1464         (record_base_value, record_alias_subset): Delete from here.
1465         * stmt.c (expand_decl): Call set_mem_attributes.
1466         * stor-layout.c (finish_record_layout): Call record_component_aliases.i
1467         * toplev.c (compile_file): Call init_alias_once earlier.
1468         * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
1469         from here: now in alias.c.
1470         * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
1471         (struct tree_decl): Likewise.
1472         (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
1473         * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
1474         (output_constant_def, force_const_mem): Likewise.
1475
1476         * flow.c (propagate_block): If block has no successors, stores to
1477         frame are dead if not used.
1478
1479 2000-05-31  Nathan Sidwell  <nathan@codesourcery.com>
1480
1481         * stmt (expand_end_case): Reorder conversion sequence for jump
1482         table to avoid extra truncations.
1483
1484 Wed May 31 01:31:42 2000  Jeffrey A Law  (law@cygnus.com)
1485
1486         * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
1487         in the block is more than just a simple conditional branch.
1488         (noce_process_if_block): Similarly.
1489
1490 Tue May 30 22:25:57 2000  Alexandre Oliva  <aoliva@cygnus.com>
1491
1492         * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
1493         queue.
1494
1495 2000-05-30  Michael Meissner  <meissner@redhat.com>
1496
1497         * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
1498         instructions.  Treat LO_SUM operations as loading the full integer
1499         constant.
1500
1501 2000-05-30  Richard Henderson  <rth@cygnus.com>
1502
1503         * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
1504
1505 2000-05-30  Richard Henderson  <rth@cygnus.com>
1506
1507         * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
1508
1509 2000-05-30  Bruce Korb  <bkorb@gnu.org>
1510
1511         * fixinc/tests/*:  Added expected result files for fixinc's make check
1512         * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
1513
1514 2000-05-30  Richard Henderson  <rth@cygnus.com>
1515
1516         * config/alpha/alpha.md (*setne_internal): Use match_operator
1517         instead of working down from insn.
1518
1519 2000-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1520
1521         * invoke.texi (-Wtraditional): Update WRT function macros.
1522
1523 Tue May 30 09:57:32 2000  Philippe De Muyter  <phdm@macqel.be>
1524
1525         * except.c (free_exception_table): Do not free NULL.
1526
1527 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
1528
1529         * cpplib.c (do_if): Don't save and restore only_seen_white here.
1530         * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
1531         and skipping here.
1532
1533 2000-05-29  Richard Earnshaw (rearnsha@arm.com)
1534
1535         * flow.c (mark_used_reg): If a register is unconditionally live,
1536         remove any conditional death information.
1537
1538 2000-05-29  Richard Henderson  <rth@cygnus.com>
1539
1540         * final.c (current_output_insn): New.
1541         (final_scan_insn): Set it.
1542         * output.h: Declare it.
1543
1544 2000-05-29  Richard Henderson  <rth@cygnus.com>
1545
1546         * stor-layout.c (finalize_record_size): Fix typo.
1547
1548         * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
1549         if nlabel is null.
1550
1551 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
1552
1553         * cpplib.h (cpp_reader): Remove if_stack.  Change
1554         potential_control_macro to a cpp_hashnode *.  Add skipping flag.
1555         * cpphash.h (struct ihash): Change control_macro to a
1556         cpp_hashnode * and shorten name to cmacro.
1557         Add NEVER_REINCLUDE constant.
1558
1559         * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
1560         Examine the cmacro node directly, no need to call cpp_defined.
1561         (_cpp_execute_include, read_include_file): Set cmacro to
1562         NEVER_REINCLUDE, not U"".
1563         * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
1564         (cpp_get_token): If pfile->skipping is true, discard text and
1565         keep scanning until we hit a directive; don't expand macros.
1566
1567         * cpplib.c (struct if_stack): Remove if_succeeded, add
1568         was_skipping. Change control_macro to a cpp_hashnode * and
1569         shorten name to cmacro.  Remove typedef IF_STACK.
1570         (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
1571         (conditional_skip, skip_if_group,
1572         consider_directive_while_skipping): Delete.
1573         (push_conditional): New.
1574         (_cpp_handle_directive): Don't process directives other than
1575         conditionals if we are skipping.
1576
1577         (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
1578         Update to new scheme.
1579         (validate_else): Skip rest of line here, unconditionally.
1580         (_cpp_unwind_if_stack): The stack is per-buffer.  Force
1581         pfile->skipping off.
1582
1583         (all): Remove `scare quotes' from error messages.
1584
1585 2000-05-29  Richard Henderson  <rth@cygnus.com>
1586
1587         * function.c (emit_return_into_block): New line_note arg; emit it.
1588         (thread_prologue_and_epilogue_insns): Attempt to locate a line note
1589         for the close brace to accompany HAVE_return.  Move all line notes
1590         following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
1591
1592 2000-05-29  Richard Henderson  <rth@cygnus.com>
1593
1594         * longlong.h [__alpha] (count_leading_zeros): New.
1595         (count_trailing_zeros): New.
1596         (COUNT_LEADING_ZEROS_0): New.
1597
1598         * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
1599         (alpha_split_conditional_move): New.
1600         * config/alpha/alpha-protos.h: Prototype them.
1601         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1602         (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
1603         * config/alpha/alpha.md: Update ffs cix commentary.
1604         (*ze_and_ne): New.
1605         (*nabssf2, *nabsdf2): New.
1606         (*mov[qhsd]icc_internal): Use add_operand.
1607         (if_then_else constant splitters): New.
1608         (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
1609         (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
1610
1611 2000-05-29  Richard Henderson  <rth@cygnus.com>
1612
1613         * combine.c (force_to_mode) [MINUS]: Convert subtraction from
1614         a constant to NEG or NOT when conditions allow.
1615
1616         * combine.c (combine_simplify_rtx): Don't create an if_then_else
1617         unless both args are general_operand.  Don't canonicalize plus
1618         to ior unless it helps.
1619
1620         * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
1621         instead track register_life_up_to_date.  Toggle no_new_pseudos
1622         around if_convert.
1623
1624 2000-05-28  Geoff Keating  <geoffk@cygnus.com>
1625
1626         * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
1627         so output_operand doesn't see them.
1628
1629 Sun May 28 18:37:07 2000  Clinton Popetz  <cpopetz@cygnus.com>
1630
1631         * lcm.c (make_preds_opaque): Fix comment.
1632         (optimize_mode_switching): Use NORMAL_MODE instead of
1633         MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
1634         FP_MODE_NONE to no_mode.  Rename MODE_AT_ENTRY to NORMAL_MODE.
1635         Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
1636         * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
1637         (MODE_USES_IN_EXIT_BLOCK): Delete.
1638         (MODE_AT_ENTRY) Rename to NORMAL_MODE.
1639         * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
1640         (MODE_AT_ENTRY): Rename to NORMAL_MODE.
1641         (MODE_NEEDED): Don't look for USE.
1642         (EPILOGUE_USES): Define.
1643
1644 Sun May 28 23:26:59 2000  Philippe De Muyter <phdm@macqel.be>
1645
1646         * mklibgcc.in (all): Variable initialised to `libgcc'.
1647
1648 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
1649
1650         * toplev.h (skip_leading_substring): New macro.
1651         * toplev.c (decode_f_option): Use skip_leading_substring instead
1652         of strncmp.
1653         (decode_W_option): Likewise.
1654
1655 2000-05-28  Nick Clifton  <nickc@cygnus.com>
1656
1657         * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
1658         modify reg_names.
1659
1660 2000-05-28  Richard Henderson  <rth@cygnus.com>
1661
1662         * regclass.c (record_operand_costs): Protect reg_changes_size
1663         with CLASS_CANNOT_CHANGE_SIZE.
1664
1665         * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
1666
1667 2000-05-28  Richard Henderson  <rth@cygnus.com>
1668
1669         * function.c (diddle_return_value): A pcc-style struct return
1670         returns a pointer.
1671
1672 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
1673
1674         * cppfiles.c: Read files in, using mmap if possible, then
1675         prescan them separately.
1676         (read_file, read_with_read): New functions.
1677         * cpplex.c: Don't define UCHAR_MAX.
1678         (_cpp_read_and_prescan): Rename to _cpp_prescan.  Don't read
1679         the file here.
1680
1681         * cppinit.c (handle_option): Automatically define __cplusplus,
1682         __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
1683         the respective -lang switch.
1684
1685         * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
1686         prototype): Move to...
1687         * cpplib.h: ... here.  Rename struct hashnode to struct
1688         cpp_hashnode and give it a typedef.  Rename _cpp_lookup to
1689         cpp_lookup.  Add 'fe_value' slot, a union tree_node *.
1690
1691 2000-05-27  Geoffrey Keating  <geoffk@cygnus.com>
1692
1693         * config/rs6000/rs6000.md (movsi): Constify 'name'.
1694
1695         * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
1696         (class_can_change_size): New variable.
1697         (reg_changes_size): New variable.
1698         (init_reg_sets_1): Initialise class_can_change_size.
1699         (record_operand_costs): Remove subreg_changes_size.
1700         Don't pass it around.  Instead update reg_changes_size.
1701         (regclass): Initialise and free reg_changes_size.  If a register
1702         changes size, don't preference it to a class that contains
1703         registers that can't change size.
1704         (record_reg_classes): Don't look at subreg_changes_size.
1705
1706 2000-05-27  Richard Henderson  <rth@cygnus.com>
1707
1708         * print-rtl.c (reg_names): Remove const.
1709         * regclass.c (reg_names): Likewise.
1710         * regs.h (reg_names): Likewise.
1711         * hard-reg-set.h (reg_names): Likewise.
1712
1713 2000-05-27  Richard Henderson  <rth@cygnus.com>
1714
1715         * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
1716
1717 2000-05-27  Richard Henderson  <rth@cygnus.com>
1718
1719         * config/alpha/alpha.c (alpha_does_function_need_gp): Test
1720         TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
1721         (alpha_expand_prologue): Emit prologue_mcount if needed.
1722         * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
1723         * config/alpha/alpha.md (prologue_mcount): New.
1724         * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
1725         (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
1726         * config/alpha/netbsd.h: Likewise.
1727
1728 2000-05-27  Richard Henderson  <rth@cygnus.com>
1729
1730         * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
1731         change to config/elfos.h.
1732
1733 2000-05-27  Richard Henderson  <rth@cygnus.com>
1734
1735         * Makefile.in (resource.o): Depend on except.h.
1736         * except.h (output_exception_table_data): Prototype.
1737         * genconfig.c (gen_peephole2): Prototype.
1738         * genemit.c (main): Include ggc.h.
1739         * genoutput.c: Revert parts of last change: include errors.h
1740         (main): Set progname.
1741         * recog.c: Include hard-reg-set.h before recog.h.
1742         * resource.c: Include except.h.
1743
1744         * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
1745         with RTX_CODE.
1746         (alpha_write_linkage): Protect with BUFSIZ.
1747         (alpha_need_linkage): Update prototype.
1748         * config/alpha/alpha.c (function_arg): Move VMS code here.
1749         (alpha_links_base): Remove.
1750         (alpha_links): New.
1751         (mark_alpha_links_node, mark_alpha_links): New.
1752         (alpha_write_one_linkage): New.
1753         (alpha_need_linkage): Use a splay tree.  Build the linkage symbol.
1754         (alpha_write_linkage): Use splay_tree_foreach.
1755         * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
1756         to get the linkage symbol.
1757         (call_value_vms): Likewise.
1758         * config/alpha/elf.h (output_file_directive): Remove decl.
1759         (ctors_section, dtors_section): Prototype.
1760         (sbss_section, sdata_section): Prototype.
1761         * config/alpha/vms.h (FUNCTION_ARG): Remove.
1762         (readonly_section, link_section, literals_section): Prototype.
1763         (ctors_section, dtors_section): Prototype.
1764         (vms_valid_decl_attribute_p): Remove decl.
1765         (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
1766
1767 2000-05-27  Geoff Keating  <geoffk@cygnus.com>
1768
1769         * reload.c (get_secondary_mem): Don't widen floating-point modes.
1770
1771         * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
1772         substituting the REG in a (subreg:X (reg:Y ...)).
1773
1774 2000-05-28  Neil Booth  <NeilB@earthling.net>
1775
1776         * cpplex.c (_cpp_lex_line): Merge vertical space.  Flag
1777         first token of a line BOL.  Update EOF code for this.
1778         Remove illegal directive check - it appears in the (not
1779         yet committed) caller.
1780         * cpplib.h (BOL): New flag.
1781
1782 2000-05-28  Neil Booth  <NeilB@earthling.net>
1783
1784         * cpplex.c (_cpp_init_toklist): No comment space to initialise.
1785         (_cpp_free_toklist): No comment space to free.
1786         (expand_comment_space): Remove.
1787         (save_comment_space): Place the comment in the current token and
1788         not in a separate comment space.
1789         (_cpp_lex_line): Save comments during plain code and #define
1790         directives only.
1791         * cpplib.h (struct _cpp_toklist): Remove comment space.
1792
1793 2000-05-28  Neil Booth  <NeilB@earthling.net>
1794
1795         * cppexp.c (parse_assertion): Supply extra argument to
1796         _cpp_init_toklist.
1797         * cpplib.c (do_assert, do_unassert): Similarly.
1798         * cpphash.h (_cpp_init_toklist) Update.
1799         (_cpp_expand_token_space): New.
1800         (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
1801         * cpplex.c (_cpp_init_toklist): New argument.
1802         (parse_string2): New argument multiline_ok.
1803         (spell_token): Take a const cpp_token *.
1804         (INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
1805         (SPELL_ macros): Replace with enum.
1806         (expand_token_space): Replace with _cpp_expand_token_space.
1807         Take COUNT argument.
1808         (IS_DIRECTIVE): Update.
1809         (_cpp_lex_line): Update token structure before parsing number.
1810         Don't assume start at beginning of token list.
1811         (save_comment): Use INIT_TOKEN_NAME.
1812
1813 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
1814
1815         * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
1816         -Wmissing-prototypes.
1817         * configure: Regenerate.
1818         * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
1819
1820         * builtins.c, calls.c: Change all instances of gen_call_* or
1821         gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
1822         * calls.c (struct_value_size_rtx): Separate definition from
1823         initialization to avoid unused variable warning.
1824
1825         * genflags.c (gen_macro): New function.
1826         (gen_proto): Call it for gen_call_* and gen_sibcall_*.
1827         (gen_nonproto): Delete.
1828         (gen_insn): Put all insns on the same obstack.
1829         (main): Generate prototypes for everything unconditionally.
1830
1831         * configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented
1832         out check for wchar_t.
1833         * acconfig.h: Add template for ssize_t.  Remove @TOP@.
1834         * system.h: Add infrastructure for defining missing
1835         TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback
1836         definitions of UCHAR_MAX and SSIZE_MAX.
1837         * configure: Regenerate.
1838         * config.in: Regenerate.
1839
1840         * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
1841         Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
1842         headers.
1843         (clean): No need to delete libgcc1.a, libgcc1-asm.a,
1844         libgcc2.a, or libgcc1.null.
1845
1846 2000-05-27  Richard Henderson  <rth@cygnus.com>
1847
1848         * Makefile.in (recog.o): Don't depend on resource.h.
1849         * recog.c: Don't include resource.h.
1850         (recog_last_allowed_insn): Remove.
1851         (recog_next_insn): Remove.
1852         (struct peep2_insn_data): New.
1853         (peep2_insn_data, peep2_current): New.
1854         (peep2_next_insn): New.
1855         (peep2_regno_dead_p, peep2_reg_dead_p): New.
1856         (peep2_find_free_register): New.
1857         (peephole2_optimize): Track life information by insn as we go.
1858         * recog.h: Update declarations.
1859         * resource.c (find_free_register, reg_dead_p): Remove.
1860         * resource.h: Remove their declarations.
1861         * toplev.c: Include hard-reg-set.h before recog.h.
1862
1863         * genconfig.c (max_insns_per_peep2): New.
1864         (gen_peephole2): New.
1865         (main): Call it.
1866         * genemit.c (output_peephole2_scratches): Generate calls to
1867         peep2_find_free_register; adjust surrounding code.
1868         (main): Have insn-emit.c include hard-reg-set.h before recog.h.
1869         * genrecog.c (change_state): Don't track last_insn.
1870         (write_action): Write into *_pmatch_len before accepting.
1871         (write_tree): Adjust peephole2_insns and subroutines to match.
1872
1873         * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
1874
1875         * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
1876         (hard_int_register_operand): New.
1877         * config/alpha/alpha-protos.h: Declare it.
1878         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1879         * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
1880         as needed; use peep2_reg_dead_p instead of dead_or_set_p.
1881
1882 2000-05-27  Richard Henderson  <rth@cygnus.com>
1883
1884         * function.c (thread_prologue_epilogue_insns): Don't move the
1885         line note at the head of the chain.  Only force a lineno note
1886         before the end of block 0.
1887
1888 2000-05-27  Richard Henderson  <rth@cygnus.com>
1889
1890         * gensupport.c (collect_insn_data): Record the maximum number
1891         of alternatives, not the last seen.
1892
1893         * genoutput.c: Don't include errors.h.
1894         (struct data): Add lineno member.
1895         (have_error): New.
1896         (scan_operands): Use message_with_line instead of error.
1897         (validate_insn_alternatives): Likewise.
1898         (gen_insn): Accept and store the pattern's line number.
1899         (gen_peephole, gen_expand, gen_split): Likewise.
1900         (main): Don't set progname.  Pass line_no to gen_foo.
1901
1902 2000-05-27  Richard Henderson  <rth@cygnus.com>
1903
1904         * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
1905         * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
1906         * config/d30v/d30v.md (attr predicable): New.
1907         (all insn patterns): Mark non-predicable patterns; use %: on the rest.
1908         (andsi3*): Unify into one pattern.
1909         (iorsi3*, xorsi3*): Likewise.
1910         (peephole2 patterns): Use peep2_reg_dead_p; verify not a
1911         conditional return.
1912         (old cond_exec patterns): Remove.
1913         (define_cond_exec): New.
1914
1915 Sat May 27 11:01:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1916
1917         * tree.h (TREE_CODE_LENGTH): New macro.
1918         * c-common.c (c_find_base_decl): Use it.
1919         * expr.c (safe_from_p): Likewise.
1920         * print-tree.c (print_node): Likewise.
1921         * tree.c (make_node, copy_node, get_identifier): Likewie.
1922         (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
1923         (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
1924         * fold-const.c (make_range): Likewise.
1925         (fold): Likewise; also use first_rtl_op.
1926         * c-iterate.c (collect_iterators): Use first_rtl_op.
1927         * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
1928         Use IS_EXPR_CODE_CLASS.
1929         (preexpand_calls): Likewise.
1930         * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
1931         and TREE_CODE_LENGTH.
1932         * stmt.c (warn_if_unused_value): If no operands, no unused value.
1933
1934 2000-05-26  Geoffrey Keating  <geoffk@cygnus.com>
1935
1936         * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
1937         than '%1(%*)'.
1938         (movdi_internal64): Likewise.
1939
1940         * config/rs6000/rs6000.md: Correct order of operands for DImode
1941         boolean patterns.
1942
1943         * config/rs6000/rs6000.c (boolean_or_operator): New function.
1944         * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
1945         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
1946         * config/rs6000/rs6000.md: Use boolean_or_operator instead of
1947         boolean_operator for the boolean patterns without NOTs.
1948
1949         * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
1950         from reg_or_u_cint_operand.  Change comment and behaviour.
1951         (logical_operand): Clean up, add assertion.
1952         (non_logical_cint_operand): Also check for
1953         reg_or_logical_cint_operand.
1954         * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
1955         * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
1956         in the expander.
1957         (xorsi3): Likewise.
1958         (iordi3): Likewise.
1959         (xordi3): Likewise.
1960
1961 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
1962
1963         * tree.h (struct record_layout_info): Rename to (struct
1964         record_layout_info_s).
1965         * stor-layout.c (start_record_layout): Replace
1966         `record_layout_info' with `record_layout_info_s'.
1967
1968 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
1969
1970         * flow.c (find_label_refs): New function.
1971         (find_basic_blocks_1): Call it for each alternative of a call
1972         placeholder.
1973
1974 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
1975
1976         * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
1977         of get_pc.
1978
1979 2000-05-25  Richard Henderson  <rth@cygnus.com>
1980
1981         * config/alpha/alpha.c (alpha_comparison_operator): Don't be
1982         so strict about DImode.
1983         (alpha_swapped_comparison_operator): Likewise.
1984         * config/alpha/alpha.md (*setne_internal): Name it.  Allow
1985         any integer output mode.
1986         (*setcc_internal): Likewise.
1987         (*setcc_swapped_internal): Likewise.
1988         (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
1989         (*mov[qhs]icc_internal): New.
1990         (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
1991
1992 2000-05-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1993
1994         * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
1995
1996 2000-05-25  Richard Henderson  <rth@cygnus.com>
1997
1998         * bb-reorder.c (reorder_block_def): Reorder elements for size.
1999         Remove add_jump; add next; replace flags with visited.
2000         (rbd_init): Remove.
2001         (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
2002         (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
2003         (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
2004         (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
2005         (RBI): New.
2006         (reorder_index, reorder_last_visited): Remove.
2007         (skip_insns_after_block): Rewrite to use a switch.
2008         (get_common_dest): Remove.
2009         (chain_reorder_blocks): Remove.
2010         (record_effective_endpoints): Split out from reorder_basic_blocks.
2011         (make_reorder_chain): Likewise.  Loop until all blocks are placed.
2012         (make_reorder_chain_1): Renamed from old make_reorder_chain.
2013         Only construct the reorder chain, do not move insns.  Try harder
2014         to tail recurse.
2015         (label_for_bb, emit_jump_to_block_after): New.
2016         (fixup_reorder_chain): Use them.  Do bulk block movement.  Examine
2017         and adjust the jump insns appropriately.  Fixup basic_block_info.
2018         (verify_insn_chain): Always define.
2019         (relate_bbs_with_scopes): Call xmalloc, not xcalloc.  Fix thinko
2020         in allocation size.
2021         (make_new_scope): Don't write zeros to calloc'd space.
2022         (build_scope_forest): Rely on xrealloc to DTRT.
2023         (reorder_basic_blocks): Don't build loop nest.  Don't fail if
2024         profile_arc_flag.  Streamline EH test.
2025
2026         * flow.c (redirect_edge_succ, redirect_edge_pred): New.
2027         * basic-block.h: Declare them.
2028
2029 2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
2030
2031         * emit-rtl.c (reset_used_decls): New function.
2032         (unshare_all_rtl_again): Call it.
2033
2034 2000-05-25  Zack Weinberg  <zack@wolery.cumb.org>
2035
2036         * cpplex.c (maybe_macroexpand): Warn about function-like
2037         macros used in non-function context, if -Wtraditional.
2038
2039 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
2040
2041         * recog.c (peephole2_optimize): Use INSN_P.
2042
2043 2000-05-25  Richard Henderson  <rth@cygnus.com>
2044
2045         * ifcvt.c (seq_contains_jump): New.
2046         (noce_try_store_flag_constants): Use it to fail conversion.
2047         (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
2048
2049 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
2050
2051         * except.h (can_throw): Declare it.
2052         * except.c (can_throw): Give it external linkage.
2053         * resource.c (find_dead_or_set_registers): Use can_throw.
2054
2055 2000-05-25  Richard Henderson  <rth@cygnus.com>
2056
2057         * flow.c (mark_set_1): Don't record conditionally dead memory.
2058
2059 2000-05-25  Jan Hubicka  <jh@suse.cz>
2060
2061         * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
2062         and pc_set at the place of simplejump_p and condjump_p.
2063         * cse.c (record_jump_equiv): Likewise.
2064         * emit-rtl.c (emit): Likewise.
2065         * explow.c (find_next_ref): Likewise.
2066         * flow.c (tidy_fallthru_edge): Likewise.
2067         (init_propagate_block_info): Likewise.
2068         * gcse.c (delete_null_pointer_checks): Likewise.
2069         * ifcvt.c (cond_exec_get_condition, noce_get_condition,
2070         dead_or_predicable): Likewise.
2071         * integrate.c (copy_insn_list): Likewise.
2072         * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
2073         for_each_insn_in_loop, check_dbra_loop, get_condition,
2074         insert_bct, load_mems): Likewise.
2075         * resource.c (find_dead_or_set_registers): Likewise.
2076         * sibcalls.c (simplejump_p): Likewise.
2077         * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
2078
2079 2000-05-25  David Edelsohn  <edelsohn@gnu.org>
2080
2081         * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
2082         to STRING case.  Use doubleword STRING move for TARGET_POWERPC64
2083         when unaligned.
2084         * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
2085         (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
2086         (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
2087         * rs6000.md: Name various internal patterns.
2088
2089 2000-05-25  Jan Hubicka  <jh@suse.cz>
2090
2091         * jump.c (invert_exp_1): Remove first argument, use pc_set
2092         to get the expression.
2093         (redirect_exp): Make static; redirect only the pc_set expression,
2094         remove first argument.
2095         (invert_exp): Remove first argument, make static.
2096         (jump_optimize): Use any_condjump_p, any_uncondjump_p and
2097         any_onlyjump at most places where we originaly did condjump_p
2098         and simplejump_p.
2099         (jump_back_p, follow_jumps, thread_jumps): Likewise.
2100         (delete_barrier_succesors): Use pc_set.
2101         (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
2102         calls of invert_exp and redirect_exp.
2103         * rtl.h (redirect_exp, invert_exp): Remove.
2104         * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
2105
2106 2000-05-25  Richard Henderson  <rth@cygnus.com>
2107
2108         * stmt.c (expand_end_bindings): Fix thinko last change.
2109
2110 2000-05-25  Andrew MacLeod  <amacleod@cygnus.com>
2111             Andrew Haley  <aph@cygnus.com>
2112
2113         * except.c  (func_eh_entry): Add emitted field.
2114         (new_eh_region_entry): Set emitted field to 0;
2115         (output_exception_table_entry): Only emit previously un-emitted data,
2116         and send it to the eh_data section.
2117         (output_exception_table): Break out common parts. Output
2118         exception table for entire compilation unit to eh_data section.
2119         (output_exception_table_data): Common parts of output_exception_table.
2120         Send output to eh_data section.
2121         (output_function_exception_table): Output exception table data for
2122         a single function to eh_data section.
2123         (free_exception_table): New external to free the table.
2124         * except.h (free_exception_table): Add prototype.
2125         (output_function_exception_table): Add prototype.
2126         * final.c (final_end_function): Output function exception table
2127         for IA64_UNWIND_INFO.
2128         (final_scan_insn): Emit any unwind directives for an insn.
2129
2130         * frame-dwarf2.c: New file containing all DWARF 2 specific code
2131         from frame.c.
2132         * frame.c: Remove all DWARF 2 specific code.
2133         * config/ia64/frame-ia64.c: New file.
2134         (gthread_stuff): Make all gthread available with
2135         IA64_UNWIND_INFO.
2136         (dwarf_fde): Define an IA64 struct for dwarf_fde.
2137         (__register_frame_info, __register_frame): Move to common area of file.
2138         (__register_frame_info_table, __register_frame_table): Move to common i
2139         area.
2140         (__deregister_frame_info, __deregister_frame): Move to common area.
2141         (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
2142         (read_uleb128): New version for ia64.
2143         (get_unwind_record): Read the next IA-64 unwind record.
2144         (read_R_record): Read a region header record.
2145         (process_a_b_reg_code): X record helper.
2146         (read_X_record): Read an X format record.
2147         (read_B_record): Read a B format record.
2148         (P3_record_types): List of record types matching the P3 format.
2149         (P7_record_types): List of record types matching the P7 format.
2150         (P8_record_types): List of record types matching the P8 format.
2151         (read_P_record): Read a P format record.
2152         (init_ia64_reg_loc): Set default fields for a register.
2153         (init_ia64_unwind_frame): Set defaults for all register records.
2154         (execute_one_ia64_descriptor): Execute one descriptor record.
2155         (rse_address_add): Calculate the position of a local reg in memory.
2156         (normalize_reg_loc): Turn a location descriptor into a memory address.
2157         (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
2158         within a specified PC offset range.
2159         (get_real_reg_value): Given a register location, retrieve its value.
2160         (set_real_reg_value): Change the value of a register location.
2161         (copy_reg_value): Copy reg values, if needed.
2162         (copy_saved_reg_state): Copy all registers that need to be copied.
2163         (process_state_between): Normalize all frame register records that
2164         fall within the specified PC range.
2165         (frame_translate): Take a processed frame description, and turn
2166         everything into addresses.
2167         (build_ia64_frame_state ): Find and create frame state record for a PC.
2168         (get_personality): Get the personality routine for a given frame.
2169         (get_except_table): Get the exception table for a given frame.
2170         (record_name): Unwind record names for debugging.
2171         (print_record): Print and unwind record.
2172         (print_all_records): Print an entire unwind image.
2173         (__ia64_backtrace): Print a backtrace.
2174         (ia64_backtrace_helper): New function.
2175         (__register_frame_info_aux): New function.
2176         * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
2177
2178         * frame.h (enum unw_record_type): New unwind record types.
2179         (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
2180         (struct unw_r_record, unwind_record): New unwind record structs.
2181         (struct unwind_info_ptr): Unwind information layout.
2182         (IA64_UNW_LOC_TYPE_*): Macros for different types for location
2183         descriptors.
2184         (struct ia64_reg_loc): Register location description.
2185         (struct ia64_frame_state): Location of all registers in a frame.
2186         (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
2187         * libgcc2.c (__ia64_personality_v1): Personality routine.
2188         (__calc_caller_bsp): Calculate the bsp register for the caller's
2189         frame.
2190         (ia64_throw_helper): Figure out who to return to and set up the
2191         registers.
2192         (__throw): Throw routine.
2193
2194         * output.h (assemble_eh_align, assemble_eh_label): New functions
2195         to generate EH info where we want it.
2196         (assemble_eh_integer): New function.
2197         * toplev.c (compile_file): Output module level exception table for
2198         non-ia64 targets.
2199         (main): Set exceptions_via_longjump and flag_new_exceptions based
2200         on IA64_UNWIND_INFO too.
2201
2202         * varasm.c (assemble_eh_label): Generate a label via
2203         ASM_OUTPUT_EH_LABEL if it has been specified.
2204         (assemble_eh_align): Generate an alignment directive via
2205         ASM_OUTPUT_EH_ALIGN if it has been specified.
2206         (assemble_eh_label): Generate an integer value via
2207         ASM_OUTPUT_EH_type if they have been specified.
2208         * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
2209         (ia64_init_builtins): Add __builtin_ia64_bsp
2210         and __builtin_ia64_flushrs.
2211         (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
2212         IA64_BUILTIN_FLUSHRS.
2213         * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
2214         IA64_BUILTIN_FLUSHRS.
2215
2216         * config/ia64/ia64.md (flushrs): New insn to flush the register
2217         stack.  Add to unspec list.
2218
2219         * config/ia64/crtbegin.asm (frame_object): Change size.
2220         (__do_frame_setup_aux): New function.
2221         * config/ia64/crtend.asm: call __do_frame_setup_aux.
2222         * config/ia64/t-ia64 (LIB2ADDEH): Add.
2223         * Makefile.in (LIB2ADDEH): Add.
2224         (LIB2ADD): Use LIB2ADDEH.
2225
2226 2000-05-24  Richard Henderson  <rth@cygnus.com>
2227
2228         * recog.c (offsettable_address_p): If mode size is zero, assume
2229         BIGGEST_ALIGNMENT.
2230
2231 2000-05-24  J. David Anglin  <dave@hiauly.hia.nrc.ca>
2232
2233         * configure.in: Check for -Wno-long-long option support and improve
2234         handling of warning CFLAGS for stages 1 and 2.
2235         * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
2236         * configure: Regenerate.
2237
2238 Wed May 24 19:37:53 2000  Jeffrey A Law  (law@cygnus.com)
2239
2240         * gcc.texi: Remove contributor list.  Instead include contrib.texi.
2241         * contrib.texi: New file.
2242
2243 Thu May 25 02:27:22 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2244
2245         * loop.c (basic_induction_var): Avoid double recording of an increment.
2246
2247 Thu May 25 02:19:27 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2248
2249         * Back out this patch:
2250         Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
2251           * loop.h (struct induction): Add multi_insn_incr.
2252           * loop.c (basic_induction_var): New multi_insn_incr argument.
2253           Set it if we search back through previous insns for the biv.
2254           (record_biv): New multi_insn_incr argument; fill in struct induction.
2255           (strength_reduce): Discard an iv with multiple bivs, any of
2256           which require multiple insns to increment.
2257
2258         * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
2259
2260 Thu May 25 02:09:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2261
2262         * rtl.h (loc_mentioned_in_p): Declare.
2263         * reload.c (loc_mentioned_in_p): Moved from here...
2264         * rtlanal.c (loc_mentioned_in_p): to here.  No longer static.
2265         Fix loop increment for 'E' handling.
2266         * loop.c (strength_reduce): When doing biv->giv conversion,
2267         take multi-insn biv increments into account.
2268
2269 2000-05-24  Jason Merrill  <jason@casey.soma.redhat.com>
2270
2271         * stmt.c (expand_end_bindings): Look through NOTEs to find a
2272         BARRIER.
2273
2274 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
2275
2276         * calls.c (expand_call): Handle cleanups in tail-recursion
2277         arguments analagously to cleanups in sibling calls.
2278
2279 2000-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2280
2281         * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
2282         All callers changed.
2283
2284 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
2285
2286         * expr.c (expand_assignment, store_expr, expand_expr,
2287         expand_expr_unaligned): Set in_check_memory_usage while emitting
2288         chkr_check_addr libcall.
2289
2290 2000-05-24  Nick Clifton  <nickc@cygnus.com>
2291
2292         * fold-const.c (extract_muldiv): When constructing a
2293         multiplier/divisor, do not expect const_binop to correctly
2294         determine if overflow has occured, so check explicitly.
2295
2296 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
2297
2298         * c-decl.c (build_enumerator): Don't modify the value's type,
2299         convert it.
2300
2301 2000-05-24  Andreas Jaeger  <aj@suse.de>
2302
2303         * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
2304
2305 2000-05-24  Eric Christopher <echristo@cygnus.com>
2306
2307         * configure.in: Redefine inhibit_libc conditions.
2308         * libgcc2.c: Remove inhibit_libc conditional define.
2309         * configure: Regenerate.
2310
2311 2000-05-24  Phil Edwards  <pme@sourceware.cygnus.com>
2312
2313         * configure.in:  For --enable-languages=LIST, check for empty LIST.
2314         * configure:  Regenerate.
2315
2316 2000-05-24  Lars Brinkhoff  <lars@nocrew.org>
2317
2318         * pdp11.h (STACK_BOUNDARY): Define.
2319
2320 2000-05-24  Jakub Jelinek  <jakub@redhat.com>
2321
2322         * ifcvt.c (if_convert): Update life info globally.
2323
2324 2000-05-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2325
2326         * emit-rtl.c (unshare_all_decls): New function.
2327         (unshare_all_rtl): Call it.
2328
2329 2000-05-23  Nick Clifton  <nickc@cygnus.com>
2330
2331         * configure.in: Treat 'strongarm' as if it were 'arm' when
2332         determining cpu type.
2333
2334         * configure: Regenerate.
2335
2336         * config/arm/arm.c: Change 'char *' to 'const char *' for cases
2337         where constant strings are involved.
2338
2339         * config/arm/arm.h (arm_condition_codes): Change type to 'const
2340         char *'.
2341
2342         * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
2343         cases where constant strings are involved.
2344
2345 Tue May 23 15:08:31 2000  Clinton Popetz  <cpopetz@cygnus.com>
2346
2347         * config/sh/sh.c (gen_far_branch, split_branches): Update
2348         to reflect new prototypes for redirect_jump and invert_jump.
2349         (sh_insn_length_adjustment): Get rid of const warnings.
2350
2351 2000-05-23  Kazu Hirata  <kazu@hxi.com>
2352
2353         * invoke.texi (Options for Debugging Your Program or GCC): Update
2354         the names of dump files.
2355
2356 Tue May 23 13:58:52 2000  Philippe De Muyter  <phdm@macqel.be>
2357
2358         * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
2359         * configure: Regenerated.
2360
2361 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
2362
2363         * simplify-rtx.c (SIGN_EXTEND): New macro.
2364         (simplify_unary_operation, simplify_binary_operation,
2365         simplify_relational_operation): Use SIGN_EXTEND.  Make low
2366         halves of (low, high) pairs unsigned if they weren't already.
2367         (simplify_ternary_operation): Cast INTVAL to unsigned before
2368         comparing to a MODE_BITSIZE.
2369
2370 2000-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2371
2372         * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
2373         rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
2374
2375         * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
2376         gcc_AC_NEED_DECLARATIONS.
2377
2378         * dwarfout.c: Don't prototype time().
2379
2380         * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
2381
2382         * system.h: Likewise.
2383
2384         * toplev.c: Likewise.
2385
2386 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
2387
2388         * c-decl.c (pushdecl): Invert sense of test for non-global types.
2389
2390 Tue May 23 18:11:42 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2391
2392         * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
2393
2394 2000-05-23  Jonathan Larmour  <jlarmour@redhat.co.uk>
2395
2396         * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
2397
2398 Tue May 23 06:50:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2399
2400         * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
2401         (alpha_start_function): Never write ..ng label if VMS or NT.
2402         (alpha_align_insns): Remove GP_IN_USE arg.
2403         Alignment now unsigned.
2404         (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
2405         * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
2406         and two define_insn's.
2407
2408 2000-05-22  Richard Henderson  <rth@cygnus.com>
2409
2410         * combine.c (simplify_comparison): Use trunc_int_for_mode.
2411
2412 2000-05-22  Richard Henderson  <rth@cygnus.com>
2413
2414         * stor-layout.c (place_field): Change rli->size to rli->offset.
2415
2416 2000-05-22  Richard Henderson  <rth@cygnus.com>
2417
2418         * function.c (thread_prologue_and_epilogue_insns): Make sure
2419         existing line number notes appear after the prologue.
2420
2421 Mon May 22 21:49:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2422
2423         * config/alpha/alpha.c (alpha_fnname): New static variable.
2424         (print_operand, case '~'): New case.
2425         (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
2426         (alpha_start_function): Set alpha_fnname.
2427         Write "ng" label if no ldgp; don't write ldgp insn.
2428         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
2429         * config/alpha/alpha.md (prologue_ldgp): New define_insn.
2430
2431 Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
2432
2433         * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
2434         on deleted labels.
2435
2436 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
2437
2438         * varasm.c (eh_frame_section): Revert change to argument list.
2439
2440 Mon May 22 13:14:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2441
2442         * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
2443         (gen_extend_insn, can_fix_p, can_float_p): Likewise.
2444
2445         * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
2446         dangling "else" that causes "break" to be conditional.
2447         Also remove unneeded code at start.
2448
2449 Mon May 22 17:31:35 2000  Philippe De Muyter  <phdm@macqel.be>
2450
2451         * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
2452         * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
2453         * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
2454
2455 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
2456
2457         * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
2458         just one argument.
2459
2460 Mon May 22 06:57:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2461
2462         * alias.c (record_component_aliases): New function.
2463         * tree.h: Clean up some declarations and comments.
2464         (record_component_aliases): New declaration.
2465         * tree.c (get_alias_set): If type and has alias set, use it.
2466
2467 2000-05-22  Richard Henderson  <rth@cygnus.com>
2468
2469         * simplify-rtx.c (simplify_ternary_operation): Try to simplify
2470         IF_THEN_ELSE to a setcc form.
2471         * jump.c (can_reverse_comparison_p): Be prepared for insn null.
2472
2473 2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2474
2475         * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
2476         (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
2477
2478 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2479
2480         * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
2481         not a PARALLEL.
2482
2483 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
2484
2485         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2486         * config/mn10300/mn10300.c (print_operand): Likewise.
2487
2488         * final.c (split_double): Right shift of negative values is not
2489         portable.
2490
2491         * ifcvt.c (if_convert): Scan and kill dead code.
2492
2493         * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
2494
2495 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
2496
2497         * diagnostic.c: Eliminate implicit int.
2498         * except.c, gcc.c: Add static prototypes.
2499         * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
2500         * gensupport.c (process_rtx): Use XVEC to initialize vector
2501         slot of 'split'.
2502
2503         * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
2504         debug_reg_names instead of static reg_names.  If not, define
2505         global reg_names.
2506         * regclass.c: Don't define global reg_names unless
2507         DEBUG_REGISTER_NAMES is defined.
2508
2509         * reload1.c (order_regs_for_reload): Remove unused variable.
2510         * varasm.c: Include output.h after defaults.h.  Define
2511         eh_frame_section as function of no args, not of unspecified args.
2512
2513         * gcc.c: Constify argbuf; arguments to store_arg,
2514         process_command, main; elements of struct command and struct
2515         switchstr; local variables in execute, process_command, main.
2516
2517 2000-05-20  Bruce Korb  <bkorb@gnu.org>
2518
2519         * fixinc/inclhack.def:  many applications of c_fix=format + tests
2520         * fixinc/check.diff:  regenerated
2521         * fixinc/fixincl.x:  regenerated
2522
2523 Sat May 20 09:30:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2524
2525         * alias.c: Clarify some comments.
2526         (record_base_value): REGNO is unsigned.
2527         * rtl.h (record_base_value): Likewise.
2528
2529         * alias.c (aliases_everything_p): Don't special-case QImode here.
2530         * c-common.c (c_get_alias_set): Do it here.
2531         Handle BIT_FIELD_REF by getting alias info for arg.
2532         Use POINTER_TYPE_P.
2533
2534 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
2535
2536         * mklibgcc.in: Restore rule to create ${dir}.
2537
2538 Sat May 20 08:45:41 2000  H.J. Lu  <hjl@gnu.org>
2539
2540         * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
2541         GCC_FOR_TARGET used by MULTILIBS.
2542         * mklibgcc.in: Make sure each .o file depends on the
2543         directory it will be in.
2544         Make the multilib directory depends libgcc.
2545
2546 Sat May 20 08:29:28 2000  H.J. Lu  <hjl@gnu.org>
2547
2548         * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
2549
2550 Sat May 20 07:27:35 2000  Alexandre Oliva  <aoliva@cygnus.com>
2551
2552         * fold-const.c (make_range): Handle degenerated intervals.
2553         Fixes c-torture/execute/991221-1.c
2554
2555 Fri May 19 18:16:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2556
2557         * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
2558         * reload.c (find_equiv_reg): Likewise.
2559         * alias.c (init_alias_analysis): Likewise.
2560         Only call prologue_epilogue_contains on insns.
2561         * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
2562         * bb-reorder.c (hard-reg-set.h): Include earlier.
2563         * haifa-sched.c (hard-reg-set.h): Likewise.
2564         * ifcvt.c (hard-reg-set.h): Likewise.
2565         * local-alloc.c (hard-reg-set.h): Likewise.
2566         * loop.c (hard-reg-set.h): Likewise.
2567         * predict.c (hard-reg-set.h): Likewise.
2568         * regrename.c (hard-reg-set.h): Likewise.
2569         * flow.c (hard-reg-set.h): Likewise.
2570         (reg_set_to_hard_reg_set): New function.
2571         * bitmap.c (regs.h, basic-block.h): No longer include.
2572         (bitmap.h): Now include.
2573         * conflict.c (hard-reg-set.h): Include.
2574         * profile.c (hard-reg-set.h): Likewise.
2575         * print-rtl.c (hard-reg-set.h): Likewise.
2576         * sbitmap.c (hard-reg-set.h): Likewise.
2577         * toplev.c (hard-reg-set.h): Likewise.
2578         * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
2579         * hard-reg-set.h (reg_names): Now constant.
2580         * regs.h (reg_names): Likewise.
2581         * regclass.c (reg_names): Likewise.
2582         * loop.h (basic-block.h): No longer include.
2583         (bitmap.h): Now include.
2584         * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
2585         * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
2586         (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
2587
2588 2000-05-19  Jan Hubicka  <jh@suse.cz>
2589             Richard Henderson  <rth@cygnus.com>
2590
2591         * basic-block.h (struct edge_def): New field "count".
2592         (struct basic_block_def): Likewise.
2593         * flow.c (entry_exit_blocks): Add count fileds.
2594         (split_edge): Keep count information up-to-date.
2595         (dump_edge_info, dump_flow_info): Dump count fields.
2596
2597         * final.c (count_instrumented_edges): Rename to edge from arc.
2598         (end_final): Update users.
2599         * profile.c: Include expr.h, basic-block.h.
2600         (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
2601         (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
2602         (ignore_next_note, return_label_execution_count): Kill.
2603         (bbg_file_name, da_file_name): Kill.
2604         (edge_info, bb_info): New structures.
2605         (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
2606         (count_instrumented_edges, total_num_edges): Rename to edge from arc.
2607         (total_num_edges_instrumented): Likewise.
2608         (init_arc, expand_spanning_tree): Kill.
2609         (fill_spanning_tree, tablejump_entry_p): Kill.
2610         (instrument_edges):  Rewrite from instrument_arcs to use
2611         commit_edge_insertions infrastructure.
2612         (compute_branch_probabilities): Remove arguments; rewrite for
2613         CFG infrastructure; use rtl_dump_file directly.
2614         (branch_prob, find_spanning_tree): Likewise.
2615         (union_groups, find_group): New.
2616         (init_branch_prob): Make bbg_file_name and da_file_name local.
2617         (end_branch_prob): Use rtl_dump_file directly.
2618         (init_edge_profiler): Rename to edge from arc.
2619         (output_arc_profiler): Kill.
2620         (gen_edge_profiler): New.
2621         (output_func_start_profiler): Turn off profiling.  Make the
2622         constructor static when we can.
2623         * rtl.h (branch_prob, end_branch_prob): Update prototypes.
2624
2625         * toplev.c (DFI_flow): Remove.
2626         (DFI_cfg, DFI_life): New.
2627         (dump_file): Update accordingly.
2628         (compile_file): Call end_branch_prob if profile_arc_flag too.
2629         (rest_of_compilation): Move flow1 cfg creation to DFI_cfg.  Do edge
2630         profiling after the CFG is built.  Move flow1 life analysis to
2631         DFI_life.  Always estimate remaining probabilities.
2632
2633 2000-05-19  Richard Henderson  <rth@cygnus.com>
2634
2635         * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
2636
2637         * flow.c (make_edges): The sibling call edge to exit is abnormal.
2638
2639 2000-05-19  Richard Henderson  <rth@cygnus.com>
2640
2641         * jump.c (redirect_jump): Add delete_unused argument.  Don't
2642         remove labels and code following when LABEL_NUSES goes to zero.
2643         (invert_jump): Likewise.
2644         (jump_optimize_1): Fix redirect/invert arguments.
2645         (do_cross_jump, thread_jumps): Likewise.
2646         * flow.c (split_edge): Likewise.
2647         * reorg.c (optimize_skip): Likewise.
2648         (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
2649         * profile.c (instrument_arcs): Likewise.
2650         * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
2651         * rtl.h: Update prototypes.
2652
2653 Fri May 19 12:05:13 2000  Clinton Popetz  <cpopetz@cygnus.com>
2654
2655         * ssa.c (convert_from_ssa): Tell life_analysis we need death
2656         notes.
2657         (make_regs_equivalent_over_bad_edges): Only look at abnormal
2658         critical edges.
2659
2660 2000-05-19  Zack Weinberg  <zack@wolery.cumb.org>
2661
2662         * cpphash.c (funlike_macroexpand): Make sure not to walk p1
2663         past l1 when deleting whitespace and markers.
2664
2665         * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
2666         * cpplib.c (do_unassert): Put the list to compare against on
2667         the stack.
2668
2669 2000-05-19  Bruce Korb  <bkorb@gnu.org>
2670
2671         * fixinc/README:  cleaned up old documentation
2672         * fixinc/check.diff: regenerated & verified on OSR5 on ix86
2673         * fixinc/check.tpl: compute the list of needed directories
2674         emit "#if defined(name)" because of conflict
2675         omit machine name differences from output differences
2676         * fixinc/inclhack.def( m88k_multi_incl ):  Use `wrap' function
2677         (machine_name): change test text to use `sed' markers
2678         * fixinc/fixincl.x: regen
2679
2680 Fri May 19 06:49:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2681
2682         * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
2683         a CONSTRUCTOR.
2684
2685 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
2686
2687         * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
2688         it to match the current practice.
2689
2690 2000-05-18  Mark Mitchell  <mark@codesourcery.com>
2691
2692         * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
2693
2694 2000-05-18  Richard Henderson  <rth@cygnus.com>
2695
2696         * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
2697         * rtl.h (insn_dependant_p): Declare it.
2698         * loop.c (strength_reduce): Use it.
2699
2700 2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
2701
2702         * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
2703         16-bit and 64-bit clean-up.
2704
2705 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
2706
2707         * configure.in (*-pc-msdosdjgpp): Set float_format to none.
2708         * configure: Rebuilt.
2709
2710 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
2711
2712         * genopinit.c: Use $ for escape sequences in optab patterns.
2713         Remove backslashes from optab patterns.  Change $A, $B, $C to
2714         expand to (int) whatever instead of just whatever; remove
2715         explicit (int) from all optab patterns.
2716
2717         * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
2718         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
2719         genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
2720         genrecog.c: Remove private copies of xmalloc, xrealloc, and
2721         xstrdup.
2722
2723 2000-05-18  Richard Henderson  <rth@cygnus.com>
2724
2725         * jump.c (jump_optimize_1): Base minimum insn count during
2726         find_cross_jump on BRANCH_COST.
2727
2728 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
2729
2730         * print-rtl.c (print_rtx): Only print note line number as string
2731         if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
2732         * final.c (final_scan_insn): Do nothing for note line number 0.
2733
2734 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
2735
2736         * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
2737         from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
2738         NOTE_INSN_DELETED_LABEL.
2739
2740 2000-05-18  Nick Clifton  <nickc@cygnus.com>
2741
2742         * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
2743         uninitialised data in .rodata not .bss, and do not interpret an
2744         error in the initialisation value as meaning that the variable
2745         should be placed in the .bss section.
2746
2747 Thu May 18 12:10:18 2000  Philippe De Muyter  <phdm@macqel.be>
2748
2749         * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
2750         not `$ac_cv_prog_cc_cc_c_o'.
2751         * configure: Regenerated.
2752
2753 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
2754             Richard Henderson  <rth@cygnus.com>
2755
2756         * c-common.h (enum c_tree_index): Add g77 type entries.
2757         (g77_integer_type_node, g77_uinteger_type_node): New.
2758         (g77_longint_type_node, g77_ulongint_type_node): New.
2759         * c-decl.c (init_decl_processing): Initialize them.
2760
2761 2000-05-18  Richard Henderson  <rth@cygnus.com>
2762
2763         * config/h8300/h8300.md (subs patterns): Use %G to negate.
2764
2765         * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
2766         (small_power_of_two): Likewise; use exact_log2.
2767         (adds_subs_operand, one_insn_adds_subs_operand): Remove.
2768         (output_adds_subs): Remove.
2769         (two_insn_adds_subs_operand): New.
2770         (split_adds_subs): New.
2771         * config/h8300/h8300-protos.h: Update.
2772         * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
2773         (CONST_OK_FOR_L): Match strict adds operands.
2774         (CONST_OK_FOR_N): Match struct subs operands.
2775         * config/h8300/h8300.md (adds_subs insns): Remove.
2776         (addhi patterns): Output adds/subs directly.
2777         (addsi_h8300h): Likewise.
2778         (addhi/addsi splitters): New.  Decompose two_insn_adds_subs_operand.
2779
2780 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
2781
2782         * cppexp.c (parse_assertion): New.
2783         (lex): Call it for CPP_HASH.  Remove CPP_ASSERTION case.
2784         (_cpp_parse_expr): Remove case '#'.  Don't set
2785         parsing_if_directive.
2786         * cpphash.c (collect_objlike_expansion,
2787         collect_funlike_expansion, collect_params,
2788         _cpp_create_definition): The list no longer has a trailing
2789         VSPACE token.
2790         * cpphash.h (enum node_type): Add T_ASSERTION.
2791         (struct hashnode): Remove aschain, add pred.
2792         (struct predicate): New.
2793         Update prototypes.
2794
2795         * cpplex.c (expand_token_space): Handle both offset and
2796         nonoffset lists.
2797         (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
2798         (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
2799         _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
2800         _cpp_equiv_toklists): New.
2801         (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
2802         stop at any single-character token, not just newline.
2803         (_cpp_lex_token): Remove special cases for #define and #if.
2804         (cpp_get_token): Expect # as a separate token type.  Remove
2805         DIRECTIVE case.
2806         (_cpp_get_directive_token): Remove DIRECTIVE case.
2807         (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
2808
2809         * cpplib.c (_cpp_check_directive): Set dirno and
2810         SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
2811         (_cpp_handle_directive): Run # <number> through the same logic
2812         as normal directives.
2813         (do_define): Don't set parsing_define_directive.  Use
2814         _cpp_scan_until.  The list does not have a VSPACE at the end.
2815         (do_if): Save, clear, and restore only_seen_white around
2816         _cpp_parse_expr.
2817         (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
2818         (do_assert, do_unassert): Rewrite.
2819
2820         * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
2821         (LIST_OFFSET): New flag.
2822         (struct cpp_toklist): Replace dir_handler and dir_flags with
2823         dirno and flags.
2824         (struct cpp_reader): Remove parsing_if_directive and
2825         parsing_define_directive.
2826
2827 2000-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2828
2829         * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
2830         following the cabs decl which terminate on the following line.
2831         Add the corresponding test_text case.
2832
2833 2000-05-18  Neil Booth  <NeilB@earthling.net>
2834
2835         * cppinit.c (cpp_reader_init): Initialise col_adjust and
2836         default tab stop size.
2837         (no_num, OPT_ftabstop): New.
2838         (handle_option): Handle "ftabstop=" command-line option.
2839         (print_help): Document it.
2840         * cpplex.c (COLUMN): Remove.
2841         (handle_newline): Reset col_adjust.
2842         (skip_whitespace): Update col_adjust as tabs encountered.
2843         (_cpp_lex_line): Update to use col_adjust.  Call
2844         skip_whitespace for all whitespace.
2845         * cpplib.h (struct cpp_options): New member tabstop.
2846         (struct cpp_reader): New member col_adjust.
2847         (CPP_BUF_COL): Update.
2848         (CPP_BUF_COLUMN): New.
2849         * cpp.texi: Document "-ftabstop=" command line option.
2850
2851 Wed May 17 18:19:41 2000  Philippe De Muyter  <phdm@macqel.be>
2852
2853         * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
2854         files.
2855         * configure: Rebuilt.
2856
2857 Wed May 17 18:06:12 2000  John David Anglin <dave@hiauly1.hia.nrc.ca>
2858
2859         * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
2860
2861         * tree.c (build_common_tree_nodes): Do not build TI nodes unless
2862         HOST_BITS_PER_WIDE_INT is >= 64.
2863
2864 2000-05-17  Richard Henderson  <rth@cygnus.com>
2865
2866         * jump.c (jump_optimize_1): Remove inactive but real insns
2867         in jump-to-next-insn optimization.
2868
2869 2000-05-17  Richard Henderson  <rth@cygnus.com>
2870
2871         * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
2872         unless OPTIMIZE_MODE_SWITCHING.  Conditionally set no_new_pseudos.
2873         Don't call recompute_reg_usage if no_new_pseudos is true.
2874         * lcm.c (optimize_mode_switching): Move ifdefs outside function.
2875         Return true if we did work; update global life information.
2876         * basic-block.h (optimize_mode_switching): Update decl.
2877
2878 2000-05-17  Neil Booth  <neilb@earthling.net>
2879
2880         * cpplex.c (expand_name_space): Don't use ptrdiff_t.
2881
2882 2000-05-17  Zack Weinberg  <zack@wolery.cumb.org>
2883
2884         * cpplib.c: New feature, #pragma system_header.
2885         * cpp.texi: Document special treatment of system headers, and
2886         the various mechanisms to get a header that special treatment.
2887
2888 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2889
2890         * system.h (offsetof): Define at the very end, to ensure we prefer
2891         the platform's definition if available.
2892
2893 2000-05-16  Bruce Korb  <bkorb@gnu.org>
2894
2895         * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
2896         * fixinc/server.c: likewise
2897         * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
2898         + #ifdef debugging code + use #def constant for
2899         sub-pattern count
2900         * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
2901         on C++ math namespace
2902
2903 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2904
2905         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
2906         Don't check the return value of sprintf.  Use asprintf to avoid
2907         buffer overflows.
2908
2909 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
2910
2911         * flags.h (warn_unused_function, warn_unused_label,
2912         warn_unused_parameter, warn_unused_variable, warn_unused_value):
2913         Replace ``warn_unused''.
2914         (set_Wunused): Add declaration.
2915         * toplev.c (set_Wunused): New function.
2916         (warn_unused_function, warn_unused_label, warn_unused_parameter,
2917         warn_unused_variable, warn_unused_value): New variables.
2918         (W_options): Add -Wunused-function, -Wunused-function,
2919         -Wunused-label, -Wunused-parameter, -Wunused-variable and
2920         -Wunused-value.  Delete -Wunused.  Handled in decode_W_option.
2921
2922         * toplev.c (decode_W_option): Update -Wunused flags by calling
2923         set_Wunused.
2924         * c-decl.c (c_decode_option): Ditto for -Wall.
2925
2926         * stmt.c (expand_expr_stmt, expand_expr_stmt,
2927         warn_about_unused_variables): Replace warn_unused with more
2928         explicit warn_unused_value et.al.
2929         * function.c (expand_function_end): Ditto.
2930         * c-typeck.c (internal_build_compound_expr,
2931         internal_build_compound_expr): Ditto.
2932         * c-decl.c (poplevel, pop_label_level): Ditto.
2933         * toplev.c (check_global_declarations): Replace warn_unused with
2934         check for either warn_unused_function or warn_unused_variable.
2935
2936         * gcc.1, invoke.texi (Warning Options): Document
2937         -Wunused-function, -Wunused-function, -Wunused-label,
2938         -Wunused-parameter, -Wunused-variable and -Wunused-value options.
2939
2940 Wed May 17 10:28:12 2000  Philippe De Muyter  <phdm@macqel.be>
2941
2942         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
2943         $(srcdir), not in the current directory.
2944
2945 2000-05-16  Richard Henderson  <rth@cygnus.com>
2946
2947         * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
2948         assembler supports it.
2949         (.fini, .init): Use a gp-relative indirect call.
2950         (__do_global_dtors_aux): Preserve the gp; rebundle.
2951         (__do_frame_setup): Likewise.
2952         * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
2953         (.init): Use a gp-relative indirect call.
2954         (__do_global_ctors_aux): Preserve the gp.
2955
2956 2000-05-16  Richard Henderson  <rth@cygnus.com>
2957
2958         * flow.c (commit_one_edge_insertion): Be prepared for a return
2959         insn to be inserted on the edge with a normal jump.
2960         * jump.c (jump_optimize_1): Don't look to create return isns.
2961
2962         * flow.c (flow_delete_insn): Don't adjust reference count of notes.
2963         * jump.c (jump_optimize_1): Likewise.
2964         (returnjump_p): Verify the argument is a JUMP_INSN.
2965         * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
2966
2967 2000-05-16  Nick Clifton  <nickc@cygnus.com>
2968
2969         * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
2970         GET_RTX_CLASS (GET_CODE ()) == 'i'.
2971         (large_insn_p): Ditto.
2972         (m32r_is_insn): New function: Return true if the insn contains
2973         an executable instruction.
2974         (m32r_adjust_insn): Use m32r_is_insn.
2975         (m32r_sched_reorder): Use m32r_is_insn.
2976         (m32r_sched_variable_issue): Use m32r_is_insn.
2977
2978 2000-05-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2979
2980         * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
2981         VAR_DECL.
2982
2983         * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
2984
2985         * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
2986         according to given options.
2987
2988 Tue May 16 12:17:31 2000  Jeffrey A Law  (law@cygnus.com)
2989
2990         * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
2991         if X has VOIDmode either.
2992         (LIMIT_RELOAD_CLASS): Similarly.
2993
2994         * mn10200.md (indirect_jump, tablejump): Use "register_operand",
2995         not "general_operand" to match the processor's capabilities.
2996
2997 2000-05-16  Bruce Korb  <bkorb@gnu.org>
2998
2999         * fixinc/README:  corrected return address
3000         * fixinc/check.diff:  regenerate, now that test works
3001         * fixinc/fixfixes.c(format_fix,format_write): reformatted
3002         (char_macro_def_fix,char_macro_use_fix): corrected and
3003         rewrote to use regex to parse the text
3004         * fixinc/inclhack.def: more testing
3005         * fixinc/fixincl.x:  regenerated
3006
3007         * fixinc/inclhack.def: added several "test_text" attributes
3008         changed several fixes to use `c_fix = format'
3009         re-alphabetized the fixes
3010
3011         * fixinc/check.diff: regenerate
3012         * fixinc/fixincl.x: regenerate
3013         * fixinc/check.tpl: added `sparc' and `netinet' to the list
3014         of created dirs
3015
3016
3017 2000-05-16  Alexandre Oliva  <aoliva@cygnus.com>
3018
3019         * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
3020
3021 2000-05-15  Richard Henderson  <rth@cygnus.com>
3022
3023         * toplev.c (rest_of_compilation): Run full jump pass before
3024         find_basic_blocks of flow2.
3025
3026 2000-05-15  Richard Henderson  <rth@cygnus.com>
3027
3028         * jump.c: Fix typos and clarify commentary from last change.
3029         (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
3030         (safe_to_remove_jump_p): Remove.
3031         (condjump_label): Use pc_set.
3032
3033 2000-05-15  Richard Henderson  <rth@cygnus.com>
3034
3035         * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
3036         that get in the way after reload.
3037         (cond_exec_process_if_block): Skip a label heading THEN block.
3038
3039 2000-05-15  Richard Henderson  <rth@cygnus.com>
3040
3041         * varasm.c (output_constant_pool): Abort instead of converting
3042         (improperly) deleted labels to zero.
3043
3044 2000-05-16  Neil Booth  <NeilB@earthling.net>
3045
3046         * cpplex.c (parse_string2): Update comment.
3047         (cpp_lex_line): No special assertion treatment for '('.
3048         * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
3049         * cpplib.h (SYNTAX_ASSERT): Remove.
3050
3051 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3052
3053         * jump.c (condjump_p):  Mark as depreached.
3054         (any_condump_p): New.
3055         (any_uncondump_p): New.
3056         (pc_set): New.
3057         (safe_to_remove_jump_p): New.
3058         * rtl.h (any_condump_p, any_uncondjump_p, pc_set
3059         safe_to_remove_jump_p): Declare.
3060
3061 Mon May 15 21:07:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3062
3063         * calls.c: Re-install both patches reverted by last patch.
3064         (struct arg_data): New field tail_call_reg.
3065         (initialize_argument_information): Initialize tail_call_reg
3066         (load_register_parameters): New argument flags, use
3067         tail_call_reg when emiting tail call sequence.
3068         (expand_call): Update call of load_register_parameters;
3069         copy unadjusted_args_size to adjusted_args_size.
3070
3071 Mon May 15 19:01:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3072
3073         * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
3074         and bct_p parameters to flags.
3075         * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
3076         * rtl.h (loop_optimize): Update prototype.
3077         * toplev.c (rest_of_compilation): Update call of loop_optimize.
3078
3079 2000-05-15  Jakub Jelinek  <jakub@redhat.com>
3080
3081         * calls.c (expand_call): Move expand_start_target_temps call after
3082         start_sequence().
3083
3084 2000-05-15  Neil Booth  <NeilB@earthling.net>
3085
3086         * cpphash.c (trad_stringify, warn_trad_stringify,
3087         collect_params): Make some pointers pointers to const.
3088         * cpplex.c (auto_expand_name_space) Guaranteed to always
3089         expand by at least one character.
3090         (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
3091         (struct token_spelling): Use const U_CHAR * rather than PTR.
3092         (expand_name_space): Fix up token pointers if name space
3093         is moved when expanding.
3094         (INIT_NAME, cpp_scan_line, parse_name, parse_number,
3095         parse_string2, save_comment, spell_token, cpp_output_list):
3096         Update so the routines handle tokens with a direct pointer to
3097         their text, rather than an offset into the token's list's namebuf.
3098         (_cpp_lex_line): Rearrange for clarity.
3099
3100         * cpplib.c (_cpp_check_directive): Similarly.
3101         (do_define): Make SYM a pointer to const.
3102         * cpplib.h (struct cpp_name): Replace offset with direct pointer.
3103         (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
3104         (TOK_OFFSET): Delete.
3105         (TOK_NAME): Update.
3106
3107 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
3108
3109         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
3110         64-bit ABI.
3111
3112         * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
3113         into account.
3114         (logical_u_operand): Delete.
3115         (non_logical_cint_operand): Rewrite to take MODE into account.
3116         (non_logical_u_cint_operand): Delete.
3117         (boolean_operator): New function.
3118         (print_operand): Add new %q operand.
3119         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
3120         remove logical_u_operand and non_logical_u_cint_operand,
3121         update logical_operand and non_logical_cint_operand.
3122         * config/rs6000/rs6000.md: Rewrite the patterns for performing
3123         logical operations to use %q.
3124
3125         * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
3126         (movdi): Make similar to movsi.
3127         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
3128         is no such thing as a DImode CONST_DOUBLE.
3129         * config/rs6000/rs6000.c (output_toc): Likewise.
3130
3131         * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
3132         codes when old mnemonics are in use.  Print register names
3133         for cc registers when requested.
3134
3135         * optabs.c (expand_float): Don't allow mode widening that causes
3136         double rounding.
3137
3138         * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
3139         flags to their current names -maix64 and -maix32.
3140
3141 2000-05-14  Bruce Korb  <bkorb@gnu.org>
3142
3143         * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
3144         and/or after current text of file
3145         * fixinc/fixlib.c(must_malloc):
3146         * fixinc/fixlib.h(must_malloc): + reformatting
3147         * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
3148         with usages of ``c_fix = wrap;''
3149         Add several tests and use the ``c_fix = format'' fixer more.
3150         * fixinc/fixincl.x: regen
3151         * fixinc/check.diff: regen
3152         * fixinc/check.tpl: emit the associated header with the missing
3153         test message
3154
3155 Sun May 14 17:58:59 2000  Hans-Peter Nilsson  <hp@axis.com>
3156
3157         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
3158         variables $src and $dst.
3159
3160 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
3161
3162         * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
3163         (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
3164         (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
3165         (struct output_buffer: emitted_prefix_p, prefixing_rule): New
3166         fields.
3167         (set_message_prefixing_rule): Declare.
3168
3169         * diagnostic.c: (current_prefixing_rule): New variable.
3170         (set_message_prefixing_rule): Define.
3171         (output_set_prefix): Adjust buffer->emitted_prefix_p.
3172         (init_output_buffer): Adjust Initialization.
3173         (output_emit_prefix): Rewrite.  Take prefixing rules into account.
3174
3175 Sat May 13 11:05:47 2000  Philippe De Muyter  <phdm@macqel.be>
3176
3177         * ifcvt.c (if_convert): Do not free NULL.
3178
3179 2000-05-12  Nick Clifton  <nickc@cygnus.com>
3180
3181         * config/fr30/fr30.c (fr30_move_double): New function:  Emit code
3182         to move a double word value.
3183         (di_operand): New function: Return true if the operand is suitbale
3184         for a double word move operation.
3185         (nonimmediate_di_operand): New function: Return true if the
3186         operand is a DImode register or MEM.
3187
3188         * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
3189         nonimmediate_di_operand.
3190
3191         * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
3192         nonimmediate_di_operand.
3193
3194         * config/fr30/fr30.md (movdi): New pattern.  Required because
3195         other patterns generate DImode results.
3196         (movdi_insn): New pattern.
3197
3198 2000-05-12  Richard Henderson  <rth@cygnus.com>
3199
3200         * config/alpha/alpha.c (struct shadow_summary): Define
3201         bitfields as type unsigned int.
3202
3203 Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>
3204
3205         * config/avr/t-avr: Added definition of FLOAT while generates
3206         fp-bit.c
3207
3208         * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
3209         peepholes for tst+jump = sbrs/sbrc optimization.
3210
3211 Fry May 12 20:03:00 CEST 2000  Jan Hubicka  <jh@suse.cz>
3212
3213         * expr.c (emit_push_insn): Do not adjust stack pointer when
3214         preallocating.
3215
3216 Fri May 12 19:03:58 2000  Philippe De Muyter  <phdm@macqel.be>
3217
3218         * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
3219         * system.h (offsetof): ... to here.
3220
3221 2000-05-12  Richard Henderson  <rth@cygnus.com>
3222
3223         * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
3224         * final.c (final_end_function): Use app_disable.  Rearrange note
3225         handling into a switch.  Emit deleted labels.
3226         (output_asm_label): Generate label strings for deleted labels.
3227         * flow.c (tail_recursion_label_list): New.
3228         (find_basic_blocks_1): Set label_value_list directly.  Collect list
3229         of tail recursion labels from call_placeholders.  Don't add deleted
3230         labels to the label value list.
3231         (cleanup_cfg): Use free_EXPR_LIST_list.
3232         (flow_delete_insn_chain): Turn non-removable labels into notes.
3233         (flow_delete_block): Don't disable deleting the block because of
3234         a non-removable label.
3235         (tail_recursion_label_p): New.
3236         (merge_blocks_move_predecessor_nojumps): Don't disable the merge
3237         because of a label.
3238         (merge_blocks_move_successor_nojumps): Likewise.  Also move a
3239         jump table.
3240         (merge_blocks): Disable a merge because of tail recursion labels.
3241         * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
3242         Use a more accurate measure of not merging the join block.
3243         (find_if_block): Don't disable conversion because of a label.
3244         (find_if_case_1, find_if_case_2): Likewise.
3245         * jump.c (duplicate_loop_exit_test): Preserve the kind of list
3246         element when copying.
3247         (squeeze_notes): Also leave EH notes.
3248         (mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
3249         REG_LABEL notes.
3250         (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
3251         deleting a label.
3252         * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
3253         NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
3254         referring to a deleted label.  Convert tail handling to a switch.
3255         * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
3256         for NOTE_INSN_DELETED_LABEL.
3257         (NOTE): Fix commentary.
3258         * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
3259         (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
3260         (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
3261         (LABEL_NUSES, LABEL_REFS): Likewise.
3262         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
3263
3264 2000-05-12  Bruce Korb  <bkorb@gnu.org>
3265
3266         * fixinc/fixfixes.c(format_write): buglet & relaxed rules
3267         * fixinc/check.diff: updated
3268         * fixinc/inclhack.def: corrected & added some test_text-s
3269         * fixinc/genfixes: removed unneeded options to autogen invocation
3270         * fixinc/fixincl.tpl: Specified the output file
3271         * fixinc/fixfixes.c: visual appearance
3272         * fixinc/fixincl.x: regenerate
3273
3274 2000-05-12  Zack Weinberg <zack@wolery.cumb.org>
3275
3276         * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
3277         CTRL_defn_fix): Delete.
3278         (fix_char_macro_defines, fix_char_macro_uses): Rename to
3279         char_macro_def_fix and char_macro_use_fix, respectively.  Put
3280         them into the FIXUP_TABLE.  Get the string to search for from
3281         a c_fix_arg.
3282
3283         (format_write): New function.
3284         (format_fix): Use it.
3285
3286         (FIX_PROC_HEAD): Constify text parameter.
3287         (machine_name_fix): Constify all char *s.
3288         * fixtests.c (skip_quote): Remove double static.
3289
3290         * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
3291         ctrl_use_quotes): Update for new scheme.
3292         * fixincl.x: Regenerate.
3293
3294 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
3295
3296         * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
3297         DWARF2_DEBUG.
3298         (DWARF2_ASM_LINE_DEBUG_INFO): Define.
3299         (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
3300
3301 2000-05-11  Robert Lipe <robertlipe@usa.net>
3302
3303         * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
3304         * fixincl.x: Regenerate.
3305
3306 2000-05-11  Richard Henderson  <rth@cygnus.com>
3307
3308         * calls.c: Revert both 05-09 patches.
3309
3310 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
3311
3312         * config/mn10300/mn10300.c (print_operand): Print FP constants in
3313         hexadecimal.
3314         * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
3315         for FP values.
3316
3317         * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
3318         and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
3319
3320 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
3321
3322         * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
3323
3324 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
3325
3326         * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
3327
3328 Thu May 11 22:28:05 2000  Denis Chertykov  <denisc@overta.ru>
3329
3330         * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
3331         * config/avr/avr.c (jump_over_one_insn_p): New function.
3332         * config/avr/avr.md: New peepholes added. Output test and
3333         conditional jump to "sbrc" or "sbrs" command.
3334
3335 2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
3336
3337         * cppmain.c (main): Use IS_DIR_SEPARATOR.
3338
3339 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
3340
3341         * except.c (find_exception_handler_labels_1): New function.
3342         (find_exception_handler_labels): Split into two functions, dive
3343         into CALL_PLACEHOLDERs when looking for exception handler labels.
3344
3345 2000-05-11 Stan Cox <scox@cygnus.com>
3346
3347         * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
3348         * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
3349         * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
3350
3351 2000-05-11  Bruce Korb  <bkorb@gnu.org>
3352
3353         * fixinc/fixfixes.c (double_slash_fix):  obsolete
3354         (else_endif_label_fix): obsolete
3355         (format_fix):  new, unused as yet
3356         (main): obsolete
3357         * fixinc/fixlib.h: added fix description struct for use by format_fix
3358         * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
3359         * fixinc/Makefile.in:  compile fixfixes.c and fixtests.c as separate
3360         modules.  Removed the vestiges of the script version.
3361         Added support for "make check".
3362         * fixinc/check.diff: base diff file (needs work!!)
3363         * fixinc/check.tpl: quiet the fixup output
3364         * fixinc/fixtests.c (main): obsolete
3365         * fixinc/fixincl.sh:  don't bother copying fixincl to ..
3366         * fixinc/fixincl.tpl:  provide for arguments to c_fix routines
3367
3368 Thu May 11 11:57:02 MET DST 2000  Jan Hubicka <jh@suse.cz>
3369
3370         * toplev.c (rest_of_compilation): Remove dead code after
3371         combine.
3372
3373 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
3374
3375         * cpphash.c (collect_funlike_expansion): Make "# is not
3376         followed by a macro argument name" a pedwarn, not an error.
3377         Preserve the # in the output.  Suppress the warning if lang_asm.
3378
3379 Thu May 11 01:19:31 2000  Jeffrey A Law  (law@cygnus.com)
3380
3381         * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
3382         * configure: Rebuilt.
3383
3384 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
3385
3386         * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
3387
3388 2000-05-10  Kazu Hirata  <kazu@hxi.com>
3389
3390         * combine.c (try_combine): Fix a typo.
3391
3392 Wed May 10 21:31:44 2000  Jim Wilson  <wilson@cygnus.com>
3393
3394         * config/ia64/ia64.md (insv): Add comment.
3395
3396 2000-05-10  Richard Henderson  <rth@cygnus.com>
3397
3398         * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
3399         * mklibgcc.in: Rewrite to not use functions.  Don't shortcut
3400         dependancies on FPBIT and DPBIT.
3401
3402 2000-05-10  Nick Clifton  <nickc@redhat.com>
3403
3404         * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
3405         when optimising for size.
3406         (mark_used_regs:) Ditto.
3407         (try_pre_increment_1): Ditto.
3408
3409 2000-05-10  Zack Weinberg  <zack@wolery.cumb.org>
3410
3411         * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
3412         Make error message friendlier.
3413
3414         * cpphash.h (struct hashnode): Use struct hack for name
3415         member.
3416         * cpphash.c (struct hashdummy): New.
3417         (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
3418         (make_HASHNODE): No need to set ->name pointer.  Correct
3419         setting of p.
3420         (cpp_lookup): Make 'dummy' a struct hashdummy.  Tidy up a bit.
3421
3422 2000-05-10  Richard Henderson  <rth@cygnus.com>
3423
3424         * flow.c (find_basic_blocks_1): Remove any spare bb_note
3425         after completion.
3426
3427 2000-05-10  Bruce Korb  <bkorb@gnu.org>
3428
3429         * fixinc/gnu-regex.c:  reg_syntax_t re_syntax_options must be static
3430
3431 2000-05-10  Eric Schweitz  <schweitz@nortelnetworks.com>
3432
3433         * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
3434         after we enter .debug.
3435
3436 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
3437
3438         * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
3439         abstract instance of a nested inline function.
3440
3441         * stor-layout.c (finish_record_layout): finalize_type_size
3442         before laying out the pending_statics.
3443
3444 Wed 10 May 09:36:47 2000  Neil Booth  <NeilB@earthling.net>
3445
3446         * cpplex.c (spell_token): New function.
3447         (spell_string, spell_comment, spell_name): fold into
3448         spell_token.
3449         (I, S): Add macros.
3450         (E, H): Remove macros.
3451         (save_comment): Save comment opening characters too.
3452         (_cpp_lex_file): Update to use spell_token.  Tidy up comment
3453         handling.
3454         * cpplib.h (I, S): Add macros.
3455         (E, H): Remove macros.
3456         (TTYPE_TABLE): Update entries for new speller.
3457         (SYNTAX_ASSERT): Remove.
3458
3459 Wed 10 May 09:08:30 2000  Neil Booth  <NeilB@earthling.net>
3460
3461         * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
3462         when removing escaped newlines.  Reverse sense of test for
3463         escaped newline.
3464
3465 2000-05-09  Richard Henderson  <rth@cygnus.com>
3466
3467         * flow.c (find_basic_blocks_1): Do not delete the first
3468         bb_note we run across.
3469         (create_basic_block): Use reorder_insns to move an existing
3470         bb_note to the correct place.
3471
3472 2000-05-09  Richard Henderson  <rth@cygnus.com>
3473
3474         * calls.c (expand_call): Increment currently_expanding_call
3475         before calling optimize_tail_recursion.
3476
3477 Tue May  9 18:54:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3478
3479         * reload1.c (reload_combine): Fix errors in last change.
3480
3481 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
3482
3483         * gcc.c (used_arg): Skip over a semicolon at the end of the
3484         split-up loop; don't break out of it.
3485
3486         * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
3487         (tree.o): Depend on output.h.
3488
3489         * c-decl.c (pending_invalid_xref_file,
3490         current_function_prototype_file): Constify.
3491         (pushdecl): Constify a local char *.
3492         (define_label): Constify filename parameter.
3493         * c-lex.c (init_parse): Constify parameter and return value.
3494         * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
3495         * c-tree.h: Update prototypes.
3496         * c-parse.in: Constify filename member of %union, and if_stmt_file.
3497         * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
3498         objc/objc-parse.c: Regenerate.
3499
3500         * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
3501         * dwarfout.h: Update prototypes.
3502         * expr.c (expand_expr): Constify a local char *.
3503         * flags.h: Constify main_input_filename.
3504         * function.c (expand_function_end): Constify filename parameter.
3505         * genrecog.c (make_insn_sequence): Use a character array for
3506         c_test_pos.
3507         (main): Remove unused variables.
3508         * input.h: Constify input_filename, main_input_filename, and
3509         file_stack.name.  Update prototypes.
3510         * output.h: Declare first_global_object_name and
3511         weak_global_object_name here, as const char *.
3512         * stmt.c (expand_asm_operands): Constify filename parameter.
3513         * toplev.c (compile_file, push_srcloc, debug_start_source_file):
3514         Constify filename parameter.
3515         (input_filename, main_input_filename): Constify.
3516         * toplev.h: Update prototypes.
3517         * tree.c: Include output.h.  Don't declare
3518         first_global_object_name or weak_global_object_name.  Clean up string
3519         bashing in get_file_function_name_long.
3520         * tree.h (struct tree_decl): Constify filename member.
3521         (input_filename): Constify.
3522         Update prototypes.
3523         * varasm.c (first_global_object_name, weak_global_object_name):
3524         Constify.
3525         (assemble_start_function, assemble_variable): Clean up string bashing.
3526
3527         * gcc.c: Constify all spec-related strings initialized,
3528         transitively, from string constants.  Constify all strings
3529         and string variables related to multilibs.
3530         (set_spec, read_specs): Cast argument to free to PTR.
3531         (used_arg): Do not modify multilib_matches.  Use strncmp plus
3532         length comparison to compare multilib switches.
3533         * genmultilib: Constify everything declared in multilib.h.
3534
3535 Tue May  9 22:28:03 2000  Denis Chertykov  <denisc@overta.ru>
3536
3537         * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
3538         as deleted.
3539
3540 Tue May  9 20:52:43 2000  Denis Chertykov  <denisc@overta.ru>
3541
3542         * config/avr/avr-protos.h (extra_constraint): change a type of
3543         second argument from char to int to avoid warnings.
3544         (asm_output_byte): Likewise.
3545
3546         * config/avr/avr.c (MAX_LD_OFFSET) New macro.
3547         (initial_elimination_offset): Handle elimination from
3548         FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
3549         (legitimate_address_p): Use MAX_LD_OFFSET.
3550         (legitimize_address): Likewise.
3551         (out_movqi_r_mr): Likewise.
3552         (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
3553         (out_movsi_r_mr): Use MAX_LD_OFFSET.
3554         (out_movsi_mr_r): Likewise.
3555         (out_movqi_mr_r): Likewise.
3556         (out_movhi_mr_r): Likewise.
3557         (notice_update_cc): Correct CC for the ashrqi3 with the shift
3558         count as CONST_INT != 6.
3559         (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
3560         shift count is a CONSTANT_P, but not a CONST_INT.
3561         (ashlhi3_out): Coding style modifications.
3562         (ashlsi3_out): Likewise.
3563         (ashrhi3_out): Likewise.
3564         (ashrsi3_out): Likewise.
3565         (lshrhi3_out): Likewise.
3566         (lshrsi3_out): Likewise.
3567         (ashrqi3_out): Generate shift for any known constant count without
3568         scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
3569         but not a CONST_INT.
3570         (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
3571         shift count is a CONSTANT_P, but not a CONST_INT.
3572         (extra_constraint): change a type of
3573         second argument from char to int to avoid warnings.
3574         (asm_output_byte): Likewise.
3575         (asm_file_end): Output size generated commands count as a hex
3576         number too.
3577
3578         * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
3579
3580         * config/avr/avr.md (addhi3): Fragment commented by &&0 is
3581         removed.
3582         (ashlqi3): Values of "length" attribute changed. Shift count
3583         uses constraints 'n' instead of 'i'.
3584         (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
3585         shifts without clobber register.
3586         (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
3587         (call_insn): Correct test for which_alternative == 1 (was 0).
3588         (call_value_insn): Likewise.
3589
3590         * config/avr/t-avr: Remove definition of FLOAT while generates
3591         fp-bit.c
3592
3593 2000-05-09  Bruce Korb  <bkorb@gnu.org>
3594
3595         * fixinc/check.tpl:  Template for checking fixes
3596         * fixinc/inclhack.def:  Added 'test_text' for many fixes
3597         disable hpux8_bogus_inlines on SCO
3598         * fixinc/fixinc.sco:  Oh, yes, we don't need this any more.
3599
3600 Tue May  9 16:30:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3601
3602         * calls.c (expand_call): Reorganize somewhat in order
3603         to avoid unnecesary recalculation inside loop and make
3604         tail call failure code cleaner.
3605
3606 Tue May  9 06:30:20 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3607
3608         * alias.c (nonlocal_reference_p): Minor reformatting.
3609         * reload.c (find_equiv_reg): Simplify logic for
3610         CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
3611         some some reformatting.
3612         * reload1.c (reload_combine): Don't assume everything in
3613         CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
3614
3615 2000-05-08  Richard Henderson  <rth@cygnus.com>
3616
3617         * final.c (current_insn_predicate): New.
3618         (final_scan_insn): Set it.
3619         * output.h (current_insn_predicate): Declare.
3620
3621         * ifcvt.c (cond_exec_process_insns): New argument prob_val.
3622         Attach it to call insns.
3623         (cond_exec_process_if_block): Track probability for true and
3624         false branches.
3625         (dead_or_predicable): Likewise.
3626
3627         * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
3628         (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
3629         (PROB_VERY_LIKELY, PROB_ALWAYS): New.
3630         (estimate_probability, expected_value_to_br_prob): Use them.
3631
3632         * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
3633         * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
3634         (ia64_expand_prediction): New.
3635         (emit_insn_group_barriers): Don't look at notes.  Emit barriers
3636         as needed after calls.
3637         (ia64_epilogue_uses): Mark b0 used.
3638         * config/ia64/ia64.md (beq_true, beq_false): Remove.
3639         (bne_true, bne_false): Remove.
3640         (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
3641         (br_true, br_false): New.  Use predicate_operator and
3642         ia64_expand_prediction.
3643         (return_true, return_false): Likewise.
3644         (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
3645         (call_internal1, call_value_internal): Likewise.
3646         (call_value_internal1, call_multiple_values_internal1): Likewise.
3647
3648         * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
3649
3650         * config/ia64/ia64.md (extendsfdf2): Split only after reload.
3651
3652 2000-05-08  Richard Henderson  <rth@cygnus.com>
3653
3654         * rtlanal.c (may_trap_p): Consider old-style and volatile
3655         asms to trap.
3656
3657 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
3658
3659         * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
3660
3661 2000-05-08  Richard Henderson  <rth@cygnus.com>
3662
3663         * config/ia64/ia64.h (predicate_operator): Declare.
3664
3665         * config/ia64/ia64.md (extendsfdf2): Split the nop case out
3666         of existance.
3667
3668         * gensupport.c (process_rtx): Copy and post-process each member
3669         of the define_insn rtvec individually.
3670
3671 Mon  8 May 22:17:35 2000  Neil Booth  <NeilB@earthling.net>
3672
3673         * cpplex.c (spell_token): New function.
3674         (TOKEN_LEN): Add 1 for whitespace.
3675         (_cpp_lex_file): Update to use spell_token.
3676         * cpplib.h (E): Remove.
3677         (TTYPE_TABLE): Update CPP_VSPACE entry.
3678
3679 2000-05-08  Richard Henderson  <rth@cygnus.com>
3680
3681         * flow.c (init_propagate_block_info): Watch out for conditional
3682         branch to next instruction, and thus one outgoing edge.
3683
3684         * config/ia64/ia64.c (ia64_encode_section_info): Exit early
3685         for global register variables; don't special case __[CD]TOR_LIST__;
3686         mind ggc_p for string allocation.
3687
3688 2000-05-08  Nick Clifton  <nickc@cygnus.com>
3689
3690         * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
3691
3692 2000-05-08  Bruce Korb  <bkorb@gnu.org>
3693
3694         * fixinc/mkfixinc.sh:  fixinc.sco is no longer used
3695         i?86-*-msdosdjgpp* no longer uses fixincludes
3696         * fixinc/genfixes:  inclhack.sh and fixincl.sh are no longer generated
3697         * fixinc/inclhack.sh:  deleted
3698         * fixinc/hackshell.tpl:  deleted
3699         * fixinc/inclhack.tpl:  deleted
3700         * fixinc/Makefile.in:  Remove dependencies on above
3701         * fixinc/fixincl.sh:  "DO NOT EDIT" text modified
3702
3703 2000-05-08  Andreas Jaeger  <aj@suse.de>
3704
3705         * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
3706         support.
3707
3708 2000-05-07  Zack Weinberg  <zack@wolery.cumb.org>
3709
3710         * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
3711         substitutions.
3712
3713 Sun  7 May 08:43:53 2000  Neil Booth  <NeilB@earthling.net>
3714
3715         * cpplex.c: Move new lexer definitions and prototypes
3716         to top.  Conditional include these and the code if
3717         NEW_LEXER is defined.  Rename functions whose names
3718         clash if this code included.
3719
3720 Sun May  7 00:54:57 EDT 2000  John Wehle  (john@feith.com)
3721
3722         * rtl.def (COND_EXEC): Clarify.
3723
3724         * i386.md (extendsidi2): Clobber (reg:CC 17) in the
3725         same fashion as zero_extendsidi2.
3726
3727 2000-05-06  Richard Henderson  <rth@cygnus.com>
3728
3729         * config/ia64/ia64.c (predicate_operator): New.
3730         (ia64_print_operand): Handle 'J'.
3731         (rtx_needs_barrier): Handle COND_EXEC.
3732         * config/ia64/ia64.h (BRANCH_COST): Define.
3733         (PREDICATE_CODES): Update.
3734         * config/ia64/ia64.md: Docuement used unspec values.
3735         (attr predicable): New.
3736         (movxf, movxf_internal): New.
3737         (extendsfdf2): Don't comment out nop.
3738         (floatdidf2): Remove.
3739         (truncxfsf2, truncxfdf2, floatdixf2): New.
3740         (abssi2, absdi2): Put the neg in the "true" slot.
3741         (conditional branch instructions): Mark not predicable.
3742         (cmov*_internal): Use predicate_operator.  Split to cond_exec.
3743         (abs*_internal): Likewise.
3744         (alloc, set_bsp): Mark not predicable.
3745         (barrier, insn_group_barrier, flush_cache): Likewise.
3746         (define_cond_exec): New.
3747
3748 2000-05-06  Richard Henderson  <rth@cygnus.com>
3749
3750         * c-decl.c: Include "tm_p.h".
3751
3752         * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
3753         (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
3754         (ia64_expand_op_and_fetch): Declare.
3755         * config/ia64/ia64.c: Include "toplev.h".  Kill trailing whitespace.
3756         (setjmp_operand): Constify variables for XSTR.
3757         (ia64_encode_section_info): Likewise.
3758         (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
3759         values to int.
3760         (ia64_asm_output_external): Constify name.
3761         (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
3762         (process_for_unwind_directive): Provide switch default.
3763         (ia64_expand_compare_and_swap): Remove unused variables.
3764         (ia64_expand_builtin): Likewise.
3765         * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
3766         for printing.
3767
3768         * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
3769         (symbolic_operand, function_operand, setjmp_operand): Likewise.
3770         (shift_count_operand, shift_32bit_count_operand): Likewise.
3771         (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
3772         (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
3773         (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
3774         (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
3775         (ia64_expand_builtin): Likewise.
3776         (call_multiple_values_operation): Make dest_regno unsigned.
3777
3778 2000-05-06  Richard Henderson  <rth@cygnus.com>
3779
3780         * rtl.def (DEFINE_COND_EXEC): New.
3781         * md.texi: Document it.
3782
3783         * gensupport.c (input_file): Remove.
3784         (struct queue_elem): Add lineno.
3785         (rtx_ready_queue): Remove.
3786         (errors): New.
3787         (predicable_default): New.
3788         (predicable_true, predicable_false): New.
3789         (define_attr_queue, define_attr_tail): New.
3790         (define_insn_queue, define_insn_tail): New.
3791         (define_cond_exec_queue, define_cond_exec_tail): New.
3792         (other_queue, other_tail): New.
3793         (queue_pattern): New.
3794         (process_rtx): Add patterns to the appropriate queues.
3795         (is_predicable, identify_predicable_attribute): New.
3796         (n_alternatives, collect_insn_data): New.
3797         (alter_predicate_for_insn, alter_test_for_insn): New.
3798         (shift_output_template, alter_output_for_insn): New.
3799         (process_one_cond_exec, process_define_cond_exec): New.
3800         (init_md_reader): Read the entire file.  Process define_cond_exec.
3801         (read_md_rtx): Return elements from the queues.
3802
3803 2000-05-06  Richard Henderson  <rth@cygnus.com>
3804
3805         * flow.c (mark_set_1): Don't update conditional life info
3806         if the register is not_dead.
3807
3808 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
3809
3810         * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
3811         (mostlyclean): Also delete fixincl, fixinc.sh, and
3812         specs.ready, and make clean in the fixinc subdir.
3813
3814 2000-05-06  Richard Henderson  <rth@cygnus.com>
3815
3816         * Makefile.in (gensupport.o): Compile for the host.
3817         (host-prefix gensuuprt.o): Remove.
3818         (genflags.o): Depend on gensupport.h and OBSTACK_H.
3819         (genattrtab.o): Likewise.
3820         (gencodes.o): Depend on gensupport.h.
3821         (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
3822         (genpeep.o, genattr.o, genoutput.o): Likewise.
3823
3824         * gensupport.c (obstack, rtl_obstack): New.
3825         (init_md_reader): Initialize rtl_obstack.
3826         * gensupport.h (rtl_obstack): Declare.
3827         (message_with_line): Declare.
3828
3829         * genattr.c: Remove all traces of obstack manipulation.
3830         * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
3831         * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
3832
3833         * genattrtab.c (obstack, rtl_obstack): Remove.
3834         (main): Don't init rtl_obstack.
3835         * genflags.c: Likewise.
3836
3837         * genrecog.c (message_with_line): Move ...
3838         * gensupport.c: ... here.
3839
3840 2000-05-06  Richard Henderson  <rth@cygnus.com>
3841
3842         * c-typeck.c (build_c_cast): Remove dead code.
3843
3844 2000-05-06  Richard Henderson  <rth@cygnus.com>
3845
3846         * flow.c (split_edge): Don't allocate global_live_at_start for
3847         the new block unless the old blocks had them as well.
3848
3849         * flow.c (mark_set_1): Respect not_dead when updating reg_live.
3850
3851         * ifcvt.c (noce_process_if_block): Don't use an insn_b from
3852         test_bb if a or b uses x.
3853
3854 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
3855
3856         * cpphash.h: Remove conditional #define of __extension__.
3857         * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
3858         RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
3859         (ENABLE_RTL_CHECKING only).
3860         * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
3861         CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
3862         (ENABLE_TREE_CHECKING only).
3863         * varray.h: Add __extension__ to VARRAY_CHECK macro
3864         (ENABLE_CHECKING only).
3865
3866 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3867
3868         Use new tail-calling mechanism on ARM.
3869         * arm.md (sibcall, sibcall_value): New expands.
3870         (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
3871         (tailcalling peepholes): Delete.
3872         (push_multi): Simplify.
3873         * arm.c (lr_save_eliminated): Delete definition.
3874         (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
3875         (output_return_instruction): Remove checks on lr_save_eliminated.
3876         (output_arm_prologue): Remove old tail-calling code.
3877         (arm_output_epilogue): New parameter, really_return.  All callers
3878         changed.  Handle tail-calling epilogues.
3879         * arm.h (lr_save_eliminated): Delete declaration.
3880         (frame_pointer_needed): Delete declaration.
3881         * arm-protos.h (arm_output_epilogue): Adjust prototype.
3882
3883         * arm.md (is_thumb): Examine symbol thumb_code, not expression
3884         TARGET_ARM.
3885         * arm.c (thumb_code): Define it.
3886         (arm_override_options): Set it.
3887         * arm.h (thumb_code): Declare it.
3888
3889 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3890
3891         * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
3892
3893 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
3894
3895         * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
3896         bogus clobber to insns.
3897         (load_multiple_operation, store_mulitple_operation): Don't check
3898         for it.
3899         * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
3900
3901         * arm.md (and_scc, ior_scc): Add missing mode.
3902
3903         * arm.md (call_value_symbol): Remove predicate from op2.
3904
3905         * arm.h (SPECIAL_MODE_PREDICATES): Define.
3906
3907 Sat May  6 06:25:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3908
3909         * expr.c (get_subtarget): New function.
3910         (force_operand, expand_expr, do_store_flag): Use it.
3911
3912         * toplev.c (compile_file): Don't take strlen of NAME if null.
3913
3914 2000-05-06  David Edelsohn  <edelsohn@gnu.org>
3915
3916         * xcoffout.c (xcoff_current_include_file,
3917         xcoff_current_function_file, xcoff_lastfile): Constify char *.
3918         (xcoffout_source_file, xcoffout_source_line): Make filename 'const
3919         char *'.
3920         (xcoffout_declare_function): Make name 'const char *'.
3921         (xcoffout_end_epilogue): Make fname 'const char *'
3922         * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
3923         xcoffout_declare_function, xcoffout_source_line): Match above.
3924
3925         * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
3926         -maix64 is error.
3927         * rs6000.c (print_operand): Fix lossage typo.
3928         (output_cbranch): Remove "cr" decoration for now.
3929         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
3930
3931 Sat May  6 06:55:32 2000  Denis Chertykov  <denisc@overta.ru>
3932
3933         * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
3934         constant count.
3935
3936 2000-05-05  Bruce Korb  <bkorb@gnu.org>
3937
3938         * fixinc/genfixes: Improve the matching for make target names
3939
3940 2000-05-05  Catherine Moore  <clm@cygnus.com>
3941
3942         * c-common.c (decl_attributes):  For TYPE_DECLs attach the
3943         attribute to the decl.
3944         * c-decl.c (pushdecl): Propagate the USED attribute to the
3945         type copy.
3946
3947 2000-05-05  Richard Henderson  <rth@cygnus.com>
3948
3949         * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
3950         same way emit_group_load does.
3951
3952 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
3953
3954         * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
3955
3956         * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
3957         (main): Likewise.
3958
3959 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
3960
3961         * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
3962
3963 Fri May  5 10:29:21 2000  Marc Espie <espie@cvs.openbsd.org>
3964
3965         * config/openbsd.h (LINK_SPEC): pass correct flags to ld
3966         to support -shared, on platforms with dynamic libraries.
3967
3968 Fri May  5 10:27:06 2000  Philippe De Muyter  <phdm@macqel.be>
3969
3970         * system.h (S_ISBLK): Provide fallback definition.
3971
3972 2000-05-05  Geoff Berry  <geoffb@bops.com>
3973
3974         * extend.texi (Extended Asm): Document inability to give asm
3975         statements access to condition codes.
3976
3977 2000-05-05  Marek Michalkiewicz  <marekm@linux.org.pl>
3978
3979         * varasm.c (asm_emit_uninitialised): Use 0, not NULL
3980         as arg 2 of UNIQUE_SECTION.
3981
3982 Fri May  5 10:11:41 2000  Jeffrey A Law  (law@cygnus.com)
3983
3984         * predict.c: Remove May 4 change.
3985         * bb-reorder.c (make_reorder_chain): Do not perform block movement
3986         if we have predicted the branch at 50-50 probability.
3987
3988 2000-05-05  Richard Henderson  <rth@cygnus.com>
3989
3990         * flow.c (init_propagate_block_info): Fix merge error
3991         in HAVE_conditional_execution code.
3992
3993 Fri May  5 07:43:50 2000  Denis Chertykov  <denisc@overta.ru>
3994
3995         * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
3996         shift cycle for unknown shift count. Also generates dec + brpl.
3997         (ashlqi3_out): Don't generate dec + brpl which now generates by
3998         `out_shift_with_cnt'.
3999         (ashlhi3_out): Likewise.
4000         (ashlsi3_out): Likewise.
4001         (ashrqi3_out): Likewise.
4002         (ashrhi3_out): Likewise.
4003         (ashrsi3_out): Likewise.
4004         (lshrqi3_out): Likewise.
4005         (lshrhi3_out): Likewise.
4006         (lshrsi3_out): Likewise.
4007
4008 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
4009
4010         * gcc.c (free_split_directories): Correct typo in explanation
4011         of make_relative_prefix.
4012
4013 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
4014
4015         * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
4016         comparison codes to branch_comparison_operator.
4017
4018 2000-05-04  Richard Henderson  <rth@cygnus.com>
4019
4020         * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
4021
4022 2000-05-04  Richard Henderson  <rth@cygnus.com>
4023
4024         * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
4025         (DPBIT_FUNCS): Remove _sf_to_usi.
4026         (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
4027
4028         * ifcvt.c (noce_process_if_block): Fail if A or B modified
4029         between condition and jump.
4030
4031         * libgcc2.c (near eh_context_specific): Comment #endif string.
4032         * longlong.h: Don't use strings with embedded newlines.
4033
4034 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
4035
4036         * config/rs6000/rs6000-protos.h: Add output_cbranch.
4037         * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
4038         (print_operand): Delete %t and %T codes.
4039         (output_cbranch): New function.  Support branch prediction.
4040         * config/rs6000/rs6000.md: Use output_cbranch for
4041         conditional branches and returns.
4042
4043 2000-05-04  Jason Merrill  <jason@casey.cygnus.com>
4044
4045         * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
4046         * stor-layout.c (place_field): Likewise.
4047         * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
4048         * expr.c (store_expr): Make align unsigned.
4049         * explow.c (plus_constant_wide): Make low words unsigned.
4050         * expmed.c (choose_multiplier): Likewise.
4051         * fold-const.c (fold):  Likewise.
4052         * tree.h (build_int_2): Likewise.
4053         * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
4054         * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
4055         (init_emit): Change cast to unsigned char*.
4056         * varasm.c (compare_constant_1): Add cast to char*.
4057         * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
4058         * reload1.c (reload): Likewise.
4059
4060         * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
4061
4062 Thu May  4 14:37:23 2000  Jeffrey A Law  (law@cygnus.com)
4063
4064         * predict.c (estimate_probability): If no prediction was found, then
4065         predict the successor that is the next physical block (if such a
4066         successor exists).
4067
4068 2000-05-04  Richard Henderson  <rth@cygnus.com>
4069
4070         * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
4071
4072 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4073
4074         * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
4075
4076 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
4077
4078         * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
4079         attribute macros from here ...
4080         (CPP_SPEC): to here.
4081         * i386/mingw32.h (CPP_PREDEFINES): Likewise.
4082         (CPP_SPEC): Likewise.
4083         * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
4084
4085         * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
4086         (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
4087
4088 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4089
4090         * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
4091
4092         * diagnostic (vbuild_message_string, build_message_string,
4093         build_location_prefix, output_get_prefix, init_output_buffer,
4094         output_notice, vline_wrapper_message_with_location,
4095         v_message_with_decl, default_print_error_function): De-constify.
4096         (set_real_maximum_length): Prototype.
4097
4098         * diagnostic.h (struct output_buffer, init_output_buffer,
4099         output_get_prefix, output_set_prefix): De-constify.
4100
4101         * function.c (init_function_start): Constify.
4102
4103         * gensupport.c (remove_constraints, process_rtx): Prototype.
4104
4105         * gthr-posix.h: Indent uses of #pragma.
4106
4107         * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
4108         Prototype.
4109
4110         * predict.c (find_expected_value): Delete prototype.
4111         (expected_value_to_br_prob): Initialize variable `ev_reg'.
4112
4113         * sbitmap.h (debug_sbitmap): Prototype.
4114
4115         * ssa.c (compute_coalesced_reg_partition): Prototype.
4116
4117         * stor-layout.c (debug_rli): Prototype.
4118
4119         * tree.h (round_down): Prototype.
4120         (init_function_start): Constify.
4121
4122 2000-05-04  Zack Weinberg  <zack@wolery.cumb.org>
4123
4124         * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
4125         (overly conservative).  Change extern inline wrappers to
4126         static inline, define them always, use PARAMS properly.
4127         * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
4128         whitespace warnings for \f and \v at the beginning of a line.
4129
4130 Thu May  4 10:03:50 2000  Jeffrey A Law  (law@cygnus.com)
4131
4132         * haifa-sched.c (schedule_insns): Free the flow edge list when it
4133         is no longer needed
4134
4135 2000-05-04  Bruce Korb  <bkorb@gnu.org>
4136
4137         * fixincl/inclhack.def: added broken_cabs -
4138         Remove `extern double cabs' declarations from math.h
4139         * fixincl/inclhack.sh: regen
4140         * fixincl/fixincl.x: regen
4141         * fixincl/fixincl.c: Remove BOGOSITY code
4142         * fixincl/mkfixinc.sh: Remove code for installing "shell" version
4143
4144 Thu May  4 09:45:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4145
4146         * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
4147         MEM_ALIAS_SET.
4148         * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
4149         when calling MEM_COPY_ATTRIBUTES.
4150         * emit-rtl.c (operand_subword, change_address): Likewise.
4151         * explow.c (stabilize): Likewise.
4152         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
4153         * integrate.c (copy_rtx_and_substitute): Likewise.
4154         * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
4155         when calling MEM_COPY_ATTRIBUTES.
4156         (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
4157         Likewise.
4158         * cse.c (gen_lowpart_if_possible): Likewise.
4159         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
4160         * optabs.c (gen_move_insn): Likewise.
4161         * recog.c (validate_replace_rtx_1): Likewise.
4162         * simplify-rtx.c (add_mem_for_addr): Likewise.
4163         * stmt.c (expand_anon_union_decl): Likewise.
4164         * config/arm/arm.md: Likewise.
4165         * config/h8300/h7300.c (fix_bit_operand): Likewise.
4166         * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
4167         (block_move_no_loop, block_move_sequence): Likewise.
4168         * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
4169         * config/alpha/alpha.c (get_aligned_mem): Likewise.
4170         Clear MEM_ALIAS_SET.
4171         * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
4172         MEM_COPY_ATTRIBUTES.
4173
4174 2000-05-03  Robert Lipe <robertlipe@usa.net>
4175
4176         * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
4177         to suppress libgcc1.
4178         (i[34567]86-*-sco3.2v5*) Likewise.
4179         (i[34567]86-*-sco3.2v4*) Likewise.
4180         (i[34567]86-*-sco) Likewise.
4181         (i[34567]86-*-solaris2) Likewise.
4182         (i[34567]86-*-sysv5*) Likewise.
4183         (i[34567]86-*-sysv4*) Likewise.
4184         (i[34567]86-*-udk*) Likewise.
4185         (i[34567]86-*-sysv*) Likewise.
4186
4187 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
4188
4189         * cpphash.h (U): New define, to correct type of string constants.
4190         (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
4191         routines, to do casts when passing unsigned strings to libc.
4192         * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
4193
4194         * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
4195         * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
4196         * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
4197         * cpplex.c (parse_ifdef, parse_include, validate_else): Make
4198         second argument an U_CHAR *.
4199
4200         * cppinit.c (builtin_array): Make name and value U_CHAR *, add
4201         length field, clean up initializer.
4202         (ISTABLE): Add __extension__ to designated-
4203         initializers version.
4204         * cpplex.c (CHARTAB): Likewise.
4205
4206         * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
4207         case so the file won't be empty.
4208
4209 Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>
4210
4211         * bb-reorder.c (struct reorder_block_def): Member succ removed.
4212         (REORDER_BLOCK_SUCC): Removed.
4213         (enum reorder_skip_type): Removed.
4214         (skip_insns_between_block): Renamed to skip_insns_after_block.
4215         Removed second argument. Removed dead code and cleaned up.
4216         (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
4217         (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
4218         second parameter to skip_insns_after_block.
4219
4220 Wed May  3 13:29:54 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4221
4222         * tree.c (staticp, case LABEL_DECL): New case.
4223
4224 2000-05-03  Richard Henderson  <rth@cygnus.com>
4225
4226         * Makefile.in (start.encap): Do not depend on LIBGCC1.
4227
4228         * mklibgcc1.in: Fix typo last change.
4229
4230 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
4231
4232         * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
4233         (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
4234         (GCC_CFLAGS): Use it.
4235         (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
4236         * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
4237         objc/Make-lang.in: Use it.
4238
4239 2000-05-03  Jason R Thorpe  <thorpej@zembu.com>
4240
4241         * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
4242
4243 2000-05-03  Richard Henderson  <rth@cygnus.com>
4244
4245         * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
4246         LIBGCC1 empty with libgcc1.null.
4247
4248 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
4249
4250         * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
4251         change.
4252
4253 2000-05-03  Greg McGary  <gkm@gnu.org>
4254
4255         * tree.h (tree_common): Add bounded_flag member.  Remove
4256         inaccurate comment about number of remaining bits.
4257         (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
4258         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
4259         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
4260         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
4261         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
4262         (TYPE_QUAL_BOUNDED): New constant.
4263         (TYPE_QUALS): Handle bounded qualifier.
4264         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
4265         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
4266         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
4267         TYPE_AMBIENT_BOUNDEDNESS): New macros.
4268         (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
4269         (tree_type): Add pointer_depth member.  Remove
4270         inaccurate comment about number of remaining bits.
4271         (DECL_POINTER_DEPTH): Add macro.
4272         (tree_decl): Add pointer_depth member.
4273
4274 Wed May  3 22:52:53 2000  Denis Chertykov  <denisc@overta.ru>
4275
4276         * config/avr/avr-protos.h (test_hard_reg_class): Declared.
4277         * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
4278         (lshrhi3_out): Likewise.
4279         (ashrsi3_out): bugfix in shift by 8.
4280         (test_hard_reg_class): New function.
4281         * config/avr/avr.md: Bugfix inside conditions in peepholes.
4282         (ashlhi3): removed define_expand of this pattern.
4283         (*ashlhi3_insn): renamed to ashlhi3.
4284         (ashlsi3): removed define_expand of this pattern.
4285         (*ashlsi3_insn): renamed to ashlsi3.
4286         (ashrqi3): removed define_expand of this pattern.
4287         (*ashrqi3_insn): renamed to ashrqi3.
4288         (ashrhi3): removed define_expand of this pattern.
4289         (*ashrhi3_insn): renamed to ashrhi3.
4290         (ashrsi3): removed define_expand of this pattern.
4291         (*ashrsi3_insn): renamed to ashrsi3.
4292         (lshrhi3): removed define_expand of this pattern.
4293         (*lshrhi3_insn): renamed to lshrhi3.
4294         (lshrsi3): removed define_expand of this pattern.
4295         (*lshrsi3_insn): renamed to lshrsi3.
4296
4297 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
4298
4299         * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
4300         inclusion of "system.h".
4301
4302 Wed May  3 11:43:53 2000  Jim Wilson  <wilson@cygnus.com>
4303
4304         * config/ia64/ia64.c (ia64_encode_section_info): Add check for
4305         TREE_ASM_WRITTEN.
4306
4307 2000-05-03  David Mosberger  <davidm@hpl.hp.com>
4308
4309         * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
4310         if -mauto-pic is on.
4311         (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
4312         -mconstant-gp is in effect and function-descriptors are being used
4313         to make indirect calls.
4314         * config/ia64/ia64.h (MASK_CONST_GP): New macro.
4315         (MASK_AUTO_PIC): Ditto.
4316         (TARGET_CONST_GP): Ditto.
4317         (TARGET_AUTO_PIC): Ditto.
4318         (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
4319         (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
4320         -mno-pic is in effect.
4321         (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
4322         * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
4323         -mauto-pic is in effect.
4324         (gprel64_offset): New pattern.
4325         (load_gprel64): Ditto.
4326         (call): Handle -mauto-pic like -mno-pic (don't use fptr).  If
4327         -mconstant-gp is in effect, no need to preserve gp around direct
4328         calls.
4329         (call_value): Ditto.
4330         * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
4331         (FUNCTION_PROFILER): Define.
4332         * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
4333         @fptr() directive when -mno-pic or -mauto-pic is in effect.
4334         (ASM_OUTPUT_DESTRUCTOR): Ditto.
4335
4336 2000-05-03  Richard Henderson  <rth@cygnus.com>
4337
4338         * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
4339         (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
4340         (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
4341         (mklibgcc, libgcc.mk): New targets.
4342         (libgcc.a): Use libgcc.mk.
4343         (stmp-multilib): Likewise.
4344         (stmp-multilib-sub): Remove.
4345         (mostlyclean): Don't delete libgcc2 temp files.
4346         * configure.in (AC_PROG_CC_C_O): Add.
4347         (NO_MINUS_C_MINUS_O): Substitute it.
4348         (all_outputs): Add mklibgcc.
4349         * mklibgcc.in: New file.
4350
4351 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
4352
4353         * cppexp.c (op_t): Make an int.
4354
4355         * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
4356
4357         * varasm.c (initializer_constant_valid_p): Fix parenthesis.
4358
4359         * gensupport.c (process_rtx): Fix macros used.
4360
4361 2000-05-03  Richard Henderson  <rth@cygnus.com>
4362
4363         * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
4364         call-clobbered registers of a call.
4365
4366 Wed May  3 12:40:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
4367
4368         * gensupport.c: New file.
4369         * gensupport.h: New file.
4370         * Makefile.in (HOST_RTL): Depend on gensupport.
4371         (gensupport.o) New rule.
4372         * genattr.c: Use gensupport for reading .md files.
4373         * genattrtab.c: Ditto.
4374         * gencodes.c: Ditto.
4375         * genconfig.c: Ditto.
4376         * genemit.c: Ditto.
4377         * genextract.c: Ditto.
4378         * genflags.c: Ditto.
4379         * genopinit.c: Ditto.
4380         * genoutput.c: Ditto.
4381         * genpeep.c: Ditto.
4382         * genrecog.c: Ditto.
4383         * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
4384         * md.texi (Insn Splitting): Document define_insn_and_split.
4385
4386 Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>
4387
4388         * flow.c (verify_flow_info): Added two more sanity checks. The
4389         first checks that the blocks are numbered consecutively. The second
4390         checks that n_basic_blocks is actually equal to the number of
4391         basic blocks in the insn chain.
4392
4393 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
4394
4395         * cpplib.h: Add accessor macros for token lists.
4396         * cpplib.c, cpphash.c, cpplex.c: Use them.
4397
4398 Wed May  3 09:29:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4399
4400         * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
4401         memory usage if not in a function.
4402         * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
4403         return address if static.
4404
4405 Wed May  3 13:14:49 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4406
4407         * ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
4408         whether address may trap.
4409
4410 Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>
4411
4412         * bb-reorder (chain_reorder_blocks): Changed code to test for
4413         EDGE_FALLTHRU rather than making erroneous assumption that the
4414         first outgoing edge is the fall-through edge.
4415
4416 Tue May  2 18:20:31 2000  Donald Lindsay  <dlindsay@hound.cygnus.com>
4417
4418         * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
4419         ABI for varargs, across all MIPS. This is incompatible because the
4420         va_list (__builtin_va_list) structure is different, so a compilation
4421         unit passing a va_list and a compilation unit being passed one, should
4422         both be compiled with the same ABI. (The old structure had two
4423         pointers, now it has three.)
4424
4425 Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>
4426
4427         * bb-reorder.c (struct reorder_block_def): Remove members end,
4428         block_begin, and block_end.
4429         (REORDER_BLOCK_OLD_END): Delete.
4430         (REORDER_BLOCK_BEGIN): Delete.
4431         (REORDER_BLOCK_END): Delete.
4432         (chain_reorder_blocks): Remove dead code.
4433
4434 Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>
4435
4436         * bb-reorder.c (remove_scope_notes): Check for both types of scope
4437         notes as the end of a basic block before deleting.
4438
4439 2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>
4440
4441         * final.c (final_start_function): Fix spelling of "necessary".
4442
4443 2000-05-02  Jason Merrill  <jason@casey.cygnus.com>
4444
4445         * toplev.c (debug_ignore_block): Return int.
4446         * dwarf2out.c (dwarf2out_ignore_block): Likewise.
4447         * toplev.h, dwarf2out.h: Adjust.
4448         * emit-rtl.c (remove_unnecessary_notes): Test return value.
4449
4450         * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
4451         * toplev.c, final.c, rtl.h: Adjust.
4452
4453 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4454
4455         * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
4456         * configure.in: Look for makeinfo in the unified tree, then
4457         for a system makeinfo which is sufficiently new.
4458         * Makefile.in: If configure says makeinfo is too old, don't
4459         build or install Info documentation.
4460
4461 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4462
4463         * cpphash.c (collect_params): Fix off-by-one error.
4464         (dump_hash_helper): Dump all four macro nodetypes.
4465
4466 2000-05-02  Jakub Jelinek  <jakub@redhat.com>
4467
4468         * cpphash.c (trad_stringify): Adjust p after stringification as
4469         well.
4470
4471 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
4472
4473         * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
4474         (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
4475
4476         * cppfiles.c (file_cleanup): Delete.
4477         * cpphash.c (macro_cleanup): Delete.
4478         (collect_objlike_expansion, collect_funlike_expansion,
4479         macarg, scan_arguments): Remove CPP_POP case.
4480
4481         * cpplex.c (null_cleanup): Delete.
4482         (cpp_pop_buffer): Do the work that was done in the cleanups
4483         here.  Call _cpp_unwind_if_stack from here.
4484         (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
4485         cpp_scan_buffer): Run until we see CPP_EOF and the top of
4486         stack is the buffer _below_ the one we stacked.
4487         (cpp_get_token): Always pop an exhausted buffer.  Return
4488         CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
4489         * cpplib.c (skip_if_group): Don't call cpp_get_token to
4490         increment the line number.
4491         (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
4492
4493         * fix-header.c (read_scan_file) [parsing getchar()]: Run until
4494         we see CPP_EOF and the top of stack is the buffer _below_ the
4495         one we stacked.
4496         * scan-decls.c: Likewise.
4497
4498 2000-05-02  Andrew Haley  <aph@cygnus.com>
4499
4500         * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
4501         where this function is called for the second time on a decl that
4502         has had its section info changed in such a way as to move it out
4503         of small data/bss.
4504         * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
4505
4506 2000-05-01  Richard Henderson  <rth@cygnus.com>
4507
4508         * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
4509         the sequence we're moving, not to merge_bb->head.
4510
4511 2000-05-01  Richard Henderson  <rth@cygnus.com>
4512
4513         * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
4514         reference to alpha/t-linux.
4515         (alpha*-*-linux-gnu*): Likewise.
4516         * configure: Rebuild.
4517
4518         * calls.c (expand_call): Don't emit reg notes for a sibcall.
4519
4520         * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
4521         if not in SSA form.
4522
4523         * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
4524
4525 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
4526
4527         * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
4528         TREE_THIS_VOLATILE.
4529
4530 2000-05-01  Richard Henderson  <rth@cygnus.com>
4531
4532         * ifcvt.c (noce_emit_cmove): Conditionally compile call to
4533         emit_conditional_move.
4534
4535 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
4538         as the dynamic linker.
4539
4540 2000-05-01  Zack Weinberg  <zack@wolery.cumb.org>
4541
4542         * cppfiles.c (open_include_file): Open file in blocking mode.
4543         (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
4544         Only exclude block devices and directories.
4545
4546         * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
4547         static.  Allocate the hashnode and its string in the same
4548         block of memory.
4549         (del_HASHNODE): Don't free h->name.
4550         (_cpp_lookup): If there is no entry for this string, create
4551         one, of type T_VOID.
4552         (_cpp_lookup_slot): Delete.
4553         * cpphash.h: Update prototypes.
4554
4555         * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
4556         not hp == NULL.
4557         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
4558         do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
4559         node here, just fill in the value field properly.  "Delete"
4560         entries by setting the value field to T_VOID.  Check for
4561         hp->type == T_VOID, not hp == NULL.
4562
4563         * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
4564         * cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
4565         hashtab.h.
4566
4567 2000-05-01  Alexandre Oliva  <aoliva@cygnus.com>
4568
4569         * config/mn10300/mn10300.c (print_operand_address): Do not add
4570         zero to SP.
4571
4572         * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
4573         adjusted by less than 256 bytes, use ret regardless of having any
4574         callee-saved register to restore.
4575
4576 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
4577
4578         * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
4579
4580 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
4581
4582         * config/i386/djgpp.h (INT_ASM_OP): Define.
4583         (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
4584         (ASM_WEAKEN_LABEL): Define.
4585         (MASK_BNU210): Define.
4586         (SUBTARGET_SWITCHES): Define.
4587         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
4588         (MAKE_DECL_ONE_ONLY): Define.
4589         (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
4590
4591 2000-05-01  Mumit Khan  <khan@xraylith.wisc.edu>
4592
4593         * i386/cygwin.h (INT_ASM_OP): Define.
4594
4595 Mon May  1 18:20:06 2000  Denis Chertykov  <denisc@overta.ru>
4596
4597         * config/avr/avr.c (address_cost): renamed to avr_address_cost.
4598         * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
4599
4600 Mon May  1 17:50:44 2000  Denis Chertykov  <denisc@overta.ru>
4601
4602         * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
4603         __tmp_reg__ and __zero_reg__ initialization.
4604
4605 2000-04-30  Richard Henderson  <rth@cygnus.com>
4606
4607         * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
4608
4609         * ifcvt.c (noce_process_if_block): Fail the conversion if X is
4610         referenced bewteen the condition and the jump.  Don't delete
4611         anything but the jump.
4612
4613 Sun Apr 30 22:48:24 2000  Jason Eckhardt  <jle@cygnus.com>
4614
4615         * bb-reorder.c (scope_def): New struct.
4616         (scope_forest_info): New struct.
4617         (struct reorder_block_def): New member "scope".
4618         (REORDER_BLOCK_SCOPE): New macro.
4619         (relate_bbs_with_scopes): New function and prototype.
4620         (make_new_scope): Likewise.
4621         (build_scope_forest): Likewise.
4622         (remove_scope_notes): Likewise.
4623         (insert_intra_1): Likewise.
4624         (insert_intra_bb_scope_notes): Likewise.
4625         (insert_inter_bb_scope_notes): Likewise.
4626         (rebuild_scope_notes): Likewise.
4627         (free_scope_forest_1): Likewise.
4628         (free_scope_forest): Likewise.
4629         (dump_scope_forest): Likewise.
4630         (dump_scope_forest_1): Likewise.
4631         (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
4632         Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
4633         block.
4634         (reorder_basic_blocks): Added calls to build_scope_scope_forest
4635         and remove_scope_notes before reordering is done. Added calls to
4636         rebuild_scope_notes, free_scope_forest, and reorder_blocks after
4637         after reordering is done.
4638
4639 2000-40-30  Bruce Korb  <bkorb@gnu.org>
4640
4641         * fixinc/inclhack.def:  Added definitions needed by OSR5,
4642         removed two stale entries (defined away with OLD_CPP).
4643         * fixinc/inclhack.sh: regen
4644         * fixinc/fixincl.x: regen
4645
4646 2000-04-30  Richard Henderson  <rth@cygnus.com>
4647
4648         * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
4649         from the last insn in the sequence.
4650
4651 2000-04-30  Zack Weinberg  <zack@wolery.cumb.org>
4652
4653         * cpplex.c (cpp_idcmp): New function.
4654         * cpplib.h: Prototype it.
4655         * scan_decls.c (scan_decls): Use it to inspect token names.
4656         * fix-header.c (read_scan_file): Likewise.  Set system_header_p on
4657         the file being run through the preprocessor.
4658         (check_macro_names): Provide length of token to cpp_defined.
4659
4660         * Makefile.in: Remove stale warning message.
4661
4662         * cppfiles.c (redundant_include_p): Provide length of token to
4663         cpp_defined.
4664         * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
4665         values are unsigned int.
4666         (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
4667         (_cpp_lookup_slot): Do not calculate the hash, either.
4668         * cpphash.h: Update prototypes.
4669         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
4670         Hashes are unsigned int.  Calculate hash here, pass by value
4671         to _cpp_lookup_slot.
4672
4673 2000-04-30  Bernd Schmidt  <bernds@cygnus.co.uk>
4674
4675         * simplify-rtx.c (check_value_useless): Delete function.
4676         (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
4677         by hand.
4678         (cselib_invalidate_regno): Likewise.
4679         (cselib_invalidate_mem_1): Likewise.
4680         (references_value_p): Recognize useless values by the fact that they
4681         have no locations.
4682         (discard_useless_values): Likewise.
4683         (cselib_record_set): This may turn a useless value
4684         into a useful one.
4685
4686 2000-04-30  Richard Henderson  <rth@cygnus.com>
4687
4688         * config/d30v: New port.
4689
4690         * configure.in (d30v-*): Set fp format.
4691         * configure: Rebuild.
4692
4693 2000-04-30  Richard Henderson  <rth@cygnus.com>
4694
4695         * ifcvt.c: New file.
4696         * Makefile.in (OBJS): Add it.
4697         (ifcvt.o): New target.
4698         * jump.c (jump_optimize_1): Remove all code related to if-conversion,
4699         and conditional arithmetic.
4700         (find_insert_position): Remove.
4701         * timevar.def (TV_IFCVT, TV_IFCVT2): New.
4702         * toplev.c (DFI_ce, DFI_ce2): New.
4703         (dump_file): Add ce and ce2 dumps.
4704         (rest_of_compilation): Run if_convert a couple o times.  Set
4705         cse_not_expected after cse2.  Don't set no_new_pseudos until
4706         after sched1 or recompute_reg_usage.
4707
4708 2000-04-30  Richard Henderson  <rth@cygnus.com>
4709
4710         * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
4711         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
4712
4713 2000-04-30  Richard Henderson  <rth@cygnus.com>
4714
4715         * flow.c (struct reg_cond_life_info): New.
4716         (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
4717         (init_propagate_block_info): Initialize them.
4718         (free_propagate_block_info): Destruct them.
4719         (mark_set_1): Consider conditional life before killing a register.
4720         (mark_regno_cond_dead): New.
4721         (free_reg_cond_life_info): New.
4722         (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
4723         (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
4724         (mark_used_reg): Record conditional life.
4725
4726         * haifa-sched.c (schedule_insns): Disable death counting
4727         sanity check for HAVE_conditional_execution.
4728
4729 2000-04-30  Richard Henderson  <rth@cygnus.com>
4730
4731         * Makefile.in (TIMEVAR_H): New.
4732         (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
4733         (timevar.h): Remove rule.
4734
4735 2000-04-29  Richard Henderson  <rth@cygnus.com>
4736
4737         * config/alpha/crtend.asm: Use C comments instead of #.
4738         * config/alpha/crtbegin.asm: Likewise.  Mark __dso_handle hidden.
4739
4740         * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
4741
4742 2000-04-29  Zack Weinberg  <zack@wolery.cumb.org>
4743
4744         * cpphash.h (enum node_type: Take out T_MCONST.
4745         (union hashval): Move into struct hashnode.
4746         (struct hashnode): Pack tighter.  Remove file, line, col
4747         members.
4748         * cpphash.c: Constify most of the macro-definition structures.
4749         (struct definition): Replace by struct object_defn
4750         and struct funct_defn.  Put file, line, column information
4751         here.  All users updated to match.
4752         (_cpp_create_definition, _cpp_macroexpand): Remove special
4753         case for #define WORD OTHERWORD.
4754         * cpplib.c (do_undef): Remove T_MCONST case.
4755
4756         * cpphash.h: Move struct reflist, struct definition, and the
4757         DEFINITION typedef to cpphash.c.  Use 'struct definition *' in
4758         union hashval.  _cpp_free_definition takes a HASHNODE pointer.
4759         * cpphash.c (_cpp_free_definition): Free data pointed to by
4760         MCONST, XCONST, MACRO, and FMACRO nodes properly.
4761         (_cpp_create_definition, del_HASHNODE): Just call
4762         _cpp_free_definition to clear out a hashnode.
4763         * cpplib.c (do_pragma_poison): Likewise.
4764
4765 Sat Apr 29 12:25:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
4766
4767         * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
4768         LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
4769         FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
4770         (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
4771         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
4772         REGNO_AM33_P): Redefine in terms of the new macros.
4773         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4774         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
4775         STRUCT_VALUE): Likewise.
4776         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
4777         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise.  Moved.
4778
4779 Sat Apr 29 01:18:45 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4780
4781         * regmove.c (struct record_stack_memrefs_data): New.
4782         (record_stack_memrefs): New function.
4783         (combine_stack_adjustments_for_block): Use it.
4784
4785 Sat Apr 29 01:15:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4786
4787         * calls.c (calls_function_1):  Propertly handle TREE_LIST expressions;
4788         use special_function_p to detect alloca.
4789
4790 Fri Apr 28 16:30:33 2000  Marc Espie <espie@cvs.openbsd.org>
4791
4792         * gcc.texi: Fixes for makeinfo 4.0 --html.
4793
4794 2000-04-28  Zack Weinberg  <zack@wolery.cumb.org>
4795
4796         * pcp.h: Delete file.
4797
4798 2000-04-28  Kazu Hirata  <kazu@hxi.com>
4799
4800         * h8300.c (function_epilogue): Clean up flags when the last insn
4801         in a function is a barrier.
4802
4803 2000-04-28  Chris Demetriou  <cgd@sibyte.com>
4804
4805         * configure.in (sparc-hal-solaris2*): protect [] glob from
4806         my expansion.
4807         (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
4808         rather than hard-coded constants in target_cpu_default2.
4809         * configure: Regenerate.
4810
4811 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
4812
4813         * tree.c (get_callee_fndecl): Extract the initial value from
4814         a readonly decl.
4815
4816 2000-04-28  Richard Henderson  <rth@cygnus.com>
4817
4818         * varasm.c (record_constant_1): Record the CODE_LABEL when
4819         taking the address of a LABEL_REF.
4820
4821 2000-04-28  Richard Henderson  <rth@cygnus.com>
4822             Jan Hubicka  <jh@suse.cz>
4823
4824         * calls.c (combine_pending_stack_adjustment_and_call): Return the
4825         adjustment; don't do the stack adjust.
4826         (expand_call): Call compute_argument_block_size right before
4827         allocating the block; update comment; don't do alignment sanity
4828         checking for sibling call; use args_size instead of
4829         unadjusted_args_size before args_size is adjusted.  Use
4830         combine_pending_stack_adjustment_and_call to compute stack adjust
4831         for must_preallocate case.
4832
4833         * expr.c (push_block): Remove shadow `temp' in inner scope.
4834
4835 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
4836
4837         * toplev.c (rest_of_compilation): Call
4838         note_deferral_of_defined_inline_function even if the function
4839         can't be inlined.
4840
4841 2000-04-28  Scott Bambrough  <scottb@netwinder.org>
4842
4843         * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
4844
4845 2000-04-28  Richard Henderson  <rth@cygnus.com>
4846
4847         * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
4848
4849 2000-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4850
4851         * timevar.c (init_timevar): DeANSIfy function definition.
4852
4853 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
4854
4855         * Makefile.in (timevar.o): Depend on flags.h.
4856         * timevar.c (unused_stack_instances): New variable.
4857         (timevar_push): Take a timevar_stack_def from
4858         unused_stack_instances if available.
4859         (timevar_pop): Push the popped timevar_stack_def onto
4860         unused_stack_instances.
4861         (TIMEVAR_ENABLE): New macro.
4862         (timevar_def): Make standalone a 1-bit field.  Add field used.
4863         (get_time): Rename parameter to now.  Return after clearing it if
4864         not TIMEVAR_ENABLE.
4865         (init_timevar): Do nothing if not TIMEVAR_ENABLE.
4866         (timevar_pop): Likewise.
4867         (timevar_stop): Likewise.
4868         (timevar_push): Likewise.  Mark the timing variable as used.
4869         (timevar_start): Likewise.
4870         (timevar_print): Do nothing if not TIMEVAR_ENABLE.  Don't print
4871         timevars that were never used.
4872
4873 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
4874
4875         * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
4876         always TREE_READONLY.
4877
4878 2000-04-27  Ulrich Drepper  <drepper@cygnus.com>
4879
4880         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
4881         for call instruction with mode QImode.
4882
4883 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
4884
4885         * Makefile.in (OBJS): Add timevar.o.
4886         (toplev.o): Depend on timevar.h.
4887         (ggc-simple.o): Likewise.
4888         (ggc-page.o): Likewise.
4889         (timevar.o): New rule.
4890         (timevar.h): New rule.
4891
4892         * timevar.h: New file.
4893         * timevar.c: Likewise.
4894         * timevar.def: Likewise.
4895
4896         * toplev.h (gc_time, parse_time, varconst_time): Remove.
4897         * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
4898         throughout.
4899         (TIMEVAR): Remove macro.
4900         (gc_time, parse_time, varconst_time, integration_time, jump_time,
4901         cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
4902         flow_time, combine_time, regmove_time, sched_time,
4903         local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
4904         sched2_time, dbr_sched_time, reorder_blocks_time,
4905         rename_registers_time, shorten_branch_time, stack_reg_time,
4906         to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
4907         all_time): Remove.
4908         (compile_file): Don't initialize time variables.  Call
4909         init_timevar and start TV_TOTAL timer.  Call timevar_print instead
4910         of many calls to print_time.
4911         (rest_of_compilation): Add timing for reload_cse_regs.
4912         (get_run_time): Removed to timevar.c.
4913         (print_time): Likewise.
4914         (get_run_time): Implement using TV_TOTAL time variable.
4915         (print_time): Get total run time from get_run_time.
4916         * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
4917         computing elapsed time explicitly.
4918         * ggc-simple.c (ggc_collect): Likewise.
4919         (gc_time): Remove declaration.
4920
4921 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
4922
4923         * calls.c (combine_pending_stack_adjustment_and_call): New function.
4924         (expand_call): Use it.
4925
4926 2000-04-27  Jan Hubicka  <jh@suse.cz>
4927
4928         * flow.c (mark_set_1):  Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
4929         fields.
4930
4931 Thu Apr 27 12:47:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
4932
4933         * config/mn10300/mn10300.md (movhi): Simplify.  Prefer data
4934         registers.
4935
4936 Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4937
4938         * function.c (epilogue_done): Pass whole insn to record_insns.
4939
4940 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4941
4942         * cse.c (CSE_ADDRESS_COST): Remove.
4943         (find_best_addr): Add new parameter "MODE", use address_cost instead
4944         of CSE_ADDRESS_COST
4945         (address_cost): New.
4946         (fold_rtx): Update call of find_best_addr.
4947         * rtl.h (address_cost): Declare.
4948         * loop.c (general_induction_var): Add new parameter "MODE", use
4949         address_cost instead of ADDRESS_COST
4950         (init_loop): Use address_cost instead of ADDRESS_COST.
4951         (check_insn_for_givs): Update call of general_induction_var.
4952         (find_mem_givs): Likewise.
4953         (consec_sets_giv): Likewise.
4954         * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
4955         * i386.c (ix86_address_cost): New.
4956         * i386-protos.h (ix86_address_cost): Declare.
4957
4958 Thu Apr 27 11:45:16 2000  Alexandre Oliva  <aoliva@cygnus.com>
4959
4960         * config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
4961         registers.
4962
4963 Thu Apr 27 16:11:00 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4964
4965         * expr.c (store_expr): Use clear_storage instead of direct memset
4966         libcall.
4967
4968 Thu Apr 27 10:36:51 2000  Alexandre Oliva  <aoliva@cygnus.com>
4969
4970         * config/mn10300/mn10300.c (mn10300_address_cost): Test
4971         ASHIFT, AND and LABEL_REF.
4972
4973 Thu Apr 27 15:08:46 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4974
4975         * invoke.texi (-foptimize-sibling-calls): Fix.
4976
4977 Thu Apr 27 14:54:22 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4978
4979         * loop.c (load_mems)  Don't use hard registers for the hoisting.
4980
4981         * unroll.c (unroll_loop): Avoid overflow in the n_iterations
4982         calculation; rename const_equiv array in the preconditioning code
4983         from loop_unroll to loop_unroll_precondition
4984
4985 2000-04-27  Richard Henderson  <rth@cygnus.com>
4986
4987         * flow.c (struct propagate_block_info): Remove new_dead, new_live;
4988         add new_set.
4989         (propagate_one_insn): Clear it.  Don't update reg_live here.
4990         (init_propagate_block_info): Update for pbi member changes.
4991         (free_propagate_block_info): Likewise.
4992         (mark_set_1): Know that zero_extract, sign_extract, and
4993         strict_low_part don't kill their argument.  Alter hard subregs.
4994         Update new_set for non-CLOBBER sets.  Update reg_live.
4995         (find_auto_inc): Update reg_live, not new_dead.
4996         (mark_used_reg): Update reg_live, not new_live.  Examine new_set
4997         to determine if the reg in question was set this insn.  Only update
4998         reg info with PROP_REG_INFO.
4999
5000 2000-04-26  Richard Henderson  <rth@cygnus.com>
5001
5002         * flow.c (allocate_reg_life_data): Set max_regno here ...
5003         (life_analysis): ... not here.
5004
5005         * flow.c (calculate_global_regs_live): Force stack pointer
5006         live at end.
5007
5008 2000-04-26  Richard Henderson  <rth@cygnus.com>
5009
5010         * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
5011         commit change group changes.
5012         (invert_exp_1): Similarly.
5013         (redirect_exp, invert_exp): Use them.
5014         (redirect_jump_1): New.
5015         (invert_jump_1): New.
5016         (jump_optimize_1): Remove code subsumed by condexec.c.
5017         * rtl.h (invert_jump_1, redirect_jump_1): Declare.
5018
5019 2000-04-26  Richard Henderson  <rth@cygnus.com>
5020
5021         * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
5022
5023         * genconfig.c (main): Set all HAVE_foo to 1.
5024
5025         * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
5026
5027 2000-04-26  Alex Samuel  <samuel@codesourcery.com>
5028
5029         * invoke.texi: Document -fssa flag.
5030
5031 2000-04-26  Richard Henderson  <rth@cygnus.com>
5032
5033         * flow.c (count_reg_sets_1): Remove.
5034         (count_reg_sets, count_reg_references): Remove.
5035         (recompute_reg_usage): Implement with update_life_info.
5036         Reallocate life data.
5037
5038 2000-04-26  Richard Henderson  <rth@cygnus.com>
5039
5040         * flow.c (update_life_info): Consider blocks null to mean the
5041         universal set.
5042         (calculate_global_regs_live): Likewise.
5043         (life_analysis): Do that instead of collecting all_blocks.
5044
5045 2000-04-26  Richard Henderson  <rth@cygnus.com>
5046
5047         * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
5048         a still-valid conditional jump.
5049
5050 2000-04-26  Richard Henderson  <rth@cygnus.com>
5051
5052         * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
5053
5054         * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
5055         * flow.c (calculate_loop_depth): Remove.
5056         * output.h (calculate_loop_depth): Don't declare.
5057         * toplev.c (rest_of_compilation): Expand calculate_loop_depth
5058         inline; run estimate_probability at the same time.
5059
5060 2000-04-26  Neil Booth  <NeilB@earthling.net>
5061
5062         * cpplib.h: "~=" is not a single pp-token.
5063         * cpplex.c: Correct commentary.
5064
5065 2000-04-26  Richard Henderson  <rth@cygnus.com>
5066
5067         * flow.c (mark_set_1): New arguments code and flags; update all
5068         callers.  Track regno_first and regno_last; do HARD_REGNO_NREGS
5069         test in one place.  Tidy flags tests.  Don't bias REG_N_REFS by
5070         loop_depth when optimizing for size.  Do new_dead update after
5071         emitting REG_UNUSED notes.  Merge mark_set_reg code.
5072         (mark_set_reg): Remove.
5073         (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
5074         arrange to not emit REG_UNUSED notes.
5075
5076 2000-04-26  Richard Henderson  <rth@cygnus.com>
5077
5078         * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
5079         * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
5080
5081 2000-04-26  Richard Henderson  <rth@cygnus.com>
5082
5083         * flow.c (propagate_one_insn): Break out from propagate_block.
5084         (init_propagate_block_info): Likewise.
5085         (free_propagate_block_info): Likewise.
5086         (propagate_block): Use them.  Export.
5087         * basic-block.h: Declare them all.
5088
5089 2000-04-26  Richard Henderson  <rth@cygnus.com>
5090
5091         * basic-block.h (life_analysis): Declare here ...
5092         * output.h: ... not here.
5093         * flow.c (life_analysis): Remove nregs parameter; replace
5094         remove_dead_code with flags.  Remove ssa dead code check.
5095         Only init alias analysis if we'll use it.
5096         * reg-stack.c (reg_to_stack): Update life_analysis arguments.
5097         * ssa.c (convert_to_ssa): Likewise.
5098         (convert_from_ssa): Likewise.
5099         * toplev.c (rest_of_compilation): Likewise.
5100
5101 2000-04-26  Richard Henderson  <rth@cygnus.com>
5102
5103         * flow.c (flow_delete_block): Rename from delete_block.  Export.
5104         * basic-block.h (flow_delete_block): Declare.
5105
5106 2000-04-26  David S. Miller  <davem@redhat.com>
5107
5108         * optabs.c (emit_libcall_block): Verify insns with INSN_P before
5109         taking a PATTERN of it.
5110
5111 2000-04-26  <NeilB@earthling.net>
5112
5113         * cpplex.c (spell_other, spell_char): Remove.
5114         (SPELL_CHAR): New.
5115         (token_spelling, trigraph_map): Use unsigned chars.
5116         (_cpp_lex_line): Tidy up the switch statement.
5117         * cpplib.h: Implement spell_char with spell_string.
5118         (C): New.
5119
5120 2000-04-26  <RodneyBrown@pmsc.com>
5121
5122         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
5123         * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
5124
5125 2000-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5126
5127         * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
5128         reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
5129         dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
5130         dwarf2out_return_save, dwarf2out_return_reg,
5131         dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
5132         add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
5133         gen_compile_unit_die, dwarf2out_init): Constify a char*.
5134
5135         * dwarf2out.h (dwarf2out_init): Likewise.
5136
5137         * dwarfout.c (filename_entry, primary_filename, last_filename,
5138         type_tag, output_compile_unit_die, dwarfout_init): Likewise.
5139
5140         * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
5141         dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
5142         dwarf2out_return_reg): Likewise.
5143
5144 2000-04-26  Andreas Jaeger  <aj@suse.de>
5145
5146         * extend.texi (Function Attributes): Fix description of pure
5147         attribute.
5148
5149 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
5150
5151         * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
5152         before calling rest_of_compilation.
5153
5154 2000-04-26  Andreas Jaeger  <aj@suse.de>
5155
5156         * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
5157         last patch.
5158
5159 2000-04-25  Richard Henderson  <rth@cygnus.com>
5160
5161         * cse.c (cse_insn): Emit barrier after unconditional jump.
5162
5163         * calls.c (expand_call): Disable tail call generation once
5164         rtx_equal_function_value_matters is false.
5165
5166         * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
5167         like EDGE_EH edges.
5168
5169 2000-04-25  Jason Merrill  <jason@casey.cygnus.com>
5170
5171         * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
5172
5173         * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
5174
5175         * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
5176         is the primary DIE for a member function.
5177         (gen_decl_die): Call set_decl_origin_self here.
5178         * dwarfout.c (output_decl): And here.
5179         * integrate.c (output_inline_function): Not here.
5180         Don't clear DECL_INLINE until after calling rest_of_compilation.
5181         (set_decl_origin_self): No longer static.
5182         * tree.h: Add prototype.
5183         * toplev.c (note_deferral_of_defined_inline_function): Only write
5184         out abstract instance for actual inlines.
5185
5186 2000-04-25  Alexandre Oliva  <aoliva@cygnus.com>
5187
5188         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
5189         EXTENDED_REGS only if TARGET_AM33.
5190         * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
5191         SP_REGS to register allocation and reloading unless absolutely
5192         necessary.
5193         (movsi3): Remove special-case of adding non-constants to SP.
5194
5195 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5196
5197         * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
5198         INCLUDES to search and does not provide any of its own.  Also it
5199         now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
5200         parameters.  Also it does not call AC_DEFINE.
5201         (gcc_AC_NEED_DECLARATIONS): Likewise.  Also this macro now calls
5202         AC_DEFINE and provides for automatic entries for autoheader.
5203         (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
5204
5205         * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
5206         so we can pass -I flags and include gansidecl.h/system.h in this
5207         test.
5208
5209         * acconfig.h: Delete all NEED_DECLARATION_* entries.
5210
5211 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5212
5213         * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
5214         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
5215         ENABLE_GC_ALWAYS_COLLECT): Delete entries.
5216
5217         * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
5218         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
5219         ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
5220         for these macros.  Clean up spacing and linewraps.
5221
5222 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
5223
5224         * calls.c (expand_call): Use get_callee_fndecl.
5225
5226         * print-tree.c (print_node): Print the chain of an _EXPR.
5227
5228 Tue Apr 25 16:16:04 2000  Andrew MacLeod  <amacleod@cygnus.com>
5229                           Jim Wilson  <wilson@cygnus.com>
5230                           Andrew Haley  <aph@cygnus.com>
5231
5232         * config/ia64/crtbegin.asm: Add IA-64 unwind support.  Correct alloc
5233         and gp save/restore problems.
5234         * config/ia64/crtend.asm: Add IA-64 unwind support.
5235         * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
5236         in fr_pad_size calculation.
5237         (save_restore_insns): Move PR save area.  Correct uses of
5238         RTX_FRAME_RELATED_P.
5239         (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
5240         (ia64_expand_epilogue): Add eh_epilogue support.
5241         (ia64_function_prologue): Emit .prologue directive.
5242         (ia64_init_machine_status, ia64_mark_machine_status): New functions.
5243         (ia64_override_options): Set init_machine_status and
5244         mark_machine_status.
5245         (rtx_needs_barrier): Handle bsp reads and writes.
5246         (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
5247         New static variables.
5248         (process_set, process_for_unwind_directive): New functions.
5249         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
5250         ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
5251         ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
5252         macros.
5253         (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
5254         (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
5255         (struct machine_function): Define.
5256         * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
5257
5258 2000-04-25  Bruce Korb  <bkorb@gnu.org>
5259
5260         * fixinc/Makefile.in: make the removal of old programs more
5261         robust
5262         * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
5263         install-bin and install-sh
5264
5265 2000-04-25  Nick Clifton  <nickc@cygnus.com>
5266
5267         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
5268         defined, define to return zero.
5269         (function_cannot_inline_p): If a function has any target
5270         specific attributes, then use the macro
5271         FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
5272         whether it can be inlined.  If it cannot, issue a suitable
5273         explanation.
5274
5275         * tm.texi: Add a new node 'Inlining' to document the new macro
5276         FUNCTION_ATTRIBUTE_INLINABLE_P.
5277
5278 2000-04-25  Zack Weinberg  <zack@wolery.cumb.org>
5279
5280         * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
5281         commentary.
5282
5283 2000-04-25  Neil Booth  <NeilB@earthling.net>
5284
5285         Restore previous patch, plus the following fixes:
5286
5287         * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
5288         flags, not CPP_OPEN_PAREN.
5289         * cpplex.c (expand_token_space, init_token_list,
5290         cpp_free_token_list): Put the dummy token at list->tokens[-1].
5291         (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
5292
5293 Tue Apr 25 14:06:40 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5294
5295         * config/i386/freebsd.h (INT_ASM_OP): Define.
5296
5297 Tue Apr 25 14:51:07 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5298
5299         * loop.c (strength_reduce): Fix typo in the last checkin.
5300
5301 Tue Apr 25 07:33:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5302
5303         * stor-layout.c (finalize_record_size): Simplify to use existing
5304         functions.
5305         (compute_record_mode): No longer static.
5306         * tree.h (compute_record_mode): New declaration.
5307
5308 2000-04-25  Neil Booth  <NeilB@earthling.net>
5309
5310         * Revert my patch below until cause of build failures
5311         determined.
5312
5313 2000-04-25  Richard Henderson  <rth@cygnus.com>
5314
5315         * combine.c (combine_instructions): Add missing argument
5316         to try_combine.
5317
5318         * toplev.c (rest_of_compilation): Delay sibcall optimization
5319         until after emit_eh_context.
5320
5321 2000-04-24  Nick Clifton  <nickc@redhat.com>
5322
5323         * combine.c (combine_instructions): Do not try to combine a
5324         sequence of insns when the second insn has been replaced by a
5325         note.
5326
5327 Mon Apr 24 17:34:18 2000  Mumit Khan  <khan@xraylith.wisc.edu>
5328
5329         * gcc.c (load_specs): New static function.
5330         (read_specs): Use it.
5331
5332         * gcc.c (lookup_compiler): Make multiple passes for case
5333         insensitive filesystems.
5334
5335 2000-04-24  Neil Booth  <NeilB@earthling.net>
5336
5337         * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
5338         * cpphash.h (_cpp_check_directive): new.
5339         * cpplex.c (handle_newline, cpp_free_token_list,
5340         init_trigraph_map, trigraph_ok, trigraph_replace,
5341         backslash_start, skip_block_comment, skip_line_comment,
5342         skip_whitespace, parse_name, parse_number, parse_string,
5343         copy_comment, _cpp_lex_line, spell_char, spell_string,
5344         spell_comment, spell_name, spell_other, _cpp_lex_file,
5345         _cpp_output_list): new.
5346         (expand_name_space): take length argument.
5347         (init_token_list): add comment list initialisation.
5348         (cpp_scan_line): use auto_expand_name_space.  PREV_WHITESPACE
5349         instead of HSPACE_BEFORE.
5350
5351         * cpplib.c (_cpp_check_directive): new
5352         * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
5353         DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
5354         (HSPACE_BEFORE): delete.
5355         (TTYPE_TABLE): rearrange.
5356         (struct cpp_toklist): update.
5357
5358 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5359
5360         * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
5361         gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
5362         argument form of AC_DEFINE.
5363
5364         * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
5365         HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
5366         WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
5367         HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
5368         HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
5369
5370         * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
5371
5372 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5373
5374         * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
5375         deduced.h): Use -isystem, not -I, for including system headers.
5376
5377 2000-04-24  Nick Clifton  <nickc@cygnus.com>
5378
5379         * config/fr30/fr30.md (addsi3): Do not use small add instruction if
5380         the source register is the frame pointer or arg pointer.
5381         (addsi3_small_int): Disallow if source register is the frame
5382         pointer or arg pointer.
5383
5384 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5385
5386         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
5387         call to AC_MSG_RESULT.
5388
5389 2000-04-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
5390
5391         * invoke.texi: Correct grammatical errors, document
5392         -fno-gnu-keywords as identical to -fno-asm for C++.
5393
5394 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5395
5396         * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
5397         GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
5398         GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
5399         AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
5400         EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
5401
5402         * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
5403         GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
5404         GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
5405         GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
5406         new macros names.
5407
5408 2000-04-24  Mumit Khan  <khan@xraylith.wisc.edu>
5409
5410         * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
5411         (pop_alignment): Likewise.
5412         (handle_pragma_token): Likewise.
5413
5414 2000-04-24  Robert Lipe <robertlipe@usa.net>
5415
5416         * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
5417
5418 2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>
5419
5420         * combine.c (try_combine): Update reg_nonzero_bits of
5421         newi2pat before newpat.
5422
5423 Mon Apr 24 10:19:48 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5424
5425         * loop.c (strength_reduce): Simplify test to INSN_P.
5426         (record_giv): Attempt to simplify the add value, use CONSTANT_P
5427         expressions instead of CONST_INT.
5428         (express_from_1): Likewise.
5429
5430 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
5431
5432         * regs.h (reg_n_max): Don't declare.
5433         * flow.c (reg_n_max): Don't define.
5434         * regclass.c (renumber): Don't initialize to zero.
5435         (regno_allocated): Likewise.
5436         (reg_n_max): Define.
5437         (allocate_reg_info): Don't initialize unnecessarily.
5438
5439 Mon Apr 24 00:21:36 2000  Jeffrey A Law  (law@cygnus.com)
5440
5441         * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
5442         and blockage_p in the newly allocated attribute.
5443
5444 Sun Apr 23 20:16:49 2000  Alexandre Oliva  <aoliva@cygnus.com>
5445
5446         * config/mn10300/mn10300.md (addsi): `inc4' on address
5447         registers does not modify cc, but `inc' on an extended
5448         register does.
5449
5450 Sun Apr 23 16:24:35 2000  Denis Chertykov  <denisc@overta.ru>
5451
5452         * reload.c (find_equiv_reg): Checks all valueno regs
5453         as a reload_reg_p regs.
5454
5455 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
5456
5457         * cpphash.c (collect_objlike_expansion): Add sanity check.
5458         (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST.  If
5459         the buffer is the empty string, return.  Mark __DATE__ and
5460         __TIME__ as XCONST nodes, not MCONST.
5461         (_cpp_macroexpand): Avoid pushing an empty buffer.
5462         (funlike_macroexpand): Don't pop token_buffer here.
5463
5464 Sun Apr 23 18:37:53 2000  Alexandre Oliva  <aoliva@cygnus.com>
5465
5466         * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
5467         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
5468         (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
5469         (REGNO_OK_FOR_BASE_P): Define in terms of them.
5470         (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
5471         (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
5472         (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
5473
5474 Sun Apr 23 22:23:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5475
5476         * loop.c (simplify_giv_expr):  Be more agressive on simplifying
5477         constant MULT givs.
5478
5479 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
5480
5481         * cpphash.h (struct definition): Move file, line, col members...
5482         (struct hashnode): ... here.  Also add 'disabled' flag.
5483         (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
5484         T_IDENTITY.  Remove T_DISABLED.
5485         Update prototypes.
5486
5487         * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
5488         (collect_expansion): Split into collect_objlike_expansion and
5489         collect_funlike_expansion.
5490         (_cpp_macroexpand): Split out scan_arguments, stringify, and
5491         funlike_macroexpand.
5492         (_cpp_compare_defs): Rename compare_defs, make static.
5493         (_cpp_make_hashnode): Initialize hp->disabled.
5494         (macro_cleanup): Adjust for new token types.  Clear
5495         m->disabled.
5496         (_cpp_create_definition): Move code here to determine what
5497         sort of macro it is, and code to check for redefinitions, from
5498         do_define.  Implement a few simple cases without creating a
5499         full DEFINITION.
5500         (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
5501         Handle the simple cases.
5502         (push_macro_expansion): Set buf->has_escapes and hp->disabled
5503         here.
5504
5505         * cppinit.c (builtin_array): Change MCONST to XCONST
5506         everywhere.
5507         * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
5508         fix check for disabled and function-like macros.
5509         * cpplib.c (do_define): Move most logic to
5510         _cpp_create_definition.
5511         (do_undef): Handle new special token types.
5512
5513 Sun Apr 23 14:27:44 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5514
5515         * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
5516         of CONSTANT_P for mult_val; always use validate_change to update insn.
5517
5518 2000-04-22  Zack Weinberg  <zack@wolery.cumb.org>
5519
5520         * cpphash.c (trad_stringify, add_pat): New functions.
5521         (collect_expansion): Restore support for -traditional syntax.
5522         Use trad_stringify and add_pat.
5523         (_cpp_macroexpand): Restore support for -traditional semantics.
5524         * cpplex.c (_cpp_scan_line): Don't change space_before if we
5525         get a COMMENT token.
5526         (_cpp_lex_token): Provide COMMENT tokens to caller if
5527         traditional and parsing_define_directive.
5528         (skip_comment): Warn about // comments if -Wtraditional.
5529         * cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
5530         proper node type.
5531         (do_undef): Don't warn about undefining EMPTY nodes.
5532
5533 Sat Apr 22 22:35:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5534
5535         * loop.c (strength_reduce): Fix biv removal code.
5536
5537 2000-04-22  Richard Henderson  <rth@cygnus.com>
5538
5539         * predict.c (estimate_probability): Examine both sides of
5540         a branch for no exits.  Use 90% not 50% for predict taken.
5541         Reorg for one copy of note generation code.
5542
5543 2000-04-22  Richard Henderson  <rth@cygnus.com>
5544
5545         * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
5546
5547 2000-04-22  Richard Henderson  <rth@cygnus.com>
5548
5549         * diagnostic.c (init_output_buffer): Don't initialize format_args.
5550         (output_clear): Likewise.
5551         (output_printf): Use va_copy.
5552         (vline_wrapper_message_with_location): Likewise.
5553         (v_message_with_decl): Likewise.
5554         (line_wrapper_printf): VA_START infor buffer.format_args directly.
5555         * system.h (va_copy): Provide default implementation.
5556
5557 2000-04-22  Richard Henderson  <rth@cygnus.com>
5558
5559         * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
5560         the collected condition is not a constant.
5561
5562 2000-04-22  Gabriel Dos Reis  <gdr@codesourcery.com>
5563
5564         * diagnostic.h: New file.
5565
5566         * Makefile.in (diagnostic.o): Depends on diagnostic.h
5567
5568         * diagnostic.c: Tweak.  Rationalize the output logic.  Adjust
5569         various function prototypes.
5570         (diagnostic.h): #include.
5571         (struct output_buffer): Move into diagnostic.h.
5572         (get_output_prefix): Rename to output_get_prefix.  Export.
5573         (init_output_buffer): Export. Break out.  Ajust intialization.
5574         (output_space_left, output_append): Export.
5575         (output_newline): Rename to output_add_newline.  Export.
5576         (output_clear): Nullify additional output_buffer fields.
5577         (output_puts): Rename to output_add_string.  Export.
5578         (dump_output): Rename to output_flush_on.  Export.
5579         (build_location_prefix): Constify return-type.
5580         (emit_output_prefix): Rename to output_emit_prefix. Export.
5581         (set_real_maximum_length): New function.
5582         (output_set_maximum_length): Ditto
5583         (output_clear): Ditto.
5584         (output_add_character): Ditto.
5585         (output_add_integer): Ditto.
5586         (output_add_space): Ditto.
5587         (output_format): Ditto.
5588         (output_printf): Adjust buffer initialization.
5589         (vline_wrapper_message_with_location): Ditto.
5590         (v_message_with_decl): Ditto.  Adjust call to output_puts
5591         and get_output_prefix.
5592         (default_print_error_function): Adjust buffer intialization.
5593
5594 Sat Apr 22 06:45:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5595
5596         * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
5597         of VOID_TYPE.
5598
5599 Fri Apr 21 18:33:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
5600
5601         * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
5602         of explicit 0.
5603
5604 Fri Apr 21 18:30:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
5605
5606         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
5607         accurate data about SP moves.
5608
5609 Fri Apr 21 18:28:28 2000  Alexandre Oliva  <aoliva@cygnus.com>
5610
5611         * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
5612         aliases to AM33 registers.
5613
5614 Fri Apr 21 18:26:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
5615
5616         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
5617         to all EXTENDED bitmaps.
5618
5619 Fri Apr 21 18:17:12 2000  Alexandre Oliva  <aoliva@cygnus.com>
5620
5621         * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
5622         * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
5623         * config/mn10300/mn10300.c (mn10300_address_cost): New function.
5624
5625 Fri Apr 21 18:11:56 2000  Alexandre Oliva  <aoliva@cygnus.com>
5626
5627         * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
5628         the operand is not constant.
5629
5630 Fri Apr 21 14:58:29 2000  Denis Chertykov  <denisc@overta.ru>
5631
5632         * reload.c (find_equiv_reg): Checks all valueno and regno regs
5633         as a call-clobbered regs.
5634
5635 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5636
5637         * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
5638         * rtl.h: Likewise.
5639         * rtl.def: Update comment.
5640         * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
5641         * integrate.c (expand_inline_function): Likewise.
5642         * profile.c (branch_prob): Likewise.
5643         * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
5644         * print-rtl.c (print_rtx): Likewise.
5645         * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
5646         (reemit_notes): Likewise; also use enum insn_note.
5647
5648         * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
5649         (place_field): Properly compute know and actual alignment.
5650
5651         * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
5652         in proper format.
5653
5654         * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
5655         note for REG1.
5656
5657 2000-04-21  Zack Weinberg  <zack@wolery.cumb.org>
5658
5659         * cpphash.c (struct arg, struct arglist): Const-ify strings.
5660         (warn_trad_stringify, duplicate_arg_p): New helper functions.
5661         (collect_expansion): Rewrite to scan over a token list.
5662         Remove -traditional support.
5663         (collect_formal_parameters): Rename to collect_params; rewrite
5664         to scan over a token list.
5665         (_cpp_create_definition): Adjust to scan a token list.
5666         (_cpp_macroexpand): Remove -traditional support.
5667         (_cpp_compare_defs): Whitespace is now canonicalized.
5668         (comp_def_part): Delete function.
5669
5670         * cpphash.h: Update prototypes.
5671         * cpplex.c (init_token_list): Don't set lineno if there is no
5672         buffer.
5673         (pedantic_whitespace): New function.
5674         (_cpp_scan_line): Mark tokens that had hspace before.  Don't
5675         consume a newline.  Use pedantic_whitespace.
5676         (_cpp_lex_token): Remove support for -traditional macros.
5677         (_cpp_get_define_token): Delete.
5678         (_cpp_get_directive_token): Do the real work here.  Use
5679         pedantic_whitespace.
5680         (_cpp_init_input_buffer): Initialize pfile->directbuf.
5681
5682         * cpplib.c (get_macro_name): Delete.
5683         (do_define): Read the entire line into pfile->directbuf, then
5684         feed the token list to _cpp_create_definition.
5685         * cpplib.h (HSPACE_BEFORE): new define.
5686         (struct cpp_reader): Add a toklist member, "directbuf".
5687
5688         * predict.c (estimate_probability): New heuristic: if a jump
5689         branches around a block with no successors, predict it taken.
5690         Disentangle control flow.
5691
5692 2000-04-20  Richard Henderson  <rth@cygnus.com>
5693
5694         * loop.c (emit_iv_add_mult): Revert last change.
5695
5696 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
5697
5698         * cpplib.h (enum cpp_ttype): Add token types for all
5699         punctuators.  Distinguish pp-numbers from valid C numbers.
5700         Give some tokens better names.  Initialize from macro.
5701         (struct cpp_name, cpp_token, cpp_toklist): New data
5702         structures.
5703         Update prototypes.
5704         * cpplex.c (bump_column, expand_name_space,
5705         expand_token_space, init_token_list, cpp_output_list,
5706         _cpp_scan_line):  New functions.
5707         (output_line_command): Add third argument, new line number.
5708         * cpphash.h: Update prototypes.
5709         * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
5710         token names.
5711
5712 2000-04-20  Richard Henderson  <rth@cygnus.com>
5713
5714         * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
5715
5716 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
5717
5718         * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
5719         object pointed to.
5720
5721 Thu Apr 20 14:19:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5722
5723         * loop.c (emit_iv_add_mult):  Simplify it's input and emit
5724         REG_EQUAL note explaining the calculated value.
5725
5726         * calls.c (expand_call): Avoid unnecesary precalculation
5727         and outgoing parameters space guarding for sibling calls.
5728         (store_one_arg): Likewise.
5729
5730 Thu Apr 20 08:01:07 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5731
5732         * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
5733         (rest_of_compilation): Write sibling dump file and account
5734         for time as jump time.
5735         * invoke.texi: Update documentation on dump flags.
5736
5737 2000-04-19  Marek Michalkiewicz  <marekm@linux.org.pl>
5738
5739         * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
5740
5741 2000-04-19  Zack Weinberg  <zack@wolery.cumb.org>
5742
5743         * cpphash.c (special_symbol): Represent an empty macro with
5744         "\r \r " not just "\r ".
5745         (_cpp_macroexpand): Correct condition for the foo ( ) special
5746         case.
5747         (unsafe_chars): Handle EOF as second argument.
5748         (push_macro_expansion): Simplify test for removing escape at
5749         end.  Do not trim both escapes if there is no text in between.
5750
5751 2000-04-19  Jim Blandy  <jimb@redhat.com>
5752
5753         * dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
5754         of PTR_SIZE, when appropriate.
5755
5756 2000-04-19  Mark Mitchell  <mark@codesourcery.com>
5757
5758         * system.h (ONLY_INT_FIELDS): Make sure it is defined.
5759         (USE_ENUM_BITFIELDS): Fix typo.
5760
5761 Wed Apr 19 12:14:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5762
5763         * stor-layout.c (place_field): Set rli->offset_align properly.
5764
5765 2000-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5766
5767         * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
5768         INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
5769         PARM_BOUNDARY): Remove unnecessary casts.
5770
5771 Wed Apr 19 12:02:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5772
5773         * calls.c (precompute_arguments): Remove must_preallocate and
5774         args_size calls.
5775         (expand_call): Update call of precompute_arguments.
5776
5777         * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
5778         check_insn_for_givs): Break out from ...
5779         (strength_reduce) ... here; use for_every_insn_in_loop to call
5780         check_insn_for_givs.
5781         * loop.h (for_every_insn_in_loop): Declare.
5782         (loop_insn_callback): New type.
5783
5784 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
5785
5786         * cpplib.c (do_pragma_poison):  Strings in the token buffer are
5787         not nul-terminated.
5788
5789 Tue Apr 18 16:04:12 2000  Jim Wilson  <wilson@cygnus.com>
5790
5791         * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
5792         flag_pic and RELOC.
5793
5794 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
5795
5796         * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
5797
5798         * configure.in: Delete --disable-cpplib option and all
5799         references to cpp_main.
5800         * configure: Regenerate.
5801         * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
5802         @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
5803         cccp.o, cccp, or cppmain.  Link cppmain.o straight to
5804         cpp$(exeext).  Add --no-headers to makeinfo command line when
5805         generating INSTALL.  Install and uninstall cpp.1 manpage, not
5806         cccp.1.
5807         * install.texi: Delete all references to cexp.y/cexp.c.
5808         Delete ancient instructions for compiling GCC on 3b1.
5809         * INSTALL: Regenerate.
5810
5811         * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
5812         mips/t-elf, mips/t-r3900: Remove references to cccp.c.
5813         * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
5814         cexp.c/cexp.y.
5815         * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
5816         which is no longer tested anywhere.
5817
5818         * cppinit.c (handle_option): Don't run error message through
5819         gettext twice.
5820
5821 Tue Apr 18 14:16:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5822
5823         * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
5824         * cpperror.c (hashtab.h): Now include.
5825         * cppexp.c (hashtab.h): Likewise.
5826         * cpplex.c (hashtab.h): Likewise.
5827         * cppfiles.c (hashtab.h): Likewise.
5828         (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
5829         to htab_find_slot_with_hash.
5830         * cpphash.c (hashtab.h): Now include.
5831         (_cpp_lookup_slot): INSERT is now enum insert_option.
5832         * cpphash.h (_cpp_lookup_slot): Likewise.
5833         * cppinit.c (hashtab.h): Include earlier.
5834         (initialize_builtins): Pass enum to htab_find_slot.
5835         * cpplib.c (hashtab.h): Now include.
5836         (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
5837         (do_pragma_poison, do_assert): Likewise.
5838         * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
5839         htab_find_slot_with_hash.
5840         * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
5841         * tree.c (type_hash_add): Likewise.
5842         (build1): Minor cleanup.
5843
5844         * ggc-common.c: Add missing blanks.
5845         * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
5846         * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
5847
5848         * stmt.c (mark_case_node): New function.
5849         (mark_case_nesting): Call it.
5850
5851         * expmed.c (emit_store_flag): If comparing two-word integer
5852         with zero, can optimize NE, EQ, GE, and LT.
5853
5854         * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
5855         * conflict.c: Minor cleanups.
5856         * optabs.c: Add blank line
5857         * simplify-rtx.c: Minor cleanups.
5858
5859 2000-04-18  Stan Cox  <scox@cygnus.com>
5860
5861         * gengenrtl.c (genlegend): Fix misspelling.
5862
5863 2000-04-18  Robert Lipe  <robertlipe@usa.net>
5864
5865         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
5866         bitfields of the host compiler are not signed quantities.
5867         * config.in: Regenerate.
5868         * configure: Regenerate.
5869         * system.h (USE_ENUM_BITFIELDS): Added.
5870         (ENUM_BITFIELDS): Added.
5871         * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
5872         (SHORT_ENUM_BUG): Deleted.
5873         * tree.h (tree_common): Members `code', `mode', `built_in_class',
5874         now ENUM_BITFIELD.
5875         * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
5876         (CODE_FIELD_BUG): Likewise.
5877         * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
5878         (OLD_CC): Likewise.
5879         * config/m68k/x-ccur (X_CFLAGS): Likewise.
5880
5881 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
5882
5883         * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
5884         mark is active.
5885
5886 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
5887
5888         * cppexp.c (lex): Don't assume tokens are NUL terminated.
5889         * cpplib.c (do_include, do_import, do_include_next,
5890         read_line_number, detect_if_not_defined): Likewise.
5891         * cpphash.c (collect_expansion): Likewise.
5892         (special_symbol, _cpp_macroexpand): Check return from
5893         cpp_file_buffer.
5894         * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
5895         macros.  Delete all uses.
5896
5897         * gcc.dg/cpp-mi.c: Add two more test cases.
5898         * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
5899
5900 2000-04-17  Richard Henderson  <rth@cygnus.com>
5901
5902         * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
5903         (reorder_basic_blocks): If no epilogue in rtl, force last block last.
5904
5905 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
5906
5907         * function.c (expand_function_start): Use hard_function_value to
5908         compute the RTL to use for DECL_RESULT.
5909
5910 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5911
5912         * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
5913         (x86_integer_DFmode_moves, x86_partial_reg_dependency,
5914          x86_memory_mismatch_stall): New global variables.
5915         (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
5916         alloved; fix load penalties for Athlon.
5917         * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
5918         x86_memory_mismatch_stall): Declare.
5919         (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
5920          TARGET_MEMORY_MISMATCH_STALL): New.
5921         * i386.md (athlon scheduling parameters): Fix latencies according to
5922         Athlon Optimization Manual.
5923         (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
5924         vector.
5925         (fsqrt instruction patterns): Set athlon_decode to direct.
5926         (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
5927         PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
5928         (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
5929         and TARGET_PARTIAL_REGISTER_STALL machines.
5930         (pushdf_nointeger): New pattern.
5931         (pushdf_integer): Rename from pushdf.
5932         (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
5933         (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
5934
5935 2000-04-17  Richard Henderson  <rth@cygnus.com>
5936
5937         * loop.c (canonicalize_condition): Add WANT_REG argument.
5938         Stop the search if we match it.
5939         * expr.h (canonicalize_condition): Update decl.
5940         * predict.c (expected_value_to_br_prob): Use it.  Track last
5941         expected value note.
5942         (find_expected_value): Remove.
5943
5944         * reorg.c (mostly_true_jump): Always use BR_PROB if present.
5945
5946 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
5947
5948         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
5949         (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
5950         a plain file.
5951         * configure.in: Call AC_FUNC_MMAP_FILE.
5952         * configure: Regenerate.
5953         * config.in: Regenerate.
5954
5955         * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
5956         * fixinc/fixincl.c: Likewise.
5957
5958 2000-04-17  Richard Henderson  <rth@cygnus.com>
5959
5960         * builtins.c (expand_builtin_expect): New.
5961         (expand_builtin): Call it.
5962         * builtins.def (BUILT_IN_EXPECT): New.
5963         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
5964         * extend.texi: Document it.
5965
5966         * predict.c (expected_value_to_br_prob): New.
5967         (find_expected_value): New.
5968         * basic-block.h (expected_value_to_br_prob): Declare.
5969         * toplev.c (rest_of_compilation): Invoke it.
5970
5971         * rtl.h (NOTE_EXPECTED_VALUE): New.
5972         (NOTE_INSN_EXPECTED_VALUE): New.
5973         * rtl.c (note_insn_name): Update.
5974         * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
5975         cases; handle NOTE_INSN_EXPECTED_VALUE.
5976
5977 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
5978
5979         * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
5980         leaf sibcall delay slot if flag_pic.
5981         (output_sibcall): Always emit call for leaf sibcall if flag_pic.
5982
5983 2000-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5984
5985         * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
5986
5987         * fixproto: If fix-header fails, exit with an error.
5988
5989 Mon Apr 17 14:59:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5990
5991         * cse.c (struct check_depdendence_data): New.
5992         (check_dependence): New function.
5993         (invalidate): Use check_depdenence.
5994
5995 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
5996
5997         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
5998         UNITS_PER_WORD is unsigned.
5999
6000         * tree.h (struct tree_common): Remove misleading comment.
6001
6002 2000-04-16  Dave Pitts  <dpitts@cozx.com>
6003
6004         * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
6005         message in quotes. Otherwise, IBM's make program treats the '#' as the
6006         start of a comment and ignores the remainder of the line.
6007
6008         * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
6009         upper case.
6010         * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
6011         * cexp.y (initialize_random_junk): Likewise.
6012         * cppfiles.c (find_include_file): Cast alloca return value.
6013         * cppinit.c (initialize_standard_includes): Likewise.
6014         * cpplib.c (cpp_define, cpp_undef): Likewise.
6015         * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
6016         * final.c (output_asm_insn): Allow for holes in EBCDIC.
6017         * fold-const.c (CHARMASK): New.
6018         (real_hex_to_f): Use it.
6019         * real.c (CHARMASK): New.
6020         (etoasc, asctoeg): Use it.
6021         (asctoeg): EBCDIC lower case characters preceed upper case.
6022
6023         * i370.c (mvs_add_label): Change spacing for coding conventions.
6024         * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
6025         outputing case vectors.
6026         (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
6027         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
6028         since vector in in the data CSECT.
6029         (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
6030         * i370.md (Many patterns): Put the length in the XL directives.
6031         (movdi): Put back STM and MVC in definition.
6032         (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
6033         pattern using the TCA.
6034         * oe.h (CPP_SPEC): Added to allow trigraphs.
6035         * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
6036         not support the "long long" type.
6037
6038 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
6039
6040         * config/mips/mips-protos.h (mips_legitimate_address_p): New
6041         function.
6042         (mips_reg_mode_ok_for_base_p): Likewise.
6043         * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
6044         (REG_OK_FOR_INDEX_P): Define unconditionally.
6045         (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
6046         (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
6047         * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
6048         that GET_MODE_SIZE is unsigned.
6049         (mips_reg_mode_ok_for_base_p): Define.
6050         (mips_legitimate_address_p): Likewise.  Adjust now
6051         that GET_MODE_SIZE is unsigned.
6052         (block_move_loop): Make the number of bytes unsigned.
6053         (expand_block_move): Likewise.
6054         (function_arg): Make the loop counter unsigned to match the
6055         boundary condition.
6056
6057 2000-04-16  Richard Henderson  <rth@cygnus.com>
6058
6059         * rtl.h (enum insn_note): New enumeration.  Subsume
6060         NOTE_INSN_DELETED and friends.
6061         (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
6062         * rtl.c (note_insn_name): Tweak string order.
6063
6064 2000-04-15  Zack Weinberg  <zack@wolery.cumb.org>
6065
6066         * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
6067         to offset * 2.
6068
6069         * cpplex.c (output_line_command): Remove debugging prints.
6070         (cpp_output_tokens): Don't write out a zero-length buffer or
6071         try to see if it has a newline in it.
6072         (_cpp_expand_to_buffer): Copy the source buffer before pushing.
6073         (_cpp_read_and_prescan): Move shift-down of pushback bytes to
6074         the end of the loop.  Use memmove.  Don't read past the end of
6075         the buffer.  Remove trailing newlines from error messages.
6076
6077 2004-04-16  Neil Booth  <NeilB@earthling.net>
6078
6079         * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
6080         * cpplib.c: Add new syntax flags to directive table, and
6081         supporting macros.
6082
6083 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
6084
6085         * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
6086         using ret $N.
6087
6088 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
6089
6090         * toplev.c (display_help): Prefix "f" to "sched-verbose=".
6091         * haifa-sched.c: Update -fsched-verbose comments to use "=".
6092
6093 Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6094
6095         * Makefile.in (ggc-page.o): Now includes toplev.h.
6096         * ggc-page.c (toplev.h): Now included.
6097         (gc_time): Remove declaration.
6098         (ggc_collect): TIME now long.
6099         * toplev.c (parse_time, varasm_time, gc_time): Still global; all
6100         others static.
6101         * toplev.h (gc_time, parse_time, gc_time): New declarations.
6102
6103         * toplev.c: Make *_time variable long to reduce chance of overflow.
6104         (TIMEVAR): Likewise for `otime'.
6105         (print_time): Arg is now long; compute percentage in FP and round.
6106         * toplev.h (print_time): Arg is long.
6107
6108         * tree.c: Minor whitespace changes.
6109
6110         * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
6111         * configure: Rebuilt.
6112         * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
6113         (__fixunsxfDI): Renamed from __fixunsxfdi.
6114         (__fixunsdfDI): Renamed from __fixunsdfdi.
6115         (__fixunssfDI): Renamed from __fixunssfdi.
6116         (__floatdisf): Use proper type in REP_BIT macro.
6117         (__fixunsxfSI): Renamed from __fixunsxfsi.
6118         (__fixunsdfSI): Renamed from __fixunsdfsi.
6119         (__fixunssfSI): Renamed from __fixunssfsi.
6120         * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
6121         Change location of macros and upper-case some names as above.
6122         * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
6123         * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
6124
6125         * varasm.c (assemble_variable): Add cast to remove warning.
6126         (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
6127
6128         * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
6129         * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
6130         region number to -1.
6131
6132 2000-04-15  Richard Earnshaw (rearnsah@arm.com)
6133
6134         * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
6135         call unshare_all_rtl.
6136
6137         * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
6138
6139 Fri Apr 14 16:58:45 2000  Jim Wilson  <wilson@cygnus.com>
6140
6141         * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
6142         Use .s1 not .s0 for all FP instructions.
6143
6144 2000-04-14  Zack Weinberg  <zack@wolery.cumb.org>
6145
6146         * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
6147         interfaces.
6148         (safe_fwrite, output_line_command): New static functions.
6149         (cpp_expand_to_buffer): Now private to cpplib.
6150         (cpp_scan_buffer): Take a printer.
6151
6152         * cpphash.h: Update prototypes.
6153         * cpplib.h: Update prototypes.
6154         (cpp_printer): New.
6155         (cpp_buffer): Remove last_nominal_fname.
6156         (cpp_reader): Remove lineno.
6157
6158         * cppmain.c: Use a cpp_printer.
6159         * fix-header.c: No need to inhibit line commands.  Call
6160         cpp_start_read with no printer.
6161
6162         * cpperror.c (cpp_notice_from_errno): Provide default name.
6163         * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
6164         (find_include_file, cpp_read_file): Use make_IHASH.
6165         (file_cleanup): Set control_macro and clear
6166         input_stack_listing_current here.
6167         (_cpp_execute_include): Don't output entering-file marker.
6168         * cpphash.c (special_symbol): Look for the line number in the
6169         buffer, not the reader.
6170         (_cpp_macroexpand): No need to disable line commands.
6171         (_cpp_dump_definition): No need to generate line commands.
6172         (dump_hash_helper): Remove excess newline from output.
6173         * cppinit.c (dump_special_to_buffer): No need to generate line
6174         commands.
6175         (cpp_printer_init): New.
6176         (cpp_start_read): Take a printer, and start it up if it's not
6177         NULL.  No need to generate line commands.
6178         (cpp_finish): Expect no buffers stacked at all.  Take a
6179         printer argument, and flush the output buffer if it's not
6180         NULL.
6181         * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
6182         Don't put two hashes at the beginning of an assertion.
6183         (cpp_get_token): Don't increment pfile->lineno or emit line
6184         commands here.  Return EOF if there's no buffer when we get
6185         EOF.
6186         * cpplib.c (do_define, skip_if_group):
6187         No need to disable line commands.
6188         (_cpp_output_line_command): Delete function.
6189         (do_line): Don't emit line commands here, but set things up so
6190         they will be emitted if necessary.  Use _cpp_fake_ihash to
6191         make unique nominal_fnames if necessary.
6192         (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
6193         with 0 for column, not -1.
6194         (_cpp_handle_eof): Don't set the control macro here.  Don't
6195         clear input_stack_listing_current here.  Don't emit line
6196         commands.
6197
6198 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
6199
6200         * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
6201         always, use the default SVR4 start address.
6202
6203         * config/rs6000/linux.h (LINK_SPEC): Don't define.
6204         (LINK_SHLIB_SPEC): Define.
6205         (LINK_START_DEFAULT_SPEC): Define.
6206         (LINK_OS_DEFAULT_SPEC): Define.
6207
6208         * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
6209
6210         * config/rs6000/eabi.asm (__eabi): Call __init rather than
6211         __do_global_ctors to handle constructors.
6212         * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
6213         (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
6214         (STARTFILE_MVME_SPEC): Likewise.
6215         (STARTFILE_SIM_SPEC): Likewise.
6216         (ENDFILE_ADS_SPEC): Use crtend.
6217         (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
6218         (ENDFILE_MVME_SPEC): Likewise.
6219         (ENDFILE_SIM_SPEC): Likewise.
6220         (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
6221         (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
6222         (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
6223         (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
6224         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
6225         (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
6226         (CRTSTUFF_T_CFLAGS_S): Define.
6227         * config/rs6000/eabi-ctors.c: Delete.
6228
6229         * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
6230         boundary.
6231         (__fini): Likewise.
6232         * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
6233         boundary.
6234         (__fini): Likewise.
6235
6236 Fri Apr 14 16:09:02 2000  Jim Wilson  <wilson@cygnus.com>
6237
6238         * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
6239         plus mask size is smaller or equal to the mode size.
6240
6241 Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6242
6243         * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
6244         not yet set.
6245
6246         * expr.c (reload.h): Now included.
6247         (emit_block_move): Set volatile_ok when checking for movstr.
6248         (emit_move_1): Check for replacements in addresses in multi-word case.
6249         * Makefile.in (expr.o): Now includes reload.h.
6250
6251         * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
6252         Never have a LIBCALL end a basic block.
6253         (find_basic_blocks_1): Likewise.
6254         Reorganize CALL_INSN cases.
6255
6256         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
6257
6258 Fri Apr 14 10:54:22 2000  Jim Wilson  <wilson@cygnus.com>
6259
6260         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
6261         completers from mov.ret instruction.
6262
6263 2000-04-14  Richard Henderson  <rth@cygnus.com>
6264
6265         * fold-const.c (extract_muldiv): Don't distribute and widen
6266         multiply across plus for non-sizetype unsigned types.
6267
6268 2000-04-14  Richard Henderson  <rth@cygnus.com>
6269
6270         * flow.c (find_auto_inc): Don't autoinc eliminable registers.
6271         If the original source is dead in the incr insn, it's dead now.
6272
6273 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6274
6275         * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
6276         see if DECL_BIT_FIELD needs to still be set.
6277
6278         * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
6279
6280         * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
6281         print_int_cst_octal with something that's not an INTEGER_CST.
6282
6283         * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
6284         and not a SUBREG to a FLOAT rtl.
6285
6286 Thu Apr 13 19:39:56 2000  Clinton Popetz  <cpopetz@cygnus.com>
6287
6288         * emit-rtl.c (try_split): Avoid infinite loop if the split
6289         results in a sequence that contains the original insn.
6290
6291 2000-04-13  Andreas Jaeger  <aj@suse.de>
6292
6293         * config/mips/mips.c (expand_block_move): Pass alignment
6294         argument to move_by_pieces in bits, not bytes.
6295
6296         * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
6297         __pic__ for little endian.
6298
6299 2000-04-13  Andreas Jaeger  <aj@suse.de>
6300
6301         * config/i386/i386-protos.h: Add prototype for
6302         uno_comparison_operator.
6303
6304 Thu Apr 13 15:55:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6305
6306         * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
6307         * calls.c (ECF_PURE): New flag.
6308         (emit_call_1): Handle ECF_PURE calls.
6309         (initialize_argument_information): Unset ECF_PURE flag too.
6310         (precompute_arguments): Precompute for ECF_PURE too.
6311         (expand_call): Handle ECF_PURE calls too.
6312         (emit_library_call_value_1): Rename no_queue argument to fn_type,
6313         accept value of 2 as pure function.
6314         (emit_library_call_value, emit_library_call): Rename no_queue argument
6315         to fn_type.
6316         * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
6317
6318         * tree.h (DECL_IS_PURE): New macro.
6319         (struct tree_decl): Add pure_flag.
6320         * c-common.c (enum attrs): Add attribute "pure".
6321         (init_attributes): Initialize attribute "pure"
6322         (decl_attributes): Handle attribute "pure".
6323         * extend.texi (Attribute "pure"): Document.
6324         * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
6325         in pure function.
6326         (flags_from_decl_or_type): Support attribute "pure".
6327
6328 2000-04-13  Jason Merrill  <jason@casey.cygnus.com>
6329
6330         * cpplex.c (_cpp_lex_token): Handle digraphs.  Don't null-terminate
6331         the token except for numbers and identifiers.
6332
6333 Thu Apr 13 00:09:16 EDT 2000  John Wehle  (john@feith.com)
6334
6335         * i386.c (ix86_expand_binary_operator,
6336         ix86_expand_unary_operator): Check no_new_pseudos
6337         instead of reload_in_progress and reload_completed.
6338         (ix86_split_ashldi, ix86_split_ashrdi,
6339         ix86_split_lshrdi): Check no_new_pseudos instead
6340         of reload_completed.
6341
6342 2000-04-12  Jeffrey A Law  (law@cygnus.com)
6343
6344         * function.c (purge_addressof): Unshare any shared rtl created by
6345         purge_addressof and its children.
6346
6347 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
6348
6349         * function.c (aggregate_value_p): VOID_TYPE nodes are never
6350         aggregates.
6351
6352 2000-04-05  Andreas Jaeger  <aj@suse.de>
6353
6354         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
6355         not compiling PIC code, add flags for mabi=64.
6356         (SUBTARGET_CPP_SIZE_SPEC): New.
6357         (SUBTARGET_CPP_SPEC): New.
6358         (CPP_PREDEFINES): Define __PIC__ and __pic__.  PIC code is default
6359         for MIPS/Linux and lots of code needs these defines.
6360
6361 Wed Apr 12 22:44:11 2000  Hans-Peter Nilsson  <hp@axis.com>
6362
6363         * reorg.c (fill_slots_from_thread): Check side_effects_p when
6364         trying the "opposite arithmetic" approach.
6365
6366 Wed Apr 12 20:51:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6367
6368         * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
6369         (struct sh_args): Add new field force_mem.
6370         (INIT_CUMULATIVE_ARGS): Initialize it.
6371         (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
6372
6373 Wed Apr 12 17:20:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6374
6375         * calls.c (expand_call): Do not reverse args in "equal from" field.
6376         (emit_library_call_value_1): Emit_libcall_block for const and pure
6377         function.
6378
6379 Wed Apr 12 16:00:25 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6380
6381         * reload1.c (reload_combine): Don't enable optimization for fixed
6382         registers when encountering a BARRIER.
6383
6384 Wed Apr 12 15:54:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6385
6386         * builtins.c (expand_builtin_memcmp): Do expansion even with
6387         !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
6388
6389         * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
6390         stack is propertly aligned; add sanity checking for aligned
6391         stack pointer.
6392         (expand_library_call_value_1): Add sanity checking for aligned
6393         stack pointer.
6394
6395 Wed Apr 12 07:51:54 2000  Catherine Moore  <clm@cygnus.com>
6396
6397         * calls.c (emit_library_call_value_1): Change 3rd arg to
6398         locate_and_pad_parm to disregard the setting of partial.
6399
6400 Wed Apr 12 08:47:38 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6401
6402         * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
6403
6404         * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
6405         CALL_INSN from the normal case.
6406
6407 Fri Apr  7 12:23:04 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6408
6409         * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
6410         New global variables.
6411         (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
6412         adjustment.
6413         * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
6414         Declare,
6415         (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
6416          TARGET_ADD_ESP_8): New macros.
6417         * i386.md: Add peep2s to convert esp adjustments to push and pop
6418         instructions.
6419         (pushsi_prologue, popsi_epilogue): New patterns.
6420
6421 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
6422
6423         * real.c (toe64): Remove stale #endif from the last change.
6424
6425 2000-04-12  Stephen L Moshier  <moshier@mediaone.net>
6426
6427         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
6428         * real.c (toe64): Revert previous change.
6429
6430 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
6431
6432         * objc/objc-act.c: Include ggc.h.
6433         (objc_tree_index, objc_global_trees): Convert most of the
6434         static tree variables into a static array with previous names
6435         as defines.
6436         (objc_ellipsis_node): New variable.
6437         (lang_init): Call objc_act_parse_init and c_parse_init.
6438         Create objc_ellipsis_node.
6439         (build_selector_translation_table): Use objc_ellipsis_node instead
6440         of (tree)1.
6441         (hack_method_prototype): Likewise.
6442         (get_arg_type_list): Likewise.
6443         (start_method_def): Likewise.
6444         (continue_method_def): Likewise.
6445         (gen_method_decl): Likewise.
6446         (ggc_mark_imp_list): New function.
6447         (ggc_mark_hash_table): New function.
6448         (objc_act_parse_init): New function.
6449         * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
6450         * c-parse.in (c_parse_init): For objc add roots of objc specific
6451         local tree variables.
6452         * objc/objc-parse.y: Rebuilt.
6453         * objc/objc-parse.c: Rebuilt.
6454         (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
6455
6456 Wed Apr 12 01:00:44 EDT 2000  John Wehle  (john@feith.com)
6457
6458         * cse.c (delete_trivially_dead_insns): Also delete insns
6459         that copy a register to itself where the destination is
6460         a strict_low_part.
6461
6462 2000-04-11  Richard Henderson  <rth@cygnus.com>
6463
6464         * flow.c (struct propagate_block_info): Add new_dead, new_live.
6465         (propagate_block): Initialize them.  Use them in parallel instead
6466         of one tmp variable, ie revert much of the 0408 and 0407 functional
6467         changes, but keep the structural changes.
6468         (mark_set_regs): Take new_dead from propagate_block_info instead.
6469         (mark_set_1, mark_set_reg): Likewise.
6470         (mark_used_regs): Likewise with new_live.
6471         (mark_used_reg): Likewise.  Revert 0408 change.
6472
6473 2000-04-11  Nick Clifton  <nickc@cygnus.com>
6474
6475         * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
6476         restriction.
6477         (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
6478
6479 2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6480
6481         * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
6482         const section to output a CONSTRUCTOR based on the same conditions
6483         used for VAR_DECLs.
6484
6485 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
6486
6487         * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
6488         * pa/pa-protos.h (output_call): Add additional argument indicating
6489         if the call is a sibling/tail call.
6490         (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
6491         (compute_64bit_ior, cmpib_comparison_operator): Likewise.
6492         (function_arg, function_arg_partial_nregs): Likewise
6493         * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
6494         (emit_move_sequence): Zero extend certain constants as needed
6495         for TARGET_64BIT.
6496         (compute_zdepdi_operands, output_64bit_and): New functions.
6497         (output_64bit_ior, function_arg): Likewise.
6498         (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
6499         (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
6500         (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
6501         (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
6502         (output_bvb): Likewise.
6503         (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
6504         (output_call): New argument 'sibcall'.  Generate sibcall sequences
6505         as needed.
6506         (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT.  For
6507         (ouput_arg_descriptor): Do not emit argument descriptors for
6508         TARGET_64BIT.
6509         * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
6510         defined.
6511         (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
6512         (FUNCTION_OK_FOR_SIBALL): Define.
6513         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
6514         (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
6515         (CPP_SPEC): Use new spec infrastructure.
6516         (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
6517         (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
6518         (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
6519         (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
6520         (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
6521         (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
6522         (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
6523         (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
6524         (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
6525         (FUNCTION_ARG); Call out to C code.
6526         (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6527         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
6528         (MIN_UNITS_PER_WORD): Likewise.
6529         * pa/pa.md (cmpdi): New expander.
6530         (scc patterns, movstrsi): Not available for TARGET_64BIT.
6531         (64bit conditional arithmetic): New patterns.
6532         (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
6533         (movsicc): Not available if modes on all the operands to not match.
6534         (movdicc): New expander and associated patterns.
6535         (64bit branches): New patterns.
6536         (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
6537         (pre_ldd, post_std): New patterns.
6538         (64bit addil, load low part): New patterns.
6539         (special movsf constant): Not available for TARGET_64BIT.
6540         (movsf, movdf expanders): Force constants into memory.
6541         (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
6542         (64bit movdf/movdi patterns): New patterns.
6543         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
6544         for TARGET_64BIT.
6545         (extendqidi2, extendhidi2, extendsidi2): Similarly.
6546         (adddi3 expander): Allow "arith_operand" for second input.
6547         (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
6548         (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
6549         (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
6550         (muldi3): New expander for TARGET_64BIT.
6551         (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
6552         for TARGET_64BIT.
6553         (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
6554         patterns for TARGET_64BIT.
6555         (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
6556         patterns for TARGET_64BIT.
6557         (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
6558         (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
6559         (sibcall_epilogue): New expander.
6560         (casesi): Tweak for TARGET_64BIT.
6561         (call expanders): Set & use the outgoing argument pointer.  Use the
6562         64bit call patterns as needed. Add additional arg to output_call.
6563         (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
6564         (sibcall, sibcall_internal_symref): New expanders.
6565         (sibcall_value, sibcall_value_internal_symref
6566         (interspace_jump): Turn into an expander + matching patterns.
6567         (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
6568         * pa/pa64-regs.h: Eliminate trigraph sequences.
6569         * pa/pa64-start.h (TARGET_PA_20): Fix typo.
6570
6571 2000-04-11  Zack Weinberg  <zack@wolery.cumb.org>
6572
6573         * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
6574         cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
6575         cpp_token with cpp_ttype everywhere.
6576         * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
6577         Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
6578         CPP_BUF_COL.  Line and column numbers are unsigned int, not
6579         long.
6580         * cpplex.c (cpp_buf_line_and_col): Delete.
6581         * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
6582         'long lineno' to 'unsigned int lineno'.
6583         (CPP_BUF_LINE, CPP_BUF_COL): New macros.
6584
6585 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6586
6587         * extend.texi: ISO C99 is not a draft anymore.
6588         * invoke.texi: ISO C++ is not a draft anymore.
6589         * cpp.texi: __cplusplus is required by the ISO standard.
6590
6591         * extend.texi (-fthis-is-variable): Undocument.
6592         * flags.h (warn_template_debugging): Remove declaration.
6593         * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
6594         -Wenum-clash, -Wtemplate-debugging): Undocument.
6595
6596 2000-04-10  Nick Clifton  <nickc@cygnus.com>
6597
6598         * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
6599         integer.
6600         (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
6601         integer.
6602         (ARM_SIGN_EXTEND): Use HOST_UINT.
6603         (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
6604         (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
6605         (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
6606         (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
6607
6608         * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
6609         (arm_gen_constant): Use HOST_UINT.
6610         (arm_canonicalize_constant): Use HOST_UINT.
6611         (arm_reload_in_hi): Use HOST_UINT.
6612         (arm_reload_out_hi): Use HOST_UINT.
6613         (output_multi_immediate): Use HOST_UINT.
6614         (int_log2): Use HOST_UINT.
6615         (arm_poke_function_name): Use HOST_UINT.
6616         (arm_output_epilogue): Use arm_volatile_func().
6617         (output_thumb_prologue): Use arm_strip_name_encoding().
6618
6619 Mon Apr 10 15:40:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6620
6621         * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
6622         of sequence point problems.
6623
6624 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
6625
6626         * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
6627         Recomment.
6628         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
6629
6630 Mon Apr 10 07:21:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6631
6632         * sbitmap.h: Whitespace changes and use upper-case macro args.
6633         (struct simple_bitmap_def): All sizes now unsigned.
6634         (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
6635         * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
6636         (sbitmap_vector_alloc): Parms and local vars now unsigned.
6637         (sbitmap_zero): Cast bzero arg to PTR.
6638         (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
6639         (sbitmap_union_of_diffs): Change loop index to unsigned and rework
6640         loop to make structure clearer.
6641         (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
6642         (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
6643         (sbitmap_a_and_b_or_c): Likewise.
6644         (sbitmap_intersection_of_succs): Minor cleanups.
6645         (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
6646         (sbitmap_union_of_preds): Likewise.
6647         (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
6648         (debug_sbitmap): New function.
6649
6650         * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
6651         * c-typeck.c (convert_for_assignment): Likewise.
6652
6653         * expmed.c (init_expmed): Don't free objects we make.
6654         * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
6655
6656         * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
6657         (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
6658
6659         * gcse.c (expr_hash_table_size): Now unsigned.
6660         (compute_ae_gen): Local variable `i' now unsigned.
6661         (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
6662         (compute_transout, hoist_code): Likewise.
6663         (compute_local_properties): Likewise, also hash_table_size.
6664         (alloc_expr_hash_table): N_INSNS now unsigned.
6665         (delete_null_pointer_checks): Mark arg F as unused.
6666
6667         * regrename.c: Minor cleanups, including chang some variables
6668         to unsigned int.
6669
6670 2000-04-10  Neil Booth  <NeilB@earthling.net>
6671
6672         * cpplex.c (skip_block_comment): Use pointer arithmetic rather
6673         than GETC ().
6674         * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
6675
6676 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6677
6678         * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
6679         __classof__, and __headof__ from the list of gnu keywords.
6680         (-ansi): Remove -foperator-names from list of implied options.
6681         Do not call it ANSI C++.
6682         (-foperator-names): Document as -fno-operator-names.
6683
6684 2000-04-09  Zack Weinberg  <zack@wolery.cumb.org>
6685
6686         * cpphash.c (timestamp): Delete.
6687         (del_HASHNODE): If type is T_MCONST, free value.cpval.
6688         (special_symbol): Remove unnecessary braces.  Remove
6689         T_VERSION.  Treat T_STDC like T_CONST unless
6690         STDC_0_IN_SYSTEM_HEADERS.  Render both __DATE__ and __TIME__
6691         when one is encountered, then convert them into T_MCONST
6692         nodes.
6693         * cppinit.c (builtin_array): version_string is T_MCONST.
6694         __STDC__ has a "1" in its cpval.  Don't have a terminator
6695         entry.  Clean up which entries are dumped.
6696         (initialize_builtins): Only __STDC__ gets the special
6697         -traditional treatment.  Count the length of builtin_array.
6698         Render version_string here.
6699         * cpphash.h: Remove T_VERSION.  Add T_MCONST.
6700         * cpplib.h (struct cpp_reader): Remove timebuf.
6701
6702 2000-04-09  Richard Henderson  <rth@cygnus.com>
6703
6704         * genrecog.c (pred): Update comparison_operator for the unordered
6705         operators.
6706
6707         * config/i386/i386.c (no_comparison_operator): Disallow unordered
6708         operators.
6709         (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
6710         (uno_comparison_operator): New.
6711         (put_condition_code): Handle UNORDERED/ORDERED.
6712         (unsigned_comparison): Likewise.
6713         (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
6714         (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
6715         (ix86_expand_fp_compare): Use them.  Take scratch as argument,
6716         update all callers.  Handle all 8 unordered operators.
6717         (ix86_expand_setcc): Lose the unordered argument, update all callers.
6718         (ix86_expand_branch): Likewise.  Don't fully expand fp branches.
6719         * config/i386/i386.h (PREDICATE_CODES): Update.
6720         * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
6721         (ix86_expand_branch, ix86_expand_setcc): Update.
6722         * config/i386/i386.md (sunordered, sordered): New.
6723         (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
6724         (bunordered, bordered): New.
6725         (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
6726         (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
6727         (*fp_jcc_5, *fp_jcc_6, and splitters): New.
6728
6729 2000-04-09  Philip Blundell  <philb@gnu.org>
6730
6731         * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
6732
6733 Sun Apr  9 15:16:14 EDT 2000  John Wehle  (john@feith.com)
6734
6735         * i386.md (fix_truncsfhi2, fix_truncdfhi2,
6736         fix_truncxfhi2): New patterns.
6737         * i386.c (output_fix_trunc): Handle converting to HImode.
6738
6739 2000-04-08  Alex Samuel  <samuel@codesourcery.com>
6740
6741         * ssa.c (convert_to_ssa): Eliminate dead code when calling
6742         life_analysis.
6743         (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
6744         (for_each_successor_phi): Change parameter to basic_block.
6745         (coalesce_regs_in_successor_phi_nodes): Likewise.
6746         (coalesce_regs_in_copies): Likewise.
6747         (compute_coalesced_reg_partition): Use basic_block instead of index.
6748         * rtl.h (convert_to_ssa): Delete.
6749         (convert_from_ssa): Likewise.
6750         (successor_phi_fn): Likewise.
6751         (for_each_successor_phi): Likewise.
6752         (in_ssa_form): Likewise.
6753         * basic-block.h (convert_to_ssa): Moved from rtl.h.
6754         (convert_from_ssa): Likewise.
6755         (successor_phi_fn): Likewise.
6756         (in_ssa_form): Likewise.
6757         (for_each_successor_phi): Likewise.  Change parameter to basic_block.
6758         * flow.c (calculate_global_regs_live): Pass a basic_block to
6759         for_each_successor_phi.
6760
6761 2000-04-08  Richard Henderson  <rth@cygnus.com>
6762
6763         * flow.c (mark_used_reg): Use reg_set_p to determine if a register
6764         was modified in the current insn.
6765
6766 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6767
6768         * arm/thumb.md: Delete.
6769         * arm/thumb-protos.h: Delete.
6770
6771 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6772
6773         Merge changes from merged-arm-thumb-backend-branch onto trunk.
6774
6775         2000-04-08  Richard Earnshaw (rearnsha@arm.com)
6776
6777         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
6778         into branch.
6779
6780         * arm.md (nop): Use the standard RTL expression.  Don't code as a
6781         define_expand.
6782         (*arm_nop, *thumb_nop): Delete.
6783
6784         * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
6785         constants.  Use casts instead.
6786         (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
6787         output_multi_immediate, arm_poke_function_name): Likewise.
6788         * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
6789         MASK_RETURN_ADDDR): Likewise.
6790
6791         2000-03-31  Richard Earnshaw (rearnsha@arm.com)
6792
6793         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
6794         into branch.
6795
6796         * arm.md (eh_epilogue): New function.
6797         * arm.h (struct machine_function): Move to here ...
6798         * arm.c: ... from here.
6799         (arm_output_epilogue): Support epilogues for __builtin_eh_return.
6800         (thumb_exit): Extra parameter eh_ofs.  All callers changed.
6801         Handle epilogues for __builtin_eh_return.  Make bit-fields unsigned.
6802
6803         2000-03-30  Nick Clifton  <nickc@cygnus.com>
6804
6805         * config/arm/semi.h (ASM_SPEC): Restore definition.
6806         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
6807
6808         * config/arm/elf.h (ASM_SPEC): Restore definition.
6809         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
6810
6811         * config/arm/arm.h (ASM_SPEC): Remove definition.
6812         (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
6813
6814         2000-03-26  Bernd Schmidt <bernds@cygnus.co.uk>
6815
6816         * config/arm/arm.c: Disable -fschedule-insns for Thumb.
6817
6818         2000-03-24  Nick Clifton  <nickc@cygnus.com>
6819
6820         Various formating tidyups, elimination of compile time
6821         warnings and synchronisation with internal sources:
6822
6823         * config/arm/arm-protos.h (assemble_align): Add prototype.
6824         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
6825         (gen_comapre_reg): Rename to arm_gen_compare_reg.
6826         (arm_return_addr_rtx): Rename to arm_return_addr.
6827
6828         * config/arm/arm.c: Include except.h.
6829         Define shorter typenames for strict minipool_node and struct
6830         minipool_fix.
6831         (arm_return_in_memory): For WinCE return all structures <= 32 bits
6832         in memory.
6833         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
6834         (gen_comapre_reg): Rename to arm_gen_compare_reg.
6835
6836         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6837         already defined.
6838         (ASM_SPEC): Define if not already defined.
6839         (ASM_OUTPUT_DEF_FROM_DECLS): Define.
6840
6841         * config/arm/arm.md: Rename references to gen_rotated_half_load to
6842         arm_gen_rotated_half_load, and references to gen_comapre_reg to
6843         arm_gen_compare_reg.
6844         (indirect_jump):  Only accept register operands.
6845         (load_indirect_jump): Keep this pattern since combine can generate
6846         it.
6847
6848         * config/arm/coff.h: Include aout.h.
6849         (MULTILIB_DEFAULTS): Only define if not already defined.
6850
6851         * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
6852         into arm.h (so that COFF ports can support thumb based aliases).
6853         (ASM_SPEC): Move definition into arm.h
6854
6855         * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
6856         redundant apcs spec.
6857         (ASM_SPEC): Move definition to arm.h
6858
6859         * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
6860
6861         * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
6862         for entries in the .bss section
6863
6864         2000-03-23  Nick Clifton  <nickc@cygnus.com>
6865
6866         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
6867         to thumb_far_jump_used_p.
6868
6869         * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
6870         single integer parameter.
6871
6872         * config/arm/arm.c (struct machine_function): Add two new
6873         fields, 'far_jump_used' and 'arg_pointer_live'.
6874         (thumb_far_jump_used_p): Once the decision has been made that
6875         far jumps might be used, always return true.
6876         If being called from the initial elimination offset macro then
6877         do not bother to perform the test if the arg pointer is not
6878         being used.
6879         (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
6880         (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
6881
6882         2000-03-23  Richard Earnshaw (rearnsha@arm.com)
6883
6884         * arm.c (output_return_instruction): Handle more cases where we can
6885         return from a function with an ldr instruction.
6886         (arm_output_epilogue): Likewise.
6887
6888         * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
6889         if we need to push a large stack frame and there are no callee-saved
6890         registers.
6891
6892         * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
6893         in ARM code if the frame pointer has been eliminated.
6894
6895         * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
6896         unspec_volatile arguments to avoid duplicates.
6897         (consttable_1, consttable_2): Fixes for big-endian mode.
6898
6899         * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
6900         as appropriate.
6901
6902         Re-write constant pool code.
6903         * arm.c (minipool_node, minipool_fix): New types.
6904         (minifix): Delete type.
6905         (arm_add_minipool_constant): Delete.
6906         (arm_compute_minipool_offsets, arm_find_barrier,
6907         arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
6908         (get_jump_table_size): Now returns HOST_WIDE_INT.
6909         (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
6910         functions.
6911         (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
6912         (assign_minipool_offsets, arm_print_value): Likewise.
6913         (dump_minipool): Rewrite.
6914         (arm_barrier_cost): New function.
6915         (create_fix_barrier): New function.
6916         (push_minipool_barrier): New function.
6917         (push_minipool_fix): Record additional information about the fixup
6918         required.
6919         (note_invalid_constants): Remove push for (UNSPEC 3).  Don't
6920         check the mode of what needs fixing.
6921         (arm_reorg): Rewrite.
6922
6923         2000-03-08  Nick Clifton  <nickc@cygnus.com>
6924
6925         * config/arm/arm.md (indirect_jump): Force constant addresses into
6926         a register.
6927
6928         2000-03-01  Bernd Schmidt <bernds@cygnus.co.uk>
6929
6930         * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
6931
6932         2000-02-24  Nick Clifton  <nickc@cygnus.com>
6933
6934         * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
6935         adjust is word aligned.
6936         (thumb_expand_epilogue): Make sure that stack adjust is word
6937         aligned.
6938
6939         * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
6940
6941         2000-02-24  Bernd Schmidt <bernds@cygnus.com>
6942
6943         * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
6944         pointer relative addresses.
6945
6946         2000-02-10  Richard Earnshaw  <rearnsha@arm.com>
6947
6948         * arm.c (find_barrier): Find the last barrier within the allowed
6949         range.
6950
6951         2000-02-09  Nick Clifton  <nickc@cygnus.com>
6952
6953         * config/arm/arm-protos.h: Replace PROTO with PARAMS.
6954
6955         2000-02-09  Nick Clifton  <nickc@cygnus.com>
6956
6957         * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
6958         ARM_FUNCTION_PROFILER.
6959
6960         * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
6961         ARM_FUNCTION_PROFILER.
6962
6963         * config/arm/linux-oldld.h: Imported from mainline sources.
6964
6965         2000-02-07  Nick Clifton  <nickc@cygnus.com>
6966
6967         * config/arm/lib1funcs.asm: Merge in thumb functions from
6968         lib1thumb.asm.
6969
6970         * config/arm/lib1thumb.asm: Delete.
6971
6972         2000-02-04  Nick Clifton  <nickc@cygnus.com>
6973
6974         * config/arm/arm.c: Sychronised with current Red hat local
6975         sources.
6976         * config/arm/arm.h: Ditto.
6977         * config/arm/arm-protos.h: Ditto.
6978
6979         2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
6980
6981         * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
6982
6983         * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
6984         byte stores.
6985
6986         2000-02-02  Nick Clifton  <nickc@cygnus.com>
6987
6988         * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
6989
6990         * config/arm/arm.md (epilogue): Fix rtl checking abort because
6991         (return) was emited using an emit_insn() call.
6992
6993         2000-01-31  Nick Clifton  <nickc@cygnus.com>
6994
6995         * config/arm/arm.c (output_thumb_prologue): Fix bug generating
6996         thumb stack frame.
6997         (thumb_exit): Move frame pointer back into hard frame pointer
6998         register if backtracing is being used.
6999
7000         2000-01-13  Richard Earnshaw (rearnsha@arm.com)
7001
7002         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
7003         into branch.
7004
7005         1999-12-15  Bernd Schmidt  <bernds@cygnus.co.uk>
7006
7007         * config/arm/arm.md (neg_pool_offset): Provide default for new
7008         attribute.
7009         (arm_movsi_insn): Add neg_pool_offset attribute.
7010         * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
7011         rtx for the insn that starts the scan and an unsigned long for its
7012         address.  Add MIN_OFFSET and PINSERTED args.  All callers changed.
7013         Change scan to ignore insns before MIN_OFFSET.  Store size of inserted
7014         instructions in *PINSERTED.
7015         (struct minipool_fixup): Add MIN_ADDRESS elt.
7016         (sort_fixups): Compute it.
7017         (arm_reorg): Changes to support inserting pools before the insn to be
7018         fixed up.
7019
7020         1999-12-08  Bernd Schmidt  <bernds@cygnus.co.uk>
7021
7022         * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
7023         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
7024         * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
7025
7026         Wed Nov  3 10:04:07 1999  Nick Clifton  <nickc@cygnus.com>
7027
7028         * config/arm/semi.h (TARGET_VERSION): Do not define if already
7029         defined.
7030         (TARGET_DEFAULT): Do not define if already defined.
7031
7032         Tue Nov  2 10:37:25 1999  Nick Clifton  <nickc@cygnus.com>
7033
7034         * config/arm/arm.md (anddi3): Allow disjoint source operands.
7035         (iordi3): Allow disjoint source operands.
7036         (xordi3): Allow disjoint source operands.
7037         (negdi2): Permit construction for ARM and Thumb.
7038         (arm_negdi2): Renamed version of old negdi2 pattern.
7039         (thumb_negdi2): New pattern: Only permit non-overlapping
7040         source and destination.
7041
7042         Fri Oct 29 18:52:38 1999  Nick Clifton  <nickc@cygnus.com>
7043
7044         * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
7045         scratch low register so that it will not be deleted.
7046
7047         Fri Oct 29 15:23:48 1999  Nick Clifton  <nickc@cygnus.com>
7048
7049         * config/arm/pe.h (ARM_PE): Define.
7050
7051         * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
7052         interfacearm attribute if this is a PE toolchain.
7053         (output_return_instruction): Do not emit anything if the function
7054         has the naked attribute set.
7055         (is_called_in_ARM_mode): If the function has the interfacearm
7056         attribute then return true.
7057         (thumb_expand_prologue): Do not generate a prologue for naked
7058         functions.
7059         (thumb_expand_epilogue): Do not generate an epilogie for a naked
7060         function.
7061         (output_thumb_prologue): Do not bother if the function is naked.
7062         Strip PE encoding from function name before emitting.
7063
7064         Thu Oct 28 11:05:13 1999  Richard Earnshaw <rearnsha@arm.com>
7065
7066         * arm.md (pic_load_addr): Fix constraints.
7067
7068         * arm.md (casesi_insn): Fix mis-applied patch.
7069
7070         * arm.md ("core" function unit): Add rules for single- and
7071         multi-cycle insns.
7072         (All TARGET_THUMB patterns): Add "type" attribute information
7073         where needed.
7074         * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
7075         the following insn is a CALL.
7076
7077         * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
7078         pointer.
7079         * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
7080         ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
7081         (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
7082
7083         Wed Oct 27 14:40:48 1999  Nick Clifton  <nickc@cygnus.com>
7084
7085         * config/arm/linux-gas.h: oops - this file was missed out when the
7086         branch was created...
7087
7088         Tue Oct 26 17:07:38 1999  Richard Earnshaw <rearnsha@arm.com>
7089
7090         * thumb.c: Deleted.  Move contents to ...
7091         * arm.c: ... here.
7092         * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
7093         rule for thumb.o
7094         * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
7095         * configure: Regen.
7096
7097         * arm-protos.h: Use RTX_CODE and tidy up long lines.  Don't
7098         declare a prototype for asm_output_align();
7099
7100         * arm.c (thumb_condition_code): Delete.
7101         (arm_print_operand): Always use arm_condition_code array.
7102
7103         * arm.c (thumb_return_addr_rtx): Delete.
7104         (arm_save_machine_status, arm_restore_machine_status): Delete.
7105         (arm_init_machine_status, arm_mark_machine_status): New functions.
7106         (arm_init_expanders): Update accordingly.
7107         (arm_return_addr): Renamed from arm_return_addr_rtx.  Rewrite.
7108         (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
7109         * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
7110
7111         Tue Oct 26 13:24:16 1999  Nick Clifton  <nickc@cygnus.com>
7112
7113         * configure.in : Fix arm-*-aout target to use new t-arm-aout
7114         script.
7115         * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
7116         targets.
7117
7118         Tue Oct 26 11:27:12 1999  Nick Clifton  <nickc@cygnus.com>
7119
7120         * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
7121         stack backtrace structure.
7122
7123         * config/arm/arm-protos.h: Add prototypes for functions defined in
7124         arm/pe.h.
7125
7126         * config/arm/arm.c (arm_override_options): Fix selection of
7127         attributes of default processor.
7128
7129         * config/arm/coff.h: Delete needless #include.
7130
7131         * config/arm/pe.c: Delete unused code.
7132
7133         * config/arm/pe.h (CPP_DEFINES): Delete
7134         (SUBTARGET_CPP_SPEC): Define.
7135         (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
7136
7137         * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
7138
7139         Mon Oct 25 15:42:09 1999  Richard Earnshaw (rearnsha@arm.com)
7140
7141         * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
7142         updated.
7143         (CAN_DEBUG_WITHOUT_FP): Define.
7144         (FIXED_REGISTERS): Make r11 call-saved.
7145         (CALL_USED_REGISTERS): Likewise.
7146         (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
7147         (FRAME_POINTER_REQUIRED): Correct logic for determining when a
7148         frame-pointer is required.
7149         (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
7150         * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
7151         if the target normally needs a stack frame in non-leaf functions.
7152         (use_return_insn): Correct logic for determining when a return
7153         instruction can be used.
7154         (output_return_instruction): Handle the frame-pointer register as
7155         a normal register when not TARGET_APCS_FRAME.
7156         (arm_output_prologue): Likewise.
7157         (arm_output_epilogue): Likewise.
7158         (output_func_epilogue): Likewise.
7159         (arm_expand_prologue): Likewise.
7160         * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
7161
7162         * arm.c (use_return_insn): No need to check floating point regs if
7163         TARGET_SOFT_FLOAT.
7164         (arm_find_minipool_constant): Correct typo; use GET_CODE to get
7165         the code of value stored in the minipool array.
7166         (arm_add_minipool_constant): Likewise.
7167
7168 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7169
7170         * basic-block.h (conflict_graph_enum_fn): K&R fix.
7171
7172 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7173
7174         * tree.c (tree_expr_nonnegative_p): New function.
7175
7176         * tree.h (tree_expr_nonnegative_p): Declare.
7177
7178         * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
7179         elide some sign_compare warnings.
7180         (build_conditional_expr): Likewise.
7181
7182 Sat Apr  8 00:21:51 EDT 2000  John Wehle  (john@feith.com)
7183
7184         * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
7185
7186         * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
7187         * i386.c (print_operand): Use the proper suffix for a 387 HImode
7188         operand.  Abort if a 387 operand has an unsupported size.
7189
7190 2000-04-08  Neil Booth  <NeilB@earthling.net>
7191
7192         * cppexp.c (parse_charconst): Null does not end character
7193         constants.
7194         * cppinit.c (ISTABLE): Null character handled as whitespace.
7195         * cpplex.c (null_warning):  new function.
7196         (skip_string): Emit warning if nulls encountered.
7197         (_cpp_skip_hspace): Emit warning if nulls encountered.
7198         (_cpp_lex_token): Emit warning if nulls encountered.  Drop
7199         them.
7200         * cpp.texi: Update.
7201
7202 2000-04-07  Richard Henderson  <rth@cygnus.com>
7203
7204         * flow.c (loop_depth): Remove.
7205         (reg_next_use, cc0_live, mem_set_list): Replace with ...
7206         (struct propagate_block_info): New.
7207         (life_analysis): Don't allocate reg_next_use.
7208         (propagate_block_delete_insn): Break out of propagate_block.
7209         Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
7210         (propagate_block_delete_libcall): Likewise.
7211         (propagate_block): Create a propagate_block_info struct to pass
7212         to subroutines.  Allocate one not two temporary regsets.  Don't
7213         clobber memory for const calls.  Look for clobbers in
7214         CALL_INSN_FUNCTION_USAGE.
7215         (mark_set_regs): Recognize COND_EXEC.
7216         (mark_set_reg): Break out of mark_set_1.
7217         (mark_used_reg): Break out of mark_used_regs.
7218         (mark_used_regs): Recognize COND_EXEC.
7219         (insn_dead_p): Use propagate_block_info struct.
7220         (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
7221         (find_auto_inc, try_pre_increment_1): Likewise.
7222         (print_rtl_with_bb): Dump regs live at end too.
7223         (count_reg_sets_1): Pass in loop_depth.
7224         (count_reg_sets, count_reg_references): Likewise.
7225         (recompute_reg_usage): Provide it.
7226
7227 2000-04-07  Richard Henderson  <rth@cygnus.com>
7228
7229         * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
7230         not the raw files.
7231
7232 2000-04-07  Zack Weinberg  <zack@wolery.cumb.org>
7233
7234         * cpplib.c (do_elif): Skip the rest of the line if we're
7235         not going to bother evaluating it.
7236         (skip_if_group): Clear pfile->only_seen_white.  Reorder loop
7237         to avoid pointless calls to the lexer.
7238
7239 Fri Apr  7 11:50:54 2000  Jim Wilson  <wilson@cygnus.com>
7240
7241         * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
7242
7243 2000-04-07  Jason Merrill  <jason@casey.cygnus.com>
7244
7245         * calls.c (expand_call): emit_queue if we're trying a sibcall.
7246
7247 2000-04-07  Jakub Jelinek  <jakub@redhat.com>
7248
7249         * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
7250
7251 2000-04-06  Geoff Keating  <geoffk@cygnus.com>
7252
7253         * Makefile.in: Build crtbeginS and crtendS like crtbegin and
7254         crtend so they can be multilibbed.
7255         (STAGESTUFF): Remove s-crt and s-crtS.
7256
7257 2000-04-07  Richard Henderson  <rth@cygnus.com>
7258
7259         * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
7260         if we discover we need a pseudo and no_new_pseudos is true.
7261         * config/alpha/alpha.md (ne:DI insn): New.
7262         (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
7263
7264 2000-04-07  Richard Henderson  <rth@cygnus.com>
7265
7266         * rtl.def (COND_EXEC): New.
7267         * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
7268         * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
7269
7270         * genconfig.c (have_cond_arith_flag): Remove.
7271         (have_cond_exec_flag): New.
7272         (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
7273         (main): Print HAVE_conditional_execution.
7274
7275         * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
7276         (sched_analyze_insn, print_pattern): Likewise.
7277         * reload.c (find_equiv_reg): Likewise.
7278         * rtlanal.c (reg_referenced_p): Likewise.
7279         (note_stores, dead_or_set_regno_p): Likewise.
7280         (reg_overlap_mentioned_p): Rewrite to use a switch.
7281
7282         * ggc.h (struct rtx_def): Forward declare.
7283
7284         * print-rtl.c (debug_rtx_range): New.
7285         * rtl.h (debug_rtx_range): Declare.
7286
7287         * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
7288
7289         * gcse.c (gcse_main): Don't rebuild the CFG here.
7290         (delete_null_pointer_checks): Likewise.
7291         * ssa.c (convert_to_ssa): Likewise.
7292         * toplev.c (rest_of_compilation): Do it here instead.  Combine
7293         sequential calls to TIMEVAR.  Consistently use `insns' instead of
7294         `get_insns()'.  Always split insns after reload when optimizing.
7295
7296         * basic-block.h (merge_blocks_nomove): Declare.
7297         (tidy_fallthru_edge): Declare.
7298         * flow.c (merge_blocks_nomove): Document as merging into previous
7299         blocks.  Remove cruft from between blocks; remove all edges out of A.
7300         (tidy_fallthru_edge): Export.
7301
7302 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
7303
7304         * ssa.c (compute_conservative_reg_partition): Declare with
7305         void arguments.
7306         * toplev.c (clean_dump_file): Remove previously-deleted function
7307         inadvertantly merged back in.
7308         * conflict.c (conflict_graph_add): Use a single call to
7309         htab_find_slot to look up and insert.
7310
7311 2000-04-06  Richard Henderson  <rth@cygnus.com>
7312
7313         * genrecog.c (*): Rename _last_insn to last_insn.
7314         (make_insn_sequence): Set the position of the peephole2 C test
7315         to be at the last insn.
7316
7317 2000-04-06  Richard Henderson  <rth@cygnus.com>
7318
7319         * flow.c (compute_flow_dominators): Free worklist.
7320
7321 2000-04-06  Michael Matz  <matzmich@cs.tu-berlin.de>
7322
7323         * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
7324
7325 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
7326
7327         * rtl.h (INSN_P): New macro.
7328         (successor_phi_fn): New typedef.
7329         (for_each_successor_phi): New prototype.
7330         (in_ssa_form): New variable.
7331         (PHI_NODE_P): Likewise.
7332         * flow.c (calculate_global_regs_live): Add to new_live_at_end from
7333         phi nodes in successors.
7334         (mark_used_regs): Add PHI case.
7335         (set_phi_alternative_reg): New function.
7336         (life_analysis): Assert that dead code elimination is not selected
7337         when in SSA form.
7338         * toplev.c (to_ssa_time): New variable.
7339         (from_ssa_time): Likewise.
7340         (compile_file): Zero to_ssa_time and from_ssa_time.
7341         Print time to convert to and from SSA.
7342         (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
7343         (print_time): Compute percent fraction as integer.
7344         * ssa.c (PHI_NODE_P): Moved to rtl.h.
7345         (convert_to_ssa): Check if we're already in SSA.
7346         Don't eliminate dead code in life_analysis.
7347         Rerun flow and life analysis at bottom.
7348         (eliminate_phi): Use canonical regnos when adding nodes.
7349         (mark_reg_in_phi): New function.
7350         (mark_phi_and_copy_regs): Likewise.
7351         (convert_from_ssa): Rerun life analysis at top.
7352         Use coalesced partition.
7353         Check for removing a phi node at the end of the block.
7354         (compute_coalesced_reg_partition): New function.
7355         (coalesce_regs_in_copies): Likewise.
7356         (coalesce_reg_in_phi): Likewise.
7357         (coalesce_regs_in_sucessor_phi_nodes): Likewise.
7358         (for_each_successor_phi): Likewise.
7359         (rename_context): New struct.
7360         (rename_block): Use a rename_context with rename_insn_1.  When
7361         renaming sets of a subreg, emit a copy of the entire reg first.
7362         (rename_insn_1): Treat data as a rename_context *.  Save current
7363         insn in set_data.
7364         (rename_set_data): Add field set_insn.
7365         * Makefile.in (HASHTAB_H): Move up in file.
7366         (OBSTACK_H): New macro.
7367         (collect2.o): Use OBSTACK_H in dependencies.
7368         (sdbout.o): Likewise.
7369         (emit-rtl.o): Likewise.
7370         (simplify-rtx.o): Likewise.
7371         (fix-header.o): Likewise.
7372         (OBJS): Add conflict.o.
7373         (conflict.o): New rule.
7374         * basic-block.h: Include partition.h.
7375         (conflict_graph): New typedef.
7376         (conflict_graph_enum_fn): Likewise.
7377         (conflict_graph_new): New prototype.
7378         (conflict_graph_delete): Likewise.
7379         (conflict_graph_add): Likewise.
7380         (conflict_graph_conflict_p): Likewise.
7381         (conflict_graph_enum): Likewise.
7382         (conflict_graph_merge_regs): Likewise.
7383         (conflict_graph_print): Likewise.
7384         (conflict_graph_compute): Likewise.
7385         * conflict.c: New file.
7386
7387 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
7388
7389         * tlink.c (read_repo_files): Don't look for .rpo info for
7390         linker flags.
7391
7392 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7393
7394         * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
7395
7396 Thu Apr  6 19:34:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7397
7398         * config/sh/lib1funcs.asm (___udivsi3_i4):
7399         ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
7400         only depends on FMOVD_WORKS.
7401
7402 Thu Apr  6 19:11:47 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7403
7404         * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
7405         make double constant 8-byte aligned.
7406
7407 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
7408
7409         * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
7410         movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
7411         movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
7412         (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
7413         Accept storing GENERAL_REGS into offsetable memory.
7414         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
7415         building a TFmode constant other than 0.0L into GENERAL_REGS.
7416
7417 2000-04-06  Clinton Popetz  <cpopetz@cygnus.com>
7418
7419         * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
7420
7421 2000-04-06  Zack Weinberg  <zack@wolery.cumb.org>
7422
7423         * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
7424         (macro_cleanup): No need to cast pbuf->macro.
7425         (collect_expansion): Use _cpp_get_define_token.  Goto done if
7426         it returns VSPACE.  Remove check for trailing space after
7427         CPP_COMMENT.
7428         (_cpp_create_definition): Don't diddle flags here.  Return
7429         directly on error.
7430         (unsafe_chars): Handle c1 being EOF.
7431         (push_macro_expansion): Use unsafe_chars for both accidental-paste
7432         checks.  Don't push the buffer till after we're done with
7433         them.
7434         * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
7435         (PEEKN, FORWARD, GETC, PEEKC): Use them.
7436         (cpp_push_buffer): Don't set new->alimit.  Set new->mark
7437         appropriately.
7438         (_cpp_parse_assertion): Don't NUL terminate.
7439         (_cpp_lex_token): Fix -traditional macro handling.  Don't skip
7440         hspace before calling _cpp_parse_assertion.  Remove all sets
7441         of only_seen_white. Treat '\f' as hspace.  Don't do anything
7442         special with '\n' here.
7443         (maybe_macroexpand): Handle T_EMPTY hash entries without
7444         pushing a buffer at all.
7445         (cpp_get_token): Handle clearing only_seen_white here.  Handle
7446         incrementing the line number here.  Clear
7447         potential_control_macro as well as only_seen_white, if
7448         appropriate.
7449         (cpp_get_non_space_token): Don't eat CPP_POP tokens.
7450         (_cpp_get_define_token): New function, basically like
7451         _cpp_get_directive_token was but doesn't eat horizontal space.
7452         Don't do anything with only_seen_white here.
7453         (_cpp_get_directive_token): Just call _cpp_get_define_token
7454         repeatedly till it returns non-hspace.
7455
7456         * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
7457         (conditional_skip, skip_if_group): Return int.
7458         (DIRECTIVE_TABLE): Change origin of all conditional directives
7459         to "COND".
7460         (TRAD_DIRECT_P): New macro.
7461         (_cpp_handle_directive): Use _cpp_get_directive_token.  Issue
7462         an error for a bogus directive, unless -lang-asm.  Use
7463         TRAD_DIRECT_P. Loop calling handler functions till one returns
7464         zero.
7465         (get_macro_name): Don't diddle flags here.
7466         (do_define): Diddle flags here.  Use _cpp_get_directive_token.
7467         Create T_EMPTY nodes for #define macro /* nothing */.
7468         (do_undef): Don't copy the name.  Use _cpp_get_directive_token.
7469         Use hp->name when calling pass_thru_directive.
7470         (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
7471         Return the result of conditional_skip and/or skip_if_group.
7472         Don't call _cpp_output_line_command.
7473         (consider_directive_while_skipping): Use _cpp_get_directive_token.
7474         Issue -Wtraditional warnings as appropriate.  Don't complain
7475         about unrecognized directives.  If we are to stop skipping,
7476         return the number of the directive that ended the skip.
7477         (skip_if_group): Use _cpp_get_directive_token.  Turn off macro
7478         expansion and line commands while skipping.  Return the result
7479         of consider_directive_while_skipping, if nonzero.
7480         (do_endif): Just set potential_control_macro here.
7481         (validate_else): Use _cpp_get_directive_token.
7482         (do_assert, do_unassert): Don't save pointers into the
7483         token_buffer across calls to the lexer.  Use
7484         _cpp_get_directive_token.
7485
7486         * cpplib.h (cpp_buffer): Remove alimit and colno.  Make mark a
7487         pointer, not an offset.  Replace 'data', which was a generic
7488         pointer, with 'macro', which points to a struct hashnode.
7489         (cpp_reader): Add 'potential_control_macro' pointer.
7490         * cpphash.h (T_UNUSED): Replace with T_EMPTY.
7491         (CPP_BUF_GET, CPP_FORWARD): Delete.
7492         (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
7493         (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
7494         ACTIVE_MARK_P): Update.
7495         (_cpp_get_define_token): New internal function.
7496         * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
7497
7498 2000-04-05   Benjamin Kosnik  <bkoz@cygnus.com>
7499
7500         * configure.in: And here.
7501         * configure: Regenerate.
7502         * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
7503         --enable-libstdcxx-v3 is passed at configure time.
7504         * config.h.in: Regenerate.
7505
7506 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
7507
7508         * final.c (final): Use xcalloc to allocate line_note_exists.
7509         * function.c (free_after_compilation): Free the temp_slots.
7510         (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
7511         (combine_temp_slot): Free temp_slots when they get combined.
7512         (purge_addressof): Fix typo in comment.
7513         * stmt.c (mark_goto_fixup): Mark the fixup itself.
7514         (expand_fixup): Allocate the fixup with ggc_alloc_obj.
7515
7516         * ggc.h: Include varray.h.
7517         (ggc_pending_trees): Declare.
7518         (ggc_mark_tree_children): Remove declaration.
7519         (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
7520         * ggc-common.c (ggc_pending_trees): New variable.
7521         (ggc_mark_roots): Call ggc_mark_trees.
7522         (ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
7523         the ggc_pending_trees.
7524         * Makefile.in (GGC_H): New variable.  Use it throughout in place
7525         of ggc.h.
7526
7527 Thu Apr  6 00:30:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7528
7529         * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
7530         GET_MODE_SIZE.
7531
7532 Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
7533
7534         * sh.c (sh_insn_length_adjustment): New function.
7535         * sh-protos.h (sh_insn_length_adjustment): Declare.
7536         * sh.h (ADJUST_INSN_LENGTH): Use it.
7537
7538 Wed Apr  5 12:35:18 2000  Hans-Peter Nilsson  <hp@axis.com>
7539
7540         * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
7541         from the insn where REG_RETVAL is added.
7542         (emit_no_conflict_block): Ditto.
7543
7544         * md.texi (Standard Names): Clarify when movX is needed.
7545
7546         * combine.c (simplify_comparison) [MINUS]: Do not replace
7547         all (op (minus A B) 0) with (op A B).
7548
7549 Wed Apr  5 18:03:31 2000  Toshiyasu Morita  (toshi.morita@sega.com)
7550                           J"orn Rennecke <amylaar@cygnus.co.uk>
7551
7552         * sh.md (block_lump_real_i4): Add missing clobber of T_REG
7553         (block_lump_real): Likewise.
7554
7555 2000-04-05  Chris Demetriou  <cgd@netbsd.org>
7556
7557         * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
7558         remaining non-zero debugging masks.
7559
7560 Wed Apr  5 09:44:07 2000  Jeffrey A Law  (law@cygnus.com)
7561
7562         * basic-block.h (verify_flow_info): Declare.
7563         (flow_loop_outside_edge_p): Declare.
7564         * flow.c (verify_flow_info): Remove declaration.
7565         (clear_log_links, flow_loop_outside_edge_p): Likewise.
7566
7567 Wed Apr  5 09:34:26 2000  Philippe De Muyter <phdm@macqel.be>
7568
7569         * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
7570         not C++ comments.
7571
7572 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
7573
7574         * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
7575         snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
7576         seqdi_zero_trunc+1): Allow splits only if registers are
7577         different.
7578
7579 2000-04-04  Ulrich Drepper  <drepper@cygnus.com>
7580
7581         * acconfig.h: Add HAVE_GAS_HIDDEN.
7582         * config.in: Regenerated.
7583         * configure.in: Add test for .hidden pseudo-op in gas.
7584         * configure: Regenerated.
7585         * crtstuff.c: Include auto-host.h.
7586         Emit additional .hidden pseudo-op for __dso_handle if the
7587         assembler knows about it.
7588
7589 2000-04-04  Philippe De Muyter  <phdm@macqel.be>
7590
7591         * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
7592         before freeing argnames.
7593         * cpplib.c (do_ifndef): Cast return value of xstrdup.
7594
7595 2000-04-05  Michael Meissner  <meissner@redhat.com>
7596
7597         * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
7598         Walton <jonboy@gordian.com> to make memory references with update
7599         work wtih -mregnames.
7600
7601 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7602
7603         * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
7604         (regrename_optimize): Rename variables `def_uses' and
7605         `ext_basic_blocks' to avoid conflicts with similarly named
7606         typedefs in traditional C.
7607
7608         * calls.c (initialize_argument_information): Fix typo in previous
7609         change.
7610
7611 2000-04-04  Richard Henderson  <rth@cygnus.com>
7612
7613         * regrename.c (consider_available): Test fixed_regs not
7614         PIC_OFFSET_TABLE_REGNUM.
7615
7616 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
7617
7618         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
7619         crtend.
7620         (CRTSTUFF_T_CFLAGS_S): Delete definition.
7621         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
7622         (ENDFILE_LINUX_SPEC): Always use crtend.
7623         * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
7624         (powerpc-*-linux-gnu): Likewise.
7625         * configure: Regenerate.
7626
7627         * config/rs6000/eabi.h: Don't include sysv4.h.
7628         (MULTILIB_DEFAULTS): Don't define.
7629         * config/rs6000/eabiaix.h: Don't include eabi.h.
7630         * config/rs6000/eabile.h: Delete.
7631         * config/rs6000/eabilesim.h: Delete.
7632         * config/rs6000/eabisim.h: Don't include eabi.h.
7633         * config/rs6000/linux.h: Don't include sysv4.h.
7634         (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
7635         (MULTILIB_DEFAULTS): Don't redefine.
7636         * config/rs6000/rtems.h: Don't include eabi.h.
7637         * config/rs6000/sol2.h: Don't include sysv4le.h.
7638         * config/rs6000/sysv4le.h: Don't include sysv4.h.
7639         * config/rs6000/t-ppc: Delete.
7640         * config/rs6000/t-ppcgas: Correct comment.
7641         * config/rs6000/t-ppcos: Correct comment.  Don't build
7642         multilibs for -fPIC, rather use -fPIC -mstrict-align
7643         as default.
7644         * config/rs6000/t-ppc: Delete.
7645         * config/rs6000/vxppc.h: Don't include sysv4.h.
7646         * config/rs6000/vxppcle.h: Delete.
7647         * configure.in: Use multiple header files for p2pc ELF targets
7648         powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
7649         powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
7650         powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
7651         powerpc-vxworks, powerpcle-vxworks.  Assume GAS functionality is
7652         always available for these platforms.
7653
7654 2000-04-04  Richard Henderson  <rth@cygnus.com>
7655
7656         * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
7657
7658 2000-04-04  Stan Cox  <scox@cygnus.com>
7659
7660         * Makefile.in: Add rules for regrename.o
7661         * regrename.c: New file.
7662         * rtl.h (regrename_optimize): Add prototype.
7663         * toplev.c (rename_registers_dump, flag_rename_registers): New variables
7664         (compile_file, decode_d_option): Add support for -frename-registers.
7665         (rest_of_compilation): Call regrename_optimize.
7666         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
7667         New macros.
7668
7669 2000-04-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7670
7671         * Makefile (gccbug): New target.
7672         (doc): Depend on it.
7673         * gcc.texi (Bugs): Link subnodes.
7674         (gccbug): New node.
7675         * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
7676         Document severities, priorities, and classes in bug form.
7677
7678 2000-04-04  Zack Weinberg  <zack@wolery.cumb.org>
7679
7680         * cpplex.c (trigraph_map, speccase): Combine into single
7681         table, chartab.
7682         (NORMAL, NONTRI): New macros.
7683         (_cpp_read_and_prescan): Change to use unified table.  Use
7684         is_hspace to test for whitespace.
7685
7686         * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
7687         definition that doesn't provoke the "empty body in an
7688         if-statement" warning.
7689
7690 2000-04-04  Clinton Popetz  <cpopetz@cygnus.com>
7691
7692         * builtins.c (expand_builtin_strlen): Force the source to
7693         be a memory address.
7694
7695 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7696
7697         * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
7698
7699 Tue Apr  4 19:17:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7700
7701         * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
7702          ECF_LONGJMP, ECF_FORK_OR_EXEC):  New constants.
7703         (ECF_IS_CONST): Rename to ECF_CONST.
7704         (special_function_p): Make static, change interface.
7705         (flags_from_decl_or_type, try_to_integrate): Break out from ...
7706         (expand_call) ... here; convert number of variables to flags.
7707         (emit_library_call_vlue_1): Likewise.
7708         (setjmp_call_p): New function.
7709         (initialize_argument_information): Accepts flags as argument;
7710         return flags.
7711         (precompute_arguments): Likewise.
7712         * tree.h (special_function_p): Remove.
7713         (setjmp_call_p): Add prototype.
7714
7715 2000-04-04  Jakub Jelinek  <jakub@redhat.com>
7716
7717         * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
7718         so that addresses are offsetable by up to 16 bytes.
7719         (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
7720         non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
7721         offsetable.
7722
7723         * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
7724         (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
7725         (movsf): Don't force any constant to memory if target is integer
7726         hard register.
7727         Move fp_zero_operand check below the const0_rtx check.
7728         (movtf): Likewise. Also allow fp_zero_operand for stores into
7729         memory.
7730         (movdf): Likewise. Also allow fp_zero_operand for stores into
7731         memory and into integer hard registers.
7732         (clear_df, clear_dfp, movdf_const_intreg_sp32,
7733         movdf_const_intreg_sp64): Remove.
7734         (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
7735         conditions.
7736         (movdf_no_e_insn_v9_sp32): New pattern.
7737         (movdf_insn_v9only): Remove.
7738         (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
7739         (movdf_insn_sp64): Remove.
7740         (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
7741         (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
7742         (following splits): Rewrite conditions. Add two new splits
7743         for storing 0.0 into memory and registers.
7744         (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
7745         (movtf_insn_sp32): Redo constraints and conditions.
7746         (movtf_insn_vis_sp32): New pattern.
7747         (movtf_no_e_insn_sp32): Redo constraints and conditions.
7748         (movtf_insn_hq_sp64): Likewise.
7749         (movtf_insn_hq_vis_sp64): New pattern.
7750         (movtf_insn_sp64): Redo constraints and conditions.
7751         (movtf_insn_vis_sp64): New pattern.
7752         (movtf_no_e_insn_sp64): Redo constraints and conditions.
7753         (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
7754         or memory.
7755         * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
7756         -mvis or -m64 to take down the number of various reload patterns.
7757
7758 Tue Apr  4 00:41:53 2000  Jeffrey A Law  (law@cygnus.com)
7759
7760         * pa/pa-64.h: New file.
7761         * pa/pa64-regs.h: New file.
7762         * pa/pa64-start.h: New file.
7763         * pa/t-pa64: New file.
7764         * pa/xm-pa64hpux.h: New file.
7765
7766 2000-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7767
7768         * sparc.c (output_restore_regs): Prototype.
7769         (sparc_emit_float_lib_cmp): Constification.
7770
7771         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
7772
7773         * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
7774         Prototype.
7775
7776         * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
7777         (get_value_hash, hash_rtx): Likewise.
7778
7779         * ssa.c (compute_conservative_reg_partition): Prototype.
7780
7781         * tree.c (mark_hash_entry): Prototype.
7782
7783 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
7784
7785         * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
7786         * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
7787         * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
7788
7789         * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
7790         * objc/lang-specs.h: Likewise.
7791
7792 2000-04-03  Neil Booth  <NeilB@earthling.net>
7793
7794         * cppexp.c: wrap long lines.  New macros CPP_ICE, SYNTAX_ERROR
7795         and SYNTAX_ERROR2. Replace `' in messages with ''.
7796         (op_to_str): Make re-entrant.
7797         (_cpp_parse_expr): Implement new error macros. Use | rather
7798         than || to logically or 2 boolean integers.  Simply expression
7799         checking we have a left operand iff needed.
7800
7801 2000-04-03  Nick Clifton  <nickc@cygnus.com>
7802
7803         * Makefile.in (diagnostic.o): Depend upon diagnostic.c
7804
7805 2000-04-03  Philip Blundell  <philb@gnu.org>
7806
7807         * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
7808
7809 2000-04-03  Felix Lee  <flee@cygnus.com>
7810
7811         * fixinc/server.c (find_shell): New function.  Avoid $SHELL.
7812         (run_shell): Use it.
7813
7814 2000-04-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
7815
7816         * Makefile.in (stmp-int-hdrs): Make include subdir here...
7817         (stmp-fixproto): ...rather than here.
7818
7819 Mon Apr  3 00:50:06 2000  Jason Eckhardt <jle@cygnus.com>
7820
7821         * pa.c (print_operand): Compute 'base' only inside the code paths
7822         that use it.
7823
7824 2000-04-03  Geoffrey Keating  <geoffk@cygnus.com>
7825
7826         * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
7827         CEIL_DIV_EXPR.
7828
7829 2000-04-03  Philipp Thomas  <pthomas@suse.de>
7830
7831         * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
7832
7833 Mon Apr  3 00:02:59 2000  Brad Lucier <lucier@math.purdue.edu>
7834
7835         * Makefile.in (alias.o): Depend on $(TREE_H).
7836
7837 2000-04-02  Zack Weinberg  <zack@wolery.cumb.org>
7838
7839         * cppinit.c (cpp_start_read): Turn off -Wtraditional if
7840         processing C++.
7841         * cpplib.c (_cpp_handle_directive): Improve warnings for
7842         traditional C and indented directives.
7843
7844         * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
7845         fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
7846         fixinc/inclhack.def: Indent the # of #include_next one space.
7847         * cp/rtti.c: Un-indent #if and #endif.
7848
7849         * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
7850         syntax error, but an error has already been printed.
7851         * cpplex.c (_cpp_parse_assertion): Give a more specific error
7852         message when called with nothing remaining on the line.
7853         (_cpp_lex_token): If _cpp_parse_assertion fails, return an
7854         OTHER token, not an ASSERTION.
7855         * cpplib.c (do_assert): When we create a 'base' node, clear
7856         its aschain pointer.
7857
7858 2000-04-02  Neil Booth <NeilB@earthling.net>
7859
7860         * cppexp.c:  New typedef op_t.  struct operation and struct
7861         token updated to use it.
7862         (op_to_str): New function.
7863         (_cpp_parse_expr): Error messages modified to use op_to_str.
7864
7865 2000-04-02  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7866
7867         * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
7868         before checking MUST_PASS_IN_STACK.
7869
7870 2000-04-02  Neil Booth <NeilB@earthling.net>
7871
7872         * cppexp.c:  New FINISHED dummy token.  Combine operator initial
7873         flags and initial priority into a single constant.  New
7874         EQUALITY macro.  New operator flag SHORT_CIRCUIT.
7875         (_parse_cpp_expr): Implement new constants.  Take left operand
7876         checks out of reduction loop.  Handle SHORT_CIRCUIT.  End of
7877         parse indicated by reducing FINISHED token.  Remove new lines
7878         from cpp_error messages.
7879
7880 2000-04-01  Mark Mitchell  <mark@codesourcery.com>
7881
7882         * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
7883         permanent obstack.
7884
7885 2000-04-01  Zack Weinberg  <zack@wolery.cumb.org>
7886
7887         * cpplib.c: Include symcat.h.  Add 'origin' field to struct
7888         directive.  Add origin values to DIRECTIVE_TABLE.  Generate
7889         the strings and function names on the fly.  Take the #sccs
7890         entry out of the table if SCCS_DIRECTIVE is not defined.
7891         (_cpp_handle_directive): Decide if the # was at the beginning
7892         of the line here.  Issue -pedantic warnings for extended
7893         directives here.  Warn about K+R directives with the #
7894         indented, and C89/extended directives with the # not indented,
7895         here.
7896         (do_import, do_include_next, do_warning, do_ident, do_sccs,
7897         do_assert, do_unassert): Don't issue pedantic warning here.
7898
7899         * cpphash.h: Add CPP_WTRADITIONAL macro.
7900         * cpplib.h (struct cpp_options): Rename warn_stringify to
7901         warn_traditional; update comments.
7902         * cppinit.c (handle_option): Set warn_traditional not
7903         warn_stringify.
7904         * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
7905         CPP_WTRADITIONAL (pfile).
7906         * cpplex.c (_cpp_lex_token): Don't decide if directives should
7907         be ignored in -traditional mode here.
7908
7909         * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
7910         to initialize speccase[] and trigraph_map[].  Delete all
7911         references to pfile->input_speccase.  Always treat '?' as a
7912         special character.  Remove table-initialization code from
7913         _cpp_init_input_buffer.
7914
7915         * cpplib.h (struct cpp_reader): Remove input_speccase field.
7916         * cppinit.c (cpp_cleanup): Don't free input_speccase.
7917
7918 2000-04-01  Richard Henderson  <rth@cygnus.com>
7919
7920         * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
7921         (mostlyclean): Likewise.
7922
7923         * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
7924         (struct dump_file_info, enum dump_file_index, dump_file): New.
7925         (open_dump_file): Take a dump_file_index not a suffix, and a decl
7926         not a string.  Clean out file if we havn't yet done so.  Do nothing
7927         if the dump isn't enabled.
7928         (close_dump_file): Do nothing if the dump isn't open.  Dump
7929         graph data if requested.
7930         (dump_rtl, clean_dump_file): Remove.
7931         (compile_file): Don't clean the dump files.  Only finalize .bp dump
7932         if flag_test_coverage or flag_branch_probabilities.  Only finalize
7933         .combine dump if optimizing.  Iterate over dump_file to finalize the
7934         graph dumps.
7935         (rest_of_compilation): Update for open_dump_file/close_dump_file.
7936         Convert all uses of dump_rtl.
7937         (decode_d_option): Iterate over dump_file to implement 'a' and to
7938         locate pass-specific dumps.
7939
7940 2000-04-01  Neil Booth <NeilB@earthling.net>
7941
7942         * cppexp.c: Redefine priority constants.
7943         (_cpp_parse_expr): Replace left and right priority scheme with
7944         single priority logic.  Move LOGICAL to same place as COMPARE.
7945         Remove bogus check for multiple unary +/- operators.
7946
7947 2000-04-01  Neil Booth <NeilB@earthling.net>
7948
7949         * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
7950         within the switch statement.  Binary operations break out of
7951         the switch naturally.  '(' tokens handled by forcing
7952         immediate shift.  ')' handled by forcing immediate reduce to
7953         the previous '('.  New error messages.
7954
7955 2000-03-31  Geoff Keating  <geoffk@cygnus.com>
7956
7957         * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
7958         part', it's already in use.  Use %K instead.  Add a return at the
7959         end of what is now %K.
7960         * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
7961
7962 Sat Apr  1 02:05:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7963
7964         * builtins.c  (expand_builtin_apply):  Pass proper parameters to
7965         allocate_dynamic_stack_space.
7966         * calls.c (emit_call_1):  Do not adjust stack pointer for SIB,
7967         update stack_pointer_delta; do not update arg_size_so_far.
7968         (compute_argument_block_size): Use stack_delta instead of
7969         stack_pointer_pending and arg_size_so_far.
7970         (expand_call): Add sanity checking for stack_pointer_delta;
7971         save and restore stack_pointer_delta for SIB, use
7972         stack_pointer_delta for alignment; do not update arg_space_so_far.
7973         (emit_library_call_value): Use stack_pointer_delta for alignment.
7974         (store_one_arg): Do not update arg_space_so_far.
7975         * explow.c (adjust_stack, anti_adjust_stack): Update
7976         stack_pointer_delta.
7977         (allocate_dynamic_stack_space): Add sanity checking for
7978         stack_pointer_delta.
7979         * expr.c (init_expr, clear_pending_stack_adjust): Clear
7980         stack_pointer_delta.
7981         (emit_push_insn): Update stack_pointer_delta.
7982         * function.h (struct expr_status): Add x_stack_pointer_delta;
7983         remove x_arg_space_so_far.
7984         (arg_space_so_far): Remove.
7985         (stack_pointer_delta): New macro.
7986
7987 2000-03-31  Zack Weinberg  <zack@wolery.cumb.org>
7988
7989         * cpplib.h: Merge struct cpp_options into struct cpp_reader.
7990         Reorder struct cpp_options and struct cpp_reader for better
7991         packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
7992         takes two args.  Change all 'char' flags to 'unsigned char'.
7993         Move show_column flag into struct cpp_options.  Don't
7994         prototype cpp_options_init.
7995         * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
7996         cppinit.c, cpplex.c, cpplib.c:
7997         Replace CPP_OPTIONS (pfile)->whatever with
7998         CPP_OPTION (pfile, whatever), and likewise for
7999         opts = CPP_OPTIONS (pfile); ... opts->whatever;
8000
8001         * cppinit.c (merge_include_chains): Take a cpp_reader *.
8002         Extract CPP_OPTION (pfile, pending) and work with that
8003         directly.
8004         (cpp_options_init): Delete.
8005         (cpp_reader_init): Turn on on-by-default options here.
8006         Allocate the pending structure here.
8007         (cl_options, enum opt_code): Define these from the same table,
8008         kept in a large macro.  Add -fshow-column and -fno-show-column
8009         options.
8010
8011         * cpperror.c (v_message): If show_column is off, don't print
8012         the column number.
8013
8014         * cppmain.c: Update for new interface.
8015         * fix-header.c: Likewise.
8016
8017 2000-03-30  Geoff Keating  <geoffk@cygnus.com>
8018
8019         * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
8020         definition.
8021         * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
8022         are passed to any invocation of AR_FOR_TARGET.
8023         (AR_CREATE_FOR_TARGET): New macro.
8024         (AR_EXTRACT_FOR_TARGET): New macro.
8025         (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
8026         AR_EXTRACT_FOR_TARGET.
8027         (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
8028         in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
8029         `$(AR_FOR_TARGET) x'.  Pass AR_CREATE_FOR_TARGET and
8030         AR_EXTRACT_FOR_TARGET to sub-makes.
8031
8032 2000-03-31  Neil Booth <NeilB@earthling.net>
8033
8034         * cppexp.c: Delete SKIP_OPERAND.  Correct priority
8035         PAREN_INNER_PRIO.
8036         (_cpp_parse_expr): Check for multiple unary +/- operators.
8037         Correct priorities of ':' and '?'.  Treat ')' as having a
8038         value.  Ensure conditional expression is not void.
8039
8040 2000-03-31  Mark Mitchell  <mark@codesourcery.com>
8041
8042         * alias.c (canon_rtx): Make it global.
8043         (rtx_equal_for_memref_p): CONST_INT equality is now pointer
8044         equality.
8045         * cse.c (struct table_elt): Add canon_exp.
8046         (insert): Clear it.
8047         (invalidate): Canonicalize expressions only once.
8048         * rtl.h (canon_rtx): Declare.
8049
8050 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
8051
8052         * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
8053         * alias.c (reg_known_value): Add comments.
8054         (init_alias_analysis): Likewise.
8055         * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
8056         address.
8057         (cse_basic_block): Fix typo in comment.
8058         * emit-rtl.c: Include hashtab.h.
8059         (const_int_htab): New variable.
8060         (const_int_htab_hash): New function.
8061         (const_int_htab_eq): Likewise.
8062         (rtx_htab_mark_1): Likewise.
8063         (rtx_htab_mark): Likewise.
8064         (gen_rtx_CONST_INT): Cache all CONST_INTs.
8065         (unshare_all_rtx): Fix formatting.
8066         (init_emit_once): Initialize const_int_htab.
8067         * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
8068         address.
8069         * rtl.texi: Document the fact that all CONST_INTs with the same
8070         value are shared.
8071
8072 2000-03-30  Richard Henderson  <rth@cygnus.com>
8073
8074         * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
8075
8076 2000-03-30  Zack Weinberg  <zack@wolery.cumb.org>
8077
8078         * configure.in: Comment out --enable-c-cpplib stanza.
8079         * configure: Regenerate.
8080
8081 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8082
8083         * expr.c (store_constructor): Properly compute displacement and
8084         alignment when offset is variable.
8085
8086         * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
8087         cases of alignment in bytes.
8088
8089 Thu Mar 30 13:30:40 2000  Jeffrey A Law  (law@cygnus.com)
8090
8091         * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
8092         since it is used to generate c-parse.y.
8093         * objc-parse.c, objc-parse.y: Regenerated.
8094
8095         * function.c (expand_function_end): Pass alignment argument to
8096         emit_block_move in bits, not bytes.
8097
8098 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8099
8100         * expr.c (move_by_pieces_ninsns): Fix one more missing align
8101         correction.
8102
8103         * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
8104
8105         * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
8106         * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
8107         * function.c (assign_parms): Likewise.
8108         * integrate.c (expand_inline_function): Likewise.
8109         * stmt.c (expand_decl): Likewise.
8110         (copy_rtx_and_substitute): Likewise.
8111         * expr.c (expand_expr, expand_expr_unaligned): Likewise.
8112         (clear_by_pieces): Fix error in last change.
8113         * emit-rtl.c (init_emit): Set known registers alignment in bits.
8114         * function.h (regno_pointer_align): Now unsigned.
8115         * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
8116         is in bits.
8117         * config/i386/i386.c (aligned_operand): Likewise.
8118         * config/sparc/sparc.c (mem_min_alignment): Likewise.
8119         * config/alpha/alpha.c (aligned_memory_operand): Likewise.
8120         (unaligned_memory_operand): Likewise.
8121         (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
8122         Also make alignments and sizes unsigned and some whitespace cleanup.
8123         (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
8124
8125         * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
8126         (expand_builtin_apply): Pass alignment to emit_block_move in bits.
8127         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
8128         (expand_builtin_memset): Likewise, but to clear_storage.
8129         * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
8130         (restore_fixed_argument_area): Likewise.
8131         (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
8132         (load_register_parameters): Likewise, to emit_group_load.
8133         (expand_call): Likewise, to emit_group_store and emit_block_move.
8134         (emit_library_call_value_1): Likewise, to emit_block_move.
8135         (store_one_arg): Likewise, and to emit_push_insn.
8136         * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
8137         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
8138         * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
8139         (emit_block_move, emit_group_load, emit_group_store): Likewise.
8140         (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
8141         (expand_assigment, store_expr, store_constructor_field): Likewise.
8142         (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
8143         (store_constructor, store_field, get_inner_reference): Likewise.
8144         Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
8145         (expand_expr, case COMPONENT_REF): Likewise.
8146         (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
8147         and positions; reindent code.
8148         * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
8149         * function.c (purge_addressof_1): Pass bit align to store_bit_field.
8150         (assign_parms): Likewise to emit_group_store.
8151         * optabs.c (prepare_cmp_insn): Alignment is in bits.
8152         (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
8153         * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
8154         (expand_return): Likewise to {extract,store}_bit_field.
8155         * stor-layout.c (get_mode_alignment): Minor cleanup.
8156         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
8157         * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
8158
8159 2000-03-29  Nick Clifton  <nickc@cygnus.com>
8160
8161         * config/arm/arm.h: Undo effects of previous delta:
8162         (ASM_SPEC): Do not define.
8163         (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
8164
8165         * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
8166         typo.
8167
8168 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
8169
8170         * cppinit.c (cpp_start_read): Call initialize_dependency_output
8171         only after reading in the primary source file.
8172
8173 2000-03-29  Geoff Keating  <geoffk@cygnus.com>
8174
8175         * c-common.c (c_common_nodes_and_builtins): The first parameter to
8176         __builtin_va_start and __builtin_va_copy is now either a 'va_list'
8177         or a reference to a va_list.
8178         * builtins.c (stabilize_va_list): Simplify now we don't have to
8179         work around C array address decay.
8180         * c-typeck.c (convert_for_assignment): Handle assignment to
8181         a reference parameter by taking the address of the RHS.
8182         * ginclude/stdarg.h (va_start): Don't take address of first parameter.
8183         (va_copy): Likewise.
8184         (__va_copy): Likewise.
8185         * ginclude/varargs.h (va_start): Likewise.
8186         (__va_copy): Likewise.
8187
8188 Wed Mar 29 15:44:53 2000  Jeffrey A Law  (law@cygnus.com)
8189
8190         * i386/djgpp.h: Remove extraneous "+".
8191
8192         * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
8193
8194         * calls.c (expand_call): Fix typo in last change.
8195
8196 2000-03-29  Jason Merrill  <jason@casey.cygnus.com>
8197
8198         * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
8199         been expanded.
8200
8201 Wed Mar 29 15:39:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8202
8203         * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
8204         (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
8205         (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
8206         * tree.c (bit_position, byte_position): Likewise.
8207         * tree.h: Declare new functions.
8208
8209 2000-03-29  Nick Clifton  <nickc@cygnus.com>
8210
8211         * config/arm/arm.c: Minor formatting changes/
8212         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
8213         already defined.
8214         (ASM_SPEC): Define if not already defined.
8215
8216 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
8217
8218         * cppfiles.c (cpp_read_file): Don't pass zero-length string to
8219         _cpp_calc_hash.
8220
8221 2000-03-29  Jakub Jelinek  <jakub@redhat.com>
8222
8223         * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
8224         value, don't output it as unsigned.
8225
8226 Wed Mar 29 10:53:49 2000  Jeffrey A Law  (law@cygnus.com)
8227
8228         * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
8229
8230 2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8231
8232         * c-common.c (c_common_nodes_and_builtins): Don't special case
8233         cplus_mode when declaring builtin bzero/bcmp, always avoid
8234         prototype arguments.
8235
8236 2000-03-29  Bruce Korb  <bkorb@gnu.org>
8237
8238         * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
8239         to a non-file
8240
8241 Wed Mar 29 15:08:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8242
8243         Convert ACCUMULATE_OUTGOING_ARGS to an expression.
8244         * calls.c (PUSH_ARGS_REVERSED) Change to expression.
8245         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
8246         (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
8247         (save_fixed_argument_area, restore_fixed_argument_area):
8248         conditionize by #ifdef REG_PARM_STACK_SPACE only.
8249         (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
8250         to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
8251         (precompute_register_parameters): Avoid #ifdefs on
8252         ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
8253         (stire_one_args): Likewise.
8254         (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
8255         (emit_library_call_value_1): Likewise.
8256         (compute_argument_block_size): Align to STACK_BOUNDARY only for
8257         ACCUMULATE_OUTGOING_ARGS.
8258         * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
8259         value.
8260         (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
8261         (use_crosses_set_p): Likewise.
8262         * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
8263         #define ACCUMULATE_OUTGOING_ARGS 1.
8264         * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
8265         frames.
8266         * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
8267         constants.
8268         (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
8269         (TARGET_SWITCHES): Add push-args, no-push-args,
8270         accumulate-outgoing-args and no-accumulate-outgoing-args.
8271         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
8272         * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
8273         (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
8274         and PUSH_ROUNDING.
8275         (emit_push_insn): Likewise.
8276         * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
8277         (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
8278         * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
8279         (STACK_DYNAMIC_OFFSET): Define correctly for both
8280         ACCUMULATE_OUTGOING_ARGS and normal mode.
8281         * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
8282         * tm.texi (PUSH_ARGS): Document.
8283         (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
8284
8285 Wed Mar 29 11:51:13 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8286
8287         * flags.h (flag_optimize_sibling_calls): Declare.
8288         * calls.c (expand_call): Fail sibcall when
8289         !flag_optimize_sibling_calls
8290         * invoke.texi (flag_optimize_sibling_calls): Document.
8291         * toplev.c (flag_optimize_sibling_calls): New global variable.
8292         (f_options): Add flag_optimize_sibling_calls.
8293         (rest_of_compilation): Conditionize
8294         optimize_sibling_and_tail_recursive_calls by
8295         flag_optimize_sibling_calls.
8296         (main): Set flag_optimize_sibling_calls for -O2.
8297         * stmt.c (expand_return): Conditionize tail recursion by
8298         flag_optimize_sibling_calls.
8299
8300 2000-03-29  Richard Henderson  <rth@cygnus.com>
8301
8302         * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
8303         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
8304
8305 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
8306
8307         * except.c (add_eh_table_entry): Mark type_info's as referenced.
8308
8309 2000-03-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8310
8311         * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
8312         is given.
8313         * config/rs6000/aix43.h (CPP_SPEC): Likewise.
8314         * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
8315         * config/rs6000/aix.h: then modified likewise.
8316
8317 2000-03-28  Richard Henderson  <rth@cygnus.com>
8318
8319         * rtl.h: Redistribute enum reg_note documentation.
8320         Kill trailing whitespace.
8321         * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
8322         Kill trailing whitespace.
8323
8324 2000-03-28  Zack Weinberg  <zack@wolery.cumb.org>
8325
8326         * cppfiles.c (hash_IHASH): Just return i->hash.
8327         (cpp_included): Set dummy.hash using _cpp_calc_hash.  Use
8328         htab_find_with_hash.
8329         (cpp_read_file): Likewise.
8330         (find_include_file): Likewise.  Properly initialize
8331         ih->nshort.  Share ih->name and ih->nshort if possible.
8332         * cpphash.c (_cpp_calc_hash): New function.
8333         (hash_HASHNODE): Just return h->hash.
8334         (_cpp_lookup): Set dummy.hash using _cpp_calc_hash.  Use
8335         htab_find_with_hash.
8336         * cpphash.h: Prototype _cpp_calc_hash.
8337         * cppinit.c (initialize_builtins): Provide a valid hash
8338         to _cpp_make_hashnode, using _cpp_calc_hash.
8339
8340         * cpphash.c (collect_expansion): # is not a special character
8341         in object-like macros.  In -traditional mode, /**/ is not
8342         token paste at the beginning or end of the line.
8343         * cpplib.c (do_include, do_import, do_include_next): If
8344         parse_include fails, return immediately.
8345
8346 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
8347
8348         * config/arm/arm.md (return peepholes): Update to reflect the new
8349         call insn patterns.
8350         * config/arm/arm.c (arm_volatile_func): Also check
8351         current_function_nothrow.
8352         (output_return_instruction, output_func_prologue): Use it.
8353         (arm_output_epilogue, arm_expand_prologue): Likewise.
8354
8355 2000-03-27  Tom Tromey  <tromey@cygnus.com>
8356
8357         * gcc.c (handle_braces): In {x*...} case, break out of loop if
8358         switch is found.
8359
8360 Tue Mar 28 11:55:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8361
8362         * expr.c (store_constructor): SIZE now signed.
8363         For EXPR_SIZE, don't evaluate size; just needed if constant.
8364         * fold-const.c (fold): Fix a number of cases when folded tree is
8365         wrong type.
8366         * function.c (flush_addressof): Reenable.
8367         * tree.h (flush_addressof): Likewise.
8368         * toplev.c (independent_decode_option): Look at strings_processed.
8369         * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
8370
8371 Tue Mar 28 08:29:46 2000  Jan Hubicka  <jh@suse.cz>
8372
8373         * sibcall.c (indentify_call_return_value): Find last call in the chain;
8374         Allow stack adjustment after function call.
8375
8376         * regmove.c (struct csa_memlist): Make mem field rtx *.
8377         (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
8378         (try_apply_stack_adjustment): Replace whole MEM rtx.
8379         (combine_stack_adjustments_for_block): Update calls
8380         to record_one_stack_ref.
8381
8382 2000-03-28  Neil Booth  <NeilB@earthling.net>
8383
8384         * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
8385         '\\' rather than a null character, so nulls are not special.  Fix
8386         "\\\n" handling in end-of-buffer conditions.  Use trigraph map to
8387         speed trigraph conversion.
8388         (_cpp_init_input_buffer): Initialize trigraph map.
8389
8390 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
8391
8392         * config/i386/i386.c (output_387_binary_op): Correct intel
8393         mode assembly output, and add spaces after commas in AT&T
8394         output.  Correct Unixware assembler comment.  Document input
8395         constraints.  Comment fp operations.  Reduce profligate buffer
8396         size.  Remove extraneous abort.  Localize temp var.
8397         (SYSV386_COMPAT): Define.  Add !SYSV386_COMPAT code.
8398         (output_fix_trunc): Add spaces after commas in assembly output.
8399
8400 2000-03-27  Richard Henderson  <rth@cygnus.com>
8401
8402         * i386-protos.h (ix86_match_ccmode): Declare.
8403         * i386.c (ix86_match_ccmode): New.
8404         (ix86_expand_fp_compare): Update for pattern renames.
8405         (ix86_expand_strlensi_unroll_1): Likewise.
8406         * i386.h (EXTRA_CC_MODES): Add CCZ.
8407         (SELECT_CC_MODE): Use it for EQ/NE zero.
8408         * i386.md (cmpsi_ccz_1): New.
8409         (cmpqi_ccz_1): New.
8410         (*testsi_ccz_1): New.
8411         (testqi_ccz_1): New.
8412         (cmpsi_ccno_1): Rename from cmpsi_0.
8413         (testsi_ccno_1): Rename from testsi_1.
8414         (testqi_ccno_1): Rename from testqi_1.
8415         (*testqi_ext_ccz_0): Rename from testqi_ext_0.
8416         (testqi_ext_ccno_0): Rename from *testqi_ext_1.
8417         (*cmphi_0): Use ix86_match_ccmode.
8418         (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
8419         (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
8420         (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
8421         (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
8422         (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
8423         (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
8424         (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
8425         (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
8426         (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
8427         (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
8428         (appropriate peepholes): Likewise.
8429         (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
8430         (*subsi_3, *subhi_3, *subqi_3): Remove.
8431         (*negdi2_1+1 splitter): Use CCZ for neg patterns.
8432         (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
8433         (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
8434         (*neghi2_cmpz, *negqi2_cmpz): Similarly.
8435         (x86_shift_adj_1): Use CCZ.
8436         (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
8437
8438 2000-03-27  Stan Cox  <scox@cygnus.com>
8439
8440         * resource.h (mark_resource_type): New.
8441         * resource.c (find_dead_or_set_registers, mark_target_live_regs,
8442         find_free_register): Use mark_resource_type.
8443         (mark_set_resources): Change include_delayed_effects
8444         to mark_resource_type.
8445         * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
8446         redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
8447         Use mark_resource_type.
8448
8449 2000-03-27  Richard Henderson  <rth@cygnus.com>
8450
8451         * i386.md (call_pop_0, call_value_pop_0): New.
8452         (call_pop_1): Remove constraint from unused arg.  Support sibcalls.
8453         (call_value_pop_1): Likewise.
8454         (call_0, call_value_0): New.
8455         (call_1, call_value_1): Remove constraint from unused arg.
8456
8457 2000-03-27  Nick Clifton  <nickc@cygnus.com>
8458
8459         * invoke.texi (Spec Files): Document new spec % command created by
8460         Tom Tromey's recent patch.
8461
8462 2000-03-27  Jakub Jelinek  <jakub@redhat.com>
8463
8464         * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
8465         if not defined.
8466
8467 Mon Mar 27 06:04:22 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8468
8469         * expr.c (expand_assignment): Fix typo in last change.
8470
8471         * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
8472
8473 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8474
8475         * c-convert.c (convert): Return if output or input type is ERROR_MARK.
8476         * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
8477         and DECL_INLINE if FUNCTION_DECL.
8478         (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
8479         (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
8480         Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
8481         (combine_parm_decls): Likewise.
8482         * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
8483         * print-tree.c (print_node): Likewise.
8484         Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
8485         DECL_TRANSPARENT_UNION on proper decl types.
8486         Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
8487         * stor-layout.c (layout_decl): Only check DECL_PACKED and
8488         DECL_BIT_FIELD of FIELD_DECL.
8489         * tree.h (DECL_RESULT_FLD): New macro.
8490
8491         * expr.c (expand_assignment): Add code to handle variable-sized
8492         BLKmode case.
8493
8494 2000-03-26  Richard Henderson  <rth@cygnus.com>
8495
8496         * calls.c (expand_call): Pass parms not original exp to
8497         optimize_tail_recursion.  Mind return value instead of looking
8498         for a barrier.
8499         * stmt.c (optimize_tail_recursion): Take parameter list, not entire
8500         call_expr.  Move checks for call_expr and current_function_decl ...
8501         (expand_return): ... here.
8502
8503 2000-03-26  Tom Tromey  <tromey@cygnus.com>
8504
8505         * gcc.c (handle_braces): Recognize `%{<S}' construct.
8506         (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
8507         defines.
8508         (process_command): Use them.
8509         (check_live_switch): Likewise.
8510         (give_switch): Skip ignored switches.
8511
8512 2000-03-26  Jan Hubicka  <jh@suse.cz>
8513
8514         * jump.c (jump_optimize_1): Fix typo in elide optimizations
8515         for minimal jump pass test.
8516
8517 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
8518
8519         * integrate.c (function_cannot_inline_p): Do inline functions that
8520         return `void'.
8521
8522 Sun Mar 26 11:37:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8523
8524         * stor-layout.c (layout_type, set_sizetype): early_type_list is
8525         now a list of TREE_LIST entries, not types.
8526         * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
8527
8528         * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
8529         * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
8530         int_bit_position.
8531         * config/mips/mips.c (function_arg): Likewise; also remove cast
8532         and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
8533         (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
8534         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
8535         * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
8536         (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
8537         (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
8538         (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
8539         (struct mips_arg): arg_number, arg_words, fp_arg_words, and
8540         num_adjusts now unsigned.
8541         (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
8542         * config/sparc/sparc.c (struct function_arg_record_value_parms):
8543         NREGS now unsigned.
8544         (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
8545         as is BITPOS variable; use host_integerp and int_bit_position.
8546         (function_arg_record_value_2): Likewise.
8547         (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
8548         Variable REGNO now unsigned.
8549         (function_arg_record_value): NREGS now unsigned.
8550
8551 2000-03-26  Bernd Schmidt  <bernds@cygnus.co.uk>
8552
8553         * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
8554
8555 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8556
8557         * Rework fields used to describe positions of bitfields and
8558         modify sizes to be unsigned and use HOST_WIDE_INT.
8559         * alias.c (reg_known_value_size): Now unsigned.
8560         * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
8561         (really_start_incremental_init): Use bitsize_zero_node.
8562         (push_init_level, pop_init_level, output_init_element): Likewise.
8563         Use bitsize_unit_node and bitsize_one_node.
8564         (output_pending_init_elements, process_init_element): Likewise.
8565         * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
8566         (make_extraction): Position and length HOST_WIDE_INT and unsigned
8567         HOST_WIDE_INT, respectively.
8568         (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
8569         (num_sign_bit_copies): Returns unsigned.
8570         BITWIDTH now unsigned; rework arithmetic.
8571         Remove recursive call from arg to MAX.
8572         (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
8573         (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
8574         REGNO now unsigned.
8575         (set_nonzero_bit_and_sign_copies): NUM now unsigned.
8576         (find_split_point, expand_compound_operation, make_extraction): LEN
8577         now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
8578         (make_field_assignment): Likewise.
8579         (combine_simplify_rtx): Add cast.
8580         (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
8581         (force_to_mode): WIDTH now unsigned; add cast.
8582         (if_then_else_cond): SIZE now unsigned.
8583         (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
8584         (extended_count): Now returns unsigned.
8585         (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
8586         Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
8587         (simplify_comparison): MODE_WIDTH now unsigned.
8588         (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
8589         (mark_used_regs_combine): Likewise; rework arithmetic.
8590         (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
8591         (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
8592         (record_promoted_value): REGNO now unsigned.
8593         (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
8594         (get_last_value): REGNO now unsigned.
8595         (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
8596         (reg_dead_regno, reg_dead_endregno): Now unsigned.
8597         (remove_death): Arg REGNO now unsigned.
8598         (move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
8599         (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
8600         now unsigned.
8601         * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
8602         * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
8603         (struct cse_reg_info): REGNO now unsigned.
8604         (cached_regno): Now unsigned.
8605         (REGNO_QTY_VALID_P): Add cast.
8606         (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
8607         (remove_invalid_regs): Likewise.
8608         (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
8609         as are variables END and I.
8610         (get_cse_reg_info, insert): Likewise.
8611         (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
8612         (canon_hash): Likewise.
8613         (insert_regs, lookup_for_remove): REGNO now unsigned.
8614         (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
8615         New variable RN.
8616         * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
8617         * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
8618         * emit-rtl.c (subreg_realpart_p): Add cast.
8619         (operand_subword): Arg I is now unsigned as is var PARTWORDS.
8620         (operand_subword_force): Arg I is now unsigned.
8621         * except.c (eh_regs): Variable I is now unsigned.
8622         * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
8623         * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
8624         length is unsigned HOST_WIDE_INT; likewise for internal variables.
8625         (store_split_bit_field, extract_fixed_bit_field): Likewise.
8626         (extract_split_bit_field, store_bit_field, extract_bit_field):
8627         Likewise.
8628         * expr.c (store_constructor_fields, store_constructor, store_field):
8629         Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
8630         (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
8631         (do_jump): Likewise.
8632         (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
8633         MAX_SIZE is now unsigned.
8634         (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
8635         (emit_group_store): Likewise.
8636         (emit_move_insn): I now unsigned.
8637         (store_constructor): Use host_integerp, tree_low_cst, and
8638         bitsize_unit_node.
8639         (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
8640         Rework all calculations to use trees and new fields.
8641         * expr.h (promoted_input_arg): Regno now unsigned.
8642         (store_bit_field, extract_bit_field): Adjust types of pos and size.
8643         (mark_seen_cases): Arg is HOST_WIDE_INT.
8644         * flow.c (verify_wide_reg_1): REGNO now unsigned.
8645         * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
8646         precisions and alignments are unsigned.
8647         (optimize_bit_field_compare, fold_truthop): Likewise.
8648         (int_const_binop): Adjust threshold for size_int_type_wide call.
8649         (fold_convert): Likewise.
8650         (size_int_type_wide): Make table larger and fix thinko that only
8651         had half of table used.
8652         (all_ones_mask_p, fold): Precisions are unsigned.
8653         * function.c (put_reg_info_stack): REGNO is unsigned.
8654         (instantiate_decl): Size is HOST_WIDE_INT.
8655         (instantiate_virtual_regs): I is unsigned.
8656         (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
8657         (promoted_input_arg): REGNO is unsigned.
8658         * function.h (struct function): x_max_parm_reg is now unsigned.
8659         * gcse.c (max_gcse_regno): Now unsigned.
8660         (struct null_pointer_info): min_reg and max_reg now unsigned.
8661         (lookup_set, next_set): REGNO arg now unsigned.
8662         (compute_hash_table): REGNO and I now unsigned.
8663         (handle_avail_expr): regnum_for_replacing now unsigned.
8664         (cprop_insn): REGNO now unsigned.
8665         (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
8666         * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
8667         * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
8668         * hard-reg-set.h (reg_class_size): Now unsigned.
8669         * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
8670         * jump.c (mark_modified_reg): I now unsigned; add cast.
8671         (rtx_equal_for_thread_p): Add cast.
8672         * loop.c (max_reg_before_loop): Now unsigned.
8673         (struct_movable): REGNO now unsigned.
8674         (try_copy_prop): REGNO arg unsigned.
8675         (regs_match_p): XN and YN now unsigned.
8676         (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
8677         (strength_reduce): Likewise; NREGS also unsigned.
8678         (first_increment_giv, last_increment_giv unsigned): Now unsigned.
8679         * loop.h (struct iv_class): REGNO now unsigned.
8680         (max_reg_before_loop, first_increment_giv, last_increment_giv):
8681         Now unsigned.
8682         * machmode.h (mode_size, mode_unit_size): Now unsigned.
8683         (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
8684         * optabs.c (expand_binop): I and NWORDS now unsigned.
8685         (expand_unop): I now unsigned.
8686         * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
8687         print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
8688         * real.c (significand_size): Now returns unsigned.
8689         * real.h (significand_size): Likewise.
8690         * regclass.c (reg_class_size): Now unsigned.
8691         (choose_hard_reg_mode): Both operands now unsigned.
8692         (record_reg_classes): REGNO and NR now unsigned.
8693         (reg_scan): NREGS now unsigned.
8694         (reg_scan_update): old_max_regno now unsigned.
8695         (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
8696         * reload.c (find_valid_class): BEST_SIZE now unsigned.
8697         (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
8698         (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
8699         Likewise for variable R.
8700         (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
8701         as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
8702         (find_equiv_reg): Add casts.
8703         (regno_clobbered_p): Arg REGNO now unsigned.
8704         * reload.h (struct reload): NREGS now unsigned.
8705         (refers_to_regno_for_reload_p): Regno args are unsigned.
8706         (regno_clobbered_p): Likewise.
8707         * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
8708         (compute_use_by_pseudos): REGNO now unsigned.
8709         (find_reg): I and J now unsigned, new variable K, and change loop
8710         variables accordingly; THIS_NREGS now unsigned.
8711         (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
8712         (spill_hard_reg): REGNO arg now unsigned; add casts.
8713         (forget_old_reloads_1): REGNO, NR, and I now unsigned.
8714         (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
8715         (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
8716         END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
8717         (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
8718         (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
8719         (emit_reload_insns): REGNO now unsigned.
8720         (reload_cse_move2add): Add cast.
8721         (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
8722         and rework loop.
8723         * resource.c (mark_referenced_resources, mark_set_resources): New
8724         variable R; REGNO and LAST_REGNO now unsigned.
8725         (mark_target_live_regs): J and REGNO now unsigned.
8726         * rtl.c (mode_size, mode_unit_size): Now unsigned.
8727         * rtl.h (union rtunion_def): New field rtuint.
8728         (XCUINT): New macro.
8729         (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
8730         (operand_subword, operand_subword_force): Word number is unsigned.
8731         (choose_hard_reg_mode): Operands are unsigned.
8732         (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
8733         (find_regno_note, find_regno_fusage, replace_regs): Likewise.
8734         (regno_use_in, combine_instructions, remove_death): Likewise.
8735         (reg_scan, reg_scan_update): Likewise.
8736         (extended_count): Return is unsigned.
8737         * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
8738         INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
8739         (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
8740         (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
8741         (reg_reg_last_1): FIRS and LAST now unsigned.
8742         (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
8743         (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
8744         now unsigned.
8745         (find_regno_note, regno_use_in): Arg REGNO now unsigned.
8746         (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
8747         (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
8748         (replace_regs): Arg NREGS now unsigned.
8749         * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
8750         * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
8751         (simplify_binary_operation): Likewise.
8752         (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
8753         THIS_LAST now unsigned.
8754         (cselib_record_set): Add cast.
8755         * ssa.c (ssa_max_reg_num): Now unsigned.
8756         (rename_block): REGNO now unsigned.
8757         * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
8758         sizes now unsigned.
8759         (all_cases_count): Just return -1 not -2.
8760         COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
8761         Rework tests to use trees whenever possible.
8762         Use host_integerp and tree_low_cst.
8763         (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
8764         Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
8765         (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
8766         * stor-layout.c (mode_for_size): SIZE arg now unsigned.
8767         (smallest_mode_for_size): Likewise.
8768         (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
8769         KNOWN_ALIGN is now an alignment, so simplify code.
8770         Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
8771         (start_record_layout): Renamed from new_record_layout_info.
8772         Update to new fields.
8773         (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
8774         New functions.
8775         (place_union_field): Renamed from layout_union_field.
8776         Update to use new fields in rli.
8777         (place_field): Renamed from layout_field.
8778         Major rewrite to use new fields in rli; pass alignment to layout_decl.
8779         (finalize_record_size): Rework to use new fields in rli and handle
8780         union.
8781         (compute_record_mode): Rework to simplify and to use new DECL fields.
8782         (finalize_type_size): Make rounding more consistent.
8783         (finish_union_layout): Deleted.
8784         (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
8785         (layout_type, case RECORD_TYPE): Call new function names.
8786         (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
8787         (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
8788         (get_best_mode): UNIT is now unsigned; remove casts.
8789         * tree.c (bit_position): Compute from new fields.
8790         (byte_position, int_byte_position): New functions.
8791         (print_type_hash_statistics): Cast to remove warning.
8792         (build_range_type): Use host_integerp and tree_low_cst to try to hash.
8793         (build_index_type): Likewise; make subtype of sizetype.
8794         (build_index_2_type): Pass sizetype to build_range_type.
8795         (build_common_tree_nodes): Use size_int and bitsize_int to
8796         initialize nodes; add bitsize_{zero,one,unit}_node.
8797         * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
8798         (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
8799         (DECL_PACKED, DECL_BIT_FIELD): Likewise.
8800         (DECL_FIELD_BITPOS): Deleted.
8801         (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
8802         (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
8803         (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
8804         (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
8805         (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
8806         (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
8807         (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
8808         (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
8809         (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
8810         (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
8811         (DECL_ALIGN): Adjust to new field in union.
8812         (DECL_OFFSET_ALIGN): New field.
8813         (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
8814         (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
8815         (union tree_decl): Add struct for both aligns.
8816         (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
8817         (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
8818         (struct record_layout_info): Rework fields to have offset
8819         alignment and byte and bit position.
8820         (start_record_layout, place_field): Renamed from old names.
8821         (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
8822         (byte_position, int_byte_position): Likewise.
8823         (get_inner_reference): Change types of position and length.
8824         * unroll.c (unroll_loop): New variable R; use for some loops.
8825         MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
8826         (calculate_giv_inc): Arg REGNO now unsigned.
8827         (copy_loop_body): REGNO and SRC_REGNO now unsigned.
8828         * varasm.c (assemble_variable): Clean up handling of size using
8829         host_integerp and tree_low_cst.
8830         (decode_addr_const): Use byte, not bit, position.
8831         (output_constructor): bitpos and offsets are HOST_WIDE_INT;
8832         use tree_low_cst and int_bit_position.
8833         * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
8834
8835 Fri Mar 24 20:13:49 2000  Jason Eckhardt  <jle@cygnus.com>
8836
8837         * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
8838         (reorder_block_def): New members eff_head and eff_end.
8839         (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
8840         (verify_insn_chain): New function.
8841         (skip_insns_between_block): Add code to skip deleted insns.
8842         Check for note before using.
8843         (chain_reorder_blocks): Replace calls to skip_insns_between_block
8844         with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
8845         Check for note before using.
8846         (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
8847         (fixup_reorder_chain): Restructure, clean up, defect removal.
8848         (reorder_basic_blocks): Remove last_insn and references to it.
8849         Moved insn chain verification code into a new function (see above).
8850         Delete defective code that sets last insn.
8851         Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
8852         all blocks.
8853
8854 2000-03-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8855
8856         * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
8857
8858 2000-03-24  Richard Henderson  <rth@cygnus.com>
8859
8860         * tree.c (lang_safe_for_unsave): Remove.
8861         (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
8862         allowing for two levels of unsafeness.  Remove lang hook.
8863         * tree.h: Update declarations.
8864         * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
8865         Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
8866         Always fail sibcalls when there are pending cleanups.
8867
8868 2000-03-24  Geoff Keating  <geoffk@cygnus.com>
8869
8870         * flow.c (propagate_block): When we delete an ADDR_VEC,
8871         also delete the BARRIER following it if there is one.
8872
8873 2000-03-24  Richard Henderson  <rth@cygnus.com>
8874
8875         * builtins.c (expand_builtin_bzero): Convert `length' argument
8876         to sizetype.
8877
8878 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
8879
8880         * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
8881         comparison if regno's are equal.
8882         * calls.c (initialize_argument_informat): Add ecf_flags argument.
8883         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
8884         (expand_call): Update caller.
8885         Avoid making a sibling call if argument size of the callee is larger
8886         than argument size of the caller.
8887         Call hard_function_value with outgoing set if in sibcall pass.
8888         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
8889
8890         * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
8891         Change LEAF_REGISTERS from an array initializer to actual array
8892         identifier. Move static global variable into the function.
8893         (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
8894         sequences for leaf functions.
8895         * global.c (global_alloc): Likewise.
8896         * tm.texi (LEAF_REGISTERS): Update documentation.
8897
8898         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
8899         TARGET_FLAT leaf disabling hack.
8900         (LEAF_REGISTERS): Changed from an array initializer to actual array
8901         identifier to avoid duplication and remove the above hack.
8902         (FUNCTION_OK_FOR_SIBCALL): Define.
8903         * config/sparc/sparc.md (sibcall): New attr type. Use it almost
8904         always like call attribute.
8905         (eligible_for_sibcall_delay): New attribute.
8906         (sibcall): New delay type.
8907         (sibcall, sibcall_value, sibcall_epilogue): New expands.
8908         (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
8909         sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
8910         * config/sparc/sparc.c (sparc_leaf_regs): New array.
8911         (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
8912         New functions.
8913         (output_function_epilogue): Move part of the code into
8914         output_restore_regs.
8915         (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
8916         TYPE_SIBCALL.
8917         * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
8918         prototypes.
8919
8920         * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
8921         until infrastructure is finished.
8922
8923 Fri Mar 24 13:49:45 2000  Jeffrey A Law  (law@cygnus.com)
8924
8925         * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
8926         (save_parm_insns): Not here.
8927
8928 2000-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8929
8930         * builtins.c (expand_builtin_bzero): New function.
8931         (expand_builtin): Handle bzero.
8932
8933         * builtins.def: Add BUILT_IN_BZERO.
8934
8935         * c-common.c (c_common_nodes_and_builtins): Provide builtin
8936         prototype & function for bzero.
8937
8938 2000-03-23  Michael Meissner  <meissner@redhat.com>
8939
8940         * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
8941         change adding TARGET_FP to the TF floating point insns, except for
8942         trunctfsf2, which generates direct calls to truncdfsf2.
8943
8944 2000-03-23  Geoff Keating  <geoffk@cygnus.com>
8945
8946         * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
8947         try to protect against middle-end changes that break binary
8948         compatibility.
8949         (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
8950
8951 2000-03-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8952
8953         * config/c4x/c4x.md (load_immed_address):  Add DP reg clobber.
8954
8955 Thu Mar 23 17:10:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8956
8957         * calls.c (expand_call): If TARGET is passed by reference and
8958         is readonly, write a CLOBBER.
8959
8960 2000-03-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8961
8962         * builtins.c (expand_builtin): Handle bcmp.
8963
8964         * builtins.def: Add BUILT_IN_BCMP.
8965
8966         * c-common.c (c_common_nodes_and_builtins): Provide builtin
8967         prototype & function for bcmp.
8968
8969 Thu Mar 23 11:34:39 2000  Jim Wilson  <wilson@cygnus.com>
8970
8971         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
8972         (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
8973         * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
8974
8975 Thu Mar 23 16:04:40 2000  Andrew Haley  <aph@cygnus.com>
8976
8977         * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
8978         alternative when using -fp64 -gp32.
8979
8980 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
8981
8982         * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
8983         * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
8984         * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
8985
8986         * frame.h (frame_state): Revert last change.
8987         * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
8988         * libgcc2.c (throw_helper): Revert last change.
8989
8990 2000-03-22  Richard Henderson  <rth@cygnus.com>
8991
8992         * stmt.c (expand_asm_operands): Don't promote the temporary.
8993
8994 2000-03-22  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8995
8996         * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
8997         * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
8998           c_get_alias_set): Likewise.
8999         * c-decl.c (duplicate_decls): Likewise.
9000         * c-typeck.c (default_conversion,build_unary_op): Likewise.
9001         * calls.c (initialize_argument_information): Likewise.
9002         * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
9003         Likewise.
9004         * dwarfout.c (decl_class_context,output_type): Likewise.
9005         * expr.c (get_inner_reference): Likewise.
9006         * fold-const.c (simple_operand_p,fold): Likewise.
9007         * function.c (aggregate_value_p): Likewise.
9008         * stmt.c (expand_asm_operands): Likewise.
9009         * varasm.c (named_section): Likewise.
9010
9011 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
9012
9013         Implement dwarf2 exception handling for the ARM.
9014         * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
9015         (DWARF_FRAME_RETURN_COLUMN): Define.
9016         * config/arm/arm.c (emit_multi_reg_push): Return rtx.  Attach
9017         REG_FRAME_RELATED_EXPR note.
9018         (emit_sfm): Likewise.
9019         (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
9020         * dwarf2out.c (reg_save): Handle saving a register to itself.
9021         (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
9022         * except.c (eh_regs): Don't use the static chain reg if it's
9023         callee-saved.
9024         * frame.h (frame_state): Add cfa_saved field.
9025         * frame.c (execute_cfa_insn): Set it.
9026         * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
9027         the epilogue.
9028         * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
9029         Now takes a parm.
9030         (instantiate_virtual_regs): Adjust.
9031         * tm.texi: Adjust.
9032         * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
9033         * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
9034         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
9035
9036         * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
9037         (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
9038
9039 2000-03-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9040
9041         * builtins.def: New file.
9042
9043         * Makefile.in (TREE_H): Depend on builtins.def.
9044
9045         * builtins.c (built_in_names): Use builtins.def.
9046
9047         * tree.h (built_in_function): Likewise.
9048
9049 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
9050
9051         * tree.c (size_in_bytes): Return size_zero_node, not
9052         integer_zero_node.
9053
9054 2000-03-22  Geoff Keating  <geoffk@cygnus.com>
9055
9056         * config/fp-bit.c (pack_d): Correct the case when a denormal
9057         is rounded up and stops being denormal.
9058
9059 2000-03-21  Richard Henderson  <rth@cygnus.com>
9060
9061         * config/alpha/alpha.c (function_arg): Check for void_type_node
9062         before using MUST_PASS_IN_STACK.
9063
9064 2000-03-21  Stephane Carrez  <stcarrez@worldnet.fr>
9065
9066         * regmove.c (combine_stack_adjustments_for_block): Check that
9067         the stack pointer is a valid memory address.
9068
9069 Wed Mar 22 11:44:50 MET 2000  Jan Hubicka  <jh@suse.cz>
9070
9071         * calls.c: re-install Mar 16 emit_library_call merge.
9072
9073 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
9074
9075         * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
9076         we cannot be sure that if reload_completed base register will
9077         be properly aligned.
9078
9079 2000-03-21  Richard Henderson  <rth@cygnus.com>
9080
9081         * flow.c (delete_block): Fix typo last change.
9082
9083 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
9084
9085         * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
9086         not COMPLETE_TYPE_P, to check the type of the expression.
9087
9088 2000-03-21  Michael Meissner  <meissner@redhat.com>
9089
9090         * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
9091         all floating point insns that just tested the macro
9092         TARGET_HAS_XFLOATING_LIBS.
9093         (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
9094         used to only use the gprs.
9095
9096 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
9097
9098         * tree.h (COMPLETE_TYPE_P): New macro.
9099         (COMPLETE_OR_VOID_TYPE_P): New macro.
9100         (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
9101         * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
9102         * c-aux-info.c (gen_type): Use them.
9103         * c-common.c (c_expand_expr_stmt): Likewise.
9104         * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
9105         grokdeclarator, grokparms, finish_struct, start_function,
9106         store_parm_decls, combine_parm_decls): Likewise.
9107         * c-parse.y (cast_expr): Likewise.
9108         * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
9109         c_size_in_bytes, c_alignof, build_component_ref,
9110         build_indirect_ref, build_array_ref, convert_arguments,
9111         build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
9112         * calls.c (initialize_argument_information): Likewise.
9113         * convert.c (convert_to_integer): Likewise.
9114         * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
9115         * dwarfout.c (location_or_const_value_attribute,
9116         output_enumeration_type_die, output_structure_type_die,
9117         output_union_type_die, output_type): Likewise.
9118         * expr.c (safe_from_p, expand_expr): Likewise.
9119         * function.c (assign_parms): Likewise.
9120         * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
9121         * tree.c (build_array_type, build_function_type,
9122         build_method_type, build_offset_type, build_complex_type): Likewise.
9123         * c-parse.c, c-parse.h: Regenerated.
9124
9125 2000-03-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9126
9127         * config/c4x/rtems.h: Include config/rtems.h.
9128
9129 Tue Mar 21 09:24:00 2000  Denis Chertykov  <denisc@overta.ru>
9130
9131         * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
9132         decl is a FUNCTION_DECL
9133
9134 Mon Mar 20 19:53:53 2000  Jim Wilson  <wilson@cygnus.com>
9135
9136         * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
9137         function uses output registers.  Don't save RP for leaf functions.
9138         Do save RP even if no epilogue.
9139         * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
9140         (CALL_USED_REGISTERS): Unmark in registers.
9141         (REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
9142         to near the middle.
9143
9144 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
9145
9146         * config/rs6000/rs6000.md (bunordered): New expander.
9147         (bordered): New expander.
9148         (buneq): New expander.
9149         (bunge): New expander.
9150         (bungt): New expander.
9151         (bunle): New expander.
9152         (bunlt): New expander.
9153         (bltgt): New expander.
9154
9155         * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
9156         (ccr_bit_negated_p): New function.
9157         (print_operand): For %C, generate appropriate cror for UNEQ,
9158         UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.
9159
9160 2000-03-20  Andreas Jaeger  <aj@suse.de>
9161
9162         * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
9163         warning.
9164
9165         * tree.h (safe_for_unsave): Prototype.
9166
9167 2000-03-20  Richard Henderson  <rth@cygnus.com>
9168
9169         * regmove.c (stack_memref_p): Fix typo, reorg for readability.
9170         (combine_stack_adjustments_for_block): Don't allow sp references
9171         in the side of a set we're not fixing up.
9172         * toplev.c (rest_of_compilation): Run combine_stack_adjustments
9173         after life_analysis.
9174
9175 2000-03-20  Richard Henderson  <rth@cygnus.com>
9176
9177         * calls.c (expand_call): Don't bother generating tail call
9178         sequences if there are pending cleanups.  Use
9179         expand_start_target_temps/expand_end_target_temps to elide
9180         cleanups created during sibcall expansion.
9181
9182 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
9183
9184         * configure.in: Set $IFS to a value if it doesn't already have one
9185         in the --enable-checking handling.
9186         * configure: Regenerate.
9187
9188 2000-03-20  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9189
9190         * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
9191         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
9192         Regenerated.
9193
9194 Mon Mar 20 11:43:15 MET 2000  Jan Hubicka  <jh@suse.cz>
9195
9196         * jump.c (delete_noop_moves): Remove code attempting to
9197         combine stack adjustments.
9198
9199 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9200
9201         * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
9202         * except.c (emit_cleanup_handler): Use them.
9203         (expand_end_all_catch): Likewise.
9204         * function.c (fixup_var_refs): Likewise.
9205         (expand_function_end): Clear catch_clauses_last.
9206         * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
9207         * except.h (struct eh_status): New field x_catch_clauses_last.
9208         (catch_clauses_last): New define.
9209
9210         * Makefile.in (tree.o): Depend on HASHTAB_H.
9211         * tree.c: Include hashtab.h.
9212         (struct type_hash): Remove next field.
9213         (TYPE_HASH_SIZE): Remove.
9214         (TYPE_HASH_INITIAL_SIZE): New define.
9215         (type_hash_table): Change type to htab_t.
9216         (type_hash_eq, type_hash_hash, print_type_hash_statistics,
9217         mark_hash_entry): New functions.
9218         (init_obstacks): Allocate type hash.
9219         (type_hash_lookup): Use htab functions.
9220         (type_hash_add, mark_type_hash): Likewise.
9221         (dump_tree_statistics): Call print_type_hash_statistics.
9222
9223 2000-03-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9224
9225         * rs6000/t-aix41: New file.
9226
9227         * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
9228
9229 Sun Mar 19 13:27:30 2000  Hans-Peter Nilsson  <hp@axis.com>
9230
9231         * tm.texi (Driver): Fix typos and tweak entry for
9232         INCLUDE_DEFAULTS.
9233         Move misplaced STRUCT_FORCE_BLK entry ...
9234         (Storage Layout): ... to here.
9235         (Run-time Target): Recommend having TARGET_MASK_... helper macros.
9236
9237 2000-03-19  Richard Henderson  <rth@cygnus.com>
9238
9239         * flow.c (delete_block): Delete the addr_vec along with the block.
9240         (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
9241         reference labels.
9242
9243         * fold-const.c (extract_muldiv): Apply type check for defined
9244         overflow to multiply as well as divide.
9245
9246         * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
9247
9248 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
9249
9250         * emit-rtl.c (remove_unncessary_notes): Check that all
9251         NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
9252         associated NOTE_BLOCK.
9253         * function.h (identify_blocks): Update comments.
9254         (reorder_blocks): Declare.
9255         * function.c (identify_blocks): Don't take paramters.
9256         (reorder_blocks): Don't take parameters.
9257         * loop.h (find_loop_tree_blocks): Remove.
9258         (unroll_block_trees): Likewise.
9259         * loop.c (loop_optimize): Don't call find_loop_tree_blocks.  Use
9260         reorder_blocks instead of unroll_block_trees.h
9261         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
9262         * stmt.c (find_loop_tree_blocks): Remove.
9263         (unroll_block_trees): Likewise.
9264         * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
9265         in whole-function mode.
9266         * tree.h (reorder_blocks): Remove declaration.
9267
9268         * expr.c: Include intl.h.
9269         * Makefile.in (expr.o): Depend on intl.h.
9270
9271 2000-03-18  Richard Henderson  <rth@cygnus.com>
9272
9273         * expr.c (emit_move_insn_1): Clarify cannot_inline message.
9274
9275 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
9276
9277         * tree.h (tree_index): Remove enumerals for integer types.
9278         (integer_type_kind): New type.
9279         (integer_types): New variable.
9280         (char_type_node): Adjust.
9281         (signed_char_type_node): Likewise.
9282         (unsigned_char_type_node): Likewise.
9283         (short_integer_type_node): Likewise.
9284         (short_unsigned_type_node): Likewise.
9285         (integer_type_node): Likewise.
9286         (unsigned_type_node): Likewise.
9287         (long_integer_type_node): Likewise.
9288         (long_unsigned_type_node): Likewise.
9289         (long_long_integer_type_node): Likewise.
9290         (long_long_unsigned_type_node): Likewise.
9291         * tree.c (integer_types): New variable.
9292         (init_obstacks): Register it as a root.
9293
9294 Sat Mar 18 14:38:00 2000  Jason Eckhardt  <jle@cygnus.com>
9295
9296         * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
9297         NEXT_INSN. Update last insn in chain.
9298
9299 2000-03-17  Jason Merrill  <jason@casey.cygnus.com>
9300
9301         * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
9302         with TYPE_DECL_SUPPRESS_DEBUG set.
9303
9304 2000-03-18  Richard Henderson  <rth@cygnus.com>
9305
9306         * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
9307
9308 2000-03-18  Richard Henderson  <rth@cygnus.com>
9309
9310         * i386.c (call_insn_operand): Always allow SYMBOL_REF,
9311         care for HALF_PIC_P.
9312         (expander_call_insn_operand): Remove.
9313         (ix86_expand_epilogue): New arg `emit_return' to control return insn.
9314         * i386.h (PREDICATE_CODES): Update.
9315         * i386.md (all call expanders): Remove predicates, remove special
9316         handling for half-pic.
9317         (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
9318         (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
9319         (sibcall_epilogue): New.
9320
9321 2000-03-17  Richard Henderson  <rth@cygnus.com>
9322
9323         * rtlanal.c (single_set): Reject if the parallel has anything
9324         except SET or USE or CLOBBER.
9325
9326 2000-03-17  Jeff Law  <law@cygnus.com>
9327             Richard Henderson  <rth@cygnus.com>
9328
9329         * Makefile.in (OBJS): Add sibcall.o.
9330         (sibcall.o): New.
9331         * sibcall.c: New file.
9332         * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
9333         (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
9334         (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
9335         Emit sibcall patterns when requested.  Update all callers.
9336         (expand_call): Generate CALL_PLACEHOLDER insns when tail call
9337         elimination seems feasable.
9338         * final.c (leaf_function_p): Sibling calls don't discount being
9339         a leaf function.
9340         * flow.c (HAVE_sibcall_epilogue): Provide default.
9341         (find_basic_blocks_1): Sibling calls don't throw.
9342         (make_edges): Make edge from sibling call to EXIT.
9343         (propagate_block): Don't remove sibcall_epilogue insns.
9344         * function.c (prologue, epilogue): Turn into varrays.  Update all uses.
9345         (sibcall_epilogue): New.
9346         (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
9347         (identify_blocks_1): Likewise.  Break out from ...
9348         (identify_blocks): ... here.
9349         (reorder_blocks_1): Scan CALL_PLACEHOLDER.  Break out from ...
9350         (reorder_blocks): ... here.
9351         (init_function_for_compilation): Zap prologue/epilogue as varrays.
9352         (record_insns): Extend a varray instead of mallocing new memory.
9353         (contains): Read a varray not array of ints.
9354         (sibcall_epilogue_contains): New.
9355         (thread_prologue_and_epilogue_insns): Emit and record
9356         sibcall_epilogue patterns.
9357         (init_function_once): Allocate prologue/epilogue varrays.
9358         * genflags.c (gen_insn): Treat sibcall patterns as calls.
9359         * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
9360         Broken out from ...
9361         (save_for_inline_nocopy): ... here.
9362         (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
9363         Broken out from ...
9364         (expand_inline_function): ... here.
9365         (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
9366         (subst_constants): Handle 'n' formats.
9367         * jump.c (jump_optimize_minimal): New.
9368         (jump_optimize_1): New arg `minimal'; update callers.  Elide most
9369         optimizations if it's set.
9370         * rtl.c (copy_rtx): Do copy jump & call for insns.
9371         * rtl.h (struct rtx_def): Document use of jump and call for insns.
9372         (SIBLING_CALL_P): New.
9373         (sibcall_use_t): New.
9374         * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
9375         Invoke optimize_sibling_and_tail_recursive_calls.
9376         * tree.c (lang_safe_for_unsave): New.
9377         (safe_for_unsave): New.
9378         * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
9379
9380         * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
9381         * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
9382         (*sibcall_osf_1, *sibcall_value_osf_1): New.
9383
9384 2000-03-17  Mark Mitchell  <mark@codesourcery.com>
9385
9386         * objc/objc-act.c (encode_method_prototype): Pass types, not
9387         PARM_DECLs, to int_size_in_bytes.
9388
9389 Fri Mar 17 11:51:34 2000  Jim Wilson  <wilson@cygnus.com>
9390
9391         * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
9392
9393         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9394         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
9395
9396 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9397
9398         * Clean up usages of TREE_INT_CST_LOW.
9399         * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
9400         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
9401         Regenerated.
9402         * c-tree.h (min_precision): Move declaration to here.
9403         * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
9404         (build_unary_op, add_pending_init): Use bit_position.
9405         (pending_init_member, process_init_element): Likewise.
9406         (really_start_incremental_init, push_init_level, pop_init_level):
9407         Don't make copies of nodes or modify them in place, use consistent
9408         types when tracking positions, and use tree routines computations.
9409         (set_init_index, output_init_element): Likewise.
9410         (output_pending_init_elements, process_init_element): Likewise.
9411         * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
9412         tree_low_cst and int_bit_position; also minor cleanup.
9413         (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
9414         (print_cst_octal): Precision is unsigned.
9415         (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
9416         * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
9417         (simple_type_align_in_bits): Result is unsigned int.
9418         Use tree_int_low_cst and host_integerp.
9419         (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
9420         (field_byte_offset): Result is HOST_WIDE_INT.
9421         Change types of internal variables so alignments are unsigned int,
9422         offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
9423         Use host_integerp, tree_low_cst, and int_bit_position.
9424         (add_bit_offset_attribute): Likewise.
9425         (add_data_member_location_attribute): Use tree_cst_low.
9426         (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
9427         (add_bit_size_attribute): Use tree_low_cst.
9428         (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
9429         * dwarfout.c: Similar changes to dwarf2out.c.
9430         * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
9431         * genoutput.c (n_occurences): Return -1 for null string.
9432         (strip_whitespace): Accept null string and make into function.
9433         (scan_operands): Reflect above changes.
9434         * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
9435         (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
9436         * ssa.c (rename_registers): Add missing cast of arg to bzero.
9437         * tree.c (int_size_in_bytes): Check for too big to represent.
9438         (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
9439         * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
9440         New declarations.
9441         (min_precision): Delete from here.
9442         * varasm.c (decode_addr_const): Use host_integerp, bit_position,
9443         and int_bit_position.
9444         * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
9445         (encode_method_def): Likewise.
9446         (build_ivar_list_initializer): Use int_bit_position.
9447         (generate_shared_structures): Convert size.
9448         (encode_type, encode_complete_bitfield): Use integer_zerop.
9449         (encode_bitfield): Use tree_low_cst and int_bit_position.
9450
9451 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9452
9453         * config/c4x/c4x.h (CPP_SPEC): Fix typo.
9454
9455 2000-03-17  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9456
9457         * call.c (special_function_p): It is only malloc if it returns
9458         Pmode.
9459
9460 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9461
9462         * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
9463         (C33_FLAG, TARGET_C3X): Add macros.
9464         (TARGET_SWITCHES): Add -m33 option.
9465         * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
9466
9467 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9468
9469         * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
9470         (PARALLEL_PACK_FLAG): Delete.
9471         (TARGET_SWITCHES): Update.
9472         (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
9473
9474 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9475
9476         * fold-const.c (fold): Fix a few cases when the returned result
9477         is not of the same type as the input.
9478
9479 2000-03-16  Nick Clifton  <nickc@cygnus.com>
9480
9481         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
9482         warning.
9483
9484 2000-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9485
9486         * libgcc2.h: Move prototypes above macros with the same name.
9487         Wrap some function prototypes in the conditional which indicates
9488         whether they are supported, i.e. "BITS_PER_UNIT == 8".
9489
9490 2000-03-16  Richard Henderson  <rth@cygnus.com>
9491
9492         * calls.c: Revert last two changes.
9493
9494 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
9495
9496         * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
9497         has exponent 0 is a zero.
9498
9499         * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
9500         HASH may already be nonzero.  Add code/mode into hash value
9501         immediately after repeat label.
9502         (cselib_lookup): Don't leave the hash table in an inconsistent
9503         state before a hash lookup operation.
9504
9505 Thu Mar 16 17:03:10 MET 2000  Jan Hubicka  <jh@suse.cz>
9506
9507         * i386.md (all HI and QI mode non-move patterns):  Conditionize
9508         by TARGET_[HQ]IMODE_MATH.
9509         * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
9510         x86_promote_qi_regs): Declare.
9511         (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
9512         TARGET_PROMOTE_QI_REGS): New macros.
9513         (PROMOTE_MODE): New macro.
9514         * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
9515         x86_promote_qi_regs): New global variables.
9516
9517 Thu Mar 16 16:50:44 MET 2000  Jan Hubicka  <jh@suse.cz>
9518
9519         * calls.c (emit_library_call_value_1): Break out from ...; handle
9520         VOIDmode function calls too.
9521         (emit_library_call_value): ... here.
9522         (emit_library_call): Implement by calling emit_library_call_value_1.
9523
9524 Thu Mar 16 16:01:30 MET 2000  Jan Hubicka  <jh@suse.cz>
9525
9526         * calls.c (expand_call): Do sanity checking on arg_space_so_far.
9527         Update arg_space_so_far on stack adjustments.
9528         (emit_library_call, emit_library_call_value): Likewise; take into
9529         account arg_space_so_far and pending_stack_adjust when calculcating
9530         the boundary.
9531
9532 Thu Mar 16 09:02:19 2000  Jason Eckhardt  <jle@cygnus.com>
9533
9534         * flow.c: Move all basic block reordering code into its own file.
9535         (create_basic_block): Externalize.
9536         * bb-reorder.c: New file. Copy all basic block reordering code from
9537         flow.c to this file.
9538         (reorder_basic_blocks): Fix fencepost error in for-loop.
9539         (reorder_basic_blocks): Remove braces from single statement for-loops.
9540         * basic-block.h: Add declaration for create_basic_block.
9541         * Makefile.in: Add rules for bb-reorder.o.
9542
9543 2000-03-16  Neil Booth  <NeilB@earthling.net>
9544
9545         * cppinit.c (handle_option):  Implement #unassert directive
9546         as -A- command line option.
9547         (print_help):  Update.
9548         * cpptexi.c:  Update.
9549
9550 Thu Mar 16 02:14:16 2000  Hans-Peter Nilsson  <hp@bitrange.com>
9551
9552         * md.texi (Standard Names): Document `jump'.
9553
9554 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
9555
9556         * calls.c (emit_call_1): Nothrow functions can still have nonlocal
9557         gotos.
9558
9559 2000-03-15  Geoff Keating  <geoffk@cygnus.com>
9560
9561         Merge changes from newppc-branch onto trunk.
9562
9563         2000-03-15  Geoff Keating  <geoffk@cygnus.com>
9564
9565         * rs6000.c (toc_hash_table): Update for new hash table functions.
9566         (toc_hash_function): Likewise.
9567         (toc_hash_eq): Likewise.
9568         (toc_hash_mark_entry): Likewise.
9569         (toc_hash_mark_table): Likewise.
9570         (output_toc): Likewise.
9571         (rs6000_add_gc_roots): Likewise.
9572
9573         2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9574
9575         * t-aix43 (AR_FOR_TARGET): Deleted.  Moved `-X32_64'...
9576         (AR_FLAGS_FOR_TARGET): here.  New macro.
9577
9578         2000-03-05  Clinton Popetz  <cpopetz@cygnus.com>
9579
9580         * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
9581         fpmem_operand) Delete.
9582         (xer_operand) New.
9583         (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
9584         (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
9585         (rs6000_save_machine_status, rs6000_restore_machine_status,
9586         rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
9587         references to above variables.
9588         (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
9589         * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
9590         DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
9591         (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
9592         (XER_REGNO_P, XER_REGNO): New.
9593         (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
9594         (PREDICATE_CODES): Change fpmem_operand to xer_operand.
9595         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
9596         XER_REGNO_P.
9597         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
9598         REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS,         and remove FLOAT_OR_FPMEM_REGS.
9599         (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
9600
9601         2000-02-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9602
9603         * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
9604         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
9605         * rs6000.h: from here.
9606
9607         * rs6000-protos.h (rs6000_select_section): Provide prototype.
9608         (rs6000_select_rtx_section): Likewise.
9609         (rs6000_encode_section_info): Likewise.
9610         (sdata_section): Likewise.
9611         (sdata2_section): Likewise.
9612         (sbss_section): Likewise.
9613         * sysv4.h (rs6000_select_section): Delete prototype.
9614         (rs6000_select_rtx_section): Likewise.
9615         (rs6000_encode_section_info): Likewise.
9616         (sdata_section): Likewise.
9617         (sdata2_section): Likewise.
9618         (sbss_section): Likewise.
9619         (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
9620
9621         * sysv4.h: Delete various unnecessary #undef's and put a comment
9622         on the remaining ones.
9623         Change various comments according to coding standard.
9624
9625         2000-02-29  Clinton Popetz  <cpopetz@cygnus.com>
9626
9627         * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
9628         CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
9629         (CR0_REGNO_P) Remove.
9630         * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
9631         setup_incoming_varargs, mtcrf_operation, print_operand,
9632         rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
9633         Use the above macros.
9634
9635         2000-02-24  Clinton Popetz  <cpopetz@cygnus.com>
9636
9637         * config/rs6000/rs6000.md: Added a new alternative for each
9638         pattern that had a 'x' alternative but no 'y' alternative.
9639         Added a new split for each of the above patterns.
9640
9641         2000-02-18  Geoff Keating  <geoffk@cygnus.com>
9642
9643         * aix41.h (ASM_CPU_SPEC): Delete.
9644         (CPP_CPU_SPEC): Delete.
9645
9646         * aix.h (RS6000_OUTPUT_BASENAME): Define.
9647         (ASM_OUTPUT_LABEL): Define.
9648         (ASM_GLOBALIZE_LABEL): Define.
9649         (STRIP_NAME_ENCODING): Define.
9650         * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
9651         (STRIP_NAME_ENCODING): Don't define.
9652         (ASM_OUTPUT_LABEL): Don't define.
9653         (ASM_GLOBALIZE_LABEL): Don't define.
9654         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
9655         names, and ASM_OUTPUT_LABEL to output labels, rather than
9656         asm_fprintf.
9657         (ASM_OUTPUT_LABEL): Define.
9658         (ASM_OUTPUT_INT): Use assemble_name.
9659         (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
9660         (STRIP_NAME_ENCODING): Don't undefine first.
9661         (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
9662         ELF.
9663         (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
9664         specified with 'asm' even with -fleading-underscore.
9665         * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
9666         (output_epilog): Likewise.
9667         (output_toc): Likewise.
9668         * tramp.asm: Handle -fleading-underscore correctly.
9669
9670         * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
9671         -mminimal-toc.
9672         (nonlocal_goto_receiver): Delete.
9673         * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
9674
9675         * rs6000.h (ASM_OUTPUT_DEF): Don't define.
9676         (SET_ASM_OP): Define.
9677         * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
9678
9679         * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
9680         (ASM_LONG): Define.
9681
9682         * rs6000.c (rs6000_dll_import_ref): Delete, not used.
9683         * rs6000-protos.h (rs6000_dll_import_ref): Delete.
9684
9685         * rs6000.h: Add 'u' to more constants.
9686
9687         2000-02-18  David Edelsohn  <edelsohn@gnu.org>
9688
9689         * rs6000.md (mfcr+shift): Delete PowerPC64 version.
9690
9691         2000-02-15  David Edelsohn  <edelsohn@gnu.org>
9692
9693         * rs6000.c (reg_or_u_cint_operand): New function.
9694         (logical_operand): Handle 64-bit hosts.
9695         (logical_u_operand): New function.
9696         (non_logical_cint_operand): Handle 64-bit hosts.
9697         (non_logical_u_cint_operand): New function.
9698         * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
9699         (PREDICATE_CODES): Define new functions.
9700         * rs6000-protos.h: Declare new functions.
9701         * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
9702         (movdi_64): Bracket code intended for 64-bit hosts.  Create
9703         CONST_DOUBLE for 32-bit values.
9704         (scc insns): Generate DImode compares.
9705         (mfcr insns): Create DImode versions.
9706         (sge matchers): New patterns.
9707
9708         2000-02-15  Gabriel Paubert  <paubert@iram.es>
9709
9710         * rs6000.md: Correct instructions length attributes and
9711         constraints on unsigned compare instructions.
9712         (*ne0): Disable for PowerPC64.
9713
9714         2000-02-11  Geoff Keating  <geoffk@cygnus.com>
9715
9716         * rs6000.c (output_function_profiler): Use .long for a 32-bit
9717         quantity, fix profile1.C test failure under -fPIC.
9718
9719         * rs6000.c: Add 'u' to many constants to suppress warnings.
9720         (constant_pool_expr_1): Make static.
9721         (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
9722         * rs6000.h: Add 'u' to many constants to suppress warnings.
9723
9724         * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
9725         for the start of the TOC, instead of LCTOC..0.
9726         * aix.h (toc_section): Use LCTOC..1 under AIX for the start
9727         of the TOC.
9728         * rs6000.md (load_toc_aix_si): Use LCTOC..1.
9729         (load_toc_aix_di): Use LCTOC..1.
9730
9731         * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
9732         * rs6000.c (rs6000_legitimize_address): New function from
9733         LEGITIMIZE_ADDRESS.  Only use create_TOC_reference on
9734         symbols in the constant pool that really are TOC references.
9735         (print_operand_address): For ELF, write TOC offsets under
9736         -fPIC as subtractions in the insn.
9737         (output_toc): For ELF, define symbols in TOC as normal labels,
9738         to match RTL.
9739         (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
9740         * rs6000-protos.h (rs6000_legitimize_address): Prototype.
9741         (create_TOC_reference): Prototype only when RTX_CODE is defined.
9742         * rs6000.md (movsi): Only use create_TOC_reference on
9743         symbols in the constant pool that really are TOC references.
9744
9745         * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
9746         * rs6000.c (rs6000_reorg): Delete.
9747         * rs6000-protos.h (rs6000_reorg): Delete.
9748
9749         2000-02-09  Geoff Keating  <geoffk@cygnus.com>
9750
9751         * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
9752
9753         * aix.h (SETUP_FRAME_ADDRESSES): Define.
9754         * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
9755         [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
9756         [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
9757         * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
9758         rs6000_aix_emit_builtin_unwind_init.
9759         * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
9760         rs6000_emit_eh_toc_restore on AIX.
9761         (return_eh_si): Use r2.
9762         (return_eh_di): Use r2.
9763
9764         * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
9765         since we're breaking binary compatibility anyway.
9766
9767         2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
9768
9769         * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
9770         constant_pool_expr_p): Declare them.
9771         (constant_pool_expr_p): Declare it.
9772         * config/rs6000/rs6000.c (toc_label_name): Define.
9773         (rs6000_override_options): Set toc_label_name.
9774         (input_operand): Allow any TOC_RELATIVE_EXPR_P.
9775         (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
9776         uses_TOC): New functions.
9777         (print_operand): Delete old '*' case.
9778         (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9779         and strip off rtl for TOC before calling output_addr_const.
9780         (rs6000_emit_load_toc_table): Use toc_label_name.
9781         * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
9782         the default.
9783         (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
9784         (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
9785         (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
9786         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
9787         into explicit TOC_REGISTER offsets.
9788         (TOC_REGISTER): New macro.
9789         * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
9790         TARGET_TOC to reference TOC_REGISTER.
9791         (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
9792         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
9793         uses_TOC before emitting label references.
9794
9795         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
9796
9797         * rs6000.md (stack_tie): Fix warning.
9798
9799         * eabi-ctors.c: Use 'asm' names for the start/end variables,
9800         to handle -fleading-underscore.
9801         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
9802         (USER_LABEL_PREFIX): New macro.
9803         (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
9804         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
9805         * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
9806         call-linux can use the same multilibs.
9807         * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
9808         and call-linux multilibs.  Do multilib with -fleading-underscore.
9809         (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
9810         (MULTILIB_EXCEPTIONS): Remove call-linux exceptions.  Add restrictions
9811         to call-aix.
9812
9813         * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
9814         have MASK_SOFT_FLOAT set.
9815         (CPP_FLOAT_DEFAULT_SPEC): New macro.
9816         (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
9817         CPP_FLOAT_DEFAULT_SPEC.
9818
9819         * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
9820         * rs6000.md: Whitespace change.
9821         * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
9822         * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
9823
9824         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
9825
9826         * rs6000.md (eh_epilogue): New expander.
9827         (eh_reg_restore): New expand/split/insn combination.
9828         (return_eh_si): New insn.
9829         (return_eh_di): New insn.
9830
9831         * eabi-ci.asm: Put a label at the start of the .eh_frame section.
9832         * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
9833         * eabi-ctors.c (__do_global_ctors): Register this object's
9834         frame.  Clean up.  Call atexit() after the constructors.
9835         (__do_global_dtors): Deregister this object's frame.  Clean up.
9836         Allow for recursive calls to exit().
9837         * rs6000.c (fixuplabelno): New variable.
9838         * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
9839         TARGET_RELOCATABLE, it slows down exec() under linux.
9840         (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
9841
9842         * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
9843         (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
9844         (ASM_OUTPUT_DWARF_DELTA2): New macro.
9845         (ASM_OUTPUT_DWARF_DELTA4): New macro.
9846         (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
9847         (ASM_OUTPUT_DWARF_ADDR): New macro.
9848         (ASM_OUTPUT_DWARF_DATA4): New macro.
9849         (ASM_OUTPUT_DWARF_DATA2): New macro.
9850         (ASM_OUTPUT_DWARF_OFFSET4): New macro.
9851         (ASM_OUTPUT_DWARF_OFFSET): New macro.
9852         (UNALIGNED_INT_ASM_OP): New macro, fake definition.
9853
9854         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
9855
9856         * rs6000.c (rs6000_sr_alias_set): New variable.
9857         (rs6000_override_options): Initialise rs6000_sr_alias_set.
9858         (rs6000_emit_stack_tie): New function.
9859         (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
9860         in a way that dwarf2out can understand.
9861         (rs6000_frame_related): New function.
9862         (rs6000_emit_prologue): Use rs6000_sr_alias_set.  Specify
9863         RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
9864         Use rs6000_emit_stack_tie when needed.
9865         (rs6000_emit_epilogue): Use rs6000_sr_alias_set.  Don't set
9866         RTX_FRAME_RELATED_P.  Use rs6000_emit_stack_tie when needed.
9867         * rs6000.md (stack_tie): New insn.
9868         (return_internal_si): Allow return value to be in the count
9869         register.
9870         (return_internal_di): Likewise.
9871
9872         * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
9873
9874         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
9875
9876         * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
9877
9878         2000-01-31  Geoff Keating  <geoffk@cygnus.com>
9879
9880         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
9881
9882         * rs6000.md (stmw): Use the right POWER opcode.
9883         (lmw): Likewise.
9884
9885         2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9886
9887         * rs6000-protos.h: New file.
9888
9889         * rs6000.c: Include tm_p.h.  Fix compile time warnings.
9890
9891         * rs6000.h: Move prototypes to rs6000-protos.h.  Fix compile time
9892         warnings.
9893
9894         * sysv4.h: Likewise.
9895
9896         2000-01-28  Geoff Keating  <geoffk@cygnus.com>
9897
9898         * ../../configure.in: Delete powerpcle-*-winnt*
9899         and powerpcle-*-pe|powerpcle-*-cygwin*.
9900         * ../../configure: Regenerated.
9901         * cygwin.h: Delete.
9902         * rs6000.h (OBJECT_WINDOWS_NT): Delete.
9903         (TARGET_WINDOWS_NT): Delete.
9904         (ABI_NT): Delete.
9905         (CALL_NT_DLLIMPORT): Delete.
9906         Delete NT-specific code.
9907         * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
9908         * win-nt.h: Delete.
9909         * t-winnt: Delete.
9910         * nt-ci.asm: Delete.
9911         * nt-cn.asm: Delete.
9912         * ntstack.asm: Delete.
9913
9914         2000-01-27  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9915
9916         * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
9917         (ASM_FILE_START): Likewise.
9918         (ASM_DECLARE_FUNCTION_NAME): Likewise.
9919         (ASM_OUTPUT_LABELREF): Likewise.
9920         (ASM_OUTPUT_SKIP): Likewise.
9921         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
9922         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
9923         (ASM_OUTPUT_CASE_LABEL): Likewise.
9924         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9925         (ASM_OUTPUT_ASCII): Likewise.
9926
9927         2000-01-27  Clinton Popetz  <cpopetz@cygnus.com>
9928
9929         * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
9930         reload_toc_labelno for non-prologue TOC reloads.  Also, don't
9931         increment rs6000_pic_labelno here.
9932         (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
9933         and increment rs6000_pic_labelno here.
9934
9935         2000-01-24  Geoffrey Keating  <geoffk@cygnus.com>
9936
9937         * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
9938         rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
9939         allocation knows (reg) is dead before the insn.
9940
9941         2000-01-21  Geoff Keating  <geoffk@cygnus.com>
9942
9943         * rs6000.md (movsi_to_cr): Correct typo in output template.
9944
9945         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
9946
9947         * rs6000.c (rs6000_pic_labelno): Always define.
9948         (rs6000_pic_func_labelno): Delete.
9949         (lmw_operation): Check for a zero base register,
9950         which doesn't mean what we want.
9951         (stmw_operation): New function.
9952         (print_operand): Define new 'l' modifier.
9953         (rs6000_stack_info): We must save all 64 bits of the registers
9954         if TARGET_POWERPC64.
9955         (rs6000_output_load_toc_table): Delete.
9956         (rs6000_emit_load_toc_table): New function.
9957         (rs6000_allocate_stack_space): Delete.
9958         (rs6000_emit_allocate_stack): New function.
9959         (rs6000_emit_prologue): New function.
9960         (output_prolog): Use rs6000_emit_prologue.
9961         (rs6000_emit_epilogue): Change a few variable names to be
9962         more accurate.  Restore all 64 bits of the registers if
9963         TARGET_POWERPC64.  Only restore the FP registers which were used
9964         if they are being saved/restored one-at-a-time.
9965         (output_mi_thunk): Delete inefficient code generation.
9966         (output_function_profiler): Don't use rs6000_output_load_toc_table.
9967         * rs6000.h: Declare rs6000_emit_load_toc_table,
9968         rs6000_allocate_stack_space, stmw_operation.  Don't declare
9969         rs6000_output_load_toc_table.
9970         * rs6000.md (elf_high): Allow register 0, but discourage it
9971         heavily.
9972         (elf_low): Support loading into register 0.
9973         (load_toc_aix_si): New pattern.
9974         (load_toc_aix_di): New pattern.
9975         (load_toc_v4_pic_si): New pattern.
9976         (load_toc_v4_pic_di): New pattern.
9977         (load_toc_v4_PIC_1): New pattern.
9978         (load_toc_v4_PIC_1b): New pattern.
9979         (load_toc_v4_PIC_2): New pattern.
9980         (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
9981         (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
9982         (prologue): New expander.
9983         (movesi_from_cr): New pattern.
9984         (stmw): New pattern.
9985         (save_fpregs_si): New pattern.
9986         (save_fpregs_di): New pattern.
9987
9988         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9989
9990         * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
9991         (movdi): Likewise.
9992         (movhi): Likewise.
9993         (movqi): Likewise.
9994
9995         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
9996
9997         * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
9998         at present.
9999         (movsi_got_internal): Likewise.
10000         (movsi_got_internal+1): Likewise.
10001         (set_sp): 'unspec 7' does a SImode clobber.
10002
10003         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
10004
10005         * rs6000.md (floatsidf2): Don't use the fpmem "register", just
10006         allocate a stack temporary.
10007         (floatsidf2_internal): Likewise.
10008         (floatsidf2_internal+1): Likewise.  Don't do bizzare hacks
10009         with unspec.
10010         (floatunssidf2): Don't use the fpmem "register", just
10011         allocate a stack temporary.
10012         (floatunssidf2_internal): Likewise.
10013         (floatunssidf2_internal+1): Likewise.  Don't do bizzare hacks
10014         with unspec.
10015         (floatsidf2_loadaddr): Delete.
10016         (floatsidf2_store1): Delete.
10017         (floatsidf2_store2): Delete.
10018         (floatsidf2_load): Delete.
10019         (fix_truncdfsi2): Don't use the fpmem "register", just
10020         allocate a stack temporary.
10021         (fix_truncdfsi2_internal_si): Delete.
10022         (fix_truncdfsi2_internal_di): Delete.
10023         (fix_truncdfsi2_internal): New insn.
10024         (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
10025         (fix_truncdfsi2_store): Delete.
10026         (fix_truncdfsi2_load): Delete.
10027         (fctiwz): Produce gen_fctiwz.
10028
10029         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
10030
10031         * eabi.h (INVOKE__main): Define.
10032         * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
10033         specially.
10034         (rs6000_emit_prologue): Likewise.
10035         * rs6000.h (struct rs6000_stack): Don't keep track of whether
10036         this is the main program.
10037
10038         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
10039
10040         * rs6000.c (rs6000_va_arg): Delete some unused variables.
10041
10042         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
10043
10044         * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
10045         goes after the argument.
10046
10047         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
10048
10049         * rs6000.md: Document 'unspec' values used.
10050         (epilogue): New expander.
10051         (movesi_to_cr_one): New expander.
10052         (movesi_to_cr and following): New pattern.
10053         (lmw): New pattern.
10054         (return_internal_si): New pattern.
10055         (return_internal_di): New pattern.
10056         (return_and_restore_fpregs_si): New pattern.
10057         (return_and_restore_fpregs_di): New pattern.
10058         * rs6000.h: Declare new functions.
10059         * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
10060         rather than rs6000_calls_p.
10061         (rs6000_makes_calls): Delete.
10062         (lmw_operation): New function.
10063         (mtcrf_operation): New function.
10064         (rs6000_emit_epilogue): New function.
10065         (output_epilog): Call rs6000_emit_epilogue and final if
10066         !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
10067
10068         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
10069
10070         * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
10071         * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
10072         * aix.h (SUBTARGET_SWITCHES): Document switches.
10073         * rs6000.h: (TARGET_SWITCHES): Don't print options twice.  Make
10074         sched-prolog and sched-epilog the same.  Document all the
10075         switches.
10076         (TARGET_OPTIONS): No longer allow -mdebug-.
10077
10078         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
10079
10080         * rs6000.h (ASM_FILE_END): Move to aix.h.
10081         (EXTRA_SECTIONS): Move to aix.h.
10082         (READONLY_DATA_SECTION): Move to aix.h.
10083         (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
10084         (SELECT_SECTION): Move to aix.h.
10085         (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
10086         (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
10087         (LINK_REGISTER_REGNUM): New definition.
10088         (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
10089         (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
10090         AIX and SVR4.
10091         * sysv4.h: Delete the code between the inclusion of rs6000.h
10092         and svr4.h.
10093         (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
10094         (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
10095         (RS6000_REG_SAVE): Move generic definition to rs6000.h.
10096         (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
10097         * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
10098         (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
10099         (fix_truncdfsi2_internal_di): New pattern.
10100         (fix_truncdfsi2_store): The second arg here is Pmode too.
10101         (fix_truncdfsi2_load): The second arg here is Pmode too.
10102         (tablejumpdi): Now that switch tables hold only SImode values,
10103         gcc needs to know how to add them to the pc which is DImode.
10104         * rs6000.c (rs6000_stack_info): Use symbolic name for
10105         LINK_REGISTER_REGNUM.
10106         (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
10107         (output_toc): Delete unused variables s1 and s2.
10108         (output_ascii): Use fputs not fprintf on a variable string.
10109
10110         2000-01-07  David Edelsohn  <edelsohn@gnu.org>
10111
10112         * rs6000.c (processor_target_table): Add power3 as alias for 630.
10113         * aix43.h: Revert Aug 2 change.
10114         (HAS_INIT_SECTION): Define, not visible yet.
10115         (LD_INIT_SWITCH): Define, not visible yet.
10116         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
10117
10118         2000-01-04  Joel Sherrill (joel@OARcorp.com>
10119
10120         * config/rs6000/rtems.h: Include config/rtems.h.
10121
10122         2000-01-04  David Edelsohn  <edelsohn@gnu.org>
10123
10124         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
10125         (SLOW_UNALIGNED_ACCESS): Define.
10126         (CASE_VECTOR_MODE): Always use 32-bit offsets.
10127         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
10128         (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
10129         (toc_section): Likewise and .toc pseudo-op.
10130         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
10131         64-bit mode.
10132         (TEXT_SECTION_ASM_OP): Likewise.
10133         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
10134         32-bit offsets.
10135
10136         1999-12-17  Jakub Jelinek  <jakub@redhat.com>
10137
10138         * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
10139         UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
10140         compiling libgcc2.
10141
10142         2000-01-06  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10143
10144         * rs6000.h: Move more stuff from here...
10145         * aix.h: to here.
10146         * sysv4.h: Cleanup accordingly.
10147         * netware.h: Likewise
10148
10149         2000-01-05  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10150
10151         * rs6000.h: Continue cleanup.
10152         * aix.h: Likewise.
10153         * lynx.h: Likewise.
10154         * netware.h: Likewise.
10155         * sol2.h: Likewise.
10156         * sysv4.h: Likewise.
10157         * win-nt.h: Likewise.
10158
10159         * rs6000.h (TARGET_SWITCHES): Add descriptions.
10160         (TARGET_OPTIONS): Likewise.
10161
10162         * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
10163         (SUBTARGET_OPTIONS): Likewise.
10164
10165         * rs6000.md: Fix compile time warnings.
10166
10167         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
10168
10169         vxworks patches from the Cygnus tree originally by
10170         Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
10171         <vmakarov@cygnus.com>.
10172         * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
10173         (ENDFILE_SPEC): Likewise.
10174         (LIB_VXWORKS_SPEC): New macro.
10175         (STARTFILE_VXWORKS_SPEC): New macro.
10176         (ENDFILE_VXWORKS_SPEC): New macro.
10177         (LINK_START_VXWORKS_SPEC): New macro.
10178         (LINK_OS_VXWORKS_SPEC): New macro.
10179         (CPP_OS_VXWORKS_SPEC): New macro.
10180         (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
10181         * vxppc.h: Rewrite to use proper configuration method.
10182         * vxppcle.h: New file.
10183         * ../../configure.in: Add powerpcle-wrs-vxworks*.
10184         * ../../configure: Rebuilt.
10185
10186         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
10187
10188         Lots of changes to rs6000.h, sysv4.h, aix.h,
10189         aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
10190         with the aim that rs6000.h is the first header
10191         included and the others override it.
10192         * aix.h: New file.
10193
10194         * x-aix41-gld: Remove.
10195         * x-aix43: Remove.
10196         * x-aix41: Remove target-specific switches, and don't specify
10197         -Wl,-bbigtoc as we don't need it any more.
10198         * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
10199         Use t-aix43 for AIX 4.3 and above.
10200         * ../../configure: Regenerated.
10201
10202         * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
10203         options, that don't do anything yet.
10204         (MASK_SCHED_PROLOG): New macro.
10205         (MASK_SCHED_EPILOG): New macro.
10206         (TARGET_SCHED_PROLOG): New macro.
10207         (TARGET_SCHED_EPILOG): New macro.
10208
10209         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
10210
10211         * rs6000.c: Correct comment, the `minimal' TOCs are actually
10212         one per translation unit, not one per function.
10213         (output_toc): Also do duplicate constant elimination
10214         for per-translation-unit TOCs.
10215
10216         * rs6000.md (nonlocal_goto_receiver): Put it back as before.  Add
10217         a comment explaining _exactly_ when this pattern gets used.
10218         (builtin_setjmp_receiver): New pattern for better clarity.
10219         (init_v4_pic): Move it into a section dealing with TOC registers.
10220
10221         1999-12-30  Geoff Keating  <geoffk@cygnus.com>
10222
10223         * rs6000.c (toc_hash_table): New variable.
10224         (rs6000_hash_constant): New function.
10225         (toc_hash_function): New function.
10226         (toc_hash_eq): New function.
10227         (toc_hash_mark_entry): New function.
10228         (toc_hash_mark_table): New function.
10229         (output_toc): Don't output duplicate TOC entries in
10230         a single file.
10231         (rs6000_add_gc_roots): Add the hash table as a GC root.
10232         * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
10233         where they clearly shouldn't be.  This may need to be fixed
10234         later when there is a GNU ar for AIX.
10235         * x-aix43: Don't define CLIB or AR_FOR_TARGET.
10236         Don't define BOOT_LDFLAGS as it is now not necessary.
10237
10238         1999-12-29  Geoff Keating  <geoffk@cygnus.com>
10239
10240         * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
10241         for va_list on AIX.  Use unsigned_char_type_node rather than
10242         constructing our own version on svr4.
10243
10244         1999-12-17  Geoff Keating  <geoffk@cygnus.com>
10245
10246         * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
10247         since patently it's not.
10248
10249         1999-12-08  Geoff Keating  <geoffk@cygnus.com>
10250
10251         * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
10252         define_expand/define_insn pair, and handle restore of the
10253         SVR4 -fpic register.
10254
10255 Wed Mar 15 15:43:38 2000  Jeffrey A Law  (law@cygnus.com)
10256
10257         * acconfig.h (HAVE_GAS_WEAK): New define.
10258         * configure.in (assembler weak support): Check for .weak support.
10259         * config.in, configure: Rebuilt.
10260         * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
10261         HAVE_GAS_WEAK is defined.
10262
10263 2000-03-15  Nick Clifton  <nickc@cygnus.com>
10264
10265         * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
10266         asm_fprintf().
10267
10268 2000-03-15  Zack Weinberg  <zack@wolery.cumb.org>
10269
10270         * cppfiles.c (open_include_file): New function.
10271         (find_include_file, cpp_read_file): Use it.
10272
10273 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
10274
10275         * cpphash.c (dump_hash_helper): Take the slot, not the element.
10276
10277 Wed Mar 15 14:28:54 2000  Jason Eckhardt  <jle@cygnus.com>
10278
10279         * flow.c (verify_flow_info): Check for unconditional return.
10280
10281 Wed Mar 15 11:34:27 2000  Jim Wilson  <wilson@cygnus.com>
10282
10283         * config/ia64/ia64.md (restore_stack_nonlocal): New.
10284         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
10285         (__ia64_restore_stack_nonlocal): New.
10286         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
10287
10288 2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10289
10290         * cpphash.c (collect_formal_parameters): Do not complain about
10291         parameter names that just start with `__VA_ARGS__'.
10292
10293 Wed Mar 15 13:26:58 MET 2000  Jan Hubicka  <jh@suse.cz>
10294
10295         * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
10296         movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
10297         * i386.c (pentiumpro_cost): Set mul cost to 4.
10298         (x86_use_movx): Set for PPro.
10299
10300 Wed Mar 15 13:07:05 MET 2000  Jan Hubicka  <jh@suse.cz>
10301
10302         * i386.md (ix86_compute_frame_size): stack_alignment_needed is
10303         STACK_BOUNDARY for empty frames now.
10304
10305 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
10306
10307         * stor-layout.c (layout_union): Remove.
10308         (layout_union_field): New function, split out from layout_union.
10309         (finish_union_layout): Likewise.
10310         (layout_field): Handle unions by calling layout_union_field.
10311         (finish_record_layout): Handle unions.
10312         (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
10313         QUAL_UNION_TYPE handling.
10314
10315 Wed Feb 23 13:00:06 CET 2000  Jan Hubicka  <jh@suse.cz>
10316
10317         * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
10318         end of basic block is jump_insn, not barrier; use create_basic_block
10319         instead of creating basic block by hand.
10320
10321 2000-03-14  Jason Eckhardt  <jle@cygnus.com>
10322
10323         * flow.c (reorder_basic_blocks): Account for barriers when writing
10324         over NEXT_INSN (last_bb->end).
10325         (verify_flow_info): Add check for missing barriers.
10326
10327 2000-03-14  Greg McGary  <gkm@gnu.org>
10328
10329         * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
10330         * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
10331         * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
10332         __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
10333         __unbounded, __unbounded__): New keywords.
10334         * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
10335         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
10336         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
10337
10338 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
10339
10340         * cselib.h: New file.
10341         * alias.c: Include "cselib.h".
10342         (fixed_scalar_and_varying_struct_p): Accept the addresses of the
10343         MEMs as two new arguments.
10344         (get_addr): New static function.
10345         (find_base_term): Handle VALUEs.
10346         (memrefs_conflict_p): Likewise.
10347         (true_dependence): Call get_addr on the addresses.
10348         Call fixed_scalar_and_varying_struct_p with addresses that have been
10349         passed through get_addr and canon_rtx.
10350         (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
10351         with true_dependence.
10352         Call get_addr on the addresses; don't call canon_rtx on the MEMs.
10353         * loop.c: Include "cselib.h".
10354         (load_mems): Process extended basic block that enters the loop with
10355         cselib.  Use that information to change initialization of the shadow
10356         register so that a constant equivalence is seen by later passes.
10357         * reload1.c: Include "cselib.h".
10358         (reload_cse_invalidate_regno): Delete function.
10359         (reload_cse_mem_conflict_p): Likewise.
10360         (reload_cse_invalidate_mem): Likewise.
10361         (reload_cse_invalidate_rtx): Likewise.
10362         (reload_cse_regno_equal_p): Likewise.
10363         (reload_cse_check_clobber): Likewise.
10364         (reload_cse_record_set): Likewise.
10365         (reg_values): Delete static variable.
10366         (invalidate_regno_rtx): Likewise.
10367         (reload_cse_delete_noop_set): New static function.
10368         (reload_cse_simplify): New static function, broken out of
10369         reload_cse_regs_1.
10370         (reload_cse_noop_set_p): Delete unused argument INSN.
10371         Just call rtx_equal_for_cselib_p on set source and destination.
10372         (reload_cse_regs_1): Break out some code into reload_cse_simplify and
10373         reload_cse_delete_noop_set.  Delete code to keep track of values; use
10374         cselib functions instead.  Delete code to push/pop obstacks.
10375         (reload_cse_simplify_set): Use cselib to find equivalent values.
10376         Delete code to push/pop obstacks.
10377         (reload_cse_simplify_operands): Likewise.
10378         * rtl.def (VALUE): New rtx code.
10379         * rtl.h (union rtunion_def): New elt rt_cselib.
10380         (X0CSELIB, CSELIB_VAL_PTR): New macros.
10381         * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
10382         (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
10383         unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
10384         discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
10385         hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
10386         cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
10387         cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
10388         cselib_record_set, cselib_record_sets): New static functions.
10389         (cselib_lookup, cselib_update_varray_sizes, cselib_init,
10390         cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
10391         references_value_p): New functions.
10392         (MAX_USELESS_VALUES, REG_VALUES): New macros.
10393         (table, cselib_current_insn, next_unknown_value, cselib_nregs,
10394         n_useless_values, reg_values, callmem, cselib_obstack,
10395         cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
10396         New static variables.
10397         * varray.h (union varray_data_tag): New elt te.
10398         (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
10399         * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
10400         dependencies.
10401
10402 2000-03-14  Nick Clifton  <nickc@cygnus.com>
10403
10404         * gcc.c (do_spec_1): Catch the case where %* is used in a
10405         substitution pattern, but it has not been initialised.
10406         Issue a meaningful error message if an unrecognised operator
10407         is encountered in a spec string.
10408
10409 2000-03-14  Richard Earnshaw <rearnsha@arm.com>
10410
10411         * function.c (prepare_function_start): Correctly initialize
10412         cfun->stack_alignment_needed.
10413
10414 2000-03-14  Zack Weinberg  <zack@wolery.cumb.org>
10415
10416         * cppfiles.c (find_include_file): Don't assume nshort is a
10417         substring of name.
10418
10419 Tue Mar 14 08:42:21 2000  Jeffrey A Law  (law@cygnus.com)
10420
10421         * configure.in (hppa configurations): Add pa32-regs.h to the
10422         list of tm files as appropriate.
10423         * configure: Rebuilt.
10424         * pa.c (compute_frame_size): Remove explicit knowledge about FP
10425         register numbering.
10426         (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
10427         (fmpyaddoperands, fmpysuboperands): Likewise.
10428         * pa.h: Remove various definitions which depend on knowing
10429         how registers are numbered.
10430         * pa32-regs.h: New file with PA32 register numbering specific
10431         definitions.
10432
10433 2000-03-14  Richard Henderson  <rth@cygnus.com>
10434
10435         * regmove.c (combine_stack_adjustments): New.
10436         (stack_memref_p, single_set_for_csa): New.
10437         (free_csa_memlist, record_one_stack_memref): New.
10438         (try_apply_stack_adjustment): New.
10439         (combine_stack_adjustments_for_block): New.
10440         * rtl.h (combine_stack_adjustments): Declare.
10441         * toplev.c (rest_of_compilation): Call it.
10442
10443         * i386.md: Revert 2000-01-16 change.
10444
10445 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10446
10447         * gccbug.in: Add web category, gcc specific classes.
10448
10449 2000-03-14  Nathan Sidwell  <nathan@codesourcery.com>
10450
10451         * stor-layout.c (finalize_record_size): Fix typo.
10452
10453 2000-03-14  Stan Shebs  <shebs@apple.com>
10454
10455         * c-typeck.c (c_alignof): Error on incomplete types.
10456         * extend.texi (Alignment): Document this.
10457
10458 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10459
10460         * cppfiles.c: Include mkdeps.h.
10461         (find_include_file, read_include_file): Remove _cpp_ prefix
10462         from name, make static.
10463         (_cpp_execute_include): New function, broken out of
10464         do_include.
10465
10466         * cpplib.c: Don't include mkdeps.h.
10467         (struct directive): Remove type field. Reorder entries.  The
10468         function takes only one argument.
10469         (struct if_stack): Make type field an int.
10470         (directive_table): Rename to dtable.  Generate it, the
10471         prototypes of the directive handlers, and the enum for the
10472         directive numbers, from a template macro.
10473         (do_ifndef, do_include_next, do_import): New functions.
10474         (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
10475         do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
10476         do_ident, do_assert, do_unassert, do_sccs): Take only one
10477         argument.
10478         (do_sccs): Define always, but alter behavior based on
10479         SCCS_DIRECTIVE.
10480         (_cpp_handle_directive, consider_directive_while_skipping):
10481         Restructure for new directive table layout.
10482
10483         (pass_thru_directive): Take a directive number, not a pointer
10484         to a struct directive.
10485         (parse_include): New function, broken out of do_include.
10486         (do_include, do_import, do_include_next): Use parse_include
10487         and _cpp_execute_include.
10488         (do_elif, do_else): Test for T_ELSE specifically when checking
10489         for #elif/#else after #else.
10490         (parse_ifdef): New function, broken out of do_ifdef.
10491         (validate_else): Expect a name arg without a leading #.
10492         (if_directive_name): Delete.
10493         (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
10494         directive handlers with only one argument.
10495
10496         * cpphash.h: Update prototypes.
10497         (enum node_type): Remove entries for directives.
10498         * Makefile.in: Update dependencies.
10499
10500         * cpphash.c (dump_hash_helper): Only dump nodes of type
10501         T_MACRO.  Emit a newline after each definition.
10502
10503 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
10504
10505         * gccbug.in: New file.
10506         * configure.in (all_outputs): Add gccbug.
10507         * Makefile.in (install-common): Install gccbug.
10508         (GCCBUG_INSTALL_NAME): New variable.
10509         * configure: Rebuilt.
10510
10511 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
10512
10513         * function.c (put_var_into_stack): Use type_for_mode to calculate
10514         part_type.  Use MEM_SET_IN_STRUCT_P.
10515         * expr.c (store_field): Handle CONCAT.
10516         (store_constructor): Use fields_length.
10517         * tree.c (fields_length): New fn.
10518         * tree.h: Declare it.
10519
10520 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10521
10522         * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
10523         (cpplex.o): New target.
10524         * po/POTFILES.in: Add cpplex.c.
10525
10526         * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
10527         cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
10528         cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
10529         skip_block_comment, skip_line_comment, skip_comment,
10530         copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
10531         _cpp_parse_name, skip_string, parse_string,
10532         _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
10533         _cpp_get_directive_token, find_position,
10534         _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
10535         (maybe_macroexpand, _cpp_lex_token): New functions.
10536
10537         * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
10538         parse_goto_mark): Delete.
10539         (_cpp_handle_eof): New function.
10540         (_cpp_handle_directive): Rename from handle_directive.
10541         (_cpp_output_line_command): Rename from output_line_command.
10542         (do_if, do_elif): Call _cpp_parse_expr directly.
10543         * cppfiles.c (_cpp_read_include_file): Don't call
10544         init_input_buffer here.
10545         * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
10546         * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
10547         here; pop the token_buffer and skip the rest of the line here.
10548         * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
10549         here.
10550
10551         * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
10552         Define here.
10553         (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
10554         CPP_GOTO_MARK): New macros.
10555         (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
10556         _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
10557         _cpp_read_and_prescan, _cpp_init_input_buffer,
10558         _cpp_grow_token_buffer, _cpp_get_directive_token,
10559         _cpp_handle_directive, _cpp_handle_eof,
10560         _cpp_output_line_command): Prototype them here.
10561         * cpplib.h (enum cpp_token): Add CPP_MACRO.
10562         (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
10563         quote_string, output_line_command): Remove.
10564
10565 2000-03-13  Bernd Schmidt  <bernds@cygnus.co.uk>
10566
10567         * stmt.c (expand_end_case): RANGE may be signed, and when checking
10568         whether it is too large we must also verify that it isn't negative.
10569
10570 2000-03-13  Jakub Jelinek  <jakub@redhat.com>
10571
10572         * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
10573         (movsi_zero_liveg0): Remove.
10574         (movsf_insn_novis_liveg0): Remove.
10575         (negsi2): Remove.
10576         (negsi2_not_liveg0): Rename to negsi2.
10577         (one_cmplsi2): Remove.
10578         (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
10579         (one_cmplsi2_liveg0): Remove.
10580         * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
10581         MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
10582         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
10583         (PREDICATE_CODES): Remove zero_operand.
10584         * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
10585         TARGET_BROKEN_SAVERESTORE.
10586         (zero_operand): Remove.
10587         * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
10588         -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
10589         options.
10590         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10591         * config/sparc/linux-aout.h (TARGET_LIVE_G0,
10592         TARGET_BROKEN_SAVERESTORE): Remove.
10593         * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10594         Remove.
10595         * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10596         Remove.
10597         * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
10598         Remove.
10599
10600         * config/sparc/sparc.md (return_df_no_fpu): New pattern.
10601
10602 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
10603
10604         * cpplib.c (do_pragma_implementation): Fix off-by-one error
10605         truncating a string.  Don't assume tokens are nul terminated.
10606         Problem noted by Andreas Jaeger <aj@suse.de>
10607
10608 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
10609
10610         * dwarf2out.c (add_name_and_src_coords_attributes): Only add
10611         DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
10612         (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
10613
10614 2000-03-13  Richard Earnshaw <rearnsha@arm.com>
10615
10616         * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
10617         STRUCTURE_SIZE_BOUNDARY.
10618
10619 2000-03-13  Mark Mitchell  <mark@codesourcery.com>
10620
10621         * tree.h (record_layout_info_s): New structure.
10622         (record_layout_info): New type.
10623         (new_record_layout_info): New function.
10624         (layout_field): Likewise.
10625         (finish_record_layout): Likewise.
10626         * stor-layout.c (layout_record): Remove.
10627         (new_record_layout_info): New function.
10628         (layout_field): New function, broken out from layout_record.
10629         (finalize_record_size): Likewise.
10630         (compute_record_mode): Likewise.
10631         (finalize_type_size): New function, broken out from layout_type.
10632         (finish_record_layout): Likewise.
10633         (layout_type): Use them.
10634
10635 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
10636
10637         * cpphash.c: Don't include version.h.
10638         (special_symbol) [case T_VERSION]: Look for the string in
10639         hp->value.cpval; don't use version_string.
10640         * cppinit.c (initialize_builtins): Set hp->value.cpval for
10641         __VERSION__ to version_string.
10642         * Makefile.in (cpphash.o): Update deps.
10643
10644 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
10645
10646         Convert cpplib to use libiberty/hashtab.c.
10647
10648         * cpplib.h (struct cpp_reader): Make hashtab and
10649         all_include_files of type 'struct htab *'.  Delete HASHSIZE
10650         and ALL_INCLUDE_HASHSIZE macros.
10651
10652         * cpphash.h: Update prototypes.
10653         (struct hashnode): Remove next, prev, and bucket_hdr members.
10654         Make length a size_t.  Add hash member.
10655         (struct ihash): Remove next member.  Add hash member.  Make
10656         name a flexible array member.
10657
10658         * cppfiles.c: Include hashtab.h.
10659         (include_hash): Delete.
10660         (IHASHSIZE): New macro.
10661         (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
10662         (cpp_included): Do the hash lookup here.
10663         (_cpp_find_include_file): Rewrite.
10664         (cpp_read_file): Put the "fake" hash entry into the hash
10665         table.  Honor the control_macro, if it turns out we've seen
10666         the file before.  Don't push the buffer here.
10667         (_cpp_read_include_file): Push the buffer here.
10668         (OMODES): New macro.  Use it whenever we call open(2).
10669
10670         * cpphash.c: Include hashtab.h.
10671         (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
10672         _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
10673         _cpp_lookup_slot): New functions.
10674         (HASHSIZE): new macro.
10675         (hashf, _cpp_install, _cpp_delete_macro): Delete.
10676         (_cpp_lookup): Use hashtab.h routines.
10677
10678         * cppinit.c: Include hashtab.h.
10679         (cpp_reader_init): Call _cpp_init_macro_hash and
10680         _cpp_init_include_hash.  Don't allocate hashtab directly.
10681         (cpp_cleanup): Just call htab_delete on pfile->hashtab and
10682         pfile->all_include_files.
10683         (initialize_builtins): Use _cpp_make_hashnode and
10684         htab_find_slot to add hash entries.
10685         (cpp_finish): Just call _cpp_dump_macro_hash.
10686         * cpplib.c: Include hashtab.h.
10687         (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
10688         create hash entries.
10689         (do_pragma_poison, do_assert): Likewise.
10690         (do_include): Don't push the buffer here.  Don't increment
10691         system_include_depth unless _cpp_read_include_file succeeds.
10692         (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
10693         or htab_remove_elt.
10694         (do_pragma_implementation): Use alloca to create copy.
10695
10696         * Makefile.in: Update dependencies.
10697
10698 2000-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10699
10700         * cppinit.c (cl_directive_handler): More K&R fixing.
10701
10702 Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
10703
10704         * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
10705         STACK_BOUNDARY.
10706         * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
10707
10708 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10709
10710         * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
10711         Change from char[] to macros.
10712
10713 2000-03-12  Neil Booth  <NeilB@earthling.net>
10714
10715         * cppinit.c (cpp_start_read): Update indirect function
10716         call to K&R C.
10717
10718 Sat Mar 11 16:18:12 2000  Jim Wilson  <wilson@cygnus.com>
10719
10720         * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
10721         entry.
10722
10723         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10724         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
10725
10726 2000-03-11  Neil Booth  <NeilB@earthling.net>
10727
10728         * cppinit.c (struct pending option): Replace undef with a
10729         pointer to a directive handling routine.
10730         (struct cpp_pending): Replace separate assert_ and define_
10731         lists with one directive_ list.
10732         (new_pending_define): Rename new_pending_directive. Extra
10733         argument is the directive's handling routine.
10734         (handle_option): Update to use new_pending_directive.
10735
10736 2000-03-11  Neil Booth  <NeilB@earthling.net>
10737
10738         * cppfiles.c (file_cleanup, _cpp_find_include_file,
10739         remap_filename, _cpp_read_include_file, actual_directory,
10740         hack_vms_include_specification): Replace bcopy(), index() etc
10741         calls.  Add casts to some allocations.  Make some variables
10742         pointers to const [unsigned] char.
10743         * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
10744         collect_formal_parameters): Similarly.
10745         * cppinit.c (struct pending_option, append_include_chain,
10746         cpp_options_init, cpp_reader_init, initialize_standard_includes,
10747         cpp_start_read, new_pending_define, handle_option): Similarly.
10748         * cpplib.c (cpp_define, copy_comment, do_define, do_include,
10749         do_undef, do_error, do_warning, do_pragma, do_pragma_once,
10750         do_pragma_implementation, detect_if_not_defined,
10751         do_ifdef, skip_if_group, cpp_get_token, parse_string,
10752         do_assert, do_unassert): Similarly.
10753         * cpplib.h (cpp_buffer, cpp_options): Update types.  Update
10754         function prototypes.
10755         * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
10756
10757 2000-03-10  Richard Henderson  <rth@cygnus.com>
10758
10759         * builtins.c (expand_builtin_strlen): Revert last change.
10760         Use emit_insn_before if we're at the beginning of a sequence.
10761
10762 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
10763
10764         * builtins.c (expand_builtin_strlen): Make sure that we have something
10765         at the beginning of the sequence.
10766
10767         * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
10768         deferred inlines.
10769
10770         * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
10771
10772 2000-03-10  Richard Henderson  <rth@cygnus.com>
10773
10774         * except.c (can_throw): Use INTVAL on a CONST_INT.
10775         (reachable_handlers): Likewise.
10776         * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
10777
10778 2000-03-10  Andreas Jaeger  <aj@suse.de>
10779
10780         * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
10781         MD_STARTFILE_PREFIX since those are not needed on linux.
10782         (ASM_FILE_START): New, from mips/gnu.h.
10783
10784 2000-03-09  Richard Henderson  <rth@cygnus.com>
10785             Alex Samuel  <samuel@codesourcery.com> and others
10786
10787         * Makefile.in (ssa.o): New rule.
10788         (OBJS): Add ssa.o.
10789         (STAGESTUFF): Add *.ssa and *.ussa.
10790         (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
10791         * rtl.def (PHI): New RTL expression.
10792         * rtl.h (clear_log_links): New declaration.
10793         (convert_to_ssa): Likewise.
10794         (convert_from_ssa): Likewise.
10795         * flow.c (split_edge): If the entry node falls through to the
10796         split edge's source block, split the entry edge.
10797         (clear_log_links): New function.
10798         * toplev.c (ssa_dump): New variable.
10799         (flag_ssa): Likewise.
10800         (f_options): Add "ssa".
10801         (compile_file): Create SSA dump files.
10802         (rest_of_compilation): Go to and from SSA if enabled.
10803         (decide_d_option): Handle -de for SSA dump files.
10804         * ssa.c: New file.
10805
10806 Thu Mar  9 20:01:38 2000  Jim Wilson  <wilson@cygnus.com>
10807
10808         * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
10809         same as VAR_DECL.
10810
10811 2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
10812
10813         * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
10814
10815 Thu Mar  9 18:10:02 2000  Jeffrey A Law  (law@cygnus.com)
10816
10817         * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
10818         (MD_STARTFILE_PREFIX_1): New macro.
10819
10820 2000-03-09  Robert Lipe  <robertl@sco.com>
10821
10822         * config/ia64/ia64.c: Include system.h.
10823
10824 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
10825
10826         * except.c (nothrow_function_p): If -fno-exceptions, just return.
10827         (init_eh_nesting_info): Likewise.
10828
10829         * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
10830         (TREE_NOTHROW): Rename from TREE_RAISES.
10831         * toplev.c (rest_of_compilation): Set it.
10832         * print-tree.c (print_node): Adjust.
10833         * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
10834         (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
10835         * calls.c (emit_call_1): Add 'nothrow' parm.  Add
10836         REG_EH_REGION note as appropriate.
10837         (libfunc_nothrow): New fn.
10838         (emit_library_call, emit_library_call_value): Use it.
10839         (expand_call): Check TREE_NOTHROW.
10840
10841         * varasm.c (make_decl_rtl): Skip initial '*' when setting
10842         DECL_ASSEMBLER_NAME.
10843
10844 2000-03-09  Andreas Jaeger  <aj@suse.de>
10845
10846         * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
10847         (TARGET_MEM_FUNCTIONS): Define.
10848
10849 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
10850
10851         * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
10852
10853         * except.c (can_throw): See through a SEQUENCE.
10854         (nothrow_function_p): New fn.
10855         * except.h: Declare it.
10856         * function.c (current_function_nothrow): New var.
10857         (prepare_function_start): Initialize it.
10858         * output.h: Declare it.
10859         * toplev.c (rest_of_compilation): Set it.
10860         * dwarf2out.c (dwarf2out_begin_prologue): Use it.
10861
10862 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
10863
10864         * cpphash.c (collect_formal_parameters): strncmp returns 0 for
10865         match.  (cpp_compare_defs): Count the nul separator when
10866         advancing over argument names.
10867
10868 2000-03-09  Bernd Schmidt  <bernds@cygnus.co.uk>
10869
10870         * recog.c (preprocess_constraints): Matching constraints affect
10871         same alternative/different operand, not same operand/different
10872         alternative.
10873
10874         * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
10875         register and a constant specially.
10876
10877 2000-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10878
10879         * libgcc2.h: New file.
10880         * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
10881
10882 Wed Mar  8 16:19:42 2000  Jim Wilson  <wilson@cygnus.com>
10883
10884         * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
10885         * configure: Regenerate.
10886         * config/ia64: New.
10887
10888 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
10889
10890         * Makefile.in (LIBCPP_DEPS): New macro.
10891         (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
10892         it to declare deps.
10893         * cpperror.c: Include cpphash.h.
10894         * cppexp.c: Include cpphash.h.  Remove MULTIBYTE_CHARS
10895         dingleberry.
10896         (lex): Don't use CPP_WARN_UNDEF.
10897         (_cpp_parse_expr): Return an int, the truth value.
10898         * cppfiles.c: Include cpphash.h.
10899         (_cpp_merge_include_chains): Move to cppinit.c and make static.
10900         * cppinit.c (include_defaults_array): Disentangle.
10901         (cpp_cleanup): Don't free the if stack here.
10902         (cpp_finish): Pop off all buffers, not just one.
10903         * cpplib.c (eval_if_expr): Return int.
10904         (do_xifdef): Rename do_ifdef.
10905         (handle_directive): Don't use CPP_PREPROCESSED.
10906         (cpp_get_token): Don't use CPP_C89.
10907         * fix-header.c: Don't use CPP_OPTIONS.
10908
10909         * cpplib.h: Move U_CHAR, enum node_type, struct
10910         file_name_list, struct ihash, is_idchar, is_idstart,
10911         is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
10912         CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
10913         CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
10914         CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
10915         CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
10916         of _cpp_simplify_pathname, _cpp_find_include_file,
10917         _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
10918         Move struct if_stack to cpplib.c.  Move struct cpp_pending to
10919         cppinit.c.
10920         Change all uses of U_CHAR to be unsigned char instead.
10921         Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
10922
10923 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
10924
10925         * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
10926         (dwarf2out_begin_prologue): Set it.
10927         (output_call_frame_info): Don't emit EH unwind info for leaves.
10928
10929         * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
10930         can occur outside of an EH region.
10931         * except.c: Correct comments about rethrow behavior.
10932         (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
10933
10934 2000-03-08  Andrew MacLeod  <amacleod@cygnus.com>
10935
10936         * flow.c (make_edges): Always call make_eh_edge for calls.
10937
10938 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
10939
10940         * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
10941         (struct cpp_buffer): Remove fname and underflow fields.
10942         (struct cpp_reader): Remove get_token field.
10943         (struct include_hash): Rename to struct ihash.  Add typedef to
10944         IHASH.
10945         (struct if_stack): Remove fname field.
10946         (IF_STACK_FRAME): Rename to IF_STACK.
10947
10948         * cpperror.c (print_containing_files): Trust that there are no
10949         macro buffers below the top file buffer.
10950         * cppfiles.c: Replace all references to 'struct include_hash'
10951         with 'IHASH'.  Rename initialize_input_buffer to
10952         init_input_buffer.  Don't set or reference cpp_buffer->fname,
10953         use buffer->ihash->name instead.
10954         * cpphash.c (special_symbol): Use cpp_file_buffer.  Use NULL
10955         not CPP_NULL_BUFFER.
10956         * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
10957         IF_STACK_FRAME, IHASH not struct include_hash.
10958         * cpplib.c: Rename eval_if_expression to eval_if_expr.  Remove
10959         null_underflow.  Use IF_STACK not IF_STACK_FRAME, IHASH not
10960         struct include_hash, NULL not CPP_NULL_BUFFER.  Remove all
10961         references to cpp_buffer->fname (delete entirely, or use
10962         ->ihash->name instead) and IF_STACK->fname.
10963         (cpp_push_buffer): Don't set new->underflow.
10964         (do_include): Use cpp_file_buffer.
10965
10966         * cpphash.c (collect_formal_parameters): Remove duplicate
10967         increment of argslen.  Pedwarn in C99 mode if __VA_ARGS__ is
10968         used as a macro argument name.  Don't append "..." to namebuf
10969         for varargs macros.  After we're done scanning, go through
10970         namebuf and make it NUL separated, not comma separated.
10971         (_cpp_compare_defs): Remove register tag from variables.
10972         Expect defn->argnames to be NUL separated.
10973         (_cpp_dump_definition): Expect defn->argnames to be NUL
10974         separated and in forward order.
10975         * cpphash.h: Update documentation of argnames field.
10976
10977 2000-03-08  Richard Henderson  <rth@cygnus.com>
10978
10979         * builtins.c (expand_builtin_strlen): Be prepared for strlensi
10980         to fail.  Don't pre-expand the source operand.
10981
10982         * i386.md (strlensi): Initialize eoschar and align before use.
10983
10984 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
10985
10986         * expr.c (expand_expr, case ARRAY_REF): Still check for missing
10987         CONSTRUCTOR element.
10988
10989 2000-03-08  Gavin Romig-Koch  <gavin@cetus.cygnus.com>
10990
10991         * mips.c (mips_expand_prologue): If the last
10992         named argument is the vararg marker "va_list", treat it as
10993         an unnamed argument.
10994
10995 2000-03-08  Clinton Popetz  <cpopetz@cygnus.com>
10996
10997         * dbxout.c (dbxout_parms): When correcting for promoted
10998         big-endian parameters, use the mode of the DECL_RTL rather
10999         than UNITS_PER_WORD.
11000
11001 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
11002
11003         * c-common.h (make_fname_decl): Declare.
11004         * c-common.c (make_fname_decl): Define.
11005         (declare_hidden_char_array): Remove.
11006         (declare_function_name): Use make_fname_decl.
11007         * c-decl.c (c_make_fname_decl): New function.
11008         (init_decl_processing): Set make_fname_decl.
11009
11010 Tue Mar  7 23:50:31 2000  Jeffrey A Law  (law@cygnus.com)
11011
11012         * cccp.c (handle_directive): Initialize backslash_newlines_p.
11013
11014 2000-03-07  Philipp Thomas  <pthomas@suse.de>
11015
11016         * po/POTFILES.in: Remove cppalloc.c from file list.
11017
11018 2000-03-07  Steve Chamberlain  <sac@pobox.com>
11019
11020         * pj.c (pj_expand_prologue): current_function->args_info is
11021         now current_function_args_info.
11022
11023         * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
11024         LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
11025         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
11026
11027 2000-03-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11028
11029         * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
11030         output as hexadecimal rather than the default octal.
11031
11032 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
11033
11034         * cpphash.c (special_symbol): Fix thinko in previous commit.
11035
11036 2000-03-07  Neil Booth  <NeilB@earthling.net>
11037
11038         * cppexp.c (struct operation, left_shift, right_shift,
11039         cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
11040         "int"s to "unsigned int"s.
11041         * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
11042         Similarly.
11043         * cpplib.h: Update for above.
11044         * mkdeps.c (deps_init, deps_calc_target): Cast pointers
11045         returned from allocations.
11046
11047         * cppinit.c (opt_comp, parse_options): New functions.
11048         (handle_option): Use parse_option to parse a single command
11049         line option, that possibly takes an argument.
11050         (cpp_handle_options): Sort the array of command line options on
11051         first invocation (non-ASCII hosts only).
11052         (print_help): Update.
11053
11054 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
11055
11056         * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
11057         backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.
11058
11059         * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
11060         initialized.
11061         * cppinit.c (cpp_cleanup): Free imp->nshort also.
11062
11063         * cpperror.c (cpp_print_containing_files,
11064         cpp_print_file_and_line, v_cpp_message): Rename to
11065         print_containing_files, print_file_and_line, and v_message.
11066         * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
11067         to _cpp_parse_expr, parse_escape, and lex.
11068         (parse_charconst): Remove broken multibyte support.
11069         * cppfiles.c (include_hash): Make static.
11070         (cpp_included): New function.
11071         (merge_include_chains, find_include_file, finclude,
11072         simplify_pathname): Rename to _cpp_merge_include_chains,
11073         _cpp_find_include_file, _cpp_read_include_file, and
11074         _cpp_simplify_pathname.
11075         * cpphash.c (cpp_lookup, free_definition, delete_macro,
11076         cpp_install, create_definition, macroexpand, compare_defs,
11077         dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
11078         _cpp_delete_macro, _cpp_install, _cpp_create_definition,
11079         _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
11080         * cppinit.c (cpp_handle_option): Rename to handle_option, make
11081         static.
11082         * cpplib.c: Remove extern prototype of cpp_parse_expr.
11083
11084         * cpphash.h: Update prototypes.
11085         * cpplib.h: Likewise.  Prototype _cpp_parse_expr here.
11086
11087 2000-03-07  Andrew Haley  <aph@cygnus.com>
11088
11089         * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
11090         PTRDIFF_TYPE should be based solely on Pmode.
11091         (SIZE_TYPE): ditto.
11092
11093 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11094
11095         * rtl.h (rtunion_def): Constify member `rtstr'.
11096         (emit_line_note_after, emit_line_note, emit_line_note_force,
11097         emit_note, decode_asm_operands): Constify.
11098
11099         * cse.c (canon_hash): Likewise.
11100
11101         * dbxout.c (dbxout_block): Likewise.
11102
11103         * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
11104         v_warning_for_asm): Likewise.
11105
11106         * dwarfout.c (function_start_label): Likewise.
11107
11108         * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
11109         emit_line_note_force): Likewise.
11110
11111         * final.c (last_filename, asm_insn_count, final_scan_insn,
11112         output_source_line): Likewise.
11113
11114         * function.h (struct emit_status): Likewise.
11115
11116         * gcse.c (hash_expr_1): Likewise.
11117
11118         * genattr.c (gen_attr, main): Likewise.
11119
11120         * genattrtab.c (struct function_unit, current_alternative_string,
11121         write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
11122         attr_numeral, check_attr_test, check_attr_value,
11123         convert_set_attr_alternative, convert_set_attr,
11124         compute_alternative_mask, simplify_by_exploding, gen_attr,
11125         gen_unit): Likewise.
11126
11127         * genflags.c (gen_insn): Likewise.
11128
11129         * gengenrtl.c (type_from_format): Likewise.
11130
11131         * genopinit.c (gen_insn): Likewise.
11132
11133         * genoutput.c (n_occurrences, process_template, process_template):
11134         Likewise.
11135
11136         * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
11137         Likewise.
11138
11139         * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
11140         Likewise.
11141
11142         * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
11143         ggc_set_mark, ggc_get_size): Likewise.
11144
11145         * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
11146
11147         * optabs.c (init_one_libfunc): Likewise.
11148
11149         * output.h (assemble_start_function): Likewise.
11150
11151         * recog.c (decode_asm_operands): Likewise.
11152
11153         * toplev.c (rest_of_compilation): Likewise.
11154
11155         * tree.h (emit_line_note_after, emit_line_note,
11156         emit_line_note_force): Likewise.
11157
11158         * varasm.c (asm_output_bss, asm_output_aligned_bss,
11159         asm_emit_uninitialised, assemble_start_function,
11160         assemble_variable, const_hash, compare_constant_1,
11161         find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
11162
11163         * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
11164
11165         * alpha/alpha.md (call_vms, call_value_vms): Likewise.
11166
11167         * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
11168
11169         * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
11170
11171         * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
11172         arm_dllimport_name_p): Likewise.
11173
11174         * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
11175         Likewise.
11176
11177         * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
11178
11179         * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11180
11181         * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
11182         arm_mark_dllexport, arm_mark_dllimport,
11183         arm_pe_encode_section_info): Likewise.
11184
11185         * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
11186         ASM_FINISH_DECLARE_OBJECT): Likewise.
11187
11188         * arm/thumb.c (thumb_function_prologue): Likewise.
11189
11190         * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
11191
11192         * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11193
11194         * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
11195
11196         * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
11197
11198         * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
11199
11200         * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11201
11202         * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
11203         ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
11204
11205         * i386/i386-protos.h (asm_output_function_prefix): Likewise.
11206
11207         * i386/i386.c (asm_output_function_prefix): Likewise.
11208
11209         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
11210
11211         * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11212
11213         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
11214
11215         * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
11216         ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
11217         ASM_OUTPUT_SECTION_NAME): Likewise.
11218
11219         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
11220
11221         * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
11222
11223         * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
11224
11225         * m32r/m32r.c (m32r_encode_section_info): Likewise.
11226
11227         * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11228
11229         * mcore/mcore.c (mcore_encode_section_info): Likewise.
11230
11231         * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11232
11233         * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11234
11235         * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11236
11237         * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
11238
11239         * mips/mips.md (movdi, movsi): Likewise.
11240
11241         * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11242
11243         * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11244
11245         * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
11246
11247         * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
11248         ASM_OUTPUT_ASCII): Likewise.
11249
11250         * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
11251         output_mi_thunk, output_toc): Likewise.
11252
11253         * rs6000/rs6000.md (movsi): Likewise.
11254
11255         * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
11256
11257         * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
11258
11259         * v850/v850.c (print_operand, print_operand_address,
11260         v850_encode_data_area): Likewise.
11261
11262 2000-03-07  Clinton Popetz  <cpopetz@cygnus.com>
11263
11264         * config/mips/mips.md (zero_extendsidi2): Always force operand
11265         one to memory for mips16.
11266
11267 Mon Mar  6 15:22:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11268
11269         * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
11270         (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
11271         (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
11272         (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
11273         (min_precision): Result is unsigned.
11274         (add_double, neg_double, mul_double): Low word is unsigned.
11275         (lshift_double, rshift_double, lrotate_double): Likewise.
11276         (rrotate_double, div_and_round_double): Likewise.
11277         (tree_floor_log2, compare_tree_int): New functions.
11278         (preserve_rtl_expr_temps): New declaration.
11279         * c-common.c (declare_hidden_char_array): Use compare_tree_int.
11280         (decl_attributes): Use tree_log2 to find alignment.
11281         Check for TREE_INT_CST_HIGH for format args.
11282         (min_precision): Now unsigned.
11283         Use tree_floor_log2.
11284         (truthvalue_conversion): Delete long-disabled code.
11285         * c-decl.c (finish_struct): Clean up tests on field width.
11286         (finish_function): Use compare_tree_int.
11287         * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
11288         * c-typeck.c (comptypes): Use tree_int_cst_equal.
11289         (default_conversion, digest_init): Use compare_tree_int.
11290         (build_binary_op): Use integer_all_onesp and compare_tree_int.
11291         Fix type errors in forming masks.
11292         * calls.c (initialize_argument_information): Use compare_tree_int.
11293         * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
11294         * except.c (expand_eh_region_start_tree): Use compare_tree_int.
11295         * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
11296         (store_field): Use compare_tree_int.
11297         (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
11298         (expand_expr, case ARRAY_REF): Use compare_tree_int.
11299         (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
11300         (do_store_flag): Use compare_tree_int.
11301         * fold-const.c (encode, decode): Low part is always unsigned.
11302         (force_fit_type, add_double, neg_double, mul_double): Likewise.
11303         (lshift_double, rshift_double, lrotate_double): Likewise.
11304         (rrotate_double, div_and_round_double, int_const_binop): Likewise.
11305         (fold_convert): Use compare_tree_int.
11306         (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
11307         (invert_truthvalue, case INTEGER_CST): Likewise.
11308         (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
11309         * mkdeps.c (deps_dummy_targets): Make I unsigned.
11310         * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
11311         (lshift_double, rshift_double, lrotate_double, rrotate_double):
11312         Likewise.
11313         * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
11314         (expand_end_case): Use compare_tree_int.
11315         (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
11316         * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
11317         (layout_decl): Likewise.
11318         (layout_record, layout_union): Make sizes unsigned.
11319         (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
11320         (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
11321         * tree.c (struct type_hash): hashcode is unsigned.
11322         (build_type_attribute_variant, type_hash_list): Likewise.
11323         (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
11324         (attribute_hash_list, build_array_type, build_method_type): Likewise.
11325         (build_complex_type): Likewise.
11326         (real_value_from_int_cst): Remove unneeded casts.
11327         (integer_all_onesp): Add casts.
11328         (tree_floor_log2, compare_tree_int): New functions.
11329         (build_index_type): Use tree_int_cst_sgn.
11330         * varasm.c (assemble_variable): Use compare_tree_int.
11331
11332 2000-03-06  Jason Merrill  <jason@casey.cygnus.com>
11333
11334         * cpphash.c (collect_expansion): Also catch ## at start of macro.
11335
11336         * varasm.c (make_decl_rtl): Don't add a number to members of
11337         local classes.
11338         (make_function_rtl): Likewise.
11339
11340 2000-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11341
11342         * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
11343         patch from 2000-01-28.
11344
11345 2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
11346
11347         * config/sh/sh.c: (barrier_align): Handle a delay slot that is
11348         filled with an insn from the jump target.
11349
11350 2000-03-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11351
11352         * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
11353         (c4x_external_ref): Likewise.
11354         * config/c4x/c4x.c (struct name_list): Likewise.
11355
11356 1999-12-16  Ben Collins  <bcollins@debian.org>
11357
11358         * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
11359         argument to genmultilib.
11360         * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
11361         the contents into the multilib.h header.
11362         * gcc.c: Declare multilib_exclusions for the specs file.
11363         (set_multilib_dir): Use it.
11364         (print_multilib_info): Likewise.
11365         * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
11366         to pass to genmultilib.
11367
11368 2000-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11369
11370         * builtins.c (built_in_class_names, built_in_names): Constify a
11371         char*.
11372
11373         * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
11374         int.
11375         (_mcleanup): Ensure value matches format specifier in sprintf.
11376
11377         * cpphash.c (special_symbol): Don't needlessly cast away
11378         const-ness.
11379
11380         * cppinit.c (base_name): Delete unused prototype.
11381
11382         * mkdeps.c (deps_init): Make definition K&R safe.
11383
11384         * tree.h (built_in_class_names, built_in_names): Constify a
11385         char*.
11386
11387 2000-03-06  Jakub Jelinek  <jakub@redhat.com>
11388
11389         * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
11390         floating point instructions for epilogue delay.
11391
11392         * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
11393         to gas if it supports .register pseudo.
11394
11395         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
11396         LONG_DOUBLE_TYPE_SIZE if not defined.
11397         Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
11398         LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
11399         * real.c: Likewise.
11400         * gengenrtl.c: Likewise.
11401         * print-rtl.c: Likewise.
11402         * rtl.c: Likewise.
11403         * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
11404         MASK_LONG_DOUBLE_128.
11405         * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
11406         * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
11407         * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
11408         (SUBTARGET_SWITCHES): Define.
11409         (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
11410         with -mlong-double-128.
11411         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
11412         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
11413         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
11414         (CC1_SPEC): Include -mlong-double-{64,128} as needed.
11415         * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
11416         (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
11417         with -mlong-double-128.
11418         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
11419         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
11420         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
11421         * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
11422         TARGET_LONG_DOUBLE_128): Define.
11423         * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11424         * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
11425         long double on TARGET_ARCH64.
11426
11427 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
11428
11429         * function.c (free_temps_for_rtl_expr): Don't free slots
11430         that have been pushed into a higher level.
11431
11432         Revert this patch:
11433         2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11434
11435 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11436
11437         * basic-block.h (ALLOCA_REG_SET): Remove.
11438         (INITIALIZE_REG_SET): New macro.
11439         * flow.c (update_life_info): Use it.
11440         (calculate_global_regs_live): Likewise.
11441         (propagate_block): Likewise.
11442         * global.c (build_insn_chain): Likewise.
11443         * haifa-sched.c (schedule_region): Likewise.
11444
11445 2000-03-05  Stephane Carrez  <stcarrez@worldnet.fr>
11446
11447         * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
11448         (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
11449         (DWARF_ARANGES_PAD_SIZE): New define.
11450         (output_aranges): Use it to pad the address range header.
11451         (DWARF_ROUND): Fix for non power of 2 rounding.
11452
11453 2000-03-05  Jason Merrill  <jason@casey.cygnus.com>
11454
11455         * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
11456
11457 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
11458
11459         * tree.def (RTL_EXPR): Update documentation.
11460         * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
11461         * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
11462         * function.c (preserve_rtl_expr_temp): New function.
11463         (preserve_rtl_expr_temps): Likewise.
11464         (preserve_rtl_expr_result): Use it.
11465
11466         Revert this patch:
11467         2000-03-04  Mark Mitchell  <mark@codesourcery.com>
11468
11469 2000-03-04  Thomas Schuster <Thomas.Schuster@gmx.net>
11470
11471         * regmove.c (copy_src_to_dest)  Do not create src->dest move
11472         for unchanging destination.
11473
11474 2000-03-04  Mark Mitchell  <mark@codesourcery.com>
11475
11476         * function.h (struct sequence_stack): Remove rtl_expr.
11477         (struct emit_staus): Likewise.
11478         (seq_rtl_expr): Remove.
11479         * tree.h (free_temps_for_rtl_expr): Don't declare.
11480         (start_sequence_for_rtl_expr): Likewise.
11481         * rtl.h (preserve_rtl_expr_result): Likewise.
11482         * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
11483         (start_sequence_for_rtl_expr): Remove.
11484         (push_topmost_sequence): Don't save sequence_rtl_expr.
11485         (pop_topmost_sequence): Remove comment about not restoring it.
11486         (end_sequence): Don't set seq_rtl_expr.
11487         (init_emit): Don't initialize it.
11488         (mark_sequence_stack): Don't mark it.
11489         (mark_emit_status): Likewise.
11490         * except.c (protect_with_terminate): Use
11491         start_sequence_for_rtl_expr, not start_sequence.
11492         * expr.c (expand_expr, case RTL_EXPR): Don't call
11493         preserve_rtl_expr_result or free_temps_for_rtl_expr.
11494         * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
11495         (preserve_rtl_expr_result): Remove.
11496         (free_temps_for_rtl_expr): Likewise.
11497         (pop_temp_slots): Likewise.
11498         (mark_temp_slot): Don't mark the rtl_expr.
11499         * stmt.c (expand_start_stmt_expr): Use start_sequence, not
11500         start_sequence_for_rtl_expr.
11501
11502 2000-03-04  Zack Weinberg  <zack@wolery.cumb.org>
11503
11504         * mkdeps.c, mkdeps.h: New files.
11505         * po/POTFILES.in: Add them.
11506         * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
11507         (cpplib.o, cppinit.o): Depend on mkdeps.h.
11508         (mkdeps.o): New target.
11509
11510         * cppfiles.c: Delete deps_output.
11511         * cppinit.c: Include mkdeps.h.  Delete known_suffixes,
11512         OBJECT_SUFFIX, and base_name.
11513         (cpp_cleanup): Use deps_free.  Free ihash->name when clearing
11514         the include hash.
11515         (initialize_dependency_output): Use deps_init,
11516         deps_add_target, deps_calc_target, and deps_add_dep.  Remove
11517         all the unnecessary string bashing.
11518         (cpp_finish): Use deps_write.  Remove an unnecessary nesting
11519         level.
11520         * cpplib.c (do_include): Use deps_add_dep.
11521         * cpplib.h (struct cpp_reader): Replace deps_buffer,
11522         deps_allocated_size, deps_size, deps_column members with
11523         single pointer to a struct deps.  Delete prototype of
11524         deps_output.
11525
11526         * cppinit.c: Fix thinko in previous patch.
11527
11528 Sat Mar  4 11:32:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11529
11530         * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
11531         * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
11532         (mode_for_size_tree): New function.
11533         (layout_decl, layout_type): Call it and clean up BLKmode checks.
11534         * tree.h (mode_for_size_tree): New declaration.
11535
11536         * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
11537
11538 2000-03-04  Jason Merrill  <jason@casey.cygnus.com>
11539
11540         * stmt.c (is_body_block): Move...
11541         * dwarfout.c, dwarf2out.c: ...from here.
11542         * tree.h: Declare it.
11543         * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
11544         * final.c (final_start_function): Do call remove_unnecessary_notes
11545         when scheduling.
11546
11547 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
11548
11549         * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
11550
11551         * cpplib.h (_dollar_ok): New macro.
11552         (is_idchar, is_idstart): Use it.
11553         (IStable): Rename to _cpp_IStable.  Declare it const if
11554         gcc >=2.7 or C99.  Delete all references to FAKE_CONST.
11555         (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
11556         is_space): Update for renamed IStable.
11557
11558         * cppinit.c: Delete all references to FAKE_CONST and CAT
11559         macros. Define init_IStable as empty macro if gcc >=2.7 or
11560         C99. Change TABLE() to ISTABLE and hardcode name of table.
11561         (cpp_start_read): Don't change the IStable based on
11562         dollars_in_ident.
11563
11564         * cpphash.c (unsafe_chars): Add pfile argument.  All callers
11565         changed.  Handle '$' for char1 correctly.
11566         * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
11567
11568         * cppexp.c (tokentab2): Make const.
11569         (cpp_lex): Make toktab const.
11570         * cppinit.c (include_defaults_array): Make const.
11571         (initialize_standard_includes): Make default_include const.
11572
11573 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
11574
11575         * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
11576         (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
11577         (gen_decl_die): Likewise.
11578         * dwarfout.c (dwarfout_file_scope_decl): Likewise.
11579         (output_decl): Likewise.
11580
11581         * varasm.c (make_function_rtl): If we change the name used in the
11582         rtl, update DECL_ASSEMBLER_NAME accordingly.
11583         (make_decl_rtl): Likewise.
11584
11585         * toplev.c (rest_of_compilation): Tweak formatting.
11586
11587         * toplev.c (rest_of_compilation): find_loop_tree_blocks before
11588         remove_unnecessary_notes.
11589         (debug_ignore_block): New fn.
11590         * toplev.h: Declare it.
11591         * emit-rtl.c (remove_unncessary_notes): Call it.
11592         * dwarf2out.c (dwarf2out_ignore_block): New fn.
11593         * dwarf2out.h: Declare it.
11594         * final.c (final_start_function): Don't call remove_unnecessary_notes
11595         if we did insn scheduling.
11596
11597 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
11598
11599         * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
11600         * cpplib.h: Delete SET_CPP_PEDANTIC.
11601
11602 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11603
11604         * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
11605         result is a RECORD_TYPE.
11606
11607 2000-03-03  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11608
11609         * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
11610
11611 2000-03-03  Richard Henderson  <rth@cygnus.com>
11612
11613         * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
11614         addition over compliments over shifts.
11615
11616 Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11617
11618         * reload1.c (reload_combine_note_use): Handle return register USEs.
11619         REG case: Handle multi-hard-register hard regs.
11620
11621 Fri Mar  3 07:38:34 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11622
11623         * md.texi: Document use of '*' in insn pattern name.
11624
11625 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
11626
11627         * calls.c (special_function_p): operator new may not be malloc-like.
11628
11629         * gcse.c (dump_hash_table): Really fix error in last change.
11630
11631 2000-03-02  Denis Chertykov  <denisc@overta.ru>
11632
11633         * avr.c (print_operand): Use print_operand_address instead of
11634         output_addr_const.
11635         * avr/libgcc.S: Cleanup code.
11636
11637 2000-03-02  Richard Henderson  <rth@cygnus.com>
11638
11639         * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
11640
11641 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
11642
11643         * tree.h (TYPE_ALIGN_UNIT): New macro.
11644
11645 2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
11646
11647         * i386.c: (constant_call_address_operand): Reject CONST_INT.
11648
11649 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
11650
11651         * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
11652         for the buffer.
11653         (SET_CPP_PEDANTIC): New macro.
11654         * cpplib.c (do_include): Don't bother checking system_header_p.
11655         (do_warning, do_ident, do_assert, do_unassert): Likewise.
11656         * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
11657
11658         * function.h (struct expr_status): Add x_arg_space_so_far.
11659         (arg_space_so_far): New macro.
11660         * expr.c (init_expr): Initialize it.
11661         * calls.c (emit_call_1): Reset it.
11662         (compute_argument_block_size, expand_call): Use it.
11663         (expand_call, store_one_arg): Increment it.
11664
11665 Thu Mar  2 17:27:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11666
11667         * varasm.c (output_constant): Strip off a CONVERT_EXPR to
11668         a UNION_TYPE.
11669
11670 2000-03-02  Zack Weinberg  <zack@wolery.cumb.org>
11671
11672         * cppfiles.c (cpp_read_file): New function.
11673
11674         * cpphash.c (collect_expansion): Make sure to reset last_token
11675         to NORM when we hit a string.  Handle trailing whitespace
11676         properly when the expansion is empty.
11677         (create_definition): Disable line commands while parsing the
11678         directive line.
11679         (dump_definition): If pfile->lineno == 0, output a line
11680         command ahead of the dump, and add a trailing newline.
11681
11682         * cppinit.c (append_include_chain): Add fifth argument, which
11683         indicates whether or not system headers are C++ aware.
11684         (initialize_standard_includes): New function,
11685         broken out of read_and_prescan.  Pass 'cxx_aware' value from
11686         the include_defaults_array on to append_include_chain.
11687         (dump_special_to_buffer): Const-ify char array.
11688         (builtin_array): Don't dump __BASE_FILE__.
11689         (cpp_start_read): Use cpp_read_file.  Reorder code for
11690         clarity.  Don't output line commands here for -D/-A/-U
11691         switches.  Don't call deps_output for files included with
11692         -include or -imacros.
11693
11694         * cpplib.c (do_define): Don't pay any attention to the second
11695         argument.
11696         (cpp_expand_to_buffer): Disable line commands while scanning.
11697         (output_line_command): Work in the file buffer.
11698         * cpplib.h: Remove no_record_file flag from struct cpp_reader.
11699         Fix formatting of comments.  Prototype cpp_read_file.
11700
11701 Thu Mar  2 13:29:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11702
11703         * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
11704         reference the language-equivalent of sizetype.
11705         * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
11706         * fold-const.c (size_binop, size_diffop): Put back checks.
11707         * gcse.c (dump_hash_table): Fix minor error in last change.
11708         * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
11709         Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
11710         all sizetypes.
11711
11712 Thu Mar  2 12:48:45 MET 2000  Jan Hubicka  <jh@suse.cz>
11713
11714         * calls.c (expand_call)  Do not attempt to combine stack adjustments
11715         with inhibit_defer_pop set.
11716
11717 2000-03-01  Mark Mitchell  <mark@codesourcery.com>
11718
11719         * stor-layout.c (layout_decl): Allow front-ends to explicitly set
11720         the DECL_SIZE for a FIELD_DECL.
11721
11722 2000-03-01  Bruce Korb  <bkorb@gnu.org>
11723
11724         * fixinc/inclhack.tpl: remove unused symlinks
11725         * fixinc/README: GCC Maintainer info
11726         * fixinc/inclhack.sh: regen
11727         * fixinc/fixincl.sh: regen
11728
11729 2000-03-01  Zack Weinberg  <zack@wolery.cumb.org>
11730
11731         * cpphash.c (collect_expansion): Trim trailing white space
11732         from macro definitions, but don't go past the last insertion
11733         point.
11734
11735 Wed Mar  1 12:14:31 MET 2000  Jan Hubicka  <jh@suse.cz>
11736
11737         * i386.md (mulqi3): New pattern.
11738
11739 2000-02-29  Zack Weinberg  <zack@wolery.cumb.org>
11740
11741         * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
11742         token types.
11743         (struct cpp_reader): Add parsing_if_directive and
11744         parsing_define_directive flags.
11745         (struct cpp_options): Remove output_conditionals flag.
11746         (check_macro_name): Delete prototype.
11747
11748         * cpphash.h (struct macrodef): Delete.
11749         (struct reflist): Separate from struct definition.
11750         (struct definition): Remove unused fields.  Add column number.
11751         (create_definition): Returns a DEFINITION *.  Takes a
11752         cpp_reader * and an int.
11753
11754         * cpphash.c (SKIP_WHITE_SPACE): Delete.
11755         (PEEKC): Copy defn from cpplib.c.
11756         (rest_extension, REST_EXTENSION_LENGTH): Delete.
11757         (struct arg): New.
11758         (struct arglist): Simplify.
11759         (collect_expansion): Rewrite.  Get tokens by calling
11760         cpp_get_token.  Add more error checking.
11761         (collect_formal_parameters): New function, broken out of
11762         create_definition and reworked to use get_directive_token.
11763         (create_definition): All real work is now in collect_expansion
11764         and collect_formal_parameters.  do_define handles finding the
11765         macro name.  Return a DEFINITION, not a MACRODEF.
11766         (macroexpand): Replace bcopy with memcpy throughout.  Replace
11767         character-at-a-time copy loop with memcpy and pointer increments.
11768         (compare-defs): d1->argnames / d2->argnames might be null.
11769
11770         * cpplib.c (copy_rest_of_line): Delete function.
11771         (skip_rest_of_line): Do all the work ourselves.
11772         (skip_string): New function.
11773         (parse_string): Use skip_string.
11774         (get_macro_name): New function.
11775         (check_macro_name): Delete.
11776         (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
11777         (cpp_skip_hspace): Use CPP_BUMP_LINE.
11778         (handle_directive): ICE if we're called on a macro buffer.
11779         (do_define): Determine macro name and type (funlike/objlike)
11780         here.  Expunge all uses of MACRODEF.
11781         (cpp_push_buffer): Set line_base to NULL.
11782         (do_undef, read_line_number): Don't worry about getting a POP token.
11783         (eval_if_expression): Set/reset parsing_if_directive around
11784         cpp_parse_expr. Don't clear only_seen_white.
11785         (skip_if_group): Remove output_conditionals logic.  Use
11786         skip_rest_of_line.
11787         (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
11788         tokens under appropriate conditions.
11789         (cpp_unassert): Call do_unassert not do_assert.  Oops.
11790
11791         * cppexp.c (parse_defined): New function, break out of
11792         cpp_lex.
11793         (cpp_lex): We now get CPP_ASSERTION tokens and can check them
11794         ourselves, with cpp_defined.
11795         * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
11796
11797         * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
11798         * gcc.dg/strpaste-2.c: New.
11799
11800 2000-02-29  Mark Mitchell  <mark@codesourcery.com>
11801
11802         * fold-const.c (size_binop): Don't asert inputs are the same and
11803         have TYPE_IS_SIZETYPE set.
11804         (size_diffop): Likewise.
11805
11806 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
11807
11808         * dwarfout.c (output_block): Output abstract blocks even if they
11809         don't have TREE_ASM_WRITTEN set.
11810
11811         * calls.c (emit_library_call): Check for null REG.
11812
11813 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11814
11815         * c-decl.c (current_function_decl): Move to toplev.c.
11816         (init_decl_processing): Don't add current_function_decl as a ggc
11817         root here.
11818         * dbxout.c (dbxout_symbol): Change return type to int.
11819         (dbxout_symbol_location, dbxout_syms): Likewise.
11820         (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
11821         any locals. Use current_function_func_begin_label if set.
11822         * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
11823         * dwarf2out.c (dwarf2out_begin_prologue): Set
11824         current_function_func_begin_label.
11825         * final.c (final_start_function): Reset it.
11826         * toplev.c (current_function_decl): Define it here.
11827         (current_function_func_begin_label): New variable.
11828         (main): Add both as ggc roots.
11829         * tree.h (current_function_func_begin_label): Declare.
11830
11831 Tue Feb 29 14:07:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11832
11833         * gcse.c: Cleanups throughout: mostly white-space, but also
11834         some minor rearrangement of code.
11835
11836 Tue Feb 29 10:45:59 2000  Jeffrey A Law  (law@cygnus.com)
11837
11838         * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
11839         returns a PARALLEL.  Use emit_group_load and use_group_regs
11840         as needed.
11841         (emit_library_call_value): Similarly.
11842
11843         * pa/t-pa: Use quadlib.c instead of quadlib.asm.
11844         * pa/quadlib.asm: Remove.
11845         * pa/quadlib.c: New file.
11846
11847         * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
11848         * configure: Rebuilt.
11849
11850 2000-02-29  Philip Blundell  <pb@futuretv.com>
11851
11852         * config/arm/conix-elf.h: New file.
11853         * configure.in (arm*-*-conix*): New configuration.
11854         * configure: Regenerate.
11855
11856 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
11857
11858         * dwarf2out.c (gen_block_die): Output abstract blocks even if they
11859         don't have TREE_ASM_WRITTEN set.
11860
11861 Mon Feb 28 21:07:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11862
11863         * Eliminate DECL_FIELD_SIZE.
11864         * builtins.c (built_in_class_names, built_in_names): New variables.
11865         * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
11866         * expr.c (expand_expr, case COMPONENT_REF): Get field size from
11867         DECL_SIZE, not DECL_FIELD_SIZE.
11868         * print-tree.c (print_node): Remove code that prints extra blank
11869         lines in some cases.
11870         Properly handle inline and builtin function cases.
11871         * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
11872         * tree.h (built_in_class_named, built_in_names): New declarations.
11873         (union tree_decl): Rename internal unions to u1 and u2 and change
11874         some of their components.
11875         Add new field built_in_class.
11876         (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
11877         Reflect above changes.
11878         (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
11879         (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
11880         * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
11881         (encode_field_decl): Likewise; also remove obsolete test for bitfield.
11882
11883 2000-02-28  Dmitri Makarov  <dim@windriver.com>
11884
11885         * extend.texi: Document ARM's support for long/short calls.
11886
11887         * invoke.texi: Document ARM's -mlong-calls command line switch.
11888
11889         * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
11890         (arm_encode_call_attribute): Add prototype.
11891         (arm_set_default_type_attribute): Add prototype.
11892         (arm_strip_name_encoding): Add prototype.
11893
11894         * config/arm/arm.c (arm_init_cumulative_args): replace
11895         initialisation og 'long_calls' field with initialisation of
11896         'call_cookie' field.
11897         (enum arm_pragma_enum): New enum.
11898         (arm_pragma_long_calls): New static variable.
11899         (arm_process_pragma): Also process "#pragma long_calls_off".
11900         (arm_valid_type_attribute_p): Accept short_call attribute.
11901         (arm_comp_type_attributes): Check long/short call attributes.
11902         (arm_encode_call_attribute):  New function:  Encode long_call
11903         or short_call attribute in function name.
11904         (arm_set_default_type_attributes): New function: Assign
11905         default attributes to newly defined type.
11906         (current_file_function_operand): New function: Return true if
11907         the symbol is a function which has already been compiled.
11908         (arm_is_longcall_p): New function: Return true if the
11909         indicated function should be called via a long call.
11910         (arm_get_strip_length): New function.  Returns number of
11911         prefix characters to be stripped from a function's name.
11912         (arm_strip_name_encoding): New function.  Strip prefix characters
11913         from a function's name.
11914
11915         * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
11916         with 'call_cookie'.
11917         (SHORT_CALL_FAG_CHAR): Define.
11918         (LONG_CALL_FAG_CHAR): Define.
11919         (ENCODED_SHORT_CALL_ATTR_P): Define.
11920         (ENCODED_LONG_CALL_ATTR_P): Define.
11921         (ARM_NAME_ENCODING_LENGTHS): Define.
11922         (STRIP_NAME_ENCODING): Define.
11923         (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
11924         (ARM_ENCODE_CALL_TYPE): Define.
11925         (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
11926         (ARM_DECLARE_FUNCTION_SIZE): Define.
11927         (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
11928
11929         * config/arm/arm.md (call): Call arm_is_longcall_p to decide
11930         if a long call is needed.
11931         (call_value): Ditto.
11932         (call_symbol): Ditto.
11933
11934         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
11935         ARM_DECLARE_FUNCTION_SIZE.
11936
11937         * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
11938         (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
11939         (ARM_STRIP_NAME_ENCODING): Undefine.
11940         (STRIP_NAME_ENCODING): Undefine.
11941         (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
11942         (ASM_DECLARE_FUNCTION_NAME): Ditto.
11943         (ASM_OUTPUT_COMMON): Ditto.
11944         (ASM_DECLARE_OBJECT_NAME): Ditto.
11945
11946         * config/arm/pe.c (arm_dllexport_name_p): Check for
11947         ARM_PE_FLAG_CHAR.
11948         (arm_dllimport_name_p): Ditto.
11949         (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
11950         (arm_mark_dllimport): Ditto.
11951
11952 Mon Feb 28 22:11:12 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11953
11954         * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
11955
11956 2000-02-28  Mark Mitchell  <mark@codesourcery.com>
11957
11958         * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
11959
11960 2000-02-28  Zack Weinberg  <zack@wolery.cumb.org>
11961
11962         * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
11963         * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
11964         NO_BUILTIN_WCHAR_TYPE is not defined.
11965         (CPP_WCHAR_TYPE): Delete.
11966         * cccp.c (main): Don't change wchar_type if cplusplus.
11967         (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
11968
11969 2000-02-28  Nick Clifton  <nickc@cygnus.com>
11970
11971         * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
11972
11973 Mon Feb 28 14:21:15 2000  Catherine Moore  <clm@cygnus.com>
11974
11975         * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
11976         (ASM_WEAKEN_LABEL): Define.
11977
11978 Mon Feb 28 13:07:19 MET 2000  Jan Hubicka  <jh@suse.cz>
11979
11980         * expr.c (store_constructor): Do not emit USE.
11981         * rtl.h (stupid_life_analysis): Remove.
11982
11983 Mon Feb 28 07:03:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11984
11985         * function.c (number_blocks): Reset next_block_index based on
11986         what debugging format is used, not what is defined.
11987
11988         * lcm.c: Minor reformatting throughout.
11989         (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
11990
11991         * toplev.c (rest_of_compilation): Account for time in
11992         optimize_mode_switching.
11993
11994         * jump.c (jump_optimize_1): Don't call delete_barrier_successors
11995         if only marking labels.
11996
11997 Mon Feb 28 12:53:57 MET 2000  Jan Hubicka  <jh@suse.cz>
11998
11999         * calls.c (expand_call): Attempt to combine stack adjustments with
12000         pending stack adjustments.
12001
12002 Mon Feb 28 11:34:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12003
12004         * loop.c (reg_in_basic_block_p): Don't abort when falling through
12005         to the end of the function.
12006
12007 2000-02-27  Mark Mitchell  <mark@codesourcery.com>
12008
12009         * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
12010         blocks.
12011         * final.c (next_block_index): Remove.
12012         (max_block_depth): Likewise.
12013         (pending_blocks): Likewise.
12014         (init_final): Don't initialize them.
12015         (final_start_function): Don't set next_block_index.  Set up
12016         BLOCK_NUMBER.
12017         (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
12018         * function.h (number_blocks): New function.
12019         * function.c (get_block_vector): New function.
12020         (identify_blocks): Use it.
12021         (reorder_blocks): Set NOTE_BLOCK.
12022         (number_blocks): New function.
12023         * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
12024         * tree.h (BLOCK_NUMBER): New macro.
12025         (tree_block): Add block_num field.
12026         * dbxout.c (next_block_number): Remove.
12027         (dbxout_init): Don't set it.
12028         (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
12029         set.  Use BLOCK_NUMBER, rather than next_block_num, to determine
12030         block numbers.
12031         * toplev.c (rest_of_compilation): Always call
12032         find_loop_tree_blocks.  Fix indentation.
12033         * dwarf2out.c (next_block_number): Remove.
12034         (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
12035         to determine block numbers.
12036         (gen_inlined_subroutine_die): Likewise.
12037         (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
12038         (decls_for_scope): Don't increment next_block_number.
12039         * dwarfout.c (next_block_number): Remove.
12040         (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
12041         to determine block numbers.
12042         (output_inlined_subroutine_die): Likewise.
12043         (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
12044         (output_decls_for_scope): Don't increment next_block_number.
12045         * sdbout.c (next_block_number): Remove.
12046         (sdbout_block): Use BLOCK_NUMBER.
12047         (sdbout_begin_block): Simplify.
12048         * xcoffout.c (next_block_number): Remove.
12049         (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
12050         (xcoffout_begin_block): Don't set next_block_number.
12051         (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
12052         next_block_number.
12053
12054 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12055
12056         * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
12057         (expand_builtin_strcpy): Pass correct type to size_binop.
12058         (expand_builtin_strcmp): Likewise.
12059         Clean up conditional structure.
12060         * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
12061         (complete_array_type): Don't use size_binop for MAXINDEX.
12062         * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
12063         (c_sizeof_nowarn, c_size_in_bytes): Likewise.
12064         (c_alignof): Use size_one_node.
12065         (build_unary_op): Pass arg of proper type to size_binop.
12066         (really_start_incremental_init, push_init_level): Use sizetype for
12067         constructor{,_bit,_unfilled}_index.
12068         (pop_init_label, output_init_element): Likewise.
12069         (output_pending_init_elements, process_init_element): Likewise.
12070         * calls.c (compute_argument_block_size): Field VAR is ssizetype.
12071         * expr.c (store_expr): Use size_int.
12072         (store_constructor): Use proper types for size_binop args.
12073         (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
12074         (expand_expr_unaligned): Likewise.
12075         (string_contant): Return object of sizetype.
12076         * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
12077         (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
12078         (ARGS_SIZE_TREE): Pass proper types to size_binop.
12079         * fold-const.c (int_const_binop): Refine when size_int is called.
12080         (fold_convert): Likewise.
12081         (size_int_wide): Rework to take KIND as arg, only take low order
12082         bits, handle new sizetype_tab datatype, and chain entries in
12083         size_table.
12084         (size_int_type_wide): New function.
12085         (size_binop): Validate types of arguments.
12086         (ssize_binop): Deleted.
12087         (size_diffop): New function.
12088         (extract_muldiv): Only fold division into multiplication for sizetypes.
12089         * function.c (assign_parms): Use size_diffop and make sure
12090         VAR field is of ssizetype; also pass proper type to size_binop.
12091         (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
12092         (round_down): Deleted from here.
12093         * store-layout.c (sizetype_tab): Now an array.
12094         (sizetype_set, early_root_list): New variables.
12095         (variable_size): Use size_one_node.
12096         (round_up): Pass proper type to size_binop.
12097         (round_down): Moved to here and corrected as above.
12098         (layout_record): Pass proper arg types to size_binop.
12099         (layout_type): Likewise.
12100         If sizetype_set is zero, record the type just laid out.
12101         (make_unsigned_type): Don't call set_sizetype;
12102         (make_signed_type): Likewise; also, call fixup_signed_type.
12103         (initialize_sizetypes): New function.
12104         (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
12105         set name of bitsizetype to "bit_size_type".
12106         Fix up type of sizes of all types made before call.
12107         * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
12108         * tree.c (fix_sizetype): Deleted.
12109         (build_common_tree_nodes): Call initialize_sizetypes.
12110         (build_common_tree_nodes_2): Don't call fix_sizetype.
12111         * tree.h (TYPE_IS_SIZETYPE): New macro.
12112         (initialize_sizetype): New declaration.
12113         (enum size_type_kind): New type.
12114         (struct sizetype_tab): Deleted.
12115         (sizetype_tab): Now array; adjust sizetype macros.
12116         (size_diffop, size_int_type_wide): New functions.
12117         (size_int_wide): Change number of args and type; access macros changed.
12118         (ssize_int, sbitsize_int): New macros.
12119         * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
12120         (ROUND_TYPE_SIZE_UNIT): New macro.
12121
12122 2000-02-27  Zack Weinberg  <zack@wolery.cumb.org>
12123
12124         * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
12125
12126 Sun Feb 27 07:44:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12127
12128         * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
12129         Mark as possibly unused.
12130
12131         * cse.c (cse_insn): Delete dead code involving tablejump.
12132         Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
12133
12134         * Makefile.in (libcpp.a): Start by deleting it.
12135
12136 2000-02-27  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12137
12138         * cpplib.h (enum file_change_code): Added rename_file.
12139         * cpplib.c (do_line): If a filename is given, set file_change to
12140         rename_file.
12141         (output_line_command): If file_change is rename_file, always
12142         output a # directive with the file name.
12143
12144         * cpplib.c (do_pragma): Accept #pragma without consecutive token.
12145
12146 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
12147
12148         * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
12149         when copying a PARM_DECL or RESULT_DECL.
12150
12151 2000-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12152
12153         * fix-header.c (recognized_function): Also fix prototypes for
12154         functions taking "void".
12155
12156 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
12157
12158         * reload1.c (do_output_reload): Check reg_reloaded_valid before
12159         looking at reg_reloaded_contents.
12160
12161 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
12162
12163         * Makefile.in (STMP_FIXINC): New toggle.
12164         (LIBGCC2_DEPS): Delete all references.
12165         (stmp-headers): Delete target.  All references either deleted
12166         or changed to stmp-int-headers.
12167         (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
12168         (LIBCPP_OBJS): Take out cppalloc.o.
12169         (cppalloc.o): Delete target.
12170         (stmp-int-hdrs): Depend on $(STMP_FIXINC).
12171         (gen-protos, fix-header): Link with libiberty.a.
12172         * build-make: Don't change FIXINCLUDES.  Override STMP_FIXINC
12173         to empty.
12174
12175         * configure.in: Remove refs to strerror.
12176         * acconfig.h: Take out NEED_DECLARATION_STRERROR.
12177         * system.h: Take out strerror stanza.
12178
12179         * cpperror.c (my_strerror): Delete function.
12180         (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
12181         * cppmain.c (main): Call xmalloc_set_program_name first thing.
12182         * cppalloc.c: Delete file.
12183         * gen-protos.c: Don't provide xrealloc.
12184
12185         * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
12186         xstrerror throughout.
12187
12188 2000-02-26  Bruce Korb  <bkorb@gnu.org>
12189
12190         * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
12191         match for DOS headers, too.
12192         * fixinc/inclhack.sh,fixincl.x: Regenerate.
12193
12194 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
12195
12196         * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define.  The default
12197         is right for most ELF targets.
12198         * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
12199         Let the default file use %U properly.
12200         * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define.  Use the
12201         default.
12202
12203         * config/fp-bit.c (pack_d): Properly handle rounding of denormal
12204         numbers.
12205
12206 Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12207
12208         * toplev.c (documented_lang_options): Correct spelling error.
12209         (decode_d_option, decode_f_option, main): Likewise.
12210
12211         * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
12212
12213         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
12214         to tell assembler it is permitted to expand large constants.
12215
12216 2000-02-25  Mumit Khan  <khan@xraylith.wisc.edu>
12217
12218         * protoize.c: (AUX_INFO_SUFFIX): New macro.
12219         (aux_info_suffix): Use.
12220         (SAVE_SUFFIX): New macro.
12221         (save_suffix): Use.
12222         (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
12223         (gen_aux_info_file): Use aux_info_suffix instead of ".X".
12224         (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
12225
12226         * invoke.texi (Running Protoize): Update documentation.
12227
12228 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
12229
12230         * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
12231
12232 2000-02-25  John Wehle  (john@feith.com)
12233
12234         * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
12235
12236 2000-02-25  Anthony Green  <green@cygnus.com>
12237
12238         * toplev.c (rest_of_compilation): Rebuild jump labels if
12239         combine_instructions has created a new direct jump.
12240         * combine.c (try_combine): Add new_direct_jump_p argument.  Set it
12241         when appropriate.
12242         (combine_instructions): Call try_combine with new argument.
12243         Return non-null value when new direct jump instruction is created.
12244         * rtl.h: combine_instructions returns an int.
12245
12246 Fri Feb 25 19:49:08 2000  Jeffrey A Law  (law@cygnus.com)
12247
12248         * cse.c (cse_insn): Replace the PATTERN of the insn with an new
12249         jump when changing a computed jump into a jump to a known
12250         target.
12251
12252 Fri Feb 25 19:22:44 2000  Graham Stott <grahams@rcp.co.uk>
12253
12254         * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
12255         to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
12256
12257         * i386.md (define_expand "clrstrsi"): Fix typo.
12258
12259 Fri Feb 25 18:49:39 2000  "K. Richard Pixley" <rich@microunity.com>
12260
12261         * rtl.texi: Fix typo.
12262
12263 Fri Feb 25 20:02:35 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12264
12265         * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
12266         UNITS_PER_WORD.  Change caller initial_elimination_offset.
12267         (rounded_frame_size): Take into account that argument pushed has
12268         changed.  Fix TARGET_ALIGN_DOUBLE problem.
12269
12270 2000-02-25  Geoff Keating  <geoffk@cygnus.com>
12271
12272         * haifa-sched.c (schedule_block): Explain the real reason
12273         we delete REG_SAVE_NOTEs on the first insn of a block.
12274         Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
12275
12276 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
12277
12278         * input.h (push_srcloc): New function.
12279         (pop_srcloc): Likewise.
12280         * toplev.c (push_srcloc): Define it.
12281         (pop_srcloc): Likewise.
12282
12283 2000-02-24  Richard Henderson  <rth@cygnus.com>
12284
12285         * flow.c (life_analysis): When collecting reg info, clear
12286         regs_ever_live.
12287
12288 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12289
12290         Fix bug exposed by reload.c no longer rounding the frame
12291         size to BIGGEST_ALIGNMENT:
12292         * sh.c (rounded_frame_size): New function.
12293         (sh_expand_prologue, sh_expand_epilogue): Use it.
12294         (initial_elimination_offset): Likewise.
12295
12296 Thu Feb 24 20:04:11 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12297
12298         Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
12299         * sh-protos.h (sh_need_epilogue): Declare.
12300         * sh.c (sh_need_epilogue_known): New static variable.
12301         (sh_need_epilogue): New function.
12302         (function_epilogue): Clear need_epilogue_known.
12303         * sh.md (return): Split into expander / insn pattern.
12304         Make the expander conditional on ! sh_need_epilogue ().
12305
12306 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
12307
12308         * machmode.h (get_mode_alignment): Declare.
12309         (GET_MODE_ALIGNMENT): Call it.
12310         * stor-layout.c (get_mode_alignment): New function. Make
12311         sure alignment is always power of 2.
12312
12313 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
12314
12315         * i386.h: Remove useless definition of "I386" and misleading
12316         comment above it.
12317
12318 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
12319
12320         * tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
12321         under which TREE_PERMANENT will be set.
12322         * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
12323         build1): Use TREE_SET_PERMANENT.
12324         * print-tree.c (print_node): Don't report value of
12325         TREE_PERMANENT if ggc_p is true.
12326
12327         * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
12328         decide whether to give a type a new alias set.
12329         * objc/objc-act.c (build_objc_string_object): Never copy the string.
12330         * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
12331         of value of 'obstack'.
12332
12333
12334 2000-02-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12335
12336         * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
12337
12338 2000-02-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12339
12340         * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
12341         * cpplib.c (cpp_get_token): Produce them.
12342         * cppexp.c (cpp_lex): Handle them.
12343
12344 2000-02-23  Nick Clifton  <nickc@cygnus.com>
12345
12346         * config/arm/arm.c (arm_comp_type_attributes): Simply and
12347         comment tests on type attributes.
12348
12349 Wed Feb 23 16:42:21 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12350
12351         * final.c (shorten_branches): Make value passed to LOOP_ALIGN
12352         conform to documentation.
12353         * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
12354         to check for special cases.
12355         * sh-protos.h (sh_loop_align): Declare.
12356         * sh.c (sh_loop_align): Define.
12357
12358 2000-02-22  Andrew Haley  <aph@cygnus.com>
12359
12360         * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
12361         (SIZE_TYPE): Is 32 bits when using -mgp32.
12362         (PTRDIFF_TYPE): Ditto.
12363
12364 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12365
12366         * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
12367
12368 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
12369
12370         * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
12371         BIGGEST_FIELD_ALIGNMENT a constant.
12372
12373 2000-02-21  Jason Merrill  <jason@casey.cygnus.com>
12374
12375         * dwarf2out.c (output_line_info): Put the marker for the end of
12376         the line number info at the actual end.
12377         (gen_struct_or_union_type_die): Use decl_function_context
12378         to check for local classes.
12379         * dwarfout.c (output_type): Likewise.
12380
12381 Tue Feb 22 01:38:57 2000  Jeffrey A Law  (law@cygnus.com)
12382
12383         * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
12384         for arguments with a mode, but no type.
12385         (FUNCTION_ARG_CALLEE_COPIES): Similarly.
12386         * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
12387         * pa/long_double.h: New file.
12388         * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
12389         both have 128bit wide long doubles.
12390         * configure: Rebuilt.
12391
12392 2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12393
12394         * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
12395
12396         * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
12397         fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
12398         (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
12399
12400         * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
12401
12402         * integrate.c (compare_blocks, find_block): Likewise.
12403
12404         * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
12405
12406         * rtl.h (set_file_and_line_for_stmt): Constify a char*.
12407
12408         * stmt.c (stmt_status, set_file_and_line_for_stmt,
12409         expand_asm_operands): Likewise.
12410
12411 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
12412
12413         * predict.c (estimate_probability): Added the pointer heuristic to
12414         the collection of static branch predictors.
12415
12416 2000-02-21  Catherine Moore  <clm@cygnus.com>
12417
12418         * config/mips/mips.h (ASM_SPEC): Add -mfix700.
12419         * invoke.texi (-mfix7000): Document.
12420
12421 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
12422
12423         * diagnostic.c (init_output_buffer): Make it possible to output at
12424         least 32 characters if we're given a too long prefix.
12425
12426 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
12427
12428         * varasm.c (initializer_constant_valid_p): Call
12429         lang_expand_constant to simplify the constant.
12430
12431 2000-02-20  Bruce Korb  <bkorb@gnu.org>
12432
12433         * fixinc/inclhack.def(stdio_va_list):
12434         typedef needs to be disabled.
12435         * fixinc/inclhack.sh: regen
12436         * fixinc/fixincl.x: regen
12437
12438 2000-02-20  Geoff Keating  <geoffk@cygnus.com>
12439
12440         * print-rtl.c (print_rtx): Don't print addresses when
12441         flag_dump_unnumbered.
12442
12443 2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12444
12445         * sparc.c (sparc_output_scratch_registers): Mark parameter with
12446         ATTRIBUTE_UNUSED.
12447         (sparc_va_arg, sparc_flat_output_function_prologue,
12448         sparc_flat_output_function_epilogue): Cast value to unsigned in
12449         comparison.
12450         (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
12451
12452         * sparc.md: Add default case in switch.
12453
12454 2000-02-19  Richard Henderson  <rth@cygnus.com>
12455
12456         * c-typeck.c (add_pending_init): Don't abort for multiple
12457         fields at the same offset.
12458         (pending_init_member): Test the correct member.
12459
12460 2000-02-19  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12461
12462         * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
12463         instead of SImode.
12464         (start_catch_handler) : Same.
12465
12466 2000-02-19  Brad Lucier  (lucier@math.purdue.edu)
12467
12468         * Makefile.in: Have flow.o depend on $(EXPR_H)
12469
12470 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12471
12472         * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
12473         * c-decl.c (duplicate_decls, finish_enum): Likewise.
12474         (finish_decl): Remove -Wlarger-than code from here.
12475         * flags.h (id_clash_len): Now int.
12476         (larger_than_size): Now HOST_WIDE_INT.
12477         * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
12478         Clean up checking to see if in table.
12479         (make_bit_field_ref): Remove extra parm to bitsize_int.
12480         * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
12481         * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
12482         * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
12483         and for computing size of decl.
12484         * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
12485         Move -Wlarger-than code to here.
12486         (layout_record): Remove extra arg to bitsize_int.
12487         Set TYPE_BINFO_SIZE_UNIT.
12488         (layout_union): Remove extra arg to bitsize_int.
12489         Use proper type for size of QUAL_UNION.
12490         (layout_type): Remove extra arg to bitsize_int.
12491         * toplev.c (id_clash_len): Now int.
12492         (larger_than_size): Now HOST_WIDE_INT.
12493         (decode_W_option): Clean up id-clash and larger-than- cases.
12494         * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
12495         (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
12496         * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
12497         (struct tree_decl): New field size_unit.
12498         (size_int_wide): No HIGH operand; NUMBER is now signed.
12499         (size_int_2): Deleted.
12500         (size_int, bitsize_int): Don't use it and rework args.
12501         * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
12502
12503 Fri Feb 18 20:01:58 2000  Jeffrey A Law  (law@cygnus.com)
12504
12505         * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
12506
12507 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
12508
12509         * invoke.texi (Warning Options): Add an explanation of why
12510         you might want the -Wfloat-equal flag.
12511
12512 Fri Feb 18 20:08:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12513
12514         * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
12515         * cppinit.c (new_pending_define): Add cast to avoid warning.
12516         * expmed.c (extract_bit_field): Likewise.
12517         * flow.c (enum reorder_skip_type): New type.
12518         (skip_insns_between_blcok): New it.
12519         Rework to avoid warning about possibly undefined variable.
12520         * function.c (assign_parms): Make thisparm_boundary unsigned.
12521         * genrecog.c (write_switch): Cast XWINT result to int.
12522         * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
12523         * mips-tfile.c (init_file): Make two versions of FDR intializer:
12524         one for MIPS and one for Alpha.
12525         (get_tag, copy_object): Add casts to avoid warnings.
12526         * optabs.c (init_one_libfunc): Cast NAME to (char *).
12527         * reload.c (find_reloads): Make TYPE enum reload_type.
12528         * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
12529         * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
12530         * varasm.c (compare_constant_1): Add cast to avoid warning.
12531         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
12532         to (char *).
12533         (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
12534         Cast switch operand of size to int.
12535         (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
12536         * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
12537         in unhandled case.
12538
12539 2000-02-18  Nick Clifton  <nickc@cygnus.com>
12540
12541         * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
12542         anything for an alignment of zero.
12543
12544         * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
12545         anything for an alignment of zero.
12546
12547 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
12548
12549         * gcc.texi (Bug Reporting): Refer to bugs.html.
12550         (Bug Lists): Likewise.
12551         * system.h (GCCBUGURL): New preprocessor define.
12552         * rtl.c (fancy_abort): Use it.
12553         * gcc.c (main): Likewise.
12554
12555 2000-02-18  Richard Henderson  <rth@cygnus.com>
12556
12557         * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
12558         (life_analysis_1): Subsume into ...
12559         (life_analysis): ... here.  Force PROP_REG_INFO off after reload.
12560         Use update_life_info for the relaxation.
12561         (update_life_info): Update REG_BASIC_BLOCK for registers live on
12562         entry and regs_live_at_setjmp.
12563         (set_noop_p): Simplify.
12564         (notice_stack_pointer_modification_1): Renamed from s/_1//.
12565         (record_volatile_insns): Split into ...
12566         (delete_noop_moves): ... here,
12567         (notice_stack_pointer_modification): ... here,
12568         (insn_dead_p): ... and here.
12569         (propagate_block): Don't query INSN_VOLATILE.
12570         (mark_used_regs): Mind !PROP_REG_INFO.
12571         * toplev.c (rest_of_compilation): Call mark_constant_function here,
12572         not in life_analysis.
12573
12574 Fri Feb 18 01:29:22 EST 2000  John Wehle  (john@feith.com)
12575
12576         * loop.c (canonicalize_condition): New function,
12577         broken out of get_condition.
12578         (get_condition): Use it.
12579         * expr.h (canonicalize_condition): Prototype it.
12580
12581         * tree.h (tree_int_cst_msb): Declare.
12582         * tree.c (tree_int_cst_msb): New function.
12583
12584 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
12585
12586         * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
12587         isn't set.
12588
12589         * invoke.texi (-fmessage-length=n): Document.
12590
12591 2000-02-17  Jason Merrill  <jason@casey.cygnus.com>
12592
12593         * bitmap.c (bitmap_operation): Don't leak bitmap elements.
12594
12595 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
12596
12597         * function.c (thread_prologue_and_epilogue_insns): Put a line note
12598         after the prologue.
12599
12600 2000-02-17  Nick Clifton  <nickc@cygnus.com>
12601
12602         * config/arm/thumb.c: Replace includes of system headers with
12603         #include "system.h".
12604
12605 2000-02-16  Richard Henderson  <rth@cygnus.com>
12606
12607         * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
12608         Add crtbeginS.o and crtendS.o.
12609         * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
12610         (ENDFILE_SPEC): Use crtendS.o.
12611         * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
12612
12613         * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
12614         (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
12615         shared and present.
12616         (__dso_handle): New variable.
12617         * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
12618         bias to __CTOR_END__.
12619
12620 2000-02-16  Richard Henderson  <rth@cygnus.com>
12621
12622         * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
12623
12624 Wed Feb 16 21:40:04 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12625
12626         * longlong.h (__clz_tab): Declare as static to match definition.
12627
12628 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
12629
12630         * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
12631         (XREF_FILE_NAME): Define.
12632
12633         * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
12634         (EH_FRAME_SECTION_ASM_OP): Define.
12635         (IDENT_ASM_OP): Define.
12636         (TEXT_SECTION_ASM_OP): Define.
12637         (CPP_SPEC): Define.
12638         (CTORS_SECTION_ASM_OP): Define.
12639         (CTOR_SECTION_FUNCTION): Use it.
12640         (DTORS_SECTION_ASM_OP): Define.
12641         (DTOR_SECTION_FUNCTION): Use it.
12642
12643 2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
12644
12645         * reg-stack.c (emit_swap_insn): Do not put a new insn before a
12646         NOTE_BASIC_BLOCK.
12647
12648         * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
12649         debug_bb_n): New functions.
12650         (dump_flow_info, print_rtl_with_bb): Use dump_regset.
12651         * basic-block.h: Prototype new functions.
12652
12653 Wed Feb 16 21:07:53 2000  Denis Chertykov  <denisc@overta.ru>
12654
12655         * configure.in: Add support for avr target.
12656         * configure: Rebuilt.
12657
12658         * invoke.texi: Add AVR invocation docs.
12659         * install.texi: Add information about AVR.
12660         * md.texi: Add AVR constraint letters description.
12661         * extend.texi: Add description for AVR specific attributes.
12662
12663 2000-02-16  Jason Merrill  <jason@casey.cygnus.com>
12664
12665         * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
12666
12667 2000-02-16  Nick Clifton  <nickc@cygnus.com>
12668
12669         * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
12670         (make_insn_raw): Move RTL check here.
12671
12672 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12673
12674         * version.c: Include gansidecl.h and version.h.
12675
12676         * version.h: Wrap entire file in macro __GCC_VERSION_H__.
12677
12678         * configure.in (gcc_version): When setting, narrow search to
12679         lines containing `version_string'.
12680
12681         * Makefile.in (mainversion): Likewise.
12682         (GCC_H): New variable.
12683         (gcc.h): Delete target.
12684         (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
12685         (version.o): Depend on version.h.
12686         (dbxout.o): Don't depend on gcc.h.
12687
12688 Wed Feb 16 15:04:49 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12689                           Michael Meissner  <meissner@cygnus.com>
12690
12691         * md.texi (Simple Constraints): Add item about whitespace.
12692         * genoutput.c (strip_whitespace): New.
12693         (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
12694         strip_whitespace for constraints.
12695         Test pointer using NULL, not 0.
12696
12697 2000-02-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12698
12699         * cpplib.c (do_line): Pedwarn for #line > 32767.
12700
12701         * c-lex.c (readescape): Warn about '\x', but do not reject it.
12702
12703 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
12704
12705         * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
12706         to default cpp spec.
12707         (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
12708         * cpp.texi: Document __GNUC_PATCHLEVEL__.
12709         * cpp.1: Likewise.
12710
12711         * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
12712         default spec.
12713
12714 2000-02-15  Denis Chertykov  <denisc@overta.ru>
12715
12716         * configure.in: Add support for avr target.
12717
12718 Wed Feb 16 03:21:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12719
12720         * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
12721         (sh_addr_diff_vec_mode): Don't declare.
12722         * sh.c (sh_addr_diff_vec_mode): Delete.
12723
12724 Wed Feb 16 01:27:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12725
12726         * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
12727
12728 Wed Feb 16 00:58:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12729
12730         * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
12731         (smulsi3_highpart_i): Name.
12732         (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
12733         (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
12734         (smulsi3_highpart, umulsi3_highpart): Likewise.
12735
12736         (mulsidi3_i, umulsidi3_i): Make rtl describe operation
12737         correctly independent of endianness.
12738         (mulsidi3, umulsidi3): Now define_insn.  Hide details that
12739         confuse the optimizers.
12740         (mulsidi3+1, umulsidi3+1): New define_split.
12741
12742 Tue Feb 15 23:22:26 2000  Andrew Haley  <aph@cygnus.com>
12743
12744         * config/sh/sh.md: Guard insn splits against illegal registers.
12745         * config/sh/sh.h: Correct comment about macros.
12746
12747 Tue Feb 15 22:30:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12748                           Andrew MacLeod  <amacleod@cygnus.com>
12749
12750         * Makefile.in (lcm.o): Depend on insn-attr.h.
12751         * basic-block.h (optimize_mode_switching): Declare.
12752         * lcm.c (tm_p.h, insn-attr.h): #include.
12753         (seginfo, bb_info): New structs.
12754         (antic, transp, comp, delete, insert) : New file-scope static variables.
12755         (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
12756         (reg_becomes_live, optimize_mode_switching): Likewise.
12757         * tm.texi: Add description of mode switching macros.
12758         * toplev.c (rest_of_compilation): Call optimize_mode_switching.
12759
12760         * sh-protos.h (remove_dead_before_cse): Remove prototype.
12761         (fldi_ok, fpscr_set_from_mem): New prototypes.
12762         * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
12763         (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
12764         Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
12765         (sh_flag_remove_dead_before_cse): Remove declaration.
12766         (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
12767         (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
12768         (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12769         * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
12770         (barrier_align): Allow for JUMP_INSNS containing a parallel.
12771         (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
12772         (fldi_ok): New function.
12773         (get_fpscr_rtx): Add fpscr_rtx as GC root.
12774         (emit_sf_insn): Only generate fpu switches when optimize < 1.
12775         (emit_df_insn): Likewise.
12776         (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
12777         (sh_flag_remove_dead_before_cse): Delete.
12778         (get_free_reg, fpscr_set_from_mem): New functions.
12779         * sh.md (movdf, movsf): Remove no_new_pseudos code.
12780         (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
12781
12782 2000-02-15  Loren Rittle  <ljrittle@acm.org>
12783
12784         * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
12785
12786 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12787
12788         * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
12789         cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
12790
12791         * cccp.c: Include version.h and/or don't declare `version_string'.
12792         * collect2.c: Likewise.
12793         * alpha.c: Likewise.
12794         * arm/aof.h: Likewise.
12795         * arm/coff.h: Likewise.
12796         * arm/elf.h: Likewise.
12797         * arm/pe.h: Likewise.
12798         * arm/tcoff.h: Likewise.
12799         * arm/telf.h: Likewise.
12800         * arm/tpe.h: Likewise.
12801         * arm/vxarm.h: Likewise.
12802         * convex/convex.c: Likewise.
12803         * i386/dgux.c: Likewise.
12804         * i386/sun386.h: Likewise.
12805         * m88k/m88k.c: Likewise.
12806         * mcore/mcore-pe.h: Likewise.
12807         * mips/mips.h: Likewise.
12808         * romp/romp.h: Likewise.
12809         * sh/sh.c: Likewise.
12810         * cpphash.c: Likewise.
12811         * cppinit.c: Likewise.
12812         * dwarf2out.c: Likewise.
12813         * dwarfout.c: Likewise.
12814         * gcc.c: Likewise.
12815         * gcc.h: Likewise.
12816         * mips-tfile.c: Likewise.
12817         * protoize.c: Likewise.
12818         * toplev.c: Likewise.
12819         * tree.h: Likewise.
12820
12821         * version.c (version_string): Constify a char*.
12822
12823         * version.h: New file.
12824
12825 2000-02-14  Nick Clifton  <nickc@cygnus.com>
12826
12827         * configure.in: Add mcore-elf and mcore-pe targets.
12828         * configure: Regenerate.
12829
12830         * NEWS: Add note that MCore port has been contributed.
12831
12832         * invoke.texi: Document command line switches for MCore port.
12833         * install.texi: Add MCore to list of supported targets.
12834
12835 2000-02-14  Geoff Keating  <geoffk@cygnus.com>
12836
12837         * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
12838         then we will need to import the frame handling functions.
12839         (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
12840         to import the frames themselves.
12841
12842 Mon Feb 14 13:31:01 2000  Stan Cox  <scox@cygnus.com>
12843                           Jason Eckhardt  <jle@cygnus.com>
12844
12845         * basic_block.h: Added prototype for reorder_basic_blocks.
12846         * toplev.c: Changes to add -freorder-blocks and graph dump after
12847         block reordering is done.
12848         * flow.c (reorder_block_def): New structure for use during block
12849         reordering.
12850         (REORDER_BLOCK_*): New macros to access members of above structure.
12851         (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
12852         make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
12853         functions for block reordering.
12854
12855 Mon Feb 14 11:24:44 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12856
12857         * gcc.texi (Passes): Fix typo.
12858         * md.texi (Standard Names): Ditto.
12859         * tm.texi (Storage Layout): Ditto.
12860
12861 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
12862
12863         * cpplib.c (do_define): Only free the old definition if it
12864         actually had one.
12865
12866 2000-02-13   Neil Booth  <NeilB@earthling.net>
12867
12868         * cppfiles.c (read_and_prescan): When emitting deferred
12869         newlines, test speccase[] again instead of checking each
12870         possible whitespace character in turn.  When we encounter \r,
12871         look behind for \n first, then ahead.
12872
12873 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
12874
12875         * cse.c (cse_altered): New internal flag.
12876         (cse_insn): Set it if we changed an insn.
12877         (cse_main): Clear cse_altered before each basic block.
12878         Only garbage collect if cse_altered is true afterward.
12879
12880 Sun Feb 13 14:12:28 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12881
12882         * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
12883
12884 Sun Feb 13 13:21:55 2000  Jeffrey A Law  (law@cygnus.com)
12885
12886         * combine.c (simplify_comparison): Fix typo.
12887
12888 Sun Feb 13 12:57:52 2000  Neil Booth <NeilB@earthling.net>
12889
12890         * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
12891         consistently.
12892
12893 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12894
12895         * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
12896         previously inserted node instead of root node.  Caller changed.
12897
12898 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12899
12900         * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
12901
12902 2000-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12903
12904         * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
12905         __dereg_frame_dtor): Add prototype argument.
12906
12907         * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
12908
12909         * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
12910
12911         * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
12912
12913         * gthr-vxworks.h (__gthread_once): Likewise.
12914
12915         * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
12916
12917 Sat Feb 12 01:44:26 MET 2000  Jan Hubicka  <jh@suse.cz>
12918
12919         * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
12920         (ix86_expand_epilogue): ... here. Use mov instead of add to restore
12921         stack pointer in functions w/o saved registers, output LEAVE more often
12922         on TARGET_USE_LEAVE machines.
12923
12924 2000-02-07  Dmitri Makarov  <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
12925
12926         * config/arm/arm.c (arm_init_cumulative_args); New function:
12927         Initlaise the CUMULATIE_ARGS strcuture for a function
12928         defintion.
12929         (arm_function_arg): New function: Determine where to place a
12930         function's argument.  Also handles deciding the function's
12931         call cookie.
12932         (current_file_function_operand): New function: Return true if
12933         the symbol is a function which has already been compiled.
12934         (arm_is_long_call_p): New function: Return true if the
12935         indicated function should be called via a long call.
12936         (arm_valid_type_attribute_p): New function: Return true if the
12937         attribute is a valid, arm specific, attribute.
12938         (arm_comp_type_attribute): New function: Return true if the
12939         two types have compatable, arm specific, attributes.
12940
12941         * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
12942         structure.
12943         (FUNCTION_ARG): Redefine to call arm_function_arg.
12944         (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
12945         structure field.
12946         (INIT_CUMULATIVE_ARGS): Redefine to call
12947         arm_init_cumulative_args.
12948         (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
12949         field.
12950         (SETUP_INCOMING_VARARGS): Redefine to use correct structure
12951         field.
12952         (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
12953         functions.
12954         (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
12955         (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
12956         (COMP_TYPE_ATTRIBUTES): Define.
12957
12958         * config/arm/arm.md (call): Call arm_is_long_call_p to decide
12959         if a long call is needed.
12960         (call_value): Call arm_is_long_call_p to decide if a long call
12961         is needed.
12962         (call_symbol): Call arm_is_long_call_p to decide if a long call
12963         is needed.
12964
12965         * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
12966
12967 2000-02-11  Denis Chertykov  <denisc@overta.ru>
12968
12969         * README.AVR: New file with information about the avr ports.
12970         * config/avr: New directory with avr port files.
12971
12972 2000-02-11  Andreas Jaeger  <aj@suse.de>
12973
12974         * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
12975
12976 2000-02-11  Zack Weinberg  <zack@wolery.cumb.org>
12977
12978         * cpphash.c: Fix formatting, update commentary.
12979         (dump_definition): Take three separate arguments instead of a
12980         MACRODEF structure argument.
12981         * cpphash.h: Update prototype of dump_definition.
12982         * cppinit.c (cpp_finish): Update call of dump_definition.
12983
12984         * cpplib.c (do_define): Always create new hash entry with
12985         T_MACRO type.  Remove redundant check for redefinition of
12986         poisoned identifier.  Update call of dump_definition.
12987         (do_undef): Don't call check_macro_name.  Rename sym_length to
12988         len.
12989         (do_error, do_warning): Don't use copy_rest_of_line or
12990         SKIP_WHITE_SPACE.
12991         (do_warning): Don't use pedwarn for the actual warning,
12992         only the notice about its not being in the standard.  (Fixes
12993         bug with #warning in system headers.)
12994         (do_ident): Stricter argument checking - accept only a single
12995         string after #ident.  Also, macro-expand the line.
12996         (do_xifdef): Use cpp_defined.  De-obfuscate.
12997
12998         (do_pragma): Split out specific pragma handling to separate
12999         functions.  Use get_directive_token.  Update commentary.  Do
13000         not pass on #pragma once or #pragma poison to the front end.
13001         (do_pragma_once, do_pragma_implementation, do_pragma_poison,
13002         do_pragma_default): New.
13003
13004 Feb 11 12:30:53 2000  Jeffrey A Law  (law@cygnus.com)
13005
13006         * jump.c (jump_optimize_1): The first operand in a relational
13007         can be a CONST_INT.
13008         * optabs.c (emit_conditional_move): Handle relationals which
13009         have a known true/false result.
13010
13011 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
13012
13013         * function.c (thread_prologue_and_epilogue_insns): Don't insert
13014         a RETURN insn into a block which already ends with a jump.
13015
13016 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
13017
13018         * haifa-sched.c (BUF_LEN): Increase a lot.
13019
13020 2000-02-11  Nick Clifton  <nickc@cygnus.com>
13021
13022         * configure.in: Add tm_p_file specification for thumb targets.
13023         * configure: Regenerate.
13024
13025         * config/arm/thumb-protos.h: New file: Prototypes for exported
13026         functions defined in thumb.c.
13027
13028 2000-02-11  Robert Lipe  <robertl@sco.com>
13029
13030         * Makefile.in (bootstrap-lean): Remove additional files.
13031         (bootstrap2-lean): Likewise.
13032         (VOL_FILES): List of files for above.
13033
13034 2000-02-11  Nathan Sidwell  <nathan@acm.org>
13035
13036         * cpphash.c (special_symbol): Remove spurious argument to
13037         cpp_lookup.
13038
13039 2000-02-11  Joel Sherrill (joel@OARcorp.com>
13040
13041         * configure.in: (i*86-*-rtems*): Swapped elf and coff
13042         stanzas.
13043         * configure: Rebuilt.
13044
13045 2000-02-11  Rodney Brown  <RodneyBrown@pmsc.com>
13046
13047         * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
13048
13049 Fri Feb 11 02:59:05 2000  Jeffrey A Law  (law@cygnus.com)
13050
13051         * pa.c, pa.h: Remove trigraph sequences within comments.
13052
13053 Fri Feb 11 02:51:56 2000  Pavel Roskin <pavel_roskin@geocities.com>
13054
13055         * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
13056
13057 Fri Feb 11 02:48:30 2000  Brad Lucier  (lucier@math.purdue.edu)
13058
13059         * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
13060
13061 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13062
13063         * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
13064
13065 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13066
13067         * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
13068         (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
13069         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
13070         (ASM_FILE_END): Use c4x_file_end.
13071         * config/c4x/c4x.c (c4x_global_label): New function.
13072         (c4x_external_ref, c4x_file_end): Likewise.
13073
13074         * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
13075         (c4x_external_ref, c4x_end_file): Likewise.
13076
13077 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
13078
13079         * cppexp.c: Don't include cpphash.h.
13080         (parse_charconst, cpp_lex): Use cpp_defined.
13081         (cpp_lex): Use get_directive_token throughout.  Remove
13082         unnecessary cases from switch.  Move assertion-handling code
13083         down to OTHER case.
13084         (cpp_parse_expr): If we see '+' or '-', check the context to
13085         determine if they are unary or binary operators.  Streamline
13086         the jumps a bit.  Do not call skip_rest_of_line.
13087
13088         * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
13089         static.  Export get_directive_token.  Update commentary.
13090         (cpp_defined): New function.
13091         (do_define): Remove reference to T_PCSTRING.  Call
13092         free_definition to release memory for old definition, when
13093         redefining a macro.
13094         (eval_if_expression): Set only_seen_white to 0 before calling
13095         cpp_parse_expr.  Call skip_rest_of_line after it returns.
13096         (cpp_read_check_assertion): Don't preserve a pointer into the
13097         token buffer across a call to cpp_get_token.
13098
13099         * Makefile.in (cppexp.o): Don't depend on cpphash.h.
13100         * cppfiles.c (redundant_include_p): Use cpp_defined.
13101         * cpphash.c (free_definition): New function.
13102         (delete_macro): Use it.  Update commentary.
13103         * cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
13104         free_definition.
13105         * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
13106         from enum node_type.  Prototype cpp_defined and get_directive_token.
13107         Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
13108
13109         * fix-header.c (check_macro_names): Use cpp_defined.
13110         (read_scan_file): Set inhibit_warnings and inhibit_errors in
13111         the options structure.
13112
13113 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13114
13115         * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
13116
13117 2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
13118
13119         * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
13120         rather than die->die_tag.
13121
13122 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13123
13124         * combine.c (make_extraction, force_to_mode): Avoid warning on
13125         mixed-signedness conditionals.
13126         (make_field_assignment, nonzero_bits): Likewise.
13127         * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
13128         (store_split_bit_field, extract_split_bit_field): Likewise.
13129         (extract_fixed_bit_field, store_bit_field,
13130         * expr.c: Change alignment to be unsigned everywhere.
13131         (move_by_pieces, store_constructor_field, store_constructor):
13132         Alignment parm is unsigned.
13133         (emit_block_move, emit_group_load, emit_group_store): Likewise.
13134         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
13135         (do_compare_rtx_and_jump): Likewise.
13136         (move_by_pieces_ninsns, clear_by_pieces): Likewise.
13137         Compare align with GET_MODE_ALIGNMENT.
13138         (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
13139         (get_inner_reference): Likewise.
13140         (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
13141         (expand_assignment): Local vars for alignment now unsigned.
13142         (store_constructor, store_field, expand_expr, do_jump): Likewise.
13143         (do_compare_and_jump): Likewise.
13144         (store_field): Call new function expr_align.
13145         * expr.h (emit_block_move, emit_group_load, emit_group_store):
13146         Alignment arg now unsigned.
13147         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
13148         (do_compare_rtx_and_jump, store_bit_field): Likewise.
13149         (extract_bit_field): Likewise.
13150         * fold-const.c (add_double): Add cast to eliminate signedness warning.
13151         * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
13152         (get_best_mode): Alignment arg is unsigned.
13153         * rtl.h (move_by_pieces): Likewise.
13154         * store-layout.c (maximum_field_alignment, set_alignment):
13155         Now unsigned.
13156         (layout_decl): Alignment arg is now unsigned.
13157         Remove unneeded casts.
13158         (layout_record, layout_union, layout_type): Remove unneeded casts.
13159         Local alignment variables now unsigned.
13160         (get_best_mode): Alignment arg now unsigned.
13161         * tree.c (expr_align): New function.
13162         * tree.h (expr_align): Likewise.
13163         (maximum_field_alignment, set_alignment): Now unsigned.
13164         (get_inner_reference): Alignment argument is now pointer to unsigned.
13165         * varasm.c (assemble_variable): Add cast to eliminate warning.
13166
13167 Thu Feb 10 12:56:47 2000  Jim Wilson  <wilson@cygnus.com>
13168
13169         * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
13170         then store directly into op0.
13171
13172         * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
13173         the CALL_INSN, and emit the note immediately after it.
13174
13175 2000-02-10  Nick Clifton  <nickc@cygnus.com>
13176
13177         * config/arm/thumb.md (epilogue): Include a (return) in the
13178         generated insn, and emit it using emit_jump_insn not
13179         emit_insn.
13180
13181 Thu Feb 10 18:28:59 MET 2000  Jan Hubicka  <jh@suse.cz>
13182
13183         * function.c (assign_temp): Change zero-sized arrays to size 1.
13184         * integrate.c (expand_inline_function): Do not update
13185         stack_alignment_needed
13186         * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
13187         add some sanity checking, remove optimization for function with
13188         zero frame size.
13189
13190 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13191
13192         * flow.c (mark_regs_live_at_end): Delete unused variables.
13193
13194         * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
13195
13196         * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
13197         in macro FRAME_GROWS_DOWNWARD.
13198
13199         * stmt.c (expand_end_bindings): Delete unused variable.
13200
13201         * unroll.c (iteration_info): Mark parameter `loop' with
13202         ATTRIBUTE_UNUSED.
13203
13204 2000-02-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13205
13206         * fixinc/server.c (load_data): Return NULL if the marker line is
13207         not found.
13208         (run_shell): If load_data returns NULL, retry the command once, in
13209         a new shell.
13210
13211         * configure: Rebuilt.
13212
13213 2000-02-09  Bruce Korb  <bkorb@gnu.org>
13214
13215         * gcc/fixincludes:  ** DELETED **
13216         * gcc/fixcpp:  ** DELETED **
13217         * gcc/fixinc-nt.sed:  ** DELETED **
13218         * gcc/just-fixinc:  ** DELETED **
13219         * gcc/Makefile.in:  Removed out-dated commentary
13220         * gcc/configure.in: Removed fast-fixincludes disablement.
13221         * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
13222
13223 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
13224         * function.c (thread_prologue_and_epilogue_insns): Uncomment
13225         last change.
13226
13227 2000-02-09  Richard Henderson  <rth@cygnus.com>
13228
13229         * jump.c (delete_insn): Don't delete user labels at -O0.
13230
13231 2000-02-09  Robert Lipe  <robertl@sco.com>
13232
13233         * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
13234         Don't link with HOST_LIBS.
13235
13236 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
13237
13238         * configure.in: Correct --help text for --with-dwarf2.
13239         Put tm-dwarf2.h after other tm files, if it's requested.
13240         * configure: Regenerate.
13241         * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
13242         defining it.
13243
13244 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
13245
13246         * cpplib.h: Provide HASHNODE typedef and forward decl of
13247         struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
13248         DEFINITION, struct hashnode, struct macrodef, struct
13249         definition, scan_decls prototype, default defn of
13250         INCLUDE_LEN_FUDGE moved elsewhere.
13251
13252         * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
13253         definition, and struct hashnode moved here. Remove the unused
13254         'predefined' field from struct definition.  Replace the 'args'
13255         union with its sole member.  All users updated (cpphash.c).
13256         Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
13257         multiple include guard.
13258
13259         * cpphash.c (hashf): Make static; use better algorithm; drop
13260         HASHSIZE parameter; return an unsigned int.
13261         (cpp_lookup): Drop HASH parameter.  PFILE parameter is
13262         used. Calculate HASHSIZE modulus here.
13263         (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
13264         here.
13265         (create_definition): Drop PREDEFINITION parameter.
13266         * cpplib.c (do_define): Don't calculate a hash value here.
13267         Don't pass (keyword == NULL) to create_definition.
13268
13269         * scan.h: Prototype scan_decls here.
13270         * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
13271         * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
13272         callers of cpp_lookup and cpp_install updated.
13273
13274         * cpphash.c (macarg): Hoist all the flag diddling out of the
13275         function...
13276         (macroexpand): ... and out of the loop that calls macarg.
13277         Skip over the initial paren before macro arguments with
13278         cpp_get_non_space_token; point may be some distance before
13279         that paren.  Abort if it's not there.
13280
13281         * cpplib.c (parse_clear_mark): Delete function.
13282         (parse_set_mark, parse_goto_mark): Make static.
13283         (ACTIVE_MARK_P): New macro.
13284         (skip_block_comment, skip_line_comment): Do not bump the line
13285         if ACTIVE_MARK_P is true.
13286         (cpp_pop_buffer): The buffer to be popped may not have an
13287         active mark.
13288         (cpp_get_token): When looking for the initial paren before
13289         macro arguments, only set a mark in a file buffer, Always
13290         return to that mark before proceeding to call macroexpand or
13291         return a NAME token.
13292
13293         * cpplib.h: Remove prototypes of parse_set_mark,
13294         parse_clear_mark, parse_goto_mark.
13295         (struct cpp_options): Rename 'put_out_comments' to
13296         'discard_comments' and invert its sense.
13297         * cppinit.c, cpphash.c, cpplib.c: All users of
13298         put_out_comments changed to use discard_comments, with
13299         opposite sense.
13300
13301 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
13302
13303         * function.c (thread_prologue_and_epilogue_insns): Don't delete
13304         the edge from a block that both jumps and falls through to the
13305         fallthru block.
13306
13307 2000-02-09  Scott Bambrough  <scottb@netwinder.org>
13308
13309         * config/arm/arm.md (movsi): In PIC mode, make sure that a
13310         constant source address is legitimate.
13311
13312 2000-02-09  Philip Blundell  <pb@futuretv.com>
13313
13314         * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
13315         correctly.
13316
13317         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
13318         generating PIC.
13319         (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
13320
13321 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
13322
13323         * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
13324         ends with a newline and a NUL.  Don't be so clever manipulating
13325         strings.
13326
13327 Wed Feb  9 14:18:08 MET 2000  Jan Hubicka  <jh@suse.cz>
13328
13329         * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
13330         not to BIGGEST_ALIGNMENT.
13331
13332 2000-02-08  Geoff Keating  <geoffk@cygnus.com>
13333
13334         * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
13335         * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
13336         (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
13337         (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
13338         * frame.c (execute_cfa_insn): Handle
13339         DW_CFA_GNU_negative_offset_extended.
13340
13341 2000-02-08  Richard Henderson  <rth@cygnus.com>
13342
13343         * flow.c (tidy_fallthru_edges): Split out from ...
13344         (delete_unreachable_blocks): ... here.
13345         (find_basic_blocks): Use it.
13346
13347 Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13348
13349         * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
13350
13351 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
13352
13353         * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
13354         (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
13355         (fix-header.o): Don't depend on cpphash.h.
13356
13357         * scan.c (hashstr): New function.
13358         * scan.h: Prototype it.
13359         * fix-header.c: Don't include cpphash.h.  Use hashstr.
13360         * gen-protos.c: Don't include cpphash.h or cpplib.h.  Use
13361         hashstr.  Report hash table statistics.  Add private
13362         definition of xrealloc.
13363
13364 2000-02-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13365
13366         * i386.h (TARGET_SWITCHES): Fix typo in option name.
13367
13368 2000-02-08  Clinton Popetz  <cpopetz@cygnus.com>
13369
13370         * function.c (thread_prologue_and_epilogue_insns): Don't replace
13371         jumps with returns unless they are jumps to the fallthru block.
13372
13373 Tue Feb  8 07:53:55 2000  Jan Hubicka  <jh@suse.cz>
13374
13375         * i386.md (addqi3_cc): Fix contraints.
13376
13377 Tue Feb  8 01:39:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13378
13379         * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
13380
13381 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
13382
13383         * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
13384         carriage return after a macro name.
13385
13386 2000-02-07  Fred Fish  <fnf@be.com>
13387
13388         * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
13389         so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
13390
13391 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
13392
13393         * cppfiles.c (deps_output): Count spacers in deps_column.
13394
13395 2000-02-07  Neil Booth  <NeilB@earthling.net>
13396
13397         * cppinit.c (initialize_dependency_output): If there is no
13398         suffix, don't try to look for known suffixes.  Use strrchr.
13399         (cpp_start_read): Remove duplicate initialization.
13400
13401 Mon Feb  7 18:36:41 MET 2000  Jan Hubicka  <jh@suse.cz>
13402
13403         * calls.c (compute_argument_block_size): New argument
13404         preferred_stack_boundary.
13405         (expand_call): update cfun->preferred_stack_boundary, update call of
13406         compute_argument_block_size
13407         (emit_library_call): Increate cfun->preferred_stack_boundary
13408         to PREFERRED_STACK_BOUNDARY
13409         (emit_library_call_value): Likewise.
13410         * explow.c (allocate_dynamic_stack_spave): Likewise.
13411         * function.c (prepare_function_start): Set
13412         cfun->preferred_stack_boundary
13413         * function.h (struct function): Add preferred_stack_boundary field.
13414         * integrate.c (expand_inline_function): Update
13415         cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
13416         (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
13417         * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
13418
13419 2000-02-06  Zack Weinberg  <zack@wolery.cumb.org>
13420
13421         * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
13422         cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
13423         cpp_pedwarn, cpp_pedwarn_with_line,
13424         cpp_pedwarn_with_file_and_line): Move to cpperror.c.
13425         (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
13426         v_cpp_error_with_line, v_cpp_warning_with_line,
13427         cpp_message_from_errno, cpp_perror_with_name): Delete.
13428
13429         * cpperror.c (cpp_print_containing_files): Take starting
13430         buffer as argument.
13431         (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
13432         (v_cpp_message): Now called directly by all entry points.
13433         Remove -1 case.
13434         (cpp_pfatal_with_name, cpp_message): Delete.
13435         (cpp_notice_from_errno, cpp_ice): New functions.
13436         (cpp_notice): Is now for reporting error conditions, just
13437         without an associated file.
13438         (cpp_error, cpp_error_with_line): Don't do anything if
13439         opts->inhibit_errors is on.
13440         (cpp_pedwarn_with_file_and_line): Take column argument also.
13441
13442         * cpplib.h: Update prototypes of exported functions.
13443         (struct cpp_options): Add inhibit_errors.
13444
13445         * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
13446         non-error messages.  Include intl.h.
13447
13448         * cppinit.c, cppmain.c: Likewise.  Also, use
13449         cpp_notice_from_errno instead of cpp_perror_with_name or
13450         cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
13451
13452         * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
13453         report internal errors.
13454
13455         * cpplib.c (do_define): Switch bcopy to memcpy.
13456         Give cpp_pedwarn_with_file_and_line a dummy column argument.
13457
13458         * cpplib.c (copy_rest_of_line): Revert previous change: don't
13459         bail out early if we hit a line comment.
13460
13461 2000-02-06  Richard Henderson  <rth@cygnus.com>
13462
13463         * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
13464         * basic-block.h: Declare them.
13465         * emit-rtl.h (active_insn_p): New.
13466         (next_active_insn, prev_active_insn): Use it.
13467         * rtl.h: Declare it.
13468         * function.c (emit_return_into_block): New.
13469         (thread_prologue_and_epilogue_insns): Insert return insns instead
13470         of epilogues when possible.
13471         * jump.c (jump_optimize_1): Remove code to insert a return insn
13472         on the fallthru to the exit block.
13473
13474         * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
13475         and for non-empty stack frames.
13476         * i386.md (return): Expand to return-pop as needed.
13477
13478 2000-02-06  Richard Henderson  <rth@cygnus.com>
13479
13480         * simplify-rtx.c (simplify_relational_operation): Canonicalize
13481         constant to op1 for testing.
13482
13483 2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13484
13485         * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
13486         (fixuns_truncqfqi2): Use it.
13487
13488 2000-02-06  Richard Henderson  <rth@cygnus.com>
13489
13490         * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
13491         as a TYPE_LEA insn.
13492
13493         * i386.md (widening and peepholes): Mask the constant instead of
13494         using gen_lowpart.
13495
13496 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
13497
13498         * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
13499         input pointer before possibly branching off to the backslash
13500         code.
13501         * cpphash.c (macroexpand): Correctly delete \r escapes when
13502         stringifying parameters.
13503         * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
13504         if we can; bail out early if we hit a line comment.
13505         (handle_directive): Treat '# 123' in an .S file just like
13506         '# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
13507         Return 1 for '# not_a_directive'.
13508         (get_directive_token): Pop macro buffers here, so that
13509         cpp_get_token can't sneakily move past a newline.
13510         Add sanity checks.
13511         (cpp_get_token): goto randomchar if handle_directive returns 0.
13512
13513         * cppalloc.c: Update copyright.
13514         * cpplib.c: Merge all the static function prototypes into one
13515         block.
13516         * cpplib.h: Remove #if 0 block.
13517
13518         * cpperror.c: Remove #ifdef EMACS block.
13519         * cppmain.c: Likewise.
13520         * cpphash.c: Remove #if 0 blocks.
13521         * cppinit.c: Remove #if 0 blocks, and the -lint option.
13522         * cpplib.c: Remove #if 0 blocks and code referencing
13523         pcp_inside_if or for_lint.  Remove duplicate error message.
13524         Fix error messages for #else after #else or #elif.  Reformat.
13525         Remove archaic TODO list.
13526         * cpplib.h: Remove pcp_inside_if and for_lint flags.
13527
13528 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
13529
13530         * i386/osf1elf.h: Add missing backslash to multiline string.
13531
13532 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13533
13534         * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
13535
13536 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13537
13538         * Makefile.in (c-common.o): Depend on $(EXPR_H).
13539
13540         * c-common.c: Include expr.h.
13541
13542         * c-pragma.c (mark_align_stack): Add prototype.
13543
13544         * caller-save.c (add_stored_regs): Likewise.
13545
13546         * combine.c (record_promoted_value): Likewise.
13547
13548         * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
13549         Likewise.
13550
13551         * cppinit.c (new_pending_define): Likewise.
13552
13553         * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
13554
13555         * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
13556         AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
13557         AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
13558         class_scope_p): Likewise.
13559
13560         * dwarf2out.h (dwarf2out_set_demangle_name_func,
13561         dwarf2out_add_library_unit_info): Likewise.
13562
13563         * ggc.h (ggc_page_print_statistics): Likewise.
13564
13565         * haifa-sched.c (propagate_deps): Likewise.
13566
13567         * reg-stack.c (next_flags_user, record_label_references): Likewise.
13568
13569         * rtl.h (set_stack_check_libfunc): Likewise.
13570
13571         * toplev.h (set_fatal_function): Likewise.
13572
13573         * toplev.c (set_fatal_function): Delete prototype.
13574
13575         * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
13576
13577 2000-02-05  Geoff Keating  <geoffk@cygnus.com>
13578
13579         * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
13580         (FUNC_END): Likewise.
13581
13582 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13583
13584         * caller-save.c: Include tm_p.h.
13585
13586 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13587
13588         * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
13589
13590 2000-02-04  Neil Booth  <NeilB@earthling.net>
13591
13592         * cccp.c (main): Check 'dir' for a NULL pointer before passing
13593         it to strcmp.
13594
13595 2000-02-04  Zack Weinberg  <zack@wolery.cumb.org>
13596
13597         * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
13598         * genflags.c: Use the max_operand_1 logic from genemit.c to
13599         calculate how many arguments gen_insn prototypes have.  Remove
13600         NO_MD_PROTOTYPES ifdefs from the generated file.
13601         * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
13602         file.  Cast gen_insn initializers to insn_gen_fn.
13603         * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
13604         * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
13605
13606 2000-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13607
13608         * fixinc/Makefile.in (HDR): Add machname.h.
13609         (clean): Likewise.
13610
13611 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13612
13613         * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
13614         (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
13615         (c4x_cpu_version): Ditto.
13616         * config/c4x/c4x-protos.h: ... here.
13617
13618 2000-02-04  Jason Merrill  <jason@casey.cygnus.com>
13619
13620         * dwarf2out.c (add_abstract_origin_attribute): Don't call
13621         gen_abstract_function on our context if we're a nested function.
13622
13623 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13624
13625         * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
13626         * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
13627
13628 2000-02-04  Bruce Korb  <bkorb@gnu.org>
13629
13630         * fixinc/genfixes(machname.h):
13631         Move the functionality from gen-machine.h into this file.
13632         UNdef MN_NAME_PAT if there are no names to change.
13633         Also, be a little kinder when AutoGen is not present.
13634
13635         * fixinc/Makefile.in(machname.h):
13636         Change the generation rule to use genfixes.
13637
13638         * fixinc/fixfixes.c(machine_name):
13639         machine_name_fix's functionality now dependent upon whether
13640         MN_NAME_PAT is defined.
13641
13642         * fixinc/fixtests.c(machine_name):
13643         ditto.
13644
13645         * fixinc/fixlib.c(mn_get_regexps): conditional on definition
13646         of MN_NAME_PAT.
13647
13648         * fixinc/fixlib.h(mn_get_regexps):
13649         ditto
13650
13651         * fixinc/gen-machine.h: DELETED
13652
13653 2000-02-04  Jan Hubicka  <jh@suse.cz>
13654             Richard Henderson  <rth@cygnus.com>
13655
13656         * i386.c (SAVE_REGS_FIRST): Remove.
13657         (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
13658         (ix86_compute_frame_size): Likewise.
13659         (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
13660         (ix86_emit_restore_regs): Remove.
13661         (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
13662         when a frame pointer is in use.
13663         (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
13664         instead of pop to restore a register when profitable; emit leave
13665         when profitable.
13666         (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
13667         as a TYPE_LEA insn.
13668         (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
13669         * i386.md (prologue_allocate_stack): Remove.
13670         (epilogue_deallocate_stack): Remove.
13671         (pro_epilogue_adjust_stack): New.
13672
13673 2000-02-04  Richard Henderson  <rth@cygnus.com>
13674
13675         * function.c (diddle_return_value): Rework to use a callback function.
13676         Use current_function_return_rtx if it's been set up.
13677         (do_clobber_return_reg, clobber_return_register): New.
13678         (do_use_return_reg, use_return_register): New.
13679         (expand_function_end): Use them.
13680         * stmt.c (expand_null_return): Likewise.
13681         * function.h: Declare them.
13682         * flow.c (mark_regs_live_at_end): Use diddle_return_value.
13683         (mark_reg): Change arguments as appropriate for callback.
13684         * integrate.c (expand_inline_function): Revert 19 Jan change.
13685
13686 Fri Feb  4 20:25:42 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13687
13688         * tm.texi (Values in Registers): Fix typo: "fo" "for".
13689         (Misc): Say the scheduler, not the Haifa scheduler.
13690
13691 2000-02-04  Clinton Popetz  <cpopetz@cygnus.com>
13692
13693         * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
13694         when in_mem is set.  Update all callers.
13695
13696 2000-02-04  Richard Henderson  <rth@cygnus.com>
13697
13698         * i386/openbsd.h (INT_ASM_OP): Define.
13699
13700 Fri Feb  4 10:51:30 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13701
13702         * tm.texi: Fix various typos.
13703
13704 Thu Feb  3 17:17:32 2000  Steve Ellcey <sje@cup.hp.com>
13705
13706         * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
13707         (MD_STARTFILE_PREFIX_1): New macro.
13708
13709 Thu Feb  3 15:08:13 MET 2000  Jan Hubicka  <jh@suse.cz>
13710
13711         * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
13712         destination when needed.
13713         (strmovsi, strsetsi): New expander.
13714         (strmovsi_1, strsetsi_1): New pattern.
13715         * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
13716         TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
13717         (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
13718         * invoke.texi (align-stringops, inline-all-stringops): Document.
13719
13720 Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>
13721
13722         * i386/netbsd.h (INT_ASM_OP): Define.
13723
13724 2000-02-02  Zack Weinberg  <zack@wolery.cumb.org>
13725
13726         * cpplib.h (cpp_reader): Add new flag, no_directives.
13727         * cpphash.c (macarg): Set it.
13728         * cpplib.c (handle_directive): If no_directives is on and we
13729         find a directive, issue an error and discard the line.
13730
13731 Wed Feb  2 13:07:10 2000  Jim Wilson  <wilson@cygnus.com>
13732
13733         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
13734         FP constants.  Add ! TARGET_FPU check for FP constants.
13735
13736 2000-02-02  Clinton Popetz  <cpopetz@cygnus.com>
13737
13738         * flow.c (find_basic_blocks): Don't kill label_value_list
13739         here.
13740         (cleanup_cfg): Kill it here.
13741
13742 Wed Feb  2 08:12:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13743
13744         * expr.c (store_field): Ensure ALIGN is no stricter than the
13745         alignment of EXP.
13746
13747 2000-02-02  Richard Henderson  <rth@cygnus.com>
13748
13749         * jump.c (delete_insn): Partially revert 19 Jan change;
13750         don't convert unused code labels to notes at -O0.
13751
13752 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13753
13754         * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
13755         split_all_insns to recreate REG_LABEL notes for flow2 pass.
13756
13757 2000-02-01  Richard Henderson  <rth@cygnus.com>
13758
13759         * i386.c (general_no_elim_operand): New.
13760         (nonmemory_no_elim_operand): New.
13761         (ix86_expand_move): Copy eliminable operands before a push.
13762         * i386-protos.h: Declare new functions.
13763         * i386.h (CAN_ELIMINATE): Simplify.
13764         (PREDICATE_CODES): Update.
13765         * i386.md (push insns): Don't allow eliminable register operands.
13766
13767 2000-02-01  Richard Henderson  <rth@cygnus.com>
13768
13769         * flow.c (mark_regs_live_at_end): Follow expand_function_end and
13770         replace BLKmode with DECL_RTL's mode.
13771
13772 2000-02-01  Zack Weinberg  <zack@wolery.cumb.org>
13773
13774         * frame.c (find_fde): Convert for loop to do-while so compiler
13775         sees it's always executed at least once.
13776         * libgcc2.c (BBINBUFSIZE): Kill.
13777         (__bb_init_prg): Use fgets.
13778         (__bb_exit_trace_func): Don't paste strings.
13779         * unroll.c (unroll_loop): Initialize unroll_type, not
13780         unroll_number, and tweak logic to match.
13781
13782         * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
13783         all failure paths.
13784         (ix86_flags_dependant): Likewise.  Disentangle control flow.
13785         (ix86_sched_reorder): Break guts out to
13786         ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
13787         (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
13788         any possible use.
13789
13790         * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
13791         use string concatenation.  Don't save and restore esi.
13792
13793         * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
13794         (machname.h): Remove script to separate file.  Use two-step
13795         sequence so target is not created if script fails.
13796         * fixinc/gen-machname.h: New file.  Handle case where no non-reserved
13797         identifiers are defined.
13798         * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
13799         an empty string, machine_name doesn't need to do anything at
13800         all.
13801         (is_cxx_header): Add more cases to regexp.
13802         * fixinc/fixlib.h: Update prototype.
13803         * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
13804         mn_get_regexps.
13805         * fixinc/fixincl.c: Define NO_BOGOSITY.
13806
13807         * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
13808         (hp_sysfile): Add missing comma.
13809         (math_exception): Put the wrapper ifdefs at the beginning and
13810         the end of the file.
13811         * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
13812
13813 2000-02-01  Richard Henderson  <rth@cygnus.com>
13814
13815         * sparc.c (fp_zero_operand): Turn into a normal predicate.
13816         Use CONST0_RTX.  Update all callers.
13817         * sparc.h, sparc-protos.h: Update accordingly.
13818         * sparc.md (fp mov insns): Use fp_zero_operand directly
13819         where applicable.
13820
13821 Wed Feb  2 02:59:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13822
13823         * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
13824         example.
13825
13826 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13827
13828         * Makefile.in (specs.ready): New target.
13829         (fixinc.sh): Depend on `specs.ready' instead of `specs'.
13830
13831 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13832
13833         * fixinc.irix: Use unique filenames for writing into /tmp,
13834         * fixinc.ptx: Likewise.
13835         * fixinc.sco: Likewise.
13836         * fixinc.svr4: Likewise.
13837         * fixinc.winnt: Likewise.
13838
13839 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13840
13841         * tsystem.h: New file.
13842
13843         * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
13844         s-crtS): Depend on tsystem.h.
13845
13846         * crtstuff.c: Include tsystem.h.
13847         * frame.c: Likewise.
13848         * libgcc2.c: Likewise.
13849
13850 Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
13851
13852         * builtins.c (expand_builtin_memset): Expand for variable sized
13853         lengths too.
13854
13855 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au>
13856
13857         * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
13858         on ABI.
13859
13860 Tue Feb  1 00:57:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
13861
13862         * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
13863
13864         * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
13865
13866 2000-01-31  Chandra Chavva <cchavva@cygnus.com>
13867
13868         * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
13869         case 3->2 combining (combining with splitting) in which 2 is CC0
13870         setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
13871         checked at the begining of the function with the aid of calling
13872         function 'can_combine_p'.
13873
13874 2000-01-31  Dave Brolley  <brolley@redhat.com>
13875
13876         * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
13877
13878 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
13879
13880         * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
13881         new label.
13882
13883 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13884
13885         * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
13886
13887         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
13888         PROTO -> PARAMS.
13889
13890 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
13891
13892         * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
13893         i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
13894         i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
13895         i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
13896         i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
13897         i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
13898         i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
13899         i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
13900         i386/vxi386.h, i386/win-nt.h, i386/win32.h:
13901         Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
13902
13903         * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
13904         Add %(cpp_cpu) to CPP_SPEC.
13905
13906         * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
13907         Add %(cc1_cpu) to CC1_SPEC.
13908
13909 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
13910
13911         * c-decl.c (c_decode_option): Accept optional numeric argument to
13912         -Wformat and set warn_format.
13913         * c-common.c: Don't emit warning about non-constant printf format
13914         string unless warn_format > 1.
13915
13916 2000-01-30  Richard Henderson  <rth@cygnus.com>
13917
13918         * alpha.md (return_internal): Allow after reload only.
13919
13920 2000-01-30  Richard Henderson  <rth@cygnus.com>
13921
13922         * i386.c (ix86_compute_frame_size): Omit padding1 if the
13923         local frame size is zero.
13924
13925 2000-01-30  Richard Henderson  <rth@cygnus.com>
13926
13927         * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
13928         * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
13929         * alpha.md (return): Turn into an expander.
13930         (return_internal): Don't use $26.
13931         (epilogue): Emit the return insn.
13932
13933 2000-01-30  Richard Henderson  <rth@cygnus.com>
13934
13935         * alpha.md (negtf2, abstf2): Fix word order thinko.
13936         (extendsftf2): New.
13937         (trunctfsf2): Avoid intermediate rounding errors.
13938
13939 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
13940
13941         * cppfiles.c (find_position): Drop 'colp' argument, return the
13942         new line base.
13943         (read_and_prescan): Adjust to match.  Don't ever manipulate
13944         line or line_base except via find_position.
13945
13946 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
13947
13948         * c-parse.in: Apply Ulrich's changes from c-parse.y.
13949         * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
13950         Regenerate.
13951
13952 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
13953
13954         * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
13955         just print "<command line>".  If 'filename' is null or an
13956         empty string, print "<stdin>" for the filename.
13957         * cpplib.c (do_define): Don't print the 'location of the
13958         previous definition' message if we're still parsing the
13959         command line.
13960         (cpp_pedwarn_with_file_and_line): Always call
13961         cpp_file_line_for_message.
13962
13963 2000-01-29  Mark Mitchell  <mark@codesourcery.com>
13964
13965         * flow.c (mark_regs_live_at_end): Fix typo.
13966
13967 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
13968
13969         * c-common.c: Adjust variable names, comments, help strings to c99.
13970         * c-lex.c: Likewise.
13971         * c-parse.y: Likewise.
13972         * c-tree.h: Likewise.
13973         * cccp.c: Likewise.
13974         * cpplib.h: Likewise.
13975         * c-decl.c: Likewise.  Recognize options with names "*99" as well.
13976         * cppinit.c: Likewise.
13977
13978 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13979
13980         * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
13981         * c4x.c: Define the optab rtx values.
13982         (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
13983         (c4x_emit_libcall): Use new optab rtx values.
13984         (c4x_emit_libcall3): Likewise.
13985         (c4x_emit_libcall_mulhi): Likewise.
13986         * c4x-protos.h: Add prototypes for optab rtx values and change
13987         prototypes for above c4x_emit_libcall functions.
13988
13989 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13990
13991         * c4x.c (c4x_output_ascii): Restrict line length of output when TI
13992         syntax is used.
13993         (c4x_function_prologue): Use regnames intead of float_reg_names when
13994         TI syntax is used.
13995         (c4x_function_epilogue): Likewise.
13996         (c4x_print_operand): Likewise.
13997         * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
13998         * c4x.md (set_high): Disable for TARGET_TI.
13999
14000 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14001
14002         * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
14003         of framepointer + constant to ADDR_REGS class.
14004         * c4x.md (addqi3, addqi3_noclobber_reload): Update.
14005         * c4x.c (std_or_reg_operand): New function.
14006         * c4x-protos.h (std_or_reg_operand): Prototype it.
14007
14008 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14009
14010         * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
14011                 object names as libgcc2.c.
14012         * libgcc.S: Use newly defined names.
14013
14014 Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
14015         * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
14016         function.
14017         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
14018         * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
14019         (FLOW_LOOP_LAST_BLOCK): Likewise.
14020
14021 2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14022
14023         * basic-block.h (struct loop): New fields 'first' and 'last'.
14024         * flow.c (flow_loops_find): Compute loop->first and loop->last.
14025         (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
14026         and loop->last to check for NOTE_INSN_LOOP_END.
14027
14028 Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>
14029
14030         * predict.c (estimate_probability): Use the new FIRST and LAST fields
14031         of the loop descriptor rather than HEADER and LATCH. Also added
14032         missing break statements as well making some coding style modifications
14033         as suggested by Michael Hayes.
14034
14035 2000-01-28  Richard Henderson  <rth@cygnus.com>
14036
14037         * flow.c (find_basic_blocks): Remove do_cleanup argument.
14038         Break out that code ...
14039         (cleanup_cfg): ... here.
14040         (commit_one_edge_insertion): Detect a return instruction being
14041         emitted to an edge.  Emit a barrier following; clear fallthru.
14042         (commit_edge_insertions): Verify CFG consistency.
14043         * function.c (expand_function_start): Kill unused variable.
14044         (expand_function_end): Likewise.
14045         (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
14046         to insert the epilogue.
14047
14048         * gcse.c (gcse_main): Adjust for find_basic_blocks change.
14049         (delete_null_pointer_checks): Likewise.
14050         * output.h: Likewise.
14051         * reg-stack.c (reg_to_stack): Likewise.
14052         * toplev.c (rest_of_compilation): Likewise.  Run
14053         thread_prologue_and_epilogue_insns after rebuilding the CFG.
14054
14055 2000-01-28  Richard Henderson  <rth@cygnus.com>
14056
14057         * Makefile.in (flow.o): Revert 24 Jan change.
14058         * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
14059         FUNCTION_VALUE result to DECL_RESULT's mode.
14060
14061         * haifa-sched.c (schedule_insns): Don't recompute reg info
14062         after reload.
14063
14064 2000-01-28  Zack Weinberg  <zack@wolery.cumb.org>
14065
14066         * configure.in: Make --enable-cpplib the default.
14067         * configure: Regenerate.
14068         * gcc.dg/990119-1.c: No longer expected to fail.
14069
14070 2000-01-28  Bernd Schmidt  <bernds@cygnus.co.uk>
14071
14072         * jump.c (jump_optimize_1): Delete an optimization that is also done
14073         by merge_blocks in flow.
14074
14075 2000-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14076
14077         * diagnostic.c (build_message_string, output_printf,
14078         line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
14079         (build_location_prefix): Fix non-literal format string.
14080
14081 2000-01-27  Richard Henderson  <rth@cygnus.com>
14082
14083         * alpha.md (trunctfsf2): New.
14084
14085 2000-01-27  Andrew Hobson  <ahobson@eng.mindspring.net>
14086
14087         * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
14088
14089 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
14090
14091         * cppinit.c (cpp_handle_option): Recognize C++ comments under
14092         -std=gnu89.
14093         * cpplib.c (skip_block_comment, skip_line_comment): Split code
14094         out of...
14095         (skip_comment) ... here.  Permit C++ comments in system
14096         headers always.  Warn about C++ comments in user code under
14097         -std=gnu89 -pedantic.
14098         (copy_comment): Use skip_comment.
14099         (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
14100         return EOF.
14101         (consider_directive_while_skipping, do_else, do_endif): Call
14102         validate_else unconditionally.
14103         (validate_else): Check CPP_PEDANTIC here.  Accept non-comment
14104         text after the conditional in a system header.
14105         * cpplib.h (struct cpp_buffer): Add flag
14106         warned_cplusplus_comments.
14107
14108 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
14109
14110         * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
14111         Use unshare_all_rtl_1.
14112         (unshare_all_rtl_again): New function.
14113         (unshare_all_rtl_1): New function split out of unshare_all_rtl.
14114
14115         * function.c (purge_addressof_1): Use unshare_all_rtl_again
14116         rather than resetting the 'used' flags ourself.
14117
14118         * toplev.c (rest_of_compilation): Add current_function_decl
14119         to the unshare_all_rtl call.
14120         * tree.h: Prototype unshare_all_rtl.
14121         * rtl.h: Prototype unshare_all_rtl_again here.
14122
14123 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
14124
14125         * genoutput.c (output_prologue): Include ggc.h in generated
14126         files.
14127         * Makefile.in (insn-output.o): Depends on ggc.h.
14128
14129 2000-01-27  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
14130             Hans-Peter Nilsson  <hp@bitrange.com>
14131
14132         * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
14133         Remove redundant include of xm-ns32k.h.
14134         * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
14135         Remove redundant include of xm-ns32k.h.
14136         * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
14137         Remove redundant include of xm-ns32k.h.
14138         * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
14139
14140         * ns32k/ns32k.h: Update comment on multiply-add instructions.
14141         (TARGET_SWITCHES): Add documentation strings.
14142         (DWARF_FRAME_REGNUM): Override default definition.
14143         (REG_CLASS_CONTENTS): Add comments.
14144         (SUBSET_P): Format to reduce line length.
14145         (SMALL_REGISTER_CLASSES): Make a run time option.
14146         (GO_IF_NONINDEXED_ADDRESS): Reformat.
14147         (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
14148         dereferencing it.  Braces to avoid "ambiguous else" were misplaced.
14149         (regclass_map): fix typo in comment.
14150         * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
14151         Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
14152         (trace, reg_or_mem_operand): Delete, unused function.
14153         (calc_address_cost): Small offsets are cheaper than large ones.
14154         (expand_block_move): Generate more efficient code when bytes is a
14155         known at compile time.
14156         * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
14157         (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
14158         instead of reg_or_mem_operand.
14159
14160         * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
14161         not general_operand.  Similarly use "=rm" or stricter, not "=g".
14162         For input operands, use stricter constraints than "g" if not
14163         general_operand.  Similarly use stricter predicate than
14164         "general_operand" when stricter constraints than "g" are present,
14165         except for matching constraints.
14166         (movstrsi): Use "memory_operand" for operands 0 and 1.
14167         (truncsiqi2, truncsihi2, trunchiqi2): Remove.
14168         (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
14169         not reg_or_mem_operand.
14170         (udivmoddisi4): Ditto.
14171         Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
14172         Use nonimmediate_operand for operand 3, not register_operand.
14173         (udivmoddiqi4_internal): Use register_operand for operand 1, not
14174         reg_or_mem_operand.
14175
14176 2000-01-27  Fred Fish  <fnf@be.com>
14177
14178         * gthr-posix.h: Fix typo; compatibily -> compatibility.
14179         * gthr-single.h: Likewise.
14180         * gthr-solaris.h: Likewise.
14181         * gthr-vxworks.h: Likewise.
14182         * gthr-win32.h: Likewise.
14183         * gthr.h: Likewise.
14184
14185 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
14186
14187         * cppinit.c: Add " (cpplib)" to end of string printed by
14188         -v / --version.
14189
14190 2000-01-27  Richard Henderson  <rth@cygnus.com>
14191
14192         * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
14193         testing for a signed comparison.
14194         (alpha_emit_floatuns): New.
14195         * alpha-protos.h: Declare it.
14196         * alpha.md (floatunsdisf2, floatunsdidf2): New.
14197         (extendsfdf2): Tidy.
14198
14199 2000-01-27  Jakub Jelinek  <jakub@redhat.com>
14200
14201         * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
14202         no -g option specifying debugging format, default to -gstabs+.
14203
14204 Wed Jan 26 22:19:14 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
14205
14206         * calls.c (special_function_p): New argument fork_or_exec.
14207         (expand_call): When profile_arc_flag is set and the function
14208         is in the fork_or_exec group, call __bb_fork_func first.
14209         * libgcc2.c, _bb module (__bb_fork_func): New function.
14210         (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
14211         output file.
14212         * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
14213         * tree.h (special_function_p): Update prototype.
14214
14215 2000-01-26  Richard Henderson  <rth@cygnus.com>
14216
14217         * alpha.c (alpha_split_tfmode_pair): New.
14218         * alpha-protos.h: Declare it.
14219         * alpha.md (abstf2, negtf2): New.
14220         (movtf insn): Add input G constraint.
14221         (movtf splitter): Use alpha_split_tfmode_pair.
14222
14223 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14224
14225         * i386/cygwin.h: PROTO -> PARAMS.
14226
14227 2000-01-26  Jakub Jelinek  <jakub@redhat.com>
14228
14229         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
14230         TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
14231         using _Qp_cmp/_Q_cmp and testing the return value.
14232         (print_operand): Call reverse_condition_maybe_unordered if
14233         we are handling CCFPmode or CCFPEmode.
14234         Handle ORDERED, UN* and LTGT comparisons.
14235         * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
14236         if not TARGET_HARD_QUAD.
14237         (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
14238         bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
14239         Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
14240         Adjust gen_b* calls so that they reflect return comparison of
14241         sparc_emit_float_lib_cmp.
14242
14243 2000-01-26  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14244
14245         * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
14246         incoming operands array is large enough for one more operand.
14247         (alpha_emit_xfloating_arith): Likewise.
14248
14249 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
14250
14251         * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
14252         file with one line and no trailing newline.
14253         Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
14254         * fixinc/fixtests.c (machine_name_test): Fix fencepost error
14255         checking if the match is on the line.
14256         * fixinc/gnu-regex.c: Provide regerror not __regerror.
14257
14258 2000-01-25  Richard Henderson  <rth@cygnus.com>
14259
14260         * sparc.c (output_cbranch): Fix accidental squashing of the
14261         fp branch pre-delay nop.
14262
14263 2000-01-25  Richard Henderson  <rth@cygnus.com>
14264
14265         * tree.def (UNNE_EXPR): Remove.
14266         * c-typeck.c (build_binary_op): Don't handle it.
14267         * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
14268
14269         * rtl.def (UNNE): Remove.
14270         (LTGT): Add.
14271         * jump.c (reverse_condition): Update accordingly.
14272         (swap_condition): Likewise.
14273         (comparison_dominates_p): Handle unordered comparisons.
14274         (reverse_condition_maybe_unordered): New.
14275         * rtl.h (reverse_condition_maybe_unordered): Declare.
14276
14277         * sparc.c (select_cc_mode): Update for UNNE/LTGT.
14278         (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
14279         * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
14280         * sparc.md (bltgt): New.
14281
14282 2000-01-25  Nick Clifton  <nickc@redhat.com>
14283
14284         * emit-rtl.c (emit_insn): Only check machine class insns for
14285         improper emission of a RETURN.
14286
14287 2000-01-25  Richard Henderson  <rth@cygnus.com>
14288
14289         * Makefile.in (flow.o): Depend on $(EXPR_H).
14290         * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
14291         duplicate the structure of diddle_return_value for keeping regs live.
14292
14293 2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14294
14295         * loop.c (current_loop_info): Delete.
14296         (consec_sets_invariant_p): Add loop argument, update callers.
14297         (get_condition_for_loop): Likewise.
14298         (count_nonfixed_reads, update_giv_derive): Likewise.
14299         (simplify_giv_expr, general_induction_var): Likewise.
14300         (consec_sets_giv, recombine_givs): Likewise.
14301         (move_movables): Delete loop_start and loop_end arguments,
14302         add loop argument, and update callers.
14303         (find_mem_givs, check_final_value): Likewise.
14304         (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
14305         (loop_invariant_p): Rename from invariant_p, add loop argument, and
14306         update callers.
14307         (basic_induction_var): Add loop argument, delete loop_level argument,
14308         and update callers.
14309         * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
14310         add loop argument, and update callers.
14311         (find_splittable_regs, find_splittable_givs): Likewise.
14312         (reg_dead_after_loop, loop_find_equiv_value): Likewise.
14313         (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
14314         (biv_total_increment): Delete loop_start and loop_end arguments;
14315         update callers.
14316         (precondition_loop_p): Delete loop_start and loop_info arguments;
14317         update callers.
14318         * loop.h (get_condition_for_loop): Add loop argument.
14319         (biv_total_increment): Delete loop_start and loop_end arguments.
14320         (precondition_loop_p): Delete loop_start and loop_info arguments;
14321         add loop argument.
14322         (final_biv_value): Delete loop_start and loop_end arguments;
14323         add loop argument.
14324         (final_giv_value, back_branch_in_range_p): Likewise.
14325
14326 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
14327
14328         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
14329
14330 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
14331
14332         * Makefile.in (c-gperf.h) : Change the "See" pointer to
14333         point to the new "generated_files" doc.
14334
14335 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
14336
14337         * config/fp-bit.c (_unord_f2): Fix typo.
14338
14339 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
14340
14341         * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
14342         c-typeck.c, objc/objc-act.c: Remove all references to obstack
14343         functions obsoleted by GC, such as push_obstacks_nochange,
14344         end_temporary_allocation, savealloc, saveable_tree_cons, etc.
14345         and code which existed only to decide whether or not to call
14346         them.  Remove now-unused NESTED argument from start_function;
14347         all callers changed.  Do not change behavior based on ggc_p.
14348         The use of the ixp_obstack in c-iterate.c and the util_obstack
14349         in objc/objc-act.c remain; these are not obsoleted by garbage
14350         collection.
14351         * c-tree.h: Update prototype for start_function.
14352
14353         * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
14354
14355 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
14356
14357         * config/mips/mips.md (zero_extendsidi2_internal): Disable for
14358         mips16.
14359
14360 2000-01-25  Richard Henderson  <rth@cygnus.com>
14361
14362         * sparc-protos.h (select_cc_mode): Declare.
14363         * sparc.c (select_cc_mode): New.  Handle unordered compares.
14364         (output_cbranch): Always reverse via code change.  Handle
14365         unordered compares.  Factor tests and string updates.
14366         * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
14367         (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
14368         * sparc.md (bunordered, bordered): New.
14369         (bungt, bunlt, buneq, bunge, bunle): New.
14370
14371 2000-01-25  Richard Henderson  <rth@cygnus.com>
14372
14373         * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
14374         * ggc-common.c (ggc_add_rtx_varray_root): New.
14375         (ggc_mark_rtx_varray): New.
14376         (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
14377         functions down below ggc_mark_foo.
14378         * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
14379
14380 2000-01-25  Richard Henderson  <rth@cygnus.com>
14381
14382         * alpha.c (secondary_reload_class): Don't allocate a secondary
14383         for integral mode memories into FLOAT_REGS.  Rearrange the more
14384         complicated memory expression inward.
14385
14386 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
14387
14388         * inclhack.def: Fixes to play nicer with FreeBSD, and
14389         corrections to comments.
14390         (cxx_unready): Add select expression.
14391         (irix_sockaddr): Add bypass expression.
14392         (machine_ansi_h_va_list): New fix.
14393         (stdio_va_list): No need to edit _BSD_VA_LIST_.
14394         Split out addition of "#include <stdarg.h>" to...
14395         (stdio_stdarg_h): ... here.
14396         (systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
14397         to stdlib.h also.  Do not munge _BSD_SIZE_T_.
14398         (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
14399         size_t.
14400         (ultrix_ifdef): Tighten up select expression.
14401
14402         * fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
14403         re_ct and max_mach to avoid use of shell.  Make printed names
14404         match names in inclhack.def.  Use static copyright date.
14405         Don't count c_test and test expressions as requiring regex_t
14406         slots.  Add some commentary.
14407         * inclhack.tpl: Do not include the 'This script contains N
14408         fixup scripts' line if PROGRAM is defined.  Use static
14409         copyright date.
14410
14411 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
14412
14413         * dwarf2out.c: include "varray.h", not dyn-string.h.
14414         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
14415         (addr_const_to_string, addr_to_string): Lose.
14416         (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
14417         (struct dw_val_struct): val_addr is now an rtx.
14418         (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
14419         (used_rtx_varray): New varray.
14420         (dwarf2out_init): Initialize it.
14421         (save_rtx): New fn.
14422         (mem_loc_descriptor, add_const_value_attribute): Call it instead of
14423         addr_to_string.
14424         * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
14425         sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
14426         * Makefile.in (dwarf2out.o): Update dependencies.
14427
14428 2000-01-24  Richard Henderson  <rth@cygnus.com>
14429
14430         * i386.c (i386_dwarf_output_addr_const): New.
14431         * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
14432
14433         * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
14434         if defined.
14435         * dwarfout.c (output_mem_loc_descriptor): Likewise.
14436         * i386.c (i386_simplify_dwarf_addr): New.
14437         * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
14438
14439 Mon Jan 24 16:56:10 2000  Jim Wilson  <wilson@cygnus.com>
14440
14441         * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
14442         TYPE_STUB_DECL is NULL.
14443
14444 2000-01-24  Richard Henderson  <rth@cygnus.com>
14445
14446         * builtins.c (expand_tree_builtin): Move ...
14447         * c-common.c (expand_tree_builtin): ... here.
14448
14449 2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14450
14451         * loop.h (LOOP_INFO): New accessor macro.
14452         * basic-block.h (struct loop): Rename field `info' to `aux'.
14453         * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
14454         (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
14455         * unroll.c (loop_iterations, unroll_loop): Likewise.
14456
14457 2000-01-24  Christopher Faylor <cgf@cygnus.com>
14458
14459         * config/i386/t-cygwin: Accomodate new winsup directory layout
14460         when searching for include files.
14461
14462 2000-01-24  Richard Henderson  <rth@cygnus.com>
14463
14464         * rtl.def: Add unordered fp comparisions.
14465         * tree.def: Likewise.
14466         * tree.h: Add ISO C 9x unordered fp comparision builtins.
14467
14468         * builtins.c (expand_tree_builtin): New function.
14469         * c-typeck.c (build_function_call): Use it.
14470         (build_binary_op): Support unordered compares.
14471         * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
14472
14473         * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
14474         (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
14475         * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
14476         (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
14477         * jump.c (reverse_condition): Don't abort for UNLE etc, but
14478         return UNKNOWN.
14479         (swap_condition): Handle unordered compares.
14480         (thread_jumps): Check can_reverse before reversing.
14481         * loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
14482         reversed for FP.
14483
14484         * optabs.c (can_compare_p): New argument CODE.  Verify branch or
14485         setcc is present before acking for cmp_optab.  Update all callers.
14486         (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
14487         * expmed.c (do_cmp_and_jump): Update for can_compare_p.
14488         * expr.c (expand_expr): Likewise.  Support unordered compares.
14489         (do_jump, do_store_flag): Likewise.
14490         * expr.h (enum libfunc_index): Add unordered compares.
14491
14492         * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
14493         (DPBIT_FUNCS): Add _unord_df.
14494         * config/fp-bit.c (_unord_f2): New.
14495         * fp-test.c (main): Try unordered compare builtins.
14496
14497         * alpha-protos.h (alpha_fp_comparison_operator): Declare.
14498         * alpha.c (alpha_comparison_operator): Check mode properly.
14499         (alpha_swapped_comparison_operator): Likewise.
14500         (signed_comparison_operator): Likewise.
14501         (alpha_fp_comparison_operator): New.
14502         (alpha_emit_conditional_branch): Handle unordered compares.
14503         * alpha.h (PREDICATE_CODES): Update.
14504         * alpha.md (fp compares): Use alpha_fp_comparison_operator.
14505         (bunordered, bordered): New.
14506
14507 2000-01-24  Richard Henderson  <rth@cygnus.com>
14508
14509         * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
14510         * alpha.md (movtf): New expander, insn, and splitter.
14511
14512 Mon Jan 24 19:49:47 MET 2000  Jan Hubicka  <jh@suse.cz>
14513
14514         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14515         dead registers.
14516
14517 Mon Jan 24 17:37:31 MET 2000  Jan Hubicka  <jh@suse.cz>
14518
14519         * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
14520         (FIXED_REGISTERS, CALL_USED_REGISTERS,
14521          REG_ALLOC_ORDER): Add frame pointer
14522         (FRAME_POINTER_REGNUM): Set to 20
14523         (HARD_FRAME_POINTER_REGNUM): New macro.
14524         (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
14525         to HARD_FRAME_POINTER.
14526         (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
14527         (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
14528         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
14529         (HI_REGISTER_NAMES): Add "frame".
14530         (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
14531         (debug_reg): Handle FRAME_POINTER_REGNUM.
14532         (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
14533         GENERAL_REGS and INDEX_REGS.
14534         * i386.c (SAVED_REGS_FIRST): new macro.
14535         (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
14536         (ix86_decompose_address, memory_address_length): Likewise.
14537         (regclass_map): Add frame pointer.
14538         (call_insn_operand): Handle frame_pointer_rtx.
14539         (reg_no_sp_operand): Likewise.
14540         (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
14541         (print_operand, legitimize_pic_address): Fix formating.
14542         (ix86_compute_frame_size): Make static, update prototype, new
14543         parameters padding1, padding2, use ix86_nsaved_regs, use
14544         stack_alignment_needed.
14545         (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
14546         to HARD_FRAME_POINTER_REGNUM conversions.
14547         (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
14548         (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
14549         (print_reg): Abort on FRAME_POINTER_REGNUM
14550
14551 Mon Jan 24 16:50:08 MET 2000  Jan Hubicka  <jh@suse.cz>
14552
14553         * i386.h (PREDICATE_CODES): Add aligned_operand.
14554         * i386.c (aligned_operand): New function.
14555         (ix86_aligned_p): Kill.
14556         * i386.md (movhi_1): Emit mov for aligned operands.
14557         (promoting peep2s): Use aligned_operand.
14558
14559 2000-01-23  Zack Weinberg  <zack@wolery.cumb.org>
14560
14561         * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
14562         expression to allow underscores in macro names.
14563         (fix_char_macro_defines): Increment scanning pointer.
14564
14565 2000-01-23  Richard Henderson  <rth@cygnus.com>
14566
14567         * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
14568         * alpha/osf5.h: New file.
14569         * configure.in (alpha-*-osf5): Add it to tm_file.
14570
14571         * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
14572
14573         * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
14574         (alpha_emit_xfloating_cvt, function_arg): Declare.
14575         * alpha.c (alpha_emit_conditional_branch): Call
14576         alpha_emit_xfloating_compare for TFmode compares.
14577         (alpha_lookup_xfloating_lib_func): New.
14578         (alpha_compute_xfloating_mode_arg): New.
14579         (alpha_emit_xfloating_libcall): New.
14580         (alpha_emit_xfloating_arith): New.
14581         (alpha_emit_xfloating_compare): New.
14582         (alpha_emit_xfloating_cvt): New.
14583         (print_operand): Add default abort case.
14584         (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
14585         * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
14586         (BIGGEST_ALIGNMENT): Increase to 128 bits.
14587         (RETURN_IN_MEMORY): True for TF/TCmode.
14588         (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
14589         (FUNCTION_ARG): Move to function_arg.
14590         (FUNCTION_ARG_PASS_BY_REFERENCE): New.
14591         (ASM_OUTPUT_LONG_DOUBLE): New.
14592         (ASM_OUTPUT_DOUBLE): Always output bits.
14593         * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
14594         (fix_trunctfdi2, floatditf2, floatunsditf2): New.
14595         (extenddftf2, trunctfdf2): New.
14596
14597 2000-01-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14598
14599         * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
14600         * config/sparc/sol2.h: ... here.
14601
14602 2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14603
14604         * basic-block.h (struct loops): New field `levels'.
14605         * flow.c (flow_loops_level_compute): Traverse all outer loops.
14606         (flow_loop_level_compute): Initialise level to 1.
14607         (flow_loops_find): Set loops->levels.
14608         (flow_loops_dump): Print loops->levels.
14609
14610 2000-01-23  Richard Henderson  <rth@cygnus.com>
14611
14612         * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
14613         (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
14614
14615 2000-01-23  Richard Henderson  <rth@cygnus.com>
14616
14617         * i386.c (dbx_register_map, svr4_dbx_register_map): New.
14618         * i386.h (DBX_REGISTER_NUMBER): Use them.
14619         * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
14620         * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
14621         * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
14622         * i386/sequent.h: Kill incorrect comment.
14623
14624 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
14625
14626         * ggc-page.c (struct page_entry): Make `context_depth' an
14627         `unsigned short'.
14628         (struct globals): Likewise.
14629
14630 2000-01-23  Clinton Popetz  <cpopetz@cygnus.com>
14631
14632         * loop.c (check_dbra_loop): When checking a loop for
14633         reversability, check the source of any stores to ensure
14634         they don't depend on an initial value.
14635
14636 2000-01-23  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14637
14638         * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
14639
14640 2000-01-22  Zack Weinberg  <zack@wolery.cumb.org>
14641
14642         * fixinc/fixincl.c: Move declarations of 'pz_fname' and
14643         'pz_scan' into scope of entire function.  Only affects
14644         compiles with -DDEBUG.
14645
14646 2000-01-22  Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
14647
14648         * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
14649         section naming to that prior to 2000-01-07 patch.
14650         * config/mips/elf.h (UNIQUE_SECTION): Ditto.
14651         * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
14652         * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
14653         * config/i386/interix.c (UNIQUE_SECTION): Ditto.
14654         * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
14655
14656 2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
14657
14658         * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
14659         constant.
14660
14661 2000-01-21  Jim Wilson  <wilson@cygnus.com>
14662
14663         * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
14664         * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
14665
14666 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
14667
14668         * cpphash.c (change_newlines): Delete function.
14669         (struct argdata): Delete 'newlines' and 'use_count' fields.
14670         (macroexpand): Remove code referencing those fields.
14671
14672 2000-01-22  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14673
14674         * loop.c (loops_info): New variable.
14675         (loop_optimize): Allocate loops->array and free it on exit.
14676         Allocate memory for loops_info and assign to each loop,
14677         replacing alloca.
14678         (find_and_verify_loops): Do not allocate loops->array.
14679
14680 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
14681
14682         * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
14683
14684 2000-01-21  Jakub Jelinek  <jakub@redhat.com>
14685
14686         * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
14687         pseudos if expanded after first flow.
14688         (movdi_pic_label_ref): Likewise.
14689
14690 2000-01-20  Richard Henderson  <rth@cygnus.com>
14691
14692         * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
14693
14694 2000-01-20  Zack Weinberg  <zack@wolery.cumb.org>
14695
14696         * Makefile.in (fixinc.sh): Depend on specs.
14697         * fixinc/Makefile.in: Add rule to create machname.h.
14698         (fixlib.o): Depend on machname.h.
14699         * fixinc/fixtests.c (machine_name): New test.
14700         * fixinc/fixfixes.c (machine_name): New fix.
14701         * fixinc/fixlib.c (mn_get_regexps): New helper function for
14702         the machine_name test and fix.
14703         * fixinc/fixlib.h: Prototype it.
14704         * fixinc/inclhack.def (machine_name): Use the C test and fix.
14705         * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
14706
14707         * gcc.c (do_spec_1) [case P]: Take care not to create
14708         identifiers with three leading or trailing underscores.
14709
14710         * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
14711         (fixincl): Don't specify libraries twice on link line.
14712         (gnu-regex.o): Remove special rule.
14713         * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
14714         defined by config.h.  Do not define _REGEX_RE_COMP.
14715         (regcomp): Allocate and initialize a fastmap.
14716         * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
14717
14718 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
14719
14720         * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
14721
14722 2000-01-19  Richard Henderson  <rth@cygnus.com>
14723
14724         * flow.c (propagate_block): Replace FIRST, LAST and BNUM
14725         arguments with BB.  Update all callers.  Tidy line wrapping.
14726
14727 2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
14728
14729         * emit-rtl.c (try_split): Return last_insn if we split the
14730         last_insn.
14731
14732 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
14733
14734         * i386-protos.h (ix86_compute_frame_size): Remove prototype.
14735         (ix86_initial_elimination_offset): Declare.
14736         * i386.c (ix86_nsaved_regs): Break out from ...
14737         (ix86_can_use_return_insn_p): ... here.
14738         (ix86_emit_save_regs): Break out from ...
14739         (ix86_expand_prologue): ... here.
14740         (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
14741         out from ...
14742         (ix86_expand_epilogue): ... here.
14743         (ix86_compute_frame_size): Make static, add prototype.
14744         (ix86_initial_elimination_offset): Break out from ...
14745         * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
14746
14747 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14748
14749         * recog.h (OUT_FCN): Delete.
14750
14751         * vax.md: Call `get_insn_template' instead of OUT_FCN.
14752
14753 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14754
14755         * cppalloc.c: PROTO -> PARAMS.
14756         * cpperror.c: Likewise.
14757         * cppfiles.c: Likewise.
14758         * cpplib.c: Likewise.
14759         * cpplib.h: Likewise.
14760
14761         * config/arm/arm-protos.h: PROTO -> PARAMS.
14762         * config/arm/arm.c: Likewise.
14763         * config/c4x/c4x.c: Likewise.
14764         * config/fr30/fr30-protos.h: Likewise.
14765         * config/nextstep.c: Likewise.
14766         * config/pa/pa.c: Likewise.
14767         * config/pj/pj.c: Likewise.
14768         * config/rs6000/rs6000.c: Likewise.
14769         * config/v850/v850-protos.h: Likewise.
14770         * config/v850/v850.c: Likewise.
14771
14772 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14773
14774         * i370-protos.h: New file.
14775
14776         * i370.c: Include tm_p.h.  Fix compile time warnings.
14777
14778         * i370.h: Move prototypes to i370-protos.h.  Fix compile time
14779         warnings.
14780
14781         * i370.md: Likewise.
14782
14783 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14784
14785         * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
14786         (target_isinf, target_isnan, eisnan): Mark parameter with
14787         ATTRIBUTE_UNUSED.
14788         (eiisinf): Wrap in INFINITY.
14789         (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
14790         (ibmtoe): Remove unused variable `rndsav'.
14791
14792 Wed Jan 19 20:23:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14793
14794         * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
14795         (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
14796
14797 2000-01-19  Zack Weinberg  <zack@wolery.cumb.org>
14798
14799         * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
14800         * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
14801         (fix_char_macro_defines, fix_char_macro_uses): New functions.
14802
14803         * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
14804         Recognize Emacs mode markers also.
14805         * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
14806         C++ comments in C++ headers.  Call is_cxx_header only if
14807         necessary.
14808
14809         * fixinc/inclhack.def (avoid_bool): Add select for the problem and
14810         bypass for ncurses.
14811         (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
14812         (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
14813         ... these, which use the new C fixes.
14814         (math_exception): Escape literal '+' in bypass expression.
14815
14816         * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
14817         Regenerate.
14818
14819 2000-01-19  Geoff Keating  <geoffk@cygnus.com>
14820
14821         * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
14822         inside the MEM.
14823
14824 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14825
14826         * loop.c (loop_optimize): Allocate loop_info structure for each loop
14827         prior to calling scan_loop.
14828
14829 Wed Jan 19 19:54:38 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14830
14831         * sh.c (find_barrier, gen_block_redirect): Fix indentation.
14832         (split_branches, calc_live_regs): Likewise.
14833
14834 Wed Jan 19 19:12:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14835
14836         * sh.md (fpu_single, fp_mode): New attributes.
14837
14838 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14839
14840         * loop.c (current_loop_info): Renamed from loop_info_data
14841         and changed to a pointer.
14842         (loop_optimize): Allocate loop_info structure for each loop
14843         and initialise to zero.
14844         (scan_loop): Set current_loop_info.
14845
14846         * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
14847         on iteration_var.
14848
14849 2000-01-19  Richard Henderson  <rth@cygnus.com>
14850
14851         * stupid.c: Die die die.
14852         * Makefile.in (OBJS): Remove stupid.o.
14853         (stupid.o): Likewise.
14854
14855         * except.c (emit_eh_context): Don't emit USEs for stupid.
14856         * explow.c (probe_stack_range): Likewise.
14857         * flags.h (obey_regdecls): Remove.
14858         * flow.c (find_basic_blocks): Don't run try_merge_blocks
14859         when not optimizing.
14860         (life_analysis): Limit data collection when not optimizing.
14861         (mark_regs_live_at_end): Always mark the return value registers.
14862         (mark_used_regs): Remove dummy RETURN case.
14863         (print_rtl_with_bb): Don't consult obey_regdecls.
14864         * function.c (use_variable, use_variable_after): Remove.
14865         (assign_parms): Consult optimize not obey_regdecls.
14866         (expand_function_start): Don't emit USEs for stupid.
14867         (expand_function_end): Likewise.
14868         * global.c (build_insn_chain): Export.
14869         * integrate.c (expand_inline_function): Kill return-value USE
14870         handling code.
14871         * jump.c (jump_optimize_1): Do simple jump optimizations and
14872         dead code elimination.
14873         (calculate_can_reach_end): Remove check_deleted argument.
14874         (delete_insn): Patch out insns even when not optimizing.
14875         * local-alloc.c (block_alloc): Don't do tying when not optimizing.
14876         * rtl.h (use_variable, use_variable_after): Remove declarations.
14877         (build_insn_chain): Declare.
14878         * stmt.c (expand_value_return): Don't emit USEs for stupid.
14879         (expand_end_bindings): Likewise.
14880         (expand_decl): Likewise.  Consult optimize not obey_regdecls.
14881         * toplev.c (obey_regdecls): Remove.
14882         (rest_of_compilation): Don't set it.  Kill stupid in favour of
14883         flow1, local-alloc, and reload.
14884         (main): Don't set obey_regdecls.
14885
14886         * config/nextstep.c (handle_pragma): Likewise.
14887
14888         * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
14889
14890         * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
14891
14892 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14893
14894         * alpha-protos.h: PROTO -> PARAMS.
14895         * alpha.c: Likewise.
14896         * elf.h: Likewise.
14897         * h8300.c: Likewise.
14898         * i386-protos.h: Likewise.
14899         * i386.c: Likewise.
14900         * m32r-protos.h: Likewise.
14901         * m32r.c: Likewise.
14902         * mips.c: Likewise.
14903         * mips.md: Likewise.
14904         * gmon-sol2.c: Likewise.
14905         * sparc.c: Likewise.
14906
14907 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14908
14909         * ns32k-protos.h: New file.
14910
14911         * ns32k.c: Fix compile time warnings.
14912
14913         * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
14914         warnings.
14915
14916         * ns32k.md: Likewise.
14917
14918 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14919
14920         * vax-protos.h: New file.
14921
14922         * vax.c: Fix compile time warnings.
14923
14924         * vax.h: Move prototypes to vax-protos.h.  Fix compile time
14925         warnings.
14926
14927         * vax.md: Likewise.
14928
14929         * vaxv.md: Likewise.
14930
14931 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14932
14933         * romp-protos.h: New file.
14934
14935         * romp.c: Fix compile time warnings.
14936
14937         * romp.h: Move prototypes to romp-protos.h.  Fix compile time
14938         warnings.
14939
14940         * romp.md: Likewise.
14941
14942 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14943
14944         * we32k-protos.h: New file.
14945
14946         * we32k.c: Fix compile time warnings.
14947
14948         * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
14949         warnings.
14950
14951 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14952
14953         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
14954
14955         * except.c (eh_regs): Likewise.
14956
14957         * final.c (output_operand): Likewise.
14958
14959         * fold-const.c (target_isinf, target_isnan): Likewise.
14960
14961 Tue Jan 18 16:19:55 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
14962
14963         * i386.h (BIGGEST_ALIGNMENT): Set to 128.
14964         (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
14965
14966         * i386.md (memstr): Do not use rep stosb for counts divisible by 4
14967         when optimize_size.
14968         (clrstrsi): Rewrite.
14969         (strsethi, strsetqi): New expanders.
14970         (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
14971         (cmpstrsi): Emit compare insn before cmpstrsi_1
14972         (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
14973         (strlensi_1): Likewise.
14974         (cmpstrsi_1): Likewise; do not output compare.
14975         (strlen expander): Do not unroll when optimizing for size.
14976         (*subsi3_carry): Rename to subsi3_carry
14977         (addqi3_cc): New pattern.
14978         * i386.h (processor_costs): Add move_ratio field.
14979         (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
14980         * i386.c (*_cost): Set move_ratio.
14981         (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
14982         (x86_expand_strlensi_1): Rewrite the main loop.
14983
14984 2000-01-17  Richard Henderson  <rth@cygnus.com>
14985
14986         * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
14987         * cse.c (find_comparison_args, fold_rtx): Likewise.
14988         * integrate.c (subst_constants): Likewise.
14989         * loop.c (get_condition): Likewise.
14990
14991         * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
14992
14993         * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
14994
14995 2000-01-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
14996
14997         * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
14998         (RESTORE_WARN_FLAGS): Unpack it.
14999         Change semantic type of extension to ttype.
15000         * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
15001         * c-parse.y, c-parse.c, objc/objc-parse.y,
15002         objc/objc-parse.c: Regenerate.
15003
15004 2000-01-17  Zack Weinberg  <zack@wolery.cumb.org>
15005
15006         * fixinc/fixlib.c: Add copyright notice.
15007         (compile_re): New function.
15008         * fixinc/fixlib.h: Prototype compile_re.
15009
15010         * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
15011         Use compile_re to compile regular expressions.
15012
15013         * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
15014         where the pattern matched.
15015
15016         * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
15017         use 'replace'.
15018         (ultrix_ansi_compat): Likewise.
15019         (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
15020         add egrep test.
15021         (interactv_add2, interactv_add3): Delete.
15022         (x11_sprintf): Don't use filename glob.
15023         * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
15024         Regenerate.
15025
15026 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15027
15028         * print-rtl.c: PROTO -> PARAMS.
15029         * real.c: Likewise.
15030         * reg-stack.c: Likewise.
15031         * resource.c: Likewise.
15032         * sdbout.h: Likewise.
15033         * simplify-rtx.c: Likewise.
15034         * stor-layout.c: Likewise.
15035         * stupid.c: Likewise.
15036         * xcoffout.c: Likewise.
15037         * xcoffout.h: Likewise.
15038
15039 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15040
15041         * toplev.c: PROTO -> PARAMS.
15042         * toplev.h: Likewise.
15043         * tree.c: Likewise.
15044         * tree.h: Likewise.
15045         * unroll.c: Likewise.
15046         * varasm.c: Likewise.
15047         * varray.c: Likewise.
15048         * varray.h: Likewise.
15049
15050 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15051
15052         * reload.c: PROTO -> PARAMS.
15053         * reload.h: Likewise.
15054         * reload1.c: Likewise.
15055         * reorg.c: Likewise.
15056         * resource.h: Likewise.
15057         * rtl.c: Likewise.
15058         * rtl.h: Likewise.
15059         * rtlanal.c: Likewise.
15060         * sbitmap.h: Likewise.
15061         * sdbout.c: Likewise.
15062         * stack.h: Likewise.
15063         * stmt.c: Likewise.
15064         * system.h: Likewise.
15065
15066 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15067
15068         * machmode.h: PROTO -> PARAMS.
15069         * mbchar.h: Likewise.
15070         * mips-tdump.c: Likewise.
15071         * mips-tfile.c: Likewise.
15072         * optabs.c: Likewise.
15073         * output.h: Likewise.
15074         * prefix.c: Likewise.
15075         * profile.c: Likewise.
15076         * protoize.c: Likewise.
15077         * real.h: Likewise.
15078         * recog.c: Likewise.
15079         * recog.h: Likewise.
15080         * regclass.c: Likewise.
15081         * regmove.c: Likewise.
15082         * regs.h: Likewise.
15083
15084 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15085
15086         * ggc-common.c: PROTO -> PARAMS.
15087         * ggc-page.c: Likewise.
15088         * ggc-simple.c: Likewise.
15089         * ggc.h: Likewise.
15090         * global.c: Likewise.
15091         * graph.c: Likewise.
15092         * gthr-win32.h: Likewise.
15093         * haifa-sched.c: Likewise.
15094         * halfpic.h: Likewise.
15095         * integrate.c: Likewise.
15096         * integrate.h: Likewise.
15097         * jump.c: Likewise.
15098         * lcm.c: Likewise.
15099         * local-alloc.c: Likewise.
15100         * loop.c: Likewise.
15101         * loop.h: Likewise.
15102
15103 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15104
15105         * genattr.c: PROTO -> PARAMS.
15106         * genattrtab.c: Likewise.
15107         * gencheck.c: Likewise.
15108         * gencodes.c: Likewise.
15109         * genconfig.c: Likewise.
15110         * genemit.c: Likewise.
15111         * genextract.c: Likewise.
15112         * genflags.c: Likewise.
15113         * gengenrtl.c: Likewise.
15114         * genopinit.c: Likewise.
15115         * genoutput.c: Likewise.
15116         * genpeep.c: Likewise.
15117         * genrecog.c: Likewise.
15118
15119 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
15120
15121         * tree.h (BINFO_VPTR_FIELD): Augment documentation.
15122
15123 2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15124
15125         * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
15126         * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
15127         * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
15128         * configure, config.in: Rebuilt.
15129
15130 2000-01-16  Zack Weinberg  <zack@wolery.cumb.org>
15131
15132         * config/i386/i386.md: Add peephole to merge successive stack
15133         adjusts.
15134
15135 Sat Jan 15 15:41:14 EST 2000  John Wehle  (john@feith.com)
15136
15137         * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
15138         instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
15139         when walking backwards to find all the parameter loads when
15140         the basic block ends in a call.
15141
15142 2000-01-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15143
15144         * loop.c (this_loop_info): Delete.
15145         (uid_loop): Add in place of uid_loop_num.  All uses updated.
15146         (loop_number_exit_count): Delete and replace with entry in loop
15147         structure.  All uses updated.
15148         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
15149         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
15150         (loop_outer_loop): Likewise.
15151         (loop_invalid, loop_number_exit_labels): Likewise.
15152         (loop_used_count_register): Delete and replace with entry in
15153         loop_info structure.
15154         (find_and_verify_loops): Add loops argument.
15155         (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
15156         loop_end, etc. arguments with loop structure pointer.  All callers
15157         changed.
15158         (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
15159         (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
15160         (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
15161         (insert_bct): Likewise.
15162         (basic_induction_var): New argument level.
15163         * loop.h (struct loop_info): Delete fields num, loops_enclosed,
15164         vtop, and cont.  Add used_count_register.
15165         (uid_loop): Delete declaration.
15166         (loop_number_exit_count): Likewise.
15167         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
15168         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
15169         (loop_outer_loop, loop_used_count_register): Likewise.
15170         (loop_invalid, loop_number_exit_labels): Likewise.
15171         (unroll_loop): Replace loop_start and loop_end arguments
15172         with loop structure pointer.
15173         (loop_precondition_p, loop_iterations): Likewise.
15174         Include basic-block.h.
15175         * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
15176         with loop structure pointer.
15177         (loop_precondition_p, loop_iterations): Likewise.
15178         * basic-block.h (struct loop): New entries vtop, cont,
15179         cont_dominator, start, end, top, scan_start, exit_labels,
15180         exit_count.
15181         * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
15182
15183 2000-01-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15184
15185         * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
15186
15187 2000-01-14  Nathan Sidwell  <sidwell@codesourcery.com>
15188
15189         * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
15190
15191 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15192
15193         * pdp11-protos.h: New file.
15194
15195         * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
15196         time warnings.
15197
15198         * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
15199         warnings.
15200
15201         * pdp11.md: Likewise.
15202
15203         * 2bsd.h: Likewise.
15204
15205 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15206
15207         * mn10300-protos.h: New file.
15208
15209         * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
15210         time warnings.
15211
15212         * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
15213         warnings.
15214
15215         * mn10300.md: Likewise.
15216
15217 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15218
15219         * mn10200-protos.h: New file.
15220
15221         * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
15222         time warnings.
15223
15224         * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
15225         warnings.
15226
15227         * mn10200.md: Likewise.
15228
15229 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15230
15231         * h8300-protos.h: New file.
15232
15233         * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
15234         time warnings.
15235
15236         * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
15237         warnings.
15238
15239         * h8300.md: Likewise.
15240
15241 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15242
15243         * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
15244         (asm_emit_uninitialised): Likewise.
15245
15246 2000-01-13  Gavin Romig-Koch  <gavin@cygnus.com>
15247
15248         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
15249         * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
15250
15251 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
15252
15253         * config/mips/mips.c (override_options): Don't turn on extra
15254         alignment for mips16.
15255
15256 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
15257
15258         * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
15259         eabi, and make sure queued POSTINCREMENT rtl is emitted at
15260         the right point.
15261
15262 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
15263
15264         * builtins.c (PAD_VARARGS_DOWN): Define.
15265         (std_expand_builtin_va_arg): Use the above macro.
15266         * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
15267         * tm.texi (Register Arguments): Document the above macro.
15268
15269 2000-01-14  Nick Clifton  <nickc@cygnus.com>
15270
15271         * emit-rtl.c (emit_insn): If checking is enabled, make sure
15272         that this function has not been used to emit a jump
15273         instruction.
15274
15275         * jump.c (return_jump_1): Cope with being passed a null rtx.
15276
15277 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15278
15279         * eh-common.h: PROTO -> PARAMS.
15280         * emit-rtl.c: Likewise.
15281         * errors.c: Likewise.
15282         * errors.h: Likewise.
15283         * except.c: Likewise.
15284         * except.h: Likewise.
15285         * explow.c: Likewise.
15286         * expmed.c: Likewise.
15287         * expr.c: Likewise.
15288         * expr.h: Likewise.
15289         * final.c: Likewise.
15290         * fix-header.c: Likewise.
15291         * flow.c: Likewise.
15292         * fold-const.c: Likewise.
15293         * function.c: Likewise.
15294         * function.h: Likewise.
15295         * gcc.c: Likewise.
15296         * gcov-io.h: Likewise.
15297         * gcov.c: Likewise.
15298         * gcse.c: Likewise.
15299
15300 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15301
15302         * sh-protos.h: New file.
15303
15304         * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
15305         Add static prototypes.  Fix compile time warnings.
15306
15307         * sh.h: Move prototypes to sh-protos.h.  Fix compile time warnings.
15308         * sh.md: Likewise.
15309         * elf.h: Likewise.
15310
15311 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15312
15313         * arc-protos.h: New file.
15314
15315         * arc.c: Include tm_p.h.  Add static prototypes.  Fix compile
15316         time warnings.
15317
15318         * arc.h: Move prototypes to arc-protos.h.  Fix compile time
15319         warnings.
15320
15321         * arc.md: Likewise.
15322
15323 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15324
15325         * dsp16xx-protos.h: New file.
15326
15327         * dsp16xx.c: Include tm_p.h.  Add static prototypes.  Fix compile
15328         time warnings.
15329
15330         * dsp16xx.h: Move prototypes to dsp16xx-protos.h.  Fix compile time
15331         warnings.
15332
15333         * dsp16xx.md: Likewise.
15334
15335 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15336
15337         * convex-protos.h: New file.
15338
15339         * convex.c: Include tm_p.h.  Add static prototypes.  Fix compile
15340         time warnings.
15341
15342         * convex.h: Move prototypes to convex-protos.h.  Fix compile time
15343         warnings.
15344
15345 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15346
15347         * elxsi-protos.h: New file.
15348
15349         * elxsi.c: Include tm_p.h.  Add static prototypes.  Fix compile
15350         time warnings.
15351
15352         * elxsi.h: Move prototypes to elxsi-protos.h.  Fix compile time
15353         warnings.
15354
15355         * elxsi.md: Likewise.
15356
15357 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
15358
15359         * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
15360         case for moving from HI/LO/HI_LO_REG.  This makes the behavior
15361         match the comment for MIPS16.
15362
15363 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
15364
15365         * flow.c (split_edge): Do not call set_block_for_insn if we
15366         do not have a basic_block_for_insn structure.
15367
15368         * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
15369         and destination functions are 32bit aligned within the trampoline.
15370         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
15371         (TRAMPOLINE_ALIGNMENT): Define.
15372
15373         * cse.c (cse_insn): When changing (set (pc) (reg)) to
15374         (set (pc) (label_ref)), verify the change creates a valid insn.
15375
15376         * fr30.c (call_operand): Tighten and rework to match rules for
15377         call RTL expressions.
15378         * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
15379         * fr30.md (call patterns): Improve constraints.
15380
15381 Thu Jan 13 23:44:03 2000  Richard Henderson  <rth@cygnus.com>
15382
15383         * fr30.c (fr30_expand_epilogue): Revert last change.
15384         Use emit_jump_insn for the return insn.
15385
15386 Thu Jan 13 14:46:03 2000  Jason Eckhardt  <jle@cygnus.com>
15387                           Stan Cox  <scox@cygnus.com>
15388
15389         * predict.c: New file. Preliminary infrastructure work for static
15390         branch prediction and basic block reordering.
15391         * basic-block.h: Add prototype for estimate_probability.
15392         * Makefile.in: Add rules for predict.o.
15393
15394 2000-01-13  Jason Merrill  <jason@yorick.cygnus.com>
15395
15396         * fixincludes (va_list): Use __not_va_list__ for the dummy.
15397         * fixinc/*: Likewise.
15398
15399 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15400
15401         * cccp.c: PROTO -> PARAMS.
15402         * cexp.y: Likewise.
15403         * collect2.c: Likewise.
15404         * combine.c: Likewise.
15405         * convert.h: Likewise.
15406         * cse.c: Likewise.
15407         * dbxout.c: Likewise.
15408         * dbxout.h: Likewise.
15409         * diagnostic.c: Likewise.
15410         * doprint.c: Likewise.
15411         * dwarf2out.c: Likewise.
15412         * dwarf2out.h: Likewise.
15413         * dwarfout.c: Likewise.
15414         * dwarfout.h: Likewise.
15415         * dyn-string.h: Likewise.
15416
15417 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15418
15419         * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
15420         macro conditionals guarding use.
15421
15422         * dwarf2out.c: Include "tm_p.h".
15423
15424         * function.c (locate_and_pad_parm): Mark parameter with
15425         ATTRIBUTE_UNUSED.
15426         (expand_function_end): Likewise for variable `context'.
15427
15428         * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
15429
15430 2000-01-13  Nick Clifton  <nickc@cygnus.com>
15431
15432         * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
15433         register to prevent compile time warnings.
15434
15435 2000-01-13  Zack Weinberg  <zack@wolery.cumb.org>
15436
15437         * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
15438         to avoid -Wtraditional warning.
15439
15440 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15441
15442         * 1750a-protos.h: New file.
15443
15444         * 1750a.c: Include tm_p.h.  Add static prototypes.  Fix compile
15445         time warnings.
15446
15447         * 1750a.h: Move prototypes to 1750a-protos.h.  Fix compile time
15448         warnings.
15449
15450         * 1750a.md: Likewise.
15451
15452 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15453
15454         * a29k-protos.h: New file.
15455
15456         * a29k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15457         time warnings.
15458
15459         * a29k.h: Move prototypes to a29k-protos.h.  Fix compile time
15460         warnings.
15461
15462 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15463
15464         * clipper-protos.h: New file.
15465
15466         * clipper.c: Include tm_p.h.  Add static prototypes.  Fix compile
15467         time warnings.
15468
15469         * clipper.h: Move prototypes to clipper-protos.h.  Fix compile time
15470         warnings.
15471
15472 Thu Jan 13 16:03:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15473
15474         * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
15475
15476 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
15477
15478         * configure.in (--enable-new-gxx-abi): New option.
15479         * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
15480         * Makefile.in (GXX_ABI_FLAG): New variable.
15481         * configure: Regenerate.
15482
15483 2000-01-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15484
15485         * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
15486         * tm.texi (FORCE_STRUCT_BLK): Document.
15487         * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
15488
15489 Wed Jan 12 23:12:47 2000  Hans-Peter Nilsson  <hp@axis.com>
15490
15491         * config/ns32k/ns32k.md: Revert Jan 9 change.
15492
15493         * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
15494         to a mode-test, if the predicate is address_operand.
15495
15496 Wed Jan 12 22:34:00 2000  Jeffrey A Law  (law@cygnus.com)
15497
15498         * combine.c (if_then_else_cond): Be careful about what kinds
15499         of RTL expressions are passed to operand_subword.
15500
15501         * flow.c (split_edge): If we have to insert a new jump, make
15502         sure to associate it with a basic block.
15503
15504         * flow.c (commit_one_edge_insertion): A block with one successor
15505         can end in a JUMP_INSN that is not a simplejump.
15506
15507 2000-01-12  Robert Lipe  <robertl@sco.com>
15508
15509         * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
15510         (BUILD_VA_LIST_TYPE): Define.
15511         (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
15512         with crtstuff.c.
15513
15514 2000-01-12  Jason Merrill  <jason@casey.cygnus.com>
15515
15516         * cccp.c (do_pragma): Add cast to (char *).
15517
15518 2000-01-12  Richard Henderson  <rth@cygnus.com>
15519             Fred Fish  <fnf@be.com>
15520             Jason Merrill  <jason@cygnus.com>
15521
15522         * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
15523         * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
15524         * i386/beos-elf.h, i386/beos-pe.h: New files.
15525
15526         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
15527         * cross-make (SYSTEM_HEADER_DIR): Define using
15528         CROSS_SYSTEM_HEADER_DIR.
15529
15530         * gcc.c (LIBRARY_PATH_ENV): Provide default.
15531         (process_command): Use it.
15532         (main): Likewise.  Kill trailing = from env vars.
15533         (build_search_list): Put it back.
15534         * collect2.c (main): Use LIBRARY_PATH_ENV.
15535
15536         * configure.in (GCC_NEED_DECLARATIONS): Add environ.
15537         * toplev.c: Use NEED_DECLARATION_ENVIRON.
15538
15539         * tm.texi (Frame Layout): Document SMALL_STACK.
15540         * c-common.c (c_common_nodes_and_builtins): Check it.
15541
15542         * system.h: Undef alloca after including glibc's <stdlib.h>,
15543         if USE_C_ALLOCA is defined.
15544
15545         * gcc.c (set_input): New fn.
15546         (main): After all input files are compiled, reset the input file
15547         info to the first.
15548
15549         * aclocal.m4 (rindex, index): If already defined, don't attempt
15550         to redefine.
15551
15552         * ginclude/varargs.h: (__va_list__): Define ifndef.
15553         * ginclude/stdarg.h: Likewise.
15554
15555         * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
15556         instead of unsigned char.
15557
15558         * hash.h (true, false, boolean): Undef before enum.
15559
15560         * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
15561         proper type of "HOST_WIDE_INT *", rather than their natural type of
15562         "unsigned HOST_WIDE_INT *".
15563
15564 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15565
15566         * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
15567
15568         * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
15569
15570         * regclass.c (choose_hard_reg_mode): Likewise.
15571
15572         * reload.c (find_valid_class, strict_memory_address_p): Likewise.
15573
15574         * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
15575
15576 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15577
15578         * c-common.c: PROTO -> PARAMS.
15579         * c-common.h: Likewise.
15580         * c-decl.c: Likewise.
15581         * c-iterate.c: Likewise.
15582         * c-lang.c: Likewise.
15583         * c-lex.c: Likewise.
15584         * c-lex.h: Likewise.
15585         * c-parse.in: Likewise.
15586         * c-pragma.c: Likewise.
15587         * c-pragma.h: Likewise.
15588         * c-tree.h: Likewise.
15589         * c-typeck.c: Likewise.
15590         * objc/objc-act.c: Likewise.
15591         * objc/objc-act.h: Likewise.
15592
15593 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15594
15595         * m88k-protos.h: New file.
15596
15597         * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15598         time warnings.
15599
15600         * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.
15601
15602         * m88k.md: Likewise.
15603
15604         * tekXD88.h: Likewise.
15605
15606 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15607
15608         * m68k-protos.h: New file.
15609
15610         * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
15611         time warnings.
15612
15613         * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.
15614
15615         * mot3300.h: Likewise.
15616
15617 2000-01-12  Richard Earnshaw <rearnsha@arm.com>
15618
15619         * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
15620         extract_bitlst.
15621         (extract_bitlist): Declare bitlen.
15622
15623 2000-01-12  Zack Weinberg  <zack@wolery.cumb.org
15624
15625         * cccp.c: Accept and ignore -lang-fortran.
15626
15627         * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
15628         qualifiers don't match at any level of pointerness.
15629
15630 2000-01-12  Robert Lipe  <robertl@sco.com>
15631
15632         * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
15633
15634 2000-01-12  Bernd Schmidt  <bernds@cygnus.co.uk>
15635
15636         * reload1.c (reload_reg_unavailable): New static variable.
15637         (reload_reg_free_p): Test it.
15638         (reload_reg_free_for_value_p): Test it instead of
15639         reload_reg_used.
15640         (choose_reload_regs_init): Compute it.
15641
15642 Wed Jan 12 03:24:41 2000  Toshiyasu Morita (toshi.morita@sega.com)
15643
15644         * reorg.c (fill_slots_from_thread): Check modified_in_p
15645         before replacing.
15646
15647 Wed Jan 12 03:20:31 2000  John Marshall <john_w_marshall@palm.com>
15648
15649         * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
15650         these nodes even if INTERNALS is not set.
15651
15652 Wed Jan 12 09:39:22 2000  Nick Burrett  <nick.burrett@btinternet.com>
15653
15654         * gcse.c (delete_null_pointer_checks_1): Cope when
15655         get_condition cannot determine the condition.
15656
15657 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
15658
15659         * toplev.h (set_message_length): Declare.
15660
15661         * diagnostic.c (obstack_chunk_alloc): Define macro.
15662         (obstack_chunk_free): Likewise.
15663         (struct output_buffer): New data structure.
15664         (vmessage): Remove.
15665         (output_maximum_width): New variable.
15666         (doing_line_wrapping, set_message_length, init_output_buffer,
15667         get_output_prefix, output_space_left, emit_output_prefix,
15668         output_newline, output_append, output_puts, dump_output,
15669         vbuild_message_string, build_message_string, build_location_prefix,
15670         voutput_notice, output_printf, line_wrapper_printf,
15671         vline_wrapper_message_with_location):  New functions. Implement
15672         automatic line wrapping.
15673         (v_message_with_decl): Make it handle automatic line wrapping.
15674         (v_error_with_file_and_line): Likewise.
15675         (v_warning_with_file_and_line): Likewise.
15676         (announce_function): Likewise.
15677         (default_print_error_function): Likewise.
15678
15679 2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>
15680
15681         * cpplib.h (struct cpp_options): Change lang_asm to char.
15682         Add lang_fortran.
15683         * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
15684         done in cpp_handle_option now.
15685         (initialize_builtins): Take out special case code used only by
15686         __STDC_VERSION__.
15687         (cpp_handle_option): Turn off trigraphs and trigraph warnings
15688         if -traditional.  Recognize -lang-fortran and set
15689         lang_fortran, also turn off cplusplus_comments.
15690         (print_help): Document -lang-fortran.
15691         * cpplib.c (handle_directive): Ignore `# 123 "file"' if
15692         lang_asm. Ignore all directives other than `# 123 "file"' if
15693         CPP_PREPROCESSED.
15694         (cpp_get_token): If -traditional, don't recognize directives
15695         unless the # is in column 1.
15696         (parse_string): If lang_fortran or lang_asm, silently
15697         terminate strings ('' or "") at end of line.
15698         Remove unnecessary braces.
15699
15700 2000-01-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15701             Richard Henderson  <rth@cygnus.com>
15702
15703         * resource.c (mark_referenced_resources): Mark a set strict_low_part
15704         as used.
15705         * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
15706         strict_low_part when possible.
15707
15708 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15709
15710         * alias.c: PROTO -> PARAMS.
15711         * basic-block.h: Likewise.
15712         * bitmap.c: Likewise.
15713         * bitmap.h: Likewise.
15714         * builtins.c: Likewise.
15715         * c-aux-info.c: Likewise.
15716         * caller-save.c: Likewise.
15717         * calls.c: Likewise.
15718
15719 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15720
15721         * Makefile.in (toplev.o): Depend on regs.h.
15722
15723         * output.h (tdesc_section): Prototype.
15724
15725         * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
15726
15727         * sdbout.c: Include "tm_p.h".
15728
15729         * toplev.c: Include "regs.h".
15730
15731 Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
15732
15733         * unroll.c (unroll_loop): Add EH support.
15734
15735 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15736
15737         * pa-protos.h: New file.
15738
15739         * pa.c: Include recog.h and tm_p.h.
15740         (compute_zdepwi_operands, compute_movstrsi_length,
15741         remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
15742         find_addr_reg, import_milli): Add static prototypes.
15743         (pa_cpu_string, pa_arch_string): Constify a char*.
15744         (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
15745         (read_only_operand): Add argument `mode'.
15746         (singlemove_string, output_move_double, output_fp_move_double,
15747         output_block_move, output_and, output_ior, output_ascii,
15748         remove_useless_addtr_insns, milli_names, output_mul_insn,
15749         output_div_insn, output_mod_insn, output_arg_descriptor,
15750         output_cbranch, output_bb, output_bvb, output_dbra, ,
15751         output_millicode_call, output_call, hppa_encode_label,
15752         output_parallel_movb, output_parallel_addb): Constify a char*.
15753         (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
15754         (output_parallel_addb): Remove extra arg to `constrain_operands'
15755
15756         * pa.h:  Move all prototypes to pa-protos.h.
15757         (pa_cpu_string, pa_arch_string): Constify a char*.
15758         (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
15759
15760         * pa.md: Call `function_label_operand' with mode argument.
15761         Likewise for `read_only_operand'.
15762         Fix nesting of parens in call to `symbolic_operand'.
15763
15764 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15765
15766         * i860-protos.h: New file.
15767
15768         * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
15769         time warnings.
15770
15771         * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.
15772
15773         * i860.md: Likewise.
15774
15775 Tue Jan 11 18:59:35 MET 2000  Jan Hubicka <jh@suse.cz>
15776
15777         * i386.md (movstrsi expander): Rewrite.
15778         (movstrsi_1 insn): Deleted.
15779         (strmovhi, strmovqi expander): New expanders.
15780         (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
15781         * i386.c (x86_single_stringop): New global variable.
15782         * i386.h (x86_single_stringop): Declare.
15783         (TARGET_SINGLE_STRINGOP): New macro.
15784
15785 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
15786
15787         * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
15788         integer vararg POSTINCREMENT before the destination of the jump
15789         for the hard fp case.
15790         (function_arg_pass_by_reference): Pass a copy of CUM to
15791         FUNCTION_ARG.
15792
15793         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
15794         for CONSTANT_ADDRESS_P above while loop for subreg.
15795
15796 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
15797
15798         * flow.c (propagate_block): When a prologue/epilogue insn
15799         is marked dead, unconditionally clear libcall_is_dead and
15800         insn_is_dead, and only dump rtl if warnings aren't being
15801         suppressed.
15802
15803 Tue Jan 11 16:26:47 MET 2000  Jan Hubicka <jh@suse.cz>
15804
15805         * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
15806         * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
15807         (FIXED_REGISTERS): Set dirflag as fixed.
15808         (CALL_USED_REGISTERS): Set dirflag as used.
15809         (REG_ALLOC_ORDER): Set dirflag as last one.
15810         (DIRFLAG_REG): New macro.
15811         (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
15812         (HI_REGISTER_NAMES): Add dirflag.
15813         (DEBUF_PRINT_REG): Handle dirflag.
15814         * i386.md (type attribute): New cld and str types.
15815         (length_opcode attribute): Set cld and str to 1.
15816         (memory attribute): Set str to unknown - it is not clear from the
15817         patterns.
15818         (pent_np function unit): Prefixed string operations takes 12 cycles
15819         minimally; cld takes 2 cycles.
15820         (ppro_uops attribute): Str is "many" and cld is "few".
15821         (ppro_p0 unit): Handle cld here.
15822         (k6_alux unit): Handle cld and str types.
15823         (k6_load unit): It is ocupied by str opcodes.
15824         (k6_store unit): It is ocupied by str opcodes.
15825         (athlon_decode): Str is vector decoded.
15826         (athlon_ieu): Handle str and cld.
15827         (cld pattern): New.
15828         (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
15829         (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
15830         cmpstrsi_nz_1 insn): Do not output cld instruction
15831
15832 Tue Jan 11 06:14:39 2000  David Starner <dstarner98@aasaa.ofe.org>
15833
15834         * gcc.texi (G++ and GCC): Add Java and Chill.
15835         (Bug Critera): Don't list languages.
15836
15837         * gcc.texi (Incompatibilities): No longer claim most C compilers
15838         are K&R.
15839
15840         * gcc.texi (G++ and GCC): Update other front-ends list.
15841
15842 Tue Jan 11 05:49:01 2000  Jeffrey A Law  (law@cygnus.com)
15843
15844         * i386.c (ix86_expand_setcc): Fix typo.
15845         (ix86_expand_movcc): Similarly.
15846
15847         * Band-aid until haifa's bitset implementation is nuked.
15848         * haifa-sched.c (extract_bitlst): New parameter for size of the
15849         bitset in bits.  All callers changed.  Avoid looking at undefined
15850         bits in the bitset.
15851         (edgeset_bitsize): New variable.
15852         (schedule_region): Initialize edgeset_bitsize.
15853
15854 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15855
15856         * Makefile.in (optabs.o): Depend on real.h
15857         (resource.o): Depend on insn-attr.h
15858
15859         * builtins.c (result_vector): Wrap prototype in macro conditions
15860         governing definition and use.
15861
15862         * c-common.c: Include tm_p.h.
15863
15864         * c-lex.c: Likewise.
15865
15866         * elfos.h: Constify a char*.
15867
15868         * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
15869         (get_attr_length, shorten_branches, profile_after_prologue): Mark
15870         parameter with ATTRIBUTE_UNUSED.
15871
15872         * fold-const.c (exact_real_inverse): Wrap variable `i' in
15873         CHECK_FLOAT_VALUE.
15874
15875         * haifa-sched.c (schedule_insns): Mark parameter with
15876         ATTRIBUTE_UNUSED.
15877
15878         * optabs.c: Include real.h.
15879
15880         * real.h (ereal_atof): Add prototype arguments.
15881
15882         * resource.c: Include insn-attr.h.
15883
15884         * sdbout.c (sdbout_queue_anonymous_type,
15885         sdbout_dequeue_anonymous_types): Wrap in macro
15886         SDB_ALLOW_FORWARD_REFERENCES.
15887         (sdbout_init, sdbout_start_new_source_file): Mark parameter with
15888         ATTRIBUTE_UNUSED.
15889
15890         * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
15891
15892         * stupid.c: Include tm_p.h.
15893
15894         * tree.c (real_value_from_int_cst): Mark parameter with
15895         ATTRIBUTE_UNUSED.
15896
15897 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15898
15899         * i960-protos.h: New file.
15900
15901         * i960.c: Include tm_p.h.  Add static prototypes.  Fix compile
15902         time warnings.
15903
15904         * i960.h: Move prototypes to i960-protos.h.  Fix compile time warnings.
15905
15906 2000-01-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15907
15908         * combine.c (expand_field_assignment): Do not discard SUBREGs
15909         while computing nonzero_bits.
15910
15911 2000-01-09  Nick Clifton  <nickc@cygnus.com>
15912
15913         * config/arm/arm.c: Fix compile time warnings about signed vs
15914         unsigned constants.
15915         * config/arm/arm.h: Fix compile time warnings about signed vs
15916         unsigned constants.
15917
15918 2000-01-09  Philip Blundell  <philb@gnu.org>
15919
15920         * config/arm/arm.c (output_return_instruction): Use `ldr' rather
15921         than `ldm' with only one register.
15922         * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
15923         only one register.
15924
15925         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
15926         clobbered.
15927
15928 Sun Jan  9 17:50:23 2000  Hans-Peter Nilsson  <hp@axis.com>
15929
15930         * config/ns32k/ns32k.md (load or push effective address): Operand 1
15931         must have SImode.
15932
15933 2000-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15934
15935         * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
15936         assignment used as truth value.
15937
15938         * function.c (assign_temp): Mark parameter `dont_promote' with
15939         ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
15940         PROMOTE_FOR_CALL_ONLY.
15941
15942         * genrecog.c (write_subroutine): Mark variable `operands' with
15943         ATTRIBUTE_UNUSED.
15944
15945         * optabs.c (prepare_cmp_insn): Mark parameter `align' with
15946         ATTRIBUTE_UNUSED.
15947
15948         * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
15949         (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
15950
15951         * toplev.c (note_deferral_of_defined_inline_function): Likewise
15952         for `decl'.
15953
15954 2000-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15955
15956         * config/c4x.h: Tidy up comments.
15957         * config/c4x.c: Likewise.
15958
15959 Sun Jan  9 01:02:55 EST 2000  John Wehle  (john@feith.com)
15960
15961         * fold-const.c (lshift_double, rshift_double): Handle
15962         shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
15963
15964 2000-01-08  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15965
15966         * toplev.c (rest_of_compilation): Initialize cse_not_expected as
15967         in prepare_function_start().
15968
15969 Sat Jan  8 12:12:46 2000  Nick Clifton  <nickc@cygnus.com>
15970
15971         * config/v850/v850.c (expand_epilogue): Interrupt functions no
15972         longer allocate extra stack for function calls.
15973
15974 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15975
15976         * config/c4x/c4x.md (*subqf3_set): Fix typo.
15977
15978 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15979
15980         * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
15981
15982 2000-01-07  David Edelsohn  <edelsohn@gnu.org>
15983
15984         * rs6000.c (processor_target_table): Add power3 as alias for 630.
15985         * aix43.h: Revert Aug 2 change.
15986         (HAS_INIT_SECTION): Define, not visible yet.
15987         (LD_INIT_SWITCH): Define, not visible yet.
15988         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
15989
15990         * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
15991
15992         * collect2.c (main): Expand ld2 size further.
15993         (export_object_lst): Cast assignment to avoid warning.
15994         (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
15995         (scan_prog_file, COFF): Do not collect initialization or
15996         finalization functions generated for entire shared object if
15997         init/fini support present.
15998
15999 2000-01-07  Nick Clifton  <nickc@cygnus.com>
16000
16001         * config/elfos.h: Tidy up formatting of marcos.  Make sure
16002         that .section directives are always prefixed by a tab.
16003
16004         * config/svr4.h: Add #include "elfos.h" and remove duplicate
16005         definitions.
16006
16007 2000-01-07  Matt Austern  <austern@sgi.com>
16008
16009         * fold-const.c (real_hex_to_f): Remove duplicate declaration of
16010         expon.
16011
16012 Fri Jan  7 01:55:34 2000  Jeffrey A Law  (law@cygnus.com)
16013
16014         * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
16015         crtstuff.c.
16016         (crtbegin.o, s-crtS): Likewise.
16017
16018 2000-01-06  Richard Henderson  <rth@cygnus.com>
16019
16020         * alpha.md (adddi_2+1): Limit offset such that it will be
16021         loadable with a single ldah+lda pair.
16022         (adddi_2+2): Explicitly fail split if we can't make it work.
16023
16024 2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>
16025
16026         * protoize.c: Conditionally include unistd.h.
16027         (IS_SAME_PATH_CHAR): New macro.
16028         (IS_SAME_PATH): New macro.
16029         (CPLUS_FILE_SUFFIX): New macro.
16030         (cplus_suffix): New static variable.
16031         (is_abspath): New static function.
16032         (in_system_include_dir): Handle DOS style pathnames.
16033         (file_could_be_converted): Likewise.
16034         (file_normally_convertible): Likewise.
16035         (directory_specified_p): Likewise.
16036         (file_excluded_p): Likewise.
16037         (abspath): Likewise.
16038         (shortpath): Likewise.
16039         (referenced_file_is_newer): Likewise.
16040         (save_def_or_dec): Likewise.
16041         (do_processing): Likewise.
16042         (main): Likewise.
16043         (edit_file): Likewise. Use rename instead of link.
16044         (rename_c_file): Likewise. Don't rename syscalls file.
16045         (munge_compile_params): Define null device for DOS based systems.
16046         (process_aux_info_file): Use binary mode if appliable.
16047         (edit_file): Likewise.
16048         * invoke.texi (Running Protoize): Document C++ suffixes used.
16049
16050         * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
16051         IS_DIR_SEPARATOR macros.
16052         * collect2.c: Likewise.
16053         * cppinit.c: Likewise.
16054         * dwarf2out.c: Likewise.
16055         * gcc.c: Likewise.
16056         * gcov.c: Likewise.
16057         * prefix.c: Likewise.
16058         * rtl.c: Likewise.
16059         * toplev.c: Likewise.
16060         * system.h: And move to here.
16061
16062         * prefix.c (update_path): Fix typo in variable name.
16063
16064 2000-01-06  Richard Henderson  <rth@cygnus.com>
16065
16066         * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
16067         (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
16068         (count_reg_sets_1, count_reg_references): Likewise.
16069         (flow_loops_level_compute): Start counting actual loop depth at 1.
16070         (flow_loops_find): Likewise.
16071         * local-alloc.c (update_equiv_regs): Likewise.
16072         * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
16073
16074 2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
16075
16076         * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
16077         FIRST_PSEUDO_REGISTER
16078         * dwarf2out.c: Don't include frame.h
16079         * dwarfout.c: Likewise
16080         * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
16081         frame.h
16082
16083 Thu Jan  6 13:44:59 CET 2000  Jan Hubicka  <jh@suse.cz>
16084
16085         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
16086         dead registers.
16087
16088         * i386.c (movsf splitter): Fix typo in my last checkin.
16089
16090 2000-01-05  Nick Clifton  <nickc@cygnus.com>
16091
16092         * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
16093         own definition of this macro.
16094         (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
16095         flag_data_sections or UNIQUE_SECTION_P are true.
16096
16097         * tm.texi (UNIQUE_SECTION): Document that it can be called for
16098         unitialised data decls.
16099
16100         * config/i386/winnt.c (i386_pe_unique_section): Cope with
16101         being called for uninitialised data.
16102
16103         * config/i386/interix.c (i386_pe_unique_section): Cope with
16104         being called for uninitialised data.
16105
16106         * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
16107         for uninitialised data.
16108
16109         * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
16110         for uninitialised data.
16111
16112         * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
16113         for uninitialised data.
16114
16115         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
16116         (UNIQUE_SECTION_P): Always generate a unique section if
16117         flag_data_sections is true.
16118         (UNIQUE_SECTION): Also generate unique sections for
16119         uninitialised data.
16120         (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
16121         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
16122         named_section().
16123
16124 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16125
16126         * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
16127         SI, or DI.
16128
16129 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16130
16131         * config/c4x/c4x.md (udivqi3, divqi3): Delete.
16132         (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
16133         (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
16134         (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
16135         (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
16136
16137         * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
16138
16139 2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>
16140
16141         * c-decl.c (finish_enum): Simplify code to determine minimum and
16142         maximum values of the enum, and calculate the type.  Remove check
16143         for FUNCTION_DECLs in the values list, which cannot happen.  Replace
16144         the DECL_INITIAL of each enumeration constant with a copy converted
16145         to the enumeration type.  When updating variant types, don't bother
16146         updating the type itself.
16147
16148         * c-typeck.c (build_binary_op): Simplify conditional expressions
16149         when weeding out spurious signed-unsigned warnings.  Add new
16150         spurious warning category: if the unsigned quantity is an enum
16151         and its maximum value fits in signed_type(result_type).  Update
16152         commentary.
16153         (build_conditional_expr): Warn here if one alternative is signed
16154         and the other is unsigned.
16155
16156 2000-01-05  Nick Clifton  <nickc@cygnus.com>
16157
16158         * config/fr30/fr30.h: Remove extraneous comments.
16159
16160 2000-01-05  Bernd Schmidt  <bernds@cygnus.co.uk>
16161
16162         * reload1.c (choose_reload_regs): When disabling a reload, also
16163         set reload_spill_index to -1.
16164
16165 2000-01-04  Joel Sherrill (joel@OARcorp.com>
16166
16167         * configure.in (m68*-*-rtemscoff*): New target, formal name for
16168         old m68*-*-rtems*.
16169         (m68*-*-rtemself*): New target.
16170         (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
16171         (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
16172         (sparc*-*-rtemself*): New target.
16173         (sparc*-*-rtems*): Now elf not a.out.
16174         * config/i386/rtems.h: Include config/rtems.h.
16175         * config/i386/rtemself.h: Include config/rtems.h.
16176         * config/i960/rtems.h: Include config/rtems.h.
16177         * config/m68k/rtems.h: Include config/rtems.h.
16178         * config/m68k/rtemself.h: Include config/rtems.h.
16179         * config/mips/rtems64.h: Include config/rtems.h.
16180         * config/pa/rtems.h: Include config/rtems.h.
16181         * config/rs6000/rtems.h: Include config/rtems.h.
16182         * config/sh/rtems.h: Include config/rtems.h.
16183         * config/sh/rtemself.h: Include config/rtems.h.
16184         * config/sparc/rtems.h: Include config/rtems.h.
16185         * config/sparc/rtemself.h: Include config/rtems.h
16186
16187 Tue Jan  4 23:59:26 2000  Denis Chertykov <denisc@overta.ru>
16188
16189         * final.c (shorten_branches): Correctly compute length of
16190         asms without operands.
16191
16192 Tue Jan  4 22:55:41 2000  Steve Chamberlain <sac@pobox.com>
16193
16194         * configure.in: Add pj target.
16195         * configure: Regenerate.
16196         * config/pj: New directory.
16197         * config/pj/lib1funcs.S: New file.
16198         * config/pj/linux.h: New file.
16199         * config/pj/pj.c: New file.
16200         * config/pj/pj.md: New file.
16201         * config/pj/pjl.h: New file.
16202         * config/pj/t-pj: New file.
16203         * config/pj/xm-pj.h: New file
16204
16205 Tue Jan  4 22:30:16 2000  Jeffrey A Law  (law@cygnus.com)
16206
16207         * toplev.c (rest_of_compilation): Run shorten-branches before
16208         reg-stack for now.
16209
16210 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16211
16212         * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
16213         macros so that they're consistent with their names.
16214         * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
16215         * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
16216
16217 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16218
16219         * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
16220         modified inadvertently.
16221
16222 2000-01-04  Joel Sherrill <joel@OARcorp.com>
16223
16224         * configure.in (v850*-*-rtems*): New target.
16225         * configure: Regenerate.
16226         * config/v850/rtems.h: New file.
16227
16228 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
16229
16230         * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
16231         (__gthread_key_create): Likewise.
16232         (__gthread_key_dtor):  Likewise.
16233         (__gthread_once): Fix logic.
16234         (__gthread_key_delete): Cast away constness.
16235
16236         * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
16237         * invoke.texi: Document.
16238         * i386/mingw32.h (CPP_SPEC): Use.
16239         (LIBGCC_SPEC): Likewise.
16240         * i386/crtdll.h (LIBGCC_SPEC): Likewise.
16241
16242 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
16243
16244         * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
16245         (HANDLE_PRAGMA_PACK): Undefine.
16246         (SLOW_UNALIGNED_ACCESS): Define.
16247
16248 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
16249
16250         * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
16251         to default definition.
16252         (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
16253         (store_fixed_bit_field): Call macro with word_mode and alignment.
16254         (extract_bit_field): Call macro with relevant mode and alignment.
16255         * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
16256         to default definition.
16257         (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
16258         and alignment.
16259         (move_by_pieces_ninsns): Likewise.
16260         (clear_by_pieces): Likewise.
16261         (emit_push_insn): Likewise.
16262         (store_field): Call macro with relevant mode and alignment.
16263         (expand_expr): Likewise.
16264         (expand_expr_unaligned): Likewise.
16265
16266         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
16267         (SLOW_UNALIGNED_ACCESS): Define.
16268         (CASE_VECTOR_MODE): Always use 32-bit offsets.
16269         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
16270         (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
16271         (toc_section): Likewise and .toc pseudo-op.
16272         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
16273         64-bit mode.
16274         (TEXT_SECTION_ASM_OP): Likewise.
16275         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
16276         32-bit offsets.
16277
16278         * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
16279         * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
16280         * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
16281         * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
16282         * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
16283
16284 Tue Jan  4 11:44:13 2000  Jeffrey A Law  (law@cygnus.com)
16285
16286         * regclass.c: Revert my Jan 4 change to loop cost computation.
16287
16288 Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
16289
16290         * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
16291         compilation.
16292
16293 2000-01-04  Stan Cox  <scox@cygnus.com>
16294
16295         * haifa-sched.c (build_control_flow): Change unreachable simple
16296         loop test to check if current block has only one predecessor.
16297         (find_rgns): Initialize degree.  Use dest as degree index, not src.
16298
16299 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16300
16301         * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
16302
16303         * calls.c (expand_call): Likewise for
16304         `old_stack_arg_under_construction'.
16305
16306         * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
16307
16308         * function.c (pad_to_arg_alignment): Likewise for `save_var' and
16309         `save_constant'.
16310
16311         * gcc.c (execute): Likewise for `ut' and `st'.
16312
16313         * genattrtab.c (attr_rtx): Likewise for `rt_val'.
16314
16315         * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
16316
16317         * jump.c (jump_optimize_1): Likewise for `temp2'.
16318
16319         * local-alloc.c (block_alloc): Likewise for `r1'.
16320
16321         * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
16322
16323         * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
16324         (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
16325
16326         * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
16327         and `set2'.
16328
16329         * reload.c (find_reloads): Likewise for `goal_alternative_number'
16330         and `goal_earlyclobber'.
16331
16332         * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
16333
16334         * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
16335
16336         * stupid.c (stupid_life_analysis): Likewise for `chain'.
16337
16338         * unroll.c (copy_loop_body): Likewise for `copy'.
16339
16340         * varasm.c (output_constructor): Likewise for `byte'.
16341
16342 Tue Jan  4 15:34:34 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
16343
16344         * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
16345         all FP constants for constant->reg moves.
16346         (ix86_split_to_parts): Try to convert memory address into immediate
16347         when available in the constant pool.
16348         * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
16349         moves.
16350         (LEGITIMATE_CONSTANT_P): Return 1.
16351         * i386.md (pushsf): New splitter to convert constant pool memory
16352         reference to immediate.
16353         (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
16354         reload.
16355
16356 2000-01-04  Bernd Schmidt  <bernds@cygnus.co.uk>
16357
16358         * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
16359         (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
16360         ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
16361         (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
16362         rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
16363
16364 2000-01-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
16365
16366         * ginclude/stdbool.h:  Support compilation as C++.
16367
16368 Tue Jan  4 01:35:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
16369
16370         * fold-const.c (make_range): Don't try to reverse an unbounded range.
16371
16372 Tue Jan  4 00:18:46 2000  Jeffrey A Law  (law@cygnus.com)
16373
16374         * regclass.c (regclass): Properly compute loop_cost.  Adjust
16375         comments.
16376
16377         * regclass.c: Fix minor whitespace problems.
16378
16379 2000-01-03  Anthony Green  <green@cygnus.com>
16380
16381         * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
16382         Restore the pic register if required.
16383
16384 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
16385
16386         * c-common.c (format_char_info): Update comment.
16387         (check_format_info): Recognize 'z' modifier in the same way 'Z'
16388         was recognized.  Emit warning for formats new in ISO C99 only
16389         if flag_isoc9x is not set.
16390
16391 Mon Jan  3 12:59:54 2000  Mark P. Mitchell  <mark@codesourcery.com>
16392
16393         * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
16394
16395 Mon Jan  3 15:33:37 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
16396
16397         * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
16398         SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
16399         (make_compound_operation): Choose cheaper alternative between
16400         ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
16401
16402         * regclass.c (op_costs): Remove global variable.
16403         (record_reg_classes): New parameter "op_costs" and "reg_pref".
16404         (record_operand_costs): Break out from ...
16405         (scan_one_insn): ... here.
16406         (dump_regclass): Make dumps nicer.
16407         (regclass): Dump preferrences choosed and changes done during passes.
16408
16409 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
16410
16411         * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
16412
16413 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
16414
16415         * config/sparc/sparc.c (gen_df_reg): New function.
16416         * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
16417         * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
16418         movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
16419         movtf_cc_reg_sp64+1): Use it.
16420
16421 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
16422
16423         * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
16424         copied LABEL_DECLs.
16425
16426 Mon Jan  3 02:54:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
16427
16428         * config/i386/i386.c (ix86_expand_unary_operator): Function
16429         definition made void.
16430         (ix86_expand_binary_operator): Update outdated preceding comment.
16431         * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
16432         prototype.
16433
16434         * config/i386/i386.c (override_options): Fix option-name typo.
16435
16436 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
16437
16438         * system.h (CEIL): Define.
16439         * builtins.c (CEIL): Remove.
16440         * expmed.c (CEIL): Likewise.
16441         * expr.c (CEIL): Likewise.
16442         * stor-layout.c (CEIL): Likewise.
16443
16444 2000-01-02  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16445
16446         * expr.c (store_constructor_field): Fix typo introduced with last
16447         gcc2 merge.
16448
16449 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
16450
16451         * tree.h (BINFO_N_BASETYPES): New macro.
16452
16453 2000-01-01  Bernd Schmidt  <bernds@cygnus.co.uk>
16454
16455         * expmed.c (emit_store_flag): Prevent losing a pending stack
16456         adjust the same way we prevent losing queued increments.
16457
16458 See ChangeLog.2 for earlier changes.