OSDN Git Service

* optabs.c (prepare_float_lib_cmp): Protect *px and *py from
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Tue May 30 22:25:57 2000  Alexandre Oliva  <aoliva@cygnus.com>
2
3         * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
4         queue.
5
6 2000-05-30  Michael Meissner  <meissner@redhat.com>
7
8         * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
9         instructions.  Treat LO_SUM operations as loading the full integer
10         constant.
11
12 2000-05-30  Richard Henderson  <rth@cygnus.com>
13
14         * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
15
16 2000-05-30  Richard Henderson  <rth@cygnus.com>
17
18         * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
19
20 2000-05-30  Bruce Korb  <bkorb@gnu.org>
21
22         * fixinc/tests/*:  Added expected result files for fixinc's make check
23         * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
24
25 2000-05-30  Richard Henderson  <rth@cygnus.com>
26
27         * config/alpha/alpha.md (*setne_internal): Use match_operator
28         instead of working down from insn.
29
30 2000-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31
32         * invoke.texi (-Wtraditional): Update WRT function macros.
33
34 Tue May 30 09:57:32 2000  Philippe De Muyter  <phdm@macqel.be>
35
36         * except.c (free_exception_table): Do not free NULL.
37
38 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
39
40         * cpplib.c (do_if): Don't save and restore only_seen_white here.
41         * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
42         and skipping here.
43
44 2000-05-29  Richard Earnshaw (rearnsha@arm.com)
45
46         * flow.c (mark_used_reg): If a register is unconditionally live, 
47         remove any conditional death information.
48
49 2000-05-29  Richard Henderson  <rth@cygnus.com>
50
51         * final.c (current_output_insn): New.
52         (final_scan_insn): Set it.
53         * output.h: Declare it.
54
55 2000-05-29  Richard Henderson  <rth@cygnus.com>
56
57         * stor-layout.c (finalize_record_size): Fix typo.
58
59         * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
60         if nlabel is null.
61
62 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
63
64         * cpplib.h (cpp_reader): Remove if_stack.  Change
65         potential_control_macro to a cpp_hashnode *.  Add skipping flag.
66         * cpphash.h (struct ihash): Change control_macro to a
67         cpp_hashnode * and shorten name to cmacro.
68         Add NEVER_REINCLUDE constant.
69
70         * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
71         Examine the cmacro node directly, no need to call cpp_defined.
72         (_cpp_execute_include, read_include_file): Set cmacro to
73         NEVER_REINCLUDE, not U"".
74         * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
75         (cpp_get_token): If pfile->skipping is true, discard text and
76         keep scanning until we hit a directive; don't expand macros.
77
78         * cpplib.c (struct if_stack): Remove if_succeeded, add
79         was_skipping. Change control_macro to a cpp_hashnode * and
80         shorten name to cmacro.  Remove typedef IF_STACK.
81         (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
82         (conditional_skip, skip_if_group,
83         consider_directive_while_skipping): Delete.
84         (push_conditional): New.
85         (_cpp_handle_directive): Don't process directives other than
86         conditionals if we are skipping.
87
88         (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
89         Update to new scheme.
90         (validate_else): Skip rest of line here, unconditionally.
91         (_cpp_unwind_if_stack): The stack is per-buffer.  Force
92         pfile->skipping off.
93
94         (all): Remove `scare quotes' from error messages.
95
96 2000-05-29  Richard Henderson  <rth@cygnus.com>
97
98         * function.c (emit_return_into_block): New line_note arg; emit it.
99         (thread_prologue_and_epilogue_insns): Attempt to locate a line note
100         for the close brace to accompany HAVE_return.  Move all line notes
101         following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
102
103 2000-05-29  Richard Henderson  <rth@cygnus.com>
104
105         * longlong.h [__alpha] (count_leading_zeros): New.
106         (count_trailing_zeros): New.
107         (COUNT_LEADING_ZEROS_0): New.
108
109         * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
110         (alpha_split_conditional_move): New.
111         * config/alpha/alpha-protos.h: Prototype them.
112         * config/alpha/alpha.h (PREDICATE_CODES): Update.
113         (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
114         * config/alpha/alpha.md: Update ffs cix commentary.
115         (*ze_and_ne): New.
116         (*nabssf2, *nabsdf2): New.
117         (*mov[qhsd]icc_internal): Use add_operand.
118         (if_then_else constant splitters): New.
119         (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
120         (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
121
122 2000-05-29  Richard Henderson  <rth@cygnus.com>
123
124         * combine.c (force_to_mode) [MINUS]: Convert subtraction from
125         a constant to NEG or NOT when conditions allow.
126
127         * combine.c (combine_simplify_rtx): Don't create an if_then_else
128         unless both args are general_operand.  Don't canonicalize plus
129         to ior unless it helps.
130
131         * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
132         instead track register_life_up_to_date.  Toggle no_new_pseudos
133         around if_convert.  
134
135 2000-05-28  Geoff Keating  <geoffk@cygnus.com>
136
137         * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
138         so output_operand doesn't see them.
139
140 Sun May 28 18:37:07 2000  Clinton Popetz  <cpopetz@cygnus.com>
141
142         * lcm.c (make_preds_opaque): Fix comment.
143         (optimize_mode_switching): Use NORMAL_MODE instead of 
144         MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
145         FP_MODE_NONE to no_mode.  Rename MODE_AT_ENTRY to NORMAL_MODE.
146         Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
147         * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
148         (MODE_USES_IN_EXIT_BLOCK): Delete.
149         (MODE_AT_ENTRY) Rename to NORMAL_MODE.
150         * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
151         (MODE_AT_ENTRY): Rename to NORMAL_MODE.
152         (MODE_NEEDED): Don't look for USE.
153         (EPILOGUE_USES): Define.
154
155 Sun May 28 23:26:59 2000  Philippe De Muyter <phdm@macqel.be>
156
157         * mklibgcc.in (all): Variable initialised to `libgcc'.
158
159 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
160
161         * toplev.h (skip_leading_substring): New macro.
162         * toplev.c (decode_f_option): Use skip_leading_substring instead
163         of strncmp.
164         (decode_W_option): Likewise.
165
166 2000-05-28  Nick Clifton  <nickc@cygnus.com>
167
168         * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
169         modify reg_names.
170
171 2000-05-28  Richard Henderson  <rth@cygnus.com>
172
173         * regclass.c (record_operand_costs): Protect reg_changes_size
174         with CLASS_CANNOT_CHANGE_SIZE.
175
176         * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
177
178 2000-05-28  Richard Henderson  <rth@cygnus.com>
179
180         * function.c (diddle_return_value): A pcc-style struct return
181         returns a pointer.
182
183 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
184
185         * cppfiles.c: Read files in, using mmap if possible, then
186         prescan them separately.
187         (read_file, read_with_read): New functions.
188         * cpplex.c: Don't define UCHAR_MAX.
189         (_cpp_read_and_prescan): Rename to _cpp_prescan.  Don't read
190         the file here.
191
192         * cppinit.c (handle_option): Automatically define __cplusplus,
193         __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
194         the respective -lang switch.
195
196         * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
197         prototype): Move to...
198         * cpplib.h: ... here.  Rename struct hashnode to struct
199         cpp_hashnode and give it a typedef.  Rename _cpp_lookup to
200         cpp_lookup.  Add 'fe_value' slot, a union tree_node *.
201
202 2000-05-27  Geoffrey Keating  <geoffk@cygnus.com>
203
204         * config/rs6000/rs6000.md (movsi): Constify 'name'.
205
206         * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
207         (class_can_change_size): New variable.
208         (reg_changes_size): New variable.
209         (init_reg_sets_1): Initialise class_can_change_size.
210         (record_operand_costs): Remove subreg_changes_size.
211         Don't pass it around.  Instead update reg_changes_size.
212         (regclass): Initialise and free reg_changes_size.  If a register
213         changes size, don't preference it to a class that contains
214         registers that can't change size.
215         (record_reg_classes): Don't look at subreg_changes_size.
216
217 2000-05-27  Richard Henderson  <rth@cygnus.com>
218
219         * print-rtl.c (reg_names): Remove const.
220         * regclass.c (reg_names): Likewise.
221         * regs.h (reg_names): Likewise.
222         * hard-reg-set.h (reg_names): Likewise.
223
224 2000-05-27  Richard Henderson  <rth@cygnus.com>
225
226         * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
227
228 2000-05-27  Richard Henderson  <rth@cygnus.com>
229
230         * config/alpha/alpha.c (alpha_does_function_need_gp): Test
231         TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
232         (alpha_expand_prologue): Emit prologue_mcount if needed.
233         * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
234         * config/alpha/alpha.md (prologue_mcount): New.
235         * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
236         (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
237         * config/alpha/netbsd.h: Likewise.
238
239 2000-05-27  Richard Henderson  <rth@cygnus.com>
240
241         * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
242         change to config/elfos.h.
243
244 2000-05-27  Richard Henderson  <rth@cygnus.com>
245
246         * Makefile.in (resource.o): Depend on except.h.
247         * except.h (output_exception_table_data): Prototype.
248         * genconfig.c (gen_peephole2): Prototype.
249         * genemit.c (main): Include ggc.h.
250         * genoutput.c: Revert parts of last change: include errors.h
251         (main): Set progname.
252         * recog.c: Include hard-reg-set.h before recog.h.
253         * resource.c: Include except.h.
254
255         * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
256         with RTX_CODE.
257         (alpha_write_linkage): Protect with BUFSIZ.
258         (alpha_need_linkage): Update prototype.
259         * config/alpha/alpha.c (function_arg): Move VMS code here.
260         (alpha_links_base): Remove.
261         (alpha_links): New.
262         (mark_alpha_links_node, mark_alpha_links): New.
263         (alpha_write_one_linkage): New.
264         (alpha_need_linkage): Use a splay tree.  Build the linkage symbol.
265         (alpha_write_linkage): Use splay_tree_foreach.
266         * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
267         to get the linkage symbol.
268         (call_value_vms): Likewise.
269         * config/alpha/elf.h (output_file_directive): Remove decl.
270         (ctors_section, dtors_section): Prototype.
271         (sbss_section, sdata_section): Prototype.
272         * config/alpha/vms.h (FUNCTION_ARG): Remove.
273         (readonly_section, link_section, literals_section): Prototype.
274         (ctors_section, dtors_section): Prototype.
275         (vms_valid_decl_attribute_p): Remove decl.
276         (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
277
278 2000-05-27  Geoff Keating  <geoffk@cygnus.com>
279
280         * reload.c (get_secondary_mem): Don't widen floating-point modes.
281
282         * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
283         substituting the REG in a (subreg:X (reg:Y ...)).
284
285 2000-05-28  Neil Booth  <NeilB@earthling.net>
286
287         * cpplex.c (_cpp_lex_line): Merge vertical space.  Flag
288         first token of a line BOL.  Update EOF code for this.
289         Remove illegal directive check - it appears in the (not
290         yet committed) caller.
291         * cpplib.h (BOL): New flag.
292
293 2000-05-28  Neil Booth  <NeilB@earthling.net>
294
295         * cpplex.c (_cpp_init_toklist): No comment space to initialise.
296         (_cpp_free_toklist): No comment space to free.
297         (expand_comment_space): Remove.
298         (save_comment_space): Place the comment in the current token and
299         not in a separate comment space.
300         (_cpp_lex_line): Save comments during plain code and #define
301         directives only.
302         * cpplib.h (struct _cpp_toklist): Remove comment space.
303
304 2000-05-28  Neil Booth  <NeilB@earthling.net>
305
306         * cppexp.c (parse_assertion): Supply extra argument to
307         _cpp_init_toklist.
308         * cpplib.c (do_assert, do_unassert): Similarly.
309         * cpphash.h (_cpp_init_toklist) Update.
310         (_cpp_expand_token_space): New.
311         (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
312         * cpplex.c (_cpp_init_toklist): New argument.
313         (parse_string2): New argument multiline_ok.
314         (spell_token): Take a const cpp_token *.
315         (INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
316         (SPELL_ macros): Replace with enum.
317         (expand_token_space): Replace with _cpp_expand_token_space.
318         Take COUNT argument.
319         (IS_DIRECTIVE): Update.
320         (_cpp_lex_line): Update token structure before parsing number.
321         Don't assume start at beginning of token list.
322         (save_comment): Use INIT_TOKEN_NAME.
323
324 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
325
326         * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
327         -Wmissing-prototypes.
328         * configure: Regenerate.
329         * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
330
331         * builtins.c, calls.c: Change all instances of gen_call_* or
332         gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
333         * calls.c (struct_value_size_rtx): Separate definition from
334         initialization to avoid unused variable warning.
335
336         * genflags.c (gen_macro): New function.
337         (gen_proto): Call it for gen_call_* and gen_sibcall_*.
338         (gen_nonproto): Delete.
339         (gen_insn): Put all insns on the same obstack.
340         (main): Generate prototypes for everything unconditionally.
341
342         * configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented 
343         out check for wchar_t.
344         * acconfig.h: Add template for ssize_t.  Remove @TOP@.
345         * system.h: Add infrastructure for defining missing   
346         TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback  
347         definitions of UCHAR_MAX and SSIZE_MAX.
348         * configure: Regenerate.
349         * config.in: Regenerate.
350
351         * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
352         Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
353         headers.
354         (clean): No need to delete libgcc1.a, libgcc1-asm.a,
355         libgcc2.a, or libgcc1.null.
356
357 2000-05-27  Richard Henderson  <rth@cygnus.com>
358
359         * Makefile.in (recog.o): Don't depend on resource.h.
360         * recog.c: Don't include resource.h.
361         (recog_last_allowed_insn): Remove.
362         (recog_next_insn): Remove.
363         (struct peep2_insn_data): New.
364         (peep2_insn_data, peep2_current): New.
365         (peep2_next_insn): New.
366         (peep2_regno_dead_p, peep2_reg_dead_p): New.
367         (peep2_find_free_register): New.
368         (peephole2_optimize): Track life information by insn as we go.
369         * recog.h: Update declarations.
370         * resource.c (find_free_register, reg_dead_p): Remove.
371         * resource.h: Remove their declarations.
372         * toplev.c: Include hard-reg-set.h before recog.h.
373
374         * genconfig.c (max_insns_per_peep2): New.
375         (gen_peephole2): New.
376         (main): Call it.
377         * genemit.c (output_peephole2_scratches): Generate calls to
378         peep2_find_free_register; adjust surrounding code.
379         (main): Have insn-emit.c include hard-reg-set.h before recog.h.
380         * genrecog.c (change_state): Don't track last_insn.
381         (write_action): Write into *_pmatch_len before accepting.
382         (write_tree): Adjust peephole2_insns and subroutines to match.
383
384         * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
385
386         * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
387         (hard_int_register_operand): New.
388         * config/alpha/alpha-protos.h: Declare it.
389         * config/alpha/alpha.h (PREDICATE_CODES): Update.
390         * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
391         as needed; use peep2_reg_dead_p instead of dead_or_set_p.
392
393 2000-05-27  Richard Henderson  <rth@cygnus.com>
394
395         * function.c (thread_prologue_epilogue_insns): Don't move the
396         line note at the head of the chain.  Only force a lineno note
397         before the end of block 0.
398
399 2000-05-27  Richard Henderson  <rth@cygnus.com>
400
401         * gensupport.c (collect_insn_data): Record the maximum number
402         of alternatives, not the last seen.
403
404         * genoutput.c: Don't include errors.h.
405         (struct data): Add lineno member.
406         (have_error): New.
407         (scan_operands): Use message_with_line instead of error.
408         (validate_insn_alternatives): Likewise.
409         (gen_insn): Accept and store the pattern's line number.
410         (gen_peephole, gen_expand, gen_split): Likewise.
411         (main): Don't set progname.  Pass line_no to gen_foo.
412
413 2000-05-27  Richard Henderson  <rth@cygnus.com>
414
415         * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
416         * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
417         * config/d30v/d30v.md (attr predicable): New.
418         (all insn patterns): Mark non-predicable patterns; use %: on the rest.
419         (andsi3*): Unify into one pattern.
420         (iorsi3*, xorsi3*): Likewise.
421         (peephole2 patterns): Use peep2_reg_dead_p; verify not a
422         conditional return.
423         (old cond_exec patterns): Remove.
424         (define_cond_exec): New.
425
426 Sat May 27 11:01:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
427
428         * tree.h (TREE_CODE_LENGTH): New macro.
429         * c-common.c (c_find_base_decl): Use it.
430         * expr.c (safe_from_p): Likewise.
431         * print-tree.c (print_node): Likewise.
432         * tree.c (make_node, copy_node, get_identifier): Likewie.
433         (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
434         (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
435         * fold-const.c (make_range): Likewise.
436         (fold): Likewise; also use first_rtl_op.
437         * c-iterate.c (collect_iterators): Use first_rtl_op.
438         * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
439         Use IS_EXPR_CODE_CLASS.
440         (preexpand_calls): Likewise.
441         * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
442         and TREE_CODE_LENGTH.
443         * stmt.c (warn_if_unused_value): If no operands, no unused value.
444
445 2000-05-26  Geoffrey Keating  <geoffk@cygnus.com>
446
447         * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
448         than '%1(%*)'.
449         (movdi_internal64): Likewise.
450
451         * config/rs6000/rs6000.md: Correct order of operands for DImode
452         boolean patterns.
453
454         * config/rs6000/rs6000.c (boolean_or_operator): New function.
455         * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
456         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
457         * config/rs6000/rs6000.md: Use boolean_or_operator instead of
458         boolean_operator for the boolean patterns without NOTs.
459
460         * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
461         from reg_or_u_cint_operand.  Change comment and behaviour.
462         (logical_operand): Clean up, add assertion.
463         (non_logical_cint_operand): Also check for
464         reg_or_logical_cint_operand.
465         * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
466         * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
467         in the expander.
468         (xorsi3): Likewise.
469         (iordi3): Likewise.
470         (xordi3): Likewise.
471
472 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
473
474         * tree.h (struct record_layout_info): Rename to (struct
475         record_layout_info_s).
476         * stor-layout.c (start_record_layout): Replace
477         `record_layout_info' with `record_layout_info_s'.
478
479 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
480
481         * flow.c (find_label_refs): New function.
482         (find_basic_blocks_1): Call it for each alternative of a call 
483         placeholder.
484
485 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
486
487         * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
488         of get_pc.
489
490 2000-05-25  Richard Henderson  <rth@cygnus.com>
491
492         * config/alpha/alpha.c (alpha_comparison_operator): Don't be
493         so strict about DImode.
494         (alpha_swapped_comparison_operator): Likewise.
495         * config/alpha/alpha.md (*setne_internal): Name it.  Allow
496         any integer output mode.
497         (*setcc_internal): Likewise.
498         (*setcc_swapped_internal): Likewise.
499         (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
500         (*mov[qhs]icc_internal): New.
501         (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
502
503 2000-05-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
504
505         * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
506
507 2000-05-25  Richard Henderson  <rth@cygnus.com>
508
509         * bb-reorder.c (reorder_block_def): Reorder elements for size.
510         Remove add_jump; add next; replace flags with visited.
511         (rbd_init): Remove.
512         (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
513         (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
514         (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
515         (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
516         (RBI): New.
517         (reorder_index, reorder_last_visited): Remove.
518         (skip_insns_after_block): Rewrite to use a switch.
519         (get_common_dest): Remove.
520         (chain_reorder_blocks): Remove.
521         (record_effective_endpoints): Split out from reorder_basic_blocks.
522         (make_reorder_chain): Likewise.  Loop until all blocks are placed.
523         (make_reorder_chain_1): Renamed from old make_reorder_chain.
524         Only construct the reorder chain, do not move insns.  Try harder
525         to tail recurse.
526         (label_for_bb, emit_jump_to_block_after): New.
527         (fixup_reorder_chain): Use them.  Do bulk block movement.  Examine
528         and adjust the jump insns appropriately.  Fixup basic_block_info.
529         (verify_insn_chain): Always define.
530         (relate_bbs_with_scopes): Call xmalloc, not xcalloc.  Fix thinko
531         in allocation size.
532         (make_new_scope): Don't write zeros to calloc'd space.
533         (build_scope_forest): Rely on xrealloc to DTRT.
534         (reorder_basic_blocks): Don't build loop nest.  Don't fail if
535         profile_arc_flag.  Streamline EH test.
536
537         * flow.c (redirect_edge_succ, redirect_edge_pred): New.
538         * basic-block.h: Declare them.
539
540 2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
541
542         * emit-rtl.c (reset_used_decls): New function.
543         (unshare_all_rtl_again): Call it.
544
545 2000-05-25  Zack Weinberg  <zack@wolery.cumb.org>
546
547         * cpplex.c (maybe_macroexpand): Warn about function-like
548         macros used in non-function context, if -Wtraditional.
549
550 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
551
552         * recog.c (peephole2_optimize): Use INSN_P.
553
554 2000-05-25  Richard Henderson  <rth@cygnus.com>
555
556         * ifcvt.c (seq_contains_jump): New.
557         (noce_try_store_flag_constants): Use it to fail conversion.
558         (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
559
560 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
561
562         * except.h (can_throw): Declare it.
563         * except.c (can_throw): Give it external linkage.
564         * resource.c (find_dead_or_set_registers): Use can_throw.
565         
566 2000-05-25  Richard Henderson  <rth@cygnus.com>
567
568         * flow.c (mark_set_1): Don't record conditionally dead memory.
569
570 2000-05-25  Jan Hubicka  <jh@suse.cz>
571
572         * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
573         and pc_set at the place of simplejump_p and condjump_p.
574         * cse.c (record_jump_equiv): Likewise.
575         * emit-rtl.c (emit): Likewise.
576         * explow.c (find_next_ref): Likewise.
577         * flow.c (tidy_fallthru_edge): Likewise.
578         (init_propagate_block_info): Likewise.
579         * gcse.c (delete_null_pointer_checks): Likewise.
580         * ifcvt.c (cond_exec_get_condition, noce_get_condition,
581         dead_or_predicable): Likewise.
582         * integrate.c (copy_insn_list): Likewise.
583         * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
584         for_each_insn_in_loop, check_dbra_loop, get_condition,
585         insert_bct, load_mems): Likewise.
586         * resource.c (find_dead_or_set_registers): Likewise.
587         * sibcalls.c (simplejump_p): Likewise.
588         * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
589
590 2000-05-25  David Edelsohn  <edelsohn@gnu.org>
591
592         * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
593         to STRING case.  Use doubleword STRING move for TARGET_POWERPC64
594         when unaligned.
595         * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
596         (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
597         (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
598         * rs6000.md: Name various internal patterns.
599
600 2000-05-25  Jan Hubicka  <jh@suse.cz>
601
602         * jump.c (invert_exp_1): Remove first argument, use pc_set
603         to get the expression.
604         (redirect_exp): Make static; redirect only the pc_set expression,
605         remove first argument.
606         (invert_exp): Remove first argument, make static.
607         (jump_optimize): Use any_condjump_p, any_uncondjump_p and
608         any_onlyjump at most places where we originaly did condjump_p
609         and simplejump_p.
610         (jump_back_p, follow_jumps, thread_jumps): Likewise.
611         (delete_barrier_succesors): Use pc_set.
612         (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
613         calls of invert_exp and redirect_exp.
614         * rtl.h (redirect_exp, invert_exp): Remove.
615         * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
616
617 2000-05-25  Richard Henderson  <rth@cygnus.com>
618
619         * stmt.c (expand_end_bindings): Fix thinko last change.
620
621 2000-05-25  Andrew MacLeod  <amacleod@cygnus.com>
622             Andrew Haley  <aph@cygnus.com>
623
624         * except.c  (func_eh_entry): Add emitted field.
625         (new_eh_region_entry): Set emitted field to 0;
626         (output_exception_table_entry): Only emit previously un-emitted data,
627         and send it to the eh_data section.
628         (output_exception_table): Break out common parts. Output
629         exception table for entire compilation unit to eh_data section.
630         (output_exception_table_data): Common parts of output_exception_table.
631         Send output to eh_data section.
632         (output_function_exception_table): Output exception table data for
633         a single function to eh_data section.
634         (free_exception_table): New external to free the table.
635         * except.h (free_exception_table): Add prototype.
636         (output_function_exception_table): Add prototype.
637         * final.c (final_end_function): Output function exception table
638         for IA64_UNWIND_INFO.
639         (final_scan_insn): Emit any unwind directives for an insn.
640
641         * frame-dwarf2.c: New file containing all DWARF 2 specific code
642         from frame.c.
643         * frame.c: Remove all DWARF 2 specific code.
644         * config/ia64/frame-ia64.c: New file.
645         (gthread_stuff): Make all gthread available with 
646         IA64_UNWIND_INFO.
647         (dwarf_fde): Define an IA64 struct for dwarf_fde.
648         (__register_frame_info, __register_frame): Move to common area of file.
649         (__register_frame_info_table, __register_frame_table): Move to common i
650         area.
651         (__deregister_frame_info, __deregister_frame): Move to common area.
652         (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
653         (read_uleb128): New version for ia64.
654         (get_unwind_record): Read the next IA-64 unwind record.
655         (read_R_record): Read a region header record.
656         (process_a_b_reg_code): X record helper.
657         (read_X_record): Read an X format record.
658         (read_B_record): Read a B format record.
659         (P3_record_types): List of record types matching the P3 format.
660         (P7_record_types): List of record types matching the P7 format.
661         (P8_record_types): List of record types matching the P8 format.
662         (read_P_record): Read a P format record.
663         (init_ia64_reg_loc): Set default fields for a register.
664         (init_ia64_unwind_frame): Set defaults for all register records.
665         (execute_one_ia64_descriptor): Execute one descriptor record.
666         (rse_address_add): Calculate the position of a local reg in memory.
667         (normalize_reg_loc): Turn a location descriptor into a memory address.
668         (maybe_normalize_reg_loc): Only normalize a descriptor if it falls 
669         within a specified PC offset range.
670         (get_real_reg_value): Given a register location, retrieve its value.
671         (set_real_reg_value): Change the value of a register location.
672         (copy_reg_value): Copy reg values, if needed.
673         (copy_saved_reg_state): Copy all registers that need to be copied.
674         (process_state_between): Normalize all frame register records that
675         fall within the specified PC range.
676         (frame_translate): Take a processed frame description, and turn 
677         everything into addresses.
678         (build_ia64_frame_state ): Find and create frame state record for a PC.
679         (get_personality): Get the personality routine for a given frame.
680         (get_except_table): Get the exception table for a given frame.
681         (record_name): Unwind record names for debugging.
682         (print_record): Print and unwind record.
683         (print_all_records): Print an entire unwind image.
684         (__ia64_backtrace): Print a backtrace.
685         (ia64_backtrace_helper): New function.
686         (__register_frame_info_aux): New function.
687         * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
688
689         * frame.h (enum unw_record_type): New unwind record types.
690         (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
691         (struct unw_r_record, unwind_record): New unwind record structs.
692         (struct unwind_info_ptr): Unwind information layout.
693         (IA64_UNW_LOC_TYPE_*): Macros for different types for location 
694         descriptors.
695         (struct ia64_reg_loc): Register location description.
696         (struct ia64_frame_state): Location of all registers in a frame.
697         (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
698         * libgcc2.c (__ia64_personality_v1): Personality routine.
699         (__calc_caller_bsp): Calculate the bsp register for the caller's
700         frame.
701         (ia64_throw_helper): Figure out who to return to and set up the 
702         registers.
703         (__throw): Throw routine.
704
705         * output.h (assemble_eh_align, assemble_eh_label): New functions
706         to generate EH info where we want it.   
707         (assemble_eh_integer): New function.
708         * toplev.c (compile_file): Output module level exception table for
709         non-ia64 targets.
710         (main): Set exceptions_via_longjump and flag_new_exceptions based 
711         on IA64_UNWIND_INFO too.
712
713         * varasm.c (assemble_eh_label): Generate a label via
714         ASM_OUTPUT_EH_LABEL if it has been specified.
715         (assemble_eh_align): Generate an alignment directive via 
716         ASM_OUTPUT_EH_ALIGN if it has been specified.
717         (assemble_eh_label): Generate an integer value via
718         ASM_OUTPUT_EH_type if they have been specified.
719         * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
720         (ia64_init_builtins): Add __builtin_ia64_bsp
721         and __builtin_ia64_flushrs.     
722         (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
723         IA64_BUILTIN_FLUSHRS.
724         * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
725         IA64_BUILTIN_FLUSHRS.
726
727         * config/ia64/ia64.md (flushrs): New insn to flush the register
728         stack.  Add to unspec list.
729
730         * config/ia64/crtbegin.asm (frame_object): Change size.
731         (__do_frame_setup_aux): New function.
732         * config/ia64/crtend.asm: call __do_frame_setup_aux.
733         * config/ia64/t-ia64 (LIB2ADDEH): Add.
734         * Makefile.in (LIB2ADDEH): Add.
735         (LIB2ADD): Use LIB2ADDEH.
736         
737 2000-05-24  Richard Henderson  <rth@cygnus.com>
738
739         * recog.c (offsettable_address_p): If mode size is zero, assume
740         BIGGEST_ALIGNMENT.
741
742 2000-05-24  J. David Anglin  <dave@hiauly.hia.nrc.ca>
743
744         * configure.in: Check for -Wno-long-long option support and improve
745         handling of warning CFLAGS for stages 1 and 2.
746         * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
747         * configure: Regenerate.
748
749 Wed May 24 19:37:53 2000  Jeffrey A Law  (law@cygnus.com)
750
751         * gcc.texi: Remove contributor list.  Instead include contrib.texi.
752         * contrib.texi: New file.
753
754 Thu May 25 02:27:22 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
755
756         * loop.c (basic_induction_var): Avoid double recording of an increment.
757
758 Thu May 25 02:19:27 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
759
760         * Back out this patch:
761         Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
762           * loop.h (struct induction): Add multi_insn_incr.
763           * loop.c (basic_induction_var): New multi_insn_incr argument.
764           Set it if we search back through previous insns for the biv.
765           (record_biv): New multi_insn_incr argument; fill in struct induction.
766           (strength_reduce): Discard an iv with multiple bivs, any of
767           which require multiple insns to increment.
768
769         * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
770
771 Thu May 25 02:09:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
772
773         * rtl.h (loc_mentioned_in_p): Declare.
774         * reload.c (loc_mentioned_in_p): Moved from here...
775         * rtlanal.c (loc_mentioned_in_p): to here.  No longer static.
776         Fix loop increment for 'E' handling.
777         * loop.c (strength_reduce): When doing biv->giv conversion,
778         take multi-insn biv increments into account.
779
780 2000-05-24  Jason Merrill  <jason@casey.soma.redhat.com>
781
782         * stmt.c (expand_end_bindings): Look through NOTEs to find a
783         BARRIER.
784
785 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
786
787         * calls.c (expand_call): Handle cleanups in tail-recursion
788         arguments analagously to cleanups in sibling calls.
789
790 2000-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
791
792         * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
793         All callers changed.
794
795 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
796
797         * expr.c (expand_assignment, store_expr, expand_expr,
798         expand_expr_unaligned): Set in_check_memory_usage while emitting
799         chkr_check_addr libcall.
800
801 2000-05-24  Nick Clifton  <nickc@cygnus.com>
802
803         * fold-const.c (extract_muldiv): When constructing a
804         multiplier/divisor, do not expect const_binop to correctly
805         determine if overflow has occured, so check explicitly.
806
807 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
808
809         * c-decl.c (build_enumerator): Don't modify the value's type,
810         convert it.
811
812 2000-05-24  Andreas Jaeger  <aj@suse.de>
813
814         * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
815
816 2000-05-24  Eric Christopher <echristo@cygnus.com>
817
818         * configure.in: Redefine inhibit_libc conditions.
819         * libgcc2.c: Remove inhibit_libc conditional define.
820         * configure: Regenerate.
821
822 2000-05-24  Phil Edwards  <pme@sourceware.cygnus.com>
823
824         * configure.in:  For --enable-languages=LIST, check for empty LIST.
825         * configure:  Regenerate.
826
827 2000-05-24  Lars Brinkhoff  <lars@nocrew.org>
828
829         * pdp11.h (STACK_BOUNDARY): Define.
830
831 2000-05-24  Jakub Jelinek  <jakub@redhat.com>
832
833         * ifcvt.c (if_convert): Update life info globally.
834
835 2000-05-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
836
837         * emit-rtl.c (unshare_all_decls): New function.
838         (unshare_all_rtl): Call it.
839
840 2000-05-23  Nick Clifton  <nickc@cygnus.com>
841
842         * configure.in: Treat 'strongarm' as if it were 'arm' when
843         determining cpu type.
844
845         * configure: Regenerate.
846
847         * config/arm/arm.c: Change 'char *' to 'const char *' for cases
848         where constant strings are involved.
849
850         * config/arm/arm.h (arm_condition_codes): Change type to 'const
851         char *'.
852
853         * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
854         cases where constant strings are involved.
855
856 Tue May 23 15:08:31 2000  Clinton Popetz  <cpopetz@cygnus.com>
857
858         * config/sh/sh.c (gen_far_branch, split_branches): Update
859         to reflect new prototypes for redirect_jump and invert_jump.
860         (sh_insn_length_adjustment): Get rid of const warnings.
861
862 2000-05-23  Kazu Hirata  <kazu@hxi.com>
863
864         * invoke.texi (Options for Debugging Your Program or GCC): Update
865         the names of dump files.
866
867 Tue May 23 13:58:52 2000  Philippe De Muyter  <phdm@macqel.be>
868
869         * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
870         * configure: Regenerated.
871
872 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
873
874         * simplify-rtx.c (SIGN_EXTEND): New macro.
875         (simplify_unary_operation, simplify_binary_operation, 
876         simplify_relational_operation): Use SIGN_EXTEND.  Make low
877         halves of (low, high) pairs unsigned if they weren't already.       
878         (simplify_ternary_operation): Cast INTVAL to unsigned before
879         comparing to a MODE_BITSIZE.
880
881 2000-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
882
883         * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
884         rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
885         
886         * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
887         gcc_AC_NEED_DECLARATIONS.
888
889         * dwarfout.c: Don't prototype time().
890
891         * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
892
893         * system.h: Likewise.
894
895         * toplev.c: Likewise.
896
897 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
898
899         * c-decl.c (pushdecl): Invert sense of test for non-global types.
900
901 Tue May 23 18:11:42 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
902
903         * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
904
905 2000-05-23  Jonathan Larmour  <jlarmour@redhat.co.uk>
906
907         * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
908
909 Tue May 23 06:50:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
910
911         * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
912         (alpha_start_function): Never write ..ng label if VMS or NT.
913         (alpha_align_insns): Remove GP_IN_USE arg.
914         Alignment now unsigned.
915         (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
916         * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
917         and two define_insn's.
918
919 2000-05-22  Richard Henderson  <rth@cygnus.com>
920
921         * combine.c (simplify_comparison): Use trunc_int_for_mode.
922
923 2000-05-22  Richard Henderson  <rth@cygnus.com>
924
925         * stor-layout.c (place_field): Change rli->size to rli->offset.
926
927 2000-05-22  Richard Henderson  <rth@cygnus.com>
928
929         * function.c (thread_prologue_and_epilogue_insns): Make sure 
930         existing line number notes appear after the prologue.
931
932 Mon May 22 21:49:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
933
934         * config/alpha/alpha.c (alpha_fnname): New static variable.
935         (print_operand, case '~'): New case.
936         (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
937         (alpha_start_function): Set alpha_fnname.
938         Write "ng" label if no ldgp; don't write ldgp insn.
939         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
940         * config/alpha/alpha.md (prologue_ldgp): New define_insn.
941
942 Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
943
944         * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
945         on deleted labels.
946
947 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
948
949         * varasm.c (eh_frame_section): Revert change to argument list.
950
951 Mon May 22 13:14:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
952
953         * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
954         (gen_extend_insn, can_fix_p, can_float_p): Likewise.
955         
956         * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
957         dangling "else" that causes "break" to be conditional.
958         Also remove unneeded code at start.
959
960 Mon May 22 17:31:35 2000  Philippe De Muyter  <phdm@macqel.be>
961
962         * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
963         * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
964         * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
965
966 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
967
968         * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
969         just one argument.
970
971 Mon May 22 06:57:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
972
973         * alias.c (record_component_aliases): New function.
974         * tree.h: Clean up some declarations and comments.
975         (record_component_aliases): New declaration.
976         * tree.c (get_alias_set): If type and has alias set, use it.
977
978 2000-05-22  Richard Henderson  <rth@cygnus.com>
979
980         * simplify-rtx.c (simplify_ternary_operation): Try to simplify
981         IF_THEN_ELSE to a setcc form.
982         * jump.c (can_reverse_comparison_p): Be prepared for insn null.
983
984 2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
985
986         * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
987         (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
988
989 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
990
991         * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
992         not a PARALLEL.
993
994 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
995
996         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
997         * config/mn10300/mn10300.c (print_operand): Likewise.
998
999         * final.c (split_double): Right shift of negative values is not
1000         portable.
1001
1002         * ifcvt.c (if_convert): Scan and kill dead code.
1003
1004         * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
1005
1006 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
1007
1008         * diagnostic.c: Eliminate implicit int.
1009         * except.c, gcc.c: Add static prototypes.
1010         * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
1011         * gensupport.c (process_rtx): Use XVEC to initialize vector
1012         slot of 'split'.
1013
1014         * print-rtl.c: If DEBUG_REGISTER_NAMES, define static 
1015         debug_reg_names instead of static reg_names.  If not, define
1016         global reg_names.
1017         * regclass.c: Don't define global reg_names unless
1018         DEBUG_REGISTER_NAMES is defined.
1019
1020         * reload1.c (order_regs_for_reload): Remove unused variable.
1021         * varasm.c: Include output.h after defaults.h.  Define
1022         eh_frame_section as function of no args, not of unspecified args.
1023
1024         * gcc.c: Constify argbuf; arguments to store_arg,
1025         process_command, main; elements of struct command and struct
1026         switchstr; local variables in execute, process_command, main.
1027
1028 2000-05-20  Bruce Korb  <bkorb@gnu.org>
1029
1030         * fixinc/inclhack.def:  many applications of c_fix=format + tests
1031         * fixinc/check.diff:  regenerated
1032         * fixinc/fixincl.x:  regenerated
1033
1034 Sat May 20 09:30:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1035
1036         * alias.c: Clarify some comments.
1037         (record_base_value): REGNO is unsigned.
1038         * rtl.h (record_base_value): Likewise.
1039
1040         * alias.c (aliases_everything_p): Don't special-case QImode here.
1041         * c-common.c (c_get_alias_set): Do it here.
1042         Handle BIT_FIELD_REF by getting alias info for arg.
1043         Use POINTER_TYPE_P.
1044
1045 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1046
1047         * mklibgcc.in: Restore rule to create ${dir}.
1048
1049 Sat May 20 08:45:41 2000  H.J. Lu  <hjl@gnu.org>
1050
1051         * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
1052         GCC_FOR_TARGET used by MULTILIBS.
1053         * mklibgcc.in: Make sure each .o file depends on the
1054         directory it will be in.
1055         Make the multilib directory depends libgcc.
1056
1057 Sat May 20 08:29:28 2000  H.J. Lu  <hjl@gnu.org>
1058
1059         * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
1060
1061 Sat May 20 07:27:35 2000  Alexandre Oliva  <aoliva@cygnus.com>
1062
1063         * fold-const.c (make_range): Handle degenerated intervals.
1064         Fixes c-torture/execute/991221-1.c
1065
1066 Fri May 19 18:16:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1067
1068         * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
1069         * reload.c (find_equiv_reg): Likewise.
1070         * alias.c (init_alias_analysis): Likewise.
1071         Only call prologue_epilogue_contains on insns.
1072         * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
1073         * bb-reorder.c (hard-reg-set.h): Include earlier.
1074         * haifa-sched.c (hard-reg-set.h): Likewise.
1075         * ifcvt.c (hard-reg-set.h): Likewise.
1076         * local-alloc.c (hard-reg-set.h): Likewise.
1077         * loop.c (hard-reg-set.h): Likewise.
1078         * predict.c (hard-reg-set.h): Likewise.
1079         * regrename.c (hard-reg-set.h): Likewise.
1080         * flow.c (hard-reg-set.h): Likewise.
1081         (reg_set_to_hard_reg_set): New function.
1082         * bitmap.c (regs.h, basic-block.h): No longer include.
1083         (bitmap.h): Now include.
1084         * conflict.c (hard-reg-set.h): Include.
1085         * profile.c (hard-reg-set.h): Likewise.
1086         * print-rtl.c (hard-reg-set.h): Likewise.
1087         * sbitmap.c (hard-reg-set.h): Likewise.
1088         * toplev.c (hard-reg-set.h): Likewise.
1089         * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
1090         * hard-reg-set.h (reg_names): Now constant.
1091         * regs.h (reg_names): Likewise.
1092         * regclass.c (reg_names): Likewise.
1093         * loop.h (basic-block.h): No longer include.
1094         (bitmap.h): Now include.
1095         * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
1096         * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
1097         (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
1098
1099 2000-05-19  Jan Hubicka  <jh@suse.cz>
1100             Richard Henderson  <rth@cygnus.com>
1101
1102         * basic-block.h (struct edge_def): New field "count".
1103         (struct basic_block_def): Likewise.
1104         * flow.c (entry_exit_blocks): Add count fileds.
1105         (split_edge): Keep count information up-to-date.
1106         (dump_edge_info, dump_flow_info): Dump count fields.
1107
1108         * final.c (count_instrumented_edges): Rename to edge from arc.
1109         (end_final): Update users.
1110         * profile.c: Include expr.h, basic-block.h.
1111         (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
1112         (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
1113         (ignore_next_note, return_label_execution_count): Kill.
1114         (bbg_file_name, da_file_name): Kill.
1115         (edge_info, bb_info): New structures.
1116         (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
1117         (count_instrumented_edges, total_num_edges): Rename to edge from arc.
1118         (total_num_edges_instrumented): Likewise.
1119         (init_arc, expand_spanning_tree): Kill.
1120         (fill_spanning_tree, tablejump_entry_p): Kill.
1121         (instrument_edges):  Rewrite from instrument_arcs to use
1122         commit_edge_insertions infrastructure.
1123         (compute_branch_probabilities): Remove arguments; rewrite for
1124         CFG infrastructure; use rtl_dump_file directly.
1125         (branch_prob, find_spanning_tree): Likewise.
1126         (union_groups, find_group): New.
1127         (init_branch_prob): Make bbg_file_name and da_file_name local.
1128         (end_branch_prob): Use rtl_dump_file directly.
1129         (init_edge_profiler): Rename to edge from arc.
1130         (output_arc_profiler): Kill.
1131         (gen_edge_profiler): New.
1132         (output_func_start_profiler): Turn off profiling.  Make the
1133         constructor static when we can.
1134         * rtl.h (branch_prob, end_branch_prob): Update prototypes.
1135
1136         * toplev.c (DFI_flow): Remove.
1137         (DFI_cfg, DFI_life): New.
1138         (dump_file): Update accordingly.
1139         (compile_file): Call end_branch_prob if profile_arc_flag too.
1140         (rest_of_compilation): Move flow1 cfg creation to DFI_cfg.  Do edge
1141         profiling after the CFG is built.  Move flow1 life analysis to
1142         DFI_life.  Always estimate remaining probabilities.
1143
1144 2000-05-19  Richard Henderson  <rth@cygnus.com>
1145
1146         * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
1147
1148         * flow.c (make_edges): The sibling call edge to exit is abnormal.
1149
1150 2000-05-19  Richard Henderson  <rth@cygnus.com>
1151
1152         * jump.c (redirect_jump): Add delete_unused argument.  Don't
1153         remove labels and code following when LABEL_NUSES goes to zero.
1154         (invert_jump): Likewise.
1155         (jump_optimize_1): Fix redirect/invert arguments.
1156         (do_cross_jump, thread_jumps): Likewise.
1157         * flow.c (split_edge): Likewise.
1158         * reorg.c (optimize_skip): Likewise.
1159         (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
1160         * profile.c (instrument_arcs): Likewise.
1161         * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
1162         * rtl.h: Update prototypes.
1163
1164 Fri May 19 12:05:13 2000  Clinton Popetz  <cpopetz@cygnus.com>
1165
1166         * ssa.c (convert_from_ssa): Tell life_analysis we need death 
1167         notes.
1168         (make_regs_equivalent_over_bad_edges): Only look at abnormal
1169         critical edges.
1170
1171 2000-05-19  Zack Weinberg  <zack@wolery.cumb.org>
1172
1173         * cpphash.c (funlike_macroexpand): Make sure not to walk p1
1174         past l1 when deleting whitespace and markers.              
1175
1176         * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
1177         * cpplib.c (do_unassert): Put the list to compare against on
1178         the stack.
1179
1180 2000-05-19  Bruce Korb  <bkorb@gnu.org>
1181
1182         * fixinc/README:  cleaned up old documentation
1183         * fixinc/check.diff: regenerated & verified on OSR5 on ix86
1184         * fixinc/check.tpl: compute the list of needed directories
1185         emit "#if defined(name)" because of conflict
1186         omit machine name differences from output differences
1187         * fixinc/inclhack.def( m88k_multi_incl ):  Use `wrap' function
1188         (machine_name): change test text to use `sed' markers
1189         * fixinc/fixincl.x: regen
1190
1191 Fri May 19 06:49:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1192
1193         * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
1194         a CONSTRUCTOR.
1195
1196 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
1197
1198         * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
1199         it to match the current practice.
1200
1201 2000-05-18  Mark Mitchell  <mark@codesourcery.com>
1202
1203         * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
1204
1205 2000-05-18  Richard Henderson  <rth@cygnus.com>
1206
1207         * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
1208         * rtl.h (insn_dependant_p): Declare it.
1209         * loop.c (strength_reduce): Use it.
1210
1211 2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
1212
1213         * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
1214         16-bit and 64-bit clean-up.
1215
1216 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
1217
1218         * configure.in (*-pc-msdosdjgpp): Set float_format to none.
1219         * configure: Rebuilt.
1220
1221 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
1222
1223         * genopinit.c: Use $ for escape sequences in optab patterns.
1224         Remove backslashes from optab patterns.  Change $A, $B, $C to
1225         expand to (int) whatever instead of just whatever; remove
1226         explicit (int) from all optab patterns.
1227
1228         * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
1229         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
1230         genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
1231         genrecog.c: Remove private copies of xmalloc, xrealloc, and
1232         xstrdup.
1233
1234 2000-05-18  Richard Henderson  <rth@cygnus.com>
1235
1236         * jump.c (jump_optimize_1): Base minimum insn count during
1237         find_cross_jump on BRANCH_COST.
1238
1239 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
1240
1241         * print-rtl.c (print_rtx): Only print note line number as string
1242         if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
1243         * final.c (final_scan_insn): Do nothing for note line number 0.
1244
1245 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
1246
1247         * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
1248         from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
1249         NOTE_INSN_DELETED_LABEL.
1250
1251 2000-05-18  Nick Clifton  <nickc@cygnus.com>
1252
1253         * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
1254         uninitialised data in .rodata not .bss, and do not interpret an
1255         error in the initialisation value as meaning that the variable
1256         should be placed in the .bss section.
1257
1258 Thu May 18 12:10:18 2000  Philippe De Muyter  <phdm@macqel.be>
1259
1260         * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
1261         not `$ac_cv_prog_cc_cc_c_o'.
1262         * configure: Regenerated.
1263
1264 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
1265             Richard Henderson  <rth@cygnus.com>
1266
1267         * c-common.h (enum c_tree_index): Add g77 type entries.
1268         (g77_integer_type_node, g77_uinteger_type_node): New.
1269         (g77_longint_type_node, g77_ulongint_type_node): New.
1270         * c-decl.c (init_decl_processing): Initialize them.
1271
1272 2000-05-18  Richard Henderson  <rth@cygnus.com>
1273
1274         * config/h8300/h8300.md (subs patterns): Use %G to negate.
1275
1276         * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
1277         (small_power_of_two): Likewise; use exact_log2.
1278         (adds_subs_operand, one_insn_adds_subs_operand): Remove.
1279         (output_adds_subs): Remove.
1280         (two_insn_adds_subs_operand): New.
1281         (split_adds_subs): New.
1282         * config/h8300/h8300-protos.h: Update.
1283         * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
1284         (CONST_OK_FOR_L): Match strict adds operands.
1285         (CONST_OK_FOR_N): Match struct subs operands.
1286         * config/h8300/h8300.md (adds_subs insns): Remove.
1287         (addhi patterns): Output adds/subs directly.
1288         (addsi_h8300h): Likewise.
1289         (addhi/addsi splitters): New.  Decompose two_insn_adds_subs_operand.
1290
1291 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
1292
1293         * cppexp.c (parse_assertion): New.
1294         (lex): Call it for CPP_HASH.  Remove CPP_ASSERTION case.
1295         (_cpp_parse_expr): Remove case '#'.  Don't set
1296         parsing_if_directive.
1297         * cpphash.c (collect_objlike_expansion,
1298         collect_funlike_expansion, collect_params,
1299         _cpp_create_definition): The list no longer has a trailing
1300         VSPACE token.
1301         * cpphash.h (enum node_type): Add T_ASSERTION.
1302         (struct hashnode): Remove aschain, add pred.
1303         (struct predicate): New.
1304         Update prototypes.
1305
1306         * cpplex.c (expand_token_space): Handle both offset and
1307         nonoffset lists.
1308         (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1309         (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1310         _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1311         _cpp_equiv_toklists): New.
1312         (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1313         stop at any single-character token, not just newline.
1314         (_cpp_lex_token): Remove special cases for #define and #if.
1315         (cpp_get_token): Expect # as a separate token type.  Remove
1316         DIRECTIVE case.
1317         (_cpp_get_directive_token): Remove DIRECTIVE case.
1318         (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1319
1320         * cpplib.c (_cpp_check_directive): Set dirno and
1321         SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1322         (_cpp_handle_directive): Run # <number> through the same logic
1323         as normal directives.
1324         (do_define): Don't set parsing_define_directive.  Use
1325         _cpp_scan_until.  The list does not have a VSPACE at the end.
1326         (do_if): Save, clear, and restore only_seen_white around 
1327         _cpp_parse_expr.
1328         (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1329         (do_assert, do_unassert): Rewrite.
1330
1331         * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1332         (LIST_OFFSET): New flag.
1333         (struct cpp_toklist): Replace dir_handler and dir_flags with
1334         dirno and flags.
1335         (struct cpp_reader): Remove parsing_if_directive and
1336         parsing_define_directive.
1337
1338 2000-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1339
1340         * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1341         following the cabs decl which terminate on the following line.
1342         Add the corresponding test_text case.
1343
1344 2000-05-18  Neil Booth  <NeilB@earthling.net>
1345
1346         * cppinit.c (cpp_reader_init): Initialise col_adjust and
1347         default tab stop size.
1348         (no_num, OPT_ftabstop): New.
1349         (handle_option): Handle "ftabstop=" command-line option.
1350         (print_help): Document it.
1351         * cpplex.c (COLUMN): Remove.
1352         (handle_newline): Reset col_adjust.
1353         (skip_whitespace): Update col_adjust as tabs encountered.
1354         (_cpp_lex_line): Update to use col_adjust.  Call
1355         skip_whitespace for all whitespace.
1356         * cpplib.h (struct cpp_options): New member tabstop.
1357         (struct cpp_reader): New member col_adjust.
1358         (CPP_BUF_COL): Update.
1359         (CPP_BUF_COLUMN): New.
1360         * cpp.texi: Document "-ftabstop=" command line option.
1361
1362 Wed May 17 18:19:41 2000  Philippe De Muyter  <phdm@macqel.be>
1363
1364         * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1365         files.
1366         * configure: Rebuilt.
1367
1368 Wed May 17 18:06:12 2000  John David Anglin <dave@hiauly1.hia.nrc.ca>
1369
1370         * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1371
1372         * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1373         HOST_BITS_PER_WIDE_INT is >= 64.
1374
1375 2000-05-17  Richard Henderson  <rth@cygnus.com>
1376
1377         * jump.c (jump_optimize_1): Remove inactive but real insns
1378         in jump-to-next-insn optimization.
1379
1380 2000-05-17  Richard Henderson  <rth@cygnus.com>
1381
1382         * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1383         unless OPTIMIZE_MODE_SWITCHING.  Conditionally set no_new_pseudos.
1384         Don't call recompute_reg_usage if no_new_pseudos is true.
1385         * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1386         Return true if we did work; update global life information.
1387         * basic-block.h (optimize_mode_switching): Update decl.
1388
1389 2000-05-17  Neil Booth  <neilb@earthling.net>
1390
1391         * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1392
1393 2000-05-17  Zack Weinberg  <zack@wolery.cumb.org>
1394
1395         * cpplib.c: New feature, #pragma system_header.
1396         * cpp.texi: Document special treatment of system headers, and
1397         the various mechanisms to get a header that special treatment.
1398
1399 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1400
1401         * system.h (offsetof): Define at the very end, to ensure we prefer
1402         the platform's definition if available.
1403
1404 2000-05-16  Bruce Korb  <bkorb@gnu.org>
1405
1406         * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1407         * fixinc/server.c: likewise
1408         * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1409         + #ifdef debugging code + use #def constant for
1410         sub-pattern count
1411         * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1412         on C++ math namespace
1413
1414 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1415
1416         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1417         Don't check the return value of sprintf.  Use asprintf to avoid
1418         buffer overflows.
1419
1420 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1421
1422         * flags.h (warn_unused_function, warn_unused_label,
1423         warn_unused_parameter, warn_unused_variable, warn_unused_value):
1424         Replace ``warn_unused''.
1425         (set_Wunused): Add declaration.
1426         * toplev.c (set_Wunused): New function.
1427         (warn_unused_function, warn_unused_label, warn_unused_parameter,
1428         warn_unused_variable, warn_unused_value): New variables.
1429         (W_options): Add -Wunused-function, -Wunused-function,
1430         -Wunused-label, -Wunused-parameter, -Wunused-variable and
1431         -Wunused-value.  Delete -Wunused.  Handled in decode_W_option.
1432
1433         * toplev.c (decode_W_option): Update -Wunused flags by calling
1434         set_Wunused.
1435         * c-decl.c (c_decode_option): Ditto for -Wall.
1436
1437         * stmt.c (expand_expr_stmt, expand_expr_stmt,
1438         warn_about_unused_variables): Replace warn_unused with more
1439         explicit warn_unused_value et.al.
1440         * function.c (expand_function_end): Ditto.
1441         * c-typeck.c (internal_build_compound_expr,
1442         internal_build_compound_expr): Ditto.
1443         * c-decl.c (poplevel, pop_label_level): Ditto.
1444         * toplev.c (check_global_declarations): Replace warn_unused with
1445         check for either warn_unused_function or warn_unused_variable.
1446
1447         * gcc.1, invoke.texi (Warning Options): Document
1448         -Wunused-function, -Wunused-function, -Wunused-label,
1449         -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1450
1451 Wed May 17 10:28:12 2000  Philippe De Muyter  <phdm@macqel.be>
1452
1453         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1454         $(srcdir), not in the current directory.
1455
1456 2000-05-16  Richard Henderson  <rth@cygnus.com>
1457
1458         * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1459         assembler supports it.
1460         (.fini, .init): Use a gp-relative indirect call.
1461         (__do_global_dtors_aux): Preserve the gp; rebundle.
1462         (__do_frame_setup): Likewise.
1463         * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1464         (.init): Use a gp-relative indirect call.
1465         (__do_global_ctors_aux): Preserve the gp.
1466
1467 2000-05-16  Richard Henderson  <rth@cygnus.com>
1468
1469         * flow.c (commit_one_edge_insertion): Be prepared for a return
1470         insn to be inserted on the edge with a normal jump.
1471         * jump.c (jump_optimize_1): Don't look to create return isns.
1472
1473         * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1474         * jump.c (jump_optimize_1): Likewise.
1475         (returnjump_p): Verify the argument is a JUMP_INSN.
1476         * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1477
1478 2000-05-16  Nick Clifton  <nickc@cygnus.com>
1479
1480         * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1481         GET_RTX_CLASS (GET_CODE ()) == 'i'.
1482         (large_insn_p): Ditto.
1483         (m32r_is_insn): New function: Return true if the insn contains
1484         an executable instruction.
1485         (m32r_adjust_insn): Use m32r_is_insn.
1486         (m32r_sched_reorder): Use m32r_is_insn.
1487         (m32r_sched_variable_issue): Use m32r_is_insn.
1488
1489 2000-05-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1490
1491         * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1492         VAR_DECL.
1493
1494         * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1495
1496         * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1497         according to given options.
1498
1499 Tue May 16 12:17:31 2000  Jeffrey A Law  (law@cygnus.com)
1500
1501         * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1502         if X has VOIDmode either.
1503         (LIMIT_RELOAD_CLASS): Similarly.
1504
1505         * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1506         not "general_operand" to match the processor's capabilities.
1507
1508 2000-05-16  Bruce Korb  <bkorb@gnu.org>
1509
1510         * fixinc/README:  corrected return address
1511         * fixinc/check.diff:  regenerate, now that test works
1512         * fixinc/fixfixes.c(format_fix,format_write): reformatted
1513         (char_macro_def_fix,char_macro_use_fix): corrected and
1514         rewrote to use regex to parse the text
1515         * fixinc/inclhack.def: more testing
1516         * fixinc/fixincl.x:  regenerated
1517
1518         * fixinc/inclhack.def: added several "test_text" attributes
1519         changed several fixes to use `c_fix = format'
1520         re-alphabetized the fixes
1521
1522         * fixinc/check.diff: regenerate
1523         * fixinc/fixincl.x: regenerate
1524         * fixinc/check.tpl: added `sparc' and `netinet' to the list
1525         of created dirs
1526
1527
1528 2000-05-16  Alexandre Oliva  <aoliva@cygnus.com>
1529
1530         * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1531
1532 2000-05-15  Richard Henderson  <rth@cygnus.com>
1533
1534         * toplev.c (rest_of_compilation): Run full jump pass before
1535         find_basic_blocks of flow2.
1536
1537 2000-05-15  Richard Henderson  <rth@cygnus.com>
1538
1539         * jump.c: Fix typos and clarify commentary from last change.
1540         (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1541         (safe_to_remove_jump_p): Remove.
1542         (condjump_label): Use pc_set.
1543
1544 2000-05-15  Richard Henderson  <rth@cygnus.com>
1545
1546         * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1547         that get in the way after reload.
1548         (cond_exec_process_if_block): Skip a label heading THEN block.
1549
1550 2000-05-15  Richard Henderson  <rth@cygnus.com>
1551
1552         * varasm.c (output_constant_pool): Abort instead of converting
1553         (improperly) deleted labels to zero.
1554
1555 2000-05-16  Neil Booth  <NeilB@earthling.net>
1556
1557         * cpplex.c (parse_string2): Update comment.
1558         (cpp_lex_line): No special assertion treatment for '('.
1559         * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1560         * cpplib.h (SYNTAX_ASSERT): Remove.
1561
1562 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1563
1564         * jump.c (condjump_p):  Mark as depreached.
1565         (any_condump_p): New.
1566         (any_uncondump_p): New.
1567         (pc_set): New.
1568         (safe_to_remove_jump_p): New.
1569         * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1570         safe_to_remove_jump_p): Declare.
1571
1572 Mon May 15 21:07:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1573
1574         * calls.c: Re-install both patches reverted by last patch.
1575         (struct arg_data): New field tail_call_reg.
1576         (initialize_argument_information): Initialize tail_call_reg
1577         (load_register_parameters): New argument flags, use
1578         tail_call_reg when emiting tail call sequence.
1579         (expand_call): Update call of load_register_parameters;
1580         copy unadjusted_args_size to adjusted_args_size.
1581
1582 Mon May 15 19:01:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1583
1584         * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1585         and bct_p parameters to flags.
1586         * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1587         * rtl.h (loop_optimize): Update prototype.
1588         * toplev.c (rest_of_compilation): Update call of loop_optimize.
1589
1590 2000-05-15  Jakub Jelinek  <jakub@redhat.com>
1591
1592         * calls.c (expand_call): Move expand_start_target_temps call after
1593         start_sequence().
1594
1595 2000-05-15  Neil Booth  <NeilB@earthling.net>
1596
1597         * cpphash.c (trad_stringify, warn_trad_stringify,
1598         collect_params): Make some pointers pointers to const.
1599         * cpplex.c (auto_expand_name_space) Guaranteed to always
1600         expand by at least one character.
1601         (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1602         (struct token_spelling): Use const U_CHAR * rather than PTR.
1603         (expand_name_space): Fix up token pointers if name space
1604         is moved when expanding.
1605         (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1606         parse_string2, save_comment, spell_token, cpp_output_list):
1607         Update so the routines handle tokens with a direct pointer to
1608         their text, rather than an offset into the token's list's namebuf.
1609         (_cpp_lex_line): Rearrange for clarity.
1610
1611         * cpplib.c (_cpp_check_directive): Similarly.
1612         (do_define): Make SYM a pointer to const.
1613         * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1614         (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1615         (TOK_OFFSET): Delete.
1616         (TOK_NAME): Update.
1617
1618 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
1619
1620         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1621         64-bit ABI.
1622
1623         * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE 
1624         into account.
1625         (logical_u_operand): Delete.
1626         (non_logical_cint_operand): Rewrite to take MODE into account.
1627         (non_logical_u_cint_operand): Delete.
1628         (boolean_operator): New function.
1629         (print_operand): Add new %q operand.
1630         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1631         remove logical_u_operand and non_logical_u_cint_operand,
1632         update logical_operand and non_logical_cint_operand.
1633         * config/rs6000/rs6000.md: Rewrite the patterns for performing
1634         logical operations to use %q.
1635
1636         * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1637         (movdi): Make similar to movsi.
1638         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1639         is no such thing as a DImode CONST_DOUBLE.
1640         * config/rs6000/rs6000.c (output_toc): Likewise.
1641         
1642         * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1643         codes when old mnemonics are in use.  Print register names
1644         for cc registers when requested.
1645
1646         * optabs.c (expand_float): Don't allow mode widening that causes
1647         double rounding.
1648
1649         * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1650         flags to their current names -maix64 and -maix32.
1651
1652 2000-05-14  Bruce Korb  <bkorb@gnu.org>
1653
1654         * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1655         and/or after current text of file
1656         * fixinc/fixlib.c(must_malloc):
1657         * fixinc/fixlib.h(must_malloc): + reformatting
1658         * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1659         with usages of ``c_fix = wrap;''
1660         Add several tests and use the ``c_fix = format'' fixer more.
1661         * fixinc/fixincl.x: regen
1662         * fixinc/check.diff: regen
1663         * fixinc/check.tpl: emit the associated header with the missing
1664         test message
1665
1666 Sun May 14 17:58:59 2000  Hans-Peter Nilsson  <hp@axis.com>
1667
1668         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1669         variables $src and $dst.
1670         
1671 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
1672
1673         * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1674         (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1675         (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1676         (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1677         fields. 
1678         (set_message_prefixing_rule): Declare.
1679
1680         * diagnostic.c: (current_prefixing_rule): New variable.
1681         (set_message_prefixing_rule): Define.
1682         (output_set_prefix): Adjust buffer->emitted_prefix_p.
1683         (init_output_buffer): Adjust Initialization.
1684         (output_emit_prefix): Rewrite.  Take prefixing rules into account.
1685         
1686 Sat May 13 11:05:47 2000  Philippe De Muyter  <phdm@macqel.be>
1687
1688         * ifcvt.c (if_convert): Do not free NULL.
1689
1690 2000-05-12  Nick Clifton  <nickc@cygnus.com>
1691
1692         * config/fr30/fr30.c (fr30_move_double): New function:  Emit code
1693         to move a double word value.
1694         (di_operand): New function: Return true if the operand is suitbale
1695         for a double word move operation.
1696         (nonimmediate_di_operand): New function: Return true if the
1697         operand is a DImode register or MEM.
1698
1699         * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1700         nonimmediate_di_operand.
1701
1702         * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1703         nonimmediate_di_operand.
1704
1705         * config/fr30/fr30.md (movdi): New pattern.  Required because
1706         other patterns generate DImode results.
1707         (movdi_insn): New pattern.
1708
1709 2000-05-12  Richard Henderson  <rth@cygnus.com>
1710
1711         * config/alpha/alpha.c (struct shadow_summary): Define
1712         bitfields as type unsigned int.
1713
1714 Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>
1715
1716         * config/avr/t-avr: Added definition of FLOAT while generates
1717         fp-bit.c
1718
1719         * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1720         peepholes for tst+jump = sbrs/sbrc optimization.
1721
1722 Fry May 12 20:03:00 CEST 2000  Jan Hubicka  <jh@suse.cz>
1723
1724         * expr.c (emit_push_insn): Do not adjust stack pointer when
1725         preallocating.
1726
1727 Fri May 12 19:03:58 2000  Philippe De Muyter  <phdm@macqel.be>
1728
1729         * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1730         * system.h (offsetof): ... to here.
1731
1732 2000-05-12  Richard Henderson  <rth@cygnus.com>
1733
1734         * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1735         * final.c (final_end_function): Use app_disable.  Rearrange note
1736         handling into a switch.  Emit deleted labels.
1737         (output_asm_label): Generate label strings for deleted labels.
1738         * flow.c (tail_recursion_label_list): New.
1739         (find_basic_blocks_1): Set label_value_list directly.  Collect list
1740         of tail recursion labels from call_placeholders.  Don't add deleted
1741         labels to the label value list.
1742         (cleanup_cfg): Use free_EXPR_LIST_list.
1743         (flow_delete_insn_chain): Turn non-removable labels into notes.
1744         (flow_delete_block): Don't disable deleting the block because of
1745         a non-removable label.
1746         (tail_recursion_label_p): New.
1747         (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1748         because of a label.
1749         (merge_blocks_move_successor_nojumps): Likewise.  Also move a
1750         jump table.
1751         (merge_blocks): Disable a merge because of tail recursion labels.
1752         * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1753         Use a more accurate measure of not merging the join block.
1754         (find_if_block): Don't disable conversion because of a label.
1755         (find_if_case_1, find_if_case_2): Likewise.
1756         * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1757         element when copying.
1758         (squeeze_notes): Also leave EH notes.
1759         (mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
1760         REG_LABEL notes.
1761         (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1762         deleting a label.
1763         * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1764         NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
1765         referring to a deleted label.  Convert tail handling to a switch.
1766         * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1767         for NOTE_INSN_DELETED_LABEL.
1768         (NOTE): Fix commentary.
1769         * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1770         (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1771         (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1772         (LABEL_NUSES, LABEL_REFS): Likewise.
1773         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1774
1775 2000-05-12  Bruce Korb  <bkorb@gnu.org>
1776
1777         * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1778         * fixinc/check.diff: updated
1779         * fixinc/inclhack.def: corrected & added some test_text-s
1780         * fixinc/genfixes: removed unneeded options to autogen invocation
1781         * fixinc/fixincl.tpl: Specified the output file
1782         * fixinc/fixfixes.c: visual appearance
1783         * fixinc/fixincl.x: regenerate
1784
1785 2000-05-12  Zack Weinberg <zack@wolery.cumb.org>
1786
1787         * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1788         CTRL_defn_fix): Delete.
1789         (fix_char_macro_defines, fix_char_macro_uses): Rename to
1790         char_macro_def_fix and char_macro_use_fix, respectively.  Put
1791         them into the FIXUP_TABLE.  Get the string to search for from
1792         a c_fix_arg.
1793
1794         (format_write): New function.
1795         (format_fix): Use it.
1796
1797         (FIX_PROC_HEAD): Constify text parameter.
1798         (machine_name_fix): Constify all char *s.
1799         * fixtests.c (skip_quote): Remove double static.
1800
1801         * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
1802         ctrl_use_quotes): Update for new scheme.
1803         * fixincl.x: Regenerate.
1804
1805 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
1806
1807         * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
1808         DWARF2_DEBUG.
1809         (DWARF2_ASM_LINE_DEBUG_INFO): Define.
1810         (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
1811
1812 2000-05-11  Robert Lipe <robertlipe@usa.net>
1813
1814         * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
1815         * fixincl.x: Regenerate.
1816
1817 2000-05-11  Richard Henderson  <rth@cygnus.com>
1818
1819         * calls.c: Revert both 05-09 patches.
1820
1821 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
1822
1823         * config/mn10300/mn10300.c (print_operand): Print FP constants in
1824         hexadecimal.
1825         * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
1826         for FP values.
1827
1828         * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
1829         and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
1830
1831 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
1832
1833         * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
1834
1835 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
1836
1837         * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
1838
1839 Thu May 11 22:28:05 2000  Denis Chertykov  <denisc@overta.ru>
1840
1841         * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
1842         * config/avr/avr.c (jump_over_one_insn_p): New function.
1843         * config/avr/avr.md: New peepholes added. Output test and
1844         conditional jump to "sbrc" or "sbrs" command.
1845
1846 2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
1847
1848         * cppmain.c (main): Use IS_DIR_SEPARATOR.
1849
1850 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
1851
1852         * except.c (find_exception_handler_labels_1): New function.
1853         (find_exception_handler_labels): Split into two functions, dive
1854         into CALL_PLACEHOLDERs when looking for exception handler labels.
1855
1856 2000-05-11 Stan Cox <scox@cygnus.com>
1857
1858         * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
1859         * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
1860         * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
1861
1862 2000-05-11  Bruce Korb  <bkorb@gnu.org>
1863
1864         * fixinc/fixfixes.c (double_slash_fix):  obsolete
1865         (else_endif_label_fix): obsolete
1866         (format_fix):  new, unused as yet
1867         (main): obsolete
1868         * fixinc/fixlib.h: added fix description struct for use by format_fix
1869         * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
1870         * fixinc/Makefile.in:  compile fixfixes.c and fixtests.c as separate
1871         modules.  Removed the vestiges of the script version.
1872         Added support for "make check".
1873         * fixinc/check.diff: base diff file (needs work!!)
1874         * fixinc/check.tpl: quiet the fixup output
1875         * fixinc/fixtests.c (main): obsolete
1876         * fixinc/fixincl.sh:  don't bother copying fixincl to ..
1877         * fixinc/fixincl.tpl:  provide for arguments to c_fix routines
1878
1879 Thu May 11 11:57:02 MET DST 2000  Jan Hubicka <jh@suse.cz>
1880
1881         * toplev.c (rest_of_compilation): Remove dead code after
1882         combine.
1883
1884 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
1885
1886         * cpphash.c (collect_funlike_expansion): Make "# is not
1887         followed by a macro argument name" a pedwarn, not an error.
1888         Preserve the # in the output.  Suppress the warning if lang_asm.
1889
1890 Thu May 11 01:19:31 2000  Jeffrey A Law  (law@cygnus.com)
1891
1892         * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
1893         * configure: Rebuilt.
1894
1895 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
1896
1897         * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
1898
1899 2000-05-10  Kazu Hirata  <kazu@hxi.com>
1900
1901         * combine.c (try_combine): Fix a typo.
1902
1903 Wed May 10 21:31:44 2000  Jim Wilson  <wilson@cygnus.com>
1904
1905         * config/ia64/ia64.md (insv): Add comment.
1906
1907 2000-05-10  Richard Henderson  <rth@cygnus.com>
1908
1909         * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
1910         * mklibgcc.in: Rewrite to not use functions.  Don't shortcut
1911         dependancies on FPBIT and DPBIT.
1912
1913 2000-05-10  Nick Clifton  <nickc@redhat.com>
1914
1915         * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
1916         when optimising for size.
1917         (mark_used_regs:) Ditto.
1918         (try_pre_increment_1): Ditto.
1919
1920 2000-05-10  Zack Weinberg  <zack@wolery.cumb.org>
1921
1922         * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
1923         Make error message friendlier.
1924
1925         * cpphash.h (struct hashnode): Use struct hack for name
1926         member.
1927         * cpphash.c (struct hashdummy): New.
1928         (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
1929         (make_HASHNODE): No need to set ->name pointer.  Correct
1930         setting of p.
1931         (cpp_lookup): Make 'dummy' a struct hashdummy.  Tidy up a bit.
1932
1933 2000-05-10  Richard Henderson  <rth@cygnus.com>
1934
1935         * flow.c (find_basic_blocks_1): Remove any spare bb_note
1936         after completion.
1937
1938 2000-05-10  Bruce Korb  <bkorb@gnu.org>
1939
1940         * fixinc/gnu-regex.c:  reg_syntax_t re_syntax_options must be static
1941
1942 2000-05-10  Eric Schweitz  <schweitz@nortelnetworks.com>
1943
1944         * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
1945         after we enter .debug.
1946
1947 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
1948
1949         * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
1950         abstract instance of a nested inline function.
1951
1952         * stor-layout.c (finish_record_layout): finalize_type_size
1953         before laying out the pending_statics.
1954
1955 Wed 10 May 09:36:47 2000  Neil Booth  <NeilB@earthling.net>
1956
1957         * cpplex.c (spell_token): New function.
1958         (spell_string, spell_comment, spell_name): fold into
1959         spell_token.    
1960         (I, S): Add macros.
1961         (E, H): Remove macros.
1962         (save_comment): Save comment opening characters too.
1963         (_cpp_lex_file): Update to use spell_token.  Tidy up comment
1964         handling.
1965         * cpplib.h (I, S): Add macros.
1966         (E, H): Remove macros.
1967         (TTYPE_TABLE): Update entries for new speller.
1968         (SYNTAX_ASSERT): Remove.
1969
1970 Wed 10 May 09:08:30 2000  Neil Booth  <NeilB@earthling.net>
1971
1972         * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
1973         when removing escaped newlines.  Reverse sense of test for
1974         escaped newline.
1975
1976 2000-05-09  Richard Henderson  <rth@cygnus.com>
1977
1978         * flow.c (find_basic_blocks_1): Do not delete the first
1979         bb_note we run across.
1980         (create_basic_block): Use reorder_insns to move an existing
1981         bb_note to the correct place.
1982
1983 2000-05-09  Richard Henderson  <rth@cygnus.com>
1984
1985         * calls.c (expand_call): Increment currently_expanding_call
1986         before calling optimize_tail_recursion.
1987
1988 Tue May  9 18:54:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1989
1990         * reload1.c (reload_combine): Fix errors in last change.
1991
1992 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
1993
1994         * gcc.c (used_arg): Skip over a semicolon at the end of the
1995         split-up loop; don't break out of it.
1996
1997         * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
1998         (tree.o): Depend on output.h.
1999
2000         * c-decl.c (pending_invalid_xref_file,
2001         current_function_prototype_file): Constify.
2002         (pushdecl): Constify a local char *.
2003         (define_label): Constify filename parameter.
2004         * c-lex.c (init_parse): Constify parameter and return value.
2005         * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
2006         * c-tree.h: Update prototypes.
2007         * c-parse.in: Constify filename member of %union, and if_stmt_file.
2008         * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
2009         objc/objc-parse.c: Regenerate.
2010
2011         * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
2012         * dwarfout.h: Update prototypes.
2013         * expr.c (expand_expr): Constify a local char *.
2014         * flags.h: Constify main_input_filename.
2015         * function.c (expand_function_end): Constify filename parameter.
2016         * genrecog.c (make_insn_sequence): Use a character array for
2017         c_test_pos.
2018         (main): Remove unused variables.
2019         * input.h: Constify input_filename, main_input_filename, and
2020         file_stack.name.  Update prototypes.
2021         * output.h: Declare first_global_object_name and
2022         weak_global_object_name here, as const char *.
2023         * stmt.c (expand_asm_operands): Constify filename parameter.
2024         * toplev.c (compile_file, push_srcloc, debug_start_source_file):
2025         Constify filename parameter.
2026         (input_filename, main_input_filename): Constify.
2027         * toplev.h: Update prototypes.
2028         * tree.c: Include output.h.  Don't declare
2029         first_global_object_name or weak_global_object_name.  Clean up string
2030         bashing in get_file_function_name_long.
2031         * tree.h (struct tree_decl): Constify filename member.
2032         (input_filename): Constify.
2033         Update prototypes.
2034         * varasm.c (first_global_object_name, weak_global_object_name):
2035         Constify.
2036         (assemble_start_function, assemble_variable): Clean up string bashing.
2037
2038         * gcc.c: Constify all spec-related strings initialized,
2039         transitively, from string constants.  Constify all strings
2040         and string variables related to multilibs.
2041         (set_spec, read_specs): Cast argument to free to PTR.
2042         (used_arg): Do not modify multilib_matches.  Use strncmp plus
2043         length comparison to compare multilib switches.
2044         * genmultilib: Constify everything declared in multilib.h.
2045
2046 Tue May  9 22:28:03 2000  Denis Chertykov  <denisc@overta.ru>
2047
2048         * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
2049         as deleted.
2050
2051 Tue May  9 20:52:43 2000  Denis Chertykov  <denisc@overta.ru>
2052
2053         * config/avr/avr-protos.h (extra_constraint): change a type of
2054         second argument from char to int to avoid warnings.
2055         (asm_output_byte): Likewise.
2056         
2057         * config/avr/avr.c (MAX_LD_OFFSET) New macro.
2058         (initial_elimination_offset): Handle elimination from
2059         FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
2060         (legitimate_address_p): Use MAX_LD_OFFSET.
2061         (legitimize_address): Likewise.
2062         (out_movqi_r_mr): Likewise.
2063         (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
2064         (out_movsi_r_mr): Use MAX_LD_OFFSET.
2065         (out_movsi_mr_r): Likewise.
2066         (out_movqi_mr_r): Likewise.
2067         (out_movhi_mr_r): Likewise.
2068         (notice_update_cc): Correct CC for the ashrqi3 with the shift
2069         count as CONST_INT != 6.
2070         (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
2071         shift count is a CONSTANT_P, but not a CONST_INT.
2072         (ashlhi3_out): Coding style modifications.
2073         (ashlsi3_out): Likewise.
2074         (ashrhi3_out): Likewise.
2075         (ashrsi3_out): Likewise.
2076         (lshrhi3_out): Likewise.
2077         (lshrsi3_out): Likewise.
2078         (ashrqi3_out): Generate shift for any known constant count without
2079         scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
2080         but not a CONST_INT.
2081         (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
2082         shift count is a CONSTANT_P, but not a CONST_INT. 
2083         (extra_constraint): change a type of
2084         second argument from char to int to avoid warnings.
2085         (asm_output_byte): Likewise.
2086         (asm_file_end): Output size generated commands count as a hex
2087         number too.
2088
2089         * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
2090
2091         * config/avr/avr.md (addhi3): Fragment commented by &&0 is
2092         removed.
2093         (ashlqi3): Values of "length" attribute changed. Shift count
2094         uses constraints 'n' instead of 'i'.
2095         (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
2096         shifts without clobber register.
2097         (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
2098         (call_insn): Correct test for which_alternative == 1 (was 0).
2099         (call_value_insn): Likewise.
2100         
2101         * config/avr/t-avr: Remove definition of FLOAT while generates
2102         fp-bit.c
2103
2104 2000-05-09  Bruce Korb  <bkorb@gnu.org>
2105
2106         * fixinc/check.tpl:  Template for checking fixes
2107         * fixinc/inclhack.def:  Added 'test_text' for many fixes
2108         disable hpux8_bogus_inlines on SCO
2109         * fixinc/fixinc.sco:  Oh, yes, we don't need this any more.
2110
2111 Tue May  9 16:30:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2112
2113         * calls.c (expand_call): Reorganize somewhat in order
2114         to avoid unnecesary recalculation inside loop and make
2115         tail call failure code cleaner.
2116         
2117 Tue May  9 06:30:20 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2118
2119         * alias.c (nonlocal_reference_p): Minor reformatting.
2120         * reload.c (find_equiv_reg): Simplify logic for
2121         CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
2122         some some reformatting.
2123         * reload1.c (reload_combine): Don't assume everything in
2124         CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
2125
2126 2000-05-08  Richard Henderson  <rth@cygnus.com>
2127
2128         * final.c (current_insn_predicate): New.
2129         (final_scan_insn): Set it.
2130         * output.h (current_insn_predicate): Declare.
2131
2132         * ifcvt.c (cond_exec_process_insns): New argument prob_val.
2133         Attach it to call insns.
2134         (cond_exec_process_if_block): Track probability for true and
2135         false branches.
2136         (dead_or_predicable): Likewise.
2137
2138         * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
2139         (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
2140         (PROB_VERY_LIKELY, PROB_ALWAYS): New.
2141         (estimate_probability, expected_value_to_br_prob): Use them.
2142
2143         * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
2144         * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
2145         (ia64_expand_prediction): New.
2146         (emit_insn_group_barriers): Don't look at notes.  Emit barriers
2147         as needed after calls.
2148         (ia64_epilogue_uses): Mark b0 used.
2149         * config/ia64/ia64.md (beq_true, beq_false): Remove.
2150         (bne_true, bne_false): Remove.
2151         (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
2152         (br_true, br_false): New.  Use predicate_operator and
2153         ia64_expand_prediction.
2154         (return_true, return_false): Likewise.
2155         (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
2156         (call_internal1, call_value_internal): Likewise.
2157         (call_value_internal1, call_multiple_values_internal1): Likewise.
2158
2159         * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
2160
2161         * config/ia64/ia64.md (extendsfdf2): Split only after reload.
2162
2163 2000-05-08  Richard Henderson  <rth@cygnus.com>
2164
2165         * rtlanal.c (may_trap_p): Consider old-style and volatile
2166         asms to trap.
2167
2168 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
2169
2170         * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
2171
2172 2000-05-08  Richard Henderson  <rth@cygnus.com>
2173
2174         * config/ia64/ia64.h (predicate_operator): Declare.
2175
2176         * config/ia64/ia64.md (extendsfdf2): Split the nop case out
2177         of existance.
2178
2179         * gensupport.c (process_rtx): Copy and post-process each member
2180         of the define_insn rtvec individually.
2181
2182 Mon  8 May 22:17:35 2000  Neil Booth  <NeilB@earthling.net>
2183
2184         * cpplex.c (spell_token): New function.
2185         (TOKEN_LEN): Add 1 for whitespace.
2186         (_cpp_lex_file): Update to use spell_token.
2187         * cpplib.h (E): Remove.
2188         (TTYPE_TABLE): Update CPP_VSPACE entry.
2189
2190 2000-05-08  Richard Henderson  <rth@cygnus.com>
2191
2192         * flow.c (init_propagate_block_info): Watch out for conditional
2193         branch to next instruction, and thus one outgoing edge.
2194
2195         * config/ia64/ia64.c (ia64_encode_section_info): Exit early
2196         for global register variables; don't special case __[CD]TOR_LIST__;
2197         mind ggc_p for string allocation.
2198
2199 2000-05-08  Nick Clifton  <nickc@cygnus.com>
2200
2201         * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
2202
2203 2000-05-08  Bruce Korb  <bkorb@gnu.org>
2204
2205         * fixinc/mkfixinc.sh:  fixinc.sco is no longer used
2206         i?86-*-msdosdjgpp* no longer uses fixincludes
2207         * fixinc/genfixes:  inclhack.sh and fixincl.sh are no longer generated
2208         * fixinc/inclhack.sh:  deleted
2209         * fixinc/hackshell.tpl:  deleted
2210         * fixinc/inclhack.tpl:  deleted
2211         * fixinc/Makefile.in:  Remove dependencies on above
2212         * fixinc/fixincl.sh:  "DO NOT EDIT" text modified
2213
2214 2000-05-08  Andreas Jaeger  <aj@suse.de>
2215
2216         * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
2217         support.
2218
2219 2000-05-07  Zack Weinberg  <zack@wolery.cumb.org>
2220
2221         * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
2222         substitutions.
2223
2224 Sun  7 May 08:43:53 2000  Neil Booth  <NeilB@earthling.net>
2225
2226         * cpplex.c: Move new lexer definitions and prototypes
2227         to top.  Conditional include these and the code if
2228         NEW_LEXER is defined.  Rename functions whose names
2229         clash if this code included.
2230
2231 Sun May  7 00:54:57 EDT 2000  John Wehle  (john@feith.com)
2232
2233         * rtl.def (COND_EXEC): Clarify.
2234
2235         * i386.md (extendsidi2): Clobber (reg:CC 17) in the
2236         same fashion as zero_extendsidi2.
2237
2238 2000-05-06  Richard Henderson  <rth@cygnus.com>
2239
2240         * config/ia64/ia64.c (predicate_operator): New.
2241         (ia64_print_operand): Handle 'J'.
2242         (rtx_needs_barrier): Handle COND_EXEC.
2243         * config/ia64/ia64.h (BRANCH_COST): Define.
2244         (PREDICATE_CODES): Update.
2245         * config/ia64/ia64.md: Docuement used unspec values.
2246         (attr predicable): New.
2247         (movxf, movxf_internal): New.
2248         (extendsfdf2): Don't comment out nop.
2249         (floatdidf2): Remove.
2250         (truncxfsf2, truncxfdf2, floatdixf2): New.
2251         (abssi2, absdi2): Put the neg in the "true" slot.
2252         (conditional branch instructions): Mark not predicable.
2253         (cmov*_internal): Use predicate_operator.  Split to cond_exec.
2254         (abs*_internal): Likewise.
2255         (alloc, set_bsp): Mark not predicable.
2256         (barrier, insn_group_barrier, flush_cache): Likewise.
2257         (define_cond_exec): New.
2258
2259 2000-05-06  Richard Henderson  <rth@cygnus.com>
2260
2261         * c-decl.c: Include "tm_p.h".
2262
2263         * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
2264         (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
2265         (ia64_expand_op_and_fetch): Declare.
2266         * config/ia64/ia64.c: Include "toplev.h".  Kill trailing whitespace.
2267         (setjmp_operand): Constify variables for XSTR.
2268         (ia64_encode_section_info): Likewise.
2269         (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
2270         values to int.
2271         (ia64_asm_output_external): Constify name.
2272         (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
2273         (process_for_unwind_directive): Provide switch default.
2274         (ia64_expand_compare_and_swap): Remove unused variables.
2275         (ia64_expand_builtin): Likewise.
2276         * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
2277         for printing.
2278
2279         * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
2280         (symbolic_operand, function_operand, setjmp_operand): Likewise.
2281         (shift_count_operand, shift_32bit_count_operand): Likewise.
2282         (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
2283         (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
2284         (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
2285         (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
2286         (ia64_expand_builtin): Likewise.
2287         (call_multiple_values_operation): Make dest_regno unsigned.
2288
2289 2000-05-06  Richard Henderson  <rth@cygnus.com>
2290
2291         * rtl.def (DEFINE_COND_EXEC): New.
2292         * md.texi: Document it.
2293
2294         * gensupport.c (input_file): Remove.
2295         (struct queue_elem): Add lineno.
2296         (rtx_ready_queue): Remove.
2297         (errors): New.
2298         (predicable_default): New.
2299         (predicable_true, predicable_false): New.
2300         (define_attr_queue, define_attr_tail): New.
2301         (define_insn_queue, define_insn_tail): New.
2302         (define_cond_exec_queue, define_cond_exec_tail): New.
2303         (other_queue, other_tail): New.
2304         (queue_pattern): New.
2305         (process_rtx): Add patterns to the appropriate queues.
2306         (is_predicable, identify_predicable_attribute): New.
2307         (n_alternatives, collect_insn_data): New.
2308         (alter_predicate_for_insn, alter_test_for_insn): New.
2309         (shift_output_template, alter_output_for_insn): New.
2310         (process_one_cond_exec, process_define_cond_exec): New.
2311         (init_md_reader): Read the entire file.  Process define_cond_exec.
2312         (read_md_rtx): Return elements from the queues.
2313
2314 2000-05-06  Richard Henderson  <rth@cygnus.com>
2315
2316         * flow.c (mark_set_1): Don't update conditional life info
2317         if the register is not_dead.
2318
2319 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
2320
2321         * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2322         (mostlyclean): Also delete fixincl, fixinc.sh, and
2323         specs.ready, and make clean in the fixinc subdir.
2324
2325 2000-05-06  Richard Henderson  <rth@cygnus.com>
2326
2327         * Makefile.in (gensupport.o): Compile for the host.
2328         (host-prefix gensuuprt.o): Remove.
2329         (genflags.o): Depend on gensupport.h and OBSTACK_H.
2330         (genattrtab.o): Likewise.
2331         (gencodes.o): Depend on gensupport.h.
2332         (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2333         (genpeep.o, genattr.o, genoutput.o): Likewise.
2334
2335         * gensupport.c (obstack, rtl_obstack): New.
2336         (init_md_reader): Initialize rtl_obstack.
2337         * gensupport.h (rtl_obstack): Declare.
2338         (message_with_line): Declare.
2339
2340         * genattr.c: Remove all traces of obstack manipulation.
2341         * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2342         * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2343
2344         * genattrtab.c (obstack, rtl_obstack): Remove.
2345         (main): Don't init rtl_obstack.
2346         * genflags.c: Likewise.
2347
2348         * genrecog.c (message_with_line): Move ...
2349         * gensupport.c: ... here.
2350
2351 2000-05-06  Richard Henderson  <rth@cygnus.com>
2352
2353         * c-typeck.c (build_c_cast): Remove dead code.
2354
2355 2000-05-06  Richard Henderson  <rth@cygnus.com>
2356
2357         * flow.c (split_edge): Don't allocate global_live_at_start for
2358         the new block unless the old blocks had them as well.
2359
2360         * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2361
2362         * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2363         test_bb if a or b uses x.
2364
2365 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
2366
2367         * cpphash.h: Remove conditional #define of __extension__.
2368         * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2369         RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2370         (ENABLE_RTL_CHECKING only).
2371         * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2372         CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2373         (ENABLE_TREE_CHECKING only).
2374         * varray.h: Add __extension__ to VARRAY_CHECK macro
2375         (ENABLE_CHECKING only).
2376
2377 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2378
2379         Use new tail-calling mechanism on ARM.
2380         * arm.md (sibcall, sibcall_value): New expands.
2381         (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2382         (tailcalling peepholes): Delete.
2383         (push_multi): Simplify.
2384         * arm.c (lr_save_eliminated): Delete definition.
2385         (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2386         (output_return_instruction): Remove checks on lr_save_eliminated.
2387         (output_arm_prologue): Remove old tail-calling code.
2388         (arm_output_epilogue): New parameter, really_return.  All callers
2389         changed.  Handle tail-calling epilogues.
2390         * arm.h (lr_save_eliminated): Delete declaration.
2391         (frame_pointer_needed): Delete declaration.
2392         * arm-protos.h (arm_output_epilogue): Adjust prototype.
2393
2394         * arm.md (is_thumb): Examine symbol thumb_code, not expression
2395         TARGET_ARM.
2396         * arm.c (thumb_code): Define it.
2397         (arm_override_options): Set it.
2398         * arm.h (thumb_code): Declare it.
2399         
2400 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2401
2402         * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2403
2404 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2405
2406         * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2407         bogus clobber to insns.
2408         (load_multiple_operation, store_mulitple_operation): Don't check 
2409         for it.
2410         * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2411
2412         * arm.md (and_scc, ior_scc): Add missing mode.
2413
2414         * arm.md (call_value_symbol): Remove predicate from op2.
2415
2416         * arm.h (SPECIAL_MODE_PREDICATES): Define.
2417         
2418 Sat May  6 06:25:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2419
2420         * expr.c (get_subtarget): New function.
2421         (force_operand, expand_expr, do_store_flag): Use it.
2422
2423         * toplev.c (compile_file): Don't take strlen of NAME if null.
2424
2425 2000-05-06  David Edelsohn  <edelsohn@gnu.org>
2426
2427         * xcoffout.c (xcoff_current_include_file,
2428         xcoff_current_function_file, xcoff_lastfile): Constify char *.
2429         (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2430         char *'.
2431         (xcoffout_declare_function): Make name 'const char *'.
2432         (xcoffout_end_epilogue): Make fname 'const char *'
2433         * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2434         xcoffout_declare_function, xcoffout_source_line): Match above.
2435
2436         * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2437         -maix64 is error.
2438         * rs6000.c (print_operand): Fix lossage typo.
2439         (output_cbranch): Remove "cr" decoration for now.
2440         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'. 
2441
2442 Sat May  6 06:55:32 2000  Denis Chertykov  <denisc@overta.ru>
2443
2444         * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2445         constant count.
2446
2447 2000-05-05  Bruce Korb  <bkorb@gnu.org>
2448
2449         * fixinc/genfixes: Improve the matching for make target names
2450
2451 2000-05-05  Catherine Moore  <clm@cygnus.com>
2452
2453         * c-common.c (decl_attributes):  For TYPE_DECLs attach the
2454         attribute to the decl.
2455         * c-decl.c (pushdecl): Propagate the USED attribute to the 
2456         type copy.
2457
2458 2000-05-05  Richard Henderson  <rth@cygnus.com>
2459
2460         * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2461         same way emit_group_load does.
2462
2463 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2464
2465         * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2466
2467         * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2468         (main): Likewise.
2469
2470 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2471
2472         * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2473
2474 Fri May  5 10:29:21 2000  Marc Espie <espie@cvs.openbsd.org>
2475
2476         * config/openbsd.h (LINK_SPEC): pass correct flags to ld 
2477         to support -shared, on platforms with dynamic libraries.
2478
2479 Fri May  5 10:27:06 2000  Philippe De Muyter  <phdm@macqel.be>
2480
2481         * system.h (S_ISBLK): Provide fallback definition.
2482
2483 2000-05-05  Geoff Berry  <geoffb@bops.com>
2484
2485         * extend.texi (Extended Asm): Document inability to give asm
2486         statements access to condition codes.
2487
2488 2000-05-05  Marek Michalkiewicz  <marekm@linux.org.pl>
2489
2490         * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2491         as arg 2 of UNIQUE_SECTION.
2492
2493 Fri May  5 10:11:41 2000  Jeffrey A Law  (law@cygnus.com)
2494
2495         * predict.c: Remove May 4 change.
2496         * bb-reorder.c (make_reorder_chain): Do not perform block movement
2497         if we have predicted the branch at 50-50 probability.
2498
2499 2000-05-05  Richard Henderson  <rth@cygnus.com>
2500
2501         * flow.c (init_propagate_block_info): Fix merge error
2502         in HAVE_conditional_execution code.
2503
2504 Fri May  5 07:43:50 2000  Denis Chertykov  <denisc@overta.ru>
2505
2506         * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2507         shift cycle for unknown shift count. Also generates dec + brpl.
2508         (ashlqi3_out): Don't generate dec + brpl which now generates by
2509         `out_shift_with_cnt'.
2510         (ashlhi3_out): Likewise.
2511         (ashlsi3_out): Likewise.
2512         (ashrqi3_out): Likewise.
2513         (ashrhi3_out): Likewise.
2514         (ashrsi3_out): Likewise.
2515         (lshrqi3_out): Likewise.
2516         (lshrhi3_out): Likewise.
2517         (lshrsi3_out): Likewise.
2518
2519 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2520
2521         * gcc.c (free_split_directories): Correct typo in explanation
2522         of make_relative_prefix.
2523
2524 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
2525
2526         * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2527         comparison codes to branch_comparison_operator.
2528
2529 2000-05-04  Richard Henderson  <rth@cygnus.com>
2530
2531         * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2532
2533 2000-05-04  Richard Henderson  <rth@cygnus.com>
2534
2535         * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2536         (DPBIT_FUNCS): Remove _sf_to_usi.
2537         (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2538
2539         * ifcvt.c (noce_process_if_block): Fail if A or B modified
2540         between condition and jump.
2541
2542         * libgcc2.c (near eh_context_specific): Comment #endif string.
2543         * longlong.h: Don't use strings with embedded newlines.
2544
2545 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
2546
2547         * config/rs6000/rs6000-protos.h: Add output_cbranch.
2548         * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2549         (print_operand): Delete %t and %T codes.
2550         (output_cbranch): New function.  Support branch prediction.
2551         * config/rs6000/rs6000.md: Use output_cbranch for
2552         conditional branches and returns.
2553
2554 2000-05-04  Jason Merrill  <jason@casey.cygnus.com>
2555
2556         * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2557         * stor-layout.c (place_field): Likewise.
2558         * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2559         * expr.c (store_expr): Make align unsigned.
2560         * explow.c (plus_constant_wide): Make low words unsigned.
2561         * expmed.c (choose_multiplier): Likewise.
2562         * fold-const.c (fold):  Likewise.
2563         * tree.h (build_int_2): Likewise.
2564         * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2565         * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2566         (init_emit): Change cast to unsigned char*.
2567         * varasm.c (compare_constant_1): Add cast to char*.
2568         * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2569         * reload1.c (reload): Likewise.
2570
2571         * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2572
2573 Thu May  4 14:37:23 2000  Jeffrey A Law  (law@cygnus.com)
2574
2575         * predict.c (estimate_probability): If no prediction was found, then
2576         predict the successor that is the next physical block (if such a
2577         successor exists).
2578
2579 2000-05-04  Richard Henderson  <rth@cygnus.com>
2580
2581         * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2582
2583 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2584
2585         * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2586
2587 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
2588
2589         * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move 
2590         attribute macros from here ...
2591         (CPP_SPEC): to here.
2592         * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2593         (CPP_SPEC): Likewise.
2594         * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros. 
2595
2596         * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2597         (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2598
2599 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2600
2601         * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2602         
2603         * diagnostic (vbuild_message_string, build_message_string,
2604         build_location_prefix, output_get_prefix, init_output_buffer,
2605         output_notice, vline_wrapper_message_with_location,
2606         v_message_with_decl, default_print_error_function): De-constify.
2607         (set_real_maximum_length): Prototype.
2608
2609         * diagnostic.h (struct output_buffer, init_output_buffer,
2610         output_get_prefix, output_set_prefix): De-constify.
2611
2612         * function.c (init_function_start): Constify.
2613
2614         * gensupport.c (remove_constraints, process_rtx): Prototype.
2615
2616         * gthr-posix.h: Indent uses of #pragma.
2617
2618         * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2619         Prototype.
2620
2621         * predict.c (find_expected_value): Delete prototype.
2622         (expected_value_to_br_prob): Initialize variable `ev_reg'.
2623
2624         * sbitmap.h (debug_sbitmap): Prototype.
2625
2626         * ssa.c (compute_coalesced_reg_partition): Prototype.
2627
2628         * stor-layout.c (debug_rli): Prototype.
2629
2630         * tree.h (round_down): Prototype.
2631         (init_function_start): Constify.
2632
2633 2000-05-04  Zack Weinberg  <zack@wolery.cumb.org>
2634
2635         * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2636         (overly conservative).  Change extern inline wrappers to
2637         static inline, define them always, use PARAMS properly.
2638         * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2639         whitespace warnings for \f and \v at the beginning of a line.
2640
2641 Thu May  4 10:03:50 2000  Jeffrey A Law  (law@cygnus.com)
2642
2643         * haifa-sched.c (schedule_insns): Free the flow edge list when it
2644         is no longer needed
2645
2646 2000-05-04  Bruce Korb  <bkorb@gnu.org>
2647
2648         * fixincl/inclhack.def: added broken_cabs -
2649         Remove `extern double cabs' declarations from math.h
2650         * fixincl/inclhack.sh: regen
2651         * fixincl/fixincl.x: regen
2652         * fixincl/fixincl.c: Remove BOGOSITY code
2653         * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2654
2655 Thu May  4 09:45:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2656
2657         * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2658         MEM_ALIAS_SET.
2659         * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2660         when calling MEM_COPY_ATTRIBUTES.
2661         * emit-rtl.c (operand_subword, change_address): Likewise.
2662         * explow.c (stabilize): Likewise.
2663         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2664         * integrate.c (copy_rtx_and_substitute): Likewise.
2665         * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2666         when calling MEM_COPY_ATTRIBUTES.
2667         (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2668         Likewise.
2669         * cse.c (gen_lowpart_if_possible): Likewise.
2670         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2671         * optabs.c (gen_move_insn): Likewise.
2672         * recog.c (validate_replace_rtx_1): Likewise.
2673         * simplify-rtx.c (add_mem_for_addr): Likewise.
2674         * stmt.c (expand_anon_union_decl): Likewise.
2675         * config/arm/arm.md: Likewise.
2676         * config/h8300/h7300.c (fix_bit_operand): Likewise.
2677         * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2678         (block_move_no_loop, block_move_sequence): Likewise.
2679         * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2680         * config/alpha/alpha.c (get_aligned_mem): Likewise.
2681         Clear MEM_ALIAS_SET.
2682         * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2683         MEM_COPY_ATTRIBUTES.
2684
2685 2000-05-03  Robert Lipe <robertlipe@usa.net>
2686         
2687         * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2688         to suppress libgcc1.
2689         (i[34567]86-*-sco3.2v5*) Likewise.
2690         (i[34567]86-*-sco3.2v4*) Likewise.
2691         (i[34567]86-*-sco) Likewise.
2692         (i[34567]86-*-solaris2) Likewise.
2693         (i[34567]86-*-sysv5*) Likewise.
2694         (i[34567]86-*-sysv4*) Likewise.
2695         (i[34567]86-*-udk*) Likewise.
2696         (i[34567]86-*-sysv*) Likewise.
2697
2698 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
2699
2700         * cpphash.h (U): New define, to correct type of string constants.
2701         (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2702         routines, to do casts when passing unsigned strings to libc.
2703         * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2704
2705         * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2706         * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2707         * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2708         * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2709         second argument an U_CHAR *.
2710
2711         * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2712         length field, clean up initializer.
2713         (ISTABLE): Add __extension__ to designated-
2714         initializers version.
2715         * cpplex.c (CHARTAB): Likewise.
2716
2717         * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2718         case so the file won't be empty.
2719
2720 Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>
2721
2722         * bb-reorder.c (struct reorder_block_def): Member succ removed.
2723         (REORDER_BLOCK_SUCC): Removed.
2724         (enum reorder_skip_type): Removed.
2725         (skip_insns_between_block): Renamed to skip_insns_after_block.
2726         Removed second argument. Removed dead code and cleaned up.
2727         (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2728         (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2729         second parameter to skip_insns_after_block.
2730
2731 Wed May  3 13:29:54 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2732
2733         * tree.c (staticp, case LABEL_DECL): New case.
2734
2735 2000-05-03  Richard Henderson  <rth@cygnus.com>
2736
2737         * Makefile.in (start.encap): Do not depend on LIBGCC1.
2738
2739         * mklibgcc1.in: Fix typo last change.
2740
2741 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
2742
2743         * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2744         (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2745         (GCC_CFLAGS): Use it.
2746         (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2747         * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2748         objc/Make-lang.in: Use it.
2749
2750 2000-05-03  Jason R Thorpe  <thorpej@zembu.com>
2751
2752         * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2753
2754 2000-05-03  Richard Henderson  <rth@cygnus.com>
2755
2756         * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
2757         LIBGCC1 empty with libgcc1.null.
2758
2759 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
2760
2761         * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2762         change.
2763
2764 2000-05-03  Greg McGary  <gkm@gnu.org>
2765
2766         * tree.h (tree_common): Add bounded_flag member.  Remove
2767         inaccurate comment about number of remaining bits.
2768         (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2769         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2770         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2771         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2772         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2773         (TYPE_QUAL_BOUNDED): New constant.
2774         (TYPE_QUALS): Handle bounded qualifier.
2775         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2776         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2777         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2778         TYPE_AMBIENT_BOUNDEDNESS): New macros.
2779         (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2780         (tree_type): Add pointer_depth member.  Remove
2781         inaccurate comment about number of remaining bits.
2782         (DECL_POINTER_DEPTH): Add macro.
2783         (tree_decl): Add pointer_depth member.
2784
2785 Wed May  3 22:52:53 2000  Denis Chertykov  <denisc@overta.ru>
2786
2787         * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2788         * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2789         (lshrhi3_out): Likewise.
2790         (ashrsi3_out): bugfix in shift by 8.
2791         (test_hard_reg_class): New function.
2792         * config/avr/avr.md: Bugfix inside conditions in peepholes.
2793         (ashlhi3): removed define_expand of this pattern.
2794         (*ashlhi3_insn): renamed to ashlhi3.
2795         (ashlsi3): removed define_expand of this pattern.
2796         (*ashlsi3_insn): renamed to ashlsi3.
2797         (ashrqi3): removed define_expand of this pattern.
2798         (*ashrqi3_insn): renamed to ashrqi3.
2799         (ashrhi3): removed define_expand of this pattern.
2800         (*ashrhi3_insn): renamed to ashrhi3.
2801         (ashrsi3): removed define_expand of this pattern.
2802         (*ashrsi3_insn): renamed to ashrsi3.
2803         (lshrhi3): removed define_expand of this pattern.
2804         (*lshrhi3_insn): renamed to lshrhi3.
2805         (lshrsi3): removed define_expand of this pattern.
2806         (*lshrsi3_insn): renamed to lshrsi3.
2807
2808 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
2809
2810         * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
2811         inclusion of "system.h".
2812
2813 Wed May  3 11:43:53 2000  Jim Wilson  <wilson@cygnus.com>
2814
2815         * config/ia64/ia64.c (ia64_encode_section_info): Add check for
2816         TREE_ASM_WRITTEN.
2817
2818 2000-05-03  David Mosberger  <davidm@hpl.hp.com>
2819
2820         * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
2821         if -mauto-pic is on.
2822         (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
2823         -mconstant-gp is in effect and function-descriptors are being used
2824         to make indirect calls.
2825         * config/ia64/ia64.h (MASK_CONST_GP): New macro.
2826         (MASK_AUTO_PIC): Ditto.
2827         (TARGET_CONST_GP): Ditto.
2828         (TARGET_AUTO_PIC): Ditto.
2829         (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
2830         (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
2831         -mno-pic is in effect.
2832         (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
2833         * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
2834         -mauto-pic is in effect.
2835         (gprel64_offset): New pattern.
2836         (load_gprel64): Ditto.
2837         (call): Handle -mauto-pic like -mno-pic (don't use fptr).  If
2838         -mconstant-gp is in effect, no need to preserve gp around direct
2839         calls.
2840         (call_value): Ditto.
2841         * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
2842         (FUNCTION_PROFILER): Define.
2843         * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
2844         @fptr() directive when -mno-pic or -mauto-pic is in effect.
2845         (ASM_OUTPUT_DESTRUCTOR): Ditto.
2846
2847 2000-05-03  Richard Henderson  <rth@cygnus.com>
2848
2849         * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
2850         (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
2851         (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
2852         (mklibgcc, libgcc.mk): New targets.
2853         (libgcc.a): Use libgcc.mk.
2854         (stmp-multilib): Likewise.
2855         (stmp-multilib-sub): Remove.
2856         (mostlyclean): Don't delete libgcc2 temp files.
2857         * configure.in (AC_PROG_CC_C_O): Add.
2858         (NO_MINUS_C_MINUS_O): Substitute it.
2859         (all_outputs): Add mklibgcc.
2860         * mklibgcc.in: New file.
2861
2862 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
2863
2864         * cppexp.c (op_t): Make an int.
2865
2866         * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
2867
2868         * varasm.c (initializer_constant_valid_p): Fix parenthesis.
2869
2870         * gensupport.c (process_rtx): Fix macros used.
2871
2872 2000-05-03  Richard Henderson  <rth@cygnus.com>
2873
2874         * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
2875         call-clobbered registers of a call.
2876
2877 Wed May  3 12:40:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
2878
2879         * gensupport.c: New file.
2880         * gensupport.h: New file.
2881         * Makefile.in (HOST_RTL): Depend on gensupport.
2882         (gensupport.o) New rule.
2883         * genattr.c: Use gensupport for reading .md files.
2884         * genattrtab.c: Ditto. 
2885         * gencodes.c: Ditto. 
2886         * genconfig.c: Ditto. 
2887         * genemit.c: Ditto. 
2888         * genextract.c: Ditto. 
2889         * genflags.c: Ditto. 
2890         * genopinit.c: Ditto. 
2891         * genoutput.c: Ditto. 
2892         * genpeep.c: Ditto. 
2893         * genrecog.c: Ditto.
2894         * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
2895         * md.texi (Insn Splitting): Document define_insn_and_split.
2896
2897 Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>
2898
2899         * flow.c (verify_flow_info): Added two more sanity checks. The
2900         first checks that the blocks are numbered consecutively. The second
2901         checks that n_basic_blocks is actually equal to the number of
2902         basic blocks in the insn chain.
2903
2904 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
2905
2906         * cpplib.h: Add accessor macros for token lists.
2907         * cpplib.c, cpphash.c, cpplex.c: Use them.
2908
2909 Wed May  3 09:29:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2910
2911         * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
2912         memory usage if not in a function.
2913         * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
2914         return address if static.
2915
2916 Wed May  3 13:14:49 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2917
2918         * ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
2919         whether address may trap.
2920
2921 Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>
2922
2923         * bb-reorder (chain_reorder_blocks): Changed code to test for
2924         EDGE_FALLTHRU rather than making erroneous assumption that the
2925         first outgoing edge is the fall-through edge.
2926
2927 Tue May  2 18:20:31 2000  Donald Lindsay  <dlindsay@hound.cygnus.com>
2928
2929         * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new 
2930         ABI for varargs, across all MIPS. This is incompatible because the
2931         va_list (__builtin_va_list) structure is different, so a compilation
2932         unit passing a va_list and a compilation unit being passed one, should
2933         both be compiled with the same ABI. (The old structure had two 
2934         pointers, now it has three.)
2935
2936 Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>
2937
2938         * bb-reorder.c (struct reorder_block_def): Remove members end,
2939         block_begin, and block_end.
2940         (REORDER_BLOCK_OLD_END): Delete.
2941         (REORDER_BLOCK_BEGIN): Delete.
2942         (REORDER_BLOCK_END): Delete.
2943         (chain_reorder_blocks): Remove dead code.
2944
2945 Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>
2946
2947         * bb-reorder.c (remove_scope_notes): Check for both types of scope
2948         notes as the end of a basic block before deleting.
2949
2950 2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>
2951
2952         * final.c (final_start_function): Fix spelling of "necessary".
2953
2954 2000-05-02  Jason Merrill  <jason@casey.cygnus.com>
2955
2956         * toplev.c (debug_ignore_block): Return int.
2957         * dwarf2out.c (dwarf2out_ignore_block): Likewise.
2958         * toplev.h, dwarf2out.h: Adjust.
2959         * emit-rtl.c (remove_unnecessary_notes): Test return value.
2960
2961         * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
2962         * toplev.c, final.c, rtl.h: Adjust.
2963
2964 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
2965
2966         * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
2967         * configure.in: Look for makeinfo in the unified tree, then
2968         for a system makeinfo which is sufficiently new.
2969         * Makefile.in: If configure says makeinfo is too old, don't
2970         build or install Info documentation.
2971
2972 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
2973
2974         * cpphash.c (collect_params): Fix off-by-one error.
2975         (dump_hash_helper): Dump all four macro nodetypes.
2976
2977 2000-05-02  Jakub Jelinek  <jakub@redhat.com>
2978
2979         * cpphash.c (trad_stringify): Adjust p after stringification as
2980         well.
2981
2982 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
2983
2984         * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
2985         (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
2986
2987         * cppfiles.c (file_cleanup): Delete.
2988         * cpphash.c (macro_cleanup): Delete.
2989         (collect_objlike_expansion, collect_funlike_expansion,
2990         macarg, scan_arguments): Remove CPP_POP case.
2991
2992         * cpplex.c (null_cleanup): Delete.
2993         (cpp_pop_buffer): Do the work that was done in the cleanups
2994         here.  Call _cpp_unwind_if_stack from here.
2995         (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
2996         cpp_scan_buffer): Run until we see CPP_EOF and the top of
2997         stack is the buffer _below_ the one we stacked.
2998         (cpp_get_token): Always pop an exhausted buffer.  Return
2999         CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
3000         * cpplib.c (skip_if_group): Don't call cpp_get_token to
3001         increment the line number.
3002         (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
3003
3004         * fix-header.c (read_scan_file) [parsing getchar()]: Run until
3005         we see CPP_EOF and the top of stack is the buffer _below_ the
3006         one we stacked.
3007         * scan-decls.c: Likewise.
3008
3009 2000-05-02  Andrew Haley  <aph@cygnus.com>
3010
3011         * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
3012         where this function is called for the second time on a decl that
3013         has had its section info changed in such a way as to move it out
3014         of small data/bss.  
3015         * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
3016
3017 2000-05-01  Richard Henderson  <rth@cygnus.com>
3018
3019         * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
3020         the sequence we're moving, not to merge_bb->head.
3021
3022 2000-05-01  Richard Henderson  <rth@cygnus.com>
3023
3024         * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
3025         reference to alpha/t-linux.
3026         (alpha*-*-linux-gnu*): Likewise.
3027         * configure: Rebuild.
3028
3029         * calls.c (expand_call): Don't emit reg notes for a sibcall.
3030
3031         * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
3032         if not in SSA form.
3033
3034         * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
3035
3036 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
3037
3038         * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
3039         TREE_THIS_VOLATILE.
3040
3041 2000-05-01  Richard Henderson  <rth@cygnus.com>
3042
3043         * ifcvt.c (noce_emit_cmove): Conditionally compile call to
3044         emit_conditional_move.
3045
3046 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
3047
3048         * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
3049         as the dynamic linker.
3050
3051 2000-05-01  Zack Weinberg  <zack@wolery.cumb.org>
3052
3053         * cppfiles.c (open_include_file): Open file in blocking mode.
3054         (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
3055         Only exclude block devices and directories.
3056
3057         * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
3058         static.  Allocate the hashnode and its string in the same
3059         block of memory.
3060         (del_HASHNODE): Don't free h->name.
3061         (_cpp_lookup): If there is no entry for this string, create
3062         one, of type T_VOID.
3063         (_cpp_lookup_slot): Delete.
3064         * cpphash.h: Update prototypes.
3065
3066         * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
3067         not hp == NULL.
3068         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
3069         do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
3070         node here, just fill in the value field properly.  "Delete"
3071         entries by setting the value field to T_VOID.  Check for
3072         hp->type == T_VOID, not hp == NULL.
3073
3074         * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
3075         * cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
3076         hashtab.h.
3077
3078 2000-05-01  Alexandre Oliva  <aoliva@cygnus.com>
3079
3080         * config/mn10300/mn10300.c (print_operand_address): Do not add
3081         zero to SP.
3082
3083         * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
3084         adjusted by less than 256 bytes, use ret regardless of having any
3085         callee-saved register to restore.
3086
3087 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
3088
3089         * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
3090
3091 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
3092
3093         * config/i386/djgpp.h (INT_ASM_OP): Define.
3094         (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
3095         (ASM_WEAKEN_LABEL): Define.
3096         (MASK_BNU210): Define.
3097         (SUBTARGET_SWITCHES): Define.
3098         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
3099         (MAKE_DECL_ONE_ONLY): Define.
3100         (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
3101
3102 2000-05-01  Mumit Khan  <khan@xraylith.wisc.edu>
3103
3104         * i386/cygwin.h (INT_ASM_OP): Define.
3105
3106 Mon May  1 18:20:06 2000  Denis Chertykov  <denisc@overta.ru>
3107
3108         * config/avr/avr.c (address_cost): renamed to avr_address_cost.
3109         * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
3110
3111 Mon May  1 17:50:44 2000  Denis Chertykov  <denisc@overta.ru>
3112
3113         * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
3114         __tmp_reg__ and __zero_reg__ initialization.
3115
3116 2000-04-30  Richard Henderson  <rth@cygnus.com>
3117
3118         * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
3119
3120         * ifcvt.c (noce_process_if_block): Fail the conversion if X is
3121         referenced bewteen the condition and the jump.  Don't delete
3122         anything but the jump.
3123
3124 Sun Apr 30 22:48:24 2000  Jason Eckhardt  <jle@cygnus.com>
3125
3126         * bb-reorder.c (scope_def): New struct.
3127         (scope_forest_info): New struct.
3128         (struct reorder_block_def): New member "scope".
3129         (REORDER_BLOCK_SCOPE): New macro.
3130         (relate_bbs_with_scopes): New function and prototype.
3131         (make_new_scope): Likewise.
3132         (build_scope_forest): Likewise.
3133         (remove_scope_notes): Likewise.
3134         (insert_intra_1): Likewise.
3135         (insert_intra_bb_scope_notes): Likewise.
3136         (insert_inter_bb_scope_notes): Likewise.
3137         (rebuild_scope_notes): Likewise.
3138         (free_scope_forest_1): Likewise.
3139         (free_scope_forest): Likewise.
3140         (dump_scope_forest): Likewise.
3141         (dump_scope_forest_1): Likewise.
3142         (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
3143         Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
3144         block.
3145         (reorder_basic_blocks): Added calls to build_scope_scope_forest
3146         and remove_scope_notes before reordering is done. Added calls to
3147         rebuild_scope_notes, free_scope_forest, and reorder_blocks after
3148         after reordering is done.
3149
3150 2000-40-30  Bruce Korb  <bkorb@gnu.org>
3151
3152         * fixinc/inclhack.def:  Added definitions needed by OSR5,
3153         removed two stale entries (defined away with OLD_CPP).
3154         * fixinc/inclhack.sh: regen
3155         * fixinc/fixincl.x: regen
3156
3157 2000-04-30  Richard Henderson  <rth@cygnus.com>
3158
3159         * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
3160         from the last insn in the sequence.
3161
3162 2000-04-30  Zack Weinberg  <zack@wolery.cumb.org>
3163
3164         * cpplex.c (cpp_idcmp): New function.
3165         * cpplib.h: Prototype it.
3166         * scan_decls.c (scan_decls): Use it to inspect token names.
3167         * fix-header.c (read_scan_file): Likewise.  Set system_header_p on
3168         the file being run through the preprocessor.
3169         (check_macro_names): Provide length of token to cpp_defined.
3170
3171         * Makefile.in: Remove stale warning message.
3172
3173         * cppfiles.c (redundant_include_p): Provide length of token to
3174         cpp_defined.
3175         * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
3176         values are unsigned int.
3177         (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
3178         (_cpp_lookup_slot): Do not calculate the hash, either.
3179         * cpphash.h: Update prototypes.
3180         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
3181         Hashes are unsigned int.  Calculate hash here, pass by value
3182         to _cpp_lookup_slot.
3183
3184 2000-04-30  Bernd Schmidt  <bernds@cygnus.co.uk>
3185
3186         * simplify-rtx.c (check_value_useless): Delete function.
3187         (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
3188         by hand.
3189         (cselib_invalidate_regno): Likewise.
3190         (cselib_invalidate_mem_1): Likewise.
3191         (references_value_p): Recognize useless values by the fact that they
3192         have no locations.
3193         (discard_useless_values): Likewise.
3194         (cselib_record_set): This may turn a useless value
3195         into a useful one.
3196
3197 2000-04-30  Richard Henderson  <rth@cygnus.com>
3198
3199         * config/d30v: New port.
3200
3201         * configure.in (d30v-*): Set fp format.
3202         * configure: Rebuild.
3203
3204 2000-04-30  Richard Henderson  <rth@cygnus.com>
3205
3206         * ifcvt.c: New file.
3207         * Makefile.in (OBJS): Add it.
3208         (ifcvt.o): New target.
3209         * jump.c (jump_optimize_1): Remove all code related to if-conversion,
3210         and conditional arithmetic.
3211         (find_insert_position): Remove.
3212         * timevar.def (TV_IFCVT, TV_IFCVT2): New.
3213         * toplev.c (DFI_ce, DFI_ce2): New.
3214         (dump_file): Add ce and ce2 dumps.
3215         (rest_of_compilation): Run if_convert a couple o times.  Set
3216         cse_not_expected after cse2.  Don't set no_new_pseudos until
3217         after sched1 or recompute_reg_usage.
3218
3219 2000-04-30  Richard Henderson  <rth@cygnus.com>
3220
3221         * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
3222         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
3223
3224 2000-04-30  Richard Henderson  <rth@cygnus.com>
3225
3226         * flow.c (struct reg_cond_life_info): New.
3227         (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
3228         (init_propagate_block_info): Initialize them.
3229         (free_propagate_block_info): Destruct them.
3230         (mark_set_1): Consider conditional life before killing a register.
3231         (mark_regno_cond_dead): New.
3232         (free_reg_cond_life_info): New.
3233         (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
3234         (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
3235         (mark_used_reg): Record conditional life.
3236
3237         * haifa-sched.c (schedule_insns): Disable death counting
3238         sanity check for HAVE_conditional_execution.
3239
3240 2000-04-30  Richard Henderson  <rth@cygnus.com>
3241
3242         * Makefile.in (TIMEVAR_H): New.
3243         (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
3244         (timevar.h): Remove rule.
3245
3246 2000-04-29  Richard Henderson  <rth@cygnus.com>
3247
3248         * config/alpha/crtend.asm: Use C comments instead of #.
3249         * config/alpha/crtbegin.asm: Likewise.  Mark __dso_handle hidden.
3250
3251         * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
3252
3253 2000-04-29  Zack Weinberg  <zack@wolery.cumb.org>
3254
3255         * cpphash.h (enum node_type: Take out T_MCONST.
3256         (union hashval): Move into struct hashnode.
3257         (struct hashnode): Pack tighter.  Remove file, line, col
3258         members.
3259         * cpphash.c: Constify most of the macro-definition structures.
3260         (struct definition): Replace by struct object_defn
3261         and struct funct_defn.  Put file, line, column information
3262         here.  All users updated to match.
3263         (_cpp_create_definition, _cpp_macroexpand): Remove special
3264         case for #define WORD OTHERWORD.
3265         * cpplib.c (do_undef): Remove T_MCONST case.
3266
3267         * cpphash.h: Move struct reflist, struct definition, and the
3268         DEFINITION typedef to cpphash.c.  Use 'struct definition *' in
3269         union hashval.  _cpp_free_definition takes a HASHNODE pointer.
3270         * cpphash.c (_cpp_free_definition): Free data pointed to by
3271         MCONST, XCONST, MACRO, and FMACRO nodes properly.
3272         (_cpp_create_definition, del_HASHNODE): Just call
3273         _cpp_free_definition to clear out a hashnode.
3274         * cpplib.c (do_pragma_poison): Likewise.
3275
3276 Sat Apr 29 12:25:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
3277
3278         * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
3279         LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
3280         FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
3281         (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
3282         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
3283         REGNO_AM33_P): Redefine in terms of the new macros.
3284         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3285         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
3286         STRUCT_VALUE): Likewise.
3287         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
3288         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise.  Moved.
3289
3290 Sat Apr 29 01:18:45 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3291
3292         * regmove.c (struct record_stack_memrefs_data): New.
3293         (record_stack_memrefs): New function.
3294         (combine_stack_adjustments_for_block): Use it.
3295
3296 Sat Apr 29 01:15:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3297
3298         * calls.c (calls_function_1):  Propertly handle TREE_LIST expressions;
3299         use special_function_p to detect alloca.
3300
3301 Fri Apr 28 16:30:33 2000  Marc Espie <espie@cvs.openbsd.org>
3302
3303         * gcc.texi: Fixes for makeinfo 4.0 --html.
3304
3305 2000-04-28  Zack Weinberg  <zack@wolery.cumb.org>
3306
3307         * pcp.h: Delete file.
3308
3309 2000-04-28  Kazu Hirata  <kazu@hxi.com>
3310
3311         * h8300.c (function_epilogue): Clean up flags when the last insn
3312         in a function is a barrier.
3313
3314 2000-04-28  Chris Demetriou  <cgd@sibyte.com>
3315
3316         * configure.in (sparc-hal-solaris2*): protect [] glob from
3317         my expansion.
3318         (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3319         rather than hard-coded constants in target_cpu_default2.
3320         * configure: Regenerate.
3321
3322 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
3323
3324         * tree.c (get_callee_fndecl): Extract the initial value from
3325         a readonly decl.
3326
3327 2000-04-28  Richard Henderson  <rth@cygnus.com>
3328
3329         * varasm.c (record_constant_1): Record the CODE_LABEL when
3330         taking the address of a LABEL_REF.
3331
3332 2000-04-28  Richard Henderson  <rth@cygnus.com>
3333             Jan Hubicka  <jh@suse.cz>
3334
3335         * calls.c (combine_pending_stack_adjustment_and_call): Return the
3336         adjustment; don't do the stack adjust.
3337         (expand_call): Call compute_argument_block_size right before
3338         allocating the block; update comment; don't do alignment sanity
3339         checking for sibling call; use args_size instead of
3340         unadjusted_args_size before args_size is adjusted.  Use
3341         combine_pending_stack_adjustment_and_call to compute stack adjust
3342         for must_preallocate case.
3343
3344         * expr.c (push_block): Remove shadow `temp' in inner scope.
3345
3346 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
3347
3348         * toplev.c (rest_of_compilation): Call
3349         note_deferral_of_defined_inline_function even if the function
3350         can't be inlined.
3351
3352 2000-04-28  Scott Bambrough  <scottb@netwinder.org>
3353
3354         * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3355
3356 2000-04-28  Richard Henderson  <rth@cygnus.com>
3357
3358         * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3359
3360 2000-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3361
3362         * timevar.c (init_timevar): DeANSIfy function definition.
3363
3364 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
3365
3366         * Makefile.in (timevar.o): Depend on flags.h.
3367         * timevar.c (unused_stack_instances): New variable.
3368         (timevar_push): Take a timevar_stack_def from
3369         unused_stack_instances if available.
3370         (timevar_pop): Push the popped timevar_stack_def onto
3371         unused_stack_instances.
3372         (TIMEVAR_ENABLE): New macro.
3373         (timevar_def): Make standalone a 1-bit field.  Add field used.
3374         (get_time): Rename parameter to now.  Return after clearing it if
3375         not TIMEVAR_ENABLE.
3376         (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3377         (timevar_pop): Likewise.
3378         (timevar_stop): Likewise.
3379         (timevar_push): Likewise.  Mark the timing variable as used.
3380         (timevar_start): Likewise.
3381         (timevar_print): Do nothing if not TIMEVAR_ENABLE.  Don't print
3382         timevars that were never used.
3383
3384 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
3385
3386         * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3387         always TREE_READONLY.
3388
3389 2000-04-27  Ulrich Drepper  <drepper@cygnus.com>
3390
3391         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3392         for call instruction with mode QImode.
3393
3394 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
3395
3396         * Makefile.in (OBJS): Add timevar.o.
3397         (toplev.o): Depend on timevar.h.
3398         (ggc-simple.o): Likewise.
3399         (ggc-page.o): Likewise.
3400         (timevar.o): New rule.
3401         (timevar.h): New rule.
3402
3403         * timevar.h: New file.
3404         * timevar.c: Likewise.
3405         * timevar.def: Likewise.
3406
3407         * toplev.h (gc_time, parse_time, varconst_time): Remove.
3408         * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3409         throughout.
3410         (TIMEVAR): Remove macro.
3411         (gc_time, parse_time, varconst_time, integration_time, jump_time,
3412         cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3413         flow_time, combine_time, regmove_time, sched_time,
3414         local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3415         sched2_time, dbr_sched_time, reorder_blocks_time,
3416         rename_registers_time, shorten_branch_time, stack_reg_time,
3417         to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3418         all_time): Remove.
3419         (compile_file): Don't initialize time variables.  Call
3420         init_timevar and start TV_TOTAL timer.  Call timevar_print instead
3421         of many calls to print_time.
3422         (rest_of_compilation): Add timing for reload_cse_regs.
3423         (get_run_time): Removed to timevar.c.
3424         (print_time): Likewise.
3425         (get_run_time): Implement using TV_TOTAL time variable.
3426         (print_time): Get total run time from get_run_time.
3427         * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3428         computing elapsed time explicitly.
3429         * ggc-simple.c (ggc_collect): Likewise.
3430         (gc_time): Remove declaration.
3431
3432 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
3433
3434         * calls.c (combine_pending_stack_adjustment_and_call): New function.
3435         (expand_call): Use it.
3436
3437 2000-04-27  Jan Hubicka  <jh@suse.cz>
3438
3439         * flow.c (mark_set_1):  Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3440         fields.
3441
3442 Thu Apr 27 12:47:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
3443
3444         * config/mn10300/mn10300.md (movhi): Simplify.  Prefer data
3445         registers.
3446
3447 Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3448
3449         * function.c (epilogue_done): Pass whole insn to record_insns.
3450
3451 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3452
3453         * cse.c (CSE_ADDRESS_COST): Remove.
3454         (find_best_addr): Add new parameter "MODE", use address_cost instead
3455         of CSE_ADDRESS_COST
3456         (address_cost): New.
3457         (fold_rtx): Update call of find_best_addr.
3458         * rtl.h (address_cost): Declare.
3459         * loop.c (general_induction_var): Add new parameter "MODE", use
3460         address_cost instead of ADDRESS_COST
3461         (init_loop): Use address_cost instead of ADDRESS_COST.
3462         (check_insn_for_givs): Update call of general_induction_var.
3463         (find_mem_givs): Likewise.
3464         (consec_sets_giv): Likewise.
3465         * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3466         * i386.c (ix86_address_cost): New.
3467         * i386-protos.h (ix86_address_cost): Declare.
3468
3469 Thu Apr 27 11:45:16 2000  Alexandre Oliva  <aoliva@cygnus.com>
3470
3471         * config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
3472         registers.
3473
3474 Thu Apr 27 16:11:00 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3475
3476         * expr.c (store_expr): Use clear_storage instead of direct memset
3477         libcall.
3478
3479 Thu Apr 27 10:36:51 2000  Alexandre Oliva  <aoliva@cygnus.com>
3480
3481         * config/mn10300/mn10300.c (mn10300_address_cost): Test
3482         ASHIFT, AND and LABEL_REF.
3483
3484 Thu Apr 27 15:08:46 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3485
3486         * invoke.texi (-foptimize-sibling-calls): Fix.
3487
3488 Thu Apr 27 14:54:22 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3489
3490         * loop.c (load_mems)  Don't use hard registers for the hoisting.
3491
3492         * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3493         calculation; rename const_equiv array in the preconditioning code
3494         from loop_unroll to loop_unroll_precondition
3495
3496 2000-04-27  Richard Henderson  <rth@cygnus.com>
3497
3498         * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3499         add new_set.
3500         (propagate_one_insn): Clear it.  Don't update reg_live here.
3501         (init_propagate_block_info): Update for pbi member changes.
3502         (free_propagate_block_info): Likewise.
3503         (mark_set_1): Know that zero_extract, sign_extract, and
3504         strict_low_part don't kill their argument.  Alter hard subregs.
3505         Update new_set for non-CLOBBER sets.  Update reg_live.
3506         (find_auto_inc): Update reg_live, not new_dead.
3507         (mark_used_reg): Update reg_live, not new_live.  Examine new_set
3508         to determine if the reg in question was set this insn.  Only update
3509         reg info with PROP_REG_INFO.
3510
3511 2000-04-26  Richard Henderson  <rth@cygnus.com>
3512
3513         * flow.c (allocate_reg_life_data): Set max_regno here ...
3514         (life_analysis): ... not here.
3515
3516         * flow.c (calculate_global_regs_live): Force stack pointer
3517         live at end.
3518
3519 2000-04-26  Richard Henderson  <rth@cygnus.com>
3520
3521         * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
3522         commit change group changes.
3523         (invert_exp_1): Similarly.
3524         (redirect_exp, invert_exp): Use them.
3525         (redirect_jump_1): New.
3526         (invert_jump_1): New.
3527         (jump_optimize_1): Remove code subsumed by condexec.c.
3528         * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3529
3530 2000-04-26  Richard Henderson  <rth@cygnus.com>
3531
3532         * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3533
3534         * genconfig.c (main): Set all HAVE_foo to 1.
3535
3536         * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3537
3538 2000-04-26  Alex Samuel  <samuel@codesourcery.com>
3539
3540         * invoke.texi: Document -fssa flag.
3541
3542 2000-04-26  Richard Henderson  <rth@cygnus.com>
3543
3544         * flow.c (count_reg_sets_1): Remove.
3545         (count_reg_sets, count_reg_references): Remove.
3546         (recompute_reg_usage): Implement with update_life_info.
3547         Reallocate life data.
3548
3549 2000-04-26  Richard Henderson  <rth@cygnus.com>
3550
3551         * flow.c (update_life_info): Consider blocks null to mean the
3552         universal set.
3553         (calculate_global_regs_live): Likewise.
3554         (life_analysis): Do that instead of collecting all_blocks.
3555
3556 2000-04-26  Richard Henderson  <rth@cygnus.com>
3557
3558         * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3559         a still-valid conditional jump.
3560
3561 2000-04-26  Richard Henderson  <rth@cygnus.com>
3562
3563         * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
3564
3565         * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3566         * flow.c (calculate_loop_depth): Remove.
3567         * output.h (calculate_loop_depth): Don't declare.
3568         * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3569         inline; run estimate_probability at the same time.
3570
3571 2000-04-26  Neil Booth  <NeilB@earthling.net>
3572
3573         * cpplib.h: "~=" is not a single pp-token.
3574         * cpplex.c: Correct commentary.
3575
3576 2000-04-26  Richard Henderson  <rth@cygnus.com>
3577
3578         * flow.c (mark_set_1): New arguments code and flags; update all
3579         callers.  Track regno_first and regno_last; do HARD_REGNO_NREGS
3580         test in one place.  Tidy flags tests.  Don't bias REG_N_REFS by
3581         loop_depth when optimizing for size.  Do new_dead update after
3582         emitting REG_UNUSED notes.  Merge mark_set_reg code.
3583         (mark_set_reg): Remove.
3584         (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3585         arrange to not emit REG_UNUSED notes.
3586
3587 2000-04-26  Richard Henderson  <rth@cygnus.com>
3588
3589         * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3590         * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3591
3592 2000-04-26  Richard Henderson  <rth@cygnus.com>
3593
3594         * flow.c (propagate_one_insn): Break out from propagate_block.
3595         (init_propagate_block_info): Likewise.
3596         (free_propagate_block_info): Likewise.
3597         (propagate_block): Use them.  Export.
3598         * basic-block.h: Declare them all.
3599
3600 2000-04-26  Richard Henderson  <rth@cygnus.com>
3601
3602         * basic-block.h (life_analysis): Declare here ...
3603         * output.h: ... not here.
3604         * flow.c (life_analysis): Remove nregs parameter; replace
3605         remove_dead_code with flags.  Remove ssa dead code check.
3606         Only init alias analysis if we'll use it.
3607         * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3608         * ssa.c (convert_to_ssa): Likewise.
3609         (convert_from_ssa): Likewise.
3610         * toplev.c (rest_of_compilation): Likewise.
3611
3612 2000-04-26  Richard Henderson  <rth@cygnus.com>
3613
3614         * flow.c (flow_delete_block): Rename from delete_block.  Export.
3615         * basic-block.h (flow_delete_block): Declare.
3616
3617 2000-04-26  David S. Miller  <davem@redhat.com>
3618
3619         * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3620         taking a PATTERN of it.
3621
3622 2000-04-26  <NeilB@earthling.net>
3623
3624         * cpplex.c (spell_other, spell_char): Remove.
3625         (SPELL_CHAR): New.
3626         (token_spelling, trigraph_map): Use unsigned chars.
3627         (_cpp_lex_line): Tidy up the switch statement.
3628         * cpplib.h: Implement spell_char with spell_string.
3629         (C): New.
3630
3631 2000-04-26  <RodneyBrown@pmsc.com>
3632
3633         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3634         * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3635
3636 2000-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3637
3638         * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3639         reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3640         dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3641         dwarf2out_return_save, dwarf2out_return_reg,
3642         dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3643         add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3644         gen_compile_unit_die, dwarf2out_init): Constify a char*.
3645
3646         * dwarf2out.h (dwarf2out_init): Likewise.
3647
3648         * dwarfout.c (filename_entry, primary_filename, last_filename,
3649         type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3650
3651         * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3652         dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3653         dwarf2out_return_reg): Likewise.
3654
3655 2000-04-26  Andreas Jaeger  <aj@suse.de>
3656
3657         * extend.texi (Function Attributes): Fix description of pure
3658         attribute.
3659
3660 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
3661
3662         * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3663         before calling rest_of_compilation.
3664
3665 2000-04-26  Andreas Jaeger  <aj@suse.de>
3666
3667         * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3668         last patch.
3669
3670 2000-04-25  Richard Henderson  <rth@cygnus.com>
3671
3672         * cse.c (cse_insn): Emit barrier after unconditional jump.
3673
3674         * calls.c (expand_call): Disable tail call generation once
3675         rtx_equal_function_value_matters is false.
3676
3677         * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3678         like EDGE_EH edges.
3679
3680 2000-04-25  Jason Merrill  <jason@casey.cygnus.com>
3681
3682         * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3683
3684         * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3685
3686         * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3687         is the primary DIE for a member function.
3688         (gen_decl_die): Call set_decl_origin_self here.
3689         * dwarfout.c (output_decl): And here.
3690         * integrate.c (output_inline_function): Not here.
3691         Don't clear DECL_INLINE until after calling rest_of_compilation.
3692         (set_decl_origin_self): No longer static.
3693         * tree.h: Add prototype.
3694         * toplev.c (note_deferral_of_defined_inline_function): Only write
3695         out abstract instance for actual inlines.
3696
3697 2000-04-25  Alexandre Oliva  <aoliva@cygnus.com>
3698
3699         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3700         EXTENDED_REGS only if TARGET_AM33.
3701         * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3702         SP_REGS to register allocation and reloading unless absolutely
3703         necessary.
3704         (movsi3): Remove special-case of adding non-constants to SP.
3705
3706 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3707
3708         * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3709         INCLUDES to search and does not provide any of its own.  Also it
3710         now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3711         parameters.  Also it does not call AC_DEFINE.
3712         (gcc_AC_NEED_DECLARATIONS): Likewise.  Also this macro now calls
3713         AC_DEFINE and provides for automatic entries for autoheader.
3714         (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3715
3716         * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3717         so we can pass -I flags and include gansidecl.h/system.h in this
3718         test.
3719
3720         * acconfig.h: Delete all NEED_DECLARATION_* entries.
3721
3722 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3723
3724         * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3725         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3726         ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3727
3728         * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3729         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3730         ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3731         for these macros.  Clean up spacing and linewraps.
3732
3733 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
3734
3735         * calls.c (expand_call): Use get_callee_fndecl.
3736
3737         * print-tree.c (print_node): Print the chain of an _EXPR.
3738
3739 Tue Apr 25 16:16:04 2000  Andrew MacLeod  <amacleod@cygnus.com>
3740                           Jim Wilson  <wilson@cygnus.com>
3741                           Andrew Haley  <aph@cygnus.com>
3742
3743         * config/ia64/crtbegin.asm: Add IA-64 unwind support.  Correct alloc
3744         and gp save/restore problems.
3745         * config/ia64/crtend.asm: Add IA-64 unwind support.
3746         * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3747         in fr_pad_size calculation.
3748         (save_restore_insns): Move PR save area.  Correct uses of
3749         RTX_FRAME_RELATED_P.
3750         (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3751         (ia64_expand_epilogue): Add eh_epilogue support.
3752         (ia64_function_prologue): Emit .prologue directive.
3753         (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3754         (ia64_override_options): Set init_machine_status and
3755         mark_machine_status.
3756         (rtx_needs_barrier): Handle bsp reads and writes.
3757         (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3758         New static variables.
3759         (process_set, process_for_unwind_directive): New functions.
3760         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3761         ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3762         ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3763         macros.
3764         (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3765         (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3766         (struct machine_function): Define.
3767         * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3768
3769 2000-04-25  Bruce Korb  <bkorb@gnu.org>
3770
3771         * fixinc/Makefile.in: make the removal of old programs more
3772         robust
3773         * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3774         install-bin and install-sh
3775
3776 2000-04-25  Nick Clifton  <nickc@cygnus.com>
3777
3778         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3779         defined, define to return zero.
3780         (function_cannot_inline_p): If a function has any target
3781         specific attributes, then use the macro
3782         FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3783         whether it can be inlined.  If it cannot, issue a suitable
3784         explanation.
3785
3786         * tm.texi: Add a new node 'Inlining' to document the new macro
3787         FUNCTION_ATTRIBUTE_INLINABLE_P.
3788
3789 2000-04-25  Zack Weinberg  <zack@wolery.cumb.org>
3790
3791         * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3792         commentary.
3793
3794 2000-04-25  Neil Booth  <NeilB@earthling.net>
3795
3796         Restore previous patch, plus the following fixes:
3797
3798         * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
3799         flags, not CPP_OPEN_PAREN.
3800         * cpplex.c (expand_token_space, init_token_list,
3801         cpp_free_token_list): Put the dummy token at list->tokens[-1].
3802         (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
3803
3804 Tue Apr 25 14:06:40 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3805
3806         * config/i386/freebsd.h (INT_ASM_OP): Define.
3807
3808 Tue Apr 25 14:51:07 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3809
3810         * loop.c (strength_reduce): Fix typo in the last checkin.
3811
3812 Tue Apr 25 07:33:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3813
3814         * stor-layout.c (finalize_record_size): Simplify to use existing
3815         functions.
3816         (compute_record_mode): No longer static.
3817         * tree.h (compute_record_mode): New declaration.
3818
3819 2000-04-25  Neil Booth  <NeilB@earthling.net>
3820
3821         * Revert my patch below until cause of build failures
3822         determined.
3823
3824 2000-04-25  Richard Henderson  <rth@cygnus.com>
3825
3826         * combine.c (combine_instructions): Add missing argument
3827         to try_combine.
3828
3829         * toplev.c (rest_of_compilation): Delay sibcall optimization
3830         until after emit_eh_context.
3831
3832 2000-04-24  Nick Clifton  <nickc@redhat.com>
3833
3834         * combine.c (combine_instructions): Do not try to combine a
3835         sequence of insns when the second insn has been replaced by a
3836         note.
3837
3838 Mon Apr 24 17:34:18 2000  Mumit Khan  <khan@xraylith.wisc.edu>
3839
3840         * gcc.c (load_specs): New static function.
3841         (read_specs): Use it.
3842
3843         * gcc.c (lookup_compiler): Make multiple passes for case
3844         insensitive filesystems.
3845
3846 2000-04-24  Neil Booth  <NeilB@earthling.net>
3847
3848         * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
3849         * cpphash.h (_cpp_check_directive): new.
3850         * cpplex.c (handle_newline, cpp_free_token_list,
3851         init_trigraph_map, trigraph_ok, trigraph_replace,
3852         backslash_start, skip_block_comment, skip_line_comment,
3853         skip_whitespace, parse_name, parse_number, parse_string,
3854         copy_comment, _cpp_lex_line, spell_char, spell_string,
3855         spell_comment, spell_name, spell_other, _cpp_lex_file,
3856         _cpp_output_list): new.
3857         (expand_name_space): take length argument.
3858         (init_token_list): add comment list initialisation.
3859         (cpp_scan_line): use auto_expand_name_space.  PREV_WHITESPACE
3860         instead of HSPACE_BEFORE.
3861
3862         * cpplib.c (_cpp_check_directive): new
3863         * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
3864         DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
3865         (HSPACE_BEFORE): delete.
3866         (TTYPE_TABLE): rearrange.
3867         (struct cpp_toklist): update.
3868
3869 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3870
3871         * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
3872         gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
3873         argument form of AC_DEFINE.
3874
3875         * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
3876         HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
3877         WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
3878         HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
3879         HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
3880
3881         * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
3882
3883 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3884
3885         * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
3886         deduced.h): Use -isystem, not -I, for including system headers.
3887
3888 2000-04-24  Nick Clifton  <nickc@cygnus.com>
3889
3890         * config/fr30/fr30.md (addsi3): Do not use small add instruction if
3891         the source register is the frame pointer or arg pointer.
3892         (addsi3_small_int): Disallow if source register is the frame
3893         pointer or arg pointer.
3894
3895 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3896
3897         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
3898         call to AC_MSG_RESULT.
3899
3900 2000-04-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
3901
3902         * invoke.texi: Correct grammatical errors, document
3903         -fno-gnu-keywords as identical to -fno-asm for C++.
3904
3905 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3906
3907         * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
3908         GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
3909         GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
3910         AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
3911         EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
3912
3913         * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
3914         GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
3915         GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
3916         GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
3917         new macros names.
3918
3919 2000-04-24  Mumit Khan  <khan@xraylith.wisc.edu>
3920
3921         * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
3922         (pop_alignment): Likewise.
3923         (handle_pragma_token): Likewise.
3924
3925 2000-04-24  Robert Lipe <robertlipe@usa.net>
3926
3927         * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
3928
3929 2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>
3930
3931         * combine.c (try_combine): Update reg_nonzero_bits of
3932         newi2pat before newpat.
3933
3934 Mon Apr 24 10:19:48 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3935
3936         * loop.c (strength_reduce): Simplify test to INSN_P.
3937         (record_giv): Attempt to simplify the add value, use CONSTANT_P
3938         expressions instead of CONST_INT.
3939         (express_from_1): Likewise.
3940
3941 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
3942
3943         * regs.h (reg_n_max): Don't declare.
3944         * flow.c (reg_n_max): Don't define.
3945         * regclass.c (renumber): Don't initialize to zero.
3946         (regno_allocated): Likewise.
3947         (reg_n_max): Define.
3948         (allocate_reg_info): Don't initialize unnecessarily.
3949
3950 Mon Apr 24 00:21:36 2000  Jeffrey A Law  (law@cygnus.com)
3951
3952         * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
3953         and blockage_p in the newly allocated attribute.
3954
3955 Sun Apr 23 20:16:49 2000  Alexandre Oliva  <aoliva@cygnus.com>
3956
3957         * config/mn10300/mn10300.md (addsi): `inc4' on address
3958         registers does not modify cc, but `inc' on an extended
3959         register does.
3960
3961 Sun Apr 23 16:24:35 2000  Denis Chertykov  <denisc@overta.ru>
3962
3963         * reload.c (find_equiv_reg): Checks all valueno regs
3964         as a reload_reg_p regs.
3965
3966 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
3967
3968         * cpphash.c (collect_objlike_expansion): Add sanity check.
3969         (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST.  If
3970         the buffer is the empty string, return.  Mark __DATE__ and
3971         __TIME__ as XCONST nodes, not MCONST.
3972         (_cpp_macroexpand): Avoid pushing an empty buffer.
3973         (funlike_macroexpand): Don't pop token_buffer here.
3974
3975 Sun Apr 23 18:37:53 2000  Alexandre Oliva  <aoliva@cygnus.com>
3976
3977         * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
3978         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
3979         (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
3980         (REGNO_OK_FOR_BASE_P): Define in terms of them.
3981         (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
3982         (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
3983         (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
3984
3985 Sun Apr 23 22:23:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3986
3987         * loop.c (simplify_giv_expr):  Be more agressive on simplifying
3988         constant MULT givs.
3989
3990 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
3991
3992         * cpphash.h (struct definition): Move file, line, col members...
3993         (struct hashnode): ... here.  Also add 'disabled' flag.
3994         (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
3995         T_IDENTITY.  Remove T_DISABLED.
3996         Update prototypes.
3997
3998         * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
3999         (collect_expansion): Split into collect_objlike_expansion and
4000         collect_funlike_expansion.
4001         (_cpp_macroexpand): Split out scan_arguments, stringify, and
4002         funlike_macroexpand.
4003         (_cpp_compare_defs): Rename compare_defs, make static.
4004         (_cpp_make_hashnode): Initialize hp->disabled.
4005         (macro_cleanup): Adjust for new token types.  Clear
4006         m->disabled.
4007         (_cpp_create_definition): Move code here to determine what
4008         sort of macro it is, and code to check for redefinitions, from
4009         do_define.  Implement a few simple cases without creating a
4010         full DEFINITION.
4011         (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
4012         Handle the simple cases.
4013         (push_macro_expansion): Set buf->has_escapes and hp->disabled
4014         here.
4015
4016         * cppinit.c (builtin_array): Change MCONST to XCONST
4017         everywhere.
4018         * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
4019         fix check for disabled and function-like macros.
4020         * cpplib.c (do_define): Move most logic to
4021         _cpp_create_definition.
4022         (do_undef): Handle new special token types.
4023
4024 Sun Apr 23 14:27:44 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4025
4026         * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
4027         of CONSTANT_P for mult_val; always use validate_change to update insn.
4028
4029 2000-04-22  Zack Weinberg  <zack@wolery.cumb.org>
4030
4031         * cpphash.c (trad_stringify, add_pat): New functions.
4032         (collect_expansion): Restore support for -traditional syntax.
4033         Use trad_stringify and add_pat.
4034         (_cpp_macroexpand): Restore support for -traditional semantics.
4035         * cpplex.c (_cpp_scan_line): Don't change space_before if we
4036         get a COMMENT token.
4037         (_cpp_lex_token): Provide COMMENT tokens to caller if
4038         traditional and parsing_define_directive.
4039         (skip_comment): Warn about // comments if -Wtraditional.
4040         * cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
4041         proper node type.
4042         (do_undef): Don't warn about undefining EMPTY nodes.
4043
4044 Sat Apr 22 22:35:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4045
4046         * loop.c (strength_reduce): Fix biv removal code.
4047
4048 2000-04-22  Richard Henderson  <rth@cygnus.com>
4049
4050         * predict.c (estimate_probability): Examine both sides of
4051         a branch for no exits.  Use 90% not 50% for predict taken.
4052         Reorg for one copy of note generation code.
4053
4054 2000-04-22  Richard Henderson  <rth@cygnus.com>
4055
4056         * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
4057
4058 2000-04-22  Richard Henderson  <rth@cygnus.com>
4059
4060         * diagnostic.c (init_output_buffer): Don't initialize format_args.
4061         (output_clear): Likewise.
4062         (output_printf): Use va_copy.
4063         (vline_wrapper_message_with_location): Likewise.
4064         (v_message_with_decl): Likewise.
4065         (line_wrapper_printf): VA_START infor buffer.format_args directly.
4066         * system.h (va_copy): Provide default implementation.
4067
4068 2000-04-22  Richard Henderson  <rth@cygnus.com>
4069
4070         * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
4071         the collected condition is not a constant.
4072
4073 2000-04-22  Gabriel Dos Reis  <gdr@codesourcery.com>
4074
4075         * diagnostic.h: New file.
4076
4077         * Makefile.in (diagnostic.o): Depends on diagnostic.h
4078
4079         * diagnostic.c: Tweak.  Rationalize the output logic.  Adjust
4080         various function prototypes.
4081         (diagnostic.h): #include.
4082         (struct output_buffer): Move into diagnostic.h.
4083         (get_output_prefix): Rename to output_get_prefix.  Export.
4084         (init_output_buffer): Export. Break out.  Ajust intialization.
4085         (output_space_left, output_append): Export.
4086         (output_newline): Rename to output_add_newline.  Export.
4087         (output_clear): Nullify additional output_buffer fields.
4088         (output_puts): Rename to output_add_string.  Export.
4089         (dump_output): Rename to output_flush_on.  Export.
4090         (build_location_prefix): Constify return-type.
4091         (emit_output_prefix): Rename to output_emit_prefix. Export.
4092         (set_real_maximum_length): New function.
4093         (output_set_maximum_length): Ditto
4094         (output_clear): Ditto.
4095         (output_add_character): Ditto.
4096         (output_add_integer): Ditto.
4097         (output_add_space): Ditto.
4098         (output_format): Ditto.
4099         (output_printf): Adjust buffer initialization.
4100         (vline_wrapper_message_with_location): Ditto.
4101         (v_message_with_decl): Ditto.  Adjust call to output_puts
4102         and get_output_prefix.
4103         (default_print_error_function): Adjust buffer intialization.
4104
4105 Sat Apr 22 06:45:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4106
4107         * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
4108         of VOID_TYPE.
4109
4110 Fri Apr 21 18:33:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
4111
4112         * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
4113         of explicit 0.
4114
4115 Fri Apr 21 18:30:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
4116
4117         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
4118         accurate data about SP moves.
4119
4120 Fri Apr 21 18:28:28 2000  Alexandre Oliva  <aoliva@cygnus.com>
4121
4122         * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
4123         aliases to AM33 registers.
4124
4125 Fri Apr 21 18:26:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
4126
4127         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
4128         to all EXTENDED bitmaps.
4129
4130 Fri Apr 21 18:17:12 2000  Alexandre Oliva  <aoliva@cygnus.com>
4131
4132         * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
4133         * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
4134         * config/mn10300/mn10300.c (mn10300_address_cost): New function.
4135
4136 Fri Apr 21 18:11:56 2000  Alexandre Oliva  <aoliva@cygnus.com>
4137
4138         * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
4139         the operand is not constant.
4140
4141 Fri Apr 21 14:58:29 2000  Denis Chertykov  <denisc@overta.ru>
4142
4143         * reload.c (find_equiv_reg): Checks all valueno and regno regs
4144         as a call-clobbered regs.
4145
4146 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4147
4148         * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
4149         * rtl.h: Likewise.
4150         * rtl.def: Update comment.
4151         * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
4152         * integrate.c (expand_inline_function): Likewise.
4153         * profile.c (branch_prob): Likewise.
4154         * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
4155         * print-rtl.c (print_rtx): Likewise.
4156         * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
4157         (reemit_notes): Likewise; also use enum insn_note.
4158
4159         * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
4160         (place_field): Properly compute know and actual alignment.
4161
4162         * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
4163         in proper format.
4164
4165         * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
4166         note for REG1.
4167
4168 2000-04-21  Zack Weinberg  <zack@wolery.cumb.org>
4169
4170         * cpphash.c (struct arg, struct arglist): Const-ify strings.
4171         (warn_trad_stringify, duplicate_arg_p): New helper functions.
4172         (collect_expansion): Rewrite to scan over a token list.
4173         Remove -traditional support.
4174         (collect_formal_parameters): Rename to collect_params; rewrite
4175         to scan over a token list.
4176         (_cpp_create_definition): Adjust to scan a token list.
4177         (_cpp_macroexpand): Remove -traditional support.
4178         (_cpp_compare_defs): Whitespace is now canonicalized.
4179         (comp_def_part): Delete function.
4180
4181         * cpphash.h: Update prototypes.
4182         * cpplex.c (init_token_list): Don't set lineno if there is no
4183         buffer.
4184         (pedantic_whitespace): New function.
4185         (_cpp_scan_line): Mark tokens that had hspace before.  Don't
4186         consume a newline.  Use pedantic_whitespace.
4187         (_cpp_lex_token): Remove support for -traditional macros.
4188         (_cpp_get_define_token): Delete.
4189         (_cpp_get_directive_token): Do the real work here.  Use
4190         pedantic_whitespace.
4191         (_cpp_init_input_buffer): Initialize pfile->directbuf.
4192
4193         * cpplib.c (get_macro_name): Delete.
4194         (do_define): Read the entire line into pfile->directbuf, then
4195         feed the token list to _cpp_create_definition.
4196         * cpplib.h (HSPACE_BEFORE): new define.
4197         (struct cpp_reader): Add a toklist member, "directbuf".
4198
4199         * predict.c (estimate_probability): New heuristic: if a jump
4200         branches around a block with no successors, predict it taken.
4201         Disentangle control flow.
4202
4203 2000-04-20  Richard Henderson  <rth@cygnus.com>
4204
4205         * loop.c (emit_iv_add_mult): Revert last change.
4206
4207 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
4208
4209         * cpplib.h (enum cpp_ttype): Add token types for all
4210         punctuators.  Distinguish pp-numbers from valid C numbers.
4211         Give some tokens better names.  Initialize from macro.
4212         (struct cpp_name, cpp_token, cpp_toklist): New data
4213         structures.
4214         Update prototypes.
4215         * cpplex.c (bump_column, expand_name_space,
4216         expand_token_space, init_token_list, cpp_output_list,
4217         _cpp_scan_line):  New functions.
4218         (output_line_command): Add third argument, new line number.
4219         * cpphash.h: Update prototypes.
4220         * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
4221         token names.
4222
4223 2000-04-20  Richard Henderson  <rth@cygnus.com>
4224
4225         * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
4226
4227 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
4228
4229         * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
4230         object pointed to.
4231
4232 Thu Apr 20 14:19:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4233
4234         * loop.c (emit_iv_add_mult):  Simplify it's input and emit
4235         REG_EQUAL note explaining the calculated value.
4236
4237         * calls.c (expand_call): Avoid unnecesary precalculation
4238         and outgoing parameters space guarding for sibling calls.
4239         (store_one_arg): Likewise.
4240
4241 Thu Apr 20 08:01:07 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4242
4243         * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
4244         (rest_of_compilation): Write sibling dump file and account
4245         for time as jump time.
4246         * invoke.texi: Update documentation on dump flags.
4247
4248 2000-04-19  Marek Michalkiewicz  <marekm@linux.org.pl>
4249
4250         * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
4251
4252 2000-04-19  Zack Weinberg  <zack@wolery.cumb.org>
4253
4254         * cpphash.c (special_symbol): Represent an empty macro with
4255         "\r \r " not just "\r ".
4256         (_cpp_macroexpand): Correct condition for the foo ( ) special
4257         case.
4258         (unsafe_chars): Handle EOF as second argument.
4259         (push_macro_expansion): Simplify test for removing escape at
4260         end.  Do not trim both escapes if there is no text in between.
4261
4262 2000-04-19  Jim Blandy  <jimb@redhat.com>
4263
4264         * dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
4265         of PTR_SIZE, when appropriate.
4266
4267 2000-04-19  Mark Mitchell  <mark@codesourcery.com>
4268
4269         * system.h (ONLY_INT_FIELDS): Make sure it is defined.
4270         (USE_ENUM_BITFIELDS): Fix typo.
4271
4272 Wed Apr 19 12:14:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4273
4274         * stor-layout.c (place_field): Set rli->offset_align properly.
4275
4276 2000-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4277
4278         * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
4279         INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
4280         PARM_BOUNDARY): Remove unnecessary casts.
4281
4282 Wed Apr 19 12:02:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4283
4284         * calls.c (precompute_arguments): Remove must_preallocate and
4285         args_size calls.
4286         (expand_call): Update call of precompute_arguments.
4287
4288         * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
4289         check_insn_for_givs): Break out from ...
4290         (strength_reduce) ... here; use for_every_insn_in_loop to call
4291         check_insn_for_givs.
4292         * loop.h (for_every_insn_in_loop): Declare.
4293         (loop_insn_callback): New type.
4294
4295 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
4296
4297         * cpplib.c (do_pragma_poison):  Strings in the token buffer are
4298         not nul-terminated.
4299
4300 Tue Apr 18 16:04:12 2000  Jim Wilson  <wilson@cygnus.com>
4301
4302         * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4303         flag_pic and RELOC.
4304
4305 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
4306
4307         * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4308
4309         * configure.in: Delete --disable-cpplib option and all
4310         references to cpp_main.
4311         * configure: Regenerate.
4312         * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4313         @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4314         cccp.o, cccp, or cppmain.  Link cppmain.o straight to
4315         cpp$(exeext).  Add --no-headers to makeinfo command line when
4316         generating INSTALL.  Install and uninstall cpp.1 manpage, not
4317         cccp.1.
4318         * install.texi: Delete all references to cexp.y/cexp.c.
4319         Delete ancient instructions for compiling GCC on 3b1.
4320         * INSTALL: Regenerate.
4321
4322         * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4323         mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4324         * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4325         cexp.c/cexp.y.
4326         * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4327         which is no longer tested anywhere.
4328
4329         * cppinit.c (handle_option): Don't run error message through
4330         gettext twice.
4331
4332 Tue Apr 18 14:16:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4333
4334         * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4335         * cpperror.c (hashtab.h): Now include.
4336         * cppexp.c (hashtab.h): Likewise.
4337         * cpplex.c (hashtab.h): Likewise.
4338         * cppfiles.c (hashtab.h): Likewise.
4339         (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4340         to htab_find_slot_with_hash.
4341         * cpphash.c (hashtab.h): Now include.
4342         (_cpp_lookup_slot): INSERT is now enum insert_option.
4343         * cpphash.h (_cpp_lookup_slot): Likewise.
4344         * cppinit.c (hashtab.h): Include earlier.
4345         (initialize_builtins): Pass enum to htab_find_slot.
4346         * cpplib.c (hashtab.h): Now include.
4347         (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4348         (do_pragma_poison, do_assert): Likewise.
4349         * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4350         htab_find_slot_with_hash.
4351         * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4352         * tree.c (type_hash_add): Likewise.
4353         (build1): Minor cleanup.
4354
4355         * ggc-common.c: Add missing blanks.
4356         * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4357         * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4358
4359         * stmt.c (mark_case_node): New function.
4360         (mark_case_nesting): Call it.
4361
4362         * expmed.c (emit_store_flag): If comparing two-word integer
4363         with zero, can optimize NE, EQ, GE, and LT.
4364
4365         * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4366         * conflict.c: Minor cleanups.
4367         * optabs.c: Add blank line
4368         * simplify-rtx.c: Minor cleanups.
4369
4370 2000-04-18  Stan Cox  <scox@cygnus.com>
4371
4372         * gengenrtl.c (genlegend): Fix misspelling.
4373
4374 2000-04-18  Robert Lipe  <robertlipe@usa.net>
4375
4376         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
4377         bitfields of the host compiler are not signed quantities.
4378         * config.in: Regenerate.
4379         * configure: Regenerate.
4380         * system.h (USE_ENUM_BITFIELDS): Added.
4381         (ENUM_BITFIELDS): Added.
4382         * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4383         (SHORT_ENUM_BUG): Deleted.
4384         * tree.h (tree_common): Members `code', `mode', `built_in_class',
4385         now ENUM_BITFIELD.
4386         * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4387         (CODE_FIELD_BUG): Likewise.
4388         * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4389         (OLD_CC): Likewise.
4390         * config/m68k/x-ccur (X_CFLAGS): Likewise.
4391
4392 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
4393
4394         * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4395         mark is active.
4396
4397 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
4398
4399         * cppexp.c (lex): Don't assume tokens are NUL terminated.
4400         * cpplib.c (do_include, do_import, do_include_next,
4401         read_line_number, detect_if_not_defined): Likewise.
4402         * cpphash.c (collect_expansion): Likewise.
4403         (special_symbol, _cpp_macroexpand): Check return from
4404         cpp_file_buffer.
4405         * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4406         macros.  Delete all uses.
4407
4408         * gcc.dg/cpp-mi.c: Add two more test cases.
4409         * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4410
4411 2000-04-17  Richard Henderson  <rth@cygnus.com>
4412
4413         * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4414         (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4415
4416 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
4417
4418         * function.c (expand_function_start): Use hard_function_value to
4419         compute the RTL to use for DECL_RESULT.
4420
4421 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4422
4423         * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4424         (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4425          x86_memory_mismatch_stall): New global variables.
4426         (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4427         alloved; fix load penalties for Athlon.
4428         * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4429         x86_memory_mismatch_stall): Declare.
4430         (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4431          TARGET_MEMORY_MISMATCH_STALL): New.
4432         * i386.md (athlon scheduling parameters): Fix latencies according to
4433         Athlon Optimization Manual.
4434         (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4435         vector.
4436         (fsqrt instruction patterns): Set athlon_decode to direct.
4437         (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4438         PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4439         (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4440         and TARGET_PARTIAL_REGISTER_STALL machines.
4441         (pushdf_nointeger): New pattern.
4442         (pushdf_integer): Rename from pushdf.
4443         (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4444         (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4445
4446 2000-04-17  Richard Henderson  <rth@cygnus.com>
4447
4448         * loop.c (canonicalize_condition): Add WANT_REG argument.
4449         Stop the search if we match it.
4450         * expr.h (canonicalize_condition): Update decl.
4451         * predict.c (expected_value_to_br_prob): Use it.  Track last
4452         expected value note.
4453         (find_expected_value): Remove.
4454
4455         * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4456
4457 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
4458
4459         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4460         (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4461         a plain file.
4462         * configure.in: Call AC_FUNC_MMAP_FILE.
4463         * configure: Regenerate.
4464         * config.in: Regenerate.
4465
4466         * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4467         * fixinc/fixincl.c: Likewise.
4468
4469 2000-04-17  Richard Henderson  <rth@cygnus.com>
4470
4471         * builtins.c (expand_builtin_expect): New.
4472         (expand_builtin): Call it.
4473         * builtins.def (BUILT_IN_EXPECT): New.
4474         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4475         * extend.texi: Document it.
4476
4477         * predict.c (expected_value_to_br_prob): New.
4478         (find_expected_value): New.
4479         * basic-block.h (expected_value_to_br_prob): Declare.
4480         * toplev.c (rest_of_compilation): Invoke it.
4481
4482         * rtl.h (NOTE_EXPECTED_VALUE): New.
4483         (NOTE_INSN_EXPECTED_VALUE): New.
4484         * rtl.c (note_insn_name): Update.
4485         * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4486         cases; handle NOTE_INSN_EXPECTED_VALUE.
4487
4488 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
4489
4490         * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4491         leaf sibcall delay slot if flag_pic.
4492         (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4493
4494 2000-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4495
4496         * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4497
4498         * fixproto: If fix-header fails, exit with an error.
4499
4500 Mon Apr 17 14:59:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4501
4502         * cse.c (struct check_depdendence_data): New.
4503         (check_dependence): New function.
4504         (invalidate): Use check_depdenence.
4505
4506 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
4507
4508         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4509         UNITS_PER_WORD is unsigned.
4510
4511         * tree.h (struct tree_common): Remove misleading comment.
4512
4513 2000-04-16  Dave Pitts  <dpitts@cozx.com>
4514
4515         * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4516         message in quotes. Otherwise, IBM's make program treats the '#' as the
4517         start of a comment and ignores the remainder of the line.
4518
4519         * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4520         upper case.
4521         * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4522         * cexp.y (initialize_random_junk): Likewise.
4523         * cppfiles.c (find_include_file): Cast alloca return value.
4524         * cppinit.c (initialize_standard_includes): Likewise.
4525         * cpplib.c (cpp_define, cpp_undef): Likewise.
4526         * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4527         * final.c (output_asm_insn): Allow for holes in EBCDIC.
4528         * fold-const.c (CHARMASK): New.
4529         (real_hex_to_f): Use it.
4530         * real.c (CHARMASK): New.
4531         (etoasc, asctoeg): Use it.
4532         (asctoeg): EBCDIC lower case characters preceed upper case.
4533
4534         * i370.c (mvs_add_label): Change spacing for coding conventions.
4535         * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4536         outputing case vectors.
4537         (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4538         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4539         since vector in in the data CSECT.
4540         (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4541         * i370.md (Many patterns): Put the length in the XL directives.
4542         (movdi): Put back STM and MVC in definition.
4543         (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4544         pattern using the TCA.
4545         * oe.h (CPP_SPEC): Added to allow trigraphs.
4546         * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4547         not support the "long long" type.
4548
4549 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
4550
4551         * config/mips/mips-protos.h (mips_legitimate_address_p): New
4552         function.
4553         (mips_reg_mode_ok_for_base_p): Likewise.
4554         * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4555         (REG_OK_FOR_INDEX_P): Define unconditionally.
4556         (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4557         (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4558         * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4559         that GET_MODE_SIZE is unsigned.
4560         (mips_reg_mode_ok_for_base_p): Define.
4561         (mips_legitimate_address_p): Likewise.  Adjust now
4562         that GET_MODE_SIZE is unsigned.
4563         (block_move_loop): Make the number of bytes unsigned.
4564         (expand_block_move): Likewise.
4565         (function_arg): Make the loop counter unsigned to match the
4566         boundary condition.
4567
4568 2000-04-16  Richard Henderson  <rth@cygnus.com>
4569
4570         * rtl.h (enum insn_note): New enumeration.  Subsume
4571         NOTE_INSN_DELETED and friends.
4572         (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4573         * rtl.c (note_insn_name): Tweak string order.
4574
4575 2000-04-15  Zack Weinberg  <zack@wolery.cumb.org>
4576
4577         * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4578         to offset * 2.
4579
4580         * cpplex.c (output_line_command): Remove debugging prints.
4581         (cpp_output_tokens): Don't write out a zero-length buffer or
4582         try to see if it has a newline in it.
4583         (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4584         (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4585         the end of the loop.  Use memmove.  Don't read past the end of
4586         the buffer.  Remove trailing newlines from error messages.
4587
4588 2004-04-16  Neil Booth  <NeilB@earthling.net>
4589
4590         * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4591         * cpplib.c: Add new syntax flags to directive table, and
4592         supporting macros.
4593
4594 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
4595
4596         * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4597         using ret $N.
4598
4599 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
4600
4601         * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4602         * haifa-sched.c: Update -fsched-verbose comments to use "=".
4603
4604 Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4605
4606         * Makefile.in (ggc-page.o): Now includes toplev.h.
4607         * ggc-page.c (toplev.h): Now included.
4608         (gc_time): Remove declaration.
4609         (ggc_collect): TIME now long.
4610         * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4611         others static.
4612         * toplev.h (gc_time, parse_time, gc_time): New declarations.
4613
4614         * toplev.c: Make *_time variable long to reduce chance of overflow.
4615         (TIMEVAR): Likewise for `otime'.
4616         (print_time): Arg is now long; compute percentage in FP and round.
4617         * toplev.h (print_time): Arg is long.
4618
4619         * tree.c: Minor whitespace changes.
4620
4621         * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4622         * configure: Rebuilt.
4623         * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4624         (__fixunsxfDI): Renamed from __fixunsxfdi.
4625         (__fixunsdfDI): Renamed from __fixunsdfdi.
4626         (__fixunssfDI): Renamed from __fixunssfdi.
4627         (__floatdisf): Use proper type in REP_BIT macro.
4628         (__fixunsxfSI): Renamed from __fixunsxfsi.
4629         (__fixunsdfSI): Renamed from __fixunsdfsi.
4630         (__fixunssfSI): Renamed from __fixunssfsi.
4631         * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4632         Change location of macros and upper-case some names as above.
4633         * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4634         * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4635
4636         * varasm.c (assemble_variable): Add cast to remove warning.
4637         (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4638
4639         * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4640         * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4641         region number to -1.
4642
4643 2000-04-15  Richard Earnshaw (rearnsah@arm.com)
4644
4645         * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4646         call unshare_all_rtl.
4647
4648         * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4649
4650 Fri Apr 14 16:58:45 2000  Jim Wilson  <wilson@cygnus.com>
4651
4652         * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4653         Use .s1 not .s0 for all FP instructions.
4654
4655 2000-04-14  Zack Weinberg  <zack@wolery.cumb.org>
4656
4657         * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4658         interfaces.
4659         (safe_fwrite, output_line_command): New static functions.
4660         (cpp_expand_to_buffer): Now private to cpplib.
4661         (cpp_scan_buffer): Take a printer.
4662
4663         * cpphash.h: Update prototypes.
4664         * cpplib.h: Update prototypes.
4665         (cpp_printer): New.
4666         (cpp_buffer): Remove last_nominal_fname.
4667         (cpp_reader): Remove lineno.
4668
4669         * cppmain.c: Use a cpp_printer.
4670         * fix-header.c: No need to inhibit line commands.  Call
4671         cpp_start_read with no printer.
4672
4673         * cpperror.c (cpp_notice_from_errno): Provide default name.
4674         * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4675         (find_include_file, cpp_read_file): Use make_IHASH.
4676         (file_cleanup): Set control_macro and clear
4677         input_stack_listing_current here.
4678         (_cpp_execute_include): Don't output entering-file marker.
4679         * cpphash.c (special_symbol): Look for the line number in the
4680         buffer, not the reader.
4681         (_cpp_macroexpand): No need to disable line commands.
4682         (_cpp_dump_definition): No need to generate line commands.
4683         (dump_hash_helper): Remove excess newline from output.
4684         * cppinit.c (dump_special_to_buffer): No need to generate line
4685         commands.
4686         (cpp_printer_init): New.
4687         (cpp_start_read): Take a printer, and start it up if it's not
4688         NULL.  No need to generate line commands.
4689         (cpp_finish): Expect no buffers stacked at all.  Take a
4690         printer argument, and flush the output buffer if it's not
4691         NULL.
4692         * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4693         Don't put two hashes at the beginning of an assertion.
4694         (cpp_get_token): Don't increment pfile->lineno or emit line
4695         commands here.  Return EOF if there's no buffer when we get
4696         EOF.
4697         * cpplib.c (do_define, skip_if_group):
4698         No need to disable line commands.
4699         (_cpp_output_line_command): Delete function.
4700         (do_line): Don't emit line commands here, but set things up so
4701         they will be emitted if necessary.  Use _cpp_fake_ihash to
4702         make unique nominal_fnames if necessary.
4703         (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4704         with 0 for column, not -1.
4705         (_cpp_handle_eof): Don't set the control macro here.  Don't
4706         clear input_stack_listing_current here.  Don't emit line
4707         commands.
4708
4709 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4710
4711         * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4712         always, use the default SVR4 start address.
4713
4714         * config/rs6000/linux.h (LINK_SPEC): Don't define.
4715         (LINK_SHLIB_SPEC): Define.
4716         (LINK_START_DEFAULT_SPEC): Define.
4717         (LINK_OS_DEFAULT_SPEC): Define.
4718
4719         * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4720
4721         * config/rs6000/eabi.asm (__eabi): Call __init rather than
4722         __do_global_ctors to handle constructors.
4723         * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4724         (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4725         (STARTFILE_MVME_SPEC): Likewise.
4726         (STARTFILE_SIM_SPEC): Likewise.
4727         (ENDFILE_ADS_SPEC): Use crtend.
4728         (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4729         (ENDFILE_MVME_SPEC): Likewise.
4730         (ENDFILE_SIM_SPEC): Likewise.
4731         (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4732         (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4733         (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4734         (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4735         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4736         (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4737         (CRTSTUFF_T_CFLAGS_S): Define.
4738         * config/rs6000/eabi-ctors.c: Delete.
4739
4740         * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4741         boundary.
4742         (__fini): Likewise.
4743         * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4744         boundary.
4745         (__fini): Likewise.
4746
4747 Fri Apr 14 16:09:02 2000  Jim Wilson  <wilson@cygnus.com>
4748
4749         * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4750         plus mask size is smaller or equal to the mode size.
4751
4752 Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4753
4754         * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4755         not yet set.
4756
4757         * expr.c (reload.h): Now included.
4758         (emit_block_move): Set volatile_ok when checking for movstr.
4759         (emit_move_1): Check for replacements in addresses in multi-word case.
4760         * Makefile.in (expr.o): Now includes reload.h.
4761
4762         * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4763         Never have a LIBCALL end a basic block.
4764         (find_basic_blocks_1): Likewise.
4765         Reorganize CALL_INSN cases.
4766
4767         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4768
4769 Fri Apr 14 10:54:22 2000  Jim Wilson  <wilson@cygnus.com>
4770
4771         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4772         completers from mov.ret instruction.
4773
4774 2000-04-14  Richard Henderson  <rth@cygnus.com>
4775
4776         * fold-const.c (extract_muldiv): Don't distribute and widen
4777         multiply across plus for non-sizetype unsigned types.
4778
4779 2000-04-14  Richard Henderson  <rth@cygnus.com>
4780
4781         * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4782         If the original source is dead in the incr insn, it's dead now.
4783
4784 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4785
4786         * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4787         see if DECL_BIT_FIELD needs to still be set.
4788
4789         * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4790
4791         * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4792         print_int_cst_octal with something that's not an INTEGER_CST.
4793
4794         * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4795         and not a SUBREG to a FLOAT rtl.
4796
4797 Thu Apr 13 19:39:56 2000  Clinton Popetz  <cpopetz@cygnus.com>
4798
4799         * emit-rtl.c (try_split): Avoid infinite loop if the split
4800         results in a sequence that contains the original insn.
4801
4802 2000-04-13  Andreas Jaeger  <aj@suse.de>
4803
4804         * config/mips/mips.c (expand_block_move): Pass alignment
4805         argument to move_by_pieces in bits, not bytes.
4806
4807         * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
4808         __pic__ for little endian.
4809
4810 2000-04-13  Andreas Jaeger  <aj@suse.de>
4811
4812         * config/i386/i386-protos.h: Add prototype for
4813         uno_comparison_operator.
4814
4815 Thu Apr 13 15:55:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4816
4817         * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
4818         * calls.c (ECF_PURE): New flag.
4819         (emit_call_1): Handle ECF_PURE calls.
4820         (initialize_argument_information): Unset ECF_PURE flag too.
4821         (precompute_arguments): Precompute for ECF_PURE too.
4822         (expand_call): Handle ECF_PURE calls too.
4823         (emit_library_call_value_1): Rename no_queue argument to fn_type,
4824         accept value of 2 as pure function.
4825         (emit_library_call_value, emit_library_call): Rename no_queue argument
4826         to fn_type.
4827         * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
4828
4829         * tree.h (DECL_IS_PURE): New macro.
4830         (struct tree_decl): Add pure_flag.
4831         * c-common.c (enum attrs): Add attribute "pure".
4832         (init_attributes): Initialize attribute "pure"
4833         (decl_attributes): Handle attribute "pure".
4834         * extend.texi (Attribute "pure"): Document.
4835         * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
4836         in pure function.
4837         (flags_from_decl_or_type): Support attribute "pure".
4838
4839 2000-04-13  Jason Merrill  <jason@casey.cygnus.com>
4840
4841         * cpplex.c (_cpp_lex_token): Handle digraphs.  Don't null-terminate
4842         the token except for numbers and identifiers.
4843
4844 Thu Apr 13 00:09:16 EDT 2000  John Wehle  (john@feith.com)
4845
4846         * i386.c (ix86_expand_binary_operator,
4847         ix86_expand_unary_operator): Check no_new_pseudos
4848         instead of reload_in_progress and reload_completed.
4849         (ix86_split_ashldi, ix86_split_ashrdi,
4850         ix86_split_lshrdi): Check no_new_pseudos instead
4851         of reload_completed.
4852
4853 2000-04-12  Jeffrey A Law  (law@cygnus.com)
4854
4855         * function.c (purge_addressof): Unshare any shared rtl created by
4856         purge_addressof and its children.
4857
4858 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
4859
4860         * function.c (aggregate_value_p): VOID_TYPE nodes are never
4861         aggregates.
4862
4863 2000-04-05  Andreas Jaeger  <aj@suse.de>
4864
4865         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
4866         not compiling PIC code, add flags for mabi=64.
4867         (SUBTARGET_CPP_SIZE_SPEC): New.
4868         (SUBTARGET_CPP_SPEC): New.
4869         (CPP_PREDEFINES): Define __PIC__ and __pic__.  PIC code is default
4870         for MIPS/Linux and lots of code needs these defines.
4871
4872 Wed Apr 12 22:44:11 2000  Hans-Peter Nilsson  <hp@axis.com>
4873
4874         * reorg.c (fill_slots_from_thread): Check side_effects_p when
4875         trying the "opposite arithmetic" approach.
4876
4877 Wed Apr 12 20:51:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4878
4879         * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
4880         (struct sh_args): Add new field force_mem.
4881         (INIT_CUMULATIVE_ARGS): Initialize it.
4882         (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
4883
4884 Wed Apr 12 17:20:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4885
4886         * calls.c (expand_call): Do not reverse args in "equal from" field.
4887         (emit_library_call_value_1): Emit_libcall_block for const and pure
4888         function.
4889
4890 Wed Apr 12 16:00:25 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4891
4892         * reload1.c (reload_combine): Don't enable optimization for fixed
4893         registers when encountering a BARRIER.
4894
4895 Wed Apr 12 15:54:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4896
4897         * builtins.c (expand_builtin_memcmp): Do expansion even with
4898         !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
4899
4900         * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
4901         stack is propertly aligned; add sanity checking for aligned
4902         stack pointer.
4903         (expand_library_call_value_1): Add sanity checking for aligned
4904         stack pointer.
4905
4906 Wed Apr 12 07:51:54 2000  Catherine Moore  <clm@cygnus.com>
4907
4908         * calls.c (emit_library_call_value_1): Change 3rd arg to
4909         locate_and_pad_parm to disregard the setting of partial.
4910
4911 Wed Apr 12 08:47:38 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4912
4913         * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
4914
4915         * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
4916         CALL_INSN from the normal case.
4917
4918 Fri Apr  7 12:23:04 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4919
4920         * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4921         New global variables.
4922         (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
4923         adjustment.
4924         * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4925         Declare,
4926         (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
4927          TARGET_ADD_ESP_8): New macros.
4928         * i386.md: Add peep2s to convert esp adjustments to push and pop
4929         instructions.
4930         (pushsi_prologue, popsi_epilogue): New patterns.
4931
4932 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
4933
4934         * real.c (toe64): Remove stale #endif from the last change.
4935
4936 2000-04-12  Stephen L Moshier  <moshier@mediaone.net>
4937
4938         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
4939         * real.c (toe64): Revert previous change.
4940
4941 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
4942
4943         * objc/objc-act.c: Include ggc.h.
4944         (objc_tree_index, objc_global_trees): Convert most of the
4945         static tree variables into a static array with previous names
4946         as defines.
4947         (objc_ellipsis_node): New variable.
4948         (lang_init): Call objc_act_parse_init and c_parse_init.
4949         Create objc_ellipsis_node.
4950         (build_selector_translation_table): Use objc_ellipsis_node instead
4951         of (tree)1.
4952         (hack_method_prototype): Likewise.
4953         (get_arg_type_list): Likewise.
4954         (start_method_def): Likewise.
4955         (continue_method_def): Likewise.
4956         (gen_method_decl): Likewise.
4957         (ggc_mark_imp_list): New function.
4958         (ggc_mark_hash_table): New function.
4959         (objc_act_parse_init): New function.
4960         * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
4961         * c-parse.in (c_parse_init): For objc add roots of objc specific
4962         local tree variables.
4963         * objc/objc-parse.y: Rebuilt.
4964         * objc/objc-parse.c: Rebuilt.
4965         (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
4966
4967 Wed Apr 12 01:00:44 EDT 2000  John Wehle  (john@feith.com)
4968
4969         * cse.c (delete_trivially_dead_insns): Also delete insns
4970         that copy a register to itself where the destination is
4971         a strict_low_part.
4972
4973 2000-04-11  Richard Henderson  <rth@cygnus.com>
4974
4975         * flow.c (struct propagate_block_info): Add new_dead, new_live.
4976         (propagate_block): Initialize them.  Use them in parallel instead
4977         of one tmp variable, ie revert much of the 0408 and 0407 functional
4978         changes, but keep the structural changes.
4979         (mark_set_regs): Take new_dead from propagate_block_info instead.
4980         (mark_set_1, mark_set_reg): Likewise.
4981         (mark_used_regs): Likewise with new_live.
4982         (mark_used_reg): Likewise.  Revert 0408 change.
4983
4984 2000-04-11  Nick Clifton  <nickc@cygnus.com>
4985
4986         * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
4987         restriction.
4988         (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
4989
4990 2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4991
4992         * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
4993         const section to output a CONSTRUCTOR based on the same conditions
4994         used for VAR_DECLs.
4995
4996 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
4997
4998         * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
4999         * pa/pa-protos.h (output_call): Add additional argument indicating
5000         if the call is a sibling/tail call.
5001         (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
5002         (compute_64bit_ior, cmpib_comparison_operator): Likewise.
5003         (function_arg, function_arg_partial_nregs): Likewise
5004         * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
5005         (emit_move_sequence): Zero extend certain constants as needed
5006         for TARGET_64BIT.
5007         (compute_zdepdi_operands, output_64bit_and): New functions.
5008         (output_64bit_ior, function_arg): Likewise.
5009         (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
5010         (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
5011         (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
5012         (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
5013         (output_bvb): Likewise.
5014         (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
5015         (output_call): New argument 'sibcall'.  Generate sibcall sequences
5016         as needed.
5017         (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT.  For
5018         (ouput_arg_descriptor): Do not emit argument descriptors for
5019         TARGET_64BIT.
5020         * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
5021         defined.
5022         (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
5023         (FUNCTION_OK_FOR_SIBALL): Define.
5024         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
5025         (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
5026         (CPP_SPEC): Use new spec infrastructure.
5027         (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
5028         (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
5029         (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
5030         (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
5031         (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
5032         (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
5033         (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
5034         (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
5035         (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
5036         (FUNCTION_ARG); Call out to C code.
5037         (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
5038         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
5039         (MIN_UNITS_PER_WORD): Likewise.
5040         * pa/pa.md (cmpdi): New expander.
5041         (scc patterns, movstrsi): Not available for TARGET_64BIT.
5042         (64bit conditional arithmetic): New patterns.
5043         (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
5044         (movsicc): Not available if modes on all the operands to not match.
5045         (movdicc): New expander and associated patterns.
5046         (64bit branches): New patterns.
5047         (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
5048         (pre_ldd, post_std): New patterns.
5049         (64bit addil, load low part): New patterns.
5050         (special movsf constant): Not available for TARGET_64BIT.
5051         (movsf, movdf expanders): Force constants into memory.
5052         (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
5053         (64bit movdf/movdi patterns): New patterns.
5054         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
5055         for TARGET_64BIT.
5056         (extendqidi2, extendhidi2, extendsidi2): Similarly.
5057         (adddi3 expander): Allow "arith_operand" for second input.
5058         (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
5059         (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
5060         (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
5061         (muldi3): New expander for TARGET_64BIT.
5062         (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
5063         for TARGET_64BIT.
5064         (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
5065         patterns for TARGET_64BIT.
5066         (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
5067         patterns for TARGET_64BIT.
5068         (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
5069         (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
5070         (sibcall_epilogue): New expander.
5071         (casesi): Tweak for TARGET_64BIT.
5072         (call expanders): Set & use the outgoing argument pointer.  Use the
5073         64bit call patterns as needed. Add additional arg to output_call.
5074         (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
5075         (sibcall, sibcall_internal_symref): New expanders.
5076         (sibcall_value, sibcall_value_internal_symref
5077         (interspace_jump): Turn into an expander + matching patterns.
5078         (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
5079         * pa/pa64-regs.h: Eliminate trigraph sequences.
5080         * pa/pa64-start.h (TARGET_PA_20): Fix typo.
5081
5082 2000-04-11  Zack Weinberg  <zack@wolery.cumb.org>
5083
5084         * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
5085         cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
5086         cpp_token with cpp_ttype everywhere.
5087         * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
5088         Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
5089         CPP_BUF_COL.  Line and column numbers are unsigned int, not
5090         long.
5091         * cpplex.c (cpp_buf_line_and_col): Delete.
5092         * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
5093         'long lineno' to 'unsigned int lineno'.
5094         (CPP_BUF_LINE, CPP_BUF_COL): New macros.
5095
5096 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
5097
5098         * extend.texi: ISO C99 is not a draft anymore.
5099         * invoke.texi: ISO C++ is not a draft anymore.
5100         * cpp.texi: __cplusplus is required by the ISO standard.
5101
5102         * extend.texi (-fthis-is-variable): Undocument.
5103         * flags.h (warn_template_debugging): Remove declaration.
5104         * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
5105         -Wenum-clash, -Wtemplate-debugging): Undocument.
5106
5107 2000-04-10  Nick Clifton  <nickc@cygnus.com>
5108
5109         * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5110         integer.
5111         (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
5112         integer.
5113         (ARM_SIGN_EXTEND): Use HOST_UINT.
5114         (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
5115         (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
5116         (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
5117         (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
5118
5119         * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
5120         (arm_gen_constant): Use HOST_UINT.
5121         (arm_canonicalize_constant): Use HOST_UINT.
5122         (arm_reload_in_hi): Use HOST_UINT.
5123         (arm_reload_out_hi): Use HOST_UINT.
5124         (output_multi_immediate): Use HOST_UINT.
5125         (int_log2): Use HOST_UINT.
5126         (arm_poke_function_name): Use HOST_UINT.
5127         (arm_output_epilogue): Use arm_volatile_func().
5128         (output_thumb_prologue): Use arm_strip_name_encoding().
5129
5130 Mon Apr 10 15:40:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5131
5132         * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
5133         of sequence point problems.
5134
5135 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
5136
5137         * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
5138         Recomment.
5139         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
5140
5141 Mon Apr 10 07:21:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5142
5143         * sbitmap.h: Whitespace changes and use upper-case macro args.
5144         (struct simple_bitmap_def): All sizes now unsigned.
5145         (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
5146         * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
5147         (sbitmap_vector_alloc): Parms and local vars now unsigned.
5148         (sbitmap_zero): Cast bzero arg to PTR.
5149         (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
5150         (sbitmap_union_of_diffs): Change loop index to unsigned and rework
5151         loop to make structure clearer.
5152         (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
5153         (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
5154         (sbitmap_a_and_b_or_c): Likewise.
5155         (sbitmap_intersection_of_succs): Minor cleanups.
5156         (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
5157         (sbitmap_union_of_preds): Likewise.
5158         (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
5159         (debug_sbitmap): New function.
5160
5161         * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
5162         * c-typeck.c (convert_for_assignment): Likewise.
5163
5164         * expmed.c (init_expmed): Don't free objects we make.
5165         * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
5166
5167         * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
5168         (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
5169
5170         * gcse.c (expr_hash_table_size): Now unsigned.
5171         (compute_ae_gen): Local variable `i' now unsigned.
5172         (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
5173         (compute_transout, hoist_code): Likewise.
5174         (compute_local_properties): Likewise, also hash_table_size.
5175         (alloc_expr_hash_table): N_INSNS now unsigned.
5176         (delete_null_pointer_checks): Mark arg F as unused.
5177
5178         * regrename.c: Minor cleanups, including chang some variables
5179         to unsigned int.
5180
5181 2000-04-10  Neil Booth  <NeilB@earthling.net>
5182
5183         * cpplex.c (skip_block_comment): Use pointer arithmetic rather
5184         than GETC ().
5185         * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
5186
5187 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
5188
5189         * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
5190         __classof__, and __headof__ from the list of gnu keywords.
5191         (-ansi): Remove -foperator-names from list of implied options.
5192         Do not call it ANSI C++.
5193         (-foperator-names): Document as -fno-operator-names.
5194
5195 2000-04-09  Zack Weinberg  <zack@wolery.cumb.org>
5196
5197         * cpphash.c (timestamp): Delete.
5198         (del_HASHNODE): If type is T_MCONST, free value.cpval.
5199         (special_symbol): Remove unnecessary braces.  Remove
5200         T_VERSION.  Treat T_STDC like T_CONST unless
5201         STDC_0_IN_SYSTEM_HEADERS.  Render both __DATE__ and __TIME__
5202         when one is encountered, then convert them into T_MCONST
5203         nodes.
5204         * cppinit.c (builtin_array): version_string is T_MCONST.
5205         __STDC__ has a "1" in its cpval.  Don't have a terminator
5206         entry.  Clean up which entries are dumped.
5207         (initialize_builtins): Only __STDC__ gets the special
5208         -traditional treatment.  Count the length of builtin_array.
5209         Render version_string here.
5210         * cpphash.h: Remove T_VERSION.  Add T_MCONST.
5211         * cpplib.h (struct cpp_reader): Remove timebuf.
5212
5213 2000-04-09  Richard Henderson  <rth@cygnus.com>
5214
5215         * genrecog.c (pred): Update comparison_operator for the unordered
5216         operators.
5217
5218         * config/i386/i386.c (no_comparison_operator): Disallow unordered
5219         operators.
5220         (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
5221         (uno_comparison_operator): New.
5222         (put_condition_code): Handle UNORDERED/ORDERED.
5223         (unsigned_comparison): Likewise.
5224         (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
5225         (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
5226         (ix86_expand_fp_compare): Use them.  Take scratch as argument,
5227         update all callers.  Handle all 8 unordered operators.
5228         (ix86_expand_setcc): Lose the unordered argument, update all callers.
5229         (ix86_expand_branch): Likewise.  Don't fully expand fp branches.
5230         * config/i386/i386.h (PREDICATE_CODES): Update.
5231         * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
5232         (ix86_expand_branch, ix86_expand_setcc): Update.
5233         * config/i386/i386.md (sunordered, sordered): New.
5234         (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
5235         (bunordered, bordered): New.
5236         (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
5237         (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
5238         (*fp_jcc_5, *fp_jcc_6, and splitters): New.
5239
5240 2000-04-09  Philip Blundell  <philb@gnu.org>
5241
5242         * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
5243
5244 Sun Apr  9 15:16:14 EDT 2000  John Wehle  (john@feith.com)
5245
5246         * i386.md (fix_truncsfhi2, fix_truncdfhi2,
5247         fix_truncxfhi2): New patterns.
5248         * i386.c (output_fix_trunc): Handle converting to HImode.
5249
5250 2000-04-08  Alex Samuel  <samuel@codesourcery.com>
5251
5252         * ssa.c (convert_to_ssa): Eliminate dead code when calling
5253         life_analysis.
5254         (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
5255         (for_each_successor_phi): Change parameter to basic_block.
5256         (coalesce_regs_in_successor_phi_nodes): Likewise.
5257         (coalesce_regs_in_copies): Likewise.
5258         (compute_coalesced_reg_partition): Use basic_block instead of index.
5259         * rtl.h (convert_to_ssa): Delete.
5260         (convert_from_ssa): Likewise.
5261         (successor_phi_fn): Likewise.
5262         (for_each_successor_phi): Likewise.
5263         (in_ssa_form): Likewise.
5264         * basic-block.h (convert_to_ssa): Moved from rtl.h.
5265         (convert_from_ssa): Likewise.
5266         (successor_phi_fn): Likewise.
5267         (in_ssa_form): Likewise.
5268         (for_each_successor_phi): Likewise.  Change parameter to basic_block.
5269         * flow.c (calculate_global_regs_live): Pass a basic_block to
5270         for_each_successor_phi.
5271
5272 2000-04-08  Richard Henderson  <rth@cygnus.com>
5273
5274         * flow.c (mark_used_reg): Use reg_set_p to determine if a register
5275         was modified in the current insn.
5276
5277 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5278
5279         * arm/thumb.md: Delete.
5280         * arm/thumb-protos.h: Delete.
5281
5282 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5283
5284         Merge changes from merged-arm-thumb-backend-branch onto trunk.
5285
5286         2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5287
5288         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
5289         into branch.
5290
5291         * arm.md (nop): Use the standard RTL expression.  Don't code as a
5292         define_expand.
5293         (*arm_nop, *thumb_nop): Delete.
5294
5295         * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5296         constants.  Use casts instead.
5297         (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5298         output_multi_immediate, arm_poke_function_name): Likewise.
5299         * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5300         MASK_RETURN_ADDDR): Likewise.
5301
5302         2000-03-31  Richard Earnshaw (rearnsha@arm.com)
5303
5304         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5305         into branch.
5306
5307         * arm.md (eh_epilogue): New function.
5308         * arm.h (struct machine_function): Move to here ...
5309         * arm.c: ... from here.
5310         (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5311         (thumb_exit): Extra parameter eh_ofs.  All callers changed.
5312         Handle epilogues for __builtin_eh_return.  Make bit-fields unsigned.
5313
5314         2000-03-30  Nick Clifton  <nickc@cygnus.com>
5315
5316         * config/arm/semi.h (ASM_SPEC): Restore definition.
5317         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5318
5319         * config/arm/elf.h (ASM_SPEC): Restore definition.
5320         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5321
5322         * config/arm/arm.h (ASM_SPEC): Remove definition.
5323         (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5324
5325         2000-03-26  Bernd Schmidt <bernds@cygnus.co.uk>
5326
5327         * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5328
5329         2000-03-24  Nick Clifton  <nickc@cygnus.com>
5330
5331         Various formating tidyups, elimination of compile time
5332         warnings and synchronisation with internal sources:
5333
5334         * config/arm/arm-protos.h (assemble_align): Add prototype.
5335         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5336         (gen_comapre_reg): Rename to arm_gen_compare_reg.
5337         (arm_return_addr_rtx): Rename to arm_return_addr.
5338
5339         * config/arm/arm.c: Include except.h.
5340         Define shorter typenames for strict minipool_node and struct
5341         minipool_fix.
5342         (arm_return_in_memory): For WinCE return all structures <= 32 bits
5343         in memory.
5344         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5345         (gen_comapre_reg): Rename to arm_gen_compare_reg.
5346
5347         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5348         already defined.
5349         (ASM_SPEC): Define if not already defined.
5350         (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5351
5352         * config/arm/arm.md: Rename references to gen_rotated_half_load to
5353         arm_gen_rotated_half_load, and references to gen_comapre_reg to
5354         arm_gen_compare_reg.
5355         (indirect_jump):  Only accept register operands.
5356         (load_indirect_jump): Keep this pattern since combine can generate
5357         it.
5358
5359         * config/arm/coff.h: Include aout.h.
5360         (MULTILIB_DEFAULTS): Only define if not already defined.
5361
5362         * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5363         into arm.h (so that COFF ports can support thumb based aliases).
5364         (ASM_SPEC): Move definition into arm.h
5365
5366         * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5367         redundant apcs spec.
5368         (ASM_SPEC): Move definition to arm.h
5369
5370         * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5371
5372         * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5373         for entries in the .bss section
5374
5375         2000-03-23  Nick Clifton  <nickc@cygnus.com>
5376
5377         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5378         to thumb_far_jump_used_p.
5379
5380         * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5381         single integer parameter.
5382
5383         * config/arm/arm.c (struct machine_function): Add two new
5384         fields, 'far_jump_used' and 'arg_pointer_live'.
5385         (thumb_far_jump_used_p): Once the decision has been made that
5386         far jumps might be used, always return true.
5387         If being called from the initial elimination offset macro then
5388         do not bother to perform the test if the arg pointer is not
5389         being used.
5390         (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5391         (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5392
5393         2000-03-23  Richard Earnshaw (rearnsha@arm.com)
5394
5395         * arm.c (output_return_instruction): Handle more cases where we can
5396         return from a function with an ldr instruction.
5397         (arm_output_epilogue): Likewise.
5398
5399         * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5400         if we need to push a large stack frame and there are no callee-saved
5401         registers.
5402
5403         * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5404         in ARM code if the frame pointer has been eliminated.
5405
5406         * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5407         unspec_volatile arguments to avoid duplicates.
5408         (consttable_1, consttable_2): Fixes for big-endian mode.
5409
5410         * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5411         as appropriate.
5412
5413         Re-write constant pool code.
5414         * arm.c (minipool_node, minipool_fix): New types.
5415         (minifix): Delete type.
5416         (arm_add_minipool_constant): Delete.
5417         (arm_compute_minipool_offsets, arm_find_barrier,
5418         arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5419         (get_jump_table_size): Now returns HOST_WIDE_INT.
5420         (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5421         functions.
5422         (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5423         (assign_minipool_offsets, arm_print_value): Likewise.
5424         (dump_minipool): Rewrite.
5425         (arm_barrier_cost): New function.
5426         (create_fix_barrier): New function.
5427         (push_minipool_barrier): New function.
5428         (push_minipool_fix): Record additional information about the fixup
5429         required.
5430         (note_invalid_constants): Remove push for (UNSPEC 3).  Don't
5431         check the mode of what needs fixing.
5432         (arm_reorg): Rewrite.
5433
5434         2000-03-08  Nick Clifton  <nickc@cygnus.com>
5435
5436         * config/arm/arm.md (indirect_jump): Force constant addresses into
5437         a register.
5438
5439         2000-03-01  Bernd Schmidt <bernds@cygnus.co.uk>
5440
5441         * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5442
5443         2000-02-24  Nick Clifton  <nickc@cygnus.com>
5444
5445         * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5446         adjust is word aligned.
5447         (thumb_expand_epilogue): Make sure that stack adjust is word
5448         aligned.
5449
5450         * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5451
5452         2000-02-24  Bernd Schmidt <bernds@cygnus.com>
5453
5454         * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5455         pointer relative addresses.
5456
5457         2000-02-10  Richard Earnshaw  <rearnsha@arm.com>
5458
5459         * arm.c (find_barrier): Find the last barrier within the allowed
5460         range.
5461
5462         2000-02-09  Nick Clifton  <nickc@cygnus.com>
5463
5464         * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5465
5466         2000-02-09  Nick Clifton  <nickc@cygnus.com>
5467
5468         * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5469         ARM_FUNCTION_PROFILER.
5470
5471         * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5472         ARM_FUNCTION_PROFILER.
5473
5474         * config/arm/linux-oldld.h: Imported from mainline sources.
5475
5476         2000-02-07  Nick Clifton  <nickc@cygnus.com>
5477
5478         * config/arm/lib1funcs.asm: Merge in thumb functions from
5479         lib1thumb.asm.
5480
5481         * config/arm/lib1thumb.asm: Delete.
5482
5483         2000-02-04  Nick Clifton  <nickc@cygnus.com>
5484
5485         * config/arm/arm.c: Sychronised with current Red hat local
5486         sources.
5487         * config/arm/arm.h: Ditto.
5488         * config/arm/arm-protos.h: Ditto.
5489
5490         2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
5491
5492         * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5493
5494         * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5495         byte stores.
5496
5497         2000-02-02  Nick Clifton  <nickc@cygnus.com>
5498
5499         * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5500
5501         * config/arm/arm.md (epilogue): Fix rtl checking abort because
5502         (return) was emited using an emit_insn() call.
5503
5504         2000-01-31  Nick Clifton  <nickc@cygnus.com>
5505
5506         * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5507         thumb stack frame.
5508         (thumb_exit): Move frame pointer back into hard frame pointer
5509         register if backtracing is being used.
5510
5511         2000-01-13  Richard Earnshaw (rearnsha@arm.com)
5512
5513         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5514         into branch.
5515
5516         1999-12-15  Bernd Schmidt  <bernds@cygnus.co.uk>
5517
5518         * config/arm/arm.md (neg_pool_offset): Provide default for new
5519         attribute.
5520         (arm_movsi_insn): Add neg_pool_offset attribute.
5521         * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5522         rtx for the insn that starts the scan and an unsigned long for its
5523         address.  Add MIN_OFFSET and PINSERTED args.  All callers changed.
5524         Change scan to ignore insns before MIN_OFFSET.  Store size of inserted
5525         instructions in *PINSERTED.
5526         (struct minipool_fixup): Add MIN_ADDRESS elt.
5527         (sort_fixups): Compute it.
5528         (arm_reorg): Changes to support inserting pools before the insn to be
5529         fixed up.
5530
5531         1999-12-08  Bernd Schmidt  <bernds@cygnus.co.uk>
5532
5533         * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5534         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5535         * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5536
5537         Wed Nov  3 10:04:07 1999  Nick Clifton  <nickc@cygnus.com>
5538
5539         * config/arm/semi.h (TARGET_VERSION): Do not define if already
5540         defined.
5541         (TARGET_DEFAULT): Do not define if already defined.
5542
5543         Tue Nov  2 10:37:25 1999  Nick Clifton  <nickc@cygnus.com>
5544
5545         * config/arm/arm.md (anddi3): Allow disjoint source operands.
5546         (iordi3): Allow disjoint source operands.
5547         (xordi3): Allow disjoint source operands.
5548         (negdi2): Permit construction for ARM and Thumb.
5549         (arm_negdi2): Renamed version of old negdi2 pattern.
5550         (thumb_negdi2): New pattern: Only permit non-overlapping
5551         source and destination.
5552
5553         Fri Oct 29 18:52:38 1999  Nick Clifton  <nickc@cygnus.com>
5554
5555         * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5556         scratch low register so that it will not be deleted.
5557
5558         Fri Oct 29 15:23:48 1999  Nick Clifton  <nickc@cygnus.com>
5559
5560         * config/arm/pe.h (ARM_PE): Define.
5561
5562         * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5563         interfacearm attribute if this is a PE toolchain.
5564         (output_return_instruction): Do not emit anything if the function
5565         has the naked attribute set.
5566         (is_called_in_ARM_mode): If the function has the interfacearm
5567         attribute then return true.
5568         (thumb_expand_prologue): Do not generate a prologue for naked
5569         functions.
5570         (thumb_expand_epilogue): Do not generate an epilogie for a naked
5571         function.
5572         (output_thumb_prologue): Do not bother if the function is naked.
5573         Strip PE encoding from function name before emitting.
5574
5575         Thu Oct 28 11:05:13 1999  Richard Earnshaw <rearnsha@arm.com>
5576
5577         * arm.md (pic_load_addr): Fix constraints.
5578
5579         * arm.md (casesi_insn): Fix mis-applied patch.
5580
5581         * arm.md ("core" function unit): Add rules for single- and
5582         multi-cycle insns.
5583         (All TARGET_THUMB patterns): Add "type" attribute information
5584         where needed.
5585         * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5586         the following insn is a CALL.
5587
5588         * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5589         pointer.
5590         * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5591         ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5592         (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5593
5594         Wed Oct 27 14:40:48 1999  Nick Clifton  <nickc@cygnus.com>
5595
5596         * config/arm/linux-gas.h: oops - this file was missed out when the
5597         branch was created...
5598
5599         Tue Oct 26 17:07:38 1999  Richard Earnshaw <rearnsha@arm.com>
5600
5601         * thumb.c: Deleted.  Move contents to ...
5602         * arm.c: ... here.
5603         * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5604         rule for thumb.o
5605         * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5606         * configure: Regen.
5607
5608         * arm-protos.h: Use RTX_CODE and tidy up long lines.  Don't
5609         declare a prototype for asm_output_align();
5610
5611         * arm.c (thumb_condition_code): Delete.
5612         (arm_print_operand): Always use arm_condition_code array.
5613
5614         * arm.c (thumb_return_addr_rtx): Delete.
5615         (arm_save_machine_status, arm_restore_machine_status): Delete.
5616         (arm_init_machine_status, arm_mark_machine_status): New functions.
5617         (arm_init_expanders): Update accordingly.
5618         (arm_return_addr): Renamed from arm_return_addr_rtx.  Rewrite.
5619         (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5620         * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5621
5622         Tue Oct 26 13:24:16 1999  Nick Clifton  <nickc@cygnus.com>
5623
5624         * configure.in : Fix arm-*-aout target to use new t-arm-aout
5625         script.
5626         * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5627         targets.
5628
5629         Tue Oct 26 11:27:12 1999  Nick Clifton  <nickc@cygnus.com>
5630
5631         * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5632         stack backtrace structure.
5633
5634         * config/arm/arm-protos.h: Add prototypes for functions defined in
5635         arm/pe.h.
5636
5637         * config/arm/arm.c (arm_override_options): Fix selection of
5638         attributes of default processor.
5639
5640         * config/arm/coff.h: Delete needless #include.
5641
5642         * config/arm/pe.c: Delete unused code.
5643
5644         * config/arm/pe.h (CPP_DEFINES): Delete
5645         (SUBTARGET_CPP_SPEC): Define.
5646         (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5647
5648         * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5649
5650         Mon Oct 25 15:42:09 1999  Richard Earnshaw (rearnsha@arm.com)
5651
5652         * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5653         updated.
5654         (CAN_DEBUG_WITHOUT_FP): Define.
5655         (FIXED_REGISTERS): Make r11 call-saved.
5656         (CALL_USED_REGISTERS): Likewise.
5657         (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5658         (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5659         frame-pointer is required.
5660         (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5661         * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5662         if the target normally needs a stack frame in non-leaf functions.
5663         (use_return_insn): Correct logic for determining when a return
5664         instruction can be used.
5665         (output_return_instruction): Handle the frame-pointer register as
5666         a normal register when not TARGET_APCS_FRAME.
5667         (arm_output_prologue): Likewise.
5668         (arm_output_epilogue): Likewise.
5669         (output_func_epilogue): Likewise.
5670         (arm_expand_prologue): Likewise.
5671         * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5672
5673         * arm.c (use_return_insn): No need to check floating point regs if
5674         TARGET_SOFT_FLOAT.
5675         (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5676         the code of value stored in the minipool array.
5677         (arm_add_minipool_constant): Likewise.
5678
5679 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5680
5681         * basic-block.h (conflict_graph_enum_fn): K&R fix.
5682
5683 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5684
5685         * tree.c (tree_expr_nonnegative_p): New function.
5686
5687         * tree.h (tree_expr_nonnegative_p): Declare.
5688
5689         * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5690         elide some sign_compare warnings.
5691         (build_conditional_expr): Likewise.
5692
5693 Sat Apr  8 00:21:51 EDT 2000  John Wehle  (john@feith.com)
5694
5695         * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5696
5697         * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5698         * i386.c (print_operand): Use the proper suffix for a 387 HImode
5699         operand.  Abort if a 387 operand has an unsupported size.
5700
5701 2000-04-08  Neil Booth  <NeilB@earthling.net>
5702
5703         * cppexp.c (parse_charconst): Null does not end character
5704         constants.
5705         * cppinit.c (ISTABLE): Null character handled as whitespace.
5706         * cpplex.c (null_warning):  new function.
5707         (skip_string): Emit warning if nulls encountered.
5708         (_cpp_skip_hspace): Emit warning if nulls encountered.
5709         (_cpp_lex_token): Emit warning if nulls encountered.  Drop
5710         them.
5711         * cpp.texi: Update.
5712
5713 2000-04-07  Richard Henderson  <rth@cygnus.com>
5714
5715         * flow.c (loop_depth): Remove.
5716         (reg_next_use, cc0_live, mem_set_list): Replace with ...
5717         (struct propagate_block_info): New.
5718         (life_analysis): Don't allocate reg_next_use.
5719         (propagate_block_delete_insn): Break out of propagate_block.
5720         Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5721         (propagate_block_delete_libcall): Likewise.
5722         (propagate_block): Create a propagate_block_info struct to pass
5723         to subroutines.  Allocate one not two temporary regsets.  Don't
5724         clobber memory for const calls.  Look for clobbers in
5725         CALL_INSN_FUNCTION_USAGE.
5726         (mark_set_regs): Recognize COND_EXEC.
5727         (mark_set_reg): Break out of mark_set_1.
5728         (mark_used_reg): Break out of mark_used_regs.
5729         (mark_used_regs): Recognize COND_EXEC.
5730         (insn_dead_p): Use propagate_block_info struct.
5731         (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5732         (find_auto_inc, try_pre_increment_1): Likewise.
5733         (print_rtl_with_bb): Dump regs live at end too.
5734         (count_reg_sets_1): Pass in loop_depth.
5735         (count_reg_sets, count_reg_references): Likewise.
5736         (recompute_reg_usage): Provide it.
5737
5738 2000-04-07  Richard Henderson  <rth@cygnus.com>
5739
5740         * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5741         not the raw files.
5742
5743 2000-04-07  Zack Weinberg  <zack@wolery.cumb.org>
5744
5745         * cpplib.c (do_elif): Skip the rest of the line if we're
5746         not going to bother evaluating it.
5747         (skip_if_group): Clear pfile->only_seen_white.  Reorder loop
5748         to avoid pointless calls to the lexer.
5749
5750 Fri Apr  7 11:50:54 2000  Jim Wilson  <wilson@cygnus.com>
5751
5752         * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5753
5754 2000-04-07  Jason Merrill  <jason@casey.cygnus.com>
5755
5756         * calls.c (expand_call): emit_queue if we're trying a sibcall.
5757
5758 2000-04-07  Jakub Jelinek  <jakub@redhat.com>
5759
5760         * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5761
5762 2000-04-06  Geoff Keating  <geoffk@cygnus.com>
5763
5764         * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5765         crtend so they can be multilibbed.
5766         (STAGESTUFF): Remove s-crt and s-crtS.
5767
5768 2000-04-07  Richard Henderson  <rth@cygnus.com>
5769
5770         * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5771         if we discover we need a pseudo and no_new_pseudos is true.
5772         * config/alpha/alpha.md (ne:DI insn): New.
5773         (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5774
5775 2000-04-07  Richard Henderson  <rth@cygnus.com>
5776
5777         * rtl.def (COND_EXEC): New.
5778         * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5779         * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5780
5781         * genconfig.c (have_cond_arith_flag): Remove.
5782         (have_cond_exec_flag): New.
5783         (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5784         (main): Print HAVE_conditional_execution.
5785
5786         * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5787         (sched_analyze_insn, print_pattern): Likewise.
5788         * reload.c (find_equiv_reg): Likewise.
5789         * rtlanal.c (reg_referenced_p): Likewise.
5790         (note_stores, dead_or_set_regno_p): Likewise.
5791         (reg_overlap_mentioned_p): Rewrite to use a switch.
5792
5793         * ggc.h (struct rtx_def): Forward declare.
5794
5795         * print-rtl.c (debug_rtx_range): New.
5796         * rtl.h (debug_rtx_range): Declare.
5797
5798         * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
5799
5800         * gcse.c (gcse_main): Don't rebuild the CFG here.
5801         (delete_null_pointer_checks): Likewise.
5802         * ssa.c (convert_to_ssa): Likewise.
5803         * toplev.c (rest_of_compilation): Do it here instead.  Combine
5804         sequential calls to TIMEVAR.  Consistently use `insns' instead of
5805         `get_insns()'.  Always split insns after reload when optimizing.
5806
5807         * basic-block.h (merge_blocks_nomove): Declare.
5808         (tidy_fallthru_edge): Declare.
5809         * flow.c (merge_blocks_nomove): Document as merging into previous
5810         blocks.  Remove cruft from between blocks; remove all edges out of A.
5811         (tidy_fallthru_edge): Export.
5812
5813 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
5814
5815         * ssa.c (compute_conservative_reg_partition): Declare with
5816         void arguments.
5817         * toplev.c (clean_dump_file): Remove previously-deleted function
5818         inadvertantly merged back in.
5819         * conflict.c (conflict_graph_add): Use a single call to
5820         htab_find_slot to look up and insert.
5821
5822 2000-04-06  Richard Henderson  <rth@cygnus.com>
5823
5824         * genrecog.c (*): Rename _last_insn to last_insn.
5825         (make_insn_sequence): Set the position of the peephole2 C test
5826         to be at the last insn.
5827
5828 2000-04-06  Richard Henderson  <rth@cygnus.com>
5829
5830         * flow.c (compute_flow_dominators): Free worklist.
5831
5832 2000-04-06  Michael Matz  <matzmich@cs.tu-berlin.de>
5833
5834         * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
5835
5836 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
5837
5838         * rtl.h (INSN_P): New macro.
5839         (successor_phi_fn): New typedef.
5840         (for_each_successor_phi): New prototype.
5841         (in_ssa_form): New variable.
5842         (PHI_NODE_P): Likewise.
5843         * flow.c (calculate_global_regs_live): Add to new_live_at_end from
5844         phi nodes in successors.
5845         (mark_used_regs): Add PHI case.
5846         (set_phi_alternative_reg): New function.
5847         (life_analysis): Assert that dead code elimination is not selected
5848         when in SSA form.
5849         * toplev.c (to_ssa_time): New variable.
5850         (from_ssa_time): Likewise.
5851         (compile_file): Zero to_ssa_time and from_ssa_time.
5852         Print time to convert to and from SSA.
5853         (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
5854         (print_time): Compute percent fraction as integer.
5855         * ssa.c (PHI_NODE_P): Moved to rtl.h.
5856         (convert_to_ssa): Check if we're already in SSA.
5857         Don't eliminate dead code in life_analysis.
5858         Rerun flow and life analysis at bottom.
5859         (eliminate_phi): Use canonical regnos when adding nodes.
5860         (mark_reg_in_phi): New function.
5861         (mark_phi_and_copy_regs): Likewise.
5862         (convert_from_ssa): Rerun life analysis at top.
5863         Use coalesced partition.
5864         Check for removing a phi node at the end of the block.
5865         (compute_coalesced_reg_partition): New function.
5866         (coalesce_regs_in_copies): Likewise.
5867         (coalesce_reg_in_phi): Likewise.
5868         (coalesce_regs_in_sucessor_phi_nodes): Likewise.
5869         (for_each_successor_phi): Likewise.
5870         (rename_context): New struct.
5871         (rename_block): Use a rename_context with rename_insn_1.  When
5872         renaming sets of a subreg, emit a copy of the entire reg first.
5873         (rename_insn_1): Treat data as a rename_context *.  Save current
5874         insn in set_data.
5875         (rename_set_data): Add field set_insn.
5876         * Makefile.in (HASHTAB_H): Move up in file.
5877         (OBSTACK_H): New macro.
5878         (collect2.o): Use OBSTACK_H in dependencies.
5879         (sdbout.o): Likewise.
5880         (emit-rtl.o): Likewise.
5881         (simplify-rtx.o): Likewise.
5882         (fix-header.o): Likewise.
5883         (OBJS): Add conflict.o.
5884         (conflict.o): New rule.
5885         * basic-block.h: Include partition.h.
5886         (conflict_graph): New typedef.
5887         (conflict_graph_enum_fn): Likewise.
5888         (conflict_graph_new): New prototype.
5889         (conflict_graph_delete): Likewise.
5890         (conflict_graph_add): Likewise.
5891         (conflict_graph_conflict_p): Likewise.
5892         (conflict_graph_enum): Likewise.
5893         (conflict_graph_merge_regs): Likewise.
5894         (conflict_graph_print): Likewise.
5895         (conflict_graph_compute): Likewise.
5896         * conflict.c: New file.
5897
5898 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
5899
5900         * tlink.c (read_repo_files): Don't look for .rpo info for
5901         linker flags.
5902
5903 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5904
5905         * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
5906
5907 Thu Apr  6 19:34:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5908
5909         * config/sh/lib1funcs.asm (___udivsi3_i4):
5910         ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
5911         only depends on FMOVD_WORKS.
5912
5913 Thu Apr  6 19:11:47 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5914
5915         * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
5916         make double constant 8-byte aligned.
5917
5918 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
5919
5920         * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
5921         movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
5922         movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
5923         (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
5924         Accept storing GENERAL_REGS into offsetable memory.
5925         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
5926         building a TFmode constant other than 0.0L into GENERAL_REGS.
5927
5928 2000-04-06  Clinton Popetz  <cpopetz@cygnus.com>
5929
5930         * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
5931
5932 2000-04-06  Zack Weinberg  <zack@wolery.cumb.org>
5933
5934         * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
5935         (macro_cleanup): No need to cast pbuf->macro.
5936         (collect_expansion): Use _cpp_get_define_token.  Goto done if
5937         it returns VSPACE.  Remove check for trailing space after
5938         CPP_COMMENT.
5939         (_cpp_create_definition): Don't diddle flags here.  Return
5940         directly on error.
5941         (unsafe_chars): Handle c1 being EOF.
5942         (push_macro_expansion): Use unsafe_chars for both accidental-paste
5943         checks.  Don't push the buffer till after we're done with
5944         them.
5945         * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
5946         (PEEKN, FORWARD, GETC, PEEKC): Use them.
5947         (cpp_push_buffer): Don't set new->alimit.  Set new->mark
5948         appropriately.
5949         (_cpp_parse_assertion): Don't NUL terminate.
5950         (_cpp_lex_token): Fix -traditional macro handling.  Don't skip
5951         hspace before calling _cpp_parse_assertion.  Remove all sets
5952         of only_seen_white. Treat '\f' as hspace.  Don't do anything
5953         special with '\n' here.
5954         (maybe_macroexpand): Handle T_EMPTY hash entries without
5955         pushing a buffer at all.
5956         (cpp_get_token): Handle clearing only_seen_white here.  Handle
5957         incrementing the line number here.  Clear
5958         potential_control_macro as well as only_seen_white, if
5959         appropriate.
5960         (cpp_get_non_space_token): Don't eat CPP_POP tokens.
5961         (_cpp_get_define_token): New function, basically like
5962         _cpp_get_directive_token was but doesn't eat horizontal space.
5963         Don't do anything with only_seen_white here.
5964         (_cpp_get_directive_token): Just call _cpp_get_define_token
5965         repeatedly till it returns non-hspace.
5966
5967         * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
5968         (conditional_skip, skip_if_group): Return int.
5969         (DIRECTIVE_TABLE): Change origin of all conditional directives
5970         to "COND".
5971         (TRAD_DIRECT_P): New macro.
5972         (_cpp_handle_directive): Use _cpp_get_directive_token.  Issue
5973         an error for a bogus directive, unless -lang-asm.  Use
5974         TRAD_DIRECT_P. Loop calling handler functions till one returns
5975         zero.
5976         (get_macro_name): Don't diddle flags here.
5977         (do_define): Diddle flags here.  Use _cpp_get_directive_token.
5978         Create T_EMPTY nodes for #define macro /* nothing */.
5979         (do_undef): Don't copy the name.  Use _cpp_get_directive_token.
5980         Use hp->name when calling pass_thru_directive.
5981         (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
5982         Return the result of conditional_skip and/or skip_if_group.
5983         Don't call _cpp_output_line_command.
5984         (consider_directive_while_skipping): Use _cpp_get_directive_token.
5985         Issue -Wtraditional warnings as appropriate.  Don't complain
5986         about unrecognized directives.  If we are to stop skipping,
5987         return the number of the directive that ended the skip.
5988         (skip_if_group): Use _cpp_get_directive_token.  Turn off macro
5989         expansion and line commands while skipping.  Return the result
5990         of consider_directive_while_skipping, if nonzero.
5991         (do_endif): Just set potential_control_macro here.
5992         (validate_else): Use _cpp_get_directive_token.
5993         (do_assert, do_unassert): Don't save pointers into the
5994         token_buffer across calls to the lexer.  Use
5995         _cpp_get_directive_token.
5996
5997         * cpplib.h (cpp_buffer): Remove alimit and colno.  Make mark a
5998         pointer, not an offset.  Replace 'data', which was a generic
5999         pointer, with 'macro', which points to a struct hashnode.
6000         (cpp_reader): Add 'potential_control_macro' pointer.
6001         * cpphash.h (T_UNUSED): Replace with T_EMPTY.
6002         (CPP_BUF_GET, CPP_FORWARD): Delete.
6003         (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
6004         (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
6005         ACTIVE_MARK_P): Update.
6006         (_cpp_get_define_token): New internal function.
6007         * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
6008
6009 2000-04-05   Benjamin Kosnik  <bkoz@cygnus.com>
6010
6011         * configure.in: And here.
6012         * configure: Regenerate.
6013         * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
6014         --enable-libstdcxx-v3 is passed at configure time.
6015         * config.h.in: Regenerate.
6016
6017 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
6018
6019         * final.c (final): Use xcalloc to allocate line_note_exists.
6020         * function.c (free_after_compilation): Free the temp_slots.
6021         (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
6022         (combine_temp_slot): Free temp_slots when they get combined.
6023         (purge_addressof): Fix typo in comment.
6024         * stmt.c (mark_goto_fixup): Mark the fixup itself.
6025         (expand_fixup): Allocate the fixup with ggc_alloc_obj.
6026
6027         * ggc.h: Include varray.h.
6028         (ggc_pending_trees): Declare.
6029         (ggc_mark_tree_children): Remove declaration.
6030         (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
6031         * ggc-common.c (ggc_pending_trees): New variable.
6032         (ggc_mark_roots): Call ggc_mark_trees.
6033         (ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
6034         the ggc_pending_trees.
6035         * Makefile.in (GGC_H): New variable.  Use it throughout in place
6036         of ggc.h.
6037
6038 Thu Apr  6 00:30:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6039
6040         * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
6041         GET_MODE_SIZE.
6042
6043 Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6044
6045         * sh.c (sh_insn_length_adjustment): New function.
6046         * sh-protos.h (sh_insn_length_adjustment): Declare.
6047         * sh.h (ADJUST_INSN_LENGTH): Use it.
6048
6049 Wed Apr  5 12:35:18 2000  Hans-Peter Nilsson  <hp@axis.com>
6050
6051         * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
6052         from the insn where REG_RETVAL is added.
6053         (emit_no_conflict_block): Ditto.
6054
6055         * md.texi (Standard Names): Clarify when movX is needed.
6056
6057         * combine.c (simplify_comparison) [MINUS]: Do not replace
6058         all (op (minus A B) 0) with (op A B).
6059
6060 Wed Apr  5 18:03:31 2000  Toshiyasu Morita  (toshi.morita@sega.com)
6061                           J"orn Rennecke <amylaar@cygnus.co.uk>
6062
6063         * sh.md (block_lump_real_i4): Add missing clobber of T_REG
6064         (block_lump_real): Likewise.
6065
6066 2000-04-05  Chris Demetriou  <cgd@netbsd.org>
6067
6068         * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
6069         remaining non-zero debugging masks.
6070
6071 Wed Apr  5 09:44:07 2000  Jeffrey A Law  (law@cygnus.com)
6072
6073         * basic-block.h (verify_flow_info): Declare.
6074         (flow_loop_outside_edge_p): Declare.
6075         * flow.c (verify_flow_info): Remove declaration.
6076         (clear_log_links, flow_loop_outside_edge_p): Likewise.
6077
6078 Wed Apr  5 09:34:26 2000  Philippe De Muyter <phdm@macqel.be>
6079
6080         * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
6081         not C++ comments.
6082
6083 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
6084
6085         * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
6086         snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
6087         seqdi_zero_trunc+1): Allow splits only if registers are
6088         different.
6089
6090 2000-04-04  Ulrich Drepper  <drepper@cygnus.com>
6091
6092         * acconfig.h: Add HAVE_GAS_HIDDEN.
6093         * config.in: Regenerated.
6094         * configure.in: Add test for .hidden pseudo-op in gas.
6095         * configure: Regenerated.
6096         * crtstuff.c: Include auto-host.h.
6097         Emit additional .hidden pseudo-op for __dso_handle if the
6098         assembler knows about it.
6099
6100 2000-04-04  Philippe De Muyter  <phdm@macqel.be>
6101
6102         * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
6103         before freeing argnames.
6104         * cpplib.c (do_ifndef): Cast return value of xstrdup.
6105
6106 2000-04-05  Michael Meissner  <meissner@redhat.com>
6107
6108         * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
6109         Walton <jonboy@gordian.com> to make memory references with update
6110         work wtih -mregnames.
6111
6112 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6113
6114         * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
6115         (regrename_optimize): Rename variables `def_uses' and
6116         `ext_basic_blocks' to avoid conflicts with similarly named
6117         typedefs in traditional C.
6118
6119         * calls.c (initialize_argument_information): Fix typo in previous
6120         change.
6121
6122 2000-04-04  Richard Henderson  <rth@cygnus.com>
6123
6124         * regrename.c (consider_available): Test fixed_regs not
6125         PIC_OFFSET_TABLE_REGNUM.
6126
6127 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
6128
6129         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
6130         crtend.
6131         (CRTSTUFF_T_CFLAGS_S): Delete definition.
6132         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
6133         (ENDFILE_LINUX_SPEC): Always use crtend.
6134         * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
6135         (powerpc-*-linux-gnu): Likewise.
6136         * configure: Regenerate.
6137
6138         * config/rs6000/eabi.h: Don't include sysv4.h.
6139         (MULTILIB_DEFAULTS): Don't define.
6140         * config/rs6000/eabiaix.h: Don't include eabi.h.
6141         * config/rs6000/eabile.h: Delete.
6142         * config/rs6000/eabilesim.h: Delete.
6143         * config/rs6000/eabisim.h: Don't include eabi.h.
6144         * config/rs6000/linux.h: Don't include sysv4.h.
6145         (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
6146         (MULTILIB_DEFAULTS): Don't redefine.
6147         * config/rs6000/rtems.h: Don't include eabi.h.
6148         * config/rs6000/sol2.h: Don't include sysv4le.h.
6149         * config/rs6000/sysv4le.h: Don't include sysv4.h.
6150         * config/rs6000/t-ppc: Delete.
6151         * config/rs6000/t-ppcgas: Correct comment.
6152         * config/rs6000/t-ppcos: Correct comment.  Don't build
6153         multilibs for -fPIC, rather use -fPIC -mstrict-align
6154         as default.
6155         * config/rs6000/t-ppc: Delete.
6156         * config/rs6000/vxppc.h: Don't include sysv4.h.
6157         * config/rs6000/vxppcle.h: Delete.
6158         * configure.in: Use multiple header files for p2pc ELF targets
6159         powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
6160         powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
6161         powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
6162         powerpc-vxworks, powerpcle-vxworks.  Assume GAS functionality is
6163         always available for these platforms.
6164
6165 2000-04-04  Richard Henderson  <rth@cygnus.com>
6166
6167         * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
6168
6169 2000-04-04  Stan Cox  <scox@cygnus.com>
6170
6171         * Makefile.in: Add rules for regrename.o
6172         * regrename.c: New file.
6173         * rtl.h (regrename_optimize): Add prototype.
6174         * toplev.c (rename_registers_dump, flag_rename_registers): New variables
6175         (compile_file, decode_d_option): Add support for -frename-registers.
6176         (rest_of_compilation): Call regrename_optimize.
6177         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
6178         New macros.
6179
6180 2000-04-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6181
6182         * Makefile (gccbug): New target.
6183         (doc): Depend on it.
6184         * gcc.texi (Bugs): Link subnodes.
6185         (gccbug): New node.
6186         * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
6187         Document severities, priorities, and classes in bug form.
6188
6189 2000-04-04  Zack Weinberg  <zack@wolery.cumb.org>
6190
6191         * cpplex.c (trigraph_map, speccase): Combine into single
6192         table, chartab.
6193         (NORMAL, NONTRI): New macros.
6194         (_cpp_read_and_prescan): Change to use unified table.  Use
6195         is_hspace to test for whitespace.
6196
6197         * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
6198         definition that doesn't provoke the "empty body in an
6199         if-statement" warning.
6200
6201 2000-04-04  Clinton Popetz  <cpopetz@cygnus.com>
6202
6203         * builtins.c (expand_builtin_strlen): Force the source to
6204         be a memory address.
6205
6206 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6207
6208         * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
6209
6210 Tue Apr  4 19:17:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6211
6212         * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
6213          ECF_LONGJMP, ECF_FORK_OR_EXEC):  New constants.
6214         (ECF_IS_CONST): Rename to ECF_CONST.
6215         (special_function_p): Make static, change interface.
6216         (flags_from_decl_or_type, try_to_integrate): Break out from ...
6217         (expand_call) ... here; convert number of variables to flags.
6218         (emit_library_call_vlue_1): Likewise.
6219         (setjmp_call_p): New function.
6220         (initialize_argument_information): Accepts flags as argument;
6221         return flags.
6222         (precompute_arguments): Likewise.
6223         * tree.h (special_function_p): Remove.
6224         (setjmp_call_p): Add prototype.
6225
6226 2000-04-04  Jakub Jelinek  <jakub@redhat.com>
6227
6228         * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
6229         so that addresses are offsetable by up to 16 bytes.
6230         (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
6231         non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
6232         offsetable.
6233
6234         * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
6235         (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
6236         (movsf): Don't force any constant to memory if target is integer
6237         hard register.
6238         Move fp_zero_operand check below the const0_rtx check.
6239         (movtf): Likewise. Also allow fp_zero_operand for stores into
6240         memory.
6241         (movdf): Likewise. Also allow fp_zero_operand for stores into
6242         memory and into integer hard registers.
6243         (clear_df, clear_dfp, movdf_const_intreg_sp32,
6244         movdf_const_intreg_sp64): Remove.
6245         (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
6246         conditions.
6247         (movdf_no_e_insn_v9_sp32): New pattern.
6248         (movdf_insn_v9only): Remove.
6249         (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
6250         (movdf_insn_sp64): Remove.
6251         (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
6252         (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
6253         (following splits): Rewrite conditions. Add two new splits
6254         for storing 0.0 into memory and registers.
6255         (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
6256         (movtf_insn_sp32): Redo constraints and conditions.
6257         (movtf_insn_vis_sp32): New pattern.
6258         (movtf_no_e_insn_sp32): Redo constraints and conditions.
6259         (movtf_insn_hq_sp64): Likewise.
6260         (movtf_insn_hq_vis_sp64): New pattern.
6261         (movtf_insn_sp64): Redo constraints and conditions.
6262         (movtf_insn_vis_sp64): New pattern.
6263         (movtf_no_e_insn_sp64): Redo constraints and conditions.
6264         (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
6265         or memory.
6266         * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
6267         -mvis or -m64 to take down the number of various reload patterns.
6268
6269 Tue Apr  4 00:41:53 2000  Jeffrey A Law  (law@cygnus.com)
6270
6271         * pa/pa-64.h: New file.
6272         * pa/pa64-regs.h: New file.
6273         * pa/pa64-start.h: New file.
6274         * pa/t-pa64: New file.
6275         * pa/xm-pa64hpux.h: New file.
6276
6277 2000-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6278
6279         * sparc.c (output_restore_regs): Prototype.
6280         (sparc_emit_float_lib_cmp): Constification.
6281
6282         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
6283
6284         * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
6285         Prototype.
6286
6287         * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
6288         (get_value_hash, hash_rtx): Likewise.
6289
6290         * ssa.c (compute_conservative_reg_partition): Prototype.
6291
6292         * tree.c (mark_hash_entry): Prototype.
6293
6294 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
6295
6296         * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6297         * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6298         * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6299
6300         * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6301         * objc/lang-specs.h: Likewise.
6302
6303 2000-04-03  Neil Booth  <NeilB@earthling.net>
6304
6305         * cppexp.c: wrap long lines.  New macros CPP_ICE, SYNTAX_ERROR
6306         and SYNTAX_ERROR2. Replace `' in messages with ''.
6307         (op_to_str): Make re-entrant.
6308         (_cpp_parse_expr): Implement new error macros. Use | rather
6309         than || to logically or 2 boolean integers.  Simply expression
6310         checking we have a left operand iff needed.
6311
6312 2000-04-03  Nick Clifton  <nickc@cygnus.com>
6313
6314         * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6315
6316 2000-04-03  Philip Blundell  <philb@gnu.org>
6317
6318         * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6319
6320 2000-04-03  Felix Lee  <flee@cygnus.com>
6321
6322         * fixinc/server.c (find_shell): New function.  Avoid $SHELL.
6323         (run_shell): Use it.
6324
6325 2000-04-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
6326
6327         * Makefile.in (stmp-int-hdrs): Make include subdir here...
6328         (stmp-fixproto): ...rather than here.
6329
6330 Mon Apr  3 00:50:06 2000  Jason Eckhardt <jle@cygnus.com>
6331
6332         * pa.c (print_operand): Compute 'base' only inside the code paths
6333         that use it.
6334
6335 2000-04-03  Geoffrey Keating  <geoffk@cygnus.com>
6336
6337         * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6338         CEIL_DIV_EXPR.
6339
6340 2000-04-03  Philipp Thomas  <pthomas@suse.de>
6341
6342         * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6343
6344 Mon Apr  3 00:02:59 2000  Brad Lucier <lucier@math.purdue.edu>
6345
6346         * Makefile.in (alias.o): Depend on $(TREE_H).
6347
6348 2000-04-02  Zack Weinberg  <zack@wolery.cumb.org>
6349
6350         * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6351         processing C++.
6352         * cpplib.c (_cpp_handle_directive): Improve warnings for
6353         traditional C and indented directives.
6354
6355         * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6356         fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6357         fixinc/inclhack.def: Indent the # of #include_next one space.
6358         * cp/rtti.c: Un-indent #if and #endif.
6359
6360         * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6361         syntax error, but an error has already been printed.
6362         * cpplex.c (_cpp_parse_assertion): Give a more specific error
6363         message when called with nothing remaining on the line.
6364         (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6365         OTHER token, not an ASSERTION.
6366         * cpplib.c (do_assert): When we create a 'base' node, clear
6367         its aschain pointer.
6368
6369 2000-04-02  Neil Booth <NeilB@earthling.net>
6370
6371         * cppexp.c:  New typedef op_t.  struct operation and struct
6372         token updated to use it.
6373         (op_to_str): New function.
6374         (_cpp_parse_expr): Error messages modified to use op_to_str.
6375
6376 2000-04-02  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6377
6378         * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6379         before checking MUST_PASS_IN_STACK.
6380
6381 2000-04-02  Neil Booth <NeilB@earthling.net>
6382
6383         * cppexp.c:  New FINISHED dummy token.  Combine operator initial
6384         flags and initial priority into a single constant.  New
6385         EQUALITY macro.  New operator flag SHORT_CIRCUIT.
6386         (_parse_cpp_expr): Implement new constants.  Take left operand
6387         checks out of reduction loop.  Handle SHORT_CIRCUIT.  End of
6388         parse indicated by reducing FINISHED token.  Remove new lines
6389         from cpp_error messages.
6390
6391 2000-04-01  Mark Mitchell  <mark@codesourcery.com>
6392
6393         * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6394         permanent obstack.
6395
6396 2000-04-01  Zack Weinberg  <zack@wolery.cumb.org>
6397
6398         * cpplib.c: Include symcat.h.  Add 'origin' field to struct
6399         directive.  Add origin values to DIRECTIVE_TABLE.  Generate
6400         the strings and function names on the fly.  Take the #sccs
6401         entry out of the table if SCCS_DIRECTIVE is not defined.
6402         (_cpp_handle_directive): Decide if the # was at the beginning
6403         of the line here.  Issue -pedantic warnings for extended
6404         directives here.  Warn about K+R directives with the #
6405         indented, and C89/extended directives with the # not indented,
6406         here.
6407         (do_import, do_include_next, do_warning, do_ident, do_sccs,
6408         do_assert, do_unassert): Don't issue pedantic warning here.
6409
6410         * cpphash.h: Add CPP_WTRADITIONAL macro.
6411         * cpplib.h (struct cpp_options): Rename warn_stringify to
6412         warn_traditional; update comments.
6413         * cppinit.c (handle_option): Set warn_traditional not
6414         warn_stringify.
6415         * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6416         CPP_WTRADITIONAL (pfile).
6417         * cpplex.c (_cpp_lex_token): Don't decide if directives should
6418         be ignored in -traditional mode here.
6419
6420         * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6421         to initialize speccase[] and trigraph_map[].  Delete all
6422         references to pfile->input_speccase.  Always treat '?' as a
6423         special character.  Remove table-initialization code from
6424         _cpp_init_input_buffer.
6425
6426         * cpplib.h (struct cpp_reader): Remove input_speccase field.
6427         * cppinit.c (cpp_cleanup): Don't free input_speccase.
6428
6429 2000-04-01  Richard Henderson  <rth@cygnus.com>
6430
6431         * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6432         (mostlyclean): Likewise.
6433
6434         * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6435         (struct dump_file_info, enum dump_file_index, dump_file): New.
6436         (open_dump_file): Take a dump_file_index not a suffix, and a decl
6437         not a string.  Clean out file if we havn't yet done so.  Do nothing
6438         if the dump isn't enabled.
6439         (close_dump_file): Do nothing if the dump isn't open.  Dump
6440         graph data if requested.
6441         (dump_rtl, clean_dump_file): Remove.
6442         (compile_file): Don't clean the dump files.  Only finalize .bp dump
6443         if flag_test_coverage or flag_branch_probabilities.  Only finalize
6444         .combine dump if optimizing.  Iterate over dump_file to finalize the
6445         graph dumps.
6446         (rest_of_compilation): Update for open_dump_file/close_dump_file.
6447         Convert all uses of dump_rtl.
6448         (decode_d_option): Iterate over dump_file to implement 'a' and to
6449         locate pass-specific dumps.
6450
6451 2000-04-01  Neil Booth <NeilB@earthling.net>
6452
6453         * cppexp.c: Redefine priority constants.
6454         (_cpp_parse_expr): Replace left and right priority scheme with
6455         single priority logic.  Move LOGICAL to same place as COMPARE.
6456         Remove bogus check for multiple unary +/- operators.
6457
6458 2000-04-01  Neil Booth <NeilB@earthling.net>
6459
6460         * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6461         within the switch statement.  Binary operations break out of
6462         the switch naturally.  '(' tokens handled by forcing
6463         immediate shift.  ')' handled by forcing immediate reduce to
6464         the previous '('.  New error messages.
6465
6466 2000-03-31  Geoff Keating  <geoffk@cygnus.com>
6467
6468         * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6469         part', it's already in use.  Use %K instead.  Add a return at the
6470         end of what is now %K.
6471         * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6472
6473 Sat Apr  1 02:05:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6474
6475         * builtins.c  (expand_builtin_apply):  Pass proper parameters to
6476         allocate_dynamic_stack_space.
6477         * calls.c (emit_call_1):  Do not adjust stack pointer for SIB,
6478         update stack_pointer_delta; do not update arg_size_so_far.
6479         (compute_argument_block_size): Use stack_delta instead of
6480         stack_pointer_pending and arg_size_so_far.
6481         (expand_call): Add sanity checking for stack_pointer_delta;
6482         save and restore stack_pointer_delta for SIB, use
6483         stack_pointer_delta for alignment; do not update arg_space_so_far.
6484         (emit_library_call_value): Use stack_pointer_delta for alignment.
6485         (store_one_arg): Do not update arg_space_so_far.
6486         * explow.c (adjust_stack, anti_adjust_stack): Update
6487         stack_pointer_delta.
6488         (allocate_dynamic_stack_space): Add sanity checking for
6489         stack_pointer_delta.
6490         * expr.c (init_expr, clear_pending_stack_adjust): Clear
6491         stack_pointer_delta.
6492         (emit_push_insn): Update stack_pointer_delta.
6493         * function.h (struct expr_status): Add x_stack_pointer_delta;
6494         remove x_arg_space_so_far.
6495         (arg_space_so_far): Remove.
6496         (stack_pointer_delta): New macro.
6497
6498 2000-03-31  Zack Weinberg  <zack@wolery.cumb.org>
6499
6500         * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6501         Reorder struct cpp_options and struct cpp_reader for better
6502         packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
6503         takes two args.  Change all 'char' flags to 'unsigned char'.
6504         Move show_column flag into struct cpp_options.  Don't
6505         prototype cpp_options_init.
6506         * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6507         cppinit.c, cpplex.c, cpplib.c:
6508         Replace CPP_OPTIONS (pfile)->whatever with
6509         CPP_OPTION (pfile, whatever), and likewise for
6510         opts = CPP_OPTIONS (pfile); ... opts->whatever;
6511
6512         * cppinit.c (merge_include_chains): Take a cpp_reader *.
6513         Extract CPP_OPTION (pfile, pending) and work with that
6514         directly.
6515         (cpp_options_init): Delete.
6516         (cpp_reader_init): Turn on on-by-default options here.
6517         Allocate the pending structure here.
6518         (cl_options, enum opt_code): Define these from the same table,
6519         kept in a large macro.  Add -fshow-column and -fno-show-column
6520         options.
6521
6522         * cpperror.c (v_message): If show_column is off, don't print
6523         the column number.
6524
6525         * cppmain.c: Update for new interface.
6526         * fix-header.c: Likewise.
6527
6528 2000-03-30  Geoff Keating  <geoffk@cygnus.com>
6529
6530         * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6531         definition.
6532         * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6533         are passed to any invocation of AR_FOR_TARGET.
6534         (AR_CREATE_FOR_TARGET): New macro.
6535         (AR_EXTRACT_FOR_TARGET): New macro.
6536         (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6537         AR_EXTRACT_FOR_TARGET.
6538         (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6539         in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6540         `$(AR_FOR_TARGET) x'.  Pass AR_CREATE_FOR_TARGET and
6541         AR_EXTRACT_FOR_TARGET to sub-makes.
6542
6543 2000-03-31  Neil Booth <NeilB@earthling.net>
6544
6545         * cppexp.c: Delete SKIP_OPERAND.  Correct priority
6546         PAREN_INNER_PRIO.
6547         (_cpp_parse_expr): Check for multiple unary +/- operators.
6548         Correct priorities of ':' and '?'.  Treat ')' as having a
6549         value.  Ensure conditional expression is not void.
6550
6551 2000-03-31  Mark Mitchell  <mark@codesourcery.com>
6552
6553         * alias.c (canon_rtx): Make it global.
6554         (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6555         equality.
6556         * cse.c (struct table_elt): Add canon_exp.
6557         (insert): Clear it.
6558         (invalidate): Canonicalize expressions only once.
6559         * rtl.h (canon_rtx): Declare.
6560
6561 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
6562
6563         * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6564         * alias.c (reg_known_value): Add comments.
6565         (init_alias_analysis): Likewise.
6566         * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6567         address.
6568         (cse_basic_block): Fix typo in comment.
6569         * emit-rtl.c: Include hashtab.h.
6570         (const_int_htab): New variable.
6571         (const_int_htab_hash): New function.
6572         (const_int_htab_eq): Likewise.
6573         (rtx_htab_mark_1): Likewise.
6574         (rtx_htab_mark): Likewise.
6575         (gen_rtx_CONST_INT): Cache all CONST_INTs.
6576         (unshare_all_rtx): Fix formatting.
6577         (init_emit_once): Initialize const_int_htab.
6578         * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6579         address.
6580         * rtl.texi: Document the fact that all CONST_INTs with the same
6581         value are shared.
6582
6583 2000-03-30  Richard Henderson  <rth@cygnus.com>
6584
6585         * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6586
6587 2000-03-30  Zack Weinberg  <zack@wolery.cumb.org>
6588
6589         * configure.in: Comment out --enable-c-cpplib stanza.
6590         * configure: Regenerate.
6591
6592 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6593
6594         * expr.c (store_constructor): Properly compute displacement and
6595         alignment when offset is variable.
6596
6597         * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6598         cases of alignment in bytes.
6599
6600 Thu Mar 30 13:30:40 2000  Jeffrey A Law  (law@cygnus.com)
6601
6602         * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6603         since it is used to generate c-parse.y.
6604         * objc-parse.c, objc-parse.y: Regenerated.
6605
6606         * function.c (expand_function_end): Pass alignment argument to
6607         emit_block_move in bits, not bytes.
6608
6609 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6610
6611         * expr.c (move_by_pieces_ninsns): Fix one more missing align
6612         correction.
6613
6614         * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6615
6616         * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6617         * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6618         * function.c (assign_parms): Likewise.
6619         * integrate.c (expand_inline_function): Likewise.
6620         * stmt.c (expand_decl): Likewise.
6621         (copy_rtx_and_substitute): Likewise.
6622         * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6623         (clear_by_pieces): Fix error in last change.
6624         * emit-rtl.c (init_emit): Set known registers alignment in bits.
6625         * function.h (regno_pointer_align): Now unsigned.
6626         * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6627         is in bits.
6628         * config/i386/i386.c (aligned_operand): Likewise.
6629         * config/sparc/sparc.c (mem_min_alignment): Likewise.
6630         * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6631         (unaligned_memory_operand): Likewise.
6632         (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6633         Also make alignments and sizes unsigned and some whitespace cleanup.
6634         (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6635
6636         * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6637         (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6638         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6639         (expand_builtin_memset): Likewise, but to clear_storage.
6640         * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6641         (restore_fixed_argument_area): Likewise.
6642         (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6643         (load_register_parameters): Likewise, to emit_group_load.
6644         (expand_call): Likewise, to emit_group_store and emit_block_move.
6645         (emit_library_call_value_1): Likewise, to emit_block_move.
6646         (store_one_arg): Likewise, and to emit_push_insn.
6647         * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6648         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6649         * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6650         (emit_block_move, emit_group_load, emit_group_store): Likewise.
6651         (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6652         (expand_assigment, store_expr, store_constructor_field): Likewise.
6653         (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6654         (store_constructor, store_field, get_inner_reference): Likewise.
6655         Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6656         (expand_expr, case COMPONENT_REF): Likewise.
6657         (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6658         and positions; reindent code.
6659         * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6660         * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6661         (assign_parms): Likewise to emit_group_store.
6662         * optabs.c (prepare_cmp_insn): Alignment is in bits.
6663         (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6664         * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6665         (expand_return): Likewise to {extract,store}_bit_field.
6666         * stor-layout.c (get_mode_alignment): Minor cleanup.
6667         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6668         * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6669
6670 2000-03-29  Nick Clifton  <nickc@cygnus.com>
6671
6672         * config/arm/arm.h: Undo effects of previous delta:
6673         (ASM_SPEC): Do not define.
6674         (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6675
6676         * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6677         typo.
6678
6679 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
6680
6681         * cppinit.c (cpp_start_read): Call initialize_dependency_output
6682         only after reading in the primary source file.
6683
6684 2000-03-29  Geoff Keating  <geoffk@cygnus.com>
6685
6686         * c-common.c (c_common_nodes_and_builtins): The first parameter to
6687         __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6688         or a reference to a va_list.
6689         * builtins.c (stabilize_va_list): Simplify now we don't have to
6690         work around C array address decay.
6691         * c-typeck.c (convert_for_assignment): Handle assignment to
6692         a reference parameter by taking the address of the RHS.
6693         * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6694         (va_copy): Likewise.
6695         (__va_copy): Likewise.
6696         * ginclude/varargs.h (va_start): Likewise.
6697         (__va_copy): Likewise.
6698
6699 Wed Mar 29 15:44:53 2000  Jeffrey A Law  (law@cygnus.com)
6700
6701         * i386/djgpp.h: Remove extraneous "+".
6702
6703         * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6704
6705         * calls.c (expand_call): Fix typo in last change.
6706
6707 2000-03-29  Jason Merrill  <jason@casey.cygnus.com>
6708
6709         * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6710         been expanded.
6711
6712 Wed Mar 29 15:39:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6713
6714         * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6715         (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6716         (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6717         * tree.c (bit_position, byte_position): Likewise.
6718         * tree.h: Declare new functions.
6719
6720 2000-03-29  Nick Clifton  <nickc@cygnus.com>
6721
6722         * config/arm/arm.c: Minor formatting changes/
6723         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6724         already defined.
6725         (ASM_SPEC): Define if not already defined.
6726
6727 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
6728
6729         * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6730         _cpp_calc_hash.
6731
6732 2000-03-29  Jakub Jelinek  <jakub@redhat.com>
6733
6734         * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6735         value, don't output it as unsigned.
6736
6737 Wed Mar 29 10:53:49 2000  Jeffrey A Law  (law@cygnus.com)
6738
6739         * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6740
6741 2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6742
6743         * c-common.c (c_common_nodes_and_builtins): Don't special case
6744         cplus_mode when declaring builtin bzero/bcmp, always avoid
6745         prototype arguments.
6746
6747 2000-03-29  Bruce Korb  <bkorb@gnu.org>
6748
6749         * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6750         to a non-file
6751
6752 Wed Mar 29 15:08:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6753
6754         Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6755         * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6756         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6757         (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6758         (save_fixed_argument_area, restore_fixed_argument_area):
6759         conditionize by #ifdef REG_PARM_STACK_SPACE only.
6760         (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6761         to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6762         (precompute_register_parameters): Avoid #ifdefs on
6763         ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6764         (stire_one_args): Likewise.
6765         (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6766         (emit_library_call_value_1): Likewise.
6767         (compute_argument_block_size): Align to STACK_BOUNDARY only for
6768         ACCUMULATE_OUTGOING_ARGS.
6769         * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6770         value.
6771         (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6772         (use_crosses_set_p): Likewise.
6773         * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6774         #define ACCUMULATE_OUTGOING_ARGS 1.
6775         * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6776         frames.
6777         * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6778         constants.
6779         (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6780         (TARGET_SWITCHES): Add push-args, no-push-args,
6781         accumulate-outgoing-args and no-accumulate-outgoing-args.
6782         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6783         * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6784         (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6785         and PUSH_ROUNDING.
6786         (emit_push_insn): Likewise.
6787         * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6788         (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6789         * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6790         (STACK_DYNAMIC_OFFSET): Define correctly for both
6791         ACCUMULATE_OUTGOING_ARGS and normal mode.
6792         * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6793         * tm.texi (PUSH_ARGS): Document.
6794         (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6795
6796 Wed Mar 29 11:51:13 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6797
6798         * flags.h (flag_optimize_sibling_calls): Declare.
6799         * calls.c (expand_call): Fail sibcall when
6800         !flag_optimize_sibling_calls
6801         * invoke.texi (flag_optimize_sibling_calls): Document.
6802         * toplev.c (flag_optimize_sibling_calls): New global variable.
6803         (f_options): Add flag_optimize_sibling_calls.
6804         (rest_of_compilation): Conditionize
6805         optimize_sibling_and_tail_recursive_calls by
6806         flag_optimize_sibling_calls.
6807         (main): Set flag_optimize_sibling_calls for -O2.
6808         * stmt.c (expand_return): Conditionize tail recursion by
6809         flag_optimize_sibling_calls.
6810
6811 2000-03-29  Richard Henderson  <rth@cygnus.com>
6812
6813         * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
6814         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
6815
6816 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
6817
6818         * except.c (add_eh_table_entry): Mark type_info's as referenced.
6819
6820 2000-03-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6821
6822         * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
6823         is given.
6824         * config/rs6000/aix43.h (CPP_SPEC): Likewise.
6825         * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
6826         * config/rs6000/aix.h: then modified likewise.
6827
6828 2000-03-28  Richard Henderson  <rth@cygnus.com>
6829
6830         * rtl.h: Redistribute enum reg_note documentation.
6831         Kill trailing whitespace.
6832         * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
6833         Kill trailing whitespace.
6834
6835 2000-03-28  Zack Weinberg  <zack@wolery.cumb.org>
6836
6837         * cppfiles.c (hash_IHASH): Just return i->hash.
6838         (cpp_included): Set dummy.hash using _cpp_calc_hash.  Use
6839         htab_find_with_hash.
6840         (cpp_read_file): Likewise.
6841         (find_include_file): Likewise.  Properly initialize
6842         ih->nshort.  Share ih->name and ih->nshort if possible.
6843         * cpphash.c (_cpp_calc_hash): New function.
6844         (hash_HASHNODE): Just return h->hash.
6845         (_cpp_lookup): Set dummy.hash using _cpp_calc_hash.  Use
6846         htab_find_with_hash.
6847         * cpphash.h: Prototype _cpp_calc_hash.
6848         * cppinit.c (initialize_builtins): Provide a valid hash
6849         to _cpp_make_hashnode, using _cpp_calc_hash.
6850
6851         * cpphash.c (collect_expansion): # is not a special character
6852         in object-like macros.  In -traditional mode, /**/ is not
6853         token paste at the beginning or end of the line.
6854         * cpplib.c (do_include, do_import, do_include_next): If
6855         parse_include fails, return immediately.
6856
6857 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
6858
6859         * config/arm/arm.md (return peepholes): Update to reflect the new
6860         call insn patterns.
6861         * config/arm/arm.c (arm_volatile_func): Also check
6862         current_function_nothrow.
6863         (output_return_instruction, output_func_prologue): Use it.
6864         (arm_output_epilogue, arm_expand_prologue): Likewise.
6865
6866 2000-03-27  Tom Tromey  <tromey@cygnus.com>
6867
6868         * gcc.c (handle_braces): In {x*...} case, break out of loop if
6869         switch is found.
6870
6871 Tue Mar 28 11:55:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6872
6873         * expr.c (store_constructor): SIZE now signed.
6874         For EXPR_SIZE, don't evaluate size; just needed if constant.
6875         * fold-const.c (fold): Fix a number of cases when folded tree is
6876         wrong type.
6877         * function.c (flush_addressof): Reenable.
6878         * tree.h (flush_addressof): Likewise.
6879         * toplev.c (independent_decode_option): Look at strings_processed.
6880         * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
6881
6882 Tue Mar 28 08:29:46 2000  Jan Hubicka  <jh@suse.cz>
6883
6884         * sibcall.c (indentify_call_return_value): Find last call in the chain;
6885         Allow stack adjustment after function call.
6886
6887         * regmove.c (struct csa_memlist): Make mem field rtx *.
6888         (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
6889         (try_apply_stack_adjustment): Replace whole MEM rtx.
6890         (combine_stack_adjustments_for_block): Update calls
6891         to record_one_stack_ref.
6892
6893 2000-03-28  Neil Booth  <NeilB@earthling.net>
6894
6895         * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
6896         '\\' rather than a null character, so nulls are not special.  Fix
6897         "\\\n" handling in end-of-buffer conditions.  Use trigraph map to
6898         speed trigraph conversion.
6899         (_cpp_init_input_buffer): Initialize trigraph map.
6900
6901 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
6902
6903         * config/i386/i386.c (output_387_binary_op): Correct intel
6904         mode assembly output, and add spaces after commas in AT&T
6905         output.  Correct Unixware assembler comment.  Document input
6906         constraints.  Comment fp operations.  Reduce profligate buffer
6907         size.  Remove extraneous abort.  Localize temp var.
6908         (SYSV386_COMPAT): Define.  Add !SYSV386_COMPAT code.
6909         (output_fix_trunc): Add spaces after commas in assembly output.
6910
6911 2000-03-27  Richard Henderson  <rth@cygnus.com>
6912
6913         * i386-protos.h (ix86_match_ccmode): Declare.
6914         * i386.c (ix86_match_ccmode): New.
6915         (ix86_expand_fp_compare): Update for pattern renames.
6916         (ix86_expand_strlensi_unroll_1): Likewise.
6917         * i386.h (EXTRA_CC_MODES): Add CCZ.
6918         (SELECT_CC_MODE): Use it for EQ/NE zero.
6919         * i386.md (cmpsi_ccz_1): New.
6920         (cmpqi_ccz_1): New.
6921         (*testsi_ccz_1): New.
6922         (testqi_ccz_1): New.
6923         (cmpsi_ccno_1): Rename from cmpsi_0.
6924         (testsi_ccno_1): Rename from testsi_1.
6925         (testqi_ccno_1): Rename from testqi_1.
6926         (*testqi_ext_ccz_0): Rename from testqi_ext_0.
6927         (testqi_ext_ccno_0): Rename from *testqi_ext_1.
6928         (*cmphi_0): Use ix86_match_ccmode.
6929         (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
6930         (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
6931         (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
6932         (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
6933         (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
6934         (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
6935         (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
6936         (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
6937         (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
6938         (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
6939         (appropriate peepholes): Likewise.
6940         (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
6941         (*subsi_3, *subhi_3, *subqi_3): Remove.
6942         (*negdi2_1+1 splitter): Use CCZ for neg patterns.
6943         (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
6944         (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
6945         (*neghi2_cmpz, *negqi2_cmpz): Similarly.
6946         (x86_shift_adj_1): Use CCZ.
6947         (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
6948
6949 2000-03-27  Stan Cox  <scox@cygnus.com>
6950
6951         * resource.h (mark_resource_type): New.
6952         * resource.c (find_dead_or_set_registers, mark_target_live_regs,
6953         find_free_register): Use mark_resource_type.
6954         (mark_set_resources): Change include_delayed_effects
6955         to mark_resource_type.
6956         * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
6957         redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
6958         Use mark_resource_type.
6959
6960 2000-03-27  Richard Henderson  <rth@cygnus.com>
6961
6962         * i386.md (call_pop_0, call_value_pop_0): New.
6963         (call_pop_1): Remove constraint from unused arg.  Support sibcalls.
6964         (call_value_pop_1): Likewise.
6965         (call_0, call_value_0): New.
6966         (call_1, call_value_1): Remove constraint from unused arg.
6967
6968 2000-03-27  Nick Clifton  <nickc@cygnus.com>
6969
6970         * invoke.texi (Spec Files): Document new spec % command created by
6971         Tom Tromey's recent patch.
6972
6973 2000-03-27  Jakub Jelinek  <jakub@redhat.com>
6974
6975         * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
6976         if not defined.
6977
6978 Mon Mar 27 06:04:22 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6979
6980         * expr.c (expand_assignment): Fix typo in last change.
6981
6982         * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
6983
6984 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6985
6986         * c-convert.c (convert): Return if output or input type is ERROR_MARK.
6987         * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
6988         and DECL_INLINE if FUNCTION_DECL.
6989         (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
6990         (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
6991         Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
6992         (combine_parm_decls): Likewise.
6993         * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
6994         * print-tree.c (print_node): Likewise.
6995         Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
6996         DECL_TRANSPARENT_UNION on proper decl types.
6997         Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
6998         * stor-layout.c (layout_decl): Only check DECL_PACKED and
6999         DECL_BIT_FIELD of FIELD_DECL.
7000         * tree.h (DECL_RESULT_FLD): New macro.
7001
7002         * expr.c (expand_assignment): Add code to handle variable-sized
7003         BLKmode case.
7004
7005 2000-03-26  Richard Henderson  <rth@cygnus.com>
7006
7007         * calls.c (expand_call): Pass parms not original exp to
7008         optimize_tail_recursion.  Mind return value instead of looking
7009         for a barrier.
7010         * stmt.c (optimize_tail_recursion): Take parameter list, not entire
7011         call_expr.  Move checks for call_expr and current_function_decl ...
7012         (expand_return): ... here.
7013
7014 2000-03-26  Tom Tromey  <tromey@cygnus.com>
7015
7016         * gcc.c (handle_braces): Recognize `%{<S}' construct.
7017         (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
7018         defines.
7019         (process_command): Use them.
7020         (check_live_switch): Likewise.
7021         (give_switch): Skip ignored switches.
7022
7023 2000-03-26  Jan Hubicka  <jh@suse.cz>
7024
7025         * jump.c (jump_optimize_1): Fix typo in elide optimizations
7026         for minimal jump pass test.
7027
7028 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
7029
7030         * integrate.c (function_cannot_inline_p): Do inline functions that
7031         return `void'.
7032
7033 Sun Mar 26 11:37:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7034
7035         * stor-layout.c (layout_type, set_sizetype): early_type_list is
7036         now a list of TREE_LIST entries, not types.
7037         * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
7038
7039         * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
7040         * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
7041         int_bit_position.
7042         * config/mips/mips.c (function_arg): Likewise; also remove cast
7043         and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
7044         (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
7045         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
7046         * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
7047         (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
7048         (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
7049         (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
7050         (struct mips_arg): arg_number, arg_words, fp_arg_words, and
7051         num_adjusts now unsigned.
7052         (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
7053         * config/sparc/sparc.c (struct function_arg_record_value_parms):
7054         NREGS now unsigned.
7055         (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
7056         as is BITPOS variable; use host_integerp and int_bit_position.
7057         (function_arg_record_value_2): Likewise.
7058         (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
7059         Variable REGNO now unsigned.
7060         (function_arg_record_value): NREGS now unsigned.
7061
7062 2000-03-26  Bernd Schmidt  <bernds@cygnus.co.uk>
7063
7064         * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
7065
7066 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7067
7068         * Rework fields used to describe positions of bitfields and
7069         modify sizes to be unsigned and use HOST_WIDE_INT.
7070         * alias.c (reg_known_value_size): Now unsigned.
7071         * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
7072         (really_start_incremental_init): Use bitsize_zero_node.
7073         (push_init_level, pop_init_level, output_init_element): Likewise.
7074         Use bitsize_unit_node and bitsize_one_node.
7075         (output_pending_init_elements, process_init_element): Likewise.
7076         * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
7077         (make_extraction): Position and length HOST_WIDE_INT and unsigned
7078         HOST_WIDE_INT, respectively.
7079         (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
7080         (num_sign_bit_copies): Returns unsigned.
7081         BITWIDTH now unsigned; rework arithmetic.
7082         Remove recursive call from arg to MAX.
7083         (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
7084         (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
7085         REGNO now unsigned.
7086         (set_nonzero_bit_and_sign_copies): NUM now unsigned.
7087         (find_split_point, expand_compound_operation, make_extraction): LEN
7088         now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
7089         (make_field_assignment): Likewise.
7090         (combine_simplify_rtx): Add cast.
7091         (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
7092         (force_to_mode): WIDTH now unsigned; add cast.
7093         (if_then_else_cond): SIZE now unsigned.
7094         (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
7095         (extended_count): Now returns unsigned.
7096         (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
7097         Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
7098         (simplify_comparison): MODE_WIDTH now unsigned.
7099         (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
7100         (mark_used_regs_combine): Likewise; rework arithmetic.
7101         (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
7102         (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
7103         (record_promoted_value): REGNO now unsigned.
7104         (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
7105         (get_last_value): REGNO now unsigned.
7106         (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
7107         (reg_dead_regno, reg_dead_endregno): Now unsigned.
7108         (remove_death): Arg REGNO now unsigned.
7109         (move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
7110         (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
7111         now unsigned.
7112         * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
7113         * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
7114         (struct cse_reg_info): REGNO now unsigned.
7115         (cached_regno): Now unsigned.
7116         (REGNO_QTY_VALID_P): Add cast.
7117         (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
7118         (remove_invalid_regs): Likewise.
7119         (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
7120         as are variables END and I.
7121         (get_cse_reg_info, insert): Likewise.
7122         (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
7123         (canon_hash): Likewise.
7124         (insert_regs, lookup_for_remove): REGNO now unsigned.
7125         (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
7126         New variable RN.
7127         * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
7128         * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
7129         * emit-rtl.c (subreg_realpart_p): Add cast.
7130         (operand_subword): Arg I is now unsigned as is var PARTWORDS.
7131         (operand_subword_force): Arg I is now unsigned.
7132         * except.c (eh_regs): Variable I is now unsigned.
7133         * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
7134         * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
7135         length is unsigned HOST_WIDE_INT; likewise for internal variables.
7136         (store_split_bit_field, extract_fixed_bit_field): Likewise.
7137         (extract_split_bit_field, store_bit_field, extract_bit_field):
7138         Likewise.
7139         * expr.c (store_constructor_fields, store_constructor, store_field):
7140         Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
7141         (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
7142         (do_jump): Likewise.
7143         (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
7144         MAX_SIZE is now unsigned.
7145         (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
7146         (emit_group_store): Likewise.
7147         (emit_move_insn): I now unsigned.
7148         (store_constructor): Use host_integerp, tree_low_cst, and
7149         bitsize_unit_node.
7150         (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
7151         Rework all calculations to use trees and new fields.
7152         * expr.h (promoted_input_arg): Regno now unsigned.
7153         (store_bit_field, extract_bit_field): Adjust types of pos and size.
7154         (mark_seen_cases): Arg is HOST_WIDE_INT.
7155         * flow.c (verify_wide_reg_1): REGNO now unsigned.
7156         * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
7157         precisions and alignments are unsigned.
7158         (optimize_bit_field_compare, fold_truthop): Likewise.
7159         (int_const_binop): Adjust threshold for size_int_type_wide call.
7160         (fold_convert): Likewise.
7161         (size_int_type_wide): Make table larger and fix thinko that only
7162         had half of table used.
7163         (all_ones_mask_p, fold): Precisions are unsigned.
7164         * function.c (put_reg_info_stack): REGNO is unsigned.
7165         (instantiate_decl): Size is HOST_WIDE_INT.
7166         (instantiate_virtual_regs): I is unsigned.
7167         (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
7168         (promoted_input_arg): REGNO is unsigned.
7169         * function.h (struct function): x_max_parm_reg is now unsigned.
7170         * gcse.c (max_gcse_regno): Now unsigned.
7171         (struct null_pointer_info): min_reg and max_reg now unsigned.
7172         (lookup_set, next_set): REGNO arg now unsigned.
7173         (compute_hash_table): REGNO and I now unsigned.
7174         (handle_avail_expr): regnum_for_replacing now unsigned.
7175         (cprop_insn): REGNO now unsigned.
7176         (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
7177         * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
7178         * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
7179         * hard-reg-set.h (reg_class_size): Now unsigned.
7180         * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
7181         * jump.c (mark_modified_reg): I now unsigned; add cast.
7182         (rtx_equal_for_thread_p): Add cast.
7183         * loop.c (max_reg_before_loop): Now unsigned.
7184         (struct_movable): REGNO now unsigned.
7185         (try_copy_prop): REGNO arg unsigned.
7186         (regs_match_p): XN and YN now unsigned.
7187         (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
7188         (strength_reduce): Likewise; NREGS also unsigned.
7189         (first_increment_giv, last_increment_giv unsigned): Now unsigned.
7190         * loop.h (struct iv_class): REGNO now unsigned.
7191         (max_reg_before_loop, first_increment_giv, last_increment_giv):
7192         Now unsigned.
7193         * machmode.h (mode_size, mode_unit_size): Now unsigned.
7194         (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
7195         * optabs.c (expand_binop): I and NWORDS now unsigned.
7196         (expand_unop): I now unsigned.
7197         * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
7198         print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
7199         * real.c (significand_size): Now returns unsigned.
7200         * real.h (significand_size): Likewise.
7201         * regclass.c (reg_class_size): Now unsigned.
7202         (choose_hard_reg_mode): Both operands now unsigned.
7203         (record_reg_classes): REGNO and NR now unsigned.
7204         (reg_scan): NREGS now unsigned.
7205         (reg_scan_update): old_max_regno now unsigned.
7206         (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
7207         * reload.c (find_valid_class): BEST_SIZE now unsigned.
7208         (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
7209         (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
7210         Likewise for variable R.
7211         (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
7212         as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
7213         (find_equiv_reg): Add casts.
7214         (regno_clobbered_p): Arg REGNO now unsigned.
7215         * reload.h (struct reload): NREGS now unsigned.
7216         (refers_to_regno_for_reload_p): Regno args are unsigned.
7217         (regno_clobbered_p): Likewise.
7218         * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
7219         (compute_use_by_pseudos): REGNO now unsigned.
7220         (find_reg): I and J now unsigned, new variable K, and change loop
7221         variables accordingly; THIS_NREGS now unsigned.
7222         (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
7223         (spill_hard_reg): REGNO arg now unsigned; add casts.
7224         (forget_old_reloads_1): REGNO, NR, and I now unsigned.
7225         (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
7226         (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
7227         END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
7228         (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
7229         (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
7230         (emit_reload_insns): REGNO now unsigned.
7231         (reload_cse_move2add): Add cast.
7232         (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
7233         and rework loop.
7234         * resource.c (mark_referenced_resources, mark_set_resources): New
7235         variable R; REGNO and LAST_REGNO now unsigned.
7236         (mark_target_live_regs): J and REGNO now unsigned.
7237         * rtl.c (mode_size, mode_unit_size): Now unsigned.
7238         * rtl.h (union rtunion_def): New field rtuint.
7239         (XCUINT): New macro.
7240         (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
7241         (operand_subword, operand_subword_force): Word number is unsigned.
7242         (choose_hard_reg_mode): Operands are unsigned.
7243         (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
7244         (find_regno_note, find_regno_fusage, replace_regs): Likewise.
7245         (regno_use_in, combine_instructions, remove_death): Likewise.
7246         (reg_scan, reg_scan_update): Likewise.
7247         (extended_count): Return is unsigned.
7248         * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
7249         INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
7250         (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
7251         (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
7252         (reg_reg_last_1): FIRS and LAST now unsigned.
7253         (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
7254         (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
7255         now unsigned.
7256         (find_regno_note, regno_use_in): Arg REGNO now unsigned.
7257         (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
7258         (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
7259         (replace_regs): Arg NREGS now unsigned.
7260         * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
7261         * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
7262         (simplify_binary_operation): Likewise.
7263         (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
7264         THIS_LAST now unsigned.
7265         (cselib_record_set): Add cast.
7266         * ssa.c (ssa_max_reg_num): Now unsigned.
7267         (rename_block): REGNO now unsigned.
7268         * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
7269         sizes now unsigned.
7270         (all_cases_count): Just return -1 not -2.
7271         COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
7272         Rework tests to use trees whenever possible.
7273         Use host_integerp and tree_low_cst.
7274         (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
7275         Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
7276         (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
7277         * stor-layout.c (mode_for_size): SIZE arg now unsigned.
7278         (smallest_mode_for_size): Likewise.
7279         (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
7280         KNOWN_ALIGN is now an alignment, so simplify code.
7281         Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
7282         (start_record_layout): Renamed from new_record_layout_info.
7283         Update to new fields.
7284         (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
7285         New functions.
7286         (place_union_field): Renamed from layout_union_field.
7287         Update to use new fields in rli.
7288         (place_field): Renamed from layout_field.
7289         Major rewrite to use new fields in rli; pass alignment to layout_decl.
7290         (finalize_record_size): Rework to use new fields in rli and handle
7291         union.
7292         (compute_record_mode): Rework to simplify and to use new DECL fields.
7293         (finalize_type_size): Make rounding more consistent.
7294         (finish_union_layout): Deleted.
7295         (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7296         (layout_type, case RECORD_TYPE): Call new function names.
7297         (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7298         (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7299         (get_best_mode): UNIT is now unsigned; remove casts.
7300         * tree.c (bit_position): Compute from new fields.
7301         (byte_position, int_byte_position): New functions.
7302         (print_type_hash_statistics): Cast to remove warning.
7303         (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7304         (build_index_type): Likewise; make subtype of sizetype.
7305         (build_index_2_type): Pass sizetype to build_range_type.
7306         (build_common_tree_nodes): Use size_int and bitsize_int to
7307         initialize nodes; add bitsize_{zero,one,unit}_node.
7308         * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7309         (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7310         (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7311         (DECL_FIELD_BITPOS): Deleted.
7312         (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7313         (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7314         (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7315         (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7316         (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7317         (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7318         (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7319         (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7320         (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7321         (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7322         (DECL_ALIGN): Adjust to new field in union.
7323         (DECL_OFFSET_ALIGN): New field.
7324         (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7325         (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7326         (union tree_decl): Add struct for both aligns.
7327         (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7328         (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7329         (struct record_layout_info): Rework fields to have offset
7330         alignment and byte and bit position.
7331         (start_record_layout, place_field): Renamed from old names.
7332         (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7333         (byte_position, int_byte_position): Likewise.
7334         (get_inner_reference): Change types of position and length.
7335         * unroll.c (unroll_loop): New variable R; use for some loops.
7336         MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7337         (calculate_giv_inc): Arg REGNO now unsigned.
7338         (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7339         * varasm.c (assemble_variable): Clean up handling of size using
7340         host_integerp and tree_low_cst.
7341         (decode_addr_const): Use byte, not bit, position.
7342         (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7343         use tree_low_cst and int_bit_position.
7344         * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7345
7346 Fri Mar 24 20:13:49 2000  Jason Eckhardt  <jle@cygnus.com>
7347
7348         * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7349         (reorder_block_def): New members eff_head and eff_end.
7350         (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7351         (verify_insn_chain): New function.
7352         (skip_insns_between_block): Add code to skip deleted insns.
7353         Check for note before using.
7354         (chain_reorder_blocks): Replace calls to skip_insns_between_block
7355         with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7356         Check for note before using.
7357         (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7358         (fixup_reorder_chain): Restructure, clean up, defect removal.
7359         (reorder_basic_blocks): Remove last_insn and references to it.
7360         Moved insn chain verification code into a new function (see above).
7361         Delete defective code that sets last insn.
7362         Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7363         all blocks.
7364
7365 2000-03-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7366
7367         * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7368
7369 2000-03-24  Richard Henderson  <rth@cygnus.com>
7370
7371         * tree.c (lang_safe_for_unsave): Remove.
7372         (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7373         allowing for two levels of unsafeness.  Remove lang hook.
7374         * tree.h: Update declarations.
7375         * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7376         Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7377         Always fail sibcalls when there are pending cleanups.
7378
7379 2000-03-24  Geoff Keating  <geoffk@cygnus.com>
7380
7381         * flow.c (propagate_block): When we delete an ADDR_VEC,
7382         also delete the BARRIER following it if there is one.
7383
7384 2000-03-24  Richard Henderson  <rth@cygnus.com>
7385
7386         * builtins.c (expand_builtin_bzero): Convert `length' argument
7387         to sizetype.
7388
7389 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
7390
7391         * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7392         comparison if regno's are equal.
7393         * calls.c (initialize_argument_informat): Add ecf_flags argument.
7394         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7395         (expand_call): Update caller.
7396         Avoid making a sibling call if argument size of the callee is larger
7397         than argument size of the caller.
7398         Call hard_function_value with outgoing set if in sibcall pass.
7399         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7400
7401         * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7402         Change LEAF_REGISTERS from an array initializer to actual array
7403         identifier. Move static global variable into the function.
7404         (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7405         sequences for leaf functions.
7406         * global.c (global_alloc): Likewise.
7407         * tm.texi (LEAF_REGISTERS): Update documentation.
7408
7409         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7410         TARGET_FLAT leaf disabling hack.
7411         (LEAF_REGISTERS): Changed from an array initializer to actual array
7412         identifier to avoid duplication and remove the above hack.
7413         (FUNCTION_OK_FOR_SIBCALL): Define.
7414         * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7415         always like call attribute.
7416         (eligible_for_sibcall_delay): New attribute.
7417         (sibcall): New delay type.
7418         (sibcall, sibcall_value, sibcall_epilogue): New expands.
7419         (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7420         sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7421         * config/sparc/sparc.c (sparc_leaf_regs): New array.
7422         (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7423         New functions.
7424         (output_function_epilogue): Move part of the code into
7425         output_restore_regs.
7426         (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7427         TYPE_SIBCALL.
7428         * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7429         prototypes.
7430
7431         * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7432         until infrastructure is finished.
7433
7434 Fri Mar 24 13:49:45 2000  Jeffrey A Law  (law@cygnus.com)
7435
7436         * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7437         (save_parm_insns): Not here.
7438
7439 2000-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7440
7441         * builtins.c (expand_builtin_bzero): New function.
7442         (expand_builtin): Handle bzero.
7443
7444         * builtins.def: Add BUILT_IN_BZERO.
7445
7446         * c-common.c (c_common_nodes_and_builtins): Provide builtin
7447         prototype & function for bzero.
7448
7449 2000-03-23  Michael Meissner  <meissner@redhat.com>
7450
7451         * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7452         change adding TARGET_FP to the TF floating point insns, except for
7453         trunctfsf2, which generates direct calls to truncdfsf2.
7454
7455 2000-03-23  Geoff Keating  <geoffk@cygnus.com>
7456
7457         * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7458         try to protect against middle-end changes that break binary
7459         compatibility.
7460         (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7461
7462 2000-03-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7463
7464         * config/c4x/c4x.md (load_immed_address):  Add DP reg clobber.
7465
7466 Thu Mar 23 17:10:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7467
7468         * calls.c (expand_call): If TARGET is passed by reference and
7469         is readonly, write a CLOBBER.
7470
7471 2000-03-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7472
7473         * builtins.c (expand_builtin): Handle bcmp.
7474
7475         * builtins.def: Add BUILT_IN_BCMP.
7476
7477         * c-common.c (c_common_nodes_and_builtins): Provide builtin
7478         prototype & function for bcmp.
7479
7480 Thu Mar 23 11:34:39 2000  Jim Wilson  <wilson@cygnus.com>
7481
7482         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7483         (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7484         * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7485
7486 Thu Mar 23 16:04:40 2000  Andrew Haley  <aph@cygnus.com>
7487
7488         * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7489         alternative when using -fp64 -gp32.
7490
7491 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
7492
7493         * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7494         * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7495         * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7496
7497         * frame.h (frame_state): Revert last change.
7498         * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7499         * libgcc2.c (throw_helper): Revert last change.
7500
7501 2000-03-22  Richard Henderson  <rth@cygnus.com>
7502
7503         * stmt.c (expand_asm_operands): Don't promote the temporary.
7504
7505 2000-03-22  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7506
7507         * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7508         * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7509           c_get_alias_set): Likewise.
7510         * c-decl.c (duplicate_decls): Likewise.
7511         * c-typeck.c (default_conversion,build_unary_op): Likewise.
7512         * calls.c (initialize_argument_information): Likewise.
7513         * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7514         Likewise.
7515         * dwarfout.c (decl_class_context,output_type): Likewise.
7516         * expr.c (get_inner_reference): Likewise.
7517         * fold-const.c (simple_operand_p,fold): Likewise.
7518         * function.c (aggregate_value_p): Likewise.
7519         * stmt.c (expand_asm_operands): Likewise.
7520         * varasm.c (named_section): Likewise.
7521
7522 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
7523
7524         Implement dwarf2 exception handling for the ARM.
7525         * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7526         (DWARF_FRAME_RETURN_COLUMN): Define.
7527         * config/arm/arm.c (emit_multi_reg_push): Return rtx.  Attach
7528         REG_FRAME_RELATED_EXPR note.
7529         (emit_sfm): Likewise.
7530         (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7531         * dwarf2out.c (reg_save): Handle saving a register to itself.
7532         (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7533         * except.c (eh_regs): Don't use the static chain reg if it's
7534         callee-saved.
7535         * frame.h (frame_state): Add cfa_saved field.
7536         * frame.c (execute_cfa_insn): Set it.
7537         * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7538         the epilogue.
7539         * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7540         Now takes a parm.
7541         (instantiate_virtual_regs): Adjust.
7542         * tm.texi: Adjust.
7543         * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7544         * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7545         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7546
7547         * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7548         (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7549
7550 2000-03-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7551
7552         * builtins.def: New file.
7553
7554         * Makefile.in (TREE_H): Depend on builtins.def.
7555
7556         * builtins.c (built_in_names): Use builtins.def.
7557
7558         * tree.h (built_in_function): Likewise.
7559
7560 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
7561
7562         * tree.c (size_in_bytes): Return size_zero_node, not
7563         integer_zero_node.
7564
7565 2000-03-22  Geoff Keating  <geoffk@cygnus.com>
7566
7567         * config/fp-bit.c (pack_d): Correct the case when a denormal
7568         is rounded up and stops being denormal.
7569
7570 2000-03-21  Richard Henderson  <rth@cygnus.com>
7571
7572         * config/alpha/alpha.c (function_arg): Check for void_type_node
7573         before using MUST_PASS_IN_STACK.
7574
7575 2000-03-21  Stephane Carrez  <stcarrez@worldnet.fr>
7576
7577         * regmove.c (combine_stack_adjustments_for_block): Check that
7578         the stack pointer is a valid memory address.
7579
7580 Wed Mar 22 11:44:50 MET 2000  Jan Hubicka  <jh@suse.cz>
7581
7582         * calls.c: re-install Mar 16 emit_library_call merge.
7583
7584 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
7585
7586         * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7587         we cannot be sure that if reload_completed base register will
7588         be properly aligned.
7589
7590 2000-03-21  Richard Henderson  <rth@cygnus.com>
7591
7592         * flow.c (delete_block): Fix typo last change.
7593
7594 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
7595
7596         * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7597         not COMPLETE_TYPE_P, to check the type of the expression.
7598
7599 2000-03-21  Michael Meissner  <meissner@redhat.com>
7600
7601         * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7602         all floating point insns that just tested the macro
7603         TARGET_HAS_XFLOATING_LIBS.
7604         (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7605         used to only use the gprs.
7606
7607 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
7608
7609         * tree.h (COMPLETE_TYPE_P): New macro.
7610         (COMPLETE_OR_VOID_TYPE_P): New macro.
7611         (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7612         * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7613         * c-aux-info.c (gen_type): Use them.
7614         * c-common.c (c_expand_expr_stmt): Likewise.
7615         * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7616         grokdeclarator, grokparms, finish_struct, start_function,
7617         store_parm_decls, combine_parm_decls): Likewise.
7618         * c-parse.y (cast_expr): Likewise.
7619         * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7620         c_size_in_bytes, c_alignof, build_component_ref,
7621         build_indirect_ref, build_array_ref, convert_arguments,
7622         build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7623         * calls.c (initialize_argument_information): Likewise.
7624         * convert.c (convert_to_integer): Likewise.
7625         * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7626         * dwarfout.c (location_or_const_value_attribute,
7627         output_enumeration_type_die, output_structure_type_die,
7628         output_union_type_die, output_type): Likewise.
7629         * expr.c (safe_from_p, expand_expr): Likewise.
7630         * function.c (assign_parms): Likewise.
7631         * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7632         * tree.c (build_array_type, build_function_type,
7633         build_method_type, build_offset_type, build_complex_type): Likewise.
7634         * c-parse.c, c-parse.h: Regenerated.
7635
7636 2000-03-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7637
7638         * config/c4x/rtems.h: Include config/rtems.h.
7639
7640 Tue Mar 21 09:24:00 2000  Denis Chertykov  <denisc@overta.ru>
7641
7642         * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7643         decl is a FUNCTION_DECL
7644
7645 Mon Mar 20 19:53:53 2000  Jim Wilson  <wilson@cygnus.com>
7646
7647         * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7648         function uses output registers.  Don't save RP for leaf functions.
7649         Do save RP even if no epilogue.
7650         * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7651         (CALL_USED_REGISTERS): Unmark in registers.
7652         (REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
7653         to near the middle.
7654
7655 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
7656
7657         * config/rs6000/rs6000.md (bunordered): New expander.
7658         (bordered): New expander.
7659         (buneq): New expander.
7660         (bunge): New expander.
7661         (bungt): New expander.
7662         (bunle): New expander.
7663         (bunlt): New expander.
7664         (bltgt): New expander.
7665
7666         * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7667         (ccr_bit_negated_p): New function.
7668         (print_operand): For %C, generate appropriate cror for UNEQ,
7669         UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.
7670
7671 2000-03-20  Andreas Jaeger  <aj@suse.de>
7672
7673         * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7674         warning.
7675
7676         * tree.h (safe_for_unsave): Prototype.
7677
7678 2000-03-20  Richard Henderson  <rth@cygnus.com>
7679
7680         * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7681         (combine_stack_adjustments_for_block): Don't allow sp references
7682         in the side of a set we're not fixing up.
7683         * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7684         after life_analysis.
7685
7686 2000-03-20  Richard Henderson  <rth@cygnus.com>
7687
7688         * calls.c (expand_call): Don't bother generating tail call
7689         sequences if there are pending cleanups.  Use
7690         expand_start_target_temps/expand_end_target_temps to elide
7691         cleanups created during sibcall expansion.
7692
7693 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
7694
7695         * configure.in: Set $IFS to a value if it doesn't already have one
7696         in the --enable-checking handling.
7697         * configure: Regenerate.
7698
7699 2000-03-20  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7700
7701         * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7702         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7703         Regenerated.
7704
7705 Mon Mar 20 11:43:15 MET 2000  Jan Hubicka  <jh@suse.cz>
7706
7707         * jump.c (delete_noop_moves): Remove code attempting to
7708         combine stack adjustments.
7709
7710 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7711
7712         * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7713         * except.c (emit_cleanup_handler): Use them.
7714         (expand_end_all_catch): Likewise.
7715         * function.c (fixup_var_refs): Likewise.
7716         (expand_function_end): Clear catch_clauses_last.
7717         * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7718         * except.h (struct eh_status): New field x_catch_clauses_last.
7719         (catch_clauses_last): New define.
7720
7721         * Makefile.in (tree.o): Depend on HASHTAB_H.
7722         * tree.c: Include hashtab.h.
7723         (struct type_hash): Remove next field.
7724         (TYPE_HASH_SIZE): Remove.
7725         (TYPE_HASH_INITIAL_SIZE): New define.
7726         (type_hash_table): Change type to htab_t.
7727         (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7728         mark_hash_entry): New functions.
7729         (init_obstacks): Allocate type hash.
7730         (type_hash_lookup): Use htab functions.
7731         (type_hash_add, mark_type_hash): Likewise.
7732         (dump_tree_statistics): Call print_type_hash_statistics.
7733
7734 2000-03-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7735
7736         * rs6000/t-aix41: New file.
7737
7738         * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7739
7740 Sun Mar 19 13:27:30 2000  Hans-Peter Nilsson  <hp@axis.com>
7741
7742         * tm.texi (Driver): Fix typos and tweak entry for
7743         INCLUDE_DEFAULTS.
7744         Move misplaced STRUCT_FORCE_BLK entry ...
7745         (Storage Layout): ... to here.
7746         (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7747
7748 2000-03-19  Richard Henderson  <rth@cygnus.com>
7749
7750         * flow.c (delete_block): Delete the addr_vec along with the block.
7751         (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7752         reference labels.
7753
7754         * fold-const.c (extract_muldiv): Apply type check for defined
7755         overflow to multiply as well as divide.
7756
7757         * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7758
7759 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
7760
7761         * emit-rtl.c (remove_unncessary_notes): Check that all
7762         NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7763         associated NOTE_BLOCK.
7764         * function.h (identify_blocks): Update comments.
7765         (reorder_blocks): Declare.
7766         * function.c (identify_blocks): Don't take paramters.
7767         (reorder_blocks): Don't take parameters.
7768         * loop.h (find_loop_tree_blocks): Remove.
7769         (unroll_block_trees): Likewise.
7770         * loop.c (loop_optimize): Don't call find_loop_tree_blocks.  Use
7771         reorder_blocks instead of unroll_block_trees.h
7772         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7773         * stmt.c (find_loop_tree_blocks): Remove.
7774         (unroll_block_trees): Likewise.
7775         * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7776         in whole-function mode.
7777         * tree.h (reorder_blocks): Remove declaration.
7778
7779         * expr.c: Include intl.h.
7780         * Makefile.in (expr.o): Depend on intl.h.
7781
7782 2000-03-18  Richard Henderson  <rth@cygnus.com>
7783
7784         * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7785
7786 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
7787
7788         * tree.h (tree_index): Remove enumerals for integer types.
7789         (integer_type_kind): New type.
7790         (integer_types): New variable.
7791         (char_type_node): Adjust.
7792         (signed_char_type_node): Likewise.
7793         (unsigned_char_type_node): Likewise.
7794         (short_integer_type_node): Likewise.
7795         (short_unsigned_type_node): Likewise.
7796         (integer_type_node): Likewise.
7797         (unsigned_type_node): Likewise.
7798         (long_integer_type_node): Likewise.
7799         (long_unsigned_type_node): Likewise.
7800         (long_long_integer_type_node): Likewise.
7801         (long_long_unsigned_type_node): Likewise.
7802         * tree.c (integer_types): New variable.
7803         (init_obstacks): Register it as a root.
7804
7805 Sat Mar 18 14:38:00 2000  Jason Eckhardt  <jle@cygnus.com>
7806
7807         * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
7808         NEXT_INSN. Update last insn in chain.
7809
7810 2000-03-17  Jason Merrill  <jason@casey.cygnus.com>
7811
7812         * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
7813         with TYPE_DECL_SUPPRESS_DEBUG set.
7814
7815 2000-03-18  Richard Henderson  <rth@cygnus.com>
7816
7817         * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
7818
7819 2000-03-18  Richard Henderson  <rth@cygnus.com>
7820
7821         * i386.c (call_insn_operand): Always allow SYMBOL_REF,
7822         care for HALF_PIC_P.
7823         (expander_call_insn_operand): Remove.
7824         (ix86_expand_epilogue): New arg `emit_return' to control return insn.
7825         * i386.h (PREDICATE_CODES): Update.
7826         * i386.md (all call expanders): Remove predicates, remove special
7827         handling for half-pic.
7828         (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
7829         (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
7830         (sibcall_epilogue): New.
7831
7832 2000-03-17  Richard Henderson  <rth@cygnus.com>
7833
7834         * rtlanal.c (single_set): Reject if the parallel has anything
7835         except SET or USE or CLOBBER.
7836
7837 2000-03-17  Jeff Law  <law@cygnus.com>
7838             Richard Henderson  <rth@cygnus.com>
7839
7840         * Makefile.in (OBJS): Add sibcall.o.
7841         (sibcall.o): New.
7842         * sibcall.c: New file.
7843         * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
7844         (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
7845         (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
7846         Emit sibcall patterns when requested.  Update all callers.
7847         (expand_call): Generate CALL_PLACEHOLDER insns when tail call
7848         elimination seems feasable.
7849         * final.c (leaf_function_p): Sibling calls don't discount being
7850         a leaf function.
7851         * flow.c (HAVE_sibcall_epilogue): Provide default.
7852         (find_basic_blocks_1): Sibling calls don't throw.
7853         (make_edges): Make edge from sibling call to EXIT.
7854         (propagate_block): Don't remove sibcall_epilogue insns.
7855         * function.c (prologue, epilogue): Turn into varrays.  Update all uses.
7856         (sibcall_epilogue): New.
7857         (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
7858         (identify_blocks_1): Likewise.  Break out from ...
7859         (identify_blocks): ... here.
7860         (reorder_blocks_1): Scan CALL_PLACEHOLDER.  Break out from ...
7861         (reorder_blocks): ... here.
7862         (init_function_for_compilation): Zap prologue/epilogue as varrays.
7863         (record_insns): Extend a varray instead of mallocing new memory.
7864         (contains): Read a varray not array of ints.
7865         (sibcall_epilogue_contains): New.
7866         (thread_prologue_and_epilogue_insns): Emit and record
7867         sibcall_epilogue patterns.
7868         (init_function_once): Allocate prologue/epilogue varrays.
7869         * genflags.c (gen_insn): Treat sibcall patterns as calls.
7870         * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
7871         Broken out from ...
7872         (save_for_inline_nocopy): ... here.
7873         (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
7874         Broken out from ...
7875         (expand_inline_function): ... here.
7876         (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
7877         (subst_constants): Handle 'n' formats.
7878         * jump.c (jump_optimize_minimal): New.
7879         (jump_optimize_1): New arg `minimal'; update callers.  Elide most
7880         optimizations if it's set.
7881         * rtl.c (copy_rtx): Do copy jump & call for insns.
7882         * rtl.h (struct rtx_def): Document use of jump and call for insns.
7883         (SIBLING_CALL_P): New.
7884         (sibcall_use_t): New.
7885         * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
7886         Invoke optimize_sibling_and_tail_recursive_calls.
7887         * tree.c (lang_safe_for_unsave): New.
7888         (safe_for_unsave): New.
7889         * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
7890
7891         * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
7892         * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
7893         (*sibcall_osf_1, *sibcall_value_osf_1): New.
7894
7895 2000-03-17  Mark Mitchell  <mark@codesourcery.com>
7896
7897         * objc/objc-act.c (encode_method_prototype): Pass types, not
7898         PARM_DECLs, to int_size_in_bytes.
7899
7900 Fri Mar 17 11:51:34 2000  Jim Wilson  <wilson@cygnus.com>
7901
7902         * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
7903
7904         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7905         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
7906
7907 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7908
7909         * Clean up usages of TREE_INT_CST_LOW.
7910         * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
7911         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7912         Regenerated.
7913         * c-tree.h (min_precision): Move declaration to here.
7914         * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
7915         (build_unary_op, add_pending_init): Use bit_position.
7916         (pending_init_member, process_init_element): Likewise.
7917         (really_start_incremental_init, push_init_level, pop_init_level):
7918         Don't make copies of nodes or modify them in place, use consistent
7919         types when tracking positions, and use tree routines computations.
7920         (set_init_index, output_init_element): Likewise.
7921         (output_pending_init_elements, process_init_element): Likewise.
7922         * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
7923         tree_low_cst and int_bit_position; also minor cleanup.
7924         (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
7925         (print_cst_octal): Precision is unsigned.
7926         (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
7927         * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
7928         (simple_type_align_in_bits): Result is unsigned int.
7929         Use tree_int_low_cst and host_integerp.
7930         (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
7931         (field_byte_offset): Result is HOST_WIDE_INT.
7932         Change types of internal variables so alignments are unsigned int,
7933         offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
7934         Use host_integerp, tree_low_cst, and int_bit_position.
7935         (add_bit_offset_attribute): Likewise.
7936         (add_data_member_location_attribute): Use tree_cst_low.
7937         (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
7938         (add_bit_size_attribute): Use tree_low_cst.
7939         (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
7940         * dwarfout.c: Similar changes to dwarf2out.c.
7941         * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
7942         * genoutput.c (n_occurences): Return -1 for null string.
7943         (strip_whitespace): Accept null string and make into function.
7944         (scan_operands): Reflect above changes.
7945         * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
7946         (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
7947         * ssa.c (rename_registers): Add missing cast of arg to bzero.
7948         * tree.c (int_size_in_bytes): Check for too big to represent.
7949         (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
7950         * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
7951         New declarations.
7952         (min_precision): Delete from here.
7953         * varasm.c (decode_addr_const): Use host_integerp, bit_position,
7954         and int_bit_position.
7955         * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
7956         (encode_method_def): Likewise.
7957         (build_ivar_list_initializer): Use int_bit_position.
7958         (generate_shared_structures): Convert size.
7959         (encode_type, encode_complete_bitfield): Use integer_zerop.
7960         (encode_bitfield): Use tree_low_cst and int_bit_position.
7961
7962 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7963
7964         * config/c4x/c4x.h (CPP_SPEC): Fix typo.
7965
7966 2000-03-17  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7967
7968         * call.c (special_function_p): It is only malloc if it returns
7969         Pmode.
7970
7971 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7972
7973         * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
7974         (C33_FLAG, TARGET_C3X): Add macros.
7975         (TARGET_SWITCHES): Add -m33 option.
7976         * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
7977
7978 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7979
7980         * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
7981         (PARALLEL_PACK_FLAG): Delete.
7982         (TARGET_SWITCHES): Update.
7983         (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
7984
7985 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7986
7987         * fold-const.c (fold): Fix a few cases when the returned result
7988         is not of the same type as the input.
7989
7990 2000-03-16  Nick Clifton  <nickc@cygnus.com>
7991
7992         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
7993         warning.
7994
7995 2000-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7996
7997         * libgcc2.h: Move prototypes above macros with the same name.
7998         Wrap some function prototypes in the conditional which indicates
7999         whether they are supported, i.e. "BITS_PER_UNIT == 8".
8000
8001 2000-03-16  Richard Henderson  <rth@cygnus.com>
8002
8003         * calls.c: Revert last two changes.
8004
8005 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
8006
8007         * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
8008         has exponent 0 is a zero.
8009
8010         * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
8011         HASH may already be nonzero.  Add code/mode into hash value
8012         immediately after repeat label.
8013         (cselib_lookup): Don't leave the hash table in an inconsistent
8014         state before a hash lookup operation.
8015
8016 Thu Mar 16 17:03:10 MET 2000  Jan Hubicka  <jh@suse.cz>
8017
8018         * i386.md (all HI and QI mode non-move patterns):  Conditionize
8019         by TARGET_[HQ]IMODE_MATH.
8020         * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8021         x86_promote_qi_regs): Declare.
8022         (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
8023         TARGET_PROMOTE_QI_REGS): New macros.
8024         (PROMOTE_MODE): New macro.
8025         * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8026         x86_promote_qi_regs): New global variables.
8027
8028 Thu Mar 16 16:50:44 MET 2000  Jan Hubicka  <jh@suse.cz>
8029
8030         * calls.c (emit_library_call_value_1): Break out from ...; handle
8031         VOIDmode function calls too.
8032         (emit_library_call_value): ... here.
8033         (emit_library_call): Implement by calling emit_library_call_value_1.
8034
8035 Thu Mar 16 16:01:30 MET 2000  Jan Hubicka  <jh@suse.cz>
8036
8037         * calls.c (expand_call): Do sanity checking on arg_space_so_far.
8038         Update arg_space_so_far on stack adjustments.
8039         (emit_library_call, emit_library_call_value): Likewise; take into
8040         account arg_space_so_far and pending_stack_adjust when calculcating
8041         the boundary.
8042
8043 Thu Mar 16 09:02:19 2000  Jason Eckhardt  <jle@cygnus.com>
8044
8045         * flow.c: Move all basic block reordering code into its own file.
8046         (create_basic_block): Externalize.
8047         * bb-reorder.c: New file. Copy all basic block reordering code from
8048         flow.c to this file.
8049         (reorder_basic_blocks): Fix fencepost error in for-loop.
8050         (reorder_basic_blocks): Remove braces from single statement for-loops.
8051         * basic-block.h: Add declaration for create_basic_block.
8052         * Makefile.in: Add rules for bb-reorder.o.
8053
8054 2000-03-16  Neil Booth  <NeilB@earthling.net>
8055
8056         * cppinit.c (handle_option):  Implement #unassert directive
8057         as -A- command line option.
8058         (print_help):  Update.
8059         * cpptexi.c:  Update.
8060
8061 Thu Mar 16 02:14:16 2000  Hans-Peter Nilsson  <hp@bitrange.com>
8062
8063         * md.texi (Standard Names): Document `jump'.
8064
8065 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
8066
8067         * calls.c (emit_call_1): Nothrow functions can still have nonlocal
8068         gotos.
8069
8070 2000-03-15  Geoff Keating  <geoffk@cygnus.com>
8071
8072         Merge changes from newppc-branch onto trunk.
8073
8074         2000-03-15  Geoff Keating  <geoffk@cygnus.com>
8075
8076         * rs6000.c (toc_hash_table): Update for new hash table functions.
8077         (toc_hash_function): Likewise.
8078         (toc_hash_eq): Likewise.
8079         (toc_hash_mark_entry): Likewise.
8080         (toc_hash_mark_table): Likewise.
8081         (output_toc): Likewise.
8082         (rs6000_add_gc_roots): Likewise.
8083
8084         2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8085
8086         * t-aix43 (AR_FOR_TARGET): Deleted.  Moved `-X32_64'...
8087         (AR_FLAGS_FOR_TARGET): here.  New macro.
8088
8089         2000-03-05  Clinton Popetz  <cpopetz@cygnus.com>
8090
8091         * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
8092         fpmem_operand) Delete.
8093         (xer_operand) New.
8094         (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
8095         (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
8096         (rs6000_save_machine_status, rs6000_restore_machine_status,
8097         rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
8098         references to above variables.
8099         (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
8100         * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
8101         DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
8102         (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
8103         (XER_REGNO_P, XER_REGNO): New.
8104         (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
8105         (PREDICATE_CODES): Change fpmem_operand to xer_operand.
8106         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
8107         XER_REGNO_P.
8108         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
8109         REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS,         and remove FLOAT_OR_FPMEM_REGS.
8110         (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
8111
8112         2000-02-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8113
8114         * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
8115         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
8116         * rs6000.h: from here.
8117
8118         * rs6000-protos.h (rs6000_select_section): Provide prototype.
8119         (rs6000_select_rtx_section): Likewise.
8120         (rs6000_encode_section_info): Likewise.
8121         (sdata_section): Likewise.
8122         (sdata2_section): Likewise.
8123         (sbss_section): Likewise.
8124         * sysv4.h (rs6000_select_section): Delete prototype.
8125         (rs6000_select_rtx_section): Likewise.
8126         (rs6000_encode_section_info): Likewise.
8127         (sdata_section): Likewise.
8128         (sdata2_section): Likewise.
8129         (sbss_section): Likewise.
8130         (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
8131
8132         * sysv4.h: Delete various unnecessary #undef's and put a comment
8133         on the remaining ones.
8134         Change various comments according to coding standard.
8135
8136         2000-02-29  Clinton Popetz  <cpopetz@cygnus.com>
8137
8138         * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
8139         CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
8140         (CR0_REGNO_P) Remove.
8141         * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
8142         setup_incoming_varargs, mtcrf_operation, print_operand,
8143         rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
8144         Use the above macros.
8145
8146         2000-02-24  Clinton Popetz  <cpopetz@cygnus.com>
8147
8148         * config/rs6000/rs6000.md: Added a new alternative for each
8149         pattern that had a 'x' alternative but no 'y' alternative.
8150         Added a new split for each of the above patterns.
8151
8152         2000-02-18  Geoff Keating  <geoffk@cygnus.com>
8153
8154         * aix41.h (ASM_CPU_SPEC): Delete.
8155         (CPP_CPU_SPEC): Delete.
8156
8157         * aix.h (RS6000_OUTPUT_BASENAME): Define.
8158         (ASM_OUTPUT_LABEL): Define.
8159         (ASM_GLOBALIZE_LABEL): Define.
8160         (STRIP_NAME_ENCODING): Define.
8161         * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
8162         (STRIP_NAME_ENCODING): Don't define.
8163         (ASM_OUTPUT_LABEL): Don't define.
8164         (ASM_GLOBALIZE_LABEL): Don't define.
8165         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
8166         names, and ASM_OUTPUT_LABEL to output labels, rather than
8167         asm_fprintf.
8168         (ASM_OUTPUT_LABEL): Define.
8169         (ASM_OUTPUT_INT): Use assemble_name.
8170         (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
8171         (STRIP_NAME_ENCODING): Don't undefine first.
8172         (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
8173         ELF.
8174         (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
8175         specified with 'asm' even with -fleading-underscore.
8176         * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
8177         (output_epilog): Likewise.
8178         (output_toc): Likewise.
8179         * tramp.asm: Handle -fleading-underscore correctly.
8180
8181         * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
8182         -mminimal-toc.
8183         (nonlocal_goto_receiver): Delete.
8184         * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
8185
8186         * rs6000.h (ASM_OUTPUT_DEF): Don't define.
8187         (SET_ASM_OP): Define.
8188         * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
8189
8190         * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
8191         (ASM_LONG): Define.
8192
8193         * rs6000.c (rs6000_dll_import_ref): Delete, not used.
8194         * rs6000-protos.h (rs6000_dll_import_ref): Delete.
8195
8196         * rs6000.h: Add 'u' to more constants.
8197
8198         2000-02-18  David Edelsohn  <edelsohn@gnu.org>
8199
8200         * rs6000.md (mfcr+shift): Delete PowerPC64 version.
8201
8202         2000-02-15  David Edelsohn  <edelsohn@gnu.org>
8203
8204         * rs6000.c (reg_or_u_cint_operand): New function.
8205         (logical_operand): Handle 64-bit hosts.
8206         (logical_u_operand): New function.
8207         (non_logical_cint_operand): Handle 64-bit hosts.
8208         (non_logical_u_cint_operand): New function.
8209         * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
8210         (PREDICATE_CODES): Define new functions.
8211         * rs6000-protos.h: Declare new functions.
8212         * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
8213         (movdi_64): Bracket code intended for 64-bit hosts.  Create
8214         CONST_DOUBLE for 32-bit values.
8215         (scc insns): Generate DImode compares.
8216         (mfcr insns): Create DImode versions.
8217         (sge matchers): New patterns.
8218
8219         2000-02-15  Gabriel Paubert  <paubert@iram.es>
8220
8221         * rs6000.md: Correct instructions length attributes and
8222         constraints on unsigned compare instructions.
8223         (*ne0): Disable for PowerPC64.
8224
8225         2000-02-11  Geoff Keating  <geoffk@cygnus.com>
8226
8227         * rs6000.c (output_function_profiler): Use .long for a 32-bit
8228         quantity, fix profile1.C test failure under -fPIC.
8229
8230         * rs6000.c: Add 'u' to many constants to suppress warnings.
8231         (constant_pool_expr_1): Make static.
8232         (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
8233         * rs6000.h: Add 'u' to many constants to suppress warnings.
8234
8235         * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
8236         for the start of the TOC, instead of LCTOC..0.
8237         * aix.h (toc_section): Use LCTOC..1 under AIX for the start
8238         of the TOC.
8239         * rs6000.md (load_toc_aix_si): Use LCTOC..1.
8240         (load_toc_aix_di): Use LCTOC..1.
8241
8242         * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
8243         * rs6000.c (rs6000_legitimize_address): New function from
8244         LEGITIMIZE_ADDRESS.  Only use create_TOC_reference on
8245         symbols in the constant pool that really are TOC references.
8246         (print_operand_address): For ELF, write TOC offsets under
8247         -fPIC as subtractions in the insn.
8248         (output_toc): For ELF, define symbols in TOC as normal labels,
8249         to match RTL.
8250         (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
8251         * rs6000-protos.h (rs6000_legitimize_address): Prototype.
8252         (create_TOC_reference): Prototype only when RTX_CODE is defined.
8253         * rs6000.md (movsi): Only use create_TOC_reference on
8254         symbols in the constant pool that really are TOC references.
8255
8256         * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
8257         * rs6000.c (rs6000_reorg): Delete.
8258         * rs6000-protos.h (rs6000_reorg): Delete.
8259
8260         2000-02-09  Geoff Keating  <geoffk@cygnus.com>
8261
8262         * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
8263
8264         * aix.h (SETUP_FRAME_ADDRESSES): Define.
8265         * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
8266         [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
8267         [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
8268         * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
8269         rs6000_aix_emit_builtin_unwind_init.
8270         * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
8271         rs6000_emit_eh_toc_restore on AIX.
8272         (return_eh_si): Use r2.
8273         (return_eh_di): Use r2.
8274
8275         * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
8276         since we're breaking binary compatibility anyway.
8277
8278         2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
8279
8280         * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
8281         constant_pool_expr_p): Declare them.
8282         (constant_pool_expr_p): Declare it.
8283         * config/rs6000/rs6000.c (toc_label_name): Define.
8284         (rs6000_override_options): Set toc_label_name.
8285         (input_operand): Allow any TOC_RELATIVE_EXPR_P.
8286         (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
8287         uses_TOC): New functions.
8288         (print_operand): Delete old '*' case.
8289         (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8290         and strip off rtl for TOC before calling output_addr_const.
8291         (rs6000_emit_load_toc_table): Use toc_label_name.
8292         * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8293         the default.
8294         (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8295         (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8296         (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8297         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8298         into explicit TOC_REGISTER offsets.
8299         (TOC_REGISTER): New macro.
8300         * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8301         TARGET_TOC to reference TOC_REGISTER.
8302         (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8303         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8304         uses_TOC before emitting label references.
8305
8306         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
8307
8308         * rs6000.md (stack_tie): Fix warning.
8309
8310         * eabi-ctors.c: Use 'asm' names for the start/end variables,
8311         to handle -fleading-underscore.
8312         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8313         (USER_LABEL_PREFIX): New macro.
8314         (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8315         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8316         * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8317         call-linux can use the same multilibs.
8318         * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8319         and call-linux multilibs.  Do multilib with -fleading-underscore.
8320         (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8321         (MULTILIB_EXCEPTIONS): Remove call-linux exceptions.  Add restrictions
8322         to call-aix.
8323
8324         * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8325         have MASK_SOFT_FLOAT set.
8326         (CPP_FLOAT_DEFAULT_SPEC): New macro.
8327         (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8328         CPP_FLOAT_DEFAULT_SPEC.
8329
8330         * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8331         * rs6000.md: Whitespace change.
8332         * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8333         * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8334
8335         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
8336
8337         * rs6000.md (eh_epilogue): New expander.
8338         (eh_reg_restore): New expand/split/insn combination.
8339         (return_eh_si): New insn.
8340         (return_eh_di): New insn.
8341
8342         * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8343         * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8344         * eabi-ctors.c (__do_global_ctors): Register this object's
8345         frame.  Clean up.  Call atexit() after the constructors.
8346         (__do_global_dtors): Deregister this object's frame.  Clean up.
8347         Allow for recursive calls to exit().
8348         * rs6000.c (fixuplabelno): New variable.
8349         * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8350         TARGET_RELOCATABLE, it slows down exec() under linux.
8351         (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8352
8353         * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8354         (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8355         (ASM_OUTPUT_DWARF_DELTA2): New macro.
8356         (ASM_OUTPUT_DWARF_DELTA4): New macro.
8357         (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8358         (ASM_OUTPUT_DWARF_ADDR): New macro.
8359         (ASM_OUTPUT_DWARF_DATA4): New macro.
8360         (ASM_OUTPUT_DWARF_DATA2): New macro.
8361         (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8362         (ASM_OUTPUT_DWARF_OFFSET): New macro.
8363         (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8364
8365         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
8366
8367         * rs6000.c (rs6000_sr_alias_set): New variable.
8368         (rs6000_override_options): Initialise rs6000_sr_alias_set.
8369         (rs6000_emit_stack_tie): New function.
8370         (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8371         in a way that dwarf2out can understand.
8372         (rs6000_frame_related): New function.
8373         (rs6000_emit_prologue): Use rs6000_sr_alias_set.  Specify
8374         RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8375         Use rs6000_emit_stack_tie when needed.
8376         (rs6000_emit_epilogue): Use rs6000_sr_alias_set.  Don't set
8377         RTX_FRAME_RELATED_P.  Use rs6000_emit_stack_tie when needed.
8378         * rs6000.md (stack_tie): New insn.
8379         (return_internal_si): Allow return value to be in the count
8380         register.
8381         (return_internal_di): Likewise.
8382
8383         * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8384
8385         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
8386
8387         * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8388
8389         2000-01-31  Geoff Keating  <geoffk@cygnus.com>
8390
8391         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8392
8393         * rs6000.md (stmw): Use the right POWER opcode.
8394         (lmw): Likewise.
8395
8396         2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8397
8398         * rs6000-protos.h: New file.
8399
8400         * rs6000.c: Include tm_p.h.  Fix compile time warnings.
8401
8402         * rs6000.h: Move prototypes to rs6000-protos.h.  Fix compile time
8403         warnings.
8404
8405         * sysv4.h: Likewise.
8406
8407         2000-01-28  Geoff Keating  <geoffk@cygnus.com>
8408
8409         * ../../configure.in: Delete powerpcle-*-winnt*
8410         and powerpcle-*-pe|powerpcle-*-cygwin*.
8411         * ../../configure: Regenerated.
8412         * cygwin.h: Delete.
8413         * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8414         (TARGET_WINDOWS_NT): Delete.
8415         (ABI_NT): Delete.
8416         (CALL_NT_DLLIMPORT): Delete.
8417         Delete NT-specific code.
8418         * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8419         * win-nt.h: Delete.
8420         * t-winnt: Delete.
8421         * nt-ci.asm: Delete.
8422         * nt-cn.asm: Delete.
8423         * ntstack.asm: Delete.
8424
8425         2000-01-27  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8426
8427         * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8428         (ASM_FILE_START): Likewise.
8429         (ASM_DECLARE_FUNCTION_NAME): Likewise.
8430         (ASM_OUTPUT_LABELREF): Likewise.
8431         (ASM_OUTPUT_SKIP): Likewise.
8432         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8433         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8434         (ASM_OUTPUT_CASE_LABEL): Likewise.
8435         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8436         (ASM_OUTPUT_ASCII): Likewise.
8437
8438         2000-01-27  Clinton Popetz  <cpopetz@cygnus.com>
8439
8440         * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8441         reload_toc_labelno for non-prologue TOC reloads.  Also, don't
8442         increment rs6000_pic_labelno here.
8443         (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8444         and increment rs6000_pic_labelno here.
8445
8446         2000-01-24  Geoffrey Keating  <geoffk@cygnus.com>
8447
8448         * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8449         rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8450         allocation knows (reg) is dead before the insn.
8451
8452         2000-01-21  Geoff Keating  <geoffk@cygnus.com>
8453
8454         * rs6000.md (movsi_to_cr): Correct typo in output template.
8455
8456         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
8457
8458         * rs6000.c (rs6000_pic_labelno): Always define.
8459         (rs6000_pic_func_labelno): Delete.
8460         (lmw_operation): Check for a zero base register,
8461         which doesn't mean what we want.
8462         (stmw_operation): New function.
8463         (print_operand): Define new 'l' modifier.
8464         (rs6000_stack_info): We must save all 64 bits of the registers
8465         if TARGET_POWERPC64.
8466         (rs6000_output_load_toc_table): Delete.
8467         (rs6000_emit_load_toc_table): New function.
8468         (rs6000_allocate_stack_space): Delete.
8469         (rs6000_emit_allocate_stack): New function.
8470         (rs6000_emit_prologue): New function.
8471         (output_prolog): Use rs6000_emit_prologue.
8472         (rs6000_emit_epilogue): Change a few variable names to be
8473         more accurate.  Restore all 64 bits of the registers if
8474         TARGET_POWERPC64.  Only restore the FP registers which were used
8475         if they are being saved/restored one-at-a-time.
8476         (output_mi_thunk): Delete inefficient code generation.
8477         (output_function_profiler): Don't use rs6000_output_load_toc_table.
8478         * rs6000.h: Declare rs6000_emit_load_toc_table,
8479         rs6000_allocate_stack_space, stmw_operation.  Don't declare
8480         rs6000_output_load_toc_table.
8481         * rs6000.md (elf_high): Allow register 0, but discourage it
8482         heavily.
8483         (elf_low): Support loading into register 0.
8484         (load_toc_aix_si): New pattern.
8485         (load_toc_aix_di): New pattern.
8486         (load_toc_v4_pic_si): New pattern.
8487         (load_toc_v4_pic_di): New pattern.
8488         (load_toc_v4_PIC_1): New pattern.
8489         (load_toc_v4_PIC_1b): New pattern.
8490         (load_toc_v4_PIC_2): New pattern.
8491         (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8492         (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8493         (prologue): New expander.
8494         (movesi_from_cr): New pattern.
8495         (stmw): New pattern.
8496         (save_fpregs_si): New pattern.
8497         (save_fpregs_di): New pattern.
8498
8499         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8500
8501         * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8502         (movdi): Likewise.
8503         (movhi): Likewise.
8504         (movqi): Likewise.
8505
8506         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8507
8508         * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8509         at present.
8510         (movsi_got_internal): Likewise.
8511         (movsi_got_internal+1): Likewise.
8512         (set_sp): 'unspec 7' does a SImode clobber.
8513
8514         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8515
8516         * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8517         allocate a stack temporary.
8518         (floatsidf2_internal): Likewise.
8519         (floatsidf2_internal+1): Likewise.  Don't do bizzare hacks
8520         with unspec.
8521         (floatunssidf2): Don't use the fpmem "register", just
8522         allocate a stack temporary.
8523         (floatunssidf2_internal): Likewise.
8524         (floatunssidf2_internal+1): Likewise.  Don't do bizzare hacks
8525         with unspec.
8526         (floatsidf2_loadaddr): Delete.
8527         (floatsidf2_store1): Delete.
8528         (floatsidf2_store2): Delete.
8529         (floatsidf2_load): Delete.
8530         (fix_truncdfsi2): Don't use the fpmem "register", just
8531         allocate a stack temporary.
8532         (fix_truncdfsi2_internal_si): Delete.
8533         (fix_truncdfsi2_internal_di): Delete.
8534         (fix_truncdfsi2_internal): New insn.
8535         (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8536         (fix_truncdfsi2_store): Delete.
8537         (fix_truncdfsi2_load): Delete.
8538         (fctiwz): Produce gen_fctiwz.
8539
8540         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
8541
8542         * eabi.h (INVOKE__main): Define.
8543         * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8544         specially.
8545         (rs6000_emit_prologue): Likewise.
8546         * rs6000.h (struct rs6000_stack): Don't keep track of whether
8547         this is the main program.
8548
8549         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8550
8551         * rs6000.c (rs6000_va_arg): Delete some unused variables.
8552
8553         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8554
8555         * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8556         goes after the argument.
8557
8558         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8559
8560         * rs6000.md: Document 'unspec' values used.
8561         (epilogue): New expander.
8562         (movesi_to_cr_one): New expander.
8563         (movesi_to_cr and following): New pattern.
8564         (lmw): New pattern.
8565         (return_internal_si): New pattern.
8566         (return_internal_di): New pattern.
8567         (return_and_restore_fpregs_si): New pattern.
8568         (return_and_restore_fpregs_di): New pattern.
8569         * rs6000.h: Declare new functions.
8570         * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8571         rather than rs6000_calls_p.
8572         (rs6000_makes_calls): Delete.
8573         (lmw_operation): New function.
8574         (mtcrf_operation): New function.
8575         (rs6000_emit_epilogue): New function.
8576         (output_epilog): Call rs6000_emit_epilogue and final if
8577         !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8578
8579         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8580
8581         * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8582         * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8583         * aix.h (SUBTARGET_SWITCHES): Document switches.
8584         * rs6000.h: (TARGET_SWITCHES): Don't print options twice.  Make
8585         sched-prolog and sched-epilog the same.  Document all the
8586         switches.
8587         (TARGET_OPTIONS): No longer allow -mdebug-.
8588
8589         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8590
8591         * rs6000.h (ASM_FILE_END): Move to aix.h.
8592         (EXTRA_SECTIONS): Move to aix.h.
8593         (READONLY_DATA_SECTION): Move to aix.h.
8594         (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8595         (SELECT_SECTION): Move to aix.h.
8596         (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8597         (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8598         (LINK_REGISTER_REGNUM): New definition.
8599         (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8600         (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8601         AIX and SVR4.
8602         * sysv4.h: Delete the code between the inclusion of rs6000.h
8603         and svr4.h.
8604         (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8605         (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8606         (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8607         (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8608         * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8609         (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8610         (fix_truncdfsi2_internal_di): New pattern.
8611         (fix_truncdfsi2_store): The second arg here is Pmode too.
8612         (fix_truncdfsi2_load): The second arg here is Pmode too.
8613         (tablejumpdi): Now that switch tables hold only SImode values,
8614         gcc needs to know how to add them to the pc which is DImode.
8615         * rs6000.c (rs6000_stack_info): Use symbolic name for
8616         LINK_REGISTER_REGNUM.
8617         (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8618         (output_toc): Delete unused variables s1 and s2.
8619         (output_ascii): Use fputs not fprintf on a variable string.
8620
8621         2000-01-07  David Edelsohn  <edelsohn@gnu.org>
8622
8623         * rs6000.c (processor_target_table): Add power3 as alias for 630.
8624         * aix43.h: Revert Aug 2 change.
8625         (HAS_INIT_SECTION): Define, not visible yet.
8626         (LD_INIT_SWITCH): Define, not visible yet.
8627         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8628
8629         2000-01-04  Joel Sherrill (joel@OARcorp.com>
8630
8631         * config/rs6000/rtems.h: Include config/rtems.h.
8632
8633         2000-01-04  David Edelsohn  <edelsohn@gnu.org>
8634
8635         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8636         (SLOW_UNALIGNED_ACCESS): Define.
8637         (CASE_VECTOR_MODE): Always use 32-bit offsets.
8638         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8639         (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8640         (toc_section): Likewise and .toc pseudo-op.
8641         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
8642         64-bit mode.
8643         (TEXT_SECTION_ASM_OP): Likewise.
8644         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8645         32-bit offsets.
8646
8647         1999-12-17  Jakub Jelinek  <jakub@redhat.com>
8648
8649         * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8650         UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8651         compiling libgcc2.
8652
8653         2000-01-06  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8654
8655         * rs6000.h: Move more stuff from here...
8656         * aix.h: to here.
8657         * sysv4.h: Cleanup accordingly.
8658         * netware.h: Likewise
8659
8660         2000-01-05  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8661
8662         * rs6000.h: Continue cleanup.
8663         * aix.h: Likewise.
8664         * lynx.h: Likewise.
8665         * netware.h: Likewise.
8666         * sol2.h: Likewise.
8667         * sysv4.h: Likewise.
8668         * win-nt.h: Likewise.
8669
8670         * rs6000.h (TARGET_SWITCHES): Add descriptions.
8671         (TARGET_OPTIONS): Likewise.
8672
8673         * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8674         (SUBTARGET_OPTIONS): Likewise.
8675
8676         * rs6000.md: Fix compile time warnings.
8677
8678         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8679
8680         vxworks patches from the Cygnus tree originally by
8681         Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8682         <vmakarov@cygnus.com>.
8683         * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8684         (ENDFILE_SPEC): Likewise.
8685         (LIB_VXWORKS_SPEC): New macro.
8686         (STARTFILE_VXWORKS_SPEC): New macro.
8687         (ENDFILE_VXWORKS_SPEC): New macro.
8688         (LINK_START_VXWORKS_SPEC): New macro.
8689         (LINK_OS_VXWORKS_SPEC): New macro.
8690         (CPP_OS_VXWORKS_SPEC): New macro.
8691         (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8692         * vxppc.h: Rewrite to use proper configuration method.
8693         * vxppcle.h: New file.
8694         * ../../configure.in: Add powerpcle-wrs-vxworks*.
8695         * ../../configure: Rebuilt.
8696
8697         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8698
8699         Lots of changes to rs6000.h, sysv4.h, aix.h,
8700         aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8701         with the aim that rs6000.h is the first header
8702         included and the others override it.
8703         * aix.h: New file.
8704
8705         * x-aix41-gld: Remove.
8706         * x-aix43: Remove.
8707         * x-aix41: Remove target-specific switches, and don't specify
8708         -Wl,-bbigtoc as we don't need it any more.
8709         * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8710         Use t-aix43 for AIX 4.3 and above.
8711         * ../../configure: Regenerated.
8712
8713         * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8714         options, that don't do anything yet.
8715         (MASK_SCHED_PROLOG): New macro.
8716         (MASK_SCHED_EPILOG): New macro.
8717         (TARGET_SCHED_PROLOG): New macro.
8718         (TARGET_SCHED_EPILOG): New macro.
8719
8720         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8721
8722         * rs6000.c: Correct comment, the `minimal' TOCs are actually
8723         one per translation unit, not one per function.
8724         (output_toc): Also do duplicate constant elimination
8725         for per-translation-unit TOCs.
8726
8727         * rs6000.md (nonlocal_goto_receiver): Put it back as before.  Add
8728         a comment explaining _exactly_ when this pattern gets used.
8729         (builtin_setjmp_receiver): New pattern for better clarity.
8730         (init_v4_pic): Move it into a section dealing with TOC registers.
8731
8732         1999-12-30  Geoff Keating  <geoffk@cygnus.com>
8733
8734         * rs6000.c (toc_hash_table): New variable.
8735         (rs6000_hash_constant): New function.
8736         (toc_hash_function): New function.
8737         (toc_hash_eq): New function.
8738         (toc_hash_mark_entry): New function.
8739         (toc_hash_mark_table): New function.
8740         (output_toc): Don't output duplicate TOC entries in
8741         a single file.
8742         (rs6000_add_gc_roots): Add the hash table as a GC root.
8743         * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8744         where they clearly shouldn't be.  This may need to be fixed
8745         later when there is a GNU ar for AIX.
8746         * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8747         Don't define BOOT_LDFLAGS as it is now not necessary.
8748
8749         1999-12-29  Geoff Keating  <geoffk@cygnus.com>
8750
8751         * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8752         for va_list on AIX.  Use unsigned_char_type_node rather than
8753         constructing our own version on svr4.
8754
8755         1999-12-17  Geoff Keating  <geoffk@cygnus.com>
8756
8757         * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8758         since patently it's not.
8759
8760         1999-12-08  Geoff Keating  <geoffk@cygnus.com>
8761
8762         * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8763         define_expand/define_insn pair, and handle restore of the
8764         SVR4 -fpic register.
8765
8766 Wed Mar 15 15:43:38 2000  Jeffrey A Law  (law@cygnus.com)
8767
8768         * acconfig.h (HAVE_GAS_WEAK): New define.
8769         * configure.in (assembler weak support): Check for .weak support.
8770         * config.in, configure: Rebuilt.
8771         * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8772         HAVE_GAS_WEAK is defined.
8773
8774 2000-03-15  Nick Clifton  <nickc@cygnus.com>
8775
8776         * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8777         asm_fprintf().
8778
8779 2000-03-15  Zack Weinberg  <zack@wolery.cumb.org>
8780
8781         * cppfiles.c (open_include_file): New function.
8782         (find_include_file, cpp_read_file): Use it.
8783
8784 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
8785
8786         * cpphash.c (dump_hash_helper): Take the slot, not the element.
8787
8788 Wed Mar 15 14:28:54 2000  Jason Eckhardt  <jle@cygnus.com>
8789
8790         * flow.c (verify_flow_info): Check for unconditional return.
8791
8792 Wed Mar 15 11:34:27 2000  Jim Wilson  <wilson@cygnus.com>
8793
8794         * config/ia64/ia64.md (restore_stack_nonlocal): New.
8795         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
8796         (__ia64_restore_stack_nonlocal): New.
8797         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
8798
8799 2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8800
8801         * cpphash.c (collect_formal_parameters): Do not complain about
8802         parameter names that just start with `__VA_ARGS__'.
8803
8804 Wed Mar 15 13:26:58 MET 2000  Jan Hubicka  <jh@suse.cz>
8805
8806         * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
8807         movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
8808         * i386.c (pentiumpro_cost): Set mul cost to 4.
8809         (x86_use_movx): Set for PPro.
8810
8811 Wed Mar 15 13:07:05 MET 2000  Jan Hubicka  <jh@suse.cz>
8812
8813         * i386.md (ix86_compute_frame_size): stack_alignment_needed is
8814         STACK_BOUNDARY for empty frames now.
8815
8816 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
8817
8818         * stor-layout.c (layout_union): Remove.
8819         (layout_union_field): New function, split out from layout_union.
8820         (finish_union_layout): Likewise.
8821         (layout_field): Handle unions by calling layout_union_field.
8822         (finish_record_layout): Handle unions.
8823         (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
8824         QUAL_UNION_TYPE handling.
8825
8826 Wed Feb 23 13:00:06 CET 2000  Jan Hubicka  <jh@suse.cz>
8827
8828         * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
8829         end of basic block is jump_insn, not barrier; use create_basic_block
8830         instead of creating basic block by hand.
8831
8832 2000-03-14  Jason Eckhardt  <jle@cygnus.com>
8833
8834         * flow.c (reorder_basic_blocks): Account for barriers when writing
8835         over NEXT_INSN (last_bb->end).
8836         (verify_flow_info): Add check for missing barriers.
8837
8838 2000-03-14  Greg McGary  <gkm@gnu.org>
8839
8840         * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
8841         * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
8842         * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
8843         __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
8844         __unbounded, __unbounded__): New keywords.
8845         * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
8846         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
8847         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
8848
8849 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
8850
8851         * cselib.h: New file.
8852         * alias.c: Include "cselib.h".
8853         (fixed_scalar_and_varying_struct_p): Accept the addresses of the
8854         MEMs as two new arguments.
8855         (get_addr): New static function.
8856         (find_base_term): Handle VALUEs.
8857         (memrefs_conflict_p): Likewise.
8858         (true_dependence): Call get_addr on the addresses.
8859         Call fixed_scalar_and_varying_struct_p with addresses that have been
8860         passed through get_addr and canon_rtx.
8861         (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
8862         with true_dependence.
8863         Call get_addr on the addresses; don't call canon_rtx on the MEMs.
8864         * loop.c: Include "cselib.h".
8865         (load_mems): Process extended basic block that enters the loop with
8866         cselib.  Use that information to change initialization of the shadow
8867         register so that a constant equivalence is seen by later passes.
8868         * reload1.c: Include "cselib.h".
8869         (reload_cse_invalidate_regno): Delete function.
8870         (reload_cse_mem_conflict_p): Likewise.
8871         (reload_cse_invalidate_mem): Likewise.
8872         (reload_cse_invalidate_rtx): Likewise.
8873         (reload_cse_regno_equal_p): Likewise.
8874         (reload_cse_check_clobber): Likewise.
8875         (reload_cse_record_set): Likewise.
8876         (reg_values): Delete static variable.
8877         (invalidate_regno_rtx): Likewise.
8878         (reload_cse_delete_noop_set): New static function.
8879         (reload_cse_simplify): New static function, broken out of
8880         reload_cse_regs_1.
8881         (reload_cse_noop_set_p): Delete unused argument INSN.
8882         Just call rtx_equal_for_cselib_p on set source and destination.
8883         (reload_cse_regs_1): Break out some code into reload_cse_simplify and
8884         reload_cse_delete_noop_set.  Delete code to keep track of values; use
8885         cselib functions instead.  Delete code to push/pop obstacks.
8886         (reload_cse_simplify_set): Use cselib to find equivalent values.
8887         Delete code to push/pop obstacks.
8888         (reload_cse_simplify_operands): Likewise.
8889         * rtl.def (VALUE): New rtx code.
8890         * rtl.h (union rtunion_def): New elt rt_cselib.
8891         (X0CSELIB, CSELIB_VAL_PTR): New macros.
8892         * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
8893         (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
8894         unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
8895         discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
8896         hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
8897         cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
8898         cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
8899         cselib_record_set, cselib_record_sets): New static functions.
8900         (cselib_lookup, cselib_update_varray_sizes, cselib_init,
8901         cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
8902         references_value_p): New functions.
8903         (MAX_USELESS_VALUES, REG_VALUES): New macros.
8904         (table, cselib_current_insn, next_unknown_value, cselib_nregs,
8905         n_useless_values, reg_values, callmem, cselib_obstack,
8906         cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
8907         New static variables.
8908         * varray.h (union varray_data_tag): New elt te.
8909         (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
8910         * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
8911         dependencies.
8912
8913 2000-03-14  Nick Clifton  <nickc@cygnus.com>
8914
8915         * gcc.c (do_spec_1): Catch the case where %* is used in a
8916         substitution pattern, but it has not been initialised.
8917         Issue a meaningful error message if an unrecognised operator
8918         is encountered in a spec string.
8919
8920 2000-03-14  Richard Earnshaw <rearnsha@arm.com>
8921
8922         * function.c (prepare_function_start): Correctly initialize
8923         cfun->stack_alignment_needed.
8924
8925 2000-03-14  Zack Weinberg  <zack@wolery.cumb.org>
8926
8927         * cppfiles.c (find_include_file): Don't assume nshort is a
8928         substring of name.
8929
8930 Tue Mar 14 08:42:21 2000  Jeffrey A Law  (law@cygnus.com)
8931
8932         * configure.in (hppa configurations): Add pa32-regs.h to the
8933         list of tm files as appropriate.
8934         * configure: Rebuilt.
8935         * pa.c (compute_frame_size): Remove explicit knowledge about FP
8936         register numbering.
8937         (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
8938         (fmpyaddoperands, fmpysuboperands): Likewise.
8939         * pa.h: Remove various definitions which depend on knowing
8940         how registers are numbered.
8941         * pa32-regs.h: New file with PA32 register numbering specific
8942         definitions.
8943
8944 2000-03-14  Richard Henderson  <rth@cygnus.com>
8945
8946         * regmove.c (combine_stack_adjustments): New.
8947         (stack_memref_p, single_set_for_csa): New.
8948         (free_csa_memlist, record_one_stack_memref): New.
8949         (try_apply_stack_adjustment): New.
8950         (combine_stack_adjustments_for_block): New.
8951         * rtl.h (combine_stack_adjustments): Declare.
8952         * toplev.c (rest_of_compilation): Call it.
8953
8954         * i386.md: Revert 2000-01-16 change.
8955
8956 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8957
8958         * gccbug.in: Add web category, gcc specific classes.
8959
8960 2000-03-14  Nathan Sidwell  <nathan@codesourcery.com>
8961
8962         * stor-layout.c (finalize_record_size): Fix typo.
8963
8964 2000-03-14  Stan Shebs  <shebs@apple.com>
8965
8966         * c-typeck.c (c_alignof): Error on incomplete types.
8967         * extend.texi (Alignment): Document this.
8968
8969 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
8970
8971         * cppfiles.c: Include mkdeps.h.
8972         (find_include_file, read_include_file): Remove _cpp_ prefix
8973         from name, make static.
8974         (_cpp_execute_include): New function, broken out of
8975         do_include.
8976
8977         * cpplib.c: Don't include mkdeps.h.
8978         (struct directive): Remove type field. Reorder entries.  The
8979         function takes only one argument.
8980         (struct if_stack): Make type field an int.
8981         (directive_table): Rename to dtable.  Generate it, the
8982         prototypes of the directive handlers, and the enum for the
8983         directive numbers, from a template macro.
8984         (do_ifndef, do_include_next, do_import): New functions.
8985         (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
8986         do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
8987         do_ident, do_assert, do_unassert, do_sccs): Take only one
8988         argument.
8989         (do_sccs): Define always, but alter behavior based on
8990         SCCS_DIRECTIVE.
8991         (_cpp_handle_directive, consider_directive_while_skipping):
8992         Restructure for new directive table layout.
8993
8994         (pass_thru_directive): Take a directive number, not a pointer
8995         to a struct directive.
8996         (parse_include): New function, broken out of do_include.
8997         (do_include, do_import, do_include_next): Use parse_include
8998         and _cpp_execute_include.
8999         (do_elif, do_else): Test for T_ELSE specifically when checking
9000         for #elif/#else after #else.
9001         (parse_ifdef): New function, broken out of do_ifdef.
9002         (validate_else): Expect a name arg without a leading #.
9003         (if_directive_name): Delete.
9004         (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
9005         directive handlers with only one argument.
9006
9007         * cpphash.h: Update prototypes.
9008         (enum node_type): Remove entries for directives.
9009         * Makefile.in: Update dependencies.
9010
9011         * cpphash.c (dump_hash_helper): Only dump nodes of type
9012         T_MACRO.  Emit a newline after each definition.
9013
9014 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9015
9016         * gccbug.in: New file.
9017         * configure.in (all_outputs): Add gccbug.
9018         * Makefile.in (install-common): Install gccbug.
9019         (GCCBUG_INSTALL_NAME): New variable.
9020         * configure: Rebuilt.
9021
9022 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
9023
9024         * function.c (put_var_into_stack): Use type_for_mode to calculate
9025         part_type.  Use MEM_SET_IN_STRUCT_P.
9026         * expr.c (store_field): Handle CONCAT.
9027         (store_constructor): Use fields_length.
9028         * tree.c (fields_length): New fn.
9029         * tree.h: Declare it.
9030
9031 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
9032
9033         * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
9034         (cpplex.o): New target.
9035         * po/POTFILES.in: Add cpplex.c.
9036
9037         * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
9038         cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
9039         cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
9040         skip_block_comment, skip_line_comment, skip_comment,
9041         copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
9042         _cpp_parse_name, skip_string, parse_string,
9043         _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
9044         _cpp_get_directive_token, find_position,
9045         _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
9046         (maybe_macroexpand, _cpp_lex_token): New functions.
9047
9048         * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
9049         parse_goto_mark): Delete.
9050         (_cpp_handle_eof): New function.
9051         (_cpp_handle_directive): Rename from handle_directive.
9052         (_cpp_output_line_command): Rename from output_line_command.
9053         (do_if, do_elif): Call _cpp_parse_expr directly.
9054         * cppfiles.c (_cpp_read_include_file): Don't call
9055         init_input_buffer here.
9056         * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
9057         * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
9058         here; pop the token_buffer and skip the rest of the line here.
9059         * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
9060         here.
9061
9062         * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
9063         Define here.
9064         (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
9065         CPP_GOTO_MARK): New macros.
9066         (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
9067         _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
9068         _cpp_read_and_prescan, _cpp_init_input_buffer,
9069         _cpp_grow_token_buffer, _cpp_get_directive_token,
9070         _cpp_handle_directive, _cpp_handle_eof,
9071         _cpp_output_line_command): Prototype them here.
9072         * cpplib.h (enum cpp_token): Add CPP_MACRO.
9073         (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
9074         quote_string, output_line_command): Remove.
9075
9076 2000-03-13  Bernd Schmidt  <bernds@cygnus.co.uk>
9077
9078         * stmt.c (expand_end_case): RANGE may be signed, and when checking
9079         whether it is too large we must also verify that it isn't negative.
9080
9081 2000-03-13  Jakub Jelinek  <jakub@redhat.com>
9082
9083         * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
9084         (movsi_zero_liveg0): Remove.
9085         (movsf_insn_novis_liveg0): Remove.
9086         (negsi2): Remove.
9087         (negsi2_not_liveg0): Rename to negsi2.
9088         (one_cmplsi2): Remove.
9089         (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
9090         (one_cmplsi2_liveg0): Remove.
9091         * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
9092         MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
9093         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
9094         (PREDICATE_CODES): Remove zero_operand.
9095         * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
9096         TARGET_BROKEN_SAVERESTORE.
9097         (zero_operand): Remove.
9098         * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
9099         -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
9100         options.
9101         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9102         * config/sparc/linux-aout.h (TARGET_LIVE_G0,
9103         TARGET_BROKEN_SAVERESTORE): Remove.
9104         * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9105         Remove.
9106         * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9107         Remove.
9108         * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9109         Remove.
9110
9111         * config/sparc/sparc.md (return_df_no_fpu): New pattern.
9112
9113 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
9114
9115         * cpplib.c (do_pragma_implementation): Fix off-by-one error
9116         truncating a string.  Don't assume tokens are nul terminated.
9117         Problem noted by Andreas Jaeger <aj@suse.de>
9118
9119 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
9120
9121         * dwarf2out.c (add_name_and_src_coords_attributes): Only add
9122         DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
9123         (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
9124
9125 2000-03-13  Richard Earnshaw <rearnsha@arm.com>
9126
9127         * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
9128         STRUCTURE_SIZE_BOUNDARY.
9129
9130 2000-03-13  Mark Mitchell  <mark@codesourcery.com>
9131
9132         * tree.h (record_layout_info_s): New structure.
9133         (record_layout_info): New type.
9134         (new_record_layout_info): New function.
9135         (layout_field): Likewise.
9136         (finish_record_layout): Likewise.
9137         * stor-layout.c (layout_record): Remove.
9138         (new_record_layout_info): New function.
9139         (layout_field): New function, broken out from layout_record.
9140         (finalize_record_size): Likewise.
9141         (compute_record_mode): Likewise.
9142         (finalize_type_size): New function, broken out from layout_type.
9143         (finish_record_layout): Likewise.
9144         (layout_type): Use them.
9145
9146 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
9147
9148         * cpphash.c: Don't include version.h.
9149         (special_symbol) [case T_VERSION]: Look for the string in
9150         hp->value.cpval; don't use version_string.
9151         * cppinit.c (initialize_builtins): Set hp->value.cpval for
9152         __VERSION__ to version_string.
9153         * Makefile.in (cpphash.o): Update deps.
9154
9155 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
9156
9157         Convert cpplib to use libiberty/hashtab.c.
9158
9159         * cpplib.h (struct cpp_reader): Make hashtab and
9160         all_include_files of type 'struct htab *'.  Delete HASHSIZE
9161         and ALL_INCLUDE_HASHSIZE macros.
9162
9163         * cpphash.h: Update prototypes.
9164         (struct hashnode): Remove next, prev, and bucket_hdr members.
9165         Make length a size_t.  Add hash member.
9166         (struct ihash): Remove next member.  Add hash member.  Make
9167         name a flexible array member.
9168
9169         * cppfiles.c: Include hashtab.h.
9170         (include_hash): Delete.
9171         (IHASHSIZE): New macro.
9172         (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
9173         (cpp_included): Do the hash lookup here.
9174         (_cpp_find_include_file): Rewrite.
9175         (cpp_read_file): Put the "fake" hash entry into the hash
9176         table.  Honor the control_macro, if it turns out we've seen
9177         the file before.  Don't push the buffer here.
9178         (_cpp_read_include_file): Push the buffer here.
9179         (OMODES): New macro.  Use it whenever we call open(2).
9180
9181         * cpphash.c: Include hashtab.h.
9182         (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
9183         _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
9184         _cpp_lookup_slot): New functions.
9185         (HASHSIZE): new macro.
9186         (hashf, _cpp_install, _cpp_delete_macro): Delete.
9187         (_cpp_lookup): Use hashtab.h routines.
9188
9189         * cppinit.c: Include hashtab.h.
9190         (cpp_reader_init): Call _cpp_init_macro_hash and
9191         _cpp_init_include_hash.  Don't allocate hashtab directly.
9192         (cpp_cleanup): Just call htab_delete on pfile->hashtab and
9193         pfile->all_include_files.
9194         (initialize_builtins): Use _cpp_make_hashnode and
9195         htab_find_slot to add hash entries.
9196         (cpp_finish): Just call _cpp_dump_macro_hash.
9197         * cpplib.c: Include hashtab.h.
9198         (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
9199         create hash entries.
9200         (do_pragma_poison, do_assert): Likewise.
9201         (do_include): Don't push the buffer here.  Don't increment
9202         system_include_depth unless _cpp_read_include_file succeeds.
9203         (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
9204         or htab_remove_elt.
9205         (do_pragma_implementation): Use alloca to create copy.
9206
9207         * Makefile.in: Update dependencies.
9208
9209 2000-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9210
9211         * cppinit.c (cl_directive_handler): More K&R fixing.
9212
9213 Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
9214
9215         * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
9216         STACK_BOUNDARY.
9217         * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
9218
9219 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9220
9221         * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
9222         Change from char[] to macros.
9223
9224 2000-03-12  Neil Booth  <NeilB@earthling.net>
9225
9226         * cppinit.c (cpp_start_read): Update indirect function
9227         call to K&R C.
9228
9229 Sat Mar 11 16:18:12 2000  Jim Wilson  <wilson@cygnus.com>
9230
9231         * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
9232         entry.
9233
9234         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9235         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
9236
9237 2000-03-11  Neil Booth  <NeilB@earthling.net>
9238
9239         * cppinit.c (struct pending option): Replace undef with a
9240         pointer to a directive handling routine.
9241         (struct cpp_pending): Replace separate assert_ and define_
9242         lists with one directive_ list.
9243         (new_pending_define): Rename new_pending_directive. Extra
9244         argument is the directive's handling routine.
9245         (handle_option): Update to use new_pending_directive.
9246
9247 2000-03-11  Neil Booth  <NeilB@earthling.net>
9248
9249         * cppfiles.c (file_cleanup, _cpp_find_include_file,
9250         remap_filename, _cpp_read_include_file, actual_directory,
9251         hack_vms_include_specification): Replace bcopy(), index() etc
9252         calls.  Add casts to some allocations.  Make some variables
9253         pointers to const [unsigned] char.
9254         * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
9255         collect_formal_parameters): Similarly.
9256         * cppinit.c (struct pending_option, append_include_chain,
9257         cpp_options_init, cpp_reader_init, initialize_standard_includes,
9258         cpp_start_read, new_pending_define, handle_option): Similarly.
9259         * cpplib.c (cpp_define, copy_comment, do_define, do_include,
9260         do_undef, do_error, do_warning, do_pragma, do_pragma_once,
9261         do_pragma_implementation, detect_if_not_defined,
9262         do_ifdef, skip_if_group, cpp_get_token, parse_string,
9263         do_assert, do_unassert): Similarly.
9264         * cpplib.h (cpp_buffer, cpp_options): Update types.  Update
9265         function prototypes.
9266         * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
9267
9268 2000-03-10  Richard Henderson  <rth@cygnus.com>
9269
9270         * builtins.c (expand_builtin_strlen): Revert last change.
9271         Use emit_insn_before if we're at the beginning of a sequence.
9272
9273 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
9274
9275         * builtins.c (expand_builtin_strlen): Make sure that we have something
9276         at the beginning of the sequence.
9277
9278         * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
9279         deferred inlines.
9280
9281         * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
9282
9283 2000-03-10  Richard Henderson  <rth@cygnus.com>
9284
9285         * except.c (can_throw): Use INTVAL on a CONST_INT.
9286         (reachable_handlers): Likewise.
9287         * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
9288
9289 2000-03-10  Andreas Jaeger  <aj@suse.de>
9290
9291         * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9292         MD_STARTFILE_PREFIX since those are not needed on linux.
9293         (ASM_FILE_START): New, from mips/gnu.h.
9294
9295 2000-03-09  Richard Henderson  <rth@cygnus.com>
9296             Alex Samuel  <samuel@codesourcery.com> and others
9297
9298         * Makefile.in (ssa.o): New rule.
9299         (OBJS): Add ssa.o.
9300         (STAGESTUFF): Add *.ssa and *.ussa.
9301         (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9302         * rtl.def (PHI): New RTL expression.
9303         * rtl.h (clear_log_links): New declaration.
9304         (convert_to_ssa): Likewise.
9305         (convert_from_ssa): Likewise.
9306         * flow.c (split_edge): If the entry node falls through to the
9307         split edge's source block, split the entry edge.
9308         (clear_log_links): New function.
9309         * toplev.c (ssa_dump): New variable.
9310         (flag_ssa): Likewise.
9311         (f_options): Add "ssa".
9312         (compile_file): Create SSA dump files.
9313         (rest_of_compilation): Go to and from SSA if enabled.
9314         (decide_d_option): Handle -de for SSA dump files.
9315         * ssa.c: New file.
9316
9317 Thu Mar  9 20:01:38 2000  Jim Wilson  <wilson@cygnus.com>
9318
9319         * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9320         same as VAR_DECL.
9321
9322 2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
9323
9324         * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9325
9326 Thu Mar  9 18:10:02 2000  Jeffrey A Law  (law@cygnus.com)
9327
9328         * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9329         (MD_STARTFILE_PREFIX_1): New macro.
9330
9331 2000-03-09  Robert Lipe  <robertl@sco.com>
9332
9333         * config/ia64/ia64.c: Include system.h.
9334
9335 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
9336
9337         * except.c (nothrow_function_p): If -fno-exceptions, just return.
9338         (init_eh_nesting_info): Likewise.
9339
9340         * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9341         (TREE_NOTHROW): Rename from TREE_RAISES.
9342         * toplev.c (rest_of_compilation): Set it.
9343         * print-tree.c (print_node): Adjust.
9344         * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9345         (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9346         * calls.c (emit_call_1): Add 'nothrow' parm.  Add
9347         REG_EH_REGION note as appropriate.
9348         (libfunc_nothrow): New fn.
9349         (emit_library_call, emit_library_call_value): Use it.
9350         (expand_call): Check TREE_NOTHROW.
9351
9352         * varasm.c (make_decl_rtl): Skip initial '*' when setting
9353         DECL_ASSEMBLER_NAME.
9354
9355 2000-03-09  Andreas Jaeger  <aj@suse.de>
9356
9357         * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9358         (TARGET_MEM_FUNCTIONS): Define.
9359
9360 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
9361
9362         * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9363
9364         * except.c (can_throw): See through a SEQUENCE.
9365         (nothrow_function_p): New fn.
9366         * except.h: Declare it.
9367         * function.c (current_function_nothrow): New var.
9368         (prepare_function_start): Initialize it.
9369         * output.h: Declare it.
9370         * toplev.c (rest_of_compilation): Set it.
9371         * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9372
9373 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
9374
9375         * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9376         match.  (cpp_compare_defs): Count the nul separator when
9377         advancing over argument names.
9378
9379 2000-03-09  Bernd Schmidt  <bernds@cygnus.co.uk>
9380
9381         * recog.c (preprocess_constraints): Matching constraints affect
9382         same alternative/different operand, not same operand/different
9383         alternative.
9384
9385         * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9386         register and a constant specially.
9387
9388 2000-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9389
9390         * libgcc2.h: New file.
9391         * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9392
9393 Wed Mar  8 16:19:42 2000  Jim Wilson  <wilson@cygnus.com>
9394
9395         * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9396         * configure: Regenerate.
9397         * config/ia64: New.
9398
9399 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
9400
9401         * Makefile.in (LIBCPP_DEPS): New macro.
9402         (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9403         it to declare deps.
9404         * cpperror.c: Include cpphash.h.
9405         * cppexp.c: Include cpphash.h.  Remove MULTIBYTE_CHARS
9406         dingleberry.
9407         (lex): Don't use CPP_WARN_UNDEF.
9408         (_cpp_parse_expr): Return an int, the truth value.
9409         * cppfiles.c: Include cpphash.h.
9410         (_cpp_merge_include_chains): Move to cppinit.c and make static.
9411         * cppinit.c (include_defaults_array): Disentangle.
9412         (cpp_cleanup): Don't free the if stack here.
9413         (cpp_finish): Pop off all buffers, not just one.
9414         * cpplib.c (eval_if_expr): Return int.
9415         (do_xifdef): Rename do_ifdef.
9416         (handle_directive): Don't use CPP_PREPROCESSED.
9417         (cpp_get_token): Don't use CPP_C89.
9418         * fix-header.c: Don't use CPP_OPTIONS.
9419
9420         * cpplib.h: Move U_CHAR, enum node_type, struct
9421         file_name_list, struct ihash, is_idchar, is_idstart,
9422         is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9423         CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9424         CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9425         CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9426         CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9427         of _cpp_simplify_pathname, _cpp_find_include_file,
9428         _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9429         Move struct if_stack to cpplib.c.  Move struct cpp_pending to
9430         cppinit.c.
9431         Change all uses of U_CHAR to be unsigned char instead.
9432         Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9433
9434 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
9435
9436         * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9437         (dwarf2out_begin_prologue): Set it.
9438         (output_call_frame_info): Don't emit EH unwind info for leaves.
9439
9440         * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9441         can occur outside of an EH region.
9442         * except.c: Correct comments about rethrow behavior.
9443         (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9444
9445 2000-03-08  Andrew MacLeod  <amacleod@cygnus.com>
9446
9447         * flow.c (make_edges): Always call make_eh_edge for calls.
9448
9449 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
9450
9451         * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9452         (struct cpp_buffer): Remove fname and underflow fields.
9453         (struct cpp_reader): Remove get_token field.
9454         (struct include_hash): Rename to struct ihash.  Add typedef to
9455         IHASH.
9456         (struct if_stack): Remove fname field.
9457         (IF_STACK_FRAME): Rename to IF_STACK.
9458
9459         * cpperror.c (print_containing_files): Trust that there are no
9460         macro buffers below the top file buffer.
9461         * cppfiles.c: Replace all references to 'struct include_hash'
9462         with 'IHASH'.  Rename initialize_input_buffer to
9463         init_input_buffer.  Don't set or reference cpp_buffer->fname,
9464         use buffer->ihash->name instead.
9465         * cpphash.c (special_symbol): Use cpp_file_buffer.  Use NULL
9466         not CPP_NULL_BUFFER.
9467         * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9468         IF_STACK_FRAME, IHASH not struct include_hash.
9469         * cpplib.c: Rename eval_if_expression to eval_if_expr.  Remove
9470         null_underflow.  Use IF_STACK not IF_STACK_FRAME, IHASH not
9471         struct include_hash, NULL not CPP_NULL_BUFFER.  Remove all
9472         references to cpp_buffer->fname (delete entirely, or use
9473         ->ihash->name instead) and IF_STACK->fname.
9474         (cpp_push_buffer): Don't set new->underflow.
9475         (do_include): Use cpp_file_buffer.
9476
9477         * cpphash.c (collect_formal_parameters): Remove duplicate
9478         increment of argslen.  Pedwarn in C99 mode if __VA_ARGS__ is
9479         used as a macro argument name.  Don't append "..." to namebuf
9480         for varargs macros.  After we're done scanning, go through
9481         namebuf and make it NUL separated, not comma separated.
9482         (_cpp_compare_defs): Remove register tag from variables.
9483         Expect defn->argnames to be NUL separated.
9484         (_cpp_dump_definition): Expect defn->argnames to be NUL
9485         separated and in forward order.
9486         * cpphash.h: Update documentation of argnames field.
9487
9488 2000-03-08  Richard Henderson  <rth@cygnus.com>
9489
9490         * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9491         to fail.  Don't pre-expand the source operand.
9492
9493         * i386.md (strlensi): Initialize eoschar and align before use.
9494
9495 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
9496
9497         * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9498         CONSTRUCTOR element.
9499
9500 2000-03-08  Gavin Romig-Koch  <gavin@cetus.cygnus.com>
9501
9502         * mips.c (mips_expand_prologue): If the last
9503         named argument is the vararg marker "va_list", treat it as
9504         an unnamed argument.
9505
9506 2000-03-08  Clinton Popetz  <cpopetz@cygnus.com>
9507
9508         * dbxout.c (dbxout_parms): When correcting for promoted
9509         big-endian parameters, use the mode of the DECL_RTL rather
9510         than UNITS_PER_WORD.
9511
9512 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
9513
9514         * c-common.h (make_fname_decl): Declare.
9515         * c-common.c (make_fname_decl): Define.
9516         (declare_hidden_char_array): Remove.
9517         (declare_function_name): Use make_fname_decl.
9518         * c-decl.c (c_make_fname_decl): New function.
9519         (init_decl_processing): Set make_fname_decl.
9520
9521 Tue Mar  7 23:50:31 2000  Jeffrey A Law  (law@cygnus.com)
9522
9523         * cccp.c (handle_directive): Initialize backslash_newlines_p.
9524
9525 2000-03-07  Philipp Thomas  <pthomas@suse.de>
9526
9527         * po/POTFILES.in: Remove cppalloc.c from file list.
9528
9529 2000-03-07  Steve Chamberlain  <sac@pobox.com>
9530
9531         * pj.c (pj_expand_prologue): current_function->args_info is
9532         now current_function_args_info.
9533
9534         * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9535         LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9536         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9537
9538 2000-03-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9539
9540         * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9541         output as hexadecimal rather than the default octal.
9542
9543 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
9544
9545         * cpphash.c (special_symbol): Fix thinko in previous commit.
9546
9547 2000-03-07  Neil Booth  <NeilB@earthling.net>
9548
9549         * cppexp.c (struct operation, left_shift, right_shift,
9550         cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9551         "int"s to "unsigned int"s.
9552         * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9553         Similarly.
9554         * cpplib.h: Update for above.
9555         * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9556         returned from allocations.
9557
9558         * cppinit.c (opt_comp, parse_options): New functions.
9559         (handle_option): Use parse_option to parse a single command
9560         line option, that possibly takes an argument.
9561         (cpp_handle_options): Sort the array of command line options on
9562         first invocation (non-ASCII hosts only).
9563         (print_help): Update.
9564
9565 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
9566
9567         * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9568         backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.
9569
9570         * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9571         initialized.
9572         * cppinit.c (cpp_cleanup): Free imp->nshort also.
9573
9574         * cpperror.c (cpp_print_containing_files,
9575         cpp_print_file_and_line, v_cpp_message): Rename to
9576         print_containing_files, print_file_and_line, and v_message.
9577         * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9578         to _cpp_parse_expr, parse_escape, and lex.
9579         (parse_charconst): Remove broken multibyte support.
9580         * cppfiles.c (include_hash): Make static.
9581         (cpp_included): New function.
9582         (merge_include_chains, find_include_file, finclude,
9583         simplify_pathname): Rename to _cpp_merge_include_chains,
9584         _cpp_find_include_file, _cpp_read_include_file, and
9585         _cpp_simplify_pathname.
9586         * cpphash.c (cpp_lookup, free_definition, delete_macro,
9587         cpp_install, create_definition, macroexpand, compare_defs,
9588         dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9589         _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9590         _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9591         * cppinit.c (cpp_handle_option): Rename to handle_option, make
9592         static.
9593         * cpplib.c: Remove extern prototype of cpp_parse_expr.
9594
9595         * cpphash.h: Update prototypes.
9596         * cpplib.h: Likewise.  Prototype _cpp_parse_expr here.
9597
9598 2000-03-07  Andrew Haley  <aph@cygnus.com>
9599
9600         * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9601         PTRDIFF_TYPE should be based solely on Pmode.
9602         (SIZE_TYPE): ditto.
9603
9604 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9605
9606         * rtl.h (rtunion_def): Constify member `rtstr'.
9607         (emit_line_note_after, emit_line_note, emit_line_note_force,
9608         emit_note, decode_asm_operands): Constify.
9609
9610         * cse.c (canon_hash): Likewise.
9611
9612         * dbxout.c (dbxout_block): Likewise.
9613
9614         * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9615         v_warning_for_asm): Likewise.
9616
9617         * dwarfout.c (function_start_label): Likewise.
9618
9619         * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9620         emit_line_note_force): Likewise.
9621
9622         * final.c (last_filename, asm_insn_count, final_scan_insn,
9623         output_source_line): Likewise.
9624
9625         * function.h (struct emit_status): Likewise.
9626
9627         * gcse.c (hash_expr_1): Likewise.
9628
9629         * genattr.c (gen_attr, main): Likewise.
9630
9631         * genattrtab.c (struct function_unit, current_alternative_string,
9632         write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9633         attr_numeral, check_attr_test, check_attr_value,
9634         convert_set_attr_alternative, convert_set_attr,
9635         compute_alternative_mask, simplify_by_exploding, gen_attr,
9636         gen_unit): Likewise.
9637
9638         * genflags.c (gen_insn): Likewise.
9639
9640         * gengenrtl.c (type_from_format): Likewise.
9641
9642         * genopinit.c (gen_insn): Likewise.
9643
9644         * genoutput.c (n_occurrences, process_template, process_template):
9645         Likewise.
9646
9647         * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9648         Likewise.
9649
9650         * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9651         Likewise.
9652
9653         * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9654         ggc_set_mark, ggc_get_size): Likewise.
9655
9656         * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9657
9658         * optabs.c (init_one_libfunc): Likewise.
9659
9660         * output.h (assemble_start_function): Likewise.
9661
9662         * recog.c (decode_asm_operands): Likewise.
9663
9664         * toplev.c (rest_of_compilation): Likewise.
9665
9666         * tree.h (emit_line_note_after, emit_line_note,
9667         emit_line_note_force): Likewise.
9668
9669         * varasm.c (asm_output_bss, asm_output_aligned_bss,
9670         asm_emit_uninitialised, assemble_start_function,
9671         assemble_variable, const_hash, compare_constant_1,
9672         find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9673
9674         * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9675
9676         * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9677
9678         * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9679
9680         * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9681
9682         * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9683         arm_dllimport_name_p): Likewise.
9684
9685         * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9686         Likewise.
9687
9688         * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9689
9690         * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9691
9692         * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9693         arm_mark_dllexport, arm_mark_dllimport,
9694         arm_pe_encode_section_info): Likewise.
9695
9696         * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9697         ASM_FINISH_DECLARE_OBJECT): Likewise.
9698
9699         * arm/thumb.c (thumb_function_prologue): Likewise.
9700
9701         * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9702
9703         * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9704
9705         * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9706
9707         * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9708
9709         * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9710
9711         * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9712
9713         * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9714         ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9715
9716         * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9717
9718         * i386/i386.c (asm_output_function_prefix): Likewise.
9719
9720         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9721
9722         * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9723
9724         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9725
9726         * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9727         ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9728         ASM_OUTPUT_SECTION_NAME): Likewise.
9729
9730         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9731
9732         * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9733
9734         * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9735
9736         * m32r/m32r.c (m32r_encode_section_info): Likewise.
9737
9738         * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9739
9740         * mcore/mcore.c (mcore_encode_section_info): Likewise.
9741
9742         * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9743
9744         * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9745
9746         * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9747
9748         * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9749
9750         * mips/mips.md (movdi, movsi): Likewise.
9751
9752         * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9753
9754         * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9755
9756         * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9757
9758         * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9759         ASM_OUTPUT_ASCII): Likewise.
9760
9761         * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9762         output_mi_thunk, output_toc): Likewise.
9763
9764         * rs6000/rs6000.md (movsi): Likewise.
9765
9766         * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9767
9768         * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9769
9770         * v850/v850.c (print_operand, print_operand_address,
9771         v850_encode_data_area): Likewise.
9772
9773 2000-03-07  Clinton Popetz  <cpopetz@cygnus.com>
9774
9775         * config/mips/mips.md (zero_extendsidi2): Always force operand
9776         one to memory for mips16.
9777
9778 Mon Mar  6 15:22:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9779
9780         * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9781         (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9782         (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9783         (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9784         (min_precision): Result is unsigned.
9785         (add_double, neg_double, mul_double): Low word is unsigned.
9786         (lshift_double, rshift_double, lrotate_double): Likewise.
9787         (rrotate_double, div_and_round_double): Likewise.
9788         (tree_floor_log2, compare_tree_int): New functions.
9789         (preserve_rtl_expr_temps): New declaration.
9790         * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9791         (decl_attributes): Use tree_log2 to find alignment.
9792         Check for TREE_INT_CST_HIGH for format args.
9793         (min_precision): Now unsigned.
9794         Use tree_floor_log2.
9795         (truthvalue_conversion): Delete long-disabled code.
9796         * c-decl.c (finish_struct): Clean up tests on field width.
9797         (finish_function): Use compare_tree_int.
9798         * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
9799         * c-typeck.c (comptypes): Use tree_int_cst_equal.
9800         (default_conversion, digest_init): Use compare_tree_int.
9801         (build_binary_op): Use integer_all_onesp and compare_tree_int.
9802         Fix type errors in forming masks.
9803         * calls.c (initialize_argument_information): Use compare_tree_int.
9804         * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9805         * except.c (expand_eh_region_start_tree): Use compare_tree_int.
9806         * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
9807         (store_field): Use compare_tree_int.
9808         (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
9809         (expand_expr, case ARRAY_REF): Use compare_tree_int.
9810         (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
9811         (do_store_flag): Use compare_tree_int.
9812         * fold-const.c (encode, decode): Low part is always unsigned.
9813         (force_fit_type, add_double, neg_double, mul_double): Likewise.
9814         (lshift_double, rshift_double, lrotate_double): Likewise.
9815         (rrotate_double, div_and_round_double, int_const_binop): Likewise.
9816         (fold_convert): Use compare_tree_int.
9817         (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
9818         (invert_truthvalue, case INTEGER_CST): Likewise.
9819         (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
9820         * mkdeps.c (deps_dummy_targets): Make I unsigned.
9821         * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
9822         (lshift_double, rshift_double, lrotate_double, rrotate_double):
9823         Likewise.
9824         * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
9825         (expand_end_case): Use compare_tree_int.
9826         (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9827         * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
9828         (layout_decl): Likewise.
9829         (layout_record, layout_union): Make sizes unsigned.
9830         (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
9831         (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
9832         * tree.c (struct type_hash): hashcode is unsigned.
9833         (build_type_attribute_variant, type_hash_list): Likewise.
9834         (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
9835         (attribute_hash_list, build_array_type, build_method_type): Likewise.
9836         (build_complex_type): Likewise.
9837         (real_value_from_int_cst): Remove unneeded casts.
9838         (integer_all_onesp): Add casts.
9839         (tree_floor_log2, compare_tree_int): New functions.
9840         (build_index_type): Use tree_int_cst_sgn.
9841         * varasm.c (assemble_variable): Use compare_tree_int.
9842
9843 2000-03-06  Jason Merrill  <jason@casey.cygnus.com>
9844
9845         * cpphash.c (collect_expansion): Also catch ## at start of macro.
9846
9847         * varasm.c (make_decl_rtl): Don't add a number to members of
9848         local classes.
9849         (make_function_rtl): Likewise.
9850
9851 2000-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9852
9853         * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
9854         patch from 2000-01-28.
9855
9856 2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
9857
9858         * config/sh/sh.c: (barrier_align): Handle a delay slot that is
9859         filled with an insn from the jump target.
9860
9861 2000-03-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9862
9863         * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
9864         (c4x_external_ref): Likewise.
9865         * config/c4x/c4x.c (struct name_list): Likewise.
9866
9867 1999-12-16  Ben Collins  <bcollins@debian.org>
9868
9869         * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
9870         argument to genmultilib.
9871         * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
9872         the contents into the multilib.h header.
9873         * gcc.c: Declare multilib_exclusions for the specs file.
9874         (set_multilib_dir): Use it.
9875         (print_multilib_info): Likewise.
9876         * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
9877         to pass to genmultilib.
9878
9879 2000-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9880
9881         * builtins.c (built_in_class_names, built_in_names): Constify a
9882         char*.
9883
9884         * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
9885         int.
9886         (_mcleanup): Ensure value matches format specifier in sprintf.
9887
9888         * cpphash.c (special_symbol): Don't needlessly cast away
9889         const-ness.
9890
9891         * cppinit.c (base_name): Delete unused prototype.
9892
9893         * mkdeps.c (deps_init): Make definition K&R safe.
9894
9895         * tree.h (built_in_class_names, built_in_names): Constify a
9896         char*.
9897
9898 2000-03-06  Jakub Jelinek  <jakub@redhat.com>
9899
9900         * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
9901         floating point instructions for epilogue delay.
9902
9903         * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
9904         to gas if it supports .register pseudo.
9905
9906         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
9907         LONG_DOUBLE_TYPE_SIZE if not defined.
9908         Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
9909         LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
9910         * real.c: Likewise.
9911         * gengenrtl.c: Likewise.
9912         * print-rtl.c: Likewise.
9913         * rtl.c: Likewise.
9914         * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
9915         MASK_LONG_DOUBLE_128.
9916         * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
9917         * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
9918         * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
9919         (SUBTARGET_SWITCHES): Define.
9920         (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
9921         with -mlong-double-128.
9922         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9923         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9924         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9925         (CC1_SPEC): Include -mlong-double-{64,128} as needed.
9926         * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
9927         (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
9928         with -mlong-double-128.
9929         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9930         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9931         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9932         * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
9933         TARGET_LONG_DOUBLE_128): Define.
9934         * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
9935         * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
9936         long double on TARGET_ARCH64.
9937
9938 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
9939
9940         * function.c (free_temps_for_rtl_expr): Don't free slots
9941         that have been pushed into a higher level.
9942
9943         Revert this patch:
9944         2000-03-05  Mark Mitchell  <mark@codesourcery.com>
9945
9946 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
9947
9948         * basic-block.h (ALLOCA_REG_SET): Remove.
9949         (INITIALIZE_REG_SET): New macro.
9950         * flow.c (update_life_info): Use it.
9951         (calculate_global_regs_live): Likewise.
9952         (propagate_block): Likewise.
9953         * global.c (build_insn_chain): Likewise.
9954         * haifa-sched.c (schedule_region): Likewise.
9955
9956 2000-03-05  Stephane Carrez  <stcarrez@worldnet.fr>
9957
9958         * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
9959         (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
9960         (DWARF_ARANGES_PAD_SIZE): New define.
9961         (output_aranges): Use it to pad the address range header.
9962         (DWARF_ROUND): Fix for non power of 2 rounding.
9963
9964 2000-03-05  Jason Merrill  <jason@casey.cygnus.com>
9965
9966         * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
9967
9968 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
9969
9970         * tree.def (RTL_EXPR): Update documentation.
9971         * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
9972         * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
9973         * function.c (preserve_rtl_expr_temp): New function.
9974         (preserve_rtl_expr_temps): Likewise.
9975         (preserve_rtl_expr_result): Use it.
9976
9977         Revert this patch:
9978         2000-03-04  Mark Mitchell  <mark@codesourcery.com>
9979
9980 2000-03-04  Thomas Schuster <Thomas.Schuster@gmx.net>
9981
9982         * regmove.c (copy_src_to_dest)  Do not create src->dest move
9983         for unchanging destination.
9984
9985 2000-03-04  Mark Mitchell  <mark@codesourcery.com>
9986
9987         * function.h (struct sequence_stack): Remove rtl_expr.
9988         (struct emit_staus): Likewise.
9989         (seq_rtl_expr): Remove.
9990         * tree.h (free_temps_for_rtl_expr): Don't declare.
9991         (start_sequence_for_rtl_expr): Likewise.
9992         * rtl.h (preserve_rtl_expr_result): Likewise.
9993         * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
9994         (start_sequence_for_rtl_expr): Remove.
9995         (push_topmost_sequence): Don't save sequence_rtl_expr.
9996         (pop_topmost_sequence): Remove comment about not restoring it.
9997         (end_sequence): Don't set seq_rtl_expr.
9998         (init_emit): Don't initialize it.
9999         (mark_sequence_stack): Don't mark it.
10000         (mark_emit_status): Likewise.
10001         * except.c (protect_with_terminate): Use
10002         start_sequence_for_rtl_expr, not start_sequence.
10003         * expr.c (expand_expr, case RTL_EXPR): Don't call
10004         preserve_rtl_expr_result or free_temps_for_rtl_expr.
10005         * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
10006         (preserve_rtl_expr_result): Remove.
10007         (free_temps_for_rtl_expr): Likewise.
10008         (pop_temp_slots): Likewise.
10009         (mark_temp_slot): Don't mark the rtl_expr.
10010         * stmt.c (expand_start_stmt_expr): Use start_sequence, not
10011         start_sequence_for_rtl_expr.
10012
10013 2000-03-04  Zack Weinberg  <zack@wolery.cumb.org>
10014
10015         * mkdeps.c, mkdeps.h: New files.
10016         * po/POTFILES.in: Add them.
10017         * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
10018         (cpplib.o, cppinit.o): Depend on mkdeps.h.
10019         (mkdeps.o): New target.
10020
10021         * cppfiles.c: Delete deps_output.
10022         * cppinit.c: Include mkdeps.h.  Delete known_suffixes,
10023         OBJECT_SUFFIX, and base_name.
10024         (cpp_cleanup): Use deps_free.  Free ihash->name when clearing
10025         the include hash.
10026         (initialize_dependency_output): Use deps_init,
10027         deps_add_target, deps_calc_target, and deps_add_dep.  Remove
10028         all the unnecessary string bashing.
10029         (cpp_finish): Use deps_write.  Remove an unnecessary nesting
10030         level.
10031         * cpplib.c (do_include): Use deps_add_dep.
10032         * cpplib.h (struct cpp_reader): Replace deps_buffer,
10033         deps_allocated_size, deps_size, deps_column members with
10034         single pointer to a struct deps.  Delete prototype of
10035         deps_output.
10036
10037         * cppinit.c: Fix thinko in previous patch.
10038
10039 Sat Mar  4 11:32:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10040
10041         * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
10042         * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
10043         (mode_for_size_tree): New function.
10044         (layout_decl, layout_type): Call it and clean up BLKmode checks.
10045         * tree.h (mode_for_size_tree): New declaration.
10046
10047         * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
10048
10049 2000-03-04  Jason Merrill  <jason@casey.cygnus.com>
10050
10051         * stmt.c (is_body_block): Move...
10052         * dwarfout.c, dwarf2out.c: ...from here.
10053         * tree.h: Declare it.
10054         * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
10055         * final.c (final_start_function): Do call remove_unnecessary_notes
10056         when scheduling.
10057
10058 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
10059
10060         * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
10061
10062         * cpplib.h (_dollar_ok): New macro.
10063         (is_idchar, is_idstart): Use it.
10064         (IStable): Rename to _cpp_IStable.  Declare it const if
10065         gcc >=2.7 or C99.  Delete all references to FAKE_CONST.
10066         (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
10067         is_space): Update for renamed IStable.
10068
10069         * cppinit.c: Delete all references to FAKE_CONST and CAT
10070         macros. Define init_IStable as empty macro if gcc >=2.7 or
10071         C99. Change TABLE() to ISTABLE and hardcode name of table.
10072         (cpp_start_read): Don't change the IStable based on
10073         dollars_in_ident.
10074
10075         * cpphash.c (unsafe_chars): Add pfile argument.  All callers
10076         changed.  Handle '$' for char1 correctly.
10077         * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
10078
10079         * cppexp.c (tokentab2): Make const.
10080         (cpp_lex): Make toktab const.
10081         * cppinit.c (include_defaults_array): Make const.
10082         (initialize_standard_includes): Make default_include const.
10083
10084 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
10085
10086         * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
10087         (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
10088         (gen_decl_die): Likewise.
10089         * dwarfout.c (dwarfout_file_scope_decl): Likewise.
10090         (output_decl): Likewise.
10091
10092         * varasm.c (make_function_rtl): If we change the name used in the
10093         rtl, update DECL_ASSEMBLER_NAME accordingly.
10094         (make_decl_rtl): Likewise.
10095
10096         * toplev.c (rest_of_compilation): Tweak formatting.
10097
10098         * toplev.c (rest_of_compilation): find_loop_tree_blocks before
10099         remove_unnecessary_notes.
10100         (debug_ignore_block): New fn.
10101         * toplev.h: Declare it.
10102         * emit-rtl.c (remove_unncessary_notes): Call it.
10103         * dwarf2out.c (dwarf2out_ignore_block): New fn.
10104         * dwarf2out.h: Declare it.
10105         * final.c (final_start_function): Don't call remove_unnecessary_notes
10106         if we did insn scheduling.
10107
10108 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
10109
10110         * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
10111         * cpplib.h: Delete SET_CPP_PEDANTIC.
10112
10113 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10114
10115         * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
10116         result is a RECORD_TYPE.
10117
10118 2000-03-03  Jonathan Larmour  <jlarmour@cygnus.co.uk>
10119
10120         * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
10121
10122 2000-03-03  Richard Henderson  <rth@cygnus.com>
10123
10124         * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
10125         addition over compliments over shifts.
10126
10127 Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10128
10129         * reload1.c (reload_combine_note_use): Handle return register USEs.
10130         REG case: Handle multi-hard-register hard regs.
10131
10132 Fri Mar  3 07:38:34 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10133
10134         * md.texi: Document use of '*' in insn pattern name.
10135
10136 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
10137
10138         * calls.c (special_function_p): operator new may not be malloc-like.
10139
10140         * gcse.c (dump_hash_table): Really fix error in last change.
10141
10142 2000-03-02  Denis Chertykov  <denisc@overta.ru>
10143
10144         * avr.c (print_operand): Use print_operand_address instead of
10145         output_addr_const.
10146         * avr/libgcc.S: Cleanup code.
10147
10148 2000-03-02  Richard Henderson  <rth@cygnus.com>
10149
10150         * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
10151
10152 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
10153
10154         * tree.h (TYPE_ALIGN_UNIT): New macro.
10155
10156 2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
10157
10158         * i386.c: (constant_call_address_operand): Reject CONST_INT.
10159
10160 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
10161
10162         * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
10163         for the buffer.
10164         (SET_CPP_PEDANTIC): New macro.
10165         * cpplib.c (do_include): Don't bother checking system_header_p.
10166         (do_warning, do_ident, do_assert, do_unassert): Likewise.
10167         * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
10168
10169         * function.h (struct expr_status): Add x_arg_space_so_far.
10170         (arg_space_so_far): New macro.
10171         * expr.c (init_expr): Initialize it.
10172         * calls.c (emit_call_1): Reset it.
10173         (compute_argument_block_size, expand_call): Use it.
10174         (expand_call, store_one_arg): Increment it.
10175
10176 Thu Mar  2 17:27:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10177
10178         * varasm.c (output_constant): Strip off a CONVERT_EXPR to
10179         a UNION_TYPE.
10180
10181 2000-03-02  Zack Weinberg  <zack@wolery.cumb.org>
10182
10183         * cppfiles.c (cpp_read_file): New function.
10184
10185         * cpphash.c (collect_expansion): Make sure to reset last_token
10186         to NORM when we hit a string.  Handle trailing whitespace
10187         properly when the expansion is empty.
10188         (create_definition): Disable line commands while parsing the
10189         directive line.
10190         (dump_definition): If pfile->lineno == 0, output a line
10191         command ahead of the dump, and add a trailing newline.
10192
10193         * cppinit.c (append_include_chain): Add fifth argument, which
10194         indicates whether or not system headers are C++ aware.
10195         (initialize_standard_includes): New function,
10196         broken out of read_and_prescan.  Pass 'cxx_aware' value from
10197         the include_defaults_array on to append_include_chain.
10198         (dump_special_to_buffer): Const-ify char array.
10199         (builtin_array): Don't dump __BASE_FILE__.
10200         (cpp_start_read): Use cpp_read_file.  Reorder code for
10201         clarity.  Don't output line commands here for -D/-A/-U
10202         switches.  Don't call deps_output for files included with
10203         -include or -imacros.
10204
10205         * cpplib.c (do_define): Don't pay any attention to the second
10206         argument.
10207         (cpp_expand_to_buffer): Disable line commands while scanning.
10208         (output_line_command): Work in the file buffer.
10209         * cpplib.h: Remove no_record_file flag from struct cpp_reader.
10210         Fix formatting of comments.  Prototype cpp_read_file.
10211
10212 Thu Mar  2 13:29:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10213
10214         * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
10215         reference the language-equivalent of sizetype.
10216         * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
10217         * fold-const.c (size_binop, size_diffop): Put back checks.
10218         * gcse.c (dump_hash_table): Fix minor error in last change.
10219         * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
10220         Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
10221         all sizetypes.
10222
10223 Thu Mar  2 12:48:45 MET 2000  Jan Hubicka  <jh@suse.cz>
10224
10225         * calls.c (expand_call)  Do not attempt to combine stack adjustments
10226         with inhibit_defer_pop set.
10227
10228 2000-03-01  Mark Mitchell  <mark@codesourcery.com>
10229
10230         * stor-layout.c (layout_decl): Allow front-ends to explicitly set
10231         the DECL_SIZE for a FIELD_DECL.
10232
10233 2000-03-01  Bruce Korb  <bkorb@gnu.org>
10234
10235         * fixinc/inclhack.tpl: remove unused symlinks
10236         * fixinc/README: GCC Maintainer info
10237         * fixinc/inclhack.sh: regen
10238         * fixinc/fixincl.sh: regen
10239
10240 2000-03-01  Zack Weinberg  <zack@wolery.cumb.org>
10241
10242         * cpphash.c (collect_expansion): Trim trailing white space
10243         from macro definitions, but don't go past the last insertion
10244         point.
10245
10246 Wed Mar  1 12:14:31 MET 2000  Jan Hubicka  <jh@suse.cz>
10247
10248         * i386.md (mulqi3): New pattern.
10249
10250 2000-02-29  Zack Weinberg  <zack@wolery.cumb.org>
10251
10252         * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
10253         token types.
10254         (struct cpp_reader): Add parsing_if_directive and
10255         parsing_define_directive flags.
10256         (struct cpp_options): Remove output_conditionals flag.
10257         (check_macro_name): Delete prototype.
10258
10259         * cpphash.h (struct macrodef): Delete.
10260         (struct reflist): Separate from struct definition.
10261         (struct definition): Remove unused fields.  Add column number.
10262         (create_definition): Returns a DEFINITION *.  Takes a
10263         cpp_reader * and an int.
10264
10265         * cpphash.c (SKIP_WHITE_SPACE): Delete.
10266         (PEEKC): Copy defn from cpplib.c.
10267         (rest_extension, REST_EXTENSION_LENGTH): Delete.
10268         (struct arg): New.
10269         (struct arglist): Simplify.
10270         (collect_expansion): Rewrite.  Get tokens by calling
10271         cpp_get_token.  Add more error checking.
10272         (collect_formal_parameters): New function, broken out of
10273         create_definition and reworked to use get_directive_token.
10274         (create_definition): All real work is now in collect_expansion
10275         and collect_formal_parameters.  do_define handles finding the
10276         macro name.  Return a DEFINITION, not a MACRODEF.
10277         (macroexpand): Replace bcopy with memcpy throughout.  Replace
10278         character-at-a-time copy loop with memcpy and pointer increments.
10279         (compare-defs): d1->argnames / d2->argnames might be null.
10280
10281         * cpplib.c (copy_rest_of_line): Delete function.
10282         (skip_rest_of_line): Do all the work ourselves.
10283         (skip_string): New function.
10284         (parse_string): Use skip_string.
10285         (get_macro_name): New function.
10286         (check_macro_name): Delete.
10287         (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
10288         (cpp_skip_hspace): Use CPP_BUMP_LINE.
10289         (handle_directive): ICE if we're called on a macro buffer.
10290         (do_define): Determine macro name and type (funlike/objlike)
10291         here.  Expunge all uses of MACRODEF.
10292         (cpp_push_buffer): Set line_base to NULL.
10293         (do_undef, read_line_number): Don't worry about getting a POP token.
10294         (eval_if_expression): Set/reset parsing_if_directive around
10295         cpp_parse_expr. Don't clear only_seen_white.
10296         (skip_if_group): Remove output_conditionals logic.  Use
10297         skip_rest_of_line.
10298         (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10299         tokens under appropriate conditions.
10300         (cpp_unassert): Call do_unassert not do_assert.  Oops.
10301
10302         * cppexp.c (parse_defined): New function, break out of
10303         cpp_lex.
10304         (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10305         ourselves, with cpp_defined.
10306         * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10307
10308         * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10309         * gcc.dg/strpaste-2.c: New.
10310
10311 2000-02-29  Mark Mitchell  <mark@codesourcery.com>
10312
10313         * fold-const.c (size_binop): Don't asert inputs are the same and
10314         have TYPE_IS_SIZETYPE set.
10315         (size_diffop): Likewise.
10316
10317 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
10318
10319         * dwarfout.c (output_block): Output abstract blocks even if they
10320         don't have TREE_ASM_WRITTEN set.
10321
10322         * calls.c (emit_library_call): Check for null REG.
10323
10324 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
10325
10326         * c-decl.c (current_function_decl): Move to toplev.c.
10327         (init_decl_processing): Don't add current_function_decl as a ggc
10328         root here.
10329         * dbxout.c (dbxout_symbol): Change return type to int.
10330         (dbxout_symbol_location, dbxout_syms): Likewise.
10331         (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10332         any locals. Use current_function_func_begin_label if set.
10333         * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10334         * dwarf2out.c (dwarf2out_begin_prologue): Set
10335         current_function_func_begin_label.
10336         * final.c (final_start_function): Reset it.
10337         * toplev.c (current_function_decl): Define it here.
10338         (current_function_func_begin_label): New variable.
10339         (main): Add both as ggc roots.
10340         * tree.h (current_function_func_begin_label): Declare.
10341
10342 Tue Feb 29 14:07:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10343
10344         * gcse.c: Cleanups throughout: mostly white-space, but also
10345         some minor rearrangement of code.
10346
10347 Tue Feb 29 10:45:59 2000  Jeffrey A Law  (law@cygnus.com)
10348
10349         * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10350         returns a PARALLEL.  Use emit_group_load and use_group_regs
10351         as needed.
10352         (emit_library_call_value): Similarly.
10353
10354         * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10355         * pa/quadlib.asm: Remove.
10356         * pa/quadlib.c: New file.
10357
10358         * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10359         * configure: Rebuilt.
10360
10361 2000-02-29  Philip Blundell  <pb@futuretv.com>
10362
10363         * config/arm/conix-elf.h: New file.
10364         * configure.in (arm*-*-conix*): New configuration.
10365         * configure: Regenerate.
10366
10367 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
10368
10369         * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10370         don't have TREE_ASM_WRITTEN set.
10371
10372 Mon Feb 28 21:07:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10373
10374         * Eliminate DECL_FIELD_SIZE.
10375         * builtins.c (built_in_class_names, built_in_names): New variables.
10376         * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10377         * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10378         DECL_SIZE, not DECL_FIELD_SIZE.
10379         * print-tree.c (print_node): Remove code that prints extra blank
10380         lines in some cases.
10381         Properly handle inline and builtin function cases.
10382         * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10383         * tree.h (built_in_class_named, built_in_names): New declarations.
10384         (union tree_decl): Rename internal unions to u1 and u2 and change
10385         some of their components.
10386         Add new field built_in_class.
10387         (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10388         Reflect above changes.
10389         (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10390         (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10391         * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10392         (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10393
10394 2000-02-28  Dmitri Makarov  <dim@windriver.com>
10395
10396         * extend.texi: Document ARM's support for long/short calls.
10397
10398         * invoke.texi: Document ARM's -mlong-calls command line switch.
10399
10400         * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10401         (arm_encode_call_attribute): Add prototype.
10402         (arm_set_default_type_attribute): Add prototype.
10403         (arm_strip_name_encoding): Add prototype.
10404
10405         * config/arm/arm.c (arm_init_cumulative_args): replace
10406         initialisation og 'long_calls' field with initialisation of
10407         'call_cookie' field.
10408         (enum arm_pragma_enum): New enum.
10409         (arm_pragma_long_calls): New static variable.
10410         (arm_process_pragma): Also process "#pragma long_calls_off".
10411         (arm_valid_type_attribute_p): Accept short_call attribute.
10412         (arm_comp_type_attributes): Check long/short call attributes.
10413         (arm_encode_call_attribute):  New function:  Encode long_call
10414         or short_call attribute in function name.
10415         (arm_set_default_type_attributes): New function: Assign
10416         default attributes to newly defined type.
10417         (current_file_function_operand): New function: Return true if
10418         the symbol is a function which has already been compiled.
10419         (arm_is_longcall_p): New function: Return true if the
10420         indicated function should be called via a long call.
10421         (arm_get_strip_length): New function.  Returns number of
10422         prefix characters to be stripped from a function's name.
10423         (arm_strip_name_encoding): New function.  Strip prefix characters
10424         from a function's name.
10425
10426         * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10427         with 'call_cookie'.
10428         (SHORT_CALL_FAG_CHAR): Define.
10429         (LONG_CALL_FAG_CHAR): Define.
10430         (ENCODED_SHORT_CALL_ATTR_P): Define.
10431         (ENCODED_LONG_CALL_ATTR_P): Define.
10432         (ARM_NAME_ENCODING_LENGTHS): Define.
10433         (STRIP_NAME_ENCODING): Define.
10434         (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10435         (ARM_ENCODE_CALL_TYPE): Define.
10436         (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10437         (ARM_DECLARE_FUNCTION_SIZE): Define.
10438         (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10439
10440         * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10441         if a long call is needed.
10442         (call_value): Ditto.
10443         (call_symbol): Ditto.
10444
10445         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10446         ARM_DECLARE_FUNCTION_SIZE.
10447
10448         * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10449         (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10450         (ARM_STRIP_NAME_ENCODING): Undefine.
10451         (STRIP_NAME_ENCODING): Undefine.
10452         (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10453         (ASM_DECLARE_FUNCTION_NAME): Ditto.
10454         (ASM_OUTPUT_COMMON): Ditto.
10455         (ASM_DECLARE_OBJECT_NAME): Ditto.
10456
10457         * config/arm/pe.c (arm_dllexport_name_p): Check for
10458         ARM_PE_FLAG_CHAR.
10459         (arm_dllimport_name_p): Ditto.
10460         (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10461         (arm_mark_dllimport): Ditto.
10462
10463 Mon Feb 28 22:11:12 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10464
10465         * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10466
10467 2000-02-28  Mark Mitchell  <mark@codesourcery.com>
10468
10469         * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10470
10471 2000-02-28  Zack Weinberg  <zack@wolery.cumb.org>
10472
10473         * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10474         * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10475         NO_BUILTIN_WCHAR_TYPE is not defined.
10476         (CPP_WCHAR_TYPE): Delete.
10477         * cccp.c (main): Don't change wchar_type if cplusplus.
10478         (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10479
10480 2000-02-28  Nick Clifton  <nickc@cygnus.com>
10481
10482         * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10483
10484 Mon Feb 28 14:21:15 2000  Catherine Moore  <clm@cygnus.com>
10485
10486         * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10487         (ASM_WEAKEN_LABEL): Define.
10488
10489 Mon Feb 28 13:07:19 MET 2000  Jan Hubicka  <jh@suse.cz>
10490
10491         * expr.c (store_constructor): Do not emit USE.
10492         * rtl.h (stupid_life_analysis): Remove.
10493
10494 Mon Feb 28 07:03:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10495
10496         * function.c (number_blocks): Reset next_block_index based on
10497         what debugging format is used, not what is defined.
10498
10499         * lcm.c: Minor reformatting throughout.
10500         (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10501
10502         * toplev.c (rest_of_compilation): Account for time in
10503         optimize_mode_switching.
10504
10505         * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10506         if only marking labels.
10507
10508 Mon Feb 28 12:53:57 MET 2000  Jan Hubicka  <jh@suse.cz>
10509
10510         * calls.c (expand_call): Attempt to combine stack adjustments with
10511         pending stack adjustments.
10512
10513 Mon Feb 28 11:34:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10514
10515         * loop.c (reg_in_basic_block_p): Don't abort when falling through
10516         to the end of the function.
10517
10518 2000-02-27  Mark Mitchell  <mark@codesourcery.com>
10519
10520         * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10521         blocks.
10522         * final.c (next_block_index): Remove.
10523         (max_block_depth): Likewise.
10524         (pending_blocks): Likewise.
10525         (init_final): Don't initialize them.
10526         (final_start_function): Don't set next_block_index.  Set up
10527         BLOCK_NUMBER.
10528         (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10529         * function.h (number_blocks): New function.
10530         * function.c (get_block_vector): New function.
10531         (identify_blocks): Use it.
10532         (reorder_blocks): Set NOTE_BLOCK.
10533         (number_blocks): New function.
10534         * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10535         * tree.h (BLOCK_NUMBER): New macro.
10536         (tree_block): Add block_num field.
10537         * dbxout.c (next_block_number): Remove.
10538         (dbxout_init): Don't set it.
10539         (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10540         set.  Use BLOCK_NUMBER, rather than next_block_num, to determine
10541         block numbers.
10542         * toplev.c (rest_of_compilation): Always call
10543         find_loop_tree_blocks.  Fix indentation.
10544         * dwarf2out.c (next_block_number): Remove.
10545         (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10546         to determine block numbers.
10547         (gen_inlined_subroutine_die): Likewise.
10548         (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10549         (decls_for_scope): Don't increment next_block_number.
10550         * dwarfout.c (next_block_number): Remove.
10551         (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10552         to determine block numbers.
10553         (output_inlined_subroutine_die): Likewise.
10554         (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10555         (output_decls_for_scope): Don't increment next_block_number.
10556         * sdbout.c (next_block_number): Remove.
10557         (sdbout_block): Use BLOCK_NUMBER.
10558         (sdbout_begin_block): Simplify.
10559         * xcoffout.c (next_block_number): Remove.
10560         (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10561         (xcoffout_begin_block): Don't set next_block_number.
10562         (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10563         next_block_number.
10564
10565 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10566
10567         * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10568         (expand_builtin_strcpy): Pass correct type to size_binop.
10569         (expand_builtin_strcmp): Likewise.
10570         Clean up conditional structure.
10571         * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10572         (complete_array_type): Don't use size_binop for MAXINDEX.
10573         * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10574         (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10575         (c_alignof): Use size_one_node.
10576         (build_unary_op): Pass arg of proper type to size_binop.
10577         (really_start_incremental_init, push_init_level): Use sizetype for
10578         constructor{,_bit,_unfilled}_index.
10579         (pop_init_label, output_init_element): Likewise.
10580         (output_pending_init_elements, process_init_element): Likewise.
10581         * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10582         * expr.c (store_expr): Use size_int.
10583         (store_constructor): Use proper types for size_binop args.
10584         (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10585         (expand_expr_unaligned): Likewise.
10586         (string_contant): Return object of sizetype.
10587         * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10588         (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10589         (ARGS_SIZE_TREE): Pass proper types to size_binop.
10590         * fold-const.c (int_const_binop): Refine when size_int is called.
10591         (fold_convert): Likewise.
10592         (size_int_wide): Rework to take KIND as arg, only take low order
10593         bits, handle new sizetype_tab datatype, and chain entries in
10594         size_table.
10595         (size_int_type_wide): New function.
10596         (size_binop): Validate types of arguments.
10597         (ssize_binop): Deleted.
10598         (size_diffop): New function.
10599         (extract_muldiv): Only fold division into multiplication for sizetypes.
10600         * function.c (assign_parms): Use size_diffop and make sure
10601         VAR field is of ssizetype; also pass proper type to size_binop.
10602         (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10603         (round_down): Deleted from here.
10604         * store-layout.c (sizetype_tab): Now an array.
10605         (sizetype_set, early_root_list): New variables.
10606         (variable_size): Use size_one_node.
10607         (round_up): Pass proper type to size_binop.
10608         (round_down): Moved to here and corrected as above.
10609         (layout_record): Pass proper arg types to size_binop.
10610         (layout_type): Likewise.
10611         If sizetype_set is zero, record the type just laid out.
10612         (make_unsigned_type): Don't call set_sizetype;
10613         (make_signed_type): Likewise; also, call fixup_signed_type.
10614         (initialize_sizetypes): New function.
10615         (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10616         set name of bitsizetype to "bit_size_type".
10617         Fix up type of sizes of all types made before call.
10618         * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10619         * tree.c (fix_sizetype): Deleted.
10620         (build_common_tree_nodes): Call initialize_sizetypes.
10621         (build_common_tree_nodes_2): Don't call fix_sizetype.
10622         * tree.h (TYPE_IS_SIZETYPE): New macro.
10623         (initialize_sizetype): New declaration.
10624         (enum size_type_kind): New type.
10625         (struct sizetype_tab): Deleted.
10626         (sizetype_tab): Now array; adjust sizetype macros.
10627         (size_diffop, size_int_type_wide): New functions.
10628         (size_int_wide): Change number of args and type; access macros changed.
10629         (ssize_int, sbitsize_int): New macros.
10630         * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10631         (ROUND_TYPE_SIZE_UNIT): New macro.
10632
10633 2000-02-27  Zack Weinberg  <zack@wolery.cumb.org>
10634
10635         * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10636
10637 Sun Feb 27 07:44:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10638
10639         * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10640         Mark as possibly unused.
10641
10642         * cse.c (cse_insn): Delete dead code involving tablejump.
10643         Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10644
10645         * Makefile.in (libcpp.a): Start by deleting it.
10646
10647 2000-02-27  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10648
10649         * cpplib.h (enum file_change_code): Added rename_file.
10650         * cpplib.c (do_line): If a filename is given, set file_change to
10651         rename_file.
10652         (output_line_command): If file_change is rename_file, always
10653         output a # directive with the file name.
10654
10655         * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10656
10657 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
10658
10659         * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10660         when copying a PARM_DECL or RESULT_DECL.
10661
10662 2000-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10663
10664         * fix-header.c (recognized_function): Also fix prototypes for
10665         functions taking "void".
10666
10667 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
10668
10669         * reload1.c (do_output_reload): Check reg_reloaded_valid before
10670         looking at reg_reloaded_contents.
10671
10672 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
10673
10674         * Makefile.in (STMP_FIXINC): New toggle.
10675         (LIBGCC2_DEPS): Delete all references.
10676         (stmp-headers): Delete target.  All references either deleted
10677         or changed to stmp-int-headers.
10678         (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10679         (LIBCPP_OBJS): Take out cppalloc.o.
10680         (cppalloc.o): Delete target.
10681         (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10682         (gen-protos, fix-header): Link with libiberty.a.
10683         * build-make: Don't change FIXINCLUDES.  Override STMP_FIXINC
10684         to empty.
10685
10686         * configure.in: Remove refs to strerror.
10687         * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10688         * system.h: Take out strerror stanza.
10689
10690         * cpperror.c (my_strerror): Delete function.
10691         (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10692         * cppmain.c (main): Call xmalloc_set_program_name first thing.
10693         * cppalloc.c: Delete file.
10694         * gen-protos.c: Don't provide xrealloc.
10695
10696         * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10697         xstrerror throughout.
10698
10699 2000-02-26  Bruce Korb  <bkorb@gnu.org>
10700
10701         * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10702         match for DOS headers, too.
10703         * fixinc/inclhack.sh,fixincl.x: Regenerate.
10704
10705 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
10706
10707         * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define.  The default
10708         is right for most ELF targets.
10709         * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10710         Let the default file use %U properly.
10711         * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define.  Use the
10712         default.
10713
10714         * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10715         numbers.
10716
10717 Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10718
10719         * toplev.c (documented_lang_options): Correct spelling error.
10720         (decode_d_option, decode_f_option, main): Likewise.
10721
10722         * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10723
10724         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10725         to tell assembler it is permitted to expand large constants.
10726
10727 2000-02-25  Mumit Khan  <khan@xraylith.wisc.edu>
10728
10729         * protoize.c: (AUX_INFO_SUFFIX): New macro.
10730         (aux_info_suffix): Use.
10731         (SAVE_SUFFIX): New macro.
10732         (save_suffix): Use.
10733         (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10734         (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10735         (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10736
10737         * invoke.texi (Running Protoize): Update documentation.
10738
10739 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10740
10741         * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10742
10743 2000-02-25  John Wehle  (john@feith.com)
10744
10745         * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10746
10747 2000-02-25  Anthony Green  <green@cygnus.com>
10748
10749         * toplev.c (rest_of_compilation): Rebuild jump labels if
10750         combine_instructions has created a new direct jump.
10751         * combine.c (try_combine): Add new_direct_jump_p argument.  Set it
10752         when appropriate.
10753         (combine_instructions): Call try_combine with new argument.
10754         Return non-null value when new direct jump instruction is created.
10755         * rtl.h: combine_instructions returns an int.
10756
10757 Fri Feb 25 19:49:08 2000  Jeffrey A Law  (law@cygnus.com)
10758
10759         * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10760         jump when changing a computed jump into a jump to a known
10761         target.
10762
10763 Fri Feb 25 19:22:44 2000  Graham Stott <grahams@rcp.co.uk>
10764
10765         * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10766         to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10767
10768         * i386.md (define_expand "clrstrsi"): Fix typo.
10769
10770 Fri Feb 25 18:49:39 2000  "K. Richard Pixley" <rich@microunity.com>
10771
10772         * rtl.texi: Fix typo.
10773
10774 Fri Feb 25 20:02:35 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10775
10776         * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10777         UNITS_PER_WORD.  Change caller initial_elimination_offset.
10778         (rounded_frame_size): Take into account that argument pushed has
10779         changed.  Fix TARGET_ALIGN_DOUBLE problem.
10780
10781 2000-02-25  Geoff Keating  <geoffk@cygnus.com>
10782
10783         * haifa-sched.c (schedule_block): Explain the real reason
10784         we delete REG_SAVE_NOTEs on the first insn of a block.
10785         Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10786
10787 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
10788
10789         * input.h (push_srcloc): New function.
10790         (pop_srcloc): Likewise.
10791         * toplev.c (push_srcloc): Define it.
10792         (pop_srcloc): Likewise.
10793
10794 2000-02-24  Richard Henderson  <rth@cygnus.com>
10795
10796         * flow.c (life_analysis): When collecting reg info, clear
10797         regs_ever_live.
10798
10799 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10800
10801         Fix bug exposed by reload.c no longer rounding the frame
10802         size to BIGGEST_ALIGNMENT:
10803         * sh.c (rounded_frame_size): New function.
10804         (sh_expand_prologue, sh_expand_epilogue): Use it.
10805         (initial_elimination_offset): Likewise.
10806
10807 Thu Feb 24 20:04:11 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10808
10809         Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
10810         * sh-protos.h (sh_need_epilogue): Declare.
10811         * sh.c (sh_need_epilogue_known): New static variable.
10812         (sh_need_epilogue): New function.
10813         (function_epilogue): Clear need_epilogue_known.
10814         * sh.md (return): Split into expander / insn pattern.
10815         Make the expander conditional on ! sh_need_epilogue ().
10816
10817 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
10818
10819         * machmode.h (get_mode_alignment): Declare.
10820         (GET_MODE_ALIGNMENT): Call it.
10821         * stor-layout.c (get_mode_alignment): New function. Make
10822         sure alignment is always power of 2.
10823
10824 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
10825
10826         * i386.h: Remove useless definition of "I386" and misleading
10827         comment above it.
10828
10829 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
10830
10831         * tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
10832         under which TREE_PERMANENT will be set.
10833         * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
10834         build1): Use TREE_SET_PERMANENT.
10835         * print-tree.c (print_node): Don't report value of
10836         TREE_PERMANENT if ggc_p is true.
10837
10838         * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
10839         decide whether to give a type a new alias set.
10840         * objc/objc-act.c (build_objc_string_object): Never copy the string.
10841         * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
10842         of value of 'obstack'.
10843
10844
10845 2000-02-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10846
10847         * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
10848
10849 2000-02-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10850
10851         * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
10852         * cpplib.c (cpp_get_token): Produce them.
10853         * cppexp.c (cpp_lex): Handle them.
10854
10855 2000-02-23  Nick Clifton  <nickc@cygnus.com>
10856
10857         * config/arm/arm.c (arm_comp_type_attributes): Simply and
10858         comment tests on type attributes.
10859
10860 Wed Feb 23 16:42:21 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10861
10862         * final.c (shorten_branches): Make value passed to LOOP_ALIGN
10863         conform to documentation.
10864         * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
10865         to check for special cases.
10866         * sh-protos.h (sh_loop_align): Declare.
10867         * sh.c (sh_loop_align): Define.
10868
10869 2000-02-22  Andrew Haley  <aph@cygnus.com>
10870
10871         * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
10872         (SIZE_TYPE): Is 32 bits when using -mgp32.
10873         (PTRDIFF_TYPE): Ditto.
10874
10875 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10876
10877         * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
10878
10879 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
10880
10881         * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
10882         BIGGEST_FIELD_ALIGNMENT a constant.
10883
10884 2000-02-21  Jason Merrill  <jason@casey.cygnus.com>
10885
10886         * dwarf2out.c (output_line_info): Put the marker for the end of
10887         the line number info at the actual end.
10888         (gen_struct_or_union_type_die): Use decl_function_context
10889         to check for local classes.
10890         * dwarfout.c (output_type): Likewise.
10891
10892 Tue Feb 22 01:38:57 2000  Jeffrey A Law  (law@cygnus.com)
10893
10894         * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
10895         for arguments with a mode, but no type.
10896         (FUNCTION_ARG_CALLEE_COPIES): Similarly.
10897         * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
10898         * pa/long_double.h: New file.
10899         * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
10900         both have 128bit wide long doubles.
10901         * configure: Rebuilt.
10902
10903 2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10904
10905         * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
10906
10907         * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
10908         fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
10909         (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
10910
10911         * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
10912
10913         * integrate.c (compare_blocks, find_block): Likewise.
10914
10915         * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
10916
10917         * rtl.h (set_file_and_line_for_stmt): Constify a char*.
10918
10919         * stmt.c (stmt_status, set_file_and_line_for_stmt,
10920         expand_asm_operands): Likewise.
10921
10922 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
10923
10924         * predict.c (estimate_probability): Added the pointer heuristic to
10925         the collection of static branch predictors.
10926
10927 2000-02-21  Catherine Moore  <clm@cygnus.com>
10928
10929         * config/mips/mips.h (ASM_SPEC): Add -mfix700.
10930         * invoke.texi (-mfix7000): Document.
10931
10932 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
10933
10934         * diagnostic.c (init_output_buffer): Make it possible to output at
10935         least 32 characters if we're given a too long prefix.
10936
10937 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
10938
10939         * varasm.c (initializer_constant_valid_p): Call
10940         lang_expand_constant to simplify the constant.
10941
10942 2000-02-20  Bruce Korb  <bkorb@gnu.org>
10943
10944         * fixinc/inclhack.def(stdio_va_list):
10945         typedef needs to be disabled.
10946         * fixinc/inclhack.sh: regen
10947         * fixinc/fixincl.x: regen
10948
10949 2000-02-20  Geoff Keating  <geoffk@cygnus.com>
10950
10951         * print-rtl.c (print_rtx): Don't print addresses when
10952         flag_dump_unnumbered.
10953
10954 2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10955
10956         * sparc.c (sparc_output_scratch_registers): Mark parameter with
10957         ATTRIBUTE_UNUSED.
10958         (sparc_va_arg, sparc_flat_output_function_prologue,
10959         sparc_flat_output_function_epilogue): Cast value to unsigned in
10960         comparison.
10961         (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
10962
10963         * sparc.md: Add default case in switch.
10964
10965 2000-02-19  Richard Henderson  <rth@cygnus.com>
10966
10967         * c-typeck.c (add_pending_init): Don't abort for multiple
10968         fields at the same offset.
10969         (pending_init_member): Test the correct member.
10970
10971 2000-02-19  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10972
10973         * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
10974         instead of SImode.
10975         (start_catch_handler) : Same.
10976
10977 2000-02-19  Brad Lucier  (lucier@math.purdue.edu)
10978
10979         * Makefile.in: Have flow.o depend on $(EXPR_H)
10980
10981 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10982
10983         * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
10984         * c-decl.c (duplicate_decls, finish_enum): Likewise.
10985         (finish_decl): Remove -Wlarger-than code from here.
10986         * flags.h (id_clash_len): Now int.
10987         (larger_than_size): Now HOST_WIDE_INT.
10988         * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
10989         Clean up checking to see if in table.
10990         (make_bit_field_ref): Remove extra parm to bitsize_int.
10991         * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
10992         * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
10993         * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
10994         and for computing size of decl.
10995         * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
10996         Move -Wlarger-than code to here.
10997         (layout_record): Remove extra arg to bitsize_int.
10998         Set TYPE_BINFO_SIZE_UNIT.
10999         (layout_union): Remove extra arg to bitsize_int.
11000         Use proper type for size of QUAL_UNION.
11001         (layout_type): Remove extra arg to bitsize_int.
11002         * toplev.c (id_clash_len): Now int.
11003         (larger_than_size): Now HOST_WIDE_INT.
11004         (decode_W_option): Clean up id-clash and larger-than- cases.
11005         * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
11006         (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
11007         * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
11008         (struct tree_decl): New field size_unit.
11009         (size_int_wide): No HIGH operand; NUMBER is now signed.
11010         (size_int_2): Deleted.
11011         (size_int, bitsize_int): Don't use it and rework args.
11012         * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
11013
11014 Fri Feb 18 20:01:58 2000  Jeffrey A Law  (law@cygnus.com)
11015
11016         * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
11017
11018 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
11019
11020         * invoke.texi (Warning Options): Add an explanation of why
11021         you might want the -Wfloat-equal flag.
11022
11023 Fri Feb 18 20:08:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11024
11025         * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
11026         * cppinit.c (new_pending_define): Add cast to avoid warning.
11027         * expmed.c (extract_bit_field): Likewise.
11028         * flow.c (enum reorder_skip_type): New type.
11029         (skip_insns_between_blcok): New it.
11030         Rework to avoid warning about possibly undefined variable.
11031         * function.c (assign_parms): Make thisparm_boundary unsigned.
11032         * genrecog.c (write_switch): Cast XWINT result to int.
11033         * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
11034         * mips-tfile.c (init_file): Make two versions of FDR intializer:
11035         one for MIPS and one for Alpha.
11036         (get_tag, copy_object): Add casts to avoid warnings.
11037         * optabs.c (init_one_libfunc): Cast NAME to (char *).
11038         * reload.c (find_reloads): Make TYPE enum reload_type.
11039         * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
11040         * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
11041         * varasm.c (compare_constant_1): Add cast to avoid warning.
11042         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
11043         to (char *).
11044         (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
11045         Cast switch operand of size to int.
11046         (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
11047         * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
11048         in unhandled case.
11049
11050 2000-02-18  Nick Clifton  <nickc@cygnus.com>
11051
11052         * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
11053         anything for an alignment of zero.
11054
11055         * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
11056         anything for an alignment of zero.
11057
11058 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11059
11060         * gcc.texi (Bug Reporting): Refer to bugs.html.
11061         (Bug Lists): Likewise.
11062         * system.h (GCCBUGURL): New preprocessor define.
11063         * rtl.c (fancy_abort): Use it.
11064         * gcc.c (main): Likewise.
11065
11066 2000-02-18  Richard Henderson  <rth@cygnus.com>
11067
11068         * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
11069         (life_analysis_1): Subsume into ...
11070         (life_analysis): ... here.  Force PROP_REG_INFO off after reload.
11071         Use update_life_info for the relaxation.
11072         (update_life_info): Update REG_BASIC_BLOCK for registers live on
11073         entry and regs_live_at_setjmp.
11074         (set_noop_p): Simplify.
11075         (notice_stack_pointer_modification_1): Renamed from s/_1//.
11076         (record_volatile_insns): Split into ...
11077         (delete_noop_moves): ... here,
11078         (notice_stack_pointer_modification): ... here,
11079         (insn_dead_p): ... and here.
11080         (propagate_block): Don't query INSN_VOLATILE.
11081         (mark_used_regs): Mind !PROP_REG_INFO.
11082         * toplev.c (rest_of_compilation): Call mark_constant_function here,
11083         not in life_analysis.
11084
11085 Fri Feb 18 01:29:22 EST 2000  John Wehle  (john@feith.com)
11086
11087         * loop.c (canonicalize_condition): New function,
11088         broken out of get_condition.
11089         (get_condition): Use it.
11090         * expr.h (canonicalize_condition): Prototype it.
11091
11092         * tree.h (tree_int_cst_msb): Declare.
11093         * tree.c (tree_int_cst_msb): New function.
11094
11095 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
11096
11097         * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
11098         isn't set.
11099
11100         * invoke.texi (-fmessage-length=n): Document.
11101
11102 2000-02-17  Jason Merrill  <jason@casey.cygnus.com>
11103
11104         * bitmap.c (bitmap_operation): Don't leak bitmap elements.
11105
11106 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
11107
11108         * function.c (thread_prologue_and_epilogue_insns): Put a line note
11109         after the prologue.
11110
11111 2000-02-17  Nick Clifton  <nickc@cygnus.com>
11112
11113         * config/arm/thumb.c: Replace includes of system headers with
11114         #include "system.h".
11115
11116 2000-02-16  Richard Henderson  <rth@cygnus.com>
11117
11118         * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
11119         Add crtbeginS.o and crtendS.o.
11120         * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
11121         (ENDFILE_SPEC): Use crtendS.o.
11122         * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
11123
11124         * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
11125         (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
11126         shared and present.
11127         (__dso_handle): New variable.
11128         * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
11129         bias to __CTOR_END__.
11130
11131 2000-02-16  Richard Henderson  <rth@cygnus.com>
11132
11133         * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
11134
11135 Wed Feb 16 21:40:04 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11136
11137         * longlong.h (__clz_tab): Declare as static to match definition.
11138
11139 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
11140
11141         * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
11142         (XREF_FILE_NAME): Define.
11143
11144         * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
11145         (EH_FRAME_SECTION_ASM_OP): Define.
11146         (IDENT_ASM_OP): Define.
11147         (TEXT_SECTION_ASM_OP): Define.
11148         (CPP_SPEC): Define.
11149         (CTORS_SECTION_ASM_OP): Define.
11150         (CTOR_SECTION_FUNCTION): Use it.
11151         (DTORS_SECTION_ASM_OP): Define.
11152         (DTOR_SECTION_FUNCTION): Use it.
11153
11154 2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
11155
11156         * reg-stack.c (emit_swap_insn): Do not put a new insn before a
11157         NOTE_BASIC_BLOCK.
11158
11159         * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
11160         debug_bb_n): New functions.
11161         (dump_flow_info, print_rtl_with_bb): Use dump_regset.
11162         * basic-block.h: Prototype new functions.
11163
11164 Wed Feb 16 21:07:53 2000  Denis Chertykov  <denisc@overta.ru>
11165
11166         * configure.in: Add support for avr target.
11167         * configure: Rebuilt.
11168
11169         * invoke.texi: Add AVR invocation docs.
11170         * install.texi: Add information about AVR.
11171         * md.texi: Add AVR constraint letters description.
11172         * extend.texi: Add description for AVR specific attributes.
11173
11174 2000-02-16  Jason Merrill  <jason@casey.cygnus.com>
11175
11176         * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
11177
11178 2000-02-16  Nick Clifton  <nickc@cygnus.com>
11179
11180         * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
11181         (make_insn_raw): Move RTL check here.
11182
11183 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11184
11185         * version.c: Include gansidecl.h and version.h.
11186
11187         * version.h: Wrap entire file in macro __GCC_VERSION_H__.
11188
11189         * configure.in (gcc_version): When setting, narrow search to
11190         lines containing `version_string'.
11191
11192         * Makefile.in (mainversion): Likewise.
11193         (GCC_H): New variable.
11194         (gcc.h): Delete target.
11195         (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
11196         (version.o): Depend on version.h.
11197         (dbxout.o): Don't depend on gcc.h.
11198
11199 Wed Feb 16 15:04:49 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11200                           Michael Meissner  <meissner@cygnus.com>
11201
11202         * md.texi (Simple Constraints): Add item about whitespace.
11203         * genoutput.c (strip_whitespace): New.
11204         (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
11205         strip_whitespace for constraints.
11206         Test pointer using NULL, not 0.
11207
11208 2000-02-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11209
11210         * cpplib.c (do_line): Pedwarn for #line > 32767.
11211
11212         * c-lex.c (readescape): Warn about '\x', but do not reject it.
11213
11214 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
11215
11216         * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
11217         to default cpp spec.
11218         (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
11219         * cpp.texi: Document __GNUC_PATCHLEVEL__.
11220         * cpp.1: Likewise.
11221
11222         * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
11223         default spec.
11224
11225 2000-02-15  Denis Chertykov  <denisc@overta.ru>
11226
11227         * configure.in: Add support for avr target.
11228
11229 Wed Feb 16 03:21:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11230
11231         * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
11232         (sh_addr_diff_vec_mode): Don't declare.
11233         * sh.c (sh_addr_diff_vec_mode): Delete.
11234
11235 Wed Feb 16 01:27:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11236
11237         * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
11238
11239 Wed Feb 16 00:58:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11240
11241         * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
11242         (smulsi3_highpart_i): Name.
11243         (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
11244         (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
11245         (smulsi3_highpart, umulsi3_highpart): Likewise.
11246
11247         (mulsidi3_i, umulsidi3_i): Make rtl describe operation
11248         correctly independent of endianness.
11249         (mulsidi3, umulsidi3): Now define_insn.  Hide details that
11250         confuse the optimizers.
11251         (mulsidi3+1, umulsidi3+1): New define_split.
11252
11253 Tue Feb 15 23:22:26 2000  Andrew Haley  <aph@cygnus.com>
11254
11255         * config/sh/sh.md: Guard insn splits against illegal registers.
11256         * config/sh/sh.h: Correct comment about macros.
11257
11258 Tue Feb 15 22:30:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11259                           Andrew MacLeod  <amacleod@cygnus.com>
11260
11261         * Makefile.in (lcm.o): Depend on insn-attr.h.
11262         * basic-block.h (optimize_mode_switching): Declare.
11263         * lcm.c (tm_p.h, insn-attr.h): #include.
11264         (seginfo, bb_info): New structs.
11265         (antic, transp, comp, delete, insert) : New file-scope static variables.
11266         (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
11267         (reg_becomes_live, optimize_mode_switching): Likewise.
11268         * tm.texi: Add description of mode switching macros.
11269         * toplev.c (rest_of_compilation): Call optimize_mode_switching.
11270
11271         * sh-protos.h (remove_dead_before_cse): Remove prototype.
11272         (fldi_ok, fpscr_set_from_mem): New prototypes.
11273         * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
11274         (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
11275         Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11276         (sh_flag_remove_dead_before_cse): Remove declaration.
11277         (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
11278         (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
11279         (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11280         * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11281         (barrier_align): Allow for JUMP_INSNS containing a parallel.
11282         (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
11283         (fldi_ok): New function.
11284         (get_fpscr_rtx): Add fpscr_rtx as GC root.
11285         (emit_sf_insn): Only generate fpu switches when optimize < 1.
11286         (emit_df_insn): Likewise.
11287         (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
11288         (sh_flag_remove_dead_before_cse): Delete.
11289         (get_free_reg, fpscr_set_from_mem): New functions.
11290         * sh.md (movdf, movsf): Remove no_new_pseudos code.
11291         (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11292
11293 2000-02-15  Loren Rittle  <ljrittle@acm.org>
11294
11295         * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11296
11297 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11298
11299         * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11300         cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11301
11302         * cccp.c: Include version.h and/or don't declare `version_string'.
11303         * collect2.c: Likewise.
11304         * alpha.c: Likewise.
11305         * arm/aof.h: Likewise.
11306         * arm/coff.h: Likewise.
11307         * arm/elf.h: Likewise.
11308         * arm/pe.h: Likewise.
11309         * arm/tcoff.h: Likewise.
11310         * arm/telf.h: Likewise.
11311         * arm/tpe.h: Likewise.
11312         * arm/vxarm.h: Likewise.
11313         * convex/convex.c: Likewise.
11314         * i386/dgux.c: Likewise.
11315         * i386/sun386.h: Likewise.
11316         * m88k/m88k.c: Likewise.
11317         * mcore/mcore-pe.h: Likewise.
11318         * mips/mips.h: Likewise.
11319         * romp/romp.h: Likewise.
11320         * sh/sh.c: Likewise.
11321         * cpphash.c: Likewise.
11322         * cppinit.c: Likewise.
11323         * dwarf2out.c: Likewise.
11324         * dwarfout.c: Likewise.
11325         * gcc.c: Likewise.
11326         * gcc.h: Likewise.
11327         * mips-tfile.c: Likewise.
11328         * protoize.c: Likewise.
11329         * toplev.c: Likewise.
11330         * tree.h: Likewise.
11331
11332         * version.c (version_string): Constify a char*.
11333
11334         * version.h: New file.
11335
11336 2000-02-14  Nick Clifton  <nickc@cygnus.com>
11337
11338         * configure.in: Add mcore-elf and mcore-pe targets.
11339         * configure: Regenerate.
11340
11341         * NEWS: Add note that MCore port has been contributed.
11342
11343         * invoke.texi: Document command line switches for MCore port.
11344         * install.texi: Add MCore to list of supported targets.
11345
11346 2000-02-14  Geoff Keating  <geoffk@cygnus.com>
11347
11348         * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11349         then we will need to import the frame handling functions.
11350         (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11351         to import the frames themselves.
11352
11353 Mon Feb 14 13:31:01 2000  Stan Cox  <scox@cygnus.com>
11354                           Jason Eckhardt  <jle@cygnus.com>
11355
11356         * basic_block.h: Added prototype for reorder_basic_blocks.
11357         * toplev.c: Changes to add -freorder-blocks and graph dump after
11358         block reordering is done.
11359         * flow.c (reorder_block_def): New structure for use during block
11360         reordering.
11361         (REORDER_BLOCK_*): New macros to access members of above structure.
11362         (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11363         make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11364         functions for block reordering.
11365
11366 Mon Feb 14 11:24:44 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11367
11368         * gcc.texi (Passes): Fix typo.
11369         * md.texi (Standard Names): Ditto.
11370         * tm.texi (Storage Layout): Ditto.
11371
11372 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
11373
11374         * cpplib.c (do_define): Only free the old definition if it
11375         actually had one.
11376
11377 2000-02-13   Neil Booth  <NeilB@earthling.net>
11378
11379         * cppfiles.c (read_and_prescan): When emitting deferred
11380         newlines, test speccase[] again instead of checking each
11381         possible whitespace character in turn.  When we encounter \r,
11382         look behind for \n first, then ahead.
11383
11384 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
11385
11386         * cse.c (cse_altered): New internal flag.
11387         (cse_insn): Set it if we changed an insn.
11388         (cse_main): Clear cse_altered before each basic block.
11389         Only garbage collect if cse_altered is true afterward.
11390
11391 Sun Feb 13 14:12:28 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11392
11393         * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11394
11395 Sun Feb 13 13:21:55 2000  Jeffrey A Law  (law@cygnus.com)
11396
11397         * combine.c (simplify_comparison): Fix typo.
11398
11399 Sun Feb 13 12:57:52 2000  Neil Booth <NeilB@earthling.net>
11400
11401         * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11402         consistently.
11403
11404 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11405
11406         * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11407         previously inserted node instead of root node.  Caller changed.
11408
11409 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11410
11411         * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11412
11413 2000-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11414
11415         * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11416         __dereg_frame_dtor): Add prototype argument.
11417
11418         * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11419
11420         * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11421
11422         * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11423
11424         * gthr-vxworks.h (__gthread_once): Likewise.
11425
11426         * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11427
11428 Sat Feb 12 01:44:26 MET 2000  Jan Hubicka  <jh@suse.cz>
11429
11430         * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11431         (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11432         stack pointer in functions w/o saved registers, output LEAVE more often
11433         on TARGET_USE_LEAVE machines.
11434
11435 2000-02-07  Dmitri Makarov  <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11436
11437         * config/arm/arm.c (arm_init_cumulative_args); New function:
11438         Initlaise the CUMULATIE_ARGS strcuture for a function
11439         defintion.
11440         (arm_function_arg): New function: Determine where to place a
11441         function's argument.  Also handles deciding the function's
11442         call cookie.
11443         (current_file_function_operand): New function: Return true if
11444         the symbol is a function which has already been compiled.
11445         (arm_is_long_call_p): New function: Return true if the
11446         indicated function should be called via a long call.
11447         (arm_valid_type_attribute_p): New function: Return true if the
11448         attribute is a valid, arm specific, attribute.
11449         (arm_comp_type_attribute): New function: Return true if the
11450         two types have compatable, arm specific, attributes.
11451
11452         * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11453         structure.
11454         (FUNCTION_ARG): Redefine to call arm_function_arg.
11455         (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11456         structure field.
11457         (INIT_CUMULATIVE_ARGS): Redefine to call
11458         arm_init_cumulative_args.
11459         (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11460         field.
11461         (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11462         field.
11463         (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11464         functions.
11465         (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11466         (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11467         (COMP_TYPE_ATTRIBUTES): Define.
11468
11469         * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11470         if a long call is needed.
11471         (call_value): Call arm_is_long_call_p to decide if a long call
11472         is needed.
11473         (call_symbol): Call arm_is_long_call_p to decide if a long call
11474         is needed.
11475
11476         * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11477
11478 2000-02-11  Denis Chertykov  <denisc@overta.ru>
11479
11480         * README.AVR: New file with information about the avr ports.
11481         * config/avr: New directory with avr port files.
11482
11483 2000-02-11  Andreas Jaeger  <aj@suse.de>
11484
11485         * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11486
11487 2000-02-11  Zack Weinberg  <zack@wolery.cumb.org>
11488
11489         * cpphash.c: Fix formatting, update commentary.
11490         (dump_definition): Take three separate arguments instead of a
11491         MACRODEF structure argument.
11492         * cpphash.h: Update prototype of dump_definition.
11493         * cppinit.c (cpp_finish): Update call of dump_definition.
11494
11495         * cpplib.c (do_define): Always create new hash entry with
11496         T_MACRO type.  Remove redundant check for redefinition of
11497         poisoned identifier.  Update call of dump_definition.
11498         (do_undef): Don't call check_macro_name.  Rename sym_length to
11499         len.
11500         (do_error, do_warning): Don't use copy_rest_of_line or
11501         SKIP_WHITE_SPACE.
11502         (do_warning): Don't use pedwarn for the actual warning,
11503         only the notice about its not being in the standard.  (Fixes
11504         bug with #warning in system headers.)
11505         (do_ident): Stricter argument checking - accept only a single
11506         string after #ident.  Also, macro-expand the line.
11507         (do_xifdef): Use cpp_defined.  De-obfuscate.
11508
11509         (do_pragma): Split out specific pragma handling to separate
11510         functions.  Use get_directive_token.  Update commentary.  Do
11511         not pass on #pragma once or #pragma poison to the front end.
11512         (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11513         do_pragma_default): New.
11514
11515 Feb 11 12:30:53 2000  Jeffrey A Law  (law@cygnus.com)
11516
11517         * jump.c (jump_optimize_1): The first operand in a relational
11518         can be a CONST_INT.
11519         * optabs.c (emit_conditional_move): Handle relationals which
11520         have a known true/false result.
11521
11522 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
11523
11524         * function.c (thread_prologue_and_epilogue_insns): Don't insert
11525         a RETURN insn into a block which already ends with a jump.
11526
11527 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
11528
11529         * haifa-sched.c (BUF_LEN): Increase a lot.
11530
11531 2000-02-11  Nick Clifton  <nickc@cygnus.com>
11532
11533         * configure.in: Add tm_p_file specification for thumb targets.
11534         * configure: Regenerate.
11535
11536         * config/arm/thumb-protos.h: New file: Prototypes for exported
11537         functions defined in thumb.c.
11538
11539 2000-02-11  Robert Lipe  <robertl@sco.com>
11540
11541         * Makefile.in (bootstrap-lean): Remove additional files.
11542         (bootstrap2-lean): Likewise.
11543         (VOL_FILES): List of files for above.
11544
11545 2000-02-11  Nathan Sidwell  <nathan@acm.org>
11546
11547         * cpphash.c (special_symbol): Remove spurious argument to
11548         cpp_lookup.
11549
11550 2000-02-11  Joel Sherrill (joel@OARcorp.com>
11551
11552         * configure.in: (i*86-*-rtems*): Swapped elf and coff
11553         stanzas.
11554         * configure: Rebuilt.
11555
11556 2000-02-11  Rodney Brown  <RodneyBrown@pmsc.com>
11557
11558         * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11559
11560 Fri Feb 11 02:59:05 2000  Jeffrey A Law  (law@cygnus.com)
11561
11562         * pa.c, pa.h: Remove trigraph sequences within comments.
11563
11564 Fri Feb 11 02:51:56 2000  Pavel Roskin <pavel_roskin@geocities.com>
11565
11566         * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11567
11568 Fri Feb 11 02:48:30 2000  Brad Lucier  (lucier@math.purdue.edu)
11569
11570         * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11571
11572 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11573
11574         * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11575
11576 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11577
11578         * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11579         (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11580         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11581         (ASM_FILE_END): Use c4x_file_end.
11582         * config/c4x/c4x.c (c4x_global_label): New function.
11583         (c4x_external_ref, c4x_file_end): Likewise.
11584
11585         * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11586         (c4x_external_ref, c4x_end_file): Likewise.
11587
11588 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
11589
11590         * cppexp.c: Don't include cpphash.h.
11591         (parse_charconst, cpp_lex): Use cpp_defined.
11592         (cpp_lex): Use get_directive_token throughout.  Remove
11593         unnecessary cases from switch.  Move assertion-handling code
11594         down to OTHER case.
11595         (cpp_parse_expr): If we see '+' or '-', check the context to
11596         determine if they are unary or binary operators.  Streamline
11597         the jumps a bit.  Do not call skip_rest_of_line.
11598
11599         * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11600         static.  Export get_directive_token.  Update commentary.
11601         (cpp_defined): New function.
11602         (do_define): Remove reference to T_PCSTRING.  Call
11603         free_definition to release memory for old definition, when
11604         redefining a macro.
11605         (eval_if_expression): Set only_seen_white to 0 before calling
11606         cpp_parse_expr.  Call skip_rest_of_line after it returns.
11607         (cpp_read_check_assertion): Don't preserve a pointer into the
11608         token buffer across a call to cpp_get_token.
11609
11610         * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11611         * cppfiles.c (redundant_include_p): Use cpp_defined.
11612         * cpphash.c (free_definition): New function.
11613         (delete_macro): Use it.  Update commentary.
11614         * cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
11615         free_definition.
11616         * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11617         from enum node_type.  Prototype cpp_defined and get_directive_token.
11618         Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11619
11620         * fix-header.c (check_macro_names): Use cpp_defined.
11621         (read_scan_file): Set inhibit_warnings and inhibit_errors in
11622         the options structure.
11623
11624 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11625
11626         * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11627
11628 2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
11629
11630         * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11631         rather than die->die_tag.
11632
11633 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11634
11635         * combine.c (make_extraction, force_to_mode): Avoid warning on
11636         mixed-signedness conditionals.
11637         (make_field_assignment, nonzero_bits): Likewise.
11638         * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11639         (store_split_bit_field, extract_split_bit_field): Likewise.
11640         (extract_fixed_bit_field, store_bit_field,
11641         * expr.c: Change alignment to be unsigned everywhere.
11642         (move_by_pieces, store_constructor_field, store_constructor):
11643         Alignment parm is unsigned.
11644         (emit_block_move, emit_group_load, emit_group_store): Likewise.
11645         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11646         (do_compare_rtx_and_jump): Likewise.
11647         (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11648         Compare align with GET_MODE_ALIGNMENT.
11649         (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11650         (get_inner_reference): Likewise.
11651         (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11652         (expand_assignment): Local vars for alignment now unsigned.
11653         (store_constructor, store_field, expand_expr, do_jump): Likewise.
11654         (do_compare_and_jump): Likewise.
11655         (store_field): Call new function expr_align.
11656         * expr.h (emit_block_move, emit_group_load, emit_group_store):
11657         Alignment arg now unsigned.
11658         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11659         (do_compare_rtx_and_jump, store_bit_field): Likewise.
11660         (extract_bit_field): Likewise.
11661         * fold-const.c (add_double): Add cast to eliminate signedness warning.
11662         * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11663         (get_best_mode): Alignment arg is unsigned.
11664         * rtl.h (move_by_pieces): Likewise.
11665         * store-layout.c (maximum_field_alignment, set_alignment):
11666         Now unsigned.
11667         (layout_decl): Alignment arg is now unsigned.
11668         Remove unneeded casts.
11669         (layout_record, layout_union, layout_type): Remove unneeded casts.
11670         Local alignment variables now unsigned.
11671         (get_best_mode): Alignment arg now unsigned.
11672         * tree.c (expr_align): New function.
11673         * tree.h (expr_align): Likewise.
11674         (maximum_field_alignment, set_alignment): Now unsigned.
11675         (get_inner_reference): Alignment argument is now pointer to unsigned.
11676         * varasm.c (assemble_variable): Add cast to eliminate warning.
11677
11678 Thu Feb 10 12:56:47 2000  Jim Wilson  <wilson@cygnus.com>
11679
11680         * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11681         then store directly into op0.
11682
11683         * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11684         the CALL_INSN, and emit the note immediately after it.
11685
11686 2000-02-10  Nick Clifton  <nickc@cygnus.com>
11687
11688         * config/arm/thumb.md (epilogue): Include a (return) in the
11689         generated insn, and emit it using emit_jump_insn not
11690         emit_insn.
11691
11692 Thu Feb 10 18:28:59 MET 2000  Jan Hubicka  <jh@suse.cz>
11693
11694         * function.c (assign_temp): Change zero-sized arrays to size 1.
11695         * integrate.c (expand_inline_function): Do not update
11696         stack_alignment_needed
11697         * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11698         add some sanity checking, remove optimization for function with
11699         zero frame size.
11700
11701 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11702
11703         * flow.c (mark_regs_live_at_end): Delete unused variables.
11704
11705         * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11706
11707         * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11708         in macro FRAME_GROWS_DOWNWARD.
11709
11710         * stmt.c (expand_end_bindings): Delete unused variable.
11711
11712         * unroll.c (iteration_info): Mark parameter `loop' with
11713         ATTRIBUTE_UNUSED.
11714
11715 2000-02-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11716
11717         * fixinc/server.c (load_data): Return NULL if the marker line is
11718         not found.
11719         (run_shell): If load_data returns NULL, retry the command once, in
11720         a new shell.
11721
11722         * configure: Rebuilt.
11723
11724 2000-02-09  Bruce Korb  <bkorb@gnu.org>
11725
11726         * gcc/fixincludes:  ** DELETED **
11727         * gcc/fixcpp:  ** DELETED **
11728         * gcc/fixinc-nt.sed:  ** DELETED **
11729         * gcc/just-fixinc:  ** DELETED **
11730         * gcc/Makefile.in:  Removed out-dated commentary
11731         * gcc/configure.in: Removed fast-fixincludes disablement.
11732         * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11733
11734 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
11735         * function.c (thread_prologue_and_epilogue_insns): Uncomment
11736         last change.
11737
11738 2000-02-09  Richard Henderson  <rth@cygnus.com>
11739
11740         * jump.c (delete_insn): Don't delete user labels at -O0.
11741
11742 2000-02-09  Robert Lipe  <robertl@sco.com>
11743
11744         * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11745         Don't link with HOST_LIBS.
11746
11747 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
11748
11749         * configure.in: Correct --help text for --with-dwarf2.
11750         Put tm-dwarf2.h after other tm files, if it's requested.
11751         * configure: Regenerate.
11752         * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11753         defining it.
11754
11755 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
11756
11757         * cpplib.h: Provide HASHNODE typedef and forward decl of
11758         struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
11759         DEFINITION, struct hashnode, struct macrodef, struct
11760         definition, scan_decls prototype, default defn of
11761         INCLUDE_LEN_FUDGE moved elsewhere.
11762
11763         * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11764         definition, and struct hashnode moved here. Remove the unused
11765         'predefined' field from struct definition.  Replace the 'args'
11766         union with its sole member.  All users updated (cpphash.c).
11767         Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
11768         multiple include guard.
11769
11770         * cpphash.c (hashf): Make static; use better algorithm; drop
11771         HASHSIZE parameter; return an unsigned int.
11772         (cpp_lookup): Drop HASH parameter.  PFILE parameter is
11773         used. Calculate HASHSIZE modulus here.
11774         (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11775         here.
11776         (create_definition): Drop PREDEFINITION parameter.
11777         * cpplib.c (do_define): Don't calculate a hash value here.
11778         Don't pass (keyword == NULL) to create_definition.
11779
11780         * scan.h: Prototype scan_decls here.
11781         * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11782         * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11783         callers of cpp_lookup and cpp_install updated.
11784
11785         * cpphash.c (macarg): Hoist all the flag diddling out of the
11786         function...
11787         (macroexpand): ... and out of the loop that calls macarg.
11788         Skip over the initial paren before macro arguments with
11789         cpp_get_non_space_token; point may be some distance before
11790         that paren.  Abort if it's not there.
11791
11792         * cpplib.c (parse_clear_mark): Delete function.
11793         (parse_set_mark, parse_goto_mark): Make static.
11794         (ACTIVE_MARK_P): New macro.
11795         (skip_block_comment, skip_line_comment): Do not bump the line
11796         if ACTIVE_MARK_P is true.
11797         (cpp_pop_buffer): The buffer to be popped may not have an
11798         active mark.
11799         (cpp_get_token): When looking for the initial paren before
11800         macro arguments, only set a mark in a file buffer, Always
11801         return to that mark before proceeding to call macroexpand or
11802         return a NAME token.
11803
11804         * cpplib.h: Remove prototypes of parse_set_mark,
11805         parse_clear_mark, parse_goto_mark.
11806         (struct cpp_options): Rename 'put_out_comments' to
11807         'discard_comments' and invert its sense.
11808         * cppinit.c, cpphash.c, cpplib.c: All users of
11809         put_out_comments changed to use discard_comments, with
11810         opposite sense.
11811
11812 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
11813
11814         * function.c (thread_prologue_and_epilogue_insns): Don't delete
11815         the edge from a block that both jumps and falls through to the
11816         fallthru block.
11817
11818 2000-02-09  Scott Bambrough  <scottb@netwinder.org>
11819
11820         * config/arm/arm.md (movsi): In PIC mode, make sure that a
11821         constant source address is legitimate.
11822
11823 2000-02-09  Philip Blundell  <pb@futuretv.com>
11824
11825         * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
11826         correctly.
11827
11828         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
11829         generating PIC.
11830         (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
11831
11832 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
11833
11834         * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
11835         ends with a newline and a NUL.  Don't be so clever manipulating
11836         strings.
11837
11838 Wed Feb  9 14:18:08 MET 2000  Jan Hubicka  <jh@suse.cz>
11839
11840         * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
11841         not to BIGGEST_ALIGNMENT.
11842
11843 2000-02-08  Geoff Keating  <geoffk@cygnus.com>
11844
11845         * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
11846         * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
11847         (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
11848         (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
11849         * frame.c (execute_cfa_insn): Handle
11850         DW_CFA_GNU_negative_offset_extended.
11851
11852 2000-02-08  Richard Henderson  <rth@cygnus.com>
11853
11854         * flow.c (tidy_fallthru_edges): Split out from ...
11855         (delete_unreachable_blocks): ... here.
11856         (find_basic_blocks): Use it.
11857
11858 Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11859
11860         * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
11861
11862 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
11863
11864         * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
11865         (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
11866         (fix-header.o): Don't depend on cpphash.h.
11867
11868         * scan.c (hashstr): New function.
11869         * scan.h: Prototype it.
11870         * fix-header.c: Don't include cpphash.h.  Use hashstr.
11871         * gen-protos.c: Don't include cpphash.h or cpplib.h.  Use
11872         hashstr.  Report hash table statistics.  Add private
11873         definition of xrealloc.
11874
11875 2000-02-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11876
11877         * i386.h (TARGET_SWITCHES): Fix typo in option name.
11878
11879 2000-02-08  Clinton Popetz  <cpopetz@cygnus.com>
11880
11881         * function.c (thread_prologue_and_epilogue_insns): Don't replace
11882         jumps with returns unless they are jumps to the fallthru block.
11883
11884 Tue Feb  8 07:53:55 2000  Jan Hubicka  <jh@suse.cz>
11885
11886         * i386.md (addqi3_cc): Fix contraints.
11887
11888 Tue Feb  8 01:39:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11889
11890         * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
11891
11892 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
11893
11894         * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
11895         carriage return after a macro name.
11896
11897 2000-02-07  Fred Fish  <fnf@be.com>
11898
11899         * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
11900         so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
11901
11902 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
11903
11904         * cppfiles.c (deps_output): Count spacers in deps_column.
11905
11906 2000-02-07  Neil Booth  <NeilB@earthling.net>
11907
11908         * cppinit.c (initialize_dependency_output): If there is no
11909         suffix, don't try to look for known suffixes.  Use strrchr.
11910         (cpp_start_read): Remove duplicate initialization.
11911
11912 Mon Feb  7 18:36:41 MET 2000  Jan Hubicka  <jh@suse.cz>
11913
11914         * calls.c (compute_argument_block_size): New argument
11915         preferred_stack_boundary.
11916         (expand_call): update cfun->preferred_stack_boundary, update call of
11917         compute_argument_block_size
11918         (emit_library_call): Increate cfun->preferred_stack_boundary
11919         to PREFERRED_STACK_BOUNDARY
11920         (emit_library_call_value): Likewise.
11921         * explow.c (allocate_dynamic_stack_spave): Likewise.
11922         * function.c (prepare_function_start): Set
11923         cfun->preferred_stack_boundary
11924         * function.h (struct function): Add preferred_stack_boundary field.
11925         * integrate.c (expand_inline_function): Update
11926         cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
11927         (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
11928         * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
11929
11930 2000-02-06  Zack Weinberg  <zack@wolery.cumb.org>
11931
11932         * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
11933         cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
11934         cpp_pedwarn, cpp_pedwarn_with_line,
11935         cpp_pedwarn_with_file_and_line): Move to cpperror.c.
11936         (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
11937         v_cpp_error_with_line, v_cpp_warning_with_line,
11938         cpp_message_from_errno, cpp_perror_with_name): Delete.
11939
11940         * cpperror.c (cpp_print_containing_files): Take starting
11941         buffer as argument.
11942         (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
11943         (v_cpp_message): Now called directly by all entry points.
11944         Remove -1 case.
11945         (cpp_pfatal_with_name, cpp_message): Delete.
11946         (cpp_notice_from_errno, cpp_ice): New functions.
11947         (cpp_notice): Is now for reporting error conditions, just
11948         without an associated file.
11949         (cpp_error, cpp_error_with_line): Don't do anything if
11950         opts->inhibit_errors is on.
11951         (cpp_pedwarn_with_file_and_line): Take column argument also.
11952
11953         * cpplib.h: Update prototypes of exported functions.
11954         (struct cpp_options): Add inhibit_errors.
11955
11956         * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
11957         non-error messages.  Include intl.h.
11958
11959         * cppinit.c, cppmain.c: Likewise.  Also, use
11960         cpp_notice_from_errno instead of cpp_perror_with_name or
11961         cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
11962
11963         * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
11964         report internal errors.
11965
11966         * cpplib.c (do_define): Switch bcopy to memcpy.
11967         Give cpp_pedwarn_with_file_and_line a dummy column argument.
11968
11969         * cpplib.c (copy_rest_of_line): Revert previous change: don't
11970         bail out early if we hit a line comment.
11971
11972 2000-02-06  Richard Henderson  <rth@cygnus.com>
11973
11974         * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
11975         * basic-block.h: Declare them.
11976         * emit-rtl.h (active_insn_p): New.
11977         (next_active_insn, prev_active_insn): Use it.
11978         * rtl.h: Declare it.
11979         * function.c (emit_return_into_block): New.
11980         (thread_prologue_and_epilogue_insns): Insert return insns instead
11981         of epilogues when possible.
11982         * jump.c (jump_optimize_1): Remove code to insert a return insn
11983         on the fallthru to the exit block.
11984
11985         * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
11986         and for non-empty stack frames.
11987         * i386.md (return): Expand to return-pop as needed.
11988
11989 2000-02-06  Richard Henderson  <rth@cygnus.com>
11990
11991         * simplify-rtx.c (simplify_relational_operation): Canonicalize
11992         constant to op1 for testing.
11993
11994 2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11995
11996         * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
11997         (fixuns_truncqfqi2): Use it.
11998
11999 2000-02-06  Richard Henderson  <rth@cygnus.com>
12000
12001         * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
12002         as a TYPE_LEA insn.
12003
12004         * i386.md (widening and peepholes): Mask the constant instead of
12005         using gen_lowpart.
12006
12007 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
12008
12009         * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
12010         input pointer before possibly branching off to the backslash
12011         code.
12012         * cpphash.c (macroexpand): Correctly delete \r escapes when
12013         stringifying parameters.
12014         * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
12015         if we can; bail out early if we hit a line comment.
12016         (handle_directive): Treat '# 123' in an .S file just like
12017         '# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
12018         Return 1 for '# not_a_directive'.
12019         (get_directive_token): Pop macro buffers here, so that
12020         cpp_get_token can't sneakily move past a newline.
12021         Add sanity checks.
12022         (cpp_get_token): goto randomchar if handle_directive returns 0.
12023
12024         * cppalloc.c: Update copyright.
12025         * cpplib.c: Merge all the static function prototypes into one
12026         block.
12027         * cpplib.h: Remove #if 0 block.
12028
12029         * cpperror.c: Remove #ifdef EMACS block.
12030         * cppmain.c: Likewise.
12031         * cpphash.c: Remove #if 0 blocks.
12032         * cppinit.c: Remove #if 0 blocks, and the -lint option.
12033         * cpplib.c: Remove #if 0 blocks and code referencing
12034         pcp_inside_if or for_lint.  Remove duplicate error message.
12035         Fix error messages for #else after #else or #elif.  Reformat.
12036         Remove archaic TODO list.
12037         * cpplib.h: Remove pcp_inside_if and for_lint flags.
12038
12039 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
12040
12041         * i386/osf1elf.h: Add missing backslash to multiline string.
12042
12043 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12044
12045         * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
12046
12047 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12048
12049         * Makefile.in (c-common.o): Depend on $(EXPR_H).
12050
12051         * c-common.c: Include expr.h.
12052
12053         * c-pragma.c (mark_align_stack): Add prototype.
12054
12055         * caller-save.c (add_stored_regs): Likewise.
12056
12057         * combine.c (record_promoted_value): Likewise.
12058
12059         * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
12060         Likewise.
12061
12062         * cppinit.c (new_pending_define): Likewise.
12063
12064         * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
12065
12066         * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
12067         AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12068         AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
12069         class_scope_p): Likewise.
12070
12071         * dwarf2out.h (dwarf2out_set_demangle_name_func,
12072         dwarf2out_add_library_unit_info): Likewise.
12073
12074         * ggc.h (ggc_page_print_statistics): Likewise.
12075
12076         * haifa-sched.c (propagate_deps): Likewise.
12077
12078         * reg-stack.c (next_flags_user, record_label_references): Likewise.
12079
12080         * rtl.h (set_stack_check_libfunc): Likewise.
12081
12082         * toplev.h (set_fatal_function): Likewise.
12083
12084         * toplev.c (set_fatal_function): Delete prototype.
12085
12086         * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
12087
12088 2000-02-05  Geoff Keating  <geoffk@cygnus.com>
12089
12090         * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
12091         (FUNC_END): Likewise.
12092
12093 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12094
12095         * caller-save.c: Include tm_p.h.
12096
12097 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12098
12099         * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
12100
12101 2000-02-04  Neil Booth  <NeilB@earthling.net>
12102
12103         * cccp.c (main): Check 'dir' for a NULL pointer before passing
12104         it to strcmp.
12105
12106 2000-02-04  Zack Weinberg  <zack@wolery.cumb.org>
12107
12108         * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
12109         * genflags.c: Use the max_operand_1 logic from genemit.c to
12110         calculate how many arguments gen_insn prototypes have.  Remove
12111         NO_MD_PROTOTYPES ifdefs from the generated file.
12112         * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
12113         file.  Cast gen_insn initializers to insn_gen_fn.
12114         * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
12115         * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
12116
12117 2000-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12118
12119         * fixinc/Makefile.in (HDR): Add machname.h.
12120         (clean): Likewise.
12121
12122 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12123
12124         * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
12125         (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
12126         (c4x_cpu_version): Ditto.
12127         * config/c4x/c4x-protos.h: ... here.
12128
12129 2000-02-04  Jason Merrill  <jason@casey.cygnus.com>
12130
12131         * dwarf2out.c (add_abstract_origin_attribute): Don't call
12132         gen_abstract_function on our context if we're a nested function.
12133
12134 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12135
12136         * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
12137         * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
12138
12139 2000-02-04  Bruce Korb  <bkorb@gnu.org>
12140
12141         * fixinc/genfixes(machname.h):
12142         Move the functionality from gen-machine.h into this file.
12143         UNdef MN_NAME_PAT if there are no names to change.
12144         Also, be a little kinder when AutoGen is not present.
12145
12146         * fixinc/Makefile.in(machname.h):
12147         Change the generation rule to use genfixes.
12148
12149         * fixinc/fixfixes.c(machine_name):
12150         machine_name_fix's functionality now dependent upon whether
12151         MN_NAME_PAT is defined.
12152
12153         * fixinc/fixtests.c(machine_name):
12154         ditto.
12155
12156         * fixinc/fixlib.c(mn_get_regexps): conditional on definition
12157         of MN_NAME_PAT.
12158
12159         * fixinc/fixlib.h(mn_get_regexps):
12160         ditto
12161
12162         * fixinc/gen-machine.h: DELETED
12163
12164 2000-02-04  Jan Hubicka  <jh@suse.cz>
12165             Richard Henderson  <rth@cygnus.com>
12166
12167         * i386.c (SAVE_REGS_FIRST): Remove.
12168         (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
12169         (ix86_compute_frame_size): Likewise.
12170         (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
12171         (ix86_emit_restore_regs): Remove.
12172         (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
12173         when a frame pointer is in use.
12174         (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
12175         instead of pop to restore a register when profitable; emit leave
12176         when profitable.
12177         (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
12178         as a TYPE_LEA insn.
12179         (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
12180         * i386.md (prologue_allocate_stack): Remove.
12181         (epilogue_deallocate_stack): Remove.
12182         (pro_epilogue_adjust_stack): New.
12183
12184 2000-02-04  Richard Henderson  <rth@cygnus.com>
12185
12186         * function.c (diddle_return_value): Rework to use a callback function.
12187         Use current_function_return_rtx if it's been set up.
12188         (do_clobber_return_reg, clobber_return_register): New.
12189         (do_use_return_reg, use_return_register): New.
12190         (expand_function_end): Use them.
12191         * stmt.c (expand_null_return): Likewise.
12192         * function.h: Declare them.
12193         * flow.c (mark_regs_live_at_end): Use diddle_return_value.
12194         (mark_reg): Change arguments as appropriate for callback.
12195         * integrate.c (expand_inline_function): Revert 19 Jan change.
12196
12197 Fri Feb  4 20:25:42 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12198
12199         * tm.texi (Values in Registers): Fix typo: "fo" "for".
12200         (Misc): Say the scheduler, not the Haifa scheduler.
12201
12202 2000-02-04  Clinton Popetz  <cpopetz@cygnus.com>
12203
12204         * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
12205         when in_mem is set.  Update all callers.
12206
12207 2000-02-04  Richard Henderson  <rth@cygnus.com>
12208
12209         * i386/openbsd.h (INT_ASM_OP): Define.
12210
12211 Fri Feb  4 10:51:30 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12212
12213         * tm.texi: Fix various typos.
12214
12215 Thu Feb  3 17:17:32 2000  Steve Ellcey <sje@cup.hp.com>
12216
12217         * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
12218         (MD_STARTFILE_PREFIX_1): New macro.
12219
12220 Thu Feb  3 15:08:13 MET 2000  Jan Hubicka  <jh@suse.cz>
12221
12222         * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
12223         destination when needed.
12224         (strmovsi, strsetsi): New expander.
12225         (strmovsi_1, strsetsi_1): New pattern.
12226         * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
12227         TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
12228         (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
12229         * invoke.texi (align-stringops, inline-all-stringops): Document.
12230
12231 Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>
12232
12233         * i386/netbsd.h (INT_ASM_OP): Define.
12234
12235 2000-02-02  Zack Weinberg  <zack@wolery.cumb.org>
12236
12237         * cpplib.h (cpp_reader): Add new flag, no_directives.
12238         * cpphash.c (macarg): Set it.
12239         * cpplib.c (handle_directive): If no_directives is on and we
12240         find a directive, issue an error and discard the line.
12241
12242 Wed Feb  2 13:07:10 2000  Jim Wilson  <wilson@cygnus.com>
12243
12244         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
12245         FP constants.  Add ! TARGET_FPU check for FP constants.
12246
12247 2000-02-02  Clinton Popetz  <cpopetz@cygnus.com>
12248
12249         * flow.c (find_basic_blocks): Don't kill label_value_list
12250         here.
12251         (cleanup_cfg): Kill it here.
12252
12253 Wed Feb  2 08:12:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12254
12255         * expr.c (store_field): Ensure ALIGN is no stricter than the
12256         alignment of EXP.
12257
12258 2000-02-02  Richard Henderson  <rth@cygnus.com>
12259
12260         * jump.c (delete_insn): Partially revert 19 Jan change;
12261         don't convert unused code labels to notes at -O0.
12262
12263 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12264
12265         * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
12266         split_all_insns to recreate REG_LABEL notes for flow2 pass.
12267
12268 2000-02-01  Richard Henderson  <rth@cygnus.com>
12269
12270         * i386.c (general_no_elim_operand): New.
12271         (nonmemory_no_elim_operand): New.
12272         (ix86_expand_move): Copy eliminable operands before a push.
12273         * i386-protos.h: Declare new functions.
12274         * i386.h (CAN_ELIMINATE): Simplify.
12275         (PREDICATE_CODES): Update.
12276         * i386.md (push insns): Don't allow eliminable register operands.
12277
12278 2000-02-01  Richard Henderson  <rth@cygnus.com>
12279
12280         * flow.c (mark_regs_live_at_end): Follow expand_function_end and
12281         replace BLKmode with DECL_RTL's mode.
12282
12283 2000-02-01  Zack Weinberg  <zack@wolery.cumb.org>
12284
12285         * frame.c (find_fde): Convert for loop to do-while so compiler
12286         sees it's always executed at least once.
12287         * libgcc2.c (BBINBUFSIZE): Kill.
12288         (__bb_init_prg): Use fgets.
12289         (__bb_exit_trace_func): Don't paste strings.
12290         * unroll.c (unroll_loop): Initialize unroll_type, not
12291         unroll_number, and tweak logic to match.
12292
12293         * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12294         all failure paths.
12295         (ix86_flags_dependant): Likewise.  Disentangle control flow.
12296         (ix86_sched_reorder): Break guts out to
12297         ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12298         (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12299         any possible use.
12300
12301         * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12302         use string concatenation.  Don't save and restore esi.
12303
12304         * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12305         (machname.h): Remove script to separate file.  Use two-step
12306         sequence so target is not created if script fails.
12307         * fixinc/gen-machname.h: New file.  Handle case where no non-reserved
12308         identifiers are defined.
12309         * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12310         an empty string, machine_name doesn't need to do anything at
12311         all.
12312         (is_cxx_header): Add more cases to regexp.
12313         * fixinc/fixlib.h: Update prototype.
12314         * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12315         mn_get_regexps.
12316         * fixinc/fixincl.c: Define NO_BOGOSITY.
12317
12318         * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12319         (hp_sysfile): Add missing comma.
12320         (math_exception): Put the wrapper ifdefs at the beginning and
12321         the end of the file.
12322         * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12323
12324 2000-02-01  Richard Henderson  <rth@cygnus.com>
12325
12326         * sparc.c (fp_zero_operand): Turn into a normal predicate.
12327         Use CONST0_RTX.  Update all callers.
12328         * sparc.h, sparc-protos.h: Update accordingly.
12329         * sparc.md (fp mov insns): Use fp_zero_operand directly
12330         where applicable.
12331
12332 Wed Feb  2 02:59:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12333
12334         * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12335         example.
12336
12337 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12338
12339         * Makefile.in (specs.ready): New target.
12340         (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12341
12342 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12343
12344         * fixinc.irix: Use unique filenames for writing into /tmp,
12345         * fixinc.ptx: Likewise.
12346         * fixinc.sco: Likewise.
12347         * fixinc.svr4: Likewise.
12348         * fixinc.winnt: Likewise.
12349
12350 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12351
12352         * tsystem.h: New file.
12353
12354         * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12355         s-crtS): Depend on tsystem.h.
12356
12357         * crtstuff.c: Include tsystem.h.
12358         * frame.c: Likewise.
12359         * libgcc2.c: Likewise.
12360
12361 Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
12362
12363         * builtins.c (expand_builtin_memset): Expand for variable sized
12364         lengths too.
12365
12366 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au>
12367
12368         * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12369         on ABI.
12370
12371 Tue Feb  1 00:57:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12372
12373         * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12374
12375         * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12376
12377 2000-01-31  Chandra Chavva <cchavva@cygnus.com>
12378
12379         * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12380         case 3->2 combining (combining with splitting) in which 2 is CC0
12381         setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12382         checked at the begining of the function with the aid of calling
12383         function 'can_combine_p'.
12384
12385 2000-01-31  Dave Brolley  <brolley@redhat.com>
12386
12387         * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12388
12389 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
12390
12391         * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12392         new label.
12393
12394 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12395
12396         * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12397
12398         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12399         PROTO -> PARAMS.
12400
12401 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
12402
12403         * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12404         i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12405         i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12406         i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12407         i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12408         i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12409         i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12410         i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12411         i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12412         Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12413
12414         * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12415         Add %(cpp_cpu) to CPP_SPEC.
12416
12417         * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12418         Add %(cc1_cpu) to CC1_SPEC.
12419
12420 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
12421
12422         * c-decl.c (c_decode_option): Accept optional numeric argument to
12423         -Wformat and set warn_format.
12424         * c-common.c: Don't emit warning about non-constant printf format
12425         string unless warn_format > 1.
12426
12427 2000-01-30  Richard Henderson  <rth@cygnus.com>
12428
12429         * alpha.md (return_internal): Allow after reload only.
12430
12431 2000-01-30  Richard Henderson  <rth@cygnus.com>
12432
12433         * i386.c (ix86_compute_frame_size): Omit padding1 if the
12434         local frame size is zero.
12435
12436 2000-01-30  Richard Henderson  <rth@cygnus.com>
12437
12438         * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12439         * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
12440         * alpha.md (return): Turn into an expander.
12441         (return_internal): Don't use $26.
12442         (epilogue): Emit the return insn.
12443
12444 2000-01-30  Richard Henderson  <rth@cygnus.com>
12445
12446         * alpha.md (negtf2, abstf2): Fix word order thinko.
12447         (extendsftf2): New.
12448         (trunctfsf2): Avoid intermediate rounding errors.
12449
12450 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
12451
12452         * cppfiles.c (find_position): Drop 'colp' argument, return the
12453         new line base.
12454         (read_and_prescan): Adjust to match.  Don't ever manipulate
12455         line or line_base except via find_position.
12456
12457 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
12458
12459         * c-parse.in: Apply Ulrich's changes from c-parse.y.
12460         * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12461         Regenerate.
12462
12463 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
12464
12465         * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12466         just print "<command line>".  If 'filename' is null or an
12467         empty string, print "<stdin>" for the filename.
12468         * cpplib.c (do_define): Don't print the 'location of the
12469         previous definition' message if we're still parsing the
12470         command line.
12471         (cpp_pedwarn_with_file_and_line): Always call
12472         cpp_file_line_for_message.
12473
12474 2000-01-29  Mark Mitchell  <mark@codesourcery.com>
12475
12476         * flow.c (mark_regs_live_at_end): Fix typo.
12477
12478 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
12479
12480         * c-common.c: Adjust variable names, comments, help strings to c99.
12481         * c-lex.c: Likewise.
12482         * c-parse.y: Likewise.
12483         * c-tree.h: Likewise.
12484         * cccp.c: Likewise.
12485         * cpplib.h: Likewise.
12486         * c-decl.c: Likewise.  Recognize options with names "*99" as well.
12487         * cppinit.c: Likewise.
12488
12489 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12490
12491         * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12492         * c4x.c: Define the optab rtx values.
12493         (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12494         (c4x_emit_libcall): Use new optab rtx values.
12495         (c4x_emit_libcall3): Likewise.
12496         (c4x_emit_libcall_mulhi): Likewise.
12497         * c4x-protos.h: Add prototypes for optab rtx values and change
12498         prototypes for above c4x_emit_libcall functions.
12499
12500 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12501
12502         * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12503         syntax is used.
12504         (c4x_function_prologue): Use regnames intead of float_reg_names when
12505         TI syntax is used.
12506         (c4x_function_epilogue): Likewise.
12507         (c4x_print_operand): Likewise.
12508         * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12509         * c4x.md (set_high): Disable for TARGET_TI.
12510
12511 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12512
12513         * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12514         of framepointer + constant to ADDR_REGS class.
12515         * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12516         * c4x.c (std_or_reg_operand): New function.
12517         * c4x-protos.h (std_or_reg_operand): Prototype it.
12518
12519 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12520
12521         * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12522                 object names as libgcc2.c.
12523         * libgcc.S: Use newly defined names.
12524
12525 Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
12526         * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12527         function.
12528         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12529         * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12530         (FLOW_LOOP_LAST_BLOCK): Likewise.
12531
12532 2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12533
12534         * basic-block.h (struct loop): New fields 'first' and 'last'.
12535         * flow.c (flow_loops_find): Compute loop->first and loop->last.
12536         (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12537         and loop->last to check for NOTE_INSN_LOOP_END.
12538
12539 Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>
12540
12541         * predict.c (estimate_probability): Use the new FIRST and LAST fields
12542         of the loop descriptor rather than HEADER and LATCH. Also added
12543         missing break statements as well making some coding style modifications
12544         as suggested by Michael Hayes.
12545
12546 2000-01-28  Richard Henderson  <rth@cygnus.com>
12547
12548         * flow.c (find_basic_blocks): Remove do_cleanup argument.
12549         Break out that code ...
12550         (cleanup_cfg): ... here.
12551         (commit_one_edge_insertion): Detect a return instruction being
12552         emitted to an edge.  Emit a barrier following; clear fallthru.
12553         (commit_edge_insertions): Verify CFG consistency.
12554         * function.c (expand_function_start): Kill unused variable.
12555         (expand_function_end): Likewise.
12556         (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12557         to insert the epilogue.
12558
12559         * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12560         (delete_null_pointer_checks): Likewise.
12561         * output.h: Likewise.
12562         * reg-stack.c (reg_to_stack): Likewise.
12563         * toplev.c (rest_of_compilation): Likewise.  Run
12564         thread_prologue_and_epilogue_insns after rebuilding the CFG.
12565
12566 2000-01-28  Richard Henderson  <rth@cygnus.com>
12567
12568         * Makefile.in (flow.o): Revert 24 Jan change.
12569         * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
12570         FUNCTION_VALUE result to DECL_RESULT's mode.
12571
12572         * haifa-sched.c (schedule_insns): Don't recompute reg info
12573         after reload.
12574
12575 2000-01-28  Zack Weinberg  <zack@wolery.cumb.org>
12576
12577         * configure.in: Make --enable-cpplib the default.
12578         * configure: Regenerate.
12579         * gcc.dg/990119-1.c: No longer expected to fail.
12580
12581 2000-01-28  Bernd Schmidt  <bernds@cygnus.co.uk>
12582
12583         * jump.c (jump_optimize_1): Delete an optimization that is also done
12584         by merge_blocks in flow.
12585
12586 2000-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12587
12588         * diagnostic.c (build_message_string, output_printf,
12589         line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12590         (build_location_prefix): Fix non-literal format string.
12591
12592 2000-01-27  Richard Henderson  <rth@cygnus.com>
12593
12594         * alpha.md (trunctfsf2): New.
12595
12596 2000-01-27  Andrew Hobson  <ahobson@eng.mindspring.net>
12597
12598         * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12599
12600 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
12601
12602         * cppinit.c (cpp_handle_option): Recognize C++ comments under
12603         -std=gnu89.
12604         * cpplib.c (skip_block_comment, skip_line_comment): Split code
12605         out of...
12606         (skip_comment) ... here.  Permit C++ comments in system
12607         headers always.  Warn about C++ comments in user code under
12608         -std=gnu89 -pedantic.
12609         (copy_comment): Use skip_comment.
12610         (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12611         return EOF.
12612         (consider_directive_while_skipping, do_else, do_endif): Call
12613         validate_else unconditionally.
12614         (validate_else): Check CPP_PEDANTIC here.  Accept non-comment
12615         text after the conditional in a system header.
12616         * cpplib.h (struct cpp_buffer): Add flag
12617         warned_cplusplus_comments.
12618
12619 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
12620
12621         * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12622         Use unshare_all_rtl_1.
12623         (unshare_all_rtl_again): New function.
12624         (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12625
12626         * function.c (purge_addressof_1): Use unshare_all_rtl_again
12627         rather than resetting the 'used' flags ourself.
12628
12629         * toplev.c (rest_of_compilation): Add current_function_decl
12630         to the unshare_all_rtl call.
12631         * tree.h: Prototype unshare_all_rtl.
12632         * rtl.h: Prototype unshare_all_rtl_again here.
12633
12634 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
12635
12636         * genoutput.c (output_prologue): Include ggc.h in generated
12637         files.
12638         * Makefile.in (insn-output.o): Depends on ggc.h.
12639
12640 2000-01-27  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
12641             Hans-Peter Nilsson  <hp@bitrange.com>
12642
12643         * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12644         Remove redundant include of xm-ns32k.h.
12645         * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12646         Remove redundant include of xm-ns32k.h.
12647         * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12648         Remove redundant include of xm-ns32k.h.
12649         * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12650
12651         * ns32k/ns32k.h: Update comment on multiply-add instructions.
12652         (TARGET_SWITCHES): Add documentation strings.
12653         (DWARF_FRAME_REGNUM): Override default definition.
12654         (REG_CLASS_CONTENTS): Add comments.
12655         (SUBSET_P): Format to reduce line length.
12656         (SMALL_REGISTER_CLASSES): Make a run time option.
12657         (GO_IF_NONINDEXED_ADDRESS): Reformat.
12658         (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12659         dereferencing it.  Braces to avoid "ambiguous else" were misplaced.
12660         (regclass_map): fix typo in comment.
12661         * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12662         Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12663         (trace, reg_or_mem_operand): Delete, unused function.
12664         (calc_address_cost): Small offsets are cheaper than large ones.
12665         (expand_block_move): Generate more efficient code when bytes is a
12666         known at compile time.
12667         * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12668         (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12669         instead of reg_or_mem_operand.
12670
12671         * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12672         not general_operand.  Similarly use "=rm" or stricter, not "=g".
12673         For input operands, use stricter constraints than "g" if not
12674         general_operand.  Similarly use stricter predicate than
12675         "general_operand" when stricter constraints than "g" are present,
12676         except for matching constraints.
12677         (movstrsi): Use "memory_operand" for operands 0 and 1.
12678         (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12679         (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12680         not reg_or_mem_operand.
12681         (udivmoddisi4): Ditto.
12682         Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12683         Use nonimmediate_operand for operand 3, not register_operand.
12684         (udivmoddiqi4_internal): Use register_operand for operand 1, not
12685         reg_or_mem_operand.
12686
12687 2000-01-27  Fred Fish  <fnf@be.com>
12688
12689         * gthr-posix.h: Fix typo; compatibily -> compatibility.
12690         * gthr-single.h: Likewise.
12691         * gthr-solaris.h: Likewise.
12692         * gthr-vxworks.h: Likewise.
12693         * gthr-win32.h: Likewise.
12694         * gthr.h: Likewise.
12695
12696 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
12697
12698         * cppinit.c: Add " (cpplib)" to end of string printed by
12699         -v / --version.
12700
12701 2000-01-27  Richard Henderson  <rth@cygnus.com>
12702
12703         * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12704         testing for a signed comparison.
12705         (alpha_emit_floatuns): New.
12706         * alpha-protos.h: Declare it.
12707         * alpha.md (floatunsdisf2, floatunsdidf2): New.
12708         (extendsfdf2): Tidy.
12709
12710 2000-01-27  Jakub Jelinek  <jakub@redhat.com>
12711
12712         * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12713         no -g option specifying debugging format, default to -gstabs+.
12714
12715 Wed Jan 26 22:19:14 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
12716
12717         * calls.c (special_function_p): New argument fork_or_exec.
12718         (expand_call): When profile_arc_flag is set and the function
12719         is in the fork_or_exec group, call __bb_fork_func first.
12720         * libgcc2.c, _bb module (__bb_fork_func): New function.
12721         (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12722         output file.
12723         * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12724         * tree.h (special_function_p): Update prototype.
12725
12726 2000-01-26  Richard Henderson  <rth@cygnus.com>
12727
12728         * alpha.c (alpha_split_tfmode_pair): New.
12729         * alpha-protos.h: Declare it.
12730         * alpha.md (abstf2, negtf2): New.
12731         (movtf insn): Add input G constraint.
12732         (movtf splitter): Use alpha_split_tfmode_pair.
12733
12734 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12735
12736         * i386/cygwin.h: PROTO -> PARAMS.
12737
12738 2000-01-26  Jakub Jelinek  <jakub@redhat.com>
12739
12740         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12741         TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12742         using _Qp_cmp/_Q_cmp and testing the return value.
12743         (print_operand): Call reverse_condition_maybe_unordered if
12744         we are handling CCFPmode or CCFPEmode.
12745         Handle ORDERED, UN* and LTGT comparisons.
12746         * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12747         if not TARGET_HARD_QUAD.
12748         (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12749         bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12750         Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12751         Adjust gen_b* calls so that they reflect return comparison of
12752         sparc_emit_float_lib_cmp.
12753
12754 2000-01-26  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12755
12756         * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12757         incoming operands array is large enough for one more operand.
12758         (alpha_emit_xfloating_arith): Likewise.
12759
12760 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
12761
12762         * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12763         file with one line and no trailing newline.
12764         Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12765         * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12766         checking if the match is on the line.
12767         * fixinc/gnu-regex.c: Provide regerror not __regerror.
12768
12769 2000-01-25  Richard Henderson  <rth@cygnus.com>
12770
12771         * sparc.c (output_cbranch): Fix accidental squashing of the
12772         fp branch pre-delay nop.
12773
12774 2000-01-25  Richard Henderson  <rth@cygnus.com>
12775
12776         * tree.def (UNNE_EXPR): Remove.
12777         * c-typeck.c (build_binary_op): Don't handle it.
12778         * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12779
12780         * rtl.def (UNNE): Remove.
12781         (LTGT): Add.
12782         * jump.c (reverse_condition): Update accordingly.
12783         (swap_condition): Likewise.
12784         (comparison_dominates_p): Handle unordered comparisons.
12785         (reverse_condition_maybe_unordered): New.
12786         * rtl.h (reverse_condition_maybe_unordered): Declare.
12787
12788         * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12789         (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12790         * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
12791         * sparc.md (bltgt): New.
12792
12793 2000-01-25  Nick Clifton  <nickc@redhat.com>
12794
12795         * emit-rtl.c (emit_insn): Only check machine class insns for
12796         improper emission of a RETURN.
12797
12798 2000-01-25  Richard Henderson  <rth@cygnus.com>
12799
12800         * Makefile.in (flow.o): Depend on $(EXPR_H).
12801         * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
12802         duplicate the structure of diddle_return_value for keeping regs live.
12803
12804 2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12805
12806         * loop.c (current_loop_info): Delete.
12807         (consec_sets_invariant_p): Add loop argument, update callers.
12808         (get_condition_for_loop): Likewise.
12809         (count_nonfixed_reads, update_giv_derive): Likewise.
12810         (simplify_giv_expr, general_induction_var): Likewise.
12811         (consec_sets_giv, recombine_givs): Likewise.
12812         (move_movables): Delete loop_start and loop_end arguments,
12813         add loop argument, and update callers.
12814         (find_mem_givs, check_final_value): Likewise.
12815         (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
12816         (loop_invariant_p): Rename from invariant_p, add loop argument, and
12817         update callers.
12818         (basic_induction_var): Add loop argument, delete loop_level argument,
12819         and update callers.
12820         * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
12821         add loop argument, and update callers.
12822         (find_splittable_regs, find_splittable_givs): Likewise.
12823         (reg_dead_after_loop, loop_find_equiv_value): Likewise.
12824         (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
12825         (biv_total_increment): Delete loop_start and loop_end arguments;
12826         update callers.
12827         (precondition_loop_p): Delete loop_start and loop_info arguments;
12828         update callers.
12829         * loop.h (get_condition_for_loop): Add loop argument.
12830         (biv_total_increment): Delete loop_start and loop_end arguments.
12831         (precondition_loop_p): Delete loop_start and loop_info arguments;
12832         add loop argument.
12833         (final_biv_value): Delete loop_start and loop_end arguments;
12834         add loop argument.
12835         (final_giv_value, back_branch_in_range_p): Likewise.
12836
12837 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
12838
12839         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
12840
12841 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
12842
12843         * Makefile.in (c-gperf.h) : Change the "See" pointer to
12844         point to the new "generated_files" doc.
12845
12846 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
12847
12848         * config/fp-bit.c (_unord_f2): Fix typo.
12849
12850 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
12851
12852         * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
12853         c-typeck.c, objc/objc-act.c: Remove all references to obstack
12854         functions obsoleted by GC, such as push_obstacks_nochange,
12855         end_temporary_allocation, savealloc, saveable_tree_cons, etc.
12856         and code which existed only to decide whether or not to call
12857         them.  Remove now-unused NESTED argument from start_function;
12858         all callers changed.  Do not change behavior based on ggc_p.
12859         The use of the ixp_obstack in c-iterate.c and the util_obstack
12860         in objc/objc-act.c remain; these are not obsoleted by garbage
12861         collection.
12862         * c-tree.h: Update prototype for start_function.
12863
12864         * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
12865
12866 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
12867
12868         * config/mips/mips.md (zero_extendsidi2_internal): Disable for
12869         mips16.
12870
12871 2000-01-25  Richard Henderson  <rth@cygnus.com>
12872
12873         * sparc-protos.h (select_cc_mode): Declare.
12874         * sparc.c (select_cc_mode): New.  Handle unordered compares.
12875         (output_cbranch): Always reverse via code change.  Handle
12876         unordered compares.  Factor tests and string updates.
12877         * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
12878         (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
12879         * sparc.md (bunordered, bordered): New.
12880         (bungt, bunlt, buneq, bunge, bunle): New.
12881
12882 2000-01-25  Richard Henderson  <rth@cygnus.com>
12883
12884         * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
12885         * ggc-common.c (ggc_add_rtx_varray_root): New.
12886         (ggc_mark_rtx_varray): New.
12887         (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
12888         functions down below ggc_mark_foo.
12889         * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
12890
12891 2000-01-25  Richard Henderson  <rth@cygnus.com>
12892
12893         * alpha.c (secondary_reload_class): Don't allocate a secondary
12894         for integral mode memories into FLOAT_REGS.  Rearrange the more
12895         complicated memory expression inward.
12896
12897 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
12898
12899         * inclhack.def: Fixes to play nicer with FreeBSD, and
12900         corrections to comments.
12901         (cxx_unready): Add select expression.
12902         (irix_sockaddr): Add bypass expression.
12903         (machine_ansi_h_va_list): New fix.
12904         (stdio_va_list): No need to edit _BSD_VA_LIST_.
12905         Split out addition of "#include <stdarg.h>" to...
12906         (stdio_stdarg_h): ... here.
12907         (systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
12908         to stdlib.h also.  Do not munge _BSD_SIZE_T_.
12909         (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
12910         size_t.
12911         (ultrix_ifdef): Tighten up select expression.
12912
12913         * fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
12914         re_ct and max_mach to avoid use of shell.  Make printed names
12915         match names in inclhack.def.  Use static copyright date.
12916         Don't count c_test and test expressions as requiring regex_t
12917         slots.  Add some commentary.
12918         * inclhack.tpl: Do not include the 'This script contains N
12919         fixup scripts' line if PROGRAM is defined.  Use static
12920         copyright date.
12921
12922 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
12923
12924         * dwarf2out.c: include "varray.h", not dyn-string.h.
12925         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
12926         (addr_const_to_string, addr_to_string): Lose.
12927         (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
12928         (struct dw_val_struct): val_addr is now an rtx.
12929         (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
12930         (used_rtx_varray): New varray.
12931         (dwarf2out_init): Initialize it.
12932         (save_rtx): New fn.
12933         (mem_loc_descriptor, add_const_value_attribute): Call it instead of
12934         addr_to_string.
12935         * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
12936         sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
12937         * Makefile.in (dwarf2out.o): Update dependencies.
12938
12939 2000-01-24  Richard Henderson  <rth@cygnus.com>
12940
12941         * i386.c (i386_dwarf_output_addr_const): New.
12942         * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
12943
12944         * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
12945         if defined.
12946         * dwarfout.c (output_mem_loc_descriptor): Likewise.
12947         * i386.c (i386_simplify_dwarf_addr): New.
12948         * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
12949
12950 Mon Jan 24 16:56:10 2000  Jim Wilson  <wilson@cygnus.com>
12951
12952         * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
12953         TYPE_STUB_DECL is NULL.
12954
12955 2000-01-24  Richard Henderson  <rth@cygnus.com>
12956
12957         * builtins.c (expand_tree_builtin): Move ...
12958         * c-common.c (expand_tree_builtin): ... here.
12959
12960 2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12961
12962         * loop.h (LOOP_INFO): New accessor macro.
12963         * basic-block.h (struct loop): Rename field `info' to `aux'.
12964         * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
12965         (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
12966         * unroll.c (loop_iterations, unroll_loop): Likewise.
12967
12968 2000-01-24  Christopher Faylor <cgf@cygnus.com>
12969
12970         * config/i386/t-cygwin: Accomodate new winsup directory layout
12971         when searching for include files.
12972
12973 2000-01-24  Richard Henderson  <rth@cygnus.com>
12974
12975         * rtl.def: Add unordered fp comparisions.
12976         * tree.def: Likewise.
12977         * tree.h: Add ISO C 9x unordered fp comparision builtins.
12978
12979         * builtins.c (expand_tree_builtin): New function.
12980         * c-typeck.c (build_function_call): Use it.
12981         (build_binary_op): Support unordered compares.
12982         * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
12983
12984         * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
12985         (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
12986         * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
12987         (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
12988         * jump.c (reverse_condition): Don't abort for UNLE etc, but
12989         return UNKNOWN.
12990         (swap_condition): Handle unordered compares.
12991         (thread_jumps): Check can_reverse before reversing.
12992         * loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
12993         reversed for FP.
12994
12995         * optabs.c (can_compare_p): New argument CODE.  Verify branch or
12996         setcc is present before acking for cmp_optab.  Update all callers.
12997         (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
12998         * expmed.c (do_cmp_and_jump): Update for can_compare_p.
12999         * expr.c (expand_expr): Likewise.  Support unordered compares.
13000         (do_jump, do_store_flag): Likewise.
13001         * expr.h (enum libfunc_index): Add unordered compares.
13002
13003         * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
13004         (DPBIT_FUNCS): Add _unord_df.
13005         * config/fp-bit.c (_unord_f2): New.
13006         * fp-test.c (main): Try unordered compare builtins.
13007
13008         * alpha-protos.h (alpha_fp_comparison_operator): Declare.
13009         * alpha.c (alpha_comparison_operator): Check mode properly.
13010         (alpha_swapped_comparison_operator): Likewise.
13011         (signed_comparison_operator): Likewise.
13012         (alpha_fp_comparison_operator): New.
13013         (alpha_emit_conditional_branch): Handle unordered compares.
13014         * alpha.h (PREDICATE_CODES): Update.
13015         * alpha.md (fp compares): Use alpha_fp_comparison_operator.
13016         (bunordered, bordered): New.
13017
13018 2000-01-24  Richard Henderson  <rth@cygnus.com>
13019
13020         * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
13021         * alpha.md (movtf): New expander, insn, and splitter.
13022
13023 Mon Jan 24 19:49:47 MET 2000  Jan Hubicka  <jh@suse.cz>
13024
13025         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
13026         dead registers.
13027
13028 Mon Jan 24 17:37:31 MET 2000  Jan Hubicka  <jh@suse.cz>
13029
13030         * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
13031         (FIXED_REGISTERS, CALL_USED_REGISTERS,
13032          REG_ALLOC_ORDER): Add frame pointer
13033         (FRAME_POINTER_REGNUM): Set to 20
13034         (HARD_FRAME_POINTER_REGNUM): New macro.
13035         (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
13036         to HARD_FRAME_POINTER.
13037         (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
13038         (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
13039         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
13040         (HI_REGISTER_NAMES): Add "frame".
13041         (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
13042         (debug_reg): Handle FRAME_POINTER_REGNUM.
13043         (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
13044         GENERAL_REGS and INDEX_REGS.
13045         * i386.c (SAVED_REGS_FIRST): new macro.
13046         (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
13047         (ix86_decompose_address, memory_address_length): Likewise.
13048         (regclass_map): Add frame pointer.
13049         (call_insn_operand): Handle frame_pointer_rtx.
13050         (reg_no_sp_operand): Likewise.
13051         (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
13052         (print_operand, legitimize_pic_address): Fix formating.
13053         (ix86_compute_frame_size): Make static, update prototype, new
13054         parameters padding1, padding2, use ix86_nsaved_regs, use
13055         stack_alignment_needed.
13056         (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
13057         to HARD_FRAME_POINTER_REGNUM conversions.
13058         (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
13059         (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
13060         (print_reg): Abort on FRAME_POINTER_REGNUM
13061
13062 Mon Jan 24 16:50:08 MET 2000  Jan Hubicka  <jh@suse.cz>
13063
13064         * i386.h (PREDICATE_CODES): Add aligned_operand.
13065         * i386.c (aligned_operand): New function.
13066         (ix86_aligned_p): Kill.
13067         * i386.md (movhi_1): Emit mov for aligned operands.
13068         (promoting peep2s): Use aligned_operand.
13069
13070 2000-01-23  Zack Weinberg  <zack@wolery.cumb.org>
13071
13072         * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
13073         expression to allow underscores in macro names.
13074         (fix_char_macro_defines): Increment scanning pointer.
13075
13076 2000-01-23  Richard Henderson  <rth@cygnus.com>
13077
13078         * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
13079         * alpha/osf5.h: New file.
13080         * configure.in (alpha-*-osf5): Add it to tm_file.
13081
13082         * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
13083
13084         * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
13085         (alpha_emit_xfloating_cvt, function_arg): Declare.
13086         * alpha.c (alpha_emit_conditional_branch): Call
13087         alpha_emit_xfloating_compare for TFmode compares.
13088         (alpha_lookup_xfloating_lib_func): New.
13089         (alpha_compute_xfloating_mode_arg): New.
13090         (alpha_emit_xfloating_libcall): New.
13091         (alpha_emit_xfloating_arith): New.
13092         (alpha_emit_xfloating_compare): New.
13093         (alpha_emit_xfloating_cvt): New.
13094         (print_operand): Add default abort case.
13095         (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
13096         * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
13097         (BIGGEST_ALIGNMENT): Increase to 128 bits.
13098         (RETURN_IN_MEMORY): True for TF/TCmode.
13099         (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
13100         (FUNCTION_ARG): Move to function_arg.
13101         (FUNCTION_ARG_PASS_BY_REFERENCE): New.
13102         (ASM_OUTPUT_LONG_DOUBLE): New.
13103         (ASM_OUTPUT_DOUBLE): Always output bits.
13104         * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
13105         (fix_trunctfdi2, floatditf2, floatunsditf2): New.
13106         (extenddftf2, trunctfdf2): New.
13107
13108 2000-01-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13109
13110         * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
13111         * config/sparc/sol2.h: ... here.
13112
13113 2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13114
13115         * basic-block.h (struct loops): New field `levels'.
13116         * flow.c (flow_loops_level_compute): Traverse all outer loops.
13117         (flow_loop_level_compute): Initialise level to 1.
13118         (flow_loops_find): Set loops->levels.
13119         (flow_loops_dump): Print loops->levels.
13120
13121 2000-01-23  Richard Henderson  <rth@cygnus.com>
13122
13123         * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
13124         (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
13125
13126 2000-01-23  Richard Henderson  <rth@cygnus.com>
13127
13128         * i386.c (dbx_register_map, svr4_dbx_register_map): New.
13129         * i386.h (DBX_REGISTER_NUMBER): Use them.
13130         * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
13131         * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
13132         * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
13133         * i386/sequent.h: Kill incorrect comment.
13134
13135 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
13136
13137         * ggc-page.c (struct page_entry): Make `context_depth' an
13138         `unsigned short'.
13139         (struct globals): Likewise.
13140
13141 2000-01-23  Clinton Popetz  <cpopetz@cygnus.com>
13142
13143         * loop.c (check_dbra_loop): When checking a loop for
13144         reversability, check the source of any stores to ensure
13145         they don't depend on an initial value.
13146
13147 2000-01-23  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13148
13149         * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
13150
13151 2000-01-22  Zack Weinberg  <zack@wolery.cumb.org>
13152
13153         * fixinc/fixincl.c: Move declarations of 'pz_fname' and
13154         'pz_scan' into scope of entire function.  Only affects
13155         compiles with -DDEBUG.
13156
13157 2000-01-22  Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
13158
13159         * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
13160         section naming to that prior to 2000-01-07 patch.
13161         * config/mips/elf.h (UNIQUE_SECTION): Ditto.
13162         * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
13163         * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
13164         * config/i386/interix.c (UNIQUE_SECTION): Ditto.
13165         * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
13166
13167 2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
13168
13169         * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
13170         constant.
13171
13172 2000-01-21  Jim Wilson  <wilson@cygnus.com>
13173
13174         * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
13175         * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
13176
13177 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
13178
13179         * cpphash.c (change_newlines): Delete function.
13180         (struct argdata): Delete 'newlines' and 'use_count' fields.
13181         (macroexpand): Remove code referencing those fields.
13182
13183 2000-01-22  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13184
13185         * loop.c (loops_info): New variable.
13186         (loop_optimize): Allocate loops->array and free it on exit.
13187         Allocate memory for loops_info and assign to each loop,
13188         replacing alloca.
13189         (find_and_verify_loops): Do not allocate loops->array.
13190
13191 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
13192
13193         * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
13194
13195 2000-01-21  Jakub Jelinek  <jakub@redhat.com>
13196
13197         * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
13198         pseudos if expanded after first flow.
13199         (movdi_pic_label_ref): Likewise.
13200
13201 2000-01-20  Richard Henderson  <rth@cygnus.com>
13202
13203         * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
13204
13205 2000-01-20  Zack Weinberg  <zack@wolery.cumb.org>
13206
13207         * Makefile.in (fixinc.sh): Depend on specs.
13208         * fixinc/Makefile.in: Add rule to create machname.h.
13209         (fixlib.o): Depend on machname.h.
13210         * fixinc/fixtests.c (machine_name): New test.
13211         * fixinc/fixfixes.c (machine_name): New fix.
13212         * fixinc/fixlib.c (mn_get_regexps): New helper function for
13213         the machine_name test and fix.
13214         * fixinc/fixlib.h: Prototype it.
13215         * fixinc/inclhack.def (machine_name): Use the C test and fix.
13216         * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
13217
13218         * gcc.c (do_spec_1) [case P]: Take care not to create
13219         identifiers with three leading or trailing underscores.
13220
13221         * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
13222         (fixincl): Don't specify libraries twice on link line.
13223         (gnu-regex.o): Remove special rule.
13224         * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
13225         defined by config.h.  Do not define _REGEX_RE_COMP.
13226         (regcomp): Allocate and initialize a fastmap.
13227         * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
13228
13229 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
13230
13231         * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
13232
13233 2000-01-19  Richard Henderson  <rth@cygnus.com>
13234
13235         * flow.c (propagate_block): Replace FIRST, LAST and BNUM
13236         arguments with BB.  Update all callers.  Tidy line wrapping.
13237
13238 2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
13239
13240         * emit-rtl.c (try_split): Return last_insn if we split the
13241         last_insn.
13242
13243 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
13244
13245         * i386-protos.h (ix86_compute_frame_size): Remove prototype.
13246         (ix86_initial_elimination_offset): Declare.
13247         * i386.c (ix86_nsaved_regs): Break out from ...
13248         (ix86_can_use_return_insn_p): ... here.
13249         (ix86_emit_save_regs): Break out from ...
13250         (ix86_expand_prologue): ... here.
13251         (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
13252         out from ...
13253         (ix86_expand_epilogue): ... here.
13254         (ix86_compute_frame_size): Make static, add prototype.
13255         (ix86_initial_elimination_offset): Break out from ...
13256         * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
13257
13258 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13259
13260         * recog.h (OUT_FCN): Delete.
13261
13262         * vax.md: Call `get_insn_template' instead of OUT_FCN.
13263
13264 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13265
13266         * cppalloc.c: PROTO -> PARAMS.
13267         * cpperror.c: Likewise.
13268         * cppfiles.c: Likewise.
13269         * cpplib.c: Likewise.
13270         * cpplib.h: Likewise.
13271
13272         * config/arm/arm-protos.h: PROTO -> PARAMS.
13273         * config/arm/arm.c: Likewise.
13274         * config/c4x/c4x.c: Likewise.
13275         * config/fr30/fr30-protos.h: Likewise.
13276         * config/nextstep.c: Likewise.
13277         * config/pa/pa.c: Likewise.
13278         * config/pj/pj.c: Likewise.
13279         * config/rs6000/rs6000.c: Likewise.
13280         * config/v850/v850-protos.h: Likewise.
13281         * config/v850/v850.c: Likewise.
13282
13283 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13284
13285         * i370-protos.h: New file.
13286
13287         * i370.c: Include tm_p.h.  Fix compile time warnings.
13288
13289         * i370.h: Move prototypes to i370-protos.h.  Fix compile time
13290         warnings.
13291
13292         * i370.md: Likewise.
13293
13294 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13295
13296         * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13297         (target_isinf, target_isnan, eisnan): Mark parameter with
13298         ATTRIBUTE_UNUSED.
13299         (eiisinf): Wrap in INFINITY.
13300         (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13301         (ibmtoe): Remove unused variable `rndsav'.
13302
13303 Wed Jan 19 20:23:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13304
13305         * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13306         (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13307
13308 2000-01-19  Zack Weinberg  <zack@wolery.cumb.org>
13309
13310         * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13311         * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13312         (fix_char_macro_defines, fix_char_macro_uses): New functions.
13313
13314         * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13315         Recognize Emacs mode markers also.
13316         * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13317         C++ comments in C++ headers.  Call is_cxx_header only if
13318         necessary.
13319
13320         * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13321         bypass for ncurses.
13322         (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13323         (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13324         ... these, which use the new C fixes.
13325         (math_exception): Escape literal '+' in bypass expression.
13326
13327         * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13328         Regenerate.
13329
13330 2000-01-19  Geoff Keating  <geoffk@cygnus.com>
13331
13332         * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13333         inside the MEM.
13334
13335 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13336
13337         * loop.c (loop_optimize): Allocate loop_info structure for each loop
13338         prior to calling scan_loop.
13339
13340 Wed Jan 19 19:54:38 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13341
13342         * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13343         (split_branches, calc_live_regs): Likewise.
13344
13345 Wed Jan 19 19:12:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13346
13347         * sh.md (fpu_single, fp_mode): New attributes.
13348
13349 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13350
13351         * loop.c (current_loop_info): Renamed from loop_info_data
13352         and changed to a pointer.
13353         (loop_optimize): Allocate loop_info structure for each loop
13354         and initialise to zero.
13355         (scan_loop): Set current_loop_info.
13356
13357         * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13358         on iteration_var.
13359
13360 2000-01-19  Richard Henderson  <rth@cygnus.com>
13361
13362         * stupid.c: Die die die.
13363         * Makefile.in (OBJS): Remove stupid.o.
13364         (stupid.o): Likewise.
13365
13366         * except.c (emit_eh_context): Don't emit USEs for stupid.
13367         * explow.c (probe_stack_range): Likewise.
13368         * flags.h (obey_regdecls): Remove.
13369         * flow.c (find_basic_blocks): Don't run try_merge_blocks
13370         when not optimizing.
13371         (life_analysis): Limit data collection when not optimizing.
13372         (mark_regs_live_at_end): Always mark the return value registers.
13373         (mark_used_regs): Remove dummy RETURN case.
13374         (print_rtl_with_bb): Don't consult obey_regdecls.
13375         * function.c (use_variable, use_variable_after): Remove.
13376         (assign_parms): Consult optimize not obey_regdecls.
13377         (expand_function_start): Don't emit USEs for stupid.
13378         (expand_function_end): Likewise.
13379         * global.c (build_insn_chain): Export.
13380         * integrate.c (expand_inline_function): Kill return-value USE
13381         handling code.
13382         * jump.c (jump_optimize_1): Do simple jump optimizations and
13383         dead code elimination.
13384         (calculate_can_reach_end): Remove check_deleted argument.
13385         (delete_insn): Patch out insns even when not optimizing.
13386         * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13387         * rtl.h (use_variable, use_variable_after): Remove declarations.
13388         (build_insn_chain): Declare.
13389         * stmt.c (expand_value_return): Don't emit USEs for stupid.
13390         (expand_end_bindings): Likewise.
13391         (expand_decl): Likewise.  Consult optimize not obey_regdecls.
13392         * toplev.c (obey_regdecls): Remove.
13393         (rest_of_compilation): Don't set it.  Kill stupid in favour of
13394         flow1, local-alloc, and reload.
13395         (main): Don't set obey_regdecls.
13396
13397         * config/nextstep.c (handle_pragma): Likewise.
13398
13399         * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13400
13401         * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13402
13403 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13404
13405         * alpha-protos.h: PROTO -> PARAMS.
13406         * alpha.c: Likewise.
13407         * elf.h: Likewise.
13408         * h8300.c: Likewise.
13409         * i386-protos.h: Likewise.
13410         * i386.c: Likewise.
13411         * m32r-protos.h: Likewise.
13412         * m32r.c: Likewise.
13413         * mips.c: Likewise.
13414         * mips.md: Likewise.
13415         * gmon-sol2.c: Likewise.
13416         * sparc.c: Likewise.
13417
13418 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13419
13420         * ns32k-protos.h: New file.
13421
13422         * ns32k.c: Fix compile time warnings.
13423
13424         * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
13425         warnings.
13426
13427         * ns32k.md: Likewise.
13428
13429 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13430
13431         * vax-protos.h: New file.
13432
13433         * vax.c: Fix compile time warnings.
13434
13435         * vax.h: Move prototypes to vax-protos.h.  Fix compile time
13436         warnings.
13437
13438         * vax.md: Likewise.
13439
13440         * vaxv.md: Likewise.
13441
13442 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13443
13444         * romp-protos.h: New file.
13445
13446         * romp.c: Fix compile time warnings.
13447
13448         * romp.h: Move prototypes to romp-protos.h.  Fix compile time
13449         warnings.
13450
13451         * romp.md: Likewise.
13452
13453 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13454
13455         * we32k-protos.h: New file.
13456
13457         * we32k.c: Fix compile time warnings.
13458
13459         * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
13460         warnings.
13461
13462 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13463
13464         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13465
13466         * except.c (eh_regs): Likewise.
13467
13468         * final.c (output_operand): Likewise.
13469
13470         * fold-const.c (target_isinf, target_isnan): Likewise.
13471
13472 Tue Jan 18 16:19:55 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
13473
13474         * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13475         (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13476
13477         * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13478         when optimize_size.
13479         (clrstrsi): Rewrite.
13480         (strsethi, strsetqi): New expanders.
13481         (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13482         (cmpstrsi): Emit compare insn before cmpstrsi_1
13483         (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13484         (strlensi_1): Likewise.
13485         (cmpstrsi_1): Likewise; do not output compare.
13486         (strlen expander): Do not unroll when optimizing for size.
13487         (*subsi3_carry): Rename to subsi3_carry
13488         (addqi3_cc): New pattern.
13489         * i386.h (processor_costs): Add move_ratio field.
13490         (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13491         * i386.c (*_cost): Set move_ratio.
13492         (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13493         (x86_expand_strlensi_1): Rewrite the main loop.
13494
13495 2000-01-17  Richard Henderson  <rth@cygnus.com>
13496
13497         * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13498         * cse.c (find_comparison_args, fold_rtx): Likewise.
13499         * integrate.c (subst_constants): Likewise.
13500         * loop.c (get_condition): Likewise.
13501
13502         * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13503
13504         * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13505
13506 2000-01-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
13507
13508         * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13509         (RESTORE_WARN_FLAGS): Unpack it.
13510         Change semantic type of extension to ttype.
13511         * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13512         * c-parse.y, c-parse.c, objc/objc-parse.y,
13513         objc/objc-parse.c: Regenerate.
13514
13515 2000-01-17  Zack Weinberg  <zack@wolery.cumb.org>
13516
13517         * fixinc/fixlib.c: Add copyright notice.
13518         (compile_re): New function.
13519         * fixinc/fixlib.h: Prototype compile_re.
13520
13521         * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13522         Use compile_re to compile regular expressions.
13523
13524         * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13525         where the pattern matched.
13526
13527         * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13528         use 'replace'.
13529         (ultrix_ansi_compat): Likewise.
13530         (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13531         add egrep test.
13532         (interactv_add2, interactv_add3): Delete.
13533         (x11_sprintf): Don't use filename glob.
13534         * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13535         Regenerate.
13536
13537 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13538
13539         * print-rtl.c: PROTO -> PARAMS.
13540         * real.c: Likewise.
13541         * reg-stack.c: Likewise.
13542         * resource.c: Likewise.
13543         * sdbout.h: Likewise.
13544         * simplify-rtx.c: Likewise.
13545         * stor-layout.c: Likewise.
13546         * stupid.c: Likewise.
13547         * xcoffout.c: Likewise.
13548         * xcoffout.h: Likewise.
13549
13550 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13551
13552         * toplev.c: PROTO -> PARAMS.
13553         * toplev.h: Likewise.
13554         * tree.c: Likewise.
13555         * tree.h: Likewise.
13556         * unroll.c: Likewise.
13557         * varasm.c: Likewise.
13558         * varray.c: Likewise.
13559         * varray.h: Likewise.
13560
13561 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13562
13563         * reload.c: PROTO -> PARAMS.
13564         * reload.h: Likewise.
13565         * reload1.c: Likewise.
13566         * reorg.c: Likewise.
13567         * resource.h: Likewise.
13568         * rtl.c: Likewise.
13569         * rtl.h: Likewise.
13570         * rtlanal.c: Likewise.
13571         * sbitmap.h: Likewise.
13572         * sdbout.c: Likewise.
13573         * stack.h: Likewise.
13574         * stmt.c: Likewise.
13575         * system.h: Likewise.
13576
13577 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13578
13579         * machmode.h: PROTO -> PARAMS.
13580         * mbchar.h: Likewise.
13581         * mips-tdump.c: Likewise.
13582         * mips-tfile.c: Likewise.
13583         * optabs.c: Likewise.
13584         * output.h: Likewise.
13585         * prefix.c: Likewise.
13586         * profile.c: Likewise.
13587         * protoize.c: Likewise.
13588         * real.h: Likewise.
13589         * recog.c: Likewise.
13590         * recog.h: Likewise.
13591         * regclass.c: Likewise.
13592         * regmove.c: Likewise.
13593         * regs.h: Likewise.
13594
13595 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13596
13597         * ggc-common.c: PROTO -> PARAMS.
13598         * ggc-page.c: Likewise.
13599         * ggc-simple.c: Likewise.
13600         * ggc.h: Likewise.
13601         * global.c: Likewise.
13602         * graph.c: Likewise.
13603         * gthr-win32.h: Likewise.
13604         * haifa-sched.c: Likewise.
13605         * halfpic.h: Likewise.
13606         * integrate.c: Likewise.
13607         * integrate.h: Likewise.
13608         * jump.c: Likewise.
13609         * lcm.c: Likewise.
13610         * local-alloc.c: Likewise.
13611         * loop.c: Likewise.
13612         * loop.h: Likewise.
13613
13614 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13615
13616         * genattr.c: PROTO -> PARAMS.
13617         * genattrtab.c: Likewise.
13618         * gencheck.c: Likewise.
13619         * gencodes.c: Likewise.
13620         * genconfig.c: Likewise.
13621         * genemit.c: Likewise.
13622         * genextract.c: Likewise.
13623         * genflags.c: Likewise.
13624         * gengenrtl.c: Likewise.
13625         * genopinit.c: Likewise.
13626         * genoutput.c: Likewise.
13627         * genpeep.c: Likewise.
13628         * genrecog.c: Likewise.
13629
13630 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
13631
13632         * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13633
13634 2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13635
13636         * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13637         * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13638         * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13639         * configure, config.in: Rebuilt.
13640
13641 2000-01-16  Zack Weinberg  <zack@wolery.cumb.org>
13642
13643         * config/i386/i386.md: Add peephole to merge successive stack
13644         adjusts.
13645
13646 Sat Jan 15 15:41:14 EST 2000  John Wehle  (john@feith.com)
13647
13648         * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13649         instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
13650         when walking backwards to find all the parameter loads when
13651         the basic block ends in a call.
13652
13653 2000-01-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13654
13655         * loop.c (this_loop_info): Delete.
13656         (uid_loop): Add in place of uid_loop_num.  All uses updated.
13657         (loop_number_exit_count): Delete and replace with entry in loop
13658         structure.  All uses updated.
13659         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13660         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13661         (loop_outer_loop): Likewise.
13662         (loop_invalid, loop_number_exit_labels): Likewise.
13663         (loop_used_count_register): Delete and replace with entry in
13664         loop_info structure.
13665         (find_and_verify_loops): Add loops argument.
13666         (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13667         loop_end, etc. arguments with loop structure pointer.  All callers
13668         changed.
13669         (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13670         (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13671         (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13672         (insert_bct): Likewise.
13673         (basic_induction_var): New argument level.
13674         * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13675         vtop, and cont.  Add used_count_register.
13676         (uid_loop): Delete declaration.
13677         (loop_number_exit_count): Likewise.
13678         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13679         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13680         (loop_outer_loop, loop_used_count_register): Likewise.
13681         (loop_invalid, loop_number_exit_labels): Likewise.
13682         (unroll_loop): Replace loop_start and loop_end arguments
13683         with loop structure pointer.
13684         (loop_precondition_p, loop_iterations): Likewise.
13685         Include basic-block.h.
13686         * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13687         with loop structure pointer.
13688         (loop_precondition_p, loop_iterations): Likewise.
13689         * basic-block.h (struct loop): New entries vtop, cont,
13690         cont_dominator, start, end, top, scan_start, exit_labels,
13691         exit_count.
13692         * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13693
13694 2000-01-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13695
13696         * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13697
13698 2000-01-14  Nathan Sidwell  <sidwell@codesourcery.com>
13699
13700         * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13701
13702 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13703
13704         * pdp11-protos.h: New file.
13705
13706         * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
13707         time warnings.
13708
13709         * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
13710         warnings.
13711
13712         * pdp11.md: Likewise.
13713
13714         * 2bsd.h: Likewise.
13715
13716 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13717
13718         * mn10300-protos.h: New file.
13719
13720         * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
13721         time warnings.
13722
13723         * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
13724         warnings.
13725
13726         * mn10300.md: Likewise.
13727
13728 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13729
13730         * mn10200-protos.h: New file.
13731
13732         * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
13733         time warnings.
13734
13735         * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
13736         warnings.
13737
13738         * mn10200.md: Likewise.
13739
13740 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13741
13742         * h8300-protos.h: New file.
13743
13744         * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
13745         time warnings.
13746
13747         * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
13748         warnings.
13749
13750         * h8300.md: Likewise.
13751
13752 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13753
13754         * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13755         (asm_emit_uninitialised): Likewise.
13756
13757 2000-01-13  Gavin Romig-Koch  <gavin@cygnus.com>
13758
13759         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13760         * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13761
13762 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13763
13764         * config/mips/mips.c (override_options): Don't turn on extra
13765         alignment for mips16.
13766
13767 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13768
13769         * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13770         eabi, and make sure queued POSTINCREMENT rtl is emitted at
13771         the right point.
13772
13773 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13774
13775         * builtins.c (PAD_VARARGS_DOWN): Define.
13776         (std_expand_builtin_va_arg): Use the above macro.
13777         * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13778         * tm.texi (Register Arguments): Document the above macro.
13779
13780 2000-01-14  Nick Clifton  <nickc@cygnus.com>
13781
13782         * emit-rtl.c (emit_insn): If checking is enabled, make sure
13783         that this function has not been used to emit a jump
13784         instruction.
13785
13786         * jump.c (return_jump_1): Cope with being passed a null rtx.
13787
13788 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13789
13790         * eh-common.h: PROTO -> PARAMS.
13791         * emit-rtl.c: Likewise.
13792         * errors.c: Likewise.
13793         * errors.h: Likewise.
13794         * except.c: Likewise.
13795         * except.h: Likewise.
13796         * explow.c: Likewise.
13797         * expmed.c: Likewise.
13798         * expr.c: Likewise.
13799         * expr.h: Likewise.
13800         * final.c: Likewise.
13801         * fix-header.c: Likewise.
13802         * flow.c: Likewise.
13803         * fold-const.c: Likewise.
13804         * function.c: Likewise.
13805         * function.h: Likewise.
13806         * gcc.c: Likewise.
13807         * gcov-io.h: Likewise.
13808         * gcov.c: Likewise.
13809         * gcse.c: Likewise.
13810
13811 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13812
13813         * sh-protos.h: New file.
13814
13815         * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
13816         Add static prototypes.  Fix compile time warnings.
13817
13818         * sh.h: Move prototypes to sh-protos.h.  Fix compile time warnings.
13819         * sh.md: Likewise.
13820         * elf.h: Likewise.
13821
13822 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13823
13824         * arc-protos.h: New file.
13825
13826         * arc.c: Include tm_p.h.  Add static prototypes.  Fix compile
13827         time warnings.
13828
13829         * arc.h: Move prototypes to arc-protos.h.  Fix compile time
13830         warnings.
13831
13832         * arc.md: Likewise.
13833
13834 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13835
13836         * dsp16xx-protos.h: New file.
13837
13838         * dsp16xx.c: Include tm_p.h.  Add static prototypes.  Fix compile
13839         time warnings.
13840
13841         * dsp16xx.h: Move prototypes to dsp16xx-protos.h.  Fix compile time
13842         warnings.
13843
13844         * dsp16xx.md: Likewise.
13845
13846 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13847
13848         * convex-protos.h: New file.
13849
13850         * convex.c: Include tm_p.h.  Add static prototypes.  Fix compile
13851         time warnings.
13852
13853         * convex.h: Move prototypes to convex-protos.h.  Fix compile time
13854         warnings.
13855
13856 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13857
13858         * elxsi-protos.h: New file.
13859
13860         * elxsi.c: Include tm_p.h.  Add static prototypes.  Fix compile
13861         time warnings.
13862
13863         * elxsi.h: Move prototypes to elxsi-protos.h.  Fix compile time
13864         warnings.
13865
13866         * elxsi.md: Likewise.
13867
13868 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13869
13870         * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
13871         case for moving from HI/LO/HI_LO_REG.  This makes the behavior
13872         match the comment for MIPS16.
13873
13874 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
13875
13876         * flow.c (split_edge): Do not call set_block_for_insn if we
13877         do not have a basic_block_for_insn structure.
13878
13879         * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
13880         and destination functions are 32bit aligned within the trampoline.
13881         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
13882         (TRAMPOLINE_ALIGNMENT): Define.
13883
13884         * cse.c (cse_insn): When changing (set (pc) (reg)) to
13885         (set (pc) (label_ref)), verify the change creates a valid insn.
13886
13887         * fr30.c (call_operand): Tighten and rework to match rules for
13888         call RTL expressions.
13889         * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
13890         * fr30.md (call patterns): Improve constraints.
13891
13892 Thu Jan 13 23:44:03 2000  Richard Henderson  <rth@cygnus.com>
13893
13894         * fr30.c (fr30_expand_epilogue): Revert last change.
13895         Use emit_jump_insn for the return insn.
13896
13897 Thu Jan 13 14:46:03 2000  Jason Eckhardt  <jle@cygnus.com>
13898                           Stan Cox  <scox@cygnus.com>
13899
13900         * predict.c: New file. Preliminary infrastructure work for static
13901         branch prediction and basic block reordering.
13902         * basic-block.h: Add prototype for estimate_probability.
13903         * Makefile.in: Add rules for predict.o.
13904
13905 2000-01-13  Jason Merrill  <jason@yorick.cygnus.com>
13906
13907         * fixincludes (va_list): Use __not_va_list__ for the dummy.
13908         * fixinc/*: Likewise.
13909
13910 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13911
13912         * cccp.c: PROTO -> PARAMS.
13913         * cexp.y: Likewise.
13914         * collect2.c: Likewise.
13915         * combine.c: Likewise.
13916         * convert.h: Likewise.
13917         * cse.c: Likewise.
13918         * dbxout.c: Likewise.
13919         * dbxout.h: Likewise.
13920         * diagnostic.c: Likewise.
13921         * doprint.c: Likewise.
13922         * dwarf2out.c: Likewise.
13923         * dwarf2out.h: Likewise.
13924         * dwarfout.c: Likewise.
13925         * dwarfout.h: Likewise.
13926         * dyn-string.h: Likewise.
13927
13928 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13929
13930         * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
13931         macro conditionals guarding use.
13932
13933         * dwarf2out.c: Include "tm_p.h".
13934
13935         * function.c (locate_and_pad_parm): Mark parameter with
13936         ATTRIBUTE_UNUSED.
13937         (expand_function_end): Likewise for variable `context'.
13938
13939         * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
13940
13941 2000-01-13  Nick Clifton  <nickc@cygnus.com>
13942
13943         * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
13944         register to prevent compile time warnings.
13945
13946 2000-01-13  Zack Weinberg  <zack@wolery.cumb.org>
13947
13948         * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
13949         to avoid -Wtraditional warning.
13950
13951 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13952
13953         * 1750a-protos.h: New file.
13954
13955         * 1750a.c: Include tm_p.h.  Add static prototypes.  Fix compile
13956         time warnings.
13957
13958         * 1750a.h: Move prototypes to 1750a-protos.h.  Fix compile time
13959         warnings.
13960
13961         * 1750a.md: Likewise.
13962
13963 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13964
13965         * a29k-protos.h: New file.
13966
13967         * a29k.c: Include tm_p.h.  Add static prototypes.  Fix compile
13968         time warnings.
13969
13970         * a29k.h: Move prototypes to a29k-protos.h.  Fix compile time
13971         warnings.
13972
13973 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13974
13975         * clipper-protos.h: New file.
13976
13977         * clipper.c: Include tm_p.h.  Add static prototypes.  Fix compile
13978         time warnings.
13979
13980         * clipper.h: Move prototypes to clipper-protos.h.  Fix compile time
13981         warnings.
13982
13983 Thu Jan 13 16:03:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13984
13985         * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
13986
13987 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
13988
13989         * configure.in (--enable-new-gxx-abi): New option.
13990         * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
13991         * Makefile.in (GXX_ABI_FLAG): New variable.
13992         * configure: Regenerate.
13993
13994 2000-01-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13995
13996         * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
13997         * tm.texi (FORCE_STRUCT_BLK): Document.
13998         * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
13999
14000 Wed Jan 12 23:12:47 2000  Hans-Peter Nilsson  <hp@axis.com>
14001
14002         * config/ns32k/ns32k.md: Revert Jan 9 change.
14003
14004         * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
14005         to a mode-test, if the predicate is address_operand.
14006
14007 Wed Jan 12 22:34:00 2000  Jeffrey A Law  (law@cygnus.com)
14008
14009         * combine.c (if_then_else_cond): Be careful about what kinds
14010         of RTL expressions are passed to operand_subword.
14011
14012         * flow.c (split_edge): If we have to insert a new jump, make
14013         sure to associate it with a basic block.
14014
14015         * flow.c (commit_one_edge_insertion): A block with one successor
14016         can end in a JUMP_INSN that is not a simplejump.
14017
14018 2000-01-12  Robert Lipe  <robertl@sco.com>
14019
14020         * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
14021         (BUILD_VA_LIST_TYPE): Define.
14022         (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
14023         with crtstuff.c.
14024
14025 2000-01-12  Jason Merrill  <jason@casey.cygnus.com>
14026
14027         * cccp.c (do_pragma): Add cast to (char *).
14028
14029 2000-01-12  Richard Henderson  <rth@cygnus.com>
14030             Fred Fish  <fnf@be.com>
14031             Jason Merrill  <jason@cygnus.com>
14032
14033         * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
14034         * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
14035         * i386/beos-elf.h, i386/beos-pe.h: New files.
14036
14037         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
14038         * cross-make (SYSTEM_HEADER_DIR): Define using
14039         CROSS_SYSTEM_HEADER_DIR.
14040
14041         * gcc.c (LIBRARY_PATH_ENV): Provide default.
14042         (process_command): Use it.
14043         (main): Likewise.  Kill trailing = from env vars.
14044         (build_search_list): Put it back.
14045         * collect2.c (main): Use LIBRARY_PATH_ENV.
14046
14047         * configure.in (GCC_NEED_DECLARATIONS): Add environ.
14048         * toplev.c: Use NEED_DECLARATION_ENVIRON.
14049
14050         * tm.texi (Frame Layout): Document SMALL_STACK.
14051         * c-common.c (c_common_nodes_and_builtins): Check it.
14052
14053         * system.h: Undef alloca after including glibc's <stdlib.h>,
14054         if USE_C_ALLOCA is defined.
14055
14056         * gcc.c (set_input): New fn.
14057         (main): After all input files are compiled, reset the input file
14058         info to the first.
14059
14060         * aclocal.m4 (rindex, index): If already defined, don't attempt
14061         to redefine.
14062
14063         * ginclude/varargs.h: (__va_list__): Define ifndef.
14064         * ginclude/stdarg.h: Likewise.
14065
14066         * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
14067         instead of unsigned char.
14068
14069         * hash.h (true, false, boolean): Undef before enum.
14070
14071         * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
14072         proper type of "HOST_WIDE_INT *", rather than their natural type of
14073         "unsigned HOST_WIDE_INT *".
14074
14075 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14076
14077         * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
14078
14079         * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
14080
14081         * regclass.c (choose_hard_reg_mode): Likewise.
14082
14083         * reload.c (find_valid_class, strict_memory_address_p): Likewise.
14084
14085         * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
14086
14087 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14088
14089         * c-common.c: PROTO -> PARAMS.
14090         * c-common.h: Likewise.
14091         * c-decl.c: Likewise.
14092         * c-iterate.c: Likewise.
14093         * c-lang.c: Likewise.
14094         * c-lex.c: Likewise.
14095         * c-lex.h: Likewise.
14096         * c-parse.in: Likewise.
14097         * c-pragma.c: Likewise.
14098         * c-pragma.h: Likewise.
14099         * c-tree.h: Likewise.
14100         * c-typeck.c: Likewise.
14101         * objc/objc-act.c: Likewise.
14102         * objc/objc-act.h: Likewise.
14103
14104 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14105
14106         * m88k-protos.h: New file.
14107
14108         * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
14109         time warnings.
14110
14111         * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.
14112
14113         * m88k.md: Likewise.
14114
14115         * tekXD88.h: Likewise.
14116
14117 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14118
14119         * m68k-protos.h: New file.
14120
14121         * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
14122         time warnings.
14123
14124         * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.
14125
14126         * mot3300.h: Likewise.
14127
14128 2000-01-12  Richard Earnshaw <rearnsha@arm.com>
14129
14130         * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
14131         extract_bitlst.
14132         (extract_bitlist): Declare bitlen.
14133
14134 2000-01-12  Zack Weinberg  <zack@wolery.cumb.org
14135
14136         * cccp.c: Accept and ignore -lang-fortran.
14137
14138         * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
14139         qualifiers don't match at any level of pointerness.
14140
14141 2000-01-12  Robert Lipe  <robertl@sco.com>
14142
14143         * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
14144
14145 2000-01-12  Bernd Schmidt  <bernds@cygnus.co.uk>
14146
14147         * reload1.c (reload_reg_unavailable): New static variable.
14148         (reload_reg_free_p): Test it.
14149         (reload_reg_free_for_value_p): Test it instead of
14150         reload_reg_used.
14151         (choose_reload_regs_init): Compute it.
14152
14153 Wed Jan 12 03:24:41 2000  Toshiyasu Morita (toshi.morita@sega.com)
14154
14155         * reorg.c (fill_slots_from_thread): Check modified_in_p
14156         before replacing.
14157
14158 Wed Jan 12 03:20:31 2000  John Marshall <john_w_marshall@palm.com>
14159
14160         * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
14161         these nodes even if INTERNALS is not set.
14162
14163 Wed Jan 12 09:39:22 2000  Nick Burrett  <nick.burrett@btinternet.com>
14164
14165         * gcse.c (delete_null_pointer_checks_1): Cope when
14166         get_condition cannot determine the condition.
14167
14168 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
14169
14170         * toplev.h (set_message_length): Declare.
14171
14172         * diagnostic.c (obstack_chunk_alloc): Define macro.
14173         (obstack_chunk_free): Likewise.
14174         (struct output_buffer): New data structure.
14175         (vmessage): Remove.
14176         (output_maximum_width): New variable.
14177         (doing_line_wrapping, set_message_length, init_output_buffer,
14178         get_output_prefix, output_space_left, emit_output_prefix,
14179         output_newline, output_append, output_puts, dump_output,
14180         vbuild_message_string, build_message_string, build_location_prefix,
14181         voutput_notice, output_printf, line_wrapper_printf,
14182         vline_wrapper_message_with_location):  New functions. Implement
14183         automatic line wrapping.
14184         (v_message_with_decl): Make it handle automatic line wrapping.
14185         (v_error_with_file_and_line): Likewise.
14186         (v_warning_with_file_and_line): Likewise.
14187         (announce_function): Likewise.
14188         (default_print_error_function): Likewise.
14189
14190 2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>
14191
14192         * cpplib.h (struct cpp_options): Change lang_asm to char.
14193         Add lang_fortran.
14194         * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
14195         done in cpp_handle_option now.
14196         (initialize_builtins): Take out special case code used only by
14197         __STDC_VERSION__.
14198         (cpp_handle_option): Turn off trigraphs and trigraph warnings
14199         if -traditional.  Recognize -lang-fortran and set
14200         lang_fortran, also turn off cplusplus_comments.
14201         (print_help): Document -lang-fortran.
14202         * cpplib.c (handle_directive): Ignore `# 123 "file"' if
14203         lang_asm. Ignore all directives other than `# 123 "file"' if
14204         CPP_PREPROCESSED.
14205         (cpp_get_token): If -traditional, don't recognize directives
14206         unless the # is in column 1.
14207         (parse_string): If lang_fortran or lang_asm, silently
14208         terminate strings ('' or "") at end of line.
14209         Remove unnecessary braces.
14210
14211 2000-01-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14212             Richard Henderson  <rth@cygnus.com>
14213
14214         * resource.c (mark_referenced_resources): Mark a set strict_low_part
14215         as used.
14216         * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
14217         strict_low_part when possible.
14218
14219 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14220
14221         * alias.c: PROTO -> PARAMS.
14222         * basic-block.h: Likewise.
14223         * bitmap.c: Likewise.
14224         * bitmap.h: Likewise.
14225         * builtins.c: Likewise.
14226         * c-aux-info.c: Likewise.
14227         * caller-save.c: Likewise.
14228         * calls.c: Likewise.
14229
14230 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14231
14232         * Makefile.in (toplev.o): Depend on regs.h.
14233
14234         * output.h (tdesc_section): Prototype.
14235
14236         * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
14237
14238         * sdbout.c: Include "tm_p.h".
14239
14240         * toplev.c: Include "regs.h".
14241
14242 Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
14243
14244         * unroll.c (unroll_loop): Add EH support.
14245
14246 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14247
14248         * pa-protos.h: New file.
14249
14250         * pa.c: Include recog.h and tm_p.h.
14251         (compute_zdepwi_operands, compute_movstrsi_length,
14252         remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
14253         find_addr_reg, import_milli): Add static prototypes.
14254         (pa_cpu_string, pa_arch_string): Constify a char*.
14255         (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
14256         (read_only_operand): Add argument `mode'.
14257         (singlemove_string, output_move_double, output_fp_move_double,
14258         output_block_move, output_and, output_ior, output_ascii,
14259         remove_useless_addtr_insns, milli_names, output_mul_insn,
14260         output_div_insn, output_mod_insn, output_arg_descriptor,
14261         output_cbranch, output_bb, output_bvb, output_dbra, ,
14262         output_millicode_call, output_call, hppa_encode_label,
14263         output_parallel_movb, output_parallel_addb): Constify a char*.
14264         (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
14265         (output_parallel_addb): Remove extra arg to `constrain_operands'
14266
14267         * pa.h:  Move all prototypes to pa-protos.h.
14268         (pa_cpu_string, pa_arch_string): Constify a char*.
14269         (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
14270
14271         * pa.md: Call `function_label_operand' with mode argument.
14272         Likewise for `read_only_operand'.
14273         Fix nesting of parens in call to `symbolic_operand'.
14274
14275 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14276
14277         * i860-protos.h: New file.
14278
14279         * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
14280         time warnings.
14281
14282         * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.
14283
14284         * i860.md: Likewise.
14285
14286 Tue Jan 11 18:59:35 MET 2000  Jan Hubicka <jh@suse.cz>
14287
14288         * i386.md (movstrsi expander): Rewrite.
14289         (movstrsi_1 insn): Deleted.
14290         (strmovhi, strmovqi expander): New expanders.
14291         (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14292         * i386.c (x86_single_stringop): New global variable.
14293         * i386.h (x86_single_stringop): Declare.
14294         (TARGET_SINGLE_STRINGOP): New macro.
14295
14296 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
14297
14298         * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14299         integer vararg POSTINCREMENT before the destination of the jump
14300         for the hard fp case.
14301         (function_arg_pass_by_reference): Pass a copy of CUM to
14302         FUNCTION_ARG.
14303
14304         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14305         for CONSTANT_ADDRESS_P above while loop for subreg.
14306
14307 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
14308
14309         * flow.c (propagate_block): When a prologue/epilogue insn
14310         is marked dead, unconditionally clear libcall_is_dead and
14311         insn_is_dead, and only dump rtl if warnings aren't being
14312         suppressed.
14313
14314 Tue Jan 11 16:26:47 MET 2000  Jan Hubicka <jh@suse.cz>
14315
14316         * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14317         * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14318         (FIXED_REGISTERS): Set dirflag as fixed.
14319         (CALL_USED_REGISTERS): Set dirflag as used.
14320         (REG_ALLOC_ORDER): Set dirflag as last one.
14321         (DIRFLAG_REG): New macro.
14322         (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14323         (HI_REGISTER_NAMES): Add dirflag.
14324         (DEBUF_PRINT_REG): Handle dirflag.
14325         * i386.md (type attribute): New cld and str types.
14326         (length_opcode attribute): Set cld and str to 1.
14327         (memory attribute): Set str to unknown - it is not clear from the
14328         patterns.
14329         (pent_np function unit): Prefixed string operations takes 12 cycles
14330         minimally; cld takes 2 cycles.
14331         (ppro_uops attribute): Str is "many" and cld is "few".
14332         (ppro_p0 unit): Handle cld here.
14333         (k6_alux unit): Handle cld and str types.
14334         (k6_load unit): It is ocupied by str opcodes.
14335         (k6_store unit): It is ocupied by str opcodes.
14336         (athlon_decode): Str is vector decoded.
14337         (athlon_ieu): Handle str and cld.
14338         (cld pattern): New.
14339         (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14340         (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14341         cmpstrsi_nz_1 insn): Do not output cld instruction
14342
14343 Tue Jan 11 06:14:39 2000  David Starner <dstarner98@aasaa.ofe.org>
14344
14345         * gcc.texi (G++ and GCC): Add Java and Chill.
14346         (Bug Critera): Don't list languages.
14347
14348         * gcc.texi (Incompatibilities): No longer claim most C compilers
14349         are K&R.
14350
14351         * gcc.texi (G++ and GCC): Update other front-ends list.
14352
14353 Tue Jan 11 05:49:01 2000  Jeffrey A Law  (law@cygnus.com)
14354
14355         * i386.c (ix86_expand_setcc): Fix typo.
14356         (ix86_expand_movcc): Similarly.
14357
14358         * Band-aid until haifa's bitset implementation is nuked.
14359         * haifa-sched.c (extract_bitlst): New parameter for size of the
14360         bitset in bits.  All callers changed.  Avoid looking at undefined
14361         bits in the bitset.
14362         (edgeset_bitsize): New variable.
14363         (schedule_region): Initialize edgeset_bitsize.
14364
14365 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14366
14367         * Makefile.in (optabs.o): Depend on real.h
14368         (resource.o): Depend on insn-attr.h
14369
14370         * builtins.c (result_vector): Wrap prototype in macro conditions
14371         governing definition and use.
14372
14373         * c-common.c: Include tm_p.h.
14374
14375         * c-lex.c: Likewise.
14376
14377         * elfos.h: Constify a char*.
14378
14379         * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14380         (get_attr_length, shorten_branches, profile_after_prologue): Mark
14381         parameter with ATTRIBUTE_UNUSED.
14382
14383         * fold-const.c (exact_real_inverse): Wrap variable `i' in
14384         CHECK_FLOAT_VALUE.
14385
14386         * haifa-sched.c (schedule_insns): Mark parameter with
14387         ATTRIBUTE_UNUSED.
14388
14389         * optabs.c: Include real.h.
14390
14391         * real.h (ereal_atof): Add prototype arguments.
14392
14393         * resource.c: Include insn-attr.h.
14394
14395         * sdbout.c (sdbout_queue_anonymous_type,
14396         sdbout_dequeue_anonymous_types): Wrap in macro
14397         SDB_ALLOW_FORWARD_REFERENCES.
14398         (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14399         ATTRIBUTE_UNUSED.
14400
14401         * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14402
14403         * stupid.c: Include tm_p.h.
14404
14405         * tree.c (real_value_from_int_cst): Mark parameter with
14406         ATTRIBUTE_UNUSED.
14407
14408 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14409
14410         * i960-protos.h: New file.
14411
14412         * i960.c: Include tm_p.h.  Add static prototypes.  Fix compile
14413         time warnings.
14414
14415         * i960.h: Move prototypes to i960-protos.h.  Fix compile time warnings.
14416
14417 2000-01-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14418
14419         * combine.c (expand_field_assignment): Do not discard SUBREGs
14420         while computing nonzero_bits.
14421
14422 2000-01-09  Nick Clifton  <nickc@cygnus.com>
14423
14424         * config/arm/arm.c: Fix compile time warnings about signed vs
14425         unsigned constants.
14426         * config/arm/arm.h: Fix compile time warnings about signed vs
14427         unsigned constants.
14428
14429 2000-01-09  Philip Blundell  <philb@gnu.org>
14430
14431         * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14432         than `ldm' with only one register.
14433         * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14434         only one register.
14435
14436         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14437         clobbered.
14438
14439 Sun Jan  9 17:50:23 2000  Hans-Peter Nilsson  <hp@axis.com>
14440
14441         * config/ns32k/ns32k.md (load or push effective address): Operand 1
14442         must have SImode.
14443
14444 2000-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14445
14446         * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14447         assignment used as truth value.
14448
14449         * function.c (assign_temp): Mark parameter `dont_promote' with
14450         ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
14451         PROMOTE_FOR_CALL_ONLY.
14452
14453         * genrecog.c (write_subroutine): Mark variable `operands' with
14454         ATTRIBUTE_UNUSED.
14455
14456         * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14457         ATTRIBUTE_UNUSED.
14458
14459         * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14460         (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14461
14462         * toplev.c (note_deferral_of_defined_inline_function): Likewise
14463         for `decl'.
14464
14465 2000-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14466
14467         * config/c4x.h: Tidy up comments.
14468         * config/c4x.c: Likewise.
14469
14470 Sun Jan  9 01:02:55 EST 2000  John Wehle  (john@feith.com)
14471
14472         * fold-const.c (lshift_double, rshift_double): Handle
14473         shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14474
14475 2000-01-08  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14476
14477         * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14478         in prepare_function_start().
14479
14480 Sat Jan  8 12:12:46 2000  Nick Clifton  <nickc@cygnus.com>
14481
14482         * config/v850/v850.c (expand_epilogue): Interrupt functions no
14483         longer allocate extra stack for function calls.
14484
14485 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14486
14487         * config/c4x/c4x.md (*subqf3_set): Fix typo.
14488
14489 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14490
14491         * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14492
14493 2000-01-07  David Edelsohn  <edelsohn@gnu.org>
14494
14495         * rs6000.c (processor_target_table): Add power3 as alias for 630.
14496         * aix43.h: Revert Aug 2 change.
14497         (HAS_INIT_SECTION): Define, not visible yet.
14498         (LD_INIT_SWITCH): Define, not visible yet.
14499         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14500
14501         * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14502
14503         * collect2.c (main): Expand ld2 size further.
14504         (export_object_lst): Cast assignment to avoid warning.
14505         (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14506         (scan_prog_file, COFF): Do not collect initialization or
14507         finalization functions generated for entire shared object if
14508         init/fini support present.
14509
14510 2000-01-07  Nick Clifton  <nickc@cygnus.com>
14511
14512         * config/elfos.h: Tidy up formatting of marcos.  Make sure
14513         that .section directives are always prefixed by a tab.
14514
14515         * config/svr4.h: Add #include "elfos.h" and remove duplicate
14516         definitions.
14517
14518 2000-01-07  Matt Austern  <austern@sgi.com>
14519
14520         * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14521         expon.
14522
14523 Fri Jan  7 01:55:34 2000  Jeffrey A Law  (law@cygnus.com)
14524
14525         * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14526         crtstuff.c.
14527         (crtbegin.o, s-crtS): Likewise.
14528
14529 2000-01-06  Richard Henderson  <rth@cygnus.com>
14530
14531         * alpha.md (adddi_2+1): Limit offset such that it will be
14532         loadable with a single ldah+lda pair.
14533         (adddi_2+2): Explicitly fail split if we can't make it work.
14534
14535 2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>
14536
14537         * protoize.c: Conditionally include unistd.h.
14538         (IS_SAME_PATH_CHAR): New macro.
14539         (IS_SAME_PATH): New macro.
14540         (CPLUS_FILE_SUFFIX): New macro.
14541         (cplus_suffix): New static variable.
14542         (is_abspath): New static function.
14543         (in_system_include_dir): Handle DOS style pathnames.
14544         (file_could_be_converted): Likewise.
14545         (file_normally_convertible): Likewise.
14546         (directory_specified_p): Likewise.
14547         (file_excluded_p): Likewise.
14548         (abspath): Likewise.
14549         (shortpath): Likewise.
14550         (referenced_file_is_newer): Likewise.
14551         (save_def_or_dec): Likewise.
14552         (do_processing): Likewise.
14553         (main): Likewise.
14554         (edit_file): Likewise. Use rename instead of link.
14555         (rename_c_file): Likewise. Don't rename syscalls file.
14556         (munge_compile_params): Define null device for DOS based systems.
14557         (process_aux_info_file): Use binary mode if appliable.
14558         (edit_file): Likewise.
14559         * invoke.texi (Running Protoize): Document C++ suffixes used.
14560
14561         * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14562         IS_DIR_SEPARATOR macros.
14563         * collect2.c: Likewise.
14564         * cppinit.c: Likewise.
14565         * dwarf2out.c: Likewise.
14566         * gcc.c: Likewise.
14567         * gcov.c: Likewise.
14568         * prefix.c: Likewise.
14569         * rtl.c: Likewise.
14570         * toplev.c: Likewise.
14571         * system.h: And move to here.
14572
14573         * prefix.c (update_path): Fix typo in variable name.
14574
14575 2000-01-06  Richard Henderson  <rth@cygnus.com>
14576
14577         * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14578         (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14579         (count_reg_sets_1, count_reg_references): Likewise.
14580         (flow_loops_level_compute): Start counting actual loop depth at 1.
14581         (flow_loops_find): Likewise.
14582         * local-alloc.c (update_equiv_regs): Likewise.
14583         * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14584
14585 2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
14586
14587         * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14588         FIRST_PSEUDO_REGISTER
14589         * dwarf2out.c: Don't include frame.h
14590         * dwarfout.c: Likewise
14591         * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14592         frame.h
14593
14594 Thu Jan  6 13:44:59 CET 2000  Jan Hubicka  <jh@suse.cz>
14595
14596         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14597         dead registers.
14598
14599         * i386.c (movsf splitter): Fix typo in my last checkin.
14600
14601 2000-01-05  Nick Clifton  <nickc@cygnus.com>
14602
14603         * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14604         own definition of this macro.
14605         (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14606         flag_data_sections or UNIQUE_SECTION_P are true.
14607
14608         * tm.texi (UNIQUE_SECTION): Document that it can be called for
14609         unitialised data decls.
14610
14611         * config/i386/winnt.c (i386_pe_unique_section): Cope with
14612         being called for uninitialised data.
14613
14614         * config/i386/interix.c (i386_pe_unique_section): Cope with
14615         being called for uninitialised data.
14616
14617         * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14618         for uninitialised data.
14619
14620         * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14621         for uninitialised data.
14622
14623         * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14624         for uninitialised data.
14625
14626         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14627         (UNIQUE_SECTION_P): Always generate a unique section if
14628         flag_data_sections is true.
14629         (UNIQUE_SECTION): Also generate unique sections for
14630         uninitialised data.
14631         (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14632         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14633         named_section().
14634
14635 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14636
14637         * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14638         SI, or DI.
14639
14640 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14641
14642         * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14643         (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14644         (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14645         (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14646         (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14647
14648         * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14649
14650 2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>
14651
14652         * c-decl.c (finish_enum): Simplify code to determine minimum and
14653         maximum values of the enum, and calculate the type.  Remove check
14654         for FUNCTION_DECLs in the values list, which cannot happen.  Replace
14655         the DECL_INITIAL of each enumeration constant with a copy converted
14656         to the enumeration type.  When updating variant types, don't bother
14657         updating the type itself.
14658
14659         * c-typeck.c (build_binary_op): Simplify conditional expressions
14660         when weeding out spurious signed-unsigned warnings.  Add new
14661         spurious warning category: if the unsigned quantity is an enum
14662         and its maximum value fits in signed_type(result_type).  Update
14663         commentary.
14664         (build_conditional_expr): Warn here if one alternative is signed
14665         and the other is unsigned.
14666
14667 2000-01-05  Nick Clifton  <nickc@cygnus.com>
14668
14669         * config/fr30/fr30.h: Remove extraneous comments.
14670
14671 2000-01-05  Bernd Schmidt  <bernds@cygnus.co.uk>
14672
14673         * reload1.c (choose_reload_regs): When disabling a reload, also
14674         set reload_spill_index to -1.
14675
14676 2000-01-04  Joel Sherrill (joel@OARcorp.com>
14677
14678         * configure.in (m68*-*-rtemscoff*): New target, formal name for
14679         old m68*-*-rtems*.
14680         (m68*-*-rtemself*): New target.
14681         (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14682         (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14683         (sparc*-*-rtemself*): New target.
14684         (sparc*-*-rtems*): Now elf not a.out.
14685         * config/i386/rtems.h: Include config/rtems.h.
14686         * config/i386/rtemself.h: Include config/rtems.h.
14687         * config/i960/rtems.h: Include config/rtems.h.
14688         * config/m68k/rtems.h: Include config/rtems.h.
14689         * config/m68k/rtemself.h: Include config/rtems.h.
14690         * config/mips/rtems64.h: Include config/rtems.h.
14691         * config/pa/rtems.h: Include config/rtems.h.
14692         * config/rs6000/rtems.h: Include config/rtems.h.
14693         * config/sh/rtems.h: Include config/rtems.h.
14694         * config/sh/rtemself.h: Include config/rtems.h.
14695         * config/sparc/rtems.h: Include config/rtems.h.
14696         * config/sparc/rtemself.h: Include config/rtems.h
14697
14698 Tue Jan  4 23:59:26 2000  Denis Chertykov <denisc@overta.ru>
14699
14700         * final.c (shorten_branches): Correctly compute length of
14701         asms without operands.
14702
14703 Tue Jan  4 22:55:41 2000  Steve Chamberlain <sac@pobox.com>
14704
14705         * configure.in: Add pj target.
14706         * configure: Regenerate.
14707         * config/pj: New directory.
14708         * config/pj/lib1funcs.S: New file.
14709         * config/pj/linux.h: New file.
14710         * config/pj/pj.c: New file.
14711         * config/pj/pj.md: New file.
14712         * config/pj/pjl.h: New file.
14713         * config/pj/t-pj: New file.
14714         * config/pj/xm-pj.h: New file
14715
14716 Tue Jan  4 22:30:16 2000  Jeffrey A Law  (law@cygnus.com)
14717
14718         * toplev.c (rest_of_compilation): Run shorten-branches before
14719         reg-stack for now.
14720
14721 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14722
14723         * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14724         macros so that they're consistent with their names.
14725         * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14726         * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14727
14728 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14729
14730         * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14731         modified inadvertently.
14732
14733 2000-01-04  Joel Sherrill <joel@OARcorp.com>
14734
14735         * configure.in (v850*-*-rtems*): New target.
14736         * configure: Regenerate.
14737         * config/v850/rtems.h: New file.
14738
14739 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
14740
14741         * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14742         (__gthread_key_create): Likewise.
14743         (__gthread_key_dtor):  Likewise.
14744         (__gthread_once): Fix logic.
14745         (__gthread_key_delete): Cast away constness.
14746
14747         * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14748         * invoke.texi: Document.
14749         * i386/mingw32.h (CPP_SPEC): Use.
14750         (LIBGCC_SPEC): Likewise.
14751         * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14752
14753 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
14754
14755         * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14756         (HANDLE_PRAGMA_PACK): Undefine.
14757         (SLOW_UNALIGNED_ACCESS): Define.
14758
14759 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
14760
14761         * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14762         to default definition.
14763         (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14764         (store_fixed_bit_field): Call macro with word_mode and alignment.
14765         (extract_bit_field): Call macro with relevant mode and alignment.
14766         * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14767         to default definition.
14768         (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14769         and alignment.
14770         (move_by_pieces_ninsns): Likewise.
14771         (clear_by_pieces): Likewise.
14772         (emit_push_insn): Likewise.
14773         (store_field): Call macro with relevant mode and alignment.
14774         (expand_expr): Likewise.
14775         (expand_expr_unaligned): Likewise.
14776
14777         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14778         (SLOW_UNALIGNED_ACCESS): Define.
14779         (CASE_VECTOR_MODE): Always use 32-bit offsets.
14780         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14781         (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14782         (toc_section): Likewise and .toc pseudo-op.
14783         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
14784         64-bit mode.
14785         (TEXT_SECTION_ASM_OP): Likewise.
14786         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14787         32-bit offsets.
14788
14789         * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14790         * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14791         * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14792         * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14793         * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14794
14795 Tue Jan  4 11:44:13 2000  Jeffrey A Law  (law@cygnus.com)
14796
14797         * regclass.c: Revert my Jan 4 change to loop cost computation.
14798
14799 Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
14800
14801         * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
14802         compilation.
14803
14804 2000-01-04  Stan Cox  <scox@cygnus.com>
14805
14806         * haifa-sched.c (build_control_flow): Change unreachable simple
14807         loop test to check if current block has only one predecessor.
14808         (find_rgns): Initialize degree.  Use dest as degree index, not src.
14809
14810 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14811
14812         * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
14813
14814         * calls.c (expand_call): Likewise for
14815         `old_stack_arg_under_construction'.
14816
14817         * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
14818
14819         * function.c (pad_to_arg_alignment): Likewise for `save_var' and
14820         `save_constant'.
14821
14822         * gcc.c (execute): Likewise for `ut' and `st'.
14823
14824         * genattrtab.c (attr_rtx): Likewise for `rt_val'.
14825
14826         * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
14827
14828         * jump.c (jump_optimize_1): Likewise for `temp2'.
14829
14830         * local-alloc.c (block_alloc): Likewise for `r1'.
14831
14832         * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
14833
14834         * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
14835         (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
14836
14837         * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
14838         and `set2'.
14839
14840         * reload.c (find_reloads): Likewise for `goal_alternative_number'
14841         and `goal_earlyclobber'.
14842
14843         * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
14844
14845         * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
14846
14847         * stupid.c (stupid_life_analysis): Likewise for `chain'.
14848
14849         * unroll.c (copy_loop_body): Likewise for `copy'.
14850
14851         * varasm.c (output_constructor): Likewise for `byte'.
14852
14853 Tue Jan  4 15:34:34 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
14854
14855         * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
14856         all FP constants for constant->reg moves.
14857         (ix86_split_to_parts): Try to convert memory address into immediate
14858         when available in the constant pool.
14859         * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
14860         moves.
14861         (LEGITIMATE_CONSTANT_P): Return 1.
14862         * i386.md (pushsf): New splitter to convert constant pool memory
14863         reference to immediate.
14864         (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
14865         reload.
14866
14867 2000-01-04  Bernd Schmidt  <bernds@cygnus.co.uk>
14868
14869         * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
14870         (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
14871         ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
14872         (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
14873         rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
14874
14875 2000-01-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
14876
14877         * ginclude/stdbool.h:  Support compilation as C++.
14878
14879 Tue Jan  4 01:35:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14880
14881         * fold-const.c (make_range): Don't try to reverse an unbounded range.
14882
14883 Tue Jan  4 00:18:46 2000  Jeffrey A Law  (law@cygnus.com)
14884
14885         * regclass.c (regclass): Properly compute loop_cost.  Adjust
14886         comments.
14887
14888         * regclass.c: Fix minor whitespace problems.
14889
14890 2000-01-03  Anthony Green  <green@cygnus.com>
14891
14892         * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
14893         Restore the pic register if required.
14894
14895 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
14896
14897         * c-common.c (format_char_info): Update comment.
14898         (check_format_info): Recognize 'z' modifier in the same way 'Z'
14899         was recognized.  Emit warning for formats new in ISO C99 only
14900         if flag_isoc9x is not set.
14901
14902 Mon Jan  3 12:59:54 2000  Mark P. Mitchell  <mark@codesourcery.com>
14903
14904         * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
14905
14906 Mon Jan  3 15:33:37 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
14907
14908         * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
14909         SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
14910         (make_compound_operation): Choose cheaper alternative between
14911         ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
14912
14913         * regclass.c (op_costs): Remove global variable.
14914         (record_reg_classes): New parameter "op_costs" and "reg_pref".
14915         (record_operand_costs): Break out from ...
14916         (scan_one_insn): ... here.
14917         (dump_regclass): Make dumps nicer.
14918         (regclass): Dump preferrences choosed and changes done during passes.
14919
14920 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
14921
14922         * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
14923
14924 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
14925
14926         * config/sparc/sparc.c (gen_df_reg): New function.
14927         * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
14928         * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
14929         movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
14930         movtf_cc_reg_sp64+1): Use it.
14931
14932 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
14933
14934         * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
14935         copied LABEL_DECLs.
14936
14937 Mon Jan  3 02:54:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
14938
14939         * config/i386/i386.c (ix86_expand_unary_operator): Function
14940         definition made void.
14941         (ix86_expand_binary_operator): Update outdated preceding comment.
14942         * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
14943         prototype.
14944
14945         * config/i386/i386.c (override_options): Fix option-name typo.
14946
14947 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
14948
14949         * system.h (CEIL): Define.
14950         * builtins.c (CEIL): Remove.
14951         * expmed.c (CEIL): Likewise.
14952         * expr.c (CEIL): Likewise.
14953         * stor-layout.c (CEIL): Likewise.
14954
14955 2000-01-02  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14956
14957         * expr.c (store_constructor_field): Fix typo introduced with last
14958         gcc2 merge.
14959
14960 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
14961
14962         * tree.h (BINFO_N_BASETYPES): New macro.
14963
14964 2000-01-01  Bernd Schmidt  <bernds@cygnus.co.uk>
14965
14966         * expmed.c (emit_store_flag): Prevent losing a pending stack
14967         adjust the same way we prevent losing queued increments.
14968
14969 See ChangeLog.2 for earlier changes.