OSDN Git Service

* h8300.c (two_insn_adds_subs_operand): Fix a typo.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-07-20  Kazu Hirata  <kazu@hxi.com>
2
3         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
4         * h8300.h (OK_FOR_T): New.
5         (EXTRA_CONSTRAINT): Support OK_FOR_T.
6         * h8300.md: Use inc/dec.[wl] for increment/decrement
7         by 1 and 2 in HI and SI modes.
8
9 2000-07-20  Jim Wilson  <wilson@cygnus.com>
10
11         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
12         larger than 14 bits.
13
14 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
15
16         * cppmacro.c (CAN_PASTE_AFTER): New macro.
17         (count_params): Don't set GNU_REST_ARGS on anything.
18         (save_expansion): Set PASTE_LEFT only on tokens for which
19         CAN_PASTE_AFTER is true, or which are named operators.
20
21         * cpplex.c (parse_args): Distinguish between a rest argument
22         given one empty argument, and a rest argument given zero arguments.
23         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
24         deletion of previous token based on that.
25         (get_raw_token): Flatten some control structure.
26
27         * cpplib.h (CPP_LAST_EQ): Correct.
28         (VOID_REST): New token flag.
29         (GNU_REST_ARGS): Delete.
30
31         * tradcpp.c (main): Don't munge -D options.
32         (make_definition): Bring -D handling in line with cpplib.
33         (do_define): Strip all leading whitespace from macro definitions.
34
35 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
36
37         * Makefile.in (tradcpp): Depend on intl.o and version.o.
38
39 2000-07-20  Bruce Korb  <bkorb@gnu.org>
40
41         * fixincl/check.tpl: strip the platform specific types before testing
42         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
43         * fixincl/fixincl.tpl: use platform specific types
44         * fixincl/fixlib.h: include the platform specific types
45         * fixincl/inclhack.def(gnu_types): don't supply the types
46         * fixincl/fixincl.x: regen
47
48 2000-07-19  Jim Wilson  <wilson@cygnus.com>
49
50         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
51         GR_REGS.
52
53 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
54
55         * tradcpp.c (rescan): Do not recognize directives when the #
56         is indented.
57
58 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
59
60         Implement C++ named operators.
61
62         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
63         of operators allowed in #if and having an _EQ variant.  Add
64         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
65         (cpp_token flags): Add NAMED_OP.
66         (enum node_type): Add T_OPERATOR.
67         (struct cpp_hashnode): Add code slot to value union.
68         * cpphash.h (spec_nodes): Remove n_defined.
69
70         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
71         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
72         (is_macro_disabled): Tweak error messages.
73
74         * cpplib.c (get_define_node): Disallow all named operators as
75         macro names.  Tweak error messages.
76         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
77
78         * cppinit.c (builtin_array): Add entries for the named operators.
79         * cppexp.c (lex): Check for CPP_DEFINED token.
80         (priority table): Add entries for CPP_MIN and CPP_MAX.
81         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
82
83 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
84
85         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
86         larger than the array of cuids.
87         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
88         cuids.
89
90 2000-07-19  Bruce Korb  <bkorb@gnu.org>
91
92         * fixinc/fixincl.c:  Convert to using a table of environment variables
93         and activate the auto-edit marker on the fixed output files.
94         * fixinc/fixlib.h:  Define the environment table
95         * fixinc/fixincl.sh: export the ${INPUT} dir
96         * fixinc/check.tpl: likewise
97
98 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
99
100         * gcc.c (.h spec): Fix typo.
101
102 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
103
104         * Makefile.in: Fix tradcif.c path.
105
106 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
107
108         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
109           macros, not five.
110
111         * cpphash.h (TOKEN_NAME): New macro.
112         (_cpp_spell_operator): Deleted.
113         (token_spellings): Now _cpp_token_spellings.
114
115         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
116         * cpplex.c: Use OP and TK macros when expanding the
117         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
118         store the stringification of the enumeration name (CPP_CHAR,
119         etc.) in the name slot of token_spellings.
120         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
121         token_spellings directly.
122         * cpplib.c: Use TOKEN_SPELL.
123
124         * cpplex.c (_cpp_push_token): If the token being pushed back
125         is the previous token in this context, just subtract one from
126         context->posn.
127         * cppmacro.c (save_expansion): Clear aux field when storing a
128         placemarker.
129
130 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
131
132         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
133         buffer, provided it is not NULL.
134
135 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
136
137         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
138         case of invalid volatile re-declaration.
139
140 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
141
142         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
143         (expand_call): Adjust caller.
144
145 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
146
147         * diagnostic.h (report_diagnostic): Change prototype.
148
149         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
150         diagnostic_for_decl):  Change prototype.
151         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
152         error, warning, error_with_file_and_line,
153         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
154         Adjust call to report_diagnostic, diagnostic_for_decl.
155         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
156         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
157
158         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
159         varaible argument list.
160
161 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
162
163         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
164         moved to cppmacro.c.
165         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
166         dump_hash_helper): Delete.
167         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
168         cpp_forall_identifiers): New. Implement specialized version of
169         Vlad's expandable hash table.
170         (cpp_lookup): Use new functions.
171         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
172         implementation.
173         * cppmacro.c: New file.
174         * cppinit.c (dump_macros_helper): New.
175         (cpp_finish): Iterate over the identifier table directly.
176         * cpplex.c (parse_name): Calculate the hash of the identifier
177         while we scan it.  Use _cpp_lookup_with_hash when we can.
178
179         * cpphash.h: Update prototypes.
180         (xcnewvec, HASHSTEP): New helper macros.
181         * cpplib.h: Update prototypes.
182         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
183         (cppmacro.o): New rule.
184         (cpphash.o): Update deps.
185
186         * cppmain.c: Do not set pfile->printer if no_output is on.
187
188 2000-07-15  Neil Booth  <neilb@earthling.net>
189
190         * cpplib.c: Change all directive-handler functions to return
191         void, not int.
192         * cpphash.h: Update typedefs.
193
194 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
195
196         * configure: Regenerate.
197
198         * extend.texi (Extended Asm): Mention that a memory clobber
199         does not count as a side-effect.
200
201         * unroll.c (copy_loop_body): Fix one instance of using host
202         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
203         cross-compile.
204
205         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
206
207 2000-07-17  Richard Henderson  <rth@cygnus.com>
208
209         * config/ia64/ia64.md (movdi): Split out load address code.
210         New post-reload splitter for symbolic operands.
211         (movdi_internal): Abort if we didn't split symbolic operands
212         when we should have.
213         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
214         (ia64_reorg): Split insns when not optimizing.
215         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
216
217 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
218
219         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
220         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
221
222 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
223
224         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
225
226 2000-07-17  Jason Merrill  <jason@redhat.com>
227
228         * Makefile.in (clean): Remove libgcc directory.
229
230         * configure.in (-Wno-long-long check): Use higher-level macros.
231
232 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
233
234         * simplify-rtx.c (simplify_binary_operation): Recognize
235            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
236         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
237            a CONST_INT, it will always be zero.
238
239 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
240
241         * loop.c (check_dbra_loop) : Return if more than one condition is
242         present to control the loop.
243
244 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
245
246         * mips.c (mips_expand_prologue): Don't calculate the last argument
247         register unless we need it.  When we are calculating this, make
248         sure FUNCTION_ARG is giving us a REG.
249
250 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
251
252         * flow.c (libcall_dead_p): Use single_set to verify the insn
253         has only one set and get for analysis.
254         (propagate_one_insn): Don't pass the PATTERN of the insn.
255
256 2000-07-17  Mark Klein <mklein@dis.com>
257
258          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
259
260 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
261
262         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
263         * configure.in (TARGET_GETGROUPS_T): Evaluate.
264         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
265         of second argument of getgroups.
266         * configure, config.in: Rebuilt.
267
268 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
269
270         * simplify-rtx.c (simplify_relational_operation): Two signed
271         values with equal high words are less/greater than each other if
272         their low words are less/greater when considered as unsigned.
273
274 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
275
276         * configure.in (vax-*-openbsd):  Change to new style configuration,
277         add collect2/float_format information.
278         * configure:  Rebuilt.
279         * config/vax/openbsd1.h:  New.
280         * config/vax/openbsd.h:  New.
281         * config/vax/t-openbsd:  New.
282
283 2000-07-17  Chip Salzenberg  <chip@valinux.com>
284
285         * c-common.c (shorten_compare): Quiet warnings about unsigned
286         comparisons with zero when they occur in a system header.
287
288 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
289
290         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
291         update to describe current practice.
292
293         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
294
295         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
296         references to C9X.  Change references to -fstd and -flang-isoc9x
297         to refer to -std.
298
299         * c-common.c (scan_char_table): Allow "z" length modifiers on
300         diouxXn formats.
301         (check_format_info): Use TYPE_DOMAIN on the type matched against
302         for "z" formats, to retrieve the language size_t rather than the
303         internal one.
304
305         * c-common.c (check_format_info): Do not make a pedantic objection
306         to the 'L' length modifier if used with a floating point type
307         character.
308
309         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
310         constants in C99 mode.
311
312 2000-07-17  Kazu Hirata  <kazu@hxi.com>
313
314         * h8300.md: Fix the format of mac.
315         (movsi_h8300hs): Output a tab after stmac instead of a space.
316
317         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
318         profitable adds/subs sequences.
319
320         * fold-const.c: Fix comment typos.
321
322 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
323
324         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
325
326 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
327
328         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
329
330 2000-07-16  Neil Booth  <NeilB@earthling.net>
331
332         * cpplex.c: Update comments.
333         * README.Portability: Small update.
334
335 2000-07-16  Neil Booth  <NeilB@earthling.net>
336
337         * README.Portability:  Small update.
338
339 2000-07-15  Richard Henderson  <rth@cygnus.com>
340
341         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
342         * config/ia64/ia64.c (ia64_move_ok): New function.
343         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
344         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
345
346 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
347
348         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
349         immediately following a paste operator.
350         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
351         (cpp_reader_init): Call it, if HOST_EBCDIC.
352         (cpp_handle_options): Do not sort option list here.
353         (handle_option): Rename to cpp_handle_option and export.
354         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
355         _cpp_get_token directly.
356         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
357         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
358         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
359         cpp_scan_line.
360
361 2000-07-15  Richard Henderson  <rth@cygnus.com>
362
363         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
364         cast around an expression.  Tidy other unsigned tests.
365
366 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
367
368         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
369         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
370         (v_message_with_decl): Rename to ...
371         (format_with_decl): ... this. Tweak
372         (diagnostic_for_decl): New function.
373         (fatal_io_error): Use verbatim in lieu of notice.
374         (announce_function): Use verbatim.
375         (default_print_error_function): Likewise.
376         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
377         infratructure.
378
379 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
380
381         * mips.c (function_arg_pass_by_reference): Don't do automatic
382         aggregate initialization.
383         (machine_dependent_reorg): Initialize variable `mode'.
384
385         * mips.md (absdi2): Change variable `regno1' to unsigned int.
386         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
387         conflicts with sys/param.h macro of the same name.
388         (reload_outdi): Likewise.
389
390 2000-07-15  Michael Meissner  <meissner@redhat.com>
391
392         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
393         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
394         create a new node instead.
395
396 2000-07-15  Neil Booth  <NeilB@earthling.net>
397
398         * README.Portability: Correct example about calling a function
399         through a pointer to function.  Format wide paragraphs.
400
401 2000-07-15  Michael Meissner  <meissner@redhat.com>
402
403         * README.Portability: Update integer suffixes and function
404         prototype sections.
405
406 2000-07-15  Neil Booth  <NeilB@earthling.net>
407
408         * README.Portability: Small update.
409
410 2000-07-15  Neil Booth  <NeilB@earthling.net>
411
412         * README.Portability: New file.
413
414 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
415
416         * INSTALL: Give special instructions for building GCC on Irix 6.
417         * config/mips/x-iris6 (CC): Don't set it.
418         (OLDCC): Likewise.
419
420 2000-07-14  Jason Merrill  <jason@redhat.com>
421
422         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
423         register in the stack and later in another register, use the new
424         register.
425
426 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
427
428         * config/mips/mips.md: (absdi2): Handle sign_extend for
429         second operand.
430
431 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
432
433         * cpplib.c (do_pragma_dependency): Tidy warning messages.
434
435 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
436
437         * .cvsignore: Correct typo.
438
439 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
440
441         * .cvsignore: Add generated YACC files.
442         * objc/.cvsignore: New file.
443
444 2000-07-14  Neil Booth  <NeilB@earthling.net>
445
446         * cpplex.c (adjust_column): New funcion.
447         (skip_whitespace): Use it.
448         (skip_block_comment): Use it, and warn about /*/* with
449         -Wcomments.
450
451 2000-07-14  Neil Booth  <NeilB@earthling.net>
452
453         * cpphash.c (struct macro_info): Add new members.
454         (_cpp_free_definition): Delete the macro directly.
455         (count_params): Return void, with first token of
456         expansion in struct macro_info on success.
457         (parse_define): Return int.  Hoist syntax checking from
458         save_macro_expansion.  Leave call to save_expansion to
459         _cpp_create_definition.
460         (alloc_macro): Needs just 2 arguments.
461         (free_macro): Delete.
462         (save_expansion): Don't perform syntax check.
463         (_cpp_create_definition): Call save_expansion.
464
465 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
466
467         * genrecog.c (write_header): Split long string.
468
469         * cpphash.c (macro_info): Don't use the `signed' keyword.
470
471         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
472
473 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
474
475         * calls.c (stored_args_map): New variable.
476         (check_sibcall_argument_overlap_1): New.
477         (check_sibcall_argument_overlap): New.
478         (expand_call): Initialize stored_args_map.
479         Call check_sibcall_argument_overlap.
480
481 2000-07-13  Bruce Korb  <bkorb@gnu.org>
482
483         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
484         (emit_gnu_type): utility procedure for gnu_type_fix
485         (gnu_type_fix): implement various pre-processor guards around
486         standard types so these types can be defined over and over
487         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
488         types alluded to above will have GNU-compliant base types
489         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
490         * fixinc/inclhack.def: add test_text entries and utilize the new
491         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
492         * fixinc/fixincl.x: regenerate
493
494 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
495
496         * diagnostic.c (vline_wrapper_message_with_location,
497         v_message_with_file_and_line, v_error_with_file_and_file,
498         v_error_for_asm, v_warning_for_asm, vfatal,
499         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
500         vsorry, verror, vwarning, vpedwarn): Remove.
501         (diagnostic_for_asm): New function.
502         (pedwarn, error, warning, pedwarn_with_file_and_line,
503         error_with_file_and_line, warning_with_file_and_line, sorry,
504         error_for_asm, warning_for_asm, fatal): Reimplement.
505         (finish_diagnostic): Clear diagnostic info as well.
506
507 2000-07-13  Neil Booth  <NeilB@earthling.net>
508
509         * c-common.h (flag_digraphs): New.
510         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
511         * c-lex.c (yylex): Use flag_digraphs to decide whether to
512         honour digraphs.
513
514 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
515
516         * gcc.c (do_spec_1): Add new %B operator.
517         (set_input): Prepare for %B.
518
519         (link_command_spec): Move up with the other tm.h-
520         overrideable specs.  Factor out the portion conditional on
521         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
522         (struct compiler): Just have a single spec string.  All users
523         updated.
524         (default_compilers): Remove unnecessary braces.
525         (static_specs): Update.
526
527         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
528         named specs.
529         (C and assembly specs): Use the new named specs, as appropriate.
530
531         * objc/lang-specs.h: Use the new named specs.
532         Remove unnecessary braces.
533
534 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
535
536         * gcc.c (execute): If a subprocess gets a fatal signal, report
537         strsignal() of the signal number, and ask for a bug report.
538         Do not do this for SIGPIPE if there's already been an error.
539
540         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
541         Delete pipe_closed.
542
543         * tradcif.c: Remove.
544
545 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
546
547         * final.c (profile_function): Do not emit profile counters in
548         the data section, if NO_PROFILE_COUNTERS is defined.
549         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
550         FUNCTION_PROFILER.
551
552         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
553         (FUNCTION_PROFILER): Just emit a call to mcount.
554
555 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
556
557         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
558
559         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
560         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
561         traditional, lang_chill, or lang_fortran.
562
563         * cppfiles.c: #undef strcmp to suppress warning about macros
564         used without arguments.
565         (_cpp_execute_include): Use f, not fname, in "No include path"
566         error.
567         (_cpp_pop_file_buffer): New function.
568         * cpplib.c: Don't include <sys/mman.h>.
569         (cpp_push_buffer): Set line_base and lineno in new buffer.
570         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
571
572         * cpplex.c: Move all prototypes and structure declarations to the
573         top of the file.  Properly parenthesise some macro arguments.
574         (cpp_scan_line): New function.
575         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
576         don't need to walk up the stack counting.
577
578 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
579
580         * c-common.c (combine_strings): Emit a pedantic warning when a
581         string length is greater than the minimum ANSI C is required
582         to support.
583
584 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
585
586         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
587         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
588
589 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
590
591         * c-decl.c (define_label): Warn about identifier conflicts with
592         labels in traditional C.
593
594         * c-parse.in (unop +): Warn about the unary plus operator for
595         traditional C.
596
597         * c-typeck.c (store_init_value): Warn about automatic aggregate
598         initialization for traditional C.
599
600         * invoke.texi (-Wtraditional): Document new warnings.
601
602 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
603
604         * Makefile.in (c-errors.o): Fix thinko in dependency.
605
606 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
607
608         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
609         -traditional, -ftraditional, or -traditional-cpp was given.
610         Do not pass -traditional to the preprocessor.
611         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
612         preprocessor does it automatically.
613         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
614
615         * ch/lang-specs.h: Always use tradcpp.  Do not pass
616         -traditional, -trigraphs, or -pedantic to the preprocessor.
617         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
618         _LANGUAGE_FORTRAN.
619
620 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
621
622         * cppexp.c (LOGICAL): Delete macro.
623         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
624         and && directly.
625
626         * cpphash.c (HASHSIZE): Increase to 4096.
627         (struct hashdummy): Add hash field.
628         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
629         the string values using memcmp.
630         (cpp_lookup): Set dummy.hash.
631
632 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
633
634         * configure.in (m88k-openbsd): Express configuration using new fragment
635         style.
636         * configure: Rebuilt.
637         * m88k/aout-dbx.h: New.
638         * m88k/openbsd.h: New.
639         * m88k/xm-openbsd.h: New.
640
641 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
642
643         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
644
645 2000-07-12  Richard Henderson  <rth@cygnus.com>
646
647         * reload.c (push_secondary_reload): Make sure to add the new
648         reload at the end, after acquiring secondary memory.
649
650 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
651
652         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
653
654         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
655         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
656
657         * c-parse.in (stmt): Delete unused variables.
658
659         * convert.c (convert_to_vector): Likewise.
660
661         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
662
663         * tree.c (finish_vector_type): Prototype.
664
665 2000-07-12  Bruce Korb  <bkorb@gnu.org>
666
667         * fixinc/fixfixes.c: use xmalloc
668         * fixinc/fixincl.c(initialize): set program name for xmalloc
669         * fixinc/fixlib.c(must_malloc): obsolete
670         (is_cxx_header): no longer used - disabled
671         (skip_quote): inserted and disabled for future use
672         * fixinc/fixlib.h: reflects above
673         * fixinc/fixtests.c: removed dinkleberries
674
675 2000-07-12  Neil Booth  <NeilB@earthling.net>
676
677         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
678         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
679
680         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
681         struct toklist_dummy): New.
682         (cpp_free_definition): Free macros with free_macro.
683         (count_params): Don't save paramter spellings.  Save macro
684         information in a struct macro_info.
685         (parse_define): Don't allocate a token list.
686         (save_expansion): Allocate the macro's token list, and
687         save parameter spellings if necessary.  Use TOKEN_SPELL.
688         (cpp_create_definition): Make list const.
689
690 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
691
692         * c-typeck.c (pedwarn_c99): Move to
693         * c-errors.c: ... Here.
694         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
695         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
696         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
697         (c-errors.o): List dependency.
698
699 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
700
701         * c-parse.c: Remove.
702         * c-parse.h: Likewise.
703         * c-parse.y: Likewise.
704         * objc/objc-parse.c: Likewise.
705         * objc/objc-pasre.y: Likewise.
706
707 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
708
709         * gcc.texi: Fix minor typos
710         * extend.texi: Fix minor typos
711
712 2000-07-11  Marc Espie <espie@openbsd.org>
713
714         * collect2.c (main): Recognize .lo as object files.
715
716 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
717
718         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
719         true.
720
721         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
722         with MAP_ANONYMOUS and MAP_ANON.
723         * configure, config.in: Rebuilt.
724
725 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
726
727         * diagnostic.c (save_output_state): Remove.
728         (restore_output_state): Likewise.
729         (clear_text_info): New function.
730         (clear_diagnostic_info): Likewise.
731         (output_text_length, is_starting_newline, output_prefix,
732         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
733         prefixing_policy, output_buffer_ptr_to_format_args): New macros
734         (set_real_maximum_length, output_set_maximum_length,
735         output_set_prefix, output_get_prefix, output_set_maximum_length,
736         output_destroy_prefix, init_output_buffer,
737         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
738         output_add_newline, output_add_character, output_add_space,
739         output_append_r, output_append, wrap_text, output_format,
740         output_do_printf, output_printf, output_do_verbatim,
741         output_verbatim, verbatim): Use them.
742         (output_clear): Split into cleat_text_info and
743         clear_diagnostic_info.
744         (struct output_state): Move to...
745
746         * diagnostic.h: ...Here
747         (struct output_buffer): Adjust.
748
749 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
750
751         * cpplex.c (parse_name): No longer inline (premature optimization).
752         (do_pop_context): Fold into pop_context.
753         (pop_context): Returns int.
754         (lex_next): Hoist test for end of directive into pop_context.
755         (push_macro_context): Returns int; takes just reader and token.
756         Hoist test for excessive nesting to caller.
757         (push_arg_context): Returns void; takes just reader and token.
758         Do not call stringify_arg or get_raw_token.
759         (get_raw_token): Convert tail recursion through push_arg_context
760         to a loop at this level.  Call stringify_arg here if appropriate.
761         (maybe_paste_with_next): Convert tail recursion to a while loop.
762         Hoist test of paste_level to caller.
763
764         (stringify_arg): Push arg context at beginning.
765         (cpp_get_token): Split out core into _cpp_get_token.  Call
766         process_directive here.  Throw away CPP_PLACEMARKER tokens.
767         (_cpp_get_token): Convert tail recursion through
768         push_macro_context to a loop at this level.
769         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
770         _cpp_get_raw_token): Use _cpp_get_token.
771         (_cpp_skip_rest_of_line): Drop the context stack directly; do
772         not call pop_context.
773         (_cpp_run_directive): Call lex_next directly.
774
775         * cpphash.h: Prototype _cpp_get_token.
776         * cppexp.c (lex): Use it.
777         * cpphash.c (parse_define): Use it.
778         * cpplib.c (get_define_node, do_undef, parse_include,
779         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
780         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
781         parse_ifdef, validate_else): Use it.
782         (cpp_push_buffer): Tweak error message; abort if anyone tries
783         to push a buffer while macro expansions are stacked.
784
785 2000-07-11  Donn Terry  <donnte@microsoft.com>
786
787         * cpplex.c (free_macro_args, save_token): Cast arg of free
788         and/or xrealloc to PTR.
789         (_cpp_init_input_buffer): Clear all fields of the base context.
790
791 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
792
793         * gensupport.c (process_rtx): Make rtl checking stop
794         complaining about the define_insn while it is being
795         converted from a define_insn_and_split.
796
797 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
798
799         * config/mips/mips.c (simple_memory_operand): Access the
800         INTVAL of the address, not it's containing MEM.
801
802 2000-07-11  Bruce Korb  <bkorb@gnu.org>
803
804         * fixinc/fixtests.c(double_slash): obsolete
805         (else_endif_label): likewise
806         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
807         (libc1_ifdefd_memx): correct initial comment
808         and omit the #if/#endif pair from the memxxx declarations
809         * fixinc/fixincl.x: regen
810
811 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
812
813         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
814
815 2000-07-11  Neil Booth  <NeilB@earthling.net>
816
817         * cpp.texi: Update.
818
819 2000-07-11  Neil Booth  <NeilB@earthling.net>
820
821         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
822         (handle_option): Set digraphs according to standard.
823         Merge OPT_lang_c89 handler with OPT_std_c89.
824
825         * cpplex.c: (lex_line, can_paste): Honour digraphs in
826         accordance with the digraphs flag.
827
828         * cpplib.h: (struct cpp_options): New option digraphs.
829
830 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
831             Bruce Korb  <bkorb@gnu.org>
832
833         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
834         * fixinc/fixincl.x: Regenerate.
835         * fixinc/tests/base/testing.h: Add testcase.
836
837 2000-07-10  Richard Henderson  <rth@cygnus.com>
838
839         * config/ia64/ia64.c (got_symbolic_operand): New.
840         (symbolic_operand, move_operand): Revert 0701 change.
841         * config/ia64/ia64.h (PREDICATE_CODES): Update.
842         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
843         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
844         split the offset into a 14-bit low part instead of a 13-bit low part.
845         (load_fptr): Mark the mem as unchanging.
846         (load_symptr): Use got_symbolic_operand.
847
848 2000-07-10  Nick Clifton  <nickc@cygnus.com>
849
850         * libgcc2.c (next_stack_level): Cast result of computation to
851         (void **) so that the assignment does not generate a warning.
852
853 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
854
855         * flags.h : Add new variable flag_single_precision_constant.
856         * toplev.c (display_help) : Add -fsingle-precision-constant option.
857         (flag_single_precision_constant): New.
858         * c-lex.c (yylex): Convert floating point constant to single
859         precision constant.
860         * invoke.texi : Add documentation for this new option.
861
862 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
863
864         * diagnostic.c (output_octal): Second parameter is unsigned.
865         (output_long_octal): Likewise.
866         (output_hexadecimal): Likewise.
867         (output_long_hexadecimal): Likewise.
868         (output_format): Adjust arguments extraction. Tweak.
869         (output_verbatim, verbatim): End variable argument list.
870         (report_diagnostic): Improve documentation.
871
872 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
873
874         * c-common.h (build_stmt): Declare.
875         (build_continue_stmt): Likewise.
876         (build_break_stmt): Likewise.
877         (build_return_stmt): Likewise.
878
879         * c-decl.c (do_case): Rewrite to do what previously done in
880         c-parse.in.
881
882         * c-semantics.c (build_stmt): Define.
883         (build_return_stmt): Likewise.
884         (build_break_stmt): Likewise.
885         (build_continue_stmt): Likewise.
886         (build_case_label): Likewise.
887
888         * c-parse.in (BREAK): Change to build tree, then generate RTL.
889         (CONTINUE): Likewise.
890         (RETURN): Likewise.
891         (CASE): Likewise.
892         (DEFAULT): Likewise.
893
894         * c-parse.y: Regenerate.
895         * c-pasre.c: Likewise.
896
897 2000-07-09  Jason Merrill  <jason@redhat.com>
898
899         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
900
901         * tree.h (STRIP_NOPS): Check for error_mark_node.
902         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
903         (dwarf2out_*): Remove duplicate declarations.
904
905         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
906         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
907
908 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
909
910         * diagnostic.c (wrap_text): New function.
911         (maybe_wrap_text): Likewise.
912         (output_add_string): Use it.
913         (output_format): Likewise.
914         (count_error): Use verbatim instead of notice.
915         (report_error_function): Likewise. Don't use plain fprintf.
916         (finish_diagnostic): New function.
917         (output_do_verbatim): Tweak.  Commonalize functionalities in
918         output_verbatim and verbatim.
919         (output_verbatim): Adjust.
920         (verbatim): Likewise.
921         (report_diagnostic): Define.
922
923         * diagnostic.h (report_diagnostic): Prototype.
924
925 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
926
927         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
928
929 2000-07-09  Neil Booth  <NeilB@earthling.net>
930
931         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
932         IShspace, ISspace: Update.
933
934         * cppinit.c: ISTABLE: Update.
935         V: New.
936
937         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
938         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
939         (skip_block_comment, skip_line_comment, parse_string,
940         lex_line): Use is_vspace rather than IS_NEWLINE.
941         (skip_whitespace, lex_line): Clean up to use is_nvspace.
942         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
943         gets a BOL flag.
944         (lex_next): Unconditionally stop if within a directive.
945         Treat directives within macro invocations as directives
946         (after parse_args emits error), not as the argument.
947
948 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
949
950         * diagnostic.c (diagnostic_args): New macro.
951         (diagnostic_msg): Likewise.
952         (output_formatted_integer): Likewise.
953         (output_state): New data type.
954         (digit_buffer): Make global.
955         (output_add_integer): Rename to output_decimal. Squeeze
956         digit_buffer.
957         (output_long_decimal, output_unsigned_decimal,
958         output_long_unsigned_decimal, output_octal, output_long_octal,
959         output_hexadecimal, output_long_hexadecimal): New functions.
960         (output_append_r): New function.
961         (output_append): Tweak.
962         (output_flush_on): Rename to output_to_stream.
963         (output_format): Change prototype.  Improve documentation. Handle
964         more format specifiers.
965         (build_location_prefix): Rename to context_as_prefix.
966         (output_notice): Rename to output_do_printf.
967         (output_printf): Tweak.
968         (line_wrapper_printf): Likewise.
969         (vline_wrapper_message_with_location): Adjust call to renamed
970         functions.
971         (v_message_with_decl): Likewise.
972         (default_print_error_function): Likewise.
973         (save_output_state): New function.
974         (restore_output_state): Likewise.
975         (output_do_verbatim): Likewise.
976         (output_verbatim): Define.
977         (verbatim): Likewise.
978
979         * diagnostic.h (printer_fn): Change return type from void to int.
980         Improve documentation.
981         (output_add_integer): Rename to output_decimal.
982         (output_flush_on, output_format): Don't export.
983         (output_verbatim, verbatim): Declare.
984
985 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
986
987         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
988         Check whether c divides op1 exactly if operation is not
989         multiplication.
990
991 2000-07-08  Richard Henderson  <rth@cygnus.com>
992
993         * final.c (final): Do not abort when reg-stack introduces
994         a new insn.
995
996 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
997
998         * cpplib.h (struct cpp_name): Now struct cpp_string.
999         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
1000         CPP_HEADER_NAME): Change to type S.
1001         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
1002         field, a cpp_hashnode *.  All references to val.name updated
1003         to use val.str or val.node as appropriate.
1004         (struct cpp_reader): Add spec_nodes field.
1005         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
1006
1007         * cpphash.h (struct spec_nodes): New.
1008         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
1009         val.str.  All references to 'spelling > SPELL_NONE' updated to
1010         match.
1011
1012         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
1013         pfile->buffer->inc are not NULL before dereferencing them.
1014
1015         * cpplex.c (parse_name): Take a pointer to the current token,
1016         plus current position and limit as args; return the new
1017         position; don't copy the text of a name into the string
1018         buffer, instead call cpp_lookup and store the node pointer.
1019         If extending a token, copy out the text of the old into a
1020         scratch buffer, append the new, look that up and store the new
1021         node pointer.  Inline.
1022         (maybe_paste_with_next): If the result of paste is a NAME,
1023         then look up the pasted text and store its node pointer.
1024         (lex_line): Adjust for new parse_name interface.
1025         Check for L"str", L'str' using spec_nodes->n_L.
1026         (spell_token): SPELL_IDENT tokens have their spelling in
1027         val.node->name.  Handle SPELL_STRING tokens that don't have
1028         string delimiters.
1029         (_cpp_expand_name_space,
1030         (can_paste): Check for L ## "str" using spec_nodes->n_L.
1031         (cpp_get_token, special_symbol): No need to call cpp_lookup.
1032         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
1033         return 1=equal 0=not, not a tristate.
1034
1035         * cpphash.c (var_args_str): Delete.
1036         (find_param): Compare node fields directly.
1037         (is__va_args__): Use CPP_PEDANTIC.  Just compare
1038         token->val.node with spec_nodes->n__VA_ARGS__.
1039         (dump_funlike_macro): Don't use var_args_str.
1040
1041         * cpplib.c (_cpp_check_directive): Just walk through
1042         spec_nodes->dirs comparing pointers.
1043         (get_define_node, do_pragma_poison, detect_if_not_defined,
1044         parse_ifdef): The identifier has already been looked up.
1045         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
1046         node.
1047         (do_if): Only call detect_if_not_defined at beginning of file.
1048         (_cpp_parse_assertion): Only copy string pointers for
1049         SPELL_STRING tokens.
1050         (pragma_dispatch): Take a node pointer and examine its name
1051         field.
1052         (_cpp_init_stacks): Also initialize the spec_nodes structure.
1053
1054         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
1055         _cpp_init_macros.
1056         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
1057         reverse order from the corresponding _cpp_init_* routines.
1058
1059         * cppexp.c (parse_number, parse_charconst, parse_defined,
1060         lex): Check val.node->type instead of calling cpp_defined.
1061         Use spec_nodes entries where appropriate.
1062
1063         * fix-header.c, scan-decls.c: Update for interface changes.
1064
1065 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
1066
1067         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
1068         emitting aux_truncdfsf2.
1069
1070 2000-07-03  Donn Terry  (donnte@microsoft.com)
1071
1072         * cppinit.c (print_help): split overlong line into ISO C89
1073         maximum chunks.
1074
1075 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
1076
1077         * cppexp.c: Update all code for new lexer interface.
1078         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
1079         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
1080         * cpplex.c (token_names): Trim leading CPP_ from names; make
1081         the strings unsigned.
1082         (_cpp_spell_operator): New.
1083         (is_macro_disabled): Disable all macros if rescanning
1084         preprocessed text.
1085         (_cpp_get_directive_token): Remove.
1086
1087         * cppinit.c: Don't set no_macro_expand.
1088         * cpplib.c (read_line_number, do_line): Check only for EOF,
1089         not VSPACE.
1090         * cpphash.h: Update prototypes.
1091         * cpplib.h (CPP_VSPACE): Remove.
1092         (struct cpp_reader): Remove no_macro_expand.
1093
1094 2000-07-08  Neil Booth  <NeilB@earthling.net>
1095
1096         * cpphash.c (is__va_args__): New function.
1097         (count_params): Fix line reported in error messages.  Use
1098         is__va_args__.  Don't return ')' on error.  Flag GNU style
1099         rest args macro definitions.
1100         (parse_define): Check macro name is not __VA_ARGS__.
1101         (save_expansion): Check identifier in non-varargs-macro is
1102         not __VA_ARGS__.  Don't flag GNU_VARARGS.
1103         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
1104         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
1105          than per-token GNU_VARARGS.
1106         * cpplib.h (GNU_VARARGS): Remove.
1107         (GNU_REST_ARGS): New.
1108
1109 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1110
1111         * i386.md (call_pop, call, call_value_pop): Do not set
1112         current_function_uses_pic_offset_table for calls to static
1113         functions or indirect calls.
1114
1115 2000-07-07  Jim Wilson  <wilson@cygnus.com>
1116
1117         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
1118         is_predicate_reg, then take max write_count of register pair.
1119
1120 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1121
1122         * tradcpp.c (main): Rename label `include' to `add_include' to
1123         avoid conflicts with variable `include' in traditional C.
1124
1125 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
1126
1127         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
1128
1129 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
1130
1131         * sibcall.c (uses_addressof): Add INMEM argument, check for
1132         current_function_internal_arg_pointer outside of MEM rtxs in addition
1133         to ADDRESSOFs.
1134         (sequence_uses_addressof): Update caller.
1135
1136 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
1137
1138         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
1139         and friends.
1140
1141 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1142
1143         * system.h (UNION_INIT_ZERO): New macro for initializing union
1144         members in structs.
1145
1146         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
1147
1148 2000-07-07  Neil Booth  <NeilB@earthling.net>
1149
1150         * cpp.texi: Update.
1151
1152 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
1153
1154         * final.c (final): Detect out of bounds array access to
1155         the insn_lengths array.
1156
1157 2000-07-07  Kazu Hirata  <kazu@hxi.com>
1158
1159         * fold-const.c (fold): Fix a comment typo.
1160
1161 2000-07-07  Neil Booth  <NeilB@earthling.net>
1162
1163         * cpp.texi: Update to new lexer.
1164
1165 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
1166
1167         * tradcpp.c: New file.
1168         * tradcif.y: New file.
1169         * tradcif.c: New generated file.
1170
1171         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
1172         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
1173         dependencies of C.  Install tradcpp from install-common, in
1174         $(libsubdir).
1175
1176 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
1177
1178         * cppinit.c: Include cppdefault.h.  Refer to
1179         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
1180         to GCC_INCLUDE_DIR and its length.
1181         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1182         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
1183         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
1184         cppdefault.h.
1185         (include_defaults_array): Move to cppdefault.c.
1186
1187         * cppdefault.h: New file.
1188         * cppdefault.c: New file.
1189
1190         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
1191         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
1192         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
1193         this file.
1194
1195 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1196
1197         * reload.c (push_reload): When seeing if can reuse a register,
1198         check extra registers against widest of INMODE and OUTMODE.
1199
1200 2000-07-06  Neil Booth  <NeilB@earthling.net>
1201
1202         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
1203         based on full length of predicate.
1204
1205 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
1206
1207         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
1208         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
1209
1210 2000-07-05  Kazu Hirata  <kazu@hxi.com>
1211
1212         * h8300-proto.h: Fix formatting.
1213         * h8300.c: Likewise.
1214         * h8300.h: Likewise.
1215
1216 2000-07-05  Jim Wilson  <wilson@cygnus.com>
1217
1218         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
1219         CCmode.
1220
1221 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
1222
1223         * invoke.texi: Fix minor typos
1224         * md.texi: Fix minor typos
1225
1226 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
1227
1228         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
1229
1230 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
1231
1232         * cpplex.c: Don't include sys/mman.h.
1233         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
1234
1235         * cpplib.c: Include sys/mman.h and obstack.h.
1236         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
1237         obstack.
1238         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
1239         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
1240         bother freeing if stack entries (they will be freed with their buffer).
1241         (do_endif): Free if stack entries from the buffer obstack.
1242         (push_conditional): Allocate if stack entries from the buffer obstack.
1243
1244         (find_answer): Rename to _cpp_find_answer.
1245         (do_assert, do_unassert): Update.
1246
1247         * cpphash.h: Update prototypes.
1248         (xobnew): New convenience macro.
1249         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
1250         Update comments.
1251         (struct cpp_hashnode): Remove disabled field.
1252
1253         * cppinit.c: Don't include hashtab.h or splay-tree.h.
1254         (report_missing_guard): Moved to cppfiles.c.
1255         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
1256         cpp_init_includes.
1257         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
1258         cpp_cleanup_includes.  Don't destroy hashtab or
1259         all_include_files here.
1260         (cpp_finish): Use _cpp_report_missing_guards.
1261
1262         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
1263         (_cpp_init_include_table): Rename _cpp_init_includes.
1264         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
1265
1266         * cppexp.c (parse_assertion): Update for new name of
1267         find_answer.
1268
1269         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
1270
1271 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
1272
1273         * cpplib.c (do_ident): s/VSPACE/EOF/
1274
1275 2000-07-05  Neil Booth  <NeilB@earthling.net>
1276
1277         * cpplex.c: Fix trigraph replacement within strings.
1278
1279 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1280
1281         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
1282
1283         * xcoffout.c (assign_type_number): Constify.
1284         (xcoffout_source_file): Add static prototype.  Don't needlessly
1285         cast away const-ness.
1286
1287 2000-07-04  Jason Merrill  <jason@redhat.com>
1288
1289         * frame.h (frame_state): Move base_offset to end.
1290
1291 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
1292
1293         * calls.c (emit_library_call_value_1): Revert previous change.
1294
1295 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
1296
1297         * fix-header.c (struct partial_proto): Remove unnecessary fields.
1298         (recognized_extern, recognized_function, read_scan_file):
1299         Update for new scheme.
1300         (check_protection): It's still a multiple include guard even
1301         if it doesn't always trigger.
1302         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
1303         new scheme.
1304         * scan.h: Declare struct cpp_token.  Update prototypes.
1305
1306 2000-07-03  Neil Booth  <neilb@earthling.net>
1307             Zack Weinberg  <zack@wolery.cumb.org>
1308
1309         Complete overhaul of the lexer and macro expander.
1310
1311         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
1312         arg, arglist, argdata, reflist, collect_objlike_expansion,
1313         collect_funlike_expansion, collect_params,
1314         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
1315         unsafe_chars, macarg, compare_defs, special_symbol,
1316         scan_arguments, stringify, funlike_macroexpand,
1317         _cpp_quote_string, monthnames): Delete.
1318         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
1319         _cpp_create_definition, _cpp_dump_definition,
1320         dump_hash_helper): Adjust.
1321         (find_param, count_params, parse_define, var_args_str,
1322         check_macro_redefinition, save_expansion): New.
1323
1324         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
1325         parse_string, output_line_command, trigraph_replace,
1326         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
1327         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
1328         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
1329         _cpp_skip_rest_of_line): Modify.
1330
1331         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
1332         find_position, null_warning, bump_column, expand_name_space,
1333         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
1334         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
1335         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
1336         _cpp_prescan): Delete.
1337
1338         (dump_param_spelling, process_directive, lex_next,
1339         is_macro_disabled, stringify_arg, expand_context_stack,
1340         output_token, make_string_token, alloc_number_token,
1341         special_symbol, duplicate_token, maybe_paste_with_next,
1342         can_paste, prevent_macro_expansion, restore_macro_expansion,
1343         get_temp_token, release_temp_tokens, quote_string,
1344         token_names, token_spellings, _cpp_expand_name_space,
1345         _cpp_glue_header_name, _cpp_reserve_name_space,
1346         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
1347         placemarker_token, eof_token, cpp_context, macro_args,
1348         get_raw_token, parse_arg, parse_args, save_token,
1349         push_arg_context, push_macro_context, pop_context,
1350         do_pop_context, free_macro_args, _cpp_get_line,
1351         _cpp_run_directive): New.
1352
1353         * cpplib.c (validate_else, parse_include, push_conditional,
1354         pass_thru_directive, read_line_number, parse_ifdef,
1355         detect_if_not_defined, _cpp_check_directive, do_define,
1356         do_undef, do_include, do_import, do_include_next, do_error,
1357         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
1358         top_pragmas, do_pragma_gcc, do_pragma_implementation,
1359         do_pragma_poison, do_pragma_system_header,
1360         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
1361         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
1362         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
1363         cpp_defined): Update for new scheme.
1364         (strtoul_for_line, get_define_node, dump_macro_name,
1365         _cpp_check_linemarker, _cpp_parse_assertion): New.
1366         (_cpp_handle_directive, do_pragma_default): Delete.
1367
1368         * cpphash.h (struct predicate): Now struct answer.
1369         (enum spell_type, struct token_spelling, struct directive,
1370         directive_handler): New.
1371         Update prototypes.  Remove unused macros.
1372         * cpplib.h: Update prototypes.  Remove unused macros,
1373         structure definitions, and fields.
1374
1375         * cpperror.c (print_containing_files, v_message): Adjust.
1376         * cppexp.c (parse_assertion, lex, parse_escape,
1377         _cpp_parse_expr): Adjust.
1378         * cppfiles.c (open_include_file, _cpp_execute_include,
1379         _cpp_compare_file_date, cpp_read_file, read_include_file):
1380         Adjust.
1381         * cppinit.c (dump_special_to_buffer): Delete.
1382         (append_include_chain, merge_include_chains, cpp_reader_init,
1383         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
1384         cpp_finish, handle_option, print_help): Adjust.
1385         * cppmain.c (main): Adjust.
1386
1387 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
1388
1389         * cppspec.c (lang_specific_driver): Use double quotes in error
1390         message.
1391
1392 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
1393
1394         * calls.c (emit_library_call_value_1): Use valreg instead
1395         of hard_libcall_value.
1396
1397 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
1398
1399         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
1400         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
1401         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
1402         (movhi): Likewise.
1403         (movqi): Likewise.
1404         (movdf): Likewise.
1405         (movsf): Likewise.
1406         (movdi): Likewise.
1407         (movti): Likewise.
1408
1409         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
1410         mode instead of wider_mode is being used.
1411
1412 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
1413
1414         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
1415         of 'r'. Use q_regs_operand.
1416         (andsi_1+2): Use q_regs_operand.
1417
1418 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
1419
1420         * builtins.c (get_memory_rtx): Always put into alias set 0.
1421
1422 2000-07-03  Nick Clifton  <nickc@cygnus.com>
1423
1424         * config/arm/arm.md: Fix post increment and pre increment
1425         peepholes so that they do not generate UNPREDICATBLE opcodes.
1426         (ie ones where the increment clobbers the source/destination).
1427
1428 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
1429
1430         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
1431         change too big for -mtiny-stack" a warning, if larger than 63.
1432         (out_set_stack_ptr): Change the logic so -mno-interrupts is
1433         always safe to use on possible future devices.
1434         (function_prologue): Write SPH before SPL, for consistency.
1435         If interrupt_func_p true, we know we have enabled interrupts.
1436         (avr_num_arg_regs): New function.  Round up to even number of
1437         bytes if no -mpack-args or if calling a libgcc function.
1438         (function_arg, function_arg_advance): Use it.
1439         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
1440         Output "movw" if available.
1441         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
1442         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
1443         (asm_output_section_name): Add blanks for consistent output.
1444         (encode_section_info): Set TREE_READONLY for progmem data to
1445         avoid gas warnings about changed section attributes.
1446         (avr_hard_regno_mode_ok): Force non-QImode data to start in
1447         even numbered registers on devices with "movw".
1448         * config/avr/avr.h (MASK_*): Define bits for target_flags.
1449         (TARGET_SWITCHES): Mark help strings for translation.
1450         Add new -mpack-args and -menhanced switches.
1451         (TARGET_OPTIONS): Mark help strings for translation.
1452         (progmem_section): Add section attributes.
1453         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
1454         Output "movw" if available.
1455         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
1456         New patterns.
1457         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
1458         call convention (arguments aligned on even registers).
1459         (_cleanup, _exit): Make weak symbols libc can override.
1460
1461 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1462
1463         * fp-bit.h: New file.
1464
1465         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
1466         Comment #endif statements.
1467         (__thenan_sf, __thenan_df): Add missing braces around initializer.
1468
1469 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
1470
1471         * gcse.c (compute_pre_data): Compute ae_kill using other local
1472         properties instead of calling compute_ae_kill.
1473
1474         * alias.c (init_alias_analysis): Do not call
1475         prologue_epilogue_contains until after reload has completed.
1476
1477 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
1478
1479         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
1480         (genrtl_finish_compound_stmt): Likewise.
1481         (genrtl_compound_stmt): Change to return void.
1482
1483         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
1484         move code from here to ...
1485         (genrtl_compound_stmt): ... here.
1486         (genrtl_finish_compound_stmt): Remove.
1487         (expand_stmt): Add comment.
1488
1489 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
1490
1491         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
1492         and VOID_TYPE_P.
1493
1494 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
1495
1496         * cpplib.h (struct cpp_reader): New field include_depth.
1497         (struct cpp_printer): Rename last_bsd to last_id.
1498         * cppfiles.c (read_include_file): Bump include_depth.
1499         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
1500         (output_line_command): Output correct #line if a header
1501         is including itself and is not protected against multiple inclusion.
1502         Use include_depth instead of buffer_stack_depth, last_id instead of
1503         last_bsd.
1504         * cppinit.c (cpp_start_read): Initialize last_id instead of
1505         last_bsd.
1506
1507 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
1508
1509         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
1510         (c-semantics.o): New target.
1511
1512         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
1513         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
1514         (genrtl_clear_out_block): Likewise.
1515         (genrtl_goto_stmt): Likewise.
1516         (genrtl_expr_stmt): Likewise.
1517         (genrtl_decl_stmt): Likewise.
1518         (genrtl_if_stmt): Likewise.
1519         (genrtl_while_stmt): Likewise.
1520         (genrtl_do_stmt): Likewise.
1521         (genrtl_return_stmt): Likewise.
1522         (genrtl_for_stmt): Likewise.
1523         (genrtl_break_stmt): Likewise.
1524         (genrtl_continue_stmt): Likewise.
1525         (genrtl_scope_stmt): Likewise.
1526         (genrtl_switch_stmt): Likewise.
1527         (genrtl_case_label): Likewise.
1528         (genrtl_begin_compound_stmt): Likewise.
1529         (gerntl_finish_compound_stmt): Likewise.
1530         (genrtl_compound_stmt): Likewise.
1531         (genrtl_asm_stmt): Likewise.
1532         (genrtl_decl_cleanup): Likewise.
1533         (DECL_ANON_UNION_ELEMS): Likewise.
1534         (emit_local_var): Likewise.
1535         (make_rtl_for_local_static): Likewise.
1536         (expand_cond): Likewise.
1537         (expand_stmt): Likewise.
1538         (c_expand_return): Likewise.
1539         (c_expand_start_case): Likewise.
1540         (do_case): Likewise.
1541         (COMPOUND_STMT_NO_SCOPE): Likewise.
1542         (c_expand_asm_operands): Likewise.
1543         (NEW_FOR_SCOPE_P): New macro.
1544         (expand_expr_stmt_fn): New type.
1545
1546         (set_current_function_name_declared): Likewise.
1547         (current_function_name_declared): Likewise.
1548         (lang_expand_stmt): Likewise.
1549         (stmts_are_full_exprs_p): Likewise.
1550         (anon_aggr_type_p): Likewise.
1551         (lang_expand_expr_stmt): Likewise.
1552         (build_case_label): Likewise.
1553
1554         * c-decl.c (lang_expand_expr_stmt): Initialize.
1555         (stmts_are_full_exprs_p): Define.
1556         (current_function_name_declared): Likewise.
1557         (do_case): Likewise.
1558         (lang_expand_stmt): Likewise.
1559         (set_current_function_name_declared): Likewise.
1560         (anon_aggr_type_p): Likewise.
1561
1562         * c-semantics.c: New file.
1563         (expand_cond): Moved from cp/semantics.c.
1564         (genrtl_do_pushlevel): Likewise.
1565         (genrtl_clear_out_block): Likewise.
1566         (genrtl_goto_stmt): Likewise.
1567         (genrtl_expr_stmt): Likewise.
1568         (genrtl_decl_stmt): Likewise.
1569         (genrtl_if_stmt): Likewise.
1570         (genrtl_while_stmt): Likewise.
1571         (genrtl_do_stmt): Likewise.
1572         (genrtl_return_stmt): Likewise.
1573         (genrtl_for_stmt): Likewise.
1574         (genrtl_break_stmt): Likewise.
1575         (genrtl_continue_stmt): Likewise.
1576         (genrtl_scope_stmt): Likewise.
1577         (genrtl_switch_stmt): Likewise.
1578         (genrtl_case_label): Likewise.
1579         (genrtl_begin_compound_stmt): Likewise.
1580         (genrtl_finish_compound_stmt): Likewise.
1581         (genrtl_compound_stmt): Likewise.
1582         (genrtl_asm_stmt): Likewise.
1583         (genrtl_decl_cleanup): Likewise.
1584         (make_rtl_for_local_static): Moved from cp/decl.c.
1585         (emit_local_var): Likewise.
1586         (expand_stmt): Define.
1587
1588         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
1589         (c_expand_return): Likewise.
1590         (c_expand_start_case): Likewise.
1591
1592 2000-07-01  Richard Henderson  <rth@cygnus.com>
1593
1594         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
1595         with the low 13 bits set.
1596         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
1597         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
1598         of the low 13 bits into a CONST plus an adddi3.
1599         (load_symptr): Set RTX_UNCHANGING_P.
1600
1601 2000-06-30  Mark Mitchell  <mark@codesourcery.com>
1602
1603         * Makefile.in (c-common.o): Don't depend on c-tree.h or c-lex.h.
1604         * c-common.c (ridpointers): Declare.
1605         * c-common.h (enum rid): Declare.
1606         (NORID): Likewise.
1607         (ridpointers): Likewise.
1608         * c-lex.c (ridpointers): Don't declare.
1609         (init_lex): Initialize ridpointers.
1610         * c-lex.h (enum rid): Don't declare.
1611         (NORID): Likewise.
1612         (RID_FIRST_MODIFIER): Likewise.
1613         (ridpointers): Likewise.
1614
1615 2000-06-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1616
1617         * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
1618         have global scope.
1619
1620 2000-06-30  Martin von Loewis  <loewis@informatik.hu-berlin.de>
1621
1622         * invoke.texi (-Wreturn-type): In C++, a missing return type is
1623         always an error.
1624
1625 2000-06-30  Catherine Moore  <clm@cygnus.com>
1626
1627         * c-common.c (decl_attributes):  Differentiate between
1628         types and type decls for alignment.
1629
1630 2000-06-30  Nathan Sidwell  <nathan@codesourcery.com>
1631
1632         * cpp.texi: Document #pragma GCC dependency
1633         * cppfiles.c (open_include_file): Set date to unknown.
1634         (_cpp_compare_file_date): New function.
1635         (read_include_file): Set file date.
1636         * cpphash.h (struct include_file): Add date member.
1637         (_cpp_compare_file_date): Prototype.
1638         * cpplib.c (parse_include): Add trail parameter. Adjust.
1639         (do_include): Adjust parse_include call.
1640         (do_import): Likewise.
1641         (do_include_next): Likewise.
1642         (gcc_pragmas): Add dependency pragma.
1643         (do_pragma_dependancy): New pragma.
1644
1645 2000-06-29  Jason Merrill  <jason@redhat.com>
1646
1647         * dwarf2out.c (output_loc_operands): Don't abort on codes that have
1648         no operands.
1649
1650 2000-06-29  Jim Wilson  <wilson@cygnus.com>
1651
1652         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for
1653         a volatile mem and FR_REGS.
1654
1655 2000-06-29  Mark Mitchell  <mark@codesourcery.com>
1656
1657         * c-common.c: Include c-common.h, not c-lex.h or c-tree.h.
1658         * c-common.h (flag_const_strings): Declare.
1659         (warn_format): Likewise.
1660         (flag_traditional): Likewise.
1661         (flag_isoc99): Likewise.
1662         (warn_parentheses): Likewise.
1663         (warn_conversion): Likewise.
1664         (C_TYPE_OBJECT_P): Likewise.
1665         (C_TYPE_INCOMPLETE_P): Likewise.
1666         (C_TYPE_FUNCTION_P): Likewise.
1667         (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
1668         (C_EXP_ORIGINAL_CODE): Likewise.
1669         (build_unary_op): Likewise.
1670         (build_binary_op): Likewise.
1671         (lvalue_p): Likewise.
1672         (default_conversion): Likewise.
1673         (common_type): Likewise.
1674         * c-tree.h (C_TYPE_OBJECT_P): Remove.
1675         (C_TYPE_INCOMPLETE_P): Likewise.
1676         (C_TYPE_FUNCTION_P): Likewise.
1677         (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
1678         (C_EXP_ORIGINAL_CODE): Likewise.
1679         (common_type): Likewise.
1680         (default_conversion): Likewise.
1681         (build_binary_op): Likewise.
1682         (build_unary_op): Likewise.
1683         (lvalue_p): Likewise.
1684         (flag_const_strings): Likewise.
1685         (warn_format): Likewise.
1686         (warn_conversion): Likewise.
1687         (flag_traditional): Likewise.
1688         (flag_isoc99): Likewise.
1689         (warn_parentheses): Likewise.
1690
1691 2000-06-29  James E. Wilson  <wilson@cygnus.com>
1692
1693         * config/ia64/linux.h (LINK_SPEC): Change so.1 to so.2.
1694
1695         * config/ia64/ia64.h (MODES_TIEABLE_P): Only tie if mode class is the
1696         same.  Only tie XFmode with XFmode.
1697
1698 2000-06-29  Zack Weinberg  <zack@wolery.cumb.org>
1699
1700         * c-decl.c, timevar.c, tlink.c: Include intl.h.
1701         * Makefile.in: Update deps.
1702
1703 2000-06-29  Andrew Haley  <aph@cygnus.com>
1704
1705         * toplev.c (main): On an IA-64, make flag_unwind_tables defauit
1706         to true.
1707
1708 2000-06-29  Andrew Haley  <aph@cygnus.com>
1709
1710         * config/ia64/linux.h (JMP_BUF_SIZE): Size is in Pmode units, not
1711         bytes: remove the multiply by 8.
1712
1713 2000-06-29  Philipp Thomas  <pthomas@suse.de>
1714
1715         * rtl.c : Revert NLS changes.
1716         * gcc.c : Fix bug in display_help introced by my last changes.
1717
1718 Wed Jun 28 21:09:33 2000   Raja R Harinath <harinath@cs.umn.edu>
1719
1720         * dbxout.c (dbxout_symbol, case RESULT_DECL, VAR_DECL): Use
1721         DECL_CONTEXT, not DECL_FIELD_CONTEXT.
1722
1723 2000-06-29  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1724
1725         * flow.c (flow_depth_first_order_compute): Fix algorithm.
1726
1727 2000-06-28  Philipp Thomas  <pthomas@suse.de>
1728
1729         * c-decl.c : Mark strings for translation.
1730         (parmlist_tags_warning): Use distinct messages instead
1731         of conditional expressions.
1732         * diagnostic.c (v_message_with_decl): Mark string for translation.
1733         * gcc.c: Mark messages for translation.
1734         (display_help): Combine messages into one string where necessary.
1735         * mips-tfile: Add intl.h. Mark messages for translation.
1736         * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
1737         messages for translation.
1738         * timevar.c: Mark messages for translation.
1739         * tlink.c: Likewise.
1740         * toplev.c: Likewise.
1741
1742 Wed Jun 28 15:39:26 2000  Donn Terry (donnte@microsoft.com)
1743
1744         * i386-interix.h (STRIP_NAME_ENCODING): Declare _new_name properly.
1745
1746         * alpha/alpha-interix.h: Delete redundant -Asystem(interix),
1747         use -isystem instead of -idirafter.
1748         * i386/i386-interix.h: Likewise.
1749
1750 2000-06-28  Jason Merrill  <jason@redhat.com>
1751
1752         * dwarf2out.c (output_loc_operands): Don't support >1 byte output
1753         unless DWARF2_DEBUGGING_INFO is defined.
1754         (ASM_OUTPUT_DWARF_*): Wrap normal output defs with #ifndefs.
1755
1756 2000-06-28  Richard Henderson  <rth@cygnus.com>
1757
1758         * config/alpha/alpha.c (summarize_insn): Ignore SCRATCH.
1759
1760 2000-06-28  Jakub Jelinek  <jakub@redhat.com>
1761
1762         * cpplex.c (output_line_command): Output correct #line if a header
1763         is including itself and is not protected against multiple inclusion.
1764
1765 2000-06-28  Zack Weinberg  <zack@wolery.cumb.org>
1766
1767         * cppfiles.c (open_include_file): If open(2) returns EMFILE or
1768         ENFILE, close all cached file descriptors and try again.
1769         (_cpp_execute_include): Keep a count of the number of times
1770         each header is included.
1771         (close_cached_fd): New function.
1772         * cpphash.h (struct include_file): Rename before to
1773         include_count; all users updated.  Make include_count and sysp
1774         unsigned short.
1775         * cppinit.c (cpp_finish): If -H, report headers that could use
1776         reinclude guards.
1777         (report_missing_guard): New function.
1778
1779 Wed Jun 28 14:46:58 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1780
1781         * i386.md (prologue_set_got): Set length_immediate field.
1782         (testqi_ccno_1):  Add missing '@' character.
1783
1784 2000-06-27  Jason Merrill  <jason@redhat.com>
1785
1786         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Use
1787         DWARF_FRAME_REGNUM.
1788
1789 2000-06-27  Andrew Macleod <amacleod@cygnus.com>
1790
1791         * dwarf2out.c (ASM_OUTPUT_DWARF_DATA2): Provide default when no
1792         unsigned macros available.
1793
1794 2000-06-27  Richard Henderson  <rth@cygnus.com>
1795
1796         * config/ia64/ia64.c (emit_insn_group_barriers): Special case
1797         epilogue_deallocate_stack.
1798
1799         * config/ia64/ia64.c (ia64_print_operand) [case D]: Emit
1800         completers for UNORDERED and ORDERED as well.
1801         * config/ia64/ia64.md (bunordered, bordered): New.
1802         (sunordered, sordered): New.
1803
1804 Tue Jun 27 12:14:12 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1805
1806         * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
1807         * i386.c (ix86_attr_length_default): Kill.
1808         (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1809         New.
1810         * i386-protos.h (ix86_attr_length_default): Kill
1811         (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1812         Add prototype
1813         * i386.md (attribute type): Add "test".
1814         (attribute length_prefix): Kill.
1815         (attribute length_opcode): Kill.
1816         (attribute i387, mode, length_immediate, length_address, prefix_data16,
1817         prefix_rep, prefix_0f, modrm): New.
1818         (attribute length): Compute using the new attributes.
1819         (attribute pent_prefix): New.
1820         (attribute pent_pair): Compute using pent_prefix.
1821         (all insn patterns): Set mode,modrm and immediate_length attributes where
1822         needed.
1823         (cmpsi patterns): Compute sizes propertly for test instruction.
1824         (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
1825         (movstricthi_xor, movstrictqi_xor): New patterns.
1826         (andsi/andhi): Use splitters to generate xor instructions.
1827         (xorqi_ext_1): New pattern.
1828         (movstricthi->movstricthi_xor peep2): New.
1829
1830 Tue Jun 27 12:03:03 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1831
1832         * i386.md (addqi_low_1): Remove.
1833
1834 2000-06-27  Philipp Thomas  <pthomas@suse.de>
1835
1836         * 1750a.h: Mark help strings for options/switches for translation.
1837         * a29k.h: Likewise.
1838         * alpha.h: Likewise.
1839         * arm.h: Likewise.
1840         * pe.h: Likewise.
1841         * riscix.h: Likewise.
1842         * c4x.h: Likewise.
1843         * clipper.h: Likewise.
1844         * convex.h: Likewise.
1845         * elxsi.h: Likewise.
1846         * fr30.h: Likewise.
1847         * fx80.h: Likewise.
1848         * h8300.h: Likewise.
1849         * i370.h: Likewise.
1850         * cygwin.h: Likewise.
1851         * dgux.h: Likewise.
1852         * djgpp.h: Likewise.
1853         * i386.h: Likewise.
1854         * osf1elf.h: Likewise.
1855         * osfrose.h: Likewise.
1856         * sco5.h: Likewise.
1857         * win32.h: Likewise.
1858         * i860.h: Likewise.
1859         * paragon.h: Likewise.
1860         * i960.h: Likewise.
1861         * ia64.h: Likewise.
1862         * m32r.h: Likewise.
1863         * mcore.h: Likewise.
1864         * mips.h: Likewise.
1865         * mn10300.h: Likewise.
1866         * ns32k.h: Likewise.
1867         * pdp11.h: Likewise.
1868         * pj.h: Likewise.
1869         * aix.h: Likewise.
1870         * aix41.h: Likewise.
1871         * aix43.h: Likewise.
1872         * beos.h: Likewise.
1873         * rs6000.h: Likewise.
1874         * sysv4.h: Likewise.
1875         * linux.h: Likewise.
1876         * linux64.h: Likewise.
1877         * sp64-elf.h: Likewise.
1878         * sparc.h: Likewise.
1879         * splet.h: Likewise.
1880         * v850.h: Likewise.
1881         * convex.h (TARGET_SWITCHES): Provide descriptions and mark them
1882         for translation.
1883         * sp86x-aout.h: Remove bogus first definition of SUBTARGET_SWITCHES.
1884         Properly document option and mark for translation.
1885         * sp86x-elf.h: Likewise.
1886
1887 2000-06-27  Bernd Schmidt  <bernds@cygnus.co.uk>
1888
1889         Add MMX and SSE registers to i386 machine description.
1890         * i386-protos.h (ix86_constant_alignment, ix86_data_alignment,
1891         ix86_local_alignment): Declare.
1892
1893         * i386.h (TARGET_MMX, TARGET_SSE): New.
1894         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
1895         REG_ALLOC_ORDER, HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1896         REG_CLASS_NAMES, REG_CLASS_CONTENTS,REG_CLASS_FROM_LETTER,
1897         enum reg_class, HI_REGISTER_NAMES): Added MMX/SSE registers.
1898         (FIRST_SSE_REG, LAST_SSE_REG, SSE_REGNO_P): New.
1899         (FIRST_MMX_REG, LAST_MMX_REG, MMX_REGNO_P, MMX_REG_P): New macros.
1900         (RETURN_IN_MEMORY): Handle MMX/SSE.
1901         (REG_PARM_STACK_SPACE): Added so the first three TImode parameters
1902         also get stack space.
1903         (MUST_PASS_IN_STACK): Added TImode to the default definition.
1904         (CUMULATIVE_ARGS): Added sse_nregs, sse_regno and sse_words.
1905         (MMX_REGISTER_NAMES): New.
1906         (ALIGN_MODE_128): New macro.
1907         (CONSTANT_ALIGNMENT): Code moved out-of-line; just call the function.
1908         (DATA_ALIGNMENT): Likewise.
1909         (LOCAL_ALIGNMENT): Likewise.
1910         (CONDITIONAL_REGISTER_USAGE): Make MMX/SSE regs fixed if not
1911         TARGET_MMX/TARGET_SSE.
1912         (VALID_SSE_REG_MODE, VALID_MMX_REG_MODE): New macros.
1913         (REG_CLASS_FROM_LETTER): 'y' for MMX regs.
1914         (SECONDARY_MEMORY_NEEDED): Be conservative about copying between
1915         SSE/MMX regs and something else.
1916         (CLASS_MAX_NREGS): 1 for SSE and MMX regs.
1917         (REGISTER_MOVE_COST): 10 if trying to move between MMX and SSE regs,
1918         3 if moving between MMX regs and something else.
1919
1920         * i386.c (reg_class): Add SSE_REGS, MMX_REGS.
1921         (regclass_map): Add MMX/SSE registers.
1922         (print_operand): Add code to print XMMWORD as appropriate.
1923         (ix86_split_movdi): Abort for MMX regs.
1924         (init_cumulative_args): Also allow SSE_REGS
1925         (function_arg_advance, function_arg): Likewise
1926         (print_reg): Support 'm'.  Add case for TImode.
1927         (override_options): TARGET_SSE implies TARGET_MMX.
1928         (ix86_constant_alignment, ix86_data_alignment, ix86_local_alignment):
1929         New functions.
1930
1931         * config/i386/unix.h (VALUE_REGNO): VECTOR_MODE values go to
1932         FIRST_SSE_REG.
1933         * config/i386/ptx4-i.h (RETURN_IN_MEMORY): Return MMX values in
1934         memory.
1935         * config/i386/sysv4.h (RETURN_IN_MEMORY): Likewise.
1936         * config/i386/i386elf.h (RETURN_IN_MEMORY): Likewise.
1937
1938 2000-06-26  Geoff Keating  <geoffk@cygnus.com>
1939
1940         * ssa.c (struct rename_set_data): Change the name of field
1941         'set_dest' to 'old_reg'.  Add comments.
1942         (struct rename_context): Change the name of 'set_data' to
1943         'new_renames'.  Add new field 'done_renames'.
1944         (create_delayed_rename): New function.
1945         (apply_delayed_renames): New function.
1946         (rename_insn_1): Use the new functions.  Handle CLOBBERS.  Handle
1947         SUBREGs and similar by emitting a move.
1948         (new_registers_for_updates): Delete, functionality moved to
1949         apply_delayed_renames.
1950         (rename_block): Handle moves emitted by rename_insn_1 by putting
1951         them into a SEQUENCE with the original insn.  Add sanity checks
1952         and comments.
1953         (rename_equivalent_regs_in_insn): Don't handle SUBREGs specially.
1954         (rename_equivalent_regs): Expand SEQUENCEs out to individual insns.
1955
1956 2000-06-26  Andrew Macleod <amacleod@cygnus.com>
1957             Jason Merrill <jason@redhat.com>
1958
1959         * dwarf2.h (enum dwarf_call_frame_info): Add
1960         DW_CFA_def_cfa_expression.
1961         * dwarf2out.c (union dw_cfi_oprnd_struct): Add a pointer to a
1962         dw_loc_descr_struct entry.
1963         (struct cfa_loc): New structure to track a CFA location.
1964         (lookup_cfa): Take a cfa_loc parameter instead of a reg and an offset.
1965         (lookup_cfa_1): Take a cfa_loc parameter instead of a reg and an
1966         offset, plus handle DW_CFA_def_cfa_expression.
1967         (def_cfa_1): Use to be dwarf2out_def_cfa, only now it uses a
1968         cfa_loc record.
1969         (dwarf2out_def_cfa): Entry point maintained for compatability.
1970         (dwarf_cfi_name): Add DW_CFA_def_cfa_expression.
1971         (cfa_reg, cfa_offset): Replace with cfa_loc record 'cfa'.
1972         (cfa_store_reg, cfa_store_offset): Replace with cfa_loc 'cfa_store'.
1973         (initial_return_save, dwarf2out_stack_adjust): Use cfa.reg, not
1974         cfa_reg.
1975         (dwarf2out_frame_debug_expr): Use new cfa_loc records. Recognize rtl
1976         sequences for the new DW_CFA_def_cfa_expression record.
1977         (dwarf2out_frame_debug): Use new variables/fields.A
1978         (output_cfi): Handle DW_CFA_def_cfa_expression.
1979         (output_cfa_loc): New function to generate a CFI record for
1980         DW_CFA_def_cfa_expression.
1981         (get_cfa_from_loc_descr): New function to get a cfa_loc record from
1982         a dw_loc_descr sequeunce.
1983         (build_loc_descr): Build a dw_loc_descr from a cfa_loc record.
1984         (dwarf_stack_op_name, new_loc_descr, add_loc_descr, size_of_loc_descr,
1985         size_of_locs, output_loc_operands, output_loc_sequence): Move into
1986         unwind info section.
1987         * frame.h (frame_state): Add base_offset and indirect fields.
1988         * frame-dwarf2.c (decode_stack_op): New function to interpret a
1989         dw_loc_descr operation.
1990         (execute_cfa_insn): Add support for DW_CFA_def_cfa_expression.
1991         (struct frame_state): Add base offset and indirect fields.
1992         * libgcc2.c (next_stack_level): Support indirect loading for CFA.
1993
1994 2000-06-26  Joseph S. Myers  <jsm28@cam.ac.uk>
1995
1996         * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
1997         Make warnings about implicit int be pedwarns in C99.  Don't warn
1998         about duplicate type qualifiers in C99.
1999         (start_function): Make warning about implict int return type be a
2000         pedwarn in C99.
2001         * c-lex.c (yylex): Don't warn about `long long' in C99.
2002         * c-typeck.c (c_expand_return): In C99, always pedwarn about
2003         `return' with no value in function returning non-void.
2004
2005 2000-06-26  Richard Henderson  <rth@cygnus.com>
2006
2007         * c-typeck.c (pedwarn_c99): New.
2008         * diagnostic.c (verror, vwarning, vpedwarn): Export.
2009         * toplev.h: Prototype them.
2010
2011 2000-06-26  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2012
2013         * c-typeck.c (digest_init): Return error_mark_node node when
2014         TREE_TYPE (init)  == error_mark_node.
2015
2016 2000-06-26  Philipp Thomas  <pthomas@suse.de>
2017
2018         * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
2019         test for msgfmt without path instead.
2020         * configure: Rebuilt.
2021
2022 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2023
2024         * gengenrtl.c (special_rtx): Fix typo in comment.
2025
2026 2000-06-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2027
2028         * mklibgcc.in (LIB2FUNCS): Add missing space.
2029
2030 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
2031
2032         * tree.h (enum tree_index): Add vector type nodes.
2033         Add accessor macros for them.
2034         (TYPE_REPRESENATION_TYPE): New macro.
2035         * tree.c (build_common_tree_nodes_2): Build these nodes.
2036         (finish_vector_type): New function.
2037         * c-common.c (type_for_mode): Handle vector modes.
2038         * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
2039
2040         * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
2041         * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
2042         * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
2043         (gen_type_die): Likewise.
2044         * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
2045         (fundamental_type_code): Likewise.
2046         (type_is_fundamental): VECTOR_TYPEs aren't.
2047         (output_type): Handle VECTOR_TYPEs.
2048
2049 2000-06-25  Kazu Hirata  <kazu@hxi.com>
2050
2051         * config/arm.c: Fix a comment typo.
2052         * config/arm.h: Likewise.
2053
2054 2000-06-25  Philipp Thomas  <pthomas@suse.de>
2055
2056         * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
2057         compiler found.
2058         AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
2059         * configure: Rebuilt.
2060
2061 2000-06-25  John David Anglin  <dave.anglin@nrc.ca>
2062
2063         * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
2064
2065 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2066
2067         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
2068         libgcc.a.
2069
2070 2000-06-24  Marc Espie <espie@cvs.openbsd.org>
2071
2072         * collect2.c (resolve_lib_name): Move '/' check out of loop.
2073
2074 2000-06-24  Dirk Duellmann  <Dirk.Duellmann@cern.ch>
2075
2076         * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
2077
2078 2000-06-24  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * stmt.c (expand_decl_cleanup): Emit a dummy insn after
2081         last_unconditional_cleanup.
2082
2083 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
2084
2085         * tree.def (VECTOR_TYPE): New node type.
2086         * tree.h: Adjust some comments to reflect addition of vector types.
2087         (TYPE_VECTOR_SUBPARTS): New macro.
2088         * stor-layout.c (layout_type): Handle VECTOR_TYPE.
2089         * c-convert.c (convert): Likewise.
2090         * convert.c (convert_to_integer): Handle vector modes.
2091         (convert_to_vector): New function.
2092         * convert.h (convert_to_vector): Declare.
2093         * expr.c (convert_move): Handle vector modes.
2094         * expmed.c (extract_bit_field): Don't abort for vector modes.
2095
2096 2000-06-24  Marek Michalkiewicz  <marekm@linux.org.pl>
2097
2098         * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
2099         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
2100         New functions, common code moved from function_{prologue,epilogue}
2101         and extended to support the -mtiny-stack option.
2102         (function_prologue, function_epilogue): Use them.
2103         Use lo8/hi8 consistently for asm output readability.
2104         (avr_hard_regno_mode_ok): New function.
2105         * config/avr/avr.h (TARGET_SWITCHES): Fix typo.  Add -mtiny-stack.
2106         (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
2107         (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
2108         * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
2109         Write SPH before SPL.
2110         (*movqi): No need to disable interrupts for just one "out"
2111         in alternative 5.  Change length attribute from 4 to 1.
2112         * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
2113         Write SPH before SPL.
2114
2115 2000-06-24  Bernd Schmidt  <bernds@cygnus.co.uk>
2116
2117         * rtl.texi (Vector Operations): New node.
2118         (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
2119         (Conversions): Add ss_truncate, us_truncate.
2120         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
2121         VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
2122         US_TRUNCATE): New rtx codes.
2123         * machmode.def: Add vector modes.
2124         * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
2125         MODE_VECTOR_FLOAT.
2126         (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
2127         (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
2128         (VECTOR_MODE_P): New.
2129
2130 2000-06-24  Nathan Sidwell  <nathan@codesourcery.com>
2131
2132         * cpp.texi: Clarify #pragma GCC namespace.
2133
2134 2000-06-24  Philipp Thomas  <pthomas@suse.de>
2135
2136         * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
2137         all catalogs specified in ALL_LINGUAS.
2138         * configure: Rebuilt.
2139
2140 2000-06-23  Jakub Jelinek  <jakub@redhat.com>
2141
2142         * config/sparc/sparc.md (reload_outdi+1): Handle
2143         HOST_BITS_PER_WIDE_INT == 64 case correctly.
2144         (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
2145
2146 2000-06-23  Geoffrey Keating  <geoffk@cygnus.com>
2147
2148         * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
2149         struct vs. scalar-ness when -fno-strict-aliasing.
2150
2151 2000-06-23  Nathan Sidwell  <nathan@codesourcery.com>
2152
2153         * cpplib.c (struct pragma_entry): New structure.
2154         (pragma_dispatch): Pragma dispatcher.
2155         (top_pragmas, gcc_pragmas): New static variables.
2156         (do_pragma): Use pragma_dispatch.
2157         (do_pragma_gcc): New pragma handler.
2158         * cpp.texi: Update.
2159
2160 2000-06-23  Jakub Jelinek  <jakub@redhat.com>
2161
2162         * calls.c (compute_argument_addresses): Force stack slots into
2163         alias set 0.
2164         * expr.c (emit_push_insn): Force pushes into alias set 0.
2165
2166 2000-06-23  Richard Henderson  <rth@cygnus.com>
2167
2168         * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
2169         * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
2170
2171 2000-06-22  Jason Merrill  <jason@redhat.com>
2172
2173         * toplev.c (compile_file): Always call timevar_print.
2174         * Makefile.in (calls.o): Depend on TIMEVAR_H.
2175
2176 2000-06-22  Nathan Sidwell  <nathan@codesourcery.com>
2177
2178         * varasm.c (constant_descriptor): Make contents unsigned char.
2179         (mark_const_hash_entry): Adjust.
2180         (const_hash): Just hash the code of unknown nodes.
2181         (compare_constant_1): Adjust for unsigned char.
2182         Use language specific expander on unknown nodes.
2183         (record_constant_1): Likewise.
2184
2185 2000-06-21  Zack Weinberg  <zack@wolery.cumb.org>
2186
2187         * cppfiles.c (cpp_make_system_header): New function.
2188         * cpplib.h: Prototype it.
2189         * cpplib.c (do_line, do_pragma_system_header): Use it.
2190         * fix-header.c (read_scan_file): Use it.
2191
2192         * fix-header.c (check_macro_names): Cast second arg of
2193         cpp_defined to const unsigned char *.
2194         (read_scan_file): Make getchar_call const unsigned char.
2195
2196 2000-06-21  Zack Weinberg  <zack@wolery.cumb.org>
2197
2198         * cppfiles.c: Include splay-tree.h, not hashtab.h.
2199         (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
2200         (destroy_include_file_node): New.
2201         (_cpp_init_include_hash): Rename _cpp_init_include_table.
2202         Create a splay tree, not a hash table.
2203         (open_include_file): Look up the path in the include table,
2204         do the multiple include optimization here, etc.
2205         (cpp_included): Walk the path.
2206         (find_include_file): Just walk the path calling
2207         open_include_file, or call it directly for an absolute path.
2208         (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
2209         scheme.
2210         (read_include_file): Update for new scheme.  Don't close the
2211         file unless reading fails.
2212         (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
2213
2214         * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
2215         (struct include_file): New.
2216         (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
2217         macros.
2218         (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
2219         Update prototypes.
2220
2221         * cppinit.c: Include splay-tree.h.
2222         (cpp_reader_init, cpp_cleanup): Update.
2223
2224         * cpplib.h (struct cpp_buffer): Change ihash field to
2225         'struct include_file *inc'.  Remove system_header_p.
2226         (struct cpp_reader): Change all_include_files to a
2227         struct splay_tree_s *.
2228
2229         * cpplex.c: Update all references to cpp_buffer->ihash and/or
2230         cpp_buffer->system_header_p.
2231         (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
2232
2233         * Makefile.in (SPLAY_TREE_H): New macro.
2234         (cppfiles.o, cppinit.o): Update dependencies.
2235
2236 Wed Jun 21 11:05:48 2000  Martin Buchholz <martin@xemacs.org>
2237
2238         * invoke.texi (g++): "g++" is not a script anymore.
2239
2240 2000-06-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2241
2242         * function.c (round_down): Delete obsolete prototype.
2243
2244         * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
2245
2246 2000-06-20  Zack Weinberg  <zack@wolery.cumb.org>
2247
2248         * configure.in: Use 'test a = b' not 'test a == b'.
2249         * configure: Regen.
2250
2251         * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
2252
2253         * Makefile.in: Remove all references to HOST_INTLLIBS.
2254
2255         * cpplex.c (parse_name): Don't warn about $ in identifiers if
2256         skipping.
2257
2258 2000-06-20  Philipp Thomas  <pthomas@suse.de>
2259
2260         * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
2261         for PA 2.0.
2262
2263 Mon Jun 19 23:26:40 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2264
2265         * Take REG_INC notes into account.
2266
2267 2000-06-19  Zack Weinberg  <zack@wolery.cumb.org>
2268
2269         * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
2270         (primary: IDENTIFIER): Just call build_external_ref.
2271         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
2272         Regenerate.
2273         * c-lex.c (lastiddecl): Remove.
2274         (yylex): Replace all instances of lastiddecl with local
2275         variables.
2276
2277         * c-typeck.c (build_external_ref): New function.  Treat decls
2278         with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
2279         Look up the decl from the id here.  Call lookup_objc_ivar.
2280         * c-lang.c (lookup_objc_ivar): Stub.
2281         * objc/objc-act.c (lookup_objc_ivar): New function.
2282
2283         * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
2284         * c-lex.h: Don't declare lastiddecl.
2285
2286 2000-06-19  Benjamin Chelf  <chelf@codesourcery.com>
2287
2288         * c-common.h (IF_COND): Added documentation.
2289         (THEN_CLAUSE): Likewise.
2290         (ELSE_CLAUSE): Likewise.
2291         (WHILE_COND): Likewise.
2292         (WHILE_BODY): Likewise.
2293         (DO_COND): Likewise.
2294         (DO_BODY): Likewise.
2295         (RETURN_EXPR): Likewise.
2296         (EXPR_STMT_EXPR): Likewise.
2297         (FOR_INIT_STMT): Likewise.
2298         (FOR_COND): Likewise.
2299         (FOR_EXPR): Likewise.
2300         (FOR_BODY): Likewise.
2301         (SWITCH_COND): Likewise.
2302         (SWITCH_BODY): Likewise.
2303         (CASE_LOW): Likewise.
2304         (CASE_HIGH): Likewise.
2305         (GOTO_DESTINATION): Likewise.
2306         (COMPOUND_BODY): Likewise.
2307         (ASM_CV_QUAL): Likewise.
2308         (ASM_STRING): Likewise.
2309         (ASM_OUTPUTS): Likewise.
2310         (ASM_INPUTS): Likewise.
2311         (ASM_CLOBBERS): Likewise.
2312         (DECL_STMT_DECL): Likewise.
2313         (STMT_EXPR_STMT): Likewise.
2314         (LABEL_STMT_LABEL): Likewise.
2315
2316         * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
2317         COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
2318         RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
2319         LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
2320
2321 2000-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2322
2323         * configure.in (--enable-checking): Update --help doc to reflect
2324         new defaults.  Ensure $ac_save_IFS is set before $IFS is changed.
2325
2326 Sun Jun 18 21:42:15 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2327
2328         * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
2329
2330         * function.c (put_var_into_stack): Don't reference DECL_ fields
2331         if input is a SAVE_EXPR.
2332         Use set_mem_attributes in COMPLEX case.
2333
2334 2000-06-18  Richard Henderson  <rth@cygnus.com>
2335
2336         * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
2337         (ia64_file_start): Declare.
2338         * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
2339         (GR_REGNO_P): Likewise.
2340         * config/ia64/ia64.c: Many prototypes.
2341         (ia64_reg_numbers): Constify.
2342         (ia64_input_reg_names, ia64_local_reg_names): Likewise.
2343         (ia64_section_threshold): Make unsigned.
2344         (ia64_print_operand): Constify.
2345         (fix_range): Constify.
2346         (ia64_init_builtins): Don't compare signed vs unsigned.
2347         (ia64_expand_builtin): Likewise.
2348
2349         * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
2350         (CONSTRAINT_OK_FOR_Q): New.
2351         * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
2352         (movsf_internal, movdf_internal): Likewise.
2353         (cmovdi_internal): Rewrite so that constraints and predicates match;
2354         simplify splitters.
2355         (cmovsi_internal): Likewise.
2356
2357         * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
2358         (ASM_FILE_START): New.
2359         * config/ia64/ia64.c (ia64_file_start): New.
2360         (rtx_needs_barrier): Handle pred.rel.mutex.
2361         (emit_predicate_relation_info): New.
2362         * config/ia64/ia64.md (pred_rel_mutex): New.
2363         * config/ia64/linux.h (ASM_SPEC): Define.
2364         * config/ia64/sysv4.h (ASM_FILE_START): Define.
2365
2366         * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
2367         filtering global register variables.
2368
2369 2000-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2370
2371         * c-common.c (add_c_tree_codes): Fix definition for traditional C.
2372
2373 2000-06-17  Michael Meissner  <meissner@redhat.com>
2374
2375         * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
2376         not present and there is a field after a '-'.
2377
2378 2000-06-17  Bruce Korb  <bkorb@gnu.org>
2379
2380         * fixinc/check.tpl:  finish the implementation of multiple tests
2381         for a single fix
2382         * fixinc/inclhack.def(ctrl_quotes_def): add a second test
2383         (io_quotes_def): add a second test
2384         (various): reorder `files' so that "limits.h" is never first
2385         * fixinc/tests/base/*: update the testing output
2386
2387 Sat Jun 17 10:33:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2388
2389         * gcc.texi: Remove reference to stupid.c.
2390
2391 2000-06-16  Benjamin Chelf  <chelf@codesourcery.com>
2392
2393         * c-common.c (c_tree_code_type): New array.
2394         (c_tree_code_length): Likewise.
2395         (c_tree_code_name): Likewise.
2396         (add_c_tree_codes): New function.
2397
2398         * c-common.h (add_c_tree_codes): Declare.
2399         (enum c_tree_code): New enum.
2400
2401         * c-lex.c (init_parse): Added call to add_c_tree_codes.
2402
2403 2000-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2404
2405         * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
2406         select pattern to also match macro defs with only one argument.
2407
2408 Thu Jun 15 18:56:12 2000  Jeffrey A Law  (law@cygnus.com)
2409
2410         * i386.md: Create new [right,left] rotate and right shift
2411         patterns to optimize shift by 1 bit for certain ia32 processors.
2412         Update patterns which perform left shifts to optimize shift by
2413         1 bit for certain ia32 processors.
2414         * i386.c (const_int_1_operand): New predicate.
2415         * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
2416         * i386-protos.h (const_int_1_operand): Prototype.
2417
2418 Wed Jun 14 23:46:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
2419
2420         * mips.c (machine_dependent_reorg): Fix braces for nested if.
2421
2422 2000-06-14  Geoff Keating  <geoffk@cygnus.com>
2423
2424         * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
2425         LABEL_REFs.
2426
2427 2000-06-14  Richard Henderson  <rth@cygnus.com>
2428
2429         * conflict.c (conflict_graph_compute): Don't look for REG_INC.
2430
2431         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
2432         auto-inc code.
2433
2434         * print-rtl.c (print_rtx): Emit space before mem alias set.
2435
2436 2000-06-14  David Edelsohn  <edelsohn@gnu.org>
2437
2438         * rs6000.c (expand_block_move): Fix typo in earlier change.
2439         (print_operand): Remove unused variables neg and op.
2440         (toc_hash_mark_entry): Fix prototype.
2441
2442 2000-06-14  Benjamin Chelf  <chelf@codesourcery.com>
2443
2444         * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
2445         (THEN_CLAUSE): Likewise.
2446         (ELSE_CLAUSE): Likewise.
2447         (WHILE_COND): Likewise.
2448         (WHILE_BODY): Likewise.
2449         (DO_COND): Likewise.
2450         (DO_BODY): Likewise.
2451         (RETURN_EXPR): Likewise.
2452         (EXPR_STMT_EXPR): Likewise.
2453         (FOR_INIT_STMT): Likewise.
2454         (FOR_COND): Likewise.
2455         (FOR_EXPR): Likewise.
2456         (FOR_BODY): Likewise.
2457         (SWITCH_COND): Likewise.
2458         (SWITCH_BODY): Likewise.
2459         (CASE_LOW): Likewise.
2460         (CASE_HIGH): Likewise.
2461         (GOTO_DESTINATION): Likewise.
2462         (COMPOUND_BODY): Likewise.
2463         (ASM_CV_QUAL): Likewise.
2464         (ASM_STRING): Likewise.
2465         (ASM_OUTPUTS): Likewise.
2466         (ASM_INPUTS): Likewise.
2467         (ASM_CLOBBERS): Likewise.
2468         (DECL_STMT_DECL): Likewise.
2469         (STMT_EXPR_STMT): Likewise.
2470         (LABEL_STMT_LABEL): Likewise.
2471         (SCOPE_BEGIN_P): Likewise.
2472         (SCOPE_END_P): Likewise.
2473         (SCOPE_STMT_BLOCK): Likewise.
2474         (SCOPE_NULLIFIED_P): Likewise.
2475         (SCOPE_NO_CLEANUPS_P): Likewise.
2476         (SCOPE_PARTIAL_P): Likewise.
2477         (ASM_VOLATILE_P): Likewise.
2478         (STMT_LINENO): Likewise.
2479         (STMT_LINENO_FOR_FN_P): Likewise.
2480
2481         * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
2482         ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
2483         FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
2484         CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
2485         SCOPE_STMT, CASE_LABEL, STMT_EXPR.
2486
2487         * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
2488
2489 2000-06-14  David O'Brien  <obrien@FreeBSD.org>
2490
2491         * gcc.c (main): Quiet compiler warnings.  argv is assumed to be
2492         writable in parts of the GCC code.
2493
2494         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
2495         specification match cast.
2496
2497 Wed Jun 14 09:25:57 2000  Jeffrey A Law  (law@cygnus.com)
2498
2499         * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
2500         * configure, config.in: Rebuilt.
2501         * sys-protos.h: Similarly.
2502
2503 Wed Jun 14 03:39:58 EDT 2000  John Wehle  (john@feith.com)
2504
2505         * ifcvt.c (EDGE_COMPLEX): Move definition ...
2506         * basic-block.h (EDGE_COMPLEX): ... here.
2507
2508         * loop.c (check_dbra_loop): Specify the register when
2509         generating REG_NONNEG notes and don't generate duplicates.
2510
2511 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
2512
2513         * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
2514         (struct tree_type, struct tree_decl): Add user_align member.
2515         * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
2516         (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
2517         and DECL_USER_ALIGN 0, cap alignment to this value.
2518         (place_field): Likewise.
2519         (finalize_type_size): Set TYPE_USER_ALIGN.
2520         (layout_type): Likewise.
2521         (initialize_sizetypes): Likewise.
2522         * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
2523         DECL_USER_ALIGN to 1.
2524         * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
2525         (xfer_tag): Set TYPE_USER_ALIGN.
2526         (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2527         (finish_enum): Likewise.
2528         * stmt.c (expand_decl): Set DECL_USER_ALIGN.
2529         (expand_anon_union_decl): Likewise.
2530         * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2531         (build_index_type): Set TYPE_USER_ALIGN.
2532         (build_range_type): Likewise.
2533         (build_common_tree_nodes_2): Likewise.
2534         * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
2535
2536 2000-06-13  Andreas Jaeger  <aj@suse.de>
2537
2538         * configure.in: Use --enable-checking=misc,tree,gc by default if
2539         no --enable-checking option is given and for
2540         --enable-checking=yes.
2541         * configure: Rebuilt.
2542
2543 2000-06-13  Richard Henderson  <rth@cygnus.com>
2544
2545         * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
2546         (__throw): Don't pass the address of a label.
2547
2548         * config/ia64/ia64.c (ia64_compute_frame_size): Use
2549         current_function_is_leaf.
2550         (ia64_expand_prologue): Likewise.  Modify return_address_pointer_rtx
2551         instead of reg_names[RETURN_ADDRESS_REGNUM].
2552         (ia64_init_machine_status): Reset return_address_pointer_rtx.
2553         * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
2554         from RETURN_ADDRESS_REGNUM.  Update all uses.
2555         (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
2556         zero instead of null on failure.
2557         (ELIMINABLE_REGS): Add ra->b0 elimination.
2558         (CAN_ELIMINATE): Update accordingly.
2559         (INITIAL_ELIMINATION_OFFSET): Likewise.
2560         (REGISTER_NAMES): Use an illegal assembler name for
2561         RETURN_ADDRESS_POINTER_REGNUM.
2562
2563 2000-06-13  Richard Henderson  <rth@cygnus.com>
2564
2565         * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
2566         GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
2567         (REG_CLASS_NAMES): Likewise.
2568         (REG_CLASS_CONTENTS): Likewise.
2569         (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
2570         (HARD_REGNO_MODE_OK): Remove references to them.
2571         (REGNO_REG_CLASS): Likewise.
2572         (REG_CLASS_FROM_LETTER): Likewise.
2573         (CLASS_MAX_NREGS): Likewise.
2574         (REGISTER_MOVE_COST): Likewise.
2575         * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
2576         * config/ia64/ia64.md (*): Replace "e" constraints with "f".
2577         (movqi_internal): Special case moves from zero.
2578         (movhi_internal, movsi_internal): Likewise.
2579         (movdi_internal): Likewise.  Fill out "f" constraints.
2580         (movsf_internal): Fill out "r" constraints.
2581         (movdf_internal): Likewise.
2582
2583 2000-06-13  Richard Henderson  <rth@cygnus.com>
2584
2585         * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
2586         alive before reload.
2587
2588         * haifa-sched.c (struct deps): Add in_post_call_group_p.
2589         (add_dependence): Handle notes between SCHED_GROUP_P insns.
2590         (remove_dependence): Always define.
2591         (set_sched_group_p): New.
2592         (sched_analyze_2): Use it.
2593         (sched_analyze_insn): Don't special-case naked uses.  Look for
2594         and extend in_post_call_group_p.
2595         (sched_analyze): Clear stale SCHED_GROUP_P.  Set in_post_call_group_p.
2596         (init_deps): Clear in_post_call_group_p.
2597
2598 2000-06-13  Richard Henderson  <rth@cygnus.com>
2599
2600         * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
2601         CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
2602         and hard-coded tests.
2603         (simplify_set): Likewise.
2604         (gen_lowpart_for_combine): Likewise.
2605         * emit-rtl.c (gen_lowpart_common): Likewise.
2606         * global.c (find_reg): Likewise.
2607         * local-alloc.c (find_free_reg): Likewise.
2608         * recog.c (register_operand): Likewise.
2609         * regclass.c (init_reg_sets_1): Likewise.
2610         (record_operand_costs, regclass): Likewise.
2611         * reload.c (push_reload): Likewise.
2612         * reload1.c (choose_reload_regs): Likewise.
2613         * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
2614         * local-alloc.c (struct qty): Rename changes_size to changes_mode.
2615         Update all references.
2616         * regs.h (struct reg_info_def): Likewise.
2617         (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
2618         * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
2619         (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
2620
2621         * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
2622         (CLASS_CANNOT_CHANGE_MODE_P): New.
2623         * config/mips/mips.h: Likewise.
2624         * config/pa/pa32-regs.h: Likewise.
2625         * config/pa/pa64-regs.h: Likewise.
2626         * config/rs6000/rs6000.h: Likewise.
2627         * config/sh/sh.h: Likewise.
2628         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
2629         (CLASS_CANNOT_CHANGE_MODE_P): New.
2630         * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
2631         * config/d30v/d30v.h: Likewise.
2632
2633 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2634
2635         * configure.in: Add AC_TYPE_GETGROUPS test.
2636         * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
2637         * configure: Rebuilt.
2638         * config.in: Rebuilt.
2639
2640 2000-06-13  Richard Henderson  <rth@cygnus.com>
2641
2642         * explow.c (set_mem_attributes): Do nothing for NULL type.
2643
2644 Tue Jun 13 14:45:10 2000  Jeffrey A Law  (law@cygnus.com)
2645
2646         * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
2647         correctly.
2648
2649 2000-06-13  James E. Wilson  <wilson@cygnus.com>
2650
2651         * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
2652
2653 Tue Jun 13 14:05:35 2000  Jeffrey A Law  (law@cygnus.com)
2654
2655         * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
2656
2657 2000-06-13  Philipp Thomas  <pthomas@suse.de>
2658
2659         * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
2660         * configure: Rebuilt.
2661
2662 2000-06-07  David O'Brien  <obrien@FreeBSD.org>
2663
2664         * configure.in:  Adjust FreeBSD bits to match changes to config.guess.
2665         We now default to ELF for the i386, and a.out is the special case.
2666         * configure:  Rebuilt.
2667
2668 Tue Jun 13 10:05:30 2000  Hans-Peter Nilsson  <hp@axis.com>
2669
2670         * final.c (final_scan_insn): Delete notes between cc0 setter and
2671         user when restarting from setter.
2672
2673 2000-06-13  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2674
2675         * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
2676         cast to squelch signed/unsigned warnings.
2677
2678 2000-06-13  Zack Weinberg  <zack@wolery.cumb.org>
2679
2680         * cpplib.c (handle_directive): Print non-NUL-terminated string
2681         with %.*s.
2682
2683 2000-06-12  Michael Meissner  <meissner@redhat.com>
2684
2685         * ifcvt.c (dead_or_predicable): Don't do conditional execution
2686         path if the machine needs extra support to do conditional
2687         execution.
2688
2689 Mon Jun 12 17:04:17 2000  Jeffrey A Law  (law@cygnus.com)
2690
2691         * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
2692         to print the alias set.
2693         * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
2694
2695 2000-06-12  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2696
2697         * config/float-vax.h: Add GFLOAT defines.
2698
2699 Mon Jun  12  9:44:00 2000  Mark Klein  <mklein@dis.com>
2700
2701         * configure.in: Update tm dependencies for MPE.
2702         * configure: Rebuilt.
2703
2704 2000-06-12  H.J. Lu  <hjl@gnu.org>
2705
2706         * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
2707
2708 2000-06-12  David Edelsohn  <edelsohn@gnu.org>
2709
2710         * aix41.h (SUBTARGET_SWITCHES): Delete threads.
2711         (CPP_SPEC): Change mthreads to pthread.
2712         (LIB_SPEC): Likewise.
2713         (STARTFILE_SPEC): Likewise.
2714         * aix43.h (SUBTARGET_SWITCHES): Delete threads.
2715         (CPP_SPEC): Change mthreads to pthread.
2716         (LIB_SPEC): Likewise.
2717         (STARTFILE_SPEC): Likewise.
2718         * rs6000-protos.h (reg_or_arith_cint_operand): New.
2719         * rs6000.c (reg_or_arith_cint_operand): New.
2720         (num_insns_constant_wide): Decorate unsigned constant.
2721         * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
2722         * rs6000.md (addsi3): Use new predicate.
2723         (subsi3, adddi3, subdi3): Likewise.
2724
2725 2000-06-12  Mark Mitchell  <mark@codesourcery.com>
2726
2727         * c-common.c (lang_get_alias_set): Fix typo.
2728
2729 2000-06-12  Richard Earnshaw <rearnsha@arm.com>
2730
2731         * flow.c (mark_used_regs): Revert last change.
2732         (life_analysis): Remove PROP_AUTOINC if running after reload.
2733         (propagate_one_insn): PROP_AUTOINC is always off after reload.
2734
2735 2000-06-11  Richard Earnshaw <rearnsha@arm.com>
2736
2737         * flow.c (mark_used_regs): Don't call find_auto_inc after reload
2738         has run.
2739
2740 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2741
2742         * bb-reorder.c (build_scope_forest): Initialize variable
2743         `curr_scope'.
2744
2745         * calls.c (expand_call): Likewise for variables
2746         `save_pending_stack_adjust' and `save_stack_pointer_delta'.
2747
2748         * i386.c (function_arg_advance, function_arg): Cast to avoid
2749         signed/unsigned warnings.
2750
2751         * i386.h (MEMORY_MOVE_COST): Likewise.
2752
2753         * ifcvt.c (cond_exec_process_if_block): Initialize variables
2754         `else_start' and `else_end'.
2755
2756         * libgcc2.h (__eh_alloc, __eh_free): Prototype.
2757
2758         * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
2759
2760 2000-06-10  Mark Mitchell  <mark@codesourcery.com>
2761
2762         * Makefile.in (libintl.a): Depend on intl.all.
2763
2764 2000-06-09  H.J. Lu  (hjl@gnu.org)
2765
2766         * Makefile.in (c-parse.o): Also depend on output.h.
2767
2768 2000-06-09  Rodney Brown  <RodneyBrown@mynd.com>
2769
2770         * mcore-protos.h: discards const warning removal.
2771         * mcore.c: discards const warning removal.
2772
2773 2000-06-09  Kazu Hirata  <kazu@hxi.com>
2774
2775         * config/h8300/lib1funcs.asm: Declare the machine architecture at
2776         the beginning of the file.
2777
2778 2000-06-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2779
2780         * real.h:  Add prototype for ldexp.
2781
2782 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
2783
2784         * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
2785         it ggc_alloc, drop second argument, never clear returned memory.
2786         * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
2787         (ggc_alloc_cleared): New.
2788         * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
2789         ggc_alloc_obj.  Remove ggc_alloc macro.
2790         (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
2791
2792         * rtl.c (rtvec_alloc): Clear the vector always.
2793         (rtx_alloc): Clear the first word always.  Remove dirty
2794         obstack tricks (this routine is no longer a bottleneck).
2795         * tree.c (make_node): Clear the new node always.
2796         (make_tree_vec): Likewise.
2797         (tree_cons): Clear the common structure always.
2798         (build1): Likewise; also, clear TREE_COMPLEXITY.
2799         * gengenrtl.c: Use puts wherever possible.  Remove extra
2800         newlines.
2801         (gendef): Clear the first word of an RTX in the generator
2802         function, irrespective of ggc_p.  Initialize '0' slots to
2803         NULL.
2804         (genlegend): Don't generate obstack_alloc_rtx routine, just a
2805         thin wrapper macro around obstack_alloc.
2806
2807         * stmt.c (expand_fixup): Use ggc_alloc.
2808         * c-typeck.c (add_pending_init): Use ggc_alloc.
2809         * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
2810         * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
2811         const0_rtx when it is created.
2812         (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
2813         we are not in a function.
2814
2815         * tree.c (tree_class_check_failed): Make second arg an int.
2816         * tree.h: Update prototype.
2817
2818 2000-06-09  Geoff Keating  <geoffk@cygnus.com>
2819
2820         * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
2821         of an error_mark_node.
2822
2823 Fri Jun  9 20:35:13 2000  Denis Chertykov  <denisc@overta.ru>
2824
2825         * config/avr/avr.c (asm_output_section_name): bugfix.
2826
2827 2000-06-09  Jason Merrill  <jason@casey.soma.redhat.com>
2828
2829         * timevar.def: Add TV_EXPAND.
2830         * timevar.c (timevar_print): Update timing information.
2831         * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
2832
2833         * stmt.c (expand_return): Check for error_mark_node.
2834
2835 2000-06-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2836
2837         * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
2838
2839         * scan-types.sh (VALUE) Wrap use with double quotes to protect
2840         variable against filename expansion when it contains "char *".
2841
2842         * system.h (SSIZE_MAX): Delete backup definition.
2843
2844         * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
2845         instead of SSIZE_MAX.
2846
2847 2000-06-09  Jakub Jelinek  <jakub@redhat.com>
2848
2849         * configure.in: Check whether gas supports -relax.
2850         * configure, config.in: Rebuilt.
2851         * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
2852         (EXTRA_SPECS): Add asm_relax.
2853         (ASM_SPEC): Add %(asm_relax).
2854         (TARGET_SWITCHES): Add -mrelax and -mno-relax.
2855         * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
2856         (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
2857         (ASM_SPEC): Add %(asm_relax).
2858         * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
2859         * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
2860         never use sethi/jmpl for leaf tail calls.  Use or with rs2 %g0
2861         instead of mov, so that gas can further optimize it.
2862
2863 2000-06-08  James E. Wilson  <wilson@bletchleypark.cygnus.com>
2864
2865         * dwarf2out.c (size_of_die, case dw_val_class_const): Use
2866         size_of_sleb128.
2867         (value_format, case dw_val_class_const): Use sdata format.
2868         (output_die): Call output_sleb128.
2869
2870 2000-06-08  James E. Wilson  <wilson@cygnus.com>
2871
2872         * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
2873         UNALIGNED_DOUBLE_INT_ASM_OP.  Rename old macro to
2874         ASM_OUTPUT_DWARF_CONST_DOUBLE.
2875         (output_die, case dw_val_class_unsigned_const): Correct call to
2876         ASM_OUTPUT_DWARF_DATA8.
2877         (output_die, case dw_val_class_long_long): Use
2878         ASM_OUTPUT_DWARF_CONST_DOUBLE.
2879         * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
2880         pos is zero.
2881
2882         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
2883         (output_function_prologue): Fix mispelling.
2884         (output_function_prologue, output_function_epilogue): Reorder to
2885         match ia64.c definition order.
2886         * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
2887         (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
2888         Use r3 instead of r2 for large stack restores.
2889         (ia64_output_end_prologue): New function.
2890         (process_set): Emit ".restore sp" for epilogue stack restores.
2891         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
2892
2893 2000-06-08  Jakub Jelinek  <jakub@redhat.com>
2894
2895         * dbxout.c (dbxout_type_fields): Don't segfault on fields with
2896         incomplete types.
2897
2898 2000-06-08  Nathan Sidwell  <nathan@codesourcery.com>
2899
2900         * frame.c (end_fde_sort): Remove extraneous erratic array test.
2901
2902 2000-06-08  Denis Perchine <dyp@perchine.com>
2903
2904         * frame.c (start_fde_sort): Don't malloc (0).
2905
2906 2000-06-07  Zack Weinberg  <zack@wolery.cumb.org>
2907
2908         * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
2909         error_mark_node.
2910         * print-tree.c (print_node): The transparent_union_flag means
2911         different things for unions and arrays.  Do not inspect it
2912         with TYPE_TRANSPARENT_UNION.
2913
2914 2000-06-06  Jakub Jelinek  <jakub@redhat.com>
2915
2916         * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
2917         returned NULL.
2918
2919 Wed Jun  7 20:34:33 2000  Denis Chertykov  <denisc@overta.ru>
2920
2921         * config/avr/avr.c (asm_output_section_name): output section
2922         attributes.
2923         * config/avr/libgcc.S (.text.libgcc): declare section attributes.
2924
2925 2000-06-06  James E. Wilson  <wilson@cygnus.com>
2926
2927         * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
2928         fields into header field.
2929         (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
2930         macros to access length, flags, and version info from header field.
2931         * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
2932         * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
2933         (__do_global_ctors_aux): Fix caller.
2934         * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
2935         prologue_flag to header.  Pass to read_P_record.
2936         (read_P_record): New argument header.  Implement P4 format.
2937         Multiply P7_T_SIZE by 16.
2938         (execute_one_ia64_descriptor): New static local region_header.  Pass to
2939         get_unwind_record.  Copy r to region_header if r is a header record.
2940         (print_all_records): Likewise.
2941         (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
2942         (__get_personality, __get_except_table): Likewise.
2943         * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
2944
2945 2000-06-06  Philipp Thomas  <pthomas@suse.de>
2946
2947         * configure.in (AC_C_INLINE): Added.
2948         * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
2949         * configure: Regenerate.
2950
2951 2000-06-06  Mark Mitchell  <mark@codesourcery.com>
2952
2953         * c-common.h (c_language_kind): New type.
2954         (c_language): New variab.e
2955         * c-common.c (lang_get_alias_set): Don't put structures in
2956         non-zero alias sets in C++.
2957         * c-decl.c (c_language): Define it.
2958         * c-lex.c (doing_objc_thang): Remove.
2959         * c-tree.h (doing_objc_thang): Make it a macro.
2960         * objc/objc-act.c (lang_decode_option): Set c_language, not
2961         doing_objc_thang.
2962
2963 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
2964
2965         * diagnostic.c (output_maximum_width): Remove.
2966         (doing_line_wrapping): Tweak.
2967         (diagnostic_buffer): New object.
2968         (global_output_buffer): New object.
2969         (output_destroy_prefix): New function.
2970         (default_initialize_buffer): Likewise.
2971         (reshape_diagnostic_buffer): Likewise.
2972         (initialize_diagnostics): Likewise.
2973         (output_clear): Tweak.
2974         (line_wrapper_printf): Adjust call to init_output_buffer.
2975         (vline_wrapper_message_with_location): Likewise.  Use
2976         output_destroy_prefix.
2977         (v_message_with_decl): Likewise.
2978
2979         * diagnostic.h (struct output_buffer): Constify prefix.
2980         (init_output_buffer, output_get_prefix): Constify.
2981         (diagnostic_message_length_per_line): Likewise.
2982         (reshape_diagnostic_buffer): Declare.
2983         (default_initialize_buffer): Declare.
2984         (initialize_diagnostics): Declare.
2985         (diagnostic_buffer): Declare new obbject.
2986
2987         * toplev.c: #include diagnostic.h
2988         (display_help): Document diagnostic formatting options.
2989         (decode_f_option): Handle diagnostic formatting options.
2990         (main): Setup initialization for diagnostic messages outputter.
2991
2992         * toplev.h (set_message_length): Remove.
2993
2994         * Makefile.in (toplev.o): Depends upon diagnostic.h
2995
2996         * invoke.texi : Document diagnostics formatting options.
2997
2998 Tue Jun  6 19:25:32 2000  Philippe De Muyter  <phdm@macqel.be>
2999
3000         * configure.in (Make the links): Typo fix : the file that must be
3001         included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
3002         * configure: File rebuilt.
3003
3004 2000-06-06  Nathan Sidwell  <nathan@codesourcery.com>
3005
3006         * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
3007         (eh_context): Add alloc_mask and alloc_buffer emergency fallback
3008         space.
3009         * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
3010         emergency eh_context buffer, if malloc fails.
3011         (__eh_free): Moved from cp/exception.cc. Release to emergency
3012         eh_context buffer, if appropriate.
3013
3014 2000-06-06  Jason Merrill  <jason@casey.soma.redhat.com>
3015
3016         * expr.c (store_expr): Fix typo.
3017
3018 2000-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3019
3020         * m68k.c (legitimize_pic_address): Move prototype ...
3021
3022         * m68k-protos.h (legitimize_pic_address): ... here.
3023
3024         * m68k.md (legitimize_pic_address): Delete prototypes.
3025         (untyped_call): Invoke GEN_CALL(), not gen_call().
3026
3027         * nextstep.c: Include system.h and toplev.h.
3028         (get_directive_line): Don't prototype.
3029         (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
3030
3031         * nextstep.h (handle_pragma): Prototype.
3032         (SECTION_FUNCTION): Prototype FUNCTION().  Move prototype of
3033         objc_section_init ...
3034         (EXTRA_SECTION_FUNCTIONS): ... here.
3035
3036 Tue Jun  6 08:17:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3037
3038         * sdbout.c (struct sdb_file): NAME now const.
3039         (sdbout_init): input_file_name now const.
3040         (sdbout_start_new_source_file): FILENAME now const.
3041         * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
3042
3043 2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>
3044
3045         * c-typeck.c (build_conditional_expr): Handle complex data types.
3046
3047 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
3048
3049         * explow.c (maybe_set_unchanging): New function, broken out from...
3050         (set_mem_attributes): Here.
3051         * expr.h: Declare it.
3052         * stmt.c (expand_decl): Call it.
3053
3054 2000-06-05  Richard Henderson  <rth@cygnus.com>
3055
3056         * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
3057         while looking for a register to inherit from.
3058
3059 2000-06-05  Jason Merrill  <jason@casey.soma.redhat.com>
3060
3061         * Makefile.in (libgcc.ready): Lose.
3062         (libgcc.mk): Just use mv, not move-if-change.
3063         (LIBGCC_DEPS): New macro.
3064         (libgcc.a): Use it.
3065         (stmp-multilib): Likewise.
3066         * mklibgcc.in (stmp-dirs): New target.  Make everything depend on
3067         it rather than the directories themselves.
3068         (LIB2ADD): Depend on the list file rather than 'force'.
3069
3070         * fold-const.c (fold, case COND_EXPR): Elide conversion between
3071         cv-qualified versions of types.
3072
3073 Mon Jun  5 14:06:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3074
3075         * config/sparc/sparc.c (short_branch): Correct error in range
3076         computation.
3077
3078 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3079
3080         * fixinc/inclhack.def: New include hacks for ultrix.
3081         * (nested_ultrix): Replaced by ultrix_nested_svc.
3082         * (ultrix_atof_param): test_text string added.
3083         * (ultrix_ifdef): Modified select string.
3084
3085 2000-06-05  Zack Weinberg  <zack@wolery.cumb.org>
3086
3087         * objc/objc-act.c (generate_method_descriptors): Register
3088         objc_method_prototype_template as a GC root.
3089         (comp_method_with_proto): Register function_type as a GC root.
3090         (comp_proto_with_proto): Replace function_type1 and
3091         function_type2 with a two-element array; register it as a GC root.
3092
3093         (generate_protocols, build_protocol_initializer,
3094         generate_protocol_list, build_category_initializer,
3095         build_shared_structure_initializer): Do not cache cast_type
3096         and/or cast_type2.
3097
3098 2000-06-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3099
3100         * function.c (assign_parms): Add missing argument to set_mem_attributes
3101         call.
3102
3103 2000-06-05  Nathan Sidwell  <nathan@codesourcery.com>
3104
3105         * tree.h (VOID_TYPE_P): New macro.
3106         (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
3107         * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
3108         (get_parm_info): Likewise.
3109         (store_parm_decls): Likewise.
3110         (combine_parm_decls): Likewise.
3111         (finish_function): Likewise.
3112         * c-typeck.c (build_function_call): Likewise.
3113         (build_binary_op): Likewise.
3114         (build_conditional_expr): Likewise.
3115         (internal_build_compound_expr): Likewise.
3116         (convert_for_assignment): Likewise.
3117         * stmt.c (expend_expr_stmt): Likewise.
3118         (warn_if_unused_value): Likewise.
3119         (expand_return): Likewise.
3120         * c-parse.in (primary): Likewise.
3121         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
3122         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
3123
3124 Mon Jun  5 06:46:28 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3125
3126         * alias.c (get_alias_set): If compnent is addressable, use alias
3127         set of component.
3128         * c-decl.c (init_decl_processing): Don't call record_component_aliases.
3129         (grokdeclarator): Likewise.
3130         * c-typeck.c (common_type): Likewise.
3131
3132 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
3133
3134         * Makefile.in (OBJS): Remove dyn_string.o
3135         (dyn-string.o): Delete rule.
3136         * dyn-string.c: Delete file
3137         * dyn-string.h: Likewise.
3138
3139 2000-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3140
3141         * Makefile.in (intl.*): Honor non-zero exit codes in the intl
3142         subdir.
3143
3144 2000-06-03  Geoff Keating  <geoffk@cygnus.com>
3145
3146         * alias.c (record_component_aliases): Don't inspect
3147         DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
3148
3149 Sat Jun  3 19:05:30 2000  Michael Meissner  <meissner@redhat.com>
3150
3151         * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
3152         it with the pattern to do machine dependent work.
3153         (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
3154         use it to modify the true/false tests used in conditional
3155         execution.  If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
3156         defined, invoke them if the conversion to conditional execution
3157         was successful or not.
3158
3159         * tm.texi (IFCVT_MODIFY_TESTS): Document.
3160         (IFCVT_MODIFY_INSN): Ditto.
3161         (IFCVT_MODIFY_FINAL): Ditto.
3162         (IFCVT_MODIFY_CANCEL): Ditto.
3163
3164 Sat Jun  3 15:26:13 2000  Matt Kraai <kraai@alumni.carnegiemellon.edu>
3165
3166         * toplev.c (main): Fix misspellings of possibility and language.
3167
3168 2000-06-03  Richard Henderson  <rth@cygnus.com>
3169
3170         * alias.c (record_alias_subset): Initialize has_zero_child in the
3171         superset.
3172
3173 2000-06-03  Richard Earnshaw (rearnsha@arm.com)
3174
3175         * arm.md (untyped_call): Use GEN_CALL macro.
3176
3177 2000-06-02  Pekka Nikander  <pnr@teldanex.tcm.hut.fi>
3178
3179         * Makefile.in: Use $(MAKE) not "make"
3180
3181 Fri Jun  2 19:31:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3182
3183         * alias.c (struct alias_set_entry): New field has_zero_child.
3184         (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
3185         (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
3186         do nothing.
3187         Call record_component_aliases for aggregate types.
3188         (record_alias_subset): Set has_zero_child.
3189         (record_component_aliases, case ARRAY_TYPE): Do nothing if
3190         TYPE_NONALIASES_COMPONENT.
3191         (record_component_aliases, case RECORD_TYPE): Test
3192         DECL_NONADDRESSABLE_P.
3193         * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
3194         of TREE_ADDRESSABLE.
3195         * calls.c (initialize_argument_information): Only test
3196         TYPE_TRANSPARENT_UNION for UNION_TYPE.
3197         * function.c (assign_parms): Likewise.
3198         * integrate.c (function_cannot_inline_p): Likewise.
3199         * stor-layout.c (finish_record_layout): Don't call
3200         record_component_aliases.
3201         * tree.h (struct tree_int_cst): Use struct tree_common.
3202         (struct tree_real_cst, struct tree_string): Likewise.
3203         (struct tree_complex, struct tree_identifier): Likewise.
3204         (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
3205         (struct tree_block, struct tree_type, struct tree_decl): Likewise.
3206         (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
3207         (TYPE_NONALIASES_COMPONENT): New macro.
3208         (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
3209         (DECL_NONADDRESSABLE_P): New macro.
3210         (struct tree_decl): Reorder bits for clarity of how many left;
3211         add non_adressable.
3212
3213 2000-06-02  Jason Merrill  <jason@casey.soma.redhat.com>
3214
3215         * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
3216         * mklibgcc.in (force): New target.
3217         Make LIB2ADD stuff depend on it.
3218
3219 2000-06-02  Richard Henderson  <rth@cygnus.com>
3220
3221         * alias.c (lang_get_alias_set): Remove.
3222         (get_alias_set): Call it directly, not indirectly.
3223         * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
3224         * c-common.h (c_get_alias_set): Don't declare.
3225         * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
3226         * expr.h (lang_get_alias_set): Declare as function, not pointer.
3227
3228 2000-06-02  Bruce Korb  <bkorb@gnu.org>
3229
3230         * fixinc/server.c(sig_handler):  resume closing server on SIGPIPE
3231         (server_setup):  define the server's master pid
3232         (close_server):  actually do the deed IFF we are the server's master
3233
3234 2000-06-02  Jakub Jelinek  <jakub@redhat.com>
3235
3236         * c-common.c (c_get_alias_set): Check whether signed_type did not
3237         return its argument before calling get_alias_set on the result.
3238
3239 2000-06-02  Andrew MacLeod  <amacleod@cygnus.com>
3240
3241         * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
3242
3243 Fri Jun  2 00:22:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3244
3245         * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
3246         (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
3247         for TARGET_NOMACSAVE.
3248         (NOMACSAVE_BIT): Define.
3249         (TARGET_NOMACSAVE): Define.
3250         (TARGET_SWITCHES): Add "nomacsave".
3251
3252 2000-06-02  Toshiyasu Morita  <toshi.morita@sega.com>
3253
3254         * sh.md (untyped_call): Remove excess parameters
3255
3256 2000-06-01  Loren J. Rittle  <ljrittle@acm.org>
3257
3258         * fixinc/inclhack.def (osf_namespace_a): Relax expression to
3259         match that used before the conversion to c_fix style.
3260         * fixinc/fixincl.x: regenerate
3261
3262 2000-06-01  Stan Cox  <scox@cygnus.com>
3263
3264         * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
3265         macro argument typo.
3266
3267 2000-06-01  Zack Weinberg  <zack@wolery.cumb.org>
3268
3269         * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL.  Improve
3270         error message.
3271         * cpplib.c (parse_include): Remove support for VAX-C
3272         "#include starlet" misfeature.
3273
3274 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
3275
3276         * cppfiles.c: conditionally define O_BINARY.
3277         (open_include_file): pass O_BINARY to open().
3278
3279 2000-06-01  Richard Henderson  <rth@cygnus.com>
3280
3281         * i960.c (i960_br_predict_opcode): Remove.
3282         (i960_print_operand) [+]: Emit branch prediction hints.
3283         (i960_function_arg): Return early for VOIDmode.
3284         (i960_round_align): Return early for incomplete types.
3285         * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
3286         * i960.md (all conditional branches): Add "%+".
3287
3288 Thu Jun  1 12:24:21 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3289
3290         * alias.c (get_alias_set): Don't call language-specific routine more
3291         than is needed and clean up code a bit.
3292         * c-common.c (c_get_alias_set): All references whose type
3293         is char get alias set 0, but character types need not.
3294         * varasm.c (make_function_rtl): Don't call set_mem_attributes.
3295         (make_decl_rtl): Don't call it for FUNCTION_DECL.
3296
3297 2000-06-01  Bruce Korb  <bkorb@gnu.org>
3298
3299         * fixinc/tests/base/...: new base result files
3300
3301 Thu Jun  1 09:37:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
3302
3303         * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
3304         * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
3305         * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
3306         will use FCOMI.
3307
3308 2000-06-01  Richard Henderson  <rth@cygnus.com>
3309
3310         * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
3311
3312         * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
3313
3314 2000-05-31  Richard Henderson  <rth@cygnus.com>
3315
3316         * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
3317         CONSTANT_POOL_ADDRESS_P addresses for .sdata.
3318         * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
3319
3320 2000-05-31  Richard Henderson  <rth@cygnus.com>
3321
3322         * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
3323         * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
3324         (ia64_print_operand) [+]: ... here.  Use current_output_insn.
3325         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
3326         * config/ia64/ia64.md (all branch/call patterns): Use %+.
3327
3328 2000-05-31  Richard Henderson  <rth@cygnus.com>
3329
3330         * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
3331
3332 2000-05-31  Richard Henderson  <rth@cygnus.com>
3333
3334         * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
3335         remaining edges.
3336         (find_if_block): Allow THEN with no outgoing edges.
3337         * flow.c (merge_blocks_nomove): Remove a barrier not following
3338         a jump as well.
3339
3340 2000-05-31  Richard Henderson  <rth@cygnus.com>
3341
3342         * flow.c (propagate_block): Move initialization of mem_set_list ...
3343         (init_propagate_block_info): ... here.  Also track blocks with
3344         no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
3345
3346 2000-05-31  Richard Henderson  <rth@cygnus.com>
3347
3348         * jump.c (jump_optimize_1): Revert 05-18 change.
3349
3350 2000-05-31  Mark Mitchell  <mark@codesourcery.com>
3351
3352         * invoke.texi: Remove documentation for -fguiding-decls.
3353
3354 2000-05-31  Richard Henderson  <rth@cygnus.com>
3355
3356         * configure.in: Fix typo last change.
3357
3358 2000-05-31  Philipp Thomas  <pthomas@suse.de>
3359
3360         * configure.in (enable-nls): Enable if build == host, i.e. when
3361         not building a canadian cross compiler.
3362         (enable-maintainer-mode): Added for use with i18n.
3363         * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
3364         cross section of ALL_LINGUAS and LINGUAS.
3365         * configure: Rebuild.
3366
3367 2000-05-31  Bruce Korb  <bkorb@gnu.org>
3368
3369         * fixinc/check.tpl: rework to use test result tree
3370         * fixinc/Makefile.in: change invocation of check script
3371         * fixinc/check.diff: No longer needed
3372         * fixinc/fixincl.x: regenerate
3373         * fixinc/inclhack.def:  add new tests
3374         * fixinc/tests/base/arch/i960/archI960.h:  New test result
3375         * fixinc/tests/base/curses.h: modified test result
3376         * fixinc/tests/base/stdio.h: ditto
3377         * fixinc/tests/base/time.h: ditto
3378         * fixinc/tests/base/sys/asm.h: ditto
3379         * fixinc/tests/base/sys/stat.h: ditto
3380         * fixinc/tests/base/sys/wait.h: ditto
3381
3382 Wed May 31 13:17:20 2000  Philippe De Muyter  <phdm@macqel.be>
3383
3384         * except.c (clear_function_eh_region): Do not free NULL.
3385
3386 Wed May 31 08:07:52 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3387
3388         * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
3389         * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
3390         (REG_BASE_VALUE): Remove unneeded cast to unsigned.
3391         (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
3392         (find_base_decl): New function, from c_find_base_decl in c-common.c.
3393         (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
3394         (get_alias_set): Likewise.
3395         Major rework to do more things and allow language-specific code
3396         to just handle special-cases.
3397         (record_alias_subset): Args are HOST_WIDE_INT.
3398         (record_component_alias): Local vars are HOST_WIDE_INT.
3399         Don't handle COMPLEX_EXPR.
3400         (get_varargs_alias_set): Moved from builtins.c.
3401         (get_frame_alias_set): New function.
3402         * builtins.c (expand_builtin_return_address): Use frame alias set.
3403         (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
3404         for setjmp buffer.
3405         (get_memory_rtx): Rework to use set_mem_attributes.
3406         (get_varargs_alias_set): Deleted from here.
3407         * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
3408         (c_find_base_decl): Deleted from here.
3409         (c_get_alias_set): Remove many cases and rework to just handle
3410         C-specific cases.
3411         * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
3412         * c-decl.c (rtl.h, expr.h): Now included.
3413         (init_decl_processing): Call record_component_aliases on array types.
3414         (grokdeclarator): Likewise.
3415         Set TREE_ADDRESSABLE for all fields that are not bitfields.
3416         * c-typeck.c (common_type): Call record_component_aliases for array.
3417         * caller-save.c (setup_save_areas): Rework register loop for unsigned.
3418         Set all save areas to the frame alias set.
3419         * calls.c (initialie_argument_information): Call set_mem_attributes.
3420         (compute_argument_addresses, expand_call): Likewise.
3421         * explow.c (set_mem_attributes): New function.
3422         (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
3423         * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
3424         LEN and OFFSET now HOST_WIDE_INT.
3425         (clear_by_pieces): Similar changes.
3426         (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
3427         (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
3428         (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
3429         (clear_by_pieces_1): Likewise.
3430         (emit_push_insn): Call set_mem_attributes.
3431         (expand_expr, case INDIRECT_REF): Likewise.
3432         (expand_expr, case VAR_DECL): Call change_address.
3433         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
3434         tree_low_cst.
3435         (get_varargs_alias_set, get_frame_alias_set): New decls.
3436         (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
3437         (new_alias_set, set_mem_attributes): Likewse.
3438         * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
3439         (assign_stack_temp_for_type): Likewise.
3440         Can split slot even if alias set since can copy.
3441         Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
3442         (assign_temp): Use host_integerp and tree_low_cst.
3443         (put_var_into_stack): Properly handle SAVE_EXPR.
3444         (put_addressof_into_stack): Likewise.
3445         (assign_parms): Call set_mem_attributes.
3446         Delete #if 0 code.
3447         (fix_lexical_address): Put reference to chain into frame alias set.
3448         (expand_function_start): Call set_mem_attributes.
3449         * integrate.c (expand_inline_function): Likewise.
3450         * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
3451         * regmove.c (try_apply_stack_adjustment): Likewise.
3452         * reload.c (push_reload, make_memloc): Likewise.
3453         * reload1.c (alter_reg): Make alias sets for spilled pseudos.
3454         * rtl.def (MEM): Update comment.
3455         * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
3456         (move_by_pieces): Change length to HOST_WIDE_INT.
3457         (record_base_value, record_alias_subset): Delete from here.
3458         * stmt.c (expand_decl): Call set_mem_attributes.
3459         * stor-layout.c (finish_record_layout): Call record_component_aliases.i
3460         * toplev.c (compile_file): Call init_alias_once earlier.
3461         * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
3462         from here: now in alias.c.
3463         * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
3464         (struct tree_decl): Likewise.
3465         (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
3466         * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
3467         (output_constant_def, force_const_mem): Likewise.
3468
3469         * flow.c (propagate_block): If block has no successors, stores to
3470         frame are dead if not used.
3471
3472 2000-05-31  Nathan Sidwell  <nathan@codesourcery.com>
3473
3474         * stmt (expand_end_case): Reorder conversion sequence for jump
3475         table to avoid extra truncations.
3476
3477 Wed May 31 01:31:42 2000  Jeffrey A Law  (law@cygnus.com)
3478
3479         * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
3480         in the block is more than just a simple conditional branch.
3481         (noce_process_if_block): Similarly.
3482
3483 Tue May 30 22:25:57 2000  Alexandre Oliva  <aoliva@cygnus.com>
3484
3485         * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
3486         queue.
3487
3488 2000-05-30  Michael Meissner  <meissner@redhat.com>
3489
3490         * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
3491         instructions.  Treat LO_SUM operations as loading the full integer
3492         constant.
3493
3494 2000-05-30  Richard Henderson  <rth@cygnus.com>
3495
3496         * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
3497
3498 2000-05-30  Richard Henderson  <rth@cygnus.com>
3499
3500         * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
3501
3502 2000-05-30  Bruce Korb  <bkorb@gnu.org>
3503
3504         * fixinc/tests/*:  Added expected result files for fixinc's make check
3505         * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
3506
3507 2000-05-30  Richard Henderson  <rth@cygnus.com>
3508
3509         * config/alpha/alpha.md (*setne_internal): Use match_operator
3510         instead of working down from insn.
3511
3512 2000-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3513
3514         * invoke.texi (-Wtraditional): Update WRT function macros.
3515
3516 Tue May 30 09:57:32 2000  Philippe De Muyter  <phdm@macqel.be>
3517
3518         * except.c (free_exception_table): Do not free NULL.
3519
3520 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
3521
3522         * cpplib.c (do_if): Don't save and restore only_seen_white here.
3523         * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
3524         and skipping here.
3525
3526 2000-05-29  Richard Earnshaw (rearnsha@arm.com)
3527
3528         * flow.c (mark_used_reg): If a register is unconditionally live,
3529         remove any conditional death information.
3530
3531 2000-05-29  Richard Henderson  <rth@cygnus.com>
3532
3533         * final.c (current_output_insn): New.
3534         (final_scan_insn): Set it.
3535         * output.h: Declare it.
3536
3537 2000-05-29  Richard Henderson  <rth@cygnus.com>
3538
3539         * stor-layout.c (finalize_record_size): Fix typo.
3540
3541         * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
3542         if nlabel is null.
3543
3544 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
3545
3546         * cpplib.h (cpp_reader): Remove if_stack.  Change
3547         potential_control_macro to a cpp_hashnode *.  Add skipping flag.
3548         * cpphash.h (struct ihash): Change control_macro to a
3549         cpp_hashnode * and shorten name to cmacro.
3550         Add NEVER_REINCLUDE constant.
3551
3552         * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
3553         Examine the cmacro node directly, no need to call cpp_defined.
3554         (_cpp_execute_include, read_include_file): Set cmacro to
3555         NEVER_REINCLUDE, not U"".
3556         * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
3557         (cpp_get_token): If pfile->skipping is true, discard text and
3558         keep scanning until we hit a directive; don't expand macros.
3559
3560         * cpplib.c (struct if_stack): Remove if_succeeded, add
3561         was_skipping. Change control_macro to a cpp_hashnode * and
3562         shorten name to cmacro.  Remove typedef IF_STACK.
3563         (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
3564         (conditional_skip, skip_if_group,
3565         consider_directive_while_skipping): Delete.
3566         (push_conditional): New.
3567         (_cpp_handle_directive): Don't process directives other than
3568         conditionals if we are skipping.
3569
3570         (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
3571         Update to new scheme.
3572         (validate_else): Skip rest of line here, unconditionally.
3573         (_cpp_unwind_if_stack): The stack is per-buffer.  Force
3574         pfile->skipping off.
3575
3576         (all): Remove `scare quotes' from error messages.
3577
3578 2000-05-29  Richard Henderson  <rth@cygnus.com>
3579
3580         * function.c (emit_return_into_block): New line_note arg; emit it.
3581         (thread_prologue_and_epilogue_insns): Attempt to locate a line note
3582         for the close brace to accompany HAVE_return.  Move all line notes
3583         following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
3584
3585 2000-05-29  Richard Henderson  <rth@cygnus.com>
3586
3587         * longlong.h [__alpha] (count_leading_zeros): New.
3588         (count_trailing_zeros): New.
3589         (COUNT_LEADING_ZEROS_0): New.
3590
3591         * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
3592         (alpha_split_conditional_move): New.
3593         * config/alpha/alpha-protos.h: Prototype them.
3594         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3595         (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
3596         * config/alpha/alpha.md: Update ffs cix commentary.
3597         (*ze_and_ne): New.
3598         (*nabssf2, *nabsdf2): New.
3599         (*mov[qhsd]icc_internal): Use add_operand.
3600         (if_then_else constant splitters): New.
3601         (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
3602         (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
3603
3604 2000-05-29  Richard Henderson  <rth@cygnus.com>
3605
3606         * combine.c (force_to_mode) [MINUS]: Convert subtraction from
3607         a constant to NEG or NOT when conditions allow.
3608
3609         * combine.c (combine_simplify_rtx): Don't create an if_then_else
3610         unless both args are general_operand.  Don't canonicalize plus
3611         to ior unless it helps.
3612
3613         * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
3614         instead track register_life_up_to_date.  Toggle no_new_pseudos
3615         around if_convert.
3616
3617 2000-05-28  Geoff Keating  <geoffk@cygnus.com>
3618
3619         * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
3620         so output_operand doesn't see them.
3621
3622 Sun May 28 18:37:07 2000  Clinton Popetz  <cpopetz@cygnus.com>
3623
3624         * lcm.c (make_preds_opaque): Fix comment.
3625         (optimize_mode_switching): Use NORMAL_MODE instead of
3626         MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
3627         FP_MODE_NONE to no_mode.  Rename MODE_AT_ENTRY to NORMAL_MODE.
3628         Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
3629         * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
3630         (MODE_USES_IN_EXIT_BLOCK): Delete.
3631         (MODE_AT_ENTRY) Rename to NORMAL_MODE.
3632         * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
3633         (MODE_AT_ENTRY): Rename to NORMAL_MODE.
3634         (MODE_NEEDED): Don't look for USE.
3635         (EPILOGUE_USES): Define.
3636
3637 Sun May 28 23:26:59 2000  Philippe De Muyter <phdm@macqel.be>
3638
3639         * mklibgcc.in (all): Variable initialised to `libgcc'.
3640
3641 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
3642
3643         * toplev.h (skip_leading_substring): New macro.
3644         * toplev.c (decode_f_option): Use skip_leading_substring instead
3645         of strncmp.
3646         (decode_W_option): Likewise.
3647
3648 2000-05-28  Nick Clifton  <nickc@cygnus.com>
3649
3650         * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
3651         modify reg_names.
3652
3653 2000-05-28  Richard Henderson  <rth@cygnus.com>
3654
3655         * regclass.c (record_operand_costs): Protect reg_changes_size
3656         with CLASS_CANNOT_CHANGE_SIZE.
3657
3658         * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
3659
3660 2000-05-28  Richard Henderson  <rth@cygnus.com>
3661
3662         * function.c (diddle_return_value): A pcc-style struct return
3663         returns a pointer.
3664
3665 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
3666
3667         * cppfiles.c: Read files in, using mmap if possible, then
3668         prescan them separately.
3669         (read_file, read_with_read): New functions.
3670         * cpplex.c: Don't define UCHAR_MAX.
3671         (_cpp_read_and_prescan): Rename to _cpp_prescan.  Don't read
3672         the file here.
3673
3674         * cppinit.c (handle_option): Automatically define __cplusplus,
3675         __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
3676         the respective -lang switch.
3677
3678         * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
3679         prototype): Move to...
3680         * cpplib.h: ... here.  Rename struct hashnode to struct
3681         cpp_hashnode and give it a typedef.  Rename _cpp_lookup to
3682         cpp_lookup.  Add 'fe_value' slot, a union tree_node *.
3683
3684 2000-05-27  Geoffrey Keating  <geoffk@cygnus.com>
3685
3686         * config/rs6000/rs6000.md (movsi): Constify 'name'.
3687
3688         * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
3689         (class_can_change_size): New variable.
3690         (reg_changes_size): New variable.
3691         (init_reg_sets_1): Initialise class_can_change_size.
3692         (record_operand_costs): Remove subreg_changes_size.
3693         Don't pass it around.  Instead update reg_changes_size.
3694         (regclass): Initialise and free reg_changes_size.  If a register
3695         changes size, don't preference it to a class that contains
3696         registers that can't change size.
3697         (record_reg_classes): Don't look at subreg_changes_size.
3698
3699 2000-05-27  Richard Henderson  <rth@cygnus.com>
3700
3701         * print-rtl.c (reg_names): Remove const.
3702         * regclass.c (reg_names): Likewise.
3703         * regs.h (reg_names): Likewise.
3704         * hard-reg-set.h (reg_names): Likewise.
3705
3706 2000-05-27  Richard Henderson  <rth@cygnus.com>
3707
3708         * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
3709
3710 2000-05-27  Richard Henderson  <rth@cygnus.com>
3711
3712         * config/alpha/alpha.c (alpha_does_function_need_gp): Test
3713         TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
3714         (alpha_expand_prologue): Emit prologue_mcount if needed.
3715         * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
3716         * config/alpha/alpha.md (prologue_mcount): New.
3717         * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
3718         (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
3719         * config/alpha/netbsd.h: Likewise.
3720
3721 2000-05-27  Richard Henderson  <rth@cygnus.com>
3722
3723         * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
3724         change to config/elfos.h.
3725
3726 2000-05-27  Richard Henderson  <rth@cygnus.com>
3727
3728         * Makefile.in (resource.o): Depend on except.h.
3729         * except.h (output_exception_table_data): Prototype.
3730         * genconfig.c (gen_peephole2): Prototype.
3731         * genemit.c (main): Include ggc.h.
3732         * genoutput.c: Revert parts of last change: include errors.h
3733         (main): Set progname.
3734         * recog.c: Include hard-reg-set.h before recog.h.
3735         * resource.c: Include except.h.
3736
3737         * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
3738         with RTX_CODE.
3739         (alpha_write_linkage): Protect with BUFSIZ.
3740         (alpha_need_linkage): Update prototype.
3741         * config/alpha/alpha.c (function_arg): Move VMS code here.
3742         (alpha_links_base): Remove.
3743         (alpha_links): New.
3744         (mark_alpha_links_node, mark_alpha_links): New.
3745         (alpha_write_one_linkage): New.
3746         (alpha_need_linkage): Use a splay tree.  Build the linkage symbol.
3747         (alpha_write_linkage): Use splay_tree_foreach.
3748         * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
3749         to get the linkage symbol.
3750         (call_value_vms): Likewise.
3751         * config/alpha/elf.h (output_file_directive): Remove decl.
3752         (ctors_section, dtors_section): Prototype.
3753         (sbss_section, sdata_section): Prototype.
3754         * config/alpha/vms.h (FUNCTION_ARG): Remove.
3755         (readonly_section, link_section, literals_section): Prototype.
3756         (ctors_section, dtors_section): Prototype.
3757         (vms_valid_decl_attribute_p): Remove decl.
3758         (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
3759
3760 2000-05-27  Geoff Keating  <geoffk@cygnus.com>
3761
3762         * reload.c (get_secondary_mem): Don't widen floating-point modes.
3763
3764         * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
3765         substituting the REG in a (subreg:X (reg:Y ...)).
3766
3767 2000-05-28  Neil Booth  <NeilB@earthling.net>
3768
3769         * cpplex.c (_cpp_lex_line): Merge vertical space.  Flag
3770         first token of a line BOL.  Update EOF code for this.
3771         Remove illegal directive check - it appears in the (not
3772         yet committed) caller.
3773         * cpplib.h (BOL): New flag.
3774
3775 2000-05-28  Neil Booth  <NeilB@earthling.net>
3776
3777         * cpplex.c (_cpp_init_toklist): No comment space to initialise.
3778         (_cpp_free_toklist): No comment space to free.
3779         (expand_comment_space): Remove.
3780         (save_comment_space): Place the comment in the current token and
3781         not in a separate comment space.
3782         (_cpp_lex_line): Save comments during plain code and #define
3783         directives only.
3784         * cpplib.h (struct _cpp_toklist): Remove comment space.
3785
3786 2000-05-28  Neil Booth  <NeilB@earthling.net>
3787
3788         * cppexp.c (parse_assertion): Supply extra argument to
3789         _cpp_init_toklist.
3790         * cpplib.c (do_assert, do_unassert): Similarly.
3791         * cpphash.h (_cpp_init_toklist) Update.
3792         (_cpp_expand_token_space): New.
3793         (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
3794         * cpplex.c (_cpp_init_toklist): New argument.
3795         (parse_string2): New argument multiline_ok.
3796         (spell_token): Take a const cpp_token *.
3797         (INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
3798         (SPELL_ macros): Replace with enum.
3799         (expand_token_space): Replace with _cpp_expand_token_space.
3800         Take COUNT argument.
3801         (IS_DIRECTIVE): Update.
3802         (_cpp_lex_line): Update token structure before parsing number.
3803         Don't assume start at beginning of token list.
3804         (save_comment): Use INIT_TOKEN_NAME.
3805
3806 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
3807
3808         * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
3809         -Wmissing-prototypes.
3810         * configure: Regenerate.
3811         * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
3812
3813         * builtins.c, calls.c: Change all instances of gen_call_* or
3814         gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
3815         * calls.c (struct_value_size_rtx): Separate definition from
3816         initialization to avoid unused variable warning.
3817
3818         * genflags.c (gen_macro): New function.
3819         (gen_proto): Call it for gen_call_* and gen_sibcall_*.
3820         (gen_nonproto): Delete.
3821         (gen_insn): Put all insns on the same obstack.
3822         (main): Generate prototypes for everything unconditionally.
3823
3824         * configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented
3825         out check for wchar_t.
3826         * acconfig.h: Add template for ssize_t.  Remove @TOP@.
3827         * system.h: Add infrastructure for defining missing
3828         TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback
3829         definitions of UCHAR_MAX and SSIZE_MAX.
3830         * configure: Regenerate.
3831         * config.in: Regenerate.
3832
3833         * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
3834         Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
3835         headers.
3836         (clean): No need to delete libgcc1.a, libgcc1-asm.a,
3837         libgcc2.a, or libgcc1.null.
3838
3839 2000-05-27  Richard Henderson  <rth@cygnus.com>
3840
3841         * Makefile.in (recog.o): Don't depend on resource.h.
3842         * recog.c: Don't include resource.h.
3843         (recog_last_allowed_insn): Remove.
3844         (recog_next_insn): Remove.
3845         (struct peep2_insn_data): New.
3846         (peep2_insn_data, peep2_current): New.
3847         (peep2_next_insn): New.
3848         (peep2_regno_dead_p, peep2_reg_dead_p): New.
3849         (peep2_find_free_register): New.
3850         (peephole2_optimize): Track life information by insn as we go.
3851         * recog.h: Update declarations.
3852         * resource.c (find_free_register, reg_dead_p): Remove.
3853         * resource.h: Remove their declarations.
3854         * toplev.c: Include hard-reg-set.h before recog.h.
3855
3856         * genconfig.c (max_insns_per_peep2): New.
3857         (gen_peephole2): New.
3858         (main): Call it.
3859         * genemit.c (output_peephole2_scratches): Generate calls to
3860         peep2_find_free_register; adjust surrounding code.
3861         (main): Have insn-emit.c include hard-reg-set.h before recog.h.
3862         * genrecog.c (change_state): Don't track last_insn.
3863         (write_action): Write into *_pmatch_len before accepting.
3864         (write_tree): Adjust peephole2_insns and subroutines to match.
3865
3866         * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
3867
3868         * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
3869         (hard_int_register_operand): New.
3870         * config/alpha/alpha-protos.h: Declare it.
3871         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3872         * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
3873         as needed; use peep2_reg_dead_p instead of dead_or_set_p.
3874
3875 2000-05-27  Richard Henderson  <rth@cygnus.com>
3876
3877         * function.c (thread_prologue_epilogue_insns): Don't move the
3878         line note at the head of the chain.  Only force a lineno note
3879         before the end of block 0.
3880
3881 2000-05-27  Richard Henderson  <rth@cygnus.com>
3882
3883         * gensupport.c (collect_insn_data): Record the maximum number
3884         of alternatives, not the last seen.
3885
3886         * genoutput.c: Don't include errors.h.
3887         (struct data): Add lineno member.
3888         (have_error): New.
3889         (scan_operands): Use message_with_line instead of error.
3890         (validate_insn_alternatives): Likewise.
3891         (gen_insn): Accept and store the pattern's line number.
3892         (gen_peephole, gen_expand, gen_split): Likewise.
3893         (main): Don't set progname.  Pass line_no to gen_foo.
3894
3895 2000-05-27  Richard Henderson  <rth@cygnus.com>
3896
3897         * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
3898         * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
3899         * config/d30v/d30v.md (attr predicable): New.
3900         (all insn patterns): Mark non-predicable patterns; use %: on the rest.
3901         (andsi3*): Unify into one pattern.
3902         (iorsi3*, xorsi3*): Likewise.
3903         (peephole2 patterns): Use peep2_reg_dead_p; verify not a
3904         conditional return.
3905         (old cond_exec patterns): Remove.
3906         (define_cond_exec): New.
3907
3908 Sat May 27 11:01:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3909
3910         * tree.h (TREE_CODE_LENGTH): New macro.
3911         * c-common.c (c_find_base_decl): Use it.
3912         * expr.c (safe_from_p): Likewise.
3913         * print-tree.c (print_node): Likewise.
3914         * tree.c (make_node, copy_node, get_identifier): Likewie.
3915         (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
3916         (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
3917         * fold-const.c (make_range): Likewise.
3918         (fold): Likewise; also use first_rtl_op.
3919         * c-iterate.c (collect_iterators): Use first_rtl_op.
3920         * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
3921         Use IS_EXPR_CODE_CLASS.
3922         (preexpand_calls): Likewise.
3923         * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
3924         and TREE_CODE_LENGTH.
3925         * stmt.c (warn_if_unused_value): If no operands, no unused value.
3926
3927 2000-05-26  Geoffrey Keating  <geoffk@cygnus.com>
3928
3929         * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
3930         than '%1(%*)'.
3931         (movdi_internal64): Likewise.
3932
3933         * config/rs6000/rs6000.md: Correct order of operands for DImode
3934         boolean patterns.
3935
3936         * config/rs6000/rs6000.c (boolean_or_operator): New function.
3937         * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
3938         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
3939         * config/rs6000/rs6000.md: Use boolean_or_operator instead of
3940         boolean_operator for the boolean patterns without NOTs.
3941
3942         * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
3943         from reg_or_u_cint_operand.  Change comment and behaviour.
3944         (logical_operand): Clean up, add assertion.
3945         (non_logical_cint_operand): Also check for
3946         reg_or_logical_cint_operand.
3947         * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
3948         * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
3949         in the expander.
3950         (xorsi3): Likewise.
3951         (iordi3): Likewise.
3952         (xordi3): Likewise.
3953
3954 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
3955
3956         * tree.h (struct record_layout_info): Rename to (struct
3957         record_layout_info_s).
3958         * stor-layout.c (start_record_layout): Replace
3959         `record_layout_info' with `record_layout_info_s'.
3960
3961 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
3962
3963         * flow.c (find_label_refs): New function.
3964         (find_basic_blocks_1): Call it for each alternative of a call
3965         placeholder.
3966
3967 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
3968
3969         * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
3970         of get_pc.
3971
3972 2000-05-25  Richard Henderson  <rth@cygnus.com>
3973
3974         * config/alpha/alpha.c (alpha_comparison_operator): Don't be
3975         so strict about DImode.
3976         (alpha_swapped_comparison_operator): Likewise.
3977         * config/alpha/alpha.md (*setne_internal): Name it.  Allow
3978         any integer output mode.
3979         (*setcc_internal): Likewise.
3980         (*setcc_swapped_internal): Likewise.
3981         (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
3982         (*mov[qhs]icc_internal): New.
3983         (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
3984
3985 2000-05-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3986
3987         * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
3988
3989 2000-05-25  Richard Henderson  <rth@cygnus.com>
3990
3991         * bb-reorder.c (reorder_block_def): Reorder elements for size.
3992         Remove add_jump; add next; replace flags with visited.
3993         (rbd_init): Remove.
3994         (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
3995         (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
3996         (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
3997         (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
3998         (RBI): New.
3999         (reorder_index, reorder_last_visited): Remove.
4000         (skip_insns_after_block): Rewrite to use a switch.
4001         (get_common_dest): Remove.
4002         (chain_reorder_blocks): Remove.
4003         (record_effective_endpoints): Split out from reorder_basic_blocks.
4004         (make_reorder_chain): Likewise.  Loop until all blocks are placed.
4005         (make_reorder_chain_1): Renamed from old make_reorder_chain.
4006         Only construct the reorder chain, do not move insns.  Try harder
4007         to tail recurse.
4008         (label_for_bb, emit_jump_to_block_after): New.
4009         (fixup_reorder_chain): Use them.  Do bulk block movement.  Examine
4010         and adjust the jump insns appropriately.  Fixup basic_block_info.
4011         (verify_insn_chain): Always define.
4012         (relate_bbs_with_scopes): Call xmalloc, not xcalloc.  Fix thinko
4013         in allocation size.
4014         (make_new_scope): Don't write zeros to calloc'd space.
4015         (build_scope_forest): Rely on xrealloc to DTRT.
4016         (reorder_basic_blocks): Don't build loop nest.  Don't fail if
4017         profile_arc_flag.  Streamline EH test.
4018
4019         * flow.c (redirect_edge_succ, redirect_edge_pred): New.
4020         * basic-block.h: Declare them.
4021
4022 2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
4023
4024         * emit-rtl.c (reset_used_decls): New function.
4025         (unshare_all_rtl_again): Call it.
4026
4027 2000-05-25  Zack Weinberg  <zack@wolery.cumb.org>
4028
4029         * cpplex.c (maybe_macroexpand): Warn about function-like
4030         macros used in non-function context, if -Wtraditional.
4031
4032 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
4033
4034         * recog.c (peephole2_optimize): Use INSN_P.
4035
4036 2000-05-25  Richard Henderson  <rth@cygnus.com>
4037
4038         * ifcvt.c (seq_contains_jump): New.
4039         (noce_try_store_flag_constants): Use it to fail conversion.
4040         (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
4041
4042 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
4043
4044         * except.h (can_throw): Declare it.
4045         * except.c (can_throw): Give it external linkage.
4046         * resource.c (find_dead_or_set_registers): Use can_throw.
4047
4048 2000-05-25  Richard Henderson  <rth@cygnus.com>
4049
4050         * flow.c (mark_set_1): Don't record conditionally dead memory.
4051
4052 2000-05-25  Jan Hubicka  <jh@suse.cz>
4053
4054         * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
4055         and pc_set at the place of simplejump_p and condjump_p.
4056         * cse.c (record_jump_equiv): Likewise.
4057         * emit-rtl.c (emit): Likewise.
4058         * explow.c (find_next_ref): Likewise.
4059         * flow.c (tidy_fallthru_edge): Likewise.
4060         (init_propagate_block_info): Likewise.
4061         * gcse.c (delete_null_pointer_checks): Likewise.
4062         * ifcvt.c (cond_exec_get_condition, noce_get_condition,
4063         dead_or_predicable): Likewise.
4064         * integrate.c (copy_insn_list): Likewise.
4065         * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
4066         for_each_insn_in_loop, check_dbra_loop, get_condition,
4067         insert_bct, load_mems): Likewise.
4068         * resource.c (find_dead_or_set_registers): Likewise.
4069         * sibcalls.c (simplejump_p): Likewise.
4070         * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
4071
4072 2000-05-25  David Edelsohn  <edelsohn@gnu.org>
4073
4074         * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
4075         to STRING case.  Use doubleword STRING move for TARGET_POWERPC64
4076         when unaligned.
4077         * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
4078         (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
4079         (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
4080         * rs6000.md: Name various internal patterns.
4081
4082 2000-05-25  Jan Hubicka  <jh@suse.cz>
4083
4084         * jump.c (invert_exp_1): Remove first argument, use pc_set
4085         to get the expression.
4086         (redirect_exp): Make static; redirect only the pc_set expression,
4087         remove first argument.
4088         (invert_exp): Remove first argument, make static.
4089         (jump_optimize): Use any_condjump_p, any_uncondjump_p and
4090         any_onlyjump at most places where we originaly did condjump_p
4091         and simplejump_p.
4092         (jump_back_p, follow_jumps, thread_jumps): Likewise.
4093         (delete_barrier_succesors): Use pc_set.
4094         (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
4095         calls of invert_exp and redirect_exp.
4096         * rtl.h (redirect_exp, invert_exp): Remove.
4097         * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
4098
4099 2000-05-25  Richard Henderson  <rth@cygnus.com>
4100
4101         * stmt.c (expand_end_bindings): Fix thinko last change.
4102
4103 2000-05-25  Andrew MacLeod  <amacleod@cygnus.com>
4104             Andrew Haley  <aph@cygnus.com>
4105
4106         * except.c  (func_eh_entry): Add emitted field.
4107         (new_eh_region_entry): Set emitted field to 0;
4108         (output_exception_table_entry): Only emit previously un-emitted data,
4109         and send it to the eh_data section.
4110         (output_exception_table): Break out common parts. Output
4111         exception table for entire compilation unit to eh_data section.
4112         (output_exception_table_data): Common parts of output_exception_table.
4113         Send output to eh_data section.
4114         (output_function_exception_table): Output exception table data for
4115         a single function to eh_data section.
4116         (free_exception_table): New external to free the table.
4117         * except.h (free_exception_table): Add prototype.
4118         (output_function_exception_table): Add prototype.
4119         * final.c (final_end_function): Output function exception table
4120         for IA64_UNWIND_INFO.
4121         (final_scan_insn): Emit any unwind directives for an insn.
4122
4123         * frame-dwarf2.c: New file containing all DWARF 2 specific code
4124         from frame.c.
4125         * frame.c: Remove all DWARF 2 specific code.
4126         * config/ia64/frame-ia64.c: New file.
4127         (gthread_stuff): Make all gthread available with
4128         IA64_UNWIND_INFO.
4129         (dwarf_fde): Define an IA64 struct for dwarf_fde.
4130         (__register_frame_info, __register_frame): Move to common area of file.
4131         (__register_frame_info_table, __register_frame_table): Move to common i
4132         area.
4133         (__deregister_frame_info, __deregister_frame): Move to common area.
4134         (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
4135         (read_uleb128): New version for ia64.
4136         (get_unwind_record): Read the next IA-64 unwind record.
4137         (read_R_record): Read a region header record.
4138         (process_a_b_reg_code): X record helper.
4139         (read_X_record): Read an X format record.
4140         (read_B_record): Read a B format record.
4141         (P3_record_types): List of record types matching the P3 format.
4142         (P7_record_types): List of record types matching the P7 format.
4143         (P8_record_types): List of record types matching the P8 format.
4144         (read_P_record): Read a P format record.
4145         (init_ia64_reg_loc): Set default fields for a register.
4146         (init_ia64_unwind_frame): Set defaults for all register records.
4147         (execute_one_ia64_descriptor): Execute one descriptor record.
4148         (rse_address_add): Calculate the position of a local reg in memory.
4149         (normalize_reg_loc): Turn a location descriptor into a memory address.
4150         (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
4151         within a specified PC offset range.
4152         (get_real_reg_value): Given a register location, retrieve its value.
4153         (set_real_reg_value): Change the value of a register location.
4154         (copy_reg_value): Copy reg values, if needed.
4155         (copy_saved_reg_state): Copy all registers that need to be copied.
4156         (process_state_between): Normalize all frame register records that
4157         fall within the specified PC range.
4158         (frame_translate): Take a processed frame description, and turn
4159         everything into addresses.
4160         (build_ia64_frame_state ): Find and create frame state record for a PC.
4161         (get_personality): Get the personality routine for a given frame.
4162         (get_except_table): Get the exception table for a given frame.
4163         (record_name): Unwind record names for debugging.
4164         (print_record): Print and unwind record.
4165         (print_all_records): Print an entire unwind image.
4166         (__ia64_backtrace): Print a backtrace.
4167         (ia64_backtrace_helper): New function.
4168         (__register_frame_info_aux): New function.
4169         * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
4170
4171         * frame.h (enum unw_record_type): New unwind record types.
4172         (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
4173         (struct unw_r_record, unwind_record): New unwind record structs.
4174         (struct unwind_info_ptr): Unwind information layout.
4175         (IA64_UNW_LOC_TYPE_*): Macros for different types for location
4176         descriptors.
4177         (struct ia64_reg_loc): Register location description.
4178         (struct ia64_frame_state): Location of all registers in a frame.
4179         (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
4180         * libgcc2.c (__ia64_personality_v1): Personality routine.
4181         (__calc_caller_bsp): Calculate the bsp register for the caller's
4182         frame.
4183         (ia64_throw_helper): Figure out who to return to and set up the
4184         registers.
4185         (__throw): Throw routine.
4186
4187         * output.h (assemble_eh_align, assemble_eh_label): New functions
4188         to generate EH info where we want it.
4189         (assemble_eh_integer): New function.
4190         * toplev.c (compile_file): Output module level exception table for
4191         non-ia64 targets.
4192         (main): Set exceptions_via_longjump and flag_new_exceptions based
4193         on IA64_UNWIND_INFO too.
4194
4195         * varasm.c (assemble_eh_label): Generate a label via
4196         ASM_OUTPUT_EH_LABEL if it has been specified.
4197         (assemble_eh_align): Generate an alignment directive via
4198         ASM_OUTPUT_EH_ALIGN if it has been specified.
4199         (assemble_eh_label): Generate an integer value via
4200         ASM_OUTPUT_EH_type if they have been specified.
4201         * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
4202         (ia64_init_builtins): Add __builtin_ia64_bsp
4203         and __builtin_ia64_flushrs.
4204         (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
4205         IA64_BUILTIN_FLUSHRS.
4206         * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
4207         IA64_BUILTIN_FLUSHRS.
4208
4209         * config/ia64/ia64.md (flushrs): New insn to flush the register
4210         stack.  Add to unspec list.
4211
4212         * config/ia64/crtbegin.asm (frame_object): Change size.
4213         (__do_frame_setup_aux): New function.
4214         * config/ia64/crtend.asm: call __do_frame_setup_aux.
4215         * config/ia64/t-ia64 (LIB2ADDEH): Add.
4216         * Makefile.in (LIB2ADDEH): Add.
4217         (LIB2ADD): Use LIB2ADDEH.
4218
4219 2000-05-24  Richard Henderson  <rth@cygnus.com>
4220
4221         * recog.c (offsettable_address_p): If mode size is zero, assume
4222         BIGGEST_ALIGNMENT.
4223
4224 2000-05-24  J. David Anglin  <dave@hiauly.hia.nrc.ca>
4225
4226         * configure.in: Check for -Wno-long-long option support and improve
4227         handling of warning CFLAGS for stages 1 and 2.
4228         * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
4229         * configure: Regenerate.
4230
4231 Wed May 24 19:37:53 2000  Jeffrey A Law  (law@cygnus.com)
4232
4233         * gcc.texi: Remove contributor list.  Instead include contrib.texi.
4234         * contrib.texi: New file.
4235
4236 Thu May 25 02:27:22 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4237
4238         * loop.c (basic_induction_var): Avoid double recording of an increment.
4239
4240 Thu May 25 02:19:27 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4241
4242         * Back out this patch:
4243         Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
4244           * loop.h (struct induction): Add multi_insn_incr.
4245           * loop.c (basic_induction_var): New multi_insn_incr argument.
4246           Set it if we search back through previous insns for the biv.
4247           (record_biv): New multi_insn_incr argument; fill in struct induction.
4248           (strength_reduce): Discard an iv with multiple bivs, any of
4249           which require multiple insns to increment.
4250
4251         * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
4252
4253 Thu May 25 02:09:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4254
4255         * rtl.h (loc_mentioned_in_p): Declare.
4256         * reload.c (loc_mentioned_in_p): Moved from here...
4257         * rtlanal.c (loc_mentioned_in_p): to here.  No longer static.
4258         Fix loop increment for 'E' handling.
4259         * loop.c (strength_reduce): When doing biv->giv conversion,
4260         take multi-insn biv increments into account.
4261
4262 2000-05-24  Jason Merrill  <jason@casey.soma.redhat.com>
4263
4264         * stmt.c (expand_end_bindings): Look through NOTEs to find a
4265         BARRIER.
4266
4267 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
4268
4269         * calls.c (expand_call): Handle cleanups in tail-recursion
4270         arguments analagously to cleanups in sibling calls.
4271
4272 2000-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4273
4274         * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
4275         All callers changed.
4276
4277 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
4278
4279         * expr.c (expand_assignment, store_expr, expand_expr,
4280         expand_expr_unaligned): Set in_check_memory_usage while emitting
4281         chkr_check_addr libcall.
4282
4283 2000-05-24  Nick Clifton  <nickc@cygnus.com>
4284
4285         * fold-const.c (extract_muldiv): When constructing a
4286         multiplier/divisor, do not expect const_binop to correctly
4287         determine if overflow has occured, so check explicitly.
4288
4289 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
4290
4291         * c-decl.c (build_enumerator): Don't modify the value's type,
4292         convert it.
4293
4294 2000-05-24  Andreas Jaeger  <aj@suse.de>
4295
4296         * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
4297
4298 2000-05-24  Eric Christopher <echristo@cygnus.com>
4299
4300         * configure.in: Redefine inhibit_libc conditions.
4301         * libgcc2.c: Remove inhibit_libc conditional define.
4302         * configure: Regenerate.
4303
4304 2000-05-24  Phil Edwards  <pme@sourceware.cygnus.com>
4305
4306         * configure.in:  For --enable-languages=LIST, check for empty LIST.
4307         * configure:  Regenerate.
4308
4309 2000-05-24  Lars Brinkhoff  <lars@nocrew.org>
4310
4311         * pdp11.h (STACK_BOUNDARY): Define.
4312
4313 2000-05-24  Jakub Jelinek  <jakub@redhat.com>
4314
4315         * ifcvt.c (if_convert): Update life info globally.
4316
4317 2000-05-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4318
4319         * emit-rtl.c (unshare_all_decls): New function.
4320         (unshare_all_rtl): Call it.
4321
4322 2000-05-23  Nick Clifton  <nickc@cygnus.com>
4323
4324         * configure.in: Treat 'strongarm' as if it were 'arm' when
4325         determining cpu type.
4326
4327         * configure: Regenerate.
4328
4329         * config/arm/arm.c: Change 'char *' to 'const char *' for cases
4330         where constant strings are involved.
4331
4332         * config/arm/arm.h (arm_condition_codes): Change type to 'const
4333         char *'.
4334
4335         * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
4336         cases where constant strings are involved.
4337
4338 Tue May 23 15:08:31 2000  Clinton Popetz  <cpopetz@cygnus.com>
4339
4340         * config/sh/sh.c (gen_far_branch, split_branches): Update
4341         to reflect new prototypes for redirect_jump and invert_jump.
4342         (sh_insn_length_adjustment): Get rid of const warnings.
4343
4344 2000-05-23  Kazu Hirata  <kazu@hxi.com>
4345
4346         * invoke.texi (Options for Debugging Your Program or GCC): Update
4347         the names of dump files.
4348
4349 Tue May 23 13:58:52 2000  Philippe De Muyter  <phdm@macqel.be>
4350
4351         * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
4352         * configure: Regenerated.
4353
4354 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
4355
4356         * simplify-rtx.c (SIGN_EXTEND): New macro.
4357         (simplify_unary_operation, simplify_binary_operation,
4358         simplify_relational_operation): Use SIGN_EXTEND.  Make low
4359         halves of (low, high) pairs unsigned if they weren't already.
4360         (simplify_ternary_operation): Cast INTVAL to unsigned before
4361         comparing to a MODE_BITSIZE.
4362
4363 2000-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4364
4365         * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
4366         rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
4367
4368         * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
4369         gcc_AC_NEED_DECLARATIONS.
4370
4371         * dwarfout.c: Don't prototype time().
4372
4373         * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
4374
4375         * system.h: Likewise.
4376
4377         * toplev.c: Likewise.
4378
4379 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
4380
4381         * c-decl.c (pushdecl): Invert sense of test for non-global types.
4382
4383 Tue May 23 18:11:42 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4384
4385         * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
4386
4387 2000-05-23  Jonathan Larmour  <jlarmour@redhat.co.uk>
4388
4389         * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
4390
4391 Tue May 23 06:50:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4392
4393         * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
4394         (alpha_start_function): Never write ..ng label if VMS or NT.
4395         (alpha_align_insns): Remove GP_IN_USE arg.
4396         Alignment now unsigned.
4397         (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
4398         * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
4399         and two define_insn's.
4400
4401 2000-05-22  Richard Henderson  <rth@cygnus.com>
4402
4403         * combine.c (simplify_comparison): Use trunc_int_for_mode.
4404
4405 2000-05-22  Richard Henderson  <rth@cygnus.com>
4406
4407         * stor-layout.c (place_field): Change rli->size to rli->offset.
4408
4409 2000-05-22  Richard Henderson  <rth@cygnus.com>
4410
4411         * function.c (thread_prologue_and_epilogue_insns): Make sure
4412         existing line number notes appear after the prologue.
4413
4414 Mon May 22 21:49:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4415
4416         * config/alpha/alpha.c (alpha_fnname): New static variable.
4417         (print_operand, case '~'): New case.
4418         (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
4419         (alpha_start_function): Set alpha_fnname.
4420         Write "ng" label if no ldgp; don't write ldgp insn.
4421         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
4422         * config/alpha/alpha.md (prologue_ldgp): New define_insn.
4423
4424 Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
4425
4426         * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
4427         on deleted labels.
4428
4429 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
4430
4431         * varasm.c (eh_frame_section): Revert change to argument list.
4432
4433 Mon May 22 13:14:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4434
4435         * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
4436         (gen_extend_insn, can_fix_p, can_float_p): Likewise.
4437
4438         * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
4439         dangling "else" that causes "break" to be conditional.
4440         Also remove unneeded code at start.
4441
4442 Mon May 22 17:31:35 2000  Philippe De Muyter  <phdm@macqel.be>
4443
4444         * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
4445         * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
4446         * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
4447
4448 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
4449
4450         * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
4451         just one argument.
4452
4453 Mon May 22 06:57:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4454
4455         * alias.c (record_component_aliases): New function.
4456         * tree.h: Clean up some declarations and comments.
4457         (record_component_aliases): New declaration.
4458         * tree.c (get_alias_set): If type and has alias set, use it.
4459
4460 2000-05-22  Richard Henderson  <rth@cygnus.com>
4461
4462         * simplify-rtx.c (simplify_ternary_operation): Try to simplify
4463         IF_THEN_ELSE to a setcc form.
4464         * jump.c (can_reverse_comparison_p): Be prepared for insn null.
4465
4466 2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4467
4468         * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
4469         (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
4470
4471 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4472
4473         * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
4474         not a PARALLEL.
4475
4476 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
4477
4478         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
4479         * config/mn10300/mn10300.c (print_operand): Likewise.
4480
4481         * final.c (split_double): Right shift of negative values is not
4482         portable.
4483
4484         * ifcvt.c (if_convert): Scan and kill dead code.
4485
4486         * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
4487
4488 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
4489
4490         * diagnostic.c: Eliminate implicit int.
4491         * except.c, gcc.c: Add static prototypes.
4492         * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
4493         * gensupport.c (process_rtx): Use XVEC to initialize vector
4494         slot of 'split'.
4495
4496         * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
4497         debug_reg_names instead of static reg_names.  If not, define
4498         global reg_names.
4499         * regclass.c: Don't define global reg_names unless
4500         DEBUG_REGISTER_NAMES is defined.
4501
4502         * reload1.c (order_regs_for_reload): Remove unused variable.
4503         * varasm.c: Include output.h after defaults.h.  Define
4504         eh_frame_section as function of no args, not of unspecified args.
4505
4506         * gcc.c: Constify argbuf; arguments to store_arg,
4507         process_command, main; elements of struct command and struct
4508         switchstr; local variables in execute, process_command, main.
4509
4510 2000-05-20  Bruce Korb  <bkorb@gnu.org>
4511
4512         * fixinc/inclhack.def:  many applications of c_fix=format + tests
4513         * fixinc/check.diff:  regenerated
4514         * fixinc/fixincl.x:  regenerated
4515
4516 Sat May 20 09:30:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4517
4518         * alias.c: Clarify some comments.
4519         (record_base_value): REGNO is unsigned.
4520         * rtl.h (record_base_value): Likewise.
4521
4522         * alias.c (aliases_everything_p): Don't special-case QImode here.
4523         * c-common.c (c_get_alias_set): Do it here.
4524         Handle BIT_FIELD_REF by getting alias info for arg.
4525         Use POINTER_TYPE_P.
4526
4527 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
4528
4529         * mklibgcc.in: Restore rule to create ${dir}.
4530
4531 Sat May 20 08:45:41 2000  H.J. Lu  <hjl@gnu.org>
4532
4533         * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
4534         GCC_FOR_TARGET used by MULTILIBS.
4535         * mklibgcc.in: Make sure each .o file depends on the
4536         directory it will be in.
4537         Make the multilib directory depends libgcc.
4538
4539 Sat May 20 08:29:28 2000  H.J. Lu  <hjl@gnu.org>
4540
4541         * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
4542
4543 Sat May 20 07:27:35 2000  Alexandre Oliva  <aoliva@cygnus.com>
4544
4545         * fold-const.c (make_range): Handle degenerated intervals.
4546         Fixes c-torture/execute/991221-1.c
4547
4548 Fri May 19 18:16:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4549
4550         * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
4551         * reload.c (find_equiv_reg): Likewise.
4552         * alias.c (init_alias_analysis): Likewise.
4553         Only call prologue_epilogue_contains on insns.
4554         * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
4555         * bb-reorder.c (hard-reg-set.h): Include earlier.
4556         * haifa-sched.c (hard-reg-set.h): Likewise.
4557         * ifcvt.c (hard-reg-set.h): Likewise.
4558         * local-alloc.c (hard-reg-set.h): Likewise.
4559         * loop.c (hard-reg-set.h): Likewise.
4560         * predict.c (hard-reg-set.h): Likewise.
4561         * regrename.c (hard-reg-set.h): Likewise.
4562         * flow.c (hard-reg-set.h): Likewise.
4563         (reg_set_to_hard_reg_set): New function.
4564         * bitmap.c (regs.h, basic-block.h): No longer include.
4565         (bitmap.h): Now include.
4566         * conflict.c (hard-reg-set.h): Include.
4567         * profile.c (hard-reg-set.h): Likewise.
4568         * print-rtl.c (hard-reg-set.h): Likewise.
4569         * sbitmap.c (hard-reg-set.h): Likewise.
4570         * toplev.c (hard-reg-set.h): Likewise.
4571         * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
4572         * hard-reg-set.h (reg_names): Now constant.
4573         * regs.h (reg_names): Likewise.
4574         * regclass.c (reg_names): Likewise.
4575         * loop.h (basic-block.h): No longer include.
4576         (bitmap.h): Now include.
4577         * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
4578         * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
4579         (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
4580
4581 2000-05-19  Jan Hubicka  <jh@suse.cz>
4582             Richard Henderson  <rth@cygnus.com>
4583
4584         * basic-block.h (struct edge_def): New field "count".
4585         (struct basic_block_def): Likewise.
4586         * flow.c (entry_exit_blocks): Add count fileds.
4587         (split_edge): Keep count information up-to-date.
4588         (dump_edge_info, dump_flow_info): Dump count fields.
4589
4590         * final.c (count_instrumented_edges): Rename to edge from arc.
4591         (end_final): Update users.
4592         * profile.c: Include expr.h, basic-block.h.
4593         (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
4594         (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
4595         (ignore_next_note, return_label_execution_count): Kill.
4596         (bbg_file_name, da_file_name): Kill.
4597         (edge_info, bb_info): New structures.
4598         (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
4599         (count_instrumented_edges, total_num_edges): Rename to edge from arc.
4600         (total_num_edges_instrumented): Likewise.
4601         (init_arc, expand_spanning_tree): Kill.
4602         (fill_spanning_tree, tablejump_entry_p): Kill.
4603         (instrument_edges):  Rewrite from instrument_arcs to use
4604         commit_edge_insertions infrastructure.
4605         (compute_branch_probabilities): Remove arguments; rewrite for
4606         CFG infrastructure; use rtl_dump_file directly.
4607         (branch_prob, find_spanning_tree): Likewise.
4608         (union_groups, find_group): New.
4609         (init_branch_prob): Make bbg_file_name and da_file_name local.
4610         (end_branch_prob): Use rtl_dump_file directly.
4611         (init_edge_profiler): Rename to edge from arc.
4612         (output_arc_profiler): Kill.
4613         (gen_edge_profiler): New.
4614         (output_func_start_profiler): Turn off profiling.  Make the
4615         constructor static when we can.
4616         * rtl.h (branch_prob, end_branch_prob): Update prototypes.
4617
4618         * toplev.c (DFI_flow): Remove.
4619         (DFI_cfg, DFI_life): New.
4620         (dump_file): Update accordingly.
4621         (compile_file): Call end_branch_prob if profile_arc_flag too.
4622         (rest_of_compilation): Move flow1 cfg creation to DFI_cfg.  Do edge
4623         profiling after the CFG is built.  Move flow1 life analysis to
4624         DFI_life.  Always estimate remaining probabilities.
4625
4626 2000-05-19  Richard Henderson  <rth@cygnus.com>
4627
4628         * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
4629
4630         * flow.c (make_edges): The sibling call edge to exit is abnormal.
4631
4632 2000-05-19  Richard Henderson  <rth@cygnus.com>
4633
4634         * jump.c (redirect_jump): Add delete_unused argument.  Don't
4635         remove labels and code following when LABEL_NUSES goes to zero.
4636         (invert_jump): Likewise.
4637         (jump_optimize_1): Fix redirect/invert arguments.
4638         (do_cross_jump, thread_jumps): Likewise.
4639         * flow.c (split_edge): Likewise.
4640         * reorg.c (optimize_skip): Likewise.
4641         (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
4642         * profile.c (instrument_arcs): Likewise.
4643         * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
4644         * rtl.h: Update prototypes.
4645
4646 Fri May 19 12:05:13 2000  Clinton Popetz  <cpopetz@cygnus.com>
4647
4648         * ssa.c (convert_from_ssa): Tell life_analysis we need death
4649         notes.
4650         (make_regs_equivalent_over_bad_edges): Only look at abnormal
4651         critical edges.
4652
4653 2000-05-19  Zack Weinberg  <zack@wolery.cumb.org>
4654
4655         * cpphash.c (funlike_macroexpand): Make sure not to walk p1
4656         past l1 when deleting whitespace and markers.
4657
4658         * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
4659         * cpplib.c (do_unassert): Put the list to compare against on
4660         the stack.
4661
4662 2000-05-19  Bruce Korb  <bkorb@gnu.org>
4663
4664         * fixinc/README:  cleaned up old documentation
4665         * fixinc/check.diff: regenerated & verified on OSR5 on ix86
4666         * fixinc/check.tpl: compute the list of needed directories
4667         emit "#if defined(name)" because of conflict
4668         omit machine name differences from output differences
4669         * fixinc/inclhack.def( m88k_multi_incl ):  Use `wrap' function
4670         (machine_name): change test text to use `sed' markers
4671         * fixinc/fixincl.x: regen
4672
4673 Fri May 19 06:49:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4674
4675         * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
4676         a CONSTRUCTOR.
4677
4678 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
4679
4680         * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
4681         it to match the current practice.
4682
4683 2000-05-18  Mark Mitchell  <mark@codesourcery.com>
4684
4685         * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
4686
4687 2000-05-18  Richard Henderson  <rth@cygnus.com>
4688
4689         * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
4690         * rtl.h (insn_dependant_p): Declare it.
4691         * loop.c (strength_reduce): Use it.
4692
4693 2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
4694
4695         * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
4696         16-bit and 64-bit clean-up.
4697
4698 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
4699
4700         * configure.in (*-pc-msdosdjgpp): Set float_format to none.
4701         * configure: Rebuilt.
4702
4703 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
4704
4705         * genopinit.c: Use $ for escape sequences in optab patterns.
4706         Remove backslashes from optab patterns.  Change $A, $B, $C to
4707         expand to (int) whatever instead of just whatever; remove
4708         explicit (int) from all optab patterns.
4709
4710         * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
4711         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
4712         genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
4713         genrecog.c: Remove private copies of xmalloc, xrealloc, and
4714         xstrdup.
4715
4716 2000-05-18  Richard Henderson  <rth@cygnus.com>
4717
4718         * jump.c (jump_optimize_1): Base minimum insn count during
4719         find_cross_jump on BRANCH_COST.
4720
4721 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
4722
4723         * print-rtl.c (print_rtx): Only print note line number as string
4724         if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
4725         * final.c (final_scan_insn): Do nothing for note line number 0.
4726
4727 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
4728
4729         * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
4730         from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
4731         NOTE_INSN_DELETED_LABEL.
4732
4733 2000-05-18  Nick Clifton  <nickc@cygnus.com>
4734
4735         * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
4736         uninitialised data in .rodata not .bss, and do not interpret an
4737         error in the initialisation value as meaning that the variable
4738         should be placed in the .bss section.
4739
4740 Thu May 18 12:10:18 2000  Philippe De Muyter  <phdm@macqel.be>
4741
4742         * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
4743         not `$ac_cv_prog_cc_cc_c_o'.
4744         * configure: Regenerated.
4745
4746 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
4747             Richard Henderson  <rth@cygnus.com>
4748
4749         * c-common.h (enum c_tree_index): Add g77 type entries.
4750         (g77_integer_type_node, g77_uinteger_type_node): New.
4751         (g77_longint_type_node, g77_ulongint_type_node): New.
4752         * c-decl.c (init_decl_processing): Initialize them.
4753
4754 2000-05-18  Richard Henderson  <rth@cygnus.com>
4755
4756         * config/h8300/h8300.md (subs patterns): Use %G to negate.
4757
4758         * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
4759         (small_power_of_two): Likewise; use exact_log2.
4760         (adds_subs_operand, one_insn_adds_subs_operand): Remove.
4761         (output_adds_subs): Remove.
4762         (two_insn_adds_subs_operand): New.
4763         (split_adds_subs): New.
4764         * config/h8300/h8300-protos.h: Update.
4765         * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
4766         (CONST_OK_FOR_L): Match strict adds operands.
4767         (CONST_OK_FOR_N): Match struct subs operands.
4768         * config/h8300/h8300.md (adds_subs insns): Remove.
4769         (addhi patterns): Output adds/subs directly.
4770         (addsi_h8300h): Likewise.
4771         (addhi/addsi splitters): New.  Decompose two_insn_adds_subs_operand.
4772
4773 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
4774
4775         * cppexp.c (parse_assertion): New.
4776         (lex): Call it for CPP_HASH.  Remove CPP_ASSERTION case.
4777         (_cpp_parse_expr): Remove case '#'.  Don't set
4778         parsing_if_directive.
4779         * cpphash.c (collect_objlike_expansion,
4780         collect_funlike_expansion, collect_params,
4781         _cpp_create_definition): The list no longer has a trailing
4782         VSPACE token.
4783         * cpphash.h (enum node_type): Add T_ASSERTION.
4784         (struct hashnode): Remove aschain, add pred.
4785         (struct predicate): New.
4786         Update prototypes.
4787
4788         * cpplex.c (expand_token_space): Handle both offset and
4789         nonoffset lists.
4790         (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
4791         (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
4792         _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
4793         _cpp_equiv_toklists): New.
4794         (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
4795         stop at any single-character token, not just newline.
4796         (_cpp_lex_token): Remove special cases for #define and #if.
4797         (cpp_get_token): Expect # as a separate token type.  Remove
4798         DIRECTIVE case.
4799         (_cpp_get_directive_token): Remove DIRECTIVE case.
4800         (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
4801
4802         * cpplib.c (_cpp_check_directive): Set dirno and
4803         SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
4804         (_cpp_handle_directive): Run # <number> through the same logic
4805         as normal directives.
4806         (do_define): Don't set parsing_define_directive.  Use
4807         _cpp_scan_until.  The list does not have a VSPACE at the end.
4808         (do_if): Save, clear, and restore only_seen_white around
4809         _cpp_parse_expr.
4810         (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
4811         (do_assert, do_unassert): Rewrite.
4812
4813         * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
4814         (LIST_OFFSET): New flag.
4815         (struct cpp_toklist): Replace dir_handler and dir_flags with
4816         dirno and flags.
4817         (struct cpp_reader): Remove parsing_if_directive and
4818         parsing_define_directive.
4819
4820 2000-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4821
4822         * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
4823         following the cabs decl which terminate on the following line.
4824         Add the corresponding test_text case.
4825
4826 2000-05-18  Neil Booth  <NeilB@earthling.net>
4827
4828         * cppinit.c (cpp_reader_init): Initialise col_adjust and
4829         default tab stop size.
4830         (no_num, OPT_ftabstop): New.
4831         (handle_option): Handle "ftabstop=" command-line option.
4832         (print_help): Document it.
4833         * cpplex.c (COLUMN): Remove.
4834         (handle_newline): Reset col_adjust.
4835         (skip_whitespace): Update col_adjust as tabs encountered.
4836         (_cpp_lex_line): Update to use col_adjust.  Call
4837         skip_whitespace for all whitespace.
4838         * cpplib.h (struct cpp_options): New member tabstop.
4839         (struct cpp_reader): New member col_adjust.
4840         (CPP_BUF_COL): Update.
4841         (CPP_BUF_COLUMN): New.
4842         * cpp.texi: Document "-ftabstop=" command line option.
4843
4844 Wed May 17 18:19:41 2000  Philippe De Muyter  <phdm@macqel.be>
4845
4846         * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
4847         files.
4848         * configure: Rebuilt.
4849
4850 Wed May 17 18:06:12 2000  John David Anglin <dave@hiauly1.hia.nrc.ca>
4851
4852         * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
4853
4854         * tree.c (build_common_tree_nodes): Do not build TI nodes unless
4855         HOST_BITS_PER_WIDE_INT is >= 64.
4856
4857 2000-05-17  Richard Henderson  <rth@cygnus.com>
4858
4859         * jump.c (jump_optimize_1): Remove inactive but real insns
4860         in jump-to-next-insn optimization.
4861
4862 2000-05-17  Richard Henderson  <rth@cygnus.com>
4863
4864         * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
4865         unless OPTIMIZE_MODE_SWITCHING.  Conditionally set no_new_pseudos.
4866         Don't call recompute_reg_usage if no_new_pseudos is true.
4867         * lcm.c (optimize_mode_switching): Move ifdefs outside function.
4868         Return true if we did work; update global life information.
4869         * basic-block.h (optimize_mode_switching): Update decl.
4870
4871 2000-05-17  Neil Booth  <neilb@earthling.net>
4872
4873         * cpplex.c (expand_name_space): Don't use ptrdiff_t.
4874
4875 2000-05-17  Zack Weinberg  <zack@wolery.cumb.org>
4876
4877         * cpplib.c: New feature, #pragma system_header.
4878         * cpp.texi: Document special treatment of system headers, and
4879         the various mechanisms to get a header that special treatment.
4880
4881 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4882
4883         * system.h (offsetof): Define at the very end, to ensure we prefer
4884         the platform's definition if available.
4885
4886 2000-05-16  Bruce Korb  <bkorb@gnu.org>
4887
4888         * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
4889         * fixinc/server.c: likewise
4890         * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
4891         + #ifdef debugging code + use #def constant for
4892         sub-pattern count
4893         * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
4894         on C++ math namespace
4895
4896 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4897
4898         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4899         Don't check the return value of sprintf.  Use asprintf to avoid
4900         buffer overflows.
4901
4902 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
4903
4904         * flags.h (warn_unused_function, warn_unused_label,
4905         warn_unused_parameter, warn_unused_variable, warn_unused_value):
4906         Replace ``warn_unused''.
4907         (set_Wunused): Add declaration.
4908         * toplev.c (set_Wunused): New function.
4909         (warn_unused_function, warn_unused_label, warn_unused_parameter,
4910         warn_unused_variable, warn_unused_value): New variables.
4911         (W_options): Add -Wunused-function, -Wunused-function,
4912         -Wunused-label, -Wunused-parameter, -Wunused-variable and
4913         -Wunused-value.  Delete -Wunused.  Handled in decode_W_option.
4914
4915         * toplev.c (decode_W_option): Update -Wunused flags by calling
4916         set_Wunused.
4917         * c-decl.c (c_decode_option): Ditto for -Wall.
4918
4919         * stmt.c (expand_expr_stmt, expand_expr_stmt,
4920         warn_about_unused_variables): Replace warn_unused with more
4921         explicit warn_unused_value et.al.
4922         * function.c (expand_function_end): Ditto.
4923         * c-typeck.c (internal_build_compound_expr,
4924         internal_build_compound_expr): Ditto.
4925         * c-decl.c (poplevel, pop_label_level): Ditto.
4926         * toplev.c (check_global_declarations): Replace warn_unused with
4927         check for either warn_unused_function or warn_unused_variable.
4928
4929         * gcc.1, invoke.texi (Warning Options): Document
4930         -Wunused-function, -Wunused-function, -Wunused-label,
4931         -Wunused-parameter, -Wunused-variable and -Wunused-value options.
4932
4933 Wed May 17 10:28:12 2000  Philippe De Muyter  <phdm@macqel.be>
4934
4935         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
4936         $(srcdir), not in the current directory.
4937
4938 2000-05-16  Richard Henderson  <rth@cygnus.com>
4939
4940         * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
4941         assembler supports it.
4942         (.fini, .init): Use a gp-relative indirect call.
4943         (__do_global_dtors_aux): Preserve the gp; rebundle.
4944         (__do_frame_setup): Likewise.
4945         * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
4946         (.init): Use a gp-relative indirect call.
4947         (__do_global_ctors_aux): Preserve the gp.
4948
4949 2000-05-16  Richard Henderson  <rth@cygnus.com>
4950
4951         * flow.c (commit_one_edge_insertion): Be prepared for a return
4952         insn to be inserted on the edge with a normal jump.
4953         * jump.c (jump_optimize_1): Don't look to create return isns.
4954
4955         * flow.c (flow_delete_insn): Don't adjust reference count of notes.
4956         * jump.c (jump_optimize_1): Likewise.
4957         (returnjump_p): Verify the argument is a JUMP_INSN.
4958         * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
4959
4960 2000-05-16  Nick Clifton  <nickc@cygnus.com>
4961
4962         * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
4963         GET_RTX_CLASS (GET_CODE ()) == 'i'.
4964         (large_insn_p): Ditto.
4965         (m32r_is_insn): New function: Return true if the insn contains
4966         an executable instruction.
4967         (m32r_adjust_insn): Use m32r_is_insn.
4968         (m32r_sched_reorder): Use m32r_is_insn.
4969         (m32r_sched_variable_issue): Use m32r_is_insn.
4970
4971 2000-05-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4972
4973         * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
4974         VAR_DECL.
4975
4976         * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
4977
4978         * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
4979         according to given options.
4980
4981 Tue May 16 12:17:31 2000  Jeffrey A Law  (law@cygnus.com)
4982
4983         * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
4984         if X has VOIDmode either.
4985         (LIMIT_RELOAD_CLASS): Similarly.
4986
4987         * mn10200.md (indirect_jump, tablejump): Use "register_operand",
4988         not "general_operand" to match the processor's capabilities.
4989
4990 2000-05-16  Bruce Korb  <bkorb@gnu.org>
4991
4992         * fixinc/README:  corrected return address
4993         * fixinc/check.diff:  regenerate, now that test works
4994         * fixinc/fixfixes.c(format_fix,format_write): reformatted
4995         (char_macro_def_fix,char_macro_use_fix): corrected and
4996         rewrote to use regex to parse the text
4997         * fixinc/inclhack.def: more testing
4998         * fixinc/fixincl.x:  regenerated
4999
5000         * fixinc/inclhack.def: added several "test_text" attributes
5001         changed several fixes to use `c_fix = format'
5002         re-alphabetized the fixes
5003
5004         * fixinc/check.diff: regenerate
5005         * fixinc/fixincl.x: regenerate
5006         * fixinc/check.tpl: added `sparc' and `netinet' to the list
5007         of created dirs
5008
5009
5010 2000-05-16  Alexandre Oliva  <aoliva@cygnus.com>
5011
5012         * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
5013
5014 2000-05-15  Richard Henderson  <rth@cygnus.com>
5015
5016         * toplev.c (rest_of_compilation): Run full jump pass before
5017         find_basic_blocks of flow2.
5018
5019 2000-05-15  Richard Henderson  <rth@cygnus.com>
5020
5021         * jump.c: Fix typos and clarify commentary from last change.
5022         (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
5023         (safe_to_remove_jump_p): Remove.
5024         (condjump_label): Use pc_set.
5025
5026 2000-05-15  Richard Henderson  <rth@cygnus.com>
5027
5028         * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
5029         that get in the way after reload.
5030         (cond_exec_process_if_block): Skip a label heading THEN block.
5031
5032 2000-05-15  Richard Henderson  <rth@cygnus.com>
5033
5034         * varasm.c (output_constant_pool): Abort instead of converting
5035         (improperly) deleted labels to zero.
5036
5037 2000-05-16  Neil Booth  <NeilB@earthling.net>
5038
5039         * cpplex.c (parse_string2): Update comment.
5040         (cpp_lex_line): No special assertion treatment for '('.
5041         * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
5042         * cpplib.h (SYNTAX_ASSERT): Remove.
5043
5044 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5045
5046         * jump.c (condjump_p):  Mark as depreached.
5047         (any_condump_p): New.
5048         (any_uncondump_p): New.
5049         (pc_set): New.
5050         (safe_to_remove_jump_p): New.
5051         * rtl.h (any_condump_p, any_uncondjump_p, pc_set
5052         safe_to_remove_jump_p): Declare.
5053
5054 Mon May 15 21:07:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5055
5056         * calls.c: Re-install both patches reverted by last patch.
5057         (struct arg_data): New field tail_call_reg.
5058         (initialize_argument_information): Initialize tail_call_reg
5059         (load_register_parameters): New argument flags, use
5060         tail_call_reg when emiting tail call sequence.
5061         (expand_call): Update call of load_register_parameters;
5062         copy unadjusted_args_size to adjusted_args_size.
5063
5064 Mon May 15 19:01:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5065
5066         * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
5067         and bct_p parameters to flags.
5068         * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
5069         * rtl.h (loop_optimize): Update prototype.
5070         * toplev.c (rest_of_compilation): Update call of loop_optimize.
5071
5072 2000-05-15  Jakub Jelinek  <jakub@redhat.com>
5073
5074         * calls.c (expand_call): Move expand_start_target_temps call after
5075         start_sequence().
5076
5077 2000-05-15  Neil Booth  <NeilB@earthling.net>
5078
5079         * cpphash.c (trad_stringify, warn_trad_stringify,
5080         collect_params): Make some pointers pointers to const.
5081         * cpplex.c (auto_expand_name_space) Guaranteed to always
5082         expand by at least one character.
5083         (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
5084         (struct token_spelling): Use const U_CHAR * rather than PTR.
5085         (expand_name_space): Fix up token pointers if name space
5086         is moved when expanding.
5087         (INIT_NAME, cpp_scan_line, parse_name, parse_number,
5088         parse_string2, save_comment, spell_token, cpp_output_list):
5089         Update so the routines handle tokens with a direct pointer to
5090         their text, rather than an offset into the token's list's namebuf.
5091         (_cpp_lex_line): Rearrange for clarity.
5092
5093         * cpplib.c (_cpp_check_directive): Similarly.
5094         (do_define): Make SYM a pointer to const.
5095         * cpplib.h (struct cpp_name): Replace offset with direct pointer.
5096         (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
5097         (TOK_OFFSET): Delete.
5098         (TOK_NAME): Update.
5099
5100 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
5101
5102         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
5103         64-bit ABI.
5104
5105         * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
5106         into account.
5107         (logical_u_operand): Delete.
5108         (non_logical_cint_operand): Rewrite to take MODE into account.
5109         (non_logical_u_cint_operand): Delete.
5110         (boolean_operator): New function.
5111         (print_operand): Add new %q operand.
5112         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
5113         remove logical_u_operand and non_logical_u_cint_operand,
5114         update logical_operand and non_logical_cint_operand.
5115         * config/rs6000/rs6000.md: Rewrite the patterns for performing
5116         logical operations to use %q.
5117
5118         * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
5119         (movdi): Make similar to movsi.
5120         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
5121         is no such thing as a DImode CONST_DOUBLE.
5122         * config/rs6000/rs6000.c (output_toc): Likewise.
5123
5124         * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
5125         codes when old mnemonics are in use.  Print register names
5126         for cc registers when requested.
5127
5128         * optabs.c (expand_float): Don't allow mode widening that causes
5129         double rounding.
5130
5131         * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
5132         flags to their current names -maix64 and -maix32.
5133
5134 2000-05-14  Bruce Korb  <bkorb@gnu.org>
5135
5136         * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
5137         and/or after current text of file
5138         * fixinc/fixlib.c(must_malloc):
5139         * fixinc/fixlib.h(must_malloc): + reformatting
5140         * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
5141         with usages of ``c_fix = wrap;''
5142         Add several tests and use the ``c_fix = format'' fixer more.
5143         * fixinc/fixincl.x: regen
5144         * fixinc/check.diff: regen
5145         * fixinc/check.tpl: emit the associated header with the missing
5146         test message
5147
5148 Sun May 14 17:58:59 2000  Hans-Peter Nilsson  <hp@axis.com>
5149
5150         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
5151         variables $src and $dst.
5152
5153 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
5154
5155         * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
5156         (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
5157         (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
5158         (struct output_buffer: emitted_prefix_p, prefixing_rule): New
5159         fields.
5160         (set_message_prefixing_rule): Declare.
5161
5162         * diagnostic.c: (current_prefixing_rule): New variable.
5163         (set_message_prefixing_rule): Define.
5164         (output_set_prefix): Adjust buffer->emitted_prefix_p.
5165         (init_output_buffer): Adjust Initialization.
5166         (output_emit_prefix): Rewrite.  Take prefixing rules into account.
5167
5168 Sat May 13 11:05:47 2000  Philippe De Muyter  <phdm@macqel.be>
5169
5170         * ifcvt.c (if_convert): Do not free NULL.
5171
5172 2000-05-12  H.J. Lu  (hjl@gnu.org)
5173
5174         * gthr-dce.h: Add support for libobjc.
5175         * gthr-posix.h: Likewise.
5176         * gthr-solaris.h: Likewise.
5177         * gthr-vxworks.h: Likewise.
5178         * gthr-single.h: Likewise.
5179         * gthr-win32.h: Likewise.
5180
5181 2000-05-12  Nick Clifton  <nickc@cygnus.com>
5182
5183         * config/fr30/fr30.c (fr30_move_double): New function:  Emit code
5184         to move a double word value.
5185         (di_operand): New function: Return true if the operand is suitbale
5186         for a double word move operation.
5187         (nonimmediate_di_operand): New function: Return true if the
5188         operand is a DImode register or MEM.
5189
5190         * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
5191         nonimmediate_di_operand.
5192
5193         * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
5194         nonimmediate_di_operand.
5195
5196         * config/fr30/fr30.md (movdi): New pattern.  Required because
5197         other patterns generate DImode results.
5198         (movdi_insn): New pattern.
5199
5200 2000-05-12  Richard Henderson  <rth@cygnus.com>
5201
5202         * config/alpha/alpha.c (struct shadow_summary): Define
5203         bitfields as type unsigned int.
5204
5205 Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>
5206
5207         * config/avr/t-avr: Added definition of FLOAT while generates
5208         fp-bit.c
5209
5210         * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
5211         peepholes for tst+jump = sbrs/sbrc optimization.
5212
5213 Fry May 12 20:03:00 CEST 2000  Jan Hubicka  <jh@suse.cz>
5214
5215         * expr.c (emit_push_insn): Do not adjust stack pointer when
5216         preallocating.
5217
5218 Fri May 12 19:03:58 2000  Philippe De Muyter  <phdm@macqel.be>
5219
5220         * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
5221         * system.h (offsetof): ... to here.
5222
5223 2000-05-12  Richard Henderson  <rth@cygnus.com>
5224
5225         * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
5226         * final.c (final_end_function): Use app_disable.  Rearrange note
5227         handling into a switch.  Emit deleted labels.
5228         (output_asm_label): Generate label strings for deleted labels.
5229         * flow.c (tail_recursion_label_list): New.
5230         (find_basic_blocks_1): Set label_value_list directly.  Collect list
5231         of tail recursion labels from call_placeholders.  Don't add deleted
5232         labels to the label value list.
5233         (cleanup_cfg): Use free_EXPR_LIST_list.
5234         (flow_delete_insn_chain): Turn non-removable labels into notes.
5235         (flow_delete_block): Don't disable deleting the block because of
5236         a non-removable label.
5237         (tail_recursion_label_p): New.
5238         (merge_blocks_move_predecessor_nojumps): Don't disable the merge
5239         because of a label.
5240         (merge_blocks_move_successor_nojumps): Likewise.  Also move a
5241         jump table.
5242         (merge_blocks): Disable a merge because of tail recursion labels.
5243         * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
5244         Use a more accurate measure of not merging the join block.
5245         (find_if_block): Don't disable conversion because of a label.
5246         (find_if_case_1, find_if_case_2): Likewise.
5247         * jump.c (duplicate_loop_exit_test): Preserve the kind of list
5248         element when copying.
5249         (squeeze_notes): Also leave EH notes.
5250         (mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
5251         REG_LABEL notes.
5252         (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
5253         deleting a label.
5254         * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
5255         NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
5256         referring to a deleted label.  Convert tail handling to a switch.
5257         * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
5258         for NOTE_INSN_DELETED_LABEL.
5259         (NOTE): Fix commentary.
5260         * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
5261         (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
5262         (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
5263         (LABEL_NUSES, LABEL_REFS): Likewise.
5264         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
5265
5266 2000-05-12  Bruce Korb  <bkorb@gnu.org>
5267
5268         * fixinc/fixfixes.c(format_write): buglet & relaxed rules
5269         * fixinc/check.diff: updated
5270         * fixinc/inclhack.def: corrected & added some test_text-s
5271         * fixinc/genfixes: removed unneeded options to autogen invocation
5272         * fixinc/fixincl.tpl: Specified the output file
5273         * fixinc/fixfixes.c: visual appearance
5274         * fixinc/fixincl.x: regenerate
5275
5276 2000-05-12  Zack Weinberg <zack@wolery.cumb.org>
5277
5278         * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
5279         CTRL_defn_fix): Delete.
5280         (fix_char_macro_defines, fix_char_macro_uses): Rename to
5281         char_macro_def_fix and char_macro_use_fix, respectively.  Put
5282         them into the FIXUP_TABLE.  Get the string to search for from
5283         a c_fix_arg.
5284
5285         (format_write): New function.
5286         (format_fix): Use it.
5287
5288         (FIX_PROC_HEAD): Constify text parameter.
5289         (machine_name_fix): Constify all char *s.
5290         * fixtests.c (skip_quote): Remove double static.
5291
5292         * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
5293         ctrl_use_quotes): Update for new scheme.
5294         * fixincl.x: Regenerate.
5295
5296 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
5297
5298         * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
5299         DWARF2_DEBUG.
5300         (DWARF2_ASM_LINE_DEBUG_INFO): Define.
5301         (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
5302
5303 2000-05-11  Robert Lipe <robertlipe@usa.net>
5304
5305         * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
5306         * fixincl.x: Regenerate.
5307
5308 2000-05-11  Richard Henderson  <rth@cygnus.com>
5309
5310         * calls.c: Revert both 05-09 patches.
5311
5312 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
5313
5314         * config/mn10300/mn10300.c (print_operand): Print FP constants in
5315         hexadecimal.
5316         * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
5317         for FP values.
5318
5319         * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
5320         and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
5321
5322 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
5323
5324         * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
5325
5326 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
5327
5328         * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
5329
5330 Thu May 11 22:28:05 2000  Denis Chertykov  <denisc@overta.ru>
5331
5332         * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
5333         * config/avr/avr.c (jump_over_one_insn_p): New function.
5334         * config/avr/avr.md: New peepholes added. Output test and
5335         conditional jump to "sbrc" or "sbrs" command.
5336
5337 2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
5338
5339         * cppmain.c (main): Use IS_DIR_SEPARATOR.
5340
5341 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
5342
5343         * except.c (find_exception_handler_labels_1): New function.
5344         (find_exception_handler_labels): Split into two functions, dive
5345         into CALL_PLACEHOLDERs when looking for exception handler labels.
5346
5347 2000-05-11 Stan Cox <scox@cygnus.com>
5348
5349         * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
5350         * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
5351         * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
5352
5353 2000-05-11  Bruce Korb  <bkorb@gnu.org>
5354
5355         * fixinc/fixfixes.c (double_slash_fix):  obsolete
5356         (else_endif_label_fix): obsolete
5357         (format_fix):  new, unused as yet
5358         (main): obsolete
5359         * fixinc/fixlib.h: added fix description struct for use by format_fix
5360         * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
5361         * fixinc/Makefile.in:  compile fixfixes.c and fixtests.c as separate
5362         modules.  Removed the vestiges of the script version.
5363         Added support for "make check".
5364         * fixinc/check.diff: base diff file (needs work!!)
5365         * fixinc/check.tpl: quiet the fixup output
5366         * fixinc/fixtests.c (main): obsolete
5367         * fixinc/fixincl.sh:  don't bother copying fixincl to ..
5368         * fixinc/fixincl.tpl:  provide for arguments to c_fix routines
5369
5370 Thu May 11 11:57:02 MET DST 2000  Jan Hubicka <jh@suse.cz>
5371
5372         * toplev.c (rest_of_compilation): Remove dead code after
5373         combine.
5374
5375 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
5376
5377         * cpphash.c (collect_funlike_expansion): Make "# is not
5378         followed by a macro argument name" a pedwarn, not an error.
5379         Preserve the # in the output.  Suppress the warning if lang_asm.
5380
5381 Thu May 11 01:19:31 2000  Jeffrey A Law  (law@cygnus.com)
5382
5383         * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
5384         * configure: Rebuilt.
5385
5386 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
5387
5388         * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
5389
5390 2000-05-10  Kazu Hirata  <kazu@hxi.com>
5391
5392         * combine.c (try_combine): Fix a typo.
5393
5394 Wed May 10 21:31:44 2000  Jim Wilson  <wilson@cygnus.com>
5395
5396         * config/ia64/ia64.md (insv): Add comment.
5397
5398 2000-05-10  Richard Henderson  <rth@cygnus.com>
5399
5400         * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
5401         * mklibgcc.in: Rewrite to not use functions.  Don't shortcut
5402         dependancies on FPBIT and DPBIT.
5403
5404 2000-05-10  Nick Clifton  <nickc@redhat.com>
5405
5406         * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
5407         when optimising for size.
5408         (mark_used_regs:) Ditto.
5409         (try_pre_increment_1): Ditto.
5410
5411 2000-05-10  Zack Weinberg  <zack@wolery.cumb.org>
5412
5413         * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
5414         Make error message friendlier.
5415
5416         * cpphash.h (struct hashnode): Use struct hack for name
5417         member.
5418         * cpphash.c (struct hashdummy): New.
5419         (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
5420         (make_HASHNODE): No need to set ->name pointer.  Correct
5421         setting of p.
5422         (cpp_lookup): Make 'dummy' a struct hashdummy.  Tidy up a bit.
5423
5424 2000-05-10  Richard Henderson  <rth@cygnus.com>
5425
5426         * flow.c (find_basic_blocks_1): Remove any spare bb_note
5427         after completion.
5428
5429 2000-05-10  Bruce Korb  <bkorb@gnu.org>
5430
5431         * fixinc/gnu-regex.c:  reg_syntax_t re_syntax_options must be static
5432
5433 2000-05-10  Eric Schweitz  <schweitz@nortelnetworks.com>
5434
5435         * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
5436         after we enter .debug.
5437
5438 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
5439
5440         * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
5441         abstract instance of a nested inline function.
5442
5443         * stor-layout.c (finish_record_layout): finalize_type_size
5444         before laying out the pending_statics.
5445
5446 Wed 10 May 09:36:47 2000  Neil Booth  <NeilB@earthling.net>
5447
5448         * cpplex.c (spell_token): New function.
5449         (spell_string, spell_comment, spell_name): fold into
5450         spell_token.
5451         (I, S): Add macros.
5452         (E, H): Remove macros.
5453         (save_comment): Save comment opening characters too.
5454         (_cpp_lex_file): Update to use spell_token.  Tidy up comment
5455         handling.
5456         * cpplib.h (I, S): Add macros.
5457         (E, H): Remove macros.
5458         (TTYPE_TABLE): Update entries for new speller.
5459         (SYNTAX_ASSERT): Remove.
5460
5461 Wed 10 May 09:08:30 2000  Neil Booth  <NeilB@earthling.net>
5462
5463         * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
5464         when removing escaped newlines.  Reverse sense of test for
5465         escaped newline.
5466
5467 2000-05-09  Richard Henderson  <rth@cygnus.com>
5468
5469         * flow.c (find_basic_blocks_1): Do not delete the first
5470         bb_note we run across.
5471         (create_basic_block): Use reorder_insns to move an existing
5472         bb_note to the correct place.
5473
5474 2000-05-09  Richard Henderson  <rth@cygnus.com>
5475
5476         * calls.c (expand_call): Increment currently_expanding_call
5477         before calling optimize_tail_recursion.
5478
5479 Tue May  9 18:54:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5480
5481         * reload1.c (reload_combine): Fix errors in last change.
5482
5483 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
5484
5485         * gcc.c (used_arg): Skip over a semicolon at the end of the
5486         split-up loop; don't break out of it.
5487
5488         * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
5489         (tree.o): Depend on output.h.
5490
5491         * c-decl.c (pending_invalid_xref_file,
5492         current_function_prototype_file): Constify.
5493         (pushdecl): Constify a local char *.
5494         (define_label): Constify filename parameter.
5495         * c-lex.c (init_parse): Constify parameter and return value.
5496         * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
5497         * c-tree.h: Update prototypes.
5498         * c-parse.in: Constify filename member of %union, and if_stmt_file.
5499         * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
5500         objc/objc-parse.c: Regenerate.
5501
5502         * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
5503         * dwarfout.h: Update prototypes.
5504         * expr.c (expand_expr): Constify a local char *.
5505         * flags.h: Constify main_input_filename.
5506         * function.c (expand_function_end): Constify filename parameter.
5507         * genrecog.c (make_insn_sequence): Use a character array for
5508         c_test_pos.
5509         (main): Remove unused variables.
5510         * input.h: Constify input_filename, main_input_filename, and
5511         file_stack.name.  Update prototypes.
5512         * output.h: Declare first_global_object_name and
5513         weak_global_object_name here, as const char *.
5514         * stmt.c (expand_asm_operands): Constify filename parameter.
5515         * toplev.c (compile_file, push_srcloc, debug_start_source_file):
5516         Constify filename parameter.
5517         (input_filename, main_input_filename): Constify.
5518         * toplev.h: Update prototypes.
5519         * tree.c: Include output.h.  Don't declare
5520         first_global_object_name or weak_global_object_name.  Clean up string
5521         bashing in get_file_function_name_long.
5522         * tree.h (struct tree_decl): Constify filename member.
5523         (input_filename): Constify.
5524         Update prototypes.
5525         * varasm.c (first_global_object_name, weak_global_object_name):
5526         Constify.
5527         (assemble_start_function, assemble_variable): Clean up string bashing.
5528
5529         * gcc.c: Constify all spec-related strings initialized,
5530         transitively, from string constants.  Constify all strings
5531         and string variables related to multilibs.
5532         (set_spec, read_specs): Cast argument to free to PTR.
5533         (used_arg): Do not modify multilib_matches.  Use strncmp plus
5534         length comparison to compare multilib switches.
5535         * genmultilib: Constify everything declared in multilib.h.
5536
5537 Tue May  9 22:28:03 2000  Denis Chertykov  <denisc@overta.ru>
5538
5539         * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
5540         as deleted.
5541
5542 Tue May  9 20:52:43 2000  Denis Chertykov  <denisc@overta.ru>
5543
5544         * config/avr/avr-protos.h (extra_constraint): change a type of
5545         second argument from char to int to avoid warnings.
5546         (asm_output_byte): Likewise.
5547
5548         * config/avr/avr.c (MAX_LD_OFFSET) New macro.
5549         (initial_elimination_offset): Handle elimination from
5550         FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
5551         (legitimate_address_p): Use MAX_LD_OFFSET.
5552         (legitimize_address): Likewise.
5553         (out_movqi_r_mr): Likewise.
5554         (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
5555         (out_movsi_r_mr): Use MAX_LD_OFFSET.
5556         (out_movsi_mr_r): Likewise.
5557         (out_movqi_mr_r): Likewise.
5558         (out_movhi_mr_r): Likewise.
5559         (notice_update_cc): Correct CC for the ashrqi3 with the shift
5560         count as CONST_INT != 6.
5561         (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
5562         shift count is a CONSTANT_P, but not a CONST_INT.
5563         (ashlhi3_out): Coding style modifications.
5564         (ashlsi3_out): Likewise.
5565         (ashrhi3_out): Likewise.
5566         (ashrsi3_out): Likewise.
5567         (lshrhi3_out): Likewise.
5568         (lshrsi3_out): Likewise.
5569         (ashrqi3_out): Generate shift for any known constant count without
5570         scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
5571         but not a CONST_INT.
5572         (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
5573         shift count is a CONSTANT_P, but not a CONST_INT.
5574         (extra_constraint): change a type of
5575         second argument from char to int to avoid warnings.
5576         (asm_output_byte): Likewise.
5577         (asm_file_end): Output size generated commands count as a hex
5578         number too.
5579
5580         * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
5581
5582         * config/avr/avr.md (addhi3): Fragment commented by &&0 is
5583         removed.
5584         (ashlqi3): Values of "length" attribute changed. Shift count
5585         uses constraints 'n' instead of 'i'.
5586         (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
5587         shifts without clobber register.
5588         (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
5589         (call_insn): Correct test for which_alternative == 1 (was 0).
5590         (call_value_insn): Likewise.
5591
5592         * config/avr/t-avr: Remove definition of FLOAT while generates
5593         fp-bit.c
5594
5595 2000-05-09  Bruce Korb  <bkorb@gnu.org>
5596
5597         * fixinc/check.tpl:  Template for checking fixes
5598         * fixinc/inclhack.def:  Added 'test_text' for many fixes
5599         disable hpux8_bogus_inlines on SCO
5600         * fixinc/fixinc.sco:  Oh, yes, we don't need this any more.
5601
5602 Tue May  9 16:30:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5603
5604         * calls.c (expand_call): Reorganize somewhat in order
5605         to avoid unnecesary recalculation inside loop and make
5606         tail call failure code cleaner.
5607
5608 Tue May  9 06:30:20 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5609
5610         * alias.c (nonlocal_reference_p): Minor reformatting.
5611         * reload.c (find_equiv_reg): Simplify logic for
5612         CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
5613         some some reformatting.
5614         * reload1.c (reload_combine): Don't assume everything in
5615         CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
5616
5617 2000-05-08  Richard Henderson  <rth@cygnus.com>
5618
5619         * final.c (current_insn_predicate): New.
5620         (final_scan_insn): Set it.
5621         * output.h (current_insn_predicate): Declare.
5622
5623         * ifcvt.c (cond_exec_process_insns): New argument prob_val.
5624         Attach it to call insns.
5625         (cond_exec_process_if_block): Track probability for true and
5626         false branches.
5627         (dead_or_predicable): Likewise.
5628
5629         * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
5630         (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
5631         (PROB_VERY_LIKELY, PROB_ALWAYS): New.
5632         (estimate_probability, expected_value_to_br_prob): Use them.
5633
5634         * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
5635         * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
5636         (ia64_expand_prediction): New.
5637         (emit_insn_group_barriers): Don't look at notes.  Emit barriers
5638         as needed after calls.
5639         (ia64_epilogue_uses): Mark b0 used.
5640         * config/ia64/ia64.md (beq_true, beq_false): Remove.
5641         (bne_true, bne_false): Remove.
5642         (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
5643         (br_true, br_false): New.  Use predicate_operator and
5644         ia64_expand_prediction.
5645         (return_true, return_false): Likewise.
5646         (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
5647         (call_internal1, call_value_internal): Likewise.
5648         (call_value_internal1, call_multiple_values_internal1): Likewise.
5649
5650         * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
5651
5652         * config/ia64/ia64.md (extendsfdf2): Split only after reload.
5653
5654 2000-05-08  Richard Henderson  <rth@cygnus.com>
5655
5656         * rtlanal.c (may_trap_p): Consider old-style and volatile
5657         asms to trap.
5658
5659 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
5660
5661         * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
5662
5663 2000-05-08  Richard Henderson  <rth@cygnus.com>
5664
5665         * config/ia64/ia64.h (predicate_operator): Declare.
5666
5667         * config/ia64/ia64.md (extendsfdf2): Split the nop case out
5668         of existance.
5669
5670         * gensupport.c (process_rtx): Copy and post-process each member
5671         of the define_insn rtvec individually.
5672
5673 Mon  8 May 22:17:35 2000  Neil Booth  <NeilB@earthling.net>
5674
5675         * cpplex.c (spell_token): New function.
5676         (TOKEN_LEN): Add 1 for whitespace.
5677         (_cpp_lex_file): Update to use spell_token.
5678         * cpplib.h (E): Remove.
5679         (TTYPE_TABLE): Update CPP_VSPACE entry.
5680
5681 2000-05-08  Richard Henderson  <rth@cygnus.com>
5682
5683         * flow.c (init_propagate_block_info): Watch out for conditional
5684         branch to next instruction, and thus one outgoing edge.
5685
5686         * config/ia64/ia64.c (ia64_encode_section_info): Exit early
5687         for global register variables; don't special case __[CD]TOR_LIST__;
5688         mind ggc_p for string allocation.
5689
5690 2000-05-08  Nick Clifton  <nickc@cygnus.com>
5691
5692         * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
5693
5694 2000-05-08  Bruce Korb  <bkorb@gnu.org>
5695
5696         * fixinc/mkfixinc.sh:  fixinc.sco is no longer used
5697         i?86-*-msdosdjgpp* no longer uses fixincludes
5698         * fixinc/genfixes:  inclhack.sh and fixincl.sh are no longer generated
5699         * fixinc/inclhack.sh:  deleted
5700         * fixinc/hackshell.tpl:  deleted
5701         * fixinc/inclhack.tpl:  deleted
5702         * fixinc/Makefile.in:  Remove dependencies on above
5703         * fixinc/fixincl.sh:  "DO NOT EDIT" text modified
5704
5705 2000-05-08  Andreas Jaeger  <aj@suse.de>
5706
5707         * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
5708         support.
5709
5710 2000-05-07  Zack Weinberg  <zack@wolery.cumb.org>
5711
5712         * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
5713         substitutions.
5714
5715 Sun  7 May 08:43:53 2000  Neil Booth  <NeilB@earthling.net>
5716
5717         * cpplex.c: Move new lexer definitions and prototypes
5718         to top.  Conditional include these and the code if
5719         NEW_LEXER is defined.  Rename functions whose names
5720         clash if this code included.
5721
5722 Sun May  7 00:54:57 EDT 2000  John Wehle  (john@feith.com)
5723
5724         * rtl.def (COND_EXEC): Clarify.
5725
5726         * i386.md (extendsidi2): Clobber (reg:CC 17) in the
5727         same fashion as zero_extendsidi2.
5728
5729 2000-05-06  Richard Henderson  <rth@cygnus.com>
5730
5731         * config/ia64/ia64.c (predicate_operator): New.
5732         (ia64_print_operand): Handle 'J'.
5733         (rtx_needs_barrier): Handle COND_EXEC.
5734         * config/ia64/ia64.h (BRANCH_COST): Define.
5735         (PREDICATE_CODES): Update.
5736         * config/ia64/ia64.md: Docuement used unspec values.
5737         (attr predicable): New.
5738         (movxf, movxf_internal): New.
5739         (extendsfdf2): Don't comment out nop.
5740         (floatdidf2): Remove.
5741         (truncxfsf2, truncxfdf2, floatdixf2): New.
5742         (abssi2, absdi2): Put the neg in the "true" slot.
5743         (conditional branch instructions): Mark not predicable.
5744         (cmov*_internal): Use predicate_operator.  Split to cond_exec.
5745         (abs*_internal): Likewise.
5746         (alloc, set_bsp): Mark not predicable.
5747         (barrier, insn_group_barrier, flush_cache): Likewise.
5748         (define_cond_exec): New.
5749
5750 2000-05-06  Richard Henderson  <rth@cygnus.com>
5751
5752         * c-decl.c: Include "tm_p.h".
5753
5754         * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
5755         (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
5756         (ia64_expand_op_and_fetch): Declare.
5757         * config/ia64/ia64.c: Include "toplev.h".  Kill trailing whitespace.
5758         (setjmp_operand): Constify variables for XSTR.
5759         (ia64_encode_section_info): Likewise.
5760         (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
5761         values to int.
5762         (ia64_asm_output_external): Constify name.
5763         (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
5764         (process_for_unwind_directive): Provide switch default.
5765         (ia64_expand_compare_and_swap): Remove unused variables.
5766         (ia64_expand_builtin): Likewise.
5767         * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
5768         for printing.
5769
5770         * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
5771         (symbolic_operand, function_operand, setjmp_operand): Likewise.
5772         (shift_count_operand, shift_32bit_count_operand): Likewise.
5773         (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
5774         (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
5775         (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
5776         (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
5777         (ia64_expand_builtin): Likewise.
5778         (call_multiple_values_operation): Make dest_regno unsigned.
5779
5780 2000-05-06  Richard Henderson  <rth@cygnus.com>
5781
5782         * rtl.def (DEFINE_COND_EXEC): New.
5783         * md.texi: Document it.
5784
5785         * gensupport.c (input_file): Remove.
5786         (struct queue_elem): Add lineno.
5787         (rtx_ready_queue): Remove.
5788         (errors): New.
5789         (predicable_default): New.
5790         (predicable_true, predicable_false): New.
5791         (define_attr_queue, define_attr_tail): New.
5792         (define_insn_queue, define_insn_tail): New.
5793         (define_cond_exec_queue, define_cond_exec_tail): New.
5794         (other_queue, other_tail): New.
5795         (queue_pattern): New.
5796         (process_rtx): Add patterns to the appropriate queues.
5797         (is_predicable, identify_predicable_attribute): New.
5798         (n_alternatives, collect_insn_data): New.
5799         (alter_predicate_for_insn, alter_test_for_insn): New.
5800         (shift_output_template, alter_output_for_insn): New.
5801         (process_one_cond_exec, process_define_cond_exec): New.
5802         (init_md_reader): Read the entire file.  Process define_cond_exec.
5803         (read_md_rtx): Return elements from the queues.
5804
5805 2000-05-06  Richard Henderson  <rth@cygnus.com>
5806
5807         * flow.c (mark_set_1): Don't update conditional life info
5808         if the register is not_dead.
5809
5810 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
5811
5812         * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
5813         (mostlyclean): Also delete fixincl, fixinc.sh, and
5814         specs.ready, and make clean in the fixinc subdir.
5815
5816 2000-05-06  Richard Henderson  <rth@cygnus.com>
5817
5818         * Makefile.in (gensupport.o): Compile for the host.
5819         (host-prefix gensuuprt.o): Remove.
5820         (genflags.o): Depend on gensupport.h and OBSTACK_H.
5821         (genattrtab.o): Likewise.
5822         (gencodes.o): Depend on gensupport.h.
5823         (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
5824         (genpeep.o, genattr.o, genoutput.o): Likewise.
5825
5826         * gensupport.c (obstack, rtl_obstack): New.
5827         (init_md_reader): Initialize rtl_obstack.
5828         * gensupport.h (rtl_obstack): Declare.
5829         (message_with_line): Declare.
5830
5831         * genattr.c: Remove all traces of obstack manipulation.
5832         * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
5833         * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
5834
5835         * genattrtab.c (obstack, rtl_obstack): Remove.
5836         (main): Don't init rtl_obstack.
5837         * genflags.c: Likewise.
5838
5839         * genrecog.c (message_with_line): Move ...
5840         * gensupport.c: ... here.
5841
5842 2000-05-06  Richard Henderson  <rth@cygnus.com>
5843
5844         * c-typeck.c (build_c_cast): Remove dead code.
5845
5846 2000-05-06  Richard Henderson  <rth@cygnus.com>
5847
5848         * flow.c (split_edge): Don't allocate global_live_at_start for
5849         the new block unless the old blocks had them as well.
5850
5851         * flow.c (mark_set_1): Respect not_dead when updating reg_live.
5852
5853         * ifcvt.c (noce_process_if_block): Don't use an insn_b from
5854         test_bb if a or b uses x.
5855
5856 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
5857
5858         * cpphash.h: Remove conditional #define of __extension__.
5859         * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
5860         RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
5861         (ENABLE_RTL_CHECKING only).
5862         * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
5863         CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
5864         (ENABLE_TREE_CHECKING only).
5865         * varray.h: Add __extension__ to VARRAY_CHECK macro
5866         (ENABLE_CHECKING only).
5867
5868 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
5869
5870         Use new tail-calling mechanism on ARM.
5871         * arm.md (sibcall, sibcall_value): New expands.
5872         (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
5873         (tailcalling peepholes): Delete.
5874         (push_multi): Simplify.
5875         * arm.c (lr_save_eliminated): Delete definition.
5876         (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
5877         (output_return_instruction): Remove checks on lr_save_eliminated.
5878         (output_arm_prologue): Remove old tail-calling code.
5879         (arm_output_epilogue): New parameter, really_return.  All callers
5880         changed.  Handle tail-calling epilogues.
5881         * arm.h (lr_save_eliminated): Delete declaration.
5882         (frame_pointer_needed): Delete declaration.
5883         * arm-protos.h (arm_output_epilogue): Adjust prototype.
5884
5885         * arm.md (is_thumb): Examine symbol thumb_code, not expression
5886         TARGET_ARM.
5887         * arm.c (thumb_code): Define it.
5888         (arm_override_options): Set it.
5889         * arm.h (thumb_code): Declare it.
5890
5891 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
5892
5893         * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
5894
5895 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
5896
5897         * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
5898         bogus clobber to insns.
5899         (load_multiple_operation, store_mulitple_operation): Don't check
5900         for it.
5901         * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
5902
5903         * arm.md (and_scc, ior_scc): Add missing mode.
5904
5905         * arm.md (call_value_symbol): Remove predicate from op2.
5906
5907         * arm.h (SPECIAL_MODE_PREDICATES): Define.
5908
5909 Sat May  6 06:25:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5910
5911         * expr.c (get_subtarget): New function.
5912         (force_operand, expand_expr, do_store_flag): Use it.
5913
5914         * toplev.c (compile_file): Don't take strlen of NAME if null.
5915
5916 2000-05-06  David Edelsohn  <edelsohn@gnu.org>
5917
5918         * xcoffout.c (xcoff_current_include_file,
5919         xcoff_current_function_file, xcoff_lastfile): Constify char *.
5920         (xcoffout_source_file, xcoffout_source_line): Make filename 'const
5921         char *'.
5922         (xcoffout_declare_function): Make name 'const char *'.
5923         (xcoffout_end_epilogue): Make fname 'const char *'
5924         * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
5925         xcoffout_declare_function, xcoffout_source_line): Match above.
5926
5927         * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
5928         -maix64 is error.
5929         * rs6000.c (print_operand): Fix lossage typo.
5930         (output_cbranch): Remove "cr" decoration for now.
5931         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
5932
5933 Sat May  6 06:55:32 2000  Denis Chertykov  <denisc@overta.ru>
5934
5935         * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
5936         constant count.
5937
5938 2000-05-05  Bruce Korb  <bkorb@gnu.org>
5939
5940         * fixinc/genfixes: Improve the matching for make target names
5941
5942 2000-05-05  Catherine Moore  <clm@cygnus.com>
5943
5944         * c-common.c (decl_attributes):  For TYPE_DECLs attach the
5945         attribute to the decl.
5946         * c-decl.c (pushdecl): Propagate the USED attribute to the
5947         type copy.
5948
5949 2000-05-05  Richard Henderson  <rth@cygnus.com>
5950
5951         * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
5952         same way emit_group_load does.
5953
5954 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
5955
5956         * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
5957
5958         * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
5959         (main): Likewise.
5960
5961 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
5962
5963         * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
5964
5965 Fri May  5 10:29:21 2000  Marc Espie <espie@cvs.openbsd.org>
5966
5967         * config/openbsd.h (LINK_SPEC): pass correct flags to ld
5968         to support -shared, on platforms with dynamic libraries.
5969
5970 Fri May  5 10:27:06 2000  Philippe De Muyter  <phdm@macqel.be>
5971
5972         * system.h (S_ISBLK): Provide fallback definition.
5973
5974 2000-05-05  Geoff Berry  <geoffb@bops.com>
5975
5976         * extend.texi (Extended Asm): Document inability to give asm
5977         statements access to condition codes.
5978
5979 2000-05-05  Marek Michalkiewicz  <marekm@linux.org.pl>
5980
5981         * varasm.c (asm_emit_uninitialised): Use 0, not NULL
5982         as arg 2 of UNIQUE_SECTION.
5983
5984 Fri May  5 10:11:41 2000  Jeffrey A Law  (law@cygnus.com)
5985
5986         * predict.c: Remove May 4 change.
5987         * bb-reorder.c (make_reorder_chain): Do not perform block movement
5988         if we have predicted the branch at 50-50 probability.
5989
5990 2000-05-05  Richard Henderson  <rth@cygnus.com>
5991
5992         * flow.c (init_propagate_block_info): Fix merge error
5993         in HAVE_conditional_execution code.
5994
5995 Fri May  5 07:43:50 2000  Denis Chertykov  <denisc@overta.ru>
5996
5997         * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
5998         shift cycle for unknown shift count. Also generates dec + brpl.
5999         (ashlqi3_out): Don't generate dec + brpl which now generates by
6000         `out_shift_with_cnt'.
6001         (ashlhi3_out): Likewise.
6002         (ashlsi3_out): Likewise.
6003         (ashrqi3_out): Likewise.
6004         (ashrhi3_out): Likewise.
6005         (ashrsi3_out): Likewise.
6006         (lshrqi3_out): Likewise.
6007         (lshrhi3_out): Likewise.
6008         (lshrsi3_out): Likewise.
6009
6010 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
6011
6012         * gcc.c (free_split_directories): Correct typo in explanation
6013         of make_relative_prefix.
6014
6015 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
6016
6017         * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
6018         comparison codes to branch_comparison_operator.
6019
6020 2000-05-04  Richard Henderson  <rth@cygnus.com>
6021
6022         * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
6023
6024 2000-05-04  Richard Henderson  <rth@cygnus.com>
6025
6026         * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
6027         (DPBIT_FUNCS): Remove _sf_to_usi.
6028         (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
6029
6030         * ifcvt.c (noce_process_if_block): Fail if A or B modified
6031         between condition and jump.
6032
6033         * libgcc2.c (near eh_context_specific): Comment #endif string.
6034         * longlong.h: Don't use strings with embedded newlines.
6035
6036 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
6037
6038         * config/rs6000/rs6000-protos.h: Add output_cbranch.
6039         * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
6040         (print_operand): Delete %t and %T codes.
6041         (output_cbranch): New function.  Support branch prediction.
6042         * config/rs6000/rs6000.md: Use output_cbranch for
6043         conditional branches and returns.
6044
6045 2000-05-04  Jason Merrill  <jason@casey.cygnus.com>
6046
6047         * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
6048         * stor-layout.c (place_field): Likewise.
6049         * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
6050         * expr.c (store_expr): Make align unsigned.
6051         * explow.c (plus_constant_wide): Make low words unsigned.
6052         * expmed.c (choose_multiplier): Likewise.
6053         * fold-const.c (fold):  Likewise.
6054         * tree.h (build_int_2): Likewise.
6055         * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
6056         * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
6057         (init_emit): Change cast to unsigned char*.
6058         * varasm.c (compare_constant_1): Add cast to char*.
6059         * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
6060         * reload1.c (reload): Likewise.
6061
6062         * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
6063
6064 Thu May  4 14:37:23 2000  Jeffrey A Law  (law@cygnus.com)
6065
6066         * predict.c (estimate_probability): If no prediction was found, then
6067         predict the successor that is the next physical block (if such a
6068         successor exists).
6069
6070 2000-05-04  Richard Henderson  <rth@cygnus.com>
6071
6072         * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
6073
6074 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6075
6076         * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
6077
6078 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
6079
6080         * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
6081         attribute macros from here ...
6082         (CPP_SPEC): to here.
6083         * i386/mingw32.h (CPP_PREDEFINES): Likewise.
6084         (CPP_SPEC): Likewise.
6085         * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
6086
6087         * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
6088         (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
6089
6090 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6091
6092         * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
6093
6094         * diagnostic (vbuild_message_string, build_message_string,
6095         build_location_prefix, output_get_prefix, init_output_buffer,
6096         output_notice, vline_wrapper_message_with_location,
6097         v_message_with_decl, default_print_error_function): De-constify.
6098         (set_real_maximum_length): Prototype.
6099
6100         * diagnostic.h (struct output_buffer, init_output_buffer,
6101         output_get_prefix, output_set_prefix): De-constify.
6102
6103         * function.c (init_function_start): Constify.
6104
6105         * gensupport.c (remove_constraints, process_rtx): Prototype.
6106
6107         * gthr-posix.h: Indent uses of #pragma.
6108
6109         * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
6110         Prototype.
6111
6112         * predict.c (find_expected_value): Delete prototype.
6113         (expected_value_to_br_prob): Initialize variable `ev_reg'.
6114
6115         * sbitmap.h (debug_sbitmap): Prototype.
6116
6117         * ssa.c (compute_coalesced_reg_partition): Prototype.
6118
6119         * stor-layout.c (debug_rli): Prototype.
6120
6121         * tree.h (round_down): Prototype.
6122         (init_function_start): Constify.
6123
6124 2000-05-04  Zack Weinberg  <zack@wolery.cumb.org>
6125
6126         * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
6127         (overly conservative).  Change extern inline wrappers to
6128         static inline, define them always, use PARAMS properly.
6129         * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
6130         whitespace warnings for \f and \v at the beginning of a line.
6131
6132 Thu May  4 10:03:50 2000  Jeffrey A Law  (law@cygnus.com)
6133
6134         * haifa-sched.c (schedule_insns): Free the flow edge list when it
6135         is no longer needed
6136
6137 2000-05-04  Bruce Korb  <bkorb@gnu.org>
6138
6139         * fixincl/inclhack.def: added broken_cabs -
6140         Remove `extern double cabs' declarations from math.h
6141         * fixincl/inclhack.sh: regen
6142         * fixincl/fixincl.x: regen
6143         * fixincl/fixincl.c: Remove BOGOSITY code
6144         * fixincl/mkfixinc.sh: Remove code for installing "shell" version
6145
6146 Thu May  4 09:45:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6147
6148         * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
6149         MEM_ALIAS_SET.
6150         * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
6151         when calling MEM_COPY_ATTRIBUTES.
6152         * emit-rtl.c (operand_subword, change_address): Likewise.
6153         * explow.c (stabilize): Likewise.
6154         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6155         * integrate.c (copy_rtx_and_substitute): Likewise.
6156         * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
6157         when calling MEM_COPY_ATTRIBUTES.
6158         (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
6159         Likewise.
6160         * cse.c (gen_lowpart_if_possible): Likewise.
6161         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6162         * optabs.c (gen_move_insn): Likewise.
6163         * recog.c (validate_replace_rtx_1): Likewise.
6164         * simplify-rtx.c (add_mem_for_addr): Likewise.
6165         * stmt.c (expand_anon_union_decl): Likewise.
6166         * config/arm/arm.md: Likewise.
6167         * config/h8300/h7300.c (fix_bit_operand): Likewise.
6168         * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
6169         (block_move_no_loop, block_move_sequence): Likewise.
6170         * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
6171         * config/alpha/alpha.c (get_aligned_mem): Likewise.
6172         Clear MEM_ALIAS_SET.
6173         * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
6174         MEM_COPY_ATTRIBUTES.
6175
6176 2000-05-03  Robert Lipe <robertlipe@usa.net>
6177
6178         * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
6179         to suppress libgcc1.
6180         (i[34567]86-*-sco3.2v5*) Likewise.
6181         (i[34567]86-*-sco3.2v4*) Likewise.
6182         (i[34567]86-*-sco) Likewise.
6183         (i[34567]86-*-solaris2) Likewise.
6184         (i[34567]86-*-sysv5*) Likewise.
6185         (i[34567]86-*-sysv4*) Likewise.
6186         (i[34567]86-*-udk*) Likewise.
6187         (i[34567]86-*-sysv*) Likewise.
6188
6189 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
6190
6191         * cpphash.h (U): New define, to correct type of string constants.
6192         (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
6193         routines, to do casts when passing unsigned strings to libc.
6194         * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
6195
6196         * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
6197         * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
6198         * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
6199         * cpplex.c (parse_ifdef, parse_include, validate_else): Make
6200         second argument an U_CHAR *.
6201
6202         * cppinit.c (builtin_array): Make name and value U_CHAR *, add
6203         length field, clean up initializer.
6204         (ISTABLE): Add __extension__ to designated-
6205         initializers version.
6206         * cpplex.c (CHARTAB): Likewise.
6207
6208         * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
6209         case so the file won't be empty.
6210
6211 Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>
6212
6213         * bb-reorder.c (struct reorder_block_def): Member succ removed.
6214         (REORDER_BLOCK_SUCC): Removed.
6215         (enum reorder_skip_type): Removed.
6216         (skip_insns_between_block): Renamed to skip_insns_after_block.
6217         Removed second argument. Removed dead code and cleaned up.
6218         (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
6219         (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
6220         second parameter to skip_insns_after_block.
6221
6222 Wed May  3 13:29:54 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6223
6224         * tree.c (staticp, case LABEL_DECL): New case.
6225
6226 2000-05-03  Richard Henderson  <rth@cygnus.com>
6227
6228         * Makefile.in (start.encap): Do not depend on LIBGCC1.
6229
6230         * mklibgcc1.in: Fix typo last change.
6231
6232 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
6233
6234         * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
6235         (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
6236         (GCC_CFLAGS): Use it.
6237         (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
6238         * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
6239         objc/Make-lang.in: Use it.
6240
6241 2000-05-03  Jason R Thorpe  <thorpej@zembu.com>
6242
6243         * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
6244
6245 2000-05-03  Richard Henderson  <rth@cygnus.com>
6246
6247         * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
6248         LIBGCC1 empty with libgcc1.null.
6249
6250 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
6251
6252         * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
6253         change.
6254
6255 2000-05-03  Greg McGary  <gkm@gnu.org>
6256
6257         * tree.h (tree_common): Add bounded_flag member.  Remove
6258         inaccurate comment about number of remaining bits.
6259         (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
6260         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6261         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6262         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6263         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
6264         (TYPE_QUAL_BOUNDED): New constant.
6265         (TYPE_QUALS): Handle bounded qualifier.
6266         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
6267         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6268         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6269         TYPE_AMBIENT_BOUNDEDNESS): New macros.
6270         (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
6271         (tree_type): Add pointer_depth member.  Remove
6272         inaccurate comment about number of remaining bits.
6273         (DECL_POINTER_DEPTH): Add macro.
6274         (tree_decl): Add pointer_depth member.
6275
6276 Wed May  3 22:52:53 2000  Denis Chertykov  <denisc@overta.ru>
6277
6278         * config/avr/avr-protos.h (test_hard_reg_class): Declared.
6279         * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
6280         (lshrhi3_out): Likewise.
6281         (ashrsi3_out): bugfix in shift by 8.
6282         (test_hard_reg_class): New function.
6283         * config/avr/avr.md: Bugfix inside conditions in peepholes.
6284         (ashlhi3): removed define_expand of this pattern.
6285         (*ashlhi3_insn): renamed to ashlhi3.
6286         (ashlsi3): removed define_expand of this pattern.
6287         (*ashlsi3_insn): renamed to ashlsi3.
6288         (ashrqi3): removed define_expand of this pattern.
6289         (*ashrqi3_insn): renamed to ashrqi3.
6290         (ashrhi3): removed define_expand of this pattern.
6291         (*ashrhi3_insn): renamed to ashrhi3.
6292         (ashrsi3): removed define_expand of this pattern.
6293         (*ashrsi3_insn): renamed to ashrsi3.
6294         (lshrhi3): removed define_expand of this pattern.
6295         (*lshrhi3_insn): renamed to lshrhi3.
6296         (lshrsi3): removed define_expand of this pattern.
6297         (*lshrsi3_insn): renamed to lshrsi3.
6298
6299 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
6300
6301         * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
6302         inclusion of "system.h".
6303
6304 Wed May  3 11:43:53 2000  Jim Wilson  <wilson@cygnus.com>
6305
6306         * config/ia64/ia64.c (ia64_encode_section_info): Add check for
6307         TREE_ASM_WRITTEN.
6308
6309 2000-05-03  David Mosberger  <davidm@hpl.hp.com>
6310
6311         * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
6312         if -mauto-pic is on.
6313         (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
6314         -mconstant-gp is in effect and function-descriptors are being used
6315         to make indirect calls.
6316         * config/ia64/ia64.h (MASK_CONST_GP): New macro.
6317         (MASK_AUTO_PIC): Ditto.
6318         (TARGET_CONST_GP): Ditto.
6319         (TARGET_AUTO_PIC): Ditto.
6320         (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
6321         (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
6322         -mno-pic is in effect.
6323         (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
6324         * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
6325         -mauto-pic is in effect.
6326         (gprel64_offset): New pattern.
6327         (load_gprel64): Ditto.
6328         (call): Handle -mauto-pic like -mno-pic (don't use fptr).  If
6329         -mconstant-gp is in effect, no need to preserve gp around direct
6330         calls.
6331         (call_value): Ditto.
6332         * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
6333         (FUNCTION_PROFILER): Define.
6334         * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
6335         @fptr() directive when -mno-pic or -mauto-pic is in effect.
6336         (ASM_OUTPUT_DESTRUCTOR): Ditto.
6337
6338 2000-05-03  Richard Henderson  <rth@cygnus.com>
6339
6340         * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
6341         (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
6342         (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
6343         (mklibgcc, libgcc.mk): New targets.
6344         (libgcc.a): Use libgcc.mk.
6345         (stmp-multilib): Likewise.
6346         (stmp-multilib-sub): Remove.
6347         (mostlyclean): Don't delete libgcc2 temp files.
6348         * configure.in (AC_PROG_CC_C_O): Add.
6349         (NO_MINUS_C_MINUS_O): Substitute it.
6350         (all_outputs): Add mklibgcc.
6351         * mklibgcc.in: New file.
6352
6353 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
6354
6355         * cppexp.c (op_t): Make an int.
6356
6357         * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
6358
6359         * varasm.c (initializer_constant_valid_p): Fix parenthesis.
6360
6361         * gensupport.c (process_rtx): Fix macros used.
6362
6363 2000-05-03  Richard Henderson  <rth@cygnus.com>
6364
6365         * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
6366         call-clobbered registers of a call.
6367
6368 Wed May  3 12:40:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
6369
6370         * gensupport.c: New file.
6371         * gensupport.h: New file.
6372         * Makefile.in (HOST_RTL): Depend on gensupport.
6373         (gensupport.o) New rule.
6374         * genattr.c: Use gensupport for reading .md files.
6375         * genattrtab.c: Ditto.
6376         * gencodes.c: Ditto.
6377         * genconfig.c: Ditto.
6378         * genemit.c: Ditto.
6379         * genextract.c: Ditto.
6380         * genflags.c: Ditto.
6381         * genopinit.c: Ditto.
6382         * genoutput.c: Ditto.
6383         * genpeep.c: Ditto.
6384         * genrecog.c: Ditto.
6385         * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
6386         * md.texi (Insn Splitting): Document define_insn_and_split.
6387
6388 Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>
6389
6390         * flow.c (verify_flow_info): Added two more sanity checks. The
6391         first checks that the blocks are numbered consecutively. The second
6392         checks that n_basic_blocks is actually equal to the number of
6393         basic blocks in the insn chain.
6394
6395 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
6396
6397         * cpplib.h: Add accessor macros for token lists.
6398         * cpplib.c, cpphash.c, cpplex.c: Use them.
6399
6400 Wed May  3 09:29:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6401
6402         * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
6403         memory usage if not in a function.
6404         * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
6405         return address if static.
6406
6407 Wed May  3 13:14:49 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6408
6409         * ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
6410         whether address may trap.
6411
6412 Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>
6413
6414         * bb-reorder (chain_reorder_blocks): Changed code to test for
6415         EDGE_FALLTHRU rather than making erroneous assumption that the
6416         first outgoing edge is the fall-through edge.
6417
6418 Tue May  2 18:20:31 2000  Donald Lindsay  <dlindsay@hound.cygnus.com>
6419
6420         * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
6421         ABI for varargs, across all MIPS. This is incompatible because the
6422         va_list (__builtin_va_list) structure is different, so a compilation
6423         unit passing a va_list and a compilation unit being passed one, should
6424         both be compiled with the same ABI. (The old structure had two
6425         pointers, now it has three.)
6426
6427 Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>
6428
6429         * bb-reorder.c (struct reorder_block_def): Remove members end,
6430         block_begin, and block_end.
6431         (REORDER_BLOCK_OLD_END): Delete.
6432         (REORDER_BLOCK_BEGIN): Delete.
6433         (REORDER_BLOCK_END): Delete.
6434         (chain_reorder_blocks): Remove dead code.
6435
6436 Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>
6437
6438         * bb-reorder.c (remove_scope_notes): Check for both types of scope
6439         notes as the end of a basic block before deleting.
6440
6441 2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>
6442
6443         * final.c (final_start_function): Fix spelling of "necessary".
6444
6445 2000-05-02  Jason Merrill  <jason@casey.cygnus.com>
6446
6447         * toplev.c (debug_ignore_block): Return int.
6448         * dwarf2out.c (dwarf2out_ignore_block): Likewise.
6449         * toplev.h, dwarf2out.h: Adjust.
6450         * emit-rtl.c (remove_unnecessary_notes): Test return value.
6451
6452         * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
6453         * toplev.c, final.c, rtl.h: Adjust.
6454
6455 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
6456
6457         * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
6458         * configure.in: Look for makeinfo in the unified tree, then
6459         for a system makeinfo which is sufficiently new.
6460         * Makefile.in: If configure says makeinfo is too old, don't
6461         build or install Info documentation.
6462
6463 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
6464
6465         * cpphash.c (collect_params): Fix off-by-one error.
6466         (dump_hash_helper): Dump all four macro nodetypes.
6467
6468 2000-05-02  Jakub Jelinek  <jakub@redhat.com>
6469
6470         * cpphash.c (trad_stringify): Adjust p after stringification as
6471         well.
6472
6473 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
6474
6475         * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
6476         (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
6477
6478         * cppfiles.c (file_cleanup): Delete.
6479         * cpphash.c (macro_cleanup): Delete.
6480         (collect_objlike_expansion, collect_funlike_expansion,
6481         macarg, scan_arguments): Remove CPP_POP case.
6482
6483         * cpplex.c (null_cleanup): Delete.
6484         (cpp_pop_buffer): Do the work that was done in the cleanups
6485         here.  Call _cpp_unwind_if_stack from here.
6486         (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
6487         cpp_scan_buffer): Run until we see CPP_EOF and the top of
6488         stack is the buffer _below_ the one we stacked.
6489         (cpp_get_token): Always pop an exhausted buffer.  Return
6490         CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
6491         * cpplib.c (skip_if_group): Don't call cpp_get_token to
6492         increment the line number.
6493         (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
6494
6495         * fix-header.c (read_scan_file) [parsing getchar()]: Run until
6496         we see CPP_EOF and the top of stack is the buffer _below_ the
6497         one we stacked.
6498         * scan-decls.c: Likewise.
6499
6500 2000-05-02  Andrew Haley  <aph@cygnus.com>
6501
6502         * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
6503         where this function is called for the second time on a decl that
6504         has had its section info changed in such a way as to move it out
6505         of small data/bss.
6506         * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
6507
6508 2000-05-01  Richard Henderson  <rth@cygnus.com>
6509
6510         * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
6511         the sequence we're moving, not to merge_bb->head.
6512
6513 2000-05-01  Richard Henderson  <rth@cygnus.com>
6514
6515         * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
6516         reference to alpha/t-linux.
6517         (alpha*-*-linux-gnu*): Likewise.
6518         * configure: Rebuild.
6519
6520         * calls.c (expand_call): Don't emit reg notes for a sibcall.
6521
6522         * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
6523         if not in SSA form.
6524
6525         * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
6526
6527 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
6528
6529         * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
6530         TREE_THIS_VOLATILE.
6531
6532 2000-05-01  Richard Henderson  <rth@cygnus.com>
6533
6534         * ifcvt.c (noce_emit_cmove): Conditionally compile call to
6535         emit_conditional_move.
6536
6537 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
6538
6539         * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
6540         as the dynamic linker.
6541
6542 2000-05-01  Zack Weinberg  <zack@wolery.cumb.org>
6543
6544         * cppfiles.c (open_include_file): Open file in blocking mode.
6545         (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
6546         Only exclude block devices and directories.
6547
6548         * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
6549         static.  Allocate the hashnode and its string in the same
6550         block of memory.
6551         (del_HASHNODE): Don't free h->name.
6552         (_cpp_lookup): If there is no entry for this string, create
6553         one, of type T_VOID.
6554         (_cpp_lookup_slot): Delete.
6555         * cpphash.h: Update prototypes.
6556
6557         * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
6558         not hp == NULL.
6559         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
6560         do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
6561         node here, just fill in the value field properly.  "Delete"
6562         entries by setting the value field to T_VOID.  Check for
6563         hp->type == T_VOID, not hp == NULL.
6564
6565         * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
6566         * cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
6567         hashtab.h.
6568
6569 2000-05-01  Alexandre Oliva  <aoliva@cygnus.com>
6570
6571         * config/mn10300/mn10300.c (print_operand_address): Do not add
6572         zero to SP.
6573
6574         * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
6575         adjusted by less than 256 bytes, use ret regardless of having any
6576         callee-saved register to restore.
6577
6578 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
6579
6580         * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
6581
6582 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
6583
6584         * config/i386/djgpp.h (INT_ASM_OP): Define.
6585         (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
6586         (ASM_WEAKEN_LABEL): Define.
6587         (MASK_BNU210): Define.
6588         (SUBTARGET_SWITCHES): Define.
6589         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
6590         (MAKE_DECL_ONE_ONLY): Define.
6591         (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
6592
6593 2000-05-01  Mumit Khan  <khan@xraylith.wisc.edu>
6594
6595         * i386/cygwin.h (INT_ASM_OP): Define.
6596
6597 Mon May  1 18:20:06 2000  Denis Chertykov  <denisc@overta.ru>
6598
6599         * config/avr/avr.c (address_cost): renamed to avr_address_cost.
6600         * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
6601
6602 Mon May  1 17:50:44 2000  Denis Chertykov  <denisc@overta.ru>
6603
6604         * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
6605         __tmp_reg__ and __zero_reg__ initialization.
6606
6607 2000-04-30  Richard Henderson  <rth@cygnus.com>
6608
6609         * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
6610
6611         * ifcvt.c (noce_process_if_block): Fail the conversion if X is
6612         referenced bewteen the condition and the jump.  Don't delete
6613         anything but the jump.
6614
6615 Sun Apr 30 22:48:24 2000  Jason Eckhardt  <jle@cygnus.com>
6616
6617         * bb-reorder.c (scope_def): New struct.
6618         (scope_forest_info): New struct.
6619         (struct reorder_block_def): New member "scope".
6620         (REORDER_BLOCK_SCOPE): New macro.
6621         (relate_bbs_with_scopes): New function and prototype.
6622         (make_new_scope): Likewise.
6623         (build_scope_forest): Likewise.
6624         (remove_scope_notes): Likewise.
6625         (insert_intra_1): Likewise.
6626         (insert_intra_bb_scope_notes): Likewise.
6627         (insert_inter_bb_scope_notes): Likewise.
6628         (rebuild_scope_notes): Likewise.
6629         (free_scope_forest_1): Likewise.
6630         (free_scope_forest): Likewise.
6631         (dump_scope_forest): Likewise.
6632         (dump_scope_forest_1): Likewise.
6633         (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
6634         Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
6635         block.
6636         (reorder_basic_blocks): Added calls to build_scope_scope_forest
6637         and remove_scope_notes before reordering is done. Added calls to
6638         rebuild_scope_notes, free_scope_forest, and reorder_blocks after
6639         after reordering is done.
6640
6641 2000-40-30  Bruce Korb  <bkorb@gnu.org>
6642
6643         * fixinc/inclhack.def:  Added definitions needed by OSR5,
6644         removed two stale entries (defined away with OLD_CPP).
6645         * fixinc/inclhack.sh: regen
6646         * fixinc/fixincl.x: regen
6647
6648 2000-04-30  Richard Henderson  <rth@cygnus.com>
6649
6650         * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
6651         from the last insn in the sequence.
6652
6653 2000-04-30  Zack Weinberg  <zack@wolery.cumb.org>
6654
6655         * cpplex.c (cpp_idcmp): New function.
6656         * cpplib.h: Prototype it.
6657         * scan_decls.c (scan_decls): Use it to inspect token names.
6658         * fix-header.c (read_scan_file): Likewise.  Set system_header_p on
6659         the file being run through the preprocessor.
6660         (check_macro_names): Provide length of token to cpp_defined.
6661
6662         * Makefile.in: Remove stale warning message.
6663
6664         * cppfiles.c (redundant_include_p): Provide length of token to
6665         cpp_defined.
6666         * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
6667         values are unsigned int.
6668         (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
6669         (_cpp_lookup_slot): Do not calculate the hash, either.
6670         * cpphash.h: Update prototypes.
6671         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
6672         Hashes are unsigned int.  Calculate hash here, pass by value
6673         to _cpp_lookup_slot.
6674
6675 2000-04-30  Bernd Schmidt  <bernds@cygnus.co.uk>
6676
6677         * simplify-rtx.c (check_value_useless): Delete function.
6678         (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
6679         by hand.
6680         (cselib_invalidate_regno): Likewise.
6681         (cselib_invalidate_mem_1): Likewise.
6682         (references_value_p): Recognize useless values by the fact that they
6683         have no locations.
6684         (discard_useless_values): Likewise.
6685         (cselib_record_set): This may turn a useless value
6686         into a useful one.
6687
6688 2000-04-30  Richard Henderson  <rth@cygnus.com>
6689
6690         * config/d30v: New port.
6691
6692         * configure.in (d30v-*): Set fp format.
6693         * configure: Rebuild.
6694
6695 2000-04-30  Richard Henderson  <rth@cygnus.com>
6696
6697         * ifcvt.c: New file.
6698         * Makefile.in (OBJS): Add it.
6699         (ifcvt.o): New target.
6700         * jump.c (jump_optimize_1): Remove all code related to if-conversion,
6701         and conditional arithmetic.
6702         (find_insert_position): Remove.
6703         * timevar.def (TV_IFCVT, TV_IFCVT2): New.
6704         * toplev.c (DFI_ce, DFI_ce2): New.
6705         (dump_file): Add ce and ce2 dumps.
6706         (rest_of_compilation): Run if_convert a couple o times.  Set
6707         cse_not_expected after cse2.  Don't set no_new_pseudos until
6708         after sched1 or recompute_reg_usage.
6709
6710 2000-04-30  Richard Henderson  <rth@cygnus.com>
6711
6712         * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
6713         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
6714
6715 2000-04-30  Richard Henderson  <rth@cygnus.com>
6716
6717         * flow.c (struct reg_cond_life_info): New.
6718         (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
6719         (init_propagate_block_info): Initialize them.
6720         (free_propagate_block_info): Destruct them.
6721         (mark_set_1): Consider conditional life before killing a register.
6722         (mark_regno_cond_dead): New.
6723         (free_reg_cond_life_info): New.
6724         (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
6725         (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
6726         (mark_used_reg): Record conditional life.
6727
6728         * haifa-sched.c (schedule_insns): Disable death counting
6729         sanity check for HAVE_conditional_execution.
6730
6731 2000-04-30  Richard Henderson  <rth@cygnus.com>
6732
6733         * Makefile.in (TIMEVAR_H): New.
6734         (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
6735         (timevar.h): Remove rule.
6736
6737 2000-04-29  Richard Henderson  <rth@cygnus.com>
6738
6739         * config/alpha/crtend.asm: Use C comments instead of #.
6740         * config/alpha/crtbegin.asm: Likewise.  Mark __dso_handle hidden.
6741
6742         * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
6743
6744 2000-04-29  Zack Weinberg  <zack@wolery.cumb.org>
6745
6746         * cpphash.h (enum node_type: Take out T_MCONST.
6747         (union hashval): Move into struct hashnode.
6748         (struct hashnode): Pack tighter.  Remove file, line, col
6749         members.
6750         * cpphash.c: Constify most of the macro-definition structures.
6751         (struct definition): Replace by struct object_defn
6752         and struct funct_defn.  Put file, line, column information
6753         here.  All users updated to match.
6754         (_cpp_create_definition, _cpp_macroexpand): Remove special
6755         case for #define WORD OTHERWORD.
6756         * cpplib.c (do_undef): Remove T_MCONST case.
6757
6758         * cpphash.h: Move struct reflist, struct definition, and the
6759         DEFINITION typedef to cpphash.c.  Use 'struct definition *' in
6760         union hashval.  _cpp_free_definition takes a HASHNODE pointer.
6761         * cpphash.c (_cpp_free_definition): Free data pointed to by
6762         MCONST, XCONST, MACRO, and FMACRO nodes properly.
6763         (_cpp_create_definition, del_HASHNODE): Just call
6764         _cpp_free_definition to clear out a hashnode.
6765         * cpplib.c (do_pragma_poison): Likewise.
6766
6767 Sat Apr 29 12:25:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
6768
6769         * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
6770         LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
6771         FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
6772         (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
6773         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
6774         REGNO_AM33_P): Redefine in terms of the new macros.
6775         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
6776         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
6777         STRUCT_VALUE): Likewise.
6778         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
6779         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise.  Moved.
6780
6781 Sat Apr 29 01:18:45 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6782
6783         * regmove.c (struct record_stack_memrefs_data): New.
6784         (record_stack_memrefs): New function.
6785         (combine_stack_adjustments_for_block): Use it.
6786
6787 Sat Apr 29 01:15:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6788
6789         * calls.c (calls_function_1):  Propertly handle TREE_LIST expressions;
6790         use special_function_p to detect alloca.
6791
6792 Fri Apr 28 16:30:33 2000  Marc Espie <espie@cvs.openbsd.org>
6793
6794         * gcc.texi: Fixes for makeinfo 4.0 --html.
6795
6796 2000-04-28  Zack Weinberg  <zack@wolery.cumb.org>
6797
6798         * pcp.h: Delete file.
6799
6800 2000-04-28  Kazu Hirata  <kazu@hxi.com>
6801
6802         * h8300.c (function_epilogue): Clean up flags when the last insn
6803         in a function is a barrier.
6804
6805 2000-04-28  Chris Demetriou  <cgd@sibyte.com>
6806
6807         * configure.in (sparc-hal-solaris2*): protect [] glob from
6808         my expansion.
6809         (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
6810         rather than hard-coded constants in target_cpu_default2.
6811         * configure: Regenerate.
6812
6813 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
6814
6815         * tree.c (get_callee_fndecl): Extract the initial value from
6816         a readonly decl.
6817
6818 2000-04-28  Richard Henderson  <rth@cygnus.com>
6819
6820         * varasm.c (record_constant_1): Record the CODE_LABEL when
6821         taking the address of a LABEL_REF.
6822
6823 2000-04-28  Richard Henderson  <rth@cygnus.com>
6824             Jan Hubicka  <jh@suse.cz>
6825
6826         * calls.c (combine_pending_stack_adjustment_and_call): Return the
6827         adjustment; don't do the stack adjust.
6828         (expand_call): Call compute_argument_block_size right before
6829         allocating the block; update comment; don't do alignment sanity
6830         checking for sibling call; use args_size instead of
6831         unadjusted_args_size before args_size is adjusted.  Use
6832         combine_pending_stack_adjustment_and_call to compute stack adjust
6833         for must_preallocate case.
6834
6835         * expr.c (push_block): Remove shadow `temp' in inner scope.
6836
6837 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
6838
6839         * toplev.c (rest_of_compilation): Call
6840         note_deferral_of_defined_inline_function even if the function
6841         can't be inlined.
6842
6843 2000-04-28  Scott Bambrough  <scottb@netwinder.org>
6844
6845         * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
6846
6847 2000-04-28  Richard Henderson  <rth@cygnus.com>
6848
6849         * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
6850
6851 2000-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6852
6853         * timevar.c (init_timevar): DeANSIfy function definition.
6854
6855 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
6856
6857         * Makefile.in (timevar.o): Depend on flags.h.
6858         * timevar.c (unused_stack_instances): New variable.
6859         (timevar_push): Take a timevar_stack_def from
6860         unused_stack_instances if available.
6861         (timevar_pop): Push the popped timevar_stack_def onto
6862         unused_stack_instances.
6863         (TIMEVAR_ENABLE): New macro.
6864         (timevar_def): Make standalone a 1-bit field.  Add field used.
6865         (get_time): Rename parameter to now.  Return after clearing it if
6866         not TIMEVAR_ENABLE.
6867         (init_timevar): Do nothing if not TIMEVAR_ENABLE.
6868         (timevar_pop): Likewise.
6869         (timevar_stop): Likewise.
6870         (timevar_push): Likewise.  Mark the timing variable as used.
6871         (timevar_start): Likewise.
6872         (timevar_print): Do nothing if not TIMEVAR_ENABLE.  Don't print
6873         timevars that were never used.
6874
6875 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
6876
6877         * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
6878         always TREE_READONLY.
6879
6880 2000-04-27  Ulrich Drepper  <drepper@cygnus.com>
6881
6882         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
6883         for call instruction with mode QImode.
6884
6885 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
6886
6887         * Makefile.in (OBJS): Add timevar.o.
6888         (toplev.o): Depend on timevar.h.
6889         (ggc-simple.o): Likewise.
6890         (ggc-page.o): Likewise.
6891         (timevar.o): New rule.
6892         (timevar.h): New rule.
6893
6894         * timevar.h: New file.
6895         * timevar.c: Likewise.
6896         * timevar.def: Likewise.
6897
6898         * toplev.h (gc_time, parse_time, varconst_time): Remove.
6899         * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
6900         throughout.
6901         (TIMEVAR): Remove macro.
6902         (gc_time, parse_time, varconst_time, integration_time, jump_time,
6903         cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
6904         flow_time, combine_time, regmove_time, sched_time,
6905         local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
6906         sched2_time, dbr_sched_time, reorder_blocks_time,
6907         rename_registers_time, shorten_branch_time, stack_reg_time,
6908         to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
6909         all_time): Remove.
6910         (compile_file): Don't initialize time variables.  Call
6911         init_timevar and start TV_TOTAL timer.  Call timevar_print instead
6912         of many calls to print_time.
6913         (rest_of_compilation): Add timing for reload_cse_regs.
6914         (get_run_time): Removed to timevar.c.
6915         (print_time): Likewise.
6916         (get_run_time): Implement using TV_TOTAL time variable.
6917         (print_time): Get total run time from get_run_time.
6918         * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
6919         computing elapsed time explicitly.
6920         * ggc-simple.c (ggc_collect): Likewise.
6921         (gc_time): Remove declaration.
6922
6923 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
6924
6925         * calls.c (combine_pending_stack_adjustment_and_call): New function.
6926         (expand_call): Use it.
6927
6928 2000-04-27  Jan Hubicka  <jh@suse.cz>
6929
6930         * flow.c (mark_set_1):  Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
6931         fields.
6932
6933 Thu Apr 27 12:47:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
6934
6935         * config/mn10300/mn10300.md (movhi): Simplify.  Prefer data
6936         registers.
6937
6938 Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6939
6940         * function.c (epilogue_done): Pass whole insn to record_insns.
6941
6942 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6943
6944         * cse.c (CSE_ADDRESS_COST): Remove.
6945         (find_best_addr): Add new parameter "MODE", use address_cost instead
6946         of CSE_ADDRESS_COST
6947         (address_cost): New.
6948         (fold_rtx): Update call of find_best_addr.
6949         * rtl.h (address_cost): Declare.
6950         * loop.c (general_induction_var): Add new parameter "MODE", use
6951         address_cost instead of ADDRESS_COST
6952         (init_loop): Use address_cost instead of ADDRESS_COST.
6953         (check_insn_for_givs): Update call of general_induction_var.
6954         (find_mem_givs): Likewise.
6955         (consec_sets_giv): Likewise.
6956         * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
6957         * i386.c (ix86_address_cost): New.
6958         * i386-protos.h (ix86_address_cost): Declare.
6959
6960 Thu Apr 27 11:45:16 2000  Alexandre Oliva  <aoliva@cygnus.com>
6961
6962         * config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
6963         registers.
6964
6965 Thu Apr 27 16:11:00 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6966
6967         * expr.c (store_expr): Use clear_storage instead of direct memset
6968         libcall.
6969
6970 Thu Apr 27 10:36:51 2000  Alexandre Oliva  <aoliva@cygnus.com>
6971
6972         * config/mn10300/mn10300.c (mn10300_address_cost): Test
6973         ASHIFT, AND and LABEL_REF.
6974
6975 Thu Apr 27 15:08:46 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6976
6977         * invoke.texi (-foptimize-sibling-calls): Fix.
6978
6979 Thu Apr 27 14:54:22 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6980
6981         * loop.c (load_mems)  Don't use hard registers for the hoisting.
6982
6983         * unroll.c (unroll_loop): Avoid overflow in the n_iterations
6984         calculation; rename const_equiv array in the preconditioning code
6985         from loop_unroll to loop_unroll_precondition
6986
6987 2000-04-27  Richard Henderson  <rth@cygnus.com>
6988
6989         * flow.c (struct propagate_block_info): Remove new_dead, new_live;
6990         add new_set.
6991         (propagate_one_insn): Clear it.  Don't update reg_live here.
6992         (init_propagate_block_info): Update for pbi member changes.
6993         (free_propagate_block_info): Likewise.
6994         (mark_set_1): Know that zero_extract, sign_extract, and
6995         strict_low_part don't kill their argument.  Alter hard subregs.
6996         Update new_set for non-CLOBBER sets.  Update reg_live.
6997         (find_auto_inc): Update reg_live, not new_dead.
6998         (mark_used_reg): Update reg_live, not new_live.  Examine new_set
6999         to determine if the reg in question was set this insn.  Only update
7000         reg info with PROP_REG_INFO.
7001
7002 2000-04-26  Richard Henderson  <rth@cygnus.com>
7003
7004         * flow.c (allocate_reg_life_data): Set max_regno here ...
7005         (life_analysis): ... not here.
7006
7007         * flow.c (calculate_global_regs_live): Force stack pointer
7008         live at end.
7009
7010 2000-04-26  Richard Henderson  <rth@cygnus.com>
7011
7012         * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
7013         commit change group changes.
7014         (invert_exp_1): Similarly.
7015         (redirect_exp, invert_exp): Use them.
7016         (redirect_jump_1): New.
7017         (invert_jump_1): New.
7018         (jump_optimize_1): Remove code subsumed by condexec.c.
7019         * rtl.h (invert_jump_1, redirect_jump_1): Declare.
7020
7021 2000-04-26  Richard Henderson  <rth@cygnus.com>
7022
7023         * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
7024
7025         * genconfig.c (main): Set all HAVE_foo to 1.
7026
7027         * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
7028
7029 2000-04-26  Alex Samuel  <samuel@codesourcery.com>
7030
7031         * invoke.texi: Document -fssa flag.
7032
7033 2000-04-26  Richard Henderson  <rth@cygnus.com>
7034
7035         * flow.c (count_reg_sets_1): Remove.
7036         (count_reg_sets, count_reg_references): Remove.
7037         (recompute_reg_usage): Implement with update_life_info.
7038         Reallocate life data.
7039
7040 2000-04-26  Richard Henderson  <rth@cygnus.com>
7041
7042         * flow.c (update_life_info): Consider blocks null to mean the
7043         universal set.
7044         (calculate_global_regs_live): Likewise.
7045         (life_analysis): Do that instead of collecting all_blocks.
7046
7047 2000-04-26  Richard Henderson  <rth@cygnus.com>
7048
7049         * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
7050         a still-valid conditional jump.
7051
7052 2000-04-26  Richard Henderson  <rth@cygnus.com>
7053
7054         * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
7055
7056         * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
7057         * flow.c (calculate_loop_depth): Remove.
7058         * output.h (calculate_loop_depth): Don't declare.
7059         * toplev.c (rest_of_compilation): Expand calculate_loop_depth
7060         inline; run estimate_probability at the same time.
7061
7062 2000-04-26  Neil Booth  <NeilB@earthling.net>
7063
7064         * cpplib.h: "~=" is not a single pp-token.
7065         * cpplex.c: Correct commentary.
7066
7067 2000-04-26  Richard Henderson  <rth@cygnus.com>
7068
7069         * flow.c (mark_set_1): New arguments code and flags; update all
7070         callers.  Track regno_first and regno_last; do HARD_REGNO_NREGS
7071         test in one place.  Tidy flags tests.  Don't bias REG_N_REFS by
7072         loop_depth when optimizing for size.  Do new_dead update after
7073         emitting REG_UNUSED notes.  Merge mark_set_reg code.
7074         (mark_set_reg): Remove.
7075         (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
7076         arrange to not emit REG_UNUSED notes.
7077
7078 2000-04-26  Richard Henderson  <rth@cygnus.com>
7079
7080         * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
7081         * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
7082
7083 2000-04-26  Richard Henderson  <rth@cygnus.com>
7084
7085         * flow.c (propagate_one_insn): Break out from propagate_block.
7086         (init_propagate_block_info): Likewise.
7087         (free_propagate_block_info): Likewise.
7088         (propagate_block): Use them.  Export.
7089         * basic-block.h: Declare them all.
7090
7091 2000-04-26  Richard Henderson  <rth@cygnus.com>
7092
7093         * basic-block.h (life_analysis): Declare here ...
7094         * output.h: ... not here.
7095         * flow.c (life_analysis): Remove nregs parameter; replace
7096         remove_dead_code with flags.  Remove ssa dead code check.
7097         Only init alias analysis if we'll use it.
7098         * reg-stack.c (reg_to_stack): Update life_analysis arguments.
7099         * ssa.c (convert_to_ssa): Likewise.
7100         (convert_from_ssa): Likewise.
7101         * toplev.c (rest_of_compilation): Likewise.
7102
7103 2000-04-26  Richard Henderson  <rth@cygnus.com>
7104
7105         * flow.c (flow_delete_block): Rename from delete_block.  Export.
7106         * basic-block.h (flow_delete_block): Declare.
7107
7108 2000-04-26  David S. Miller  <davem@redhat.com>
7109
7110         * optabs.c (emit_libcall_block): Verify insns with INSN_P before
7111         taking a PATTERN of it.
7112
7113 2000-04-26  <NeilB@earthling.net>
7114
7115         * cpplex.c (spell_other, spell_char): Remove.
7116         (SPELL_CHAR): New.
7117         (token_spelling, trigraph_map): Use unsigned chars.
7118         (_cpp_lex_line): Tidy up the switch statement.
7119         * cpplib.h: Implement spell_char with spell_string.
7120         (C): New.
7121
7122 2000-04-26  <RodneyBrown@pmsc.com>
7123
7124         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
7125         * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
7126
7127 2000-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7128
7129         * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
7130         reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
7131         dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
7132         dwarf2out_return_save, dwarf2out_return_reg,
7133         dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
7134         add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
7135         gen_compile_unit_die, dwarf2out_init): Constify a char*.
7136
7137         * dwarf2out.h (dwarf2out_init): Likewise.
7138
7139         * dwarfout.c (filename_entry, primary_filename, last_filename,
7140         type_tag, output_compile_unit_die, dwarfout_init): Likewise.
7141
7142         * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
7143         dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
7144         dwarf2out_return_reg): Likewise.
7145
7146 2000-04-26  Andreas Jaeger  <aj@suse.de>
7147
7148         * extend.texi (Function Attributes): Fix description of pure
7149         attribute.
7150
7151 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
7152
7153         * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
7154         before calling rest_of_compilation.
7155
7156 2000-04-26  Andreas Jaeger  <aj@suse.de>
7157
7158         * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
7159         last patch.
7160
7161 2000-04-25  Richard Henderson  <rth@cygnus.com>
7162
7163         * cse.c (cse_insn): Emit barrier after unconditional jump.
7164
7165         * calls.c (expand_call): Disable tail call generation once
7166         rtx_equal_function_value_matters is false.
7167
7168         * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
7169         like EDGE_EH edges.
7170
7171 2000-04-25  Jason Merrill  <jason@casey.cygnus.com>
7172
7173         * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
7174
7175         * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
7176
7177         * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
7178         is the primary DIE for a member function.
7179         (gen_decl_die): Call set_decl_origin_self here.
7180         * dwarfout.c (output_decl): And here.
7181         * integrate.c (output_inline_function): Not here.
7182         Don't clear DECL_INLINE until after calling rest_of_compilation.
7183         (set_decl_origin_self): No longer static.
7184         * tree.h: Add prototype.
7185         * toplev.c (note_deferral_of_defined_inline_function): Only write
7186         out abstract instance for actual inlines.
7187
7188 2000-04-25  Alexandre Oliva  <aoliva@cygnus.com>
7189
7190         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
7191         EXTENDED_REGS only if TARGET_AM33.
7192         * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
7193         SP_REGS to register allocation and reloading unless absolutely
7194         necessary.
7195         (movsi3): Remove special-case of adding non-constants to SP.
7196
7197 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7198
7199         * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
7200         INCLUDES to search and does not provide any of its own.  Also it
7201         now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
7202         parameters.  Also it does not call AC_DEFINE.
7203         (gcc_AC_NEED_DECLARATIONS): Likewise.  Also this macro now calls
7204         AC_DEFINE and provides for automatic entries for autoheader.
7205         (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
7206
7207         * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
7208         so we can pass -I flags and include gansidecl.h/system.h in this
7209         test.
7210
7211         * acconfig.h: Delete all NEED_DECLARATION_* entries.
7212
7213 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7214
7215         * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
7216         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
7217         ENABLE_GC_ALWAYS_COLLECT): Delete entries.
7218
7219         * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
7220         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
7221         ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
7222         for these macros.  Clean up spacing and linewraps.
7223
7224 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
7225
7226         * calls.c (expand_call): Use get_callee_fndecl.
7227
7228         * print-tree.c (print_node): Print the chain of an _EXPR.
7229
7230 Tue Apr 25 16:16:04 2000  Andrew MacLeod  <amacleod@cygnus.com>
7231                           Jim Wilson  <wilson@cygnus.com>
7232                           Andrew Haley  <aph@cygnus.com>
7233
7234         * config/ia64/crtbegin.asm: Add IA-64 unwind support.  Correct alloc
7235         and gp save/restore problems.
7236         * config/ia64/crtend.asm: Add IA-64 unwind support.
7237         * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
7238         in fr_pad_size calculation.
7239         (save_restore_insns): Move PR save area.  Correct uses of
7240         RTX_FRAME_RELATED_P.
7241         (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
7242         (ia64_expand_epilogue): Add eh_epilogue support.
7243         (ia64_function_prologue): Emit .prologue directive.
7244         (ia64_init_machine_status, ia64_mark_machine_status): New functions.
7245         (ia64_override_options): Set init_machine_status and
7246         mark_machine_status.
7247         (rtx_needs_barrier): Handle bsp reads and writes.
7248         (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
7249         New static variables.
7250         (process_set, process_for_unwind_directive): New functions.
7251         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
7252         ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
7253         ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
7254         macros.
7255         (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
7256         (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
7257         (struct machine_function): Define.
7258         * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
7259
7260 2000-04-25  Bruce Korb  <bkorb@gnu.org>
7261
7262         * fixinc/Makefile.in: make the removal of old programs more
7263         robust
7264         * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
7265         install-bin and install-sh
7266
7267 2000-04-25  Nick Clifton  <nickc@cygnus.com>
7268
7269         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
7270         defined, define to return zero.
7271         (function_cannot_inline_p): If a function has any target
7272         specific attributes, then use the macro
7273         FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
7274         whether it can be inlined.  If it cannot, issue a suitable
7275         explanation.
7276
7277         * tm.texi: Add a new node 'Inlining' to document the new macro
7278         FUNCTION_ATTRIBUTE_INLINABLE_P.
7279
7280 2000-04-25  Zack Weinberg  <zack@wolery.cumb.org>
7281
7282         * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
7283         commentary.
7284
7285 2000-04-25  Neil Booth  <NeilB@earthling.net>
7286
7287         Restore previous patch, plus the following fixes:
7288
7289         * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
7290         flags, not CPP_OPEN_PAREN.
7291         * cpplex.c (expand_token_space, init_token_list,
7292         cpp_free_token_list): Put the dummy token at list->tokens[-1].
7293         (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
7294
7295 Tue Apr 25 14:06:40 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
7296
7297         * config/i386/freebsd.h (INT_ASM_OP): Define.
7298
7299 Tue Apr 25 14:51:07 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7300
7301         * loop.c (strength_reduce): Fix typo in the last checkin.
7302
7303 Tue Apr 25 07:33:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7304
7305         * stor-layout.c (finalize_record_size): Simplify to use existing
7306         functions.
7307         (compute_record_mode): No longer static.
7308         * tree.h (compute_record_mode): New declaration.
7309
7310 2000-04-25  Neil Booth  <NeilB@earthling.net>
7311
7312         * Revert my patch below until cause of build failures
7313         determined.
7314
7315 2000-04-25  Richard Henderson  <rth@cygnus.com>
7316
7317         * combine.c (combine_instructions): Add missing argument
7318         to try_combine.
7319
7320         * toplev.c (rest_of_compilation): Delay sibcall optimization
7321         until after emit_eh_context.
7322
7323 2000-04-24  Nick Clifton  <nickc@redhat.com>
7324
7325         * combine.c (combine_instructions): Do not try to combine a
7326         sequence of insns when the second insn has been replaced by a
7327         note.
7328
7329 Mon Apr 24 17:34:18 2000  Mumit Khan  <khan@xraylith.wisc.edu>
7330
7331         * gcc.c (load_specs): New static function.
7332         (read_specs): Use it.
7333
7334         * gcc.c (lookup_compiler): Make multiple passes for case
7335         insensitive filesystems.
7336
7337 2000-04-24  Neil Booth  <NeilB@earthling.net>
7338
7339         * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
7340         * cpphash.h (_cpp_check_directive): new.
7341         * cpplex.c (handle_newline, cpp_free_token_list,
7342         init_trigraph_map, trigraph_ok, trigraph_replace,
7343         backslash_start, skip_block_comment, skip_line_comment,
7344         skip_whitespace, parse_name, parse_number, parse_string,
7345         copy_comment, _cpp_lex_line, spell_char, spell_string,
7346         spell_comment, spell_name, spell_other, _cpp_lex_file,
7347         _cpp_output_list): new.
7348         (expand_name_space): take length argument.
7349         (init_token_list): add comment list initialisation.
7350         (cpp_scan_line): use auto_expand_name_space.  PREV_WHITESPACE
7351         instead of HSPACE_BEFORE.
7352
7353         * cpplib.c (_cpp_check_directive): new
7354         * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
7355         DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
7356         (HSPACE_BEFORE): delete.
7357         (TTYPE_TABLE): rearrange.
7358         (struct cpp_toklist): update.
7359
7360 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7361
7362         * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
7363         gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
7364         argument form of AC_DEFINE.
7365
7366         * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
7367         HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
7368         WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
7369         HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
7370         HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
7371
7372         * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
7373
7374 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7375
7376         * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
7377         deduced.h): Use -isystem, not -I, for including system headers.
7378
7379 2000-04-24  Nick Clifton  <nickc@cygnus.com>
7380
7381         * config/fr30/fr30.md (addsi3): Do not use small add instruction if
7382         the source register is the frame pointer or arg pointer.
7383         (addsi3_small_int): Disallow if source register is the frame
7384         pointer or arg pointer.
7385
7386 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7387
7388         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
7389         call to AC_MSG_RESULT.
7390
7391 2000-04-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7392
7393         * invoke.texi: Correct grammatical errors, document
7394         -fno-gnu-keywords as identical to -fno-asm for C++.
7395
7396 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7397
7398         * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
7399         GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
7400         GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
7401         AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
7402         EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
7403
7404         * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
7405         GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
7406         GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
7407         GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
7408         new macros names.
7409
7410 2000-04-24  Mumit Khan  <khan@xraylith.wisc.edu>
7411
7412         * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
7413         (pop_alignment): Likewise.
7414         (handle_pragma_token): Likewise.
7415
7416 2000-04-24  Robert Lipe <robertlipe@usa.net>
7417
7418         * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
7419
7420 2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>
7421
7422         * combine.c (try_combine): Update reg_nonzero_bits of
7423         newi2pat before newpat.
7424
7425 Mon Apr 24 10:19:48 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7426
7427         * loop.c (strength_reduce): Simplify test to INSN_P.
7428         (record_giv): Attempt to simplify the add value, use CONSTANT_P
7429         expressions instead of CONST_INT.
7430         (express_from_1): Likewise.
7431
7432 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
7433
7434         * regs.h (reg_n_max): Don't declare.
7435         * flow.c (reg_n_max): Don't define.
7436         * regclass.c (renumber): Don't initialize to zero.
7437         (regno_allocated): Likewise.
7438         (reg_n_max): Define.
7439         (allocate_reg_info): Don't initialize unnecessarily.
7440
7441 Mon Apr 24 00:21:36 2000  Jeffrey A Law  (law@cygnus.com)
7442
7443         * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
7444         and blockage_p in the newly allocated attribute.
7445
7446 Sun Apr 23 20:16:49 2000  Alexandre Oliva  <aoliva@cygnus.com>
7447
7448         * config/mn10300/mn10300.md (addsi): `inc4' on address
7449         registers does not modify cc, but `inc' on an extended
7450         register does.
7451
7452 Sun Apr 23 16:24:35 2000  Denis Chertykov  <denisc@overta.ru>
7453
7454         * reload.c (find_equiv_reg): Checks all valueno regs
7455         as a reload_reg_p regs.
7456
7457 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
7458
7459         * cpphash.c (collect_objlike_expansion): Add sanity check.
7460         (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST.  If
7461         the buffer is the empty string, return.  Mark __DATE__ and
7462         __TIME__ as XCONST nodes, not MCONST.
7463         (_cpp_macroexpand): Avoid pushing an empty buffer.
7464         (funlike_macroexpand): Don't pop token_buffer here.
7465
7466 Sun Apr 23 18:37:53 2000  Alexandre Oliva  <aoliva@cygnus.com>
7467
7468         * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
7469         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
7470         (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
7471         (REGNO_OK_FOR_BASE_P): Define in terms of them.
7472         (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
7473         (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
7474         (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
7475
7476 Sun Apr 23 22:23:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7477
7478         * loop.c (simplify_giv_expr):  Be more agressive on simplifying
7479         constant MULT givs.
7480
7481 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
7482
7483         * cpphash.h (struct definition): Move file, line, col members...
7484         (struct hashnode): ... here.  Also add 'disabled' flag.
7485         (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
7486         T_IDENTITY.  Remove T_DISABLED.
7487         Update prototypes.
7488
7489         * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
7490         (collect_expansion): Split into collect_objlike_expansion and
7491         collect_funlike_expansion.
7492         (_cpp_macroexpand): Split out scan_arguments, stringify, and
7493         funlike_macroexpand.
7494         (_cpp_compare_defs): Rename compare_defs, make static.
7495         (_cpp_make_hashnode): Initialize hp->disabled.
7496         (macro_cleanup): Adjust for new token types.  Clear
7497         m->disabled.
7498         (_cpp_create_definition): Move code here to determine what
7499         sort of macro it is, and code to check for redefinitions, from
7500         do_define.  Implement a few simple cases without creating a
7501         full DEFINITION.
7502         (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
7503         Handle the simple cases.
7504         (push_macro_expansion): Set buf->has_escapes and hp->disabled
7505         here.
7506
7507         * cppinit.c (builtin_array): Change MCONST to XCONST
7508         everywhere.
7509         * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
7510         fix check for disabled and function-like macros.
7511         * cpplib.c (do_define): Move most logic to
7512         _cpp_create_definition.
7513         (do_undef): Handle new special token types.
7514
7515 Sun Apr 23 14:27:44 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7516
7517         * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
7518         of CONSTANT_P for mult_val; always use validate_change to update insn.
7519
7520 2000-04-22  Zack Weinberg  <zack@wolery.cumb.org>
7521
7522         * cpphash.c (trad_stringify, add_pat): New functions.
7523         (collect_expansion): Restore support for -traditional syntax.
7524         Use trad_stringify and add_pat.
7525         (_cpp_macroexpand): Restore support for -traditional semantics.
7526         * cpplex.c (_cpp_scan_line): Don't change space_before if we
7527         get a COMMENT token.
7528         (_cpp_lex_token): Provide COMMENT tokens to caller if
7529         traditional and parsing_define_directive.
7530         (skip_comment): Warn about // comments if -Wtraditional.
7531         * cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
7532         proper node type.
7533         (do_undef): Don't warn about undefining EMPTY nodes.
7534
7535 Sat Apr 22 22:35:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7536
7537         * loop.c (strength_reduce): Fix biv removal code.
7538
7539 2000-04-22  Richard Henderson  <rth@cygnus.com>
7540
7541         * predict.c (estimate_probability): Examine both sides of
7542         a branch for no exits.  Use 90% not 50% for predict taken.
7543         Reorg for one copy of note generation code.
7544
7545 2000-04-22  Richard Henderson  <rth@cygnus.com>
7546
7547         * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
7548
7549 2000-04-22  Richard Henderson  <rth@cygnus.com>
7550
7551         * diagnostic.c (init_output_buffer): Don't initialize format_args.
7552         (output_clear): Likewise.
7553         (output_printf): Use va_copy.
7554         (vline_wrapper_message_with_location): Likewise.
7555         (v_message_with_decl): Likewise.
7556         (line_wrapper_printf): VA_START infor buffer.format_args directly.
7557         * system.h (va_copy): Provide default implementation.
7558
7559 2000-04-22  Richard Henderson  <rth@cygnus.com>
7560
7561         * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
7562         the collected condition is not a constant.
7563
7564 2000-04-22  Gabriel Dos Reis  <gdr@codesourcery.com>
7565
7566         * diagnostic.h: New file.
7567
7568         * Makefile.in (diagnostic.o): Depends on diagnostic.h
7569
7570         * diagnostic.c: Tweak.  Rationalize the output logic.  Adjust
7571         various function prototypes.
7572         (diagnostic.h): #include.
7573         (struct output_buffer): Move into diagnostic.h.
7574         (get_output_prefix): Rename to output_get_prefix.  Export.
7575         (init_output_buffer): Export. Break out.  Ajust intialization.
7576         (output_space_left, output_append): Export.
7577         (output_newline): Rename to output_add_newline.  Export.
7578         (output_clear): Nullify additional output_buffer fields.
7579         (output_puts): Rename to output_add_string.  Export.
7580         (dump_output): Rename to output_flush_on.  Export.
7581         (build_location_prefix): Constify return-type.
7582         (emit_output_prefix): Rename to output_emit_prefix. Export.
7583         (set_real_maximum_length): New function.
7584         (output_set_maximum_length): Ditto
7585         (output_clear): Ditto.
7586         (output_add_character): Ditto.
7587         (output_add_integer): Ditto.
7588         (output_add_space): Ditto.
7589         (output_format): Ditto.
7590         (output_printf): Adjust buffer initialization.
7591         (vline_wrapper_message_with_location): Ditto.
7592         (v_message_with_decl): Ditto.  Adjust call to output_puts
7593         and get_output_prefix.
7594         (default_print_error_function): Adjust buffer intialization.
7595
7596 Sat Apr 22 06:45:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7597
7598         * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
7599         of VOID_TYPE.
7600
7601 Fri Apr 21 18:33:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
7602
7603         * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
7604         of explicit 0.
7605
7606 Fri Apr 21 18:30:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
7607
7608         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
7609         accurate data about SP moves.
7610
7611 Fri Apr 21 18:28:28 2000  Alexandre Oliva  <aoliva@cygnus.com>
7612
7613         * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
7614         aliases to AM33 registers.
7615
7616 Fri Apr 21 18:26:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
7617
7618         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
7619         to all EXTENDED bitmaps.
7620
7621 Fri Apr 21 18:17:12 2000  Alexandre Oliva  <aoliva@cygnus.com>
7622
7623         * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
7624         * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
7625         * config/mn10300/mn10300.c (mn10300_address_cost): New function.
7626
7627 Fri Apr 21 18:11:56 2000  Alexandre Oliva  <aoliva@cygnus.com>
7628
7629         * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
7630         the operand is not constant.
7631
7632 Fri Apr 21 14:58:29 2000  Denis Chertykov  <denisc@overta.ru>
7633
7634         * reload.c (find_equiv_reg): Checks all valueno and regno regs
7635         as a call-clobbered regs.
7636
7637 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7638
7639         * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
7640         * rtl.h: Likewise.
7641         * rtl.def: Update comment.
7642         * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
7643         * integrate.c (expand_inline_function): Likewise.
7644         * profile.c (branch_prob): Likewise.
7645         * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
7646         * print-rtl.c (print_rtx): Likewise.
7647         * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
7648         (reemit_notes): Likewise; also use enum insn_note.
7649
7650         * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
7651         (place_field): Properly compute know and actual alignment.
7652
7653         * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
7654         in proper format.
7655
7656         * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
7657         note for REG1.
7658
7659 2000-04-21  Zack Weinberg  <zack@wolery.cumb.org>
7660
7661         * cpphash.c (struct arg, struct arglist): Const-ify strings.
7662         (warn_trad_stringify, duplicate_arg_p): New helper functions.
7663         (collect_expansion): Rewrite to scan over a token list.
7664         Remove -traditional support.
7665         (collect_formal_parameters): Rename to collect_params; rewrite
7666         to scan over a token list.
7667         (_cpp_create_definition): Adjust to scan a token list.
7668         (_cpp_macroexpand): Remove -traditional support.
7669         (_cpp_compare_defs): Whitespace is now canonicalized.
7670         (comp_def_part): Delete function.
7671
7672         * cpphash.h: Update prototypes.
7673         * cpplex.c (init_token_list): Don't set lineno if there is no
7674         buffer.
7675         (pedantic_whitespace): New function.
7676         (_cpp_scan_line): Mark tokens that had hspace before.  Don't
7677         consume a newline.  Use pedantic_whitespace.
7678         (_cpp_lex_token): Remove support for -traditional macros.
7679         (_cpp_get_define_token): Delete.
7680         (_cpp_get_directive_token): Do the real work here.  Use
7681         pedantic_whitespace.
7682         (_cpp_init_input_buffer): Initialize pfile->directbuf.
7683
7684         * cpplib.c (get_macro_name): Delete.
7685         (do_define): Read the entire line into pfile->directbuf, then
7686         feed the token list to _cpp_create_definition.
7687         * cpplib.h (HSPACE_BEFORE): new define.
7688         (struct cpp_reader): Add a toklist member, "directbuf".
7689
7690         * predict.c (estimate_probability): New heuristic: if a jump
7691         branches around a block with no successors, predict it taken.
7692         Disentangle control flow.
7693
7694 2000-04-20  Richard Henderson  <rth@cygnus.com>
7695
7696         * loop.c (emit_iv_add_mult): Revert last change.
7697
7698 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
7699
7700         * cpplib.h (enum cpp_ttype): Add token types for all
7701         punctuators.  Distinguish pp-numbers from valid C numbers.
7702         Give some tokens better names.  Initialize from macro.
7703         (struct cpp_name, cpp_token, cpp_toklist): New data
7704         structures.
7705         Update prototypes.
7706         * cpplex.c (bump_column, expand_name_space,
7707         expand_token_space, init_token_list, cpp_output_list,
7708         _cpp_scan_line):  New functions.
7709         (output_line_command): Add third argument, new line number.
7710         * cpphash.h: Update prototypes.
7711         * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
7712         token names.
7713
7714 2000-04-20  Richard Henderson  <rth@cygnus.com>
7715
7716         * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
7717
7718 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
7719
7720         * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
7721         object pointed to.
7722
7723 Thu Apr 20 14:19:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7724
7725         * loop.c (emit_iv_add_mult):  Simplify it's input and emit
7726         REG_EQUAL note explaining the calculated value.
7727
7728         * calls.c (expand_call): Avoid unnecesary precalculation
7729         and outgoing parameters space guarding for sibling calls.
7730         (store_one_arg): Likewise.
7731
7732 Thu Apr 20 08:01:07 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7733
7734         * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
7735         (rest_of_compilation): Write sibling dump file and account
7736         for time as jump time.
7737         * invoke.texi: Update documentation on dump flags.
7738
7739 2000-04-19  Marek Michalkiewicz  <marekm@linux.org.pl>
7740
7741         * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
7742
7743 2000-04-19  Zack Weinberg  <zack@wolery.cumb.org>
7744
7745         * cpphash.c (special_symbol): Represent an empty macro with
7746         "\r \r " not just "\r ".
7747         (_cpp_macroexpand): Correct condition for the foo ( ) special
7748         case.
7749         (unsafe_chars): Handle EOF as second argument.
7750         (push_macro_expansion): Simplify test for removing escape at
7751         end.  Do not trim both escapes if there is no text in between.
7752
7753 2000-04-19  Jim Blandy  <jimb@redhat.com>
7754
7755         * dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
7756         of PTR_SIZE, when appropriate.
7757
7758 2000-04-19  Mark Mitchell  <mark@codesourcery.com>
7759
7760         * system.h (ONLY_INT_FIELDS): Make sure it is defined.
7761         (USE_ENUM_BITFIELDS): Fix typo.
7762
7763 Wed Apr 19 12:14:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7764
7765         * stor-layout.c (place_field): Set rli->offset_align properly.
7766
7767 2000-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7768
7769         * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
7770         INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
7771         PARM_BOUNDARY): Remove unnecessary casts.
7772
7773 Wed Apr 19 12:02:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7774
7775         * calls.c (precompute_arguments): Remove must_preallocate and
7776         args_size calls.
7777         (expand_call): Update call of precompute_arguments.
7778
7779         * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
7780         check_insn_for_givs): Break out from ...
7781         (strength_reduce) ... here; use for_every_insn_in_loop to call
7782         check_insn_for_givs.
7783         * loop.h (for_every_insn_in_loop): Declare.
7784         (loop_insn_callback): New type.
7785
7786 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
7787
7788         * cpplib.c (do_pragma_poison):  Strings in the token buffer are
7789         not nul-terminated.
7790
7791 Tue Apr 18 16:04:12 2000  Jim Wilson  <wilson@cygnus.com>
7792
7793         * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
7794         flag_pic and RELOC.
7795
7796 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
7797
7798         * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
7799
7800         * configure.in: Delete --disable-cpplib option and all
7801         references to cpp_main.
7802         * configure: Regenerate.
7803         * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
7804         @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
7805         cccp.o, cccp, or cppmain.  Link cppmain.o straight to
7806         cpp$(exeext).  Add --no-headers to makeinfo command line when
7807         generating INSTALL.  Install and uninstall cpp.1 manpage, not
7808         cccp.1.
7809         * install.texi: Delete all references to cexp.y/cexp.c.
7810         Delete ancient instructions for compiling GCC on 3b1.
7811         * INSTALL: Regenerate.
7812
7813         * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
7814         mips/t-elf, mips/t-r3900: Remove references to cccp.c.
7815         * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
7816         cexp.c/cexp.y.
7817         * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
7818         which is no longer tested anywhere.
7819
7820         * cppinit.c (handle_option): Don't run error message through
7821         gettext twice.
7822
7823 Tue Apr 18 14:16:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7824
7825         * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
7826         * cpperror.c (hashtab.h): Now include.
7827         * cppexp.c (hashtab.h): Likewise.
7828         * cpplex.c (hashtab.h): Likewise.
7829         * cppfiles.c (hashtab.h): Likewise.
7830         (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
7831         to htab_find_slot_with_hash.
7832         * cpphash.c (hashtab.h): Now include.
7833         (_cpp_lookup_slot): INSERT is now enum insert_option.
7834         * cpphash.h (_cpp_lookup_slot): Likewise.
7835         * cppinit.c (hashtab.h): Include earlier.
7836         (initialize_builtins): Pass enum to htab_find_slot.
7837         * cpplib.c (hashtab.h): Now include.
7838         (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
7839         (do_pragma_poison, do_assert): Likewise.
7840         * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
7841         htab_find_slot_with_hash.
7842         * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
7843         * tree.c (type_hash_add): Likewise.
7844         (build1): Minor cleanup.
7845
7846         * ggc-common.c: Add missing blanks.
7847         * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
7848         * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
7849
7850         * stmt.c (mark_case_node): New function.
7851         (mark_case_nesting): Call it.
7852
7853         * expmed.c (emit_store_flag): If comparing two-word integer
7854         with zero, can optimize NE, EQ, GE, and LT.
7855
7856         * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
7857         * conflict.c: Minor cleanups.
7858         * optabs.c: Add blank line
7859         * simplify-rtx.c: Minor cleanups.
7860
7861 2000-04-18  Stan Cox  <scox@cygnus.com>
7862
7863         * gengenrtl.c (genlegend): Fix misspelling.
7864
7865 2000-04-18  Robert Lipe  <robertlipe@usa.net>
7866
7867         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
7868         bitfields of the host compiler are not signed quantities.
7869         * config.in: Regenerate.
7870         * configure: Regenerate.
7871         * system.h (USE_ENUM_BITFIELDS): Added.
7872         (ENUM_BITFIELDS): Added.
7873         * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
7874         (SHORT_ENUM_BUG): Deleted.
7875         * tree.h (tree_common): Members `code', `mode', `built_in_class',
7876         now ENUM_BITFIELD.
7877         * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
7878         (CODE_FIELD_BUG): Likewise.
7879         * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
7880         (OLD_CC): Likewise.
7881         * config/m68k/x-ccur (X_CFLAGS): Likewise.
7882
7883 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
7884
7885         * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
7886         mark is active.
7887
7888 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
7889
7890         * cppexp.c (lex): Don't assume tokens are NUL terminated.
7891         * cpplib.c (do_include, do_import, do_include_next,
7892         read_line_number, detect_if_not_defined): Likewise.
7893         * cpphash.c (collect_expansion): Likewise.
7894         (special_symbol, _cpp_macroexpand): Check return from
7895         cpp_file_buffer.
7896         * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
7897         macros.  Delete all uses.
7898
7899         * gcc.dg/cpp-mi.c: Add two more test cases.
7900         * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
7901
7902 2000-04-17  Richard Henderson  <rth@cygnus.com>
7903
7904         * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
7905         (reorder_basic_blocks): If no epilogue in rtl, force last block last.
7906
7907 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
7908
7909         * function.c (expand_function_start): Use hard_function_value to
7910         compute the RTL to use for DECL_RESULT.
7911
7912 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7913
7914         * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
7915         (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7916          x86_memory_mismatch_stall): New global variables.
7917         (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
7918         alloved; fix load penalties for Athlon.
7919         * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7920         x86_memory_mismatch_stall): Declare.
7921         (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
7922          TARGET_MEMORY_MISMATCH_STALL): New.
7923         * i386.md (athlon scheduling parameters): Fix latencies according to
7924         Athlon Optimization Manual.
7925         (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
7926         vector.
7927         (fsqrt instruction patterns): Set athlon_decode to direct.
7928         (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
7929         PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
7930         (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
7931         and TARGET_PARTIAL_REGISTER_STALL machines.
7932         (pushdf_nointeger): New pattern.
7933         (pushdf_integer): Rename from pushdf.
7934         (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
7935         (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
7936
7937 2000-04-17  Richard Henderson  <rth@cygnus.com>
7938
7939         * loop.c (canonicalize_condition): Add WANT_REG argument.
7940         Stop the search if we match it.
7941         * expr.h (canonicalize_condition): Update decl.
7942         * predict.c (expected_value_to_br_prob): Use it.  Track last
7943         expected value note.
7944         (find_expected_value): Remove.
7945
7946         * reorg.c (mostly_true_jump): Always use BR_PROB if present.
7947
7948 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
7949
7950         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
7951         (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
7952         a plain file.
7953         * configure.in: Call AC_FUNC_MMAP_FILE.
7954         * configure: Regenerate.
7955         * config.in: Regenerate.
7956
7957         * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
7958         * fixinc/fixincl.c: Likewise.
7959
7960 2000-04-17  Richard Henderson  <rth@cygnus.com>
7961
7962         * builtins.c (expand_builtin_expect): New.
7963         (expand_builtin): Call it.
7964         * builtins.def (BUILT_IN_EXPECT): New.
7965         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
7966         * extend.texi: Document it.
7967
7968         * predict.c (expected_value_to_br_prob): New.
7969         (find_expected_value): New.
7970         * basic-block.h (expected_value_to_br_prob): Declare.
7971         * toplev.c (rest_of_compilation): Invoke it.
7972
7973         * rtl.h (NOTE_EXPECTED_VALUE): New.
7974         (NOTE_INSN_EXPECTED_VALUE): New.
7975         * rtl.c (note_insn_name): Update.
7976         * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
7977         cases; handle NOTE_INSN_EXPECTED_VALUE.
7978
7979 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
7980
7981         * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
7982         leaf sibcall delay slot if flag_pic.
7983         (output_sibcall): Always emit call for leaf sibcall if flag_pic.
7984
7985 2000-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7986
7987         * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
7988
7989         * fixproto: If fix-header fails, exit with an error.
7990
7991 Mon Apr 17 14:59:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7992
7993         * cse.c (struct check_depdendence_data): New.
7994         (check_dependence): New function.
7995         (invalidate): Use check_depdenence.
7996
7997 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
7998
7999         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
8000         UNITS_PER_WORD is unsigned.
8001
8002         * tree.h (struct tree_common): Remove misleading comment.
8003
8004 2000-04-16  Dave Pitts  <dpitts@cozx.com>
8005
8006         * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
8007         message in quotes. Otherwise, IBM's make program treats the '#' as the
8008         start of a comment and ignores the remainder of the line.
8009
8010         * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
8011         upper case.
8012         * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
8013         * cexp.y (initialize_random_junk): Likewise.
8014         * cppfiles.c (find_include_file): Cast alloca return value.
8015         * cppinit.c (initialize_standard_includes): Likewise.
8016         * cpplib.c (cpp_define, cpp_undef): Likewise.
8017         * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
8018         * final.c (output_asm_insn): Allow for holes in EBCDIC.
8019         * fold-const.c (CHARMASK): New.
8020         (real_hex_to_f): Use it.
8021         * real.c (CHARMASK): New.
8022         (etoasc, asctoeg): Use it.
8023         (asctoeg): EBCDIC lower case characters preceed upper case.
8024
8025         * i370.c (mvs_add_label): Change spacing for coding conventions.
8026         * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
8027         outputing case vectors.
8028         (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
8029         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
8030         since vector in in the data CSECT.
8031         (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
8032         * i370.md (Many patterns): Put the length in the XL directives.
8033         (movdi): Put back STM and MVC in definition.
8034         (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
8035         pattern using the TCA.
8036         * oe.h (CPP_SPEC): Added to allow trigraphs.
8037         * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
8038         not support the "long long" type.
8039
8040 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
8041
8042         * config/mips/mips-protos.h (mips_legitimate_address_p): New
8043         function.
8044         (mips_reg_mode_ok_for_base_p): Likewise.
8045         * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
8046         (REG_OK_FOR_INDEX_P): Define unconditionally.
8047         (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
8048         (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
8049         * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
8050         that GET_MODE_SIZE is unsigned.
8051         (mips_reg_mode_ok_for_base_p): Define.
8052         (mips_legitimate_address_p): Likewise.  Adjust now
8053         that GET_MODE_SIZE is unsigned.
8054         (block_move_loop): Make the number of bytes unsigned.
8055         (expand_block_move): Likewise.
8056         (function_arg): Make the loop counter unsigned to match the
8057         boundary condition.
8058
8059 2000-04-16  Richard Henderson  <rth@cygnus.com>
8060
8061         * rtl.h (enum insn_note): New enumeration.  Subsume
8062         NOTE_INSN_DELETED and friends.
8063         (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
8064         * rtl.c (note_insn_name): Tweak string order.
8065
8066 2000-04-15  Zack Weinberg  <zack@wolery.cumb.org>
8067
8068         * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
8069         to offset * 2.
8070
8071         * cpplex.c (output_line_command): Remove debugging prints.
8072         (cpp_output_tokens): Don't write out a zero-length buffer or
8073         try to see if it has a newline in it.
8074         (_cpp_expand_to_buffer): Copy the source buffer before pushing.
8075         (_cpp_read_and_prescan): Move shift-down of pushback bytes to
8076         the end of the loop.  Use memmove.  Don't read past the end of
8077         the buffer.  Remove trailing newlines from error messages.
8078
8079 2004-04-16  Neil Booth  <NeilB@earthling.net>
8080
8081         * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
8082         * cpplib.c: Add new syntax flags to directive table, and
8083         supporting macros.
8084
8085 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8086
8087         * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
8088         using ret $N.
8089
8090 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
8091
8092         * toplev.c (display_help): Prefix "f" to "sched-verbose=".
8093         * haifa-sched.c: Update -fsched-verbose comments to use "=".
8094
8095 Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8096
8097         * Makefile.in (ggc-page.o): Now includes toplev.h.
8098         * ggc-page.c (toplev.h): Now included.
8099         (gc_time): Remove declaration.
8100         (ggc_collect): TIME now long.
8101         * toplev.c (parse_time, varasm_time, gc_time): Still global; all
8102         others static.
8103         * toplev.h (gc_time, parse_time, gc_time): New declarations.
8104
8105         * toplev.c: Make *_time variable long to reduce chance of overflow.
8106         (TIMEVAR): Likewise for `otime'.
8107         (print_time): Arg is now long; compute percentage in FP and round.
8108         * toplev.h (print_time): Arg is long.
8109
8110         * tree.c: Minor whitespace changes.
8111
8112         * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
8113         * configure: Rebuilt.
8114         * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
8115         (__fixunsxfDI): Renamed from __fixunsxfdi.
8116         (__fixunsdfDI): Renamed from __fixunsdfdi.
8117         (__fixunssfDI): Renamed from __fixunssfdi.
8118         (__floatdisf): Use proper type in REP_BIT macro.
8119         (__fixunsxfSI): Renamed from __fixunsxfsi.
8120         (__fixunsdfSI): Renamed from __fixunsdfsi.
8121         (__fixunssfSI): Renamed from __fixunssfsi.
8122         * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
8123         Change location of macros and upper-case some names as above.
8124         * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
8125         * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
8126
8127         * varasm.c (assemble_variable): Add cast to remove warning.
8128         (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
8129
8130         * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
8131         * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
8132         region number to -1.
8133
8134 2000-04-15  Richard Earnshaw (rearnsah@arm.com)
8135
8136         * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
8137         call unshare_all_rtl.
8138
8139         * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
8140
8141 Fri Apr 14 16:58:45 2000  Jim Wilson  <wilson@cygnus.com>
8142
8143         * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
8144         Use .s1 not .s0 for all FP instructions.
8145
8146 2000-04-14  Zack Weinberg  <zack@wolery.cumb.org>
8147
8148         * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
8149         interfaces.
8150         (safe_fwrite, output_line_command): New static functions.
8151         (cpp_expand_to_buffer): Now private to cpplib.
8152         (cpp_scan_buffer): Take a printer.
8153
8154         * cpphash.h: Update prototypes.
8155         * cpplib.h: Update prototypes.
8156         (cpp_printer): New.
8157         (cpp_buffer): Remove last_nominal_fname.
8158         (cpp_reader): Remove lineno.
8159
8160         * cppmain.c: Use a cpp_printer.
8161         * fix-header.c: No need to inhibit line commands.  Call
8162         cpp_start_read with no printer.
8163
8164         * cpperror.c (cpp_notice_from_errno): Provide default name.
8165         * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
8166         (find_include_file, cpp_read_file): Use make_IHASH.
8167         (file_cleanup): Set control_macro and clear
8168         input_stack_listing_current here.
8169         (_cpp_execute_include): Don't output entering-file marker.
8170         * cpphash.c (special_symbol): Look for the line number in the
8171         buffer, not the reader.
8172         (_cpp_macroexpand): No need to disable line commands.
8173         (_cpp_dump_definition): No need to generate line commands.
8174         (dump_hash_helper): Remove excess newline from output.
8175         * cppinit.c (dump_special_to_buffer): No need to generate line
8176         commands.
8177         (cpp_printer_init): New.
8178         (cpp_start_read): Take a printer, and start it up if it's not
8179         NULL.  No need to generate line commands.
8180         (cpp_finish): Expect no buffers stacked at all.  Take a
8181         printer argument, and flush the output buffer if it's not
8182         NULL.
8183         * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
8184         Don't put two hashes at the beginning of an assertion.
8185         (cpp_get_token): Don't increment pfile->lineno or emit line
8186         commands here.  Return EOF if there's no buffer when we get
8187         EOF.
8188         * cpplib.c (do_define, skip_if_group):
8189         No need to disable line commands.
8190         (_cpp_output_line_command): Delete function.
8191         (do_line): Don't emit line commands here, but set things up so
8192         they will be emitted if necessary.  Use _cpp_fake_ihash to
8193         make unique nominal_fnames if necessary.
8194         (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
8195         with 0 for column, not -1.
8196         (_cpp_handle_eof): Don't set the control macro here.  Don't
8197         clear input_stack_listing_current here.  Don't emit line
8198         commands.
8199
8200 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
8201
8202         * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
8203         always, use the default SVR4 start address.
8204
8205         * config/rs6000/linux.h (LINK_SPEC): Don't define.
8206         (LINK_SHLIB_SPEC): Define.
8207         (LINK_START_DEFAULT_SPEC): Define.
8208         (LINK_OS_DEFAULT_SPEC): Define.
8209
8210         * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
8211
8212         * config/rs6000/eabi.asm (__eabi): Call __init rather than
8213         __do_global_ctors to handle constructors.
8214         * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
8215         (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
8216         (STARTFILE_MVME_SPEC): Likewise.
8217         (STARTFILE_SIM_SPEC): Likewise.
8218         (ENDFILE_ADS_SPEC): Use crtend.
8219         (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
8220         (ENDFILE_MVME_SPEC): Likewise.
8221         (ENDFILE_SIM_SPEC): Likewise.
8222         (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
8223         (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
8224         (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
8225         (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
8226         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
8227         (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
8228         (CRTSTUFF_T_CFLAGS_S): Define.
8229         * config/rs6000/eabi-ctors.c: Delete.
8230
8231         * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
8232         boundary.
8233         (__fini): Likewise.
8234         * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
8235         boundary.
8236         (__fini): Likewise.
8237
8238 Fri Apr 14 16:09:02 2000  Jim Wilson  <wilson@cygnus.com>
8239
8240         * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
8241         plus mask size is smaller or equal to the mode size.
8242
8243 Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8244
8245         * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
8246         not yet set.
8247
8248         * expr.c (reload.h): Now included.
8249         (emit_block_move): Set volatile_ok when checking for movstr.
8250         (emit_move_1): Check for replacements in addresses in multi-word case.
8251         * Makefile.in (expr.o): Now includes reload.h.
8252
8253         * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
8254         Never have a LIBCALL end a basic block.
8255         (find_basic_blocks_1): Likewise.
8256         Reorganize CALL_INSN cases.
8257
8258         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
8259
8260 Fri Apr 14 10:54:22 2000  Jim Wilson  <wilson@cygnus.com>
8261
8262         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
8263         completers from mov.ret instruction.
8264
8265 2000-04-14  Richard Henderson  <rth@cygnus.com>
8266
8267         * fold-const.c (extract_muldiv): Don't distribute and widen
8268         multiply across plus for non-sizetype unsigned types.
8269
8270 2000-04-14  Richard Henderson  <rth@cygnus.com>
8271
8272         * flow.c (find_auto_inc): Don't autoinc eliminable registers.
8273         If the original source is dead in the incr insn, it's dead now.
8274
8275 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8276
8277         * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
8278         see if DECL_BIT_FIELD needs to still be set.
8279
8280         * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
8281
8282         * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
8283         print_int_cst_octal with something that's not an INTEGER_CST.
8284
8285         * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
8286         and not a SUBREG to a FLOAT rtl.
8287
8288 Thu Apr 13 19:39:56 2000  Clinton Popetz  <cpopetz@cygnus.com>
8289
8290         * emit-rtl.c (try_split): Avoid infinite loop if the split
8291         results in a sequence that contains the original insn.
8292
8293 2000-04-13  Andreas Jaeger  <aj@suse.de>
8294
8295         * config/mips/mips.c (expand_block_move): Pass alignment
8296         argument to move_by_pieces in bits, not bytes.
8297
8298         * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
8299         __pic__ for little endian.
8300
8301 2000-04-13  Andreas Jaeger  <aj@suse.de>
8302
8303         * config/i386/i386-protos.h: Add prototype for
8304         uno_comparison_operator.
8305
8306 Thu Apr 13 15:55:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8307
8308         * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
8309         * calls.c (ECF_PURE): New flag.
8310         (emit_call_1): Handle ECF_PURE calls.
8311         (initialize_argument_information): Unset ECF_PURE flag too.
8312         (precompute_arguments): Precompute for ECF_PURE too.
8313         (expand_call): Handle ECF_PURE calls too.
8314         (emit_library_call_value_1): Rename no_queue argument to fn_type,
8315         accept value of 2 as pure function.
8316         (emit_library_call_value, emit_library_call): Rename no_queue argument
8317         to fn_type.
8318         * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
8319
8320         * tree.h (DECL_IS_PURE): New macro.
8321         (struct tree_decl): Add pure_flag.
8322         * c-common.c (enum attrs): Add attribute "pure".
8323         (init_attributes): Initialize attribute "pure"
8324         (decl_attributes): Handle attribute "pure".
8325         * extend.texi (Attribute "pure"): Document.
8326         * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
8327         in pure function.
8328         (flags_from_decl_or_type): Support attribute "pure".
8329
8330 2000-04-13  Jason Merrill  <jason@casey.cygnus.com>
8331
8332         * cpplex.c (_cpp_lex_token): Handle digraphs.  Don't null-terminate
8333         the token except for numbers and identifiers.
8334
8335 Thu Apr 13 00:09:16 EDT 2000  John Wehle  (john@feith.com)
8336
8337         * i386.c (ix86_expand_binary_operator,
8338         ix86_expand_unary_operator): Check no_new_pseudos
8339         instead of reload_in_progress and reload_completed.
8340         (ix86_split_ashldi, ix86_split_ashrdi,
8341         ix86_split_lshrdi): Check no_new_pseudos instead
8342         of reload_completed.
8343
8344 2000-04-12  Jeffrey A Law  (law@cygnus.com)
8345
8346         * function.c (purge_addressof): Unshare any shared rtl created by
8347         purge_addressof and its children.
8348
8349 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
8350
8351         * function.c (aggregate_value_p): VOID_TYPE nodes are never
8352         aggregates.
8353
8354 2000-04-05  Andreas Jaeger  <aj@suse.de>
8355
8356         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
8357         not compiling PIC code, add flags for mabi=64.
8358         (SUBTARGET_CPP_SIZE_SPEC): New.
8359         (SUBTARGET_CPP_SPEC): New.
8360         (CPP_PREDEFINES): Define __PIC__ and __pic__.  PIC code is default
8361         for MIPS/Linux and lots of code needs these defines.
8362
8363 Wed Apr 12 22:44:11 2000  Hans-Peter Nilsson  <hp@axis.com>
8364
8365         * reorg.c (fill_slots_from_thread): Check side_effects_p when
8366         trying the "opposite arithmetic" approach.
8367
8368 Wed Apr 12 20:51:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
8369
8370         * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
8371         (struct sh_args): Add new field force_mem.
8372         (INIT_CUMULATIVE_ARGS): Initialize it.
8373         (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
8374
8375 Wed Apr 12 17:20:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8376
8377         * calls.c (expand_call): Do not reverse args in "equal from" field.
8378         (emit_library_call_value_1): Emit_libcall_block for const and pure
8379         function.
8380
8381 Wed Apr 12 16:00:25 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
8382
8383         * reload1.c (reload_combine): Don't enable optimization for fixed
8384         registers when encountering a BARRIER.
8385
8386 Wed Apr 12 15:54:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8387
8388         * builtins.c (expand_builtin_memcmp): Do expansion even with
8389         !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
8390
8391         * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
8392         stack is propertly aligned; add sanity checking for aligned
8393         stack pointer.
8394         (expand_library_call_value_1): Add sanity checking for aligned
8395         stack pointer.
8396
8397 Wed Apr 12 07:51:54 2000  Catherine Moore  <clm@cygnus.com>
8398
8399         * calls.c (emit_library_call_value_1): Change 3rd arg to
8400         locate_and_pad_parm to disregard the setting of partial.
8401
8402 Wed Apr 12 08:47:38 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8403
8404         * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
8405
8406         * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
8407         CALL_INSN from the normal case.
8408
8409 Fri Apr  7 12:23:04 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8410
8411         * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
8412         New global variables.
8413         (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
8414         adjustment.
8415         * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
8416         Declare,
8417         (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
8418          TARGET_ADD_ESP_8): New macros.
8419         * i386.md: Add peep2s to convert esp adjustments to push and pop
8420         instructions.
8421         (pushsi_prologue, popsi_epilogue): New patterns.
8422
8423 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
8424
8425         * real.c (toe64): Remove stale #endif from the last change.
8426
8427 2000-04-12  Stephen L Moshier  <moshier@mediaone.net>
8428
8429         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
8430         * real.c (toe64): Revert previous change.
8431
8432 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
8433
8434         * objc/objc-act.c: Include ggc.h.
8435         (objc_tree_index, objc_global_trees): Convert most of the
8436         static tree variables into a static array with previous names
8437         as defines.
8438         (objc_ellipsis_node): New variable.
8439         (lang_init): Call objc_act_parse_init and c_parse_init.
8440         Create objc_ellipsis_node.
8441         (build_selector_translation_table): Use objc_ellipsis_node instead
8442         of (tree)1.
8443         (hack_method_prototype): Likewise.
8444         (get_arg_type_list): Likewise.
8445         (start_method_def): Likewise.
8446         (continue_method_def): Likewise.
8447         (gen_method_decl): Likewise.
8448         (ggc_mark_imp_list): New function.
8449         (ggc_mark_hash_table): New function.
8450         (objc_act_parse_init): New function.
8451         * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
8452         * c-parse.in (c_parse_init): For objc add roots of objc specific
8453         local tree variables.
8454         * objc/objc-parse.y: Rebuilt.
8455         * objc/objc-parse.c: Rebuilt.
8456         (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
8457
8458 Wed Apr 12 01:00:44 EDT 2000  John Wehle  (john@feith.com)
8459
8460         * cse.c (delete_trivially_dead_insns): Also delete insns
8461         that copy a register to itself where the destination is
8462         a strict_low_part.
8463
8464 2000-04-11  Richard Henderson  <rth@cygnus.com>
8465
8466         * flow.c (struct propagate_block_info): Add new_dead, new_live.
8467         (propagate_block): Initialize them.  Use them in parallel instead
8468         of one tmp variable, ie revert much of the 0408 and 0407 functional
8469         changes, but keep the structural changes.
8470         (mark_set_regs): Take new_dead from propagate_block_info instead.
8471         (mark_set_1, mark_set_reg): Likewise.
8472         (mark_used_regs): Likewise with new_live.
8473         (mark_used_reg): Likewise.  Revert 0408 change.
8474
8475 2000-04-11  Nick Clifton  <nickc@cygnus.com>
8476
8477         * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
8478         restriction.
8479         (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
8480
8481 2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8482
8483         * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
8484         const section to output a CONSTRUCTOR based on the same conditions
8485         used for VAR_DECLs.
8486
8487 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
8488
8489         * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
8490         * pa/pa-protos.h (output_call): Add additional argument indicating
8491         if the call is a sibling/tail call.
8492         (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
8493         (compute_64bit_ior, cmpib_comparison_operator): Likewise.
8494         (function_arg, function_arg_partial_nregs): Likewise
8495         * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
8496         (emit_move_sequence): Zero extend certain constants as needed
8497         for TARGET_64BIT.
8498         (compute_zdepdi_operands, output_64bit_and): New functions.
8499         (output_64bit_ior, function_arg): Likewise.
8500         (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
8501         (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
8502         (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
8503         (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
8504         (output_bvb): Likewise.
8505         (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
8506         (output_call): New argument 'sibcall'.  Generate sibcall sequences
8507         as needed.
8508         (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT.  For
8509         (ouput_arg_descriptor): Do not emit argument descriptors for
8510         TARGET_64BIT.
8511         * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
8512         defined.
8513         (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
8514         (FUNCTION_OK_FOR_SIBALL): Define.
8515         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
8516         (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
8517         (CPP_SPEC): Use new spec infrastructure.
8518         (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
8519         (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
8520         (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
8521         (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
8522         (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
8523         (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
8524         (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
8525         (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
8526         (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
8527         (FUNCTION_ARG); Call out to C code.
8528         (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
8529         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
8530         (MIN_UNITS_PER_WORD): Likewise.
8531         * pa/pa.md (cmpdi): New expander.
8532         (scc patterns, movstrsi): Not available for TARGET_64BIT.
8533         (64bit conditional arithmetic): New patterns.
8534         (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
8535         (movsicc): Not available if modes on all the operands to not match.
8536         (movdicc): New expander and associated patterns.
8537         (64bit branches): New patterns.
8538         (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
8539         (pre_ldd, post_std): New patterns.
8540         (64bit addil, load low part): New patterns.
8541         (special movsf constant): Not available for TARGET_64BIT.
8542         (movsf, movdf expanders): Force constants into memory.
8543         (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
8544         (64bit movdf/movdi patterns): New patterns.
8545         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
8546         for TARGET_64BIT.
8547         (extendqidi2, extendhidi2, extendsidi2): Similarly.
8548         (adddi3 expander): Allow "arith_operand" for second input.
8549         (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
8550         (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
8551         (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
8552         (muldi3): New expander for TARGET_64BIT.
8553         (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
8554         for TARGET_64BIT.
8555         (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
8556         patterns for TARGET_64BIT.
8557         (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
8558         patterns for TARGET_64BIT.
8559         (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
8560         (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
8561         (sibcall_epilogue): New expander.
8562         (casesi): Tweak for TARGET_64BIT.
8563         (call expanders): Set & use the outgoing argument pointer.  Use the
8564         64bit call patterns as needed. Add additional arg to output_call.
8565         (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
8566         (sibcall, sibcall_internal_symref): New expanders.
8567         (sibcall_value, sibcall_value_internal_symref
8568         (interspace_jump): Turn into an expander + matching patterns.
8569         (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
8570         * pa/pa64-regs.h: Eliminate trigraph sequences.
8571         * pa/pa64-start.h (TARGET_PA_20): Fix typo.
8572
8573 2000-04-11  Zack Weinberg  <zack@wolery.cumb.org>
8574
8575         * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
8576         cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
8577         cpp_token with cpp_ttype everywhere.
8578         * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
8579         Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
8580         CPP_BUF_COL.  Line and column numbers are unsigned int, not
8581         long.
8582         * cpplex.c (cpp_buf_line_and_col): Delete.
8583         * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
8584         'long lineno' to 'unsigned int lineno'.
8585         (CPP_BUF_LINE, CPP_BUF_COL): New macros.
8586
8587 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8588
8589         * extend.texi: ISO C99 is not a draft anymore.
8590         * invoke.texi: ISO C++ is not a draft anymore.
8591         * cpp.texi: __cplusplus is required by the ISO standard.
8592
8593         * extend.texi (-fthis-is-variable): Undocument.
8594         * flags.h (warn_template_debugging): Remove declaration.
8595         * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
8596         -Wenum-clash, -Wtemplate-debugging): Undocument.
8597
8598 2000-04-10  Nick Clifton  <nickc@cygnus.com>
8599
8600         * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
8601         integer.
8602         (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
8603         integer.
8604         (ARM_SIGN_EXTEND): Use HOST_UINT.
8605         (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
8606         (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
8607         (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
8608         (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
8609
8610         * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
8611         (arm_gen_constant): Use HOST_UINT.
8612         (arm_canonicalize_constant): Use HOST_UINT.
8613         (arm_reload_in_hi): Use HOST_UINT.
8614         (arm_reload_out_hi): Use HOST_UINT.
8615         (output_multi_immediate): Use HOST_UINT.
8616         (int_log2): Use HOST_UINT.
8617         (arm_poke_function_name): Use HOST_UINT.
8618         (arm_output_epilogue): Use arm_volatile_func().
8619         (output_thumb_prologue): Use arm_strip_name_encoding().
8620
8621 Mon Apr 10 15:40:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8622
8623         * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
8624         of sequence point problems.
8625
8626 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
8627
8628         * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
8629         Recomment.
8630         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
8631
8632 Mon Apr 10 07:21:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8633
8634         * sbitmap.h: Whitespace changes and use upper-case macro args.
8635         (struct simple_bitmap_def): All sizes now unsigned.
8636         (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
8637         * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
8638         (sbitmap_vector_alloc): Parms and local vars now unsigned.
8639         (sbitmap_zero): Cast bzero arg to PTR.
8640         (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
8641         (sbitmap_union_of_diffs): Change loop index to unsigned and rework
8642         loop to make structure clearer.
8643         (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
8644         (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
8645         (sbitmap_a_and_b_or_c): Likewise.
8646         (sbitmap_intersection_of_succs): Minor cleanups.
8647         (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
8648         (sbitmap_union_of_preds): Likewise.
8649         (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
8650         (debug_sbitmap): New function.
8651
8652         * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
8653         * c-typeck.c (convert_for_assignment): Likewise.
8654
8655         * expmed.c (init_expmed): Don't free objects we make.
8656         * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
8657
8658         * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
8659         (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
8660
8661         * gcse.c (expr_hash_table_size): Now unsigned.
8662         (compute_ae_gen): Local variable `i' now unsigned.
8663         (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
8664         (compute_transout, hoist_code): Likewise.
8665         (compute_local_properties): Likewise, also hash_table_size.
8666         (alloc_expr_hash_table): N_INSNS now unsigned.
8667         (delete_null_pointer_checks): Mark arg F as unused.
8668
8669         * regrename.c: Minor cleanups, including chang some variables
8670         to unsigned int.
8671
8672 2000-04-10  Neil Booth  <NeilB@earthling.net>
8673
8674         * cpplex.c (skip_block_comment): Use pointer arithmetic rather
8675         than GETC ().
8676         * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
8677
8678 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8679
8680         * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
8681         __classof__, and __headof__ from the list of gnu keywords.
8682         (-ansi): Remove -foperator-names from list of implied options.
8683         Do not call it ANSI C++.
8684         (-foperator-names): Document as -fno-operator-names.
8685
8686 2000-04-09  Zack Weinberg  <zack@wolery.cumb.org>
8687
8688         * cpphash.c (timestamp): Delete.
8689         (del_HASHNODE): If type is T_MCONST, free value.cpval.
8690         (special_symbol): Remove unnecessary braces.  Remove
8691         T_VERSION.  Treat T_STDC like T_CONST unless
8692         STDC_0_IN_SYSTEM_HEADERS.  Render both __DATE__ and __TIME__
8693         when one is encountered, then convert them into T_MCONST
8694         nodes.
8695         * cppinit.c (builtin_array): version_string is T_MCONST.
8696         __STDC__ has a "1" in its cpval.  Don't have a terminator
8697         entry.  Clean up which entries are dumped.
8698         (initialize_builtins): Only __STDC__ gets the special
8699         -traditional treatment.  Count the length of builtin_array.
8700         Render version_string here.
8701         * cpphash.h: Remove T_VERSION.  Add T_MCONST.
8702         * cpplib.h (struct cpp_reader): Remove timebuf.
8703
8704 2000-04-09  Richard Henderson  <rth@cygnus.com>
8705
8706         * genrecog.c (pred): Update comparison_operator for the unordered
8707         operators.
8708
8709         * config/i386/i386.c (no_comparison_operator): Disallow unordered
8710         operators.
8711         (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
8712         (uno_comparison_operator): New.
8713         (put_condition_code): Handle UNORDERED/ORDERED.
8714         (unsigned_comparison): Likewise.
8715         (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
8716         (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
8717         (ix86_expand_fp_compare): Use them.  Take scratch as argument,
8718         update all callers.  Handle all 8 unordered operators.
8719         (ix86_expand_setcc): Lose the unordered argument, update all callers.
8720         (ix86_expand_branch): Likewise.  Don't fully expand fp branches.
8721         * config/i386/i386.h (PREDICATE_CODES): Update.
8722         * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
8723         (ix86_expand_branch, ix86_expand_setcc): Update.
8724         * config/i386/i386.md (sunordered, sordered): New.
8725         (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
8726         (bunordered, bordered): New.
8727         (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
8728         (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
8729         (*fp_jcc_5, *fp_jcc_6, and splitters): New.
8730
8731 2000-04-09  Philip Blundell  <philb@gnu.org>
8732
8733         * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
8734
8735 Sun Apr  9 15:16:14 EDT 2000  John Wehle  (john@feith.com)
8736
8737         * i386.md (fix_truncsfhi2, fix_truncdfhi2,
8738         fix_truncxfhi2): New patterns.
8739         * i386.c (output_fix_trunc): Handle converting to HImode.
8740
8741 2000-04-08  Alex Samuel  <samuel@codesourcery.com>
8742
8743         * ssa.c (convert_to_ssa): Eliminate dead code when calling
8744         life_analysis.
8745         (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
8746         (for_each_successor_phi): Change parameter to basic_block.
8747         (coalesce_regs_in_successor_phi_nodes): Likewise.
8748         (coalesce_regs_in_copies): Likewise.
8749         (compute_coalesced_reg_partition): Use basic_block instead of index.
8750         * rtl.h (convert_to_ssa): Delete.
8751         (convert_from_ssa): Likewise.
8752         (successor_phi_fn): Likewise.
8753         (for_each_successor_phi): Likewise.
8754         (in_ssa_form): Likewise.
8755         * basic-block.h (convert_to_ssa): Moved from rtl.h.
8756         (convert_from_ssa): Likewise.
8757         (successor_phi_fn): Likewise.
8758         (in_ssa_form): Likewise.
8759         (for_each_successor_phi): Likewise.  Change parameter to basic_block.
8760         * flow.c (calculate_global_regs_live): Pass a basic_block to
8761         for_each_successor_phi.
8762
8763 2000-04-08  Richard Henderson  <rth@cygnus.com>
8764
8765         * flow.c (mark_used_reg): Use reg_set_p to determine if a register
8766         was modified in the current insn.
8767
8768 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
8769
8770         * arm/thumb.md: Delete.
8771         * arm/thumb-protos.h: Delete.
8772
8773 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
8774
8775         Merge changes from merged-arm-thumb-backend-branch onto trunk.
8776
8777         2000-04-08  Richard Earnshaw (rearnsha@arm.com)
8778
8779         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
8780         into branch.
8781
8782         * arm.md (nop): Use the standard RTL expression.  Don't code as a
8783         define_expand.
8784         (*arm_nop, *thumb_nop): Delete.
8785
8786         * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
8787         constants.  Use casts instead.
8788         (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
8789         output_multi_immediate, arm_poke_function_name): Likewise.
8790         * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
8791         MASK_RETURN_ADDDR): Likewise.
8792
8793         2000-03-31  Richard Earnshaw (rearnsha@arm.com)
8794
8795         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
8796         into branch.
8797
8798         * arm.md (eh_epilogue): New function.
8799         * arm.h (struct machine_function): Move to here ...
8800         * arm.c: ... from here.
8801         (arm_output_epilogue): Support epilogues for __builtin_eh_return.
8802         (thumb_exit): Extra parameter eh_ofs.  All callers changed.
8803         Handle epilogues for __builtin_eh_return.  Make bit-fields unsigned.
8804
8805         2000-03-30  Nick Clifton  <nickc@cygnus.com>
8806
8807         * config/arm/semi.h (ASM_SPEC): Restore definition.
8808         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8809
8810         * config/arm/elf.h (ASM_SPEC): Restore definition.
8811         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8812
8813         * config/arm/arm.h (ASM_SPEC): Remove definition.
8814         (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
8815
8816         2000-03-26  Bernd Schmidt <bernds@cygnus.co.uk>
8817
8818         * config/arm/arm.c: Disable -fschedule-insns for Thumb.
8819
8820         2000-03-24  Nick Clifton  <nickc@cygnus.com>
8821
8822         Various formating tidyups, elimination of compile time
8823         warnings and synchronisation with internal sources:
8824
8825         * config/arm/arm-protos.h (assemble_align): Add prototype.
8826         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8827         (gen_comapre_reg): Rename to arm_gen_compare_reg.
8828         (arm_return_addr_rtx): Rename to arm_return_addr.
8829
8830         * config/arm/arm.c: Include except.h.
8831         Define shorter typenames for strict minipool_node and struct
8832         minipool_fix.
8833         (arm_return_in_memory): For WinCE return all structures <= 32 bits
8834         in memory.
8835         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8836         (gen_comapre_reg): Rename to arm_gen_compare_reg.
8837
8838         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
8839         already defined.
8840         (ASM_SPEC): Define if not already defined.
8841         (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8842
8843         * config/arm/arm.md: Rename references to gen_rotated_half_load to
8844         arm_gen_rotated_half_load, and references to gen_comapre_reg to
8845         arm_gen_compare_reg.
8846         (indirect_jump):  Only accept register operands.
8847         (load_indirect_jump): Keep this pattern since combine can generate
8848         it.
8849
8850         * config/arm/coff.h: Include aout.h.
8851         (MULTILIB_DEFAULTS): Only define if not already defined.
8852
8853         * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
8854         into arm.h (so that COFF ports can support thumb based aliases).
8855         (ASM_SPEC): Move definition into arm.h
8856
8857         * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
8858         redundant apcs spec.
8859         (ASM_SPEC): Move definition to arm.h
8860
8861         * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
8862
8863         * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
8864         for entries in the .bss section
8865
8866         2000-03-23  Nick Clifton  <nickc@cygnus.com>
8867
8868         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
8869         to thumb_far_jump_used_p.
8870
8871         * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
8872         single integer parameter.
8873
8874         * config/arm/arm.c (struct machine_function): Add two new
8875         fields, 'far_jump_used' and 'arg_pointer_live'.
8876         (thumb_far_jump_used_p): Once the decision has been made that
8877         far jumps might be used, always return true.
8878         If being called from the initial elimination offset macro then
8879         do not bother to perform the test if the arg pointer is not
8880         being used.
8881         (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
8882         (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
8883
8884         2000-03-23  Richard Earnshaw (rearnsha@arm.com)
8885
8886         * arm.c (output_return_instruction): Handle more cases where we can
8887         return from a function with an ldr instruction.
8888         (arm_output_epilogue): Likewise.
8889
8890         * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
8891         if we need to push a large stack frame and there are no callee-saved
8892         registers.
8893
8894         * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
8895         in ARM code if the frame pointer has been eliminated.
8896
8897         * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
8898         unspec_volatile arguments to avoid duplicates.
8899         (consttable_1, consttable_2): Fixes for big-endian mode.
8900
8901         * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
8902         as appropriate.
8903
8904         Re-write constant pool code.
8905         * arm.c (minipool_node, minipool_fix): New types.
8906         (minifix): Delete type.
8907         (arm_add_minipool_constant): Delete.
8908         (arm_compute_minipool_offsets, arm_find_barrier,
8909         arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
8910         (get_jump_table_size): Now returns HOST_WIDE_INT.
8911         (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
8912         functions.
8913         (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
8914         (assign_minipool_offsets, arm_print_value): Likewise.
8915         (dump_minipool): Rewrite.
8916         (arm_barrier_cost): New function.
8917         (create_fix_barrier): New function.
8918         (push_minipool_barrier): New function.
8919         (push_minipool_fix): Record additional information about the fixup
8920         required.
8921         (note_invalid_constants): Remove push for (UNSPEC 3).  Don't
8922         check the mode of what needs fixing.
8923         (arm_reorg): Rewrite.
8924
8925         2000-03-08  Nick Clifton  <nickc@cygnus.com>
8926
8927         * config/arm/arm.md (indirect_jump): Force constant addresses into
8928         a register.
8929
8930         2000-03-01  Bernd Schmidt <bernds@cygnus.co.uk>
8931
8932         * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
8933
8934         2000-02-24  Nick Clifton  <nickc@cygnus.com>
8935
8936         * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
8937         adjust is word aligned.
8938         (thumb_expand_epilogue): Make sure that stack adjust is word
8939         aligned.
8940
8941         * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
8942
8943         2000-02-24  Bernd Schmidt <bernds@cygnus.com>
8944
8945         * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
8946         pointer relative addresses.
8947
8948         2000-02-10  Richard Earnshaw  <rearnsha@arm.com>
8949
8950         * arm.c (find_barrier): Find the last barrier within the allowed
8951         range.
8952
8953         2000-02-09  Nick Clifton  <nickc@cygnus.com>
8954
8955         * config/arm/arm-protos.h: Replace PROTO with PARAMS.
8956
8957         2000-02-09  Nick Clifton  <nickc@cygnus.com>
8958
8959         * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
8960         ARM_FUNCTION_PROFILER.
8961
8962         * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
8963         ARM_FUNCTION_PROFILER.
8964
8965         * config/arm/linux-oldld.h: Imported from mainline sources.
8966
8967         2000-02-07  Nick Clifton  <nickc@cygnus.com>
8968
8969         * config/arm/lib1funcs.asm: Merge in thumb functions from
8970         lib1thumb.asm.
8971
8972         * config/arm/lib1thumb.asm: Delete.
8973
8974         2000-02-04  Nick Clifton  <nickc@cygnus.com>
8975
8976         * config/arm/arm.c: Sychronised with current Red hat local
8977         sources.
8978         * config/arm/arm.h: Ditto.
8979         * config/arm/arm-protos.h: Ditto.
8980
8981         2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
8982
8983         * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
8984
8985         * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
8986         byte stores.
8987
8988         2000-02-02  Nick Clifton  <nickc@cygnus.com>
8989
8990         * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
8991
8992         * config/arm/arm.md (epilogue): Fix rtl checking abort because
8993         (return) was emited using an emit_insn() call.
8994
8995         2000-01-31  Nick Clifton  <nickc@cygnus.com>
8996
8997         * config/arm/arm.c (output_thumb_prologue): Fix bug generating
8998         thumb stack frame.
8999         (thumb_exit): Move frame pointer back into hard frame pointer
9000         register if backtracing is being used.
9001
9002         2000-01-13  Richard Earnshaw (rearnsha@arm.com)
9003
9004         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
9005         into branch.
9006
9007         1999-12-15  Bernd Schmidt  <bernds@cygnus.co.uk>
9008
9009         * config/arm/arm.md (neg_pool_offset): Provide default for new
9010         attribute.
9011         (arm_movsi_insn): Add neg_pool_offset attribute.
9012         * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
9013         rtx for the insn that starts the scan and an unsigned long for its
9014         address.  Add MIN_OFFSET and PINSERTED args.  All callers changed.
9015         Change scan to ignore insns before MIN_OFFSET.  Store size of inserted
9016         instructions in *PINSERTED.
9017         (struct minipool_fixup): Add MIN_ADDRESS elt.
9018         (sort_fixups): Compute it.
9019         (arm_reorg): Changes to support inserting pools before the insn to be
9020         fixed up.
9021
9022         1999-12-08  Bernd Schmidt  <bernds@cygnus.co.uk>
9023
9024         * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
9025         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
9026         * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
9027
9028         Wed Nov  3 10:04:07 1999  Nick Clifton  <nickc@cygnus.com>
9029
9030         * config/arm/semi.h (TARGET_VERSION): Do not define if already
9031         defined.
9032         (TARGET_DEFAULT): Do not define if already defined.
9033
9034         Tue Nov  2 10:37:25 1999  Nick Clifton  <nickc@cygnus.com>
9035
9036         * config/arm/arm.md (anddi3): Allow disjoint source operands.
9037         (iordi3): Allow disjoint source operands.
9038         (xordi3): Allow disjoint source operands.
9039         (negdi2): Permit construction for ARM and Thumb.
9040         (arm_negdi2): Renamed version of old negdi2 pattern.
9041         (thumb_negdi2): New pattern: Only permit non-overlapping
9042         source and destination.
9043
9044         Fri Oct 29 18:52:38 1999  Nick Clifton  <nickc@cygnus.com>
9045
9046         * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
9047         scratch low register so that it will not be deleted.
9048
9049         Fri Oct 29 15:23:48 1999  Nick Clifton  <nickc@cygnus.com>
9050
9051         * config/arm/pe.h (ARM_PE): Define.
9052
9053         * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
9054         interfacearm attribute if this is a PE toolchain.
9055         (output_return_instruction): Do not emit anything if the function
9056         has the naked attribute set.
9057         (is_called_in_ARM_mode): If the function has the interfacearm
9058         attribute then return true.
9059         (thumb_expand_prologue): Do not generate a prologue for naked
9060         functions.
9061         (thumb_expand_epilogue): Do not generate an epilogie for a naked
9062         function.
9063         (output_thumb_prologue): Do not bother if the function is naked.
9064         Strip PE encoding from function name before emitting.
9065
9066         Thu Oct 28 11:05:13 1999  Richard Earnshaw <rearnsha@arm.com>
9067
9068         * arm.md (pic_load_addr): Fix constraints.
9069
9070         * arm.md (casesi_insn): Fix mis-applied patch.
9071
9072         * arm.md ("core" function unit): Add rules for single- and
9073         multi-cycle insns.
9074         (All TARGET_THUMB patterns): Add "type" attribute information
9075         where needed.
9076         * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
9077         the following insn is a CALL.
9078
9079         * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
9080         pointer.
9081         * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
9082         ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
9083         (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
9084
9085         Wed Oct 27 14:40:48 1999  Nick Clifton  <nickc@cygnus.com>
9086
9087         * config/arm/linux-gas.h: oops - this file was missed out when the
9088         branch was created...
9089
9090         Tue Oct 26 17:07:38 1999  Richard Earnshaw <rearnsha@arm.com>
9091
9092         * thumb.c: Deleted.  Move contents to ...
9093         * arm.c: ... here.
9094         * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
9095         rule for thumb.o
9096         * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
9097         * configure: Regen.
9098
9099         * arm-protos.h: Use RTX_CODE and tidy up long lines.  Don't
9100         declare a prototype for asm_output_align();
9101
9102         * arm.c (thumb_condition_code): Delete.
9103         (arm_print_operand): Always use arm_condition_code array.
9104
9105         * arm.c (thumb_return_addr_rtx): Delete.
9106         (arm_save_machine_status, arm_restore_machine_status): Delete.
9107         (arm_init_machine_status, arm_mark_machine_status): New functions.
9108         (arm_init_expanders): Update accordingly.
9109         (arm_return_addr): Renamed from arm_return_addr_rtx.  Rewrite.
9110         (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
9111         * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
9112
9113         Tue Oct 26 13:24:16 1999  Nick Clifton  <nickc@cygnus.com>
9114
9115         * configure.in : Fix arm-*-aout target to use new t-arm-aout
9116         script.
9117         * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
9118         targets.
9119
9120         Tue Oct 26 11:27:12 1999  Nick Clifton  <nickc@cygnus.com>
9121
9122         * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
9123         stack backtrace structure.
9124
9125         * config/arm/arm-protos.h: Add prototypes for functions defined in
9126         arm/pe.h.
9127
9128         * config/arm/arm.c (arm_override_options): Fix selection of
9129         attributes of default processor.
9130
9131         * config/arm/coff.h: Delete needless #include.
9132
9133         * config/arm/pe.c: Delete unused code.
9134
9135         * config/arm/pe.h (CPP_DEFINES): Delete
9136         (SUBTARGET_CPP_SPEC): Define.
9137         (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
9138
9139         * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
9140
9141         Mon Oct 25 15:42:09 1999  Richard Earnshaw (rearnsha@arm.com)
9142
9143         * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
9144         updated.
9145         (CAN_DEBUG_WITHOUT_FP): Define.
9146         (FIXED_REGISTERS): Make r11 call-saved.
9147         (CALL_USED_REGISTERS): Likewise.
9148         (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
9149         (FRAME_POINTER_REQUIRED): Correct logic for determining when a
9150         frame-pointer is required.
9151         (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
9152         * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
9153         if the target normally needs a stack frame in non-leaf functions.
9154         (use_return_insn): Correct logic for determining when a return
9155         instruction can be used.
9156         (output_return_instruction): Handle the frame-pointer register as
9157         a normal register when not TARGET_APCS_FRAME.
9158         (arm_output_prologue): Likewise.
9159         (arm_output_epilogue): Likewise.
9160         (output_func_epilogue): Likewise.
9161         (arm_expand_prologue): Likewise.
9162         * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
9163
9164         * arm.c (use_return_insn): No need to check floating point regs if
9165         TARGET_SOFT_FLOAT.
9166         (arm_find_minipool_constant): Correct typo; use GET_CODE to get
9167         the code of value stored in the minipool array.
9168         (arm_add_minipool_constant): Likewise.
9169
9170 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9171
9172         * basic-block.h (conflict_graph_enum_fn): K&R fix.
9173
9174 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9175
9176         * tree.c (tree_expr_nonnegative_p): New function.
9177
9178         * tree.h (tree_expr_nonnegative_p): Declare.
9179
9180         * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
9181         elide some sign_compare warnings.
9182         (build_conditional_expr): Likewise.
9183
9184 Sat Apr  8 00:21:51 EDT 2000  John Wehle  (john@feith.com)
9185
9186         * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
9187
9188         * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
9189         * i386.c (print_operand): Use the proper suffix for a 387 HImode
9190         operand.  Abort if a 387 operand has an unsupported size.
9191
9192 2000-04-08  Neil Booth  <NeilB@earthling.net>
9193
9194         * cppexp.c (parse_charconst): Null does not end character
9195         constants.
9196         * cppinit.c (ISTABLE): Null character handled as whitespace.
9197         * cpplex.c (null_warning):  new function.
9198         (skip_string): Emit warning if nulls encountered.
9199         (_cpp_skip_hspace): Emit warning if nulls encountered.
9200         (_cpp_lex_token): Emit warning if nulls encountered.  Drop
9201         them.
9202         * cpp.texi: Update.
9203
9204 2000-04-07  Richard Henderson  <rth@cygnus.com>
9205
9206         * flow.c (loop_depth): Remove.
9207         (reg_next_use, cc0_live, mem_set_list): Replace with ...
9208         (struct propagate_block_info): New.
9209         (life_analysis): Don't allocate reg_next_use.
9210         (propagate_block_delete_insn): Break out of propagate_block.
9211         Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
9212         (propagate_block_delete_libcall): Likewise.
9213         (propagate_block): Create a propagate_block_info struct to pass
9214         to subroutines.  Allocate one not two temporary regsets.  Don't
9215         clobber memory for const calls.  Look for clobbers in
9216         CALL_INSN_FUNCTION_USAGE.
9217         (mark_set_regs): Recognize COND_EXEC.
9218         (mark_set_reg): Break out of mark_set_1.
9219         (mark_used_reg): Break out of mark_used_regs.
9220         (mark_used_regs): Recognize COND_EXEC.
9221         (insn_dead_p): Use propagate_block_info struct.
9222         (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
9223         (find_auto_inc, try_pre_increment_1): Likewise.
9224         (print_rtl_with_bb): Dump regs live at end too.
9225         (count_reg_sets_1): Pass in loop_depth.
9226         (count_reg_sets, count_reg_references): Likewise.
9227         (recompute_reg_usage): Provide it.
9228
9229 2000-04-07  Richard Henderson  <rth@cygnus.com>
9230
9231         * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
9232         not the raw files.
9233
9234 2000-04-07  Zack Weinberg  <zack@wolery.cumb.org>
9235
9236         * cpplib.c (do_elif): Skip the rest of the line if we're
9237         not going to bother evaluating it.
9238         (skip_if_group): Clear pfile->only_seen_white.  Reorder loop
9239         to avoid pointless calls to the lexer.
9240
9241 Fri Apr  7 11:50:54 2000  Jim Wilson  <wilson@cygnus.com>
9242
9243         * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
9244
9245 2000-04-07  Jason Merrill  <jason@casey.cygnus.com>
9246
9247         * calls.c (expand_call): emit_queue if we're trying a sibcall.
9248
9249 2000-04-07  Jakub Jelinek  <jakub@redhat.com>
9250
9251         * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
9252
9253 2000-04-06  Geoff Keating  <geoffk@cygnus.com>
9254
9255         * Makefile.in: Build crtbeginS and crtendS like crtbegin and
9256         crtend so they can be multilibbed.
9257         (STAGESTUFF): Remove s-crt and s-crtS.
9258
9259 2000-04-07  Richard Henderson  <rth@cygnus.com>
9260
9261         * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
9262         if we discover we need a pseudo and no_new_pseudos is true.
9263         * config/alpha/alpha.md (ne:DI insn): New.
9264         (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
9265
9266 2000-04-07  Richard Henderson  <rth@cygnus.com>
9267
9268         * rtl.def (COND_EXEC): New.
9269         * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
9270         * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
9271
9272         * genconfig.c (have_cond_arith_flag): Remove.
9273         (have_cond_exec_flag): New.
9274         (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
9275         (main): Print HAVE_conditional_execution.
9276
9277         * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
9278         (sched_analyze_insn, print_pattern): Likewise.
9279         * reload.c (find_equiv_reg): Likewise.
9280         * rtlanal.c (reg_referenced_p): Likewise.
9281         (note_stores, dead_or_set_regno_p): Likewise.
9282         (reg_overlap_mentioned_p): Rewrite to use a switch.
9283
9284         * ggc.h (struct rtx_def): Forward declare.
9285
9286         * print-rtl.c (debug_rtx_range): New.
9287         * rtl.h (debug_rtx_range): Declare.
9288
9289         * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
9290
9291         * gcse.c (gcse_main): Don't rebuild the CFG here.
9292         (delete_null_pointer_checks): Likewise.
9293         * ssa.c (convert_to_ssa): Likewise.
9294         * toplev.c (rest_of_compilation): Do it here instead.  Combine
9295         sequential calls to TIMEVAR.  Consistently use `insns' instead of
9296         `get_insns()'.  Always split insns after reload when optimizing.
9297
9298         * basic-block.h (merge_blocks_nomove): Declare.
9299         (tidy_fallthru_edge): Declare.
9300         * flow.c (merge_blocks_nomove): Document as merging into previous
9301         blocks.  Remove cruft from between blocks; remove all edges out of A.
9302         (tidy_fallthru_edge): Export.
9303
9304 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
9305
9306         * ssa.c (compute_conservative_reg_partition): Declare with
9307         void arguments.
9308         * toplev.c (clean_dump_file): Remove previously-deleted function
9309         inadvertantly merged back in.
9310         * conflict.c (conflict_graph_add): Use a single call to
9311         htab_find_slot to look up and insert.
9312
9313 2000-04-06  Richard Henderson  <rth@cygnus.com>
9314
9315         * genrecog.c (*): Rename _last_insn to last_insn.
9316         (make_insn_sequence): Set the position of the peephole2 C test
9317         to be at the last insn.
9318
9319 2000-04-06  Richard Henderson  <rth@cygnus.com>
9320
9321         * flow.c (compute_flow_dominators): Free worklist.
9322
9323 2000-04-06  Michael Matz  <matzmich@cs.tu-berlin.de>
9324
9325         * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
9326
9327 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
9328
9329         * rtl.h (INSN_P): New macro.
9330         (successor_phi_fn): New typedef.
9331         (for_each_successor_phi): New prototype.
9332         (in_ssa_form): New variable.
9333         (PHI_NODE_P): Likewise.
9334         * flow.c (calculate_global_regs_live): Add to new_live_at_end from
9335         phi nodes in successors.
9336         (mark_used_regs): Add PHI case.
9337         (set_phi_alternative_reg): New function.
9338         (life_analysis): Assert that dead code elimination is not selected
9339         when in SSA form.
9340         * toplev.c (to_ssa_time): New variable.
9341         (from_ssa_time): Likewise.
9342         (compile_file): Zero to_ssa_time and from_ssa_time.
9343         Print time to convert to and from SSA.
9344         (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
9345         (print_time): Compute percent fraction as integer.
9346         * ssa.c (PHI_NODE_P): Moved to rtl.h.
9347         (convert_to_ssa): Check if we're already in SSA.
9348         Don't eliminate dead code in life_analysis.
9349         Rerun flow and life analysis at bottom.
9350         (eliminate_phi): Use canonical regnos when adding nodes.
9351         (mark_reg_in_phi): New function.
9352         (mark_phi_and_copy_regs): Likewise.
9353         (convert_from_ssa): Rerun life analysis at top.
9354         Use coalesced partition.
9355         Check for removing a phi node at the end of the block.
9356         (compute_coalesced_reg_partition): New function.
9357         (coalesce_regs_in_copies): Likewise.
9358         (coalesce_reg_in_phi): Likewise.
9359         (coalesce_regs_in_sucessor_phi_nodes): Likewise.
9360         (for_each_successor_phi): Likewise.
9361         (rename_context): New struct.
9362         (rename_block): Use a rename_context with rename_insn_1.  When
9363         renaming sets of a subreg, emit a copy of the entire reg first.
9364         (rename_insn_1): Treat data as a rename_context *.  Save current
9365         insn in set_data.
9366         (rename_set_data): Add field set_insn.
9367         * Makefile.in (HASHTAB_H): Move up in file.
9368         (OBSTACK_H): New macro.
9369         (collect2.o): Use OBSTACK_H in dependencies.
9370         (sdbout.o): Likewise.
9371         (emit-rtl.o): Likewise.
9372         (simplify-rtx.o): Likewise.
9373         (fix-header.o): Likewise.
9374         (OBJS): Add conflict.o.
9375         (conflict.o): New rule.
9376         * basic-block.h: Include partition.h.
9377         (conflict_graph): New typedef.
9378         (conflict_graph_enum_fn): Likewise.
9379         (conflict_graph_new): New prototype.
9380         (conflict_graph_delete): Likewise.
9381         (conflict_graph_add): Likewise.
9382         (conflict_graph_conflict_p): Likewise.
9383         (conflict_graph_enum): Likewise.
9384         (conflict_graph_merge_regs): Likewise.
9385         (conflict_graph_print): Likewise.
9386         (conflict_graph_compute): Likewise.
9387         * conflict.c: New file.
9388
9389 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
9390
9391         * tlink.c (read_repo_files): Don't look for .rpo info for
9392         linker flags.
9393
9394 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9395
9396         * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
9397
9398 Thu Apr  6 19:34:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9399
9400         * config/sh/lib1funcs.asm (___udivsi3_i4):
9401         ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
9402         only depends on FMOVD_WORKS.
9403
9404 Thu Apr  6 19:11:47 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9405
9406         * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
9407         make double constant 8-byte aligned.
9408
9409 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9410
9411         * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
9412         movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
9413         movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
9414         (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
9415         Accept storing GENERAL_REGS into offsetable memory.
9416         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
9417         building a TFmode constant other than 0.0L into GENERAL_REGS.
9418
9419 2000-04-06  Clinton Popetz  <cpopetz@cygnus.com>
9420
9421         * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
9422
9423 2000-04-06  Zack Weinberg  <zack@wolery.cumb.org>
9424
9425         * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
9426         (macro_cleanup): No need to cast pbuf->macro.
9427         (collect_expansion): Use _cpp_get_define_token.  Goto done if
9428         it returns VSPACE.  Remove check for trailing space after
9429         CPP_COMMENT.
9430         (_cpp_create_definition): Don't diddle flags here.  Return
9431         directly on error.
9432         (unsafe_chars): Handle c1 being EOF.
9433         (push_macro_expansion): Use unsafe_chars for both accidental-paste
9434         checks.  Don't push the buffer till after we're done with
9435         them.
9436         * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
9437         (PEEKN, FORWARD, GETC, PEEKC): Use them.
9438         (cpp_push_buffer): Don't set new->alimit.  Set new->mark
9439         appropriately.
9440         (_cpp_parse_assertion): Don't NUL terminate.
9441         (_cpp_lex_token): Fix -traditional macro handling.  Don't skip
9442         hspace before calling _cpp_parse_assertion.  Remove all sets
9443         of only_seen_white. Treat '\f' as hspace.  Don't do anything
9444         special with '\n' here.
9445         (maybe_macroexpand): Handle T_EMPTY hash entries without
9446         pushing a buffer at all.
9447         (cpp_get_token): Handle clearing only_seen_white here.  Handle
9448         incrementing the line number here.  Clear
9449         potential_control_macro as well as only_seen_white, if
9450         appropriate.
9451         (cpp_get_non_space_token): Don't eat CPP_POP tokens.
9452         (_cpp_get_define_token): New function, basically like
9453         _cpp_get_directive_token was but doesn't eat horizontal space.
9454         Don't do anything with only_seen_white here.
9455         (_cpp_get_directive_token): Just call _cpp_get_define_token
9456         repeatedly till it returns non-hspace.
9457
9458         * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
9459         (conditional_skip, skip_if_group): Return int.
9460         (DIRECTIVE_TABLE): Change origin of all conditional directives
9461         to "COND".
9462         (TRAD_DIRECT_P): New macro.
9463         (_cpp_handle_directive): Use _cpp_get_directive_token.  Issue
9464         an error for a bogus directive, unless -lang-asm.  Use
9465         TRAD_DIRECT_P. Loop calling handler functions till one returns
9466         zero.
9467         (get_macro_name): Don't diddle flags here.
9468         (do_define): Diddle flags here.  Use _cpp_get_directive_token.
9469         Create T_EMPTY nodes for #define macro /* nothing */.
9470         (do_undef): Don't copy the name.  Use _cpp_get_directive_token.
9471         Use hp->name when calling pass_thru_directive.
9472         (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
9473         Return the result of conditional_skip and/or skip_if_group.
9474         Don't call _cpp_output_line_command.
9475         (consider_directive_while_skipping): Use _cpp_get_directive_token.
9476         Issue -Wtraditional warnings as appropriate.  Don't complain
9477         about unrecognized directives.  If we are to stop skipping,
9478         return the number of the directive that ended the skip.
9479         (skip_if_group): Use _cpp_get_directive_token.  Turn off macro
9480         expansion and line commands while skipping.  Return the result
9481         of consider_directive_while_skipping, if nonzero.
9482         (do_endif): Just set potential_control_macro here.
9483         (validate_else): Use _cpp_get_directive_token.
9484         (do_assert, do_unassert): Don't save pointers into the
9485         token_buffer across calls to the lexer.  Use
9486         _cpp_get_directive_token.
9487
9488         * cpplib.h (cpp_buffer): Remove alimit and colno.  Make mark a
9489         pointer, not an offset.  Replace 'data', which was a generic
9490         pointer, with 'macro', which points to a struct hashnode.
9491         (cpp_reader): Add 'potential_control_macro' pointer.
9492         * cpphash.h (T_UNUSED): Replace with T_EMPTY.
9493         (CPP_BUF_GET, CPP_FORWARD): Delete.
9494         (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
9495         (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
9496         ACTIVE_MARK_P): Update.
9497         (_cpp_get_define_token): New internal function.
9498         * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
9499
9500 2000-04-05   Benjamin Kosnik  <bkoz@cygnus.com>
9501
9502         * configure.in: And here.
9503         * configure: Regenerate.
9504         * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
9505         --enable-libstdcxx-v3 is passed at configure time.
9506         * config.h.in: Regenerate.
9507
9508 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
9509
9510         * final.c (final): Use xcalloc to allocate line_note_exists.
9511         * function.c (free_after_compilation): Free the temp_slots.
9512         (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
9513         (combine_temp_slot): Free temp_slots when they get combined.
9514         (purge_addressof): Fix typo in comment.
9515         * stmt.c (mark_goto_fixup): Mark the fixup itself.
9516         (expand_fixup): Allocate the fixup with ggc_alloc_obj.
9517
9518         * ggc.h: Include varray.h.
9519         (ggc_pending_trees): Declare.
9520         (ggc_mark_tree_children): Remove declaration.
9521         (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
9522         * ggc-common.c (ggc_pending_trees): New variable.
9523         (ggc_mark_roots): Call ggc_mark_trees.
9524         (ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
9525         the ggc_pending_trees.
9526         * Makefile.in (GGC_H): New variable.  Use it throughout in place
9527         of ggc.h.
9528
9529 Thu Apr  6 00:30:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9530
9531         * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
9532         GET_MODE_SIZE.
9533
9534 Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9535
9536         * sh.c (sh_insn_length_adjustment): New function.
9537         * sh-protos.h (sh_insn_length_adjustment): Declare.
9538         * sh.h (ADJUST_INSN_LENGTH): Use it.
9539
9540 Wed Apr  5 12:35:18 2000  Hans-Peter Nilsson  <hp@axis.com>
9541
9542         * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
9543         from the insn where REG_RETVAL is added.
9544         (emit_no_conflict_block): Ditto.
9545
9546         * md.texi (Standard Names): Clarify when movX is needed.
9547
9548         * combine.c (simplify_comparison) [MINUS]: Do not replace
9549         all (op (minus A B) 0) with (op A B).
9550
9551 Wed Apr  5 18:03:31 2000  Toshiyasu Morita  (toshi.morita@sega.com)
9552                           J"orn Rennecke <amylaar@cygnus.co.uk>
9553
9554         * sh.md (block_lump_real_i4): Add missing clobber of T_REG
9555         (block_lump_real): Likewise.
9556
9557 2000-04-05  Chris Demetriou  <cgd@netbsd.org>
9558
9559         * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
9560         remaining non-zero debugging masks.
9561
9562 Wed Apr  5 09:44:07 2000  Jeffrey A Law  (law@cygnus.com)
9563
9564         * basic-block.h (verify_flow_info): Declare.
9565         (flow_loop_outside_edge_p): Declare.
9566         * flow.c (verify_flow_info): Remove declaration.
9567         (clear_log_links, flow_loop_outside_edge_p): Likewise.
9568
9569 Wed Apr  5 09:34:26 2000  Philippe De Muyter <phdm@macqel.be>
9570
9571         * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
9572         not C++ comments.
9573
9574 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9575
9576         * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
9577         snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
9578         seqdi_zero_trunc+1): Allow splits only if registers are
9579         different.
9580
9581 2000-04-04  Ulrich Drepper  <drepper@cygnus.com>
9582
9583         * acconfig.h: Add HAVE_GAS_HIDDEN.
9584         * config.in: Regenerated.
9585         * configure.in: Add test for .hidden pseudo-op in gas.
9586         * configure: Regenerated.
9587         * crtstuff.c: Include auto-host.h.
9588         Emit additional .hidden pseudo-op for __dso_handle if the
9589         assembler knows about it.
9590
9591 2000-04-04  Philippe De Muyter  <phdm@macqel.be>
9592
9593         * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
9594         before freeing argnames.
9595         * cpplib.c (do_ifndef): Cast return value of xstrdup.
9596
9597 2000-04-05  Michael Meissner  <meissner@redhat.com>
9598
9599         * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
9600         Walton <jonboy@gordian.com> to make memory references with update
9601         work wtih -mregnames.
9602
9603 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9604
9605         * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
9606         (regrename_optimize): Rename variables `def_uses' and
9607         `ext_basic_blocks' to avoid conflicts with similarly named
9608         typedefs in traditional C.
9609
9610         * calls.c (initialize_argument_information): Fix typo in previous
9611         change.
9612
9613 2000-04-04  Richard Henderson  <rth@cygnus.com>
9614
9615         * regrename.c (consider_available): Test fixed_regs not
9616         PIC_OFFSET_TABLE_REGNUM.
9617
9618 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
9619
9620         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
9621         crtend.
9622         (CRTSTUFF_T_CFLAGS_S): Delete definition.
9623         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
9624         (ENDFILE_LINUX_SPEC): Always use crtend.
9625         * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
9626         (powerpc-*-linux-gnu): Likewise.
9627         * configure: Regenerate.
9628
9629         * config/rs6000/eabi.h: Don't include sysv4.h.
9630         (MULTILIB_DEFAULTS): Don't define.
9631         * config/rs6000/eabiaix.h: Don't include eabi.h.
9632         * config/rs6000/eabile.h: Delete.
9633         * config/rs6000/eabilesim.h: Delete.
9634         * config/rs6000/eabisim.h: Don't include eabi.h.
9635         * config/rs6000/linux.h: Don't include sysv4.h.
9636         (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
9637         (MULTILIB_DEFAULTS): Don't redefine.
9638         * config/rs6000/rtems.h: Don't include eabi.h.
9639         * config/rs6000/sol2.h: Don't include sysv4le.h.
9640         * config/rs6000/sysv4le.h: Don't include sysv4.h.
9641         * config/rs6000/t-ppc: Delete.
9642         * config/rs6000/t-ppcgas: Correct comment.
9643         * config/rs6000/t-ppcos: Correct comment.  Don't build
9644         multilibs for -fPIC, rather use -fPIC -mstrict-align
9645         as default.
9646         * config/rs6000/t-ppc: Delete.
9647         * config/rs6000/vxppc.h: Don't include sysv4.h.
9648         * config/rs6000/vxppcle.h: Delete.
9649         * configure.in: Use multiple header files for p2pc ELF targets
9650         powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
9651         powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
9652         powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
9653         powerpc-vxworks, powerpcle-vxworks.  Assume GAS functionality is
9654         always available for these platforms.
9655
9656 2000-04-04  Richard Henderson  <rth@cygnus.com>
9657
9658         * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
9659
9660 2000-04-04  Stan Cox  <scox@cygnus.com>
9661
9662         * Makefile.in: Add rules for regrename.o
9663         * regrename.c: New file.
9664         * rtl.h (regrename_optimize): Add prototype.
9665         * toplev.c (rename_registers_dump, flag_rename_registers): New variables
9666         (compile_file, decode_d_option): Add support for -frename-registers.
9667         (rest_of_compilation): Call regrename_optimize.
9668         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
9669         New macros.
9670
9671 2000-04-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9672
9673         * Makefile (gccbug): New target.
9674         (doc): Depend on it.
9675         * gcc.texi (Bugs): Link subnodes.
9676         (gccbug): New node.
9677         * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
9678         Document severities, priorities, and classes in bug form.
9679
9680 2000-04-04  Zack Weinberg  <zack@wolery.cumb.org>
9681
9682         * cpplex.c (trigraph_map, speccase): Combine into single
9683         table, chartab.
9684         (NORMAL, NONTRI): New macros.
9685         (_cpp_read_and_prescan): Change to use unified table.  Use
9686         is_hspace to test for whitespace.
9687
9688         * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
9689         definition that doesn't provoke the "empty body in an
9690         if-statement" warning.
9691
9692 2000-04-04  Clinton Popetz  <cpopetz@cygnus.com>
9693
9694         * builtins.c (expand_builtin_strlen): Force the source to
9695         be a memory address.
9696
9697 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9698
9699         * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
9700
9701 Tue Apr  4 19:17:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
9702
9703         * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
9704          ECF_LONGJMP, ECF_FORK_OR_EXEC):  New constants.
9705         (ECF_IS_CONST): Rename to ECF_CONST.
9706         (special_function_p): Make static, change interface.
9707         (flags_from_decl_or_type, try_to_integrate): Break out from ...
9708         (expand_call) ... here; convert number of variables to flags.
9709         (emit_library_call_vlue_1): Likewise.
9710         (setjmp_call_p): New function.
9711         (initialize_argument_information): Accepts flags as argument;
9712         return flags.
9713         (precompute_arguments): Likewise.
9714         * tree.h (special_function_p): Remove.
9715         (setjmp_call_p): Add prototype.
9716
9717 2000-04-04  Jakub Jelinek  <jakub@redhat.com>
9718
9719         * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
9720         so that addresses are offsetable by up to 16 bytes.
9721         (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
9722         non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
9723         offsetable.
9724
9725         * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
9726         (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
9727         (movsf): Don't force any constant to memory if target is integer
9728         hard register.
9729         Move fp_zero_operand check below the const0_rtx check.
9730         (movtf): Likewise. Also allow fp_zero_operand for stores into
9731         memory.
9732         (movdf): Likewise. Also allow fp_zero_operand for stores into
9733         memory and into integer hard registers.
9734         (clear_df, clear_dfp, movdf_const_intreg_sp32,
9735         movdf_const_intreg_sp64): Remove.
9736         (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
9737         conditions.
9738         (movdf_no_e_insn_v9_sp32): New pattern.
9739         (movdf_insn_v9only): Remove.
9740         (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
9741         (movdf_insn_sp64): Remove.
9742         (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
9743         (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
9744         (following splits): Rewrite conditions. Add two new splits
9745         for storing 0.0 into memory and registers.
9746         (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
9747         (movtf_insn_sp32): Redo constraints and conditions.
9748         (movtf_insn_vis_sp32): New pattern.
9749         (movtf_no_e_insn_sp32): Redo constraints and conditions.
9750         (movtf_insn_hq_sp64): Likewise.
9751         (movtf_insn_hq_vis_sp64): New pattern.
9752         (movtf_insn_sp64): Redo constraints and conditions.
9753         (movtf_insn_vis_sp64): New pattern.
9754         (movtf_no_e_insn_sp64): Redo constraints and conditions.
9755         (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
9756         or memory.
9757         * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
9758         -mvis or -m64 to take down the number of various reload patterns.
9759
9760 Tue Apr  4 00:41:53 2000  Jeffrey A Law  (law@cygnus.com)
9761
9762         * pa/pa-64.h: New file.
9763         * pa/pa64-regs.h: New file.
9764         * pa/pa64-start.h: New file.
9765         * pa/t-pa64: New file.
9766         * pa/xm-pa64hpux.h: New file.
9767
9768 2000-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9769
9770         * sparc.c (output_restore_regs): Prototype.
9771         (sparc_emit_float_lib_cmp): Constification.
9772
9773         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
9774
9775         * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
9776         Prototype.
9777
9778         * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
9779         (get_value_hash, hash_rtx): Likewise.
9780
9781         * ssa.c (compute_conservative_reg_partition): Prototype.
9782
9783         * tree.c (mark_hash_entry): Prototype.
9784
9785 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
9786
9787         * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
9788         * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
9789         * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
9790
9791         * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
9792         * objc/lang-specs.h: Likewise.
9793
9794 2000-04-03  Neil Booth  <NeilB@earthling.net>
9795
9796         * cppexp.c: wrap long lines.  New macros CPP_ICE, SYNTAX_ERROR
9797         and SYNTAX_ERROR2. Replace `' in messages with ''.
9798         (op_to_str): Make re-entrant.
9799         (_cpp_parse_expr): Implement new error macros. Use | rather
9800         than || to logically or 2 boolean integers.  Simply expression
9801         checking we have a left operand iff needed.
9802
9803 2000-04-03  Nick Clifton  <nickc@cygnus.com>
9804
9805         * Makefile.in (diagnostic.o): Depend upon diagnostic.c
9806
9807 2000-04-03  Philip Blundell  <philb@gnu.org>
9808
9809         * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
9810
9811 2000-04-03  Felix Lee  <flee@cygnus.com>
9812
9813         * fixinc/server.c (find_shell): New function.  Avoid $SHELL.
9814         (run_shell): Use it.
9815
9816 2000-04-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
9817
9818         * Makefile.in (stmp-int-hdrs): Make include subdir here...
9819         (stmp-fixproto): ...rather than here.
9820
9821 Mon Apr  3 00:50:06 2000  Jason Eckhardt <jle@cygnus.com>
9822
9823         * pa.c (print_operand): Compute 'base' only inside the code paths
9824         that use it.
9825
9826 2000-04-03  Geoffrey Keating  <geoffk@cygnus.com>
9827
9828         * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
9829         CEIL_DIV_EXPR.
9830
9831 2000-04-03  Philipp Thomas  <pthomas@suse.de>
9832
9833         * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
9834
9835 Mon Apr  3 00:02:59 2000  Brad Lucier <lucier@math.purdue.edu>
9836
9837         * Makefile.in (alias.o): Depend on $(TREE_H).
9838
9839 2000-04-02  Zack Weinberg  <zack@wolery.cumb.org>
9840
9841         * cppinit.c (cpp_start_read): Turn off -Wtraditional if
9842         processing C++.
9843         * cpplib.c (_cpp_handle_directive): Improve warnings for
9844         traditional C and indented directives.
9845
9846         * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
9847         fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
9848         fixinc/inclhack.def: Indent the # of #include_next one space.
9849         * cp/rtti.c: Un-indent #if and #endif.
9850
9851         * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
9852         syntax error, but an error has already been printed.
9853         * cpplex.c (_cpp_parse_assertion): Give a more specific error
9854         message when called with nothing remaining on the line.
9855         (_cpp_lex_token): If _cpp_parse_assertion fails, return an
9856         OTHER token, not an ASSERTION.
9857         * cpplib.c (do_assert): When we create a 'base' node, clear
9858         its aschain pointer.
9859
9860 2000-04-02  Neil Booth <NeilB@earthling.net>
9861
9862         * cppexp.c:  New typedef op_t.  struct operation and struct
9863         token updated to use it.
9864         (op_to_str): New function.
9865         (_cpp_parse_expr): Error messages modified to use op_to_str.
9866
9867 2000-04-02  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9868
9869         * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
9870         before checking MUST_PASS_IN_STACK.
9871
9872 2000-04-02  Neil Booth <NeilB@earthling.net>
9873
9874         * cppexp.c:  New FINISHED dummy token.  Combine operator initial
9875         flags and initial priority into a single constant.  New
9876         EQUALITY macro.  New operator flag SHORT_CIRCUIT.
9877         (_parse_cpp_expr): Implement new constants.  Take left operand
9878         checks out of reduction loop.  Handle SHORT_CIRCUIT.  End of
9879         parse indicated by reducing FINISHED token.  Remove new lines
9880         from cpp_error messages.
9881
9882 2000-04-01  Mark Mitchell  <mark@codesourcery.com>
9883
9884         * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
9885         permanent obstack.
9886
9887 2000-04-01  Zack Weinberg  <zack@wolery.cumb.org>
9888
9889         * cpplib.c: Include symcat.h.  Add 'origin' field to struct
9890         directive.  Add origin values to DIRECTIVE_TABLE.  Generate
9891         the strings and function names on the fly.  Take the #sccs
9892         entry out of the table if SCCS_DIRECTIVE is not defined.
9893         (_cpp_handle_directive): Decide if the # was at the beginning
9894         of the line here.  Issue -pedantic warnings for extended
9895         directives here.  Warn about K+R directives with the #
9896         indented, and C89/extended directives with the # not indented,
9897         here.
9898         (do_import, do_include_next, do_warning, do_ident, do_sccs,
9899         do_assert, do_unassert): Don't issue pedantic warning here.
9900
9901         * cpphash.h: Add CPP_WTRADITIONAL macro.
9902         * cpplib.h (struct cpp_options): Rename warn_stringify to
9903         warn_traditional; update comments.
9904         * cppinit.c (handle_option): Set warn_traditional not
9905         warn_stringify.
9906         * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
9907         CPP_WTRADITIONAL (pfile).
9908         * cpplex.c (_cpp_lex_token): Don't decide if directives should
9909         be ignored in -traditional mode here.
9910
9911         * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
9912         to initialize speccase[] and trigraph_map[].  Delete all
9913         references to pfile->input_speccase.  Always treat '?' as a
9914         special character.  Remove table-initialization code from
9915         _cpp_init_input_buffer.
9916
9917         * cpplib.h (struct cpp_reader): Remove input_speccase field.
9918         * cppinit.c (cpp_cleanup): Don't free input_speccase.
9919
9920 2000-04-01  Richard Henderson  <rth@cygnus.com>
9921
9922         * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
9923         (mostlyclean): Likewise.
9924
9925         * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
9926         (struct dump_file_info, enum dump_file_index, dump_file): New.
9927         (open_dump_file): Take a dump_file_index not a suffix, and a decl
9928         not a string.  Clean out file if we havn't yet done so.  Do nothing
9929         if the dump isn't enabled.
9930         (close_dump_file): Do nothing if the dump isn't open.  Dump
9931         graph data if requested.
9932         (dump_rtl, clean_dump_file): Remove.
9933         (compile_file): Don't clean the dump files.  Only finalize .bp dump
9934         if flag_test_coverage or flag_branch_probabilities.  Only finalize
9935         .combine dump if optimizing.  Iterate over dump_file to finalize the
9936         graph dumps.
9937         (rest_of_compilation): Update for open_dump_file/close_dump_file.
9938         Convert all uses of dump_rtl.
9939         (decode_d_option): Iterate over dump_file to implement 'a' and to
9940         locate pass-specific dumps.
9941
9942 2000-04-01  Neil Booth <NeilB@earthling.net>
9943
9944         * cppexp.c: Redefine priority constants.
9945         (_cpp_parse_expr): Replace left and right priority scheme with
9946         single priority logic.  Move LOGICAL to same place as COMPARE.
9947         Remove bogus check for multiple unary +/- operators.
9948
9949 2000-04-01  Neil Booth <NeilB@earthling.net>
9950
9951         * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
9952         within the switch statement.  Binary operations break out of
9953         the switch naturally.  '(' tokens handled by forcing
9954         immediate shift.  ')' handled by forcing immediate reduce to
9955         the previous '('.  New error messages.
9956
9957 2000-03-31  Geoff Keating  <geoffk@cygnus.com>
9958
9959         * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
9960         part', it's already in use.  Use %K instead.  Add a return at the
9961         end of what is now %K.
9962         * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
9963
9964 Sat Apr  1 02:05:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
9965
9966         * builtins.c  (expand_builtin_apply):  Pass proper parameters to
9967         allocate_dynamic_stack_space.
9968         * calls.c (emit_call_1):  Do not adjust stack pointer for SIB,
9969         update stack_pointer_delta; do not update arg_size_so_far.
9970         (compute_argument_block_size): Use stack_delta instead of
9971         stack_pointer_pending and arg_size_so_far.
9972         (expand_call): Add sanity checking for stack_pointer_delta;
9973         save and restore stack_pointer_delta for SIB, use
9974         stack_pointer_delta for alignment; do not update arg_space_so_far.
9975         (emit_library_call_value): Use stack_pointer_delta for alignment.
9976         (store_one_arg): Do not update arg_space_so_far.
9977         * explow.c (adjust_stack, anti_adjust_stack): Update
9978         stack_pointer_delta.
9979         (allocate_dynamic_stack_space): Add sanity checking for
9980         stack_pointer_delta.
9981         * expr.c (init_expr, clear_pending_stack_adjust): Clear
9982         stack_pointer_delta.
9983         (emit_push_insn): Update stack_pointer_delta.
9984         * function.h (struct expr_status): Add x_stack_pointer_delta;
9985         remove x_arg_space_so_far.
9986         (arg_space_so_far): Remove.
9987         (stack_pointer_delta): New macro.
9988
9989 2000-03-31  Zack Weinberg  <zack@wolery.cumb.org>
9990
9991         * cpplib.h: Merge struct cpp_options into struct cpp_reader.
9992         Reorder struct cpp_options and struct cpp_reader for better
9993         packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
9994         takes two args.  Change all 'char' flags to 'unsigned char'.
9995         Move show_column flag into struct cpp_options.  Don't
9996         prototype cpp_options_init.
9997         * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9998         cppinit.c, cpplex.c, cpplib.c:
9999         Replace CPP_OPTIONS (pfile)->whatever with
10000         CPP_OPTION (pfile, whatever), and likewise for
10001         opts = CPP_OPTIONS (pfile); ... opts->whatever;
10002
10003         * cppinit.c (merge_include_chains): Take a cpp_reader *.
10004         Extract CPP_OPTION (pfile, pending) and work with that
10005         directly.
10006         (cpp_options_init): Delete.
10007         (cpp_reader_init): Turn on on-by-default options here.
10008         Allocate the pending structure here.
10009         (cl_options, enum opt_code): Define these from the same table,
10010         kept in a large macro.  Add -fshow-column and -fno-show-column
10011         options.
10012
10013         * cpperror.c (v_message): If show_column is off, don't print
10014         the column number.
10015
10016         * cppmain.c: Update for new interface.
10017         * fix-header.c: Likewise.
10018
10019 2000-03-30  Geoff Keating  <geoffk@cygnus.com>
10020
10021         * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
10022         definition.
10023         * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
10024         are passed to any invocation of AR_FOR_TARGET.
10025         (AR_CREATE_FOR_TARGET): New macro.
10026         (AR_EXTRACT_FOR_TARGET): New macro.
10027         (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
10028         AR_EXTRACT_FOR_TARGET.
10029         (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
10030         in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
10031         `$(AR_FOR_TARGET) x'.  Pass AR_CREATE_FOR_TARGET and
10032         AR_EXTRACT_FOR_TARGET to sub-makes.
10033
10034 2000-03-31  Neil Booth <NeilB@earthling.net>
10035
10036         * cppexp.c: Delete SKIP_OPERAND.  Correct priority
10037         PAREN_INNER_PRIO.
10038         (_cpp_parse_expr): Check for multiple unary +/- operators.
10039         Correct priorities of ':' and '?'.  Treat ')' as having a
10040         value.  Ensure conditional expression is not void.
10041
10042 2000-03-31  Mark Mitchell  <mark@codesourcery.com>
10043
10044         * alias.c (canon_rtx): Make it global.
10045         (rtx_equal_for_memref_p): CONST_INT equality is now pointer
10046         equality.
10047         * cse.c (struct table_elt): Add canon_exp.
10048         (insert): Clear it.
10049         (invalidate): Canonicalize expressions only once.
10050         * rtl.h (canon_rtx): Declare.
10051
10052 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
10053
10054         * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
10055         * alias.c (reg_known_value): Add comments.
10056         (init_alias_analysis): Likewise.
10057         * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
10058         address.
10059         (cse_basic_block): Fix typo in comment.
10060         * emit-rtl.c: Include hashtab.h.
10061         (const_int_htab): New variable.
10062         (const_int_htab_hash): New function.
10063         (const_int_htab_eq): Likewise.
10064         (rtx_htab_mark_1): Likewise.
10065         (rtx_htab_mark): Likewise.
10066         (gen_rtx_CONST_INT): Cache all CONST_INTs.
10067         (unshare_all_rtx): Fix formatting.
10068         (init_emit_once): Initialize const_int_htab.
10069         * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
10070         address.
10071         * rtl.texi: Document the fact that all CONST_INTs with the same
10072         value are shared.
10073
10074 2000-03-30  Richard Henderson  <rth@cygnus.com>
10075
10076         * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
10077
10078 2000-03-30  Zack Weinberg  <zack@wolery.cumb.org>
10079
10080         * configure.in: Comment out --enable-c-cpplib stanza.
10081         * configure: Regenerate.
10082
10083 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10084
10085         * expr.c (store_constructor): Properly compute displacement and
10086         alignment when offset is variable.
10087
10088         * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
10089         cases of alignment in bytes.
10090
10091 Thu Mar 30 13:30:40 2000  Jeffrey A Law  (law@cygnus.com)
10092
10093         * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
10094         since it is used to generate c-parse.y.
10095         * objc-parse.c, objc-parse.y: Regenerated.
10096
10097         * function.c (expand_function_end): Pass alignment argument to
10098         emit_block_move in bits, not bytes.
10099
10100 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10101
10102         * expr.c (move_by_pieces_ninsns): Fix one more missing align
10103         correction.
10104
10105         * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
10106
10107         * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
10108         * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
10109         * function.c (assign_parms): Likewise.
10110         * integrate.c (expand_inline_function): Likewise.
10111         * stmt.c (expand_decl): Likewise.
10112         (copy_rtx_and_substitute): Likewise.
10113         * expr.c (expand_expr, expand_expr_unaligned): Likewise.
10114         (clear_by_pieces): Fix error in last change.
10115         * emit-rtl.c (init_emit): Set known registers alignment in bits.
10116         * function.h (regno_pointer_align): Now unsigned.
10117         * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
10118         is in bits.
10119         * config/i386/i386.c (aligned_operand): Likewise.
10120         * config/sparc/sparc.c (mem_min_alignment): Likewise.
10121         * config/alpha/alpha.c (aligned_memory_operand): Likewise.
10122         (unaligned_memory_operand): Likewise.
10123         (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
10124         Also make alignments and sizes unsigned and some whitespace cleanup.
10125         (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
10126
10127         * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
10128         (expand_builtin_apply): Pass alignment to emit_block_move in bits.
10129         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
10130         (expand_builtin_memset): Likewise, but to clear_storage.
10131         * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
10132         (restore_fixed_argument_area): Likewise.
10133         (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
10134         (load_register_parameters): Likewise, to emit_group_load.
10135         (expand_call): Likewise, to emit_group_store and emit_block_move.
10136         (emit_library_call_value_1): Likewise, to emit_block_move.
10137         (store_one_arg): Likewise, and to emit_push_insn.
10138         * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
10139         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
10140         * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
10141         (emit_block_move, emit_group_load, emit_group_store): Likewise.
10142         (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
10143         (expand_assigment, store_expr, store_constructor_field): Likewise.
10144         (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
10145         (store_constructor, store_field, get_inner_reference): Likewise.
10146         Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
10147         (expand_expr, case COMPONENT_REF): Likewise.
10148         (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
10149         and positions; reindent code.
10150         * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
10151         * function.c (purge_addressof_1): Pass bit align to store_bit_field.
10152         (assign_parms): Likewise to emit_group_store.
10153         * optabs.c (prepare_cmp_insn): Alignment is in bits.
10154         (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
10155         * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
10156         (expand_return): Likewise to {extract,store}_bit_field.
10157         * stor-layout.c (get_mode_alignment): Minor cleanup.
10158         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
10159         * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
10160
10161 2000-03-29  Nick Clifton  <nickc@cygnus.com>
10162
10163         * config/arm/arm.h: Undo effects of previous delta:
10164         (ASM_SPEC): Do not define.
10165         (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
10166
10167         * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
10168         typo.
10169
10170 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
10171
10172         * cppinit.c (cpp_start_read): Call initialize_dependency_output
10173         only after reading in the primary source file.
10174
10175 2000-03-29  Geoff Keating  <geoffk@cygnus.com>
10176
10177         * c-common.c (c_common_nodes_and_builtins): The first parameter to
10178         __builtin_va_start and __builtin_va_copy is now either a 'va_list'
10179         or a reference to a va_list.
10180         * builtins.c (stabilize_va_list): Simplify now we don't have to
10181         work around C array address decay.
10182         * c-typeck.c (convert_for_assignment): Handle assignment to
10183         a reference parameter by taking the address of the RHS.
10184         * ginclude/stdarg.h (va_start): Don't take address of first parameter.
10185         (va_copy): Likewise.
10186         (__va_copy): Likewise.
10187         * ginclude/varargs.h (va_start): Likewise.
10188         (__va_copy): Likewise.
10189
10190 Wed Mar 29 15:44:53 2000  Jeffrey A Law  (law@cygnus.com)
10191
10192         * i386/djgpp.h: Remove extraneous "+".
10193
10194         * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
10195
10196         * calls.c (expand_call): Fix typo in last change.
10197
10198 2000-03-29  Jason Merrill  <jason@casey.cygnus.com>
10199
10200         * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
10201         been expanded.
10202
10203 Wed Mar 29 15:39:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10204
10205         * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
10206         (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
10207         (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
10208         * tree.c (bit_position, byte_position): Likewise.
10209         * tree.h: Declare new functions.
10210
10211 2000-03-29  Nick Clifton  <nickc@cygnus.com>
10212
10213         * config/arm/arm.c: Minor formatting changes/
10214         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
10215         already defined.
10216         (ASM_SPEC): Define if not already defined.
10217
10218 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
10219
10220         * cppfiles.c (cpp_read_file): Don't pass zero-length string to
10221         _cpp_calc_hash.
10222
10223 2000-03-29  Jakub Jelinek  <jakub@redhat.com>
10224
10225         * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
10226         value, don't output it as unsigned.
10227
10228 Wed Mar 29 10:53:49 2000  Jeffrey A Law  (law@cygnus.com)
10229
10230         * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
10231
10232 2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10233
10234         * c-common.c (c_common_nodes_and_builtins): Don't special case
10235         cplus_mode when declaring builtin bzero/bcmp, always avoid
10236         prototype arguments.
10237
10238 2000-03-29  Bruce Korb  <bkorb@gnu.org>
10239
10240         * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
10241         to a non-file
10242
10243 Wed Mar 29 15:08:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
10244
10245         Convert ACCUMULATE_OUTGOING_ARGS to an expression.
10246         * calls.c (PUSH_ARGS_REVERSED) Change to expression.
10247         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
10248         (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
10249         (save_fixed_argument_area, restore_fixed_argument_area):
10250         conditionize by #ifdef REG_PARM_STACK_SPACE only.
10251         (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
10252         to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
10253         (precompute_register_parameters): Avoid #ifdefs on
10254         ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
10255         (stire_one_args): Likewise.
10256         (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
10257         (emit_library_call_value_1): Likewise.
10258         (compute_argument_block_size): Align to STACK_BOUNDARY only for
10259         ACCUMULATE_OUTGOING_ARGS.
10260         * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
10261         value.
10262         (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
10263         (use_crosses_set_p): Likewise.
10264         * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
10265         #define ACCUMULATE_OUTGOING_ARGS 1.
10266         * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
10267         frames.
10268         * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
10269         constants.
10270         (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
10271         (TARGET_SWITCHES): Add push-args, no-push-args,
10272         accumulate-outgoing-args and no-accumulate-outgoing-args.
10273         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
10274         * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
10275         (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
10276         and PUSH_ROUNDING.
10277         (emit_push_insn): Likewise.
10278         * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
10279         (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
10280         * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
10281         (STACK_DYNAMIC_OFFSET): Define correctly for both
10282         ACCUMULATE_OUTGOING_ARGS and normal mode.
10283         * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
10284         * tm.texi (PUSH_ARGS): Document.
10285         (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
10286
10287 Wed Mar 29 11:51:13 MET DST 2000  Jan Hubicka  <jh@suse.cz>
10288
10289         * flags.h (flag_optimize_sibling_calls): Declare.
10290         * calls.c (expand_call): Fail sibcall when
10291         !flag_optimize_sibling_calls
10292         * invoke.texi (flag_optimize_sibling_calls): Document.
10293         * toplev.c (flag_optimize_sibling_calls): New global variable.
10294         (f_options): Add flag_optimize_sibling_calls.
10295         (rest_of_compilation): Conditionize
10296         optimize_sibling_and_tail_recursive_calls by
10297         flag_optimize_sibling_calls.
10298         (main): Set flag_optimize_sibling_calls for -O2.
10299         * stmt.c (expand_return): Conditionize tail recursion by
10300         flag_optimize_sibling_calls.
10301
10302 2000-03-29  Richard Henderson  <rth@cygnus.com>
10303
10304         * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
10305         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
10306
10307 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
10308
10309         * except.c (add_eh_table_entry): Mark type_info's as referenced.
10310
10311 2000-03-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10312
10313         * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
10314         is given.
10315         * config/rs6000/aix43.h (CPP_SPEC): Likewise.
10316         * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
10317         * config/rs6000/aix.h: then modified likewise.
10318
10319 2000-03-28  Richard Henderson  <rth@cygnus.com>
10320
10321         * rtl.h: Redistribute enum reg_note documentation.
10322         Kill trailing whitespace.
10323         * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
10324         Kill trailing whitespace.
10325
10326 2000-03-28  Zack Weinberg  <zack@wolery.cumb.org>
10327
10328         * cppfiles.c (hash_IHASH): Just return i->hash.
10329         (cpp_included): Set dummy.hash using _cpp_calc_hash.  Use
10330         htab_find_with_hash.
10331         (cpp_read_file): Likewise.
10332         (find_include_file): Likewise.  Properly initialize
10333         ih->nshort.  Share ih->name and ih->nshort if possible.
10334         * cpphash.c (_cpp_calc_hash): New function.
10335         (hash_HASHNODE): Just return h->hash.
10336         (_cpp_lookup): Set dummy.hash using _cpp_calc_hash.  Use
10337         htab_find_with_hash.
10338         * cpphash.h: Prototype _cpp_calc_hash.
10339         * cppinit.c (initialize_builtins): Provide a valid hash
10340         to _cpp_make_hashnode, using _cpp_calc_hash.
10341
10342         * cpphash.c (collect_expansion): # is not a special character
10343         in object-like macros.  In -traditional mode, /**/ is not
10344         token paste at the beginning or end of the line.
10345         * cpplib.c (do_include, do_import, do_include_next): If
10346         parse_include fails, return immediately.
10347
10348 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
10349
10350         * config/arm/arm.md (return peepholes): Update to reflect the new
10351         call insn patterns.
10352         * config/arm/arm.c (arm_volatile_func): Also check
10353         current_function_nothrow.
10354         (output_return_instruction, output_func_prologue): Use it.
10355         (arm_output_epilogue, arm_expand_prologue): Likewise.
10356
10357 2000-03-27  Tom Tromey  <tromey@cygnus.com>
10358
10359         * gcc.c (handle_braces): In {x*...} case, break out of loop if
10360         switch is found.
10361
10362 Tue Mar 28 11:55:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10363
10364         * expr.c (store_constructor): SIZE now signed.
10365         For EXPR_SIZE, don't evaluate size; just needed if constant.
10366         * fold-const.c (fold): Fix a number of cases when folded tree is
10367         wrong type.
10368         * function.c (flush_addressof): Reenable.
10369         * tree.h (flush_addressof): Likewise.
10370         * toplev.c (independent_decode_option): Look at strings_processed.
10371         * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
10372
10373 Tue Mar 28 08:29:46 2000  Jan Hubicka  <jh@suse.cz>
10374
10375         * sibcall.c (indentify_call_return_value): Find last call in the chain;
10376         Allow stack adjustment after function call.
10377
10378         * regmove.c (struct csa_memlist): Make mem field rtx *.
10379         (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
10380         (try_apply_stack_adjustment): Replace whole MEM rtx.
10381         (combine_stack_adjustments_for_block): Update calls
10382         to record_one_stack_ref.
10383
10384 2000-03-28  Neil Booth  <NeilB@earthling.net>
10385
10386         * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
10387         '\\' rather than a null character, so nulls are not special.  Fix
10388         "\\\n" handling in end-of-buffer conditions.  Use trigraph map to
10389         speed trigraph conversion.
10390         (_cpp_init_input_buffer): Initialize trigraph map.
10391
10392 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
10393
10394         * config/i386/i386.c (output_387_binary_op): Correct intel
10395         mode assembly output, and add spaces after commas in AT&T
10396         output.  Correct Unixware assembler comment.  Document input
10397         constraints.  Comment fp operations.  Reduce profligate buffer
10398         size.  Remove extraneous abort.  Localize temp var.
10399         (SYSV386_COMPAT): Define.  Add !SYSV386_COMPAT code.
10400         (output_fix_trunc): Add spaces after commas in assembly output.
10401
10402 2000-03-27  Richard Henderson  <rth@cygnus.com>
10403
10404         * i386-protos.h (ix86_match_ccmode): Declare.
10405         * i386.c (ix86_match_ccmode): New.
10406         (ix86_expand_fp_compare): Update for pattern renames.
10407         (ix86_expand_strlensi_unroll_1): Likewise.
10408         * i386.h (EXTRA_CC_MODES): Add CCZ.
10409         (SELECT_CC_MODE): Use it for EQ/NE zero.
10410         * i386.md (cmpsi_ccz_1): New.
10411         (cmpqi_ccz_1): New.
10412         (*testsi_ccz_1): New.
10413         (testqi_ccz_1): New.
10414         (cmpsi_ccno_1): Rename from cmpsi_0.
10415         (testsi_ccno_1): Rename from testsi_1.
10416         (testqi_ccno_1): Rename from testqi_1.
10417         (*testqi_ext_ccz_0): Rename from testqi_ext_0.
10418         (testqi_ext_ccno_0): Rename from *testqi_ext_1.
10419         (*cmphi_0): Use ix86_match_ccmode.
10420         (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
10421         (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
10422         (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
10423         (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
10424         (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
10425         (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
10426         (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
10427         (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
10428         (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
10429         (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
10430         (appropriate peepholes): Likewise.
10431         (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
10432         (*subsi_3, *subhi_3, *subqi_3): Remove.
10433         (*negdi2_1+1 splitter): Use CCZ for neg patterns.
10434         (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
10435         (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
10436         (*neghi2_cmpz, *negqi2_cmpz): Similarly.
10437         (x86_shift_adj_1): Use CCZ.
10438         (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
10439
10440 2000-03-27  Stan Cox  <scox@cygnus.com>
10441
10442         * resource.h (mark_resource_type): New.
10443         * resource.c (find_dead_or_set_registers, mark_target_live_regs,
10444         find_free_register): Use mark_resource_type.
10445         (mark_set_resources): Change include_delayed_effects
10446         to mark_resource_type.
10447         * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
10448         redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
10449         Use mark_resource_type.
10450
10451 2000-03-27  Richard Henderson  <rth@cygnus.com>
10452
10453         * i386.md (call_pop_0, call_value_pop_0): New.
10454         (call_pop_1): Remove constraint from unused arg.  Support sibcalls.
10455         (call_value_pop_1): Likewise.
10456         (call_0, call_value_0): New.
10457         (call_1, call_value_1): Remove constraint from unused arg.
10458
10459 2000-03-27  Nick Clifton  <nickc@cygnus.com>
10460
10461         * invoke.texi (Spec Files): Document new spec % command created by
10462         Tom Tromey's recent patch.
10463
10464 2000-03-27  Jakub Jelinek  <jakub@redhat.com>
10465
10466         * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
10467         if not defined.
10468
10469 Mon Mar 27 06:04:22 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10470
10471         * expr.c (expand_assignment): Fix typo in last change.
10472
10473         * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
10474
10475 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10476
10477         * c-convert.c (convert): Return if output or input type is ERROR_MARK.
10478         * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
10479         and DECL_INLINE if FUNCTION_DECL.
10480         (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
10481         (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
10482         Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
10483         (combine_parm_decls): Likewise.
10484         * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
10485         * print-tree.c (print_node): Likewise.
10486         Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
10487         DECL_TRANSPARENT_UNION on proper decl types.
10488         Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
10489         * stor-layout.c (layout_decl): Only check DECL_PACKED and
10490         DECL_BIT_FIELD of FIELD_DECL.
10491         * tree.h (DECL_RESULT_FLD): New macro.
10492
10493         * expr.c (expand_assignment): Add code to handle variable-sized
10494         BLKmode case.
10495
10496 2000-03-26  Richard Henderson  <rth@cygnus.com>
10497
10498         * calls.c (expand_call): Pass parms not original exp to
10499         optimize_tail_recursion.  Mind return value instead of looking
10500         for a barrier.
10501         * stmt.c (optimize_tail_recursion): Take parameter list, not entire
10502         call_expr.  Move checks for call_expr and current_function_decl ...
10503         (expand_return): ... here.
10504
10505 2000-03-26  Tom Tromey  <tromey@cygnus.com>
10506
10507         * gcc.c (handle_braces): Recognize `%{<S}' construct.
10508         (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
10509         defines.
10510         (process_command): Use them.
10511         (check_live_switch): Likewise.
10512         (give_switch): Skip ignored switches.
10513
10514 2000-03-26  Jan Hubicka  <jh@suse.cz>
10515
10516         * jump.c (jump_optimize_1): Fix typo in elide optimizations
10517         for minimal jump pass test.
10518
10519 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
10520
10521         * integrate.c (function_cannot_inline_p): Do inline functions that
10522         return `void'.
10523
10524 Sun Mar 26 11:37:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10525
10526         * stor-layout.c (layout_type, set_sizetype): early_type_list is
10527         now a list of TREE_LIST entries, not types.
10528         * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
10529
10530         * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
10531         * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
10532         int_bit_position.
10533         * config/mips/mips.c (function_arg): Likewise; also remove cast
10534         and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
10535         (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
10536         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
10537         * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
10538         (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
10539         (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
10540         (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
10541         (struct mips_arg): arg_number, arg_words, fp_arg_words, and
10542         num_adjusts now unsigned.
10543         (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
10544         * config/sparc/sparc.c (struct function_arg_record_value_parms):
10545         NREGS now unsigned.
10546         (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
10547         as is BITPOS variable; use host_integerp and int_bit_position.
10548         (function_arg_record_value_2): Likewise.
10549         (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
10550         Variable REGNO now unsigned.
10551         (function_arg_record_value): NREGS now unsigned.
10552
10553 2000-03-26  Bernd Schmidt  <bernds@cygnus.co.uk>
10554
10555         * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
10556
10557 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10558
10559         * Rework fields used to describe positions of bitfields and
10560         modify sizes to be unsigned and use HOST_WIDE_INT.
10561         * alias.c (reg_known_value_size): Now unsigned.
10562         * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
10563         (really_start_incremental_init): Use bitsize_zero_node.
10564         (push_init_level, pop_init_level, output_init_element): Likewise.
10565         Use bitsize_unit_node and bitsize_one_node.
10566         (output_pending_init_elements, process_init_element): Likewise.
10567         * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
10568         (make_extraction): Position and length HOST_WIDE_INT and unsigned
10569         HOST_WIDE_INT, respectively.
10570         (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
10571         (num_sign_bit_copies): Returns unsigned.
10572         BITWIDTH now unsigned; rework arithmetic.
10573         Remove recursive call from arg to MAX.
10574         (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
10575         (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
10576         REGNO now unsigned.
10577         (set_nonzero_bit_and_sign_copies): NUM now unsigned.
10578         (find_split_point, expand_compound_operation, make_extraction): LEN
10579         now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
10580         (make_field_assignment): Likewise.
10581         (combine_simplify_rtx): Add cast.
10582         (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
10583         (force_to_mode): WIDTH now unsigned; add cast.
10584         (if_then_else_cond): SIZE now unsigned.
10585         (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
10586         (extended_count): Now returns unsigned.
10587         (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
10588         Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
10589         (simplify_comparison): MODE_WIDTH now unsigned.
10590         (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
10591         (mark_used_regs_combine): Likewise; rework arithmetic.
10592         (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
10593         (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
10594         (record_promoted_value): REGNO now unsigned.
10595         (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
10596         (get_last_value): REGNO now unsigned.
10597         (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
10598         (reg_dead_regno, reg_dead_endregno): Now unsigned.
10599         (remove_death): Arg REGNO now unsigned.
10600         (move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
10601         (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
10602         now unsigned.
10603         * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
10604         * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
10605         (struct cse_reg_info): REGNO now unsigned.
10606         (cached_regno): Now unsigned.
10607         (REGNO_QTY_VALID_P): Add cast.
10608         (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
10609         (remove_invalid_regs): Likewise.
10610         (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
10611         as are variables END and I.
10612         (get_cse_reg_info, insert): Likewise.
10613         (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
10614         (canon_hash): Likewise.
10615         (insert_regs, lookup_for_remove): REGNO now unsigned.
10616         (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
10617         New variable RN.
10618         * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
10619         * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
10620         * emit-rtl.c (subreg_realpart_p): Add cast.
10621         (operand_subword): Arg I is now unsigned as is var PARTWORDS.
10622         (operand_subword_force): Arg I is now unsigned.
10623         * except.c (eh_regs): Variable I is now unsigned.
10624         * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
10625         * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
10626         length is unsigned HOST_WIDE_INT; likewise for internal variables.
10627         (store_split_bit_field, extract_fixed_bit_field): Likewise.
10628         (extract_split_bit_field, store_bit_field, extract_bit_field):
10629         Likewise.
10630         * expr.c (store_constructor_fields, store_constructor, store_field):
10631         Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
10632         (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
10633         (do_jump): Likewise.
10634         (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
10635         MAX_SIZE is now unsigned.
10636         (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
10637         (emit_group_store): Likewise.
10638         (emit_move_insn): I now unsigned.
10639         (store_constructor): Use host_integerp, tree_low_cst, and
10640         bitsize_unit_node.
10641         (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
10642         Rework all calculations to use trees and new fields.
10643         * expr.h (promoted_input_arg): Regno now unsigned.
10644         (store_bit_field, extract_bit_field): Adjust types of pos and size.
10645         (mark_seen_cases): Arg is HOST_WIDE_INT.
10646         * flow.c (verify_wide_reg_1): REGNO now unsigned.
10647         * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
10648         precisions and alignments are unsigned.
10649         (optimize_bit_field_compare, fold_truthop): Likewise.
10650         (int_const_binop): Adjust threshold for size_int_type_wide call.
10651         (fold_convert): Likewise.
10652         (size_int_type_wide): Make table larger and fix thinko that only
10653         had half of table used.
10654         (all_ones_mask_p, fold): Precisions are unsigned.
10655         * function.c (put_reg_info_stack): REGNO is unsigned.
10656         (instantiate_decl): Size is HOST_WIDE_INT.
10657         (instantiate_virtual_regs): I is unsigned.
10658         (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
10659         (promoted_input_arg): REGNO is unsigned.
10660         * function.h (struct function): x_max_parm_reg is now unsigned.
10661         * gcse.c (max_gcse_regno): Now unsigned.
10662         (struct null_pointer_info): min_reg and max_reg now unsigned.
10663         (lookup_set, next_set): REGNO arg now unsigned.
10664         (compute_hash_table): REGNO and I now unsigned.
10665         (handle_avail_expr): regnum_for_replacing now unsigned.
10666         (cprop_insn): REGNO now unsigned.
10667         (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
10668         * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
10669         * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
10670         * hard-reg-set.h (reg_class_size): Now unsigned.
10671         * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
10672         * jump.c (mark_modified_reg): I now unsigned; add cast.
10673         (rtx_equal_for_thread_p): Add cast.
10674         * loop.c (max_reg_before_loop): Now unsigned.
10675         (struct_movable): REGNO now unsigned.
10676         (try_copy_prop): REGNO arg unsigned.
10677         (regs_match_p): XN and YN now unsigned.
10678         (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
10679         (strength_reduce): Likewise; NREGS also unsigned.
10680         (first_increment_giv, last_increment_giv unsigned): Now unsigned.
10681         * loop.h (struct iv_class): REGNO now unsigned.
10682         (max_reg_before_loop, first_increment_giv, last_increment_giv):
10683         Now unsigned.
10684         * machmode.h (mode_size, mode_unit_size): Now unsigned.
10685         (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
10686         * optabs.c (expand_binop): I and NWORDS now unsigned.
10687         (expand_unop): I now unsigned.
10688         * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
10689         print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
10690         * real.c (significand_size): Now returns unsigned.
10691         * real.h (significand_size): Likewise.
10692         * regclass.c (reg_class_size): Now unsigned.
10693         (choose_hard_reg_mode): Both operands now unsigned.
10694         (record_reg_classes): REGNO and NR now unsigned.
10695         (reg_scan): NREGS now unsigned.
10696         (reg_scan_update): old_max_regno now unsigned.
10697         (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
10698         * reload.c (find_valid_class): BEST_SIZE now unsigned.
10699         (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
10700         (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
10701         Likewise for variable R.
10702         (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
10703         as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
10704         (find_equiv_reg): Add casts.
10705         (regno_clobbered_p): Arg REGNO now unsigned.
10706         * reload.h (struct reload): NREGS now unsigned.
10707         (refers_to_regno_for_reload_p): Regno args are unsigned.
10708         (regno_clobbered_p): Likewise.
10709         * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
10710         (compute_use_by_pseudos): REGNO now unsigned.
10711         (find_reg): I and J now unsigned, new variable K, and change loop
10712         variables accordingly; THIS_NREGS now unsigned.
10713         (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
10714         (spill_hard_reg): REGNO arg now unsigned; add casts.
10715         (forget_old_reloads_1): REGNO, NR, and I now unsigned.
10716         (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
10717         (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
10718         END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
10719         (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
10720         (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
10721         (emit_reload_insns): REGNO now unsigned.
10722         (reload_cse_move2add): Add cast.
10723         (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
10724         and rework loop.
10725         * resource.c (mark_referenced_resources, mark_set_resources): New
10726         variable R; REGNO and LAST_REGNO now unsigned.
10727         (mark_target_live_regs): J and REGNO now unsigned.
10728         * rtl.c (mode_size, mode_unit_size): Now unsigned.
10729         * rtl.h (union rtunion_def): New field rtuint.
10730         (XCUINT): New macro.
10731         (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
10732         (operand_subword, operand_subword_force): Word number is unsigned.
10733         (choose_hard_reg_mode): Operands are unsigned.
10734         (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
10735         (find_regno_note, find_regno_fusage, replace_regs): Likewise.
10736         (regno_use_in, combine_instructions, remove_death): Likewise.
10737         (reg_scan, reg_scan_update): Likewise.
10738         (extended_count): Return is unsigned.
10739         * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
10740         INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
10741         (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
10742         (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
10743         (reg_reg_last_1): FIRS and LAST now unsigned.
10744         (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
10745         (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
10746         now unsigned.
10747         (find_regno_note, regno_use_in): Arg REGNO now unsigned.
10748         (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
10749         (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
10750         (replace_regs): Arg NREGS now unsigned.
10751         * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
10752         * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
10753         (simplify_binary_operation): Likewise.
10754         (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
10755         THIS_LAST now unsigned.
10756         (cselib_record_set): Add cast.
10757         * ssa.c (ssa_max_reg_num): Now unsigned.
10758         (rename_block): REGNO now unsigned.
10759         * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
10760         sizes now unsigned.
10761         (all_cases_count): Just return -1 not -2.
10762         COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
10763         Rework tests to use trees whenever possible.
10764         Use host_integerp and tree_low_cst.
10765         (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
10766         Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
10767         (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
10768         * stor-layout.c (mode_for_size): SIZE arg now unsigned.
10769         (smallest_mode_for_size): Likewise.
10770         (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
10771         KNOWN_ALIGN is now an alignment, so simplify code.
10772         Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
10773         (start_record_layout): Renamed from new_record_layout_info.
10774         Update to new fields.
10775         (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
10776         New functions.
10777         (place_union_field): Renamed from layout_union_field.
10778         Update to use new fields in rli.
10779         (place_field): Renamed from layout_field.
10780         Major rewrite to use new fields in rli; pass alignment to layout_decl.
10781         (finalize_record_size): Rework to use new fields in rli and handle
10782         union.
10783         (compute_record_mode): Rework to simplify and to use new DECL fields.
10784         (finalize_type_size): Make rounding more consistent.
10785         (finish_union_layout): Deleted.
10786         (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
10787         (layout_type, case RECORD_TYPE): Call new function names.
10788         (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
10789         (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
10790         (get_best_mode): UNIT is now unsigned; remove casts.
10791         * tree.c (bit_position): Compute from new fields.
10792         (byte_position, int_byte_position): New functions.
10793         (print_type_hash_statistics): Cast to remove warning.
10794         (build_range_type): Use host_integerp and tree_low_cst to try to hash.
10795         (build_index_type): Likewise; make subtype of sizetype.
10796         (build_index_2_type): Pass sizetype to build_range_type.
10797         (build_common_tree_nodes): Use size_int and bitsize_int to
10798         initialize nodes; add bitsize_{zero,one,unit}_node.
10799         * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
10800         (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
10801         (DECL_PACKED, DECL_BIT_FIELD): Likewise.
10802         (DECL_FIELD_BITPOS): Deleted.
10803         (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
10804         (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
10805         (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
10806         (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
10807         (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
10808         (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
10809         (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
10810         (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
10811         (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
10812         (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
10813         (DECL_ALIGN): Adjust to new field in union.
10814         (DECL_OFFSET_ALIGN): New field.
10815         (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
10816         (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
10817         (union tree_decl): Add struct for both aligns.
10818         (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
10819         (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
10820         (struct record_layout_info): Rework fields to have offset
10821         alignment and byte and bit position.
10822         (start_record_layout, place_field): Renamed from old names.
10823         (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
10824         (byte_position, int_byte_position): Likewise.
10825         (get_inner_reference): Change types of position and length.
10826         * unroll.c (unroll_loop): New variable R; use for some loops.
10827         MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
10828         (calculate_giv_inc): Arg REGNO now unsigned.
10829         (copy_loop_body): REGNO and SRC_REGNO now unsigned.
10830         * varasm.c (assemble_variable): Clean up handling of size using
10831         host_integerp and tree_low_cst.
10832         (decode_addr_const): Use byte, not bit, position.
10833         (output_constructor): bitpos and offsets are HOST_WIDE_INT;
10834         use tree_low_cst and int_bit_position.
10835         * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
10836
10837 Fri Mar 24 20:13:49 2000  Jason Eckhardt  <jle@cygnus.com>
10838
10839         * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
10840         (reorder_block_def): New members eff_head and eff_end.
10841         (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
10842         (verify_insn_chain): New function.
10843         (skip_insns_between_block): Add code to skip deleted insns.
10844         Check for note before using.
10845         (chain_reorder_blocks): Replace calls to skip_insns_between_block
10846         with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
10847         Check for note before using.
10848         (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
10849         (fixup_reorder_chain): Restructure, clean up, defect removal.
10850         (reorder_basic_blocks): Remove last_insn and references to it.
10851         Moved insn chain verification code into a new function (see above).
10852         Delete defective code that sets last insn.
10853         Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
10854         all blocks.
10855
10856 2000-03-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10857
10858         * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
10859
10860 2000-03-24  Richard Henderson  <rth@cygnus.com>
10861
10862         * tree.c (lang_safe_for_unsave): Remove.
10863         (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
10864         allowing for two levels of unsafeness.  Remove lang hook.
10865         * tree.h: Update declarations.
10866         * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
10867         Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
10868         Always fail sibcalls when there are pending cleanups.
10869
10870 2000-03-24  Geoff Keating  <geoffk@cygnus.com>
10871
10872         * flow.c (propagate_block): When we delete an ADDR_VEC,
10873         also delete the BARRIER following it if there is one.
10874
10875 2000-03-24  Richard Henderson  <rth@cygnus.com>
10876
10877         * builtins.c (expand_builtin_bzero): Convert `length' argument
10878         to sizetype.
10879
10880 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
10881
10882         * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
10883         comparison if regno's are equal.
10884         * calls.c (initialize_argument_informat): Add ecf_flags argument.
10885         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10886         (expand_call): Update caller.
10887         Avoid making a sibling call if argument size of the callee is larger
10888         than argument size of the caller.
10889         Call hard_function_value with outgoing set if in sibcall pass.
10890         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10891
10892         * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
10893         Change LEAF_REGISTERS from an array initializer to actual array
10894         identifier. Move static global variable into the function.
10895         (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
10896         sequences for leaf functions.
10897         * global.c (global_alloc): Likewise.
10898         * tm.texi (LEAF_REGISTERS): Update documentation.
10899
10900         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
10901         TARGET_FLAT leaf disabling hack.
10902         (LEAF_REGISTERS): Changed from an array initializer to actual array
10903         identifier to avoid duplication and remove the above hack.
10904         (FUNCTION_OK_FOR_SIBCALL): Define.
10905         * config/sparc/sparc.md (sibcall): New attr type. Use it almost
10906         always like call attribute.
10907         (eligible_for_sibcall_delay): New attribute.
10908         (sibcall): New delay type.
10909         (sibcall, sibcall_value, sibcall_epilogue): New expands.
10910         (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
10911         sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
10912         * config/sparc/sparc.c (sparc_leaf_regs): New array.
10913         (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
10914         New functions.
10915         (output_function_epilogue): Move part of the code into
10916         output_restore_regs.
10917         (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
10918         TYPE_SIBCALL.
10919         * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
10920         prototypes.
10921
10922         * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
10923         until infrastructure is finished.
10924
10925 Fri Mar 24 13:49:45 2000  Jeffrey A Law  (law@cygnus.com)
10926
10927         * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
10928         (save_parm_insns): Not here.
10929
10930 2000-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10931
10932         * builtins.c (expand_builtin_bzero): New function.
10933         (expand_builtin): Handle bzero.
10934
10935         * builtins.def: Add BUILT_IN_BZERO.
10936
10937         * c-common.c (c_common_nodes_and_builtins): Provide builtin
10938         prototype & function for bzero.
10939
10940 2000-03-23  Michael Meissner  <meissner@redhat.com>
10941
10942         * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
10943         change adding TARGET_FP to the TF floating point insns, except for
10944         trunctfsf2, which generates direct calls to truncdfsf2.
10945
10946 2000-03-23  Geoff Keating  <geoffk@cygnus.com>
10947
10948         * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
10949         try to protect against middle-end changes that break binary
10950         compatibility.
10951         (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
10952
10953 2000-03-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10954
10955         * config/c4x/c4x.md (load_immed_address):  Add DP reg clobber.
10956
10957 Thu Mar 23 17:10:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10958
10959         * calls.c (expand_call): If TARGET is passed by reference and
10960         is readonly, write a CLOBBER.
10961
10962 2000-03-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10963
10964         * builtins.c (expand_builtin): Handle bcmp.
10965
10966         * builtins.def: Add BUILT_IN_BCMP.
10967
10968         * c-common.c (c_common_nodes_and_builtins): Provide builtin
10969         prototype & function for bcmp.
10970
10971 Thu Mar 23 11:34:39 2000  Jim Wilson  <wilson@cygnus.com>
10972
10973         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
10974         (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
10975         * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
10976
10977 Thu Mar 23 16:04:40 2000  Andrew Haley  <aph@cygnus.com>
10978
10979         * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
10980         alternative when using -fp64 -gp32.
10981
10982 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
10983
10984         * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
10985         * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
10986         * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
10987
10988         * frame.h (frame_state): Revert last change.
10989         * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
10990         * libgcc2.c (throw_helper): Revert last change.
10991
10992 2000-03-22  Richard Henderson  <rth@cygnus.com>
10993
10994         * stmt.c (expand_asm_operands): Don't promote the temporary.
10995
10996 2000-03-22  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10997
10998         * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
10999         * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
11000           c_get_alias_set): Likewise.
11001         * c-decl.c (duplicate_decls): Likewise.
11002         * c-typeck.c (default_conversion,build_unary_op): Likewise.
11003         * calls.c (initialize_argument_information): Likewise.
11004         * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
11005         Likewise.
11006         * dwarfout.c (decl_class_context,output_type): Likewise.
11007         * expr.c (get_inner_reference): Likewise.
11008         * fold-const.c (simple_operand_p,fold): Likewise.
11009         * function.c (aggregate_value_p): Likewise.
11010         * stmt.c (expand_asm_operands): Likewise.
11011         * varasm.c (named_section): Likewise.
11012
11013 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
11014
11015         Implement dwarf2 exception handling for the ARM.
11016         * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
11017         (DWARF_FRAME_RETURN_COLUMN): Define.
11018         * config/arm/arm.c (emit_multi_reg_push): Return rtx.  Attach
11019         REG_FRAME_RELATED_EXPR note.
11020         (emit_sfm): Likewise.
11021         (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
11022         * dwarf2out.c (reg_save): Handle saving a register to itself.
11023         (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
11024         * except.c (eh_regs): Don't use the static chain reg if it's
11025         callee-saved.
11026         * frame.h (frame_state): Add cfa_saved field.
11027         * frame.c (execute_cfa_insn): Set it.
11028         * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
11029         the epilogue.
11030         * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
11031         Now takes a parm.
11032         (instantiate_virtual_regs): Adjust.
11033         * tm.texi: Adjust.
11034         * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
11035         * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
11036         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
11037
11038         * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
11039         (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
11040
11041 2000-03-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11042
11043         * builtins.def: New file.
11044
11045         * Makefile.in (TREE_H): Depend on builtins.def.
11046
11047         * builtins.c (built_in_names): Use builtins.def.
11048
11049         * tree.h (built_in_function): Likewise.
11050
11051 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
11052
11053         * tree.c (size_in_bytes): Return size_zero_node, not
11054         integer_zero_node.
11055
11056 2000-03-22  Geoff Keating  <geoffk@cygnus.com>
11057
11058         * config/fp-bit.c (pack_d): Correct the case when a denormal
11059         is rounded up and stops being denormal.
11060
11061 2000-03-21  Richard Henderson  <rth@cygnus.com>
11062
11063         * config/alpha/alpha.c (function_arg): Check for void_type_node
11064         before using MUST_PASS_IN_STACK.
11065
11066 2000-03-21  Stephane Carrez  <stcarrez@worldnet.fr>
11067
11068         * regmove.c (combine_stack_adjustments_for_block): Check that
11069         the stack pointer is a valid memory address.
11070
11071 Wed Mar 22 11:44:50 MET 2000  Jan Hubicka  <jh@suse.cz>
11072
11073         * calls.c: re-install Mar 16 emit_library_call merge.
11074
11075 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
11076
11077         * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
11078         we cannot be sure that if reload_completed base register will
11079         be properly aligned.
11080
11081 2000-03-21  Richard Henderson  <rth@cygnus.com>
11082
11083         * flow.c (delete_block): Fix typo last change.
11084
11085 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
11086
11087         * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
11088         not COMPLETE_TYPE_P, to check the type of the expression.
11089
11090 2000-03-21  Michael Meissner  <meissner@redhat.com>
11091
11092         * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
11093         all floating point insns that just tested the macro
11094         TARGET_HAS_XFLOATING_LIBS.
11095         (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
11096         used to only use the gprs.
11097
11098 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
11099
11100         * tree.h (COMPLETE_TYPE_P): New macro.
11101         (COMPLETE_OR_VOID_TYPE_P): New macro.
11102         (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
11103         * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
11104         * c-aux-info.c (gen_type): Use them.
11105         * c-common.c (c_expand_expr_stmt): Likewise.
11106         * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
11107         grokdeclarator, grokparms, finish_struct, start_function,
11108         store_parm_decls, combine_parm_decls): Likewise.
11109         * c-parse.y (cast_expr): Likewise.
11110         * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
11111         c_size_in_bytes, c_alignof, build_component_ref,
11112         build_indirect_ref, build_array_ref, convert_arguments,
11113         build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
11114         * calls.c (initialize_argument_information): Likewise.
11115         * convert.c (convert_to_integer): Likewise.
11116         * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
11117         * dwarfout.c (location_or_const_value_attribute,
11118         output_enumeration_type_die, output_structure_type_die,
11119         output_union_type_die, output_type): Likewise.
11120         * expr.c (safe_from_p, expand_expr): Likewise.
11121         * function.c (assign_parms): Likewise.
11122         * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
11123         * tree.c (build_array_type, build_function_type,
11124         build_method_type, build_offset_type, build_complex_type): Likewise.
11125         * c-parse.c, c-parse.h: Regenerated.
11126
11127 2000-03-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11128
11129         * config/c4x/rtems.h: Include config/rtems.h.
11130
11131 Tue Mar 21 09:24:00 2000  Denis Chertykov  <denisc@overta.ru>
11132
11133         * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
11134         decl is a FUNCTION_DECL
11135
11136 Mon Mar 20 19:53:53 2000  Jim Wilson  <wilson@cygnus.com>
11137
11138         * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
11139         function uses output registers.  Don't save RP for leaf functions.
11140         Do save RP even if no epilogue.
11141         * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
11142         (CALL_USED_REGISTERS): Unmark in registers.
11143         (REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
11144         to near the middle.
11145
11146 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
11147
11148         * config/rs6000/rs6000.md (bunordered): New expander.
11149         (bordered): New expander.
11150         (buneq): New expander.
11151         (bunge): New expander.
11152         (bungt): New expander.
11153         (bunle): New expander.
11154         (bunlt): New expander.
11155         (bltgt): New expander.
11156
11157         * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
11158         (ccr_bit_negated_p): New function.
11159         (print_operand): For %C, generate appropriate cror for UNEQ,
11160         UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.
11161
11162 2000-03-20  Andreas Jaeger  <aj@suse.de>
11163
11164         * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
11165         warning.
11166
11167         * tree.h (safe_for_unsave): Prototype.
11168
11169 2000-03-20  Richard Henderson  <rth@cygnus.com>
11170
11171         * regmove.c (stack_memref_p): Fix typo, reorg for readability.
11172         (combine_stack_adjustments_for_block): Don't allow sp references
11173         in the side of a set we're not fixing up.
11174         * toplev.c (rest_of_compilation): Run combine_stack_adjustments
11175         after life_analysis.
11176
11177 2000-03-20  Richard Henderson  <rth@cygnus.com>
11178
11179         * calls.c (expand_call): Don't bother generating tail call
11180         sequences if there are pending cleanups.  Use
11181         expand_start_target_temps/expand_end_target_temps to elide
11182         cleanups created during sibcall expansion.
11183
11184 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
11185
11186         * configure.in: Set $IFS to a value if it doesn't already have one
11187         in the --enable-checking handling.
11188         * configure: Regenerate.
11189
11190 2000-03-20  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
11191
11192         * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
11193         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
11194         Regenerated.
11195
11196 Mon Mar 20 11:43:15 MET 2000  Jan Hubicka  <jh@suse.cz>
11197
11198         * jump.c (delete_noop_moves): Remove code attempting to
11199         combine stack adjustments.
11200
11201 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
11202
11203         * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
11204         * except.c (emit_cleanup_handler): Use them.
11205         (expand_end_all_catch): Likewise.
11206         * function.c (fixup_var_refs): Likewise.
11207         (expand_function_end): Clear catch_clauses_last.
11208         * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
11209         * except.h (struct eh_status): New field x_catch_clauses_last.
11210         (catch_clauses_last): New define.
11211
11212         * Makefile.in (tree.o): Depend on HASHTAB_H.
11213         * tree.c: Include hashtab.h.
11214         (struct type_hash): Remove next field.
11215         (TYPE_HASH_SIZE): Remove.
11216         (TYPE_HASH_INITIAL_SIZE): New define.
11217         (type_hash_table): Change type to htab_t.
11218         (type_hash_eq, type_hash_hash, print_type_hash_statistics,
11219         mark_hash_entry): New functions.
11220         (init_obstacks): Allocate type hash.
11221         (type_hash_lookup): Use htab functions.
11222         (type_hash_add, mark_type_hash): Likewise.
11223         (dump_tree_statistics): Call print_type_hash_statistics.
11224
11225 2000-03-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11226
11227         * rs6000/t-aix41: New file.
11228
11229         * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
11230
11231 Sun Mar 19 13:27:30 2000  Hans-Peter Nilsson  <hp@axis.com>
11232
11233         * tm.texi (Driver): Fix typos and tweak entry for
11234         INCLUDE_DEFAULTS.
11235         Move misplaced STRUCT_FORCE_BLK entry ...
11236         (Storage Layout): ... to here.
11237         (Run-time Target): Recommend having TARGET_MASK_... helper macros.
11238
11239 2000-03-19  Richard Henderson  <rth@cygnus.com>
11240
11241         * flow.c (delete_block): Delete the addr_vec along with the block.
11242         (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
11243         reference labels.
11244
11245         * fold-const.c (extract_muldiv): Apply type check for defined
11246         overflow to multiply as well as divide.
11247
11248         * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
11249
11250 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
11251
11252         * emit-rtl.c (remove_unncessary_notes): Check that all
11253         NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
11254         associated NOTE_BLOCK.
11255         * function.h (identify_blocks): Update comments.
11256         (reorder_blocks): Declare.
11257         * function.c (identify_blocks): Don't take paramters.
11258         (reorder_blocks): Don't take parameters.
11259         * loop.h (find_loop_tree_blocks): Remove.
11260         (unroll_block_trees): Likewise.
11261         * loop.c (loop_optimize): Don't call find_loop_tree_blocks.  Use
11262         reorder_blocks instead of unroll_block_trees.h
11263         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
11264         * stmt.c (find_loop_tree_blocks): Remove.
11265         (unroll_block_trees): Likewise.
11266         * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
11267         in whole-function mode.
11268         * tree.h (reorder_blocks): Remove declaration.
11269
11270         * expr.c: Include intl.h.
11271         * Makefile.in (expr.o): Depend on intl.h.
11272
11273 2000-03-18  Richard Henderson  <rth@cygnus.com>
11274
11275         * expr.c (emit_move_insn_1): Clarify cannot_inline message.
11276
11277 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
11278
11279         * tree.h (tree_index): Remove enumerals for integer types.
11280         (integer_type_kind): New type.
11281         (integer_types): New variable.
11282         (char_type_node): Adjust.
11283         (signed_char_type_node): Likewise.
11284         (unsigned_char_type_node): Likewise.
11285         (short_integer_type_node): Likewise.
11286         (short_unsigned_type_node): Likewise.
11287         (integer_type_node): Likewise.
11288         (unsigned_type_node): Likewise.
11289         (long_integer_type_node): Likewise.
11290         (long_unsigned_type_node): Likewise.
11291         (long_long_integer_type_node): Likewise.
11292         (long_long_unsigned_type_node): Likewise.
11293         * tree.c (integer_types): New variable.
11294         (init_obstacks): Register it as a root.
11295
11296 Sat Mar 18 14:38:00 2000  Jason Eckhardt  <jle@cygnus.com>
11297
11298         * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
11299         NEXT_INSN. Update last insn in chain.
11300
11301 2000-03-17  Jason Merrill  <jason@casey.cygnus.com>
11302
11303         * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
11304         with TYPE_DECL_SUPPRESS_DEBUG set.
11305
11306 2000-03-18  Richard Henderson  <rth@cygnus.com>
11307
11308         * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
11309
11310 2000-03-18  Richard Henderson  <rth@cygnus.com>
11311
11312         * i386.c (call_insn_operand): Always allow SYMBOL_REF,
11313         care for HALF_PIC_P.
11314         (expander_call_insn_operand): Remove.
11315         (ix86_expand_epilogue): New arg `emit_return' to control return insn.
11316         * i386.h (PREDICATE_CODES): Update.
11317         * i386.md (all call expanders): Remove predicates, remove special
11318         handling for half-pic.
11319         (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
11320         (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
11321         (sibcall_epilogue): New.
11322
11323 2000-03-17  Richard Henderson  <rth@cygnus.com>
11324
11325         * rtlanal.c (single_set): Reject if the parallel has anything
11326         except SET or USE or CLOBBER.
11327
11328 2000-03-17  Jeff Law  <law@cygnus.com>
11329             Richard Henderson  <rth@cygnus.com>
11330
11331         * Makefile.in (OBJS): Add sibcall.o.
11332         (sibcall.o): New.
11333         * sibcall.c: New file.
11334         * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
11335         (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
11336         (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
11337         Emit sibcall patterns when requested.  Update all callers.
11338         (expand_call): Generate CALL_PLACEHOLDER insns when tail call
11339         elimination seems feasable.
11340         * final.c (leaf_function_p): Sibling calls don't discount being
11341         a leaf function.
11342         * flow.c (HAVE_sibcall_epilogue): Provide default.
11343         (find_basic_blocks_1): Sibling calls don't throw.
11344         (make_edges): Make edge from sibling call to EXIT.
11345         (propagate_block): Don't remove sibcall_epilogue insns.
11346         * function.c (prologue, epilogue): Turn into varrays.  Update all uses.
11347         (sibcall_epilogue): New.
11348         (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
11349         (identify_blocks_1): Likewise.  Break out from ...
11350         (identify_blocks): ... here.
11351         (reorder_blocks_1): Scan CALL_PLACEHOLDER.  Break out from ...
11352         (reorder_blocks): ... here.
11353         (init_function_for_compilation): Zap prologue/epilogue as varrays.
11354         (record_insns): Extend a varray instead of mallocing new memory.
11355         (contains): Read a varray not array of ints.
11356         (sibcall_epilogue_contains): New.
11357         (thread_prologue_and_epilogue_insns): Emit and record
11358         sibcall_epilogue patterns.
11359         (init_function_once): Allocate prologue/epilogue varrays.
11360         * genflags.c (gen_insn): Treat sibcall patterns as calls.
11361         * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
11362         Broken out from ...
11363         (save_for_inline_nocopy): ... here.
11364         (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
11365         Broken out from ...
11366         (expand_inline_function): ... here.
11367         (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
11368         (subst_constants): Handle 'n' formats.
11369         * jump.c (jump_optimize_minimal): New.
11370         (jump_optimize_1): New arg `minimal'; update callers.  Elide most
11371         optimizations if it's set.
11372         * rtl.c (copy_rtx): Do copy jump & call for insns.
11373         * rtl.h (struct rtx_def): Document use of jump and call for insns.
11374         (SIBLING_CALL_P): New.
11375         (sibcall_use_t): New.
11376         * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
11377         Invoke optimize_sibling_and_tail_recursive_calls.
11378         * tree.c (lang_safe_for_unsave): New.
11379         (safe_for_unsave): New.
11380         * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
11381
11382         * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
11383         * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
11384         (*sibcall_osf_1, *sibcall_value_osf_1): New.
11385
11386 2000-03-17  Mark Mitchell  <mark@codesourcery.com>
11387
11388         * objc/objc-act.c (encode_method_prototype): Pass types, not
11389         PARM_DECLs, to int_size_in_bytes.
11390
11391 Fri Mar 17 11:51:34 2000  Jim Wilson  <wilson@cygnus.com>
11392
11393         * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
11394
11395         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11396         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
11397
11398 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11399
11400         * Clean up usages of TREE_INT_CST_LOW.
11401         * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
11402         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
11403         Regenerated.
11404         * c-tree.h (min_precision): Move declaration to here.
11405         * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
11406         (build_unary_op, add_pending_init): Use bit_position.
11407         (pending_init_member, process_init_element): Likewise.
11408         (really_start_incremental_init, push_init_level, pop_init_level):
11409         Don't make copies of nodes or modify them in place, use consistent
11410         types when tracking positions, and use tree routines computations.
11411         (set_init_index, output_init_element): Likewise.
11412         (output_pending_init_elements, process_init_element): Likewise.
11413         * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
11414         tree_low_cst and int_bit_position; also minor cleanup.
11415         (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
11416         (print_cst_octal): Precision is unsigned.
11417         (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
11418         * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
11419         (simple_type_align_in_bits): Result is unsigned int.
11420         Use tree_int_low_cst and host_integerp.
11421         (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
11422         (field_byte_offset): Result is HOST_WIDE_INT.
11423         Change types of internal variables so alignments are unsigned int,
11424         offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
11425         Use host_integerp, tree_low_cst, and int_bit_position.
11426         (add_bit_offset_attribute): Likewise.
11427         (add_data_member_location_attribute): Use tree_cst_low.
11428         (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
11429         (add_bit_size_attribute): Use tree_low_cst.
11430         (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
11431         * dwarfout.c: Similar changes to dwarf2out.c.
11432         * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
11433         * genoutput.c (n_occurences): Return -1 for null string.
11434         (strip_whitespace): Accept null string and make into function.
11435         (scan_operands): Reflect above changes.
11436         * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
11437         (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
11438         * ssa.c (rename_registers): Add missing cast of arg to bzero.
11439         * tree.c (int_size_in_bytes): Check for too big to represent.
11440         (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
11441         * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
11442         New declarations.
11443         (min_precision): Delete from here.
11444         * varasm.c (decode_addr_const): Use host_integerp, bit_position,
11445         and int_bit_position.
11446         * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
11447         (encode_method_def): Likewise.
11448         (build_ivar_list_initializer): Use int_bit_position.
11449         (generate_shared_structures): Convert size.
11450         (encode_type, encode_complete_bitfield): Use integer_zerop.
11451         (encode_bitfield): Use tree_low_cst and int_bit_position.
11452
11453 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11454
11455         * config/c4x/c4x.h (CPP_SPEC): Fix typo.
11456
11457 2000-03-17  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
11458
11459         * call.c (special_function_p): It is only malloc if it returns
11460         Pmode.
11461
11462 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11463
11464         * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
11465         (C33_FLAG, TARGET_C3X): Add macros.
11466         (TARGET_SWITCHES): Add -m33 option.
11467         * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
11468
11469 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11470
11471         * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
11472         (PARALLEL_PACK_FLAG): Delete.
11473         (TARGET_SWITCHES): Update.
11474         (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
11475
11476 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11477
11478         * fold-const.c (fold): Fix a few cases when the returned result
11479         is not of the same type as the input.
11480
11481 2000-03-16  Nick Clifton  <nickc@cygnus.com>
11482
11483         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
11484         warning.
11485
11486 2000-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11487
11488         * libgcc2.h: Move prototypes above macros with the same name.
11489         Wrap some function prototypes in the conditional which indicates
11490         whether they are supported, i.e. "BITS_PER_UNIT == 8".
11491
11492 2000-03-16  Richard Henderson  <rth@cygnus.com>
11493
11494         * calls.c: Revert last two changes.
11495
11496 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
11497
11498         * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
11499         has exponent 0 is a zero.
11500
11501         * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
11502         HASH may already be nonzero.  Add code/mode into hash value
11503         immediately after repeat label.
11504         (cselib_lookup): Don't leave the hash table in an inconsistent
11505         state before a hash lookup operation.
11506
11507 Thu Mar 16 17:03:10 MET 2000  Jan Hubicka  <jh@suse.cz>
11508
11509         * i386.md (all HI and QI mode non-move patterns):  Conditionize
11510         by TARGET_[HQ]IMODE_MATH.
11511         * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
11512         x86_promote_qi_regs): Declare.
11513         (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
11514         TARGET_PROMOTE_QI_REGS): New macros.
11515         (PROMOTE_MODE): New macro.
11516         * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
11517         x86_promote_qi_regs): New global variables.
11518
11519 Thu Mar 16 16:50:44 MET 2000  Jan Hubicka  <jh@suse.cz>
11520
11521         * calls.c (emit_library_call_value_1): Break out from ...; handle
11522         VOIDmode function calls too.
11523         (emit_library_call_value): ... here.
11524         (emit_library_call): Implement by calling emit_library_call_value_1.
11525
11526 Thu Mar 16 16:01:30 MET 2000  Jan Hubicka  <jh@suse.cz>
11527
11528         * calls.c (expand_call): Do sanity checking on arg_space_so_far.
11529         Update arg_space_so_far on stack adjustments.
11530         (emit_library_call, emit_library_call_value): Likewise; take into
11531         account arg_space_so_far and pending_stack_adjust when calculcating
11532         the boundary.
11533
11534 Thu Mar 16 09:02:19 2000  Jason Eckhardt  <jle@cygnus.com>
11535
11536         * flow.c: Move all basic block reordering code into its own file.
11537         (create_basic_block): Externalize.
11538         * bb-reorder.c: New file. Copy all basic block reordering code from
11539         flow.c to this file.
11540         (reorder_basic_blocks): Fix fencepost error in for-loop.
11541         (reorder_basic_blocks): Remove braces from single statement for-loops.
11542         * basic-block.h: Add declaration for create_basic_block.
11543         * Makefile.in: Add rules for bb-reorder.o.
11544
11545 2000-03-16  Neil Booth  <NeilB@earthling.net>
11546
11547         * cppinit.c (handle_option):  Implement #unassert directive
11548         as -A- command line option.
11549         (print_help):  Update.
11550         * cpptexi.c:  Update.
11551
11552 Thu Mar 16 02:14:16 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11553
11554         * md.texi (Standard Names): Document `jump'.
11555
11556 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
11557
11558         * calls.c (emit_call_1): Nothrow functions can still have nonlocal
11559         gotos.
11560
11561 2000-03-15  Geoff Keating  <geoffk@cygnus.com>
11562
11563         Merge changes from newppc-branch onto trunk.
11564
11565         2000-03-15  Geoff Keating  <geoffk@cygnus.com>
11566
11567         * rs6000.c (toc_hash_table): Update for new hash table functions.
11568         (toc_hash_function): Likewise.
11569         (toc_hash_eq): Likewise.
11570         (toc_hash_mark_entry): Likewise.
11571         (toc_hash_mark_table): Likewise.
11572         (output_toc): Likewise.
11573         (rs6000_add_gc_roots): Likewise.
11574
11575         2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11576
11577         * t-aix43 (AR_FOR_TARGET): Deleted.  Moved `-X32_64'...
11578         (AR_FLAGS_FOR_TARGET): here.  New macro.
11579
11580         2000-03-05  Clinton Popetz  <cpopetz@cygnus.com>
11581
11582         * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
11583         fpmem_operand) Delete.
11584         (xer_operand) New.
11585         (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
11586         (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
11587         (rs6000_save_machine_status, rs6000_restore_machine_status,
11588         rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
11589         references to above variables.
11590         (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
11591         * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
11592         DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
11593         (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
11594         (XER_REGNO_P, XER_REGNO): New.
11595         (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
11596         (PREDICATE_CODES): Change fpmem_operand to xer_operand.
11597         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
11598         XER_REGNO_P.
11599         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
11600         REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS,         and remove FLOAT_OR_FPMEM_REGS.
11601         (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
11602
11603         2000-02-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11604
11605         * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
11606         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
11607         * rs6000.h: from here.
11608
11609         * rs6000-protos.h (rs6000_select_section): Provide prototype.
11610         (rs6000_select_rtx_section): Likewise.
11611         (rs6000_encode_section_info): Likewise.
11612         (sdata_section): Likewise.
11613         (sdata2_section): Likewise.
11614         (sbss_section): Likewise.
11615         * sysv4.h (rs6000_select_section): Delete prototype.
11616         (rs6000_select_rtx_section): Likewise.
11617         (rs6000_encode_section_info): Likewise.
11618         (sdata_section): Likewise.
11619         (sdata2_section): Likewise.
11620         (sbss_section): Likewise.
11621         (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
11622
11623         * sysv4.h: Delete various unnecessary #undef's and put a comment
11624         on the remaining ones.
11625         Change various comments according to coding standard.
11626
11627         2000-02-29  Clinton Popetz  <cpopetz@cygnus.com>
11628
11629         * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
11630         CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
11631         (CR0_REGNO_P) Remove.
11632         * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
11633         setup_incoming_varargs, mtcrf_operation, print_operand,
11634         rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
11635         Use the above macros.
11636
11637         2000-02-24  Clinton Popetz  <cpopetz@cygnus.com>
11638
11639         * config/rs6000/rs6000.md: Added a new alternative for each
11640         pattern that had a 'x' alternative but no 'y' alternative.
11641         Added a new split for each of the above patterns.
11642
11643         2000-02-18  Geoff Keating  <geoffk@cygnus.com>
11644
11645         * aix41.h (ASM_CPU_SPEC): Delete.
11646         (CPP_CPU_SPEC): Delete.
11647
11648         * aix.h (RS6000_OUTPUT_BASENAME): Define.
11649         (ASM_OUTPUT_LABEL): Define.
11650         (ASM_GLOBALIZE_LABEL): Define.
11651         (STRIP_NAME_ENCODING): Define.
11652         * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
11653         (STRIP_NAME_ENCODING): Don't define.
11654         (ASM_OUTPUT_LABEL): Don't define.
11655         (ASM_GLOBALIZE_LABEL): Don't define.
11656         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
11657         names, and ASM_OUTPUT_LABEL to output labels, rather than
11658         asm_fprintf.
11659         (ASM_OUTPUT_LABEL): Define.
11660         (ASM_OUTPUT_INT): Use assemble_name.
11661         (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
11662         (STRIP_NAME_ENCODING): Don't undefine first.
11663         (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
11664         ELF.
11665         (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
11666         specified with 'asm' even with -fleading-underscore.
11667         * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
11668         (output_epilog): Likewise.
11669         (output_toc): Likewise.
11670         * tramp.asm: Handle -fleading-underscore correctly.
11671
11672         * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
11673         -mminimal-toc.
11674         (nonlocal_goto_receiver): Delete.
11675         * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
11676
11677         * rs6000.h (ASM_OUTPUT_DEF): Don't define.
11678         (SET_ASM_OP): Define.
11679         * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
11680
11681         * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
11682         (ASM_LONG): Define.
11683
11684         * rs6000.c (rs6000_dll_import_ref): Delete, not used.
11685         * rs6000-protos.h (rs6000_dll_import_ref): Delete.
11686
11687         * rs6000.h: Add 'u' to more constants.
11688
11689         2000-02-18  David Edelsohn  <edelsohn@gnu.org>
11690
11691         * rs6000.md (mfcr+shift): Delete PowerPC64 version.
11692
11693         2000-02-15  David Edelsohn  <edelsohn@gnu.org>
11694
11695         * rs6000.c (reg_or_u_cint_operand): New function.
11696         (logical_operand): Handle 64-bit hosts.
11697         (logical_u_operand): New function.
11698         (non_logical_cint_operand): Handle 64-bit hosts.
11699         (non_logical_u_cint_operand): New function.
11700         * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
11701         (PREDICATE_CODES): Define new functions.
11702         * rs6000-protos.h: Declare new functions.
11703         * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
11704         (movdi_64): Bracket code intended for 64-bit hosts.  Create
11705         CONST_DOUBLE for 32-bit values.
11706         (scc insns): Generate DImode compares.
11707         (mfcr insns): Create DImode versions.
11708         (sge matchers): New patterns.
11709
11710         2000-02-15  Gabriel Paubert  <paubert@iram.es>
11711
11712         * rs6000.md: Correct instructions length attributes and
11713         constraints on unsigned compare instructions.
11714         (*ne0): Disable for PowerPC64.
11715
11716         2000-02-11  Geoff Keating  <geoffk@cygnus.com>
11717
11718         * rs6000.c (output_function_profiler): Use .long for a 32-bit
11719         quantity, fix profile1.C test failure under -fPIC.
11720
11721         * rs6000.c: Add 'u' to many constants to suppress warnings.
11722         (constant_pool_expr_1): Make static.
11723         (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
11724         * rs6000.h: Add 'u' to many constants to suppress warnings.
11725
11726         * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
11727         for the start of the TOC, instead of LCTOC..0.
11728         * aix.h (toc_section): Use LCTOC..1 under AIX for the start
11729         of the TOC.
11730         * rs6000.md (load_toc_aix_si): Use LCTOC..1.
11731         (load_toc_aix_di): Use LCTOC..1.
11732
11733         * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
11734         * rs6000.c (rs6000_legitimize_address): New function from
11735         LEGITIMIZE_ADDRESS.  Only use create_TOC_reference on
11736         symbols in the constant pool that really are TOC references.
11737         (print_operand_address): For ELF, write TOC offsets under
11738         -fPIC as subtractions in the insn.
11739         (output_toc): For ELF, define symbols in TOC as normal labels,
11740         to match RTL.
11741         (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
11742         * rs6000-protos.h (rs6000_legitimize_address): Prototype.
11743         (create_TOC_reference): Prototype only when RTX_CODE is defined.
11744         * rs6000.md (movsi): Only use create_TOC_reference on
11745         symbols in the constant pool that really are TOC references.
11746
11747         * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
11748         * rs6000.c (rs6000_reorg): Delete.
11749         * rs6000-protos.h (rs6000_reorg): Delete.
11750
11751         2000-02-09  Geoff Keating  <geoffk@cygnus.com>
11752
11753         * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
11754
11755         * aix.h (SETUP_FRAME_ADDRESSES): Define.
11756         * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
11757         [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
11758         [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
11759         * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
11760         rs6000_aix_emit_builtin_unwind_init.
11761         * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
11762         rs6000_emit_eh_toc_restore on AIX.
11763         (return_eh_si): Use r2.
11764         (return_eh_di): Use r2.
11765
11766         * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
11767         since we're breaking binary compatibility anyway.
11768
11769         2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
11770
11771         * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
11772         constant_pool_expr_p): Declare them.
11773         (constant_pool_expr_p): Declare it.
11774         * config/rs6000/rs6000.c (toc_label_name): Define.
11775         (rs6000_override_options): Set toc_label_name.
11776         (input_operand): Allow any TOC_RELATIVE_EXPR_P.
11777         (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
11778         uses_TOC): New functions.
11779         (print_operand): Delete old '*' case.
11780         (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
11781         and strip off rtl for TOC before calling output_addr_const.
11782         (rs6000_emit_load_toc_table): Use toc_label_name.
11783         * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
11784         the default.
11785         (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
11786         (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
11787         (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
11788         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
11789         into explicit TOC_REGISTER offsets.
11790         (TOC_REGISTER): New macro.
11791         * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
11792         TARGET_TOC to reference TOC_REGISTER.
11793         (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
11794         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
11795         uses_TOC before emitting label references.
11796
11797         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
11798
11799         * rs6000.md (stack_tie): Fix warning.
11800
11801         * eabi-ctors.c: Use 'asm' names for the start/end variables,
11802         to handle -fleading-underscore.
11803         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
11804         (USER_LABEL_PREFIX): New macro.
11805         (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
11806         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
11807         * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
11808         call-linux can use the same multilibs.
11809         * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
11810         and call-linux multilibs.  Do multilib with -fleading-underscore.
11811         (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
11812         (MULTILIB_EXCEPTIONS): Remove call-linux exceptions.  Add restrictions
11813         to call-aix.
11814
11815         * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
11816         have MASK_SOFT_FLOAT set.
11817         (CPP_FLOAT_DEFAULT_SPEC): New macro.
11818         (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
11819         CPP_FLOAT_DEFAULT_SPEC.
11820
11821         * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
11822         * rs6000.md: Whitespace change.
11823         * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
11824         * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
11825
11826         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
11827
11828         * rs6000.md (eh_epilogue): New expander.
11829         (eh_reg_restore): New expand/split/insn combination.
11830         (return_eh_si): New insn.
11831         (return_eh_di): New insn.
11832
11833         * eabi-ci.asm: Put a label at the start of the .eh_frame section.
11834         * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
11835         * eabi-ctors.c (__do_global_ctors): Register this object's
11836         frame.  Clean up.  Call atexit() after the constructors.
11837         (__do_global_dtors): Deregister this object's frame.  Clean up.
11838         Allow for recursive calls to exit().
11839         * rs6000.c (fixuplabelno): New variable.
11840         * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
11841         TARGET_RELOCATABLE, it slows down exec() under linux.
11842         (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
11843
11844         * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
11845         (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
11846         (ASM_OUTPUT_DWARF_DELTA2): New macro.
11847         (ASM_OUTPUT_DWARF_DELTA4): New macro.
11848         (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
11849         (ASM_OUTPUT_DWARF_ADDR): New macro.
11850         (ASM_OUTPUT_DWARF_DATA4): New macro.
11851         (ASM_OUTPUT_DWARF_DATA2): New macro.
11852         (ASM_OUTPUT_DWARF_OFFSET4): New macro.
11853         (ASM_OUTPUT_DWARF_OFFSET): New macro.
11854         (UNALIGNED_INT_ASM_OP): New macro, fake definition.
11855
11856         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
11857
11858         * rs6000.c (rs6000_sr_alias_set): New variable.
11859         (rs6000_override_options): Initialise rs6000_sr_alias_set.
11860         (rs6000_emit_stack_tie): New function.
11861         (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
11862         in a way that dwarf2out can understand.
11863         (rs6000_frame_related): New function.
11864         (rs6000_emit_prologue): Use rs6000_sr_alias_set.  Specify
11865         RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
11866         Use rs6000_emit_stack_tie when needed.
11867         (rs6000_emit_epilogue): Use rs6000_sr_alias_set.  Don't set
11868         RTX_FRAME_RELATED_P.  Use rs6000_emit_stack_tie when needed.
11869         * rs6000.md (stack_tie): New insn.
11870         (return_internal_si): Allow return value to be in the count
11871         register.
11872         (return_internal_di): Likewise.
11873
11874         * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
11875
11876         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
11877
11878         * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
11879
11880         2000-01-31  Geoff Keating  <geoffk@cygnus.com>
11881
11882         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
11883
11884         * rs6000.md (stmw): Use the right POWER opcode.
11885         (lmw): Likewise.
11886
11887         2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11888
11889         * rs6000-protos.h: New file.
11890
11891         * rs6000.c: Include tm_p.h.  Fix compile time warnings.
11892
11893         * rs6000.h: Move prototypes to rs6000-protos.h.  Fix compile time
11894         warnings.
11895
11896         * sysv4.h: Likewise.
11897
11898         2000-01-28  Geoff Keating  <geoffk@cygnus.com>
11899
11900         * ../../configure.in: Delete powerpcle-*-winnt*
11901         and powerpcle-*-pe|powerpcle-*-cygwin*.
11902         * ../../configure: Regenerated.
11903         * cygwin.h: Delete.
11904         * rs6000.h (OBJECT_WINDOWS_NT): Delete.
11905         (TARGET_WINDOWS_NT): Delete.
11906         (ABI_NT): Delete.
11907         (CALL_NT_DLLIMPORT): Delete.
11908         Delete NT-specific code.
11909         * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
11910         * win-nt.h: Delete.
11911         * t-winnt: Delete.
11912         * nt-ci.asm: Delete.
11913         * nt-cn.asm: Delete.
11914         * ntstack.asm: Delete.
11915
11916         2000-01-27  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11917
11918         * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
11919         (ASM_FILE_START): Likewise.
11920         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11921         (ASM_OUTPUT_LABELREF): Likewise.
11922         (ASM_OUTPUT_SKIP): Likewise.
11923         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11924         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11925         (ASM_OUTPUT_CASE_LABEL): Likewise.
11926         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11927         (ASM_OUTPUT_ASCII): Likewise.
11928
11929         2000-01-27  Clinton Popetz  <cpopetz@cygnus.com>
11930
11931         * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
11932         reload_toc_labelno for non-prologue TOC reloads.  Also, don't
11933         increment rs6000_pic_labelno here.
11934         (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
11935         and increment rs6000_pic_labelno here.
11936
11937         2000-01-24  Geoffrey Keating  <geoffk@cygnus.com>
11938
11939         * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
11940         rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
11941         allocation knows (reg) is dead before the insn.
11942
11943         2000-01-21  Geoff Keating  <geoffk@cygnus.com>
11944
11945         * rs6000.md (movsi_to_cr): Correct typo in output template.
11946
11947         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
11948
11949         * rs6000.c (rs6000_pic_labelno): Always define.
11950         (rs6000_pic_func_labelno): Delete.
11951         (lmw_operation): Check for a zero base register,
11952         which doesn't mean what we want.
11953         (stmw_operation): New function.
11954         (print_operand): Define new 'l' modifier.
11955         (rs6000_stack_info): We must save all 64 bits of the registers
11956         if TARGET_POWERPC64.
11957         (rs6000_output_load_toc_table): Delete.
11958         (rs6000_emit_load_toc_table): New function.
11959         (rs6000_allocate_stack_space): Delete.
11960         (rs6000_emit_allocate_stack): New function.
11961         (rs6000_emit_prologue): New function.
11962         (output_prolog): Use rs6000_emit_prologue.
11963         (rs6000_emit_epilogue): Change a few variable names to be
11964         more accurate.  Restore all 64 bits of the registers if
11965         TARGET_POWERPC64.  Only restore the FP registers which were used
11966         if they are being saved/restored one-at-a-time.
11967         (output_mi_thunk): Delete inefficient code generation.
11968         (output_function_profiler): Don't use rs6000_output_load_toc_table.
11969         * rs6000.h: Declare rs6000_emit_load_toc_table,
11970         rs6000_allocate_stack_space, stmw_operation.  Don't declare
11971         rs6000_output_load_toc_table.
11972         * rs6000.md (elf_high): Allow register 0, but discourage it
11973         heavily.
11974         (elf_low): Support loading into register 0.
11975         (load_toc_aix_si): New pattern.
11976         (load_toc_aix_di): New pattern.
11977         (load_toc_v4_pic_si): New pattern.
11978         (load_toc_v4_pic_di): New pattern.
11979         (load_toc_v4_PIC_1): New pattern.
11980         (load_toc_v4_PIC_1b): New pattern.
11981         (load_toc_v4_PIC_2): New pattern.
11982         (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
11983         (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
11984         (prologue): New expander.
11985         (movesi_from_cr): New pattern.
11986         (stmw): New pattern.
11987         (save_fpregs_si): New pattern.
11988         (save_fpregs_di): New pattern.
11989
11990         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
11991
11992         * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
11993         (movdi): Likewise.
11994         (movhi): Likewise.
11995         (movqi): Likewise.
11996
11997         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
11998
11999         * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
12000         at present.
12001         (movsi_got_internal): Likewise.
12002         (movsi_got_internal+1): Likewise.
12003         (set_sp): 'unspec 7' does a SImode clobber.
12004
12005         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
12006
12007         * rs6000.md (floatsidf2): Don't use the fpmem "register", just
12008         allocate a stack temporary.
12009         (floatsidf2_internal): Likewise.
12010         (floatsidf2_internal+1): Likewise.  Don't do bizzare hacks
12011         with unspec.
12012         (floatunssidf2): Don't use the fpmem "register", just
12013         allocate a stack temporary.
12014         (floatunssidf2_internal): Likewise.
12015         (floatunssidf2_internal+1): Likewise.  Don't do bizzare hacks
12016         with unspec.
12017         (floatsidf2_loadaddr): Delete.
12018         (floatsidf2_store1): Delete.
12019         (floatsidf2_store2): Delete.
12020         (floatsidf2_load): Delete.
12021         (fix_truncdfsi2): Don't use the fpmem "register", just
12022         allocate a stack temporary.
12023         (fix_truncdfsi2_internal_si): Delete.
12024         (fix_truncdfsi2_internal_di): Delete.
12025         (fix_truncdfsi2_internal): New insn.
12026         (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
12027         (fix_truncdfsi2_store): Delete.
12028         (fix_truncdfsi2_load): Delete.
12029         (fctiwz): Produce gen_fctiwz.
12030
12031         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
12032
12033         * eabi.h (INVOKE__main): Define.
12034         * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
12035         specially.
12036         (rs6000_emit_prologue): Likewise.
12037         * rs6000.h (struct rs6000_stack): Don't keep track of whether
12038         this is the main program.
12039
12040         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
12041
12042         * rs6000.c (rs6000_va_arg): Delete some unused variables.
12043
12044         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
12045
12046         * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
12047         goes after the argument.
12048
12049         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
12050
12051         * rs6000.md: Document 'unspec' values used.
12052         (epilogue): New expander.
12053         (movesi_to_cr_one): New expander.
12054         (movesi_to_cr and following): New pattern.
12055         (lmw): New pattern.
12056         (return_internal_si): New pattern.
12057         (return_internal_di): New pattern.
12058         (return_and_restore_fpregs_si): New pattern.
12059         (return_and_restore_fpregs_di): New pattern.
12060         * rs6000.h: Declare new functions.
12061         * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
12062         rather than rs6000_calls_p.
12063         (rs6000_makes_calls): Delete.
12064         (lmw_operation): New function.
12065         (mtcrf_operation): New function.
12066         (rs6000_emit_epilogue): New function.
12067         (output_epilog): Call rs6000_emit_epilogue and final if
12068         !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
12069
12070         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
12071
12072         * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
12073         * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
12074         * aix.h (SUBTARGET_SWITCHES): Document switches.
12075         * rs6000.h: (TARGET_SWITCHES): Don't print options twice.  Make
12076         sched-prolog and sched-epilog the same.  Document all the
12077         switches.
12078         (TARGET_OPTIONS): No longer allow -mdebug-.
12079
12080         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
12081
12082         * rs6000.h (ASM_FILE_END): Move to aix.h.
12083         (EXTRA_SECTIONS): Move to aix.h.
12084         (READONLY_DATA_SECTION): Move to aix.h.
12085         (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
12086         (SELECT_SECTION): Move to aix.h.
12087         (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
12088         (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
12089         (LINK_REGISTER_REGNUM): New definition.
12090         (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
12091         (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
12092         AIX and SVR4.
12093         * sysv4.h: Delete the code between the inclusion of rs6000.h
12094         and svr4.h.
12095         (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
12096         (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
12097         (RS6000_REG_SAVE): Move generic definition to rs6000.h.
12098         (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
12099         * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
12100         (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
12101         (fix_truncdfsi2_internal_di): New pattern.
12102         (fix_truncdfsi2_store): The second arg here is Pmode too.
12103         (fix_truncdfsi2_load): The second arg here is Pmode too.
12104         (tablejumpdi): Now that switch tables hold only SImode values,
12105         gcc needs to know how to add them to the pc which is DImode.
12106         * rs6000.c (rs6000_stack_info): Use symbolic name for
12107         LINK_REGISTER_REGNUM.
12108         (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
12109         (output_toc): Delete unused variables s1 and s2.
12110         (output_ascii): Use fputs not fprintf on a variable string.
12111
12112         2000-01-07  David Edelsohn  <edelsohn@gnu.org>
12113
12114         * rs6000.c (processor_target_table): Add power3 as alias for 630.
12115         * aix43.h: Revert Aug 2 change.
12116         (HAS_INIT_SECTION): Define, not visible yet.
12117         (LD_INIT_SWITCH): Define, not visible yet.
12118         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
12119
12120         2000-01-04  Joel Sherrill (joel@OARcorp.com>
12121
12122         * config/rs6000/rtems.h: Include config/rtems.h.
12123
12124         2000-01-04  David Edelsohn  <edelsohn@gnu.org>
12125
12126         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
12127         (SLOW_UNALIGNED_ACCESS): Define.
12128         (CASE_VECTOR_MODE): Always use 32-bit offsets.
12129         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
12130         (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
12131         (toc_section): Likewise and .toc pseudo-op.
12132         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
12133         64-bit mode.
12134         (TEXT_SECTION_ASM_OP): Likewise.
12135         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
12136         32-bit offsets.
12137
12138         1999-12-17  Jakub Jelinek  <jakub@redhat.com>
12139
12140         * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
12141         UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
12142         compiling libgcc2.
12143
12144         2000-01-06  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12145
12146         * rs6000.h: Move more stuff from here...
12147         * aix.h: to here.
12148         * sysv4.h: Cleanup accordingly.
12149         * netware.h: Likewise
12150
12151         2000-01-05  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12152
12153         * rs6000.h: Continue cleanup.
12154         * aix.h: Likewise.
12155         * lynx.h: Likewise.
12156         * netware.h: Likewise.
12157         * sol2.h: Likewise.
12158         * sysv4.h: Likewise.
12159         * win-nt.h: Likewise.
12160
12161         * rs6000.h (TARGET_SWITCHES): Add descriptions.
12162         (TARGET_OPTIONS): Likewise.
12163
12164         * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
12165         (SUBTARGET_OPTIONS): Likewise.
12166
12167         * rs6000.md: Fix compile time warnings.
12168
12169         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
12170
12171         vxworks patches from the Cygnus tree originally by
12172         Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
12173         <vmakarov@cygnus.com>.
12174         * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
12175         (ENDFILE_SPEC): Likewise.
12176         (LIB_VXWORKS_SPEC): New macro.
12177         (STARTFILE_VXWORKS_SPEC): New macro.
12178         (ENDFILE_VXWORKS_SPEC): New macro.
12179         (LINK_START_VXWORKS_SPEC): New macro.
12180         (LINK_OS_VXWORKS_SPEC): New macro.
12181         (CPP_OS_VXWORKS_SPEC): New macro.
12182         (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
12183         * vxppc.h: Rewrite to use proper configuration method.
12184         * vxppcle.h: New file.
12185         * ../../configure.in: Add powerpcle-wrs-vxworks*.
12186         * ../../configure: Rebuilt.
12187
12188         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
12189
12190         Lots of changes to rs6000.h, sysv4.h, aix.h,
12191         aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
12192         with the aim that rs6000.h is the first header
12193         included and the others override it.
12194         * aix.h: New file.
12195
12196         * x-aix41-gld: Remove.
12197         * x-aix43: Remove.
12198         * x-aix41: Remove target-specific switches, and don't specify
12199         -Wl,-bbigtoc as we don't need it any more.
12200         * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
12201         Use t-aix43 for AIX 4.3 and above.
12202         * ../../configure: Regenerated.
12203
12204         * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
12205         options, that don't do anything yet.
12206         (MASK_SCHED_PROLOG): New macro.
12207         (MASK_SCHED_EPILOG): New macro.
12208         (TARGET_SCHED_PROLOG): New macro.
12209         (TARGET_SCHED_EPILOG): New macro.
12210
12211         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
12212
12213         * rs6000.c: Correct comment, the `minimal' TOCs are actually
12214         one per translation unit, not one per function.
12215         (output_toc): Also do duplicate constant elimination
12216         for per-translation-unit TOCs.
12217
12218         * rs6000.md (nonlocal_goto_receiver): Put it back as before.  Add
12219         a comment explaining _exactly_ when this pattern gets used.
12220         (builtin_setjmp_receiver): New pattern for better clarity.
12221         (init_v4_pic): Move it into a section dealing with TOC registers.
12222
12223         1999-12-30  Geoff Keating  <geoffk@cygnus.com>
12224
12225         * rs6000.c (toc_hash_table): New variable.
12226         (rs6000_hash_constant): New function.
12227         (toc_hash_function): New function.
12228         (toc_hash_eq): New function.
12229         (toc_hash_mark_entry): New function.
12230         (toc_hash_mark_table): New function.
12231         (output_toc): Don't output duplicate TOC entries in
12232         a single file.
12233         (rs6000_add_gc_roots): Add the hash table as a GC root.
12234         * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
12235         where they clearly shouldn't be.  This may need to be fixed
12236         later when there is a GNU ar for AIX.
12237         * x-aix43: Don't define CLIB or AR_FOR_TARGET.
12238         Don't define BOOT_LDFLAGS as it is now not necessary.
12239
12240         1999-12-29  Geoff Keating  <geoffk@cygnus.com>
12241
12242         * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
12243         for va_list on AIX.  Use unsigned_char_type_node rather than
12244         constructing our own version on svr4.
12245
12246         1999-12-17  Geoff Keating  <geoffk@cygnus.com>
12247
12248         * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
12249         since patently it's not.
12250
12251         1999-12-08  Geoff Keating  <geoffk@cygnus.com>
12252
12253         * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
12254         define_expand/define_insn pair, and handle restore of the
12255         SVR4 -fpic register.
12256
12257 Wed Mar 15 15:43:38 2000  Jeffrey A Law  (law@cygnus.com)
12258
12259         * acconfig.h (HAVE_GAS_WEAK): New define.
12260         * configure.in (assembler weak support): Check for .weak support.
12261         * config.in, configure: Rebuilt.
12262         * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
12263         HAVE_GAS_WEAK is defined.
12264
12265 2000-03-15  Nick Clifton  <nickc@cygnus.com>
12266
12267         * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
12268         asm_fprintf().
12269
12270 2000-03-15  Zack Weinberg  <zack@wolery.cumb.org>
12271
12272         * cppfiles.c (open_include_file): New function.
12273         (find_include_file, cpp_read_file): Use it.
12274
12275 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
12276
12277         * cpphash.c (dump_hash_helper): Take the slot, not the element.
12278
12279 Wed Mar 15 14:28:54 2000  Jason Eckhardt  <jle@cygnus.com>
12280
12281         * flow.c (verify_flow_info): Check for unconditional return.
12282
12283 Wed Mar 15 11:34:27 2000  Jim Wilson  <wilson@cygnus.com>
12284
12285         * config/ia64/ia64.md (restore_stack_nonlocal): New.
12286         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
12287         (__ia64_restore_stack_nonlocal): New.
12288         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
12289
12290 2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12291
12292         * cpphash.c (collect_formal_parameters): Do not complain about
12293         parameter names that just start with `__VA_ARGS__'.
12294
12295 Wed Mar 15 13:26:58 MET 2000  Jan Hubicka  <jh@suse.cz>
12296
12297         * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
12298         movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
12299         * i386.c (pentiumpro_cost): Set mul cost to 4.
12300         (x86_use_movx): Set for PPro.
12301
12302 Wed Mar 15 13:07:05 MET 2000  Jan Hubicka  <jh@suse.cz>
12303
12304         * i386.md (ix86_compute_frame_size): stack_alignment_needed is
12305         STACK_BOUNDARY for empty frames now.
12306
12307 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
12308
12309         * stor-layout.c (layout_union): Remove.
12310         (layout_union_field): New function, split out from layout_union.
12311         (finish_union_layout): Likewise.
12312         (layout_field): Handle unions by calling layout_union_field.
12313         (finish_record_layout): Handle unions.
12314         (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
12315         QUAL_UNION_TYPE handling.
12316
12317 Wed Feb 23 13:00:06 CET 2000  Jan Hubicka  <jh@suse.cz>
12318
12319         * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
12320         end of basic block is jump_insn, not barrier; use create_basic_block
12321         instead of creating basic block by hand.
12322
12323 2000-03-14  Jason Eckhardt  <jle@cygnus.com>
12324
12325         * flow.c (reorder_basic_blocks): Account for barriers when writing
12326         over NEXT_INSN (last_bb->end).
12327         (verify_flow_info): Add check for missing barriers.
12328
12329 2000-03-14  Greg McGary  <gkm@gnu.org>
12330
12331         * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
12332         * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
12333         * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
12334         __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
12335         __unbounded, __unbounded__): New keywords.
12336         * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
12337         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
12338         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
12339
12340 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
12341
12342         * cselib.h: New file.
12343         * alias.c: Include "cselib.h".
12344         (fixed_scalar_and_varying_struct_p): Accept the addresses of the
12345         MEMs as two new arguments.
12346         (get_addr): New static function.
12347         (find_base_term): Handle VALUEs.
12348         (memrefs_conflict_p): Likewise.
12349         (true_dependence): Call get_addr on the addresses.
12350         Call fixed_scalar_and_varying_struct_p with addresses that have been
12351         passed through get_addr and canon_rtx.
12352         (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
12353         with true_dependence.
12354         Call get_addr on the addresses; don't call canon_rtx on the MEMs.
12355         * loop.c: Include "cselib.h".
12356         (load_mems): Process extended basic block that enters the loop with
12357         cselib.  Use that information to change initialization of the shadow
12358         register so that a constant equivalence is seen by later passes.
12359         * reload1.c: Include "cselib.h".
12360         (reload_cse_invalidate_regno): Delete function.
12361         (reload_cse_mem_conflict_p): Likewise.
12362         (reload_cse_invalidate_mem): Likewise.
12363         (reload_cse_invalidate_rtx): Likewise.
12364         (reload_cse_regno_equal_p): Likewise.
12365         (reload_cse_check_clobber): Likewise.
12366         (reload_cse_record_set): Likewise.
12367         (reg_values): Delete static variable.
12368         (invalidate_regno_rtx): Likewise.
12369         (reload_cse_delete_noop_set): New static function.
12370         (reload_cse_simplify): New static function, broken out of
12371         reload_cse_regs_1.
12372         (reload_cse_noop_set_p): Delete unused argument INSN.
12373         Just call rtx_equal_for_cselib_p on set source and destination.
12374         (reload_cse_regs_1): Break out some code into reload_cse_simplify and
12375         reload_cse_delete_noop_set.  Delete code to keep track of values; use
12376         cselib functions instead.  Delete code to push/pop obstacks.
12377         (reload_cse_simplify_set): Use cselib to find equivalent values.
12378         Delete code to push/pop obstacks.
12379         (reload_cse_simplify_operands): Likewise.
12380         * rtl.def (VALUE): New rtx code.
12381         * rtl.h (union rtunion_def): New elt rt_cselib.
12382         (X0CSELIB, CSELIB_VAL_PTR): New macros.
12383         * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
12384         (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
12385         unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
12386         discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
12387         hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
12388         cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
12389         cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
12390         cselib_record_set, cselib_record_sets): New static functions.
12391         (cselib_lookup, cselib_update_varray_sizes, cselib_init,
12392         cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
12393         references_value_p): New functions.
12394         (MAX_USELESS_VALUES, REG_VALUES): New macros.
12395         (table, cselib_current_insn, next_unknown_value, cselib_nregs,
12396         n_useless_values, reg_values, callmem, cselib_obstack,
12397         cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
12398         New static variables.
12399         * varray.h (union varray_data_tag): New elt te.
12400         (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
12401         * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
12402         dependencies.
12403
12404 2000-03-14  Nick Clifton  <nickc@cygnus.com>
12405
12406         * gcc.c (do_spec_1): Catch the case where %* is used in a
12407         substitution pattern, but it has not been initialised.
12408         Issue a meaningful error message if an unrecognised operator
12409         is encountered in a spec string.
12410
12411 2000-03-14  Richard Earnshaw <rearnsha@arm.com>
12412
12413         * function.c (prepare_function_start): Correctly initialize
12414         cfun->stack_alignment_needed.
12415
12416 2000-03-14  Zack Weinberg  <zack@wolery.cumb.org>
12417
12418         * cppfiles.c (find_include_file): Don't assume nshort is a
12419         substring of name.
12420
12421 Tue Mar 14 08:42:21 2000  Jeffrey A Law  (law@cygnus.com)
12422
12423         * configure.in (hppa configurations): Add pa32-regs.h to the
12424         list of tm files as appropriate.
12425         * configure: Rebuilt.
12426         * pa.c (compute_frame_size): Remove explicit knowledge about FP
12427         register numbering.
12428         (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
12429         (fmpyaddoperands, fmpysuboperands): Likewise.
12430         * pa.h: Remove various definitions which depend on knowing
12431         how registers are numbered.
12432         * pa32-regs.h: New file with PA32 register numbering specific
12433         definitions.
12434
12435 2000-03-14  Richard Henderson  <rth@cygnus.com>
12436
12437         * regmove.c (combine_stack_adjustments): New.
12438         (stack_memref_p, single_set_for_csa): New.
12439         (free_csa_memlist, record_one_stack_memref): New.
12440         (try_apply_stack_adjustment): New.
12441         (combine_stack_adjustments_for_block): New.
12442         * rtl.h (combine_stack_adjustments): Declare.
12443         * toplev.c (rest_of_compilation): Call it.
12444
12445         * i386.md: Revert 2000-01-16 change.
12446
12447 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
12448
12449         * gccbug.in: Add web category, gcc specific classes.
12450
12451 2000-03-14  Nathan Sidwell  <nathan@codesourcery.com>
12452
12453         * stor-layout.c (finalize_record_size): Fix typo.
12454
12455 2000-03-14  Stan Shebs  <shebs@apple.com>
12456
12457         * c-typeck.c (c_alignof): Error on incomplete types.
12458         * extend.texi (Alignment): Document this.
12459
12460 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
12461
12462         * cppfiles.c: Include mkdeps.h.
12463         (find_include_file, read_include_file): Remove _cpp_ prefix
12464         from name, make static.
12465         (_cpp_execute_include): New function, broken out of
12466         do_include.
12467
12468         * cpplib.c: Don't include mkdeps.h.
12469         (struct directive): Remove type field. Reorder entries.  The
12470         function takes only one argument.
12471         (struct if_stack): Make type field an int.
12472         (directive_table): Rename to dtable.  Generate it, the
12473         prototypes of the directive handlers, and the enum for the
12474         directive numbers, from a template macro.
12475         (do_ifndef, do_include_next, do_import): New functions.
12476         (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
12477         do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
12478         do_ident, do_assert, do_unassert, do_sccs): Take only one
12479         argument.
12480         (do_sccs): Define always, but alter behavior based on
12481         SCCS_DIRECTIVE.
12482         (_cpp_handle_directive, consider_directive_while_skipping):
12483         Restructure for new directive table layout.
12484
12485         (pass_thru_directive): Take a directive number, not a pointer
12486         to a struct directive.
12487         (parse_include): New function, broken out of do_include.
12488         (do_include, do_import, do_include_next): Use parse_include
12489         and _cpp_execute_include.
12490         (do_elif, do_else): Test for T_ELSE specifically when checking
12491         for #elif/#else after #else.
12492         (parse_ifdef): New function, broken out of do_ifdef.
12493         (validate_else): Expect a name arg without a leading #.
12494         (if_directive_name): Delete.
12495         (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
12496         directive handlers with only one argument.
12497
12498         * cpphash.h: Update prototypes.
12499         (enum node_type): Remove entries for directives.
12500         * Makefile.in: Update dependencies.
12501
12502         * cpphash.c (dump_hash_helper): Only dump nodes of type
12503         T_MACRO.  Emit a newline after each definition.
12504
12505 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
12506
12507         * gccbug.in: New file.
12508         * configure.in (all_outputs): Add gccbug.
12509         * Makefile.in (install-common): Install gccbug.
12510         (GCCBUG_INSTALL_NAME): New variable.
12511         * configure: Rebuilt.
12512
12513 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
12514
12515         * function.c (put_var_into_stack): Use type_for_mode to calculate
12516         part_type.  Use MEM_SET_IN_STRUCT_P.
12517         * expr.c (store_field): Handle CONCAT.
12518         (store_constructor): Use fields_length.
12519         * tree.c (fields_length): New fn.
12520         * tree.h: Declare it.
12521
12522 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
12523
12524         * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
12525         (cpplex.o): New target.
12526         * po/POTFILES.in: Add cpplex.c.
12527
12528         * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
12529         cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
12530         cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
12531         skip_block_comment, skip_line_comment, skip_comment,
12532         copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
12533         _cpp_parse_name, skip_string, parse_string,
12534         _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
12535         _cpp_get_directive_token, find_position,
12536         _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
12537         (maybe_macroexpand, _cpp_lex_token): New functions.
12538
12539         * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
12540         parse_goto_mark): Delete.
12541         (_cpp_handle_eof): New function.
12542         (_cpp_handle_directive): Rename from handle_directive.
12543         (_cpp_output_line_command): Rename from output_line_command.
12544         (do_if, do_elif): Call _cpp_parse_expr directly.
12545         * cppfiles.c (_cpp_read_include_file): Don't call
12546         init_input_buffer here.
12547         * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
12548         * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
12549         here; pop the token_buffer and skip the rest of the line here.
12550         * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
12551         here.
12552
12553         * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
12554         Define here.
12555         (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
12556         CPP_GOTO_MARK): New macros.
12557         (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
12558         _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
12559         _cpp_read_and_prescan, _cpp_init_input_buffer,
12560         _cpp_grow_token_buffer, _cpp_get_directive_token,
12561         _cpp_handle_directive, _cpp_handle_eof,
12562         _cpp_output_line_command): Prototype them here.
12563         * cpplib.h (enum cpp_token): Add CPP_MACRO.
12564         (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
12565         quote_string, output_line_command): Remove.
12566
12567 2000-03-13  Bernd Schmidt  <bernds@cygnus.co.uk>
12568
12569         * stmt.c (expand_end_case): RANGE may be signed, and when checking
12570         whether it is too large we must also verify that it isn't negative.
12571
12572 2000-03-13  Jakub Jelinek  <jakub@redhat.com>
12573
12574         * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
12575         (movsi_zero_liveg0): Remove.
12576         (movsf_insn_novis_liveg0): Remove.
12577         (negsi2): Remove.
12578         (negsi2_not_liveg0): Rename to negsi2.
12579         (one_cmplsi2): Remove.
12580         (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
12581         (one_cmplsi2_liveg0): Remove.
12582         * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
12583         MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
12584         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
12585         (PREDICATE_CODES): Remove zero_operand.
12586         * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
12587         TARGET_BROKEN_SAVERESTORE.
12588         (zero_operand): Remove.
12589         * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
12590         -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
12591         options.
12592         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12593         * config/sparc/linux-aout.h (TARGET_LIVE_G0,
12594         TARGET_BROKEN_SAVERESTORE): Remove.
12595         * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12596         Remove.
12597         * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12598         Remove.
12599         * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12600         Remove.
12601
12602         * config/sparc/sparc.md (return_df_no_fpu): New pattern.
12603
12604 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
12605
12606         * cpplib.c (do_pragma_implementation): Fix off-by-one error
12607         truncating a string.  Don't assume tokens are nul terminated.
12608         Problem noted by Andreas Jaeger <aj@suse.de>
12609
12610 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
12611
12612         * dwarf2out.c (add_name_and_src_coords_attributes): Only add
12613         DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
12614         (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
12615
12616 2000-03-13  Richard Earnshaw <rearnsha@arm.com>
12617
12618         * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
12619         STRUCTURE_SIZE_BOUNDARY.
12620
12621 2000-03-13  Mark Mitchell  <mark@codesourcery.com>
12622
12623         * tree.h (record_layout_info_s): New structure.
12624         (record_layout_info): New type.
12625         (new_record_layout_info): New function.
12626         (layout_field): Likewise.
12627         (finish_record_layout): Likewise.
12628         * stor-layout.c (layout_record): Remove.
12629         (new_record_layout_info): New function.
12630         (layout_field): New function, broken out from layout_record.
12631         (finalize_record_size): Likewise.
12632         (compute_record_mode): Likewise.
12633         (finalize_type_size): New function, broken out from layout_type.
12634         (finish_record_layout): Likewise.
12635         (layout_type): Use them.
12636
12637 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
12638
12639         * cpphash.c: Don't include version.h.
12640         (special_symbol) [case T_VERSION]: Look for the string in
12641         hp->value.cpval; don't use version_string.
12642         * cppinit.c (initialize_builtins): Set hp->value.cpval for
12643         __VERSION__ to version_string.
12644         * Makefile.in (cpphash.o): Update deps.
12645
12646 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
12647
12648         Convert cpplib to use libiberty/hashtab.c.
12649
12650         * cpplib.h (struct cpp_reader): Make hashtab and
12651         all_include_files of type 'struct htab *'.  Delete HASHSIZE
12652         and ALL_INCLUDE_HASHSIZE macros.
12653
12654         * cpphash.h: Update prototypes.
12655         (struct hashnode): Remove next, prev, and bucket_hdr members.
12656         Make length a size_t.  Add hash member.
12657         (struct ihash): Remove next member.  Add hash member.  Make
12658         name a flexible array member.
12659
12660         * cppfiles.c: Include hashtab.h.
12661         (include_hash): Delete.
12662         (IHASHSIZE): New macro.
12663         (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
12664         (cpp_included): Do the hash lookup here.
12665         (_cpp_find_include_file): Rewrite.
12666         (cpp_read_file): Put the "fake" hash entry into the hash
12667         table.  Honor the control_macro, if it turns out we've seen
12668         the file before.  Don't push the buffer here.
12669         (_cpp_read_include_file): Push the buffer here.
12670         (OMODES): New macro.  Use it whenever we call open(2).
12671
12672         * cpphash.c: Include hashtab.h.
12673         (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
12674         _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
12675         _cpp_lookup_slot): New functions.
12676         (HASHSIZE): new macro.
12677         (hashf, _cpp_install, _cpp_delete_macro): Delete.
12678         (_cpp_lookup): Use hashtab.h routines.
12679
12680         * cppinit.c: Include hashtab.h.
12681         (cpp_reader_init): Call _cpp_init_macro_hash and
12682         _cpp_init_include_hash.  Don't allocate hashtab directly.
12683         (cpp_cleanup): Just call htab_delete on pfile->hashtab and
12684         pfile->all_include_files.
12685         (initialize_builtins): Use _cpp_make_hashnode and
12686         htab_find_slot to add hash entries.
12687         (cpp_finish): Just call _cpp_dump_macro_hash.
12688         * cpplib.c: Include hashtab.h.
12689         (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
12690         create hash entries.
12691         (do_pragma_poison, do_assert): Likewise.
12692         (do_include): Don't push the buffer here.  Don't increment
12693         system_include_depth unless _cpp_read_include_file succeeds.
12694         (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
12695         or htab_remove_elt.
12696         (do_pragma_implementation): Use alloca to create copy.
12697
12698         * Makefile.in: Update dependencies.
12699
12700 2000-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12701
12702         * cppinit.c (cl_directive_handler): More K&R fixing.
12703
12704 Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
12705
12706         * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
12707         STACK_BOUNDARY.
12708         * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
12709
12710 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12711
12712         * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
12713         Change from char[] to macros.
12714
12715 2000-03-12  Neil Booth  <NeilB@earthling.net>
12716
12717         * cppinit.c (cpp_start_read): Update indirect function
12718         call to K&R C.
12719
12720 Sat Mar 11 16:18:12 2000  Jim Wilson  <wilson@cygnus.com>
12721
12722         * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
12723         entry.
12724
12725         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12726         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
12727
12728 2000-03-11  Neil Booth  <NeilB@earthling.net>
12729
12730         * cppinit.c (struct pending option): Replace undef with a
12731         pointer to a directive handling routine.
12732         (struct cpp_pending): Replace separate assert_ and define_
12733         lists with one directive_ list.
12734         (new_pending_define): Rename new_pending_directive. Extra
12735         argument is the directive's handling routine.
12736         (handle_option): Update to use new_pending_directive.
12737
12738 2000-03-11  Neil Booth  <NeilB@earthling.net>
12739
12740         * cppfiles.c (file_cleanup, _cpp_find_include_file,
12741         remap_filename, _cpp_read_include_file, actual_directory,
12742         hack_vms_include_specification): Replace bcopy(), index() etc
12743         calls.  Add casts to some allocations.  Make some variables
12744         pointers to const [unsigned] char.
12745         * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
12746         collect_formal_parameters): Similarly.
12747         * cppinit.c (struct pending_option, append_include_chain,
12748         cpp_options_init, cpp_reader_init, initialize_standard_includes,
12749         cpp_start_read, new_pending_define, handle_option): Similarly.
12750         * cpplib.c (cpp_define, copy_comment, do_define, do_include,
12751         do_undef, do_error, do_warning, do_pragma, do_pragma_once,
12752         do_pragma_implementation, detect_if_not_defined,
12753         do_ifdef, skip_if_group, cpp_get_token, parse_string,
12754         do_assert, do_unassert): Similarly.
12755         * cpplib.h (cpp_buffer, cpp_options): Update types.  Update
12756         function prototypes.
12757         * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
12758
12759 2000-03-10  Richard Henderson  <rth@cygnus.com>
12760
12761         * builtins.c (expand_builtin_strlen): Revert last change.
12762         Use emit_insn_before if we're at the beginning of a sequence.
12763
12764 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
12765
12766         * builtins.c (expand_builtin_strlen): Make sure that we have something
12767         at the beginning of the sequence.
12768
12769         * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
12770         deferred inlines.
12771
12772         * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
12773
12774 2000-03-10  Richard Henderson  <rth@cygnus.com>
12775
12776         * except.c (can_throw): Use INTVAL on a CONST_INT.
12777         (reachable_handlers): Likewise.
12778         * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
12779
12780 2000-03-10  Andreas Jaeger  <aj@suse.de>
12781
12782         * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
12783         MD_STARTFILE_PREFIX since those are not needed on linux.
12784         (ASM_FILE_START): New, from mips/gnu.h.
12785
12786 2000-03-09  Richard Henderson  <rth@cygnus.com>
12787             Alex Samuel  <samuel@codesourcery.com> and others
12788
12789         * Makefile.in (ssa.o): New rule.
12790         (OBJS): Add ssa.o.
12791         (STAGESTUFF): Add *.ssa and *.ussa.
12792         (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
12793         * rtl.def (PHI): New RTL expression.
12794         * rtl.h (clear_log_links): New declaration.
12795         (convert_to_ssa): Likewise.
12796         (convert_from_ssa): Likewise.
12797         * flow.c (split_edge): If the entry node falls through to the
12798         split edge's source block, split the entry edge.
12799         (clear_log_links): New function.
12800         * toplev.c (ssa_dump): New variable.
12801         (flag_ssa): Likewise.
12802         (f_options): Add "ssa".
12803         (compile_file): Create SSA dump files.
12804         (rest_of_compilation): Go to and from SSA if enabled.
12805         (decide_d_option): Handle -de for SSA dump files.
12806         * ssa.c: New file.
12807
12808 Thu Mar  9 20:01:38 2000  Jim Wilson  <wilson@cygnus.com>
12809
12810         * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
12811         same as VAR_DECL.
12812
12813 2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
12814
12815         * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
12816
12817 Thu Mar  9 18:10:02 2000  Jeffrey A Law  (law@cygnus.com)
12818
12819         * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
12820         (MD_STARTFILE_PREFIX_1): New macro.
12821
12822 2000-03-09  Robert Lipe  <robertl@sco.com>
12823
12824         * config/ia64/ia64.c: Include system.h.
12825
12826 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
12827
12828         * except.c (nothrow_function_p): If -fno-exceptions, just return.
12829         (init_eh_nesting_info): Likewise.
12830
12831         * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
12832         (TREE_NOTHROW): Rename from TREE_RAISES.
12833         * toplev.c (rest_of_compilation): Set it.
12834         * print-tree.c (print_node): Adjust.
12835         * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
12836         (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
12837         * calls.c (emit_call_1): Add 'nothrow' parm.  Add
12838         REG_EH_REGION note as appropriate.
12839         (libfunc_nothrow): New fn.
12840         (emit_library_call, emit_library_call_value): Use it.
12841         (expand_call): Check TREE_NOTHROW.
12842
12843         * varasm.c (make_decl_rtl): Skip initial '*' when setting
12844         DECL_ASSEMBLER_NAME.
12845
12846 2000-03-09  Andreas Jaeger  <aj@suse.de>
12847
12848         * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
12849         (TARGET_MEM_FUNCTIONS): Define.
12850
12851 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
12852
12853         * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
12854
12855         * except.c (can_throw): See through a SEQUENCE.
12856         (nothrow_function_p): New fn.
12857         * except.h: Declare it.
12858         * function.c (current_function_nothrow): New var.
12859         (prepare_function_start): Initialize it.
12860         * output.h: Declare it.
12861         * toplev.c (rest_of_compilation): Set it.
12862         * dwarf2out.c (dwarf2out_begin_prologue): Use it.
12863
12864 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
12865
12866         * cpphash.c (collect_formal_parameters): strncmp returns 0 for
12867         match.  (cpp_compare_defs): Count the nul separator when
12868         advancing over argument names.
12869
12870 2000-03-09  Bernd Schmidt  <bernds@cygnus.co.uk>
12871
12872         * recog.c (preprocess_constraints): Matching constraints affect
12873         same alternative/different operand, not same operand/different
12874         alternative.
12875
12876         * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
12877         register and a constant specially.
12878
12879 2000-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12880
12881         * libgcc2.h: New file.
12882         * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
12883
12884 Wed Mar  8 16:19:42 2000  Jim Wilson  <wilson@cygnus.com>
12885
12886         * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
12887         * configure: Regenerate.
12888         * config/ia64: New.
12889
12890 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
12891
12892         * Makefile.in (LIBCPP_DEPS): New macro.
12893         (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
12894         it to declare deps.
12895         * cpperror.c: Include cpphash.h.
12896         * cppexp.c: Include cpphash.h.  Remove MULTIBYTE_CHARS
12897         dingleberry.
12898         (lex): Don't use CPP_WARN_UNDEF.
12899         (_cpp_parse_expr): Return an int, the truth value.
12900         * cppfiles.c: Include cpphash.h.
12901         (_cpp_merge_include_chains): Move to cppinit.c and make static.
12902         * cppinit.c (include_defaults_array): Disentangle.
12903         (cpp_cleanup): Don't free the if stack here.
12904         (cpp_finish): Pop off all buffers, not just one.
12905         * cpplib.c (eval_if_expr): Return int.
12906         (do_xifdef): Rename do_ifdef.
12907         (handle_directive): Don't use CPP_PREPROCESSED.
12908         (cpp_get_token): Don't use CPP_C89.
12909         * fix-header.c: Don't use CPP_OPTIONS.
12910
12911         * cpplib.h: Move U_CHAR, enum node_type, struct
12912         file_name_list, struct ihash, is_idchar, is_idstart,
12913         is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
12914         CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
12915         CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
12916         CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
12917         CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
12918         of _cpp_simplify_pathname, _cpp_find_include_file,
12919         _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
12920         Move struct if_stack to cpplib.c.  Move struct cpp_pending to
12921         cppinit.c.
12922         Change all uses of U_CHAR to be unsigned char instead.
12923         Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
12924
12925 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
12926
12927         * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
12928         (dwarf2out_begin_prologue): Set it.
12929         (output_call_frame_info): Don't emit EH unwind info for leaves.
12930
12931         * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
12932         can occur outside of an EH region.
12933         * except.c: Correct comments about rethrow behavior.
12934         (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
12935
12936 2000-03-08  Andrew MacLeod  <amacleod@cygnus.com>
12937
12938         * flow.c (make_edges): Always call make_eh_edge for calls.
12939
12940 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
12941
12942         * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
12943         (struct cpp_buffer): Remove fname and underflow fields.
12944         (struct cpp_reader): Remove get_token field.
12945         (struct include_hash): Rename to struct ihash.  Add typedef to
12946         IHASH.
12947         (struct if_stack): Remove fname field.
12948         (IF_STACK_FRAME): Rename to IF_STACK.
12949
12950         * cpperror.c (print_containing_files): Trust that there are no
12951         macro buffers below the top file buffer.
12952         * cppfiles.c: Replace all references to 'struct include_hash'
12953         with 'IHASH'.  Rename initialize_input_buffer to
12954         init_input_buffer.  Don't set or reference cpp_buffer->fname,
12955         use buffer->ihash->name instead.
12956         * cpphash.c (special_symbol): Use cpp_file_buffer.  Use NULL
12957         not CPP_NULL_BUFFER.
12958         * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
12959         IF_STACK_FRAME, IHASH not struct include_hash.
12960         * cpplib.c: Rename eval_if_expression to eval_if_expr.  Remove
12961         null_underflow.  Use IF_STACK not IF_STACK_FRAME, IHASH not
12962         struct include_hash, NULL not CPP_NULL_BUFFER.  Remove all
12963         references to cpp_buffer->fname (delete entirely, or use
12964         ->ihash->name instead) and IF_STACK->fname.
12965         (cpp_push_buffer): Don't set new->underflow.
12966         (do_include): Use cpp_file_buffer.
12967
12968         * cpphash.c (collect_formal_parameters): Remove duplicate
12969         increment of argslen.  Pedwarn in C99 mode if __VA_ARGS__ is
12970         used as a macro argument name.  Don't append "..." to namebuf
12971         for varargs macros.  After we're done scanning, go through
12972         namebuf and make it NUL separated, not comma separated.
12973         (_cpp_compare_defs): Remove register tag from variables.
12974         Expect defn->argnames to be NUL separated.
12975         (_cpp_dump_definition): Expect defn->argnames to be NUL
12976         separated and in forward order.
12977         * cpphash.h: Update documentation of argnames field.
12978
12979 2000-03-08  Richard Henderson  <rth@cygnus.com>
12980
12981         * builtins.c (expand_builtin_strlen): Be prepared for strlensi
12982         to fail.  Don't pre-expand the source operand.
12983
12984         * i386.md (strlensi): Initialize eoschar and align before use.
12985
12986 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
12987
12988         * expr.c (expand_expr, case ARRAY_REF): Still check for missing
12989         CONSTRUCTOR element.
12990
12991 2000-03-08  Gavin Romig-Koch  <gavin@cetus.cygnus.com>
12992
12993         * mips.c (mips_expand_prologue): If the last
12994         named argument is the vararg marker "va_list", treat it as
12995         an unnamed argument.
12996
12997 2000-03-08  Clinton Popetz  <cpopetz@cygnus.com>
12998
12999         * dbxout.c (dbxout_parms): When correcting for promoted
13000         big-endian parameters, use the mode of the DECL_RTL rather
13001         than UNITS_PER_WORD.
13002
13003 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
13004
13005         * c-common.h (make_fname_decl): Declare.
13006         * c-common.c (make_fname_decl): Define.
13007         (declare_hidden_char_array): Remove.
13008         (declare_function_name): Use make_fname_decl.
13009         * c-decl.c (c_make_fname_decl): New function.
13010         (init_decl_processing): Set make_fname_decl.
13011
13012 Tue Mar  7 23:50:31 2000  Jeffrey A Law  (law@cygnus.com)
13013
13014         * cccp.c (handle_directive): Initialize backslash_newlines_p.
13015
13016 2000-03-07  Philipp Thomas  <pthomas@suse.de>
13017
13018         * po/POTFILES.in: Remove cppalloc.c from file list.
13019
13020 2000-03-07  Steve Chamberlain  <sac@pobox.com>
13021
13022         * pj.c (pj_expand_prologue): current_function->args_info is
13023         now current_function_args_info.
13024
13025         * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
13026         LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
13027         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
13028
13029 2000-03-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13030
13031         * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
13032         output as hexadecimal rather than the default octal.
13033
13034 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
13035
13036         * cpphash.c (special_symbol): Fix thinko in previous commit.
13037
13038 2000-03-07  Neil Booth  <NeilB@earthling.net>
13039
13040         * cppexp.c (struct operation, left_shift, right_shift,
13041         cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
13042         "int"s to "unsigned int"s.
13043         * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
13044         Similarly.
13045         * cpplib.h: Update for above.
13046         * mkdeps.c (deps_init, deps_calc_target): Cast pointers
13047         returned from allocations.
13048
13049         * cppinit.c (opt_comp, parse_options): New functions.
13050         (handle_option): Use parse_option to parse a single command
13051         line option, that possibly takes an argument.
13052         (cpp_handle_options): Sort the array of command line options on
13053         first invocation (non-ASCII hosts only).
13054         (print_help): Update.
13055
13056 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
13057
13058         * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
13059         backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.
13060
13061         * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
13062         initialized.
13063         * cppinit.c (cpp_cleanup): Free imp->nshort also.
13064
13065         * cpperror.c (cpp_print_containing_files,
13066         cpp_print_file_and_line, v_cpp_message): Rename to
13067         print_containing_files, print_file_and_line, and v_message.
13068         * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
13069         to _cpp_parse_expr, parse_escape, and lex.
13070         (parse_charconst): Remove broken multibyte support.
13071         * cppfiles.c (include_hash): Make static.
13072         (cpp_included): New function.
13073         (merge_include_chains, find_include_file, finclude,
13074         simplify_pathname): Rename to _cpp_merge_include_chains,
13075         _cpp_find_include_file, _cpp_read_include_file, and
13076         _cpp_simplify_pathname.
13077         * cpphash.c (cpp_lookup, free_definition, delete_macro,
13078         cpp_install, create_definition, macroexpand, compare_defs,
13079         dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
13080         _cpp_delete_macro, _cpp_install, _cpp_create_definition,
13081         _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
13082         * cppinit.c (cpp_handle_option): Rename to handle_option, make
13083         static.
13084         * cpplib.c: Remove extern prototype of cpp_parse_expr.
13085
13086         * cpphash.h: Update prototypes.
13087         * cpplib.h: Likewise.  Prototype _cpp_parse_expr here.
13088
13089 2000-03-07  Andrew Haley  <aph@cygnus.com>
13090
13091         * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
13092         PTRDIFF_TYPE should be based solely on Pmode.
13093         (SIZE_TYPE): ditto.
13094
13095 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13096
13097         * rtl.h (rtunion_def): Constify member `rtstr'.
13098         (emit_line_note_after, emit_line_note, emit_line_note_force,
13099         emit_note, decode_asm_operands): Constify.
13100
13101         * cse.c (canon_hash): Likewise.
13102
13103         * dbxout.c (dbxout_block): Likewise.
13104
13105         * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
13106         v_warning_for_asm): Likewise.
13107
13108         * dwarfout.c (function_start_label): Likewise.
13109
13110         * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
13111         emit_line_note_force): Likewise.
13112
13113         * final.c (last_filename, asm_insn_count, final_scan_insn,
13114         output_source_line): Likewise.
13115
13116         * function.h (struct emit_status): Likewise.
13117
13118         * gcse.c (hash_expr_1): Likewise.
13119
13120         * genattr.c (gen_attr, main): Likewise.
13121
13122         * genattrtab.c (struct function_unit, current_alternative_string,
13123         write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
13124         attr_numeral, check_attr_test, check_attr_value,
13125         convert_set_attr_alternative, convert_set_attr,
13126         compute_alternative_mask, simplify_by_exploding, gen_attr,
13127         gen_unit): Likewise.
13128
13129         * genflags.c (gen_insn): Likewise.
13130
13131         * gengenrtl.c (type_from_format): Likewise.
13132
13133         * genopinit.c (gen_insn): Likewise.
13134
13135         * genoutput.c (n_occurrences, process_template, process_template):
13136         Likewise.
13137
13138         * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
13139         Likewise.
13140
13141         * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
13142         Likewise.
13143
13144         * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
13145         ggc_set_mark, ggc_get_size): Likewise.
13146
13147         * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
13148
13149         * optabs.c (init_one_libfunc): Likewise.
13150
13151         * output.h (assemble_start_function): Likewise.
13152
13153         * recog.c (decode_asm_operands): Likewise.
13154
13155         * toplev.c (rest_of_compilation): Likewise.
13156
13157         * tree.h (emit_line_note_after, emit_line_note,
13158         emit_line_note_force): Likewise.
13159
13160         * varasm.c (asm_output_bss, asm_output_aligned_bss,
13161         asm_emit_uninitialised, assemble_start_function,
13162         assemble_variable, const_hash, compare_constant_1,
13163         find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
13164
13165         * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
13166
13167         * alpha/alpha.md (call_vms, call_value_vms): Likewise.
13168
13169         * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
13170
13171         * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
13172
13173         * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
13174         arm_dllimport_name_p): Likewise.
13175
13176         * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
13177         Likewise.
13178
13179         * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
13180
13181         * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13182
13183         * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
13184         arm_mark_dllexport, arm_mark_dllimport,
13185         arm_pe_encode_section_info): Likewise.
13186
13187         * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
13188         ASM_FINISH_DECLARE_OBJECT): Likewise.
13189
13190         * arm/thumb.c (thumb_function_prologue): Likewise.
13191
13192         * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
13193
13194         * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13195
13196         * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
13197
13198         * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
13199
13200         * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
13201
13202         * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13203
13204         * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
13205         ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
13206
13207         * i386/i386-protos.h (asm_output_function_prefix): Likewise.
13208
13209         * i386/i386.c (asm_output_function_prefix): Likewise.
13210
13211         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
13212
13213         * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13214
13215         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
13216
13217         * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
13218         ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
13219         ASM_OUTPUT_SECTION_NAME): Likewise.
13220
13221         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
13222
13223         * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
13224
13225         * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
13226
13227         * m32r/m32r.c (m32r_encode_section_info): Likewise.
13228
13229         * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13230
13231         * mcore/mcore.c (mcore_encode_section_info): Likewise.
13232
13233         * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13234
13235         * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13236
13237         * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13238
13239         * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
13240
13241         * mips/mips.md (movdi, movsi): Likewise.
13242
13243         * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13244
13245         * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13246
13247         * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
13248
13249         * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
13250         ASM_OUTPUT_ASCII): Likewise.
13251
13252         * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
13253         output_mi_thunk, output_toc): Likewise.
13254
13255         * rs6000/rs6000.md (movsi): Likewise.
13256
13257         * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
13258
13259         * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
13260
13261         * v850/v850.c (print_operand, print_operand_address,
13262         v850_encode_data_area): Likewise.
13263
13264 2000-03-07  Clinton Popetz  <cpopetz@cygnus.com>
13265
13266         * config/mips/mips.md (zero_extendsidi2): Always force operand
13267         one to memory for mips16.
13268
13269 Mon Mar  6 15:22:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13270
13271         * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
13272         (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
13273         (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
13274         (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
13275         (min_precision): Result is unsigned.
13276         (add_double, neg_double, mul_double): Low word is unsigned.
13277         (lshift_double, rshift_double, lrotate_double): Likewise.
13278         (rrotate_double, div_and_round_double): Likewise.
13279         (tree_floor_log2, compare_tree_int): New functions.
13280         (preserve_rtl_expr_temps): New declaration.
13281         * c-common.c (declare_hidden_char_array): Use compare_tree_int.
13282         (decl_attributes): Use tree_log2 to find alignment.
13283         Check for TREE_INT_CST_HIGH for format args.
13284         (min_precision): Now unsigned.
13285         Use tree_floor_log2.
13286         (truthvalue_conversion): Delete long-disabled code.
13287         * c-decl.c (finish_struct): Clean up tests on field width.
13288         (finish_function): Use compare_tree_int.
13289         * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
13290         * c-typeck.c (comptypes): Use tree_int_cst_equal.
13291         (default_conversion, digest_init): Use compare_tree_int.
13292         (build_binary_op): Use integer_all_onesp and compare_tree_int.
13293         Fix type errors in forming masks.
13294         * calls.c (initialize_argument_information): Use compare_tree_int.
13295         * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
13296         * except.c (expand_eh_region_start_tree): Use compare_tree_int.
13297         * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
13298         (store_field): Use compare_tree_int.
13299         (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
13300         (expand_expr, case ARRAY_REF): Use compare_tree_int.
13301         (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
13302         (do_store_flag): Use compare_tree_int.
13303         * fold-const.c (encode, decode): Low part is always unsigned.
13304         (force_fit_type, add_double, neg_double, mul_double): Likewise.
13305         (lshift_double, rshift_double, lrotate_double): Likewise.
13306         (rrotate_double, div_and_round_double, int_const_binop): Likewise.
13307         (fold_convert): Use compare_tree_int.
13308         (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
13309         (invert_truthvalue, case INTEGER_CST): Likewise.
13310         (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
13311         * mkdeps.c (deps_dummy_targets): Make I unsigned.
13312         * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
13313         (lshift_double, rshift_double, lrotate_double, rrotate_double):
13314         Likewise.
13315         * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
13316         (expand_end_case): Use compare_tree_int.
13317         (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
13318         * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
13319         (layout_decl): Likewise.
13320         (layout_record, layout_union): Make sizes unsigned.
13321         (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
13322         (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
13323         * tree.c (struct type_hash): hashcode is unsigned.
13324         (build_type_attribute_variant, type_hash_list): Likewise.
13325         (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
13326         (attribute_hash_list, build_array_type, build_method_type): Likewise.
13327         (build_complex_type): Likewise.
13328         (real_value_from_int_cst): Remove unneeded casts.
13329         (integer_all_onesp): Add casts.
13330         (tree_floor_log2, compare_tree_int): New functions.
13331         (build_index_type): Use tree_int_cst_sgn.
13332         * varasm.c (assemble_variable): Use compare_tree_int.
13333
13334 2000-03-06  Jason Merrill  <jason@casey.cygnus.com>
13335
13336         * cpphash.c (collect_expansion): Also catch ## at start of macro.
13337
13338         * varasm.c (make_decl_rtl): Don't add a number to members of
13339         local classes.
13340         (make_function_rtl): Likewise.
13341
13342 2000-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13343
13344         * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
13345         patch from 2000-01-28.
13346
13347 2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
13348
13349         * config/sh/sh.c: (barrier_align): Handle a delay slot that is
13350         filled with an insn from the jump target.
13351
13352 2000-03-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13353
13354         * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
13355         (c4x_external_ref): Likewise.
13356         * config/c4x/c4x.c (struct name_list): Likewise.
13357
13358 1999-12-16  Ben Collins  <bcollins@debian.org>
13359
13360         * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
13361         argument to genmultilib.
13362         * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
13363         the contents into the multilib.h header.
13364         * gcc.c: Declare multilib_exclusions for the specs file.
13365         (set_multilib_dir): Use it.
13366         (print_multilib_info): Likewise.
13367         * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
13368         to pass to genmultilib.
13369
13370 2000-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13371
13372         * builtins.c (built_in_class_names, built_in_names): Constify a
13373         char*.
13374
13375         * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
13376         int.
13377         (_mcleanup): Ensure value matches format specifier in sprintf.
13378
13379         * cpphash.c (special_symbol): Don't needlessly cast away
13380         const-ness.
13381
13382         * cppinit.c (base_name): Delete unused prototype.
13383
13384         * mkdeps.c (deps_init): Make definition K&R safe.
13385
13386         * tree.h (built_in_class_names, built_in_names): Constify a
13387         char*.
13388
13389 2000-03-06  Jakub Jelinek  <jakub@redhat.com>
13390
13391         * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
13392         floating point instructions for epilogue delay.
13393
13394         * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
13395         to gas if it supports .register pseudo.
13396
13397         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
13398         LONG_DOUBLE_TYPE_SIZE if not defined.
13399         Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
13400         LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
13401         * real.c: Likewise.
13402         * gengenrtl.c: Likewise.
13403         * print-rtl.c: Likewise.
13404         * rtl.c: Likewise.
13405         * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
13406         MASK_LONG_DOUBLE_128.
13407         * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
13408         * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
13409         * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
13410         (SUBTARGET_SWITCHES): Define.
13411         (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
13412         with -mlong-double-128.
13413         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
13414         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
13415         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
13416         (CC1_SPEC): Include -mlong-double-{64,128} as needed.
13417         * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
13418         (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
13419         with -mlong-double-128.
13420         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
13421         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
13422         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
13423         * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
13424         TARGET_LONG_DOUBLE_128): Define.
13425         * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
13426         * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
13427         long double on TARGET_ARCH64.
13428
13429 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
13430
13431         * function.c (free_temps_for_rtl_expr): Don't free slots
13432         that have been pushed into a higher level.
13433
13434         Revert this patch:
13435         2000-03-05  Mark Mitchell  <mark@codesourcery.com>
13436
13437 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
13438
13439         * basic-block.h (ALLOCA_REG_SET): Remove.
13440         (INITIALIZE_REG_SET): New macro.
13441         * flow.c (update_life_info): Use it.
13442         (calculate_global_regs_live): Likewise.
13443         (propagate_block): Likewise.
13444         * global.c (build_insn_chain): Likewise.
13445         * haifa-sched.c (schedule_region): Likewise.
13446
13447 2000-03-05  Stephane Carrez  <stcarrez@worldnet.fr>
13448
13449         * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
13450         (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
13451         (DWARF_ARANGES_PAD_SIZE): New define.
13452         (output_aranges): Use it to pad the address range header.
13453         (DWARF_ROUND): Fix for non power of 2 rounding.
13454
13455 2000-03-05  Jason Merrill  <jason@casey.cygnus.com>
13456
13457         * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
13458
13459 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
13460
13461         * tree.def (RTL_EXPR): Update documentation.
13462         * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
13463         * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
13464         * function.c (preserve_rtl_expr_temp): New function.
13465         (preserve_rtl_expr_temps): Likewise.
13466         (preserve_rtl_expr_result): Use it.
13467
13468         Revert this patch:
13469         2000-03-04  Mark Mitchell  <mark@codesourcery.com>
13470
13471 2000-03-04  Thomas Schuster <Thomas.Schuster@gmx.net>
13472
13473         * regmove.c (copy_src_to_dest)  Do not create src->dest move
13474         for unchanging destination.
13475
13476 2000-03-04  Mark Mitchell  <mark@codesourcery.com>
13477
13478         * function.h (struct sequence_stack): Remove rtl_expr.
13479         (struct emit_staus): Likewise.
13480         (seq_rtl_expr): Remove.
13481         * tree.h (free_temps_for_rtl_expr): Don't declare.
13482         (start_sequence_for_rtl_expr): Likewise.
13483         * rtl.h (preserve_rtl_expr_result): Likewise.
13484         * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
13485         (start_sequence_for_rtl_expr): Remove.
13486         (push_topmost_sequence): Don't save sequence_rtl_expr.
13487         (pop_topmost_sequence): Remove comment about not restoring it.
13488         (end_sequence): Don't set seq_rtl_expr.
13489         (init_emit): Don't initialize it.
13490         (mark_sequence_stack): Don't mark it.
13491         (mark_emit_status): Likewise.
13492         * except.c (protect_with_terminate): Use
13493         start_sequence_for_rtl_expr, not start_sequence.
13494         * expr.c (expand_expr, case RTL_EXPR): Don't call
13495         preserve_rtl_expr_result or free_temps_for_rtl_expr.
13496         * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
13497         (preserve_rtl_expr_result): Remove.
13498         (free_temps_for_rtl_expr): Likewise.
13499         (pop_temp_slots): Likewise.
13500         (mark_temp_slot): Don't mark the rtl_expr.
13501         * stmt.c (expand_start_stmt_expr): Use start_sequence, not
13502         start_sequence_for_rtl_expr.
13503
13504 2000-03-04  Zack Weinberg  <zack@wolery.cumb.org>
13505
13506         * mkdeps.c, mkdeps.h: New files.
13507         * po/POTFILES.in: Add them.
13508         * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
13509         (cpplib.o, cppinit.o): Depend on mkdeps.h.
13510         (mkdeps.o): New target.
13511
13512         * cppfiles.c: Delete deps_output.
13513         * cppinit.c: Include mkdeps.h.  Delete known_suffixes,
13514         OBJECT_SUFFIX, and base_name.
13515         (cpp_cleanup): Use deps_free.  Free ihash->name when clearing
13516         the include hash.
13517         (initialize_dependency_output): Use deps_init,
13518         deps_add_target, deps_calc_target, and deps_add_dep.  Remove
13519         all the unnecessary string bashing.
13520         (cpp_finish): Use deps_write.  Remove an unnecessary nesting
13521         level.
13522         * cpplib.c (do_include): Use deps_add_dep.
13523         * cpplib.h (struct cpp_reader): Replace deps_buffer,
13524         deps_allocated_size, deps_size, deps_column members with
13525         single pointer to a struct deps.  Delete prototype of
13526         deps_output.
13527
13528         * cppinit.c: Fix thinko in previous patch.
13529
13530 Sat Mar  4 11:32:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13531
13532         * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
13533         * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
13534         (mode_for_size_tree): New function.
13535         (layout_decl, layout_type): Call it and clean up BLKmode checks.
13536         * tree.h (mode_for_size_tree): New declaration.
13537
13538         * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
13539
13540 2000-03-04  Jason Merrill  <jason@casey.cygnus.com>
13541
13542         * stmt.c (is_body_block): Move...
13543         * dwarfout.c, dwarf2out.c: ...from here.
13544         * tree.h: Declare it.
13545         * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
13546         * final.c (final_start_function): Do call remove_unnecessary_notes
13547         when scheduling.
13548
13549 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
13550
13551         * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
13552
13553         * cpplib.h (_dollar_ok): New macro.
13554         (is_idchar, is_idstart): Use it.
13555         (IStable): Rename to _cpp_IStable.  Declare it const if
13556         gcc >=2.7 or C99.  Delete all references to FAKE_CONST.
13557         (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
13558         is_space): Update for renamed IStable.
13559
13560         * cppinit.c: Delete all references to FAKE_CONST and CAT
13561         macros. Define init_IStable as empty macro if gcc >=2.7 or
13562         C99. Change TABLE() to ISTABLE and hardcode name of table.
13563         (cpp_start_read): Don't change the IStable based on
13564         dollars_in_ident.
13565
13566         * cpphash.c (unsafe_chars): Add pfile argument.  All callers
13567         changed.  Handle '$' for char1 correctly.
13568         * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
13569
13570         * cppexp.c (tokentab2): Make const.
13571         (cpp_lex): Make toktab const.
13572         * cppinit.c (include_defaults_array): Make const.
13573         (initialize_standard_includes): Make default_include const.
13574
13575 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
13576
13577         * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
13578         (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
13579         (gen_decl_die): Likewise.
13580         * dwarfout.c (dwarfout_file_scope_decl): Likewise.
13581         (output_decl): Likewise.
13582
13583         * varasm.c (make_function_rtl): If we change the name used in the
13584         rtl, update DECL_ASSEMBLER_NAME accordingly.
13585         (make_decl_rtl): Likewise.
13586
13587         * toplev.c (rest_of_compilation): Tweak formatting.
13588
13589         * toplev.c (rest_of_compilation): find_loop_tree_blocks before
13590         remove_unnecessary_notes.
13591         (debug_ignore_block): New fn.
13592         * toplev.h: Declare it.
13593         * emit-rtl.c (remove_unncessary_notes): Call it.
13594         * dwarf2out.c (dwarf2out_ignore_block): New fn.
13595         * dwarf2out.h: Declare it.
13596         * final.c (final_start_function): Don't call remove_unnecessary_notes
13597         if we did insn scheduling.
13598
13599 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
13600
13601         * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
13602         * cpplib.h: Delete SET_CPP_PEDANTIC.
13603
13604 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13605
13606         * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
13607         result is a RECORD_TYPE.
13608
13609 2000-03-03  Jonathan Larmour  <jlarmour@cygnus.co.uk>
13610
13611         * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
13612
13613 2000-03-03  Richard Henderson  <rth@cygnus.com>
13614
13615         * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
13616         addition over compliments over shifts.
13617
13618 Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13619
13620         * reload1.c (reload_combine_note_use): Handle return register USEs.
13621         REG case: Handle multi-hard-register hard regs.
13622
13623 Fri Mar  3 07:38:34 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13624
13625         * md.texi: Document use of '*' in insn pattern name.
13626
13627 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
13628
13629         * calls.c (special_function_p): operator new may not be malloc-like.
13630
13631         * gcse.c (dump_hash_table): Really fix error in last change.
13632
13633 2000-03-02  Denis Chertykov  <denisc@overta.ru>
13634
13635         * avr.c (print_operand): Use print_operand_address instead of
13636         output_addr_const.
13637         * avr/libgcc.S: Cleanup code.
13638
13639 2000-03-02  Richard Henderson  <rth@cygnus.com>
13640
13641         * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
13642
13643 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
13644
13645         * tree.h (TYPE_ALIGN_UNIT): New macro.
13646
13647 2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
13648
13649         * i386.c: (constant_call_address_operand): Reject CONST_INT.
13650
13651 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
13652
13653         * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
13654         for the buffer.
13655         (SET_CPP_PEDANTIC): New macro.
13656         * cpplib.c (do_include): Don't bother checking system_header_p.
13657         (do_warning, do_ident, do_assert, do_unassert): Likewise.
13658         * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
13659
13660         * function.h (struct expr_status): Add x_arg_space_so_far.
13661         (arg_space_so_far): New macro.
13662         * expr.c (init_expr): Initialize it.
13663         * calls.c (emit_call_1): Reset it.
13664         (compute_argument_block_size, expand_call): Use it.
13665         (expand_call, store_one_arg): Increment it.
13666
13667 Thu Mar  2 17:27:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13668
13669         * varasm.c (output_constant): Strip off a CONVERT_EXPR to
13670         a UNION_TYPE.
13671
13672 2000-03-02  Zack Weinberg  <zack@wolery.cumb.org>
13673
13674         * cppfiles.c (cpp_read_file): New function.
13675
13676         * cpphash.c (collect_expansion): Make sure to reset last_token
13677         to NORM when we hit a string.  Handle trailing whitespace
13678         properly when the expansion is empty.
13679         (create_definition): Disable line commands while parsing the
13680         directive line.
13681         (dump_definition): If pfile->lineno == 0, output a line
13682         command ahead of the dump, and add a trailing newline.
13683
13684         * cppinit.c (append_include_chain): Add fifth argument, which
13685         indicates whether or not system headers are C++ aware.
13686         (initialize_standard_includes): New function,
13687         broken out of read_and_prescan.  Pass 'cxx_aware' value from
13688         the include_defaults_array on to append_include_chain.
13689         (dump_special_to_buffer): Const-ify char array.
13690         (builtin_array): Don't dump __BASE_FILE__.
13691         (cpp_start_read): Use cpp_read_file.  Reorder code for
13692         clarity.  Don't output line commands here for -D/-A/-U
13693         switches.  Don't call deps_output for files included with
13694         -include or -imacros.
13695
13696         * cpplib.c (do_define): Don't pay any attention to the second
13697         argument.
13698         (cpp_expand_to_buffer): Disable line commands while scanning.
13699         (output_line_command): Work in the file buffer.
13700         * cpplib.h: Remove no_record_file flag from struct cpp_reader.
13701         Fix formatting of comments.  Prototype cpp_read_file.
13702
13703 Thu Mar  2 13:29:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13704
13705         * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
13706         reference the language-equivalent of sizetype.
13707         * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
13708         * fold-const.c (size_binop, size_diffop): Put back checks.
13709         * gcse.c (dump_hash_table): Fix minor error in last change.
13710         * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
13711         Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
13712         all sizetypes.
13713
13714 Thu Mar  2 12:48:45 MET 2000  Jan Hubicka  <jh@suse.cz>
13715
13716         * calls.c (expand_call)  Do not attempt to combine stack adjustments
13717         with inhibit_defer_pop set.
13718
13719 2000-03-01  Mark Mitchell  <mark@codesourcery.com>
13720
13721         * stor-layout.c (layout_decl): Allow front-ends to explicitly set
13722         the DECL_SIZE for a FIELD_DECL.
13723
13724 2000-03-01  Bruce Korb  <bkorb@gnu.org>
13725
13726         * fixinc/inclhack.tpl: remove unused symlinks
13727         * fixinc/README: GCC Maintainer info
13728         * fixinc/inclhack.sh: regen
13729         * fixinc/fixincl.sh: regen
13730
13731 2000-03-01  Zack Weinberg  <zack@wolery.cumb.org>
13732
13733         * cpphash.c (collect_expansion): Trim trailing white space
13734         from macro definitions, but don't go past the last insertion
13735         point.
13736
13737 Wed Mar  1 12:14:31 MET 2000  Jan Hubicka  <jh@suse.cz>
13738
13739         * i386.md (mulqi3): New pattern.
13740
13741 2000-02-29  Zack Weinberg  <zack@wolery.cumb.org>
13742
13743         * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
13744         token types.
13745         (struct cpp_reader): Add parsing_if_directive and
13746         parsing_define_directive flags.
13747         (struct cpp_options): Remove output_conditionals flag.
13748         (check_macro_name): Delete prototype.
13749
13750         * cpphash.h (struct macrodef): Delete.
13751         (struct reflist): Separate from struct definition.
13752         (struct definition): Remove unused fields.  Add column number.
13753         (create_definition): Returns a DEFINITION *.  Takes a
13754         cpp_reader * and an int.
13755
13756         * cpphash.c (SKIP_WHITE_SPACE): Delete.
13757         (PEEKC): Copy defn from cpplib.c.
13758         (rest_extension, REST_EXTENSION_LENGTH): Delete.
13759         (struct arg): New.
13760         (struct arglist): Simplify.
13761         (collect_expansion): Rewrite.  Get tokens by calling
13762         cpp_get_token.  Add more error checking.
13763         (collect_formal_parameters): New function, broken out of
13764         create_definition and reworked to use get_directive_token.
13765         (create_definition): All real work is now in collect_expansion
13766         and collect_formal_parameters.  do_define handles finding the
13767         macro name.  Return a DEFINITION, not a MACRODEF.
13768         (macroexpand): Replace bcopy with memcpy throughout.  Replace
13769         character-at-a-time copy loop with memcpy and pointer increments.
13770         (compare-defs): d1->argnames / d2->argnames might be null.
13771
13772         * cpplib.c (copy_rest_of_line): Delete function.
13773         (skip_rest_of_line): Do all the work ourselves.
13774         (skip_string): New function.
13775         (parse_string): Use skip_string.
13776         (get_macro_name): New function.
13777         (check_macro_name): Delete.
13778         (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
13779         (cpp_skip_hspace): Use CPP_BUMP_LINE.
13780         (handle_directive): ICE if we're called on a macro buffer.
13781         (do_define): Determine macro name and type (funlike/objlike)
13782         here.  Expunge all uses of MACRODEF.
13783         (cpp_push_buffer): Set line_base to NULL.
13784         (do_undef, read_line_number): Don't worry about getting a POP token.
13785         (eval_if_expression): Set/reset parsing_if_directive around
13786         cpp_parse_expr. Don't clear only_seen_white.
13787         (skip_if_group): Remove output_conditionals logic.  Use
13788         skip_rest_of_line.
13789         (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
13790         tokens under appropriate conditions.
13791         (cpp_unassert): Call do_unassert not do_assert.  Oops.
13792
13793         * cppexp.c (parse_defined): New function, break out of
13794         cpp_lex.
13795         (cpp_lex): We now get CPP_ASSERTION tokens and can check them
13796         ourselves, with cpp_defined.
13797         * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
13798
13799         * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
13800         * gcc.dg/strpaste-2.c: New.
13801
13802 2000-02-29  Mark Mitchell  <mark@codesourcery.com>
13803
13804         * fold-const.c (size_binop): Don't asert inputs are the same and
13805         have TYPE_IS_SIZETYPE set.
13806         (size_diffop): Likewise.
13807
13808 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
13809
13810         * dwarfout.c (output_block): Output abstract blocks even if they
13811         don't have TREE_ASM_WRITTEN set.
13812
13813         * calls.c (emit_library_call): Check for null REG.
13814
13815 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
13816
13817         * c-decl.c (current_function_decl): Move to toplev.c.
13818         (init_decl_processing): Don't add current_function_decl as a ggc
13819         root here.
13820         * dbxout.c (dbxout_symbol): Change return type to int.
13821         (dbxout_symbol_location, dbxout_syms): Likewise.
13822         (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
13823         any locals. Use current_function_func_begin_label if set.
13824         * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
13825         * dwarf2out.c (dwarf2out_begin_prologue): Set
13826         current_function_func_begin_label.
13827         * final.c (final_start_function): Reset it.
13828         * toplev.c (current_function_decl): Define it here.
13829         (current_function_func_begin_label): New variable.
13830         (main): Add both as ggc roots.
13831         * tree.h (current_function_func_begin_label): Declare.
13832
13833 Tue Feb 29 14:07:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13834
13835         * gcse.c: Cleanups throughout: mostly white-space, but also
13836         some minor rearrangement of code.
13837
13838 Tue Feb 29 10:45:59 2000  Jeffrey A Law  (law@cygnus.com)
13839
13840         * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
13841         returns a PARALLEL.  Use emit_group_load and use_group_regs
13842         as needed.
13843         (emit_library_call_value): Similarly.
13844
13845         * pa/t-pa: Use quadlib.c instead of quadlib.asm.
13846         * pa/quadlib.asm: Remove.
13847         * pa/quadlib.c: New file.
13848
13849         * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
13850         * configure: Rebuilt.
13851
13852 2000-02-29  Philip Blundell  <pb@futuretv.com>
13853
13854         * config/arm/conix-elf.h: New file.
13855         * configure.in (arm*-*-conix*): New configuration.
13856         * configure: Regenerate.
13857
13858 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
13859
13860         * dwarf2out.c (gen_block_die): Output abstract blocks even if they
13861         don't have TREE_ASM_WRITTEN set.
13862
13863 Mon Feb 28 21:07:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13864
13865         * Eliminate DECL_FIELD_SIZE.
13866         * builtins.c (built_in_class_names, built_in_names): New variables.
13867         * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
13868         * expr.c (expand_expr, case COMPONENT_REF): Get field size from
13869         DECL_SIZE, not DECL_FIELD_SIZE.
13870         * print-tree.c (print_node): Remove code that prints extra blank
13871         lines in some cases.
13872         Properly handle inline and builtin function cases.
13873         * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
13874         * tree.h (built_in_class_named, built_in_names): New declarations.
13875         (union tree_decl): Rename internal unions to u1 and u2 and change
13876         some of their components.
13877         Add new field built_in_class.
13878         (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
13879         Reflect above changes.
13880         (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
13881         (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
13882         * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
13883         (encode_field_decl): Likewise; also remove obsolete test for bitfield.
13884
13885 2000-02-28  Dmitri Makarov  <dim@windriver.com>
13886
13887         * extend.texi: Document ARM's support for long/short calls.
13888
13889         * invoke.texi: Document ARM's -mlong-calls command line switch.
13890
13891         * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
13892         (arm_encode_call_attribute): Add prototype.
13893         (arm_set_default_type_attribute): Add prototype.
13894         (arm_strip_name_encoding): Add prototype.
13895
13896         * config/arm/arm.c (arm_init_cumulative_args): replace
13897         initialisation og 'long_calls' field with initialisation of
13898         'call_cookie' field.
13899         (enum arm_pragma_enum): New enum.
13900         (arm_pragma_long_calls): New static variable.
13901         (arm_process_pragma): Also process "#pragma long_calls_off".
13902         (arm_valid_type_attribute_p): Accept short_call attribute.
13903         (arm_comp_type_attributes): Check long/short call attributes.
13904         (arm_encode_call_attribute):  New function:  Encode long_call
13905         or short_call attribute in function name.
13906         (arm_set_default_type_attributes): New function: Assign
13907         default attributes to newly defined type.
13908         (current_file_function_operand): New function: Return true if
13909         the symbol is a function which has already been compiled.
13910         (arm_is_longcall_p): New function: Return true if the
13911         indicated function should be called via a long call.
13912         (arm_get_strip_length): New function.  Returns number of
13913         prefix characters to be stripped from a function's name.
13914         (arm_strip_name_encoding): New function.  Strip prefix characters
13915         from a function's name.
13916
13917         * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
13918         with 'call_cookie'.
13919         (SHORT_CALL_FAG_CHAR): Define.
13920         (LONG_CALL_FAG_CHAR): Define.
13921         (ENCODED_SHORT_CALL_ATTR_P): Define.
13922         (ENCODED_LONG_CALL_ATTR_P): Define.
13923         (ARM_NAME_ENCODING_LENGTHS): Define.
13924         (STRIP_NAME_ENCODING): Define.
13925         (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
13926         (ARM_ENCODE_CALL_TYPE): Define.
13927         (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
13928         (ARM_DECLARE_FUNCTION_SIZE): Define.
13929         (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
13930
13931         * config/arm/arm.md (call): Call arm_is_longcall_p to decide
13932         if a long call is needed.
13933         (call_value): Ditto.
13934         (call_symbol): Ditto.
13935
13936         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
13937         ARM_DECLARE_FUNCTION_SIZE.
13938
13939         * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
13940         (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
13941         (ARM_STRIP_NAME_ENCODING): Undefine.
13942         (STRIP_NAME_ENCODING): Undefine.
13943         (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
13944         (ASM_DECLARE_FUNCTION_NAME): Ditto.
13945         (ASM_OUTPUT_COMMON): Ditto.
13946         (ASM_DECLARE_OBJECT_NAME): Ditto.
13947
13948         * config/arm/pe.c (arm_dllexport_name_p): Check for
13949         ARM_PE_FLAG_CHAR.
13950         (arm_dllimport_name_p): Ditto.
13951         (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
13952         (arm_mark_dllimport): Ditto.
13953
13954 Mon Feb 28 22:11:12 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13955
13956         * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
13957
13958 2000-02-28  Mark Mitchell  <mark@codesourcery.com>
13959
13960         * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
13961
13962 2000-02-28  Zack Weinberg  <zack@wolery.cumb.org>
13963
13964         * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
13965         * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
13966         NO_BUILTIN_WCHAR_TYPE is not defined.
13967         (CPP_WCHAR_TYPE): Delete.
13968         * cccp.c (main): Don't change wchar_type if cplusplus.
13969         (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
13970
13971 2000-02-28  Nick Clifton  <nickc@cygnus.com>
13972
13973         * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
13974
13975 Mon Feb 28 14:21:15 2000  Catherine Moore  <clm@cygnus.com>
13976
13977         * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
13978         (ASM_WEAKEN_LABEL): Define.
13979
13980 Mon Feb 28 13:07:19 MET 2000  Jan Hubicka  <jh@suse.cz>
13981
13982         * expr.c (store_constructor): Do not emit USE.
13983         * rtl.h (stupid_life_analysis): Remove.
13984
13985 Mon Feb 28 07:03:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13986
13987         * function.c (number_blocks): Reset next_block_index based on
13988         what debugging format is used, not what is defined.
13989
13990         * lcm.c: Minor reformatting throughout.
13991         (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
13992
13993         * toplev.c (rest_of_compilation): Account for time in
13994         optimize_mode_switching.
13995
13996         * jump.c (jump_optimize_1): Don't call delete_barrier_successors
13997         if only marking labels.
13998
13999 Mon Feb 28 12:53:57 MET 2000  Jan Hubicka  <jh@suse.cz>
14000
14001         * calls.c (expand_call): Attempt to combine stack adjustments with
14002         pending stack adjustments.
14003
14004 Mon Feb 28 11:34:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14005
14006         * loop.c (reg_in_basic_block_p): Don't abort when falling through
14007         to the end of the function.
14008
14009 2000-02-27  Mark Mitchell  <mark@codesourcery.com>
14010
14011         * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
14012         blocks.
14013         * final.c (next_block_index): Remove.
14014         (max_block_depth): Likewise.
14015         (pending_blocks): Likewise.
14016         (init_final): Don't initialize them.
14017         (final_start_function): Don't set next_block_index.  Set up
14018         BLOCK_NUMBER.
14019         (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
14020         * function.h (number_blocks): New function.
14021         * function.c (get_block_vector): New function.
14022         (identify_blocks): Use it.
14023         (reorder_blocks): Set NOTE_BLOCK.
14024         (number_blocks): New function.
14025         * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
14026         * tree.h (BLOCK_NUMBER): New macro.
14027         (tree_block): Add block_num field.
14028         * dbxout.c (next_block_number): Remove.
14029         (dbxout_init): Don't set it.
14030         (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
14031         set.  Use BLOCK_NUMBER, rather than next_block_num, to determine
14032         block numbers.
14033         * toplev.c (rest_of_compilation): Always call
14034         find_loop_tree_blocks.  Fix indentation.
14035         * dwarf2out.c (next_block_number): Remove.
14036         (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
14037         to determine block numbers.
14038         (gen_inlined_subroutine_die): Likewise.
14039         (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
14040         (decls_for_scope): Don't increment next_block_number.
14041         * dwarfout.c (next_block_number): Remove.
14042         (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
14043         to determine block numbers.
14044         (output_inlined_subroutine_die): Likewise.
14045         (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
14046         (output_decls_for_scope): Don't increment next_block_number.
14047         * sdbout.c (next_block_number): Remove.
14048         (sdbout_block): Use BLOCK_NUMBER.
14049         (sdbout_begin_block): Simplify.
14050         * xcoffout.c (next_block_number): Remove.
14051         (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
14052         (xcoffout_begin_block): Don't set next_block_number.
14053         (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
14054         next_block_number.
14055
14056 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14057
14058         * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
14059         (expand_builtin_strcpy): Pass correct type to size_binop.
14060         (expand_builtin_strcmp): Likewise.
14061         Clean up conditional structure.
14062         * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
14063         (complete_array_type): Don't use size_binop for MAXINDEX.
14064         * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
14065         (c_sizeof_nowarn, c_size_in_bytes): Likewise.
14066         (c_alignof): Use size_one_node.
14067         (build_unary_op): Pass arg of proper type to size_binop.
14068         (really_start_incremental_init, push_init_level): Use sizetype for
14069         constructor{,_bit,_unfilled}_index.
14070         (pop_init_label, output_init_element): Likewise.
14071         (output_pending_init_elements, process_init_element): Likewise.
14072         * calls.c (compute_argument_block_size): Field VAR is ssizetype.
14073         * expr.c (store_expr): Use size_int.
14074         (store_constructor): Use proper types for size_binop args.
14075         (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
14076         (expand_expr_unaligned): Likewise.
14077         (string_contant): Return object of sizetype.
14078         * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
14079         (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
14080         (ARGS_SIZE_TREE): Pass proper types to size_binop.
14081         * fold-const.c (int_const_binop): Refine when size_int is called.
14082         (fold_convert): Likewise.
14083         (size_int_wide): Rework to take KIND as arg, only take low order
14084         bits, handle new sizetype_tab datatype, and chain entries in
14085         size_table.
14086         (size_int_type_wide): New function.
14087         (size_binop): Validate types of arguments.
14088         (ssize_binop): Deleted.
14089         (size_diffop): New function.
14090         (extract_muldiv): Only fold division into multiplication for sizetypes.
14091         * function.c (assign_parms): Use size_diffop and make sure
14092         VAR field is of ssizetype; also pass proper type to size_binop.
14093         (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
14094         (round_down): Deleted from here.
14095         * store-layout.c (sizetype_tab): Now an array.
14096         (sizetype_set, early_root_list): New variables.
14097         (variable_size): Use size_one_node.
14098         (round_up): Pass proper type to size_binop.
14099         (round_down): Moved to here and corrected as above.
14100         (layout_record): Pass proper arg types to size_binop.
14101         (layout_type): Likewise.
14102         If sizetype_set is zero, record the type just laid out.
14103         (make_unsigned_type): Don't call set_sizetype;
14104         (make_signed_type): Likewise; also, call fixup_signed_type.
14105         (initialize_sizetypes): New function.
14106         (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
14107         set name of bitsizetype to "bit_size_type".
14108         Fix up type of sizes of all types made before call.
14109         * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
14110         * tree.c (fix_sizetype): Deleted.
14111         (build_common_tree_nodes): Call initialize_sizetypes.
14112         (build_common_tree_nodes_2): Don't call fix_sizetype.
14113         * tree.h (TYPE_IS_SIZETYPE): New macro.
14114         (initialize_sizetype): New declaration.
14115         (enum size_type_kind): New type.
14116         (struct sizetype_tab): Deleted.
14117         (sizetype_tab): Now array; adjust sizetype macros.
14118         (size_diffop, size_int_type_wide): New functions.
14119         (size_int_wide): Change number of args and type; access macros changed.
14120         (ssize_int, sbitsize_int): New macros.
14121         * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
14122         (ROUND_TYPE_SIZE_UNIT): New macro.
14123
14124 2000-02-27  Zack Weinberg  <zack@wolery.cumb.org>
14125
14126         * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
14127
14128 Sun Feb 27 07:44:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14129
14130         * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
14131         Mark as possibly unused.
14132
14133         * cse.c (cse_insn): Delete dead code involving tablejump.
14134         Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
14135
14136         * Makefile.in (libcpp.a): Start by deleting it.
14137
14138 2000-02-27  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14139
14140         * cpplib.h (enum file_change_code): Added rename_file.
14141         * cpplib.c (do_line): If a filename is given, set file_change to
14142         rename_file.
14143         (output_line_command): If file_change is rename_file, always
14144         output a # directive with the file name.
14145
14146         * cpplib.c (do_pragma): Accept #pragma without consecutive token.
14147
14148 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
14149
14150         * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
14151         when copying a PARM_DECL or RESULT_DECL.
14152
14153 2000-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14154
14155         * fix-header.c (recognized_function): Also fix prototypes for
14156         functions taking "void".
14157
14158 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
14159
14160         * reload1.c (do_output_reload): Check reg_reloaded_valid before
14161         looking at reg_reloaded_contents.
14162
14163 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
14164
14165         * Makefile.in (STMP_FIXINC): New toggle.
14166         (LIBGCC2_DEPS): Delete all references.
14167         (stmp-headers): Delete target.  All references either deleted
14168         or changed to stmp-int-headers.
14169         (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
14170         (LIBCPP_OBJS): Take out cppalloc.o.
14171         (cppalloc.o): Delete target.
14172         (stmp-int-hdrs): Depend on $(STMP_FIXINC).
14173         (gen-protos, fix-header): Link with libiberty.a.
14174         * build-make: Don't change FIXINCLUDES.  Override STMP_FIXINC
14175         to empty.
14176
14177         * configure.in: Remove refs to strerror.
14178         * acconfig.h: Take out NEED_DECLARATION_STRERROR.
14179         * system.h: Take out strerror stanza.
14180
14181         * cpperror.c (my_strerror): Delete function.
14182         (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
14183         * cppmain.c (main): Call xmalloc_set_program_name first thing.
14184         * cppalloc.c: Delete file.
14185         * gen-protos.c: Don't provide xrealloc.
14186
14187         * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
14188         xstrerror throughout.
14189
14190 2000-02-26  Bruce Korb  <bkorb@gnu.org>
14191
14192         * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
14193         match for DOS headers, too.
14194         * fixinc/inclhack.sh,fixincl.x: Regenerate.
14195
14196 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
14197
14198         * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define.  The default
14199         is right for most ELF targets.
14200         * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
14201         Let the default file use %U properly.
14202         * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define.  Use the
14203         default.
14204
14205         * config/fp-bit.c (pack_d): Properly handle rounding of denormal
14206         numbers.
14207
14208 Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14209
14210         * toplev.c (documented_lang_options): Correct spelling error.
14211         (decode_d_option, decode_f_option, main): Likewise.
14212
14213         * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
14214
14215         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
14216         to tell assembler it is permitted to expand large constants.
14217
14218 2000-02-25  Mumit Khan  <khan@xraylith.wisc.edu>
14219
14220         * protoize.c: (AUX_INFO_SUFFIX): New macro.
14221         (aux_info_suffix): Use.
14222         (SAVE_SUFFIX): New macro.
14223         (save_suffix): Use.
14224         (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
14225         (gen_aux_info_file): Use aux_info_suffix instead of ".X".
14226         (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
14227
14228         * invoke.texi (Running Protoize): Update documentation.
14229
14230 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
14231
14232         * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
14233
14234 2000-02-25  John Wehle  (john@feith.com)
14235
14236         * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
14237
14238 2000-02-25  Anthony Green  <green@cygnus.com>
14239
14240         * toplev.c (rest_of_compilation): Rebuild jump labels if
14241         combine_instructions has created a new direct jump.
14242         * combine.c (try_combine): Add new_direct_jump_p argument.  Set it
14243         when appropriate.
14244         (combine_instructions): Call try_combine with new argument.
14245         Return non-null value when new direct jump instruction is created.
14246         * rtl.h: combine_instructions returns an int.
14247
14248 Fri Feb 25 19:49:08 2000  Jeffrey A Law  (law@cygnus.com)
14249
14250         * cse.c (cse_insn): Replace the PATTERN of the insn with an new
14251         jump when changing a computed jump into a jump to a known
14252         target.
14253
14254 Fri Feb 25 19:22:44 2000  Graham Stott <grahams@rcp.co.uk>
14255
14256         * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
14257         to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
14258
14259         * i386.md (define_expand "clrstrsi"): Fix typo.
14260
14261 Fri Feb 25 18:49:39 2000  "K. Richard Pixley" <rich@microunity.com>
14262
14263         * rtl.texi: Fix typo.
14264
14265 Fri Feb 25 20:02:35 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14266
14267         * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
14268         UNITS_PER_WORD.  Change caller initial_elimination_offset.
14269         (rounded_frame_size): Take into account that argument pushed has
14270         changed.  Fix TARGET_ALIGN_DOUBLE problem.
14271
14272 2000-02-25  Geoff Keating  <geoffk@cygnus.com>
14273
14274         * haifa-sched.c (schedule_block): Explain the real reason
14275         we delete REG_SAVE_NOTEs on the first insn of a block.
14276         Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
14277
14278 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
14279
14280         * input.h (push_srcloc): New function.
14281         (pop_srcloc): Likewise.
14282         * toplev.c (push_srcloc): Define it.
14283         (pop_srcloc): Likewise.
14284
14285 2000-02-24  Richard Henderson  <rth@cygnus.com>
14286
14287         * flow.c (life_analysis): When collecting reg info, clear
14288         regs_ever_live.
14289
14290 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14291
14292         Fix bug exposed by reload.c no longer rounding the frame
14293         size to BIGGEST_ALIGNMENT:
14294         * sh.c (rounded_frame_size): New function.
14295         (sh_expand_prologue, sh_expand_epilogue): Use it.
14296         (initial_elimination_offset): Likewise.
14297
14298 Thu Feb 24 20:04:11 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14299
14300         Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
14301         * sh-protos.h (sh_need_epilogue): Declare.
14302         * sh.c (sh_need_epilogue_known): New static variable.
14303         (sh_need_epilogue): New function.
14304         (function_epilogue): Clear need_epilogue_known.
14305         * sh.md (return): Split into expander / insn pattern.
14306         Make the expander conditional on ! sh_need_epilogue ().
14307
14308 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
14309
14310         * machmode.h (get_mode_alignment): Declare.
14311         (GET_MODE_ALIGNMENT): Call it.
14312         * stor-layout.c (get_mode_alignment): New function. Make
14313         sure alignment is always power of 2.
14314
14315 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
14316
14317         * i386.h: Remove useless definition of "I386" and misleading
14318         comment above it.
14319
14320 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
14321
14322         * tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
14323         under which TREE_PERMANENT will be set.
14324         * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
14325         build1): Use TREE_SET_PERMANENT.
14326         * print-tree.c (print_node): Don't report value of
14327         TREE_PERMANENT if ggc_p is true.
14328
14329         * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
14330         decide whether to give a type a new alias set.
14331         * objc/objc-act.c (build_objc_string_object): Never copy the string.
14332         * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
14333         of value of 'obstack'.
14334
14335
14336 2000-02-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14337
14338         * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
14339
14340 2000-02-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14341
14342         * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
14343         * cpplib.c (cpp_get_token): Produce them.
14344         * cppexp.c (cpp_lex): Handle them.
14345
14346 2000-02-23  Nick Clifton  <nickc@cygnus.com>
14347
14348         * config/arm/arm.c (arm_comp_type_attributes): Simply and
14349         comment tests on type attributes.
14350
14351 Wed Feb 23 16:42:21 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14352
14353         * final.c (shorten_branches): Make value passed to LOOP_ALIGN
14354         conform to documentation.
14355         * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
14356         to check for special cases.
14357         * sh-protos.h (sh_loop_align): Declare.
14358         * sh.c (sh_loop_align): Define.
14359
14360 2000-02-22  Andrew Haley  <aph@cygnus.com>
14361
14362         * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
14363         (SIZE_TYPE): Is 32 bits when using -mgp32.
14364         (PTRDIFF_TYPE): Ditto.
14365
14366 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14367
14368         * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
14369
14370 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
14371
14372         * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
14373         BIGGEST_FIELD_ALIGNMENT a constant.
14374
14375 2000-02-21  Jason Merrill  <jason@casey.cygnus.com>
14376
14377         * dwarf2out.c (output_line_info): Put the marker for the end of
14378         the line number info at the actual end.
14379         (gen_struct_or_union_type_die): Use decl_function_context
14380         to check for local classes.
14381         * dwarfout.c (output_type): Likewise.
14382
14383 Tue Feb 22 01:38:57 2000  Jeffrey A Law  (law@cygnus.com)
14384
14385         * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
14386         for arguments with a mode, but no type.
14387         (FUNCTION_ARG_CALLEE_COPIES): Similarly.
14388         * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
14389         * pa/long_double.h: New file.
14390         * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
14391         both have 128bit wide long doubles.
14392         * configure: Rebuilt.
14393
14394 2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14395
14396         * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
14397
14398         * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
14399         fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
14400         (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
14401
14402         * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
14403
14404         * integrate.c (compare_blocks, find_block): Likewise.
14405
14406         * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
14407
14408         * rtl.h (set_file_and_line_for_stmt): Constify a char*.
14409
14410         * stmt.c (stmt_status, set_file_and_line_for_stmt,
14411         expand_asm_operands): Likewise.
14412
14413 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
14414
14415         * predict.c (estimate_probability): Added the pointer heuristic to
14416         the collection of static branch predictors.
14417
14418 2000-02-21  Catherine Moore  <clm@cygnus.com>
14419
14420         * config/mips/mips.h (ASM_SPEC): Add -mfix700.
14421         * invoke.texi (-mfix7000): Document.
14422
14423 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
14424
14425         * diagnostic.c (init_output_buffer): Make it possible to output at
14426         least 32 characters if we're given a too long prefix.
14427
14428 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
14429
14430         * varasm.c (initializer_constant_valid_p): Call
14431         lang_expand_constant to simplify the constant.
14432
14433 2000-02-20  Bruce Korb  <bkorb@gnu.org>
14434
14435         * fixinc/inclhack.def(stdio_va_list):
14436         typedef needs to be disabled.
14437         * fixinc/inclhack.sh: regen
14438         * fixinc/fixincl.x: regen
14439
14440 2000-02-20  Geoff Keating  <geoffk@cygnus.com>
14441
14442         * print-rtl.c (print_rtx): Don't print addresses when
14443         flag_dump_unnumbered.
14444
14445 2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14446
14447         * sparc.c (sparc_output_scratch_registers): Mark parameter with
14448         ATTRIBUTE_UNUSED.
14449         (sparc_va_arg, sparc_flat_output_function_prologue,
14450         sparc_flat_output_function_epilogue): Cast value to unsigned in
14451         comparison.
14452         (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
14453
14454         * sparc.md: Add default case in switch.
14455
14456 2000-02-19  Richard Henderson  <rth@cygnus.com>
14457
14458         * c-typeck.c (add_pending_init): Don't abort for multiple
14459         fields at the same offset.
14460         (pending_init_member): Test the correct member.
14461
14462 2000-02-19  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14463
14464         * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
14465         instead of SImode.
14466         (start_catch_handler) : Same.
14467
14468 2000-02-19  Brad Lucier  (lucier@math.purdue.edu)
14469
14470         * Makefile.in: Have flow.o depend on $(EXPR_H)
14471
14472 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14473
14474         * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
14475         * c-decl.c (duplicate_decls, finish_enum): Likewise.
14476         (finish_decl): Remove -Wlarger-than code from here.
14477         * flags.h (id_clash_len): Now int.
14478         (larger_than_size): Now HOST_WIDE_INT.
14479         * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
14480         Clean up checking to see if in table.
14481         (make_bit_field_ref): Remove extra parm to bitsize_int.
14482         * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
14483         * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
14484         * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
14485         and for computing size of decl.
14486         * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
14487         Move -Wlarger-than code to here.
14488         (layout_record): Remove extra arg to bitsize_int.
14489         Set TYPE_BINFO_SIZE_UNIT.
14490         (layout_union): Remove extra arg to bitsize_int.
14491         Use proper type for size of QUAL_UNION.
14492         (layout_type): Remove extra arg to bitsize_int.
14493         * toplev.c (id_clash_len): Now int.
14494         (larger_than_size): Now HOST_WIDE_INT.
14495         (decode_W_option): Clean up id-clash and larger-than- cases.
14496         * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
14497         (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
14498         * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
14499         (struct tree_decl): New field size_unit.
14500         (size_int_wide): No HIGH operand; NUMBER is now signed.
14501         (size_int_2): Deleted.
14502         (size_int, bitsize_int): Don't use it and rework args.
14503         * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
14504
14505 Fri Feb 18 20:01:58 2000  Jeffrey A Law  (law@cygnus.com)
14506
14507         * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
14508
14509 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
14510
14511         * invoke.texi (Warning Options): Add an explanation of why
14512         you might want the -Wfloat-equal flag.
14513
14514 Fri Feb 18 20:08:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14515
14516         * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
14517         * cppinit.c (new_pending_define): Add cast to avoid warning.
14518         * expmed.c (extract_bit_field): Likewise.
14519         * flow.c (enum reorder_skip_type): New type.
14520         (skip_insns_between_blcok): New it.
14521         Rework to avoid warning about possibly undefined variable.
14522         * function.c (assign_parms): Make thisparm_boundary unsigned.
14523         * genrecog.c (write_switch): Cast XWINT result to int.
14524         * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
14525         * mips-tfile.c (init_file): Make two versions of FDR intializer:
14526         one for MIPS and one for Alpha.
14527         (get_tag, copy_object): Add casts to avoid warnings.
14528         * optabs.c (init_one_libfunc): Cast NAME to (char *).
14529         * reload.c (find_reloads): Make TYPE enum reload_type.
14530         * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
14531         * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
14532         * varasm.c (compare_constant_1): Add cast to avoid warning.
14533         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
14534         to (char *).
14535         (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
14536         Cast switch operand of size to int.
14537         (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
14538         * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
14539         in unhandled case.
14540
14541 2000-02-18  Nick Clifton  <nickc@cygnus.com>
14542
14543         * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
14544         anything for an alignment of zero.
14545
14546         * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
14547         anything for an alignment of zero.
14548
14549 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
14550
14551         * gcc.texi (Bug Reporting): Refer to bugs.html.
14552         (Bug Lists): Likewise.
14553         * system.h (GCCBUGURL): New preprocessor define.
14554         * rtl.c (fancy_abort): Use it.
14555         * gcc.c (main): Likewise.
14556
14557 2000-02-18  Richard Henderson  <rth@cygnus.com>
14558
14559         * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
14560         (life_analysis_1): Subsume into ...
14561         (life_analysis): ... here.  Force PROP_REG_INFO off after reload.
14562         Use update_life_info for the relaxation.
14563         (update_life_info): Update REG_BASIC_BLOCK for registers live on
14564         entry and regs_live_at_setjmp.
14565         (set_noop_p): Simplify.
14566         (notice_stack_pointer_modification_1): Renamed from s/_1//.
14567         (record_volatile_insns): Split into ...
14568         (delete_noop_moves): ... here,
14569         (notice_stack_pointer_modification): ... here,
14570         (insn_dead_p): ... and here.
14571         (propagate_block): Don't query INSN_VOLATILE.
14572         (mark_used_regs): Mind !PROP_REG_INFO.
14573         * toplev.c (rest_of_compilation): Call mark_constant_function here,
14574         not in life_analysis.
14575
14576 Fri Feb 18 01:29:22 EST 2000  John Wehle  (john@feith.com)
14577
14578         * loop.c (canonicalize_condition): New function,
14579         broken out of get_condition.
14580         (get_condition): Use it.
14581         * expr.h (canonicalize_condition): Prototype it.
14582
14583         * tree.h (tree_int_cst_msb): Declare.
14584         * tree.c (tree_int_cst_msb): New function.
14585
14586 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
14587
14588         * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
14589         isn't set.
14590
14591         * invoke.texi (-fmessage-length=n): Document.
14592
14593 2000-02-17  Jason Merrill  <jason@casey.cygnus.com>
14594
14595         * bitmap.c (bitmap_operation): Don't leak bitmap elements.
14596
14597 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
14598
14599         * function.c (thread_prologue_and_epilogue_insns): Put a line note
14600         after the prologue.
14601
14602 2000-02-17  Nick Clifton  <nickc@cygnus.com>
14603
14604         * config/arm/thumb.c: Replace includes of system headers with
14605         #include "system.h".
14606
14607 2000-02-16  Richard Henderson  <rth@cygnus.com>
14608
14609         * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
14610         Add crtbeginS.o and crtendS.o.
14611         * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
14612         (ENDFILE_SPEC): Use crtendS.o.
14613         * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
14614
14615         * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
14616         (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
14617         shared and present.
14618         (__dso_handle): New variable.
14619         * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
14620         bias to __CTOR_END__.
14621
14622 2000-02-16  Richard Henderson  <rth@cygnus.com>
14623
14624         * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
14625
14626 Wed Feb 16 21:40:04 2000  Hans-Peter Nilsson  <hp@bitrange.com>
14627
14628         * longlong.h (__clz_tab): Declare as static to match definition.
14629
14630 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
14631
14632         * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
14633         (XREF_FILE_NAME): Define.
14634
14635         * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
14636         (EH_FRAME_SECTION_ASM_OP): Define.
14637         (IDENT_ASM_OP): Define.
14638         (TEXT_SECTION_ASM_OP): Define.
14639         (CPP_SPEC): Define.
14640         (CTORS_SECTION_ASM_OP): Define.
14641         (CTOR_SECTION_FUNCTION): Use it.
14642         (DTORS_SECTION_ASM_OP): Define.
14643         (DTOR_SECTION_FUNCTION): Use it.
14644
14645 2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
14646
14647         * reg-stack.c (emit_swap_insn): Do not put a new insn before a
14648         NOTE_BASIC_BLOCK.
14649
14650         * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
14651         debug_bb_n): New functions.
14652         (dump_flow_info, print_rtl_with_bb): Use dump_regset.
14653         * basic-block.h: Prototype new functions.
14654
14655 Wed Feb 16 21:07:53 2000  Denis Chertykov  <denisc@overta.ru>
14656
14657         * configure.in: Add support for avr target.
14658         * configure: Rebuilt.
14659
14660         * invoke.texi: Add AVR invocation docs.
14661         * install.texi: Add information about AVR.
14662         * md.texi: Add AVR constraint letters description.
14663         * extend.texi: Add description for AVR specific attributes.
14664
14665 2000-02-16  Jason Merrill  <jason@casey.cygnus.com>
14666
14667         * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
14668
14669 2000-02-16  Nick Clifton  <nickc@cygnus.com>
14670
14671         * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
14672         (make_insn_raw): Move RTL check here.
14673
14674 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14675
14676         * version.c: Include gansidecl.h and version.h.
14677
14678         * version.h: Wrap entire file in macro __GCC_VERSION_H__.
14679
14680         * configure.in (gcc_version): When setting, narrow search to
14681         lines containing `version_string'.
14682
14683         * Makefile.in (mainversion): Likewise.
14684         (GCC_H): New variable.
14685         (gcc.h): Delete target.
14686         (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
14687         (version.o): Depend on version.h.
14688         (dbxout.o): Don't depend on gcc.h.
14689
14690 Wed Feb 16 15:04:49 2000  Hans-Peter Nilsson  <hp@bitrange.com>
14691                           Michael Meissner  <meissner@cygnus.com>
14692
14693         * md.texi (Simple Constraints): Add item about whitespace.
14694         * genoutput.c (strip_whitespace): New.
14695         (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
14696         strip_whitespace for constraints.
14697         Test pointer using NULL, not 0.
14698
14699 2000-02-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14700
14701         * cpplib.c (do_line): Pedwarn for #line > 32767.
14702
14703         * c-lex.c (readescape): Warn about '\x', but do not reject it.
14704
14705 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
14706
14707         * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
14708         to default cpp spec.
14709         (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
14710         * cpp.texi: Document __GNUC_PATCHLEVEL__.
14711         * cpp.1: Likewise.
14712
14713         * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
14714         default spec.
14715
14716 2000-02-15  Denis Chertykov  <denisc@overta.ru>
14717
14718         * configure.in: Add support for avr target.
14719
14720 Wed Feb 16 03:21:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14721
14722         * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
14723         (sh_addr_diff_vec_mode): Don't declare.
14724         * sh.c (sh_addr_diff_vec_mode): Delete.
14725
14726 Wed Feb 16 01:27:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14727
14728         * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
14729
14730 Wed Feb 16 00:58:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14731
14732         * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
14733         (smulsi3_highpart_i): Name.
14734         (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
14735         (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
14736         (smulsi3_highpart, umulsi3_highpart): Likewise.
14737
14738         (mulsidi3_i, umulsidi3_i): Make rtl describe operation
14739         correctly independent of endianness.
14740         (mulsidi3, umulsidi3): Now define_insn.  Hide details that
14741         confuse the optimizers.
14742         (mulsidi3+1, umulsidi3+1): New define_split.
14743
14744 Tue Feb 15 23:22:26 2000  Andrew Haley  <aph@cygnus.com>
14745
14746         * config/sh/sh.md: Guard insn splits against illegal registers.
14747         * config/sh/sh.h: Correct comment about macros.
14748
14749 Tue Feb 15 22:30:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14750                           Andrew MacLeod  <amacleod@cygnus.com>
14751
14752         * Makefile.in (lcm.o): Depend on insn-attr.h.
14753         * basic-block.h (optimize_mode_switching): Declare.
14754         * lcm.c (tm_p.h, insn-attr.h): #include.
14755         (seginfo, bb_info): New structs.
14756         (antic, transp, comp, delete, insert) : New file-scope static variables.
14757         (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
14758         (reg_becomes_live, optimize_mode_switching): Likewise.
14759         * tm.texi: Add description of mode switching macros.
14760         * toplev.c (rest_of_compilation): Call optimize_mode_switching.
14761
14762         * sh-protos.h (remove_dead_before_cse): Remove prototype.
14763         (fldi_ok, fpscr_set_from_mem): New prototypes.
14764         * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
14765         (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
14766         Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14767         (sh_flag_remove_dead_before_cse): Remove declaration.
14768         (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
14769         (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
14770         (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14771         * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14772         (barrier_align): Allow for JUMP_INSNS containing a parallel.
14773         (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
14774         (fldi_ok): New function.
14775         (get_fpscr_rtx): Add fpscr_rtx as GC root.
14776         (emit_sf_insn): Only generate fpu switches when optimize < 1.
14777         (emit_df_insn): Likewise.
14778         (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
14779         (sh_flag_remove_dead_before_cse): Delete.
14780         (get_free_reg, fpscr_set_from_mem): New functions.
14781         * sh.md (movdf, movsf): Remove no_new_pseudos code.
14782         (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
14783
14784 2000-02-15  Loren Rittle  <ljrittle@acm.org>
14785
14786         * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
14787
14788 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14789
14790         * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
14791         cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
14792
14793         * cccp.c: Include version.h and/or don't declare `version_string'.
14794         * collect2.c: Likewise.
14795         * alpha.c: Likewise.
14796         * arm/aof.h: Likewise.
14797         * arm/coff.h: Likewise.
14798         * arm/elf.h: Likewise.
14799         * arm/pe.h: Likewise.
14800         * arm/tcoff.h: Likewise.
14801         * arm/telf.h: Likewise.
14802         * arm/tpe.h: Likewise.
14803         * arm/vxarm.h: Likewise.
14804         * convex/convex.c: Likewise.
14805         * i386/dgux.c: Likewise.
14806         * i386/sun386.h: Likewise.
14807         * m88k/m88k.c: Likewise.
14808         * mcore/mcore-pe.h: Likewise.
14809         * mips/mips.h: Likewise.
14810         * romp/romp.h: Likewise.
14811         * sh/sh.c: Likewise.
14812         * cpphash.c: Likewise.
14813         * cppinit.c: Likewise.
14814         * dwarf2out.c: Likewise.
14815         * dwarfout.c: Likewise.
14816         * gcc.c: Likewise.
14817         * gcc.h: Likewise.
14818         * mips-tfile.c: Likewise.
14819         * protoize.c: Likewise.
14820         * toplev.c: Likewise.
14821         * tree.h: Likewise.
14822
14823         * version.c (version_string): Constify a char*.
14824
14825         * version.h: New file.
14826
14827 2000-02-14  Nick Clifton  <nickc@cygnus.com>
14828
14829         * configure.in: Add mcore-elf and mcore-pe targets.
14830         * configure: Regenerate.
14831
14832         * NEWS: Add note that MCore port has been contributed.
14833
14834         * invoke.texi: Document command line switches for MCore port.
14835         * install.texi: Add MCore to list of supported targets.
14836
14837 2000-02-14  Geoff Keating  <geoffk@cygnus.com>
14838
14839         * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
14840         then we will need to import the frame handling functions.
14841         (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
14842         to import the frames themselves.
14843
14844 Mon Feb 14 13:31:01 2000  Stan Cox  <scox@cygnus.com>
14845                           Jason Eckhardt  <jle@cygnus.com>
14846
14847         * basic_block.h: Added prototype for reorder_basic_blocks.
14848         * toplev.c: Changes to add -freorder-blocks and graph dump after
14849         block reordering is done.
14850         * flow.c (reorder_block_def): New structure for use during block
14851         reordering.
14852         (REORDER_BLOCK_*): New macros to access members of above structure.
14853         (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
14854         make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
14855         functions for block reordering.
14856
14857 Mon Feb 14 11:24:44 2000  Hans-Peter Nilsson  <hp@bitrange.com>
14858
14859         * gcc.texi (Passes): Fix typo.
14860         * md.texi (Standard Names): Ditto.
14861         * tm.texi (Storage Layout): Ditto.
14862
14863 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
14864
14865         * cpplib.c (do_define): Only free the old definition if it
14866         actually had one.
14867
14868 2000-02-13   Neil Booth  <NeilB@earthling.net>
14869
14870         * cppfiles.c (read_and_prescan): When emitting deferred
14871         newlines, test speccase[] again instead of checking each
14872         possible whitespace character in turn.  When we encounter \r,
14873         look behind for \n first, then ahead.
14874
14875 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
14876
14877         * cse.c (cse_altered): New internal flag.
14878         (cse_insn): Set it if we changed an insn.
14879         (cse_main): Clear cse_altered before each basic block.
14880         Only garbage collect if cse_altered is true afterward.
14881
14882 Sun Feb 13 14:12:28 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14883
14884         * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
14885
14886 Sun Feb 13 13:21:55 2000  Jeffrey A Law  (law@cygnus.com)
14887
14888         * combine.c (simplify_comparison): Fix typo.
14889
14890 Sun Feb 13 12:57:52 2000  Neil Booth <NeilB@earthling.net>
14891
14892         * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
14893         consistently.
14894
14895 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14896
14897         * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
14898         previously inserted node instead of root node.  Caller changed.
14899
14900 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14901
14902         * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
14903
14904 2000-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14905
14906         * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
14907         __dereg_frame_dtor): Add prototype argument.
14908
14909         * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
14910
14911         * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
14912
14913         * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
14914
14915         * gthr-vxworks.h (__gthread_once): Likewise.
14916
14917         * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
14918
14919 Sat Feb 12 01:44:26 MET 2000  Jan Hubicka  <jh@suse.cz>
14920
14921         * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
14922         (ix86_expand_epilogue): ... here. Use mov instead of add to restore
14923         stack pointer in functions w/o saved registers, output LEAVE more often
14924         on TARGET_USE_LEAVE machines.
14925
14926 2000-02-07  Dmitri Makarov  <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
14927
14928         * config/arm/arm.c (arm_init_cumulative_args); New function:
14929         Initlaise the CUMULATIE_ARGS strcuture for a function
14930         defintion.
14931         (arm_function_arg): New function: Determine where to place a
14932         function's argument.  Also handles deciding the function's
14933         call cookie.
14934         (current_file_function_operand): New function: Return true if
14935         the symbol is a function which has already been compiled.
14936         (arm_is_long_call_p): New function: Return true if the
14937         indicated function should be called via a long call.
14938         (arm_valid_type_attribute_p): New function: Return true if the
14939         attribute is a valid, arm specific, attribute.
14940         (arm_comp_type_attribute): New function: Return true if the
14941         two types have compatable, arm specific, attributes.
14942
14943         * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
14944         structure.
14945         (FUNCTION_ARG): Redefine to call arm_function_arg.
14946         (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
14947         structure field.
14948         (INIT_CUMULATIVE_ARGS): Redefine to call
14949         arm_init_cumulative_args.
14950         (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
14951         field.
14952         (SETUP_INCOMING_VARARGS): Redefine to use correct structure
14953         field.
14954         (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
14955         functions.
14956         (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
14957         (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
14958         (COMP_TYPE_ATTRIBUTES): Define.
14959
14960         * config/arm/arm.md (call): Call arm_is_long_call_p to decide
14961         if a long call is needed.
14962         (call_value): Call arm_is_long_call_p to decide if a long call
14963         is needed.
14964         (call_symbol): Call arm_is_long_call_p to decide if a long call
14965         is needed.
14966
14967         * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
14968
14969 2000-02-11  Denis Chertykov  <denisc@overta.ru>
14970
14971         * README.AVR: New file with information about the avr ports.
14972         * config/avr: New directory with avr port files.
14973
14974 2000-02-11  Andreas Jaeger  <aj@suse.de>
14975
14976         * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
14977
14978 2000-02-11  Zack Weinberg  <zack@wolery.cumb.org>
14979
14980         * cpphash.c: Fix formatting, update commentary.
14981         (dump_definition): Take three separate arguments instead of a
14982         MACRODEF structure argument.
14983         * cpphash.h: Update prototype of dump_definition.
14984         * cppinit.c (cpp_finish): Update call of dump_definition.
14985
14986         * cpplib.c (do_define): Always create new hash entry with
14987         T_MACRO type.  Remove redundant check for redefinition of
14988         poisoned identifier.  Update call of dump_definition.
14989         (do_undef): Don't call check_macro_name.  Rename sym_length to
14990         len.
14991         (do_error, do_warning): Don't use copy_rest_of_line or
14992         SKIP_WHITE_SPACE.
14993         (do_warning): Don't use pedwarn for the actual warning,
14994         only the notice about its not being in the standard.  (Fixes
14995         bug with #warning in system headers.)
14996         (do_ident): Stricter argument checking - accept only a single
14997         string after #ident.  Also, macro-expand the line.
14998         (do_xifdef): Use cpp_defined.  De-obfuscate.
14999
15000         (do_pragma): Split out specific pragma handling to separate
15001         functions.  Use get_directive_token.  Update commentary.  Do
15002         not pass on #pragma once or #pragma poison to the front end.
15003         (do_pragma_once, do_pragma_implementation, do_pragma_poison,
15004         do_pragma_default): New.
15005
15006 Feb 11 12:30:53 2000  Jeffrey A Law  (law@cygnus.com)
15007
15008         * jump.c (jump_optimize_1): The first operand in a relational
15009         can be a CONST_INT.
15010         * optabs.c (emit_conditional_move): Handle relationals which
15011         have a known true/false result.
15012
15013 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
15014
15015         * function.c (thread_prologue_and_epilogue_insns): Don't insert
15016         a RETURN insn into a block which already ends with a jump.
15017
15018 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
15019
15020         * haifa-sched.c (BUF_LEN): Increase a lot.
15021
15022 2000-02-11  Nick Clifton  <nickc@cygnus.com>
15023
15024         * configure.in: Add tm_p_file specification for thumb targets.
15025         * configure: Regenerate.
15026
15027         * config/arm/thumb-protos.h: New file: Prototypes for exported
15028         functions defined in thumb.c.
15029
15030 2000-02-11  Robert Lipe  <robertl@sco.com>
15031
15032         * Makefile.in (bootstrap-lean): Remove additional files.
15033         (bootstrap2-lean): Likewise.
15034         (VOL_FILES): List of files for above.
15035
15036 2000-02-11  Nathan Sidwell  <nathan@acm.org>
15037
15038         * cpphash.c (special_symbol): Remove spurious argument to
15039         cpp_lookup.
15040
15041 2000-02-11  Joel Sherrill (joel@OARcorp.com>
15042
15043         * configure.in: (i*86-*-rtems*): Swapped elf and coff
15044         stanzas.
15045         * configure: Rebuilt.
15046
15047 2000-02-11  Rodney Brown  <RodneyBrown@pmsc.com>
15048
15049         * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
15050
15051 Fri Feb 11 02:59:05 2000  Jeffrey A Law  (law@cygnus.com)
15052
15053         * pa.c, pa.h: Remove trigraph sequences within comments.
15054
15055 Fri Feb 11 02:51:56 2000  Pavel Roskin <pavel_roskin@geocities.com>
15056
15057         * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
15058
15059 Fri Feb 11 02:48:30 2000  Brad Lucier  (lucier@math.purdue.edu)
15060
15061         * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
15062
15063 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15064
15065         * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
15066
15067 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15068
15069         * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
15070         (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
15071         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
15072         (ASM_FILE_END): Use c4x_file_end.
15073         * config/c4x/c4x.c (c4x_global_label): New function.
15074         (c4x_external_ref, c4x_file_end): Likewise.
15075
15076         * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
15077         (c4x_external_ref, c4x_end_file): Likewise.
15078
15079 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
15080
15081         * cppexp.c: Don't include cpphash.h.
15082         (parse_charconst, cpp_lex): Use cpp_defined.
15083         (cpp_lex): Use get_directive_token throughout.  Remove
15084         unnecessary cases from switch.  Move assertion-handling code
15085         down to OTHER case.
15086         (cpp_parse_expr): If we see '+' or '-', check the context to
15087         determine if they are unary or binary operators.  Streamline
15088         the jumps a bit.  Do not call skip_rest_of_line.
15089
15090         * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
15091         static.  Export get_directive_token.  Update commentary.
15092         (cpp_defined): New function.
15093         (do_define): Remove reference to T_PCSTRING.  Call
15094         free_definition to release memory for old definition, when
15095         redefining a macro.
15096         (eval_if_expression): Set only_seen_white to 0 before calling
15097         cpp_parse_expr.  Call skip_rest_of_line after it returns.
15098         (cpp_read_check_assertion): Don't preserve a pointer into the
15099         token buffer across a call to cpp_get_token.
15100
15101         * Makefile.in (cppexp.o): Don't depend on cpphash.h.
15102         * cppfiles.c (redundant_include_p): Use cpp_defined.
15103         * cpphash.c (free_definition): New function.
15104         (delete_macro): Use it.  Update commentary.
15105         * cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
15106         free_definition.
15107         * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
15108         from enum node_type.  Prototype cpp_defined and get_directive_token.
15109         Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
15110
15111         * fix-header.c (check_macro_names): Use cpp_defined.
15112         (read_scan_file): Set inhibit_warnings and inhibit_errors in
15113         the options structure.
15114
15115 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15116
15117         * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
15118
15119 2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
15120
15121         * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
15122         rather than die->die_tag.
15123
15124 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15125
15126         * combine.c (make_extraction, force_to_mode): Avoid warning on
15127         mixed-signedness conditionals.
15128         (make_field_assignment, nonzero_bits): Likewise.
15129         * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
15130         (store_split_bit_field, extract_split_bit_field): Likewise.
15131         (extract_fixed_bit_field, store_bit_field,
15132         * expr.c: Change alignment to be unsigned everywhere.
15133         (move_by_pieces, store_constructor_field, store_constructor):
15134         Alignment parm is unsigned.
15135         (emit_block_move, emit_group_load, emit_group_store): Likewise.
15136         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
15137         (do_compare_rtx_and_jump): Likewise.
15138         (move_by_pieces_ninsns, clear_by_pieces): Likewise.
15139         Compare align with GET_MODE_ALIGNMENT.
15140         (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
15141         (get_inner_reference): Likewise.
15142         (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
15143         (expand_assignment): Local vars for alignment now unsigned.
15144         (store_constructor, store_field, expand_expr, do_jump): Likewise.
15145         (do_compare_and_jump): Likewise.
15146         (store_field): Call new function expr_align.
15147         * expr.h (emit_block_move, emit_group_load, emit_group_store):
15148         Alignment arg now unsigned.
15149         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
15150         (do_compare_rtx_and_jump, store_bit_field): Likewise.
15151         (extract_bit_field): Likewise.
15152         * fold-const.c (add_double): Add cast to eliminate signedness warning.
15153         * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
15154         (get_best_mode): Alignment arg is unsigned.
15155         * rtl.h (move_by_pieces): Likewise.
15156         * store-layout.c (maximum_field_alignment, set_alignment):
15157         Now unsigned.
15158         (layout_decl): Alignment arg is now unsigned.
15159         Remove unneeded casts.
15160         (layout_record, layout_union, layout_type): Remove unneeded casts.
15161         Local alignment variables now unsigned.
15162         (get_best_mode): Alignment arg now unsigned.
15163         * tree.c (expr_align): New function.
15164         * tree.h (expr_align): Likewise.
15165         (maximum_field_alignment, set_alignment): Now unsigned.
15166         (get_inner_reference): Alignment argument is now pointer to unsigned.
15167         * varasm.c (assemble_variable): Add cast to eliminate warning.
15168
15169 Thu Feb 10 12:56:47 2000  Jim Wilson  <wilson@cygnus.com>
15170
15171         * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
15172         then store directly into op0.
15173
15174         * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
15175         the CALL_INSN, and emit the note immediately after it.
15176
15177 2000-02-10  Nick Clifton  <nickc@cygnus.com>
15178
15179         * config/arm/thumb.md (epilogue): Include a (return) in the
15180         generated insn, and emit it using emit_jump_insn not
15181         emit_insn.
15182
15183 Thu Feb 10 18:28:59 MET 2000  Jan Hubicka  <jh@suse.cz>
15184
15185         * function.c (assign_temp): Change zero-sized arrays to size 1.
15186         * integrate.c (expand_inline_function): Do not update
15187         stack_alignment_needed
15188         * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
15189         add some sanity checking, remove optimization for function with
15190         zero frame size.
15191
15192 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15193
15194         * flow.c (mark_regs_live_at_end): Delete unused variables.
15195
15196         * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
15197
15198         * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
15199         in macro FRAME_GROWS_DOWNWARD.
15200
15201         * stmt.c (expand_end_bindings): Delete unused variable.
15202
15203         * unroll.c (iteration_info): Mark parameter `loop' with
15204         ATTRIBUTE_UNUSED.
15205
15206 2000-02-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15207
15208         * fixinc/server.c (load_data): Return NULL if the marker line is
15209         not found.
15210         (run_shell): If load_data returns NULL, retry the command once, in
15211         a new shell.
15212
15213         * configure: Rebuilt.
15214
15215 2000-02-09  Bruce Korb  <bkorb@gnu.org>
15216
15217         * gcc/fixincludes:  ** DELETED **
15218         * gcc/fixcpp:  ** DELETED **
15219         * gcc/fixinc-nt.sed:  ** DELETED **
15220         * gcc/just-fixinc:  ** DELETED **
15221         * gcc/Makefile.in:  Removed out-dated commentary
15222         * gcc/configure.in: Removed fast-fixincludes disablement.
15223         * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
15224
15225 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
15226         * function.c (thread_prologue_and_epilogue_insns): Uncomment
15227         last change.
15228
15229 2000-02-09  Richard Henderson  <rth@cygnus.com>
15230
15231         * jump.c (delete_insn): Don't delete user labels at -O0.
15232
15233 2000-02-09  Robert Lipe  <robertl@sco.com>
15234
15235         * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
15236         Don't link with HOST_LIBS.
15237
15238 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
15239
15240         * configure.in: Correct --help text for --with-dwarf2.
15241         Put tm-dwarf2.h after other tm files, if it's requested.
15242         * configure: Regenerate.
15243         * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
15244         defining it.
15245
15246 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
15247
15248         * cpplib.h: Provide HASHNODE typedef and forward decl of
15249         struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
15250         DEFINITION, struct hashnode, struct macrodef, struct
15251         definition, scan_decls prototype, default defn of
15252         INCLUDE_LEN_FUDGE moved elsewhere.
15253
15254         * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
15255         definition, and struct hashnode moved here. Remove the unused
15256         'predefined' field from struct definition.  Replace the 'args'
15257         union with its sole member.  All users updated (cpphash.c).
15258         Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
15259         multiple include guard.
15260
15261         * cpphash.c (hashf): Make static; use better algorithm; drop
15262         HASHSIZE parameter; return an unsigned int.
15263         (cpp_lookup): Drop HASH parameter.  PFILE parameter is
15264         used. Calculate HASHSIZE modulus here.
15265         (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
15266         here.
15267         (create_definition): Drop PREDEFINITION parameter.
15268         * cpplib.c (do_define): Don't calculate a hash value here.
15269         Don't pass (keyword == NULL) to create_definition.
15270
15271         * scan.h: Prototype scan_decls here.
15272         * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
15273         * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
15274         callers of cpp_lookup and cpp_install updated.
15275
15276         * cpphash.c (macarg): Hoist all the flag diddling out of the
15277         function...
15278         (macroexpand): ... and out of the loop that calls macarg.
15279         Skip over the initial paren before macro arguments with
15280         cpp_get_non_space_token; point may be some distance before
15281         that paren.  Abort if it's not there.
15282
15283         * cpplib.c (parse_clear_mark): Delete function.
15284         (parse_set_mark, parse_goto_mark): Make static.
15285         (ACTIVE_MARK_P): New macro.
15286         (skip_block_comment, skip_line_comment): Do not bump the line
15287         if ACTIVE_MARK_P is true.
15288         (cpp_pop_buffer): The buffer to be popped may not have an
15289         active mark.
15290         (cpp_get_token): When looking for the initial paren before
15291         macro arguments, only set a mark in a file buffer, Always
15292         return to that mark before proceeding to call macroexpand or
15293         return a NAME token.
15294
15295         * cpplib.h: Remove prototypes of parse_set_mark,
15296         parse_clear_mark, parse_goto_mark.
15297         (struct cpp_options): Rename 'put_out_comments' to
15298         'discard_comments' and invert its sense.
15299         * cppinit.c, cpphash.c, cpplib.c: All users of
15300         put_out_comments changed to use discard_comments, with
15301         opposite sense.
15302
15303 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
15304
15305         * function.c (thread_prologue_and_epilogue_insns): Don't delete
15306         the edge from a block that both jumps and falls through to the
15307         fallthru block.
15308
15309 2000-02-09  Scott Bambrough  <scottb@netwinder.org>
15310
15311         * config/arm/arm.md (movsi): In PIC mode, make sure that a
15312         constant source address is legitimate.
15313
15314 2000-02-09  Philip Blundell  <pb@futuretv.com>
15315
15316         * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
15317         correctly.
15318
15319         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
15320         generating PIC.
15321         (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
15322
15323 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
15324
15325         * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
15326         ends with a newline and a NUL.  Don't be so clever manipulating
15327         strings.
15328
15329 Wed Feb  9 14:18:08 MET 2000  Jan Hubicka  <jh@suse.cz>
15330
15331         * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
15332         not to BIGGEST_ALIGNMENT.
15333
15334 2000-02-08  Geoff Keating  <geoffk@cygnus.com>
15335
15336         * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
15337         * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
15338         (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
15339         (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
15340         * frame.c (execute_cfa_insn): Handle
15341         DW_CFA_GNU_negative_offset_extended.
15342
15343 2000-02-08  Richard Henderson  <rth@cygnus.com>
15344
15345         * flow.c (tidy_fallthru_edges): Split out from ...
15346         (delete_unreachable_blocks): ... here.
15347         (find_basic_blocks): Use it.
15348
15349 Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15350
15351         * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
15352
15353 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
15354
15355         * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
15356         (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
15357         (fix-header.o): Don't depend on cpphash.h.
15358
15359         * scan.c (hashstr): New function.
15360         * scan.h: Prototype it.
15361         * fix-header.c: Don't include cpphash.h.  Use hashstr.
15362         * gen-protos.c: Don't include cpphash.h or cpplib.h.  Use
15363         hashstr.  Report hash table statistics.  Add private
15364         definition of xrealloc.
15365
15366 2000-02-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15367
15368         * i386.h (TARGET_SWITCHES): Fix typo in option name.
15369
15370 2000-02-08  Clinton Popetz  <cpopetz@cygnus.com>
15371
15372         * function.c (thread_prologue_and_epilogue_insns): Don't replace
15373         jumps with returns unless they are jumps to the fallthru block.
15374
15375 Tue Feb  8 07:53:55 2000  Jan Hubicka  <jh@suse.cz>
15376
15377         * i386.md (addqi3_cc): Fix contraints.
15378
15379 Tue Feb  8 01:39:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15380
15381         * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
15382
15383 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
15384
15385         * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
15386         carriage return after a macro name.
15387
15388 2000-02-07  Fred Fish  <fnf@be.com>
15389
15390         * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
15391         so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
15392
15393 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
15394
15395         * cppfiles.c (deps_output): Count spacers in deps_column.
15396
15397 2000-02-07  Neil Booth  <NeilB@earthling.net>
15398
15399         * cppinit.c (initialize_dependency_output): If there is no
15400         suffix, don't try to look for known suffixes.  Use strrchr.
15401         (cpp_start_read): Remove duplicate initialization.
15402
15403 Mon Feb  7 18:36:41 MET 2000  Jan Hubicka  <jh@suse.cz>
15404
15405         * calls.c (compute_argument_block_size): New argument
15406         preferred_stack_boundary.
15407         (expand_call): update cfun->preferred_stack_boundary, update call of
15408         compute_argument_block_size
15409         (emit_library_call): Increate cfun->preferred_stack_boundary
15410         to PREFERRED_STACK_BOUNDARY
15411         (emit_library_call_value): Likewise.
15412         * explow.c (allocate_dynamic_stack_spave): Likewise.
15413         * function.c (prepare_function_start): Set
15414         cfun->preferred_stack_boundary
15415         * function.h (struct function): Add preferred_stack_boundary field.
15416         * integrate.c (expand_inline_function): Update
15417         cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
15418         (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
15419         * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
15420
15421 2000-02-06  Zack Weinberg  <zack@wolery.cumb.org>
15422
15423         * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
15424         cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
15425         cpp_pedwarn, cpp_pedwarn_with_line,
15426         cpp_pedwarn_with_file_and_line): Move to cpperror.c.
15427         (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
15428         v_cpp_error_with_line, v_cpp_warning_with_line,
15429         cpp_message_from_errno, cpp_perror_with_name): Delete.
15430
15431         * cpperror.c (cpp_print_containing_files): Take starting
15432         buffer as argument.
15433         (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
15434         (v_cpp_message): Now called directly by all entry points.
15435         Remove -1 case.
15436         (cpp_pfatal_with_name, cpp_message): Delete.
15437         (cpp_notice_from_errno, cpp_ice): New functions.
15438         (cpp_notice): Is now for reporting error conditions, just
15439         without an associated file.
15440         (cpp_error, cpp_error_with_line): Don't do anything if
15441         opts->inhibit_errors is on.
15442         (cpp_pedwarn_with_file_and_line): Take column argument also.
15443
15444         * cpplib.h: Update prototypes of exported functions.
15445         (struct cpp_options): Add inhibit_errors.
15446
15447         * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
15448         non-error messages.  Include intl.h.
15449
15450         * cppinit.c, cppmain.c: Likewise.  Also, use
15451         cpp_notice_from_errno instead of cpp_perror_with_name or
15452         cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
15453
15454         * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
15455         report internal errors.
15456
15457         * cpplib.c (do_define): Switch bcopy to memcpy.
15458         Give cpp_pedwarn_with_file_and_line a dummy column argument.
15459
15460         * cpplib.c (copy_rest_of_line): Revert previous change: don't
15461         bail out early if we hit a line comment.
15462
15463 2000-02-06  Richard Henderson  <rth@cygnus.com>
15464
15465         * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
15466         * basic-block.h: Declare them.
15467         * emit-rtl.h (active_insn_p): New.
15468         (next_active_insn, prev_active_insn): Use it.
15469         * rtl.h: Declare it.
15470         * function.c (emit_return_into_block): New.
15471         (thread_prologue_and_epilogue_insns): Insert return insns instead
15472         of epilogues when possible.
15473         * jump.c (jump_optimize_1): Remove code to insert a return insn
15474         on the fallthru to the exit block.
15475
15476         * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
15477         and for non-empty stack frames.
15478         * i386.md (return): Expand to return-pop as needed.
15479
15480 2000-02-06  Richard Henderson  <rth@cygnus.com>
15481
15482         * simplify-rtx.c (simplify_relational_operation): Canonicalize
15483         constant to op1 for testing.
15484
15485 2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15486
15487         * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
15488         (fixuns_truncqfqi2): Use it.
15489
15490 2000-02-06  Richard Henderson  <rth@cygnus.com>
15491
15492         * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
15493         as a TYPE_LEA insn.
15494
15495         * i386.md (widening and peepholes): Mask the constant instead of
15496         using gen_lowpart.
15497
15498 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
15499
15500         * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
15501         input pointer before possibly branching off to the backslash
15502         code.
15503         * cpphash.c (macroexpand): Correctly delete \r escapes when
15504         stringifying parameters.
15505         * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
15506         if we can; bail out early if we hit a line comment.
15507         (handle_directive): Treat '# 123' in an .S file just like
15508         '# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
15509         Return 1 for '# not_a_directive'.
15510         (get_directive_token): Pop macro buffers here, so that
15511         cpp_get_token can't sneakily move past a newline.
15512         Add sanity checks.
15513         (cpp_get_token): goto randomchar if handle_directive returns 0.
15514
15515         * cppalloc.c: Update copyright.
15516         * cpplib.c: Merge all the static function prototypes into one
15517         block.
15518         * cpplib.h: Remove #if 0 block.
15519
15520         * cpperror.c: Remove #ifdef EMACS block.
15521         * cppmain.c: Likewise.
15522         * cpphash.c: Remove #if 0 blocks.
15523         * cppinit.c: Remove #if 0 blocks, and the -lint option.
15524         * cpplib.c: Remove #if 0 blocks and code referencing
15525         pcp_inside_if or for_lint.  Remove duplicate error message.
15526         Fix error messages for #else after #else or #elif.  Reformat.
15527         Remove archaic TODO list.
15528         * cpplib.h: Remove pcp_inside_if and for_lint flags.
15529
15530 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
15531
15532         * i386/osf1elf.h: Add missing backslash to multiline string.
15533
15534 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15535
15536         * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
15537
15538 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15539
15540         * Makefile.in (c-common.o): Depend on $(EXPR_H).
15541
15542         * c-common.c: Include expr.h.
15543
15544         * c-pragma.c (mark_align_stack): Add prototype.
15545
15546         * caller-save.c (add_stored_regs): Likewise.
15547
15548         * combine.c (record_promoted_value): Likewise.
15549
15550         * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
15551         Likewise.
15552
15553         * cppinit.c (new_pending_define): Likewise.
15554
15555         * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
15556
15557         * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
15558         AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
15559         AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
15560         class_scope_p): Likewise.
15561
15562         * dwarf2out.h (dwarf2out_set_demangle_name_func,
15563         dwarf2out_add_library_unit_info): Likewise.
15564
15565         * ggc.h (ggc_page_print_statistics): Likewise.
15566
15567         * haifa-sched.c (propagate_deps): Likewise.
15568
15569         * reg-stack.c (next_flags_user, record_label_references): Likewise.
15570
15571         * rtl.h (set_stack_check_libfunc): Likewise.
15572
15573         * toplev.h (set_fatal_function): Likewise.
15574
15575         * toplev.c (set_fatal_function): Delete prototype.
15576
15577         * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
15578
15579 2000-02-05  Geoff Keating  <geoffk@cygnus.com>
15580
15581         * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
15582         (FUNC_END): Likewise.
15583
15584 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15585
15586         * caller-save.c: Include tm_p.h.
15587
15588 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15589
15590         * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
15591
15592 2000-02-04  Neil Booth  <NeilB@earthling.net>
15593
15594         * cccp.c (main): Check 'dir' for a NULL pointer before passing
15595         it to strcmp.
15596
15597 2000-02-04  Zack Weinberg  <zack@wolery.cumb.org>
15598
15599         * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
15600         * genflags.c: Use the max_operand_1 logic from genemit.c to
15601         calculate how many arguments gen_insn prototypes have.  Remove
15602         NO_MD_PROTOTYPES ifdefs from the generated file.
15603         * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
15604         file.  Cast gen_insn initializers to insn_gen_fn.
15605         * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
15606         * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
15607
15608 2000-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15609
15610         * fixinc/Makefile.in (HDR): Add machname.h.
15611         (clean): Likewise.
15612
15613 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15614
15615         * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
15616         (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
15617         (c4x_cpu_version): Ditto.
15618         * config/c4x/c4x-protos.h: ... here.
15619
15620 2000-02-04  Jason Merrill  <jason@casey.cygnus.com>
15621
15622         * dwarf2out.c (add_abstract_origin_attribute): Don't call
15623         gen_abstract_function on our context if we're a nested function.
15624
15625 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15626
15627         * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
15628         * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
15629
15630 2000-02-04  Bruce Korb  <bkorb@gnu.org>
15631
15632         * fixinc/genfixes(machname.h):
15633         Move the functionality from gen-machine.h into this file.
15634         UNdef MN_NAME_PAT if there are no names to change.
15635         Also, be a little kinder when AutoGen is not present.
15636
15637         * fixinc/Makefile.in(machname.h):
15638         Change the generation rule to use genfixes.
15639
15640         * fixinc/fixfixes.c(machine_name):
15641         machine_name_fix's functionality now dependent upon whether
15642         MN_NAME_PAT is defined.
15643
15644         * fixinc/fixtests.c(machine_name):
15645         ditto.
15646
15647         * fixinc/fixlib.c(mn_get_regexps): conditional on definition
15648         of MN_NAME_PAT.
15649
15650         * fixinc/fixlib.h(mn_get_regexps):
15651         ditto
15652
15653         * fixinc/gen-machine.h: DELETED
15654
15655 2000-02-04  Jan Hubicka  <jh@suse.cz>
15656             Richard Henderson  <rth@cygnus.com>
15657
15658         * i386.c (SAVE_REGS_FIRST): Remove.
15659         (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
15660         (ix86_compute_frame_size): Likewise.
15661         (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
15662         (ix86_emit_restore_regs): Remove.
15663         (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
15664         when a frame pointer is in use.
15665         (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
15666         instead of pop to restore a register when profitable; emit leave
15667         when profitable.
15668         (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
15669         as a TYPE_LEA insn.
15670         (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
15671         * i386.md (prologue_allocate_stack): Remove.
15672         (epilogue_deallocate_stack): Remove.
15673         (pro_epilogue_adjust_stack): New.
15674
15675 2000-02-04  Richard Henderson  <rth@cygnus.com>
15676
15677         * function.c (diddle_return_value): Rework to use a callback function.
15678         Use current_function_return_rtx if it's been set up.
15679         (do_clobber_return_reg, clobber_return_register): New.
15680         (do_use_return_reg, use_return_register): New.
15681         (expand_function_end): Use them.
15682         * stmt.c (expand_null_return): Likewise.
15683         * function.h: Declare them.
15684         * flow.c (mark_regs_live_at_end): Use diddle_return_value.
15685         (mark_reg): Change arguments as appropriate for callback.
15686         * integrate.c (expand_inline_function): Revert 19 Jan change.
15687
15688 Fri Feb  4 20:25:42 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15689
15690         * tm.texi (Values in Registers): Fix typo: "fo" "for".
15691         (Misc): Say the scheduler, not the Haifa scheduler.
15692
15693 2000-02-04  Clinton Popetz  <cpopetz@cygnus.com>
15694
15695         * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
15696         when in_mem is set.  Update all callers.
15697
15698 2000-02-04  Richard Henderson  <rth@cygnus.com>
15699
15700         * i386/openbsd.h (INT_ASM_OP): Define.
15701
15702 Fri Feb  4 10:51:30 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15703
15704         * tm.texi: Fix various typos.
15705
15706 Thu Feb  3 17:17:32 2000  Steve Ellcey <sje@cup.hp.com>
15707
15708         * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
15709         (MD_STARTFILE_PREFIX_1): New macro.
15710
15711 Thu Feb  3 15:08:13 MET 2000  Jan Hubicka  <jh@suse.cz>
15712
15713         * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
15714         destination when needed.
15715         (strmovsi, strsetsi): New expander.
15716         (strmovsi_1, strsetsi_1): New pattern.
15717         * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
15718         TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
15719         (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
15720         * invoke.texi (align-stringops, inline-all-stringops): Document.
15721
15722 Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>
15723
15724         * i386/netbsd.h (INT_ASM_OP): Define.
15725
15726 2000-02-02  Zack Weinberg  <zack@wolery.cumb.org>
15727
15728         * cpplib.h (cpp_reader): Add new flag, no_directives.
15729         * cpphash.c (macarg): Set it.
15730         * cpplib.c (handle_directive): If no_directives is on and we
15731         find a directive, issue an error and discard the line.
15732
15733 Wed Feb  2 13:07:10 2000  Jim Wilson  <wilson@cygnus.com>
15734
15735         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
15736         FP constants.  Add ! TARGET_FPU check for FP constants.
15737
15738 2000-02-02  Clinton Popetz  <cpopetz@cygnus.com>
15739
15740         * flow.c (find_basic_blocks): Don't kill label_value_list
15741         here.
15742         (cleanup_cfg): Kill it here.
15743
15744 Wed Feb  2 08:12:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15745
15746         * expr.c (store_field): Ensure ALIGN is no stricter than the
15747         alignment of EXP.
15748
15749 2000-02-02  Richard Henderson  <rth@cygnus.com>
15750
15751         * jump.c (delete_insn): Partially revert 19 Jan change;
15752         don't convert unused code labels to notes at -O0.
15753
15754 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15755
15756         * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
15757         split_all_insns to recreate REG_LABEL notes for flow2 pass.
15758
15759 2000-02-01  Richard Henderson  <rth@cygnus.com>
15760
15761         * i386.c (general_no_elim_operand): New.
15762         (nonmemory_no_elim_operand): New.
15763         (ix86_expand_move): Copy eliminable operands before a push.
15764         * i386-protos.h: Declare new functions.
15765         * i386.h (CAN_ELIMINATE): Simplify.
15766         (PREDICATE_CODES): Update.
15767         * i386.md (push insns): Don't allow eliminable register operands.
15768
15769 2000-02-01  Richard Henderson  <rth@cygnus.com>
15770
15771         * flow.c (mark_regs_live_at_end): Follow expand_function_end and
15772         replace BLKmode with DECL_RTL's mode.
15773
15774 2000-02-01  Zack Weinberg  <zack@wolery.cumb.org>
15775
15776         * frame.c (find_fde): Convert for loop to do-while so compiler
15777         sees it's always executed at least once.
15778         * libgcc2.c (BBINBUFSIZE): Kill.
15779         (__bb_init_prg): Use fgets.
15780         (__bb_exit_trace_func): Don't paste strings.
15781         * unroll.c (unroll_loop): Initialize unroll_type, not
15782         unroll_number, and tweak logic to match.
15783
15784         * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
15785         all failure paths.
15786         (ix86_flags_dependant): Likewise.  Disentangle control flow.
15787         (ix86_sched_reorder): Break guts out to
15788         ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
15789         (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
15790         any possible use.
15791
15792         * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
15793         use string concatenation.  Don't save and restore esi.
15794
15795         * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
15796         (machname.h): Remove script to separate file.  Use two-step
15797         sequence so target is not created if script fails.
15798         * fixinc/gen-machname.h: New file.  Handle case where no non-reserved
15799         identifiers are defined.
15800         * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
15801         an empty string, machine_name doesn't need to do anything at
15802         all.
15803         (is_cxx_header): Add more cases to regexp.
15804         * fixinc/fixlib.h: Update prototype.
15805         * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
15806         mn_get_regexps.
15807         * fixinc/fixincl.c: Define NO_BOGOSITY.
15808
15809         * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
15810         (hp_sysfile): Add missing comma.
15811         (math_exception): Put the wrapper ifdefs at the beginning and
15812         the end of the file.
15813         * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
15814
15815 2000-02-01  Richard Henderson  <rth@cygnus.com>
15816
15817         * sparc.c (fp_zero_operand): Turn into a normal predicate.
15818         Use CONST0_RTX.  Update all callers.
15819         * sparc.h, sparc-protos.h: Update accordingly.
15820         * sparc.md (fp mov insns): Use fp_zero_operand directly
15821         where applicable.
15822
15823 Wed Feb  2 02:59:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15824
15825         * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
15826         example.
15827
15828 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15829
15830         * Makefile.in (specs.ready): New target.
15831         (fixinc.sh): Depend on `specs.ready' instead of `specs'.
15832
15833 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15834
15835         * fixinc.irix: Use unique filenames for writing into /tmp,
15836         * fixinc.ptx: Likewise.
15837         * fixinc.sco: Likewise.
15838         * fixinc.svr4: Likewise.
15839         * fixinc.winnt: Likewise.
15840
15841 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15842
15843         * tsystem.h: New file.
15844
15845         * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
15846         s-crtS): Depend on tsystem.h.
15847
15848         * crtstuff.c: Include tsystem.h.
15849         * frame.c: Likewise.
15850         * libgcc2.c: Likewise.
15851
15852 Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
15853
15854         * builtins.c (expand_builtin_memset): Expand for variable sized
15855         lengths too.
15856
15857 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au>
15858
15859         * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
15860         on ABI.
15861
15862 Tue Feb  1 00:57:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15863
15864         * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
15865
15866         * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
15867
15868 2000-01-31  Chandra Chavva <cchavva@cygnus.com>
15869
15870         * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
15871         case 3->2 combining (combining with splitting) in which 2 is CC0
15872         setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
15873         checked at the begining of the function with the aid of calling
15874         function 'can_combine_p'.
15875
15876 2000-01-31  Dave Brolley  <brolley@redhat.com>
15877
15878         * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
15879
15880 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
15881
15882         * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
15883         new label.
15884
15885 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15886
15887         * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
15888
15889         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
15890         PROTO -> PARAMS.
15891
15892 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
15893
15894         * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
15895         i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
15896         i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
15897         i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
15898         i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
15899         i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
15900         i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
15901         i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
15902         i386/vxi386.h, i386/win-nt.h, i386/win32.h:
15903         Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
15904
15905         * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
15906         Add %(cpp_cpu) to CPP_SPEC.
15907
15908         * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
15909         Add %(cc1_cpu) to CC1_SPEC.
15910
15911 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
15912
15913         * c-decl.c (c_decode_option): Accept optional numeric argument to
15914         -Wformat and set warn_format.
15915         * c-common.c: Don't emit warning about non-constant printf format
15916         string unless warn_format > 1.
15917
15918 2000-01-30  Richard Henderson  <rth@cygnus.com>
15919
15920         * alpha.md (return_internal): Allow after reload only.
15921
15922 2000-01-30  Richard Henderson  <rth@cygnus.com>
15923
15924         * i386.c (ix86_compute_frame_size): Omit padding1 if the
15925         local frame size is zero.
15926
15927 2000-01-30  Richard Henderson  <rth@cygnus.com>
15928
15929         * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
15930         * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
15931         * alpha.md (return): Turn into an expander.
15932         (return_internal): Don't use $26.
15933         (epilogue): Emit the return insn.
15934
15935 2000-01-30  Richard Henderson  <rth@cygnus.com>
15936
15937         * alpha.md (negtf2, abstf2): Fix word order thinko.
15938         (extendsftf2): New.
15939         (trunctfsf2): Avoid intermediate rounding errors.
15940
15941 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
15942
15943         * cppfiles.c (find_position): Drop 'colp' argument, return the
15944         new line base.
15945         (read_and_prescan): Adjust to match.  Don't ever manipulate
15946         line or line_base except via find_position.
15947
15948 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
15949
15950         * c-parse.in: Apply Ulrich's changes from c-parse.y.
15951         * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
15952         Regenerate.
15953
15954 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
15955
15956         * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
15957         just print "<command line>".  If 'filename' is null or an
15958         empty string, print "<stdin>" for the filename.
15959         * cpplib.c (do_define): Don't print the 'location of the
15960         previous definition' message if we're still parsing the
15961         command line.
15962         (cpp_pedwarn_with_file_and_line): Always call
15963         cpp_file_line_for_message.
15964
15965 2000-01-29  Mark Mitchell  <mark@codesourcery.com>
15966
15967         * flow.c (mark_regs_live_at_end): Fix typo.
15968
15969 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
15970
15971         * c-common.c: Adjust variable names, comments, help strings to c99.
15972         * c-lex.c: Likewise.
15973         * c-parse.y: Likewise.
15974         * c-tree.h: Likewise.
15975         * cccp.c: Likewise.
15976         * cpplib.h: Likewise.
15977         * c-decl.c: Likewise.  Recognize options with names "*99" as well.
15978         * cppinit.c: Likewise.
15979
15980 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15981
15982         * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
15983         * c4x.c: Define the optab rtx values.
15984         (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
15985         (c4x_emit_libcall): Use new optab rtx values.
15986         (c4x_emit_libcall3): Likewise.
15987         (c4x_emit_libcall_mulhi): Likewise.
15988         * c4x-protos.h: Add prototypes for optab rtx values and change
15989         prototypes for above c4x_emit_libcall functions.
15990
15991 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15992
15993         * c4x.c (c4x_output_ascii): Restrict line length of output when TI
15994         syntax is used.
15995         (c4x_function_prologue): Use regnames intead of float_reg_names when
15996         TI syntax is used.
15997         (c4x_function_epilogue): Likewise.
15998         (c4x_print_operand): Likewise.
15999         * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
16000         * c4x.md (set_high): Disable for TARGET_TI.
16001
16002 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16003
16004         * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
16005         of framepointer + constant to ADDR_REGS class.
16006         * c4x.md (addqi3, addqi3_noclobber_reload): Update.
16007         * c4x.c (std_or_reg_operand): New function.
16008         * c4x-protos.h (std_or_reg_operand): Prototype it.
16009
16010 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16011
16012         * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
16013                 object names as libgcc2.c.
16014         * libgcc.S: Use newly defined names.
16015
16016 Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
16017         * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
16018         function.
16019         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
16020         * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
16021         (FLOW_LOOP_LAST_BLOCK): Likewise.
16022
16023 2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16024
16025         * basic-block.h (struct loop): New fields 'first' and 'last'.
16026         * flow.c (flow_loops_find): Compute loop->first and loop->last.
16027         (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
16028         and loop->last to check for NOTE_INSN_LOOP_END.
16029
16030 Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>
16031
16032         * predict.c (estimate_probability): Use the new FIRST and LAST fields
16033         of the loop descriptor rather than HEADER and LATCH. Also added
16034         missing break statements as well making some coding style modifications
16035         as suggested by Michael Hayes.
16036
16037 2000-01-28  Richard Henderson  <rth@cygnus.com>
16038
16039         * flow.c (find_basic_blocks): Remove do_cleanup argument.
16040         Break out that code ...
16041         (cleanup_cfg): ... here.
16042         (commit_one_edge_insertion): Detect a return instruction being
16043         emitted to an edge.  Emit a barrier following; clear fallthru.
16044         (commit_edge_insertions): Verify CFG consistency.
16045         * function.c (expand_function_start): Kill unused variable.
16046         (expand_function_end): Likewise.
16047         (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
16048         to insert the epilogue.
16049
16050         * gcse.c (gcse_main): Adjust for find_basic_blocks change.
16051         (delete_null_pointer_checks): Likewise.
16052         * output.h: Likewise.
16053         * reg-stack.c (reg_to_stack): Likewise.
16054         * toplev.c (rest_of_compilation): Likewise.  Run
16055         thread_prologue_and_epilogue_insns after rebuilding the CFG.
16056
16057 2000-01-28  Richard Henderson  <rth@cygnus.com>
16058
16059         * Makefile.in (flow.o): Revert 24 Jan change.
16060         * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
16061         FUNCTION_VALUE result to DECL_RESULT's mode.
16062
16063         * haifa-sched.c (schedule_insns): Don't recompute reg info
16064         after reload.
16065
16066 2000-01-28  Zack Weinberg  <zack@wolery.cumb.org>
16067
16068         * configure.in: Make --enable-cpplib the default.
16069         * configure: Regenerate.
16070         * gcc.dg/990119-1.c: No longer expected to fail.
16071
16072 2000-01-28  Bernd Schmidt  <bernds@cygnus.co.uk>
16073
16074         * jump.c (jump_optimize_1): Delete an optimization that is also done
16075         by merge_blocks in flow.
16076
16077 2000-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16078
16079         * diagnostic.c (build_message_string, output_printf,
16080         line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
16081         (build_location_prefix): Fix non-literal format string.
16082
16083 2000-01-27  Richard Henderson  <rth@cygnus.com>
16084
16085         * alpha.md (trunctfsf2): New.
16086
16087 2000-01-27  Andrew Hobson  <ahobson@eng.mindspring.net>
16088
16089         * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
16090
16091 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
16092
16093         * cppinit.c (cpp_handle_option): Recognize C++ comments under
16094         -std=gnu89.
16095         * cpplib.c (skip_block_comment, skip_line_comment): Split code
16096         out of...
16097         (skip_comment) ... here.  Permit C++ comments in system
16098         headers always.  Warn about C++ comments in user code under
16099         -std=gnu89 -pedantic.
16100         (copy_comment): Use skip_comment.
16101         (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
16102         return EOF.
16103         (consider_directive_while_skipping, do_else, do_endif): Call
16104         validate_else unconditionally.
16105         (validate_else): Check CPP_PEDANTIC here.  Accept non-comment
16106         text after the conditional in a system header.
16107         * cpplib.h (struct cpp_buffer): Add flag
16108         warned_cplusplus_comments.
16109
16110 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
16111
16112         * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
16113         Use unshare_all_rtl_1.
16114         (unshare_all_rtl_again): New function.
16115         (unshare_all_rtl_1): New function split out of unshare_all_rtl.
16116
16117         * function.c (purge_addressof_1): Use unshare_all_rtl_again
16118         rather than resetting the 'used' flags ourself.
16119
16120         * toplev.c (rest_of_compilation): Add current_function_decl
16121         to the unshare_all_rtl call.
16122         * tree.h: Prototype unshare_all_rtl.
16123         * rtl.h: Prototype unshare_all_rtl_again here.
16124
16125 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
16126
16127         * genoutput.c (output_prologue): Include ggc.h in generated
16128         files.
16129         * Makefile.in (insn-output.o): Depends on ggc.h.
16130
16131 2000-01-27  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
16132             Hans-Peter Nilsson  <hp@bitrange.com>
16133
16134         * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
16135         Remove redundant include of xm-ns32k.h.
16136         * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
16137         Remove redundant include of xm-ns32k.h.
16138         * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
16139         Remove redundant include of xm-ns32k.h.
16140         * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
16141
16142         * ns32k/ns32k.h: Update comment on multiply-add instructions.
16143         (TARGET_SWITCHES): Add documentation strings.
16144         (DWARF_FRAME_REGNUM): Override default definition.
16145         (REG_CLASS_CONTENTS): Add comments.
16146         (SUBSET_P): Format to reduce line length.
16147         (SMALL_REGISTER_CLASSES): Make a run time option.
16148         (GO_IF_NONINDEXED_ADDRESS): Reformat.
16149         (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
16150         dereferencing it.  Braces to avoid "ambiguous else" were misplaced.
16151         (regclass_map): fix typo in comment.
16152         * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
16153         Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
16154         (trace, reg_or_mem_operand): Delete, unused function.
16155         (calc_address_cost): Small offsets are cheaper than large ones.
16156         (expand_block_move): Generate more efficient code when bytes is a
16157         known at compile time.
16158         * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
16159         (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
16160         instead of reg_or_mem_operand.
16161
16162         * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
16163         not general_operand.  Similarly use "=rm" or stricter, not "=g".
16164         For input operands, use stricter constraints than "g" if not
16165         general_operand.  Similarly use stricter predicate than
16166         "general_operand" when stricter constraints than "g" are present,
16167         except for matching constraints.
16168         (movstrsi): Use "memory_operand" for operands 0 and 1.
16169         (truncsiqi2, truncsihi2, trunchiqi2): Remove.
16170         (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
16171         not reg_or_mem_operand.
16172         (udivmoddisi4): Ditto.
16173         Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
16174         Use nonimmediate_operand for operand 3, not register_operand.
16175         (udivmoddiqi4_internal): Use register_operand for operand 1, not
16176         reg_or_mem_operand.
16177
16178 2000-01-27  Fred Fish  <fnf@be.com>
16179
16180         * gthr-posix.h: Fix typo; compatibily -> compatibility.
16181         * gthr-single.h: Likewise.
16182         * gthr-solaris.h: Likewise.
16183         * gthr-vxworks.h: Likewise.
16184         * gthr-win32.h: Likewise.
16185         * gthr.h: Likewise.
16186
16187 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
16188
16189         * cppinit.c: Add " (cpplib)" to end of string printed by
16190         -v / --version.
16191
16192 2000-01-27  Richard Henderson  <rth@cygnus.com>
16193
16194         * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
16195         testing for a signed comparison.
16196         (alpha_emit_floatuns): New.
16197         * alpha-protos.h: Declare it.
16198         * alpha.md (floatunsdisf2, floatunsdidf2): New.
16199         (extendsfdf2): Tidy.
16200
16201 2000-01-27  Jakub Jelinek  <jakub@redhat.com>
16202
16203         * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
16204         no -g option specifying debugging format, default to -gstabs+.
16205
16206 Wed Jan 26 22:19:14 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
16207
16208         * calls.c (special_function_p): New argument fork_or_exec.
16209         (expand_call): When profile_arc_flag is set and the function
16210         is in the fork_or_exec group, call __bb_fork_func first.
16211         * libgcc2.c, _bb module (__bb_fork_func): New function.
16212         (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
16213         output file.
16214         * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
16215         * tree.h (special_function_p): Update prototype.
16216
16217 2000-01-26  Richard Henderson  <rth@cygnus.com>
16218
16219         * alpha.c (alpha_split_tfmode_pair): New.
16220         * alpha-protos.h: Declare it.
16221         * alpha.md (abstf2, negtf2): New.
16222         (movtf insn): Add input G constraint.
16223         (movtf splitter): Use alpha_split_tfmode_pair.
16224
16225 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16226
16227         * i386/cygwin.h: PROTO -> PARAMS.
16228
16229 2000-01-26  Jakub Jelinek  <jakub@redhat.com>
16230
16231         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
16232         TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
16233         using _Qp_cmp/_Q_cmp and testing the return value.
16234         (print_operand): Call reverse_condition_maybe_unordered if
16235         we are handling CCFPmode or CCFPEmode.
16236         Handle ORDERED, UN* and LTGT comparisons.
16237         * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
16238         if not TARGET_HARD_QUAD.
16239         (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
16240         bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
16241         Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
16242         Adjust gen_b* calls so that they reflect return comparison of
16243         sparc_emit_float_lib_cmp.
16244
16245 2000-01-26  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16246
16247         * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
16248         incoming operands array is large enough for one more operand.
16249         (alpha_emit_xfloating_arith): Likewise.
16250
16251 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
16252
16253         * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
16254         file with one line and no trailing newline.
16255         Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
16256         * fixinc/fixtests.c (machine_name_test): Fix fencepost error
16257         checking if the match is on the line.
16258         * fixinc/gnu-regex.c: Provide regerror not __regerror.
16259
16260 2000-01-25  Richard Henderson  <rth@cygnus.com>
16261
16262         * sparc.c (output_cbranch): Fix accidental squashing of the
16263         fp branch pre-delay nop.
16264
16265 2000-01-25  Richard Henderson  <rth@cygnus.com>
16266
16267         * tree.def (UNNE_EXPR): Remove.
16268         * c-typeck.c (build_binary_op): Don't handle it.
16269         * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
16270
16271         * rtl.def (UNNE): Remove.
16272         (LTGT): Add.
16273         * jump.c (reverse_condition): Update accordingly.
16274         (swap_condition): Likewise.
16275         (comparison_dominates_p): Handle unordered comparisons.
16276         (reverse_condition_maybe_unordered): New.
16277         * rtl.h (reverse_condition_maybe_unordered): Declare.
16278
16279         * sparc.c (select_cc_mode): Update for UNNE/LTGT.
16280         (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
16281         * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
16282         * sparc.md (bltgt): New.
16283
16284 2000-01-25  Nick Clifton  <nickc@redhat.com>
16285
16286         * emit-rtl.c (emit_insn): Only check machine class insns for
16287         improper emission of a RETURN.
16288
16289 2000-01-25  Richard Henderson  <rth@cygnus.com>
16290
16291         * Makefile.in (flow.o): Depend on $(EXPR_H).
16292         * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
16293         duplicate the structure of diddle_return_value for keeping regs live.
16294
16295 2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16296
16297         * loop.c (current_loop_info): Delete.
16298         (consec_sets_invariant_p): Add loop argument, update callers.
16299         (get_condition_for_loop): Likewise.
16300         (count_nonfixed_reads, update_giv_derive): Likewise.
16301         (simplify_giv_expr, general_induction_var): Likewise.
16302         (consec_sets_giv, recombine_givs): Likewise.
16303         (move_movables): Delete loop_start and loop_end arguments,
16304         add loop argument, and update callers.
16305         (find_mem_givs, check_final_value): Likewise.
16306         (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
16307         (loop_invariant_p): Rename from invariant_p, add loop argument, and
16308         update callers.
16309         (basic_induction_var): Add loop argument, delete loop_level argument,
16310         and update callers.
16311         * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
16312         add loop argument, and update callers.
16313         (find_splittable_regs, find_splittable_givs): Likewise.
16314         (reg_dead_after_loop, loop_find_equiv_value): Likewise.
16315         (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
16316         (biv_total_increment): Delete loop_start and loop_end arguments;
16317         update callers.
16318         (precondition_loop_p): Delete loop_start and loop_info arguments;
16319         update callers.
16320         * loop.h (get_condition_for_loop): Add loop argument.
16321         (biv_total_increment): Delete loop_start and loop_end arguments.
16322         (precondition_loop_p): Delete loop_start and loop_info arguments;
16323         add loop argument.
16324         (final_biv_value): Delete loop_start and loop_end arguments;
16325         add loop argument.
16326         (final_giv_value, back_branch_in_range_p): Likewise.
16327
16328 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
16329
16330         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
16331
16332 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
16333
16334         * Makefile.in (c-gperf.h) : Change the "See" pointer to
16335         point to the new "generated_files" doc.
16336
16337 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
16338
16339         * config/fp-bit.c (_unord_f2): Fix typo.
16340
16341 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
16342
16343         * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
16344         c-typeck.c, objc/objc-act.c: Remove all references to obstack
16345         functions obsoleted by GC, such as push_obstacks_nochange,
16346         end_temporary_allocation, savealloc, saveable_tree_cons, etc.
16347         and code which existed only to decide whether or not to call
16348         them.  Remove now-unused NESTED argument from start_function;
16349         all callers changed.  Do not change behavior based on ggc_p.
16350         The use of the ixp_obstack in c-iterate.c and the util_obstack
16351         in objc/objc-act.c remain; these are not obsoleted by garbage
16352         collection.
16353         * c-tree.h: Update prototype for start_function.
16354
16355         * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
16356
16357 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
16358
16359         * config/mips/mips.md (zero_extendsidi2_internal): Disable for
16360         mips16.
16361
16362 2000-01-25  Richard Henderson  <rth@cygnus.com>
16363
16364         * sparc-protos.h (select_cc_mode): Declare.
16365         * sparc.c (select_cc_mode): New.  Handle unordered compares.
16366         (output_cbranch): Always reverse via code change.  Handle
16367         unordered compares.  Factor tests and string updates.
16368         * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
16369         (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
16370         * sparc.md (bunordered, bordered): New.
16371         (bungt, bunlt, buneq, bunge, bunle): New.
16372
16373 2000-01-25  Richard Henderson  <rth@cygnus.com>
16374
16375         * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
16376         * ggc-common.c (ggc_add_rtx_varray_root): New.
16377         (ggc_mark_rtx_varray): New.
16378         (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
16379         functions down below ggc_mark_foo.
16380         * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
16381
16382 2000-01-25  Richard Henderson  <rth@cygnus.com>
16383
16384         * alpha.c (secondary_reload_class): Don't allocate a secondary
16385         for integral mode memories into FLOAT_REGS.  Rearrange the more
16386         complicated memory expression inward.
16387
16388 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
16389
16390         * inclhack.def: Fixes to play nicer with FreeBSD, and
16391         corrections to comments.
16392         (cxx_unready): Add select expression.
16393         (irix_sockaddr): Add bypass expression.
16394         (machine_ansi_h_va_list): New fix.
16395         (stdio_va_list): No need to edit _BSD_VA_LIST_.
16396         Split out addition of "#include <stdarg.h>" to...
16397         (stdio_stdarg_h): ... here.
16398         (systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
16399         to stdlib.h also.  Do not munge _BSD_SIZE_T_.
16400         (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
16401         size_t.
16402         (ultrix_ifdef): Tighten up select expression.
16403
16404         * fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
16405         re_ct and max_mach to avoid use of shell.  Make printed names
16406         match names in inclhack.def.  Use static copyright date.
16407         Don't count c_test and test expressions as requiring regex_t
16408         slots.  Add some commentary.
16409         * inclhack.tpl: Do not include the 'This script contains N
16410         fixup scripts' line if PROGRAM is defined.  Use static
16411         copyright date.
16412
16413 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
16414
16415         * dwarf2out.c: include "varray.h", not dyn-string.h.
16416         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
16417         (addr_const_to_string, addr_to_string): Lose.
16418         (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
16419         (struct dw_val_struct): val_addr is now an rtx.
16420         (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
16421         (used_rtx_varray): New varray.
16422         (dwarf2out_init): Initialize it.
16423         (save_rtx): New fn.
16424         (mem_loc_descriptor, add_const_value_attribute): Call it instead of
16425         addr_to_string.
16426         * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
16427         sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
16428         * Makefile.in (dwarf2out.o): Update dependencies.
16429
16430 2000-01-24  Richard Henderson  <rth@cygnus.com>
16431
16432         * i386.c (i386_dwarf_output_addr_const): New.
16433         * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
16434
16435         * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
16436         if defined.
16437         * dwarfout.c (output_mem_loc_descriptor): Likewise.
16438         * i386.c (i386_simplify_dwarf_addr): New.
16439         * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
16440
16441 Mon Jan 24 16:56:10 2000  Jim Wilson  <wilson@cygnus.com>
16442
16443         * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
16444         TYPE_STUB_DECL is NULL.
16445
16446 2000-01-24  Richard Henderson  <rth@cygnus.com>
16447
16448         * builtins.c (expand_tree_builtin): Move ...
16449         * c-common.c (expand_tree_builtin): ... here.
16450
16451 2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16452
16453         * loop.h (LOOP_INFO): New accessor macro.
16454         * basic-block.h (struct loop): Rename field `info' to `aux'.
16455         * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
16456         (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
16457         * unroll.c (loop_iterations, unroll_loop): Likewise.
16458
16459 2000-01-24  Christopher Faylor <cgf@cygnus.com>
16460
16461         * config/i386/t-cygwin: Accomodate new winsup directory layout
16462         when searching for include files.
16463
16464 2000-01-24  Richard Henderson  <rth@cygnus.com>
16465
16466         * rtl.def: Add unordered fp comparisions.
16467         * tree.def: Likewise.
16468         * tree.h: Add ISO C 9x unordered fp comparision builtins.
16469
16470         * builtins.c (expand_tree_builtin): New function.
16471         * c-typeck.c (build_function_call): Use it.
16472         (build_binary_op): Support unordered compares.
16473         * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
16474
16475         * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
16476         (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
16477         * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
16478         (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
16479         * jump.c (reverse_condition): Don't abort for UNLE etc, but
16480         return UNKNOWN.
16481         (swap_condition): Handle unordered compares.
16482         (thread_jumps): Check can_reverse before reversing.
16483         * loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
16484         reversed for FP.
16485
16486         * optabs.c (can_compare_p): New argument CODE.  Verify branch or
16487         setcc is present before acking for cmp_optab.  Update all callers.
16488         (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
16489         * expmed.c (do_cmp_and_jump): Update for can_compare_p.
16490         * expr.c (expand_expr): Likewise.  Support unordered compares.
16491         (do_jump, do_store_flag): Likewise.
16492         * expr.h (enum libfunc_index): Add unordered compares.
16493
16494         * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
16495         (DPBIT_FUNCS): Add _unord_df.
16496         * config/fp-bit.c (_unord_f2): New.
16497         * fp-test.c (main): Try unordered compare builtins.
16498
16499         * alpha-protos.h (alpha_fp_comparison_operator): Declare.
16500         * alpha.c (alpha_comparison_operator): Check mode properly.
16501         (alpha_swapped_comparison_operator): Likewise.
16502         (signed_comparison_operator): Likewise.
16503         (alpha_fp_comparison_operator): New.
16504         (alpha_emit_conditional_branch): Handle unordered compares.
16505         * alpha.h (PREDICATE_CODES): Update.
16506         * alpha.md (fp compares): Use alpha_fp_comparison_operator.
16507         (bunordered, bordered): New.
16508
16509 2000-01-24  Richard Henderson  <rth@cygnus.com>
16510
16511         * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
16512         * alpha.md (movtf): New expander, insn, and splitter.
16513
16514 Mon Jan 24 19:49:47 MET 2000  Jan Hubicka  <jh@suse.cz>
16515
16516         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
16517         dead registers.
16518
16519 Mon Jan 24 17:37:31 MET 2000  Jan Hubicka  <jh@suse.cz>
16520
16521         * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
16522         (FIXED_REGISTERS, CALL_USED_REGISTERS,
16523          REG_ALLOC_ORDER): Add frame pointer
16524         (FRAME_POINTER_REGNUM): Set to 20
16525         (HARD_FRAME_POINTER_REGNUM): New macro.
16526         (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
16527         to HARD_FRAME_POINTER.
16528         (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
16529         (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
16530         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
16531         (HI_REGISTER_NAMES): Add "frame".
16532         (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
16533         (debug_reg): Handle FRAME_POINTER_REGNUM.
16534         (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
16535         GENERAL_REGS and INDEX_REGS.
16536         * i386.c (SAVED_REGS_FIRST): new macro.
16537         (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
16538         (ix86_decompose_address, memory_address_length): Likewise.
16539         (regclass_map): Add frame pointer.
16540         (call_insn_operand): Handle frame_pointer_rtx.
16541         (reg_no_sp_operand): Likewise.
16542         (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
16543         (print_operand, legitimize_pic_address): Fix formating.
16544         (ix86_compute_frame_size): Make static, update prototype, new
16545         parameters padding1, padding2, use ix86_nsaved_regs, use
16546         stack_alignment_needed.
16547         (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
16548         to HARD_FRAME_POINTER_REGNUM conversions.
16549         (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
16550         (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
16551         (print_reg): Abort on FRAME_POINTER_REGNUM
16552
16553 Mon Jan 24 16:50:08 MET 2000  Jan Hubicka  <jh@suse.cz>
16554
16555         * i386.h (PREDICATE_CODES): Add aligned_operand.
16556         * i386.c (aligned_operand): New function.
16557         (ix86_aligned_p): Kill.
16558         * i386.md (movhi_1): Emit mov for aligned operands.
16559         (promoting peep2s): Use aligned_operand.
16560
16561 2000-01-23  Zack Weinberg  <zack@wolery.cumb.org>
16562
16563         * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
16564         expression to allow underscores in macro names.
16565         (fix_char_macro_defines): Increment scanning pointer.
16566
16567 2000-01-23  Richard Henderson  <rth@cygnus.com>
16568
16569         * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
16570         * alpha/osf5.h: New file.
16571         * configure.in (alpha-*-osf5): Add it to tm_file.
16572
16573         * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
16574
16575         * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
16576         (alpha_emit_xfloating_cvt, function_arg): Declare.
16577         * alpha.c (alpha_emit_conditional_branch): Call
16578         alpha_emit_xfloating_compare for TFmode compares.
16579         (alpha_lookup_xfloating_lib_func): New.
16580         (alpha_compute_xfloating_mode_arg): New.
16581         (alpha_emit_xfloating_libcall): New.
16582         (alpha_emit_xfloating_arith): New.
16583         (alpha_emit_xfloating_compare): New.
16584         (alpha_emit_xfloating_cvt): New.
16585         (print_operand): Add default abort case.
16586         (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
16587         * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
16588         (BIGGEST_ALIGNMENT): Increase to 128 bits.
16589         (RETURN_IN_MEMORY): True for TF/TCmode.
16590         (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
16591         (FUNCTION_ARG): Move to function_arg.
16592         (FUNCTION_ARG_PASS_BY_REFERENCE): New.
16593         (ASM_OUTPUT_LONG_DOUBLE): New.
16594         (ASM_OUTPUT_DOUBLE): Always output bits.
16595         * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
16596         (fix_trunctfdi2, floatditf2, floatunsditf2): New.
16597         (extenddftf2, trunctfdf2): New.
16598
16599 2000-01-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
16600
16601         * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
16602         * config/sparc/sol2.h: ... here.
16603
16604 2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16605
16606         * basic-block.h (struct loops): New field `levels'.
16607         * flow.c (flow_loops_level_compute): Traverse all outer loops.
16608         (flow_loop_level_compute): Initialise level to 1.
16609         (flow_loops_find): Set loops->levels.
16610         (flow_loops_dump): Print loops->levels.
16611
16612 2000-01-23  Richard Henderson  <rth@cygnus.com>
16613
16614         * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
16615         (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
16616
16617 2000-01-23  Richard Henderson  <rth@cygnus.com>
16618
16619         * i386.c (dbx_register_map, svr4_dbx_register_map): New.
16620         * i386.h (DBX_REGISTER_NUMBER): Use them.
16621         * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
16622         * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
16623         * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
16624         * i386/sequent.h: Kill incorrect comment.
16625
16626 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
16627
16628         * ggc-page.c (struct page_entry): Make `context_depth' an
16629         `unsigned short'.
16630         (struct globals): Likewise.
16631
16632 2000-01-23  Clinton Popetz  <cpopetz@cygnus.com>
16633
16634         * loop.c (check_dbra_loop): When checking a loop for
16635         reversability, check the source of any stores to ensure
16636         they don't depend on an initial value.
16637
16638 2000-01-23  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16639
16640         * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
16641
16642 2000-01-22  Zack Weinberg  <zack@wolery.cumb.org>
16643
16644         * fixinc/fixincl.c: Move declarations of 'pz_fname' and
16645         'pz_scan' into scope of entire function.  Only affects
16646         compiles with -DDEBUG.
16647
16648 2000-01-22  Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
16649
16650         * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
16651         section naming to that prior to 2000-01-07 patch.
16652         * config/mips/elf.h (UNIQUE_SECTION): Ditto.
16653         * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
16654         * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
16655         * config/i386/interix.c (UNIQUE_SECTION): Ditto.
16656         * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
16657
16658 2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
16659
16660         * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
16661         constant.
16662
16663 2000-01-21  Jim Wilson  <wilson@cygnus.com>
16664
16665         * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
16666         * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
16667
16668 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
16669
16670         * cpphash.c (change_newlines): Delete function.
16671         (struct argdata): Delete 'newlines' and 'use_count' fields.
16672         (macroexpand): Remove code referencing those fields.
16673
16674 2000-01-22  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16675
16676         * loop.c (loops_info): New variable.
16677         (loop_optimize): Allocate loops->array and free it on exit.
16678         Allocate memory for loops_info and assign to each loop,
16679         replacing alloca.
16680         (find_and_verify_loops): Do not allocate loops->array.
16681
16682 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
16683
16684         * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
16685
16686 2000-01-21  Jakub Jelinek  <jakub@redhat.com>
16687
16688         * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
16689         pseudos if expanded after first flow.
16690         (movdi_pic_label_ref): Likewise.
16691
16692 2000-01-20  Richard Henderson  <rth@cygnus.com>
16693
16694         * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
16695
16696 2000-01-20  Zack Weinberg  <zack@wolery.cumb.org>
16697
16698         * Makefile.in (fixinc.sh): Depend on specs.
16699         * fixinc/Makefile.in: Add rule to create machname.h.
16700         (fixlib.o): Depend on machname.h.
16701         * fixinc/fixtests.c (machine_name): New test.
16702         * fixinc/fixfixes.c (machine_name): New fix.
16703         * fixinc/fixlib.c (mn_get_regexps): New helper function for
16704         the machine_name test and fix.
16705         * fixinc/fixlib.h: Prototype it.
16706         * fixinc/inclhack.def (machine_name): Use the C test and fix.
16707         * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
16708
16709         * gcc.c (do_spec_1) [case P]: Take care not to create
16710         identifiers with three leading or trailing underscores.
16711
16712         * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
16713         (fixincl): Don't specify libraries twice on link line.
16714         (gnu-regex.o): Remove special rule.
16715         * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
16716         defined by config.h.  Do not define _REGEX_RE_COMP.
16717         (regcomp): Allocate and initialize a fastmap.
16718         * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
16719
16720 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
16721
16722         * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
16723
16724 2000-01-19  Richard Henderson  <rth@cygnus.com>
16725
16726         * flow.c (propagate_block): Replace FIRST, LAST and BNUM
16727         arguments with BB.  Update all callers.  Tidy line wrapping.
16728
16729 2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
16730
16731         * emit-rtl.c (try_split): Return last_insn if we split the
16732         last_insn.
16733
16734 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
16735
16736         * i386-protos.h (ix86_compute_frame_size): Remove prototype.
16737         (ix86_initial_elimination_offset): Declare.
16738         * i386.c (ix86_nsaved_regs): Break out from ...
16739         (ix86_can_use_return_insn_p): ... here.
16740         (ix86_emit_save_regs): Break out from ...
16741         (ix86_expand_prologue): ... here.
16742         (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
16743         out from ...
16744         (ix86_expand_epilogue): ... here.
16745         (ix86_compute_frame_size): Make static, add prototype.
16746         (ix86_initial_elimination_offset): Break out from ...
16747         * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
16748
16749 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16750
16751         * recog.h (OUT_FCN): Delete.
16752
16753         * vax.md: Call `get_insn_template' instead of OUT_FCN.
16754
16755 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16756
16757         * cppalloc.c: PROTO -> PARAMS.
16758         * cpperror.c: Likewise.
16759         * cppfiles.c: Likewise.
16760         * cpplib.c: Likewise.
16761         * cpplib.h: Likewise.
16762
16763         * config/arm/arm-protos.h: PROTO -> PARAMS.
16764         * config/arm/arm.c: Likewise.
16765         * config/c4x/c4x.c: Likewise.
16766         * config/fr30/fr30-protos.h: Likewise.
16767         * config/nextstep.c: Likewise.
16768         * config/pa/pa.c: Likewise.
16769         * config/pj/pj.c: Likewise.
16770         * config/rs6000/rs6000.c: Likewise.
16771         * config/v850/v850-protos.h: Likewise.
16772         * config/v850/v850.c: Likewise.
16773
16774 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16775
16776         * i370-protos.h: New file.
16777
16778         * i370.c: Include tm_p.h.  Fix compile time warnings.
16779
16780         * i370.h: Move prototypes to i370-protos.h.  Fix compile time
16781         warnings.
16782
16783         * i370.md: Likewise.
16784
16785 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16786
16787         * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
16788         (target_isinf, target_isnan, eisnan): Mark parameter with
16789         ATTRIBUTE_UNUSED.
16790         (eiisinf): Wrap in INFINITY.
16791         (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
16792         (ibmtoe): Remove unused variable `rndsav'.
16793
16794 Wed Jan 19 20:23:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
16795
16796         * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
16797         (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
16798
16799 2000-01-19  Zack Weinberg  <zack@wolery.cumb.org>
16800
16801         * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
16802         * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
16803         (fix_char_macro_defines, fix_char_macro_uses): New functions.
16804
16805         * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
16806         Recognize Emacs mode markers also.
16807         * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
16808         C++ comments in C++ headers.  Call is_cxx_header only if
16809         necessary.
16810
16811         * fixinc/inclhack.def (avoid_bool): Add select for the problem and
16812         bypass for ncurses.
16813         (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
16814         (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
16815         ... these, which use the new C fixes.
16816         (math_exception): Escape literal '+' in bypass expression.
16817
16818         * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
16819         Regenerate.
16820
16821 2000-01-19  Geoff Keating  <geoffk@cygnus.com>
16822
16823         * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
16824         inside the MEM.
16825
16826 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16827
16828         * loop.c (loop_optimize): Allocate loop_info structure for each loop
16829         prior to calling scan_loop.
16830
16831 Wed Jan 19 19:54:38 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
16832
16833         * sh.c (find_barrier, gen_block_redirect): Fix indentation.
16834         (split_branches, calc_live_regs): Likewise.
16835
16836 Wed Jan 19 19:12:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
16837
16838         * sh.md (fpu_single, fp_mode): New attributes.
16839
16840 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16841
16842         * loop.c (current_loop_info): Renamed from loop_info_data
16843         and changed to a pointer.
16844         (loop_optimize): Allocate loop_info structure for each loop
16845         and initialise to zero.
16846         (scan_loop): Set current_loop_info.
16847
16848         * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
16849         on iteration_var.
16850
16851 2000-01-19  Richard Henderson  <rth@cygnus.com>
16852
16853         * stupid.c: Die die die.
16854         * Makefile.in (OBJS): Remove stupid.o.
16855         (stupid.o): Likewise.
16856
16857         * except.c (emit_eh_context): Don't emit USEs for stupid.
16858         * explow.c (probe_stack_range): Likewise.
16859         * flags.h (obey_regdecls): Remove.
16860         * flow.c (find_basic_blocks): Don't run try_merge_blocks
16861         when not optimizing.
16862         (life_analysis): Limit data collection when not optimizing.
16863         (mark_regs_live_at_end): Always mark the return value registers.
16864         (mark_used_regs): Remove dummy RETURN case.
16865         (print_rtl_with_bb): Don't consult obey_regdecls.
16866         * function.c (use_variable, use_variable_after): Remove.
16867         (assign_parms): Consult optimize not obey_regdecls.
16868         (expand_function_start): Don't emit USEs for stupid.
16869         (expand_function_end): Likewise.
16870         * global.c (build_insn_chain): Export.
16871         * integrate.c (expand_inline_function): Kill return-value USE
16872         handling code.
16873         * jump.c (jump_optimize_1): Do simple jump optimizations and
16874         dead code elimination.
16875         (calculate_can_reach_end): Remove check_deleted argument.
16876         (delete_insn): Patch out insns even when not optimizing.
16877         * local-alloc.c (block_alloc): Don't do tying when not optimizing.
16878         * rtl.h (use_variable, use_variable_after): Remove declarations.
16879         (build_insn_chain): Declare.
16880         * stmt.c (expand_value_return): Don't emit USEs for stupid.
16881         (expand_end_bindings): Likewise.
16882         (expand_decl): Likewise.  Consult optimize not obey_regdecls.
16883         * toplev.c (obey_regdecls): Remove.
16884         (rest_of_compilation): Don't set it.  Kill stupid in favour of
16885         flow1, local-alloc, and reload.
16886         (main): Don't set obey_regdecls.
16887
16888         * config/nextstep.c (handle_pragma): Likewise.
16889
16890         * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
16891
16892         * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
16893
16894 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16895
16896         * alpha-protos.h: PROTO -> PARAMS.
16897         * alpha.c: Likewise.
16898         * elf.h: Likewise.
16899         * h8300.c: Likewise.
16900         * i386-protos.h: Likewise.
16901         * i386.c: Likewise.
16902         * m32r-protos.h: Likewise.
16903         * m32r.c: Likewise.
16904         * mips.c: Likewise.
16905         * mips.md: Likewise.
16906         * gmon-sol2.c: Likewise.
16907         * sparc.c: Likewise.
16908
16909 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16910
16911         * ns32k-protos.h: New file.
16912
16913         * ns32k.c: Fix compile time warnings.
16914
16915         * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
16916         warnings.
16917
16918         * ns32k.md: Likewise.
16919
16920 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16921
16922         * vax-protos.h: New file.
16923
16924         * vax.c: Fix compile time warnings.
16925
16926         * vax.h: Move prototypes to vax-protos.h.  Fix compile time
16927         warnings.
16928
16929         * vax.md: Likewise.
16930
16931         * vaxv.md: Likewise.
16932
16933 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16934
16935         * romp-protos.h: New file.
16936
16937         * romp.c: Fix compile time warnings.
16938
16939         * romp.h: Move prototypes to romp-protos.h.  Fix compile time
16940         warnings.
16941
16942         * romp.md: Likewise.
16943
16944 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16945
16946         * we32k-protos.h: New file.
16947
16948         * we32k.c: Fix compile time warnings.
16949
16950         * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
16951         warnings.
16952
16953 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16954
16955         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
16956
16957         * except.c (eh_regs): Likewise.
16958
16959         * final.c (output_operand): Likewise.
16960
16961         * fold-const.c (target_isinf, target_isnan): Likewise.
16962
16963 Tue Jan 18 16:19:55 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
16964
16965         * i386.h (BIGGEST_ALIGNMENT): Set to 128.
16966         (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
16967
16968         * i386.md (memstr): Do not use rep stosb for counts divisible by 4
16969         when optimize_size.
16970         (clrstrsi): Rewrite.
16971         (strsethi, strsetqi): New expanders.
16972         (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
16973         (cmpstrsi): Emit compare insn before cmpstrsi_1
16974         (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
16975         (strlensi_1): Likewise.
16976         (cmpstrsi_1): Likewise; do not output compare.
16977         (strlen expander): Do not unroll when optimizing for size.
16978         (*subsi3_carry): Rename to subsi3_carry
16979         (addqi3_cc): New pattern.
16980         * i386.h (processor_costs): Add move_ratio field.
16981         (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
16982         * i386.c (*_cost): Set move_ratio.
16983         (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
16984         (x86_expand_strlensi_1): Rewrite the main loop.
16985
16986 2000-01-17  Richard Henderson  <rth@cygnus.com>
16987
16988         * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
16989         * cse.c (find_comparison_args, fold_rtx): Likewise.
16990         * integrate.c (subst_constants): Likewise.
16991         * loop.c (get_condition): Likewise.
16992
16993         * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
16994
16995         * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
16996
16997 2000-01-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
16998
16999         * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
17000         (RESTORE_WARN_FLAGS): Unpack it.
17001         Change semantic type of extension to ttype.
17002         * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
17003         * c-parse.y, c-parse.c, objc/objc-parse.y,
17004         objc/objc-parse.c: Regenerate.
17005
17006 2000-01-17  Zack Weinberg  <zack@wolery.cumb.org>
17007
17008         * fixinc/fixlib.c: Add copyright notice.
17009         (compile_re): New function.
17010         * fixinc/fixlib.h: Prototype compile_re.
17011
17012         * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
17013         Use compile_re to compile regular expressions.
17014
17015         * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
17016         where the pattern matched.
17017
17018         * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
17019         use 'replace'.
17020         (ultrix_ansi_compat): Likewise.
17021         (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
17022         add egrep test.
17023         (interactv_add2, interactv_add3): Delete.
17024         (x11_sprintf): Don't use filename glob.
17025         * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
17026         Regenerate.
17027
17028 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17029
17030         * print-rtl.c: PROTO -> PARAMS.
17031         * real.c: Likewise.
17032         * reg-stack.c: Likewise.
17033         * resource.c: Likewise.
17034         * sdbout.h: Likewise.
17035         * simplify-rtx.c: Likewise.
17036         * stor-layout.c: Likewise.
17037         * stupid.c: Likewise.
17038         * xcoffout.c: Likewise.
17039         * xcoffout.h: Likewise.
17040
17041 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17042
17043         * toplev.c: PROTO -> PARAMS.
17044         * toplev.h: Likewise.
17045         * tree.c: Likewise.
17046         * tree.h: Likewise.
17047         * unroll.c: Likewise.
17048         * varasm.c: Likewise.
17049         * varray.c: Likewise.
17050         * varray.h: Likewise.
17051
17052 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17053
17054         * reload.c: PROTO -> PARAMS.
17055         * reload.h: Likewise.
17056         * reload1.c: Likewise.
17057         * reorg.c: Likewise.
17058         * resource.h: Likewise.
17059         * rtl.c: Likewise.
17060         * rtl.h: Likewise.
17061         * rtlanal.c: Likewise.
17062         * sbitmap.h: Likewise.
17063         * sdbout.c: Likewise.
17064         * stack.h: Likewise.
17065         * stmt.c: Likewise.
17066         * system.h: Likewise.
17067
17068 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17069
17070         * machmode.h: PROTO -> PARAMS.
17071         * mbchar.h: Likewise.
17072         * mips-tdump.c: Likewise.
17073         * mips-tfile.c: Likewise.
17074         * optabs.c: Likewise.
17075         * output.h: Likewise.
17076         * prefix.c: Likewise.
17077         * profile.c: Likewise.
17078         * protoize.c: Likewise.
17079         * real.h: Likewise.
17080         * recog.c: Likewise.
17081         * recog.h: Likewise.
17082         * regclass.c: Likewise.
17083         * regmove.c: Likewise.
17084         * regs.h: Likewise.
17085
17086 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17087
17088         * ggc-common.c: PROTO -> PARAMS.
17089         * ggc-page.c: Likewise.
17090         * ggc-simple.c: Likewise.
17091         * ggc.h: Likewise.
17092         * global.c: Likewise.
17093         * graph.c: Likewise.
17094         * gthr-win32.h: Likewise.
17095         * haifa-sched.c: Likewise.
17096         * halfpic.h: Likewise.
17097         * integrate.c: Likewise.
17098         * integrate.h: Likewise.
17099         * jump.c: Likewise.
17100         * lcm.c: Likewise.
17101         * local-alloc.c: Likewise.
17102         * loop.c: Likewise.
17103         * loop.h: Likewise.
17104
17105 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17106
17107         * genattr.c: PROTO -> PARAMS.
17108         * genattrtab.c: Likewise.
17109         * gencheck.c: Likewise.
17110         * gencodes.c: Likewise.
17111         * genconfig.c: Likewise.
17112         * genemit.c: Likewise.
17113         * genextract.c: Likewise.
17114         * genflags.c: Likewise.
17115         * gengenrtl.c: Likewise.
17116         * genopinit.c: Likewise.
17117         * genoutput.c: Likewise.
17118         * genpeep.c: Likewise.
17119         * genrecog.c: Likewise.
17120
17121 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
17122
17123         * tree.h (BINFO_VPTR_FIELD): Augment documentation.
17124
17125 2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17126
17127         * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
17128         * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
17129         * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
17130         * configure, config.in: Rebuilt.
17131
17132 2000-01-16  Zack Weinberg  <zack@wolery.cumb.org>
17133
17134         * config/i386/i386.md: Add peephole to merge successive stack
17135         adjusts.
17136
17137 Sat Jan 15 15:41:14 EST 2000  John Wehle  (john@feith.com)
17138
17139         * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
17140         instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
17141         when walking backwards to find all the parameter loads when
17142         the basic block ends in a call.
17143
17144 2000-01-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17145
17146         * loop.c (this_loop_info): Delete.
17147         (uid_loop): Add in place of uid_loop_num.  All uses updated.
17148         (loop_number_exit_count): Delete and replace with entry in loop
17149         structure.  All uses updated.
17150         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
17151         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
17152         (loop_outer_loop): Likewise.
17153         (loop_invalid, loop_number_exit_labels): Likewise.
17154         (loop_used_count_register): Delete and replace with entry in
17155         loop_info structure.
17156         (find_and_verify_loops): Add loops argument.
17157         (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
17158         loop_end, etc. arguments with loop structure pointer.  All callers
17159         changed.
17160         (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
17161         (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
17162         (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
17163         (insert_bct): Likewise.
17164         (basic_induction_var): New argument level.
17165         * loop.h (struct loop_info): Delete fields num, loops_enclosed,
17166         vtop, and cont.  Add used_count_register.
17167         (uid_loop): Delete declaration.
17168         (loop_number_exit_count): Likewise.
17169         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
17170         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
17171         (loop_outer_loop, loop_used_count_register): Likewise.
17172         (loop_invalid, loop_number_exit_labels): Likewise.
17173         (unroll_loop): Replace loop_start and loop_end arguments
17174         with loop structure pointer.
17175         (loop_precondition_p, loop_iterations): Likewise.
17176         Include basic-block.h.
17177         * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
17178         with loop structure pointer.
17179         (loop_precondition_p, loop_iterations): Likewise.
17180         * basic-block.h (struct loop): New entries vtop, cont,
17181         cont_dominator, start, end, top, scan_start, exit_labels,
17182         exit_count.
17183         * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
17184
17185 2000-01-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17186
17187         * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
17188
17189 2000-01-14  Nathan Sidwell  <sidwell@codesourcery.com>
17190
17191         * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
17192
17193 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17194
17195         * pdp11-protos.h: New file.
17196
17197         * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
17198         time warnings.
17199
17200         * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
17201         warnings.
17202
17203         * pdp11.md: Likewise.
17204
17205         * 2bsd.h: Likewise.
17206
17207 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17208
17209         * mn10300-protos.h: New file.
17210
17211         * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
17212         time warnings.
17213
17214         * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
17215         warnings.
17216
17217         * mn10300.md: Likewise.
17218
17219 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17220
17221         * mn10200-protos.h: New file.
17222
17223         * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
17224         time warnings.
17225
17226         * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
17227         warnings.
17228
17229         * mn10200.md: Likewise.
17230
17231 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17232
17233         * h8300-protos.h: New file.
17234
17235         * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
17236         time warnings.
17237
17238         * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
17239         warnings.
17240
17241         * h8300.md: Likewise.
17242
17243 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17244
17245         * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
17246         (asm_emit_uninitialised): Likewise.
17247
17248 2000-01-13  Gavin Romig-Koch  <gavin@cygnus.com>
17249
17250         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
17251         * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
17252
17253 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
17254
17255         * config/mips/mips.c (override_options): Don't turn on extra
17256         alignment for mips16.
17257
17258 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
17259
17260         * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
17261         eabi, and make sure queued POSTINCREMENT rtl is emitted at
17262         the right point.
17263
17264 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
17265
17266         * builtins.c (PAD_VARARGS_DOWN): Define.
17267         (std_expand_builtin_va_arg): Use the above macro.
17268         * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
17269         * tm.texi (Register Arguments): Document the above macro.
17270
17271 2000-01-14  Nick Clifton  <nickc@cygnus.com>
17272
17273         * emit-rtl.c (emit_insn): If checking is enabled, make sure
17274         that this function has not been used to emit a jump
17275         instruction.
17276
17277         * jump.c (return_jump_1): Cope with being passed a null rtx.
17278
17279 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17280
17281         * eh-common.h: PROTO -> PARAMS.
17282         * emit-rtl.c: Likewise.
17283         * errors.c: Likewise.
17284         * errors.h: Likewise.
17285         * except.c: Likewise.
17286         * except.h: Likewise.
17287         * explow.c: Likewise.
17288         * expmed.c: Likewise.
17289         * expr.c: Likewise.
17290         * expr.h: Likewise.
17291         * final.c: Likewise.
17292         * fix-header.c: Likewise.
17293         * flow.c: Likewise.
17294         * fold-const.c: Likewise.
17295         * function.c: Likewise.
17296         * function.h: Likewise.
17297         * gcc.c: Likewise.
17298         * gcov-io.h: Likewise.
17299         * gcov.c: Likewise.
17300         * gcse.c: Likewise.
17301
17302 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17303
17304         * sh-protos.h: New file.
17305
17306         * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
17307         Add static prototypes.  Fix compile time warnings.
17308
17309         * sh.h: Move prototypes to sh-protos.h.  Fix compile time warnings.
17310         * sh.md: Likewise.
17311         * elf.h: Likewise.
17312
17313 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17314
17315         * arc-protos.h: New file.
17316
17317         * arc.c: Include tm_p.h.  Add static prototypes.  Fix compile
17318         time warnings.
17319
17320         * arc.h: Move prototypes to arc-protos.h.  Fix compile time
17321         warnings.
17322
17323         * arc.md: Likewise.
17324
17325 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17326
17327         * dsp16xx-protos.h: New file.
17328
17329         * dsp16xx.c: Include tm_p.h.  Add static prototypes.  Fix compile
17330         time warnings.
17331
17332         * dsp16xx.h: Move prototypes to dsp16xx-protos.h.  Fix compile time
17333         warnings.
17334
17335         * dsp16xx.md: Likewise.
17336
17337 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17338
17339         * convex-protos.h: New file.
17340
17341         * convex.c: Include tm_p.h.  Add static prototypes.  Fix compile
17342         time warnings.
17343
17344         * convex.h: Move prototypes to convex-protos.h.  Fix compile time
17345         warnings.
17346
17347 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17348
17349         * elxsi-protos.h: New file.
17350
17351         * elxsi.c: Include tm_p.h.  Add static prototypes.  Fix compile
17352         time warnings.
17353
17354         * elxsi.h: Move prototypes to elxsi-protos.h.  Fix compile time
17355         warnings.
17356
17357         * elxsi.md: Likewise.
17358
17359 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
17360
17361         * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
17362         case for moving from HI/LO/HI_LO_REG.  This makes the behavior
17363         match the comment for MIPS16.
17364
17365 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
17366
17367         * flow.c (split_edge): Do not call set_block_for_insn if we
17368         do not have a basic_block_for_insn structure.
17369
17370         * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
17371         and destination functions are 32bit aligned within the trampoline.
17372         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
17373         (TRAMPOLINE_ALIGNMENT): Define.
17374
17375         * cse.c (cse_insn): When changing (set (pc) (reg)) to
17376         (set (pc) (label_ref)), verify the change creates a valid insn.
17377
17378         * fr30.c (call_operand): Tighten and rework to match rules for
17379         call RTL expressions.
17380         * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
17381         * fr30.md (call patterns): Improve constraints.
17382
17383 Thu Jan 13 23:44:03 2000  Richard Henderson  <rth@cygnus.com>
17384
17385         * fr30.c (fr30_expand_epilogue): Revert last change.
17386         Use emit_jump_insn for the return insn.
17387
17388 Thu Jan 13 14:46:03 2000  Jason Eckhardt  <jle@cygnus.com>
17389                           Stan Cox  <scox@cygnus.com>
17390
17391         * predict.c: New file. Preliminary infrastructure work for static
17392         branch prediction and basic block reordering.
17393         * basic-block.h: Add prototype for estimate_probability.
17394         * Makefile.in: Add rules for predict.o.
17395
17396 2000-01-13  Jason Merrill  <jason@yorick.cygnus.com>
17397
17398         * fixincludes (va_list): Use __not_va_list__ for the dummy.
17399         * fixinc/*: Likewise.
17400
17401 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17402
17403         * cccp.c: PROTO -> PARAMS.
17404         * cexp.y: Likewise.
17405         * collect2.c: Likewise.
17406         * combine.c: Likewise.
17407         * convert.h: Likewise.
17408         * cse.c: Likewise.
17409         * dbxout.c: Likewise.
17410         * dbxout.h: Likewise.
17411         * diagnostic.c: Likewise.
17412         * doprint.c: Likewise.
17413         * dwarf2out.c: Likewise.
17414         * dwarf2out.h: Likewise.
17415         * dwarfout.c: Likewise.
17416         * dwarfout.h: Likewise.
17417         * dyn-string.h: Likewise.
17418
17419 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17420
17421         * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
17422         macro conditionals guarding use.
17423
17424         * dwarf2out.c: Include "tm_p.h".
17425
17426         * function.c (locate_and_pad_parm): Mark parameter with
17427         ATTRIBUTE_UNUSED.
17428         (expand_function_end): Likewise for variable `context'.
17429
17430         * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
17431
17432 2000-01-13  Nick Clifton  <nickc@cygnus.com>
17433
17434         * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
17435         register to prevent compile time warnings.
17436
17437 2000-01-13  Zack Weinberg  <zack@wolery.cumb.org>
17438
17439         * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
17440         to avoid -Wtraditional warning.
17441
17442 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17443
17444         * 1750a-protos.h: New file.
17445
17446         * 1750a.c: Include tm_p.h.  Add static prototypes.  Fix compile
17447         time warnings.
17448
17449         * 1750a.h: Move prototypes to 1750a-protos.h.  Fix compile time
17450         warnings.
17451
17452         * 1750a.md: Likewise.
17453
17454 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17455
17456         * a29k-protos.h: New file.
17457
17458         * a29k.c: Include tm_p.h.  Add static prototypes.  Fix compile
17459         time warnings.
17460
17461         * a29k.h: Move prototypes to a29k-protos.h.  Fix compile time
17462         warnings.
17463
17464 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17465
17466         * clipper-protos.h: New file.
17467
17468         * clipper.c: Include tm_p.h.  Add static prototypes.  Fix compile
17469         time warnings.
17470
17471         * clipper.h: Move prototypes to clipper-protos.h.  Fix compile time
17472         warnings.
17473
17474 Thu Jan 13 16:03:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
17475
17476         * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
17477
17478 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
17479
17480         * configure.in (--enable-new-gxx-abi): New option.
17481         * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
17482         * Makefile.in (GXX_ABI_FLAG): New variable.
17483         * configure: Regenerate.
17484
17485 2000-01-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17486
17487         * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
17488         * tm.texi (FORCE_STRUCT_BLK): Document.
17489         * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
17490
17491 Wed Jan 12 23:12:47 2000  Hans-Peter Nilsson  <hp@axis.com>
17492
17493         * config/ns32k/ns32k.md: Revert Jan 9 change.
17494
17495         * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
17496         to a mode-test, if the predicate is address_operand.
17497
17498 Wed Jan 12 22:34:00 2000  Jeffrey A Law  (law@cygnus.com)
17499
17500         * combine.c (if_then_else_cond): Be careful about what kinds
17501         of RTL expressions are passed to operand_subword.
17502
17503         * flow.c (split_edge): If we have to insert a new jump, make
17504         sure to associate it with a basic block.
17505
17506         * flow.c (commit_one_edge_insertion): A block with one successor
17507         can end in a JUMP_INSN that is not a simplejump.
17508
17509 2000-01-12  Robert Lipe  <robertl@sco.com>
17510
17511         * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
17512         (BUILD_VA_LIST_TYPE): Define.
17513         (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
17514         with crtstuff.c.
17515
17516 2000-01-12  Jason Merrill  <jason@casey.cygnus.com>
17517
17518         * cccp.c (do_pragma): Add cast to (char *).
17519
17520 2000-01-12  Richard Henderson  <rth@cygnus.com>
17521             Fred Fish  <fnf@be.com>
17522             Jason Merrill  <jason@cygnus.com>
17523
17524         * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
17525         * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
17526         * i386/beos-elf.h, i386/beos-pe.h: New files.
17527
17528         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
17529         * cross-make (SYSTEM_HEADER_DIR): Define using
17530         CROSS_SYSTEM_HEADER_DIR.
17531
17532         * gcc.c (LIBRARY_PATH_ENV): Provide default.
17533         (process_command): Use it.
17534         (main): Likewise.  Kill trailing = from env vars.
17535         (build_search_list): Put it back.
17536         * collect2.c (main): Use LIBRARY_PATH_ENV.
17537
17538         * configure.in (GCC_NEED_DECLARATIONS): Add environ.
17539         * toplev.c: Use NEED_DECLARATION_ENVIRON.
17540
17541         * tm.texi (Frame Layout): Document SMALL_STACK.
17542         * c-common.c (c_common_nodes_and_builtins): Check it.
17543
17544         * system.h: Undef alloca after including glibc's <stdlib.h>,
17545         if USE_C_ALLOCA is defined.
17546
17547         * gcc.c (set_input): New fn.
17548         (main): After all input files are compiled, reset the input file
17549         info to the first.
17550
17551         * aclocal.m4 (rindex, index): If already defined, don't attempt
17552         to redefine.
17553
17554         * ginclude/varargs.h: (__va_list__): Define ifndef.
17555         * ginclude/stdarg.h: Likewise.
17556
17557         * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
17558         instead of unsigned char.
17559
17560         * hash.h (true, false, boolean): Undef before enum.
17561
17562         * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
17563         proper type of "HOST_WIDE_INT *", rather than their natural type of
17564         "unsigned HOST_WIDE_INT *".
17565
17566 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17567
17568         * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
17569
17570         * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
17571
17572         * regclass.c (choose_hard_reg_mode): Likewise.
17573
17574         * reload.c (find_valid_class, strict_memory_address_p): Likewise.
17575
17576         * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
17577
17578 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17579
17580         * c-common.c: PROTO -> PARAMS.
17581         * c-common.h: Likewise.
17582         * c-decl.c: Likewise.
17583         * c-iterate.c: Likewise.
17584         * c-lang.c: Likewise.
17585         * c-lex.c: Likewise.
17586         * c-lex.h: Likewise.
17587         * c-parse.in: Likewise.
17588         * c-pragma.c: Likewise.
17589         * c-pragma.h: Likewise.
17590         * c-tree.h: Likewise.
17591         * c-typeck.c: Likewise.
17592         * objc/objc-act.c: Likewise.
17593         * objc/objc-act.h: Likewise.
17594
17595 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17596
17597         * m88k-protos.h: New file.
17598
17599         * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
17600         time warnings.
17601
17602         * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.
17603
17604         * m88k.md: Likewise.
17605
17606         * tekXD88.h: Likewise.
17607
17608 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17609
17610         * m68k-protos.h: New file.
17611
17612         * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
17613         time warnings.
17614
17615         * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.
17616
17617         * mot3300.h: Likewise.
17618
17619 2000-01-12  Richard Earnshaw <rearnsha@arm.com>
17620
17621         * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
17622         extract_bitlst.
17623         (extract_bitlist): Declare bitlen.
17624
17625 2000-01-12  Zack Weinberg  <zack@wolery.cumb.org
17626
17627         * cccp.c: Accept and ignore -lang-fortran.
17628
17629         * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
17630         qualifiers don't match at any level of pointerness.
17631
17632 2000-01-12  Robert Lipe  <robertl@sco.com>
17633
17634         * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
17635
17636 2000-01-12  Bernd Schmidt  <bernds@cygnus.co.uk>
17637
17638         * reload1.c (reload_reg_unavailable): New static variable.
17639         (reload_reg_free_p): Test it.
17640         (reload_reg_free_for_value_p): Test it instead of
17641         reload_reg_used.
17642         (choose_reload_regs_init): Compute it.
17643
17644 Wed Jan 12 03:24:41 2000  Toshiyasu Morita (toshi.morita@sega.com)
17645
17646         * reorg.c (fill_slots_from_thread): Check modified_in_p
17647         before replacing.
17648
17649 Wed Jan 12 03:20:31 2000  John Marshall <john_w_marshall@palm.com>
17650
17651         * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
17652         these nodes even if INTERNALS is not set.
17653
17654 Wed Jan 12 09:39:22 2000  Nick Burrett  <nick.burrett@btinternet.com>
17655
17656         * gcse.c (delete_null_pointer_checks_1): Cope when
17657         get_condition cannot determine the condition.
17658
17659 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
17660
17661         * toplev.h (set_message_length): Declare.
17662
17663         * diagnostic.c (obstack_chunk_alloc): Define macro.
17664         (obstack_chunk_free): Likewise.
17665         (struct output_buffer): New data structure.
17666         (vmessage): Remove.
17667         (output_maximum_width): New variable.
17668         (doing_line_wrapping, set_message_length, init_output_buffer,
17669         get_output_prefix, output_space_left, emit_output_prefix,
17670         output_newline, output_append, output_puts, dump_output,
17671         vbuild_message_string, build_message_string, build_location_prefix,
17672         voutput_notice, output_printf, line_wrapper_printf,
17673         vline_wrapper_message_with_location):  New functions. Implement
17674         automatic line wrapping.
17675         (v_message_with_decl): Make it handle automatic line wrapping.
17676         (v_error_with_file_and_line): Likewise.
17677         (v_warning_with_file_and_line): Likewise.
17678         (announce_function): Likewise.
17679         (default_print_error_function): Likewise.
17680
17681 2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>
17682
17683         * cpplib.h (struct cpp_options): Change lang_asm to char.
17684         Add lang_fortran.
17685         * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
17686         done in cpp_handle_option now.
17687         (initialize_builtins): Take out special case code used only by
17688         __STDC_VERSION__.
17689         (cpp_handle_option): Turn off trigraphs and trigraph warnings
17690         if -traditional.  Recognize -lang-fortran and set
17691         lang_fortran, also turn off cplusplus_comments.
17692         (print_help): Document -lang-fortran.
17693         * cpplib.c (handle_directive): Ignore `# 123 "file"' if
17694         lang_asm. Ignore all directives other than `# 123 "file"' if
17695         CPP_PREPROCESSED.
17696         (cpp_get_token): If -traditional, don't recognize directives
17697         unless the # is in column 1.
17698         (parse_string): If lang_fortran or lang_asm, silently
17699         terminate strings ('' or "") at end of line.
17700         Remove unnecessary braces.
17701
17702 2000-01-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17703             Richard Henderson  <rth@cygnus.com>
17704
17705         * resource.c (mark_referenced_resources): Mark a set strict_low_part
17706         as used.
17707         * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
17708         strict_low_part when possible.
17709
17710 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17711
17712         * alias.c: PROTO -> PARAMS.
17713         * basic-block.h: Likewise.
17714         * bitmap.c: Likewise.
17715         * bitmap.h: Likewise.
17716         * builtins.c: Likewise.
17717         * c-aux-info.c: Likewise.
17718         * caller-save.c: Likewise.
17719         * calls.c: Likewise.
17720
17721 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17722
17723         * Makefile.in (toplev.o): Depend on regs.h.
17724
17725         * output.h (tdesc_section): Prototype.
17726
17727         * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
17728
17729         * sdbout.c: Include "tm_p.h".
17730
17731         * toplev.c: Include "regs.h".
17732
17733 Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
17734
17735         * unroll.c (unroll_loop): Add EH support.
17736
17737 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17738
17739         * pa-protos.h: New file.
17740
17741         * pa.c: Include recog.h and tm_p.h.
17742         (compute_zdepwi_operands, compute_movstrsi_length,
17743         remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
17744         find_addr_reg, import_milli): Add static prototypes.
17745         (pa_cpu_string, pa_arch_string): Constify a char*.
17746         (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
17747         (read_only_operand): Add argument `mode'.
17748         (singlemove_string, output_move_double, output_fp_move_double,
17749         output_block_move, output_and, output_ior, output_ascii,
17750         remove_useless_addtr_insns, milli_names, output_mul_insn,
17751         output_div_insn, output_mod_insn, output_arg_descriptor,
17752         output_cbranch, output_bb, output_bvb, output_dbra, ,
17753         output_millicode_call, output_call, hppa_encode_label,
17754         output_parallel_movb, output_parallel_addb): Constify a char*.
17755         (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
17756         (output_parallel_addb): Remove extra arg to `constrain_operands'
17757
17758         * pa.h:  Move all prototypes to pa-protos.h.
17759         (pa_cpu_string, pa_arch_string): Constify a char*.
17760         (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
17761
17762         * pa.md: Call `function_label_operand' with mode argument.
17763         Likewise for `read_only_operand'.
17764         Fix nesting of parens in call to `symbolic_operand'.
17765
17766 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17767
17768         * i860-protos.h: New file.
17769
17770         * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
17771         time warnings.
17772
17773         * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.
17774
17775         * i860.md: Likewise.
17776
17777 Tue Jan 11 18:59:35 MET 2000  Jan Hubicka <jh@suse.cz>
17778
17779         * i386.md (movstrsi expander): Rewrite.
17780         (movstrsi_1 insn): Deleted.
17781         (strmovhi, strmovqi expander): New expanders.
17782         (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
17783         * i386.c (x86_single_stringop): New global variable.
17784         * i386.h (x86_single_stringop): Declare.
17785         (TARGET_SINGLE_STRINGOP): New macro.
17786
17787 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
17788
17789         * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
17790         integer vararg POSTINCREMENT before the destination of the jump
17791         for the hard fp case.
17792         (function_arg_pass_by_reference): Pass a copy of CUM to
17793         FUNCTION_ARG.
17794
17795         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
17796         for CONSTANT_ADDRESS_P above while loop for subreg.
17797
17798 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
17799
17800         * flow.c (propagate_block): When a prologue/epilogue insn
17801         is marked dead, unconditionally clear libcall_is_dead and
17802         insn_is_dead, and only dump rtl if warnings aren't being
17803         suppressed.
17804
17805 Tue Jan 11 16:26:47 MET 2000  Jan Hubicka <jh@suse.cz>
17806
17807         * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
17808         * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
17809         (FIXED_REGISTERS): Set dirflag as fixed.
17810         (CALL_USED_REGISTERS): Set dirflag as used.
17811         (REG_ALLOC_ORDER): Set dirflag as last one.
17812         (DIRFLAG_REG): New macro.
17813         (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
17814         (HI_REGISTER_NAMES): Add dirflag.
17815         (DEBUF_PRINT_REG): Handle dirflag.
17816         * i386.md (type attribute): New cld and str types.
17817         (length_opcode attribute): Set cld and str to 1.
17818         (memory attribute): Set str to unknown - it is not clear from the
17819         patterns.
17820         (pent_np function unit): Prefixed string operations takes 12 cycles
17821         minimally; cld takes 2 cycles.
17822         (ppro_uops attribute): Str is "many" and cld is "few".
17823         (ppro_p0 unit): Handle cld here.
17824         (k6_alux unit): Handle cld and str types.
17825         (k6_load unit): It is ocupied by str opcodes.
17826         (k6_store unit): It is ocupied by str opcodes.
17827         (athlon_decode): Str is vector decoded.
17828         (athlon_ieu): Handle str and cld.
17829         (cld pattern): New.
17830         (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
17831         (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
17832         cmpstrsi_nz_1 insn): Do not output cld instruction
17833
17834 Tue Jan 11 06:14:39 2000  David Starner <dstarner98@aasaa.ofe.org>
17835
17836         * gcc.texi (G++ and GCC): Add Java and Chill.
17837         (Bug Critera): Don't list languages.
17838
17839         * gcc.texi (Incompatibilities): No longer claim most C compilers
17840         are K&R.
17841
17842         * gcc.texi (G++ and GCC): Update other front-ends list.
17843
17844 Tue Jan 11 05:49:01 2000  Jeffrey A Law  (law@cygnus.com)
17845
17846         * i386.c (ix86_expand_setcc): Fix typo.
17847         (ix86_expand_movcc): Similarly.
17848
17849         * Band-aid until haifa's bitset implementation is nuked.
17850         * haifa-sched.c (extract_bitlst): New parameter for size of the
17851         bitset in bits.  All callers changed.  Avoid looking at undefined
17852         bits in the bitset.
17853         (edgeset_bitsize): New variable.
17854         (schedule_region): Initialize edgeset_bitsize.
17855
17856 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17857
17858         * Makefile.in (optabs.o): Depend on real.h
17859         (resource.o): Depend on insn-attr.h
17860
17861         * builtins.c (result_vector): Wrap prototype in macro conditions
17862         governing definition and use.
17863
17864         * c-common.c: Include tm_p.h.
17865
17866         * c-lex.c: Likewise.
17867
17868         * elfos.h: Constify a char*.
17869
17870         * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
17871         (get_attr_length, shorten_branches, profile_after_prologue): Mark
17872         parameter with ATTRIBUTE_UNUSED.
17873
17874         * fold-const.c (exact_real_inverse): Wrap variable `i' in
17875         CHECK_FLOAT_VALUE.
17876
17877         * haifa-sched.c (schedule_insns): Mark parameter with
17878         ATTRIBUTE_UNUSED.
17879
17880         * optabs.c: Include real.h.
17881
17882         * real.h (ereal_atof): Add prototype arguments.
17883
17884         * resource.c: Include insn-attr.h.
17885
17886         * sdbout.c (sdbout_queue_anonymous_type,
17887         sdbout_dequeue_anonymous_types): Wrap in macro
17888         SDB_ALLOW_FORWARD_REFERENCES.
17889         (sdbout_init, sdbout_start_new_source_file): Mark parameter with
17890         ATTRIBUTE_UNUSED.
17891
17892         * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
17893
17894         * stupid.c: Include tm_p.h.
17895
17896         * tree.c (real_value_from_int_cst): Mark parameter with
17897         ATTRIBUTE_UNUSED.
17898
17899 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17900
17901         * i960-protos.h: New file.
17902
17903         * i960.c: Include tm_p.h.  Add static prototypes.  Fix compile
17904         time warnings.
17905
17906         * i960.h: Move prototypes to i960-protos.h.  Fix compile time warnings.
17907
17908 2000-01-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17909
17910         * combine.c (expand_field_assignment): Do not discard SUBREGs
17911         while computing nonzero_bits.
17912
17913 2000-01-09  Nick Clifton  <nickc@cygnus.com>
17914
17915         * config/arm/arm.c: Fix compile time warnings about signed vs
17916         unsigned constants.
17917         * config/arm/arm.h: Fix compile time warnings about signed vs
17918         unsigned constants.
17919
17920 2000-01-09  Philip Blundell  <philb@gnu.org>
17921
17922         * config/arm/arm.c (output_return_instruction): Use `ldr' rather
17923         than `ldm' with only one register.
17924         * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
17925         only one register.
17926
17927         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
17928         clobbered.
17929
17930 Sun Jan  9 17:50:23 2000  Hans-Peter Nilsson  <hp@axis.com>
17931
17932         * config/ns32k/ns32k.md (load or push effective address): Operand 1
17933         must have SImode.
17934
17935 2000-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17936
17937         * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
17938         assignment used as truth value.
17939
17940         * function.c (assign_temp): Mark parameter `dont_promote' with
17941         ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
17942         PROMOTE_FOR_CALL_ONLY.
17943
17944         * genrecog.c (write_subroutine): Mark variable `operands' with
17945         ATTRIBUTE_UNUSED.
17946
17947         * optabs.c (prepare_cmp_insn): Mark parameter `align' with
17948         ATTRIBUTE_UNUSED.
17949
17950         * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
17951         (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
17952
17953         * toplev.c (note_deferral_of_defined_inline_function): Likewise
17954         for `decl'.
17955
17956 2000-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17957
17958         * config/c4x.h: Tidy up comments.
17959         * config/c4x.c: Likewise.
17960
17961 Sun Jan  9 01:02:55 EST 2000  John Wehle  (john@feith.com)
17962
17963         * fold-const.c (lshift_double, rshift_double): Handle
17964         shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
17965
17966 2000-01-08  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
17967
17968         * toplev.c (rest_of_compilation): Initialize cse_not_expected as
17969         in prepare_function_start().
17970
17971 Sat Jan  8 12:12:46 2000  Nick Clifton  <nickc@cygnus.com>
17972
17973         * config/v850/v850.c (expand_epilogue): Interrupt functions no
17974         longer allocate extra stack for function calls.
17975
17976 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17977
17978         * config/c4x/c4x.md (*subqf3_set): Fix typo.
17979
17980 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17981
17982         * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
17983
17984 2000-01-07  David Edelsohn  <edelsohn@gnu.org>
17985
17986         * rs6000.c (processor_target_table): Add power3 as alias for 630.
17987         * aix43.h: Revert Aug 2 change.
17988         (HAS_INIT_SECTION): Define, not visible yet.
17989         (LD_INIT_SWITCH): Define, not visible yet.
17990         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
17991
17992         * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
17993
17994         * collect2.c (main): Expand ld2 size further.
17995         (export_object_lst): Cast assignment to avoid warning.
17996         (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
17997         (scan_prog_file, COFF): Do not collect initialization or
17998         finalization functions generated for entire shared object if
17999         init/fini support present.
18000
18001 2000-01-07  Nick Clifton  <nickc@cygnus.com>
18002
18003         * config/elfos.h: Tidy up formatting of marcos.  Make sure
18004         that .section directives are always prefixed by a tab.
18005
18006         * config/svr4.h: Add #include "elfos.h" and remove duplicate
18007         definitions.
18008
18009 2000-01-07  Matt Austern  <austern@sgi.com>
18010
18011         * fold-const.c (real_hex_to_f): Remove duplicate declaration of
18012         expon.
18013
18014 Fri Jan  7 01:55:34 2000  Jeffrey A Law  (law@cygnus.com)
18015
18016         * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
18017         crtstuff.c.
18018         (crtbegin.o, s-crtS): Likewise.
18019
18020 2000-01-06  Richard Henderson  <rth@cygnus.com>
18021
18022         * alpha.md (adddi_2+1): Limit offset such that it will be
18023         loadable with a single ldah+lda pair.
18024         (adddi_2+2): Explicitly fail split if we can't make it work.
18025
18026 2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>
18027
18028         * protoize.c: Conditionally include unistd.h.
18029         (IS_SAME_PATH_CHAR): New macro.
18030         (IS_SAME_PATH): New macro.
18031         (CPLUS_FILE_SUFFIX): New macro.
18032         (cplus_suffix): New static variable.
18033         (is_abspath): New static function.
18034         (in_system_include_dir): Handle DOS style pathnames.
18035         (file_could_be_converted): Likewise.
18036         (file_normally_convertible): Likewise.
18037         (directory_specified_p): Likewise.
18038         (file_excluded_p): Likewise.
18039         (abspath): Likewise.
18040         (shortpath): Likewise.
18041         (referenced_file_is_newer): Likewise.
18042         (save_def_or_dec): Likewise.
18043         (do_processing): Likewise.
18044         (main): Likewise.
18045         (edit_file): Likewise. Use rename instead of link.
18046         (rename_c_file): Likewise. Don't rename syscalls file.
18047         (munge_compile_params): Define null device for DOS based systems.
18048         (process_aux_info_file): Use binary mode if appliable.
18049         (edit_file): Likewise.
18050         * invoke.texi (Running Protoize): Document C++ suffixes used.
18051
18052         * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
18053         IS_DIR_SEPARATOR macros.
18054         * collect2.c: Likewise.
18055         * cppinit.c: Likewise.
18056         * dwarf2out.c: Likewise.
18057         * gcc.c: Likewise.
18058         * gcov.c: Likewise.
18059         * prefix.c: Likewise.
18060         * rtl.c: Likewise.
18061         * toplev.c: Likewise.
18062         * system.h: And move to here.
18063
18064         * prefix.c (update_path): Fix typo in variable name.
18065
18066 2000-01-06  Richard Henderson  <rth@cygnus.com>
18067
18068         * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
18069         (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
18070         (count_reg_sets_1, count_reg_references): Likewise.
18071         (flow_loops_level_compute): Start counting actual loop depth at 1.
18072         (flow_loops_find): Likewise.
18073         * local-alloc.c (update_equiv_regs): Likewise.
18074         * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
18075
18076 2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
18077
18078         * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
18079         FIRST_PSEUDO_REGISTER
18080         * dwarf2out.c: Don't include frame.h
18081         * dwarfout.c: Likewise
18082         * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
18083         frame.h
18084
18085 Thu Jan  6 13:44:59 CET 2000  Jan Hubicka  <jh@suse.cz>
18086
18087         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
18088         dead registers.
18089
18090         * i386.c (movsf splitter): Fix typo in my last checkin.
18091
18092 2000-01-05  Nick Clifton  <nickc@cygnus.com>
18093
18094         * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
18095         own definition of this macro.
18096         (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
18097         flag_data_sections or UNIQUE_SECTION_P are true.
18098
18099         * tm.texi (UNIQUE_SECTION): Document that it can be called for
18100         unitialised data decls.
18101
18102         * config/i386/winnt.c (i386_pe_unique_section): Cope with
18103         being called for uninitialised data.
18104
18105         * config/i386/interix.c (i386_pe_unique_section): Cope with
18106         being called for uninitialised data.
18107
18108         * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
18109         for uninitialised data.
18110
18111         * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
18112         for uninitialised data.
18113
18114         * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
18115         for uninitialised data.
18116
18117         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
18118         (UNIQUE_SECTION_P): Always generate a unique section if
18119         flag_data_sections is true.
18120         (UNIQUE_SECTION): Also generate unique sections for
18121         uninitialised data.
18122         (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
18123         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
18124         named_section().
18125
18126 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18127
18128         * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
18129         SI, or DI.
18130
18131 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18132
18133         * config/c4x/c4x.md (udivqi3, divqi3): Delete.
18134         (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
18135         (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
18136         (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
18137         (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
18138
18139         * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
18140
18141 2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>
18142
18143         * c-decl.c (finish_enum): Simplify code to determine minimum and
18144         maximum values of the enum, and calculate the type.  Remove check
18145         for FUNCTION_DECLs in the values list, which cannot happen.  Replace
18146         the DECL_INITIAL of each enumeration constant with a copy converted
18147         to the enumeration type.  When updating variant types, don't bother
18148         updating the type itself.
18149
18150         * c-typeck.c (build_binary_op): Simplify conditional expressions
18151         when weeding out spurious signed-unsigned warnings.  Add new
18152         spurious warning category: if the unsigned quantity is an enum
18153         and its maximum value fits in signed_type(result_type).  Update
18154         commentary.
18155         (build_conditional_expr): Warn here if one alternative is signed
18156         and the other is unsigned.
18157
18158 2000-01-05  Nick Clifton  <nickc@cygnus.com>
18159
18160         * config/fr30/fr30.h: Remove extraneous comments.
18161
18162 2000-01-05  Bernd Schmidt  <bernds@cygnus.co.uk>
18163
18164         * reload1.c (choose_reload_regs): When disabling a reload, also
18165         set reload_spill_index to -1.
18166
18167 2000-01-04  Joel Sherrill (joel@OARcorp.com>
18168
18169         * configure.in (m68*-*-rtemscoff*): New target, formal name for
18170         old m68*-*-rtems*.
18171         (m68*-*-rtemself*): New target.
18172         (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
18173         (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
18174         (sparc*-*-rtemself*): New target.
18175         (sparc*-*-rtems*): Now elf not a.out.
18176         * config/i386/rtems.h: Include config/rtems.h.
18177         * config/i386/rtemself.h: Include config/rtems.h.
18178         * config/i960/rtems.h: Include config/rtems.h.
18179         * config/m68k/rtems.h: Include config/rtems.h.
18180         * config/m68k/rtemself.h: Include config/rtems.h.
18181         * config/mips/rtems64.h: Include config/rtems.h.
18182         * config/pa/rtems.h: Include config/rtems.h.
18183         * config/rs6000/rtems.h: Include config/rtems.h.
18184         * config/sh/rtems.h: Include config/rtems.h.
18185         * config/sh/rtemself.h: Include config/rtems.h.
18186         * config/sparc/rtems.h: Include config/rtems.h.
18187         * config/sparc/rtemself.h: Include config/rtems.h
18188
18189 Tue Jan  4 23:59:26 2000  Denis Chertykov <denisc@overta.ru>
18190
18191         * final.c (shorten_branches): Correctly compute length of
18192         asms without operands.
18193
18194 Tue Jan  4 22:55:41 2000  Steve Chamberlain <sac@pobox.com>
18195
18196         * configure.in: Add pj target.
18197         * configure: Regenerate.
18198         * config/pj: New directory.
18199         * config/pj/lib1funcs.S: New file.
18200         * config/pj/linux.h: New file.
18201         * config/pj/pj.c: New file.
18202         * config/pj/pj.md: New file.
18203         * config/pj/pjl.h: New file.
18204         * config/pj/t-pj: New file.
18205         * config/pj/xm-pj.h: New file
18206
18207 Tue Jan  4 22:30:16 2000  Jeffrey A Law  (law@cygnus.com)
18208
18209         * toplev.c (rest_of_compilation): Run shorten-branches before
18210         reg-stack for now.
18211
18212 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18213
18214         * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
18215         macros so that they're consistent with their names.
18216         * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
18217         * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
18218
18219 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18220
18221         * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
18222         modified inadvertently.
18223
18224 2000-01-04  Joel Sherrill <joel@OARcorp.com>
18225
18226         * configure.in (v850*-*-rtems*): New target.
18227         * configure: Regenerate.
18228         * config/v850/rtems.h: New file.
18229
18230 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
18231
18232         * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
18233         (__gthread_key_create): Likewise.
18234         (__gthread_key_dtor):  Likewise.
18235         (__gthread_once): Fix logic.
18236         (__gthread_key_delete): Cast away constness.
18237
18238         * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
18239         * invoke.texi: Document.
18240         * i386/mingw32.h (CPP_SPEC): Use.
18241         (LIBGCC_SPEC): Likewise.
18242         * i386/crtdll.h (LIBGCC_SPEC): Likewise.
18243
18244 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
18245
18246         * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
18247         (HANDLE_PRAGMA_PACK): Undefine.
18248         (SLOW_UNALIGNED_ACCESS): Define.
18249
18250 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
18251
18252         * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
18253         to default definition.
18254         (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
18255         (store_fixed_bit_field): Call macro with word_mode and alignment.
18256         (extract_bit_field): Call macro with relevant mode and alignment.
18257         * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
18258         to default definition.
18259         (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
18260         and alignment.
18261         (move_by_pieces_ninsns): Likewise.
18262         (clear_by_pieces): Likewise.
18263         (emit_push_insn): Likewise.
18264         (store_field): Call macro with relevant mode and alignment.
18265         (expand_expr): Likewise.
18266         (expand_expr_unaligned): Likewise.
18267
18268         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
18269         (SLOW_UNALIGNED_ACCESS): Define.
18270         (CASE_VECTOR_MODE): Always use 32-bit offsets.
18271         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
18272         (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
18273         (toc_section): Likewise and .toc pseudo-op.
18274         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
18275         64-bit mode.
18276         (TEXT_SECTION_ASM_OP): Likewise.
18277         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
18278         32-bit offsets.
18279
18280         * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
18281         * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
18282         * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
18283         * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
18284         * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
18285
18286 Tue Jan  4 11:44:13 2000  Jeffrey A Law  (law@cygnus.com)
18287
18288         * regclass.c: Revert my Jan 4 change to loop cost computation.
18289
18290 Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
18291
18292         * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
18293         compilation.
18294
18295 2000-01-04  Stan Cox  <scox@cygnus.com>
18296
18297         * haifa-sched.c (build_control_flow): Change unreachable simple
18298         loop test to check if current block has only one predecessor.
18299         (find_rgns): Initialize degree.  Use dest as degree index, not src.
18300
18301 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18302
18303         * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
18304
18305         * calls.c (expand_call): Likewise for
18306         `old_stack_arg_under_construction'.
18307
18308         * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
18309
18310         * function.c (pad_to_arg_alignment): Likewise for `save_var' and
18311         `save_constant'.
18312
18313         * gcc.c (execute): Likewise for `ut' and `st'.
18314
18315         * genattrtab.c (attr_rtx): Likewise for `rt_val'.
18316
18317         * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
18318
18319         * jump.c (jump_optimize_1): Likewise for `temp2'.
18320
18321         * local-alloc.c (block_alloc): Likewise for `r1'.
18322
18323         * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
18324
18325         * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
18326         (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
18327
18328         * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
18329         and `set2'.
18330
18331         * reload.c (find_reloads): Likewise for `goal_alternative_number'
18332         and `goal_earlyclobber'.
18333
18334         * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
18335
18336         * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
18337
18338         * stupid.c (stupid_life_analysis): Likewise for `chain'.
18339
18340         * unroll.c (copy_loop_body): Likewise for `copy'.
18341
18342         * varasm.c (output_constructor): Likewise for `byte'.
18343
18344 Tue Jan  4 15:34:34 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
18345
18346         * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
18347         all FP constants for constant->reg moves.
18348         (ix86_split_to_parts): Try to convert memory address into immediate
18349         when available in the constant pool.
18350         * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
18351         moves.
18352         (LEGITIMATE_CONSTANT_P): Return 1.
18353         * i386.md (pushsf): New splitter to convert constant pool memory
18354         reference to immediate.
18355         (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
18356         reload.
18357
18358 2000-01-04  Bernd Schmidt  <bernds@cygnus.co.uk>
18359
18360         * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
18361         (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
18362         ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
18363         (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
18364         rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
18365
18366 2000-01-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
18367
18368         * ginclude/stdbool.h:  Support compilation as C++.
18369
18370 Tue Jan  4 01:35:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
18371
18372         * fold-const.c (make_range): Don't try to reverse an unbounded range.
18373
18374 Tue Jan  4 00:18:46 2000  Jeffrey A Law  (law@cygnus.com)
18375
18376         * regclass.c (regclass): Properly compute loop_cost.  Adjust
18377         comments.
18378
18379         * regclass.c: Fix minor whitespace problems.
18380
18381 2000-01-03  Anthony Green  <green@cygnus.com>
18382
18383         * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
18384         Restore the pic register if required.
18385
18386 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
18387
18388         * c-common.c (format_char_info): Update comment.
18389         (check_format_info): Recognize 'z' modifier in the same way 'Z'
18390         was recognized.  Emit warning for formats new in ISO C99 only
18391         if flag_isoc9x is not set.
18392
18393 Mon Jan  3 12:59:54 2000  Mark P. Mitchell  <mark@codesourcery.com>
18394
18395         * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
18396
18397 Mon Jan  3 15:33:37 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
18398
18399         * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
18400         SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
18401         (make_compound_operation): Choose cheaper alternative between
18402         ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
18403
18404         * regclass.c (op_costs): Remove global variable.
18405         (record_reg_classes): New parameter "op_costs" and "reg_pref".
18406         (record_operand_costs): Break out from ...
18407         (scan_one_insn): ... here.
18408         (dump_regclass): Make dumps nicer.
18409         (regclass): Dump preferrences choosed and changes done during passes.
18410
18411 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
18412
18413         * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
18414
18415 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
18416
18417         * config/sparc/sparc.c (gen_df_reg): New function.
18418         * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
18419         * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
18420         movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
18421         movtf_cc_reg_sp64+1): Use it.
18422
18423 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
18424
18425         * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
18426         copied LABEL_DECLs.
18427
18428 Mon Jan  3 02:54:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
18429
18430         * config/i386/i386.c (ix86_expand_unary_operator): Function
18431         definition made void.
18432         (ix86_expand_binary_operator): Update outdated preceding comment.
18433         * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
18434         prototype.
18435
18436         * config/i386/i386.c (override_options): Fix option-name typo.
18437
18438 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
18439
18440         * system.h (CEIL): Define.
18441         * builtins.c (CEIL): Remove.
18442         * expmed.c (CEIL): Likewise.
18443         * expr.c (CEIL): Likewise.
18444         * stor-layout.c (CEIL): Likewise.
18445
18446 2000-01-02  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18447
18448         * expr.c (store_constructor_field): Fix typo introduced with last
18449         gcc2 merge.
18450
18451 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
18452
18453         * tree.h (BINFO_N_BASETYPES): New macro.
18454
18455 2000-01-01  Bernd Schmidt  <bernds@cygnus.co.uk>
18456
18457         * expmed.c (emit_store_flag): Prevent losing a pending stack
18458         adjust the same way we prevent losing queued increments.
18459
18460 See ChangeLog.2 for earlier changes.