OSDN Git Service

* i960.c (i960_br_predict_opcode): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-06-01  Richard Henderson  <rth@cygnus.com>
2
3         * i960.c (i960_br_predict_opcode): Remove.
4         (i960_print_operand) [+]: Emit branch prediction hints.
5         (i960_function_arg): Return early for VOIDmode.
6         (i960_round_align): Return early for incomplete types.
7         * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
8         * i960.md (all conditional branches): Add "%+".
9
10 Thu Jun  1 12:24:21 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11
12         * alias.c (get_alias_set): Don't call language-specific routine more
13         than is needed and clean up code a bit.
14         * c-common.c (c_get_alias_set): All references whose type
15         is char get alias set 0, but character types need not.
16         * varasm.c (make_function_rtl): Don't call set_mem_attributes.
17         (make_decl_rtl): Don't call it for FUNCTION_DECL.
18
19 2000-06-01  Bruce Korb  <bkorb@gnu.org>
20
21         * fixinc/tests/base/...: new base result files
22
23 Thu Jun  1 09:37:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
24
25         * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
26         * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
27         * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
28         will use FCOMI.
29         
30 2000-06-01  Richard Henderson  <rth@cygnus.com>
31
32         * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
33
34         * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
35
36 2000-05-31  Richard Henderson  <rth@cygnus.com>
37
38         * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
39         CONSTANT_POOL_ADDRESS_P addresses for .sdata.
40         * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
41
42 2000-05-31  Richard Henderson  <rth@cygnus.com>
43
44         * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
45         * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
46         (ia64_print_operand) [+]: ... here.  Use current_output_insn.
47         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
48         * config/ia64/ia64.md (all branch/call patterns): Use %+.
49
50 2000-05-31  Richard Henderson  <rth@cygnus.com>
51
52         * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
53
54 2000-05-31  Richard Henderson  <rth@cygnus.com>
55
56         * ifcvt.c (merge_if_block): Be prepared for JOIN to have no 
57         remaining edges.
58         (find_if_block): Allow THEN with no outgoing edges.
59         * flow.c (merge_blocks_nomove): Remove a barrier not following
60         a jump as well.
61
62 2000-05-31  Richard Henderson  <rth@cygnus.com>
63
64         * flow.c (propagate_block): Move initialization of mem_set_list ...
65         (init_propagate_block_info): ... here.  Also track blocks with 
66         no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
67
68 2000-05-31  Richard Henderson  <rth@cygnus.com>
69
70         * jump.c (jump_optimize_1): Revert 05-18 change.
71
72 2000-05-31  Mark Mitchell  <mark@codesourcery.com>
73
74         * invoke.texi: Remove documentation for -fguiding-decls.
75
76 2000-05-31  Richard Henderson  <rth@cygnus.com>
77
78         * configure.in: Fix typo last change.
79
80 2000-05-31  Philipp Thomas  <pthomas@suse.de>
81
82         * configure.in (enable-nls): Enable if build == host, i.e. when 
83         not building a canadian cross compiler.
84         (enable-maintainer-mode): Added for use with i18n.
85         * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
86         cross section of ALL_LINGUAS and LINGUAS.
87         * configure: Rebuild.
88
89 2000-05-31  Bruce Korb  <bkorb@gnu.org>
90
91         * fixinc/check.tpl: rework to use test result tree
92         * fixinc/Makefile.in: change invocation of check script
93         * fixinc/check.diff: No longer needed
94         * fixinc/fixincl.x: regenerate
95         * fixinc/inclhack.def:  add new tests
96         * fixinc/tests/base/arch/i960/archI960.h:  New test result
97         * fixinc/tests/base/curses.h: modified test result
98         * fixinc/tests/base/stdio.h: ditto
99         * fixinc/tests/base/time.h: ditto
100         * fixinc/tests/base/sys/asm.h: ditto
101         * fixinc/tests/base/sys/stat.h: ditto
102         * fixinc/tests/base/sys/wait.h: ditto
103
104 Wed May 31 13:17:20 2000  Philippe De Muyter  <phdm@macqel.be>
105
106         * except.c (clear_function_eh_region): Do not free NULL.
107
108 Wed May 31 08:07:52 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
109
110         * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
111         * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
112         (REG_BASE_VALUE): Remove unneeded cast to unsigned.
113         (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
114         (find_base_decl): New function, from c_find_base_decl in c-common.c.
115         (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
116         (get_alias_set): Likewise.
117         Major rework to do more things and allow language-specific code
118         to just handle special-cases.
119         (record_alias_subset): Args are HOST_WIDE_INT.
120         (record_component_alias): Local vars are HOST_WIDE_INT.
121         Don't handle COMPLEX_EXPR.
122         (get_varargs_alias_set): Moved from builtins.c.
123         (get_frame_alias_set): New function.
124         * builtins.c (expand_builtin_return_address): Use frame alias set.
125         (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
126         for setjmp buffer.
127         (get_memory_rtx): Rework to use set_mem_attributes.
128         (get_varargs_alias_set): Deleted from here.
129         * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
130         (c_find_base_decl): Deleted from here.
131         (c_get_alias_set): Remove many cases and rework to just handle
132         C-specific cases.
133         * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
134         * c-decl.c (rtl.h, expr.h): Now included.
135         (init_decl_processing): Call record_component_aliases on array types.
136         (grokdeclarator): Likewise.
137         Set TREE_ADDRESSABLE for all fields that are not bitfields.
138         * c-typeck.c (common_type): Call record_component_aliases for array.
139         * caller-save.c (setup_save_areas): Rework register loop for unsigned.
140         Set all save areas to the frame alias set.
141         * calls.c (initialie_argument_information): Call set_mem_attributes.
142         (compute_argument_addresses, expand_call): Likewise.
143         * explow.c (set_mem_attributes): New function.
144         (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
145         * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
146         LEN and OFFSET now HOST_WIDE_INT.
147         (clear_by_pieces): Similar changes.
148         (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
149         (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
150         (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
151         (clear_by_pieces_1): Likewise.
152         (emit_push_insn): Call set_mem_attributes.
153         (expand_expr, case INDIRECT_REF): Likewise.
154         (expand_expr, case VAR_DECL): Call change_address.
155         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
156         tree_low_cst.
157         (get_varargs_alias_set, get_frame_alias_set): New decls.
158         (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
159         (new_alias_set, set_mem_attributes): Likewse.
160         * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
161         (assign_stack_temp_for_type): Likewise.
162         Can split slot even if alias set since can copy.
163         Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
164         (assign_temp): Use host_integerp and tree_low_cst.
165         (put_var_into_stack): Properly handle SAVE_EXPR.
166         (put_addressof_into_stack): Likewise.
167         (assign_parms): Call set_mem_attributes.
168         Delete #if 0 code.
169         (fix_lexical_address): Put reference to chain into frame alias set.
170         (expand_function_start): Call set_mem_attributes.
171         * integrate.c (expand_inline_function): Likewise.
172         * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
173         * regmove.c (try_apply_stack_adjustment): Likewise.
174         * reload.c (push_reload, make_memloc): Likewise.
175         * reload1.c (alter_reg): Make alias sets for spilled pseudos.
176         * rtl.def (MEM): Update comment.
177         * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
178         (move_by_pieces): Change length to HOST_WIDE_INT.
179         (record_base_value, record_alias_subset): Delete from here.
180         * stmt.c (expand_decl): Call set_mem_attributes.
181         * stor-layout.c (finish_record_layout): Call record_component_aliases.i
182         * toplev.c (compile_file): Call init_alias_once earlier.
183         * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
184         from here: now in alias.c.
185         * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
186         (struct tree_decl): Likewise.
187         (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
188         * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
189         (output_constant_def, force_const_mem): Likewise.
190         
191         * flow.c (propagate_block): If block has no successors, stores to
192         frame are dead if not used.
193
194 2000-05-31  Nathan Sidwell  <nathan@codesourcery.com>
195
196         * stmt (expand_end_case): Reorder conversion sequence for jump
197         table to avoid extra truncations.
198
199 Wed May 31 01:31:42 2000  Jeffrey A Law  (law@cygnus.com)
200
201         * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
202         in the block is more than just a simple conditional branch.
203         (noce_process_if_block): Similarly.
204
205 Tue May 30 22:25:57 2000  Alexandre Oliva  <aoliva@cygnus.com>
206
207         * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
208         queue.
209
210 2000-05-30  Michael Meissner  <meissner@redhat.com>
211
212         * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
213         instructions.  Treat LO_SUM operations as loading the full integer
214         constant.
215
216 2000-05-30  Richard Henderson  <rth@cygnus.com>
217
218         * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
219
220 2000-05-30  Richard Henderson  <rth@cygnus.com>
221
222         * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
223
224 2000-05-30  Bruce Korb  <bkorb@gnu.org>
225
226         * fixinc/tests/*:  Added expected result files for fixinc's make check
227         * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
228
229 2000-05-30  Richard Henderson  <rth@cygnus.com>
230
231         * config/alpha/alpha.md (*setne_internal): Use match_operator
232         instead of working down from insn.
233
234 2000-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
235
236         * invoke.texi (-Wtraditional): Update WRT function macros.
237
238 Tue May 30 09:57:32 2000  Philippe De Muyter  <phdm@macqel.be>
239
240         * except.c (free_exception_table): Do not free NULL.
241
242 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
243
244         * cpplib.c (do_if): Don't save and restore only_seen_white here.
245         * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
246         and skipping here.
247
248 2000-05-29  Richard Earnshaw (rearnsha@arm.com)
249
250         * flow.c (mark_used_reg): If a register is unconditionally live, 
251         remove any conditional death information.
252
253 2000-05-29  Richard Henderson  <rth@cygnus.com>
254
255         * final.c (current_output_insn): New.
256         (final_scan_insn): Set it.
257         * output.h: Declare it.
258
259 2000-05-29  Richard Henderson  <rth@cygnus.com>
260
261         * stor-layout.c (finalize_record_size): Fix typo.
262
263         * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
264         if nlabel is null.
265
266 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
267
268         * cpplib.h (cpp_reader): Remove if_stack.  Change
269         potential_control_macro to a cpp_hashnode *.  Add skipping flag.
270         * cpphash.h (struct ihash): Change control_macro to a
271         cpp_hashnode * and shorten name to cmacro.
272         Add NEVER_REINCLUDE constant.
273
274         * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
275         Examine the cmacro node directly, no need to call cpp_defined.
276         (_cpp_execute_include, read_include_file): Set cmacro to
277         NEVER_REINCLUDE, not U"".
278         * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
279         (cpp_get_token): If pfile->skipping is true, discard text and
280         keep scanning until we hit a directive; don't expand macros.
281
282         * cpplib.c (struct if_stack): Remove if_succeeded, add
283         was_skipping. Change control_macro to a cpp_hashnode * and
284         shorten name to cmacro.  Remove typedef IF_STACK.
285         (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
286         (conditional_skip, skip_if_group,
287         consider_directive_while_skipping): Delete.
288         (push_conditional): New.
289         (_cpp_handle_directive): Don't process directives other than
290         conditionals if we are skipping.
291
292         (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
293         Update to new scheme.
294         (validate_else): Skip rest of line here, unconditionally.
295         (_cpp_unwind_if_stack): The stack is per-buffer.  Force
296         pfile->skipping off.
297
298         (all): Remove `scare quotes' from error messages.
299
300 2000-05-29  Richard Henderson  <rth@cygnus.com>
301
302         * function.c (emit_return_into_block): New line_note arg; emit it.
303         (thread_prologue_and_epilogue_insns): Attempt to locate a line note
304         for the close brace to accompany HAVE_return.  Move all line notes
305         following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
306
307 2000-05-29  Richard Henderson  <rth@cygnus.com>
308
309         * longlong.h [__alpha] (count_leading_zeros): New.
310         (count_trailing_zeros): New.
311         (COUNT_LEADING_ZEROS_0): New.
312
313         * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
314         (alpha_split_conditional_move): New.
315         * config/alpha/alpha-protos.h: Prototype them.
316         * config/alpha/alpha.h (PREDICATE_CODES): Update.
317         (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
318         * config/alpha/alpha.md: Update ffs cix commentary.
319         (*ze_and_ne): New.
320         (*nabssf2, *nabsdf2): New.
321         (*mov[qhsd]icc_internal): Use add_operand.
322         (if_then_else constant splitters): New.
323         (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
324         (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
325
326 2000-05-29  Richard Henderson  <rth@cygnus.com>
327
328         * combine.c (force_to_mode) [MINUS]: Convert subtraction from
329         a constant to NEG or NOT when conditions allow.
330
331         * combine.c (combine_simplify_rtx): Don't create an if_then_else
332         unless both args are general_operand.  Don't canonicalize plus
333         to ior unless it helps.
334
335         * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
336         instead track register_life_up_to_date.  Toggle no_new_pseudos
337         around if_convert.  
338
339 2000-05-28  Geoff Keating  <geoffk@cygnus.com>
340
341         * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
342         so output_operand doesn't see them.
343
344 Sun May 28 18:37:07 2000  Clinton Popetz  <cpopetz@cygnus.com>
345
346         * lcm.c (make_preds_opaque): Fix comment.
347         (optimize_mode_switching): Use NORMAL_MODE instead of 
348         MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
349         FP_MODE_NONE to no_mode.  Rename MODE_AT_ENTRY to NORMAL_MODE.
350         Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
351         * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
352         (MODE_USES_IN_EXIT_BLOCK): Delete.
353         (MODE_AT_ENTRY) Rename to NORMAL_MODE.
354         * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
355         (MODE_AT_ENTRY): Rename to NORMAL_MODE.
356         (MODE_NEEDED): Don't look for USE.
357         (EPILOGUE_USES): Define.
358
359 Sun May 28 23:26:59 2000  Philippe De Muyter <phdm@macqel.be>
360
361         * mklibgcc.in (all): Variable initialised to `libgcc'.
362
363 2000-05-28  Gabriel Dos Reis  <gdr@codesourcery.com>
364
365         * toplev.h (skip_leading_substring): New macro.
366         * toplev.c (decode_f_option): Use skip_leading_substring instead
367         of strncmp.
368         (decode_W_option): Likewise.
369
370 2000-05-28  Nick Clifton  <nickc@cygnus.com>
371
372         * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
373         modify reg_names.
374
375 2000-05-28  Richard Henderson  <rth@cygnus.com>
376
377         * regclass.c (record_operand_costs): Protect reg_changes_size
378         with CLASS_CANNOT_CHANGE_SIZE.
379
380         * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
381
382 2000-05-28  Richard Henderson  <rth@cygnus.com>
383
384         * function.c (diddle_return_value): A pcc-style struct return
385         returns a pointer.
386
387 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
388
389         * cppfiles.c: Read files in, using mmap if possible, then
390         prescan them separately.
391         (read_file, read_with_read): New functions.
392         * cpplex.c: Don't define UCHAR_MAX.
393         (_cpp_read_and_prescan): Rename to _cpp_prescan.  Don't read
394         the file here.
395
396         * cppinit.c (handle_option): Automatically define __cplusplus,
397         __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
398         the respective -lang switch.
399
400         * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
401         prototype): Move to...
402         * cpplib.h: ... here.  Rename struct hashnode to struct
403         cpp_hashnode and give it a typedef.  Rename _cpp_lookup to
404         cpp_lookup.  Add 'fe_value' slot, a union tree_node *.
405
406 2000-05-27  Geoffrey Keating  <geoffk@cygnus.com>
407
408         * config/rs6000/rs6000.md (movsi): Constify 'name'.
409
410         * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
411         (class_can_change_size): New variable.
412         (reg_changes_size): New variable.
413         (init_reg_sets_1): Initialise class_can_change_size.
414         (record_operand_costs): Remove subreg_changes_size.
415         Don't pass it around.  Instead update reg_changes_size.
416         (regclass): Initialise and free reg_changes_size.  If a register
417         changes size, don't preference it to a class that contains
418         registers that can't change size.
419         (record_reg_classes): Don't look at subreg_changes_size.
420
421 2000-05-27  Richard Henderson  <rth@cygnus.com>
422
423         * print-rtl.c (reg_names): Remove const.
424         * regclass.c (reg_names): Likewise.
425         * regs.h (reg_names): Likewise.
426         * hard-reg-set.h (reg_names): Likewise.
427
428 2000-05-27  Richard Henderson  <rth@cygnus.com>
429
430         * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
431
432 2000-05-27  Richard Henderson  <rth@cygnus.com>
433
434         * config/alpha/alpha.c (alpha_does_function_need_gp): Test
435         TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
436         (alpha_expand_prologue): Emit prologue_mcount if needed.
437         * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
438         * config/alpha/alpha.md (prologue_mcount): New.
439         * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
440         (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
441         * config/alpha/netbsd.h: Likewise.
442
443 2000-05-27  Richard Henderson  <rth@cygnus.com>
444
445         * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
446         change to config/elfos.h.
447
448 2000-05-27  Richard Henderson  <rth@cygnus.com>
449
450         * Makefile.in (resource.o): Depend on except.h.
451         * except.h (output_exception_table_data): Prototype.
452         * genconfig.c (gen_peephole2): Prototype.
453         * genemit.c (main): Include ggc.h.
454         * genoutput.c: Revert parts of last change: include errors.h
455         (main): Set progname.
456         * recog.c: Include hard-reg-set.h before recog.h.
457         * resource.c: Include except.h.
458
459         * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
460         with RTX_CODE.
461         (alpha_write_linkage): Protect with BUFSIZ.
462         (alpha_need_linkage): Update prototype.
463         * config/alpha/alpha.c (function_arg): Move VMS code here.
464         (alpha_links_base): Remove.
465         (alpha_links): New.
466         (mark_alpha_links_node, mark_alpha_links): New.
467         (alpha_write_one_linkage): New.
468         (alpha_need_linkage): Use a splay tree.  Build the linkage symbol.
469         (alpha_write_linkage): Use splay_tree_foreach.
470         * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
471         to get the linkage symbol.
472         (call_value_vms): Likewise.
473         * config/alpha/elf.h (output_file_directive): Remove decl.
474         (ctors_section, dtors_section): Prototype.
475         (sbss_section, sdata_section): Prototype.
476         * config/alpha/vms.h (FUNCTION_ARG): Remove.
477         (readonly_section, link_section, literals_section): Prototype.
478         (ctors_section, dtors_section): Prototype.
479         (vms_valid_decl_attribute_p): Remove decl.
480         (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
481
482 2000-05-27  Geoff Keating  <geoffk@cygnus.com>
483
484         * reload.c (get_secondary_mem): Don't widen floating-point modes.
485
486         * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
487         substituting the REG in a (subreg:X (reg:Y ...)).
488
489 2000-05-28  Neil Booth  <NeilB@earthling.net>
490
491         * cpplex.c (_cpp_lex_line): Merge vertical space.  Flag
492         first token of a line BOL.  Update EOF code for this.
493         Remove illegal directive check - it appears in the (not
494         yet committed) caller.
495         * cpplib.h (BOL): New flag.
496
497 2000-05-28  Neil Booth  <NeilB@earthling.net>
498
499         * cpplex.c (_cpp_init_toklist): No comment space to initialise.
500         (_cpp_free_toklist): No comment space to free.
501         (expand_comment_space): Remove.
502         (save_comment_space): Place the comment in the current token and
503         not in a separate comment space.
504         (_cpp_lex_line): Save comments during plain code and #define
505         directives only.
506         * cpplib.h (struct _cpp_toklist): Remove comment space.
507
508 2000-05-28  Neil Booth  <NeilB@earthling.net>
509
510         * cppexp.c (parse_assertion): Supply extra argument to
511         _cpp_init_toklist.
512         * cpplib.c (do_assert, do_unassert): Similarly.
513         * cpphash.h (_cpp_init_toklist) Update.
514         (_cpp_expand_token_space): New.
515         (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
516         * cpplex.c (_cpp_init_toklist): New argument.
517         (parse_string2): New argument multiline_ok.
518         (spell_token): Take a const cpp_token *.
519         (INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
520         (SPELL_ macros): Replace with enum.
521         (expand_token_space): Replace with _cpp_expand_token_space.
522         Take COUNT argument.
523         (IS_DIRECTIVE): Update.
524         (_cpp_lex_line): Update token structure before parsing number.
525         Don't assume start at beginning of token list.
526         (save_comment): Use INIT_TOKEN_NAME.
527
528 2000-05-27  Zack Weinberg  <zack@wolery.cumb.org>
529
530         * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
531         -Wmissing-prototypes.
532         * configure: Regenerate.
533         * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
534
535         * builtins.c, calls.c: Change all instances of gen_call_* or
536         gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
537         * calls.c (struct_value_size_rtx): Separate definition from
538         initialization to avoid unused variable warning.
539
540         * genflags.c (gen_macro): New function.
541         (gen_proto): Call it for gen_call_* and gen_sibcall_*.
542         (gen_nonproto): Delete.
543         (gen_insn): Put all insns on the same obstack.
544         (main): Generate prototypes for everything unconditionally.
545
546         * configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented 
547         out check for wchar_t.
548         * acconfig.h: Add template for ssize_t.  Remove @TOP@.
549         * system.h: Add infrastructure for defining missing   
550         TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback  
551         definitions of UCHAR_MAX and SSIZE_MAX.
552         * configure: Regenerate.
553         * config.in: Regenerate.
554
555         * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
556         Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
557         headers.
558         (clean): No need to delete libgcc1.a, libgcc1-asm.a,
559         libgcc2.a, or libgcc1.null.
560
561 2000-05-27  Richard Henderson  <rth@cygnus.com>
562
563         * Makefile.in (recog.o): Don't depend on resource.h.
564         * recog.c: Don't include resource.h.
565         (recog_last_allowed_insn): Remove.
566         (recog_next_insn): Remove.
567         (struct peep2_insn_data): New.
568         (peep2_insn_data, peep2_current): New.
569         (peep2_next_insn): New.
570         (peep2_regno_dead_p, peep2_reg_dead_p): New.
571         (peep2_find_free_register): New.
572         (peephole2_optimize): Track life information by insn as we go.
573         * recog.h: Update declarations.
574         * resource.c (find_free_register, reg_dead_p): Remove.
575         * resource.h: Remove their declarations.
576         * toplev.c: Include hard-reg-set.h before recog.h.
577
578         * genconfig.c (max_insns_per_peep2): New.
579         (gen_peephole2): New.
580         (main): Call it.
581         * genemit.c (output_peephole2_scratches): Generate calls to
582         peep2_find_free_register; adjust surrounding code.
583         (main): Have insn-emit.c include hard-reg-set.h before recog.h.
584         * genrecog.c (change_state): Don't track last_insn.
585         (write_action): Write into *_pmatch_len before accepting.
586         (write_tree): Adjust peephole2_insns and subroutines to match.
587
588         * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
589
590         * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
591         (hard_int_register_operand): New.
592         * config/alpha/alpha-protos.h: Declare it.
593         * config/alpha/alpha.h (PREDICATE_CODES): Update.
594         * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
595         as needed; use peep2_reg_dead_p instead of dead_or_set_p.
596
597 2000-05-27  Richard Henderson  <rth@cygnus.com>
598
599         * function.c (thread_prologue_epilogue_insns): Don't move the
600         line note at the head of the chain.  Only force a lineno note
601         before the end of block 0.
602
603 2000-05-27  Richard Henderson  <rth@cygnus.com>
604
605         * gensupport.c (collect_insn_data): Record the maximum number
606         of alternatives, not the last seen.
607
608         * genoutput.c: Don't include errors.h.
609         (struct data): Add lineno member.
610         (have_error): New.
611         (scan_operands): Use message_with_line instead of error.
612         (validate_insn_alternatives): Likewise.
613         (gen_insn): Accept and store the pattern's line number.
614         (gen_peephole, gen_expand, gen_split): Likewise.
615         (main): Don't set progname.  Pass line_no to gen_foo.
616
617 2000-05-27  Richard Henderson  <rth@cygnus.com>
618
619         * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
620         * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
621         * config/d30v/d30v.md (attr predicable): New.
622         (all insn patterns): Mark non-predicable patterns; use %: on the rest.
623         (andsi3*): Unify into one pattern.
624         (iorsi3*, xorsi3*): Likewise.
625         (peephole2 patterns): Use peep2_reg_dead_p; verify not a
626         conditional return.
627         (old cond_exec patterns): Remove.
628         (define_cond_exec): New.
629
630 Sat May 27 11:01:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
631
632         * tree.h (TREE_CODE_LENGTH): New macro.
633         * c-common.c (c_find_base_decl): Use it.
634         * expr.c (safe_from_p): Likewise.
635         * print-tree.c (print_node): Likewise.
636         * tree.c (make_node, copy_node, get_identifier): Likewie.
637         (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
638         (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
639         * fold-const.c (make_range): Likewise.
640         (fold): Likewise; also use first_rtl_op.
641         * c-iterate.c (collect_iterators): Use first_rtl_op.
642         * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
643         Use IS_EXPR_CODE_CLASS.
644         (preexpand_calls): Likewise.
645         * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
646         and TREE_CODE_LENGTH.
647         * stmt.c (warn_if_unused_value): If no operands, no unused value.
648
649 2000-05-26  Geoffrey Keating  <geoffk@cygnus.com>
650
651         * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
652         than '%1(%*)'.
653         (movdi_internal64): Likewise.
654
655         * config/rs6000/rs6000.md: Correct order of operands for DImode
656         boolean patterns.
657
658         * config/rs6000/rs6000.c (boolean_or_operator): New function.
659         * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
660         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
661         * config/rs6000/rs6000.md: Use boolean_or_operator instead of
662         boolean_operator for the boolean patterns without NOTs.
663
664         * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
665         from reg_or_u_cint_operand.  Change comment and behaviour.
666         (logical_operand): Clean up, add assertion.
667         (non_logical_cint_operand): Also check for
668         reg_or_logical_cint_operand.
669         * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
670         * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
671         in the expander.
672         (xorsi3): Likewise.
673         (iordi3): Likewise.
674         (xordi3): Likewise.
675
676 2000-05-26  Mark Mitchell  <mark@codesourcery.com>
677
678         * tree.h (struct record_layout_info): Rename to (struct
679         record_layout_info_s).
680         * stor-layout.c (start_record_layout): Replace
681         `record_layout_info' with `record_layout_info_s'.
682
683 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
684
685         * flow.c (find_label_refs): New function.
686         (find_basic_blocks_1): Call it for each alternative of a call 
687         placeholder.
688
689 2000-05-26  Richard Earnshaw  <rearnsha@arm.com>
690
691         * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
692         of get_pc.
693
694 2000-05-25  Richard Henderson  <rth@cygnus.com>
695
696         * config/alpha/alpha.c (alpha_comparison_operator): Don't be
697         so strict about DImode.
698         (alpha_swapped_comparison_operator): Likewise.
699         * config/alpha/alpha.md (*setne_internal): Name it.  Allow
700         any integer output mode.
701         (*setcc_internal): Likewise.
702         (*setcc_swapped_internal): Likewise.
703         (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
704         (*mov[qhs]icc_internal): New.
705         (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
706
707 2000-05-25  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
708
709         * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
710
711 2000-05-25  Richard Henderson  <rth@cygnus.com>
712
713         * bb-reorder.c (reorder_block_def): Reorder elements for size.
714         Remove add_jump; add next; replace flags with visited.
715         (rbd_init): Remove.
716         (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
717         (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
718         (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
719         (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
720         (RBI): New.
721         (reorder_index, reorder_last_visited): Remove.
722         (skip_insns_after_block): Rewrite to use a switch.
723         (get_common_dest): Remove.
724         (chain_reorder_blocks): Remove.
725         (record_effective_endpoints): Split out from reorder_basic_blocks.
726         (make_reorder_chain): Likewise.  Loop until all blocks are placed.
727         (make_reorder_chain_1): Renamed from old make_reorder_chain.
728         Only construct the reorder chain, do not move insns.  Try harder
729         to tail recurse.
730         (label_for_bb, emit_jump_to_block_after): New.
731         (fixup_reorder_chain): Use them.  Do bulk block movement.  Examine
732         and adjust the jump insns appropriately.  Fixup basic_block_info.
733         (verify_insn_chain): Always define.
734         (relate_bbs_with_scopes): Call xmalloc, not xcalloc.  Fix thinko
735         in allocation size.
736         (make_new_scope): Don't write zeros to calloc'd space.
737         (build_scope_forest): Rely on xrealloc to DTRT.
738         (reorder_basic_blocks): Don't build loop nest.  Don't fail if
739         profile_arc_flag.  Streamline EH test.
740
741         * flow.c (redirect_edge_succ, redirect_edge_pred): New.
742         * basic-block.h: Declare them.
743
744 2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
745
746         * emit-rtl.c (reset_used_decls): New function.
747         (unshare_all_rtl_again): Call it.
748
749 2000-05-25  Zack Weinberg  <zack@wolery.cumb.org>
750
751         * cpplex.c (maybe_macroexpand): Warn about function-like
752         macros used in non-function context, if -Wtraditional.
753
754 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
755
756         * recog.c (peephole2_optimize): Use INSN_P.
757
758 2000-05-25  Richard Henderson  <rth@cygnus.com>
759
760         * ifcvt.c (seq_contains_jump): New.
761         (noce_try_store_flag_constants): Use it to fail conversion.
762         (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
763
764 2000-05-25  Mark Mitchell  <mark@codesourcery.com>
765
766         * except.h (can_throw): Declare it.
767         * except.c (can_throw): Give it external linkage.
768         * resource.c (find_dead_or_set_registers): Use can_throw.
769         
770 2000-05-25  Richard Henderson  <rth@cygnus.com>
771
772         * flow.c (mark_set_1): Don't record conditionally dead memory.
773
774 2000-05-25  Jan Hubicka  <jh@suse.cz>
775
776         * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
777         and pc_set at the place of simplejump_p and condjump_p.
778         * cse.c (record_jump_equiv): Likewise.
779         * emit-rtl.c (emit): Likewise.
780         * explow.c (find_next_ref): Likewise.
781         * flow.c (tidy_fallthru_edge): Likewise.
782         (init_propagate_block_info): Likewise.
783         * gcse.c (delete_null_pointer_checks): Likewise.
784         * ifcvt.c (cond_exec_get_condition, noce_get_condition,
785         dead_or_predicable): Likewise.
786         * integrate.c (copy_insn_list): Likewise.
787         * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
788         for_each_insn_in_loop, check_dbra_loop, get_condition,
789         insert_bct, load_mems): Likewise.
790         * resource.c (find_dead_or_set_registers): Likewise.
791         * sibcalls.c (simplejump_p): Likewise.
792         * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
793
794 2000-05-25  David Edelsohn  <edelsohn@gnu.org>
795
796         * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
797         to STRING case.  Use doubleword STRING move for TARGET_POWERPC64
798         when unaligned.
799         * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
800         (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
801         (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
802         * rs6000.md: Name various internal patterns.
803
804 2000-05-25  Jan Hubicka  <jh@suse.cz>
805
806         * jump.c (invert_exp_1): Remove first argument, use pc_set
807         to get the expression.
808         (redirect_exp): Make static; redirect only the pc_set expression,
809         remove first argument.
810         (invert_exp): Remove first argument, make static.
811         (jump_optimize): Use any_condjump_p, any_uncondjump_p and
812         any_onlyjump at most places where we originaly did condjump_p
813         and simplejump_p.
814         (jump_back_p, follow_jumps, thread_jumps): Likewise.
815         (delete_barrier_succesors): Use pc_set.
816         (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
817         calls of invert_exp and redirect_exp.
818         * rtl.h (redirect_exp, invert_exp): Remove.
819         * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
820
821 2000-05-25  Richard Henderson  <rth@cygnus.com>
822
823         * stmt.c (expand_end_bindings): Fix thinko last change.
824
825 2000-05-25  Andrew MacLeod  <amacleod@cygnus.com>
826             Andrew Haley  <aph@cygnus.com>
827
828         * except.c  (func_eh_entry): Add emitted field.
829         (new_eh_region_entry): Set emitted field to 0;
830         (output_exception_table_entry): Only emit previously un-emitted data,
831         and send it to the eh_data section.
832         (output_exception_table): Break out common parts. Output
833         exception table for entire compilation unit to eh_data section.
834         (output_exception_table_data): Common parts of output_exception_table.
835         Send output to eh_data section.
836         (output_function_exception_table): Output exception table data for
837         a single function to eh_data section.
838         (free_exception_table): New external to free the table.
839         * except.h (free_exception_table): Add prototype.
840         (output_function_exception_table): Add prototype.
841         * final.c (final_end_function): Output function exception table
842         for IA64_UNWIND_INFO.
843         (final_scan_insn): Emit any unwind directives for an insn.
844
845         * frame-dwarf2.c: New file containing all DWARF 2 specific code
846         from frame.c.
847         * frame.c: Remove all DWARF 2 specific code.
848         * config/ia64/frame-ia64.c: New file.
849         (gthread_stuff): Make all gthread available with 
850         IA64_UNWIND_INFO.
851         (dwarf_fde): Define an IA64 struct for dwarf_fde.
852         (__register_frame_info, __register_frame): Move to common area of file.
853         (__register_frame_info_table, __register_frame_table): Move to common i
854         area.
855         (__deregister_frame_info, __deregister_frame): Move to common area.
856         (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
857         (read_uleb128): New version for ia64.
858         (get_unwind_record): Read the next IA-64 unwind record.
859         (read_R_record): Read a region header record.
860         (process_a_b_reg_code): X record helper.
861         (read_X_record): Read an X format record.
862         (read_B_record): Read a B format record.
863         (P3_record_types): List of record types matching the P3 format.
864         (P7_record_types): List of record types matching the P7 format.
865         (P8_record_types): List of record types matching the P8 format.
866         (read_P_record): Read a P format record.
867         (init_ia64_reg_loc): Set default fields for a register.
868         (init_ia64_unwind_frame): Set defaults for all register records.
869         (execute_one_ia64_descriptor): Execute one descriptor record.
870         (rse_address_add): Calculate the position of a local reg in memory.
871         (normalize_reg_loc): Turn a location descriptor into a memory address.
872         (maybe_normalize_reg_loc): Only normalize a descriptor if it falls 
873         within a specified PC offset range.
874         (get_real_reg_value): Given a register location, retrieve its value.
875         (set_real_reg_value): Change the value of a register location.
876         (copy_reg_value): Copy reg values, if needed.
877         (copy_saved_reg_state): Copy all registers that need to be copied.
878         (process_state_between): Normalize all frame register records that
879         fall within the specified PC range.
880         (frame_translate): Take a processed frame description, and turn 
881         everything into addresses.
882         (build_ia64_frame_state ): Find and create frame state record for a PC.
883         (get_personality): Get the personality routine for a given frame.
884         (get_except_table): Get the exception table for a given frame.
885         (record_name): Unwind record names for debugging.
886         (print_record): Print and unwind record.
887         (print_all_records): Print an entire unwind image.
888         (__ia64_backtrace): Print a backtrace.
889         (ia64_backtrace_helper): New function.
890         (__register_frame_info_aux): New function.
891         * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
892
893         * frame.h (enum unw_record_type): New unwind record types.
894         (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
895         (struct unw_r_record, unwind_record): New unwind record structs.
896         (struct unwind_info_ptr): Unwind information layout.
897         (IA64_UNW_LOC_TYPE_*): Macros for different types for location 
898         descriptors.
899         (struct ia64_reg_loc): Register location description.
900         (struct ia64_frame_state): Location of all registers in a frame.
901         (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
902         * libgcc2.c (__ia64_personality_v1): Personality routine.
903         (__calc_caller_bsp): Calculate the bsp register for the caller's
904         frame.
905         (ia64_throw_helper): Figure out who to return to and set up the 
906         registers.
907         (__throw): Throw routine.
908
909         * output.h (assemble_eh_align, assemble_eh_label): New functions
910         to generate EH info where we want it.   
911         (assemble_eh_integer): New function.
912         * toplev.c (compile_file): Output module level exception table for
913         non-ia64 targets.
914         (main): Set exceptions_via_longjump and flag_new_exceptions based 
915         on IA64_UNWIND_INFO too.
916
917         * varasm.c (assemble_eh_label): Generate a label via
918         ASM_OUTPUT_EH_LABEL if it has been specified.
919         (assemble_eh_align): Generate an alignment directive via 
920         ASM_OUTPUT_EH_ALIGN if it has been specified.
921         (assemble_eh_label): Generate an integer value via
922         ASM_OUTPUT_EH_type if they have been specified.
923         * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
924         (ia64_init_builtins): Add __builtin_ia64_bsp
925         and __builtin_ia64_flushrs.     
926         (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
927         IA64_BUILTIN_FLUSHRS.
928         * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
929         IA64_BUILTIN_FLUSHRS.
930
931         * config/ia64/ia64.md (flushrs): New insn to flush the register
932         stack.  Add to unspec list.
933
934         * config/ia64/crtbegin.asm (frame_object): Change size.
935         (__do_frame_setup_aux): New function.
936         * config/ia64/crtend.asm: call __do_frame_setup_aux.
937         * config/ia64/t-ia64 (LIB2ADDEH): Add.
938         * Makefile.in (LIB2ADDEH): Add.
939         (LIB2ADD): Use LIB2ADDEH.
940         
941 2000-05-24  Richard Henderson  <rth@cygnus.com>
942
943         * recog.c (offsettable_address_p): If mode size is zero, assume
944         BIGGEST_ALIGNMENT.
945
946 2000-05-24  J. David Anglin  <dave@hiauly.hia.nrc.ca>
947
948         * configure.in: Check for -Wno-long-long option support and improve
949         handling of warning CFLAGS for stages 1 and 2.
950         * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
951         * configure: Regenerate.
952
953 Wed May 24 19:37:53 2000  Jeffrey A Law  (law@cygnus.com)
954
955         * gcc.texi: Remove contributor list.  Instead include contrib.texi.
956         * contrib.texi: New file.
957
958 Thu May 25 02:27:22 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
959
960         * loop.c (basic_induction_var): Avoid double recording of an increment.
961
962 Thu May 25 02:19:27 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
963
964         * Back out this patch:
965         Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
966           * loop.h (struct induction): Add multi_insn_incr.
967           * loop.c (basic_induction_var): New multi_insn_incr argument.
968           Set it if we search back through previous insns for the biv.
969           (record_biv): New multi_insn_incr argument; fill in struct induction.
970           (strength_reduce): Discard an iv with multiple bivs, any of
971           which require multiple insns to increment.
972
973         * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
974
975 Thu May 25 02:09:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
976
977         * rtl.h (loc_mentioned_in_p): Declare.
978         * reload.c (loc_mentioned_in_p): Moved from here...
979         * rtlanal.c (loc_mentioned_in_p): to here.  No longer static.
980         Fix loop increment for 'E' handling.
981         * loop.c (strength_reduce): When doing biv->giv conversion,
982         take multi-insn biv increments into account.
983
984 2000-05-24  Jason Merrill  <jason@casey.soma.redhat.com>
985
986         * stmt.c (expand_end_bindings): Look through NOTEs to find a
987         BARRIER.
988
989 2000-05-24  Mark Mitchell  <mark@codesourcery.com>
990
991         * calls.c (expand_call): Handle cleanups in tail-recursion
992         arguments analagously to cleanups in sibling calls.
993
994 2000-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
995
996         * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
997         All callers changed.
998
999 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
1000
1001         * expr.c (expand_assignment, store_expr, expand_expr,
1002         expand_expr_unaligned): Set in_check_memory_usage while emitting
1003         chkr_check_addr libcall.
1004
1005 2000-05-24  Nick Clifton  <nickc@cygnus.com>
1006
1007         * fold-const.c (extract_muldiv): When constructing a
1008         multiplier/divisor, do not expect const_binop to correctly
1009         determine if overflow has occured, so check explicitly.
1010
1011 2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
1012
1013         * c-decl.c (build_enumerator): Don't modify the value's type,
1014         convert it.
1015
1016 2000-05-24  Andreas Jaeger  <aj@suse.de>
1017
1018         * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
1019
1020 2000-05-24  Eric Christopher <echristo@cygnus.com>
1021
1022         * configure.in: Redefine inhibit_libc conditions.
1023         * libgcc2.c: Remove inhibit_libc conditional define.
1024         * configure: Regenerate.
1025
1026 2000-05-24  Phil Edwards  <pme@sourceware.cygnus.com>
1027
1028         * configure.in:  For --enable-languages=LIST, check for empty LIST.
1029         * configure:  Regenerate.
1030
1031 2000-05-24  Lars Brinkhoff  <lars@nocrew.org>
1032
1033         * pdp11.h (STACK_BOUNDARY): Define.
1034
1035 2000-05-24  Jakub Jelinek  <jakub@redhat.com>
1036
1037         * ifcvt.c (if_convert): Update life info globally.
1038
1039 2000-05-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1040
1041         * emit-rtl.c (unshare_all_decls): New function.
1042         (unshare_all_rtl): Call it.
1043
1044 2000-05-23  Nick Clifton  <nickc@cygnus.com>
1045
1046         * configure.in: Treat 'strongarm' as if it were 'arm' when
1047         determining cpu type.
1048
1049         * configure: Regenerate.
1050
1051         * config/arm/arm.c: Change 'char *' to 'const char *' for cases
1052         where constant strings are involved.
1053
1054         * config/arm/arm.h (arm_condition_codes): Change type to 'const
1055         char *'.
1056
1057         * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
1058         cases where constant strings are involved.
1059
1060 Tue May 23 15:08:31 2000  Clinton Popetz  <cpopetz@cygnus.com>
1061
1062         * config/sh/sh.c (gen_far_branch, split_branches): Update
1063         to reflect new prototypes for redirect_jump and invert_jump.
1064         (sh_insn_length_adjustment): Get rid of const warnings.
1065
1066 2000-05-23  Kazu Hirata  <kazu@hxi.com>
1067
1068         * invoke.texi (Options for Debugging Your Program or GCC): Update
1069         the names of dump files.
1070
1071 Tue May 23 13:58:52 2000  Philippe De Muyter  <phdm@macqel.be>
1072
1073         * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
1074         * configure: Regenerated.
1075
1076 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
1077
1078         * simplify-rtx.c (SIGN_EXTEND): New macro.
1079         (simplify_unary_operation, simplify_binary_operation, 
1080         simplify_relational_operation): Use SIGN_EXTEND.  Make low
1081         halves of (low, high) pairs unsigned if they weren't already.       
1082         (simplify_ternary_operation): Cast INTVAL to unsigned before
1083         comparing to a MODE_BITSIZE.
1084
1085 2000-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1086
1087         * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
1088         rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
1089         
1090         * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
1091         gcc_AC_NEED_DECLARATIONS.
1092
1093         * dwarfout.c: Don't prototype time().
1094
1095         * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
1096
1097         * system.h: Likewise.
1098
1099         * toplev.c: Likewise.
1100
1101 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
1102
1103         * c-decl.c (pushdecl): Invert sense of test for non-global types.
1104
1105 Tue May 23 18:11:42 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
1106
1107         * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
1108
1109 2000-05-23  Jonathan Larmour  <jlarmour@redhat.co.uk>
1110
1111         * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
1112
1113 Tue May 23 06:50:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1114
1115         * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
1116         (alpha_start_function): Never write ..ng label if VMS or NT.
1117         (alpha_align_insns): Remove GP_IN_USE arg.
1118         Alignment now unsigned.
1119         (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
1120         * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
1121         and two define_insn's.
1122
1123 2000-05-22  Richard Henderson  <rth@cygnus.com>
1124
1125         * combine.c (simplify_comparison): Use trunc_int_for_mode.
1126
1127 2000-05-22  Richard Henderson  <rth@cygnus.com>
1128
1129         * stor-layout.c (place_field): Change rli->size to rli->offset.
1130
1131 2000-05-22  Richard Henderson  <rth@cygnus.com>
1132
1133         * function.c (thread_prologue_and_epilogue_insns): Make sure 
1134         existing line number notes appear after the prologue.
1135
1136 Mon May 22 21:49:00 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1137
1138         * config/alpha/alpha.c (alpha_fnname): New static variable.
1139         (print_operand, case '~'): New case.
1140         (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
1141         (alpha_start_function): Set alpha_fnname.
1142         Write "ng" label if no ldgp; don't write ldgp insn.
1143         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
1144         * config/alpha/alpha.md (prologue_ldgp): New define_insn.
1145
1146 Mon May 22 11:30:48 2000  Clinton Popetz  <cpopetz@cygnus.com>
1147
1148         * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
1149         on deleted labels.
1150
1151 2000-05-22  Zack Weinberg  <zack@wolery.cumb.org>
1152
1153         * varasm.c (eh_frame_section): Revert change to argument list.
1154
1155 Mon May 22 13:14:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1156
1157         * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
1158         (gen_extend_insn, can_fix_p, can_float_p): Likewise.
1159         
1160         * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
1161         dangling "else" that causes "break" to be conditional.
1162         Also remove unneeded code at start.
1163
1164 Mon May 22 17:31:35 2000  Philippe De Muyter  <phdm@macqel.be>
1165
1166         * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
1167         * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
1168         * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
1169
1170 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
1171
1172         * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
1173         just one argument.
1174
1175 Mon May 22 06:57:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1176
1177         * alias.c (record_component_aliases): New function.
1178         * tree.h: Clean up some declarations and comments.
1179         (record_component_aliases): New declaration.
1180         * tree.c (get_alias_set): If type and has alias set, use it.
1181
1182 2000-05-22  Richard Henderson  <rth@cygnus.com>
1183
1184         * simplify-rtx.c (simplify_ternary_operation): Try to simplify
1185         IF_THEN_ELSE to a setcc form.
1186         * jump.c (can_reverse_comparison_p): Be prepared for insn null.
1187
1188 2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1189
1190         * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
1191         (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
1192
1193 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1194
1195         * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
1196         not a PARALLEL.
1197
1198 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1199
1200         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1201         * config/mn10300/mn10300.c (print_operand): Likewise.
1202
1203         * final.c (split_double): Right shift of negative values is not
1204         portable.
1205
1206         * ifcvt.c (if_convert): Scan and kill dead code.
1207
1208         * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
1209
1210 2000-05-20  Zack Weinberg  <zack@wolery.cumb.org>
1211
1212         * diagnostic.c: Eliminate implicit int.
1213         * except.c, gcc.c: Add static prototypes.
1214         * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
1215         * gensupport.c (process_rtx): Use XVEC to initialize vector
1216         slot of 'split'.
1217
1218         * print-rtl.c: If DEBUG_REGISTER_NAMES, define static 
1219         debug_reg_names instead of static reg_names.  If not, define
1220         global reg_names.
1221         * regclass.c: Don't define global reg_names unless
1222         DEBUG_REGISTER_NAMES is defined.
1223
1224         * reload1.c (order_regs_for_reload): Remove unused variable.
1225         * varasm.c: Include output.h after defaults.h.  Define
1226         eh_frame_section as function of no args, not of unspecified args.
1227
1228         * gcc.c: Constify argbuf; arguments to store_arg,
1229         process_command, main; elements of struct command and struct
1230         switchstr; local variables in execute, process_command, main.
1231
1232 2000-05-20  Bruce Korb  <bkorb@gnu.org>
1233
1234         * fixinc/inclhack.def:  many applications of c_fix=format + tests
1235         * fixinc/check.diff:  regenerated
1236         * fixinc/fixincl.x:  regenerated
1237
1238 Sat May 20 09:30:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1239
1240         * alias.c: Clarify some comments.
1241         (record_base_value): REGNO is unsigned.
1242         * rtl.h (record_base_value): Likewise.
1243
1244         * alias.c (aliases_everything_p): Don't special-case QImode here.
1245         * c-common.c (c_get_alias_set): Do it here.
1246         Handle BIT_FIELD_REF by getting alias info for arg.
1247         Use POINTER_TYPE_P.
1248
1249 2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
1250
1251         * mklibgcc.in: Restore rule to create ${dir}.
1252
1253 Sat May 20 08:45:41 2000  H.J. Lu  <hjl@gnu.org>
1254
1255         * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
1256         GCC_FOR_TARGET used by MULTILIBS.
1257         * mklibgcc.in: Make sure each .o file depends on the
1258         directory it will be in.
1259         Make the multilib directory depends libgcc.
1260
1261 Sat May 20 08:29:28 2000  H.J. Lu  <hjl@gnu.org>
1262
1263         * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
1264
1265 Sat May 20 07:27:35 2000  Alexandre Oliva  <aoliva@cygnus.com>
1266
1267         * fold-const.c (make_range): Handle degenerated intervals.
1268         Fixes c-torture/execute/991221-1.c
1269
1270 Fri May 19 18:16:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1271
1272         * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
1273         * reload.c (find_equiv_reg): Likewise.
1274         * alias.c (init_alias_analysis): Likewise.
1275         Only call prologue_epilogue_contains on insns.
1276         * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
1277         * bb-reorder.c (hard-reg-set.h): Include earlier.
1278         * haifa-sched.c (hard-reg-set.h): Likewise.
1279         * ifcvt.c (hard-reg-set.h): Likewise.
1280         * local-alloc.c (hard-reg-set.h): Likewise.
1281         * loop.c (hard-reg-set.h): Likewise.
1282         * predict.c (hard-reg-set.h): Likewise.
1283         * regrename.c (hard-reg-set.h): Likewise.
1284         * flow.c (hard-reg-set.h): Likewise.
1285         (reg_set_to_hard_reg_set): New function.
1286         * bitmap.c (regs.h, basic-block.h): No longer include.
1287         (bitmap.h): Now include.
1288         * conflict.c (hard-reg-set.h): Include.
1289         * profile.c (hard-reg-set.h): Likewise.
1290         * print-rtl.c (hard-reg-set.h): Likewise.
1291         * sbitmap.c (hard-reg-set.h): Likewise.
1292         * toplev.c (hard-reg-set.h): Likewise.
1293         * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
1294         * hard-reg-set.h (reg_names): Now constant.
1295         * regs.h (reg_names): Likewise.
1296         * regclass.c (reg_names): Likewise.
1297         * loop.h (basic-block.h): No longer include.
1298         (bitmap.h): Now include.
1299         * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
1300         * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
1301         (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
1302
1303 2000-05-19  Jan Hubicka  <jh@suse.cz>
1304             Richard Henderson  <rth@cygnus.com>
1305
1306         * basic-block.h (struct edge_def): New field "count".
1307         (struct basic_block_def): Likewise.
1308         * flow.c (entry_exit_blocks): Add count fileds.
1309         (split_edge): Keep count information up-to-date.
1310         (dump_edge_info, dump_flow_info): Dump count fields.
1311
1312         * final.c (count_instrumented_edges): Rename to edge from arc.
1313         (end_final): Update users.
1314         * profile.c: Include expr.h, basic-block.h.
1315         (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
1316         (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
1317         (ignore_next_note, return_label_execution_count): Kill.
1318         (bbg_file_name, da_file_name): Kill.
1319         (edge_info, bb_info): New structures.
1320         (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
1321         (count_instrumented_edges, total_num_edges): Rename to edge from arc.
1322         (total_num_edges_instrumented): Likewise.
1323         (init_arc, expand_spanning_tree): Kill.
1324         (fill_spanning_tree, tablejump_entry_p): Kill.
1325         (instrument_edges):  Rewrite from instrument_arcs to use
1326         commit_edge_insertions infrastructure.
1327         (compute_branch_probabilities): Remove arguments; rewrite for
1328         CFG infrastructure; use rtl_dump_file directly.
1329         (branch_prob, find_spanning_tree): Likewise.
1330         (union_groups, find_group): New.
1331         (init_branch_prob): Make bbg_file_name and da_file_name local.
1332         (end_branch_prob): Use rtl_dump_file directly.
1333         (init_edge_profiler): Rename to edge from arc.
1334         (output_arc_profiler): Kill.
1335         (gen_edge_profiler): New.
1336         (output_func_start_profiler): Turn off profiling.  Make the
1337         constructor static when we can.
1338         * rtl.h (branch_prob, end_branch_prob): Update prototypes.
1339
1340         * toplev.c (DFI_flow): Remove.
1341         (DFI_cfg, DFI_life): New.
1342         (dump_file): Update accordingly.
1343         (compile_file): Call end_branch_prob if profile_arc_flag too.
1344         (rest_of_compilation): Move flow1 cfg creation to DFI_cfg.  Do edge
1345         profiling after the CFG is built.  Move flow1 life analysis to
1346         DFI_life.  Always estimate remaining probabilities.
1347
1348 2000-05-19  Richard Henderson  <rth@cygnus.com>
1349
1350         * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
1351
1352         * flow.c (make_edges): The sibling call edge to exit is abnormal.
1353
1354 2000-05-19  Richard Henderson  <rth@cygnus.com>
1355
1356         * jump.c (redirect_jump): Add delete_unused argument.  Don't
1357         remove labels and code following when LABEL_NUSES goes to zero.
1358         (invert_jump): Likewise.
1359         (jump_optimize_1): Fix redirect/invert arguments.
1360         (do_cross_jump, thread_jumps): Likewise.
1361         * flow.c (split_edge): Likewise.
1362         * reorg.c (optimize_skip): Likewise.
1363         (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
1364         * profile.c (instrument_arcs): Likewise.
1365         * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
1366         * rtl.h: Update prototypes.
1367
1368 Fri May 19 12:05:13 2000  Clinton Popetz  <cpopetz@cygnus.com>
1369
1370         * ssa.c (convert_from_ssa): Tell life_analysis we need death 
1371         notes.
1372         (make_regs_equivalent_over_bad_edges): Only look at abnormal
1373         critical edges.
1374
1375 2000-05-19  Zack Weinberg  <zack@wolery.cumb.org>
1376
1377         * cpphash.c (funlike_macroexpand): Make sure not to walk p1
1378         past l1 when deleting whitespace and markers.              
1379
1380         * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
1381         * cpplib.c (do_unassert): Put the list to compare against on
1382         the stack.
1383
1384 2000-05-19  Bruce Korb  <bkorb@gnu.org>
1385
1386         * fixinc/README:  cleaned up old documentation
1387         * fixinc/check.diff: regenerated & verified on OSR5 on ix86
1388         * fixinc/check.tpl: compute the list of needed directories
1389         emit "#if defined(name)" because of conflict
1390         omit machine name differences from output differences
1391         * fixinc/inclhack.def( m88k_multi_incl ):  Use `wrap' function
1392         (machine_name): change test text to use `sed' markers
1393         * fixinc/fixincl.x: regen
1394
1395 Fri May 19 06:49:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1396
1397         * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
1398         a CONSTRUCTOR.
1399
1400 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
1401
1402         * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
1403         it to match the current practice.
1404
1405 2000-05-18  Mark Mitchell  <mark@codesourcery.com>
1406
1407         * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
1408
1409 2000-05-18  Richard Henderson  <rth@cygnus.com>
1410
1411         * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
1412         * rtl.h (insn_dependant_p): Declare it.
1413         * loop.c (strength_reduce): Use it.
1414
1415 2000-05-18  Alexandre Oliva  <aoliva@cygnus.com>
1416
1417         * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
1418         16-bit and 64-bit clean-up.
1419
1420 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
1421
1422         * configure.in (*-pc-msdosdjgpp): Set float_format to none.
1423         * configure: Rebuilt.
1424
1425 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
1426
1427         * genopinit.c: Use $ for escape sequences in optab patterns.
1428         Remove backslashes from optab patterns.  Change $A, $B, $C to
1429         expand to (int) whatever instead of just whatever; remove
1430         explicit (int) from all optab patterns.
1431
1432         * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
1433         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
1434         genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
1435         genrecog.c: Remove private copies of xmalloc, xrealloc, and
1436         xstrdup.
1437
1438 2000-05-18  Richard Henderson  <rth@cygnus.com>
1439
1440         * jump.c (jump_optimize_1): Base minimum insn count during
1441         find_cross_jump on BRANCH_COST.
1442
1443 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
1444
1445         * print-rtl.c (print_rtx): Only print note line number as string
1446         if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
1447         * final.c (final_scan_insn): Do nothing for note line number 0.
1448
1449 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
1450
1451         * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
1452         from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
1453         NOTE_INSN_DELETED_LABEL.
1454
1455 2000-05-18  Nick Clifton  <nickc@cygnus.com>
1456
1457         * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
1458         uninitialised data in .rodata not .bss, and do not interpret an
1459         error in the initialisation value as meaning that the variable
1460         should be placed in the .bss section.
1461
1462 Thu May 18 12:10:18 2000  Philippe De Muyter  <phdm@macqel.be>
1463
1464         * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
1465         not `$ac_cv_prog_cc_cc_c_o'.
1466         * configure: Regenerated.
1467
1468 2000-05-18  Chris Demetriou  <cgd@sibyte.com>
1469             Richard Henderson  <rth@cygnus.com>
1470
1471         * c-common.h (enum c_tree_index): Add g77 type entries.
1472         (g77_integer_type_node, g77_uinteger_type_node): New.
1473         (g77_longint_type_node, g77_ulongint_type_node): New.
1474         * c-decl.c (init_decl_processing): Initialize them.
1475
1476 2000-05-18  Richard Henderson  <rth@cygnus.com>
1477
1478         * config/h8300/h8300.md (subs patterns): Use %G to negate.
1479
1480         * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
1481         (small_power_of_two): Likewise; use exact_log2.
1482         (adds_subs_operand, one_insn_adds_subs_operand): Remove.
1483         (output_adds_subs): Remove.
1484         (two_insn_adds_subs_operand): New.
1485         (split_adds_subs): New.
1486         * config/h8300/h8300-protos.h: Update.
1487         * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
1488         (CONST_OK_FOR_L): Match strict adds operands.
1489         (CONST_OK_FOR_N): Match struct subs operands.
1490         * config/h8300/h8300.md (adds_subs insns): Remove.
1491         (addhi patterns): Output adds/subs directly.
1492         (addsi_h8300h): Likewise.
1493         (addhi/addsi splitters): New.  Decompose two_insn_adds_subs_operand.
1494
1495 2000-05-18  Zack Weinberg  <zack@wolery.cumb.org>
1496
1497         * cppexp.c (parse_assertion): New.
1498         (lex): Call it for CPP_HASH.  Remove CPP_ASSERTION case.
1499         (_cpp_parse_expr): Remove case '#'.  Don't set
1500         parsing_if_directive.
1501         * cpphash.c (collect_objlike_expansion,
1502         collect_funlike_expansion, collect_params,
1503         _cpp_create_definition): The list no longer has a trailing
1504         VSPACE token.
1505         * cpphash.h (enum node_type): Add T_ASSERTION.
1506         (struct hashnode): Remove aschain, add pred.
1507         (struct predicate): New.
1508         Update prototypes.
1509
1510         * cpplex.c (expand_token_space): Handle both offset and
1511         nonoffset lists.
1512         (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1513         (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1514         _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1515         _cpp_equiv_toklists): New.
1516         (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1517         stop at any single-character token, not just newline.
1518         (_cpp_lex_token): Remove special cases for #define and #if.
1519         (cpp_get_token): Expect # as a separate token type.  Remove
1520         DIRECTIVE case.
1521         (_cpp_get_directive_token): Remove DIRECTIVE case.
1522         (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1523
1524         * cpplib.c (_cpp_check_directive): Set dirno and
1525         SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1526         (_cpp_handle_directive): Run # <number> through the same logic
1527         as normal directives.
1528         (do_define): Don't set parsing_define_directive.  Use
1529         _cpp_scan_until.  The list does not have a VSPACE at the end.
1530         (do_if): Save, clear, and restore only_seen_white around 
1531         _cpp_parse_expr.
1532         (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1533         (do_assert, do_unassert): Rewrite.
1534
1535         * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1536         (LIST_OFFSET): New flag.
1537         (struct cpp_toklist): Replace dir_handler and dir_flags with
1538         dirno and flags.
1539         (struct cpp_reader): Remove parsing_if_directive and
1540         parsing_define_directive.
1541
1542 2000-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1543
1544         * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1545         following the cabs decl which terminate on the following line.
1546         Add the corresponding test_text case.
1547
1548 2000-05-18  Neil Booth  <NeilB@earthling.net>
1549
1550         * cppinit.c (cpp_reader_init): Initialise col_adjust and
1551         default tab stop size.
1552         (no_num, OPT_ftabstop): New.
1553         (handle_option): Handle "ftabstop=" command-line option.
1554         (print_help): Document it.
1555         * cpplex.c (COLUMN): Remove.
1556         (handle_newline): Reset col_adjust.
1557         (skip_whitespace): Update col_adjust as tabs encountered.
1558         (_cpp_lex_line): Update to use col_adjust.  Call
1559         skip_whitespace for all whitespace.
1560         * cpplib.h (struct cpp_options): New member tabstop.
1561         (struct cpp_reader): New member col_adjust.
1562         (CPP_BUF_COL): Update.
1563         (CPP_BUF_COLUMN): New.
1564         * cpp.texi: Document "-ftabstop=" command line option.
1565
1566 Wed May 17 18:19:41 2000  Philippe De Muyter  <phdm@macqel.be>
1567
1568         * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1569         files.
1570         * configure: Rebuilt.
1571
1572 Wed May 17 18:06:12 2000  John David Anglin <dave@hiauly1.hia.nrc.ca>
1573
1574         * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1575
1576         * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1577         HOST_BITS_PER_WIDE_INT is >= 64.
1578
1579 2000-05-17  Richard Henderson  <rth@cygnus.com>
1580
1581         * jump.c (jump_optimize_1): Remove inactive but real insns
1582         in jump-to-next-insn optimization.
1583
1584 2000-05-17  Richard Henderson  <rth@cygnus.com>
1585
1586         * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1587         unless OPTIMIZE_MODE_SWITCHING.  Conditionally set no_new_pseudos.
1588         Don't call recompute_reg_usage if no_new_pseudos is true.
1589         * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1590         Return true if we did work; update global life information.
1591         * basic-block.h (optimize_mode_switching): Update decl.
1592
1593 2000-05-17  Neil Booth  <neilb@earthling.net>
1594
1595         * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1596
1597 2000-05-17  Zack Weinberg  <zack@wolery.cumb.org>
1598
1599         * cpplib.c: New feature, #pragma system_header.
1600         * cpp.texi: Document special treatment of system headers, and
1601         the various mechanisms to get a header that special treatment.
1602
1603 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1604
1605         * system.h (offsetof): Define at the very end, to ensure we prefer
1606         the platform's definition if available.
1607
1608 2000-05-16  Bruce Korb  <bkorb@gnu.org>
1609
1610         * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1611         * fixinc/server.c: likewise
1612         * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1613         + #ifdef debugging code + use #def constant for
1614         sub-pattern count
1615         * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1616         on C++ math namespace
1617
1618 2000-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1619
1620         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1621         Don't check the return value of sprintf.  Use asprintf to avoid
1622         buffer overflows.
1623
1624 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1625
1626         * flags.h (warn_unused_function, warn_unused_label,
1627         warn_unused_parameter, warn_unused_variable, warn_unused_value):
1628         Replace ``warn_unused''.
1629         (set_Wunused): Add declaration.
1630         * toplev.c (set_Wunused): New function.
1631         (warn_unused_function, warn_unused_label, warn_unused_parameter,
1632         warn_unused_variable, warn_unused_value): New variables.
1633         (W_options): Add -Wunused-function, -Wunused-function,
1634         -Wunused-label, -Wunused-parameter, -Wunused-variable and
1635         -Wunused-value.  Delete -Wunused.  Handled in decode_W_option.
1636
1637         * toplev.c (decode_W_option): Update -Wunused flags by calling
1638         set_Wunused.
1639         * c-decl.c (c_decode_option): Ditto for -Wall.
1640
1641         * stmt.c (expand_expr_stmt, expand_expr_stmt,
1642         warn_about_unused_variables): Replace warn_unused with more
1643         explicit warn_unused_value et.al.
1644         * function.c (expand_function_end): Ditto.
1645         * c-typeck.c (internal_build_compound_expr,
1646         internal_build_compound_expr): Ditto.
1647         * c-decl.c (poplevel, pop_label_level): Ditto.
1648         * toplev.c (check_global_declarations): Replace warn_unused with
1649         check for either warn_unused_function or warn_unused_variable.
1650
1651         * gcc.1, invoke.texi (Warning Options): Document
1652         -Wunused-function, -Wunused-function, -Wunused-label,
1653         -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1654
1655 Wed May 17 10:28:12 2000  Philippe De Muyter  <phdm@macqel.be>
1656
1657         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1658         $(srcdir), not in the current directory.
1659
1660 2000-05-16  Richard Henderson  <rth@cygnus.com>
1661
1662         * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1663         assembler supports it.
1664         (.fini, .init): Use a gp-relative indirect call.
1665         (__do_global_dtors_aux): Preserve the gp; rebundle.
1666         (__do_frame_setup): Likewise.
1667         * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1668         (.init): Use a gp-relative indirect call.
1669         (__do_global_ctors_aux): Preserve the gp.
1670
1671 2000-05-16  Richard Henderson  <rth@cygnus.com>
1672
1673         * flow.c (commit_one_edge_insertion): Be prepared for a return
1674         insn to be inserted on the edge with a normal jump.
1675         * jump.c (jump_optimize_1): Don't look to create return isns.
1676
1677         * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1678         * jump.c (jump_optimize_1): Likewise.
1679         (returnjump_p): Verify the argument is a JUMP_INSN.
1680         * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1681
1682 2000-05-16  Nick Clifton  <nickc@cygnus.com>
1683
1684         * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1685         GET_RTX_CLASS (GET_CODE ()) == 'i'.
1686         (large_insn_p): Ditto.
1687         (m32r_is_insn): New function: Return true if the insn contains
1688         an executable instruction.
1689         (m32r_adjust_insn): Use m32r_is_insn.
1690         (m32r_sched_reorder): Use m32r_is_insn.
1691         (m32r_sched_variable_issue): Use m32r_is_insn.
1692
1693 2000-05-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1694
1695         * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1696         VAR_DECL.
1697
1698         * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1699
1700         * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1701         according to given options.
1702
1703 Tue May 16 12:17:31 2000  Jeffrey A Law  (law@cygnus.com)
1704
1705         * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1706         if X has VOIDmode either.
1707         (LIMIT_RELOAD_CLASS): Similarly.
1708
1709         * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1710         not "general_operand" to match the processor's capabilities.
1711
1712 2000-05-16  Bruce Korb  <bkorb@gnu.org>
1713
1714         * fixinc/README:  corrected return address
1715         * fixinc/check.diff:  regenerate, now that test works
1716         * fixinc/fixfixes.c(format_fix,format_write): reformatted
1717         (char_macro_def_fix,char_macro_use_fix): corrected and
1718         rewrote to use regex to parse the text
1719         * fixinc/inclhack.def: more testing
1720         * fixinc/fixincl.x:  regenerated
1721
1722         * fixinc/inclhack.def: added several "test_text" attributes
1723         changed several fixes to use `c_fix = format'
1724         re-alphabetized the fixes
1725
1726         * fixinc/check.diff: regenerate
1727         * fixinc/fixincl.x: regenerate
1728         * fixinc/check.tpl: added `sparc' and `netinet' to the list
1729         of created dirs
1730
1731
1732 2000-05-16  Alexandre Oliva  <aoliva@cygnus.com>
1733
1734         * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1735
1736 2000-05-15  Richard Henderson  <rth@cygnus.com>
1737
1738         * toplev.c (rest_of_compilation): Run full jump pass before
1739         find_basic_blocks of flow2.
1740
1741 2000-05-15  Richard Henderson  <rth@cygnus.com>
1742
1743         * jump.c: Fix typos and clarify commentary from last change.
1744         (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1745         (safe_to_remove_jump_p): Remove.
1746         (condjump_label): Use pc_set.
1747
1748 2000-05-15  Richard Henderson  <rth@cygnus.com>
1749
1750         * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1751         that get in the way after reload.
1752         (cond_exec_process_if_block): Skip a label heading THEN block.
1753
1754 2000-05-15  Richard Henderson  <rth@cygnus.com>
1755
1756         * varasm.c (output_constant_pool): Abort instead of converting
1757         (improperly) deleted labels to zero.
1758
1759 2000-05-16  Neil Booth  <NeilB@earthling.net>
1760
1761         * cpplex.c (parse_string2): Update comment.
1762         (cpp_lex_line): No special assertion treatment for '('.
1763         * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1764         * cpplib.h (SYNTAX_ASSERT): Remove.
1765
1766 Mon May 15 21:45:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1767
1768         * jump.c (condjump_p):  Mark as depreached.
1769         (any_condump_p): New.
1770         (any_uncondump_p): New.
1771         (pc_set): New.
1772         (safe_to_remove_jump_p): New.
1773         * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1774         safe_to_remove_jump_p): Declare.
1775
1776 Mon May 15 21:07:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1777
1778         * calls.c: Re-install both patches reverted by last patch.
1779         (struct arg_data): New field tail_call_reg.
1780         (initialize_argument_information): Initialize tail_call_reg
1781         (load_register_parameters): New argument flags, use
1782         tail_call_reg when emiting tail call sequence.
1783         (expand_call): Update call of load_register_parameters;
1784         copy unadjusted_args_size to adjusted_args_size.
1785
1786 Mon May 15 19:01:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1787
1788         * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1789         and bct_p parameters to flags.
1790         * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1791         * rtl.h (loop_optimize): Update prototype.
1792         * toplev.c (rest_of_compilation): Update call of loop_optimize.
1793
1794 2000-05-15  Jakub Jelinek  <jakub@redhat.com>
1795
1796         * calls.c (expand_call): Move expand_start_target_temps call after
1797         start_sequence().
1798
1799 2000-05-15  Neil Booth  <NeilB@earthling.net>
1800
1801         * cpphash.c (trad_stringify, warn_trad_stringify,
1802         collect_params): Make some pointers pointers to const.
1803         * cpplex.c (auto_expand_name_space) Guaranteed to always
1804         expand by at least one character.
1805         (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1806         (struct token_spelling): Use const U_CHAR * rather than PTR.
1807         (expand_name_space): Fix up token pointers if name space
1808         is moved when expanding.
1809         (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1810         parse_string2, save_comment, spell_token, cpp_output_list):
1811         Update so the routines handle tokens with a direct pointer to
1812         their text, rather than an offset into the token's list's namebuf.
1813         (_cpp_lex_line): Rearrange for clarity.
1814
1815         * cpplib.c (_cpp_check_directive): Similarly.
1816         (do_define): Make SYM a pointer to const.
1817         * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1818         (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1819         (TOK_OFFSET): Delete.
1820         (TOK_NAME): Update.
1821
1822 2000-05-14  Geoffrey Keating  <geoffk@cygnus.com>
1823
1824         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1825         64-bit ABI.
1826
1827         * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE 
1828         into account.
1829         (logical_u_operand): Delete.
1830         (non_logical_cint_operand): Rewrite to take MODE into account.
1831         (non_logical_u_cint_operand): Delete.
1832         (boolean_operator): New function.
1833         (print_operand): Add new %q operand.
1834         * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1835         remove logical_u_operand and non_logical_u_cint_operand,
1836         update logical_operand and non_logical_cint_operand.
1837         * config/rs6000/rs6000.md: Rewrite the patterns for performing
1838         logical operations to use %q.
1839
1840         * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1841         (movdi): Make similar to movsi.
1842         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1843         is no such thing as a DImode CONST_DOUBLE.
1844         * config/rs6000/rs6000.c (output_toc): Likewise.
1845         
1846         * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1847         codes when old mnemonics are in use.  Print register names
1848         for cc registers when requested.
1849
1850         * optabs.c (expand_float): Don't allow mode widening that causes
1851         double rounding.
1852
1853         * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1854         flags to their current names -maix64 and -maix32.
1855
1856 2000-05-14  Bruce Korb  <bkorb@gnu.org>
1857
1858         * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1859         and/or after current text of file
1860         * fixinc/fixlib.c(must_malloc):
1861         * fixinc/fixlib.h(must_malloc): + reformatting
1862         * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1863         with usages of ``c_fix = wrap;''
1864         Add several tests and use the ``c_fix = format'' fixer more.
1865         * fixinc/fixincl.x: regen
1866         * fixinc/check.diff: regen
1867         * fixinc/check.tpl: emit the associated header with the missing
1868         test message
1869
1870 Sun May 14 17:58:59 2000  Hans-Peter Nilsson  <hp@axis.com>
1871
1872         * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1873         variables $src and $dst.
1874         
1875 2000-05-13  Gabriel Dos Reis <gdr@codesourcery.com>
1876
1877         * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1878         (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1879         (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1880         (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1881         fields. 
1882         (set_message_prefixing_rule): Declare.
1883
1884         * diagnostic.c: (current_prefixing_rule): New variable.
1885         (set_message_prefixing_rule): Define.
1886         (output_set_prefix): Adjust buffer->emitted_prefix_p.
1887         (init_output_buffer): Adjust Initialization.
1888         (output_emit_prefix): Rewrite.  Take prefixing rules into account.
1889         
1890 Sat May 13 11:05:47 2000  Philippe De Muyter  <phdm@macqel.be>
1891
1892         * ifcvt.c (if_convert): Do not free NULL.
1893
1894 2000-05-12  Nick Clifton  <nickc@cygnus.com>
1895
1896         * config/fr30/fr30.c (fr30_move_double): New function:  Emit code
1897         to move a double word value.
1898         (di_operand): New function: Return true if the operand is suitbale
1899         for a double word move operation.
1900         (nonimmediate_di_operand): New function: Return true if the
1901         operand is a DImode register or MEM.
1902
1903         * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1904         nonimmediate_di_operand.
1905
1906         * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1907         nonimmediate_di_operand.
1908
1909         * config/fr30/fr30.md (movdi): New pattern.  Required because
1910         other patterns generate DImode results.
1911         (movdi_insn): New pattern.
1912
1913 2000-05-12  Richard Henderson  <rth@cygnus.com>
1914
1915         * config/alpha/alpha.c (struct shadow_summary): Define
1916         bitfields as type unsigned int.
1917
1918 Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>
1919
1920         * config/avr/t-avr: Added definition of FLOAT while generates
1921         fp-bit.c
1922
1923         * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1924         peepholes for tst+jump = sbrs/sbrc optimization.
1925
1926 Fry May 12 20:03:00 CEST 2000  Jan Hubicka  <jh@suse.cz>
1927
1928         * expr.c (emit_push_insn): Do not adjust stack pointer when
1929         preallocating.
1930
1931 Fri May 12 19:03:58 2000  Philippe De Muyter  <phdm@macqel.be>
1932
1933         * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1934         * system.h (offsetof): ... to here.
1935
1936 2000-05-12  Richard Henderson  <rth@cygnus.com>
1937
1938         * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1939         * final.c (final_end_function): Use app_disable.  Rearrange note
1940         handling into a switch.  Emit deleted labels.
1941         (output_asm_label): Generate label strings for deleted labels.
1942         * flow.c (tail_recursion_label_list): New.
1943         (find_basic_blocks_1): Set label_value_list directly.  Collect list
1944         of tail recursion labels from call_placeholders.  Don't add deleted
1945         labels to the label value list.
1946         (cleanup_cfg): Use free_EXPR_LIST_list.
1947         (flow_delete_insn_chain): Turn non-removable labels into notes.
1948         (flow_delete_block): Don't disable deleting the block because of
1949         a non-removable label.
1950         (tail_recursion_label_p): New.
1951         (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1952         because of a label.
1953         (merge_blocks_move_successor_nojumps): Likewise.  Also move a
1954         jump table.
1955         (merge_blocks): Disable a merge because of tail recursion labels.
1956         * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1957         Use a more accurate measure of not merging the join block.
1958         (find_if_block): Don't disable conversion because of a label.
1959         (find_if_case_1, find_if_case_2): Likewise.
1960         * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1961         element when copying.
1962         (squeeze_notes): Also leave EH notes.
1963         (mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
1964         REG_LABEL notes.
1965         (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1966         deleting a label.
1967         * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1968         NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
1969         referring to a deleted label.  Convert tail handling to a switch.
1970         * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1971         for NOTE_INSN_DELETED_LABEL.
1972         (NOTE): Fix commentary.
1973         * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1974         (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1975         (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1976         (LABEL_NUSES, LABEL_REFS): Likewise.
1977         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1978
1979 2000-05-12  Bruce Korb  <bkorb@gnu.org>
1980
1981         * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1982         * fixinc/check.diff: updated
1983         * fixinc/inclhack.def: corrected & added some test_text-s
1984         * fixinc/genfixes: removed unneeded options to autogen invocation
1985         * fixinc/fixincl.tpl: Specified the output file
1986         * fixinc/fixfixes.c: visual appearance
1987         * fixinc/fixincl.x: regenerate
1988
1989 2000-05-12  Zack Weinberg <zack@wolery.cumb.org>
1990
1991         * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1992         CTRL_defn_fix): Delete.
1993         (fix_char_macro_defines, fix_char_macro_uses): Rename to
1994         char_macro_def_fix and char_macro_use_fix, respectively.  Put
1995         them into the FIXUP_TABLE.  Get the string to search for from
1996         a c_fix_arg.
1997
1998         (format_write): New function.
1999         (format_fix): Use it.
2000
2001         (FIX_PROC_HEAD): Constify text parameter.
2002         (machine_name_fix): Constify all char *s.
2003         * fixtests.c (skip_quote): Remove double static.
2004
2005         * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
2006         ctrl_use_quotes): Update for new scheme.
2007         * fixincl.x: Regenerate.
2008
2009 2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
2010
2011         * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
2012         DWARF2_DEBUG.
2013         (DWARF2_ASM_LINE_DEBUG_INFO): Define.
2014         (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
2015
2016 2000-05-11  Robert Lipe <robertlipe@usa.net>
2017
2018         * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
2019         * fixincl.x: Regenerate.
2020
2021 2000-05-11  Richard Henderson  <rth@cygnus.com>
2022
2023         * calls.c: Revert both 05-09 patches.
2024
2025 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
2026
2027         * config/mn10300/mn10300.c (print_operand): Print FP constants in
2028         hexadecimal.
2029         * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
2030         for FP values.
2031
2032         * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
2033         and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
2034
2035 2000-05-11  Jason Merrill  <jason@casey.cygnus.com>
2036
2037         * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
2038
2039 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
2040
2041         * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
2042
2043 Thu May 11 22:28:05 2000  Denis Chertykov  <denisc@overta.ru>
2044
2045         * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
2046         * config/avr/avr.c (jump_over_one_insn_p): New function.
2047         * config/avr/avr.md: New peepholes added. Output test and
2048         conditional jump to "sbrc" or "sbrs" command.
2049
2050 2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
2051
2052         * cppmain.c (main): Use IS_DIR_SEPARATOR.
2053
2054 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
2055
2056         * except.c (find_exception_handler_labels_1): New function.
2057         (find_exception_handler_labels): Split into two functions, dive
2058         into CALL_PLACEHOLDERs when looking for exception handler labels.
2059
2060 2000-05-11 Stan Cox <scox@cygnus.com>
2061
2062         * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
2063         * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
2064         * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
2065
2066 2000-05-11  Bruce Korb  <bkorb@gnu.org>
2067
2068         * fixinc/fixfixes.c (double_slash_fix):  obsolete
2069         (else_endif_label_fix): obsolete
2070         (format_fix):  new, unused as yet
2071         (main): obsolete
2072         * fixinc/fixlib.h: added fix description struct for use by format_fix
2073         * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
2074         * fixinc/Makefile.in:  compile fixfixes.c and fixtests.c as separate
2075         modules.  Removed the vestiges of the script version.
2076         Added support for "make check".
2077         * fixinc/check.diff: base diff file (needs work!!)
2078         * fixinc/check.tpl: quiet the fixup output
2079         * fixinc/fixtests.c (main): obsolete
2080         * fixinc/fixincl.sh:  don't bother copying fixincl to ..
2081         * fixinc/fixincl.tpl:  provide for arguments to c_fix routines
2082
2083 Thu May 11 11:57:02 MET DST 2000  Jan Hubicka <jh@suse.cz>
2084
2085         * toplev.c (rest_of_compilation): Remove dead code after
2086         combine.
2087
2088 2000-05-11  Zack Weinberg  <zack@wolery.cumb.org>
2089
2090         * cpphash.c (collect_funlike_expansion): Make "# is not
2091         followed by a macro argument name" a pedwarn, not an error.
2092         Preserve the # in the output.  Suppress the warning if lang_asm.
2093
2094 Thu May 11 01:19:31 2000  Jeffrey A Law  (law@cygnus.com)
2095
2096         * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
2097         * configure: Rebuilt.
2098
2099 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
2100
2101         * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
2102
2103 2000-05-10  Kazu Hirata  <kazu@hxi.com>
2104
2105         * combine.c (try_combine): Fix a typo.
2106
2107 Wed May 10 21:31:44 2000  Jim Wilson  <wilson@cygnus.com>
2108
2109         * config/ia64/ia64.md (insv): Add comment.
2110
2111 2000-05-10  Richard Henderson  <rth@cygnus.com>
2112
2113         * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
2114         * mklibgcc.in: Rewrite to not use functions.  Don't shortcut
2115         dependancies on FPBIT and DPBIT.
2116
2117 2000-05-10  Nick Clifton  <nickc@redhat.com>
2118
2119         * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
2120         when optimising for size.
2121         (mark_used_regs:) Ditto.
2122         (try_pre_increment_1): Ditto.
2123
2124 2000-05-10  Zack Weinberg  <zack@wolery.cumb.org>
2125
2126         * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
2127         Make error message friendlier.
2128
2129         * cpphash.h (struct hashnode): Use struct hack for name
2130         member.
2131         * cpphash.c (struct hashdummy): New.
2132         (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
2133         (make_HASHNODE): No need to set ->name pointer.  Correct
2134         setting of p.
2135         (cpp_lookup): Make 'dummy' a struct hashdummy.  Tidy up a bit.
2136
2137 2000-05-10  Richard Henderson  <rth@cygnus.com>
2138
2139         * flow.c (find_basic_blocks_1): Remove any spare bb_note
2140         after completion.
2141
2142 2000-05-10  Bruce Korb  <bkorb@gnu.org>
2143
2144         * fixinc/gnu-regex.c:  reg_syntax_t re_syntax_options must be static
2145
2146 2000-05-10  Eric Schweitz  <schweitz@nortelnetworks.com>
2147
2148         * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
2149         after we enter .debug.
2150
2151 2000-05-10  Jason Merrill  <jason@casey.cygnus.com>
2152
2153         * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
2154         abstract instance of a nested inline function.
2155
2156         * stor-layout.c (finish_record_layout): finalize_type_size
2157         before laying out the pending_statics.
2158
2159 Wed 10 May 09:36:47 2000  Neil Booth  <NeilB@earthling.net>
2160
2161         * cpplex.c (spell_token): New function.
2162         (spell_string, spell_comment, spell_name): fold into
2163         spell_token.    
2164         (I, S): Add macros.
2165         (E, H): Remove macros.
2166         (save_comment): Save comment opening characters too.
2167         (_cpp_lex_file): Update to use spell_token.  Tidy up comment
2168         handling.
2169         * cpplib.h (I, S): Add macros.
2170         (E, H): Remove macros.
2171         (TTYPE_TABLE): Update entries for new speller.
2172         (SYNTAX_ASSERT): Remove.
2173
2174 Wed 10 May 09:08:30 2000  Neil Booth  <NeilB@earthling.net>
2175
2176         * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
2177         when removing escaped newlines.  Reverse sense of test for
2178         escaped newline.
2179
2180 2000-05-09  Richard Henderson  <rth@cygnus.com>
2181
2182         * flow.c (find_basic_blocks_1): Do not delete the first
2183         bb_note we run across.
2184         (create_basic_block): Use reorder_insns to move an existing
2185         bb_note to the correct place.
2186
2187 2000-05-09  Richard Henderson  <rth@cygnus.com>
2188
2189         * calls.c (expand_call): Increment currently_expanding_call
2190         before calling optimize_tail_recursion.
2191
2192 Tue May  9 18:54:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2193
2194         * reload1.c (reload_combine): Fix errors in last change.
2195
2196 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
2197
2198         * gcc.c (used_arg): Skip over a semicolon at the end of the
2199         split-up loop; don't break out of it.
2200
2201         * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
2202         (tree.o): Depend on output.h.
2203
2204         * c-decl.c (pending_invalid_xref_file,
2205         current_function_prototype_file): Constify.
2206         (pushdecl): Constify a local char *.
2207         (define_label): Constify filename parameter.
2208         * c-lex.c (init_parse): Constify parameter and return value.
2209         * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
2210         * c-tree.h: Update prototypes.
2211         * c-parse.in: Constify filename member of %union, and if_stmt_file.
2212         * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
2213         objc/objc-parse.c: Regenerate.
2214
2215         * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
2216         * dwarfout.h: Update prototypes.
2217         * expr.c (expand_expr): Constify a local char *.
2218         * flags.h: Constify main_input_filename.
2219         * function.c (expand_function_end): Constify filename parameter.
2220         * genrecog.c (make_insn_sequence): Use a character array for
2221         c_test_pos.
2222         (main): Remove unused variables.
2223         * input.h: Constify input_filename, main_input_filename, and
2224         file_stack.name.  Update prototypes.
2225         * output.h: Declare first_global_object_name and
2226         weak_global_object_name here, as const char *.
2227         * stmt.c (expand_asm_operands): Constify filename parameter.
2228         * toplev.c (compile_file, push_srcloc, debug_start_source_file):
2229         Constify filename parameter.
2230         (input_filename, main_input_filename): Constify.
2231         * toplev.h: Update prototypes.
2232         * tree.c: Include output.h.  Don't declare
2233         first_global_object_name or weak_global_object_name.  Clean up string
2234         bashing in get_file_function_name_long.
2235         * tree.h (struct tree_decl): Constify filename member.
2236         (input_filename): Constify.
2237         Update prototypes.
2238         * varasm.c (first_global_object_name, weak_global_object_name):
2239         Constify.
2240         (assemble_start_function, assemble_variable): Clean up string bashing.
2241
2242         * gcc.c: Constify all spec-related strings initialized,
2243         transitively, from string constants.  Constify all strings
2244         and string variables related to multilibs.
2245         (set_spec, read_specs): Cast argument to free to PTR.
2246         (used_arg): Do not modify multilib_matches.  Use strncmp plus
2247         length comparison to compare multilib switches.
2248         * genmultilib: Constify everything declared in multilib.h.
2249
2250 Tue May  9 22:28:03 2000  Denis Chertykov  <denisc@overta.ru>
2251
2252         * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
2253         as deleted.
2254
2255 Tue May  9 20:52:43 2000  Denis Chertykov  <denisc@overta.ru>
2256
2257         * config/avr/avr-protos.h (extra_constraint): change a type of
2258         second argument from char to int to avoid warnings.
2259         (asm_output_byte): Likewise.
2260         
2261         * config/avr/avr.c (MAX_LD_OFFSET) New macro.
2262         (initial_elimination_offset): Handle elimination from
2263         FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
2264         (legitimate_address_p): Use MAX_LD_OFFSET.
2265         (legitimize_address): Likewise.
2266         (out_movqi_r_mr): Likewise.
2267         (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
2268         (out_movsi_r_mr): Use MAX_LD_OFFSET.
2269         (out_movsi_mr_r): Likewise.
2270         (out_movqi_mr_r): Likewise.
2271         (out_movhi_mr_r): Likewise.
2272         (notice_update_cc): Correct CC for the ashrqi3 with the shift
2273         count as CONST_INT != 6.
2274         (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
2275         shift count is a CONSTANT_P, but not a CONST_INT.
2276         (ashlhi3_out): Coding style modifications.
2277         (ashlsi3_out): Likewise.
2278         (ashrhi3_out): Likewise.
2279         (ashrsi3_out): Likewise.
2280         (lshrhi3_out): Likewise.
2281         (lshrsi3_out): Likewise.
2282         (ashrqi3_out): Generate shift for any known constant count without
2283         scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
2284         but not a CONST_INT.
2285         (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
2286         shift count is a CONSTANT_P, but not a CONST_INT. 
2287         (extra_constraint): change a type of
2288         second argument from char to int to avoid warnings.
2289         (asm_output_byte): Likewise.
2290         (asm_file_end): Output size generated commands count as a hex
2291         number too.
2292
2293         * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
2294
2295         * config/avr/avr.md (addhi3): Fragment commented by &&0 is
2296         removed.
2297         (ashlqi3): Values of "length" attribute changed. Shift count
2298         uses constraints 'n' instead of 'i'.
2299         (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
2300         shifts without clobber register.
2301         (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
2302         (call_insn): Correct test for which_alternative == 1 (was 0).
2303         (call_value_insn): Likewise.
2304         
2305         * config/avr/t-avr: Remove definition of FLOAT while generates
2306         fp-bit.c
2307
2308 2000-05-09  Bruce Korb  <bkorb@gnu.org>
2309
2310         * fixinc/check.tpl:  Template for checking fixes
2311         * fixinc/inclhack.def:  Added 'test_text' for many fixes
2312         disable hpux8_bogus_inlines on SCO
2313         * fixinc/fixinc.sco:  Oh, yes, we don't need this any more.
2314
2315 Tue May  9 16:30:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2316
2317         * calls.c (expand_call): Reorganize somewhat in order
2318         to avoid unnecesary recalculation inside loop and make
2319         tail call failure code cleaner.
2320         
2321 Tue May  9 06:30:20 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2322
2323         * alias.c (nonlocal_reference_p): Minor reformatting.
2324         * reload.c (find_equiv_reg): Simplify logic for
2325         CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
2326         some some reformatting.
2327         * reload1.c (reload_combine): Don't assume everything in
2328         CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
2329
2330 2000-05-08  Richard Henderson  <rth@cygnus.com>
2331
2332         * final.c (current_insn_predicate): New.
2333         (final_scan_insn): Set it.
2334         * output.h (current_insn_predicate): Declare.
2335
2336         * ifcvt.c (cond_exec_process_insns): New argument prob_val.
2337         Attach it to call insns.
2338         (cond_exec_process_if_block): Track probability for true and
2339         false branches.
2340         (dead_or_predicable): Likewise.
2341
2342         * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
2343         (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
2344         (PROB_VERY_LIKELY, PROB_ALWAYS): New.
2345         (estimate_probability, expected_value_to_br_prob): Use them.
2346
2347         * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
2348         * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
2349         (ia64_expand_prediction): New.
2350         (emit_insn_group_barriers): Don't look at notes.  Emit barriers
2351         as needed after calls.
2352         (ia64_epilogue_uses): Mark b0 used.
2353         * config/ia64/ia64.md (beq_true, beq_false): Remove.
2354         (bne_true, bne_false): Remove.
2355         (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
2356         (br_true, br_false): New.  Use predicate_operator and
2357         ia64_expand_prediction.
2358         (return_true, return_false): Likewise.
2359         (call_internal): Use ia64_expand_prediction.  Don't emit stop bit.
2360         (call_internal1, call_value_internal): Likewise.
2361         (call_value_internal1, call_multiple_values_internal1): Likewise.
2362
2363         * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
2364
2365         * config/ia64/ia64.md (extendsfdf2): Split only after reload.
2366
2367 2000-05-08  Richard Henderson  <rth@cygnus.com>
2368
2369         * rtlanal.c (may_trap_p): Consider old-style and volatile
2370         asms to trap.
2371
2372 Mon May  8 17:16:48 2000  Jim Wilson  <wilson@cygnus.com>
2373
2374         * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
2375
2376 2000-05-08  Richard Henderson  <rth@cygnus.com>
2377
2378         * config/ia64/ia64.h (predicate_operator): Declare.
2379
2380         * config/ia64/ia64.md (extendsfdf2): Split the nop case out
2381         of existance.
2382
2383         * gensupport.c (process_rtx): Copy and post-process each member
2384         of the define_insn rtvec individually.
2385
2386 Mon  8 May 22:17:35 2000  Neil Booth  <NeilB@earthling.net>
2387
2388         * cpplex.c (spell_token): New function.
2389         (TOKEN_LEN): Add 1 for whitespace.
2390         (_cpp_lex_file): Update to use spell_token.
2391         * cpplib.h (E): Remove.
2392         (TTYPE_TABLE): Update CPP_VSPACE entry.
2393
2394 2000-05-08  Richard Henderson  <rth@cygnus.com>
2395
2396         * flow.c (init_propagate_block_info): Watch out for conditional
2397         branch to next instruction, and thus one outgoing edge.
2398
2399         * config/ia64/ia64.c (ia64_encode_section_info): Exit early
2400         for global register variables; don't special case __[CD]TOR_LIST__;
2401         mind ggc_p for string allocation.
2402
2403 2000-05-08  Nick Clifton  <nickc@cygnus.com>
2404
2405         * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
2406
2407 2000-05-08  Bruce Korb  <bkorb@gnu.org>
2408
2409         * fixinc/mkfixinc.sh:  fixinc.sco is no longer used
2410         i?86-*-msdosdjgpp* no longer uses fixincludes
2411         * fixinc/genfixes:  inclhack.sh and fixincl.sh are no longer generated
2412         * fixinc/inclhack.sh:  deleted
2413         * fixinc/hackshell.tpl:  deleted
2414         * fixinc/inclhack.tpl:  deleted
2415         * fixinc/Makefile.in:  Remove dependencies on above
2416         * fixinc/fixincl.sh:  "DO NOT EDIT" text modified
2417
2418 2000-05-08  Andreas Jaeger  <aj@suse.de>
2419
2420         * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
2421         support.
2422
2423 2000-05-07  Zack Weinberg  <zack@wolery.cumb.org>
2424
2425         * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
2426         substitutions.
2427
2428 Sun  7 May 08:43:53 2000  Neil Booth  <NeilB@earthling.net>
2429
2430         * cpplex.c: Move new lexer definitions and prototypes
2431         to top.  Conditional include these and the code if
2432         NEW_LEXER is defined.  Rename functions whose names
2433         clash if this code included.
2434
2435 Sun May  7 00:54:57 EDT 2000  John Wehle  (john@feith.com)
2436
2437         * rtl.def (COND_EXEC): Clarify.
2438
2439         * i386.md (extendsidi2): Clobber (reg:CC 17) in the
2440         same fashion as zero_extendsidi2.
2441
2442 2000-05-06  Richard Henderson  <rth@cygnus.com>
2443
2444         * config/ia64/ia64.c (predicate_operator): New.
2445         (ia64_print_operand): Handle 'J'.
2446         (rtx_needs_barrier): Handle COND_EXEC.
2447         * config/ia64/ia64.h (BRANCH_COST): Define.
2448         (PREDICATE_CODES): Update.
2449         * config/ia64/ia64.md: Docuement used unspec values.
2450         (attr predicable): New.
2451         (movxf, movxf_internal): New.
2452         (extendsfdf2): Don't comment out nop.
2453         (floatdidf2): Remove.
2454         (truncxfsf2, truncxfdf2, floatdixf2): New.
2455         (abssi2, absdi2): Put the neg in the "true" slot.
2456         (conditional branch instructions): Mark not predicable.
2457         (cmov*_internal): Use predicate_operator.  Split to cond_exec.
2458         (abs*_internal): Likewise.
2459         (alloc, set_bsp): Mark not predicable.
2460         (barrier, insn_group_barrier, flush_cache): Likewise.
2461         (define_cond_exec): New.
2462
2463 2000-05-06  Richard Henderson  <rth@cygnus.com>
2464
2465         * c-decl.c: Include "tm_p.h".
2466
2467         * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
2468         (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
2469         (ia64_expand_op_and_fetch): Declare.
2470         * config/ia64/ia64.c: Include "toplev.h".  Kill trailing whitespace.
2471         (setjmp_operand): Constify variables for XSTR.
2472         (ia64_encode_section_info): Likewise.
2473         (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
2474         values to int.
2475         (ia64_asm_output_external): Constify name.
2476         (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
2477         (process_for_unwind_directive): Provide switch default.
2478         (ia64_expand_compare_and_swap): Remove unused variables.
2479         (ia64_expand_builtin): Likewise.
2480         * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
2481         for printing.
2482
2483         * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
2484         (symbolic_operand, function_operand, setjmp_operand): Likewise.
2485         (shift_count_operand, shift_32bit_count_operand): Likewise.
2486         (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
2487         (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
2488         (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
2489         (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
2490         (ia64_expand_builtin): Likewise.
2491         (call_multiple_values_operation): Make dest_regno unsigned.
2492
2493 2000-05-06  Richard Henderson  <rth@cygnus.com>
2494
2495         * rtl.def (DEFINE_COND_EXEC): New.
2496         * md.texi: Document it.
2497
2498         * gensupport.c (input_file): Remove.
2499         (struct queue_elem): Add lineno.
2500         (rtx_ready_queue): Remove.
2501         (errors): New.
2502         (predicable_default): New.
2503         (predicable_true, predicable_false): New.
2504         (define_attr_queue, define_attr_tail): New.
2505         (define_insn_queue, define_insn_tail): New.
2506         (define_cond_exec_queue, define_cond_exec_tail): New.
2507         (other_queue, other_tail): New.
2508         (queue_pattern): New.
2509         (process_rtx): Add patterns to the appropriate queues.
2510         (is_predicable, identify_predicable_attribute): New.
2511         (n_alternatives, collect_insn_data): New.
2512         (alter_predicate_for_insn, alter_test_for_insn): New.
2513         (shift_output_template, alter_output_for_insn): New.
2514         (process_one_cond_exec, process_define_cond_exec): New.
2515         (init_md_reader): Read the entire file.  Process define_cond_exec.
2516         (read_md_rtx): Return elements from the queues.
2517
2518 2000-05-06  Richard Henderson  <rth@cygnus.com>
2519
2520         * flow.c (mark_set_1): Don't update conditional life info
2521         if the register is not_dead.
2522
2523 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
2524
2525         * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2526         (mostlyclean): Also delete fixincl, fixinc.sh, and
2527         specs.ready, and make clean in the fixinc subdir.
2528
2529 2000-05-06  Richard Henderson  <rth@cygnus.com>
2530
2531         * Makefile.in (gensupport.o): Compile for the host.
2532         (host-prefix gensuuprt.o): Remove.
2533         (genflags.o): Depend on gensupport.h and OBSTACK_H.
2534         (genattrtab.o): Likewise.
2535         (gencodes.o): Depend on gensupport.h.
2536         (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2537         (genpeep.o, genattr.o, genoutput.o): Likewise.
2538
2539         * gensupport.c (obstack, rtl_obstack): New.
2540         (init_md_reader): Initialize rtl_obstack.
2541         * gensupport.h (rtl_obstack): Declare.
2542         (message_with_line): Declare.
2543
2544         * genattr.c: Remove all traces of obstack manipulation.
2545         * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2546         * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2547
2548         * genattrtab.c (obstack, rtl_obstack): Remove.
2549         (main): Don't init rtl_obstack.
2550         * genflags.c: Likewise.
2551
2552         * genrecog.c (message_with_line): Move ...
2553         * gensupport.c: ... here.
2554
2555 2000-05-06  Richard Henderson  <rth@cygnus.com>
2556
2557         * c-typeck.c (build_c_cast): Remove dead code.
2558
2559 2000-05-06  Richard Henderson  <rth@cygnus.com>
2560
2561         * flow.c (split_edge): Don't allocate global_live_at_start for
2562         the new block unless the old blocks had them as well.
2563
2564         * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2565
2566         * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2567         test_bb if a or b uses x.
2568
2569 2000-05-06  Zack Weinberg  <zack@wolery.cumb.org>
2570
2571         * cpphash.h: Remove conditional #define of __extension__.
2572         * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2573         RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2574         (ENABLE_RTL_CHECKING only).
2575         * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2576         CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2577         (ENABLE_TREE_CHECKING only).
2578         * varray.h: Add __extension__ to VARRAY_CHECK macro
2579         (ENABLE_CHECKING only).
2580
2581 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2582
2583         Use new tail-calling mechanism on ARM.
2584         * arm.md (sibcall, sibcall_value): New expands.
2585         (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2586         (tailcalling peepholes): Delete.
2587         (push_multi): Simplify.
2588         * arm.c (lr_save_eliminated): Delete definition.
2589         (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2590         (output_return_instruction): Remove checks on lr_save_eliminated.
2591         (output_arm_prologue): Remove old tail-calling code.
2592         (arm_output_epilogue): New parameter, really_return.  All callers
2593         changed.  Handle tail-calling epilogues.
2594         * arm.h (lr_save_eliminated): Delete declaration.
2595         (frame_pointer_needed): Delete declaration.
2596         * arm-protos.h (arm_output_epilogue): Adjust prototype.
2597
2598         * arm.md (is_thumb): Examine symbol thumb_code, not expression
2599         TARGET_ARM.
2600         * arm.c (thumb_code): Define it.
2601         (arm_override_options): Set it.
2602         * arm.h (thumb_code): Declare it.
2603         
2604 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2605
2606         * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2607
2608 2000-05-06  Richard Earnshaw (reanrsha@arm.com)
2609
2610         * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2611         bogus clobber to insns.
2612         (load_multiple_operation, store_mulitple_operation): Don't check 
2613         for it.
2614         * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2615
2616         * arm.md (and_scc, ior_scc): Add missing mode.
2617
2618         * arm.md (call_value_symbol): Remove predicate from op2.
2619
2620         * arm.h (SPECIAL_MODE_PREDICATES): Define.
2621         
2622 Sat May  6 06:25:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2623
2624         * expr.c (get_subtarget): New function.
2625         (force_operand, expand_expr, do_store_flag): Use it.
2626
2627         * toplev.c (compile_file): Don't take strlen of NAME if null.
2628
2629 2000-05-06  David Edelsohn  <edelsohn@gnu.org>
2630
2631         * xcoffout.c (xcoff_current_include_file,
2632         xcoff_current_function_file, xcoff_lastfile): Constify char *.
2633         (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2634         char *'.
2635         (xcoffout_declare_function): Make name 'const char *'.
2636         (xcoffout_end_epilogue): Make fname 'const char *'
2637         * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2638         xcoffout_declare_function, xcoffout_source_line): Match above.
2639
2640         * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2641         -maix64 is error.
2642         * rs6000.c (print_operand): Fix lossage typo.
2643         (output_cbranch): Remove "cr" decoration for now.
2644         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'. 
2645
2646 Sat May  6 06:55:32 2000  Denis Chertykov  <denisc@overta.ru>
2647
2648         * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2649         constant count.
2650
2651 2000-05-05  Bruce Korb  <bkorb@gnu.org>
2652
2653         * fixinc/genfixes: Improve the matching for make target names
2654
2655 2000-05-05  Catherine Moore  <clm@cygnus.com>
2656
2657         * c-common.c (decl_attributes):  For TYPE_DECLs attach the
2658         attribute to the decl.
2659         * c-decl.c (pushdecl): Propagate the USED attribute to the 
2660         type copy.
2661
2662 2000-05-05  Richard Henderson  <rth@cygnus.com>
2663
2664         * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2665         same way emit_group_load does.
2666
2667 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2668
2669         * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2670
2671         * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2672         (main): Likewise.
2673
2674 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2675
2676         * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2677
2678 Fri May  5 10:29:21 2000  Marc Espie <espie@cvs.openbsd.org>
2679
2680         * config/openbsd.h (LINK_SPEC): pass correct flags to ld 
2681         to support -shared, on platforms with dynamic libraries.
2682
2683 Fri May  5 10:27:06 2000  Philippe De Muyter  <phdm@macqel.be>
2684
2685         * system.h (S_ISBLK): Provide fallback definition.
2686
2687 2000-05-05  Geoff Berry  <geoffb@bops.com>
2688
2689         * extend.texi (Extended Asm): Document inability to give asm
2690         statements access to condition codes.
2691
2692 2000-05-05  Marek Michalkiewicz  <marekm@linux.org.pl>
2693
2694         * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2695         as arg 2 of UNIQUE_SECTION.
2696
2697 Fri May  5 10:11:41 2000  Jeffrey A Law  (law@cygnus.com)
2698
2699         * predict.c: Remove May 4 change.
2700         * bb-reorder.c (make_reorder_chain): Do not perform block movement
2701         if we have predicted the branch at 50-50 probability.
2702
2703 2000-05-05  Richard Henderson  <rth@cygnus.com>
2704
2705         * flow.c (init_propagate_block_info): Fix merge error
2706         in HAVE_conditional_execution code.
2707
2708 Fri May  5 07:43:50 2000  Denis Chertykov  <denisc@overta.ru>
2709
2710         * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2711         shift cycle for unknown shift count. Also generates dec + brpl.
2712         (ashlqi3_out): Don't generate dec + brpl which now generates by
2713         `out_shift_with_cnt'.
2714         (ashlhi3_out): Likewise.
2715         (ashlsi3_out): Likewise.
2716         (ashrqi3_out): Likewise.
2717         (ashrhi3_out): Likewise.
2718         (ashrsi3_out): Likewise.
2719         (lshrqi3_out): Likewise.
2720         (lshrhi3_out): Likewise.
2721         (lshrsi3_out): Likewise.
2722
2723 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2724
2725         * gcc.c (free_split_directories): Correct typo in explanation
2726         of make_relative_prefix.
2727
2728 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
2729
2730         * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2731         comparison codes to branch_comparison_operator.
2732
2733 2000-05-04  Richard Henderson  <rth@cygnus.com>
2734
2735         * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2736
2737 2000-05-04  Richard Henderson  <rth@cygnus.com>
2738
2739         * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2740         (DPBIT_FUNCS): Remove _sf_to_usi.
2741         (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2742
2743         * ifcvt.c (noce_process_if_block): Fail if A or B modified
2744         between condition and jump.
2745
2746         * libgcc2.c (near eh_context_specific): Comment #endif string.
2747         * longlong.h: Don't use strings with embedded newlines.
2748
2749 2000-05-04  Geoff Keating  <geoffk@cygnus.com>
2750
2751         * config/rs6000/rs6000-protos.h: Add output_cbranch.
2752         * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2753         (print_operand): Delete %t and %T codes.
2754         (output_cbranch): New function.  Support branch prediction.
2755         * config/rs6000/rs6000.md: Use output_cbranch for
2756         conditional branches and returns.
2757
2758 2000-05-04  Jason Merrill  <jason@casey.cygnus.com>
2759
2760         * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2761         * stor-layout.c (place_field): Likewise.
2762         * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2763         * expr.c (store_expr): Make align unsigned.
2764         * explow.c (plus_constant_wide): Make low words unsigned.
2765         * expmed.c (choose_multiplier): Likewise.
2766         * fold-const.c (fold):  Likewise.
2767         * tree.h (build_int_2): Likewise.
2768         * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2769         * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2770         (init_emit): Change cast to unsigned char*.
2771         * varasm.c (compare_constant_1): Add cast to char*.
2772         * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2773         * reload1.c (reload): Likewise.
2774
2775         * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2776
2777 Thu May  4 14:37:23 2000  Jeffrey A Law  (law@cygnus.com)
2778
2779         * predict.c (estimate_probability): If no prediction was found, then
2780         predict the successor that is the next physical block (if such a
2781         successor exists).
2782
2783 2000-05-04  Richard Henderson  <rth@cygnus.com>
2784
2785         * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2786
2787 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2788
2789         * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2790
2791 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
2792
2793         * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move 
2794         attribute macros from here ...
2795         (CPP_SPEC): to here.
2796         * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2797         (CPP_SPEC): Likewise.
2798         * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros. 
2799
2800         * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2801         (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2802
2803 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2804
2805         * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2806         
2807         * diagnostic (vbuild_message_string, build_message_string,
2808         build_location_prefix, output_get_prefix, init_output_buffer,
2809         output_notice, vline_wrapper_message_with_location,
2810         v_message_with_decl, default_print_error_function): De-constify.
2811         (set_real_maximum_length): Prototype.
2812
2813         * diagnostic.h (struct output_buffer, init_output_buffer,
2814         output_get_prefix, output_set_prefix): De-constify.
2815
2816         * function.c (init_function_start): Constify.
2817
2818         * gensupport.c (remove_constraints, process_rtx): Prototype.
2819
2820         * gthr-posix.h: Indent uses of #pragma.
2821
2822         * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2823         Prototype.
2824
2825         * predict.c (find_expected_value): Delete prototype.
2826         (expected_value_to_br_prob): Initialize variable `ev_reg'.
2827
2828         * sbitmap.h (debug_sbitmap): Prototype.
2829
2830         * ssa.c (compute_coalesced_reg_partition): Prototype.
2831
2832         * stor-layout.c (debug_rli): Prototype.
2833
2834         * tree.h (round_down): Prototype.
2835         (init_function_start): Constify.
2836
2837 2000-05-04  Zack Weinberg  <zack@wolery.cumb.org>
2838
2839         * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2840         (overly conservative).  Change extern inline wrappers to
2841         static inline, define them always, use PARAMS properly.
2842         * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2843         whitespace warnings for \f and \v at the beginning of a line.
2844
2845 Thu May  4 10:03:50 2000  Jeffrey A Law  (law@cygnus.com)
2846
2847         * haifa-sched.c (schedule_insns): Free the flow edge list when it
2848         is no longer needed
2849
2850 2000-05-04  Bruce Korb  <bkorb@gnu.org>
2851
2852         * fixincl/inclhack.def: added broken_cabs -
2853         Remove `extern double cabs' declarations from math.h
2854         * fixincl/inclhack.sh: regen
2855         * fixincl/fixincl.x: regen
2856         * fixincl/fixincl.c: Remove BOGOSITY code
2857         * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2858
2859 Thu May  4 09:45:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2860
2861         * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2862         MEM_ALIAS_SET.
2863         * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2864         when calling MEM_COPY_ATTRIBUTES.
2865         * emit-rtl.c (operand_subword, change_address): Likewise.
2866         * explow.c (stabilize): Likewise.
2867         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2868         * integrate.c (copy_rtx_and_substitute): Likewise.
2869         * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2870         when calling MEM_COPY_ATTRIBUTES.
2871         (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2872         Likewise.
2873         * cse.c (gen_lowpart_if_possible): Likewise.
2874         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2875         * optabs.c (gen_move_insn): Likewise.
2876         * recog.c (validate_replace_rtx_1): Likewise.
2877         * simplify-rtx.c (add_mem_for_addr): Likewise.
2878         * stmt.c (expand_anon_union_decl): Likewise.
2879         * config/arm/arm.md: Likewise.
2880         * config/h8300/h7300.c (fix_bit_operand): Likewise.
2881         * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2882         (block_move_no_loop, block_move_sequence): Likewise.
2883         * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2884         * config/alpha/alpha.c (get_aligned_mem): Likewise.
2885         Clear MEM_ALIAS_SET.
2886         * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2887         MEM_COPY_ATTRIBUTES.
2888
2889 2000-05-03  Robert Lipe <robertlipe@usa.net>
2890         
2891         * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2892         to suppress libgcc1.
2893         (i[34567]86-*-sco3.2v5*) Likewise.
2894         (i[34567]86-*-sco3.2v4*) Likewise.
2895         (i[34567]86-*-sco) Likewise.
2896         (i[34567]86-*-solaris2) Likewise.
2897         (i[34567]86-*-sysv5*) Likewise.
2898         (i[34567]86-*-sysv4*) Likewise.
2899         (i[34567]86-*-udk*) Likewise.
2900         (i[34567]86-*-sysv*) Likewise.
2901
2902 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
2903
2904         * cpphash.h (U): New define, to correct type of string constants.
2905         (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2906         routines, to do casts when passing unsigned strings to libc.
2907         * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2908
2909         * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2910         * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2911         * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2912         * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2913         second argument an U_CHAR *.
2914
2915         * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2916         length field, clean up initializer.
2917         (ISTABLE): Add __extension__ to designated-
2918         initializers version.
2919         * cpplex.c (CHARTAB): Likewise.
2920
2921         * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2922         case so the file won't be empty.
2923
2924 Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>
2925
2926         * bb-reorder.c (struct reorder_block_def): Member succ removed.
2927         (REORDER_BLOCK_SUCC): Removed.
2928         (enum reorder_skip_type): Removed.
2929         (skip_insns_between_block): Renamed to skip_insns_after_block.
2930         Removed second argument. Removed dead code and cleaned up.
2931         (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2932         (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2933         second parameter to skip_insns_after_block.
2934
2935 Wed May  3 13:29:54 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2936
2937         * tree.c (staticp, case LABEL_DECL): New case.
2938
2939 2000-05-03  Richard Henderson  <rth@cygnus.com>
2940
2941         * Makefile.in (start.encap): Do not depend on LIBGCC1.
2942
2943         * mklibgcc1.in: Fix typo last change.
2944
2945 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
2946
2947         * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2948         (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2949         (GCC_CFLAGS): Use it.
2950         (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2951         * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2952         objc/Make-lang.in: Use it.
2953
2954 2000-05-03  Jason R Thorpe  <thorpej@zembu.com>
2955
2956         * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2957
2958 2000-05-03  Richard Henderson  <rth@cygnus.com>
2959
2960         * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
2961         LIBGCC1 empty with libgcc1.null.
2962
2963 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
2964
2965         * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2966         change.
2967
2968 2000-05-03  Greg McGary  <gkm@gnu.org>
2969
2970         * tree.h (tree_common): Add bounded_flag member.  Remove
2971         inaccurate comment about number of remaining bits.
2972         (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2973         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2974         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2975         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2976         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2977         (TYPE_QUAL_BOUNDED): New constant.
2978         (TYPE_QUALS): Handle bounded qualifier.
2979         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2980         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2981         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2982         TYPE_AMBIENT_BOUNDEDNESS): New macros.
2983         (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2984         (tree_type): Add pointer_depth member.  Remove
2985         inaccurate comment about number of remaining bits.
2986         (DECL_POINTER_DEPTH): Add macro.
2987         (tree_decl): Add pointer_depth member.
2988
2989 Wed May  3 22:52:53 2000  Denis Chertykov  <denisc@overta.ru>
2990
2991         * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2992         * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2993         (lshrhi3_out): Likewise.
2994         (ashrsi3_out): bugfix in shift by 8.
2995         (test_hard_reg_class): New function.
2996         * config/avr/avr.md: Bugfix inside conditions in peepholes.
2997         (ashlhi3): removed define_expand of this pattern.
2998         (*ashlhi3_insn): renamed to ashlhi3.
2999         (ashlsi3): removed define_expand of this pattern.
3000         (*ashlsi3_insn): renamed to ashlsi3.
3001         (ashrqi3): removed define_expand of this pattern.
3002         (*ashrqi3_insn): renamed to ashrqi3.
3003         (ashrhi3): removed define_expand of this pattern.
3004         (*ashrhi3_insn): renamed to ashrhi3.
3005         (ashrsi3): removed define_expand of this pattern.
3006         (*ashrsi3_insn): renamed to ashrsi3.
3007         (lshrhi3): removed define_expand of this pattern.
3008         (*lshrhi3_insn): renamed to lshrhi3.
3009         (lshrsi3): removed define_expand of this pattern.
3010         (*lshrsi3_insn): renamed to lshrsi3.
3011
3012 2000-05-03  Rodney Brown  <RodneyBrown@pmsc.com>
3013
3014         * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
3015         inclusion of "system.h".
3016
3017 Wed May  3 11:43:53 2000  Jim Wilson  <wilson@cygnus.com>
3018
3019         * config/ia64/ia64.c (ia64_encode_section_info): Add check for
3020         TREE_ASM_WRITTEN.
3021
3022 2000-05-03  David Mosberger  <davidm@hpl.hp.com>
3023
3024         * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
3025         if -mauto-pic is on.
3026         (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
3027         -mconstant-gp is in effect and function-descriptors are being used
3028         to make indirect calls.
3029         * config/ia64/ia64.h (MASK_CONST_GP): New macro.
3030         (MASK_AUTO_PIC): Ditto.
3031         (TARGET_CONST_GP): Ditto.
3032         (TARGET_AUTO_PIC): Ditto.
3033         (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
3034         (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
3035         -mno-pic is in effect.
3036         (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
3037         * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
3038         -mauto-pic is in effect.
3039         (gprel64_offset): New pattern.
3040         (load_gprel64): Ditto.
3041         (call): Handle -mauto-pic like -mno-pic (don't use fptr).  If
3042         -mconstant-gp is in effect, no need to preserve gp around direct
3043         calls.
3044         (call_value): Ditto.
3045         * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
3046         (FUNCTION_PROFILER): Define.
3047         * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
3048         @fptr() directive when -mno-pic or -mauto-pic is in effect.
3049         (ASM_OUTPUT_DESTRUCTOR): Ditto.
3050
3051 2000-05-03  Richard Henderson  <rth@cygnus.com>
3052
3053         * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
3054         (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
3055         (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
3056         (mklibgcc, libgcc.mk): New targets.
3057         (libgcc.a): Use libgcc.mk.
3058         (stmp-multilib): Likewise.
3059         (stmp-multilib-sub): Remove.
3060         (mostlyclean): Don't delete libgcc2 temp files.
3061         * configure.in (AC_PROG_CC_C_O): Add.
3062         (NO_MINUS_C_MINUS_O): Substitute it.
3063         (all_outputs): Add mklibgcc.
3064         * mklibgcc.in: New file.
3065
3066 2000-05-03  Jason Merrill  <jason@casey.cygnus.com>
3067
3068         * cppexp.c (op_t): Make an int.
3069
3070         * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
3071
3072         * varasm.c (initializer_constant_valid_p): Fix parenthesis.
3073
3074         * gensupport.c (process_rtx): Fix macros used.
3075
3076 2000-05-03  Richard Henderson  <rth@cygnus.com>
3077
3078         * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
3079         call-clobbered registers of a call.
3080
3081 Wed May  3 12:40:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
3082
3083         * gensupport.c: New file.
3084         * gensupport.h: New file.
3085         * Makefile.in (HOST_RTL): Depend on gensupport.
3086         (gensupport.o) New rule.
3087         * genattr.c: Use gensupport for reading .md files.
3088         * genattrtab.c: Ditto. 
3089         * gencodes.c: Ditto. 
3090         * genconfig.c: Ditto. 
3091         * genemit.c: Ditto. 
3092         * genextract.c: Ditto. 
3093         * genflags.c: Ditto. 
3094         * genopinit.c: Ditto. 
3095         * genoutput.c: Ditto. 
3096         * genpeep.c: Ditto. 
3097         * genrecog.c: Ditto.
3098         * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
3099         * md.texi (Insn Splitting): Document define_insn_and_split.
3100
3101 Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>
3102
3103         * flow.c (verify_flow_info): Added two more sanity checks. The
3104         first checks that the blocks are numbered consecutively. The second
3105         checks that n_basic_blocks is actually equal to the number of
3106         basic blocks in the insn chain.
3107
3108 2000-05-03  Zack Weinberg  <zack@wolery.cumb.org>
3109
3110         * cpplib.h: Add accessor macros for token lists.
3111         * cpplib.c, cpphash.c, cpplex.c: Use them.
3112
3113 Wed May  3 09:29:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3114
3115         * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
3116         memory usage if not in a function.
3117         * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
3118         return address if static.
3119
3120 Wed May  3 13:14:49 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3121
3122         * ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
3123         whether address may trap.
3124
3125 Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>
3126
3127         * bb-reorder (chain_reorder_blocks): Changed code to test for
3128         EDGE_FALLTHRU rather than making erroneous assumption that the
3129         first outgoing edge is the fall-through edge.
3130
3131 Tue May  2 18:20:31 2000  Donald Lindsay  <dlindsay@hound.cygnus.com>
3132
3133         * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new 
3134         ABI for varargs, across all MIPS. This is incompatible because the
3135         va_list (__builtin_va_list) structure is different, so a compilation
3136         unit passing a va_list and a compilation unit being passed one, should
3137         both be compiled with the same ABI. (The old structure had two 
3138         pointers, now it has three.)
3139
3140 Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>
3141
3142         * bb-reorder.c (struct reorder_block_def): Remove members end,
3143         block_begin, and block_end.
3144         (REORDER_BLOCK_OLD_END): Delete.
3145         (REORDER_BLOCK_BEGIN): Delete.
3146         (REORDER_BLOCK_END): Delete.
3147         (chain_reorder_blocks): Remove dead code.
3148
3149 Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>
3150
3151         * bb-reorder.c (remove_scope_notes): Check for both types of scope
3152         notes as the end of a basic block before deleting.
3153
3154 2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>
3155
3156         * final.c (final_start_function): Fix spelling of "necessary".
3157
3158 2000-05-02  Jason Merrill  <jason@casey.cygnus.com>
3159
3160         * toplev.c (debug_ignore_block): Return int.
3161         * dwarf2out.c (dwarf2out_ignore_block): Likewise.
3162         * toplev.h, dwarf2out.h: Adjust.
3163         * emit-rtl.c (remove_unnecessary_notes): Test return value.
3164
3165         * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
3166         * toplev.c, final.c, rtl.h: Adjust.
3167
3168 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
3169
3170         * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
3171         * configure.in: Look for makeinfo in the unified tree, then
3172         for a system makeinfo which is sufficiently new.
3173         * Makefile.in: If configure says makeinfo is too old, don't
3174         build or install Info documentation.
3175
3176 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
3177
3178         * cpphash.c (collect_params): Fix off-by-one error.
3179         (dump_hash_helper): Dump all four macro nodetypes.
3180
3181 2000-05-02  Jakub Jelinek  <jakub@redhat.com>
3182
3183         * cpphash.c (trad_stringify): Adjust p after stringification as
3184         well.
3185
3186 2000-05-02  Zack Weinberg  <zack@wolery.cumb.org>
3187
3188         * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
3189         (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
3190
3191         * cppfiles.c (file_cleanup): Delete.
3192         * cpphash.c (macro_cleanup): Delete.
3193         (collect_objlike_expansion, collect_funlike_expansion,
3194         macarg, scan_arguments): Remove CPP_POP case.
3195
3196         * cpplex.c (null_cleanup): Delete.
3197         (cpp_pop_buffer): Do the work that was done in the cleanups
3198         here.  Call _cpp_unwind_if_stack from here.
3199         (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
3200         cpp_scan_buffer): Run until we see CPP_EOF and the top of
3201         stack is the buffer _below_ the one we stacked.
3202         (cpp_get_token): Always pop an exhausted buffer.  Return
3203         CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
3204         * cpplib.c (skip_if_group): Don't call cpp_get_token to
3205         increment the line number.
3206         (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
3207
3208         * fix-header.c (read_scan_file) [parsing getchar()]: Run until
3209         we see CPP_EOF and the top of stack is the buffer _below_ the
3210         one we stacked.
3211         * scan-decls.c: Likewise.
3212
3213 2000-05-02  Andrew Haley  <aph@cygnus.com>
3214
3215         * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
3216         where this function is called for the second time on a decl that
3217         has had its section info changed in such a way as to move it out
3218         of small data/bss.  
3219         * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
3220
3221 2000-05-01  Richard Henderson  <rth@cygnus.com>
3222
3223         * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
3224         the sequence we're moving, not to merge_bb->head.
3225
3226 2000-05-01  Richard Henderson  <rth@cygnus.com>
3227
3228         * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
3229         reference to alpha/t-linux.
3230         (alpha*-*-linux-gnu*): Likewise.
3231         * configure: Rebuild.
3232
3233         * calls.c (expand_call): Don't emit reg notes for a sibcall.
3234
3235         * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
3236         if not in SSA form.
3237
3238         * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
3239
3240 2000-05-01  Jason Merrill  <jason@casey.cygnus.com>
3241
3242         * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
3243         TREE_THIS_VOLATILE.
3244
3245 2000-05-01  Richard Henderson  <rth@cygnus.com>
3246
3247         * ifcvt.c (noce_emit_cmove): Conditionally compile call to
3248         emit_conditional_move.
3249
3250 2000-05-01  Jakub Jelinek  <jakub@redhat.com>
3251
3252         * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
3253         as the dynamic linker.
3254
3255 2000-05-01  Zack Weinberg  <zack@wolery.cumb.org>
3256
3257         * cppfiles.c (open_include_file): Open file in blocking mode.
3258         (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
3259         Only exclude block devices and directories.
3260
3261         * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
3262         static.  Allocate the hashnode and its string in the same
3263         block of memory.
3264         (del_HASHNODE): Don't free h->name.
3265         (_cpp_lookup): If there is no entry for this string, create
3266         one, of type T_VOID.
3267         (_cpp_lookup_slot): Delete.
3268         * cpphash.h: Update prototypes.
3269
3270         * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
3271         not hp == NULL.
3272         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
3273         do_unassert, cpp_defined): Use _cpp_lookup.  Don't create a
3274         node here, just fill in the value field properly.  "Delete"
3275         entries by setting the value field to T_VOID.  Check for
3276         hp->type == T_VOID, not hp == NULL.
3277
3278         * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
3279         * cpperror.c, cppexp.c, cpplex.c, cpplib.c:  Don't include
3280         hashtab.h.
3281
3282 2000-05-01  Alexandre Oliva  <aoliva@cygnus.com>
3283
3284         * config/mn10300/mn10300.c (print_operand_address): Do not add
3285         zero to SP.
3286
3287         * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
3288         adjusted by less than 256 bytes, use ret regardless of having any
3289         callee-saved register to restore.
3290
3291 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
3292
3293         * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
3294
3295 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
3296
3297         * config/i386/djgpp.h (INT_ASM_OP): Define.
3298         (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
3299         (ASM_WEAKEN_LABEL): Define.
3300         (MASK_BNU210): Define.
3301         (SUBTARGET_SWITCHES): Define.
3302         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
3303         (MAKE_DECL_ONE_ONLY): Define.
3304         (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
3305
3306 2000-05-01  Mumit Khan  <khan@xraylith.wisc.edu>
3307
3308         * i386/cygwin.h (INT_ASM_OP): Define.
3309
3310 Mon May  1 18:20:06 2000  Denis Chertykov  <denisc@overta.ru>
3311
3312         * config/avr/avr.c (address_cost): renamed to avr_address_cost.
3313         * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
3314
3315 Mon May  1 17:50:44 2000  Denis Chertykov  <denisc@overta.ru>
3316
3317         * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
3318         __tmp_reg__ and __zero_reg__ initialization.
3319
3320 2000-04-30  Richard Henderson  <rth@cygnus.com>
3321
3322         * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
3323
3324         * ifcvt.c (noce_process_if_block): Fail the conversion if X is
3325         referenced bewteen the condition and the jump.  Don't delete
3326         anything but the jump.
3327
3328 Sun Apr 30 22:48:24 2000  Jason Eckhardt  <jle@cygnus.com>
3329
3330         * bb-reorder.c (scope_def): New struct.
3331         (scope_forest_info): New struct.
3332         (struct reorder_block_def): New member "scope".
3333         (REORDER_BLOCK_SCOPE): New macro.
3334         (relate_bbs_with_scopes): New function and prototype.
3335         (make_new_scope): Likewise.
3336         (build_scope_forest): Likewise.
3337         (remove_scope_notes): Likewise.
3338         (insert_intra_1): Likewise.
3339         (insert_intra_bb_scope_notes): Likewise.
3340         (insert_inter_bb_scope_notes): Likewise.
3341         (rebuild_scope_notes): Likewise.
3342         (free_scope_forest_1): Likewise.
3343         (free_scope_forest): Likewise.
3344         (dump_scope_forest): Likewise.
3345         (dump_scope_forest_1): Likewise.
3346         (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
3347         Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
3348         block.
3349         (reorder_basic_blocks): Added calls to build_scope_scope_forest
3350         and remove_scope_notes before reordering is done. Added calls to
3351         rebuild_scope_notes, free_scope_forest, and reorder_blocks after
3352         after reordering is done.
3353
3354 2000-40-30  Bruce Korb  <bkorb@gnu.org>
3355
3356         * fixinc/inclhack.def:  Added definitions needed by OSR5,
3357         removed two stale entries (defined away with OLD_CPP).
3358         * fixinc/inclhack.sh: regen
3359         * fixinc/fixincl.x: regen
3360
3361 2000-04-30  Richard Henderson  <rth@cygnus.com>
3362
3363         * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
3364         from the last insn in the sequence.
3365
3366 2000-04-30  Zack Weinberg  <zack@wolery.cumb.org>
3367
3368         * cpplex.c (cpp_idcmp): New function.
3369         * cpplib.h: Prototype it.
3370         * scan_decls.c (scan_decls): Use it to inspect token names.
3371         * fix-header.c (read_scan_file): Likewise.  Set system_header_p on
3372         the file being run through the preprocessor.
3373         (check_macro_names): Provide length of token to cpp_defined.
3374
3375         * Makefile.in: Remove stale warning message.
3376
3377         * cppfiles.c (redundant_include_p): Provide length of token to
3378         cpp_defined.
3379         * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
3380         values are unsigned int.
3381         (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
3382         (_cpp_lookup_slot): Do not calculate the hash, either.
3383         * cpphash.h: Update prototypes.
3384         * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
3385         Hashes are unsigned int.  Calculate hash here, pass by value
3386         to _cpp_lookup_slot.
3387
3388 2000-04-30  Bernd Schmidt  <bernds@cygnus.co.uk>
3389
3390         * simplify-rtx.c (check_value_useless): Delete function.
3391         (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
3392         by hand.
3393         (cselib_invalidate_regno): Likewise.
3394         (cselib_invalidate_mem_1): Likewise.
3395         (references_value_p): Recognize useless values by the fact that they
3396         have no locations.
3397         (discard_useless_values): Likewise.
3398         (cselib_record_set): This may turn a useless value
3399         into a useful one.
3400
3401 2000-04-30  Richard Henderson  <rth@cygnus.com>
3402
3403         * config/d30v: New port.
3404
3405         * configure.in (d30v-*): Set fp format.
3406         * configure: Rebuild.
3407
3408 2000-04-30  Richard Henderson  <rth@cygnus.com>
3409
3410         * ifcvt.c: New file.
3411         * Makefile.in (OBJS): Add it.
3412         (ifcvt.o): New target.
3413         * jump.c (jump_optimize_1): Remove all code related to if-conversion,
3414         and conditional arithmetic.
3415         (find_insert_position): Remove.
3416         * timevar.def (TV_IFCVT, TV_IFCVT2): New.
3417         * toplev.c (DFI_ce, DFI_ce2): New.
3418         (dump_file): Add ce and ce2 dumps.
3419         (rest_of_compilation): Run if_convert a couple o times.  Set
3420         cse_not_expected after cse2.  Don't set no_new_pseudos until
3421         after sched1 or recompute_reg_usage.
3422
3423 2000-04-30  Richard Henderson  <rth@cygnus.com>
3424
3425         * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
3426         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
3427
3428 2000-04-30  Richard Henderson  <rth@cygnus.com>
3429
3430         * flow.c (struct reg_cond_life_info): New.
3431         (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
3432         (init_propagate_block_info): Initialize them.
3433         (free_propagate_block_info): Destruct them.
3434         (mark_set_1): Consider conditional life before killing a register.
3435         (mark_regno_cond_dead): New.
3436         (free_reg_cond_life_info): New.
3437         (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
3438         (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
3439         (mark_used_reg): Record conditional life.
3440
3441         * haifa-sched.c (schedule_insns): Disable death counting
3442         sanity check for HAVE_conditional_execution.
3443
3444 2000-04-30  Richard Henderson  <rth@cygnus.com>
3445
3446         * Makefile.in (TIMEVAR_H): New.
3447         (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
3448         (timevar.h): Remove rule.
3449
3450 2000-04-29  Richard Henderson  <rth@cygnus.com>
3451
3452         * config/alpha/crtend.asm: Use C comments instead of #.
3453         * config/alpha/crtbegin.asm: Likewise.  Mark __dso_handle hidden.
3454
3455         * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
3456
3457 2000-04-29  Zack Weinberg  <zack@wolery.cumb.org>
3458
3459         * cpphash.h (enum node_type: Take out T_MCONST.
3460         (union hashval): Move into struct hashnode.
3461         (struct hashnode): Pack tighter.  Remove file, line, col
3462         members.
3463         * cpphash.c: Constify most of the macro-definition structures.
3464         (struct definition): Replace by struct object_defn
3465         and struct funct_defn.  Put file, line, column information
3466         here.  All users updated to match.
3467         (_cpp_create_definition, _cpp_macroexpand): Remove special
3468         case for #define WORD OTHERWORD.
3469         * cpplib.c (do_undef): Remove T_MCONST case.
3470
3471         * cpphash.h: Move struct reflist, struct definition, and the
3472         DEFINITION typedef to cpphash.c.  Use 'struct definition *' in
3473         union hashval.  _cpp_free_definition takes a HASHNODE pointer.
3474         * cpphash.c (_cpp_free_definition): Free data pointed to by
3475         MCONST, XCONST, MACRO, and FMACRO nodes properly.
3476         (_cpp_create_definition, del_HASHNODE): Just call
3477         _cpp_free_definition to clear out a hashnode.
3478         * cpplib.c (do_pragma_poison): Likewise.
3479
3480 Sat Apr 29 12:25:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
3481
3482         * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
3483         LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
3484         FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
3485         (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
3486         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
3487         REGNO_AM33_P): Redefine in terms of the new macros.
3488         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3489         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
3490         STRUCT_VALUE): Likewise.
3491         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
3492         ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise.  Moved.
3493
3494 Sat Apr 29 01:18:45 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3495
3496         * regmove.c (struct record_stack_memrefs_data): New.
3497         (record_stack_memrefs): New function.
3498         (combine_stack_adjustments_for_block): Use it.
3499
3500 Sat Apr 29 01:15:27 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3501
3502         * calls.c (calls_function_1):  Propertly handle TREE_LIST expressions;
3503         use special_function_p to detect alloca.
3504
3505 Fri Apr 28 16:30:33 2000  Marc Espie <espie@cvs.openbsd.org>
3506
3507         * gcc.texi: Fixes for makeinfo 4.0 --html.
3508
3509 2000-04-28  Zack Weinberg  <zack@wolery.cumb.org>
3510
3511         * pcp.h: Delete file.
3512
3513 2000-04-28  Kazu Hirata  <kazu@hxi.com>
3514
3515         * h8300.c (function_epilogue): Clean up flags when the last insn
3516         in a function is a barrier.
3517
3518 2000-04-28  Chris Demetriou  <cgd@sibyte.com>
3519
3520         * configure.in (sparc-hal-solaris2*): protect [] glob from
3521         my expansion.
3522         (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3523         rather than hard-coded constants in target_cpu_default2.
3524         * configure: Regenerate.
3525
3526 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
3527
3528         * tree.c (get_callee_fndecl): Extract the initial value from
3529         a readonly decl.
3530
3531 2000-04-28  Richard Henderson  <rth@cygnus.com>
3532
3533         * varasm.c (record_constant_1): Record the CODE_LABEL when
3534         taking the address of a LABEL_REF.
3535
3536 2000-04-28  Richard Henderson  <rth@cygnus.com>
3537             Jan Hubicka  <jh@suse.cz>
3538
3539         * calls.c (combine_pending_stack_adjustment_and_call): Return the
3540         adjustment; don't do the stack adjust.
3541         (expand_call): Call compute_argument_block_size right before
3542         allocating the block; update comment; don't do alignment sanity
3543         checking for sibling call; use args_size instead of
3544         unadjusted_args_size before args_size is adjusted.  Use
3545         combine_pending_stack_adjustment_and_call to compute stack adjust
3546         for must_preallocate case.
3547
3548         * expr.c (push_block): Remove shadow `temp' in inner scope.
3549
3550 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
3551
3552         * toplev.c (rest_of_compilation): Call
3553         note_deferral_of_defined_inline_function even if the function
3554         can't be inlined.
3555
3556 2000-04-28  Scott Bambrough  <scottb@netwinder.org>
3557
3558         * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3559
3560 2000-04-28  Richard Henderson  <rth@cygnus.com>
3561
3562         * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3563
3564 2000-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3565
3566         * timevar.c (init_timevar): DeANSIfy function definition.
3567
3568 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
3569
3570         * Makefile.in (timevar.o): Depend on flags.h.
3571         * timevar.c (unused_stack_instances): New variable.
3572         (timevar_push): Take a timevar_stack_def from
3573         unused_stack_instances if available.
3574         (timevar_pop): Push the popped timevar_stack_def onto
3575         unused_stack_instances.
3576         (TIMEVAR_ENABLE): New macro.
3577         (timevar_def): Make standalone a 1-bit field.  Add field used.
3578         (get_time): Rename parameter to now.  Return after clearing it if
3579         not TIMEVAR_ENABLE.
3580         (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3581         (timevar_pop): Likewise.
3582         (timevar_stop): Likewise.
3583         (timevar_push): Likewise.  Mark the timing variable as used.
3584         (timevar_start): Likewise.
3585         (timevar_print): Do nothing if not TIMEVAR_ENABLE.  Don't print
3586         timevars that were never used.
3587
3588 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
3589
3590         * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3591         always TREE_READONLY.
3592
3593 2000-04-27  Ulrich Drepper  <drepper@cygnus.com>
3594
3595         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3596         for call instruction with mode QImode.
3597
3598 2000-04-27  Alex Samuel  <samuel@codesourcery.com>
3599
3600         * Makefile.in (OBJS): Add timevar.o.
3601         (toplev.o): Depend on timevar.h.
3602         (ggc-simple.o): Likewise.
3603         (ggc-page.o): Likewise.
3604         (timevar.o): New rule.
3605         (timevar.h): New rule.
3606
3607         * timevar.h: New file.
3608         * timevar.c: Likewise.
3609         * timevar.def: Likewise.
3610
3611         * toplev.h (gc_time, parse_time, varconst_time): Remove.
3612         * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3613         throughout.
3614         (TIMEVAR): Remove macro.
3615         (gc_time, parse_time, varconst_time, integration_time, jump_time,
3616         cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3617         flow_time, combine_time, regmove_time, sched_time,
3618         local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3619         sched2_time, dbr_sched_time, reorder_blocks_time,
3620         rename_registers_time, shorten_branch_time, stack_reg_time,
3621         to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3622         all_time): Remove.
3623         (compile_file): Don't initialize time variables.  Call
3624         init_timevar and start TV_TOTAL timer.  Call timevar_print instead
3625         of many calls to print_time.
3626         (rest_of_compilation): Add timing for reload_cse_regs.
3627         (get_run_time): Removed to timevar.c.
3628         (print_time): Likewise.
3629         (get_run_time): Implement using TV_TOTAL time variable.
3630         (print_time): Get total run time from get_run_time.
3631         * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3632         computing elapsed time explicitly.
3633         * ggc-simple.c (ggc_collect): Likewise.
3634         (gc_time): Remove declaration.
3635
3636 2000-04-27  Mark Mitchell  <mark@codesourcery.com>
3637
3638         * calls.c (combine_pending_stack_adjustment_and_call): New function.
3639         (expand_call): Use it.
3640
3641 2000-04-27  Jan Hubicka  <jh@suse.cz>
3642
3643         * flow.c (mark_set_1):  Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3644         fields.
3645
3646 Thu Apr 27 12:47:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
3647
3648         * config/mn10300/mn10300.md (movhi): Simplify.  Prefer data
3649         registers.
3650
3651 Thu Apr 27 17:33:05 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3652
3653         * function.c (epilogue_done): Pass whole insn to record_insns.
3654
3655 Thu Apr 27 16:55:28 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3656
3657         * cse.c (CSE_ADDRESS_COST): Remove.
3658         (find_best_addr): Add new parameter "MODE", use address_cost instead
3659         of CSE_ADDRESS_COST
3660         (address_cost): New.
3661         (fold_rtx): Update call of find_best_addr.
3662         * rtl.h (address_cost): Declare.
3663         * loop.c (general_induction_var): Add new parameter "MODE", use
3664         address_cost instead of ADDRESS_COST
3665         (init_loop): Use address_cost instead of ADDRESS_COST.
3666         (check_insn_for_givs): Update call of general_induction_var.
3667         (find_mem_givs): Likewise.
3668         (consec_sets_giv): Likewise.
3669         * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3670         * i386.c (ix86_address_cost): New.
3671         * i386-protos.h (ix86_address_cost): Declare.
3672
3673 Thu Apr 27 11:45:16 2000  Alexandre Oliva  <aoliva@cygnus.com>
3674
3675         * config/mn10300/mn10300.md (movqi): Simplify.  Prefer data
3676         registers.
3677
3678 Thu Apr 27 16:11:00 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3679
3680         * expr.c (store_expr): Use clear_storage instead of direct memset
3681         libcall.
3682
3683 Thu Apr 27 10:36:51 2000  Alexandre Oliva  <aoliva@cygnus.com>
3684
3685         * config/mn10300/mn10300.c (mn10300_address_cost): Test
3686         ASHIFT, AND and LABEL_REF.
3687
3688 Thu Apr 27 15:08:46 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3689
3690         * invoke.texi (-foptimize-sibling-calls): Fix.
3691
3692 Thu Apr 27 14:54:22 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3693
3694         * loop.c (load_mems)  Don't use hard registers for the hoisting.
3695
3696         * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3697         calculation; rename const_equiv array in the preconditioning code
3698         from loop_unroll to loop_unroll_precondition
3699
3700 2000-04-27  Richard Henderson  <rth@cygnus.com>
3701
3702         * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3703         add new_set.
3704         (propagate_one_insn): Clear it.  Don't update reg_live here.
3705         (init_propagate_block_info): Update for pbi member changes.
3706         (free_propagate_block_info): Likewise.
3707         (mark_set_1): Know that zero_extract, sign_extract, and
3708         strict_low_part don't kill their argument.  Alter hard subregs.
3709         Update new_set for non-CLOBBER sets.  Update reg_live.
3710         (find_auto_inc): Update reg_live, not new_dead.
3711         (mark_used_reg): Update reg_live, not new_live.  Examine new_set
3712         to determine if the reg in question was set this insn.  Only update
3713         reg info with PROP_REG_INFO.
3714
3715 2000-04-26  Richard Henderson  <rth@cygnus.com>
3716
3717         * flow.c (allocate_reg_life_data): Set max_regno here ...
3718         (life_analysis): ... not here.
3719
3720         * flow.c (calculate_global_regs_live): Force stack pointer
3721         live at end.
3722
3723 2000-04-26  Richard Henderson  <rth@cygnus.com>
3724
3725         * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
3726         commit change group changes.
3727         (invert_exp_1): Similarly.
3728         (redirect_exp, invert_exp): Use them.
3729         (redirect_jump_1): New.
3730         (invert_jump_1): New.
3731         (jump_optimize_1): Remove code subsumed by condexec.c.
3732         * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3733
3734 2000-04-26  Richard Henderson  <rth@cygnus.com>
3735
3736         * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3737
3738         * genconfig.c (main): Set all HAVE_foo to 1.
3739
3740         * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3741
3742 2000-04-26  Alex Samuel  <samuel@codesourcery.com>
3743
3744         * invoke.texi: Document -fssa flag.
3745
3746 2000-04-26  Richard Henderson  <rth@cygnus.com>
3747
3748         * flow.c (count_reg_sets_1): Remove.
3749         (count_reg_sets, count_reg_references): Remove.
3750         (recompute_reg_usage): Implement with update_life_info.
3751         Reallocate life data.
3752
3753 2000-04-26  Richard Henderson  <rth@cygnus.com>
3754
3755         * flow.c (update_life_info): Consider blocks null to mean the
3756         universal set.
3757         (calculate_global_regs_live): Likewise.
3758         (life_analysis): Do that instead of collecting all_blocks.
3759
3760 2000-04-26  Richard Henderson  <rth@cygnus.com>
3761
3762         * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3763         a still-valid conditional jump.
3764
3765 2000-04-26  Richard Henderson  <rth@cygnus.com>
3766
3767         * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
3768
3769         * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3770         * flow.c (calculate_loop_depth): Remove.
3771         * output.h (calculate_loop_depth): Don't declare.
3772         * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3773         inline; run estimate_probability at the same time.
3774
3775 2000-04-26  Neil Booth  <NeilB@earthling.net>
3776
3777         * cpplib.h: "~=" is not a single pp-token.
3778         * cpplex.c: Correct commentary.
3779
3780 2000-04-26  Richard Henderson  <rth@cygnus.com>
3781
3782         * flow.c (mark_set_1): New arguments code and flags; update all
3783         callers.  Track regno_first and regno_last; do HARD_REGNO_NREGS
3784         test in one place.  Tidy flags tests.  Don't bias REG_N_REFS by
3785         loop_depth when optimizing for size.  Do new_dead update after
3786         emitting REG_UNUSED notes.  Merge mark_set_reg code.
3787         (mark_set_reg): Remove.
3788         (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3789         arrange to not emit REG_UNUSED notes.
3790
3791 2000-04-26  Richard Henderson  <rth@cygnus.com>
3792
3793         * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3794         * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3795
3796 2000-04-26  Richard Henderson  <rth@cygnus.com>
3797
3798         * flow.c (propagate_one_insn): Break out from propagate_block.
3799         (init_propagate_block_info): Likewise.
3800         (free_propagate_block_info): Likewise.
3801         (propagate_block): Use them.  Export.
3802         * basic-block.h: Declare them all.
3803
3804 2000-04-26  Richard Henderson  <rth@cygnus.com>
3805
3806         * basic-block.h (life_analysis): Declare here ...
3807         * output.h: ... not here.
3808         * flow.c (life_analysis): Remove nregs parameter; replace
3809         remove_dead_code with flags.  Remove ssa dead code check.
3810         Only init alias analysis if we'll use it.
3811         * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3812         * ssa.c (convert_to_ssa): Likewise.
3813         (convert_from_ssa): Likewise.
3814         * toplev.c (rest_of_compilation): Likewise.
3815
3816 2000-04-26  Richard Henderson  <rth@cygnus.com>
3817
3818         * flow.c (flow_delete_block): Rename from delete_block.  Export.
3819         * basic-block.h (flow_delete_block): Declare.
3820
3821 2000-04-26  David S. Miller  <davem@redhat.com>
3822
3823         * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3824         taking a PATTERN of it.
3825
3826 2000-04-26  <NeilB@earthling.net>
3827
3828         * cpplex.c (spell_other, spell_char): Remove.
3829         (SPELL_CHAR): New.
3830         (token_spelling, trigraph_map): Use unsigned chars.
3831         (_cpp_lex_line): Tidy up the switch statement.
3832         * cpplib.h: Implement spell_char with spell_string.
3833         (C): New.
3834
3835 2000-04-26  <RodneyBrown@pmsc.com>
3836
3837         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3838         * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3839
3840 2000-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3841
3842         * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3843         reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3844         dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3845         dwarf2out_return_save, dwarf2out_return_reg,
3846         dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3847         add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3848         gen_compile_unit_die, dwarf2out_init): Constify a char*.
3849
3850         * dwarf2out.h (dwarf2out_init): Likewise.
3851
3852         * dwarfout.c (filename_entry, primary_filename, last_filename,
3853         type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3854
3855         * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3856         dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3857         dwarf2out_return_reg): Likewise.
3858
3859 2000-04-26  Andreas Jaeger  <aj@suse.de>
3860
3861         * extend.texi (Function Attributes): Fix description of pure
3862         attribute.
3863
3864 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
3865
3866         * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3867         before calling rest_of_compilation.
3868
3869 2000-04-26  Andreas Jaeger  <aj@suse.de>
3870
3871         * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3872         last patch.
3873
3874 2000-04-25  Richard Henderson  <rth@cygnus.com>
3875
3876         * cse.c (cse_insn): Emit barrier after unconditional jump.
3877
3878         * calls.c (expand_call): Disable tail call generation once
3879         rtx_equal_function_value_matters is false.
3880
3881         * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3882         like EDGE_EH edges.
3883
3884 2000-04-25  Jason Merrill  <jason@casey.cygnus.com>
3885
3886         * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3887
3888         * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3889
3890         * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3891         is the primary DIE for a member function.
3892         (gen_decl_die): Call set_decl_origin_self here.
3893         * dwarfout.c (output_decl): And here.
3894         * integrate.c (output_inline_function): Not here.
3895         Don't clear DECL_INLINE until after calling rest_of_compilation.
3896         (set_decl_origin_self): No longer static.
3897         * tree.h: Add prototype.
3898         * toplev.c (note_deferral_of_defined_inline_function): Only write
3899         out abstract instance for actual inlines.
3900
3901 2000-04-25  Alexandre Oliva  <aoliva@cygnus.com>
3902
3903         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3904         EXTENDED_REGS only if TARGET_AM33.
3905         * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3906         SP_REGS to register allocation and reloading unless absolutely
3907         necessary.
3908         (movsi3): Remove special-case of adding non-constants to SP.
3909
3910 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3911
3912         * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3913         INCLUDES to search and does not provide any of its own.  Also it
3914         now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3915         parameters.  Also it does not call AC_DEFINE.
3916         (gcc_AC_NEED_DECLARATIONS): Likewise.  Also this macro now calls
3917         AC_DEFINE and provides for automatic entries for autoheader.
3918         (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3919
3920         * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3921         so we can pass -I flags and include gansidecl.h/system.h in this
3922         test.
3923
3924         * acconfig.h: Delete all NEED_DECLARATION_* entries.
3925
3926 2000-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3927
3928         * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3929         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3930         ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3931
3932         * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3933         ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3934         ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3935         for these macros.  Clean up spacing and linewraps.
3936
3937 2000-04-26  Jason Merrill  <jason@casey.cygnus.com>
3938
3939         * calls.c (expand_call): Use get_callee_fndecl.
3940
3941         * print-tree.c (print_node): Print the chain of an _EXPR.
3942
3943 Tue Apr 25 16:16:04 2000  Andrew MacLeod  <amacleod@cygnus.com>
3944                           Jim Wilson  <wilson@cygnus.com>
3945                           Andrew Haley  <aph@cygnus.com>
3946
3947         * config/ia64/crtbegin.asm: Add IA-64 unwind support.  Correct alloc
3948         and gp save/restore problems.
3949         * config/ia64/crtend.asm: Add IA-64 unwind support.
3950         * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3951         in fr_pad_size calculation.
3952         (save_restore_insns): Move PR save area.  Correct uses of
3953         RTX_FRAME_RELATED_P.
3954         (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3955         (ia64_expand_epilogue): Add eh_epilogue support.
3956         (ia64_function_prologue): Emit .prologue directive.
3957         (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3958         (ia64_override_options): Set init_machine_status and
3959         mark_machine_status.
3960         (rtx_needs_barrier): Handle bsp reads and writes.
3961         (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3962         New static variables.
3963         (process_set, process_for_unwind_directive): New functions.
3964         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3965         ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3966         ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3967         macros.
3968         (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3969         (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3970         (struct machine_function): Define.
3971         * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3972
3973 2000-04-25  Bruce Korb  <bkorb@gnu.org>
3974
3975         * fixinc/Makefile.in: make the removal of old programs more
3976         robust
3977         * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3978         install-bin and install-sh
3979
3980 2000-04-25  Nick Clifton  <nickc@cygnus.com>
3981
3982         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3983         defined, define to return zero.
3984         (function_cannot_inline_p): If a function has any target
3985         specific attributes, then use the macro
3986         FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3987         whether it can be inlined.  If it cannot, issue a suitable
3988         explanation.
3989
3990         * tm.texi: Add a new node 'Inlining' to document the new macro
3991         FUNCTION_ATTRIBUTE_INLINABLE_P.
3992
3993 2000-04-25  Zack Weinberg  <zack@wolery.cumb.org>
3994
3995         * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3996         commentary.
3997
3998 2000-04-25  Neil Booth  <NeilB@earthling.net>
3999
4000         Restore previous patch, plus the following fixes:
4001
4002         * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
4003         flags, not CPP_OPEN_PAREN.
4004         * cpplex.c (expand_token_space, init_token_list,
4005         cpp_free_token_list): Put the dummy token at list->tokens[-1].
4006         (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
4007
4008 Tue Apr 25 14:06:40 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4009
4010         * config/i386/freebsd.h (INT_ASM_OP): Define.
4011
4012 Tue Apr 25 14:51:07 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4013
4014         * loop.c (strength_reduce): Fix typo in the last checkin.
4015
4016 Tue Apr 25 07:33:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4017
4018         * stor-layout.c (finalize_record_size): Simplify to use existing
4019         functions.
4020         (compute_record_mode): No longer static.
4021         * tree.h (compute_record_mode): New declaration.
4022
4023 2000-04-25  Neil Booth  <NeilB@earthling.net>
4024
4025         * Revert my patch below until cause of build failures
4026         determined.
4027
4028 2000-04-25  Richard Henderson  <rth@cygnus.com>
4029
4030         * combine.c (combine_instructions): Add missing argument
4031         to try_combine.
4032
4033         * toplev.c (rest_of_compilation): Delay sibcall optimization
4034         until after emit_eh_context.
4035
4036 2000-04-24  Nick Clifton  <nickc@redhat.com>
4037
4038         * combine.c (combine_instructions): Do not try to combine a
4039         sequence of insns when the second insn has been replaced by a
4040         note.
4041
4042 Mon Apr 24 17:34:18 2000  Mumit Khan  <khan@xraylith.wisc.edu>
4043
4044         * gcc.c (load_specs): New static function.
4045         (read_specs): Use it.
4046
4047         * gcc.c (lookup_compiler): Make multiple passes for case
4048         insensitive filesystems.
4049
4050 2000-04-24  Neil Booth  <NeilB@earthling.net>
4051
4052         * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
4053         * cpphash.h (_cpp_check_directive): new.
4054         * cpplex.c (handle_newline, cpp_free_token_list,
4055         init_trigraph_map, trigraph_ok, trigraph_replace,
4056         backslash_start, skip_block_comment, skip_line_comment,
4057         skip_whitespace, parse_name, parse_number, parse_string,
4058         copy_comment, _cpp_lex_line, spell_char, spell_string,
4059         spell_comment, spell_name, spell_other, _cpp_lex_file,
4060         _cpp_output_list): new.
4061         (expand_name_space): take length argument.
4062         (init_token_list): add comment list initialisation.
4063         (cpp_scan_line): use auto_expand_name_space.  PREV_WHITESPACE
4064         instead of HSPACE_BEFORE.
4065
4066         * cpplib.c (_cpp_check_directive): new
4067         * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
4068         DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
4069         (HSPACE_BEFORE): delete.
4070         (TTYPE_TABLE): rearrange.
4071         (struct cpp_toklist): update.
4072
4073 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4074
4075         * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
4076         gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
4077         argument form of AC_DEFINE.
4078
4079         * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
4080         HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
4081         WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
4082         HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
4083         HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
4084
4085         * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
4086
4087 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4088
4089         * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
4090         deduced.h): Use -isystem, not -I, for including system headers.
4091
4092 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4093
4094         * config/fr30/fr30.md (addsi3): Do not use small add instruction if
4095         the source register is the frame pointer or arg pointer.
4096         (addsi3_small_int): Disallow if source register is the frame
4097         pointer or arg pointer.
4098
4099 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4100
4101         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
4102         call to AC_MSG_RESULT.
4103
4104 2000-04-24  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
4105
4106         * invoke.texi: Correct grammatical errors, document
4107         -fno-gnu-keywords as identical to -fno-asm for C++.
4108
4109 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4110
4111         * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
4112         GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
4113         GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
4114         AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
4115         EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
4116
4117         * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
4118         GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
4119         GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
4120         GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
4121         new macros names.
4122
4123 2000-04-24  Mumit Khan  <khan@xraylith.wisc.edu>
4124
4125         * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
4126         (pop_alignment): Likewise.
4127         (handle_pragma_token): Likewise.
4128
4129 2000-04-24  Robert Lipe <robertlipe@usa.net>
4130
4131         * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
4132
4133 2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>
4134
4135         * combine.c (try_combine): Update reg_nonzero_bits of
4136         newi2pat before newpat.
4137
4138 Mon Apr 24 10:19:48 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4139
4140         * loop.c (strength_reduce): Simplify test to INSN_P.
4141         (record_giv): Attempt to simplify the add value, use CONSTANT_P
4142         expressions instead of CONST_INT.
4143         (express_from_1): Likewise.
4144
4145 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
4146
4147         * regs.h (reg_n_max): Don't declare.
4148         * flow.c (reg_n_max): Don't define.
4149         * regclass.c (renumber): Don't initialize to zero.
4150         (regno_allocated): Likewise.
4151         (reg_n_max): Define.
4152         (allocate_reg_info): Don't initialize unnecessarily.
4153
4154 Mon Apr 24 00:21:36 2000  Jeffrey A Law  (law@cygnus.com)
4155
4156         * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
4157         and blockage_p in the newly allocated attribute.
4158
4159 Sun Apr 23 20:16:49 2000  Alexandre Oliva  <aoliva@cygnus.com>
4160
4161         * config/mn10300/mn10300.md (addsi): `inc4' on address
4162         registers does not modify cc, but `inc' on an extended
4163         register does.
4164
4165 Sun Apr 23 16:24:35 2000  Denis Chertykov  <denisc@overta.ru>
4166
4167         * reload.c (find_equiv_reg): Checks all valueno regs
4168         as a reload_reg_p regs.
4169
4170 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
4171
4172         * cpphash.c (collect_objlike_expansion): Add sanity check.
4173         (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST.  If
4174         the buffer is the empty string, return.  Mark __DATE__ and
4175         __TIME__ as XCONST nodes, not MCONST.
4176         (_cpp_macroexpand): Avoid pushing an empty buffer.
4177         (funlike_macroexpand): Don't pop token_buffer here.
4178
4179 Sun Apr 23 18:37:53 2000  Alexandre Oliva  <aoliva@cygnus.com>
4180
4181         * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
4182         (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
4183         (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
4184         (REGNO_OK_FOR_BASE_P): Define in terms of them.
4185         (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
4186         (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
4187         (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
4188
4189 Sun Apr 23 22:23:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4190
4191         * loop.c (simplify_giv_expr):  Be more agressive on simplifying
4192         constant MULT givs.
4193
4194 2000-04-23  Zack Weinberg  <zack@wolery.cumb.org>
4195
4196         * cpphash.h (struct definition): Move file, line, col members...
4197         (struct hashnode): ... here.  Also add 'disabled' flag.
4198         (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
4199         T_IDENTITY.  Remove T_DISABLED.
4200         Update prototypes.
4201
4202         * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
4203         (collect_expansion): Split into collect_objlike_expansion and
4204         collect_funlike_expansion.
4205         (_cpp_macroexpand): Split out scan_arguments, stringify, and
4206         funlike_macroexpand.
4207         (_cpp_compare_defs): Rename compare_defs, make static.
4208         (_cpp_make_hashnode): Initialize hp->disabled.
4209         (macro_cleanup): Adjust for new token types.  Clear
4210         m->disabled.
4211         (_cpp_create_definition): Move code here to determine what
4212         sort of macro it is, and code to check for redefinitions, from
4213         do_define.  Implement a few simple cases without creating a
4214         full DEFINITION.
4215         (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
4216         Handle the simple cases.
4217         (push_macro_expansion): Set buf->has_escapes and hp->disabled
4218         here.
4219
4220         * cppinit.c (builtin_array): Change MCONST to XCONST
4221         everywhere.
4222         * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
4223         fix check for disabled and function-like macros.
4224         * cpplib.c (do_define): Move most logic to
4225         _cpp_create_definition.
4226         (do_undef): Handle new special token types.
4227
4228 Sun Apr 23 14:27:44 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4229
4230         * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
4231         of CONSTANT_P for mult_val; always use validate_change to update insn.
4232
4233 2000-04-22  Zack Weinberg  <zack@wolery.cumb.org>
4234
4235         * cpphash.c (trad_stringify, add_pat): New functions.
4236         (collect_expansion): Restore support for -traditional syntax.
4237         Use trad_stringify and add_pat.
4238         (_cpp_macroexpand): Restore support for -traditional semantics.
4239         * cpplex.c (_cpp_scan_line): Don't change space_before if we
4240         get a COMMENT token.
4241         (_cpp_lex_token): Provide COMMENT tokens to caller if
4242         traditional and parsing_define_directive.
4243         (skip_comment): Warn about // comments if -Wtraditional.
4244         * cpplib.c (do_define): Fix typo.  Create EMPTY nodes with
4245         proper node type.
4246         (do_undef): Don't warn about undefining EMPTY nodes.
4247
4248 Sat Apr 22 22:35:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4249
4250         * loop.c (strength_reduce): Fix biv removal code.
4251
4252 2000-04-22  Richard Henderson  <rth@cygnus.com>
4253
4254         * predict.c (estimate_probability): Examine both sides of
4255         a branch for no exits.  Use 90% not 50% for predict taken.
4256         Reorg for one copy of note generation code.
4257
4258 2000-04-22  Richard Henderson  <rth@cygnus.com>
4259
4260         * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
4261
4262 2000-04-22  Richard Henderson  <rth@cygnus.com>
4263
4264         * diagnostic.c (init_output_buffer): Don't initialize format_args.
4265         (output_clear): Likewise.
4266         (output_printf): Use va_copy.
4267         (vline_wrapper_message_with_location): Likewise.
4268         (v_message_with_decl): Likewise.
4269         (line_wrapper_printf): VA_START infor buffer.format_args directly.
4270         * system.h (va_copy): Provide default implementation.
4271
4272 2000-04-22  Richard Henderson  <rth@cygnus.com>
4273
4274         * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
4275         the collected condition is not a constant.
4276
4277 2000-04-22  Gabriel Dos Reis  <gdr@codesourcery.com>
4278
4279         * diagnostic.h: New file.
4280
4281         * Makefile.in (diagnostic.o): Depends on diagnostic.h
4282
4283         * diagnostic.c: Tweak.  Rationalize the output logic.  Adjust
4284         various function prototypes.
4285         (diagnostic.h): #include.
4286         (struct output_buffer): Move into diagnostic.h.
4287         (get_output_prefix): Rename to output_get_prefix.  Export.
4288         (init_output_buffer): Export. Break out.  Ajust intialization.
4289         (output_space_left, output_append): Export.
4290         (output_newline): Rename to output_add_newline.  Export.
4291         (output_clear): Nullify additional output_buffer fields.
4292         (output_puts): Rename to output_add_string.  Export.
4293         (dump_output): Rename to output_flush_on.  Export.
4294         (build_location_prefix): Constify return-type.
4295         (emit_output_prefix): Rename to output_emit_prefix. Export.
4296         (set_real_maximum_length): New function.
4297         (output_set_maximum_length): Ditto
4298         (output_clear): Ditto.
4299         (output_add_character): Ditto.
4300         (output_add_integer): Ditto.
4301         (output_add_space): Ditto.
4302         (output_format): Ditto.
4303         (output_printf): Adjust buffer initialization.
4304         (vline_wrapper_message_with_location): Ditto.
4305         (v_message_with_decl): Ditto.  Adjust call to output_puts
4306         and get_output_prefix.
4307         (default_print_error_function): Adjust buffer intialization.
4308
4309 Sat Apr 22 06:45:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4310
4311         * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
4312         of VOID_TYPE.
4313
4314 Fri Apr 21 18:33:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
4315
4316         * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
4317         of explicit 0.
4318
4319 Fri Apr 21 18:30:00 2000  Alexandre Oliva  <aoliva@cygnus.com>
4320
4321         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
4322         accurate data about SP moves.
4323
4324 Fri Apr 21 18:28:28 2000  Alexandre Oliva  <aoliva@cygnus.com>
4325
4326         * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
4327         aliases to AM33 registers.
4328
4329 Fri Apr 21 18:26:17 2000  Alexandre Oliva  <aoliva@cygnus.com>
4330
4331         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
4332         to all EXTENDED bitmaps.
4333
4334 Fri Apr 21 18:17:12 2000  Alexandre Oliva  <aoliva@cygnus.com>
4335
4336         * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
4337         * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
4338         * config/mn10300/mn10300.c (mn10300_address_cost): New function.
4339
4340 Fri Apr 21 18:11:56 2000  Alexandre Oliva  <aoliva@cygnus.com>
4341
4342         * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
4343         the operand is not constant.
4344
4345 Fri Apr 21 14:58:29 2000  Denis Chertykov  <denisc@overta.ru>
4346
4347         * reload.c (find_equiv_reg): Checks all valueno and regno regs
4348         as a call-clobbered regs.
4349
4350 Fri Apr 21 13:30:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4351
4352         * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
4353         * rtl.h: Likewise.
4354         * rtl.def: Update comment.
4355         * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
4356         * integrate.c (expand_inline_function): Likewise.
4357         * profile.c (branch_prob): Likewise.
4358         * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
4359         * print-rtl.c (print_rtx): Likewise.
4360         * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
4361         (reemit_notes): Likewise; also use enum insn_note.
4362
4363         * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
4364         (place_field): Properly compute know and actual alignment.
4365
4366         * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
4367         in proper format.
4368
4369         * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
4370         note for REG1.
4371
4372 2000-04-21  Zack Weinberg  <zack@wolery.cumb.org>
4373
4374         * cpphash.c (struct arg, struct arglist): Const-ify strings.
4375         (warn_trad_stringify, duplicate_arg_p): New helper functions.
4376         (collect_expansion): Rewrite to scan over a token list.
4377         Remove -traditional support.
4378         (collect_formal_parameters): Rename to collect_params; rewrite
4379         to scan over a token list.
4380         (_cpp_create_definition): Adjust to scan a token list.
4381         (_cpp_macroexpand): Remove -traditional support.
4382         (_cpp_compare_defs): Whitespace is now canonicalized.
4383         (comp_def_part): Delete function.
4384
4385         * cpphash.h: Update prototypes.
4386         * cpplex.c (init_token_list): Don't set lineno if there is no
4387         buffer.
4388         (pedantic_whitespace): New function.
4389         (_cpp_scan_line): Mark tokens that had hspace before.  Don't
4390         consume a newline.  Use pedantic_whitespace.
4391         (_cpp_lex_token): Remove support for -traditional macros.
4392         (_cpp_get_define_token): Delete.
4393         (_cpp_get_directive_token): Do the real work here.  Use
4394         pedantic_whitespace.
4395         (_cpp_init_input_buffer): Initialize pfile->directbuf.
4396
4397         * cpplib.c (get_macro_name): Delete.
4398         (do_define): Read the entire line into pfile->directbuf, then
4399         feed the token list to _cpp_create_definition.
4400         * cpplib.h (HSPACE_BEFORE): new define.
4401         (struct cpp_reader): Add a toklist member, "directbuf".
4402
4403         * predict.c (estimate_probability): New heuristic: if a jump
4404         branches around a block with no successors, predict it taken.
4405         Disentangle control flow.
4406
4407 2000-04-20  Richard Henderson  <rth@cygnus.com>
4408
4409         * loop.c (emit_iv_add_mult): Revert last change.
4410
4411 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
4412
4413         * cpplib.h (enum cpp_ttype): Add token types for all
4414         punctuators.  Distinguish pp-numbers from valid C numbers.
4415         Give some tokens better names.  Initialize from macro.
4416         (struct cpp_name, cpp_token, cpp_toklist): New data
4417         structures.
4418         Update prototypes.
4419         * cpplex.c (bump_column, expand_name_space,
4420         expand_token_space, init_token_list, cpp_output_list,
4421         _cpp_scan_line):  New functions.
4422         (output_line_command): Add third argument, new line number.
4423         * cpphash.h: Update prototypes.
4424         * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
4425         token names.
4426
4427 2000-04-20  Richard Henderson  <rth@cygnus.com>
4428
4429         * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
4430
4431 2000-04-20  Zack Weinberg  <zack@wolery.cumb.org>
4432
4433         * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
4434         object pointed to.
4435
4436 Thu Apr 20 14:19:18 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4437
4438         * loop.c (emit_iv_add_mult):  Simplify it's input and emit
4439         REG_EQUAL note explaining the calculated value.
4440
4441         * calls.c (expand_call): Avoid unnecesary precalculation
4442         and outgoing parameters space guarding for sibling calls.
4443         (store_one_arg): Likewise.
4444
4445 Thu Apr 20 08:01:07 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4446
4447         * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
4448         (rest_of_compilation): Write sibling dump file and account
4449         for time as jump time.
4450         * invoke.texi: Update documentation on dump flags.
4451
4452 2000-04-19  Marek Michalkiewicz  <marekm@linux.org.pl>
4453
4454         * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
4455
4456 2000-04-19  Zack Weinberg  <zack@wolery.cumb.org>
4457
4458         * cpphash.c (special_symbol): Represent an empty macro with
4459         "\r \r " not just "\r ".
4460         (_cpp_macroexpand): Correct condition for the foo ( ) special
4461         case.
4462         (unsafe_chars): Handle EOF as second argument.
4463         (push_macro_expansion): Simplify test for removing escape at
4464         end.  Do not trim both escapes if there is no text in between.
4465
4466 2000-04-19  Jim Blandy  <jimb@redhat.com>
4467
4468         * dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
4469         of PTR_SIZE, when appropriate.
4470
4471 2000-04-19  Mark Mitchell  <mark@codesourcery.com>
4472
4473         * system.h (ONLY_INT_FIELDS): Make sure it is defined.
4474         (USE_ENUM_BITFIELDS): Fix typo.
4475
4476 Wed Apr 19 12:14:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4477
4478         * stor-layout.c (place_field): Set rli->offset_align properly.
4479
4480 2000-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4481
4482         * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
4483         INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
4484         PARM_BOUNDARY): Remove unnecessary casts.
4485
4486 Wed Apr 19 12:02:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4487
4488         * calls.c (precompute_arguments): Remove must_preallocate and
4489         args_size calls.
4490         (expand_call): Update call of precompute_arguments.
4491
4492         * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
4493         check_insn_for_givs): Break out from ...
4494         (strength_reduce) ... here; use for_every_insn_in_loop to call
4495         check_insn_for_givs.
4496         * loop.h (for_every_insn_in_loop): Declare.
4497         (loop_insn_callback): New type.
4498
4499 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
4500
4501         * cpplib.c (do_pragma_poison):  Strings in the token buffer are
4502         not nul-terminated.
4503
4504 Tue Apr 18 16:04:12 2000  Jim Wilson  <wilson@cygnus.com>
4505
4506         * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4507         flag_pic and RELOC.
4508
4509 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
4510
4511         * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4512
4513         * configure.in: Delete --disable-cpplib option and all
4514         references to cpp_main.
4515         * configure: Regenerate.
4516         * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4517         @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4518         cccp.o, cccp, or cppmain.  Link cppmain.o straight to
4519         cpp$(exeext).  Add --no-headers to makeinfo command line when
4520         generating INSTALL.  Install and uninstall cpp.1 manpage, not
4521         cccp.1.
4522         * install.texi: Delete all references to cexp.y/cexp.c.
4523         Delete ancient instructions for compiling GCC on 3b1.
4524         * INSTALL: Regenerate.
4525
4526         * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4527         mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4528         * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4529         cexp.c/cexp.y.
4530         * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4531         which is no longer tested anywhere.
4532
4533         * cppinit.c (handle_option): Don't run error message through
4534         gettext twice.
4535
4536 Tue Apr 18 14:16:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4537
4538         * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4539         * cpperror.c (hashtab.h): Now include.
4540         * cppexp.c (hashtab.h): Likewise.
4541         * cpplex.c (hashtab.h): Likewise.
4542         * cppfiles.c (hashtab.h): Likewise.
4543         (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4544         to htab_find_slot_with_hash.
4545         * cpphash.c (hashtab.h): Now include.
4546         (_cpp_lookup_slot): INSERT is now enum insert_option.
4547         * cpphash.h (_cpp_lookup_slot): Likewise.
4548         * cppinit.c (hashtab.h): Include earlier.
4549         (initialize_builtins): Pass enum to htab_find_slot.
4550         * cpplib.c (hashtab.h): Now include.
4551         (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4552         (do_pragma_poison, do_assert): Likewise.
4553         * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4554         htab_find_slot_with_hash.
4555         * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4556         * tree.c (type_hash_add): Likewise.
4557         (build1): Minor cleanup.
4558
4559         * ggc-common.c: Add missing blanks.
4560         * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4561         * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4562
4563         * stmt.c (mark_case_node): New function.
4564         (mark_case_nesting): Call it.
4565
4566         * expmed.c (emit_store_flag): If comparing two-word integer
4567         with zero, can optimize NE, EQ, GE, and LT.
4568
4569         * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4570         * conflict.c: Minor cleanups.
4571         * optabs.c: Add blank line
4572         * simplify-rtx.c: Minor cleanups.
4573
4574 2000-04-18  Stan Cox  <scox@cygnus.com>
4575
4576         * gengenrtl.c (genlegend): Fix misspelling.
4577
4578 2000-04-18  Robert Lipe  <robertlipe@usa.net>
4579
4580         * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
4581         bitfields of the host compiler are not signed quantities.
4582         * config.in: Regenerate.
4583         * configure: Regenerate.
4584         * system.h (USE_ENUM_BITFIELDS): Added.
4585         (ENUM_BITFIELDS): Added.
4586         * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4587         (SHORT_ENUM_BUG): Deleted.
4588         * tree.h (tree_common): Members `code', `mode', `built_in_class',
4589         now ENUM_BITFIELD.
4590         * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4591         (CODE_FIELD_BUG): Likewise.
4592         * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4593         (OLD_CC): Likewise.
4594         * config/m68k/x-ccur (X_CFLAGS): Likewise.
4595
4596 2000-04-18  Mark Mitchell  <mark@codesourcery.com>
4597
4598         * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4599         mark is active.
4600
4601 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
4602
4603         * cppexp.c (lex): Don't assume tokens are NUL terminated.
4604         * cpplib.c (do_include, do_import, do_include_next,
4605         read_line_number, detect_if_not_defined): Likewise.
4606         * cpphash.c (collect_expansion): Likewise.
4607         (special_symbol, _cpp_macroexpand): Check return from
4608         cpp_file_buffer.
4609         * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4610         macros.  Delete all uses.
4611
4612         * gcc.dg/cpp-mi.c: Add two more test cases.
4613         * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4614
4615 2000-04-17  Richard Henderson  <rth@cygnus.com>
4616
4617         * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4618         (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4619
4620 2000-04-17  Mark Mitchell  <mark@codesourcery.com>
4621
4622         * function.c (expand_function_start): Use hard_function_value to
4623         compute the RTL to use for DECL_RESULT.
4624
4625 Mon Apr 17 23:35:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4626
4627         * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4628         (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4629          x86_memory_mismatch_stall): New global variables.
4630         (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4631         alloved; fix load penalties for Athlon.
4632         * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4633         x86_memory_mismatch_stall): Declare.
4634         (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4635          TARGET_MEMORY_MISMATCH_STALL): New.
4636         * i386.md (athlon scheduling parameters): Fix latencies according to
4637         Athlon Optimization Manual.
4638         (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4639         vector.
4640         (fsqrt instruction patterns): Set athlon_decode to direct.
4641         (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4642         PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4643         (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4644         and TARGET_PARTIAL_REGISTER_STALL machines.
4645         (pushdf_nointeger): New pattern.
4646         (pushdf_integer): Rename from pushdf.
4647         (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4648         (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4649
4650 2000-04-17  Richard Henderson  <rth@cygnus.com>
4651
4652         * loop.c (canonicalize_condition): Add WANT_REG argument.
4653         Stop the search if we match it.
4654         * expr.h (canonicalize_condition): Update decl.
4655         * predict.c (expected_value_to_br_prob): Use it.  Track last
4656         expected value note.
4657         (find_expected_value): Remove.
4658
4659         * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4660
4661 2000-04-17  Zack Weinberg  <zack@wolery.cumb.org>
4662
4663         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4664         (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4665         a plain file.
4666         * configure.in: Call AC_FUNC_MMAP_FILE.
4667         * configure: Regenerate.
4668         * config.in: Regenerate.
4669
4670         * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4671         * fixinc/fixincl.c: Likewise.
4672
4673 2000-04-17  Richard Henderson  <rth@cygnus.com>
4674
4675         * builtins.c (expand_builtin_expect): New.
4676         (expand_builtin): Call it.
4677         * builtins.def (BUILT_IN_EXPECT): New.
4678         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4679         * extend.texi: Document it.
4680
4681         * predict.c (expected_value_to_br_prob): New.
4682         (find_expected_value): New.
4683         * basic-block.h (expected_value_to_br_prob): Declare.
4684         * toplev.c (rest_of_compilation): Invoke it.
4685
4686         * rtl.h (NOTE_EXPECTED_VALUE): New.
4687         (NOTE_INSN_EXPECTED_VALUE): New.
4688         * rtl.c (note_insn_name): Update.
4689         * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4690         cases; handle NOTE_INSN_EXPECTED_VALUE.
4691
4692 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
4693
4694         * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4695         leaf sibcall delay slot if flag_pic.
4696         (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4697
4698 2000-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4699
4700         * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4701
4702         * fixproto: If fix-header fails, exit with an error.
4703
4704 Mon Apr 17 14:59:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4705
4706         * cse.c (struct check_depdendence_data): New.
4707         (check_dependence): New function.
4708         (invalidate): Use check_depdenence.
4709
4710 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
4711
4712         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4713         UNITS_PER_WORD is unsigned.
4714
4715         * tree.h (struct tree_common): Remove misleading comment.
4716
4717 2000-04-16  Dave Pitts  <dpitts@cozx.com>
4718
4719         * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4720         message in quotes. Otherwise, IBM's make program treats the '#' as the
4721         start of a comment and ignores the remainder of the line.
4722
4723         * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4724         upper case.
4725         * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4726         * cexp.y (initialize_random_junk): Likewise.
4727         * cppfiles.c (find_include_file): Cast alloca return value.
4728         * cppinit.c (initialize_standard_includes): Likewise.
4729         * cpplib.c (cpp_define, cpp_undef): Likewise.
4730         * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4731         * final.c (output_asm_insn): Allow for holes in EBCDIC.
4732         * fold-const.c (CHARMASK): New.
4733         (real_hex_to_f): Use it.
4734         * real.c (CHARMASK): New.
4735         (etoasc, asctoeg): Use it.
4736         (asctoeg): EBCDIC lower case characters preceed upper case.
4737
4738         * i370.c (mvs_add_label): Change spacing for coding conventions.
4739         * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4740         outputing case vectors.
4741         (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4742         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4743         since vector in in the data CSECT.
4744         (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4745         * i370.md (Many patterns): Put the length in the XL directives.
4746         (movdi): Put back STM and MVC in definition.
4747         (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4748         pattern using the TCA.
4749         * oe.h (CPP_SPEC): Added to allow trigraphs.
4750         * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4751         not support the "long long" type.
4752
4753 2000-04-16  Mark Mitchell  <mark@codesourcery.com>
4754
4755         * config/mips/mips-protos.h (mips_legitimate_address_p): New
4756         function.
4757         (mips_reg_mode_ok_for_base_p): Likewise.
4758         * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4759         (REG_OK_FOR_INDEX_P): Define unconditionally.
4760         (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4761         (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4762         * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4763         that GET_MODE_SIZE is unsigned.
4764         (mips_reg_mode_ok_for_base_p): Define.
4765         (mips_legitimate_address_p): Likewise.  Adjust now
4766         that GET_MODE_SIZE is unsigned.
4767         (block_move_loop): Make the number of bytes unsigned.
4768         (expand_block_move): Likewise.
4769         (function_arg): Make the loop counter unsigned to match the
4770         boundary condition.
4771
4772 2000-04-16  Richard Henderson  <rth@cygnus.com>
4773
4774         * rtl.h (enum insn_note): New enumeration.  Subsume
4775         NOTE_INSN_DELETED and friends.
4776         (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4777         * rtl.c (note_insn_name): Tweak string order.
4778
4779 2000-04-15  Zack Weinberg  <zack@wolery.cumb.org>
4780
4781         * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4782         to offset * 2.
4783
4784         * cpplex.c (output_line_command): Remove debugging prints.
4785         (cpp_output_tokens): Don't write out a zero-length buffer or
4786         try to see if it has a newline in it.
4787         (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4788         (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4789         the end of the loop.  Use memmove.  Don't read past the end of
4790         the buffer.  Remove trailing newlines from error messages.
4791
4792 2004-04-16  Neil Booth  <NeilB@earthling.net>
4793
4794         * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4795         * cpplib.c: Add new syntax flags to directive table, and
4796         supporting macros.
4797
4798 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
4799
4800         * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4801         using ret $N.
4802
4803 2000-04-15  David Edelsohn  <edelsohn@gnu.org>
4804
4805         * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4806         * haifa-sched.c: Update -fsched-verbose comments to use "=".
4807
4808 Sat Apr 15 10:59:19 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4809
4810         * Makefile.in (ggc-page.o): Now includes toplev.h.
4811         * ggc-page.c (toplev.h): Now included.
4812         (gc_time): Remove declaration.
4813         (ggc_collect): TIME now long.
4814         * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4815         others static.
4816         * toplev.h (gc_time, parse_time, gc_time): New declarations.
4817
4818         * toplev.c: Make *_time variable long to reduce chance of overflow.
4819         (TIMEVAR): Likewise for `otime'.
4820         (print_time): Arg is now long; compute percentage in FP and round.
4821         * toplev.h (print_time): Arg is long.
4822
4823         * tree.c: Minor whitespace changes.
4824
4825         * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4826         * configure: Rebuilt.
4827         * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4828         (__fixunsxfDI): Renamed from __fixunsxfdi.
4829         (__fixunsdfDI): Renamed from __fixunsdfdi.
4830         (__fixunssfDI): Renamed from __fixunssfdi.
4831         (__floatdisf): Use proper type in REP_BIT macro.
4832         (__fixunsxfSI): Renamed from __fixunsxfsi.
4833         (__fixunsdfSI): Renamed from __fixunsdfsi.
4834         (__fixunssfSI): Renamed from __fixunssfsi.
4835         * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4836         Change location of macros and upper-case some names as above.
4837         * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4838         * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4839
4840         * varasm.c (assemble_variable): Add cast to remove warning.
4841         (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4842
4843         * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4844         * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4845         region number to -1.
4846
4847 2000-04-15  Richard Earnshaw (rearnsah@arm.com)
4848
4849         * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4850         call unshare_all_rtl.
4851
4852         * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4853
4854 Fri Apr 14 16:58:45 2000  Jim Wilson  <wilson@cygnus.com>
4855
4856         * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4857         Use .s1 not .s0 for all FP instructions.
4858
4859 2000-04-14  Zack Weinberg  <zack@wolery.cumb.org>
4860
4861         * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4862         interfaces.
4863         (safe_fwrite, output_line_command): New static functions.
4864         (cpp_expand_to_buffer): Now private to cpplib.
4865         (cpp_scan_buffer): Take a printer.
4866
4867         * cpphash.h: Update prototypes.
4868         * cpplib.h: Update prototypes.
4869         (cpp_printer): New.
4870         (cpp_buffer): Remove last_nominal_fname.
4871         (cpp_reader): Remove lineno.
4872
4873         * cppmain.c: Use a cpp_printer.
4874         * fix-header.c: No need to inhibit line commands.  Call
4875         cpp_start_read with no printer.
4876
4877         * cpperror.c (cpp_notice_from_errno): Provide default name.
4878         * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4879         (find_include_file, cpp_read_file): Use make_IHASH.
4880         (file_cleanup): Set control_macro and clear
4881         input_stack_listing_current here.
4882         (_cpp_execute_include): Don't output entering-file marker.
4883         * cpphash.c (special_symbol): Look for the line number in the
4884         buffer, not the reader.
4885         (_cpp_macroexpand): No need to disable line commands.
4886         (_cpp_dump_definition): No need to generate line commands.
4887         (dump_hash_helper): Remove excess newline from output.
4888         * cppinit.c (dump_special_to_buffer): No need to generate line
4889         commands.
4890         (cpp_printer_init): New.
4891         (cpp_start_read): Take a printer, and start it up if it's not
4892         NULL.  No need to generate line commands.
4893         (cpp_finish): Expect no buffers stacked at all.  Take a
4894         printer argument, and flush the output buffer if it's not
4895         NULL.
4896         * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4897         Don't put two hashes at the beginning of an assertion.
4898         (cpp_get_token): Don't increment pfile->lineno or emit line
4899         commands here.  Return EOF if there's no buffer when we get
4900         EOF.
4901         * cpplib.c (do_define, skip_if_group):
4902         No need to disable line commands.
4903         (_cpp_output_line_command): Delete function.
4904         (do_line): Don't emit line commands here, but set things up so
4905         they will be emitted if necessary.  Use _cpp_fake_ihash to
4906         make unique nominal_fnames if necessary.
4907         (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4908         with 0 for column, not -1.
4909         (_cpp_handle_eof): Don't set the control macro here.  Don't
4910         clear input_stack_listing_current here.  Don't emit line
4911         commands.
4912
4913 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4914
4915         * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4916         always, use the default SVR4 start address.
4917
4918         * config/rs6000/linux.h (LINK_SPEC): Don't define.
4919         (LINK_SHLIB_SPEC): Define.
4920         (LINK_START_DEFAULT_SPEC): Define.
4921         (LINK_OS_DEFAULT_SPEC): Define.
4922
4923         * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4924
4925         * config/rs6000/eabi.asm (__eabi): Call __init rather than
4926         __do_global_ctors to handle constructors.
4927         * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4928         (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4929         (STARTFILE_MVME_SPEC): Likewise.
4930         (STARTFILE_SIM_SPEC): Likewise.
4931         (ENDFILE_ADS_SPEC): Use crtend.
4932         (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4933         (ENDFILE_MVME_SPEC): Likewise.
4934         (ENDFILE_SIM_SPEC): Likewise.
4935         (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4936         (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4937         (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4938         (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4939         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4940         (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4941         (CRTSTUFF_T_CFLAGS_S): Define.
4942         * config/rs6000/eabi-ctors.c: Delete.
4943
4944         * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4945         boundary.
4946         (__fini): Likewise.
4947         * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4948         boundary.
4949         (__fini): Likewise.
4950
4951 Fri Apr 14 16:09:02 2000  Jim Wilson  <wilson@cygnus.com>
4952
4953         * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4954         plus mask size is smaller or equal to the mode size.
4955
4956 Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4957
4958         * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4959         not yet set.
4960
4961         * expr.c (reload.h): Now included.
4962         (emit_block_move): Set volatile_ok when checking for movstr.
4963         (emit_move_1): Check for replacements in addresses in multi-word case.
4964         * Makefile.in (expr.o): Now includes reload.h.
4965
4966         * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4967         Never have a LIBCALL end a basic block.
4968         (find_basic_blocks_1): Likewise.
4969         Reorganize CALL_INSN cases.
4970
4971         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4972
4973 Fri Apr 14 10:54:22 2000  Jim Wilson  <wilson@cygnus.com>
4974
4975         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4976         completers from mov.ret instruction.
4977
4978 2000-04-14  Richard Henderson  <rth@cygnus.com>
4979
4980         * fold-const.c (extract_muldiv): Don't distribute and widen
4981         multiply across plus for non-sizetype unsigned types.
4982
4983 2000-04-14  Richard Henderson  <rth@cygnus.com>
4984
4985         * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4986         If the original source is dead in the incr insn, it's dead now.
4987
4988 Fri Apr 14 07:40:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4989
4990         * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4991         see if DECL_BIT_FIELD needs to still be set.
4992
4993         * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4994
4995         * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4996         print_int_cst_octal with something that's not an INTEGER_CST.
4997
4998         * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4999         and not a SUBREG to a FLOAT rtl.
5000
5001 Thu Apr 13 19:39:56 2000  Clinton Popetz  <cpopetz@cygnus.com>
5002
5003         * emit-rtl.c (try_split): Avoid infinite loop if the split
5004         results in a sequence that contains the original insn.
5005
5006 2000-04-13  Andreas Jaeger  <aj@suse.de>
5007
5008         * config/mips/mips.c (expand_block_move): Pass alignment
5009         argument to move_by_pieces in bits, not bytes.
5010
5011         * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
5012         __pic__ for little endian.
5013
5014 2000-04-13  Andreas Jaeger  <aj@suse.de>
5015
5016         * config/i386/i386-protos.h: Add prototype for
5017         uno_comparison_operator.
5018
5019 Thu Apr 13 15:55:08 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5020
5021         * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
5022         * calls.c (ECF_PURE): New flag.
5023         (emit_call_1): Handle ECF_PURE calls.
5024         (initialize_argument_information): Unset ECF_PURE flag too.
5025         (precompute_arguments): Precompute for ECF_PURE too.
5026         (expand_call): Handle ECF_PURE calls too.
5027         (emit_library_call_value_1): Rename no_queue argument to fn_type,
5028         accept value of 2 as pure function.
5029         (emit_library_call_value, emit_library_call): Rename no_queue argument
5030         to fn_type.
5031         * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
5032
5033         * tree.h (DECL_IS_PURE): New macro.
5034         (struct tree_decl): Add pure_flag.
5035         * c-common.c (enum attrs): Add attribute "pure".
5036         (init_attributes): Initialize attribute "pure"
5037         (decl_attributes): Handle attribute "pure".
5038         * extend.texi (Attribute "pure"): Document.
5039         * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
5040         in pure function.
5041         (flags_from_decl_or_type): Support attribute "pure".
5042
5043 2000-04-13  Jason Merrill  <jason@casey.cygnus.com>
5044
5045         * cpplex.c (_cpp_lex_token): Handle digraphs.  Don't null-terminate
5046         the token except for numbers and identifiers.
5047
5048 Thu Apr 13 00:09:16 EDT 2000  John Wehle  (john@feith.com)
5049
5050         * i386.c (ix86_expand_binary_operator,
5051         ix86_expand_unary_operator): Check no_new_pseudos
5052         instead of reload_in_progress and reload_completed.
5053         (ix86_split_ashldi, ix86_split_ashrdi,
5054         ix86_split_lshrdi): Check no_new_pseudos instead
5055         of reload_completed.
5056
5057 2000-04-12  Jeffrey A Law  (law@cygnus.com)
5058
5059         * function.c (purge_addressof): Unshare any shared rtl created by
5060         purge_addressof and its children.
5061
5062 2000-04-12  Mark Mitchell  <mark@codesourcery.com>
5063
5064         * function.c (aggregate_value_p): VOID_TYPE nodes are never
5065         aggregates.
5066
5067 2000-04-05  Andreas Jaeger  <aj@suse.de>
5068
5069         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
5070         not compiling PIC code, add flags for mabi=64.
5071         (SUBTARGET_CPP_SIZE_SPEC): New.
5072         (SUBTARGET_CPP_SPEC): New.
5073         (CPP_PREDEFINES): Define __PIC__ and __pic__.  PIC code is default
5074         for MIPS/Linux and lots of code needs these defines.
5075
5076 Wed Apr 12 22:44:11 2000  Hans-Peter Nilsson  <hp@axis.com>
5077
5078         * reorg.c (fill_slots_from_thread): Check side_effects_p when
5079         trying the "opposite arithmetic" approach.
5080
5081 Wed Apr 12 20:51:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5082
5083         * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
5084         (struct sh_args): Add new field force_mem.
5085         (INIT_CUMULATIVE_ARGS): Initialize it.
5086         (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
5087
5088 Wed Apr 12 17:20:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5089
5090         * calls.c (expand_call): Do not reverse args in "equal from" field.
5091         (emit_library_call_value_1): Emit_libcall_block for const and pure
5092         function.
5093
5094 Wed Apr 12 16:00:25 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5095
5096         * reload1.c (reload_combine): Don't enable optimization for fixed
5097         registers when encountering a BARRIER.
5098
5099 Wed Apr 12 15:54:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5100
5101         * builtins.c (expand_builtin_memcmp): Do expansion even with
5102         !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
5103
5104         * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
5105         stack is propertly aligned; add sanity checking for aligned
5106         stack pointer.
5107         (expand_library_call_value_1): Add sanity checking for aligned
5108         stack pointer.
5109
5110 Wed Apr 12 07:51:54 2000  Catherine Moore  <clm@cygnus.com>
5111
5112         * calls.c (emit_library_call_value_1): Change 3rd arg to
5113         locate_and_pad_parm to disregard the setting of partial.
5114
5115 Wed Apr 12 08:47:38 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5116
5117         * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
5118
5119         * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
5120         CALL_INSN from the normal case.
5121
5122 Fri Apr  7 12:23:04 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5123
5124         * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
5125         New global variables.
5126         (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
5127         adjustment.
5128         * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
5129         Declare,
5130         (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
5131          TARGET_ADD_ESP_8): New macros.
5132         * i386.md: Add peep2s to convert esp adjustments to push and pop
5133         instructions.
5134         (pushsi_prologue, popsi_epilogue): New patterns.
5135
5136 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
5137
5138         * real.c (toe64): Remove stale #endif from the last change.
5139
5140 2000-04-12  Stephen L Moshier  <moshier@mediaone.net>
5141
5142         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
5143         * real.c (toe64): Revert previous change.
5144
5145 2000-04-12  Jakub Jelinek  <jakub@redhat.com>
5146
5147         * objc/objc-act.c: Include ggc.h.
5148         (objc_tree_index, objc_global_trees): Convert most of the
5149         static tree variables into a static array with previous names
5150         as defines.
5151         (objc_ellipsis_node): New variable.
5152         (lang_init): Call objc_act_parse_init and c_parse_init.
5153         Create objc_ellipsis_node.
5154         (build_selector_translation_table): Use objc_ellipsis_node instead
5155         of (tree)1.
5156         (hack_method_prototype): Likewise.
5157         (get_arg_type_list): Likewise.
5158         (start_method_def): Likewise.
5159         (continue_method_def): Likewise.
5160         (gen_method_decl): Likewise.
5161         (ggc_mark_imp_list): New function.
5162         (ggc_mark_hash_table): New function.
5163         (objc_act_parse_init): New function.
5164         * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
5165         * c-parse.in (c_parse_init): For objc add roots of objc specific
5166         local tree variables.
5167         * objc/objc-parse.y: Rebuilt.
5168         * objc/objc-parse.c: Rebuilt.
5169         (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
5170
5171 Wed Apr 12 01:00:44 EDT 2000  John Wehle  (john@feith.com)
5172
5173         * cse.c (delete_trivially_dead_insns): Also delete insns
5174         that copy a register to itself where the destination is
5175         a strict_low_part.
5176
5177 2000-04-11  Richard Henderson  <rth@cygnus.com>
5178
5179         * flow.c (struct propagate_block_info): Add new_dead, new_live.
5180         (propagate_block): Initialize them.  Use them in parallel instead
5181         of one tmp variable, ie revert much of the 0408 and 0407 functional
5182         changes, but keep the structural changes.
5183         (mark_set_regs): Take new_dead from propagate_block_info instead.
5184         (mark_set_1, mark_set_reg): Likewise.
5185         (mark_used_regs): Likewise with new_live.
5186         (mark_used_reg): Likewise.  Revert 0408 change.
5187
5188 2000-04-11  Nick Clifton  <nickc@cygnus.com>
5189
5190         * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
5191         restriction.
5192         (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
5193
5194 2000-04-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5195
5196         * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
5197         const section to output a CONSTRUCTOR based on the same conditions
5198         used for VAR_DECLs.
5199
5200 Tue Apr 11 09:55:59 2000  Jeffrey A Law  (law@cygnus.com)
5201
5202         * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
5203         * pa/pa-protos.h (output_call): Add additional argument indicating
5204         if the call is a sibling/tail call.
5205         (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
5206         (compute_64bit_ior, cmpib_comparison_operator): Likewise.
5207         (function_arg, function_arg_partial_nregs): Likewise
5208         * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
5209         (emit_move_sequence): Zero extend certain constants as needed
5210         for TARGET_64BIT.
5211         (compute_zdepdi_operands, output_64bit_and): New functions.
5212         (output_64bit_ior, function_arg): Likewise.
5213         (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
5214         (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
5215         (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
5216         (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
5217         (output_bvb): Likewise.
5218         (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
5219         (output_call): New argument 'sibcall'.  Generate sibcall sequences
5220         as needed.
5221         (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT.  For
5222         (ouput_arg_descriptor): Do not emit argument descriptors for
5223         TARGET_64BIT.
5224         * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
5225         defined.
5226         (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
5227         (FUNCTION_OK_FOR_SIBALL): Define.
5228         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
5229         (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
5230         (CPP_SPEC): Use new spec infrastructure.
5231         (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
5232         (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
5233         (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
5234         (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
5235         (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
5236         (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
5237         (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
5238         (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
5239         (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
5240         (FUNCTION_ARG); Call out to C code.
5241         (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
5242         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
5243         (MIN_UNITS_PER_WORD): Likewise.
5244         * pa/pa.md (cmpdi): New expander.
5245         (scc patterns, movstrsi): Not available for TARGET_64BIT.
5246         (64bit conditional arithmetic): New patterns.
5247         (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
5248         (movsicc): Not available if modes on all the operands to not match.
5249         (movdicc): New expander and associated patterns.
5250         (64bit branches): New patterns.
5251         (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
5252         (pre_ldd, post_std): New patterns.
5253         (64bit addil, load low part): New patterns.
5254         (special movsf constant): Not available for TARGET_64BIT.
5255         (movsf, movdf expanders): Force constants into memory.
5256         (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
5257         (64bit movdf/movdi patterns): New patterns.
5258         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
5259         for TARGET_64BIT.
5260         (extendqidi2, extendhidi2, extendsidi2): Similarly.
5261         (adddi3 expander): Allow "arith_operand" for second input.
5262         (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
5263         (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
5264         (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
5265         (muldi3): New expander for TARGET_64BIT.
5266         (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
5267         for TARGET_64BIT.
5268         (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
5269         patterns for TARGET_64BIT.
5270         (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
5271         patterns for TARGET_64BIT.
5272         (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
5273         (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
5274         (sibcall_epilogue): New expander.
5275         (casesi): Tweak for TARGET_64BIT.
5276         (call expanders): Set & use the outgoing argument pointer.  Use the
5277         64bit call patterns as needed. Add additional arg to output_call.
5278         (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
5279         (sibcall, sibcall_internal_symref): New expanders.
5280         (sibcall_value, sibcall_value_internal_symref
5281         (interspace_jump): Turn into an expander + matching patterns.
5282         (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
5283         * pa/pa64-regs.h: Eliminate trigraph sequences.
5284         * pa/pa64-start.h (TARGET_PA_20): Fix typo.
5285
5286 2000-04-11  Zack Weinberg  <zack@wolery.cumb.org>
5287
5288         * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
5289         cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
5290         cpp_token with cpp_ttype everywhere.
5291         * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
5292         Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
5293         CPP_BUF_COL.  Line and column numbers are unsigned int, not
5294         long.
5295         * cpplex.c (cpp_buf_line_and_col): Delete.
5296         * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
5297         'long lineno' to 'unsigned int lineno'.
5298         (CPP_BUF_LINE, CPP_BUF_COL): New macros.
5299
5300 2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
5301
5302         * extend.texi: ISO C99 is not a draft anymore.
5303         * invoke.texi: ISO C++ is not a draft anymore.
5304         * cpp.texi: __cplusplus is required by the ISO standard.
5305
5306         * extend.texi (-fthis-is-variable): Undocument.
5307         * flags.h (warn_template_debugging): Remove declaration.
5308         * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
5309         -Wenum-clash, -Wtemplate-debugging): Undocument.
5310
5311 2000-04-10  Nick Clifton  <nickc@cygnus.com>
5312
5313         * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5314         integer.
5315         (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
5316         integer.
5317         (ARM_SIGN_EXTEND): Use HOST_UINT.
5318         (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
5319         (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
5320         (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
5321         (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
5322
5323         * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
5324         (arm_gen_constant): Use HOST_UINT.
5325         (arm_canonicalize_constant): Use HOST_UINT.
5326         (arm_reload_in_hi): Use HOST_UINT.
5327         (arm_reload_out_hi): Use HOST_UINT.
5328         (output_multi_immediate): Use HOST_UINT.
5329         (int_log2): Use HOST_UINT.
5330         (arm_poke_function_name): Use HOST_UINT.
5331         (arm_output_epilogue): Use arm_volatile_func().
5332         (output_thumb_prologue): Use arm_strip_name_encoding().
5333
5334 Mon Apr 10 15:40:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5335
5336         * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
5337         of sequence point problems.
5338
5339 2000-04-10  Nathan Sidwell  <nathan@codesourcery.com>
5340
5341         * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
5342         Recomment.
5343         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
5344
5345 Mon Apr 10 07:21:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5346
5347         * sbitmap.h: Whitespace changes and use upper-case macro args.
5348         (struct simple_bitmap_def): All sizes now unsigned.
5349         (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
5350         * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
5351         (sbitmap_vector_alloc): Parms and local vars now unsigned.
5352         (sbitmap_zero): Cast bzero arg to PTR.
5353         (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
5354         (sbitmap_union_of_diffs): Change loop index to unsigned and rework
5355         loop to make structure clearer.
5356         (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
5357         (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
5358         (sbitmap_a_and_b_or_c): Likewise.
5359         (sbitmap_intersection_of_succs): Minor cleanups.
5360         (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
5361         (sbitmap_union_of_preds): Likewise.
5362         (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
5363         (debug_sbitmap): New function.
5364
5365         * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
5366         * c-typeck.c (convert_for_assignment): Likewise.
5367
5368         * expmed.c (init_expmed): Don't free objects we make.
5369         * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
5370
5371         * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
5372         (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
5373
5374         * gcse.c (expr_hash_table_size): Now unsigned.
5375         (compute_ae_gen): Local variable `i' now unsigned.
5376         (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
5377         (compute_transout, hoist_code): Likewise.
5378         (compute_local_properties): Likewise, also hash_table_size.
5379         (alloc_expr_hash_table): N_INSNS now unsigned.
5380         (delete_null_pointer_checks): Mark arg F as unused.
5381
5382         * regrename.c: Minor cleanups, including chang some variables
5383         to unsigned int.
5384
5385 2000-04-10  Neil Booth  <NeilB@earthling.net>
5386
5387         * cpplex.c (skip_block_comment): Use pointer arithmetic rather
5388         than GETC ().
5389         * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
5390
5391 2000-04-10  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
5392
5393         * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
5394         __classof__, and __headof__ from the list of gnu keywords.
5395         (-ansi): Remove -foperator-names from list of implied options.
5396         Do not call it ANSI C++.
5397         (-foperator-names): Document as -fno-operator-names.
5398
5399 2000-04-09  Zack Weinberg  <zack@wolery.cumb.org>
5400
5401         * cpphash.c (timestamp): Delete.
5402         (del_HASHNODE): If type is T_MCONST, free value.cpval.
5403         (special_symbol): Remove unnecessary braces.  Remove
5404         T_VERSION.  Treat T_STDC like T_CONST unless
5405         STDC_0_IN_SYSTEM_HEADERS.  Render both __DATE__ and __TIME__
5406         when one is encountered, then convert them into T_MCONST
5407         nodes.
5408         * cppinit.c (builtin_array): version_string is T_MCONST.
5409         __STDC__ has a "1" in its cpval.  Don't have a terminator
5410         entry.  Clean up which entries are dumped.
5411         (initialize_builtins): Only __STDC__ gets the special
5412         -traditional treatment.  Count the length of builtin_array.
5413         Render version_string here.
5414         * cpphash.h: Remove T_VERSION.  Add T_MCONST.
5415         * cpplib.h (struct cpp_reader): Remove timebuf.
5416
5417 2000-04-09  Richard Henderson  <rth@cygnus.com>
5418
5419         * genrecog.c (pred): Update comparison_operator for the unordered
5420         operators.
5421
5422         * config/i386/i386.c (no_comparison_operator): Disallow unordered
5423         operators.
5424         (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
5425         (uno_comparison_operator): New.
5426         (put_condition_code): Handle UNORDERED/ORDERED.
5427         (unsigned_comparison): Likewise.
5428         (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
5429         (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
5430         (ix86_expand_fp_compare): Use them.  Take scratch as argument,
5431         update all callers.  Handle all 8 unordered operators.
5432         (ix86_expand_setcc): Lose the unordered argument, update all callers.
5433         (ix86_expand_branch): Likewise.  Don't fully expand fp branches.
5434         * config/i386/i386.h (PREDICATE_CODES): Update.
5435         * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
5436         (ix86_expand_branch, ix86_expand_setcc): Update.
5437         * config/i386/i386.md (sunordered, sordered): New.
5438         (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
5439         (bunordered, bordered): New.
5440         (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
5441         (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
5442         (*fp_jcc_5, *fp_jcc_6, and splitters): New.
5443
5444 2000-04-09  Philip Blundell  <philb@gnu.org>
5445
5446         * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
5447
5448 Sun Apr  9 15:16:14 EDT 2000  John Wehle  (john@feith.com)
5449
5450         * i386.md (fix_truncsfhi2, fix_truncdfhi2,
5451         fix_truncxfhi2): New patterns.
5452         * i386.c (output_fix_trunc): Handle converting to HImode.
5453
5454 2000-04-08  Alex Samuel  <samuel@codesourcery.com>
5455
5456         * ssa.c (convert_to_ssa): Eliminate dead code when calling
5457         life_analysis.
5458         (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
5459         (for_each_successor_phi): Change parameter to basic_block.
5460         (coalesce_regs_in_successor_phi_nodes): Likewise.
5461         (coalesce_regs_in_copies): Likewise.
5462         (compute_coalesced_reg_partition): Use basic_block instead of index.
5463         * rtl.h (convert_to_ssa): Delete.
5464         (convert_from_ssa): Likewise.
5465         (successor_phi_fn): Likewise.
5466         (for_each_successor_phi): Likewise.
5467         (in_ssa_form): Likewise.
5468         * basic-block.h (convert_to_ssa): Moved from rtl.h.
5469         (convert_from_ssa): Likewise.
5470         (successor_phi_fn): Likewise.
5471         (in_ssa_form): Likewise.
5472         (for_each_successor_phi): Likewise.  Change parameter to basic_block.
5473         * flow.c (calculate_global_regs_live): Pass a basic_block to
5474         for_each_successor_phi.
5475
5476 2000-04-08  Richard Henderson  <rth@cygnus.com>
5477
5478         * flow.c (mark_used_reg): Use reg_set_p to determine if a register
5479         was modified in the current insn.
5480
5481 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5482
5483         * arm/thumb.md: Delete.
5484         * arm/thumb-protos.h: Delete.
5485
5486 2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5487
5488         Merge changes from merged-arm-thumb-backend-branch onto trunk.
5489
5490         2000-04-08  Richard Earnshaw (rearnsha@arm.com)
5491
5492         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
5493         into branch.
5494
5495         * arm.md (nop): Use the standard RTL expression.  Don't code as a
5496         define_expand.
5497         (*arm_nop, *thumb_nop): Delete.
5498
5499         * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5500         constants.  Use casts instead.
5501         (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5502         output_multi_immediate, arm_poke_function_name): Likewise.
5503         * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5504         MASK_RETURN_ADDDR): Likewise.
5505
5506         2000-03-31  Richard Earnshaw (rearnsha@arm.com)
5507
5508         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5509         into branch.
5510
5511         * arm.md (eh_epilogue): New function.
5512         * arm.h (struct machine_function): Move to here ...
5513         * arm.c: ... from here.
5514         (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5515         (thumb_exit): Extra parameter eh_ofs.  All callers changed.
5516         Handle epilogues for __builtin_eh_return.  Make bit-fields unsigned.
5517
5518         2000-03-30  Nick Clifton  <nickc@cygnus.com>
5519
5520         * config/arm/semi.h (ASM_SPEC): Restore definition.
5521         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5522
5523         * config/arm/elf.h (ASM_SPEC): Restore definition.
5524         (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5525
5526         * config/arm/arm.h (ASM_SPEC): Remove definition.
5527         (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5528
5529         2000-03-26  Bernd Schmidt <bernds@cygnus.co.uk>
5530
5531         * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5532
5533         2000-03-24  Nick Clifton  <nickc@cygnus.com>
5534
5535         Various formating tidyups, elimination of compile time
5536         warnings and synchronisation with internal sources:
5537
5538         * config/arm/arm-protos.h (assemble_align): Add prototype.
5539         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5540         (gen_comapre_reg): Rename to arm_gen_compare_reg.
5541         (arm_return_addr_rtx): Rename to arm_return_addr.
5542
5543         * config/arm/arm.c: Include except.h.
5544         Define shorter typenames for strict minipool_node and struct
5545         minipool_fix.
5546         (arm_return_in_memory): For WinCE return all structures <= 32 bits
5547         in memory.
5548         (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5549         (gen_comapre_reg): Rename to arm_gen_compare_reg.
5550
5551         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5552         already defined.
5553         (ASM_SPEC): Define if not already defined.
5554         (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5555
5556         * config/arm/arm.md: Rename references to gen_rotated_half_load to
5557         arm_gen_rotated_half_load, and references to gen_comapre_reg to
5558         arm_gen_compare_reg.
5559         (indirect_jump):  Only accept register operands.
5560         (load_indirect_jump): Keep this pattern since combine can generate
5561         it.
5562
5563         * config/arm/coff.h: Include aout.h.
5564         (MULTILIB_DEFAULTS): Only define if not already defined.
5565
5566         * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5567         into arm.h (so that COFF ports can support thumb based aliases).
5568         (ASM_SPEC): Move definition into arm.h
5569
5570         * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5571         redundant apcs spec.
5572         (ASM_SPEC): Move definition to arm.h
5573
5574         * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5575
5576         * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5577         for entries in the .bss section
5578
5579         2000-03-23  Nick Clifton  <nickc@cygnus.com>
5580
5581         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5582         to thumb_far_jump_used_p.
5583
5584         * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5585         single integer parameter.
5586
5587         * config/arm/arm.c (struct machine_function): Add two new
5588         fields, 'far_jump_used' and 'arg_pointer_live'.
5589         (thumb_far_jump_used_p): Once the decision has been made that
5590         far jumps might be used, always return true.
5591         If being called from the initial elimination offset macro then
5592         do not bother to perform the test if the arg pointer is not
5593         being used.
5594         (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5595         (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5596
5597         2000-03-23  Richard Earnshaw (rearnsha@arm.com)
5598
5599         * arm.c (output_return_instruction): Handle more cases where we can
5600         return from a function with an ldr instruction.
5601         (arm_output_epilogue): Likewise.
5602
5603         * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5604         if we need to push a large stack frame and there are no callee-saved
5605         registers.
5606
5607         * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5608         in ARM code if the frame pointer has been eliminated.
5609
5610         * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5611         unspec_volatile arguments to avoid duplicates.
5612         (consttable_1, consttable_2): Fixes for big-endian mode.
5613
5614         * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5615         as appropriate.
5616
5617         Re-write constant pool code.
5618         * arm.c (minipool_node, minipool_fix): New types.
5619         (minifix): Delete type.
5620         (arm_add_minipool_constant): Delete.
5621         (arm_compute_minipool_offsets, arm_find_barrier,
5622         arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5623         (get_jump_table_size): Now returns HOST_WIDE_INT.
5624         (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5625         functions.
5626         (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5627         (assign_minipool_offsets, arm_print_value): Likewise.
5628         (dump_minipool): Rewrite.
5629         (arm_barrier_cost): New function.
5630         (create_fix_barrier): New function.
5631         (push_minipool_barrier): New function.
5632         (push_minipool_fix): Record additional information about the fixup
5633         required.
5634         (note_invalid_constants): Remove push for (UNSPEC 3).  Don't
5635         check the mode of what needs fixing.
5636         (arm_reorg): Rewrite.
5637
5638         2000-03-08  Nick Clifton  <nickc@cygnus.com>
5639
5640         * config/arm/arm.md (indirect_jump): Force constant addresses into
5641         a register.
5642
5643         2000-03-01  Bernd Schmidt <bernds@cygnus.co.uk>
5644
5645         * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5646
5647         2000-02-24  Nick Clifton  <nickc@cygnus.com>
5648
5649         * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5650         adjust is word aligned.
5651         (thumb_expand_epilogue): Make sure that stack adjust is word
5652         aligned.
5653
5654         * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5655
5656         2000-02-24  Bernd Schmidt <bernds@cygnus.com>
5657
5658         * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5659         pointer relative addresses.
5660
5661         2000-02-10  Richard Earnshaw  <rearnsha@arm.com>
5662
5663         * arm.c (find_barrier): Find the last barrier within the allowed
5664         range.
5665
5666         2000-02-09  Nick Clifton  <nickc@cygnus.com>
5667
5668         * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5669
5670         2000-02-09  Nick Clifton  <nickc@cygnus.com>
5671
5672         * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5673         ARM_FUNCTION_PROFILER.
5674
5675         * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5676         ARM_FUNCTION_PROFILER.
5677
5678         * config/arm/linux-oldld.h: Imported from mainline sources.
5679
5680         2000-02-07  Nick Clifton  <nickc@cygnus.com>
5681
5682         * config/arm/lib1funcs.asm: Merge in thumb functions from
5683         lib1thumb.asm.
5684
5685         * config/arm/lib1thumb.asm: Delete.
5686
5687         2000-02-04  Nick Clifton  <nickc@cygnus.com>
5688
5689         * config/arm/arm.c: Sychronised with current Red hat local
5690         sources.
5691         * config/arm/arm.h: Ditto.
5692         * config/arm/arm-protos.h: Ditto.
5693
5694         2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
5695
5696         * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5697
5698         * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5699         byte stores.
5700
5701         2000-02-02  Nick Clifton  <nickc@cygnus.com>
5702
5703         * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5704
5705         * config/arm/arm.md (epilogue): Fix rtl checking abort because
5706         (return) was emited using an emit_insn() call.
5707
5708         2000-01-31  Nick Clifton  <nickc@cygnus.com>
5709
5710         * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5711         thumb stack frame.
5712         (thumb_exit): Move frame pointer back into hard frame pointer
5713         register if backtracing is being used.
5714
5715         2000-01-13  Richard Earnshaw (rearnsha@arm.com)
5716
5717         * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5718         into branch.
5719
5720         1999-12-15  Bernd Schmidt  <bernds@cygnus.co.uk>
5721
5722         * config/arm/arm.md (neg_pool_offset): Provide default for new
5723         attribute.
5724         (arm_movsi_insn): Add neg_pool_offset attribute.
5725         * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5726         rtx for the insn that starts the scan and an unsigned long for its
5727         address.  Add MIN_OFFSET and PINSERTED args.  All callers changed.
5728         Change scan to ignore insns before MIN_OFFSET.  Store size of inserted
5729         instructions in *PINSERTED.
5730         (struct minipool_fixup): Add MIN_ADDRESS elt.
5731         (sort_fixups): Compute it.
5732         (arm_reorg): Changes to support inserting pools before the insn to be
5733         fixed up.
5734
5735         1999-12-08  Bernd Schmidt  <bernds@cygnus.co.uk>
5736
5737         * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5738         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5739         * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5740
5741         Wed Nov  3 10:04:07 1999  Nick Clifton  <nickc@cygnus.com>
5742
5743         * config/arm/semi.h (TARGET_VERSION): Do not define if already
5744         defined.
5745         (TARGET_DEFAULT): Do not define if already defined.
5746
5747         Tue Nov  2 10:37:25 1999  Nick Clifton  <nickc@cygnus.com>
5748
5749         * config/arm/arm.md (anddi3): Allow disjoint source operands.
5750         (iordi3): Allow disjoint source operands.
5751         (xordi3): Allow disjoint source operands.
5752         (negdi2): Permit construction for ARM and Thumb.
5753         (arm_negdi2): Renamed version of old negdi2 pattern.
5754         (thumb_negdi2): New pattern: Only permit non-overlapping
5755         source and destination.
5756
5757         Fri Oct 29 18:52:38 1999  Nick Clifton  <nickc@cygnus.com>
5758
5759         * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5760         scratch low register so that it will not be deleted.
5761
5762         Fri Oct 29 15:23:48 1999  Nick Clifton  <nickc@cygnus.com>
5763
5764         * config/arm/pe.h (ARM_PE): Define.
5765
5766         * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5767         interfacearm attribute if this is a PE toolchain.
5768         (output_return_instruction): Do not emit anything if the function
5769         has the naked attribute set.
5770         (is_called_in_ARM_mode): If the function has the interfacearm
5771         attribute then return true.
5772         (thumb_expand_prologue): Do not generate a prologue for naked
5773         functions.
5774         (thumb_expand_epilogue): Do not generate an epilogie for a naked
5775         function.
5776         (output_thumb_prologue): Do not bother if the function is naked.
5777         Strip PE encoding from function name before emitting.
5778
5779         Thu Oct 28 11:05:13 1999  Richard Earnshaw <rearnsha@arm.com>
5780
5781         * arm.md (pic_load_addr): Fix constraints.
5782
5783         * arm.md (casesi_insn): Fix mis-applied patch.
5784
5785         * arm.md ("core" function unit): Add rules for single- and
5786         multi-cycle insns.
5787         (All TARGET_THUMB patterns): Add "type" attribute information
5788         where needed.
5789         * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5790         the following insn is a CALL.
5791
5792         * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5793         pointer.
5794         * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5795         ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5796         (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5797
5798         Wed Oct 27 14:40:48 1999  Nick Clifton  <nickc@cygnus.com>
5799
5800         * config/arm/linux-gas.h: oops - this file was missed out when the
5801         branch was created...
5802
5803         Tue Oct 26 17:07:38 1999  Richard Earnshaw <rearnsha@arm.com>
5804
5805         * thumb.c: Deleted.  Move contents to ...
5806         * arm.c: ... here.
5807         * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5808         rule for thumb.o
5809         * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5810         * configure: Regen.
5811
5812         * arm-protos.h: Use RTX_CODE and tidy up long lines.  Don't
5813         declare a prototype for asm_output_align();
5814
5815         * arm.c (thumb_condition_code): Delete.
5816         (arm_print_operand): Always use arm_condition_code array.
5817
5818         * arm.c (thumb_return_addr_rtx): Delete.
5819         (arm_save_machine_status, arm_restore_machine_status): Delete.
5820         (arm_init_machine_status, arm_mark_machine_status): New functions.
5821         (arm_init_expanders): Update accordingly.
5822         (arm_return_addr): Renamed from arm_return_addr_rtx.  Rewrite.
5823         (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5824         * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5825
5826         Tue Oct 26 13:24:16 1999  Nick Clifton  <nickc@cygnus.com>
5827
5828         * configure.in : Fix arm-*-aout target to use new t-arm-aout
5829         script.
5830         * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5831         targets.
5832
5833         Tue Oct 26 11:27:12 1999  Nick Clifton  <nickc@cygnus.com>
5834
5835         * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5836         stack backtrace structure.
5837
5838         * config/arm/arm-protos.h: Add prototypes for functions defined in
5839         arm/pe.h.
5840
5841         * config/arm/arm.c (arm_override_options): Fix selection of
5842         attributes of default processor.
5843
5844         * config/arm/coff.h: Delete needless #include.
5845
5846         * config/arm/pe.c: Delete unused code.
5847
5848         * config/arm/pe.h (CPP_DEFINES): Delete
5849         (SUBTARGET_CPP_SPEC): Define.
5850         (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5851
5852         * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5853
5854         Mon Oct 25 15:42:09 1999  Richard Earnshaw (rearnsha@arm.com)
5855
5856         * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5857         updated.
5858         (CAN_DEBUG_WITHOUT_FP): Define.
5859         (FIXED_REGISTERS): Make r11 call-saved.
5860         (CALL_USED_REGISTERS): Likewise.
5861         (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5862         (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5863         frame-pointer is required.
5864         (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5865         * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5866         if the target normally needs a stack frame in non-leaf functions.
5867         (use_return_insn): Correct logic for determining when a return
5868         instruction can be used.
5869         (output_return_instruction): Handle the frame-pointer register as
5870         a normal register when not TARGET_APCS_FRAME.
5871         (arm_output_prologue): Likewise.
5872         (arm_output_epilogue): Likewise.
5873         (output_func_epilogue): Likewise.
5874         (arm_expand_prologue): Likewise.
5875         * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5876
5877         * arm.c (use_return_insn): No need to check floating point regs if
5878         TARGET_SOFT_FLOAT.
5879         (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5880         the code of value stored in the minipool array.
5881         (arm_add_minipool_constant): Likewise.
5882
5883 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5884
5885         * basic-block.h (conflict_graph_enum_fn): K&R fix.
5886
5887 2000-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5888
5889         * tree.c (tree_expr_nonnegative_p): New function.
5890
5891         * tree.h (tree_expr_nonnegative_p): Declare.
5892
5893         * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5894         elide some sign_compare warnings.
5895         (build_conditional_expr): Likewise.
5896
5897 Sat Apr  8 00:21:51 EDT 2000  John Wehle  (john@feith.com)
5898
5899         * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5900
5901         * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5902         * i386.c (print_operand): Use the proper suffix for a 387 HImode
5903         operand.  Abort if a 387 operand has an unsupported size.
5904
5905 2000-04-08  Neil Booth  <NeilB@earthling.net>
5906
5907         * cppexp.c (parse_charconst): Null does not end character
5908         constants.
5909         * cppinit.c (ISTABLE): Null character handled as whitespace.
5910         * cpplex.c (null_warning):  new function.
5911         (skip_string): Emit warning if nulls encountered.
5912         (_cpp_skip_hspace): Emit warning if nulls encountered.
5913         (_cpp_lex_token): Emit warning if nulls encountered.  Drop
5914         them.
5915         * cpp.texi: Update.
5916
5917 2000-04-07  Richard Henderson  <rth@cygnus.com>
5918
5919         * flow.c (loop_depth): Remove.
5920         (reg_next_use, cc0_live, mem_set_list): Replace with ...
5921         (struct propagate_block_info): New.
5922         (life_analysis): Don't allocate reg_next_use.
5923         (propagate_block_delete_insn): Break out of propagate_block.
5924         Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5925         (propagate_block_delete_libcall): Likewise.
5926         (propagate_block): Create a propagate_block_info struct to pass
5927         to subroutines.  Allocate one not two temporary regsets.  Don't
5928         clobber memory for const calls.  Look for clobbers in
5929         CALL_INSN_FUNCTION_USAGE.
5930         (mark_set_regs): Recognize COND_EXEC.
5931         (mark_set_reg): Break out of mark_set_1.
5932         (mark_used_reg): Break out of mark_used_regs.
5933         (mark_used_regs): Recognize COND_EXEC.
5934         (insn_dead_p): Use propagate_block_info struct.
5935         (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5936         (find_auto_inc, try_pre_increment_1): Likewise.
5937         (print_rtl_with_bb): Dump regs live at end too.
5938         (count_reg_sets_1): Pass in loop_depth.
5939         (count_reg_sets, count_reg_references): Likewise.
5940         (recompute_reg_usage): Provide it.
5941
5942 2000-04-07  Richard Henderson  <rth@cygnus.com>
5943
5944         * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5945         not the raw files.
5946
5947 2000-04-07  Zack Weinberg  <zack@wolery.cumb.org>
5948
5949         * cpplib.c (do_elif): Skip the rest of the line if we're
5950         not going to bother evaluating it.
5951         (skip_if_group): Clear pfile->only_seen_white.  Reorder loop
5952         to avoid pointless calls to the lexer.
5953
5954 Fri Apr  7 11:50:54 2000  Jim Wilson  <wilson@cygnus.com>
5955
5956         * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5957
5958 2000-04-07  Jason Merrill  <jason@casey.cygnus.com>
5959
5960         * calls.c (expand_call): emit_queue if we're trying a sibcall.
5961
5962 2000-04-07  Jakub Jelinek  <jakub@redhat.com>
5963
5964         * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5965
5966 2000-04-06  Geoff Keating  <geoffk@cygnus.com>
5967
5968         * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5969         crtend so they can be multilibbed.
5970         (STAGESTUFF): Remove s-crt and s-crtS.
5971
5972 2000-04-07  Richard Henderson  <rth@cygnus.com>
5973
5974         * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5975         if we discover we need a pseudo and no_new_pseudos is true.
5976         * config/alpha/alpha.md (ne:DI insn): New.
5977         (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5978
5979 2000-04-07  Richard Henderson  <rth@cygnus.com>
5980
5981         * rtl.def (COND_EXEC): New.
5982         * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5983         * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5984
5985         * genconfig.c (have_cond_arith_flag): Remove.
5986         (have_cond_exec_flag): New.
5987         (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5988         (main): Print HAVE_conditional_execution.
5989
5990         * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5991         (sched_analyze_insn, print_pattern): Likewise.
5992         * reload.c (find_equiv_reg): Likewise.
5993         * rtlanal.c (reg_referenced_p): Likewise.
5994         (note_stores, dead_or_set_regno_p): Likewise.
5995         (reg_overlap_mentioned_p): Rewrite to use a switch.
5996
5997         * ggc.h (struct rtx_def): Forward declare.
5998
5999         * print-rtl.c (debug_rtx_range): New.
6000         * rtl.h (debug_rtx_range): Declare.
6001
6002         * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
6003
6004         * gcse.c (gcse_main): Don't rebuild the CFG here.
6005         (delete_null_pointer_checks): Likewise.
6006         * ssa.c (convert_to_ssa): Likewise.
6007         * toplev.c (rest_of_compilation): Do it here instead.  Combine
6008         sequential calls to TIMEVAR.  Consistently use `insns' instead of
6009         `get_insns()'.  Always split insns after reload when optimizing.
6010
6011         * basic-block.h (merge_blocks_nomove): Declare.
6012         (tidy_fallthru_edge): Declare.
6013         * flow.c (merge_blocks_nomove): Document as merging into previous
6014         blocks.  Remove cruft from between blocks; remove all edges out of A.
6015         (tidy_fallthru_edge): Export.
6016
6017 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
6018
6019         * ssa.c (compute_conservative_reg_partition): Declare with
6020         void arguments.
6021         * toplev.c (clean_dump_file): Remove previously-deleted function
6022         inadvertantly merged back in.
6023         * conflict.c (conflict_graph_add): Use a single call to
6024         htab_find_slot to look up and insert.
6025
6026 2000-04-06  Richard Henderson  <rth@cygnus.com>
6027
6028         * genrecog.c (*): Rename _last_insn to last_insn.
6029         (make_insn_sequence): Set the position of the peephole2 C test
6030         to be at the last insn.
6031
6032 2000-04-06  Richard Henderson  <rth@cygnus.com>
6033
6034         * flow.c (compute_flow_dominators): Free worklist.
6035
6036 2000-04-06  Michael Matz  <matzmich@cs.tu-berlin.de>
6037
6038         * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
6039
6040 2000-04-06  Alex Samuel  <samuel@codesourcery.com>
6041
6042         * rtl.h (INSN_P): New macro.
6043         (successor_phi_fn): New typedef.
6044         (for_each_successor_phi): New prototype.
6045         (in_ssa_form): New variable.
6046         (PHI_NODE_P): Likewise.
6047         * flow.c (calculate_global_regs_live): Add to new_live_at_end from
6048         phi nodes in successors.
6049         (mark_used_regs): Add PHI case.
6050         (set_phi_alternative_reg): New function.
6051         (life_analysis): Assert that dead code elimination is not selected
6052         when in SSA form.
6053         * toplev.c (to_ssa_time): New variable.
6054         (from_ssa_time): Likewise.
6055         (compile_file): Zero to_ssa_time and from_ssa_time.
6056         Print time to convert to and from SSA.
6057         (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
6058         (print_time): Compute percent fraction as integer.
6059         * ssa.c (PHI_NODE_P): Moved to rtl.h.
6060         (convert_to_ssa): Check if we're already in SSA.
6061         Don't eliminate dead code in life_analysis.
6062         Rerun flow and life analysis at bottom.
6063         (eliminate_phi): Use canonical regnos when adding nodes.
6064         (mark_reg_in_phi): New function.
6065         (mark_phi_and_copy_regs): Likewise.
6066         (convert_from_ssa): Rerun life analysis at top.
6067         Use coalesced partition.
6068         Check for removing a phi node at the end of the block.
6069         (compute_coalesced_reg_partition): New function.
6070         (coalesce_regs_in_copies): Likewise.
6071         (coalesce_reg_in_phi): Likewise.
6072         (coalesce_regs_in_sucessor_phi_nodes): Likewise.
6073         (for_each_successor_phi): Likewise.
6074         (rename_context): New struct.
6075         (rename_block): Use a rename_context with rename_insn_1.  When
6076         renaming sets of a subreg, emit a copy of the entire reg first.
6077         (rename_insn_1): Treat data as a rename_context *.  Save current
6078         insn in set_data.
6079         (rename_set_data): Add field set_insn.
6080         * Makefile.in (HASHTAB_H): Move up in file.
6081         (OBSTACK_H): New macro.
6082         (collect2.o): Use OBSTACK_H in dependencies.
6083         (sdbout.o): Likewise.
6084         (emit-rtl.o): Likewise.
6085         (simplify-rtx.o): Likewise.
6086         (fix-header.o): Likewise.
6087         (OBJS): Add conflict.o.
6088         (conflict.o): New rule.
6089         * basic-block.h: Include partition.h.
6090         (conflict_graph): New typedef.
6091         (conflict_graph_enum_fn): Likewise.
6092         (conflict_graph_new): New prototype.
6093         (conflict_graph_delete): Likewise.
6094         (conflict_graph_add): Likewise.
6095         (conflict_graph_conflict_p): Likewise.
6096         (conflict_graph_enum): Likewise.
6097         (conflict_graph_merge_regs): Likewise.
6098         (conflict_graph_print): Likewise.
6099         (conflict_graph_compute): Likewise.
6100         * conflict.c: New file.
6101
6102 2000-04-06  Jason Merrill  <jason@yorick.cygnus.com>
6103
6104         * tlink.c (read_repo_files): Don't look for .rpo info for
6105         linker flags.
6106
6107 Thu Apr  6 20:39:26 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6108
6109         * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
6110
6111 Thu Apr  6 19:34:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6112
6113         * config/sh/lib1funcs.asm (___udivsi3_i4):
6114         ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
6115         only depends on FMOVD_WORKS.
6116
6117 Thu Apr  6 19:11:47 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6118
6119         * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
6120         make double constant 8-byte aligned.
6121
6122 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
6123
6124         * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
6125         movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
6126         movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
6127         (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
6128         Accept storing GENERAL_REGS into offsetable memory.
6129         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
6130         building a TFmode constant other than 0.0L into GENERAL_REGS.
6131
6132 2000-04-06  Clinton Popetz  <cpopetz@cygnus.com>
6133
6134         * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
6135
6136 2000-04-06  Zack Weinberg  <zack@wolery.cumb.org>
6137
6138         * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
6139         (macro_cleanup): No need to cast pbuf->macro.
6140         (collect_expansion): Use _cpp_get_define_token.  Goto done if
6141         it returns VSPACE.  Remove check for trailing space after
6142         CPP_COMMENT.
6143         (_cpp_create_definition): Don't diddle flags here.  Return
6144         directly on error.
6145         (unsafe_chars): Handle c1 being EOF.
6146         (push_macro_expansion): Use unsafe_chars for both accidental-paste
6147         checks.  Don't push the buffer till after we're done with
6148         them.
6149         * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
6150         (PEEKN, FORWARD, GETC, PEEKC): Use them.
6151         (cpp_push_buffer): Don't set new->alimit.  Set new->mark
6152         appropriately.
6153         (_cpp_parse_assertion): Don't NUL terminate.
6154         (_cpp_lex_token): Fix -traditional macro handling.  Don't skip
6155         hspace before calling _cpp_parse_assertion.  Remove all sets
6156         of only_seen_white. Treat '\f' as hspace.  Don't do anything
6157         special with '\n' here.
6158         (maybe_macroexpand): Handle T_EMPTY hash entries without
6159         pushing a buffer at all.
6160         (cpp_get_token): Handle clearing only_seen_white here.  Handle
6161         incrementing the line number here.  Clear
6162         potential_control_macro as well as only_seen_white, if
6163         appropriate.
6164         (cpp_get_non_space_token): Don't eat CPP_POP tokens.
6165         (_cpp_get_define_token): New function, basically like
6166         _cpp_get_directive_token was but doesn't eat horizontal space.
6167         Don't do anything with only_seen_white here.
6168         (_cpp_get_directive_token): Just call _cpp_get_define_token
6169         repeatedly till it returns non-hspace.
6170
6171         * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
6172         (conditional_skip, skip_if_group): Return int.
6173         (DIRECTIVE_TABLE): Change origin of all conditional directives
6174         to "COND".
6175         (TRAD_DIRECT_P): New macro.
6176         (_cpp_handle_directive): Use _cpp_get_directive_token.  Issue
6177         an error for a bogus directive, unless -lang-asm.  Use
6178         TRAD_DIRECT_P. Loop calling handler functions till one returns
6179         zero.
6180         (get_macro_name): Don't diddle flags here.
6181         (do_define): Diddle flags here.  Use _cpp_get_directive_token.
6182         Create T_EMPTY nodes for #define macro /* nothing */.
6183         (do_undef): Don't copy the name.  Use _cpp_get_directive_token.
6184         Use hp->name when calling pass_thru_directive.
6185         (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
6186         Return the result of conditional_skip and/or skip_if_group.
6187         Don't call _cpp_output_line_command.
6188         (consider_directive_while_skipping): Use _cpp_get_directive_token.
6189         Issue -Wtraditional warnings as appropriate.  Don't complain
6190         about unrecognized directives.  If we are to stop skipping,
6191         return the number of the directive that ended the skip.
6192         (skip_if_group): Use _cpp_get_directive_token.  Turn off macro
6193         expansion and line commands while skipping.  Return the result
6194         of consider_directive_while_skipping, if nonzero.
6195         (do_endif): Just set potential_control_macro here.
6196         (validate_else): Use _cpp_get_directive_token.
6197         (do_assert, do_unassert): Don't save pointers into the
6198         token_buffer across calls to the lexer.  Use
6199         _cpp_get_directive_token.
6200
6201         * cpplib.h (cpp_buffer): Remove alimit and colno.  Make mark a
6202         pointer, not an offset.  Replace 'data', which was a generic
6203         pointer, with 'macro', which points to a struct hashnode.
6204         (cpp_reader): Add 'potential_control_macro' pointer.
6205         * cpphash.h (T_UNUSED): Replace with T_EMPTY.
6206         (CPP_BUF_GET, CPP_FORWARD): Delete.
6207         (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
6208         (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
6209         ACTIVE_MARK_P): Update.
6210         (_cpp_get_define_token): New internal function.
6211         * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
6212
6213 2000-04-05   Benjamin Kosnik  <bkoz@cygnus.com>
6214
6215         * configure.in: And here.
6216         * configure: Regenerate.
6217         * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
6218         --enable-libstdcxx-v3 is passed at configure time.
6219         * config.h.in: Regenerate.
6220
6221 2000-04-05  Mark Mitchell  <mark@codesourcery.com>
6222
6223         * final.c (final): Use xcalloc to allocate line_note_exists.
6224         * function.c (free_after_compilation): Free the temp_slots.
6225         (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
6226         (combine_temp_slot): Free temp_slots when they get combined.
6227         (purge_addressof): Fix typo in comment.
6228         * stmt.c (mark_goto_fixup): Mark the fixup itself.
6229         (expand_fixup): Allocate the fixup with ggc_alloc_obj.
6230
6231         * ggc.h: Include varray.h.
6232         (ggc_pending_trees): Declare.
6233         (ggc_mark_tree_children): Remove declaration.
6234         (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
6235         * ggc-common.c (ggc_pending_trees): New variable.
6236         (ggc_mark_roots): Call ggc_mark_trees.
6237         (ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
6238         the ggc_pending_trees.
6239         * Makefile.in (GGC_H): New variable.  Use it throughout in place
6240         of ggc.h.
6241
6242 Thu Apr  6 00:30:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6243
6244         * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
6245         GET_MODE_SIZE.
6246
6247 Wed Apr  5 23:17:10 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6248
6249         * sh.c (sh_insn_length_adjustment): New function.
6250         * sh-protos.h (sh_insn_length_adjustment): Declare.
6251         * sh.h (ADJUST_INSN_LENGTH): Use it.
6252
6253 Wed Apr  5 12:35:18 2000  Hans-Peter Nilsson  <hp@axis.com>
6254
6255         * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
6256         from the insn where REG_RETVAL is added.
6257         (emit_no_conflict_block): Ditto.
6258
6259         * md.texi (Standard Names): Clarify when movX is needed.
6260
6261         * combine.c (simplify_comparison) [MINUS]: Do not replace
6262         all (op (minus A B) 0) with (op A B).
6263
6264 Wed Apr  5 18:03:31 2000  Toshiyasu Morita  (toshi.morita@sega.com)
6265                           J"orn Rennecke <amylaar@cygnus.co.uk>
6266
6267         * sh.md (block_lump_real_i4): Add missing clobber of T_REG
6268         (block_lump_real): Likewise.
6269
6270 2000-04-05  Chris Demetriou  <cgd@netbsd.org>
6271
6272         * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
6273         remaining non-zero debugging masks.
6274
6275 Wed Apr  5 09:44:07 2000  Jeffrey A Law  (law@cygnus.com)
6276
6277         * basic-block.h (verify_flow_info): Declare.
6278         (flow_loop_outside_edge_p): Declare.
6279         * flow.c (verify_flow_info): Remove declaration.
6280         (clear_log_links, flow_loop_outside_edge_p): Likewise.
6281
6282 Wed Apr  5 09:34:26 2000  Philippe De Muyter <phdm@macqel.be>
6283
6284         * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
6285         not C++ comments.
6286
6287 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
6288
6289         * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
6290         snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
6291         seqdi_zero_trunc+1): Allow splits only if registers are
6292         different.
6293
6294 2000-04-04  Ulrich Drepper  <drepper@cygnus.com>
6295
6296         * acconfig.h: Add HAVE_GAS_HIDDEN.
6297         * config.in: Regenerated.
6298         * configure.in: Add test for .hidden pseudo-op in gas.
6299         * configure: Regenerated.
6300         * crtstuff.c: Include auto-host.h.
6301         Emit additional .hidden pseudo-op for __dso_handle if the
6302         assembler knows about it.
6303
6304 2000-04-04  Philippe De Muyter  <phdm@macqel.be>
6305
6306         * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
6307         before freeing argnames.
6308         * cpplib.c (do_ifndef): Cast return value of xstrdup.
6309
6310 2000-04-05  Michael Meissner  <meissner@redhat.com>
6311
6312         * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
6313         Walton <jonboy@gordian.com> to make memory references with update
6314         work wtih -mregnames.
6315
6316 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6317
6318         * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
6319         (regrename_optimize): Rename variables `def_uses' and
6320         `ext_basic_blocks' to avoid conflicts with similarly named
6321         typedefs in traditional C.
6322
6323         * calls.c (initialize_argument_information): Fix typo in previous
6324         change.
6325
6326 2000-04-04  Richard Henderson  <rth@cygnus.com>
6327
6328         * regrename.c (consider_available): Test fixed_regs not
6329         PIC_OFFSET_TABLE_REGNUM.
6330
6331 2000-04-04  Geoff Keating  <geoffk@cygnus.com>
6332
6333         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
6334         crtend.
6335         (CRTSTUFF_T_CFLAGS_S): Delete definition.
6336         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
6337         (ENDFILE_LINUX_SPEC): Always use crtend.
6338         * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
6339         (powerpc-*-linux-gnu): Likewise.
6340         * configure: Regenerate.
6341
6342         * config/rs6000/eabi.h: Don't include sysv4.h.
6343         (MULTILIB_DEFAULTS): Don't define.
6344         * config/rs6000/eabiaix.h: Don't include eabi.h.
6345         * config/rs6000/eabile.h: Delete.
6346         * config/rs6000/eabilesim.h: Delete.
6347         * config/rs6000/eabisim.h: Don't include eabi.h.
6348         * config/rs6000/linux.h: Don't include sysv4.h.
6349         (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
6350         (MULTILIB_DEFAULTS): Don't redefine.
6351         * config/rs6000/rtems.h: Don't include eabi.h.
6352         * config/rs6000/sol2.h: Don't include sysv4le.h.
6353         * config/rs6000/sysv4le.h: Don't include sysv4.h.
6354         * config/rs6000/t-ppc: Delete.
6355         * config/rs6000/t-ppcgas: Correct comment.
6356         * config/rs6000/t-ppcos: Correct comment.  Don't build
6357         multilibs for -fPIC, rather use -fPIC -mstrict-align
6358         as default.
6359         * config/rs6000/t-ppc: Delete.
6360         * config/rs6000/vxppc.h: Don't include sysv4.h.
6361         * config/rs6000/vxppcle.h: Delete.
6362         * configure.in: Use multiple header files for p2pc ELF targets
6363         powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
6364         powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
6365         powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
6366         powerpc-vxworks, powerpcle-vxworks.  Assume GAS functionality is
6367         always available for these platforms.
6368
6369 2000-04-04  Richard Henderson  <rth@cygnus.com>
6370
6371         * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
6372
6373 2000-04-04  Stan Cox  <scox@cygnus.com>
6374
6375         * Makefile.in: Add rules for regrename.o
6376         * regrename.c: New file.
6377         * rtl.h (regrename_optimize): Add prototype.
6378         * toplev.c (rename_registers_dump, flag_rename_registers): New variables
6379         (compile_file, decode_d_option): Add support for -frename-registers.
6380         (rest_of_compilation): Call regrename_optimize.
6381         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
6382         New macros.
6383
6384 2000-04-04  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
6385
6386         * Makefile (gccbug): New target.
6387         (doc): Depend on it.
6388         * gcc.texi (Bugs): Link subnodes.
6389         (gccbug): New node.
6390         * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
6391         Document severities, priorities, and classes in bug form.
6392
6393 2000-04-04  Zack Weinberg  <zack@wolery.cumb.org>
6394
6395         * cpplex.c (trigraph_map, speccase): Combine into single
6396         table, chartab.
6397         (NORMAL, NONTRI): New macros.
6398         (_cpp_read_and_prescan): Change to use unified table.  Use
6399         is_hspace to test for whitespace.
6400
6401         * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
6402         definition that doesn't provoke the "empty body in an
6403         if-statement" warning.
6404
6405 2000-04-04  Clinton Popetz  <cpopetz@cygnus.com>
6406
6407         * builtins.c (expand_builtin_strlen): Force the source to
6408         be a memory address.
6409
6410 2000-04-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6411
6412         * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
6413
6414 Tue Apr  4 19:17:20 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6415
6416         * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
6417          ECF_LONGJMP, ECF_FORK_OR_EXEC):  New constants.
6418         (ECF_IS_CONST): Rename to ECF_CONST.
6419         (special_function_p): Make static, change interface.
6420         (flags_from_decl_or_type, try_to_integrate): Break out from ...
6421         (expand_call) ... here; convert number of variables to flags.
6422         (emit_library_call_vlue_1): Likewise.
6423         (setjmp_call_p): New function.
6424         (initialize_argument_information): Accepts flags as argument;
6425         return flags.
6426         (precompute_arguments): Likewise.
6427         * tree.h (special_function_p): Remove.
6428         (setjmp_call_p): Add prototype.
6429
6430 2000-04-04  Jakub Jelinek  <jakub@redhat.com>
6431
6432         * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
6433         so that addresses are offsetable by up to 16 bytes.
6434         (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
6435         non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
6436         offsetable.
6437
6438         * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
6439         (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
6440         (movsf): Don't force any constant to memory if target is integer
6441         hard register.
6442         Move fp_zero_operand check below the const0_rtx check.
6443         (movtf): Likewise. Also allow fp_zero_operand for stores into
6444         memory.
6445         (movdf): Likewise. Also allow fp_zero_operand for stores into
6446         memory and into integer hard registers.
6447         (clear_df, clear_dfp, movdf_const_intreg_sp32,
6448         movdf_const_intreg_sp64): Remove.
6449         (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
6450         conditions.
6451         (movdf_no_e_insn_v9_sp32): New pattern.
6452         (movdf_insn_v9only): Remove.
6453         (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
6454         (movdf_insn_sp64): Remove.
6455         (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
6456         (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
6457         (following splits): Rewrite conditions. Add two new splits
6458         for storing 0.0 into memory and registers.
6459         (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
6460         (movtf_insn_sp32): Redo constraints and conditions.
6461         (movtf_insn_vis_sp32): New pattern.
6462         (movtf_no_e_insn_sp32): Redo constraints and conditions.
6463         (movtf_insn_hq_sp64): Likewise.
6464         (movtf_insn_hq_vis_sp64): New pattern.
6465         (movtf_insn_sp64): Redo constraints and conditions.
6466         (movtf_insn_vis_sp64): New pattern.
6467         (movtf_no_e_insn_sp64): Redo constraints and conditions.
6468         (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
6469         or memory.
6470         * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
6471         -mvis or -m64 to take down the number of various reload patterns.
6472
6473 Tue Apr  4 00:41:53 2000  Jeffrey A Law  (law@cygnus.com)
6474
6475         * pa/pa-64.h: New file.
6476         * pa/pa64-regs.h: New file.
6477         * pa/pa64-start.h: New file.
6478         * pa/t-pa64: New file.
6479         * pa/xm-pa64hpux.h: New file.
6480
6481 2000-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6482
6483         * sparc.c (output_restore_regs): Prototype.
6484         (sparc_emit_float_lib_cmp): Constification.
6485
6486         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
6487
6488         * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
6489         Prototype.
6490
6491         * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
6492         (get_value_hash, hash_rtx): Likewise.
6493
6494         * ssa.c (compute_conservative_reg_partition): Prototype.
6495
6496         * tree.c (mark_hash_entry): Prototype.
6497
6498 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
6499
6500         * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6501         * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6502         * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6503
6504         * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6505         * objc/lang-specs.h: Likewise.
6506
6507 2000-04-03  Neil Booth  <NeilB@earthling.net>
6508
6509         * cppexp.c: wrap long lines.  New macros CPP_ICE, SYNTAX_ERROR
6510         and SYNTAX_ERROR2. Replace `' in messages with ''.
6511         (op_to_str): Make re-entrant.
6512         (_cpp_parse_expr): Implement new error macros. Use | rather
6513         than || to logically or 2 boolean integers.  Simply expression
6514         checking we have a left operand iff needed.
6515
6516 2000-04-03  Nick Clifton  <nickc@cygnus.com>
6517
6518         * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6519
6520 2000-04-03  Philip Blundell  <philb@gnu.org>
6521
6522         * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6523
6524 2000-04-03  Felix Lee  <flee@cygnus.com>
6525
6526         * fixinc/server.c (find_shell): New function.  Avoid $SHELL.
6527         (run_shell): Use it.
6528
6529 2000-04-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
6530
6531         * Makefile.in (stmp-int-hdrs): Make include subdir here...
6532         (stmp-fixproto): ...rather than here.
6533
6534 Mon Apr  3 00:50:06 2000  Jason Eckhardt <jle@cygnus.com>
6535
6536         * pa.c (print_operand): Compute 'base' only inside the code paths
6537         that use it.
6538
6539 2000-04-03  Geoffrey Keating  <geoffk@cygnus.com>
6540
6541         * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6542         CEIL_DIV_EXPR.
6543
6544 2000-04-03  Philipp Thomas  <pthomas@suse.de>
6545
6546         * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6547
6548 Mon Apr  3 00:02:59 2000  Brad Lucier <lucier@math.purdue.edu>
6549
6550         * Makefile.in (alias.o): Depend on $(TREE_H).
6551
6552 2000-04-02  Zack Weinberg  <zack@wolery.cumb.org>
6553
6554         * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6555         processing C++.
6556         * cpplib.c (_cpp_handle_directive): Improve warnings for
6557         traditional C and indented directives.
6558
6559         * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6560         fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6561         fixinc/inclhack.def: Indent the # of #include_next one space.
6562         * cp/rtti.c: Un-indent #if and #endif.
6563
6564         * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6565         syntax error, but an error has already been printed.
6566         * cpplex.c (_cpp_parse_assertion): Give a more specific error
6567         message when called with nothing remaining on the line.
6568         (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6569         OTHER token, not an ASSERTION.
6570         * cpplib.c (do_assert): When we create a 'base' node, clear
6571         its aschain pointer.
6572
6573 2000-04-02  Neil Booth <NeilB@earthling.net>
6574
6575         * cppexp.c:  New typedef op_t.  struct operation and struct
6576         token updated to use it.
6577         (op_to_str): New function.
6578         (_cpp_parse_expr): Error messages modified to use op_to_str.
6579
6580 2000-04-02  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6581
6582         * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6583         before checking MUST_PASS_IN_STACK.
6584
6585 2000-04-02  Neil Booth <NeilB@earthling.net>
6586
6587         * cppexp.c:  New FINISHED dummy token.  Combine operator initial
6588         flags and initial priority into a single constant.  New
6589         EQUALITY macro.  New operator flag SHORT_CIRCUIT.
6590         (_parse_cpp_expr): Implement new constants.  Take left operand
6591         checks out of reduction loop.  Handle SHORT_CIRCUIT.  End of
6592         parse indicated by reducing FINISHED token.  Remove new lines
6593         from cpp_error messages.
6594
6595 2000-04-01  Mark Mitchell  <mark@codesourcery.com>
6596
6597         * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6598         permanent obstack.
6599
6600 2000-04-01  Zack Weinberg  <zack@wolery.cumb.org>
6601
6602         * cpplib.c: Include symcat.h.  Add 'origin' field to struct
6603         directive.  Add origin values to DIRECTIVE_TABLE.  Generate
6604         the strings and function names on the fly.  Take the #sccs
6605         entry out of the table if SCCS_DIRECTIVE is not defined.
6606         (_cpp_handle_directive): Decide if the # was at the beginning
6607         of the line here.  Issue -pedantic warnings for extended
6608         directives here.  Warn about K+R directives with the #
6609         indented, and C89/extended directives with the # not indented,
6610         here.
6611         (do_import, do_include_next, do_warning, do_ident, do_sccs,
6612         do_assert, do_unassert): Don't issue pedantic warning here.
6613
6614         * cpphash.h: Add CPP_WTRADITIONAL macro.
6615         * cpplib.h (struct cpp_options): Rename warn_stringify to
6616         warn_traditional; update comments.
6617         * cppinit.c (handle_option): Set warn_traditional not
6618         warn_stringify.
6619         * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6620         CPP_WTRADITIONAL (pfile).
6621         * cpplex.c (_cpp_lex_token): Don't decide if directives should
6622         be ignored in -traditional mode here.
6623
6624         * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6625         to initialize speccase[] and trigraph_map[].  Delete all
6626         references to pfile->input_speccase.  Always treat '?' as a
6627         special character.  Remove table-initialization code from
6628         _cpp_init_input_buffer.
6629
6630         * cpplib.h (struct cpp_reader): Remove input_speccase field.
6631         * cppinit.c (cpp_cleanup): Don't free input_speccase.
6632
6633 2000-04-01  Richard Henderson  <rth@cygnus.com>
6634
6635         * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6636         (mostlyclean): Likewise.
6637
6638         * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6639         (struct dump_file_info, enum dump_file_index, dump_file): New.
6640         (open_dump_file): Take a dump_file_index not a suffix, and a decl
6641         not a string.  Clean out file if we havn't yet done so.  Do nothing
6642         if the dump isn't enabled.
6643         (close_dump_file): Do nothing if the dump isn't open.  Dump
6644         graph data if requested.
6645         (dump_rtl, clean_dump_file): Remove.
6646         (compile_file): Don't clean the dump files.  Only finalize .bp dump
6647         if flag_test_coverage or flag_branch_probabilities.  Only finalize
6648         .combine dump if optimizing.  Iterate over dump_file to finalize the
6649         graph dumps.
6650         (rest_of_compilation): Update for open_dump_file/close_dump_file.
6651         Convert all uses of dump_rtl.
6652         (decode_d_option): Iterate over dump_file to implement 'a' and to
6653         locate pass-specific dumps.
6654
6655 2000-04-01  Neil Booth <NeilB@earthling.net>
6656
6657         * cppexp.c: Redefine priority constants.
6658         (_cpp_parse_expr): Replace left and right priority scheme with
6659         single priority logic.  Move LOGICAL to same place as COMPARE.
6660         Remove bogus check for multiple unary +/- operators.
6661
6662 2000-04-01  Neil Booth <NeilB@earthling.net>
6663
6664         * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6665         within the switch statement.  Binary operations break out of
6666         the switch naturally.  '(' tokens handled by forcing
6667         immediate shift.  ')' handled by forcing immediate reduce to
6668         the previous '('.  New error messages.
6669
6670 2000-03-31  Geoff Keating  <geoffk@cygnus.com>
6671
6672         * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6673         part', it's already in use.  Use %K instead.  Add a return at the
6674         end of what is now %K.
6675         * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6676
6677 Sat Apr  1 02:05:29 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6678
6679         * builtins.c  (expand_builtin_apply):  Pass proper parameters to
6680         allocate_dynamic_stack_space.
6681         * calls.c (emit_call_1):  Do not adjust stack pointer for SIB,
6682         update stack_pointer_delta; do not update arg_size_so_far.
6683         (compute_argument_block_size): Use stack_delta instead of
6684         stack_pointer_pending and arg_size_so_far.
6685         (expand_call): Add sanity checking for stack_pointer_delta;
6686         save and restore stack_pointer_delta for SIB, use
6687         stack_pointer_delta for alignment; do not update arg_space_so_far.
6688         (emit_library_call_value): Use stack_pointer_delta for alignment.
6689         (store_one_arg): Do not update arg_space_so_far.
6690         * explow.c (adjust_stack, anti_adjust_stack): Update
6691         stack_pointer_delta.
6692         (allocate_dynamic_stack_space): Add sanity checking for
6693         stack_pointer_delta.
6694         * expr.c (init_expr, clear_pending_stack_adjust): Clear
6695         stack_pointer_delta.
6696         (emit_push_insn): Update stack_pointer_delta.
6697         * function.h (struct expr_status): Add x_stack_pointer_delta;
6698         remove x_arg_space_so_far.
6699         (arg_space_so_far): Remove.
6700         (stack_pointer_delta): New macro.
6701
6702 2000-03-31  Zack Weinberg  <zack@wolery.cumb.org>
6703
6704         * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6705         Reorder struct cpp_options and struct cpp_reader for better
6706         packing.  Replace CPP_OPTIONS macro with CPP_OPTION which
6707         takes two args.  Change all 'char' flags to 'unsigned char'.
6708         Move show_column flag into struct cpp_options.  Don't
6709         prototype cpp_options_init.
6710         * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6711         cppinit.c, cpplex.c, cpplib.c:
6712         Replace CPP_OPTIONS (pfile)->whatever with
6713         CPP_OPTION (pfile, whatever), and likewise for
6714         opts = CPP_OPTIONS (pfile); ... opts->whatever;
6715
6716         * cppinit.c (merge_include_chains): Take a cpp_reader *.
6717         Extract CPP_OPTION (pfile, pending) and work with that
6718         directly.
6719         (cpp_options_init): Delete.
6720         (cpp_reader_init): Turn on on-by-default options here.
6721         Allocate the pending structure here.
6722         (cl_options, enum opt_code): Define these from the same table,
6723         kept in a large macro.  Add -fshow-column and -fno-show-column
6724         options.
6725
6726         * cpperror.c (v_message): If show_column is off, don't print
6727         the column number.
6728
6729         * cppmain.c: Update for new interface.
6730         * fix-header.c: Likewise.
6731
6732 2000-03-30  Geoff Keating  <geoffk@cygnus.com>
6733
6734         * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6735         definition.
6736         * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6737         are passed to any invocation of AR_FOR_TARGET.
6738         (AR_CREATE_FOR_TARGET): New macro.
6739         (AR_EXTRACT_FOR_TARGET): New macro.
6740         (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6741         AR_EXTRACT_FOR_TARGET.
6742         (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6743         in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6744         `$(AR_FOR_TARGET) x'.  Pass AR_CREATE_FOR_TARGET and
6745         AR_EXTRACT_FOR_TARGET to sub-makes.
6746
6747 2000-03-31  Neil Booth <NeilB@earthling.net>
6748
6749         * cppexp.c: Delete SKIP_OPERAND.  Correct priority
6750         PAREN_INNER_PRIO.
6751         (_cpp_parse_expr): Check for multiple unary +/- operators.
6752         Correct priorities of ':' and '?'.  Treat ')' as having a
6753         value.  Ensure conditional expression is not void.
6754
6755 2000-03-31  Mark Mitchell  <mark@codesourcery.com>
6756
6757         * alias.c (canon_rtx): Make it global.
6758         (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6759         equality.
6760         * cse.c (struct table_elt): Add canon_exp.
6761         (insert): Clear it.
6762         (invalidate): Canonicalize expressions only once.
6763         * rtl.h (canon_rtx): Declare.
6764
6765 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
6766
6767         * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6768         * alias.c (reg_known_value): Add comments.
6769         (init_alias_analysis): Likewise.
6770         * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6771         address.
6772         (cse_basic_block): Fix typo in comment.
6773         * emit-rtl.c: Include hashtab.h.
6774         (const_int_htab): New variable.
6775         (const_int_htab_hash): New function.
6776         (const_int_htab_eq): Likewise.
6777         (rtx_htab_mark_1): Likewise.
6778         (rtx_htab_mark): Likewise.
6779         (gen_rtx_CONST_INT): Cache all CONST_INTs.
6780         (unshare_all_rtx): Fix formatting.
6781         (init_emit_once): Initialize const_int_htab.
6782         * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6783         address.
6784         * rtl.texi: Document the fact that all CONST_INTs with the same
6785         value are shared.
6786
6787 2000-03-30  Richard Henderson  <rth@cygnus.com>
6788
6789         * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6790
6791 2000-03-30  Zack Weinberg  <zack@wolery.cumb.org>
6792
6793         * configure.in: Comment out --enable-c-cpplib stanza.
6794         * configure: Regenerate.
6795
6796 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6797
6798         * expr.c (store_constructor): Properly compute displacement and
6799         alignment when offset is variable.
6800
6801         * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6802         cases of alignment in bytes.
6803
6804 Thu Mar 30 13:30:40 2000  Jeffrey A Law  (law@cygnus.com)
6805
6806         * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6807         since it is used to generate c-parse.y.
6808         * objc-parse.c, objc-parse.y: Regenerated.
6809
6810         * function.c (expand_function_end): Pass alignment argument to
6811         emit_block_move in bits, not bytes.
6812
6813 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6814
6815         * expr.c (move_by_pieces_ninsns): Fix one more missing align
6816         correction.
6817
6818         * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6819
6820         * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6821         * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6822         * function.c (assign_parms): Likewise.
6823         * integrate.c (expand_inline_function): Likewise.
6824         * stmt.c (expand_decl): Likewise.
6825         (copy_rtx_and_substitute): Likewise.
6826         * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6827         (clear_by_pieces): Fix error in last change.
6828         * emit-rtl.c (init_emit): Set known registers alignment in bits.
6829         * function.h (regno_pointer_align): Now unsigned.
6830         * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6831         is in bits.
6832         * config/i386/i386.c (aligned_operand): Likewise.
6833         * config/sparc/sparc.c (mem_min_alignment): Likewise.
6834         * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6835         (unaligned_memory_operand): Likewise.
6836         (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6837         Also make alignments and sizes unsigned and some whitespace cleanup.
6838         (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6839
6840         * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6841         (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6842         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6843         (expand_builtin_memset): Likewise, but to clear_storage.
6844         * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6845         (restore_fixed_argument_area): Likewise.
6846         (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6847         (load_register_parameters): Likewise, to emit_group_load.
6848         (expand_call): Likewise, to emit_group_store and emit_block_move.
6849         (emit_library_call_value_1): Likewise, to emit_block_move.
6850         (store_one_arg): Likewise, and to emit_push_insn.
6851         * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6852         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6853         * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6854         (emit_block_move, emit_group_load, emit_group_store): Likewise.
6855         (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6856         (expand_assigment, store_expr, store_constructor_field): Likewise.
6857         (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6858         (store_constructor, store_field, get_inner_reference): Likewise.
6859         Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6860         (expand_expr, case COMPONENT_REF): Likewise.
6861         (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6862         and positions; reindent code.
6863         * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6864         * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6865         (assign_parms): Likewise to emit_group_store.
6866         * optabs.c (prepare_cmp_insn): Alignment is in bits.
6867         (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6868         * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6869         (expand_return): Likewise to {extract,store}_bit_field.
6870         * stor-layout.c (get_mode_alignment): Minor cleanup.
6871         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6872         * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6873
6874 2000-03-29  Nick Clifton  <nickc@cygnus.com>
6875
6876         * config/arm/arm.h: Undo effects of previous delta:
6877         (ASM_SPEC): Do not define.
6878         (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6879
6880         * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6881         typo.
6882
6883 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
6884
6885         * cppinit.c (cpp_start_read): Call initialize_dependency_output
6886         only after reading in the primary source file.
6887
6888 2000-03-29  Geoff Keating  <geoffk@cygnus.com>
6889
6890         * c-common.c (c_common_nodes_and_builtins): The first parameter to
6891         __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6892         or a reference to a va_list.
6893         * builtins.c (stabilize_va_list): Simplify now we don't have to
6894         work around C array address decay.
6895         * c-typeck.c (convert_for_assignment): Handle assignment to
6896         a reference parameter by taking the address of the RHS.
6897         * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6898         (va_copy): Likewise.
6899         (__va_copy): Likewise.
6900         * ginclude/varargs.h (va_start): Likewise.
6901         (__va_copy): Likewise.
6902
6903 Wed Mar 29 15:44:53 2000  Jeffrey A Law  (law@cygnus.com)
6904
6905         * i386/djgpp.h: Remove extraneous "+".
6906
6907         * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6908
6909         * calls.c (expand_call): Fix typo in last change.
6910
6911 2000-03-29  Jason Merrill  <jason@casey.cygnus.com>
6912
6913         * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6914         been expanded.
6915
6916 Wed Mar 29 15:39:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6917
6918         * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6919         (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6920         (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6921         * tree.c (bit_position, byte_position): Likewise.
6922         * tree.h: Declare new functions.
6923
6924 2000-03-29  Nick Clifton  <nickc@cygnus.com>
6925
6926         * config/arm/arm.c: Minor formatting changes/
6927         * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6928         already defined.
6929         (ASM_SPEC): Define if not already defined.
6930
6931 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
6932
6933         * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6934         _cpp_calc_hash.
6935
6936 2000-03-29  Jakub Jelinek  <jakub@redhat.com>
6937
6938         * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6939         value, don't output it as unsigned.
6940
6941 Wed Mar 29 10:53:49 2000  Jeffrey A Law  (law@cygnus.com)
6942
6943         * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6944
6945 2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6946
6947         * c-common.c (c_common_nodes_and_builtins): Don't special case
6948         cplus_mode when declaring builtin bzero/bcmp, always avoid
6949         prototype arguments.
6950
6951 2000-03-29  Bruce Korb  <bkorb@gnu.org>
6952
6953         * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6954         to a non-file
6955
6956 Wed Mar 29 15:08:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6957
6958         Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6959         * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6960         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6961         (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6962         (save_fixed_argument_area, restore_fixed_argument_area):
6963         conditionize by #ifdef REG_PARM_STACK_SPACE only.
6964         (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6965         to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6966         (precompute_register_parameters): Avoid #ifdefs on
6967         ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6968         (stire_one_args): Likewise.
6969         (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6970         (emit_library_call_value_1): Likewise.
6971         (compute_argument_block_size): Align to STACK_BOUNDARY only for
6972         ACCUMULATE_OUTGOING_ARGS.
6973         * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6974         value.
6975         (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6976         (use_crosses_set_p): Likewise.
6977         * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6978         #define ACCUMULATE_OUTGOING_ARGS 1.
6979         * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6980         frames.
6981         * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6982         constants.
6983         (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6984         (TARGET_SWITCHES): Add push-args, no-push-args,
6985         accumulate-outgoing-args and no-accumulate-outgoing-args.
6986         (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6987         * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6988         (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6989         and PUSH_ROUNDING.
6990         (emit_push_insn): Likewise.
6991         * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6992         (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6993         * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6994         (STACK_DYNAMIC_OFFSET): Define correctly for both
6995         ACCUMULATE_OUTGOING_ARGS and normal mode.
6996         * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6997         * tm.texi (PUSH_ARGS): Document.
6998         (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6999
7000 Wed Mar 29 11:51:13 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7001
7002         * flags.h (flag_optimize_sibling_calls): Declare.
7003         * calls.c (expand_call): Fail sibcall when
7004         !flag_optimize_sibling_calls
7005         * invoke.texi (flag_optimize_sibling_calls): Document.
7006         * toplev.c (flag_optimize_sibling_calls): New global variable.
7007         (f_options): Add flag_optimize_sibling_calls.
7008         (rest_of_compilation): Conditionize
7009         optimize_sibling_and_tail_recursive_calls by
7010         flag_optimize_sibling_calls.
7011         (main): Set flag_optimize_sibling_calls for -O2.
7012         * stmt.c (expand_return): Conditionize tail recursion by
7013         flag_optimize_sibling_calls.
7014
7015 2000-03-29  Richard Henderson  <rth@cygnus.com>
7016
7017         * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
7018         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
7019
7020 2000-03-29  Nathan Sidwell  <nathan@codesourcery.com>
7021
7022         * except.c (add_eh_table_entry): Mark type_info's as referenced.
7023
7024 2000-03-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
7025
7026         * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
7027         is given.
7028         * config/rs6000/aix43.h (CPP_SPEC): Likewise.
7029         * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
7030         * config/rs6000/aix.h: then modified likewise.
7031
7032 2000-03-28  Richard Henderson  <rth@cygnus.com>
7033
7034         * rtl.h: Redistribute enum reg_note documentation.
7035         Kill trailing whitespace.
7036         * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
7037         Kill trailing whitespace.
7038
7039 2000-03-28  Zack Weinberg  <zack@wolery.cumb.org>
7040
7041         * cppfiles.c (hash_IHASH): Just return i->hash.
7042         (cpp_included): Set dummy.hash using _cpp_calc_hash.  Use
7043         htab_find_with_hash.
7044         (cpp_read_file): Likewise.
7045         (find_include_file): Likewise.  Properly initialize
7046         ih->nshort.  Share ih->name and ih->nshort if possible.
7047         * cpphash.c (_cpp_calc_hash): New function.
7048         (hash_HASHNODE): Just return h->hash.
7049         (_cpp_lookup): Set dummy.hash using _cpp_calc_hash.  Use
7050         htab_find_with_hash.
7051         * cpphash.h: Prototype _cpp_calc_hash.
7052         * cppinit.c (initialize_builtins): Provide a valid hash
7053         to _cpp_make_hashnode, using _cpp_calc_hash.
7054
7055         * cpphash.c (collect_expansion): # is not a special character
7056         in object-like macros.  In -traditional mode, /**/ is not
7057         token paste at the beginning or end of the line.
7058         * cpplib.c (do_include, do_import, do_include_next): If
7059         parse_include fails, return immediately.
7060
7061 2000-03-28  Jason Merrill  <jason@casey.cygnus.com>
7062
7063         * config/arm/arm.md (return peepholes): Update to reflect the new
7064         call insn patterns.
7065         * config/arm/arm.c (arm_volatile_func): Also check
7066         current_function_nothrow.
7067         (output_return_instruction, output_func_prologue): Use it.
7068         (arm_output_epilogue, arm_expand_prologue): Likewise.
7069
7070 2000-03-27  Tom Tromey  <tromey@cygnus.com>
7071
7072         * gcc.c (handle_braces): In {x*...} case, break out of loop if
7073         switch is found.
7074
7075 Tue Mar 28 11:55:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7076
7077         * expr.c (store_constructor): SIZE now signed.
7078         For EXPR_SIZE, don't evaluate size; just needed if constant.
7079         * fold-const.c (fold): Fix a number of cases when folded tree is
7080         wrong type.
7081         * function.c (flush_addressof): Reenable.
7082         * tree.h (flush_addressof): Likewise.
7083         * toplev.c (independent_decode_option): Look at strings_processed.
7084         * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
7085
7086 Tue Mar 28 08:29:46 2000  Jan Hubicka  <jh@suse.cz>
7087
7088         * sibcall.c (indentify_call_return_value): Find last call in the chain;
7089         Allow stack adjustment after function call.
7090
7091         * regmove.c (struct csa_memlist): Make mem field rtx *.
7092         (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
7093         (try_apply_stack_adjustment): Replace whole MEM rtx.
7094         (combine_stack_adjustments_for_block): Update calls
7095         to record_one_stack_ref.
7096
7097 2000-03-28  Neil Booth  <NeilB@earthling.net>
7098
7099         * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
7100         '\\' rather than a null character, so nulls are not special.  Fix
7101         "\\\n" handling in end-of-buffer conditions.  Use trigraph map to
7102         speed trigraph conversion.
7103         (_cpp_init_input_buffer): Initialize trigraph map.
7104
7105 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
7106
7107         * config/i386/i386.c (output_387_binary_op): Correct intel
7108         mode assembly output, and add spaces after commas in AT&T
7109         output.  Correct Unixware assembler comment.  Document input
7110         constraints.  Comment fp operations.  Reduce profligate buffer
7111         size.  Remove extraneous abort.  Localize temp var.
7112         (SYSV386_COMPAT): Define.  Add !SYSV386_COMPAT code.
7113         (output_fix_trunc): Add spaces after commas in assembly output.
7114
7115 2000-03-27  Richard Henderson  <rth@cygnus.com>
7116
7117         * i386-protos.h (ix86_match_ccmode): Declare.
7118         * i386.c (ix86_match_ccmode): New.
7119         (ix86_expand_fp_compare): Update for pattern renames.
7120         (ix86_expand_strlensi_unroll_1): Likewise.
7121         * i386.h (EXTRA_CC_MODES): Add CCZ.
7122         (SELECT_CC_MODE): Use it for EQ/NE zero.
7123         * i386.md (cmpsi_ccz_1): New.
7124         (cmpqi_ccz_1): New.
7125         (*testsi_ccz_1): New.
7126         (testqi_ccz_1): New.
7127         (cmpsi_ccno_1): Rename from cmpsi_0.
7128         (testsi_ccno_1): Rename from testsi_1.
7129         (testqi_ccno_1): Rename from testqi_1.
7130         (*testqi_ext_ccz_0): Rename from testqi_ext_0.
7131         (testqi_ext_ccno_0): Rename from *testqi_ext_1.
7132         (*cmphi_0): Use ix86_match_ccmode.
7133         (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
7134         (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
7135         (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
7136         (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
7137         (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
7138         (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
7139         (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
7140         (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
7141         (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
7142         (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
7143         (appropriate peepholes): Likewise.
7144         (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
7145         (*subsi_3, *subhi_3, *subqi_3): Remove.
7146         (*negdi2_1+1 splitter): Use CCZ for neg patterns.
7147         (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
7148         (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
7149         (*neghi2_cmpz, *negqi2_cmpz): Similarly.
7150         (x86_shift_adj_1): Use CCZ.
7151         (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
7152
7153 2000-03-27  Stan Cox  <scox@cygnus.com>
7154
7155         * resource.h (mark_resource_type): New.
7156         * resource.c (find_dead_or_set_registers, mark_target_live_regs,
7157         find_free_register): Use mark_resource_type.
7158         (mark_set_resources): Change include_delayed_effects
7159         to mark_resource_type.
7160         * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
7161         redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
7162         Use mark_resource_type.
7163
7164 2000-03-27  Richard Henderson  <rth@cygnus.com>
7165
7166         * i386.md (call_pop_0, call_value_pop_0): New.
7167         (call_pop_1): Remove constraint from unused arg.  Support sibcalls.
7168         (call_value_pop_1): Likewise.
7169         (call_0, call_value_0): New.
7170         (call_1, call_value_1): Remove constraint from unused arg.
7171
7172 2000-03-27  Nick Clifton  <nickc@cygnus.com>
7173
7174         * invoke.texi (Spec Files): Document new spec % command created by
7175         Tom Tromey's recent patch.
7176
7177 2000-03-27  Jakub Jelinek  <jakub@redhat.com>
7178
7179         * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
7180         if not defined.
7181
7182 Mon Mar 27 06:04:22 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7183
7184         * expr.c (expand_assignment): Fix typo in last change.
7185
7186         * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
7187
7188 Sun Mar 26 20:15:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7189
7190         * c-convert.c (convert): Return if output or input type is ERROR_MARK.
7191         * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
7192         and DECL_INLINE if FUNCTION_DECL.
7193         (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
7194         (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
7195         Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
7196         (combine_parm_decls): Likewise.
7197         * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
7198         * print-tree.c (print_node): Likewise.
7199         Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
7200         DECL_TRANSPARENT_UNION on proper decl types.
7201         Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
7202         * stor-layout.c (layout_decl): Only check DECL_PACKED and
7203         DECL_BIT_FIELD of FIELD_DECL.
7204         * tree.h (DECL_RESULT_FLD): New macro.
7205
7206         * expr.c (expand_assignment): Add code to handle variable-sized
7207         BLKmode case.
7208
7209 2000-03-26  Richard Henderson  <rth@cygnus.com>
7210
7211         * calls.c (expand_call): Pass parms not original exp to
7212         optimize_tail_recursion.  Mind return value instead of looking
7213         for a barrier.
7214         * stmt.c (optimize_tail_recursion): Take parameter list, not entire
7215         call_expr.  Move checks for call_expr and current_function_decl ...
7216         (expand_return): ... here.
7217
7218 2000-03-26  Tom Tromey  <tromey@cygnus.com>
7219
7220         * gcc.c (handle_braces): Recognize `%{<S}' construct.
7221         (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
7222         defines.
7223         (process_command): Use them.
7224         (check_live_switch): Likewise.
7225         (give_switch): Skip ignored switches.
7226
7227 2000-03-26  Jan Hubicka  <jh@suse.cz>
7228
7229         * jump.c (jump_optimize_1): Fix typo in elide optimizations
7230         for minimal jump pass test.
7231
7232 2000-03-26  Mark Mitchell  <mark@codesourcery.com>
7233
7234         * integrate.c (function_cannot_inline_p): Do inline functions that
7235         return `void'.
7236
7237 Sun Mar 26 11:37:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7238
7239         * stor-layout.c (layout_type, set_sizetype): early_type_list is
7240         now a list of TREE_LIST entries, not types.
7241         * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
7242
7243         * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
7244         * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
7245         int_bit_position.
7246         * config/mips/mips.c (function_arg): Likewise; also remove cast
7247         and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
7248         (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
7249         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
7250         * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
7251         (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
7252         (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
7253         (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
7254         (struct mips_arg): arg_number, arg_words, fp_arg_words, and
7255         num_adjusts now unsigned.
7256         (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
7257         * config/sparc/sparc.c (struct function_arg_record_value_parms):
7258         NREGS now unsigned.
7259         (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
7260         as is BITPOS variable; use host_integerp and int_bit_position.
7261         (function_arg_record_value_2): Likewise.
7262         (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
7263         Variable REGNO now unsigned.
7264         (function_arg_record_value): NREGS now unsigned.
7265
7266 2000-03-26  Bernd Schmidt  <bernds@cygnus.co.uk>
7267
7268         * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
7269
7270 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7271
7272         * Rework fields used to describe positions of bitfields and
7273         modify sizes to be unsigned and use HOST_WIDE_INT.
7274         * alias.c (reg_known_value_size): Now unsigned.
7275         * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
7276         (really_start_incremental_init): Use bitsize_zero_node.
7277         (push_init_level, pop_init_level, output_init_element): Likewise.
7278         Use bitsize_unit_node and bitsize_one_node.
7279         (output_pending_init_elements, process_init_element): Likewise.
7280         * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
7281         (make_extraction): Position and length HOST_WIDE_INT and unsigned
7282         HOST_WIDE_INT, respectively.
7283         (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
7284         (num_sign_bit_copies): Returns unsigned.
7285         BITWIDTH now unsigned; rework arithmetic.
7286         Remove recursive call from arg to MAX.
7287         (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
7288         (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
7289         REGNO now unsigned.
7290         (set_nonzero_bit_and_sign_copies): NUM now unsigned.
7291         (find_split_point, expand_compound_operation, make_extraction): LEN
7292         now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
7293         (make_field_assignment): Likewise.
7294         (combine_simplify_rtx): Add cast.
7295         (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
7296         (force_to_mode): WIDTH now unsigned; add cast.
7297         (if_then_else_cond): SIZE now unsigned.
7298         (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
7299         (extended_count): Now returns unsigned.
7300         (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
7301         Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
7302         (simplify_comparison): MODE_WIDTH now unsigned.
7303         (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
7304         (mark_used_regs_combine): Likewise; rework arithmetic.
7305         (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
7306         (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
7307         (record_promoted_value): REGNO now unsigned.
7308         (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
7309         (get_last_value): REGNO now unsigned.
7310         (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
7311         (reg_dead_regno, reg_dead_endregno): Now unsigned.
7312         (remove_death): Arg REGNO now unsigned.
7313         (move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
7314         (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
7315         now unsigned.
7316         * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
7317         * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
7318         (struct cse_reg_info): REGNO now unsigned.
7319         (cached_regno): Now unsigned.
7320         (REGNO_QTY_VALID_P): Add cast.
7321         (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
7322         (remove_invalid_regs): Likewise.
7323         (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
7324         as are variables END and I.
7325         (get_cse_reg_info, insert): Likewise.
7326         (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
7327         (canon_hash): Likewise.
7328         (insert_regs, lookup_for_remove): REGNO now unsigned.
7329         (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
7330         New variable RN.
7331         * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
7332         * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
7333         * emit-rtl.c (subreg_realpart_p): Add cast.
7334         (operand_subword): Arg I is now unsigned as is var PARTWORDS.
7335         (operand_subword_force): Arg I is now unsigned.
7336         * except.c (eh_regs): Variable I is now unsigned.
7337         * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
7338         * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
7339         length is unsigned HOST_WIDE_INT; likewise for internal variables.
7340         (store_split_bit_field, extract_fixed_bit_field): Likewise.
7341         (extract_split_bit_field, store_bit_field, extract_bit_field):
7342         Likewise.
7343         * expr.c (store_constructor_fields, store_constructor, store_field):
7344         Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
7345         (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
7346         (do_jump): Likewise.
7347         (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
7348         MAX_SIZE is now unsigned.
7349         (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
7350         (emit_group_store): Likewise.
7351         (emit_move_insn): I now unsigned.
7352         (store_constructor): Use host_integerp, tree_low_cst, and
7353         bitsize_unit_node.
7354         (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
7355         Rework all calculations to use trees and new fields.
7356         * expr.h (promoted_input_arg): Regno now unsigned.
7357         (store_bit_field, extract_bit_field): Adjust types of pos and size.
7358         (mark_seen_cases): Arg is HOST_WIDE_INT.
7359         * flow.c (verify_wide_reg_1): REGNO now unsigned.
7360         * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
7361         precisions and alignments are unsigned.
7362         (optimize_bit_field_compare, fold_truthop): Likewise.
7363         (int_const_binop): Adjust threshold for size_int_type_wide call.
7364         (fold_convert): Likewise.
7365         (size_int_type_wide): Make table larger and fix thinko that only
7366         had half of table used.
7367         (all_ones_mask_p, fold): Precisions are unsigned.
7368         * function.c (put_reg_info_stack): REGNO is unsigned.
7369         (instantiate_decl): Size is HOST_WIDE_INT.
7370         (instantiate_virtual_regs): I is unsigned.
7371         (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
7372         (promoted_input_arg): REGNO is unsigned.
7373         * function.h (struct function): x_max_parm_reg is now unsigned.
7374         * gcse.c (max_gcse_regno): Now unsigned.
7375         (struct null_pointer_info): min_reg and max_reg now unsigned.
7376         (lookup_set, next_set): REGNO arg now unsigned.
7377         (compute_hash_table): REGNO and I now unsigned.
7378         (handle_avail_expr): regnum_for_replacing now unsigned.
7379         (cprop_insn): REGNO now unsigned.
7380         (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
7381         * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
7382         * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
7383         * hard-reg-set.h (reg_class_size): Now unsigned.
7384         * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
7385         * jump.c (mark_modified_reg): I now unsigned; add cast.
7386         (rtx_equal_for_thread_p): Add cast.
7387         * loop.c (max_reg_before_loop): Now unsigned.
7388         (struct_movable): REGNO now unsigned.
7389         (try_copy_prop): REGNO arg unsigned.
7390         (regs_match_p): XN and YN now unsigned.
7391         (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
7392         (strength_reduce): Likewise; NREGS also unsigned.
7393         (first_increment_giv, last_increment_giv unsigned): Now unsigned.
7394         * loop.h (struct iv_class): REGNO now unsigned.
7395         (max_reg_before_loop, first_increment_giv, last_increment_giv):
7396         Now unsigned.
7397         * machmode.h (mode_size, mode_unit_size): Now unsigned.
7398         (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
7399         * optabs.c (expand_binop): I and NWORDS now unsigned.
7400         (expand_unop): I now unsigned.
7401         * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
7402         print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
7403         * real.c (significand_size): Now returns unsigned.
7404         * real.h (significand_size): Likewise.
7405         * regclass.c (reg_class_size): Now unsigned.
7406         (choose_hard_reg_mode): Both operands now unsigned.
7407         (record_reg_classes): REGNO and NR now unsigned.
7408         (reg_scan): NREGS now unsigned.
7409         (reg_scan_update): old_max_regno now unsigned.
7410         (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
7411         * reload.c (find_valid_class): BEST_SIZE now unsigned.
7412         (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
7413         (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
7414         Likewise for variable R.
7415         (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
7416         as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
7417         (find_equiv_reg): Add casts.
7418         (regno_clobbered_p): Arg REGNO now unsigned.
7419         * reload.h (struct reload): NREGS now unsigned.
7420         (refers_to_regno_for_reload_p): Regno args are unsigned.
7421         (regno_clobbered_p): Likewise.
7422         * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
7423         (compute_use_by_pseudos): REGNO now unsigned.
7424         (find_reg): I and J now unsigned, new variable K, and change loop
7425         variables accordingly; THIS_NREGS now unsigned.
7426         (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
7427         (spill_hard_reg): REGNO arg now unsigned; add casts.
7428         (forget_old_reloads_1): REGNO, NR, and I now unsigned.
7429         (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
7430         (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
7431         END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
7432         (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
7433         (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
7434         (emit_reload_insns): REGNO now unsigned.
7435         (reload_cse_move2add): Add cast.
7436         (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
7437         and rework loop.
7438         * resource.c (mark_referenced_resources, mark_set_resources): New
7439         variable R; REGNO and LAST_REGNO now unsigned.
7440         (mark_target_live_regs): J and REGNO now unsigned.
7441         * rtl.c (mode_size, mode_unit_size): Now unsigned.
7442         * rtl.h (union rtunion_def): New field rtuint.
7443         (XCUINT): New macro.
7444         (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
7445         (operand_subword, operand_subword_force): Word number is unsigned.
7446         (choose_hard_reg_mode): Operands are unsigned.
7447         (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
7448         (find_regno_note, find_regno_fusage, replace_regs): Likewise.
7449         (regno_use_in, combine_instructions, remove_death): Likewise.
7450         (reg_scan, reg_scan_update): Likewise.
7451         (extended_count): Return is unsigned.
7452         * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
7453         INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
7454         (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
7455         (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
7456         (reg_reg_last_1): FIRS and LAST now unsigned.
7457         (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
7458         (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
7459         now unsigned.
7460         (find_regno_note, regno_use_in): Arg REGNO now unsigned.
7461         (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
7462         (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
7463         (replace_regs): Arg NREGS now unsigned.
7464         * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
7465         * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
7466         (simplify_binary_operation): Likewise.
7467         (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
7468         THIS_LAST now unsigned.
7469         (cselib_record_set): Add cast.
7470         * ssa.c (ssa_max_reg_num): Now unsigned.
7471         (rename_block): REGNO now unsigned.
7472         * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
7473         sizes now unsigned.
7474         (all_cases_count): Just return -1 not -2.
7475         COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
7476         Rework tests to use trees whenever possible.
7477         Use host_integerp and tree_low_cst.
7478         (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
7479         Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
7480         (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
7481         * stor-layout.c (mode_for_size): SIZE arg now unsigned.
7482         (smallest_mode_for_size): Likewise.
7483         (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
7484         KNOWN_ALIGN is now an alignment, so simplify code.
7485         Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
7486         (start_record_layout): Renamed from new_record_layout_info.
7487         Update to new fields.
7488         (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
7489         New functions.
7490         (place_union_field): Renamed from layout_union_field.
7491         Update to use new fields in rli.
7492         (place_field): Renamed from layout_field.
7493         Major rewrite to use new fields in rli; pass alignment to layout_decl.
7494         (finalize_record_size): Rework to use new fields in rli and handle
7495         union.
7496         (compute_record_mode): Rework to simplify and to use new DECL fields.
7497         (finalize_type_size): Make rounding more consistent.
7498         (finish_union_layout): Deleted.
7499         (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7500         (layout_type, case RECORD_TYPE): Call new function names.
7501         (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7502         (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7503         (get_best_mode): UNIT is now unsigned; remove casts.
7504         * tree.c (bit_position): Compute from new fields.
7505         (byte_position, int_byte_position): New functions.
7506         (print_type_hash_statistics): Cast to remove warning.
7507         (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7508         (build_index_type): Likewise; make subtype of sizetype.
7509         (build_index_2_type): Pass sizetype to build_range_type.
7510         (build_common_tree_nodes): Use size_int and bitsize_int to
7511         initialize nodes; add bitsize_{zero,one,unit}_node.
7512         * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7513         (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7514         (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7515         (DECL_FIELD_BITPOS): Deleted.
7516         (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7517         (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7518         (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7519         (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7520         (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7521         (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7522         (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7523         (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7524         (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7525         (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7526         (DECL_ALIGN): Adjust to new field in union.
7527         (DECL_OFFSET_ALIGN): New field.
7528         (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7529         (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7530         (union tree_decl): Add struct for both aligns.
7531         (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7532         (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7533         (struct record_layout_info): Rework fields to have offset
7534         alignment and byte and bit position.
7535         (start_record_layout, place_field): Renamed from old names.
7536         (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7537         (byte_position, int_byte_position): Likewise.
7538         (get_inner_reference): Change types of position and length.
7539         * unroll.c (unroll_loop): New variable R; use for some loops.
7540         MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7541         (calculate_giv_inc): Arg REGNO now unsigned.
7542         (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7543         * varasm.c (assemble_variable): Clean up handling of size using
7544         host_integerp and tree_low_cst.
7545         (decode_addr_const): Use byte, not bit, position.
7546         (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7547         use tree_low_cst and int_bit_position.
7548         * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7549
7550 Fri Mar 24 20:13:49 2000  Jason Eckhardt  <jle@cygnus.com>
7551
7552         * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7553         (reorder_block_def): New members eff_head and eff_end.
7554         (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7555         (verify_insn_chain): New function.
7556         (skip_insns_between_block): Add code to skip deleted insns.
7557         Check for note before using.
7558         (chain_reorder_blocks): Replace calls to skip_insns_between_block
7559         with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7560         Check for note before using.
7561         (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7562         (fixup_reorder_chain): Restructure, clean up, defect removal.
7563         (reorder_basic_blocks): Remove last_insn and references to it.
7564         Moved insn chain verification code into a new function (see above).
7565         Delete defective code that sets last insn.
7566         Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7567         all blocks.
7568
7569 2000-03-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7570
7571         * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7572
7573 2000-03-24  Richard Henderson  <rth@cygnus.com>
7574
7575         * tree.c (lang_safe_for_unsave): Remove.
7576         (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7577         allowing for two levels of unsafeness.  Remove lang hook.
7578         * tree.h: Update declarations.
7579         * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7580         Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7581         Always fail sibcalls when there are pending cleanups.
7582
7583 2000-03-24  Geoff Keating  <geoffk@cygnus.com>
7584
7585         * flow.c (propagate_block): When we delete an ADDR_VEC,
7586         also delete the BARRIER following it if there is one.
7587
7588 2000-03-24  Richard Henderson  <rth@cygnus.com>
7589
7590         * builtins.c (expand_builtin_bzero): Convert `length' argument
7591         to sizetype.
7592
7593 2000-03-24  Jakub Jelinek  <jakub@redhat.com>
7594
7595         * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7596         comparison if regno's are equal.
7597         * calls.c (initialize_argument_informat): Add ecf_flags argument.
7598         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7599         (expand_call): Update caller.
7600         Avoid making a sibling call if argument size of the callee is larger
7601         than argument size of the caller.
7602         Call hard_function_value with outgoing set if in sibcall pass.
7603         Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7604
7605         * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7606         Change LEAF_REGISTERS from an array initializer to actual array
7607         identifier. Move static global variable into the function.
7608         (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7609         sequences for leaf functions.
7610         * global.c (global_alloc): Likewise.
7611         * tm.texi (LEAF_REGISTERS): Update documentation.
7612
7613         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7614         TARGET_FLAT leaf disabling hack.
7615         (LEAF_REGISTERS): Changed from an array initializer to actual array
7616         identifier to avoid duplication and remove the above hack.
7617         (FUNCTION_OK_FOR_SIBCALL): Define.
7618         * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7619         always like call attribute.
7620         (eligible_for_sibcall_delay): New attribute.
7621         (sibcall): New delay type.
7622         (sibcall, sibcall_value, sibcall_epilogue): New expands.
7623         (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7624         sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7625         * config/sparc/sparc.c (sparc_leaf_regs): New array.
7626         (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7627         New functions.
7628         (output_function_epilogue): Move part of the code into
7629         output_restore_regs.
7630         (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7631         TYPE_SIBCALL.
7632         * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7633         prototypes.
7634
7635         * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7636         until infrastructure is finished.
7637
7638 Fri Mar 24 13:49:45 2000  Jeffrey A Law  (law@cygnus.com)
7639
7640         * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7641         (save_parm_insns): Not here.
7642
7643 2000-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7644
7645         * builtins.c (expand_builtin_bzero): New function.
7646         (expand_builtin): Handle bzero.
7647
7648         * builtins.def: Add BUILT_IN_BZERO.
7649
7650         * c-common.c (c_common_nodes_and_builtins): Provide builtin
7651         prototype & function for bzero.
7652
7653 2000-03-23  Michael Meissner  <meissner@redhat.com>
7654
7655         * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7656         change adding TARGET_FP to the TF floating point insns, except for
7657         trunctfsf2, which generates direct calls to truncdfsf2.
7658
7659 2000-03-23  Geoff Keating  <geoffk@cygnus.com>
7660
7661         * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7662         try to protect against middle-end changes that break binary
7663         compatibility.
7664         (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7665
7666 2000-03-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7667
7668         * config/c4x/c4x.md (load_immed_address):  Add DP reg clobber.
7669
7670 Thu Mar 23 17:10:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7671
7672         * calls.c (expand_call): If TARGET is passed by reference and
7673         is readonly, write a CLOBBER.
7674
7675 2000-03-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7676
7677         * builtins.c (expand_builtin): Handle bcmp.
7678
7679         * builtins.def: Add BUILT_IN_BCMP.
7680
7681         * c-common.c (c_common_nodes_and_builtins): Provide builtin
7682         prototype & function for bcmp.
7683
7684 Thu Mar 23 11:34:39 2000  Jim Wilson  <wilson@cygnus.com>
7685
7686         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7687         (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7688         * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7689
7690 Thu Mar 23 16:04:40 2000  Andrew Haley  <aph@cygnus.com>
7691
7692         * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7693         alternative when using -fp64 -gp32.
7694
7695 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
7696
7697         * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7698         * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7699         * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7700
7701         * frame.h (frame_state): Revert last change.
7702         * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7703         * libgcc2.c (throw_helper): Revert last change.
7704
7705 2000-03-22  Richard Henderson  <rth@cygnus.com>
7706
7707         * stmt.c (expand_asm_operands): Don't promote the temporary.
7708
7709 2000-03-22  Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7710
7711         * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7712         * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7713           c_get_alias_set): Likewise.
7714         * c-decl.c (duplicate_decls): Likewise.
7715         * c-typeck.c (default_conversion,build_unary_op): Likewise.
7716         * calls.c (initialize_argument_information): Likewise.
7717         * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7718         Likewise.
7719         * dwarfout.c (decl_class_context,output_type): Likewise.
7720         * expr.c (get_inner_reference): Likewise.
7721         * fold-const.c (simple_operand_p,fold): Likewise.
7722         * function.c (aggregate_value_p): Likewise.
7723         * stmt.c (expand_asm_operands): Likewise.
7724         * varasm.c (named_section): Likewise.
7725
7726 2000-03-22  Jason Merrill  <jason@casey.cygnus.com>
7727
7728         Implement dwarf2 exception handling for the ARM.
7729         * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7730         (DWARF_FRAME_RETURN_COLUMN): Define.
7731         * config/arm/arm.c (emit_multi_reg_push): Return rtx.  Attach
7732         REG_FRAME_RELATED_EXPR note.
7733         (emit_sfm): Likewise.
7734         (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7735         * dwarf2out.c (reg_save): Handle saving a register to itself.
7736         (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7737         * except.c (eh_regs): Don't use the static chain reg if it's
7738         callee-saved.
7739         * frame.h (frame_state): Add cfa_saved field.
7740         * frame.c (execute_cfa_insn): Set it.
7741         * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7742         the epilogue.
7743         * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7744         Now takes a parm.
7745         (instantiate_virtual_regs): Adjust.
7746         * tm.texi: Adjust.
7747         * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7748         * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7749         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7750
7751         * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7752         (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7753
7754 2000-03-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7755
7756         * builtins.def: New file.
7757
7758         * Makefile.in (TREE_H): Depend on builtins.def.
7759
7760         * builtins.c (built_in_names): Use builtins.def.
7761
7762         * tree.h (built_in_function): Likewise.
7763
7764 2000-03-22  Mark Mitchell  <mark@codesourcery.com>
7765
7766         * tree.c (size_in_bytes): Return size_zero_node, not
7767         integer_zero_node.
7768
7769 2000-03-22  Geoff Keating  <geoffk@cygnus.com>
7770
7771         * config/fp-bit.c (pack_d): Correct the case when a denormal
7772         is rounded up and stops being denormal.
7773
7774 2000-03-21  Richard Henderson  <rth@cygnus.com>
7775
7776         * config/alpha/alpha.c (function_arg): Check for void_type_node
7777         before using MUST_PASS_IN_STACK.
7778
7779 2000-03-21  Stephane Carrez  <stcarrez@worldnet.fr>
7780
7781         * regmove.c (combine_stack_adjustments_for_block): Check that
7782         the stack pointer is a valid memory address.
7783
7784 Wed Mar 22 11:44:50 MET 2000  Jan Hubicka  <jh@suse.cz>
7785
7786         * calls.c: re-install Mar 16 emit_library_call merge.
7787
7788 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
7789
7790         * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7791         we cannot be sure that if reload_completed base register will
7792         be properly aligned.
7793
7794 2000-03-21  Richard Henderson  <rth@cygnus.com>
7795
7796         * flow.c (delete_block): Fix typo last change.
7797
7798 2000-03-21  Mark Mitchell  <mark@codesourcery.com>
7799
7800         * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7801         not COMPLETE_TYPE_P, to check the type of the expression.
7802
7803 2000-03-21  Michael Meissner  <meissner@redhat.com>
7804
7805         * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7806         all floating point insns that just tested the macro
7807         TARGET_HAS_XFLOATING_LIBS.
7808         (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7809         used to only use the gprs.
7810
7811 2000-03-21  Nathan Sidwell  <nathan@codesourcery.com>
7812
7813         * tree.h (COMPLETE_TYPE_P): New macro.
7814         (COMPLETE_OR_VOID_TYPE_P): New macro.
7815         (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7816         * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7817         * c-aux-info.c (gen_type): Use them.
7818         * c-common.c (c_expand_expr_stmt): Likewise.
7819         * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7820         grokdeclarator, grokparms, finish_struct, start_function,
7821         store_parm_decls, combine_parm_decls): Likewise.
7822         * c-parse.y (cast_expr): Likewise.
7823         * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7824         c_size_in_bytes, c_alignof, build_component_ref,
7825         build_indirect_ref, build_array_ref, convert_arguments,
7826         build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7827         * calls.c (initialize_argument_information): Likewise.
7828         * convert.c (convert_to_integer): Likewise.
7829         * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7830         * dwarfout.c (location_or_const_value_attribute,
7831         output_enumeration_type_die, output_structure_type_die,
7832         output_union_type_die, output_type): Likewise.
7833         * expr.c (safe_from_p, expand_expr): Likewise.
7834         * function.c (assign_parms): Likewise.
7835         * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7836         * tree.c (build_array_type, build_function_type,
7837         build_method_type, build_offset_type, build_complex_type): Likewise.
7838         * c-parse.c, c-parse.h: Regenerated.
7839
7840 2000-03-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7841
7842         * config/c4x/rtems.h: Include config/rtems.h.
7843
7844 Tue Mar 21 09:24:00 2000  Denis Chertykov  <denisc@overta.ru>
7845
7846         * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7847         decl is a FUNCTION_DECL
7848
7849 Mon Mar 20 19:53:53 2000  Jim Wilson  <wilson@cygnus.com>
7850
7851         * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7852         function uses output registers.  Don't save RP for leaf functions.
7853         Do save RP even if no epilogue.
7854         * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7855         (CALL_USED_REGISTERS): Unmark in registers.
7856         (REG_ALLOC_ORDER): Move out regs up, to near the top.  Move in regs up,
7857         to near the middle.
7858
7859 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
7860
7861         * config/rs6000/rs6000.md (bunordered): New expander.
7862         (bordered): New expander.
7863         (buneq): New expander.
7864         (bunge): New expander.
7865         (bungt): New expander.
7866         (bunle): New expander.
7867         (bunlt): New expander.
7868         (bltgt): New expander.
7869
7870         * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7871         (ccr_bit_negated_p): New function.
7872         (print_operand): For %C, generate appropriate cror for UNEQ,
7873         UNLT, UNGT, and LTGT.  For %T and %t, use ccr_bit_negated_p.
7874
7875 2000-03-20  Andreas Jaeger  <aj@suse.de>
7876
7877         * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7878         warning.
7879
7880         * tree.h (safe_for_unsave): Prototype.
7881
7882 2000-03-20  Richard Henderson  <rth@cygnus.com>
7883
7884         * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7885         (combine_stack_adjustments_for_block): Don't allow sp references
7886         in the side of a set we're not fixing up.
7887         * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7888         after life_analysis.
7889
7890 2000-03-20  Richard Henderson  <rth@cygnus.com>
7891
7892         * calls.c (expand_call): Don't bother generating tail call
7893         sequences if there are pending cleanups.  Use
7894         expand_start_target_temps/expand_end_target_temps to elide
7895         cleanups created during sibcall expansion.
7896
7897 2000-03-20  Geoff Keating  <geoffk@cygnus.com>
7898
7899         * configure.in: Set $IFS to a value if it doesn't already have one
7900         in the --enable-checking handling.
7901         * configure: Regenerate.
7902
7903 2000-03-20  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7904
7905         * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7906         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7907         Regenerated.
7908
7909 Mon Mar 20 11:43:15 MET 2000  Jan Hubicka  <jh@suse.cz>
7910
7911         * jump.c (delete_noop_moves): Remove code attempting to
7912         combine stack adjustments.
7913
7914 2000-03-19  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
7915
7916         * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7917         * except.c (emit_cleanup_handler): Use them.
7918         (expand_end_all_catch): Likewise.
7919         * function.c (fixup_var_refs): Likewise.
7920         (expand_function_end): Clear catch_clauses_last.
7921         * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7922         * except.h (struct eh_status): New field x_catch_clauses_last.
7923         (catch_clauses_last): New define.
7924
7925         * Makefile.in (tree.o): Depend on HASHTAB_H.
7926         * tree.c: Include hashtab.h.
7927         (struct type_hash): Remove next field.
7928         (TYPE_HASH_SIZE): Remove.
7929         (TYPE_HASH_INITIAL_SIZE): New define.
7930         (type_hash_table): Change type to htab_t.
7931         (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7932         mark_hash_entry): New functions.
7933         (init_obstacks): Allocate type hash.
7934         (type_hash_lookup): Use htab functions.
7935         (type_hash_add, mark_type_hash): Likewise.
7936         (dump_tree_statistics): Call print_type_hash_statistics.
7937
7938 2000-03-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7939
7940         * rs6000/t-aix41: New file.
7941
7942         * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7943
7944 Sun Mar 19 13:27:30 2000  Hans-Peter Nilsson  <hp@axis.com>
7945
7946         * tm.texi (Driver): Fix typos and tweak entry for
7947         INCLUDE_DEFAULTS.
7948         Move misplaced STRUCT_FORCE_BLK entry ...
7949         (Storage Layout): ... to here.
7950         (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7951
7952 2000-03-19  Richard Henderson  <rth@cygnus.com>
7953
7954         * flow.c (delete_block): Delete the addr_vec along with the block.
7955         (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7956         reference labels.
7957
7958         * fold-const.c (extract_muldiv): Apply type check for defined
7959         overflow to multiply as well as divide.
7960
7961         * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7962
7963 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
7964
7965         * emit-rtl.c (remove_unncessary_notes): Check that all
7966         NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7967         associated NOTE_BLOCK.
7968         * function.h (identify_blocks): Update comments.
7969         (reorder_blocks): Declare.
7970         * function.c (identify_blocks): Don't take paramters.
7971         (reorder_blocks): Don't take parameters.
7972         * loop.h (find_loop_tree_blocks): Remove.
7973         (unroll_block_trees): Likewise.
7974         * loop.c (loop_optimize): Don't call find_loop_tree_blocks.  Use
7975         reorder_blocks instead of unroll_block_trees.h
7976         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7977         * stmt.c (find_loop_tree_blocks): Remove.
7978         (unroll_block_trees): Likewise.
7979         * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7980         in whole-function mode.
7981         * tree.h (reorder_blocks): Remove declaration.
7982
7983         * expr.c: Include intl.h.
7984         * Makefile.in (expr.o): Depend on intl.h.
7985
7986 2000-03-18  Richard Henderson  <rth@cygnus.com>
7987
7988         * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7989
7990 2000-03-18  Mark Mitchell  <mark@codesourcery.com>
7991
7992         * tree.h (tree_index): Remove enumerals for integer types.
7993         (integer_type_kind): New type.
7994         (integer_types): New variable.
7995         (char_type_node): Adjust.
7996         (signed_char_type_node): Likewise.
7997         (unsigned_char_type_node): Likewise.
7998         (short_integer_type_node): Likewise.
7999         (short_unsigned_type_node): Likewise.
8000         (integer_type_node): Likewise.
8001         (unsigned_type_node): Likewise.
8002         (long_integer_type_node): Likewise.
8003         (long_unsigned_type_node): Likewise.
8004         (long_long_integer_type_node): Likewise.
8005         (long_long_unsigned_type_node): Likewise.
8006         * tree.c (integer_types): New variable.
8007         (init_obstacks): Register it as a root.
8008
8009 Sat Mar 18 14:38:00 2000  Jason Eckhardt  <jle@cygnus.com>
8010
8011         * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
8012         NEXT_INSN. Update last insn in chain.
8013
8014 2000-03-17  Jason Merrill  <jason@casey.cygnus.com>
8015
8016         * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
8017         with TYPE_DECL_SUPPRESS_DEBUG set.
8018
8019 2000-03-18  Richard Henderson  <rth@cygnus.com>
8020
8021         * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
8022
8023 2000-03-18  Richard Henderson  <rth@cygnus.com>
8024
8025         * i386.c (call_insn_operand): Always allow SYMBOL_REF,
8026         care for HALF_PIC_P.
8027         (expander_call_insn_operand): Remove.
8028         (ix86_expand_epilogue): New arg `emit_return' to control return insn.
8029         * i386.h (PREDICATE_CODES): Update.
8030         * i386.md (all call expanders): Remove predicates, remove special
8031         handling for half-pic.
8032         (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
8033         (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
8034         (sibcall_epilogue): New.
8035
8036 2000-03-17  Richard Henderson  <rth@cygnus.com>
8037
8038         * rtlanal.c (single_set): Reject if the parallel has anything
8039         except SET or USE or CLOBBER.
8040
8041 2000-03-17  Jeff Law  <law@cygnus.com>
8042             Richard Henderson  <rth@cygnus.com>
8043
8044         * Makefile.in (OBJS): Add sibcall.o.
8045         (sibcall.o): New.
8046         * sibcall.c: New file.
8047         * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
8048         (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
8049         (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
8050         Emit sibcall patterns when requested.  Update all callers.
8051         (expand_call): Generate CALL_PLACEHOLDER insns when tail call
8052         elimination seems feasable.
8053         * final.c (leaf_function_p): Sibling calls don't discount being
8054         a leaf function.
8055         * flow.c (HAVE_sibcall_epilogue): Provide default.
8056         (find_basic_blocks_1): Sibling calls don't throw.
8057         (make_edges): Make edge from sibling call to EXIT.
8058         (propagate_block): Don't remove sibcall_epilogue insns.
8059         * function.c (prologue, epilogue): Turn into varrays.  Update all uses.
8060         (sibcall_epilogue): New.
8061         (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
8062         (identify_blocks_1): Likewise.  Break out from ...
8063         (identify_blocks): ... here.
8064         (reorder_blocks_1): Scan CALL_PLACEHOLDER.  Break out from ...
8065         (reorder_blocks): ... here.
8066         (init_function_for_compilation): Zap prologue/epilogue as varrays.
8067         (record_insns): Extend a varray instead of mallocing new memory.
8068         (contains): Read a varray not array of ints.
8069         (sibcall_epilogue_contains): New.
8070         (thread_prologue_and_epilogue_insns): Emit and record
8071         sibcall_epilogue patterns.
8072         (init_function_once): Allocate prologue/epilogue varrays.
8073         * genflags.c (gen_insn): Treat sibcall patterns as calls.
8074         * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
8075         Broken out from ...
8076         (save_for_inline_nocopy): ... here.
8077         (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
8078         Broken out from ...
8079         (expand_inline_function): ... here.
8080         (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
8081         (subst_constants): Handle 'n' formats.
8082         * jump.c (jump_optimize_minimal): New.
8083         (jump_optimize_1): New arg `minimal'; update callers.  Elide most
8084         optimizations if it's set.
8085         * rtl.c (copy_rtx): Do copy jump & call for insns.
8086         * rtl.h (struct rtx_def): Document use of jump and call for insns.
8087         (SIBLING_CALL_P): New.
8088         (sibcall_use_t): New.
8089         * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
8090         Invoke optimize_sibling_and_tail_recursive_calls.
8091         * tree.c (lang_safe_for_unsave): New.
8092         (safe_for_unsave): New.
8093         * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
8094
8095         * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
8096         * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
8097         (*sibcall_osf_1, *sibcall_value_osf_1): New.
8098
8099 2000-03-17  Mark Mitchell  <mark@codesourcery.com>
8100
8101         * objc/objc-act.c (encode_method_prototype): Pass types, not
8102         PARM_DECLs, to int_size_in_bytes.
8103
8104 Fri Mar 17 11:51:34 2000  Jim Wilson  <wilson@cygnus.com>
8105
8106         * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
8107
8108         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8109         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
8110
8111 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8112
8113         * Clean up usages of TREE_INT_CST_LOW.
8114         * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
8115         * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
8116         Regenerated.
8117         * c-tree.h (min_precision): Move declaration to here.
8118         * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
8119         (build_unary_op, add_pending_init): Use bit_position.
8120         (pending_init_member, process_init_element): Likewise.
8121         (really_start_incremental_init, push_init_level, pop_init_level):
8122         Don't make copies of nodes or modify them in place, use consistent
8123         types when tracking positions, and use tree routines computations.
8124         (set_init_index, output_init_element): Likewise.
8125         (output_pending_init_elements, process_init_element): Likewise.
8126         * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
8127         tree_low_cst and int_bit_position; also minor cleanup.
8128         (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
8129         (print_cst_octal): Precision is unsigned.
8130         (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
8131         * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
8132         (simple_type_align_in_bits): Result is unsigned int.
8133         Use tree_int_low_cst and host_integerp.
8134         (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
8135         (field_byte_offset): Result is HOST_WIDE_INT.
8136         Change types of internal variables so alignments are unsigned int,
8137         offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
8138         Use host_integerp, tree_low_cst, and int_bit_position.
8139         (add_bit_offset_attribute): Likewise.
8140         (add_data_member_location_attribute): Use tree_cst_low.
8141         (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
8142         (add_bit_size_attribute): Use tree_low_cst.
8143         (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
8144         * dwarfout.c: Similar changes to dwarf2out.c.
8145         * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
8146         * genoutput.c (n_occurences): Return -1 for null string.
8147         (strip_whitespace): Accept null string and make into function.
8148         (scan_operands): Reflect above changes.
8149         * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
8150         (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
8151         * ssa.c (rename_registers): Add missing cast of arg to bzero.
8152         * tree.c (int_size_in_bytes): Check for too big to represent.
8153         (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
8154         * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
8155         New declarations.
8156         (min_precision): Delete from here.
8157         * varasm.c (decode_addr_const): Use host_integerp, bit_position,
8158         and int_bit_position.
8159         * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
8160         (encode_method_def): Likewise.
8161         (build_ivar_list_initializer): Use int_bit_position.
8162         (generate_shared_structures): Convert size.
8163         (encode_type, encode_complete_bitfield): Use integer_zerop.
8164         (encode_bitfield): Use tree_low_cst and int_bit_position.
8165
8166 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8167
8168         * config/c4x/c4x.h (CPP_SPEC): Fix typo.
8169
8170 2000-03-17  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
8171
8172         * call.c (special_function_p): It is only malloc if it returns
8173         Pmode.
8174
8175 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8176
8177         * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
8178         (C33_FLAG, TARGET_C3X): Add macros.
8179         (TARGET_SWITCHES): Add -m33 option.
8180         * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
8181
8182 2000-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8183
8184         * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
8185         (PARALLEL_PACK_FLAG): Delete.
8186         (TARGET_SWITCHES): Update.
8187         (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
8188
8189 Thu Mar 16 18:52:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8190
8191         * fold-const.c (fold): Fix a few cases when the returned result
8192         is not of the same type as the input.
8193
8194 2000-03-16  Nick Clifton  <nickc@cygnus.com>
8195
8196         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
8197         warning.
8198
8199 2000-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8200
8201         * libgcc2.h: Move prototypes above macros with the same name.
8202         Wrap some function prototypes in the conditional which indicates
8203         whether they are supported, i.e. "BITS_PER_UNIT == 8".
8204
8205 2000-03-16  Richard Henderson  <rth@cygnus.com>
8206
8207         * calls.c: Revert last two changes.
8208
8209 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
8210
8211         * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
8212         has exponent 0 is a zero.
8213
8214         * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
8215         HASH may already be nonzero.  Add code/mode into hash value
8216         immediately after repeat label.
8217         (cselib_lookup): Don't leave the hash table in an inconsistent
8218         state before a hash lookup operation.
8219
8220 Thu Mar 16 17:03:10 MET 2000  Jan Hubicka  <jh@suse.cz>
8221
8222         * i386.md (all HI and QI mode non-move patterns):  Conditionize
8223         by TARGET_[HQ]IMODE_MATH.
8224         * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8225         x86_promote_qi_regs): Declare.
8226         (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
8227         TARGET_PROMOTE_QI_REGS): New macros.
8228         (PROMOTE_MODE): New macro.
8229         * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8230         x86_promote_qi_regs): New global variables.
8231
8232 Thu Mar 16 16:50:44 MET 2000  Jan Hubicka  <jh@suse.cz>
8233
8234         * calls.c (emit_library_call_value_1): Break out from ...; handle
8235         VOIDmode function calls too.
8236         (emit_library_call_value): ... here.
8237         (emit_library_call): Implement by calling emit_library_call_value_1.
8238
8239 Thu Mar 16 16:01:30 MET 2000  Jan Hubicka  <jh@suse.cz>
8240
8241         * calls.c (expand_call): Do sanity checking on arg_space_so_far.
8242         Update arg_space_so_far on stack adjustments.
8243         (emit_library_call, emit_library_call_value): Likewise; take into
8244         account arg_space_so_far and pending_stack_adjust when calculcating
8245         the boundary.
8246
8247 Thu Mar 16 09:02:19 2000  Jason Eckhardt  <jle@cygnus.com>
8248
8249         * flow.c: Move all basic block reordering code into its own file.
8250         (create_basic_block): Externalize.
8251         * bb-reorder.c: New file. Copy all basic block reordering code from
8252         flow.c to this file.
8253         (reorder_basic_blocks): Fix fencepost error in for-loop.
8254         (reorder_basic_blocks): Remove braces from single statement for-loops.
8255         * basic-block.h: Add declaration for create_basic_block.
8256         * Makefile.in: Add rules for bb-reorder.o.
8257
8258 2000-03-16  Neil Booth  <NeilB@earthling.net>
8259
8260         * cppinit.c (handle_option):  Implement #unassert directive
8261         as -A- command line option.
8262         (print_help):  Update.
8263         * cpptexi.c:  Update.
8264
8265 Thu Mar 16 02:14:16 2000  Hans-Peter Nilsson  <hp@bitrange.com>
8266
8267         * md.texi (Standard Names): Document `jump'.
8268
8269 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
8270
8271         * calls.c (emit_call_1): Nothrow functions can still have nonlocal
8272         gotos.
8273
8274 2000-03-15  Geoff Keating  <geoffk@cygnus.com>
8275
8276         Merge changes from newppc-branch onto trunk.
8277
8278         2000-03-15  Geoff Keating  <geoffk@cygnus.com>
8279
8280         * rs6000.c (toc_hash_table): Update for new hash table functions.
8281         (toc_hash_function): Likewise.
8282         (toc_hash_eq): Likewise.
8283         (toc_hash_mark_entry): Likewise.
8284         (toc_hash_mark_table): Likewise.
8285         (output_toc): Likewise.
8286         (rs6000_add_gc_roots): Likewise.
8287
8288         2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8289
8290         * t-aix43 (AR_FOR_TARGET): Deleted.  Moved `-X32_64'...
8291         (AR_FLAGS_FOR_TARGET): here.  New macro.
8292
8293         2000-03-05  Clinton Popetz  <cpopetz@cygnus.com>
8294
8295         * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
8296         fpmem_operand) Delete.
8297         (xer_operand) New.
8298         (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
8299         (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
8300         (rs6000_save_machine_status, rs6000_restore_machine_status,
8301         rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
8302         references to above variables.
8303         (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
8304         * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
8305         DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
8306         (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
8307         (XER_REGNO_P, XER_REGNO): New.
8308         (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
8309         (PREDICATE_CODES): Change fpmem_operand to xer_operand.
8310         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
8311         XER_REGNO_P.
8312         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
8313         REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS,         and remove FLOAT_OR_FPMEM_REGS.
8314         (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
8315
8316         2000-02-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8317
8318         * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
8319         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
8320         * rs6000.h: from here.
8321
8322         * rs6000-protos.h (rs6000_select_section): Provide prototype.
8323         (rs6000_select_rtx_section): Likewise.
8324         (rs6000_encode_section_info): Likewise.
8325         (sdata_section): Likewise.
8326         (sdata2_section): Likewise.
8327         (sbss_section): Likewise.
8328         * sysv4.h (rs6000_select_section): Delete prototype.
8329         (rs6000_select_rtx_section): Likewise.
8330         (rs6000_encode_section_info): Likewise.
8331         (sdata_section): Likewise.
8332         (sdata2_section): Likewise.
8333         (sbss_section): Likewise.
8334         (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
8335
8336         * sysv4.h: Delete various unnecessary #undef's and put a comment
8337         on the remaining ones.
8338         Change various comments according to coding standard.
8339
8340         2000-02-29  Clinton Popetz  <cpopetz@cygnus.com>
8341
8342         * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
8343         CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
8344         (CR0_REGNO_P) Remove.
8345         * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
8346         setup_incoming_varargs, mtcrf_operation, print_operand,
8347         rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
8348         Use the above macros.
8349
8350         2000-02-24  Clinton Popetz  <cpopetz@cygnus.com>
8351
8352         * config/rs6000/rs6000.md: Added a new alternative for each
8353         pattern that had a 'x' alternative but no 'y' alternative.
8354         Added a new split for each of the above patterns.
8355
8356         2000-02-18  Geoff Keating  <geoffk@cygnus.com>
8357
8358         * aix41.h (ASM_CPU_SPEC): Delete.
8359         (CPP_CPU_SPEC): Delete.
8360
8361         * aix.h (RS6000_OUTPUT_BASENAME): Define.
8362         (ASM_OUTPUT_LABEL): Define.
8363         (ASM_GLOBALIZE_LABEL): Define.
8364         (STRIP_NAME_ENCODING): Define.
8365         * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
8366         (STRIP_NAME_ENCODING): Don't define.
8367         (ASM_OUTPUT_LABEL): Don't define.
8368         (ASM_GLOBALIZE_LABEL): Don't define.
8369         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
8370         names, and ASM_OUTPUT_LABEL to output labels, rather than
8371         asm_fprintf.
8372         (ASM_OUTPUT_LABEL): Define.
8373         (ASM_OUTPUT_INT): Use assemble_name.
8374         (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
8375         (STRIP_NAME_ENCODING): Don't undefine first.
8376         (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
8377         ELF.
8378         (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
8379         specified with 'asm' even with -fleading-underscore.
8380         * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
8381         (output_epilog): Likewise.
8382         (output_toc): Likewise.
8383         * tramp.asm: Handle -fleading-underscore correctly.
8384
8385         * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
8386         -mminimal-toc.
8387         (nonlocal_goto_receiver): Delete.
8388         * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
8389
8390         * rs6000.h (ASM_OUTPUT_DEF): Don't define.
8391         (SET_ASM_OP): Define.
8392         * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
8393
8394         * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
8395         (ASM_LONG): Define.
8396
8397         * rs6000.c (rs6000_dll_import_ref): Delete, not used.
8398         * rs6000-protos.h (rs6000_dll_import_ref): Delete.
8399
8400         * rs6000.h: Add 'u' to more constants.
8401
8402         2000-02-18  David Edelsohn  <edelsohn@gnu.org>
8403
8404         * rs6000.md (mfcr+shift): Delete PowerPC64 version.
8405
8406         2000-02-15  David Edelsohn  <edelsohn@gnu.org>
8407
8408         * rs6000.c (reg_or_u_cint_operand): New function.
8409         (logical_operand): Handle 64-bit hosts.
8410         (logical_u_operand): New function.
8411         (non_logical_cint_operand): Handle 64-bit hosts.
8412         (non_logical_u_cint_operand): New function.
8413         * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
8414         (PREDICATE_CODES): Define new functions.
8415         * rs6000-protos.h: Declare new functions.
8416         * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
8417         (movdi_64): Bracket code intended for 64-bit hosts.  Create
8418         CONST_DOUBLE for 32-bit values.
8419         (scc insns): Generate DImode compares.
8420         (mfcr insns): Create DImode versions.
8421         (sge matchers): New patterns.
8422
8423         2000-02-15  Gabriel Paubert  <paubert@iram.es>
8424
8425         * rs6000.md: Correct instructions length attributes and
8426         constraints on unsigned compare instructions.
8427         (*ne0): Disable for PowerPC64.
8428
8429         2000-02-11  Geoff Keating  <geoffk@cygnus.com>
8430
8431         * rs6000.c (output_function_profiler): Use .long for a 32-bit
8432         quantity, fix profile1.C test failure under -fPIC.
8433
8434         * rs6000.c: Add 'u' to many constants to suppress warnings.
8435         (constant_pool_expr_1): Make static.
8436         (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
8437         * rs6000.h: Add 'u' to many constants to suppress warnings.
8438
8439         * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
8440         for the start of the TOC, instead of LCTOC..0.
8441         * aix.h (toc_section): Use LCTOC..1 under AIX for the start
8442         of the TOC.
8443         * rs6000.md (load_toc_aix_si): Use LCTOC..1.
8444         (load_toc_aix_di): Use LCTOC..1.
8445
8446         * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
8447         * rs6000.c (rs6000_legitimize_address): New function from
8448         LEGITIMIZE_ADDRESS.  Only use create_TOC_reference on
8449         symbols in the constant pool that really are TOC references.
8450         (print_operand_address): For ELF, write TOC offsets under
8451         -fPIC as subtractions in the insn.
8452         (output_toc): For ELF, define symbols in TOC as normal labels,
8453         to match RTL.
8454         (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
8455         * rs6000-protos.h (rs6000_legitimize_address): Prototype.
8456         (create_TOC_reference): Prototype only when RTX_CODE is defined.
8457         * rs6000.md (movsi): Only use create_TOC_reference on
8458         symbols in the constant pool that really are TOC references.
8459
8460         * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
8461         * rs6000.c (rs6000_reorg): Delete.
8462         * rs6000-protos.h (rs6000_reorg): Delete.
8463
8464         2000-02-09  Geoff Keating  <geoffk@cygnus.com>
8465
8466         * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
8467
8468         * aix.h (SETUP_FRAME_ADDRESSES): Define.
8469         * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
8470         [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
8471         [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
8472         * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
8473         rs6000_aix_emit_builtin_unwind_init.
8474         * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
8475         rs6000_emit_eh_toc_restore on AIX.
8476         (return_eh_si): Use r2.
8477         (return_eh_di): Use r2.
8478
8479         * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
8480         since we're breaking binary compatibility anyway.
8481
8482         2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
8483
8484         * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
8485         constant_pool_expr_p): Declare them.
8486         (constant_pool_expr_p): Declare it.
8487         * config/rs6000/rs6000.c (toc_label_name): Define.
8488         (rs6000_override_options): Set toc_label_name.
8489         (input_operand): Allow any TOC_RELATIVE_EXPR_P.
8490         (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
8491         uses_TOC): New functions.
8492         (print_operand): Delete old '*' case.
8493         (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8494         and strip off rtl for TOC before calling output_addr_const.
8495         (rs6000_emit_load_toc_table): Use toc_label_name.
8496         * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8497         the default.
8498         (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8499         (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8500         (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8501         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8502         into explicit TOC_REGISTER offsets.
8503         (TOC_REGISTER): New macro.
8504         * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8505         TARGET_TOC to reference TOC_REGISTER.
8506         (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8507         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8508         uses_TOC before emitting label references.
8509
8510         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
8511
8512         * rs6000.md (stack_tie): Fix warning.
8513
8514         * eabi-ctors.c: Use 'asm' names for the start/end variables,
8515         to handle -fleading-underscore.
8516         * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8517         (USER_LABEL_PREFIX): New macro.
8518         (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8519         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8520         * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8521         call-linux can use the same multilibs.
8522         * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8523         and call-linux multilibs.  Do multilib with -fleading-underscore.
8524         (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8525         (MULTILIB_EXCEPTIONS): Remove call-linux exceptions.  Add restrictions
8526         to call-aix.
8527
8528         * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8529         have MASK_SOFT_FLOAT set.
8530         (CPP_FLOAT_DEFAULT_SPEC): New macro.
8531         (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8532         CPP_FLOAT_DEFAULT_SPEC.
8533
8534         * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8535         * rs6000.md: Whitespace change.
8536         * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8537         * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8538
8539         2000-02-05  Geoff Keating  <geoffk@cygnus.com>
8540
8541         * rs6000.md (eh_epilogue): New expander.
8542         (eh_reg_restore): New expand/split/insn combination.
8543         (return_eh_si): New insn.
8544         (return_eh_di): New insn.
8545
8546         * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8547         * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8548         * eabi-ctors.c (__do_global_ctors): Register this object's
8549         frame.  Clean up.  Call atexit() after the constructors.
8550         (__do_global_dtors): Deregister this object's frame.  Clean up.
8551         Allow for recursive calls to exit().
8552         * rs6000.c (fixuplabelno): New variable.
8553         * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8554         TARGET_RELOCATABLE, it slows down exec() under linux.
8555         (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8556
8557         * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8558         (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8559         (ASM_OUTPUT_DWARF_DELTA2): New macro.
8560         (ASM_OUTPUT_DWARF_DELTA4): New macro.
8561         (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8562         (ASM_OUTPUT_DWARF_ADDR): New macro.
8563         (ASM_OUTPUT_DWARF_DATA4): New macro.
8564         (ASM_OUTPUT_DWARF_DATA2): New macro.
8565         (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8566         (ASM_OUTPUT_DWARF_OFFSET): New macro.
8567         (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8568
8569         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
8570
8571         * rs6000.c (rs6000_sr_alias_set): New variable.
8572         (rs6000_override_options): Initialise rs6000_sr_alias_set.
8573         (rs6000_emit_stack_tie): New function.
8574         (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8575         in a way that dwarf2out can understand.
8576         (rs6000_frame_related): New function.
8577         (rs6000_emit_prologue): Use rs6000_sr_alias_set.  Specify
8578         RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8579         Use rs6000_emit_stack_tie when needed.
8580         (rs6000_emit_epilogue): Use rs6000_sr_alias_set.  Don't set
8581         RTX_FRAME_RELATED_P.  Use rs6000_emit_stack_tie when needed.
8582         * rs6000.md (stack_tie): New insn.
8583         (return_internal_si): Allow return value to be in the count
8584         register.
8585         (return_internal_di): Likewise.
8586
8587         * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8588
8589         2000-02-03  Geoff Keating  <geoffk@cygnus.com>
8590
8591         * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8592
8593         2000-01-31  Geoff Keating  <geoffk@cygnus.com>
8594
8595         * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8596
8597         * rs6000.md (stmw): Use the right POWER opcode.
8598         (lmw): Likewise.
8599
8600         2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8601
8602         * rs6000-protos.h: New file.
8603
8604         * rs6000.c: Include tm_p.h.  Fix compile time warnings.
8605
8606         * rs6000.h: Move prototypes to rs6000-protos.h.  Fix compile time
8607         warnings.
8608
8609         * sysv4.h: Likewise.
8610
8611         2000-01-28  Geoff Keating  <geoffk@cygnus.com>
8612
8613         * ../../configure.in: Delete powerpcle-*-winnt*
8614         and powerpcle-*-pe|powerpcle-*-cygwin*.
8615         * ../../configure: Regenerated.
8616         * cygwin.h: Delete.
8617         * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8618         (TARGET_WINDOWS_NT): Delete.
8619         (ABI_NT): Delete.
8620         (CALL_NT_DLLIMPORT): Delete.
8621         Delete NT-specific code.
8622         * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8623         * win-nt.h: Delete.
8624         * t-winnt: Delete.
8625         * nt-ci.asm: Delete.
8626         * nt-cn.asm: Delete.
8627         * ntstack.asm: Delete.
8628
8629         2000-01-27  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8630
8631         * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8632         (ASM_FILE_START): Likewise.
8633         (ASM_DECLARE_FUNCTION_NAME): Likewise.
8634         (ASM_OUTPUT_LABELREF): Likewise.
8635         (ASM_OUTPUT_SKIP): Likewise.
8636         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8637         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8638         (ASM_OUTPUT_CASE_LABEL): Likewise.
8639         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8640         (ASM_OUTPUT_ASCII): Likewise.
8641
8642         2000-01-27  Clinton Popetz  <cpopetz@cygnus.com>
8643
8644         * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8645         reload_toc_labelno for non-prologue TOC reloads.  Also, don't
8646         increment rs6000_pic_labelno here.
8647         (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8648         and increment rs6000_pic_labelno here.
8649
8650         2000-01-24  Geoffrey Keating  <geoffk@cygnus.com>
8651
8652         * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8653         rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8654         allocation knows (reg) is dead before the insn.
8655
8656         2000-01-21  Geoff Keating  <geoffk@cygnus.com>
8657
8658         * rs6000.md (movsi_to_cr): Correct typo in output template.
8659
8660         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
8661
8662         * rs6000.c (rs6000_pic_labelno): Always define.
8663         (rs6000_pic_func_labelno): Delete.
8664         (lmw_operation): Check for a zero base register,
8665         which doesn't mean what we want.
8666         (stmw_operation): New function.
8667         (print_operand): Define new 'l' modifier.
8668         (rs6000_stack_info): We must save all 64 bits of the registers
8669         if TARGET_POWERPC64.
8670         (rs6000_output_load_toc_table): Delete.
8671         (rs6000_emit_load_toc_table): New function.
8672         (rs6000_allocate_stack_space): Delete.
8673         (rs6000_emit_allocate_stack): New function.
8674         (rs6000_emit_prologue): New function.
8675         (output_prolog): Use rs6000_emit_prologue.
8676         (rs6000_emit_epilogue): Change a few variable names to be
8677         more accurate.  Restore all 64 bits of the registers if
8678         TARGET_POWERPC64.  Only restore the FP registers which were used
8679         if they are being saved/restored one-at-a-time.
8680         (output_mi_thunk): Delete inefficient code generation.
8681         (output_function_profiler): Don't use rs6000_output_load_toc_table.
8682         * rs6000.h: Declare rs6000_emit_load_toc_table,
8683         rs6000_allocate_stack_space, stmw_operation.  Don't declare
8684         rs6000_output_load_toc_table.
8685         * rs6000.md (elf_high): Allow register 0, but discourage it
8686         heavily.
8687         (elf_low): Support loading into register 0.
8688         (load_toc_aix_si): New pattern.
8689         (load_toc_aix_di): New pattern.
8690         (load_toc_v4_pic_si): New pattern.
8691         (load_toc_v4_pic_di): New pattern.
8692         (load_toc_v4_PIC_1): New pattern.
8693         (load_toc_v4_PIC_1b): New pattern.
8694         (load_toc_v4_PIC_2): New pattern.
8695         (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8696         (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8697         (prologue): New expander.
8698         (movesi_from_cr): New pattern.
8699         (stmw): New pattern.
8700         (save_fpregs_si): New pattern.
8701         (save_fpregs_di): New pattern.
8702
8703         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8704
8705         * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8706         (movdi): Likewise.
8707         (movhi): Likewise.
8708         (movqi): Likewise.
8709
8710         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8711
8712         * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8713         at present.
8714         (movsi_got_internal): Likewise.
8715         (movsi_got_internal+1): Likewise.
8716         (set_sp): 'unspec 7' does a SImode clobber.
8717
8718         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8719
8720         * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8721         allocate a stack temporary.
8722         (floatsidf2_internal): Likewise.
8723         (floatsidf2_internal+1): Likewise.  Don't do bizzare hacks
8724         with unspec.
8725         (floatunssidf2): Don't use the fpmem "register", just
8726         allocate a stack temporary.
8727         (floatunssidf2_internal): Likewise.
8728         (floatunssidf2_internal+1): Likewise.  Don't do bizzare hacks
8729         with unspec.
8730         (floatsidf2_loadaddr): Delete.
8731         (floatsidf2_store1): Delete.
8732         (floatsidf2_store2): Delete.
8733         (floatsidf2_load): Delete.
8734         (fix_truncdfsi2): Don't use the fpmem "register", just
8735         allocate a stack temporary.
8736         (fix_truncdfsi2_internal_si): Delete.
8737         (fix_truncdfsi2_internal_di): Delete.
8738         (fix_truncdfsi2_internal): New insn.
8739         (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8740         (fix_truncdfsi2_store): Delete.
8741         (fix_truncdfsi2_load): Delete.
8742         (fctiwz): Produce gen_fctiwz.
8743
8744         2000-01-19  Geoffrey Keating  <geoffk@cygnus.com>
8745
8746         * eabi.h (INVOKE__main): Define.
8747         * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8748         specially.
8749         (rs6000_emit_prologue): Likewise.
8750         * rs6000.h (struct rs6000_stack): Don't keep track of whether
8751         this is the main program.
8752
8753         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8754
8755         * rs6000.c (rs6000_va_arg): Delete some unused variables.
8756
8757         2000-01-19  Geoff Keating  <geoffk@cygnus.com>
8758
8759         * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8760         goes after the argument.
8761
8762         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8763
8764         * rs6000.md: Document 'unspec' values used.
8765         (epilogue): New expander.
8766         (movesi_to_cr_one): New expander.
8767         (movesi_to_cr and following): New pattern.
8768         (lmw): New pattern.
8769         (return_internal_si): New pattern.
8770         (return_internal_di): New pattern.
8771         (return_and_restore_fpregs_si): New pattern.
8772         (return_and_restore_fpregs_di): New pattern.
8773         * rs6000.h: Declare new functions.
8774         * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8775         rather than rs6000_calls_p.
8776         (rs6000_makes_calls): Delete.
8777         (lmw_operation): New function.
8778         (mtcrf_operation): New function.
8779         (rs6000_emit_epilogue): New function.
8780         (output_epilog): Call rs6000_emit_epilogue and final if
8781         !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8782
8783         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8784
8785         * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8786         * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8787         * aix.h (SUBTARGET_SWITCHES): Document switches.
8788         * rs6000.h: (TARGET_SWITCHES): Don't print options twice.  Make
8789         sched-prolog and sched-epilog the same.  Document all the
8790         switches.
8791         (TARGET_OPTIONS): No longer allow -mdebug-.
8792
8793         2000-01-12  Geoff Keating  <geoffk@cygnus.com>
8794
8795         * rs6000.h (ASM_FILE_END): Move to aix.h.
8796         (EXTRA_SECTIONS): Move to aix.h.
8797         (READONLY_DATA_SECTION): Move to aix.h.
8798         (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8799         (SELECT_SECTION): Move to aix.h.
8800         (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8801         (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8802         (LINK_REGISTER_REGNUM): New definition.
8803         (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8804         (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8805         AIX and SVR4.
8806         * sysv4.h: Delete the code between the inclusion of rs6000.h
8807         and svr4.h.
8808         (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8809         (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8810         (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8811         (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8812         * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8813         (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8814         (fix_truncdfsi2_internal_di): New pattern.
8815         (fix_truncdfsi2_store): The second arg here is Pmode too.
8816         (fix_truncdfsi2_load): The second arg here is Pmode too.
8817         (tablejumpdi): Now that switch tables hold only SImode values,
8818         gcc needs to know how to add them to the pc which is DImode.
8819         * rs6000.c (rs6000_stack_info): Use symbolic name for
8820         LINK_REGISTER_REGNUM.
8821         (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8822         (output_toc): Delete unused variables s1 and s2.
8823         (output_ascii): Use fputs not fprintf on a variable string.
8824
8825         2000-01-07  David Edelsohn  <edelsohn@gnu.org>
8826
8827         * rs6000.c (processor_target_table): Add power3 as alias for 630.
8828         * aix43.h: Revert Aug 2 change.
8829         (HAS_INIT_SECTION): Define, not visible yet.
8830         (LD_INIT_SWITCH): Define, not visible yet.
8831         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8832
8833         2000-01-04  Joel Sherrill (joel@OARcorp.com>
8834
8835         * config/rs6000/rtems.h: Include config/rtems.h.
8836
8837         2000-01-04  David Edelsohn  <edelsohn@gnu.org>
8838
8839         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8840         (SLOW_UNALIGNED_ACCESS): Define.
8841         (CASE_VECTOR_MODE): Always use 32-bit offsets.
8842         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8843         (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8844         (toc_section): Likewise and .toc pseudo-op.
8845         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
8846         64-bit mode.
8847         (TEXT_SECTION_ASM_OP): Likewise.
8848         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8849         32-bit offsets.
8850
8851         1999-12-17  Jakub Jelinek  <jakub@redhat.com>
8852
8853         * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8854         UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8855         compiling libgcc2.
8856
8857         2000-01-06  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8858
8859         * rs6000.h: Move more stuff from here...
8860         * aix.h: to here.
8861         * sysv4.h: Cleanup accordingly.
8862         * netware.h: Likewise
8863
8864         2000-01-05  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8865
8866         * rs6000.h: Continue cleanup.
8867         * aix.h: Likewise.
8868         * lynx.h: Likewise.
8869         * netware.h: Likewise.
8870         * sol2.h: Likewise.
8871         * sysv4.h: Likewise.
8872         * win-nt.h: Likewise.
8873
8874         * rs6000.h (TARGET_SWITCHES): Add descriptions.
8875         (TARGET_OPTIONS): Likewise.
8876
8877         * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8878         (SUBTARGET_OPTIONS): Likewise.
8879
8880         * rs6000.md: Fix compile time warnings.
8881
8882         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8883
8884         vxworks patches from the Cygnus tree originally by
8885         Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8886         <vmakarov@cygnus.com>.
8887         * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8888         (ENDFILE_SPEC): Likewise.
8889         (LIB_VXWORKS_SPEC): New macro.
8890         (STARTFILE_VXWORKS_SPEC): New macro.
8891         (ENDFILE_VXWORKS_SPEC): New macro.
8892         (LINK_START_VXWORKS_SPEC): New macro.
8893         (LINK_OS_VXWORKS_SPEC): New macro.
8894         (CPP_OS_VXWORKS_SPEC): New macro.
8895         (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8896         * vxppc.h: Rewrite to use proper configuration method.
8897         * vxppcle.h: New file.
8898         * ../../configure.in: Add powerpcle-wrs-vxworks*.
8899         * ../../configure: Rebuilt.
8900
8901         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8902
8903         Lots of changes to rs6000.h, sysv4.h, aix.h,
8904         aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8905         with the aim that rs6000.h is the first header
8906         included and the others override it.
8907         * aix.h: New file.
8908
8909         * x-aix41-gld: Remove.
8910         * x-aix43: Remove.
8911         * x-aix41: Remove target-specific switches, and don't specify
8912         -Wl,-bbigtoc as we don't need it any more.
8913         * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8914         Use t-aix43 for AIX 4.3 and above.
8915         * ../../configure: Regenerated.
8916
8917         * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8918         options, that don't do anything yet.
8919         (MASK_SCHED_PROLOG): New macro.
8920         (MASK_SCHED_EPILOG): New macro.
8921         (TARGET_SCHED_PROLOG): New macro.
8922         (TARGET_SCHED_EPILOG): New macro.
8923
8924         2000-01-04  Geoff Keating  <geoffk@cygnus.com>
8925
8926         * rs6000.c: Correct comment, the `minimal' TOCs are actually
8927         one per translation unit, not one per function.
8928         (output_toc): Also do duplicate constant elimination
8929         for per-translation-unit TOCs.
8930
8931         * rs6000.md (nonlocal_goto_receiver): Put it back as before.  Add
8932         a comment explaining _exactly_ when this pattern gets used.
8933         (builtin_setjmp_receiver): New pattern for better clarity.
8934         (init_v4_pic): Move it into a section dealing with TOC registers.
8935
8936         1999-12-30  Geoff Keating  <geoffk@cygnus.com>
8937
8938         * rs6000.c (toc_hash_table): New variable.
8939         (rs6000_hash_constant): New function.
8940         (toc_hash_function): New function.
8941         (toc_hash_eq): New function.
8942         (toc_hash_mark_entry): New function.
8943         (toc_hash_mark_table): New function.
8944         (output_toc): Don't output duplicate TOC entries in
8945         a single file.
8946         (rs6000_add_gc_roots): Add the hash table as a GC root.
8947         * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8948         where they clearly shouldn't be.  This may need to be fixed
8949         later when there is a GNU ar for AIX.
8950         * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8951         Don't define BOOT_LDFLAGS as it is now not necessary.
8952
8953         1999-12-29  Geoff Keating  <geoffk@cygnus.com>
8954
8955         * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8956         for va_list on AIX.  Use unsigned_char_type_node rather than
8957         constructing our own version on svr4.
8958
8959         1999-12-17  Geoff Keating  <geoffk@cygnus.com>
8960
8961         * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8962         since patently it's not.
8963
8964         1999-12-08  Geoff Keating  <geoffk@cygnus.com>
8965
8966         * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8967         define_expand/define_insn pair, and handle restore of the
8968         SVR4 -fpic register.
8969
8970 Wed Mar 15 15:43:38 2000  Jeffrey A Law  (law@cygnus.com)
8971
8972         * acconfig.h (HAVE_GAS_WEAK): New define.
8973         * configure.in (assembler weak support): Check for .weak support.
8974         * config.in, configure: Rebuilt.
8975         * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8976         HAVE_GAS_WEAK is defined.
8977
8978 2000-03-15  Nick Clifton  <nickc@cygnus.com>
8979
8980         * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8981         asm_fprintf().
8982
8983 2000-03-15  Zack Weinberg  <zack@wolery.cumb.org>
8984
8985         * cppfiles.c (open_include_file): New function.
8986         (find_include_file, cpp_read_file): Use it.
8987
8988 2000-03-15  Jason Merrill  <jason@casey.cygnus.com>
8989
8990         * cpphash.c (dump_hash_helper): Take the slot, not the element.
8991
8992 Wed Mar 15 14:28:54 2000  Jason Eckhardt  <jle@cygnus.com>
8993
8994         * flow.c (verify_flow_info): Check for unconditional return.
8995
8996 Wed Mar 15 11:34:27 2000  Jim Wilson  <wilson@cygnus.com>
8997
8998         * config/ia64/ia64.md (restore_stack_nonlocal): New.
8999         * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
9000         (__ia64_restore_stack_nonlocal): New.
9001         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
9002
9003 2000-03-15  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9004
9005         * cpphash.c (collect_formal_parameters): Do not complain about
9006         parameter names that just start with `__VA_ARGS__'.
9007
9008 Wed Mar 15 13:26:58 MET 2000  Jan Hubicka  <jh@suse.cz>
9009
9010         * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
9011         movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
9012         * i386.c (pentiumpro_cost): Set mul cost to 4.
9013         (x86_use_movx): Set for PPro.
9014
9015 Wed Mar 15 13:07:05 MET 2000  Jan Hubicka  <jh@suse.cz>
9016
9017         * i386.md (ix86_compute_frame_size): stack_alignment_needed is
9018         STACK_BOUNDARY for empty frames now.
9019
9020 2000-03-14  Mark Mitchell  <mark@codesourcery.com>
9021
9022         * stor-layout.c (layout_union): Remove.
9023         (layout_union_field): New function, split out from layout_union.
9024         (finish_union_layout): Likewise.
9025         (layout_field): Handle unions by calling layout_union_field.
9026         (finish_record_layout): Handle unions.
9027         (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
9028         QUAL_UNION_TYPE handling.
9029
9030 Wed Feb 23 13:00:06 CET 2000  Jan Hubicka  <jh@suse.cz>
9031
9032         * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
9033         end of basic block is jump_insn, not barrier; use create_basic_block
9034         instead of creating basic block by hand.
9035
9036 2000-03-14  Jason Eckhardt  <jle@cygnus.com>
9037
9038         * flow.c (reorder_basic_blocks): Account for barriers when writing
9039         over NEXT_INSN (last_bb->end).
9040         (verify_flow_info): Add check for missing barriers.
9041
9042 2000-03-14  Greg McGary  <gkm@gnu.org>
9043
9044         * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
9045         * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
9046         * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
9047         __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
9048         __unbounded, __unbounded__): New keywords.
9049         * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
9050         * c-parse.y, c-parse.c, c-parse.h: Regenerate.
9051         * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
9052
9053 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
9054
9055         * cselib.h: New file.
9056         * alias.c: Include "cselib.h".
9057         (fixed_scalar_and_varying_struct_p): Accept the addresses of the
9058         MEMs as two new arguments.
9059         (get_addr): New static function.
9060         (find_base_term): Handle VALUEs.
9061         (memrefs_conflict_p): Likewise.
9062         (true_dependence): Call get_addr on the addresses.
9063         Call fixed_scalar_and_varying_struct_p with addresses that have been
9064         passed through get_addr and canon_rtx.
9065         (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
9066         with true_dependence.
9067         Call get_addr on the addresses; don't call canon_rtx on the MEMs.
9068         * loop.c: Include "cselib.h".
9069         (load_mems): Process extended basic block that enters the loop with
9070         cselib.  Use that information to change initialization of the shadow
9071         register so that a constant equivalence is seen by later passes.
9072         * reload1.c: Include "cselib.h".
9073         (reload_cse_invalidate_regno): Delete function.
9074         (reload_cse_mem_conflict_p): Likewise.
9075         (reload_cse_invalidate_mem): Likewise.
9076         (reload_cse_invalidate_rtx): Likewise.
9077         (reload_cse_regno_equal_p): Likewise.
9078         (reload_cse_check_clobber): Likewise.
9079         (reload_cse_record_set): Likewise.
9080         (reg_values): Delete static variable.
9081         (invalidate_regno_rtx): Likewise.
9082         (reload_cse_delete_noop_set): New static function.
9083         (reload_cse_simplify): New static function, broken out of
9084         reload_cse_regs_1.
9085         (reload_cse_noop_set_p): Delete unused argument INSN.
9086         Just call rtx_equal_for_cselib_p on set source and destination.
9087         (reload_cse_regs_1): Break out some code into reload_cse_simplify and
9088         reload_cse_delete_noop_set.  Delete code to keep track of values; use
9089         cselib functions instead.  Delete code to push/pop obstacks.
9090         (reload_cse_simplify_set): Use cselib to find equivalent values.
9091         Delete code to push/pop obstacks.
9092         (reload_cse_simplify_operands): Likewise.
9093         * rtl.def (VALUE): New rtx code.
9094         * rtl.h (union rtunion_def): New elt rt_cselib.
9095         (X0CSELIB, CSELIB_VAL_PTR): New macros.
9096         * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
9097         (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
9098         unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
9099         discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
9100         hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
9101         cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
9102         cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
9103         cselib_record_set, cselib_record_sets): New static functions.
9104         (cselib_lookup, cselib_update_varray_sizes, cselib_init,
9105         cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
9106         references_value_p): New functions.
9107         (MAX_USELESS_VALUES, REG_VALUES): New macros.
9108         (table, cselib_current_insn, next_unknown_value, cselib_nregs,
9109         n_useless_values, reg_values, callmem, cselib_obstack,
9110         cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
9111         New static variables.
9112         * varray.h (union varray_data_tag): New elt te.
9113         (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
9114         * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
9115         dependencies.
9116
9117 2000-03-14  Nick Clifton  <nickc@cygnus.com>
9118
9119         * gcc.c (do_spec_1): Catch the case where %* is used in a
9120         substitution pattern, but it has not been initialised.
9121         Issue a meaningful error message if an unrecognised operator
9122         is encountered in a spec string.
9123
9124 2000-03-14  Richard Earnshaw <rearnsha@arm.com>
9125
9126         * function.c (prepare_function_start): Correctly initialize
9127         cfun->stack_alignment_needed.
9128
9129 2000-03-14  Zack Weinberg  <zack@wolery.cumb.org>
9130
9131         * cppfiles.c (find_include_file): Don't assume nshort is a
9132         substring of name.
9133
9134 Tue Mar 14 08:42:21 2000  Jeffrey A Law  (law@cygnus.com)
9135
9136         * configure.in (hppa configurations): Add pa32-regs.h to the
9137         list of tm files as appropriate.
9138         * configure: Rebuilt.
9139         * pa.c (compute_frame_size): Remove explicit knowledge about FP
9140         register numbering.
9141         (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
9142         (fmpyaddoperands, fmpysuboperands): Likewise.
9143         * pa.h: Remove various definitions which depend on knowing
9144         how registers are numbered.
9145         * pa32-regs.h: New file with PA32 register numbering specific
9146         definitions.
9147
9148 2000-03-14  Richard Henderson  <rth@cygnus.com>
9149
9150         * regmove.c (combine_stack_adjustments): New.
9151         (stack_memref_p, single_set_for_csa): New.
9152         (free_csa_memlist, record_one_stack_memref): New.
9153         (try_apply_stack_adjustment): New.
9154         (combine_stack_adjustments_for_block): New.
9155         * rtl.h (combine_stack_adjustments): Declare.
9156         * toplev.c (rest_of_compilation): Call it.
9157
9158         * i386.md: Revert 2000-01-16 change.
9159
9160 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9161
9162         * gccbug.in: Add web category, gcc specific classes.
9163
9164 2000-03-14  Nathan Sidwell  <nathan@codesourcery.com>
9165
9166         * stor-layout.c (finalize_record_size): Fix typo.
9167
9168 2000-03-14  Stan Shebs  <shebs@apple.com>
9169
9170         * c-typeck.c (c_alignof): Error on incomplete types.
9171         * extend.texi (Alignment): Document this.
9172
9173 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
9174
9175         * cppfiles.c: Include mkdeps.h.
9176         (find_include_file, read_include_file): Remove _cpp_ prefix
9177         from name, make static.
9178         (_cpp_execute_include): New function, broken out of
9179         do_include.
9180
9181         * cpplib.c: Don't include mkdeps.h.
9182         (struct directive): Remove type field. Reorder entries.  The
9183         function takes only one argument.
9184         (struct if_stack): Make type field an int.
9185         (directive_table): Rename to dtable.  Generate it, the
9186         prototypes of the directive handlers, and the enum for the
9187         directive numbers, from a template macro.
9188         (do_ifndef, do_include_next, do_import): New functions.
9189         (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
9190         do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
9191         do_ident, do_assert, do_unassert, do_sccs): Take only one
9192         argument.
9193         (do_sccs): Define always, but alter behavior based on
9194         SCCS_DIRECTIVE.
9195         (_cpp_handle_directive, consider_directive_while_skipping):
9196         Restructure for new directive table layout.
9197
9198         (pass_thru_directive): Take a directive number, not a pointer
9199         to a struct directive.
9200         (parse_include): New function, broken out of do_include.
9201         (do_include, do_import, do_include_next): Use parse_include
9202         and _cpp_execute_include.
9203         (do_elif, do_else): Test for T_ELSE specifically when checking
9204         for #elif/#else after #else.
9205         (parse_ifdef): New function, broken out of do_ifdef.
9206         (validate_else): Expect a name arg without a leading #.
9207         (if_directive_name): Delete.
9208         (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
9209         directive handlers with only one argument.
9210
9211         * cpphash.h: Update prototypes.
9212         (enum node_type): Remove entries for directives.
9213         * Makefile.in: Update dependencies.
9214
9215         * cpphash.c (dump_hash_helper): Only dump nodes of type
9216         T_MACRO.  Emit a newline after each definition.
9217
9218 2000-03-14  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
9219
9220         * gccbug.in: New file.
9221         * configure.in (all_outputs): Add gccbug.
9222         * Makefile.in (install-common): Install gccbug.
9223         (GCCBUG_INSTALL_NAME): New variable.
9224         * configure: Rebuilt.
9225
9226 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
9227
9228         * function.c (put_var_into_stack): Use type_for_mode to calculate
9229         part_type.  Use MEM_SET_IN_STRUCT_P.
9230         * expr.c (store_field): Handle CONCAT.
9231         (store_constructor): Use fields_length.
9232         * tree.c (fields_length): New fn.
9233         * tree.h: Declare it.
9234
9235 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
9236
9237         * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
9238         (cpplex.o): New target.
9239         * po/POTFILES.in: Add cpplex.c.
9240
9241         * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
9242         cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
9243         cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
9244         skip_block_comment, skip_line_comment, skip_comment,
9245         copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
9246         _cpp_parse_name, skip_string, parse_string,
9247         _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
9248         _cpp_get_directive_token, find_position,
9249         _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
9250         (maybe_macroexpand, _cpp_lex_token): New functions.
9251
9252         * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
9253         parse_goto_mark): Delete.
9254         (_cpp_handle_eof): New function.
9255         (_cpp_handle_directive): Rename from handle_directive.
9256         (_cpp_output_line_command): Rename from output_line_command.
9257         (do_if, do_elif): Call _cpp_parse_expr directly.
9258         * cppfiles.c (_cpp_read_include_file): Don't call
9259         init_input_buffer here.
9260         * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
9261         * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
9262         here; pop the token_buffer and skip the rest of the line here.
9263         * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
9264         here.
9265
9266         * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
9267         Define here.
9268         (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
9269         CPP_GOTO_MARK): New macros.
9270         (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
9271         _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
9272         _cpp_read_and_prescan, _cpp_init_input_buffer,
9273         _cpp_grow_token_buffer, _cpp_get_directive_token,
9274         _cpp_handle_directive, _cpp_handle_eof,
9275         _cpp_output_line_command): Prototype them here.
9276         * cpplib.h (enum cpp_token): Add CPP_MACRO.
9277         (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
9278         quote_string, output_line_command): Remove.
9279
9280 2000-03-13  Bernd Schmidt  <bernds@cygnus.co.uk>
9281
9282         * stmt.c (expand_end_case): RANGE may be signed, and when checking
9283         whether it is too large we must also verify that it isn't negative.
9284
9285 2000-03-13  Jakub Jelinek  <jakub@redhat.com>
9286
9287         * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
9288         (movsi_zero_liveg0): Remove.
9289         (movsf_insn_novis_liveg0): Remove.
9290         (negsi2): Remove.
9291         (negsi2_not_liveg0): Rename to negsi2.
9292         (one_cmplsi2): Remove.
9293         (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
9294         (one_cmplsi2_liveg0): Remove.
9295         * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
9296         MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
9297         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
9298         (PREDICATE_CODES): Remove zero_operand.
9299         * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
9300         TARGET_BROKEN_SAVERESTORE.
9301         (zero_operand): Remove.
9302         * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
9303         -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
9304         options.
9305         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9306         * config/sparc/linux-aout.h (TARGET_LIVE_G0,
9307         TARGET_BROKEN_SAVERESTORE): Remove.
9308         * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9309         Remove.
9310         * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9311         Remove.
9312         * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9313         Remove.
9314
9315         * config/sparc/sparc.md (return_df_no_fpu): New pattern.
9316
9317 2000-03-13  Zack Weinberg  <zack@wolery.cumb.org>
9318
9319         * cpplib.c (do_pragma_implementation): Fix off-by-one error
9320         truncating a string.  Don't assume tokens are nul terminated.
9321         Problem noted by Andreas Jaeger <aj@suse.de>
9322
9323 2000-03-13  Jason Merrill  <jason@casey.cygnus.com>
9324
9325         * dwarf2out.c (add_name_and_src_coords_attributes): Only add
9326         DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
9327         (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
9328
9329 2000-03-13  Richard Earnshaw <rearnsha@arm.com>
9330
9331         * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
9332         STRUCTURE_SIZE_BOUNDARY.
9333
9334 2000-03-13  Mark Mitchell  <mark@codesourcery.com>
9335
9336         * tree.h (record_layout_info_s): New structure.
9337         (record_layout_info): New type.
9338         (new_record_layout_info): New function.
9339         (layout_field): Likewise.
9340         (finish_record_layout): Likewise.
9341         * stor-layout.c (layout_record): Remove.
9342         (new_record_layout_info): New function.
9343         (layout_field): New function, broken out from layout_record.
9344         (finalize_record_size): Likewise.
9345         (compute_record_mode): Likewise.
9346         (finalize_type_size): New function, broken out from layout_type.
9347         (finish_record_layout): Likewise.
9348         (layout_type): Use them.
9349
9350 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
9351
9352         * cpphash.c: Don't include version.h.
9353         (special_symbol) [case T_VERSION]: Look for the string in
9354         hp->value.cpval; don't use version_string.
9355         * cppinit.c (initialize_builtins): Set hp->value.cpval for
9356         __VERSION__ to version_string.
9357         * Makefile.in (cpphash.o): Update deps.
9358
9359 2000-03-12  Zack Weinberg  <zack@wolery.cumb.org>
9360
9361         Convert cpplib to use libiberty/hashtab.c.
9362
9363         * cpplib.h (struct cpp_reader): Make hashtab and
9364         all_include_files of type 'struct htab *'.  Delete HASHSIZE
9365         and ALL_INCLUDE_HASHSIZE macros.
9366
9367         * cpphash.h: Update prototypes.
9368         (struct hashnode): Remove next, prev, and bucket_hdr members.
9369         Make length a size_t.  Add hash member.
9370         (struct ihash): Remove next member.  Add hash member.  Make
9371         name a flexible array member.
9372
9373         * cppfiles.c: Include hashtab.h.
9374         (include_hash): Delete.
9375         (IHASHSIZE): New macro.
9376         (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
9377         (cpp_included): Do the hash lookup here.
9378         (_cpp_find_include_file): Rewrite.
9379         (cpp_read_file): Put the "fake" hash entry into the hash
9380         table.  Honor the control_macro, if it turns out we've seen
9381         the file before.  Don't push the buffer here.
9382         (_cpp_read_include_file): Push the buffer here.
9383         (OMODES): New macro.  Use it whenever we call open(2).
9384
9385         * cpphash.c: Include hashtab.h.
9386         (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
9387         _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
9388         _cpp_lookup_slot): New functions.
9389         (HASHSIZE): new macro.
9390         (hashf, _cpp_install, _cpp_delete_macro): Delete.
9391         (_cpp_lookup): Use hashtab.h routines.
9392
9393         * cppinit.c: Include hashtab.h.
9394         (cpp_reader_init): Call _cpp_init_macro_hash and
9395         _cpp_init_include_hash.  Don't allocate hashtab directly.
9396         (cpp_cleanup): Just call htab_delete on pfile->hashtab and
9397         pfile->all_include_files.
9398         (initialize_builtins): Use _cpp_make_hashnode and
9399         htab_find_slot to add hash entries.
9400         (cpp_finish): Just call _cpp_dump_macro_hash.
9401         * cpplib.c: Include hashtab.h.
9402         (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
9403         create hash entries.
9404         (do_pragma_poison, do_assert): Likewise.
9405         (do_include): Don't push the buffer here.  Don't increment
9406         system_include_depth unless _cpp_read_include_file succeeds.
9407         (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
9408         or htab_remove_elt.
9409         (do_pragma_implementation): Use alloca to create copy.
9410
9411         * Makefile.in: Update dependencies.
9412
9413 2000-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9414
9415         * cppinit.c (cl_directive_handler): More K&R fixing.
9416
9417 Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
9418
9419         * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
9420         STACK_BOUNDARY.
9421         * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
9422
9423 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9424
9425         * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
9426         Change from char[] to macros.
9427
9428 2000-03-12  Neil Booth  <NeilB@earthling.net>
9429
9430         * cppinit.c (cpp_start_read): Update indirect function
9431         call to K&R C.
9432
9433 Sat Mar 11 16:18:12 2000  Jim Wilson  <wilson@cygnus.com>
9434
9435         * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
9436         entry.
9437
9438         * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9439         config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
9440
9441 2000-03-11  Neil Booth  <NeilB@earthling.net>
9442
9443         * cppinit.c (struct pending option): Replace undef with a
9444         pointer to a directive handling routine.
9445         (struct cpp_pending): Replace separate assert_ and define_
9446         lists with one directive_ list.
9447         (new_pending_define): Rename new_pending_directive. Extra
9448         argument is the directive's handling routine.
9449         (handle_option): Update to use new_pending_directive.
9450
9451 2000-03-11  Neil Booth  <NeilB@earthling.net>
9452
9453         * cppfiles.c (file_cleanup, _cpp_find_include_file,
9454         remap_filename, _cpp_read_include_file, actual_directory,
9455         hack_vms_include_specification): Replace bcopy(), index() etc
9456         calls.  Add casts to some allocations.  Make some variables
9457         pointers to const [unsigned] char.
9458         * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
9459         collect_formal_parameters): Similarly.
9460         * cppinit.c (struct pending_option, append_include_chain,
9461         cpp_options_init, cpp_reader_init, initialize_standard_includes,
9462         cpp_start_read, new_pending_define, handle_option): Similarly.
9463         * cpplib.c (cpp_define, copy_comment, do_define, do_include,
9464         do_undef, do_error, do_warning, do_pragma, do_pragma_once,
9465         do_pragma_implementation, detect_if_not_defined,
9466         do_ifdef, skip_if_group, cpp_get_token, parse_string,
9467         do_assert, do_unassert): Similarly.
9468         * cpplib.h (cpp_buffer, cpp_options): Update types.  Update
9469         function prototypes.
9470         * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
9471
9472 2000-03-10  Richard Henderson  <rth@cygnus.com>
9473
9474         * builtins.c (expand_builtin_strlen): Revert last change.
9475         Use emit_insn_before if we're at the beginning of a sequence.
9476
9477 2000-03-10  Jason Merrill  <jason@casey.cygnus.com>
9478
9479         * builtins.c (expand_builtin_strlen): Make sure that we have something
9480         at the beginning of the sequence.
9481
9482         * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
9483         deferred inlines.
9484
9485         * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
9486
9487 2000-03-10  Richard Henderson  <rth@cygnus.com>
9488
9489         * except.c (can_throw): Use INTVAL on a CONST_INT.
9490         (reachable_handlers): Likewise.
9491         * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
9492
9493 2000-03-10  Andreas Jaeger  <aj@suse.de>
9494
9495         * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9496         MD_STARTFILE_PREFIX since those are not needed on linux.
9497         (ASM_FILE_START): New, from mips/gnu.h.
9498
9499 2000-03-09  Richard Henderson  <rth@cygnus.com>
9500             Alex Samuel  <samuel@codesourcery.com> and others
9501
9502         * Makefile.in (ssa.o): New rule.
9503         (OBJS): Add ssa.o.
9504         (STAGESTUFF): Add *.ssa and *.ussa.
9505         (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9506         * rtl.def (PHI): New RTL expression.
9507         * rtl.h (clear_log_links): New declaration.
9508         (convert_to_ssa): Likewise.
9509         (convert_from_ssa): Likewise.
9510         * flow.c (split_edge): If the entry node falls through to the
9511         split edge's source block, split the entry edge.
9512         (clear_log_links): New function.
9513         * toplev.c (ssa_dump): New variable.
9514         (flag_ssa): Likewise.
9515         (f_options): Add "ssa".
9516         (compile_file): Create SSA dump files.
9517         (rest_of_compilation): Go to and from SSA if enabled.
9518         (decide_d_option): Handle -de for SSA dump files.
9519         * ssa.c: New file.
9520
9521 Thu Mar  9 20:01:38 2000  Jim Wilson  <wilson@cygnus.com>
9522
9523         * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9524         same as VAR_DECL.
9525
9526 2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
9527
9528         * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9529
9530 Thu Mar  9 18:10:02 2000  Jeffrey A Law  (law@cygnus.com)
9531
9532         * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9533         (MD_STARTFILE_PREFIX_1): New macro.
9534
9535 2000-03-09  Robert Lipe  <robertl@sco.com>
9536
9537         * config/ia64/ia64.c: Include system.h.
9538
9539 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
9540
9541         * except.c (nothrow_function_p): If -fno-exceptions, just return.
9542         (init_eh_nesting_info): Likewise.
9543
9544         * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9545         (TREE_NOTHROW): Rename from TREE_RAISES.
9546         * toplev.c (rest_of_compilation): Set it.
9547         * print-tree.c (print_node): Adjust.
9548         * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9549         (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9550         * calls.c (emit_call_1): Add 'nothrow' parm.  Add
9551         REG_EH_REGION note as appropriate.
9552         (libfunc_nothrow): New fn.
9553         (emit_library_call, emit_library_call_value): Use it.
9554         (expand_call): Check TREE_NOTHROW.
9555
9556         * varasm.c (make_decl_rtl): Skip initial '*' when setting
9557         DECL_ASSEMBLER_NAME.
9558
9559 2000-03-09  Andreas Jaeger  <aj@suse.de>
9560
9561         * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9562         (TARGET_MEM_FUNCTIONS): Define.
9563
9564 2000-03-09  Jason Merrill  <jason@casey.cygnus.com>
9565
9566         * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9567
9568         * except.c (can_throw): See through a SEQUENCE.
9569         (nothrow_function_p): New fn.
9570         * except.h: Declare it.
9571         * function.c (current_function_nothrow): New var.
9572         (prepare_function_start): Initialize it.
9573         * output.h: Declare it.
9574         * toplev.c (rest_of_compilation): Set it.
9575         * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9576
9577 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
9578
9579         * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9580         match.  (cpp_compare_defs): Count the nul separator when
9581         advancing over argument names.
9582
9583 2000-03-09  Bernd Schmidt  <bernds@cygnus.co.uk>
9584
9585         * recog.c (preprocess_constraints): Matching constraints affect
9586         same alternative/different operand, not same operand/different
9587         alternative.
9588
9589         * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9590         register and a constant specially.
9591
9592 2000-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9593
9594         * libgcc2.h: New file.
9595         * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9596
9597 Wed Mar  8 16:19:42 2000  Jim Wilson  <wilson@cygnus.com>
9598
9599         * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9600         * configure: Regenerate.
9601         * config/ia64: New.
9602
9603 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
9604
9605         * Makefile.in (LIBCPP_DEPS): New macro.
9606         (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9607         it to declare deps.
9608         * cpperror.c: Include cpphash.h.
9609         * cppexp.c: Include cpphash.h.  Remove MULTIBYTE_CHARS
9610         dingleberry.
9611         (lex): Don't use CPP_WARN_UNDEF.
9612         (_cpp_parse_expr): Return an int, the truth value.
9613         * cppfiles.c: Include cpphash.h.
9614         (_cpp_merge_include_chains): Move to cppinit.c and make static.
9615         * cppinit.c (include_defaults_array): Disentangle.
9616         (cpp_cleanup): Don't free the if stack here.
9617         (cpp_finish): Pop off all buffers, not just one.
9618         * cpplib.c (eval_if_expr): Return int.
9619         (do_xifdef): Rename do_ifdef.
9620         (handle_directive): Don't use CPP_PREPROCESSED.
9621         (cpp_get_token): Don't use CPP_C89.
9622         * fix-header.c: Don't use CPP_OPTIONS.
9623
9624         * cpplib.h: Move U_CHAR, enum node_type, struct
9625         file_name_list, struct ihash, is_idchar, is_idstart,
9626         is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9627         CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9628         CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9629         CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9630         CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9631         of _cpp_simplify_pathname, _cpp_find_include_file,
9632         _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9633         Move struct if_stack to cpplib.c.  Move struct cpp_pending to
9634         cppinit.c.
9635         Change all uses of U_CHAR to be unsigned char instead.
9636         Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9637
9638 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
9639
9640         * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9641         (dwarf2out_begin_prologue): Set it.
9642         (output_call_frame_info): Don't emit EH unwind info for leaves.
9643
9644         * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9645         can occur outside of an EH region.
9646         * except.c: Correct comments about rethrow behavior.
9647         (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9648
9649 2000-03-08  Andrew MacLeod  <amacleod@cygnus.com>
9650
9651         * flow.c (make_edges): Always call make_eh_edge for calls.
9652
9653 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
9654
9655         * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9656         (struct cpp_buffer): Remove fname and underflow fields.
9657         (struct cpp_reader): Remove get_token field.
9658         (struct include_hash): Rename to struct ihash.  Add typedef to
9659         IHASH.
9660         (struct if_stack): Remove fname field.
9661         (IF_STACK_FRAME): Rename to IF_STACK.
9662
9663         * cpperror.c (print_containing_files): Trust that there are no
9664         macro buffers below the top file buffer.
9665         * cppfiles.c: Replace all references to 'struct include_hash'
9666         with 'IHASH'.  Rename initialize_input_buffer to
9667         init_input_buffer.  Don't set or reference cpp_buffer->fname,
9668         use buffer->ihash->name instead.
9669         * cpphash.c (special_symbol): Use cpp_file_buffer.  Use NULL
9670         not CPP_NULL_BUFFER.
9671         * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9672         IF_STACK_FRAME, IHASH not struct include_hash.
9673         * cpplib.c: Rename eval_if_expression to eval_if_expr.  Remove
9674         null_underflow.  Use IF_STACK not IF_STACK_FRAME, IHASH not
9675         struct include_hash, NULL not CPP_NULL_BUFFER.  Remove all
9676         references to cpp_buffer->fname (delete entirely, or use
9677         ->ihash->name instead) and IF_STACK->fname.
9678         (cpp_push_buffer): Don't set new->underflow.
9679         (do_include): Use cpp_file_buffer.
9680
9681         * cpphash.c (collect_formal_parameters): Remove duplicate
9682         increment of argslen.  Pedwarn in C99 mode if __VA_ARGS__ is
9683         used as a macro argument name.  Don't append "..." to namebuf
9684         for varargs macros.  After we're done scanning, go through
9685         namebuf and make it NUL separated, not comma separated.
9686         (_cpp_compare_defs): Remove register tag from variables.
9687         Expect defn->argnames to be NUL separated.
9688         (_cpp_dump_definition): Expect defn->argnames to be NUL
9689         separated and in forward order.
9690         * cpphash.h: Update documentation of argnames field.
9691
9692 2000-03-08  Richard Henderson  <rth@cygnus.com>
9693
9694         * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9695         to fail.  Don't pre-expand the source operand.
9696
9697         * i386.md (strlensi): Initialize eoschar and align before use.
9698
9699 2000-03-08  Jason Merrill  <jason@casey.cygnus.com>
9700
9701         * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9702         CONSTRUCTOR element.
9703
9704 2000-03-08  Gavin Romig-Koch  <gavin@cetus.cygnus.com>
9705
9706         * mips.c (mips_expand_prologue): If the last
9707         named argument is the vararg marker "va_list", treat it as
9708         an unnamed argument.
9709
9710 2000-03-08  Clinton Popetz  <cpopetz@cygnus.com>
9711
9712         * dbxout.c (dbxout_parms): When correcting for promoted
9713         big-endian parameters, use the mode of the DECL_RTL rather
9714         than UNITS_PER_WORD.
9715
9716 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
9717
9718         * c-common.h (make_fname_decl): Declare.
9719         * c-common.c (make_fname_decl): Define.
9720         (declare_hidden_char_array): Remove.
9721         (declare_function_name): Use make_fname_decl.
9722         * c-decl.c (c_make_fname_decl): New function.
9723         (init_decl_processing): Set make_fname_decl.
9724
9725 Tue Mar  7 23:50:31 2000  Jeffrey A Law  (law@cygnus.com)
9726
9727         * cccp.c (handle_directive): Initialize backslash_newlines_p.
9728
9729 2000-03-07  Philipp Thomas  <pthomas@suse.de>
9730
9731         * po/POTFILES.in: Remove cppalloc.c from file list.
9732
9733 2000-03-07  Steve Chamberlain  <sac@pobox.com>
9734
9735         * pj.c (pj_expand_prologue): current_function->args_info is
9736         now current_function_args_info.
9737
9738         * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9739         LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9740         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9741
9742 2000-03-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9743
9744         * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9745         output as hexadecimal rather than the default octal.
9746
9747 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
9748
9749         * cpphash.c (special_symbol): Fix thinko in previous commit.
9750
9751 2000-03-07  Neil Booth  <NeilB@earthling.net>
9752
9753         * cppexp.c (struct operation, left_shift, right_shift,
9754         cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9755         "int"s to "unsigned int"s.
9756         * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9757         Similarly.
9758         * cpplib.h: Update for above.
9759         * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9760         returned from allocations.
9761
9762         * cppinit.c (opt_comp, parse_options): New functions.
9763         (handle_option): Use parse_option to parse a single command
9764         line option, that possibly takes an argument.
9765         (cpp_handle_options): Sort the array of command line options on
9766         first invocation (non-ASCII hosts only).
9767         (print_help): Update.
9768
9769 2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>
9770
9771         * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9772         backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.
9773
9774         * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9775         initialized.
9776         * cppinit.c (cpp_cleanup): Free imp->nshort also.
9777
9778         * cpperror.c (cpp_print_containing_files,
9779         cpp_print_file_and_line, v_cpp_message): Rename to
9780         print_containing_files, print_file_and_line, and v_message.
9781         * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9782         to _cpp_parse_expr, parse_escape, and lex.
9783         (parse_charconst): Remove broken multibyte support.
9784         * cppfiles.c (include_hash): Make static.
9785         (cpp_included): New function.
9786         (merge_include_chains, find_include_file, finclude,
9787         simplify_pathname): Rename to _cpp_merge_include_chains,
9788         _cpp_find_include_file, _cpp_read_include_file, and
9789         _cpp_simplify_pathname.
9790         * cpphash.c (cpp_lookup, free_definition, delete_macro,
9791         cpp_install, create_definition, macroexpand, compare_defs,
9792         dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9793         _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9794         _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9795         * cppinit.c (cpp_handle_option): Rename to handle_option, make
9796         static.
9797         * cpplib.c: Remove extern prototype of cpp_parse_expr.
9798
9799         * cpphash.h: Update prototypes.
9800         * cpplib.h: Likewise.  Prototype _cpp_parse_expr here.
9801
9802 2000-03-07  Andrew Haley  <aph@cygnus.com>
9803
9804         * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9805         PTRDIFF_TYPE should be based solely on Pmode.
9806         (SIZE_TYPE): ditto.
9807
9808 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9809
9810         * rtl.h (rtunion_def): Constify member `rtstr'.
9811         (emit_line_note_after, emit_line_note, emit_line_note_force,
9812         emit_note, decode_asm_operands): Constify.
9813
9814         * cse.c (canon_hash): Likewise.
9815
9816         * dbxout.c (dbxout_block): Likewise.
9817
9818         * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9819         v_warning_for_asm): Likewise.
9820
9821         * dwarfout.c (function_start_label): Likewise.
9822
9823         * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9824         emit_line_note_force): Likewise.
9825
9826         * final.c (last_filename, asm_insn_count, final_scan_insn,
9827         output_source_line): Likewise.
9828
9829         * function.h (struct emit_status): Likewise.
9830
9831         * gcse.c (hash_expr_1): Likewise.
9832
9833         * genattr.c (gen_attr, main): Likewise.
9834
9835         * genattrtab.c (struct function_unit, current_alternative_string,
9836         write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9837         attr_numeral, check_attr_test, check_attr_value,
9838         convert_set_attr_alternative, convert_set_attr,
9839         compute_alternative_mask, simplify_by_exploding, gen_attr,
9840         gen_unit): Likewise.
9841
9842         * genflags.c (gen_insn): Likewise.
9843
9844         * gengenrtl.c (type_from_format): Likewise.
9845
9846         * genopinit.c (gen_insn): Likewise.
9847
9848         * genoutput.c (n_occurrences, process_template, process_template):
9849         Likewise.
9850
9851         * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9852         Likewise.
9853
9854         * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9855         Likewise.
9856
9857         * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9858         ggc_set_mark, ggc_get_size): Likewise.
9859
9860         * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9861
9862         * optabs.c (init_one_libfunc): Likewise.
9863
9864         * output.h (assemble_start_function): Likewise.
9865
9866         * recog.c (decode_asm_operands): Likewise.
9867
9868         * toplev.c (rest_of_compilation): Likewise.
9869
9870         * tree.h (emit_line_note_after, emit_line_note,
9871         emit_line_note_force): Likewise.
9872
9873         * varasm.c (asm_output_bss, asm_output_aligned_bss,
9874         asm_emit_uninitialised, assemble_start_function,
9875         assemble_variable, const_hash, compare_constant_1,
9876         find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9877
9878         * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9879
9880         * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9881
9882         * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9883
9884         * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9885
9886         * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9887         arm_dllimport_name_p): Likewise.
9888
9889         * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9890         Likewise.
9891
9892         * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9893
9894         * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9895
9896         * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9897         arm_mark_dllexport, arm_mark_dllimport,
9898         arm_pe_encode_section_info): Likewise.
9899
9900         * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9901         ASM_FINISH_DECLARE_OBJECT): Likewise.
9902
9903         * arm/thumb.c (thumb_function_prologue): Likewise.
9904
9905         * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9906
9907         * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9908
9909         * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9910
9911         * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9912
9913         * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9914
9915         * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9916
9917         * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9918         ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9919
9920         * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9921
9922         * i386/i386.c (asm_output_function_prefix): Likewise.
9923
9924         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9925
9926         * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9927
9928         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9929
9930         * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9931         ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9932         ASM_OUTPUT_SECTION_NAME): Likewise.
9933
9934         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9935
9936         * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9937
9938         * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9939
9940         * m32r/m32r.c (m32r_encode_section_info): Likewise.
9941
9942         * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9943
9944         * mcore/mcore.c (mcore_encode_section_info): Likewise.
9945
9946         * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9947
9948         * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9949
9950         * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9951
9952         * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9953
9954         * mips/mips.md (movdi, movsi): Likewise.
9955
9956         * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9957
9958         * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9959
9960         * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9961
9962         * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9963         ASM_OUTPUT_ASCII): Likewise.
9964
9965         * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9966         output_mi_thunk, output_toc): Likewise.
9967
9968         * rs6000/rs6000.md (movsi): Likewise.
9969
9970         * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9971
9972         * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9973
9974         * v850/v850.c (print_operand, print_operand_address,
9975         v850_encode_data_area): Likewise.
9976
9977 2000-03-07  Clinton Popetz  <cpopetz@cygnus.com>
9978
9979         * config/mips/mips.md (zero_extendsidi2): Always force operand
9980         one to memory for mips16.
9981
9982 Mon Mar  6 15:22:29 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9983
9984         * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9985         (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9986         (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9987         (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9988         (min_precision): Result is unsigned.
9989         (add_double, neg_double, mul_double): Low word is unsigned.
9990         (lshift_double, rshift_double, lrotate_double): Likewise.
9991         (rrotate_double, div_and_round_double): Likewise.
9992         (tree_floor_log2, compare_tree_int): New functions.
9993         (preserve_rtl_expr_temps): New declaration.
9994         * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9995         (decl_attributes): Use tree_log2 to find alignment.
9996         Check for TREE_INT_CST_HIGH for format args.
9997         (min_precision): Now unsigned.
9998         Use tree_floor_log2.
9999         (truthvalue_conversion): Delete long-disabled code.
10000         * c-decl.c (finish_struct): Clean up tests on field width.
10001         (finish_function): Use compare_tree_int.
10002         * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
10003         * c-typeck.c (comptypes): Use tree_int_cst_equal.
10004         (default_conversion, digest_init): Use compare_tree_int.
10005         (build_binary_op): Use integer_all_onesp and compare_tree_int.
10006         Fix type errors in forming masks.
10007         * calls.c (initialize_argument_information): Use compare_tree_int.
10008         * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
10009         * except.c (expand_eh_region_start_tree): Use compare_tree_int.
10010         * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
10011         (store_field): Use compare_tree_int.
10012         (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
10013         (expand_expr, case ARRAY_REF): Use compare_tree_int.
10014         (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
10015         (do_store_flag): Use compare_tree_int.
10016         * fold-const.c (encode, decode): Low part is always unsigned.
10017         (force_fit_type, add_double, neg_double, mul_double): Likewise.
10018         (lshift_double, rshift_double, lrotate_double): Likewise.
10019         (rrotate_double, div_and_round_double, int_const_binop): Likewise.
10020         (fold_convert): Use compare_tree_int.
10021         (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
10022         (invert_truthvalue, case INTEGER_CST): Likewise.
10023         (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
10024         * mkdeps.c (deps_dummy_targets): Make I unsigned.
10025         * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
10026         (lshift_double, rshift_double, lrotate_double, rrotate_double):
10027         Likewise.
10028         * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
10029         (expand_end_case): Use compare_tree_int.
10030         (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
10031         * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
10032         (layout_decl): Likewise.
10033         (layout_record, layout_union): Make sizes unsigned.
10034         (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
10035         (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
10036         * tree.c (struct type_hash): hashcode is unsigned.
10037         (build_type_attribute_variant, type_hash_list): Likewise.
10038         (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
10039         (attribute_hash_list, build_array_type, build_method_type): Likewise.
10040         (build_complex_type): Likewise.
10041         (real_value_from_int_cst): Remove unneeded casts.
10042         (integer_all_onesp): Add casts.
10043         (tree_floor_log2, compare_tree_int): New functions.
10044         (build_index_type): Use tree_int_cst_sgn.
10045         * varasm.c (assemble_variable): Use compare_tree_int.
10046
10047 2000-03-06  Jason Merrill  <jason@casey.cygnus.com>
10048
10049         * cpphash.c (collect_expansion): Also catch ## at start of macro.
10050
10051         * varasm.c (make_decl_rtl): Don't add a number to members of
10052         local classes.
10053         (make_function_rtl): Likewise.
10054
10055 2000-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10056
10057         * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
10058         patch from 2000-01-28.
10059
10060 2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
10061
10062         * config/sh/sh.c: (barrier_align): Handle a delay slot that is
10063         filled with an insn from the jump target.
10064
10065 2000-03-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10066
10067         * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
10068         (c4x_external_ref): Likewise.
10069         * config/c4x/c4x.c (struct name_list): Likewise.
10070
10071 1999-12-16  Ben Collins  <bcollins@debian.org>
10072
10073         * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
10074         argument to genmultilib.
10075         * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
10076         the contents into the multilib.h header.
10077         * gcc.c: Declare multilib_exclusions for the specs file.
10078         (set_multilib_dir): Use it.
10079         (print_multilib_info): Likewise.
10080         * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
10081         to pass to genmultilib.
10082
10083 2000-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10084
10085         * builtins.c (built_in_class_names, built_in_names): Constify a
10086         char*.
10087
10088         * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
10089         int.
10090         (_mcleanup): Ensure value matches format specifier in sprintf.
10091
10092         * cpphash.c (special_symbol): Don't needlessly cast away
10093         const-ness.
10094
10095         * cppinit.c (base_name): Delete unused prototype.
10096
10097         * mkdeps.c (deps_init): Make definition K&R safe.
10098
10099         * tree.h (built_in_class_names, built_in_names): Constify a
10100         char*.
10101
10102 2000-03-06  Jakub Jelinek  <jakub@redhat.com>
10103
10104         * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
10105         floating point instructions for epilogue delay.
10106
10107         * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
10108         to gas if it supports .register pseudo.
10109
10110         * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
10111         LONG_DOUBLE_TYPE_SIZE if not defined.
10112         Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
10113         LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
10114         * real.c: Likewise.
10115         * gengenrtl.c: Likewise.
10116         * print-rtl.c: Likewise.
10117         * rtl.c: Likewise.
10118         * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
10119         MASK_LONG_DOUBLE_128.
10120         * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
10121         * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
10122         * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
10123         (SUBTARGET_SWITCHES): Define.
10124         (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
10125         with -mlong-double-128.
10126         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
10127         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
10128         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
10129         (CC1_SPEC): Include -mlong-double-{64,128} as needed.
10130         * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
10131         (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
10132         with -mlong-double-128.
10133         (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
10134         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
10135         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
10136         * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
10137         TARGET_LONG_DOUBLE_128): Define.
10138         * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
10139         * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
10140         long double on TARGET_ARCH64.
10141
10142 2000-03-06  Mark Mitchell  <mark@codesourcery.com>
10143
10144         * function.c (free_temps_for_rtl_expr): Don't free slots
10145         that have been pushed into a higher level.
10146
10147         Revert this patch:
10148         2000-03-05  Mark Mitchell  <mark@codesourcery.com>
10149
10150 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
10151
10152         * basic-block.h (ALLOCA_REG_SET): Remove.
10153         (INITIALIZE_REG_SET): New macro.
10154         * flow.c (update_life_info): Use it.
10155         (calculate_global_regs_live): Likewise.
10156         (propagate_block): Likewise.
10157         * global.c (build_insn_chain): Likewise.
10158         * haifa-sched.c (schedule_region): Likewise.
10159
10160 2000-03-05  Stephane Carrez  <stcarrez@worldnet.fr>
10161
10162         * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
10163         (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
10164         (DWARF_ARANGES_PAD_SIZE): New define.
10165         (output_aranges): Use it to pad the address range header.
10166         (DWARF_ROUND): Fix for non power of 2 rounding.
10167
10168 2000-03-05  Jason Merrill  <jason@casey.cygnus.com>
10169
10170         * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
10171
10172 2000-03-05  Mark Mitchell  <mark@codesourcery.com>
10173
10174         * tree.def (RTL_EXPR): Update documentation.
10175         * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
10176         * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
10177         * function.c (preserve_rtl_expr_temp): New function.
10178         (preserve_rtl_expr_temps): Likewise.
10179         (preserve_rtl_expr_result): Use it.
10180
10181         Revert this patch:
10182         2000-03-04  Mark Mitchell  <mark@codesourcery.com>
10183
10184 2000-03-04  Thomas Schuster <Thomas.Schuster@gmx.net>
10185
10186         * regmove.c (copy_src_to_dest)  Do not create src->dest move
10187         for unchanging destination.
10188
10189 2000-03-04  Mark Mitchell  <mark@codesourcery.com>
10190
10191         * function.h (struct sequence_stack): Remove rtl_expr.
10192         (struct emit_staus): Likewise.
10193         (seq_rtl_expr): Remove.
10194         * tree.h (free_temps_for_rtl_expr): Don't declare.
10195         (start_sequence_for_rtl_expr): Likewise.
10196         * rtl.h (preserve_rtl_expr_result): Likewise.
10197         * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
10198         (start_sequence_for_rtl_expr): Remove.
10199         (push_topmost_sequence): Don't save sequence_rtl_expr.
10200         (pop_topmost_sequence): Remove comment about not restoring it.
10201         (end_sequence): Don't set seq_rtl_expr.
10202         (init_emit): Don't initialize it.
10203         (mark_sequence_stack): Don't mark it.
10204         (mark_emit_status): Likewise.
10205         * except.c (protect_with_terminate): Use
10206         start_sequence_for_rtl_expr, not start_sequence.
10207         * expr.c (expand_expr, case RTL_EXPR): Don't call
10208         preserve_rtl_expr_result or free_temps_for_rtl_expr.
10209         * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
10210         (preserve_rtl_expr_result): Remove.
10211         (free_temps_for_rtl_expr): Likewise.
10212         (pop_temp_slots): Likewise.
10213         (mark_temp_slot): Don't mark the rtl_expr.
10214         * stmt.c (expand_start_stmt_expr): Use start_sequence, not
10215         start_sequence_for_rtl_expr.
10216
10217 2000-03-04  Zack Weinberg  <zack@wolery.cumb.org>
10218
10219         * mkdeps.c, mkdeps.h: New files.
10220         * po/POTFILES.in: Add them.
10221         * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
10222         (cpplib.o, cppinit.o): Depend on mkdeps.h.
10223         (mkdeps.o): New target.
10224
10225         * cppfiles.c: Delete deps_output.
10226         * cppinit.c: Include mkdeps.h.  Delete known_suffixes,
10227         OBJECT_SUFFIX, and base_name.
10228         (cpp_cleanup): Use deps_free.  Free ihash->name when clearing
10229         the include hash.
10230         (initialize_dependency_output): Use deps_init,
10231         deps_add_target, deps_calc_target, and deps_add_dep.  Remove
10232         all the unnecessary string bashing.
10233         (cpp_finish): Use deps_write.  Remove an unnecessary nesting
10234         level.
10235         * cpplib.c (do_include): Use deps_add_dep.
10236         * cpplib.h (struct cpp_reader): Replace deps_buffer,
10237         deps_allocated_size, deps_size, deps_column members with
10238         single pointer to a struct deps.  Delete prototype of
10239         deps_output.
10240
10241         * cppinit.c: Fix thinko in previous patch.
10242
10243 Sat Mar  4 11:32:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10244
10245         * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
10246         * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
10247         (mode_for_size_tree): New function.
10248         (layout_decl, layout_type): Call it and clean up BLKmode checks.
10249         * tree.h (mode_for_size_tree): New declaration.
10250
10251         * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
10252
10253 2000-03-04  Jason Merrill  <jason@casey.cygnus.com>
10254
10255         * stmt.c (is_body_block): Move...
10256         * dwarfout.c, dwarf2out.c: ...from here.
10257         * tree.h: Declare it.
10258         * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
10259         * final.c (final_start_function): Do call remove_unnecessary_notes
10260         when scheduling.
10261
10262 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
10263
10264         * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
10265
10266         * cpplib.h (_dollar_ok): New macro.
10267         (is_idchar, is_idstart): Use it.
10268         (IStable): Rename to _cpp_IStable.  Declare it const if
10269         gcc >=2.7 or C99.  Delete all references to FAKE_CONST.
10270         (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
10271         is_space): Update for renamed IStable.
10272
10273         * cppinit.c: Delete all references to FAKE_CONST and CAT
10274         macros. Define init_IStable as empty macro if gcc >=2.7 or
10275         C99. Change TABLE() to ISTABLE and hardcode name of table.
10276         (cpp_start_read): Don't change the IStable based on
10277         dollars_in_ident.
10278
10279         * cpphash.c (unsafe_chars): Add pfile argument.  All callers
10280         changed.  Handle '$' for char1 correctly.
10281         * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
10282
10283         * cppexp.c (tokentab2): Make const.
10284         (cpp_lex): Make toktab const.
10285         * cppinit.c (include_defaults_array): Make const.
10286         (initialize_standard_includes): Make default_include const.
10287
10288 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
10289
10290         * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
10291         (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
10292         (gen_decl_die): Likewise.
10293         * dwarfout.c (dwarfout_file_scope_decl): Likewise.
10294         (output_decl): Likewise.
10295
10296         * varasm.c (make_function_rtl): If we change the name used in the
10297         rtl, update DECL_ASSEMBLER_NAME accordingly.
10298         (make_decl_rtl): Likewise.
10299
10300         * toplev.c (rest_of_compilation): Tweak formatting.
10301
10302         * toplev.c (rest_of_compilation): find_loop_tree_blocks before
10303         remove_unnecessary_notes.
10304         (debug_ignore_block): New fn.
10305         * toplev.h: Declare it.
10306         * emit-rtl.c (remove_unncessary_notes): Call it.
10307         * dwarf2out.c (dwarf2out_ignore_block): New fn.
10308         * dwarf2out.h: Declare it.
10309         * final.c (final_start_function): Don't call remove_unnecessary_notes
10310         if we did insn scheduling.
10311
10312 2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
10313
10314         * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
10315         * cpplib.h: Delete SET_CPP_PEDANTIC.
10316
10317 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10318
10319         * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
10320         result is a RECORD_TYPE.
10321
10322 2000-03-03  Jonathan Larmour  <jlarmour@cygnus.co.uk>
10323
10324         * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
10325
10326 2000-03-03  Richard Henderson  <rth@cygnus.com>
10327
10328         * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
10329         addition over compliments over shifts.
10330
10331 Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10332
10333         * reload1.c (reload_combine_note_use): Handle return register USEs.
10334         REG case: Handle multi-hard-register hard regs.
10335
10336 Fri Mar  3 07:38:34 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10337
10338         * md.texi: Document use of '*' in insn pattern name.
10339
10340 2000-03-03  Jason Merrill  <jason@casey.cygnus.com>
10341
10342         * calls.c (special_function_p): operator new may not be malloc-like.
10343
10344         * gcse.c (dump_hash_table): Really fix error in last change.
10345
10346 2000-03-02  Denis Chertykov  <denisc@overta.ru>
10347
10348         * avr.c (print_operand): Use print_operand_address instead of
10349         output_addr_const.
10350         * avr/libgcc.S: Cleanup code.
10351
10352 2000-03-02  Richard Henderson  <rth@cygnus.com>
10353
10354         * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
10355
10356 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
10357
10358         * tree.h (TYPE_ALIGN_UNIT): New macro.
10359
10360 2000-03-02  Clinton Popetz  <cpopetz@cygnus.com>
10361
10362         * i386.c: (constant_call_address_operand): Reject CONST_INT.
10363
10364 2000-03-02  Jason Merrill  <jason@casey.cygnus.com>
10365
10366         * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
10367         for the buffer.
10368         (SET_CPP_PEDANTIC): New macro.
10369         * cpplib.c (do_include): Don't bother checking system_header_p.
10370         (do_warning, do_ident, do_assert, do_unassert): Likewise.
10371         * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
10372
10373         * function.h (struct expr_status): Add x_arg_space_so_far.
10374         (arg_space_so_far): New macro.
10375         * expr.c (init_expr): Initialize it.
10376         * calls.c (emit_call_1): Reset it.
10377         (compute_argument_block_size, expand_call): Use it.
10378         (expand_call, store_one_arg): Increment it.
10379
10380 Thu Mar  2 17:27:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10381
10382         * varasm.c (output_constant): Strip off a CONVERT_EXPR to
10383         a UNION_TYPE.
10384
10385 2000-03-02  Zack Weinberg  <zack@wolery.cumb.org>
10386
10387         * cppfiles.c (cpp_read_file): New function.
10388
10389         * cpphash.c (collect_expansion): Make sure to reset last_token
10390         to NORM when we hit a string.  Handle trailing whitespace
10391         properly when the expansion is empty.
10392         (create_definition): Disable line commands while parsing the
10393         directive line.
10394         (dump_definition): If pfile->lineno == 0, output a line
10395         command ahead of the dump, and add a trailing newline.
10396
10397         * cppinit.c (append_include_chain): Add fifth argument, which
10398         indicates whether or not system headers are C++ aware.
10399         (initialize_standard_includes): New function,
10400         broken out of read_and_prescan.  Pass 'cxx_aware' value from
10401         the include_defaults_array on to append_include_chain.
10402         (dump_special_to_buffer): Const-ify char array.
10403         (builtin_array): Don't dump __BASE_FILE__.
10404         (cpp_start_read): Use cpp_read_file.  Reorder code for
10405         clarity.  Don't output line commands here for -D/-A/-U
10406         switches.  Don't call deps_output for files included with
10407         -include or -imacros.
10408
10409         * cpplib.c (do_define): Don't pay any attention to the second
10410         argument.
10411         (cpp_expand_to_buffer): Disable line commands while scanning.
10412         (output_line_command): Work in the file buffer.
10413         * cpplib.h: Remove no_record_file flag from struct cpp_reader.
10414         Fix formatting of comments.  Prototype cpp_read_file.
10415
10416 Thu Mar  2 13:29:46 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10417
10418         * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
10419         reference the language-equivalent of sizetype.
10420         * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
10421         * fold-const.c (size_binop, size_diffop): Put back checks.
10422         * gcse.c (dump_hash_table): Fix minor error in last change.
10423         * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
10424         Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
10425         all sizetypes.
10426
10427 Thu Mar  2 12:48:45 MET 2000  Jan Hubicka  <jh@suse.cz>
10428
10429         * calls.c (expand_call)  Do not attempt to combine stack adjustments
10430         with inhibit_defer_pop set.
10431
10432 2000-03-01  Mark Mitchell  <mark@codesourcery.com>
10433
10434         * stor-layout.c (layout_decl): Allow front-ends to explicitly set
10435         the DECL_SIZE for a FIELD_DECL.
10436
10437 2000-03-01  Bruce Korb  <bkorb@gnu.org>
10438
10439         * fixinc/inclhack.tpl: remove unused symlinks
10440         * fixinc/README: GCC Maintainer info
10441         * fixinc/inclhack.sh: regen
10442         * fixinc/fixincl.sh: regen
10443
10444 2000-03-01  Zack Weinberg  <zack@wolery.cumb.org>
10445
10446         * cpphash.c (collect_expansion): Trim trailing white space
10447         from macro definitions, but don't go past the last insertion
10448         point.
10449
10450 Wed Mar  1 12:14:31 MET 2000  Jan Hubicka  <jh@suse.cz>
10451
10452         * i386.md (mulqi3): New pattern.
10453
10454 2000-02-29  Zack Weinberg  <zack@wolery.cumb.org>
10455
10456         * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
10457         token types.
10458         (struct cpp_reader): Add parsing_if_directive and
10459         parsing_define_directive flags.
10460         (struct cpp_options): Remove output_conditionals flag.
10461         (check_macro_name): Delete prototype.
10462
10463         * cpphash.h (struct macrodef): Delete.
10464         (struct reflist): Separate from struct definition.
10465         (struct definition): Remove unused fields.  Add column number.
10466         (create_definition): Returns a DEFINITION *.  Takes a
10467         cpp_reader * and an int.
10468
10469         * cpphash.c (SKIP_WHITE_SPACE): Delete.
10470         (PEEKC): Copy defn from cpplib.c.
10471         (rest_extension, REST_EXTENSION_LENGTH): Delete.
10472         (struct arg): New.
10473         (struct arglist): Simplify.
10474         (collect_expansion): Rewrite.  Get tokens by calling
10475         cpp_get_token.  Add more error checking.
10476         (collect_formal_parameters): New function, broken out of
10477         create_definition and reworked to use get_directive_token.
10478         (create_definition): All real work is now in collect_expansion
10479         and collect_formal_parameters.  do_define handles finding the
10480         macro name.  Return a DEFINITION, not a MACRODEF.
10481         (macroexpand): Replace bcopy with memcpy throughout.  Replace
10482         character-at-a-time copy loop with memcpy and pointer increments.
10483         (compare-defs): d1->argnames / d2->argnames might be null.
10484
10485         * cpplib.c (copy_rest_of_line): Delete function.
10486         (skip_rest_of_line): Do all the work ourselves.
10487         (skip_string): New function.
10488         (parse_string): Use skip_string.
10489         (get_macro_name): New function.
10490         (check_macro_name): Delete.
10491         (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
10492         (cpp_skip_hspace): Use CPP_BUMP_LINE.
10493         (handle_directive): ICE if we're called on a macro buffer.
10494         (do_define): Determine macro name and type (funlike/objlike)
10495         here.  Expunge all uses of MACRODEF.
10496         (cpp_push_buffer): Set line_base to NULL.
10497         (do_undef, read_line_number): Don't worry about getting a POP token.
10498         (eval_if_expression): Set/reset parsing_if_directive around
10499         cpp_parse_expr. Don't clear only_seen_white.
10500         (skip_if_group): Remove output_conditionals logic.  Use
10501         skip_rest_of_line.
10502         (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10503         tokens under appropriate conditions.
10504         (cpp_unassert): Call do_unassert not do_assert.  Oops.
10505
10506         * cppexp.c (parse_defined): New function, break out of
10507         cpp_lex.
10508         (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10509         ourselves, with cpp_defined.
10510         * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10511
10512         * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10513         * gcc.dg/strpaste-2.c: New.
10514
10515 2000-02-29  Mark Mitchell  <mark@codesourcery.com>
10516
10517         * fold-const.c (size_binop): Don't asert inputs are the same and
10518         have TYPE_IS_SIZETYPE set.
10519         (size_diffop): Likewise.
10520
10521 2000-02-29  Jason Merrill  <jason@casey.cygnus.com>
10522
10523         * dwarfout.c (output_block): Output abstract blocks even if they
10524         don't have TREE_ASM_WRITTEN set.
10525
10526         * calls.c (emit_library_call): Check for null REG.
10527
10528 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
10529
10530         * c-decl.c (current_function_decl): Move to toplev.c.
10531         (init_decl_processing): Don't add current_function_decl as a ggc
10532         root here.
10533         * dbxout.c (dbxout_symbol): Change return type to int.
10534         (dbxout_symbol_location, dbxout_syms): Likewise.
10535         (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10536         any locals. Use current_function_func_begin_label if set.
10537         * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10538         * dwarf2out.c (dwarf2out_begin_prologue): Set
10539         current_function_func_begin_label.
10540         * final.c (final_start_function): Reset it.
10541         * toplev.c (current_function_decl): Define it here.
10542         (current_function_func_begin_label): New variable.
10543         (main): Add both as ggc roots.
10544         * tree.h (current_function_func_begin_label): Declare.
10545
10546 Tue Feb 29 14:07:04 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10547
10548         * gcse.c: Cleanups throughout: mostly white-space, but also
10549         some minor rearrangement of code.
10550
10551 Tue Feb 29 10:45:59 2000  Jeffrey A Law  (law@cygnus.com)
10552
10553         * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10554         returns a PARALLEL.  Use emit_group_load and use_group_regs
10555         as needed.
10556         (emit_library_call_value): Similarly.
10557
10558         * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10559         * pa/quadlib.asm: Remove.
10560         * pa/quadlib.c: New file.
10561
10562         * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10563         * configure: Rebuilt.
10564
10565 2000-02-29  Philip Blundell  <pb@futuretv.com>
10566
10567         * config/arm/conix-elf.h: New file.
10568         * configure.in (arm*-*-conix*): New configuration.
10569         * configure: Regenerate.
10570
10571 2000-02-28  Jason Merrill  <jason@casey.cygnus.com>
10572
10573         * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10574         don't have TREE_ASM_WRITTEN set.
10575
10576 Mon Feb 28 21:07:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10577
10578         * Eliminate DECL_FIELD_SIZE.
10579         * builtins.c (built_in_class_names, built_in_names): New variables.
10580         * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10581         * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10582         DECL_SIZE, not DECL_FIELD_SIZE.
10583         * print-tree.c (print_node): Remove code that prints extra blank
10584         lines in some cases.
10585         Properly handle inline and builtin function cases.
10586         * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10587         * tree.h (built_in_class_named, built_in_names): New declarations.
10588         (union tree_decl): Rename internal unions to u1 and u2 and change
10589         some of their components.
10590         Add new field built_in_class.
10591         (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10592         Reflect above changes.
10593         (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10594         (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10595         * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10596         (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10597
10598 2000-02-28  Dmitri Makarov  <dim@windriver.com>
10599
10600         * extend.texi: Document ARM's support for long/short calls.
10601
10602         * invoke.texi: Document ARM's -mlong-calls command line switch.
10603
10604         * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10605         (arm_encode_call_attribute): Add prototype.
10606         (arm_set_default_type_attribute): Add prototype.
10607         (arm_strip_name_encoding): Add prototype.
10608
10609         * config/arm/arm.c (arm_init_cumulative_args): replace
10610         initialisation og 'long_calls' field with initialisation of
10611         'call_cookie' field.
10612         (enum arm_pragma_enum): New enum.
10613         (arm_pragma_long_calls): New static variable.
10614         (arm_process_pragma): Also process "#pragma long_calls_off".
10615         (arm_valid_type_attribute_p): Accept short_call attribute.
10616         (arm_comp_type_attributes): Check long/short call attributes.
10617         (arm_encode_call_attribute):  New function:  Encode long_call
10618         or short_call attribute in function name.
10619         (arm_set_default_type_attributes): New function: Assign
10620         default attributes to newly defined type.
10621         (current_file_function_operand): New function: Return true if
10622         the symbol is a function which has already been compiled.
10623         (arm_is_longcall_p): New function: Return true if the
10624         indicated function should be called via a long call.
10625         (arm_get_strip_length): New function.  Returns number of
10626         prefix characters to be stripped from a function's name.
10627         (arm_strip_name_encoding): New function.  Strip prefix characters
10628         from a function's name.
10629
10630         * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10631         with 'call_cookie'.
10632         (SHORT_CALL_FAG_CHAR): Define.
10633         (LONG_CALL_FAG_CHAR): Define.
10634         (ENCODED_SHORT_CALL_ATTR_P): Define.
10635         (ENCODED_LONG_CALL_ATTR_P): Define.
10636         (ARM_NAME_ENCODING_LENGTHS): Define.
10637         (STRIP_NAME_ENCODING): Define.
10638         (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10639         (ARM_ENCODE_CALL_TYPE): Define.
10640         (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10641         (ARM_DECLARE_FUNCTION_SIZE): Define.
10642         (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10643
10644         * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10645         if a long call is needed.
10646         (call_value): Ditto.
10647         (call_symbol): Ditto.
10648
10649         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10650         ARM_DECLARE_FUNCTION_SIZE.
10651
10652         * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10653         (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10654         (ARM_STRIP_NAME_ENCODING): Undefine.
10655         (STRIP_NAME_ENCODING): Undefine.
10656         (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10657         (ASM_DECLARE_FUNCTION_NAME): Ditto.
10658         (ASM_OUTPUT_COMMON): Ditto.
10659         (ASM_DECLARE_OBJECT_NAME): Ditto.
10660
10661         * config/arm/pe.c (arm_dllexport_name_p): Check for
10662         ARM_PE_FLAG_CHAR.
10663         (arm_dllimport_name_p): Ditto.
10664         (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10665         (arm_mark_dllimport): Ditto.
10666
10667 Mon Feb 28 22:11:12 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10668
10669         * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10670
10671 2000-02-28  Mark Mitchell  <mark@codesourcery.com>
10672
10673         * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10674
10675 2000-02-28  Zack Weinberg  <zack@wolery.cumb.org>
10676
10677         * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10678         * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10679         NO_BUILTIN_WCHAR_TYPE is not defined.
10680         (CPP_WCHAR_TYPE): Delete.
10681         * cccp.c (main): Don't change wchar_type if cplusplus.
10682         (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10683
10684 2000-02-28  Nick Clifton  <nickc@cygnus.com>
10685
10686         * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10687
10688 Mon Feb 28 14:21:15 2000  Catherine Moore  <clm@cygnus.com>
10689
10690         * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10691         (ASM_WEAKEN_LABEL): Define.
10692
10693 Mon Feb 28 13:07:19 MET 2000  Jan Hubicka  <jh@suse.cz>
10694
10695         * expr.c (store_constructor): Do not emit USE.
10696         * rtl.h (stupid_life_analysis): Remove.
10697
10698 Mon Feb 28 07:03:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10699
10700         * function.c (number_blocks): Reset next_block_index based on
10701         what debugging format is used, not what is defined.
10702
10703         * lcm.c: Minor reformatting throughout.
10704         (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10705
10706         * toplev.c (rest_of_compilation): Account for time in
10707         optimize_mode_switching.
10708
10709         * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10710         if only marking labels.
10711
10712 Mon Feb 28 12:53:57 MET 2000  Jan Hubicka  <jh@suse.cz>
10713
10714         * calls.c (expand_call): Attempt to combine stack adjustments with
10715         pending stack adjustments.
10716
10717 Mon Feb 28 11:34:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10718
10719         * loop.c (reg_in_basic_block_p): Don't abort when falling through
10720         to the end of the function.
10721
10722 2000-02-27  Mark Mitchell  <mark@codesourcery.com>
10723
10724         * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10725         blocks.
10726         * final.c (next_block_index): Remove.
10727         (max_block_depth): Likewise.
10728         (pending_blocks): Likewise.
10729         (init_final): Don't initialize them.
10730         (final_start_function): Don't set next_block_index.  Set up
10731         BLOCK_NUMBER.
10732         (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10733         * function.h (number_blocks): New function.
10734         * function.c (get_block_vector): New function.
10735         (identify_blocks): Use it.
10736         (reorder_blocks): Set NOTE_BLOCK.
10737         (number_blocks): New function.
10738         * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10739         * tree.h (BLOCK_NUMBER): New macro.
10740         (tree_block): Add block_num field.
10741         * dbxout.c (next_block_number): Remove.
10742         (dbxout_init): Don't set it.
10743         (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10744         set.  Use BLOCK_NUMBER, rather than next_block_num, to determine
10745         block numbers.
10746         * toplev.c (rest_of_compilation): Always call
10747         find_loop_tree_blocks.  Fix indentation.
10748         * dwarf2out.c (next_block_number): Remove.
10749         (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10750         to determine block numbers.
10751         (gen_inlined_subroutine_die): Likewise.
10752         (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10753         (decls_for_scope): Don't increment next_block_number.
10754         * dwarfout.c (next_block_number): Remove.
10755         (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10756         to determine block numbers.
10757         (output_inlined_subroutine_die): Likewise.
10758         (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10759         (output_decls_for_scope): Don't increment next_block_number.
10760         * sdbout.c (next_block_number): Remove.
10761         (sdbout_block): Use BLOCK_NUMBER.
10762         (sdbout_begin_block): Simplify.
10763         * xcoffout.c (next_block_number): Remove.
10764         (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10765         (xcoffout_begin_block): Don't set next_block_number.
10766         (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10767         next_block_number.
10768
10769 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10770
10771         * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10772         (expand_builtin_strcpy): Pass correct type to size_binop.
10773         (expand_builtin_strcmp): Likewise.
10774         Clean up conditional structure.
10775         * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10776         (complete_array_type): Don't use size_binop for MAXINDEX.
10777         * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10778         (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10779         (c_alignof): Use size_one_node.
10780         (build_unary_op): Pass arg of proper type to size_binop.
10781         (really_start_incremental_init, push_init_level): Use sizetype for
10782         constructor{,_bit,_unfilled}_index.
10783         (pop_init_label, output_init_element): Likewise.
10784         (output_pending_init_elements, process_init_element): Likewise.
10785         * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10786         * expr.c (store_expr): Use size_int.
10787         (store_constructor): Use proper types for size_binop args.
10788         (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10789         (expand_expr_unaligned): Likewise.
10790         (string_contant): Return object of sizetype.
10791         * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10792         (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10793         (ARGS_SIZE_TREE): Pass proper types to size_binop.
10794         * fold-const.c (int_const_binop): Refine when size_int is called.
10795         (fold_convert): Likewise.
10796         (size_int_wide): Rework to take KIND as arg, only take low order
10797         bits, handle new sizetype_tab datatype, and chain entries in
10798         size_table.
10799         (size_int_type_wide): New function.
10800         (size_binop): Validate types of arguments.
10801         (ssize_binop): Deleted.
10802         (size_diffop): New function.
10803         (extract_muldiv): Only fold division into multiplication for sizetypes.
10804         * function.c (assign_parms): Use size_diffop and make sure
10805         VAR field is of ssizetype; also pass proper type to size_binop.
10806         (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10807         (round_down): Deleted from here.
10808         * store-layout.c (sizetype_tab): Now an array.
10809         (sizetype_set, early_root_list): New variables.
10810         (variable_size): Use size_one_node.
10811         (round_up): Pass proper type to size_binop.
10812         (round_down): Moved to here and corrected as above.
10813         (layout_record): Pass proper arg types to size_binop.
10814         (layout_type): Likewise.
10815         If sizetype_set is zero, record the type just laid out.
10816         (make_unsigned_type): Don't call set_sizetype;
10817         (make_signed_type): Likewise; also, call fixup_signed_type.
10818         (initialize_sizetypes): New function.
10819         (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10820         set name of bitsizetype to "bit_size_type".
10821         Fix up type of sizes of all types made before call.
10822         * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10823         * tree.c (fix_sizetype): Deleted.
10824         (build_common_tree_nodes): Call initialize_sizetypes.
10825         (build_common_tree_nodes_2): Don't call fix_sizetype.
10826         * tree.h (TYPE_IS_SIZETYPE): New macro.
10827         (initialize_sizetype): New declaration.
10828         (enum size_type_kind): New type.
10829         (struct sizetype_tab): Deleted.
10830         (sizetype_tab): Now array; adjust sizetype macros.
10831         (size_diffop, size_int_type_wide): New functions.
10832         (size_int_wide): Change number of args and type; access macros changed.
10833         (ssize_int, sbitsize_int): New macros.
10834         * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10835         (ROUND_TYPE_SIZE_UNIT): New macro.
10836
10837 2000-02-27  Zack Weinberg  <zack@wolery.cumb.org>
10838
10839         * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10840
10841 Sun Feb 27 07:44:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10842
10843         * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10844         Mark as possibly unused.
10845
10846         * cse.c (cse_insn): Delete dead code involving tablejump.
10847         Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10848
10849         * Makefile.in (libcpp.a): Start by deleting it.
10850
10851 2000-02-27  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
10852
10853         * cpplib.h (enum file_change_code): Added rename_file.
10854         * cpplib.c (do_line): If a filename is given, set file_change to
10855         rename_file.
10856         (output_line_command): If file_change is rename_file, always
10857         output a # directive with the file name.
10858
10859         * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10860
10861 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
10862
10863         * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10864         when copying a PARM_DECL or RESULT_DECL.
10865
10866 2000-02-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10867
10868         * fix-header.c (recognized_function): Also fix prototypes for
10869         functions taking "void".
10870
10871 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
10872
10873         * reload1.c (do_output_reload): Check reg_reloaded_valid before
10874         looking at reg_reloaded_contents.
10875
10876 2000-02-26  Zack Weinberg  <zack@wolery.cumb.org>
10877
10878         * Makefile.in (STMP_FIXINC): New toggle.
10879         (LIBGCC2_DEPS): Delete all references.
10880         (stmp-headers): Delete target.  All references either deleted
10881         or changed to stmp-int-headers.
10882         (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10883         (LIBCPP_OBJS): Take out cppalloc.o.
10884         (cppalloc.o): Delete target.
10885         (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10886         (gen-protos, fix-header): Link with libiberty.a.
10887         * build-make: Don't change FIXINCLUDES.  Override STMP_FIXINC
10888         to empty.
10889
10890         * configure.in: Remove refs to strerror.
10891         * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10892         * system.h: Take out strerror stanza.
10893
10894         * cpperror.c (my_strerror): Delete function.
10895         (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10896         * cppmain.c (main): Call xmalloc_set_program_name first thing.
10897         * cppalloc.c: Delete file.
10898         * gen-protos.c: Don't provide xrealloc.
10899
10900         * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10901         xstrerror throughout.
10902
10903 2000-02-26  Bruce Korb  <bkorb@gnu.org>
10904
10905         * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10906         match for DOS headers, too.
10907         * fixinc/inclhack.sh,fixincl.x: Regenerate.
10908
10909 2000-02-26  Geoff Keating  <geoffk@cygnus.com>
10910
10911         * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define.  The default
10912         is right for most ELF targets.
10913         * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10914         Let the default file use %U properly.
10915         * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define.  Use the
10916         default.
10917
10918         * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10919         numbers.
10920
10921 Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10922
10923         * toplev.c (documented_lang_options): Correct spelling error.
10924         (decode_d_option, decode_f_option, main): Likewise.
10925
10926         * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10927
10928         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10929         to tell assembler it is permitted to expand large constants.
10930
10931 2000-02-25  Mumit Khan  <khan@xraylith.wisc.edu>
10932
10933         * protoize.c: (AUX_INFO_SUFFIX): New macro.
10934         (aux_info_suffix): Use.
10935         (SAVE_SUFFIX): New macro.
10936         (save_suffix): Use.
10937         (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10938         (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10939         (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10940
10941         * invoke.texi (Running Protoize): Update documentation.
10942
10943 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10944
10945         * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10946
10947 2000-02-25  John Wehle  (john@feith.com)
10948
10949         * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10950
10951 2000-02-25  Anthony Green  <green@cygnus.com>
10952
10953         * toplev.c (rest_of_compilation): Rebuild jump labels if
10954         combine_instructions has created a new direct jump.
10955         * combine.c (try_combine): Add new_direct_jump_p argument.  Set it
10956         when appropriate.
10957         (combine_instructions): Call try_combine with new argument.
10958         Return non-null value when new direct jump instruction is created.
10959         * rtl.h: combine_instructions returns an int.
10960
10961 Fri Feb 25 19:49:08 2000  Jeffrey A Law  (law@cygnus.com)
10962
10963         * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10964         jump when changing a computed jump into a jump to a known
10965         target.
10966
10967 Fri Feb 25 19:22:44 2000  Graham Stott <grahams@rcp.co.uk>
10968
10969         * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10970         to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10971
10972         * i386.md (define_expand "clrstrsi"): Fix typo.
10973
10974 Fri Feb 25 18:49:39 2000  "K. Richard Pixley" <rich@microunity.com>
10975
10976         * rtl.texi: Fix typo.
10977
10978 Fri Feb 25 20:02:35 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10979
10980         * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10981         UNITS_PER_WORD.  Change caller initial_elimination_offset.
10982         (rounded_frame_size): Take into account that argument pushed has
10983         changed.  Fix TARGET_ALIGN_DOUBLE problem.
10984
10985 2000-02-25  Geoff Keating  <geoffk@cygnus.com>
10986
10987         * haifa-sched.c (schedule_block): Explain the real reason
10988         we delete REG_SAVE_NOTEs on the first insn of a block.
10989         Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10990
10991 2000-02-24  Mark Mitchell  <mark@codesourcery.com>
10992
10993         * input.h (push_srcloc): New function.
10994         (pop_srcloc): Likewise.
10995         * toplev.c (push_srcloc): Define it.
10996         (pop_srcloc): Likewise.
10997
10998 2000-02-24  Richard Henderson  <rth@cygnus.com>
10999
11000         * flow.c (life_analysis): When collecting reg info, clear
11001         regs_ever_live.
11002
11003 Thu Feb 24 22:06:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11004
11005         Fix bug exposed by reload.c no longer rounding the frame
11006         size to BIGGEST_ALIGNMENT:
11007         * sh.c (rounded_frame_size): New function.
11008         (sh_expand_prologue, sh_expand_epilogue): Use it.
11009         (initial_elimination_offset): Likewise.
11010
11011 Thu Feb 24 20:04:11 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11012
11013         Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
11014         * sh-protos.h (sh_need_epilogue): Declare.
11015         * sh.c (sh_need_epilogue_known): New static variable.
11016         (sh_need_epilogue): New function.
11017         (function_epilogue): Clear need_epilogue_known.
11018         * sh.md (return): Split into expander / insn pattern.
11019         Make the expander conditional on ! sh_need_epilogue ().
11020
11021 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
11022
11023         * machmode.h (get_mode_alignment): Declare.
11024         (GET_MODE_ALIGNMENT): Call it.
11025         * stor-layout.c (get_mode_alignment): New function. Make
11026         sure alignment is always power of 2.
11027
11028 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11029
11030         * i386.h: Remove useless definition of "I386" and misleading
11031         comment above it.
11032
11033 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11034
11035         * tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
11036         under which TREE_PERMANENT will be set.
11037         * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
11038         build1): Use TREE_SET_PERMANENT.
11039         * print-tree.c (print_node): Don't report value of
11040         TREE_PERMANENT if ggc_p is true.
11041
11042         * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
11043         decide whether to give a type a new alias set.
11044         * objc/objc-act.c (build_objc_string_object): Never copy the string.
11045         * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
11046         of value of 'obstack'.
11047
11048
11049 2000-02-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11050
11051         * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
11052
11053 2000-02-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11054
11055         * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
11056         * cpplib.c (cpp_get_token): Produce them.
11057         * cppexp.c (cpp_lex): Handle them.
11058
11059 2000-02-23  Nick Clifton  <nickc@cygnus.com>
11060
11061         * config/arm/arm.c (arm_comp_type_attributes): Simply and
11062         comment tests on type attributes.
11063
11064 Wed Feb 23 16:42:21 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11065
11066         * final.c (shorten_branches): Make value passed to LOOP_ALIGN
11067         conform to documentation.
11068         * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
11069         to check for special cases.
11070         * sh-protos.h (sh_loop_align): Declare.
11071         * sh.c (sh_loop_align): Define.
11072
11073 2000-02-22  Andrew Haley  <aph@cygnus.com>
11074
11075         * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
11076         (SIZE_TYPE): Is 32 bits when using -mgp32.
11077         (PTRDIFF_TYPE): Ditto.
11078
11079 Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11080
11081         * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
11082
11083 2000-02-23  Zack Weinberg  <zack@wolery.cumb.org>
11084
11085         * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
11086         BIGGEST_FIELD_ALIGNMENT a constant.
11087
11088 2000-02-21  Jason Merrill  <jason@casey.cygnus.com>
11089
11090         * dwarf2out.c (output_line_info): Put the marker for the end of
11091         the line number info at the actual end.
11092         (gen_struct_or_union_type_die): Use decl_function_context
11093         to check for local classes.
11094         * dwarfout.c (output_type): Likewise.
11095
11096 Tue Feb 22 01:38:57 2000  Jeffrey A Law  (law@cygnus.com)
11097
11098         * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
11099         for arguments with a mode, but no type.
11100         (FUNCTION_ARG_CALLEE_COPIES): Similarly.
11101         * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
11102         * pa/long_double.h: New file.
11103         * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
11104         both have 128bit wide long doubles.
11105         * configure: Rebuilt.
11106
11107 2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11108
11109         * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
11110
11111         * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
11112         fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
11113         (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
11114
11115         * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
11116
11117         * integrate.c (compare_blocks, find_block): Likewise.
11118
11119         * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
11120
11121         * rtl.h (set_file_and_line_for_stmt): Constify a char*.
11122
11123         * stmt.c (stmt_status, set_file_and_line_for_stmt,
11124         expand_asm_operands): Likewise.
11125
11126 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
11127
11128         * predict.c (estimate_probability): Added the pointer heuristic to
11129         the collection of static branch predictors.
11130
11131 2000-02-21  Catherine Moore  <clm@cygnus.com>
11132
11133         * config/mips/mips.h (ASM_SPEC): Add -mfix700.
11134         * invoke.texi (-mfix7000): Document.
11135
11136 2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>
11137
11138         * diagnostic.c (init_output_buffer): Make it possible to output at
11139         least 32 characters if we're given a too long prefix.
11140
11141 2000-02-20  Mark Mitchell  <mark@codesourcery.com>
11142
11143         * varasm.c (initializer_constant_valid_p): Call
11144         lang_expand_constant to simplify the constant.
11145
11146 2000-02-20  Bruce Korb  <bkorb@gnu.org>
11147
11148         * fixinc/inclhack.def(stdio_va_list):
11149         typedef needs to be disabled.
11150         * fixinc/inclhack.sh: regen
11151         * fixinc/fixincl.x: regen
11152
11153 2000-02-20  Geoff Keating  <geoffk@cygnus.com>
11154
11155         * print-rtl.c (print_rtx): Don't print addresses when
11156         flag_dump_unnumbered.
11157
11158 2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11159
11160         * sparc.c (sparc_output_scratch_registers): Mark parameter with
11161         ATTRIBUTE_UNUSED.
11162         (sparc_va_arg, sparc_flat_output_function_prologue,
11163         sparc_flat_output_function_epilogue): Cast value to unsigned in
11164         comparison.
11165         (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
11166
11167         * sparc.md: Add default case in switch.
11168
11169 2000-02-19  Richard Henderson  <rth@cygnus.com>
11170
11171         * c-typeck.c (add_pending_init): Don't abort for multiple
11172         fields at the same offset.
11173         (pending_init_member): Test the correct member.
11174
11175 2000-02-19  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11176
11177         * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
11178         instead of SImode.
11179         (start_catch_handler) : Same.
11180
11181 2000-02-19  Brad Lucier  (lucier@math.purdue.edu)
11182
11183         * Makefile.in: Have flow.o depend on $(EXPR_H)
11184
11185 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11186
11187         * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
11188         * c-decl.c (duplicate_decls, finish_enum): Likewise.
11189         (finish_decl): Remove -Wlarger-than code from here.
11190         * flags.h (id_clash_len): Now int.
11191         (larger_than_size): Now HOST_WIDE_INT.
11192         * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
11193         Clean up checking to see if in table.
11194         (make_bit_field_ref): Remove extra parm to bitsize_int.
11195         * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
11196         * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
11197         * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
11198         and for computing size of decl.
11199         * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
11200         Move -Wlarger-than code to here.
11201         (layout_record): Remove extra arg to bitsize_int.
11202         Set TYPE_BINFO_SIZE_UNIT.
11203         (layout_union): Remove extra arg to bitsize_int.
11204         Use proper type for size of QUAL_UNION.
11205         (layout_type): Remove extra arg to bitsize_int.
11206         * toplev.c (id_clash_len): Now int.
11207         (larger_than_size): Now HOST_WIDE_INT.
11208         (decode_W_option): Clean up id-clash and larger-than- cases.
11209         * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
11210         (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
11211         * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
11212         (struct tree_decl): New field size_unit.
11213         (size_int_wide): No HIGH operand; NUMBER is now signed.
11214         (size_int_2): Deleted.
11215         (size_int, bitsize_int): Don't use it and rework args.
11216         * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
11217
11218 Fri Feb 18 20:01:58 2000  Jeffrey A Law  (law@cygnus.com)
11219
11220         * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
11221
11222 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
11223
11224         * invoke.texi (Warning Options): Add an explanation of why
11225         you might want the -Wfloat-equal flag.
11226
11227 Fri Feb 18 20:08:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11228
11229         * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
11230         * cppinit.c (new_pending_define): Add cast to avoid warning.
11231         * expmed.c (extract_bit_field): Likewise.
11232         * flow.c (enum reorder_skip_type): New type.
11233         (skip_insns_between_blcok): New it.
11234         Rework to avoid warning about possibly undefined variable.
11235         * function.c (assign_parms): Make thisparm_boundary unsigned.
11236         * genrecog.c (write_switch): Cast XWINT result to int.
11237         * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
11238         * mips-tfile.c (init_file): Make two versions of FDR intializer:
11239         one for MIPS and one for Alpha.
11240         (get_tag, copy_object): Add casts to avoid warnings.
11241         * optabs.c (init_one_libfunc): Cast NAME to (char *).
11242         * reload.c (find_reloads): Make TYPE enum reload_type.
11243         * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
11244         * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
11245         * varasm.c (compare_constant_1): Add cast to avoid warning.
11246         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
11247         to (char *).
11248         (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
11249         Cast switch operand of size to int.
11250         (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
11251         * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
11252         in unhandled case.
11253
11254 2000-02-18  Nick Clifton  <nickc@cygnus.com>
11255
11256         * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
11257         anything for an alignment of zero.
11258
11259         * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
11260         anything for an alignment of zero.
11261
11262 2000-02-18  Martin von Loewis  <loewis@informatik.hu-berlin.de>
11263
11264         * gcc.texi (Bug Reporting): Refer to bugs.html.
11265         (Bug Lists): Likewise.
11266         * system.h (GCCBUGURL): New preprocessor define.
11267         * rtl.c (fancy_abort): Use it.
11268         * gcc.c (main): Likewise.
11269
11270 2000-02-18  Richard Henderson  <rth@cygnus.com>
11271
11272         * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
11273         (life_analysis_1): Subsume into ...
11274         (life_analysis): ... here.  Force PROP_REG_INFO off after reload.
11275         Use update_life_info for the relaxation.
11276         (update_life_info): Update REG_BASIC_BLOCK for registers live on
11277         entry and regs_live_at_setjmp.
11278         (set_noop_p): Simplify.
11279         (notice_stack_pointer_modification_1): Renamed from s/_1//.
11280         (record_volatile_insns): Split into ...
11281         (delete_noop_moves): ... here,
11282         (notice_stack_pointer_modification): ... here,
11283         (insn_dead_p): ... and here.
11284         (propagate_block): Don't query INSN_VOLATILE.
11285         (mark_used_regs): Mind !PROP_REG_INFO.
11286         * toplev.c (rest_of_compilation): Call mark_constant_function here,
11287         not in life_analysis.
11288
11289 Fri Feb 18 01:29:22 EST 2000  John Wehle  (john@feith.com)
11290
11291         * loop.c (canonicalize_condition): New function,
11292         broken out of get_condition.
11293         (get_condition): Use it.
11294         * expr.h (canonicalize_condition): Prototype it.
11295
11296         * tree.h (tree_int_cst_msb): Declare.
11297         * tree.c (tree_int_cst_msb): New function.
11298
11299 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
11300
11301         * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
11302         isn't set.
11303
11304         * invoke.texi (-fmessage-length=n): Document.
11305
11306 2000-02-17  Jason Merrill  <jason@casey.cygnus.com>
11307
11308         * bitmap.c (bitmap_operation): Don't leak bitmap elements.
11309
11310 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
11311
11312         * function.c (thread_prologue_and_epilogue_insns): Put a line note
11313         after the prologue.
11314
11315 2000-02-17  Nick Clifton  <nickc@cygnus.com>
11316
11317         * config/arm/thumb.c: Replace includes of system headers with
11318         #include "system.h".
11319
11320 2000-02-16  Richard Henderson  <rth@cygnus.com>
11321
11322         * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
11323         Add crtbeginS.o and crtendS.o.
11324         * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
11325         (ENDFILE_SPEC): Use crtendS.o.
11326         * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
11327
11328         * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
11329         (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
11330         shared and present.
11331         (__dso_handle): New variable.
11332         * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
11333         bias to __CTOR_END__.
11334
11335 2000-02-16  Richard Henderson  <rth@cygnus.com>
11336
11337         * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
11338
11339 Wed Feb 16 21:40:04 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11340
11341         * longlong.h (__clz_tab): Declare as static to match definition.
11342
11343 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
11344
11345         * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
11346         (XREF_FILE_NAME): Define.
11347
11348         * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
11349         (EH_FRAME_SECTION_ASM_OP): Define.
11350         (IDENT_ASM_OP): Define.
11351         (TEXT_SECTION_ASM_OP): Define.
11352         (CPP_SPEC): Define.
11353         (CTORS_SECTION_ASM_OP): Define.
11354         (CTOR_SECTION_FUNCTION): Use it.
11355         (DTORS_SECTION_ASM_OP): Define.
11356         (DTOR_SECTION_FUNCTION): Use it.
11357
11358 2000-02-16  Zack Weinberg  <zack@wolery.cumb.org>
11359
11360         * reg-stack.c (emit_swap_insn): Do not put a new insn before a
11361         NOTE_BASIC_BLOCK.
11362
11363         * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
11364         debug_bb_n): New functions.
11365         (dump_flow_info, print_rtl_with_bb): Use dump_regset.
11366         * basic-block.h: Prototype new functions.
11367
11368 Wed Feb 16 21:07:53 2000  Denis Chertykov  <denisc@overta.ru>
11369
11370         * configure.in: Add support for avr target.
11371         * configure: Rebuilt.
11372
11373         * invoke.texi: Add AVR invocation docs.
11374         * install.texi: Add information about AVR.
11375         * md.texi: Add AVR constraint letters description.
11376         * extend.texi: Add description for AVR specific attributes.
11377
11378 2000-02-16  Jason Merrill  <jason@casey.cygnus.com>
11379
11380         * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
11381
11382 2000-02-16  Nick Clifton  <nickc@cygnus.com>
11383
11384         * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
11385         (make_insn_raw): Move RTL check here.
11386
11387 2000-02-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11388
11389         * version.c: Include gansidecl.h and version.h.
11390
11391         * version.h: Wrap entire file in macro __GCC_VERSION_H__.
11392
11393         * configure.in (gcc_version): When setting, narrow search to
11394         lines containing `version_string'.
11395
11396         * Makefile.in (mainversion): Likewise.
11397         (GCC_H): New variable.
11398         (gcc.h): Delete target.
11399         (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
11400         (version.o): Depend on version.h.
11401         (dbxout.o): Don't depend on gcc.h.
11402
11403 Wed Feb 16 15:04:49 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11404                           Michael Meissner  <meissner@cygnus.com>
11405
11406         * md.texi (Simple Constraints): Add item about whitespace.
11407         * genoutput.c (strip_whitespace): New.
11408         (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
11409         strip_whitespace for constraints.
11410         Test pointer using NULL, not 0.
11411
11412 2000-02-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11413
11414         * cpplib.c (do_line): Pedwarn for #line > 32767.
11415
11416         * c-lex.c (readescape): Warn about '\x', but do not reject it.
11417
11418 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
11419
11420         * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
11421         to default cpp spec.
11422         (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
11423         * cpp.texi: Document __GNUC_PATCHLEVEL__.
11424         * cpp.1: Likewise.
11425
11426         * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
11427         default spec.
11428
11429 2000-02-15  Denis Chertykov  <denisc@overta.ru>
11430
11431         * configure.in: Add support for avr target.
11432
11433 Wed Feb 16 03:21:43 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11434
11435         * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
11436         (sh_addr_diff_vec_mode): Don't declare.
11437         * sh.c (sh_addr_diff_vec_mode): Delete.
11438
11439 Wed Feb 16 01:27:52 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11440
11441         * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
11442
11443 Wed Feb 16 00:58:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11444
11445         * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
11446         (smulsi3_highpart_i): Name.
11447         (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
11448         (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
11449         (smulsi3_highpart, umulsi3_highpart): Likewise.
11450
11451         (mulsidi3_i, umulsidi3_i): Make rtl describe operation
11452         correctly independent of endianness.
11453         (mulsidi3, umulsidi3): Now define_insn.  Hide details that
11454         confuse the optimizers.
11455         (mulsidi3+1, umulsidi3+1): New define_split.
11456
11457 Tue Feb 15 23:22:26 2000  Andrew Haley  <aph@cygnus.com>
11458
11459         * config/sh/sh.md: Guard insn splits against illegal registers.
11460         * config/sh/sh.h: Correct comment about macros.
11461
11462 Tue Feb 15 22:30:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11463                           Andrew MacLeod  <amacleod@cygnus.com>
11464
11465         * Makefile.in (lcm.o): Depend on insn-attr.h.
11466         * basic-block.h (optimize_mode_switching): Declare.
11467         * lcm.c (tm_p.h, insn-attr.h): #include.
11468         (seginfo, bb_info): New structs.
11469         (antic, transp, comp, delete, insert) : New file-scope static variables.
11470         (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
11471         (reg_becomes_live, optimize_mode_switching): Likewise.
11472         * tm.texi: Add description of mode switching macros.
11473         * toplev.c (rest_of_compilation): Call optimize_mode_switching.
11474
11475         * sh-protos.h (remove_dead_before_cse): Remove prototype.
11476         (fldi_ok, fpscr_set_from_mem): New prototypes.
11477         * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
11478         (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
11479         Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11480         (sh_flag_remove_dead_before_cse): Remove declaration.
11481         (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
11482         (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
11483         (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11484         * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11485         (barrier_align): Allow for JUMP_INSNS containing a parallel.
11486         (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
11487         (fldi_ok): New function.
11488         (get_fpscr_rtx): Add fpscr_rtx as GC root.
11489         (emit_sf_insn): Only generate fpu switches when optimize < 1.
11490         (emit_df_insn): Likewise.
11491         (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
11492         (sh_flag_remove_dead_before_cse): Delete.
11493         (get_free_reg, fpscr_set_from_mem): New functions.
11494         * sh.md (movdf, movsf): Remove no_new_pseudos code.
11495         (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11496
11497 2000-02-15  Loren Rittle  <ljrittle@acm.org>
11498
11499         * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11500
11501 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11502
11503         * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11504         cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11505
11506         * cccp.c: Include version.h and/or don't declare `version_string'.
11507         * collect2.c: Likewise.
11508         * alpha.c: Likewise.
11509         * arm/aof.h: Likewise.
11510         * arm/coff.h: Likewise.
11511         * arm/elf.h: Likewise.
11512         * arm/pe.h: Likewise.
11513         * arm/tcoff.h: Likewise.
11514         * arm/telf.h: Likewise.
11515         * arm/tpe.h: Likewise.
11516         * arm/vxarm.h: Likewise.
11517         * convex/convex.c: Likewise.
11518         * i386/dgux.c: Likewise.
11519         * i386/sun386.h: Likewise.
11520         * m88k/m88k.c: Likewise.
11521         * mcore/mcore-pe.h: Likewise.
11522         * mips/mips.h: Likewise.
11523         * romp/romp.h: Likewise.
11524         * sh/sh.c: Likewise.
11525         * cpphash.c: Likewise.
11526         * cppinit.c: Likewise.
11527         * dwarf2out.c: Likewise.
11528         * dwarfout.c: Likewise.
11529         * gcc.c: Likewise.
11530         * gcc.h: Likewise.
11531         * mips-tfile.c: Likewise.
11532         * protoize.c: Likewise.
11533         * toplev.c: Likewise.
11534         * tree.h: Likewise.
11535
11536         * version.c (version_string): Constify a char*.
11537
11538         * version.h: New file.
11539
11540 2000-02-14  Nick Clifton  <nickc@cygnus.com>
11541
11542         * configure.in: Add mcore-elf and mcore-pe targets.
11543         * configure: Regenerate.
11544
11545         * NEWS: Add note that MCore port has been contributed.
11546
11547         * invoke.texi: Document command line switches for MCore port.
11548         * install.texi: Add MCore to list of supported targets.
11549
11550 2000-02-14  Geoff Keating  <geoffk@cygnus.com>
11551
11552         * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11553         then we will need to import the frame handling functions.
11554         (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11555         to import the frames themselves.
11556
11557 Mon Feb 14 13:31:01 2000  Stan Cox  <scox@cygnus.com>
11558                           Jason Eckhardt  <jle@cygnus.com>
11559
11560         * basic_block.h: Added prototype for reorder_basic_blocks.
11561         * toplev.c: Changes to add -freorder-blocks and graph dump after
11562         block reordering is done.
11563         * flow.c (reorder_block_def): New structure for use during block
11564         reordering.
11565         (REORDER_BLOCK_*): New macros to access members of above structure.
11566         (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11567         make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11568         functions for block reordering.
11569
11570 Mon Feb 14 11:24:44 2000  Hans-Peter Nilsson  <hp@bitrange.com>
11571
11572         * gcc.texi (Passes): Fix typo.
11573         * md.texi (Standard Names): Ditto.
11574         * tm.texi (Storage Layout): Ditto.
11575
11576 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
11577
11578         * cpplib.c (do_define): Only free the old definition if it
11579         actually had one.
11580
11581 2000-02-13   Neil Booth  <NeilB@earthling.net>
11582
11583         * cppfiles.c (read_and_prescan): When emitting deferred
11584         newlines, test speccase[] again instead of checking each
11585         possible whitespace character in turn.  When we encounter \r,
11586         look behind for \n first, then ahead.
11587
11588 2000-02-13  Zack Weinberg  <zack@wolery.cumb.org>
11589
11590         * cse.c (cse_altered): New internal flag.
11591         (cse_insn): Set it if we changed an insn.
11592         (cse_main): Clear cse_altered before each basic block.
11593         Only garbage collect if cse_altered is true afterward.
11594
11595 Sun Feb 13 14:12:28 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11596
11597         * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11598
11599 Sun Feb 13 13:21:55 2000  Jeffrey A Law  (law@cygnus.com)
11600
11601         * combine.c (simplify_comparison): Fix typo.
11602
11603 Sun Feb 13 12:57:52 2000  Neil Booth <NeilB@earthling.net>
11604
11605         * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11606         consistently.
11607
11608 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11609
11610         * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11611         previously inserted node instead of root node.  Caller changed.
11612
11613 2000-02-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11614
11615         * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11616
11617 2000-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11618
11619         * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11620         __dereg_frame_dtor): Add prototype argument.
11621
11622         * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11623
11624         * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11625
11626         * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11627
11628         * gthr-vxworks.h (__gthread_once): Likewise.
11629
11630         * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11631
11632 Sat Feb 12 01:44:26 MET 2000  Jan Hubicka  <jh@suse.cz>
11633
11634         * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11635         (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11636         stack pointer in functions w/o saved registers, output LEAVE more often
11637         on TARGET_USE_LEAVE machines.
11638
11639 2000-02-07  Dmitri Makarov  <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11640
11641         * config/arm/arm.c (arm_init_cumulative_args); New function:
11642         Initlaise the CUMULATIE_ARGS strcuture for a function
11643         defintion.
11644         (arm_function_arg): New function: Determine where to place a
11645         function's argument.  Also handles deciding the function's
11646         call cookie.
11647         (current_file_function_operand): New function: Return true if
11648         the symbol is a function which has already been compiled.
11649         (arm_is_long_call_p): New function: Return true if the
11650         indicated function should be called via a long call.
11651         (arm_valid_type_attribute_p): New function: Return true if the
11652         attribute is a valid, arm specific, attribute.
11653         (arm_comp_type_attribute): New function: Return true if the
11654         two types have compatable, arm specific, attributes.
11655
11656         * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11657         structure.
11658         (FUNCTION_ARG): Redefine to call arm_function_arg.
11659         (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11660         structure field.
11661         (INIT_CUMULATIVE_ARGS): Redefine to call
11662         arm_init_cumulative_args.
11663         (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11664         field.
11665         (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11666         field.
11667         (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11668         functions.
11669         (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11670         (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11671         (COMP_TYPE_ATTRIBUTES): Define.
11672
11673         * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11674         if a long call is needed.
11675         (call_value): Call arm_is_long_call_p to decide if a long call
11676         is needed.
11677         (call_symbol): Call arm_is_long_call_p to decide if a long call
11678         is needed.
11679
11680         * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11681
11682 2000-02-11  Denis Chertykov  <denisc@overta.ru>
11683
11684         * README.AVR: New file with information about the avr ports.
11685         * config/avr: New directory with avr port files.
11686
11687 2000-02-11  Andreas Jaeger  <aj@suse.de>
11688
11689         * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11690
11691 2000-02-11  Zack Weinberg  <zack@wolery.cumb.org>
11692
11693         * cpphash.c: Fix formatting, update commentary.
11694         (dump_definition): Take three separate arguments instead of a
11695         MACRODEF structure argument.
11696         * cpphash.h: Update prototype of dump_definition.
11697         * cppinit.c (cpp_finish): Update call of dump_definition.
11698
11699         * cpplib.c (do_define): Always create new hash entry with
11700         T_MACRO type.  Remove redundant check for redefinition of
11701         poisoned identifier.  Update call of dump_definition.
11702         (do_undef): Don't call check_macro_name.  Rename sym_length to
11703         len.
11704         (do_error, do_warning): Don't use copy_rest_of_line or
11705         SKIP_WHITE_SPACE.
11706         (do_warning): Don't use pedwarn for the actual warning,
11707         only the notice about its not being in the standard.  (Fixes
11708         bug with #warning in system headers.)
11709         (do_ident): Stricter argument checking - accept only a single
11710         string after #ident.  Also, macro-expand the line.
11711         (do_xifdef): Use cpp_defined.  De-obfuscate.
11712
11713         (do_pragma): Split out specific pragma handling to separate
11714         functions.  Use get_directive_token.  Update commentary.  Do
11715         not pass on #pragma once or #pragma poison to the front end.
11716         (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11717         do_pragma_default): New.
11718
11719 Feb 11 12:30:53 2000  Jeffrey A Law  (law@cygnus.com)
11720
11721         * jump.c (jump_optimize_1): The first operand in a relational
11722         can be a CONST_INT.
11723         * optabs.c (emit_conditional_move): Handle relationals which
11724         have a known true/false result.
11725
11726 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
11727
11728         * function.c (thread_prologue_and_epilogue_insns): Don't insert
11729         a RETURN insn into a block which already ends with a jump.
11730
11731 2000-02-11  Geoff Keating  <geoffk@cygnus.com>
11732
11733         * haifa-sched.c (BUF_LEN): Increase a lot.
11734
11735 2000-02-11  Nick Clifton  <nickc@cygnus.com>
11736
11737         * configure.in: Add tm_p_file specification for thumb targets.
11738         * configure: Regenerate.
11739
11740         * config/arm/thumb-protos.h: New file: Prototypes for exported
11741         functions defined in thumb.c.
11742
11743 2000-02-11  Robert Lipe  <robertl@sco.com>
11744
11745         * Makefile.in (bootstrap-lean): Remove additional files.
11746         (bootstrap2-lean): Likewise.
11747         (VOL_FILES): List of files for above.
11748
11749 2000-02-11  Nathan Sidwell  <nathan@acm.org>
11750
11751         * cpphash.c (special_symbol): Remove spurious argument to
11752         cpp_lookup.
11753
11754 2000-02-11  Joel Sherrill (joel@OARcorp.com>
11755
11756         * configure.in: (i*86-*-rtems*): Swapped elf and coff
11757         stanzas.
11758         * configure: Rebuilt.
11759
11760 2000-02-11  Rodney Brown  <RodneyBrown@pmsc.com>
11761
11762         * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11763
11764 Fri Feb 11 02:59:05 2000  Jeffrey A Law  (law@cygnus.com)
11765
11766         * pa.c, pa.h: Remove trigraph sequences within comments.
11767
11768 Fri Feb 11 02:51:56 2000  Pavel Roskin <pavel_roskin@geocities.com>
11769
11770         * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11771
11772 Fri Feb 11 02:48:30 2000  Brad Lucier  (lucier@math.purdue.edu)
11773
11774         * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11775
11776 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11777
11778         * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11779
11780 2000-02-11  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11781
11782         * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11783         (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11784         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11785         (ASM_FILE_END): Use c4x_file_end.
11786         * config/c4x/c4x.c (c4x_global_label): New function.
11787         (c4x_external_ref, c4x_file_end): Likewise.
11788
11789         * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11790         (c4x_external_ref, c4x_end_file): Likewise.
11791
11792 2000-02-10  Zack Weinberg  <zack@wolery.cumb.org>
11793
11794         * cppexp.c: Don't include cpphash.h.
11795         (parse_charconst, cpp_lex): Use cpp_defined.
11796         (cpp_lex): Use get_directive_token throughout.  Remove
11797         unnecessary cases from switch.  Move assertion-handling code
11798         down to OTHER case.
11799         (cpp_parse_expr): If we see '+' or '-', check the context to
11800         determine if they are unary or binary operators.  Streamline
11801         the jumps a bit.  Do not call skip_rest_of_line.
11802
11803         * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11804         static.  Export get_directive_token.  Update commentary.
11805         (cpp_defined): New function.
11806         (do_define): Remove reference to T_PCSTRING.  Call
11807         free_definition to release memory for old definition, when
11808         redefining a macro.
11809         (eval_if_expression): Set only_seen_white to 0 before calling
11810         cpp_parse_expr.  Call skip_rest_of_line after it returns.
11811         (cpp_read_check_assertion): Don't preserve a pointer into the
11812         token buffer across a call to cpp_get_token.
11813
11814         * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11815         * cppfiles.c (redundant_include_p): Use cpp_defined.
11816         * cpphash.c (free_definition): New function.
11817         (delete_macro): Use it.  Update commentary.
11818         * cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
11819         free_definition.
11820         * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11821         from enum node_type.  Prototype cpp_defined and get_directive_token.
11822         Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11823
11824         * fix-header.c (check_macro_names): Use cpp_defined.
11825         (read_scan_file): Set inhibit_warnings and inhibit_errors in
11826         the options structure.
11827
11828 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11829
11830         * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11831
11832 2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
11833
11834         * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11835         rather than die->die_tag.
11836
11837 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11838
11839         * combine.c (make_extraction, force_to_mode): Avoid warning on
11840         mixed-signedness conditionals.
11841         (make_field_assignment, nonzero_bits): Likewise.
11842         * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11843         (store_split_bit_field, extract_split_bit_field): Likewise.
11844         (extract_fixed_bit_field, store_bit_field,
11845         * expr.c: Change alignment to be unsigned everywhere.
11846         (move_by_pieces, store_constructor_field, store_constructor):
11847         Alignment parm is unsigned.
11848         (emit_block_move, emit_group_load, emit_group_store): Likewise.
11849         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11850         (do_compare_rtx_and_jump): Likewise.
11851         (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11852         Compare align with GET_MODE_ALIGNMENT.
11853         (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11854         (get_inner_reference): Likewise.
11855         (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11856         (expand_assignment): Local vars for alignment now unsigned.
11857         (store_constructor, store_field, expand_expr, do_jump): Likewise.
11858         (do_compare_and_jump): Likewise.
11859         (store_field): Call new function expr_align.
11860         * expr.h (emit_block_move, emit_group_load, emit_group_store):
11861         Alignment arg now unsigned.
11862         (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11863         (do_compare_rtx_and_jump, store_bit_field): Likewise.
11864         (extract_bit_field): Likewise.
11865         * fold-const.c (add_double): Add cast to eliminate signedness warning.
11866         * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11867         (get_best_mode): Alignment arg is unsigned.
11868         * rtl.h (move_by_pieces): Likewise.
11869         * store-layout.c (maximum_field_alignment, set_alignment):
11870         Now unsigned.
11871         (layout_decl): Alignment arg is now unsigned.
11872         Remove unneeded casts.
11873         (layout_record, layout_union, layout_type): Remove unneeded casts.
11874         Local alignment variables now unsigned.
11875         (get_best_mode): Alignment arg now unsigned.
11876         * tree.c (expr_align): New function.
11877         * tree.h (expr_align): Likewise.
11878         (maximum_field_alignment, set_alignment): Now unsigned.
11879         (get_inner_reference): Alignment argument is now pointer to unsigned.
11880         * varasm.c (assemble_variable): Add cast to eliminate warning.
11881
11882 Thu Feb 10 12:56:47 2000  Jim Wilson  <wilson@cygnus.com>
11883
11884         * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11885         then store directly into op0.
11886
11887         * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11888         the CALL_INSN, and emit the note immediately after it.
11889
11890 2000-02-10  Nick Clifton  <nickc@cygnus.com>
11891
11892         * config/arm/thumb.md (epilogue): Include a (return) in the
11893         generated insn, and emit it using emit_jump_insn not
11894         emit_insn.
11895
11896 Thu Feb 10 18:28:59 MET 2000  Jan Hubicka  <jh@suse.cz>
11897
11898         * function.c (assign_temp): Change zero-sized arrays to size 1.
11899         * integrate.c (expand_inline_function): Do not update
11900         stack_alignment_needed
11901         * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11902         add some sanity checking, remove optimization for function with
11903         zero frame size.
11904
11905 2000-02-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11906
11907         * flow.c (mark_regs_live_at_end): Delete unused variables.
11908
11909         * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11910
11911         * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11912         in macro FRAME_GROWS_DOWNWARD.
11913
11914         * stmt.c (expand_end_bindings): Delete unused variable.
11915
11916         * unroll.c (iteration_info): Mark parameter `loop' with
11917         ATTRIBUTE_UNUSED.
11918
11919 2000-02-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
11920
11921         * fixinc/server.c (load_data): Return NULL if the marker line is
11922         not found.
11923         (run_shell): If load_data returns NULL, retry the command once, in
11924         a new shell.
11925
11926         * configure: Rebuilt.
11927
11928 2000-02-09  Bruce Korb  <bkorb@gnu.org>
11929
11930         * gcc/fixincludes:  ** DELETED **
11931         * gcc/fixcpp:  ** DELETED **
11932         * gcc/fixinc-nt.sed:  ** DELETED **
11933         * gcc/just-fixinc:  ** DELETED **
11934         * gcc/Makefile.in:  Removed out-dated commentary
11935         * gcc/configure.in: Removed fast-fixincludes disablement.
11936         * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11937
11938 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
11939         * function.c (thread_prologue_and_epilogue_insns): Uncomment
11940         last change.
11941
11942 2000-02-09  Richard Henderson  <rth@cygnus.com>
11943
11944         * jump.c (delete_insn): Don't delete user labels at -O0.
11945
11946 2000-02-09  Robert Lipe  <robertl@sco.com>
11947
11948         * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11949         Don't link with HOST_LIBS.
11950
11951 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
11952
11953         * configure.in: Correct --help text for --with-dwarf2.
11954         Put tm-dwarf2.h after other tm files, if it's requested.
11955         * configure: Regenerate.
11956         * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11957         defining it.
11958
11959 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
11960
11961         * cpplib.h: Provide HASHNODE typedef and forward decl of
11962         struct hashnode only.  Kill cpp_hashnode typedef.  MACRODEF,
11963         DEFINITION, struct hashnode, struct macrodef, struct
11964         definition, scan_decls prototype, default defn of
11965         INCLUDE_LEN_FUDGE moved elsewhere.
11966
11967         * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11968         definition, and struct hashnode moved here. Remove the unused
11969         'predefined' field from struct definition.  Replace the 'args'
11970         union with its sole member.  All users updated (cpphash.c).
11971         Delete HASHSTEP and MAKE_POS macros, and hashf prototype.  Add
11972         multiple include guard.
11973
11974         * cpphash.c (hashf): Make static; use better algorithm; drop
11975         HASHSIZE parameter; return an unsigned int.
11976         (cpp_lookup): Drop HASH parameter.  PFILE parameter is
11977         used. Calculate HASHSIZE modulus here.
11978         (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11979         here.
11980         (create_definition): Drop PREDEFINITION parameter.
11981         * cpplib.c (do_define): Don't calculate a hash value here.
11982         Don't pass (keyword == NULL) to create_definition.
11983
11984         * scan.h: Prototype scan_decls here.
11985         * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11986         * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11987         callers of cpp_lookup and cpp_install updated.
11988
11989         * cpphash.c (macarg): Hoist all the flag diddling out of the
11990         function...
11991         (macroexpand): ... and out of the loop that calls macarg.
11992         Skip over the initial paren before macro arguments with
11993         cpp_get_non_space_token; point may be some distance before
11994         that paren.  Abort if it's not there.
11995
11996         * cpplib.c (parse_clear_mark): Delete function.
11997         (parse_set_mark, parse_goto_mark): Make static.
11998         (ACTIVE_MARK_P): New macro.
11999         (skip_block_comment, skip_line_comment): Do not bump the line
12000         if ACTIVE_MARK_P is true.
12001         (cpp_pop_buffer): The buffer to be popped may not have an
12002         active mark.
12003         (cpp_get_token): When looking for the initial paren before
12004         macro arguments, only set a mark in a file buffer, Always
12005         return to that mark before proceeding to call macroexpand or
12006         return a NAME token.
12007
12008         * cpplib.h: Remove prototypes of parse_set_mark,
12009         parse_clear_mark, parse_goto_mark.
12010         (struct cpp_options): Rename 'put_out_comments' to
12011         'discard_comments' and invert its sense.
12012         * cppinit.c, cpphash.c, cpplib.c: All users of
12013         put_out_comments changed to use discard_comments, with
12014         opposite sense.
12015
12016 2000-02-09  Clinton Popetz  <cpopetz@cygnus.com>
12017
12018         * function.c (thread_prologue_and_epilogue_insns): Don't delete
12019         the edge from a block that both jumps and falls through to the
12020         fallthru block.
12021
12022 2000-02-09  Scott Bambrough  <scottb@netwinder.org>
12023
12024         * config/arm/arm.md (movsi): In PIC mode, make sure that a
12025         constant source address is legitimate.
12026
12027 2000-02-09  Philip Blundell  <pb@futuretv.com>
12028
12029         * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
12030         correctly.
12031
12032         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
12033         generating PIC.
12034         (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
12035
12036 2000-02-09  Zack Weinberg  <zack@wolery.cumb.org>
12037
12038         * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
12039         ends with a newline and a NUL.  Don't be so clever manipulating
12040         strings.
12041
12042 Wed Feb  9 14:18:08 MET 2000  Jan Hubicka  <jh@suse.cz>
12043
12044         * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
12045         not to BIGGEST_ALIGNMENT.
12046
12047 2000-02-08  Geoff Keating  <geoffk@cygnus.com>
12048
12049         * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
12050         * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
12051         (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
12052         (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
12053         * frame.c (execute_cfa_insn): Handle
12054         DW_CFA_GNU_negative_offset_extended.
12055
12056 2000-02-08  Richard Henderson  <rth@cygnus.com>
12057
12058         * flow.c (tidy_fallthru_edges): Split out from ...
12059         (delete_unreachable_blocks): ... here.
12060         (find_basic_blocks): Use it.
12061
12062 Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12063
12064         * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
12065
12066 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
12067
12068         * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
12069         (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
12070         (fix-header.o): Don't depend on cpphash.h.
12071
12072         * scan.c (hashstr): New function.
12073         * scan.h: Prototype it.
12074         * fix-header.c: Don't include cpphash.h.  Use hashstr.
12075         * gen-protos.c: Don't include cpphash.h or cpplib.h.  Use
12076         hashstr.  Report hash table statistics.  Add private
12077         definition of xrealloc.
12078
12079 2000-02-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12080
12081         * i386.h (TARGET_SWITCHES): Fix typo in option name.
12082
12083 2000-02-08  Clinton Popetz  <cpopetz@cygnus.com>
12084
12085         * function.c (thread_prologue_and_epilogue_insns): Don't replace
12086         jumps with returns unless they are jumps to the fallthru block.
12087
12088 Tue Feb  8 07:53:55 2000  Jan Hubicka  <jh@suse.cz>
12089
12090         * i386.md (addqi3_cc): Fix contraints.
12091
12092 Tue Feb  8 01:39:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12093
12094         * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
12095
12096 2000-02-07  Mark Mitchell  <mark@codesourcery.com>
12097
12098         * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
12099         carriage return after a macro name.
12100
12101 2000-02-07  Fred Fish  <fnf@be.com>
12102
12103         * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
12104         so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
12105
12106 2000-02-07  Zack Weinberg  <zack@wolery.cumb.org>
12107
12108         * cppfiles.c (deps_output): Count spacers in deps_column.
12109
12110 2000-02-07  Neil Booth  <NeilB@earthling.net>
12111
12112         * cppinit.c (initialize_dependency_output): If there is no
12113         suffix, don't try to look for known suffixes.  Use strrchr.
12114         (cpp_start_read): Remove duplicate initialization.
12115
12116 Mon Feb  7 18:36:41 MET 2000  Jan Hubicka  <jh@suse.cz>
12117
12118         * calls.c (compute_argument_block_size): New argument
12119         preferred_stack_boundary.
12120         (expand_call): update cfun->preferred_stack_boundary, update call of
12121         compute_argument_block_size
12122         (emit_library_call): Increate cfun->preferred_stack_boundary
12123         to PREFERRED_STACK_BOUNDARY
12124         (emit_library_call_value): Likewise.
12125         * explow.c (allocate_dynamic_stack_spave): Likewise.
12126         * function.c (prepare_function_start): Set
12127         cfun->preferred_stack_boundary
12128         * function.h (struct function): Add preferred_stack_boundary field.
12129         * integrate.c (expand_inline_function): Update
12130         cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
12131         (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
12132         * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
12133
12134 2000-02-06  Zack Weinberg  <zack@wolery.cumb.org>
12135
12136         * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
12137         cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
12138         cpp_pedwarn, cpp_pedwarn_with_line,
12139         cpp_pedwarn_with_file_and_line): Move to cpperror.c.
12140         (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
12141         v_cpp_error_with_line, v_cpp_warning_with_line,
12142         cpp_message_from_errno, cpp_perror_with_name): Delete.
12143
12144         * cpperror.c (cpp_print_containing_files): Take starting
12145         buffer as argument.
12146         (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
12147         (v_cpp_message): Now called directly by all entry points.
12148         Remove -1 case.
12149         (cpp_pfatal_with_name, cpp_message): Delete.
12150         (cpp_notice_from_errno, cpp_ice): New functions.
12151         (cpp_notice): Is now for reporting error conditions, just
12152         without an associated file.
12153         (cpp_error, cpp_error_with_line): Don't do anything if
12154         opts->inhibit_errors is on.
12155         (cpp_pedwarn_with_file_and_line): Take column argument also.
12156
12157         * cpplib.h: Update prototypes of exported functions.
12158         (struct cpp_options): Add inhibit_errors.
12159
12160         * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
12161         non-error messages.  Include intl.h.
12162
12163         * cppinit.c, cppmain.c: Likewise.  Also, use
12164         cpp_notice_from_errno instead of cpp_perror_with_name or
12165         cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
12166
12167         * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
12168         report internal errors.
12169
12170         * cpplib.c (do_define): Switch bcopy to memcpy.
12171         Give cpp_pedwarn_with_file_and_line a dummy column argument.
12172
12173         * cpplib.c (copy_rest_of_line): Revert previous change: don't
12174         bail out early if we hit a line comment.
12175
12176 2000-02-06  Richard Henderson  <rth@cygnus.com>
12177
12178         * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
12179         * basic-block.h: Declare them.
12180         * emit-rtl.h (active_insn_p): New.
12181         (next_active_insn, prev_active_insn): Use it.
12182         * rtl.h: Declare it.
12183         * function.c (emit_return_into_block): New.
12184         (thread_prologue_and_epilogue_insns): Insert return insns instead
12185         of epilogues when possible.
12186         * jump.c (jump_optimize_1): Remove code to insert a return insn
12187         on the fallthru to the exit block.
12188
12189         * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
12190         and for non-empty stack frames.
12191         * i386.md (return): Expand to return-pop as needed.
12192
12193 2000-02-06  Richard Henderson  <rth@cygnus.com>
12194
12195         * simplify-rtx.c (simplify_relational_operation): Canonicalize
12196         constant to op1 for testing.
12197
12198 2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12199
12200         * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
12201         (fixuns_truncqfqi2): Use it.
12202
12203 2000-02-06  Richard Henderson  <rth@cygnus.com>
12204
12205         * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
12206         as a TYPE_LEA insn.
12207
12208         * i386.md (widening and peepholes): Mask the constant instead of
12209         using gen_lowpart.
12210
12211 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
12212
12213         * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
12214         input pointer before possibly branching off to the backslash
12215         code.
12216         * cpphash.c (macroexpand): Correctly delete \r escapes when
12217         stringifying parameters.
12218         * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
12219         if we can; bail out early if we hit a line comment.
12220         (handle_directive): Treat '# 123' in an .S file just like
12221         '# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
12222         Return 1 for '# not_a_directive'.
12223         (get_directive_token): Pop macro buffers here, so that
12224         cpp_get_token can't sneakily move past a newline.
12225         Add sanity checks.
12226         (cpp_get_token): goto randomchar if handle_directive returns 0.
12227
12228         * cppalloc.c: Update copyright.
12229         * cpplib.c: Merge all the static function prototypes into one
12230         block.
12231         * cpplib.h: Remove #if 0 block.
12232
12233         * cpperror.c: Remove #ifdef EMACS block.
12234         * cppmain.c: Likewise.
12235         * cpphash.c: Remove #if 0 blocks.
12236         * cppinit.c: Remove #if 0 blocks, and the -lint option.
12237         * cpplib.c: Remove #if 0 blocks and code referencing
12238         pcp_inside_if or for_lint.  Remove duplicate error message.
12239         Fix error messages for #else after #else or #elif.  Reformat.
12240         Remove archaic TODO list.
12241         * cpplib.h: Remove pcp_inside_if and for_lint flags.
12242
12243 2000-02-05  Zack Weinberg  <zack@wolery.cumb.org>
12244
12245         * i386/osf1elf.h: Add missing backslash to multiline string.
12246
12247 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12248
12249         * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
12250
12251 2000-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12252
12253         * Makefile.in (c-common.o): Depend on $(EXPR_H).
12254
12255         * c-common.c: Include expr.h.
12256
12257         * c-pragma.c (mark_align_stack): Add prototype.
12258
12259         * caller-save.c (add_stored_regs): Likewise.
12260
12261         * combine.c (record_promoted_value): Likewise.
12262
12263         * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
12264         Likewise.
12265
12266         * cppinit.c (new_pending_define): Likewise.
12267
12268         * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
12269
12270         * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
12271         AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12272         AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
12273         class_scope_p): Likewise.
12274
12275         * dwarf2out.h (dwarf2out_set_demangle_name_func,
12276         dwarf2out_add_library_unit_info): Likewise.
12277
12278         * ggc.h (ggc_page_print_statistics): Likewise.
12279
12280         * haifa-sched.c (propagate_deps): Likewise.
12281
12282         * reg-stack.c (next_flags_user, record_label_references): Likewise.
12283
12284         * rtl.h (set_stack_check_libfunc): Likewise.
12285
12286         * toplev.h (set_fatal_function): Likewise.
12287
12288         * toplev.c (set_fatal_function): Delete prototype.
12289
12290         * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
12291
12292 2000-02-05  Geoff Keating  <geoffk@cygnus.com>
12293
12294         * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
12295         (FUNC_END): Likewise.
12296
12297 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12298
12299         * caller-save.c: Include tm_p.h.
12300
12301 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12302
12303         * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
12304
12305 2000-02-04  Neil Booth  <NeilB@earthling.net>
12306
12307         * cccp.c (main): Check 'dir' for a NULL pointer before passing
12308         it to strcmp.
12309
12310 2000-02-04  Zack Weinberg  <zack@wolery.cumb.org>
12311
12312         * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
12313         * genflags.c: Use the max_operand_1 logic from genemit.c to
12314         calculate how many arguments gen_insn prototypes have.  Remove
12315         NO_MD_PROTOTYPES ifdefs from the generated file.
12316         * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
12317         file.  Cast gen_insn initializers to insn_gen_fn.
12318         * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
12319         * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
12320
12321 2000-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12322
12323         * fixinc/Makefile.in (HDR): Add machname.h.
12324         (clean): Likewise.
12325
12326 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12327
12328         * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
12329         (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
12330         (c4x_cpu_version): Ditto.
12331         * config/c4x/c4x-protos.h: ... here.
12332
12333 2000-02-04  Jason Merrill  <jason@casey.cygnus.com>
12334
12335         * dwarf2out.c (add_abstract_origin_attribute): Don't call
12336         gen_abstract_function on our context if we're a nested function.
12337
12338 2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12339
12340         * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
12341         * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
12342
12343 2000-02-04  Bruce Korb  <bkorb@gnu.org>
12344
12345         * fixinc/genfixes(machname.h):
12346         Move the functionality from gen-machine.h into this file.
12347         UNdef MN_NAME_PAT if there are no names to change.
12348         Also, be a little kinder when AutoGen is not present.
12349
12350         * fixinc/Makefile.in(machname.h):
12351         Change the generation rule to use genfixes.
12352
12353         * fixinc/fixfixes.c(machine_name):
12354         machine_name_fix's functionality now dependent upon whether
12355         MN_NAME_PAT is defined.
12356
12357         * fixinc/fixtests.c(machine_name):
12358         ditto.
12359
12360         * fixinc/fixlib.c(mn_get_regexps): conditional on definition
12361         of MN_NAME_PAT.
12362
12363         * fixinc/fixlib.h(mn_get_regexps):
12364         ditto
12365
12366         * fixinc/gen-machine.h: DELETED
12367
12368 2000-02-04  Jan Hubicka  <jh@suse.cz>
12369             Richard Henderson  <rth@cygnus.com>
12370
12371         * i386.c (SAVE_REGS_FIRST): Remove.
12372         (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
12373         (ix86_compute_frame_size): Likewise.
12374         (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
12375         (ix86_emit_restore_regs): Remove.
12376         (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
12377         when a frame pointer is in use.
12378         (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
12379         instead of pop to restore a register when profitable; emit leave
12380         when profitable.
12381         (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
12382         as a TYPE_LEA insn.
12383         (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
12384         * i386.md (prologue_allocate_stack): Remove.
12385         (epilogue_deallocate_stack): Remove.
12386         (pro_epilogue_adjust_stack): New.
12387
12388 2000-02-04  Richard Henderson  <rth@cygnus.com>
12389
12390         * function.c (diddle_return_value): Rework to use a callback function.
12391         Use current_function_return_rtx if it's been set up.
12392         (do_clobber_return_reg, clobber_return_register): New.
12393         (do_use_return_reg, use_return_register): New.
12394         (expand_function_end): Use them.
12395         * stmt.c (expand_null_return): Likewise.
12396         * function.h: Declare them.
12397         * flow.c (mark_regs_live_at_end): Use diddle_return_value.
12398         (mark_reg): Change arguments as appropriate for callback.
12399         * integrate.c (expand_inline_function): Revert 19 Jan change.
12400
12401 Fri Feb  4 20:25:42 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12402
12403         * tm.texi (Values in Registers): Fix typo: "fo" "for".
12404         (Misc): Say the scheduler, not the Haifa scheduler.
12405
12406 2000-02-04  Clinton Popetz  <cpopetz@cygnus.com>
12407
12408         * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
12409         when in_mem is set.  Update all callers.
12410
12411 2000-02-04  Richard Henderson  <rth@cygnus.com>
12412
12413         * i386/openbsd.h (INT_ASM_OP): Define.
12414
12415 Fri Feb  4 10:51:30 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12416
12417         * tm.texi: Fix various typos.
12418
12419 Thu Feb  3 17:17:32 2000  Steve Ellcey <sje@cup.hp.com>
12420
12421         * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
12422         (MD_STARTFILE_PREFIX_1): New macro.
12423
12424 Thu Feb  3 15:08:13 MET 2000  Jan Hubicka  <jh@suse.cz>
12425
12426         * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
12427         destination when needed.
12428         (strmovsi, strsetsi): New expander.
12429         (strmovsi_1, strsetsi_1): New pattern.
12430         * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
12431         TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
12432         (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
12433         * invoke.texi (align-stringops, inline-all-stringops): Document.
12434
12435 Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>
12436
12437         * i386/netbsd.h (INT_ASM_OP): Define.
12438
12439 2000-02-02  Zack Weinberg  <zack@wolery.cumb.org>
12440
12441         * cpplib.h (cpp_reader): Add new flag, no_directives.
12442         * cpphash.c (macarg): Set it.
12443         * cpplib.c (handle_directive): If no_directives is on and we
12444         find a directive, issue an error and discard the line.
12445
12446 Wed Feb  2 13:07:10 2000  Jim Wilson  <wilson@cygnus.com>
12447
12448         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
12449         FP constants.  Add ! TARGET_FPU check for FP constants.
12450
12451 2000-02-02  Clinton Popetz  <cpopetz@cygnus.com>
12452
12453         * flow.c (find_basic_blocks): Don't kill label_value_list
12454         here.
12455         (cleanup_cfg): Kill it here.
12456
12457 Wed Feb  2 08:12:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12458
12459         * expr.c (store_field): Ensure ALIGN is no stricter than the
12460         alignment of EXP.
12461
12462 2000-02-02  Richard Henderson  <rth@cygnus.com>
12463
12464         * jump.c (delete_insn): Partially revert 19 Jan change;
12465         don't convert unused code labels to notes at -O0.
12466
12467 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12468
12469         * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
12470         split_all_insns to recreate REG_LABEL notes for flow2 pass.
12471
12472 2000-02-01  Richard Henderson  <rth@cygnus.com>
12473
12474         * i386.c (general_no_elim_operand): New.
12475         (nonmemory_no_elim_operand): New.
12476         (ix86_expand_move): Copy eliminable operands before a push.
12477         * i386-protos.h: Declare new functions.
12478         * i386.h (CAN_ELIMINATE): Simplify.
12479         (PREDICATE_CODES): Update.
12480         * i386.md (push insns): Don't allow eliminable register operands.
12481
12482 2000-02-01  Richard Henderson  <rth@cygnus.com>
12483
12484         * flow.c (mark_regs_live_at_end): Follow expand_function_end and
12485         replace BLKmode with DECL_RTL's mode.
12486
12487 2000-02-01  Zack Weinberg  <zack@wolery.cumb.org>
12488
12489         * frame.c (find_fde): Convert for loop to do-while so compiler
12490         sees it's always executed at least once.
12491         * libgcc2.c (BBINBUFSIZE): Kill.
12492         (__bb_init_prg): Use fgets.
12493         (__bb_exit_trace_func): Don't paste strings.
12494         * unroll.c (unroll_loop): Initialize unroll_type, not
12495         unroll_number, and tweak logic to match.
12496
12497         * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12498         all failure paths.
12499         (ix86_flags_dependant): Likewise.  Disentangle control flow.
12500         (ix86_sched_reorder): Break guts out to
12501         ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12502         (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12503         any possible use.
12504
12505         * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12506         use string concatenation.  Don't save and restore esi.
12507
12508         * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12509         (machname.h): Remove script to separate file.  Use two-step
12510         sequence so target is not created if script fails.
12511         * fixinc/gen-machname.h: New file.  Handle case where no non-reserved
12512         identifiers are defined.
12513         * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12514         an empty string, machine_name doesn't need to do anything at
12515         all.
12516         (is_cxx_header): Add more cases to regexp.
12517         * fixinc/fixlib.h: Update prototype.
12518         * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12519         mn_get_regexps.
12520         * fixinc/fixincl.c: Define NO_BOGOSITY.
12521
12522         * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12523         (hp_sysfile): Add missing comma.
12524         (math_exception): Put the wrapper ifdefs at the beginning and
12525         the end of the file.
12526         * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12527
12528 2000-02-01  Richard Henderson  <rth@cygnus.com>
12529
12530         * sparc.c (fp_zero_operand): Turn into a normal predicate.
12531         Use CONST0_RTX.  Update all callers.
12532         * sparc.h, sparc-protos.h: Update accordingly.
12533         * sparc.md (fp mov insns): Use fp_zero_operand directly
12534         where applicable.
12535
12536 Wed Feb  2 02:59:45 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12537
12538         * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12539         example.
12540
12541 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12542
12543         * Makefile.in (specs.ready): New target.
12544         (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12545
12546 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12547
12548         * fixinc.irix: Use unique filenames for writing into /tmp,
12549         * fixinc.ptx: Likewise.
12550         * fixinc.sco: Likewise.
12551         * fixinc.svr4: Likewise.
12552         * fixinc.winnt: Likewise.
12553
12554 2000-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12555
12556         * tsystem.h: New file.
12557
12558         * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12559         s-crtS): Depend on tsystem.h.
12560
12561         * crtstuff.c: Include tsystem.h.
12562         * frame.c: Likewise.
12563         * libgcc2.c: Likewise.
12564
12565 Tue Feb  1 19:53:27 CET 2000  Jan Hubicka  <jh@suse.cz>
12566
12567         * builtins.c (expand_builtin_memset): Expand for variable sized
12568         lengths too.
12569
12570 2000-02-01  David Billinghurst <David.Billinghurst@riotinto.com.au>
12571
12572         * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12573         on ABI.
12574
12575 Tue Feb  1 00:57:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
12576
12577         * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12578
12579         * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12580
12581 2000-01-31  Chandra Chavva <cchavva@cygnus.com>
12582
12583         * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12584         case 3->2 combining (combining with splitting) in which 2 is CC0
12585         setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12586         checked at the begining of the function with the aid of calling
12587         function 'can_combine_p'.
12588
12589 2000-01-31  Dave Brolley  <brolley@redhat.com>
12590
12591         * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12592
12593 2000-01-31  Jason Merrill  <jason@casey.cygnus.com>
12594
12595         * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12596         new label.
12597
12598 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12599
12600         * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12601
12602         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12603         PROTO -> PARAMS.
12604
12605 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
12606
12607         * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12608         i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12609         i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12610         i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12611         i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12612         i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12613         i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12614         i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12615         i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12616         Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12617
12618         * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12619         Add %(cpp_cpu) to CPP_SPEC.
12620
12621         * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12622         Add %(cc1_cpu) to CC1_SPEC.
12623
12624 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
12625
12626         * c-decl.c (c_decode_option): Accept optional numeric argument to
12627         -Wformat and set warn_format.
12628         * c-common.c: Don't emit warning about non-constant printf format
12629         string unless warn_format > 1.
12630
12631 2000-01-30  Richard Henderson  <rth@cygnus.com>
12632
12633         * alpha.md (return_internal): Allow after reload only.
12634
12635 2000-01-30  Richard Henderson  <rth@cygnus.com>
12636
12637         * i386.c (ix86_compute_frame_size): Omit padding1 if the
12638         local frame size is zero.
12639
12640 2000-01-30  Richard Henderson  <rth@cygnus.com>
12641
12642         * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12643         * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
12644         * alpha.md (return): Turn into an expander.
12645         (return_internal): Don't use $26.
12646         (epilogue): Emit the return insn.
12647
12648 2000-01-30  Richard Henderson  <rth@cygnus.com>
12649
12650         * alpha.md (negtf2, abstf2): Fix word order thinko.
12651         (extendsftf2): New.
12652         (trunctfsf2): Avoid intermediate rounding errors.
12653
12654 2000-01-30  Zack Weinberg  <zack@wolery.cumb.org>
12655
12656         * cppfiles.c (find_position): Drop 'colp' argument, return the
12657         new line base.
12658         (read_and_prescan): Adjust to match.  Don't ever manipulate
12659         line or line_base except via find_position.
12660
12661 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
12662
12663         * c-parse.in: Apply Ulrich's changes from c-parse.y.
12664         * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12665         Regenerate.
12666
12667 2000-01-29  Zack Weinberg  <zack@wolery.cumb.org>
12668
12669         * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12670         just print "<command line>".  If 'filename' is null or an
12671         empty string, print "<stdin>" for the filename.
12672         * cpplib.c (do_define): Don't print the 'location of the
12673         previous definition' message if we're still parsing the
12674         command line.
12675         (cpp_pedwarn_with_file_and_line): Always call
12676         cpp_file_line_for_message.
12677
12678 2000-01-29  Mark Mitchell  <mark@codesourcery.com>
12679
12680         * flow.c (mark_regs_live_at_end): Fix typo.
12681
12682 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
12683
12684         * c-common.c: Adjust variable names, comments, help strings to c99.
12685         * c-lex.c: Likewise.
12686         * c-parse.y: Likewise.
12687         * c-tree.h: Likewise.
12688         * cccp.c: Likewise.
12689         * cpplib.h: Likewise.
12690         * c-decl.c: Likewise.  Recognize options with names "*99" as well.
12691         * cppinit.c: Likewise.
12692
12693 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12694
12695         * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12696         * c4x.c: Define the optab rtx values.
12697         (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12698         (c4x_emit_libcall): Use new optab rtx values.
12699         (c4x_emit_libcall3): Likewise.
12700         (c4x_emit_libcall_mulhi): Likewise.
12701         * c4x-protos.h: Add prototypes for optab rtx values and change
12702         prototypes for above c4x_emit_libcall functions.
12703
12704 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12705
12706         * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12707         syntax is used.
12708         (c4x_function_prologue): Use regnames intead of float_reg_names when
12709         TI syntax is used.
12710         (c4x_function_epilogue): Likewise.
12711         (c4x_print_operand): Likewise.
12712         * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12713         * c4x.md (set_high): Disable for TARGET_TI.
12714
12715 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12716
12717         * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12718         of framepointer + constant to ADDR_REGS class.
12719         * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12720         * c4x.c (std_or_reg_operand): New function.
12721         * c4x-protos.h (std_or_reg_operand): Prototype it.
12722
12723 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12724
12725         * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12726                 object names as libgcc2.c.
12727         * libgcc.S: Use newly defined names.
12728
12729 Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
12730         * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12731         function.
12732         * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12733         * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12734         (FLOW_LOOP_LAST_BLOCK): Likewise.
12735
12736 2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12737
12738         * basic-block.h (struct loop): New fields 'first' and 'last'.
12739         * flow.c (flow_loops_find): Compute loop->first and loop->last.
12740         (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12741         and loop->last to check for NOTE_INSN_LOOP_END.
12742
12743 Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>
12744
12745         * predict.c (estimate_probability): Use the new FIRST and LAST fields
12746         of the loop descriptor rather than HEADER and LATCH. Also added
12747         missing break statements as well making some coding style modifications
12748         as suggested by Michael Hayes.
12749
12750 2000-01-28  Richard Henderson  <rth@cygnus.com>
12751
12752         * flow.c (find_basic_blocks): Remove do_cleanup argument.
12753         Break out that code ...
12754         (cleanup_cfg): ... here.
12755         (commit_one_edge_insertion): Detect a return instruction being
12756         emitted to an edge.  Emit a barrier following; clear fallthru.
12757         (commit_edge_insertions): Verify CFG consistency.
12758         * function.c (expand_function_start): Kill unused variable.
12759         (expand_function_end): Likewise.
12760         (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12761         to insert the epilogue.
12762
12763         * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12764         (delete_null_pointer_checks): Likewise.
12765         * output.h: Likewise.
12766         * reg-stack.c (reg_to_stack): Likewise.
12767         * toplev.c (rest_of_compilation): Likewise.  Run
12768         thread_prologue_and_epilogue_insns after rebuilding the CFG.
12769
12770 2000-01-28  Richard Henderson  <rth@cygnus.com>
12771
12772         * Makefile.in (flow.o): Revert 24 Jan change.
12773         * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
12774         FUNCTION_VALUE result to DECL_RESULT's mode.
12775
12776         * haifa-sched.c (schedule_insns): Don't recompute reg info
12777         after reload.
12778
12779 2000-01-28  Zack Weinberg  <zack@wolery.cumb.org>
12780
12781         * configure.in: Make --enable-cpplib the default.
12782         * configure: Regenerate.
12783         * gcc.dg/990119-1.c: No longer expected to fail.
12784
12785 2000-01-28  Bernd Schmidt  <bernds@cygnus.co.uk>
12786
12787         * jump.c (jump_optimize_1): Delete an optimization that is also done
12788         by merge_blocks in flow.
12789
12790 2000-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12791
12792         * diagnostic.c (build_message_string, output_printf,
12793         line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12794         (build_location_prefix): Fix non-literal format string.
12795
12796 2000-01-27  Richard Henderson  <rth@cygnus.com>
12797
12798         * alpha.md (trunctfsf2): New.
12799
12800 2000-01-27  Andrew Hobson  <ahobson@eng.mindspring.net>
12801
12802         * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12803
12804 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
12805
12806         * cppinit.c (cpp_handle_option): Recognize C++ comments under
12807         -std=gnu89.
12808         * cpplib.c (skip_block_comment, skip_line_comment): Split code
12809         out of...
12810         (skip_comment) ... here.  Permit C++ comments in system
12811         headers always.  Warn about C++ comments in user code under
12812         -std=gnu89 -pedantic.
12813         (copy_comment): Use skip_comment.
12814         (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12815         return EOF.
12816         (consider_directive_while_skipping, do_else, do_endif): Call
12817         validate_else unconditionally.
12818         (validate_else): Check CPP_PEDANTIC here.  Accept non-comment
12819         text after the conditional in a system header.
12820         * cpplib.h (struct cpp_buffer): Add flag
12821         warned_cplusplus_comments.
12822
12823 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
12824
12825         * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12826         Use unshare_all_rtl_1.
12827         (unshare_all_rtl_again): New function.
12828         (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12829
12830         * function.c (purge_addressof_1): Use unshare_all_rtl_again
12831         rather than resetting the 'used' flags ourself.
12832
12833         * toplev.c (rest_of_compilation): Add current_function_decl
12834         to the unshare_all_rtl call.
12835         * tree.h: Prototype unshare_all_rtl.
12836         * rtl.h: Prototype unshare_all_rtl_again here.
12837
12838 2000-01-27  Geoffrey Keating  <geoffk@cygnus.com>
12839
12840         * genoutput.c (output_prologue): Include ggc.h in generated
12841         files.
12842         * Makefile.in (insn-output.o): Depends on ggc.h.
12843
12844 2000-01-27  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
12845             Hans-Peter Nilsson  <hp@bitrange.com>
12846
12847         * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12848         Remove redundant include of xm-ns32k.h.
12849         * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12850         Remove redundant include of xm-ns32k.h.
12851         * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12852         Remove redundant include of xm-ns32k.h.
12853         * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12854
12855         * ns32k/ns32k.h: Update comment on multiply-add instructions.
12856         (TARGET_SWITCHES): Add documentation strings.
12857         (DWARF_FRAME_REGNUM): Override default definition.
12858         (REG_CLASS_CONTENTS): Add comments.
12859         (SUBSET_P): Format to reduce line length.
12860         (SMALL_REGISTER_CLASSES): Make a run time option.
12861         (GO_IF_NONINDEXED_ADDRESS): Reformat.
12862         (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12863         dereferencing it.  Braces to avoid "ambiguous else" were misplaced.
12864         (regclass_map): fix typo in comment.
12865         * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12866         Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12867         (trace, reg_or_mem_operand): Delete, unused function.
12868         (calc_address_cost): Small offsets are cheaper than large ones.
12869         (expand_block_move): Generate more efficient code when bytes is a
12870         known at compile time.
12871         * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12872         (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12873         instead of reg_or_mem_operand.
12874
12875         * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12876         not general_operand.  Similarly use "=rm" or stricter, not "=g".
12877         For input operands, use stricter constraints than "g" if not
12878         general_operand.  Similarly use stricter predicate than
12879         "general_operand" when stricter constraints than "g" are present,
12880         except for matching constraints.
12881         (movstrsi): Use "memory_operand" for operands 0 and 1.
12882         (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12883         (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12884         not reg_or_mem_operand.
12885         (udivmoddisi4): Ditto.
12886         Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12887         Use nonimmediate_operand for operand 3, not register_operand.
12888         (udivmoddiqi4_internal): Use register_operand for operand 1, not
12889         reg_or_mem_operand.
12890
12891 2000-01-27  Fred Fish  <fnf@be.com>
12892
12893         * gthr-posix.h: Fix typo; compatibily -> compatibility.
12894         * gthr-single.h: Likewise.
12895         * gthr-solaris.h: Likewise.
12896         * gthr-vxworks.h: Likewise.
12897         * gthr-win32.h: Likewise.
12898         * gthr.h: Likewise.
12899
12900 2000-01-27  Zack Weinberg  <zack@wolery.cumb.org>
12901
12902         * cppinit.c: Add " (cpplib)" to end of string printed by
12903         -v / --version.
12904
12905 2000-01-27  Richard Henderson  <rth@cygnus.com>
12906
12907         * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12908         testing for a signed comparison.
12909         (alpha_emit_floatuns): New.
12910         * alpha-protos.h: Declare it.
12911         * alpha.md (floatunsdisf2, floatunsdidf2): New.
12912         (extendsfdf2): Tidy.
12913
12914 2000-01-27  Jakub Jelinek  <jakub@redhat.com>
12915
12916         * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12917         no -g option specifying debugging format, default to -gstabs+.
12918
12919 Wed Jan 26 22:19:14 1999  J"orn Rennecke  <amylaar@cygnus.co.uk>
12920
12921         * calls.c (special_function_p): New argument fork_or_exec.
12922         (expand_call): When profile_arc_flag is set and the function
12923         is in the fork_or_exec group, call __bb_fork_func first.
12924         * libgcc2.c, _bb module (__bb_fork_func): New function.
12925         (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12926         output file.
12927         * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12928         * tree.h (special_function_p): Update prototype.
12929
12930 2000-01-26  Richard Henderson  <rth@cygnus.com>
12931
12932         * alpha.c (alpha_split_tfmode_pair): New.
12933         * alpha-protos.h: Declare it.
12934         * alpha.md (abstf2, negtf2): New.
12935         (movtf insn): Add input G constraint.
12936         (movtf splitter): Use alpha_split_tfmode_pair.
12937
12938 2000-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12939
12940         * i386/cygwin.h: PROTO -> PARAMS.
12941
12942 2000-01-26  Jakub Jelinek  <jakub@redhat.com>
12943
12944         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12945         TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12946         using _Qp_cmp/_Q_cmp and testing the return value.
12947         (print_operand): Call reverse_condition_maybe_unordered if
12948         we are handling CCFPmode or CCFPEmode.
12949         Handle ORDERED, UN* and LTGT comparisons.
12950         * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12951         if not TARGET_HARD_QUAD.
12952         (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12953         bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12954         Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12955         Adjust gen_b* calls so that they reflect return comparison of
12956         sparc_emit_float_lib_cmp.
12957
12958 2000-01-26  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
12959
12960         * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12961         incoming operands array is large enough for one more operand.
12962         (alpha_emit_xfloating_arith): Likewise.
12963
12964 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
12965
12966         * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12967         file with one line and no trailing newline.
12968         Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12969         * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12970         checking if the match is on the line.
12971         * fixinc/gnu-regex.c: Provide regerror not __regerror.
12972
12973 2000-01-25  Richard Henderson  <rth@cygnus.com>
12974
12975         * sparc.c (output_cbranch): Fix accidental squashing of the
12976         fp branch pre-delay nop.
12977
12978 2000-01-25  Richard Henderson  <rth@cygnus.com>
12979
12980         * tree.def (UNNE_EXPR): Remove.
12981         * c-typeck.c (build_binary_op): Don't handle it.
12982         * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12983
12984         * rtl.def (UNNE): Remove.
12985         (LTGT): Add.
12986         * jump.c (reverse_condition): Update accordingly.
12987         (swap_condition): Likewise.
12988         (comparison_dominates_p): Handle unordered comparisons.
12989         (reverse_condition_maybe_unordered): New.
12990         * rtl.h (reverse_condition_maybe_unordered): Declare.
12991
12992         * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12993         (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12994         * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
12995         * sparc.md (bltgt): New.
12996
12997 2000-01-25  Nick Clifton  <nickc@redhat.com>
12998
12999         * emit-rtl.c (emit_insn): Only check machine class insns for
13000         improper emission of a RETURN.
13001
13002 2000-01-25  Richard Henderson  <rth@cygnus.com>
13003
13004         * Makefile.in (flow.o): Depend on $(EXPR_H).
13005         * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
13006         duplicate the structure of diddle_return_value for keeping regs live.
13007
13008 2000-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13009
13010         * loop.c (current_loop_info): Delete.
13011         (consec_sets_invariant_p): Add loop argument, update callers.
13012         (get_condition_for_loop): Likewise.
13013         (count_nonfixed_reads, update_giv_derive): Likewise.
13014         (simplify_giv_expr, general_induction_var): Likewise.
13015         (consec_sets_giv, recombine_givs): Likewise.
13016         (move_movables): Delete loop_start and loop_end arguments,
13017         add loop argument, and update callers.
13018         (find_mem_givs, check_final_value): Likewise.
13019         (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
13020         (loop_invariant_p): Rename from invariant_p, add loop argument, and
13021         update callers.
13022         (basic_induction_var): Add loop argument, delete loop_level argument,
13023         and update callers.
13024         * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
13025         add loop argument, and update callers.
13026         (find_splittable_regs, find_splittable_givs): Likewise.
13027         (reg_dead_after_loop, loop_find_equiv_value): Likewise.
13028         (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
13029         (biv_total_increment): Delete loop_start and loop_end arguments;
13030         update callers.
13031         (precondition_loop_p): Delete loop_start and loop_info arguments;
13032         update callers.
13033         * loop.h (get_condition_for_loop): Add loop argument.
13034         (biv_total_increment): Delete loop_start and loop_end arguments.
13035         (precondition_loop_p): Delete loop_start and loop_info arguments;
13036         add loop argument.
13037         (final_biv_value): Delete loop_start and loop_end arguments;
13038         add loop argument.
13039         (final_giv_value, back_branch_in_range_p): Likewise.
13040
13041 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
13042
13043         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
13044
13045 2000-01-25  Gavin Romig-Koch  <gavin@cygnus.com>
13046
13047         * Makefile.in (c-gperf.h) : Change the "See" pointer to
13048         point to the new "generated_files" doc.
13049
13050 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
13051
13052         * config/fp-bit.c (_unord_f2): Fix typo.
13053
13054 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
13055
13056         * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
13057         c-typeck.c, objc/objc-act.c: Remove all references to obstack
13058         functions obsoleted by GC, such as push_obstacks_nochange,
13059         end_temporary_allocation, savealloc, saveable_tree_cons, etc.
13060         and code which existed only to decide whether or not to call
13061         them.  Remove now-unused NESTED argument from start_function;
13062         all callers changed.  Do not change behavior based on ggc_p.
13063         The use of the ixp_obstack in c-iterate.c and the util_obstack
13064         in objc/objc-act.c remain; these are not obsoleted by garbage
13065         collection.
13066         * c-tree.h: Update prototype for start_function.
13067
13068         * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
13069
13070 2000-01-25  Clinton Popetz  <cpopetz@cygnus.com>
13071
13072         * config/mips/mips.md (zero_extendsidi2_internal): Disable for
13073         mips16.
13074
13075 2000-01-25  Richard Henderson  <rth@cygnus.com>
13076
13077         * sparc-protos.h (select_cc_mode): Declare.
13078         * sparc.c (select_cc_mode): New.  Handle unordered compares.
13079         (output_cbranch): Always reverse via code change.  Handle
13080         unordered compares.  Factor tests and string updates.
13081         * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
13082         (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
13083         * sparc.md (bunordered, bordered): New.
13084         (bungt, bunlt, buneq, bunge, bunle): New.
13085
13086 2000-01-25  Richard Henderson  <rth@cygnus.com>
13087
13088         * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
13089         * ggc-common.c (ggc_add_rtx_varray_root): New.
13090         (ggc_mark_rtx_varray): New.
13091         (ggc_mark_rtx_varray_ptr): New.  Shift all ggc_mark_foo_ptr
13092         functions down below ggc_mark_foo.
13093         * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
13094
13095 2000-01-25  Richard Henderson  <rth@cygnus.com>
13096
13097         * alpha.c (secondary_reload_class): Don't allocate a secondary
13098         for integral mode memories into FLOAT_REGS.  Rearrange the more
13099         complicated memory expression inward.
13100
13101 2000-01-25  Zack Weinberg  <zack@wolery.cumb.org>
13102
13103         * inclhack.def: Fixes to play nicer with FreeBSD, and
13104         corrections to comments.
13105         (cxx_unready): Add select expression.
13106         (irix_sockaddr): Add bypass expression.
13107         (machine_ansi_h_va_list): New fix.
13108         (stdio_va_list): No need to edit _BSD_VA_LIST_.
13109         Split out addition of "#include <stdarg.h>" to...
13110         (stdio_stdarg_h): ... here.
13111         (systypes_for_aix): Rename to systypes_stdlib_size_t.  Apply
13112         to stdlib.h also.  Do not munge _BSD_SIZE_T_.
13113         (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
13114         size_t.
13115         (ultrix_ifdef): Tighten up select expression.
13116
13117         * fixincl.tpl: Exorcise 'exesel'.  Rewrite calculations of
13118         re_ct and max_mach to avoid use of shell.  Make printed names
13119         match names in inclhack.def.  Use static copyright date.
13120         Don't count c_test and test expressions as requiring regex_t
13121         slots.  Add some commentary.
13122         * inclhack.tpl: Do not include the 'This script contains N
13123         fixup scripts' line if PROGRAM is defined.  Use static
13124         copyright date.
13125
13126 2000-01-24  Jason Merrill  <jason@casey.cygnus.com>
13127
13128         * dwarf2out.c: include "varray.h", not dyn-string.h.
13129         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
13130         (addr_const_to_string, addr_to_string): Lose.
13131         (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
13132         (struct dw_val_struct): val_addr is now an rtx.
13133         (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
13134         (used_rtx_varray): New varray.
13135         (dwarf2out_init): Initialize it.
13136         (save_rtx): New fn.
13137         (mem_loc_descriptor, add_const_value_attribute): Call it instead of
13138         addr_to_string.
13139         * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
13140         sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
13141         * Makefile.in (dwarf2out.o): Update dependencies.
13142
13143 2000-01-24  Richard Henderson  <rth@cygnus.com>
13144
13145         * i386.c (i386_dwarf_output_addr_const): New.
13146         * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
13147
13148         * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
13149         if defined.
13150         * dwarfout.c (output_mem_loc_descriptor): Likewise.
13151         * i386.c (i386_simplify_dwarf_addr): New.
13152         * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
13153
13154 Mon Jan 24 16:56:10 2000  Jim Wilson  <wilson@cygnus.com>
13155
13156         * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
13157         TYPE_STUB_DECL is NULL.
13158
13159 2000-01-24  Richard Henderson  <rth@cygnus.com>
13160
13161         * builtins.c (expand_tree_builtin): Move ...
13162         * c-common.c (expand_tree_builtin): ... here.
13163
13164 2000-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13165
13166         * loop.h (LOOP_INFO): New accessor macro.
13167         * basic-block.h (struct loop): Rename field `info' to `aux'.
13168         * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
13169         (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
13170         * unroll.c (loop_iterations, unroll_loop): Likewise.
13171
13172 2000-01-24  Christopher Faylor <cgf@cygnus.com>
13173
13174         * config/i386/t-cygwin: Accomodate new winsup directory layout
13175         when searching for include files.
13176
13177 2000-01-24  Richard Henderson  <rth@cygnus.com>
13178
13179         * rtl.def: Add unordered fp comparisions.
13180         * tree.def: Likewise.
13181         * tree.h: Add ISO C 9x unordered fp comparision builtins.
13182
13183         * builtins.c (expand_tree_builtin): New function.
13184         * c-typeck.c (build_function_call): Use it.
13185         (build_binary_op): Support unordered compares.
13186         * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
13187
13188         * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
13189         (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
13190         * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
13191         (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
13192         * jump.c (reverse_condition): Don't abort for UNLE etc, but
13193         return UNKNOWN.
13194         (swap_condition): Handle unordered compares.
13195         (thread_jumps): Check can_reverse before reversing.
13196         * loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
13197         reversed for FP.
13198
13199         * optabs.c (can_compare_p): New argument CODE.  Verify branch or
13200         setcc is present before acking for cmp_optab.  Update all callers.
13201         (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
13202         * expmed.c (do_cmp_and_jump): Update for can_compare_p.
13203         * expr.c (expand_expr): Likewise.  Support unordered compares.
13204         (do_jump, do_store_flag): Likewise.
13205         * expr.h (enum libfunc_index): Add unordered compares.
13206
13207         * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
13208         (DPBIT_FUNCS): Add _unord_df.
13209         * config/fp-bit.c (_unord_f2): New.
13210         * fp-test.c (main): Try unordered compare builtins.
13211
13212         * alpha-protos.h (alpha_fp_comparison_operator): Declare.
13213         * alpha.c (alpha_comparison_operator): Check mode properly.
13214         (alpha_swapped_comparison_operator): Likewise.
13215         (signed_comparison_operator): Likewise.
13216         (alpha_fp_comparison_operator): New.
13217         (alpha_emit_conditional_branch): Handle unordered compares.
13218         * alpha.h (PREDICATE_CODES): Update.
13219         * alpha.md (fp compares): Use alpha_fp_comparison_operator.
13220         (bunordered, bordered): New.
13221
13222 2000-01-24  Richard Henderson  <rth@cygnus.com>
13223
13224         * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
13225         * alpha.md (movtf): New expander, insn, and splitter.
13226
13227 Mon Jan 24 19:49:47 MET 2000  Jan Hubicka  <jh@suse.cz>
13228
13229         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
13230         dead registers.
13231
13232 Mon Jan 24 17:37:31 MET 2000  Jan Hubicka  <jh@suse.cz>
13233
13234         * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
13235         (FIXED_REGISTERS, CALL_USED_REGISTERS,
13236          REG_ALLOC_ORDER): Add frame pointer
13237         (FRAME_POINTER_REGNUM): Set to 20
13238         (HARD_FRAME_POINTER_REGNUM): New macro.
13239         (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
13240         to HARD_FRAME_POINTER.
13241         (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
13242         (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
13243         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
13244         (HI_REGISTER_NAMES): Add "frame".
13245         (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
13246         (debug_reg): Handle FRAME_POINTER_REGNUM.
13247         (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
13248         GENERAL_REGS and INDEX_REGS.
13249         * i386.c (SAVED_REGS_FIRST): new macro.
13250         (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
13251         (ix86_decompose_address, memory_address_length): Likewise.
13252         (regclass_map): Add frame pointer.
13253         (call_insn_operand): Handle frame_pointer_rtx.
13254         (reg_no_sp_operand): Likewise.
13255         (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
13256         (print_operand, legitimize_pic_address): Fix formating.
13257         (ix86_compute_frame_size): Make static, update prototype, new
13258         parameters padding1, padding2, use ix86_nsaved_regs, use
13259         stack_alignment_needed.
13260         (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
13261         to HARD_FRAME_POINTER_REGNUM conversions.
13262         (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
13263         (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
13264         (print_reg): Abort on FRAME_POINTER_REGNUM
13265
13266 Mon Jan 24 16:50:08 MET 2000  Jan Hubicka  <jh@suse.cz>
13267
13268         * i386.h (PREDICATE_CODES): Add aligned_operand.
13269         * i386.c (aligned_operand): New function.
13270         (ix86_aligned_p): Kill.
13271         * i386.md (movhi_1): Emit mov for aligned operands.
13272         (promoting peep2s): Use aligned_operand.
13273
13274 2000-01-23  Zack Weinberg  <zack@wolery.cumb.org>
13275
13276         * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
13277         expression to allow underscores in macro names.
13278         (fix_char_macro_defines): Increment scanning pointer.
13279
13280 2000-01-23  Richard Henderson  <rth@cygnus.com>
13281
13282         * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
13283         * alpha/osf5.h: New file.
13284         * configure.in (alpha-*-osf5): Add it to tm_file.
13285
13286         * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
13287
13288         * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
13289         (alpha_emit_xfloating_cvt, function_arg): Declare.
13290         * alpha.c (alpha_emit_conditional_branch): Call
13291         alpha_emit_xfloating_compare for TFmode compares.
13292         (alpha_lookup_xfloating_lib_func): New.
13293         (alpha_compute_xfloating_mode_arg): New.
13294         (alpha_emit_xfloating_libcall): New.
13295         (alpha_emit_xfloating_arith): New.
13296         (alpha_emit_xfloating_compare): New.
13297         (alpha_emit_xfloating_cvt): New.
13298         (print_operand): Add default abort case.
13299         (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
13300         * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
13301         (BIGGEST_ALIGNMENT): Increase to 128 bits.
13302         (RETURN_IN_MEMORY): True for TF/TCmode.
13303         (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
13304         (FUNCTION_ARG): Move to function_arg.
13305         (FUNCTION_ARG_PASS_BY_REFERENCE): New.
13306         (ASM_OUTPUT_LONG_DOUBLE): New.
13307         (ASM_OUTPUT_DOUBLE): Always output bits.
13308         * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
13309         (fix_trunctfdi2, floatditf2, floatunsditf2): New.
13310         (extenddftf2, trunctfdf2): New.
13311
13312 2000-01-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13313
13314         * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
13315         * config/sparc/sol2.h: ... here.
13316
13317 2000-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13318
13319         * basic-block.h (struct loops): New field `levels'.
13320         * flow.c (flow_loops_level_compute): Traverse all outer loops.
13321         (flow_loop_level_compute): Initialise level to 1.
13322         (flow_loops_find): Set loops->levels.
13323         (flow_loops_dump): Print loops->levels.
13324
13325 2000-01-23  Richard Henderson  <rth@cygnus.com>
13326
13327         * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
13328         (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
13329
13330 2000-01-23  Richard Henderson  <rth@cygnus.com>
13331
13332         * i386.c (dbx_register_map, svr4_dbx_register_map): New.
13333         * i386.h (DBX_REGISTER_NUMBER): Use them.
13334         * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
13335         * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
13336         * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
13337         * i386/sequent.h: Kill incorrect comment.
13338
13339 2000-01-23  Mark Mitchell  <mark@codesourcery.com>
13340
13341         * ggc-page.c (struct page_entry): Make `context_depth' an
13342         `unsigned short'.
13343         (struct globals): Likewise.
13344
13345 2000-01-23  Clinton Popetz  <cpopetz@cygnus.com>
13346
13347         * loop.c (check_dbra_loop): When checking a loop for
13348         reversability, check the source of any stores to ensure
13349         they don't depend on an initial value.
13350
13351 2000-01-23  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13352
13353         * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
13354
13355 2000-01-22  Zack Weinberg  <zack@wolery.cumb.org>
13356
13357         * fixinc/fixincl.c: Move declarations of 'pz_fname' and
13358         'pz_scan' into scope of entire function.  Only affects
13359         compiles with -DDEBUG.
13360
13361 2000-01-22  Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
13362
13363         * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
13364         section naming to that prior to 2000-01-07 patch.
13365         * config/mips/elf.h (UNIQUE_SECTION): Ditto.
13366         * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
13367         * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
13368         * config/i386/interix.c (UNIQUE_SECTION): Ditto.
13369         * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
13370
13371 2000-01-22  Bernd Schmidt  <bernds@cygnus.co.uk>
13372
13373         * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
13374         constant.
13375
13376 2000-01-21  Jim Wilson  <wilson@cygnus.com>
13377
13378         * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
13379         * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
13380
13381 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
13382
13383         * cpphash.c (change_newlines): Delete function.
13384         (struct argdata): Delete 'newlines' and 'use_count' fields.
13385         (macroexpand): Remove code referencing those fields.
13386
13387 2000-01-22  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13388
13389         * loop.c (loops_info): New variable.
13390         (loop_optimize): Allocate loops->array and free it on exit.
13391         Allocate memory for loops_info and assign to each loop,
13392         replacing alloca.
13393         (find_and_verify_loops): Do not allocate loops->array.
13394
13395 2000-01-21  Zack Weinberg  <zack@wolery.cumb.org>
13396
13397         * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
13398
13399 2000-01-21  Jakub Jelinek  <jakub@redhat.com>
13400
13401         * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
13402         pseudos if expanded after first flow.
13403         (movdi_pic_label_ref): Likewise.
13404
13405 2000-01-20  Richard Henderson  <rth@cygnus.com>
13406
13407         * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
13408
13409 2000-01-20  Zack Weinberg  <zack@wolery.cumb.org>
13410
13411         * Makefile.in (fixinc.sh): Depend on specs.
13412         * fixinc/Makefile.in: Add rule to create machname.h.
13413         (fixlib.o): Depend on machname.h.
13414         * fixinc/fixtests.c (machine_name): New test.
13415         * fixinc/fixfixes.c (machine_name): New fix.
13416         * fixinc/fixlib.c (mn_get_regexps): New helper function for
13417         the machine_name test and fix.
13418         * fixinc/fixlib.h: Prototype it.
13419         * fixinc/inclhack.def (machine_name): Use the C test and fix.
13420         * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
13421
13422         * gcc.c (do_spec_1) [case P]: Take care not to create
13423         identifiers with three leading or trailing underscores.
13424
13425         * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
13426         (fixincl): Don't specify libraries twice on link line.
13427         (gnu-regex.o): Remove special rule.
13428         * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
13429         defined by config.h.  Do not define _REGEX_RE_COMP.
13430         (regcomp): Allocate and initialize a fastmap.
13431         * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
13432
13433 2000-01-20  Brad Lucier  <lucier@math.purdue.edu>
13434
13435         * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
13436
13437 2000-01-19  Richard Henderson  <rth@cygnus.com>
13438
13439         * flow.c (propagate_block): Replace FIRST, LAST and BNUM
13440         arguments with BB.  Update all callers.  Tidy line wrapping.
13441
13442 2000-01-19  Clinton Popetz  <cpopetz@cygnus.com>
13443
13444         * emit-rtl.c (try_split): Return last_insn if we split the
13445         last_insn.
13446
13447 Thu Jan 20 01:01:23 MET 2000  Jan Hubicka  <jh@suse.cz>
13448
13449         * i386-protos.h (ix86_compute_frame_size): Remove prototype.
13450         (ix86_initial_elimination_offset): Declare.
13451         * i386.c (ix86_nsaved_regs): Break out from ...
13452         (ix86_can_use_return_insn_p): ... here.
13453         (ix86_emit_save_regs): Break out from ...
13454         (ix86_expand_prologue): ... here.
13455         (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
13456         out from ...
13457         (ix86_expand_epilogue): ... here.
13458         (ix86_compute_frame_size): Make static, add prototype.
13459         (ix86_initial_elimination_offset): Break out from ...
13460         * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
13461
13462 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13463
13464         * recog.h (OUT_FCN): Delete.
13465
13466         * vax.md: Call `get_insn_template' instead of OUT_FCN.
13467
13468 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13469
13470         * cppalloc.c: PROTO -> PARAMS.
13471         * cpperror.c: Likewise.
13472         * cppfiles.c: Likewise.
13473         * cpplib.c: Likewise.
13474         * cpplib.h: Likewise.
13475
13476         * config/arm/arm-protos.h: PROTO -> PARAMS.
13477         * config/arm/arm.c: Likewise.
13478         * config/c4x/c4x.c: Likewise.
13479         * config/fr30/fr30-protos.h: Likewise.
13480         * config/nextstep.c: Likewise.
13481         * config/pa/pa.c: Likewise.
13482         * config/pj/pj.c: Likewise.
13483         * config/rs6000/rs6000.c: Likewise.
13484         * config/v850/v850-protos.h: Likewise.
13485         * config/v850/v850.c: Likewise.
13486
13487 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13488
13489         * i370-protos.h: New file.
13490
13491         * i370.c: Include tm_p.h.  Fix compile time warnings.
13492
13493         * i370.h: Move prototypes to i370-protos.h.  Fix compile time
13494         warnings.
13495
13496         * i370.md: Likewise.
13497
13498 2000-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13499
13500         * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13501         (target_isinf, target_isnan, eisnan): Mark parameter with
13502         ATTRIBUTE_UNUSED.
13503         (eiisinf): Wrap in INFINITY.
13504         (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13505         (ibmtoe): Remove unused variable `rndsav'.
13506
13507 Wed Jan 19 20:23:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13508
13509         * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13510         (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13511
13512 2000-01-19  Zack Weinberg  <zack@wolery.cumb.org>
13513
13514         * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13515         * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13516         (fix_char_macro_defines, fix_char_macro_uses): New functions.
13517
13518         * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13519         Recognize Emacs mode markers also.
13520         * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13521         C++ comments in C++ headers.  Call is_cxx_header only if
13522         necessary.
13523
13524         * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13525         bypass for ncurses.
13526         (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13527         (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13528         ... these, which use the new C fixes.
13529         (math_exception): Escape literal '+' in bypass expression.
13530
13531         * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13532         Regenerate.
13533
13534 2000-01-19  Geoff Keating  <geoffk@cygnus.com>
13535
13536         * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13537         inside the MEM.
13538
13539 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13540
13541         * loop.c (loop_optimize): Allocate loop_info structure for each loop
13542         prior to calling scan_loop.
13543
13544 Wed Jan 19 19:54:38 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13545
13546         * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13547         (split_branches, calc_live_regs): Likewise.
13548
13549 Wed Jan 19 19:12:36 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13550
13551         * sh.md (fpu_single, fp_mode): New attributes.
13552
13553 2000-01-20  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13554
13555         * loop.c (current_loop_info): Renamed from loop_info_data
13556         and changed to a pointer.
13557         (loop_optimize): Allocate loop_info structure for each loop
13558         and initialise to zero.
13559         (scan_loop): Set current_loop_info.
13560
13561         * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13562         on iteration_var.
13563
13564 2000-01-19  Richard Henderson  <rth@cygnus.com>
13565
13566         * stupid.c: Die die die.
13567         * Makefile.in (OBJS): Remove stupid.o.
13568         (stupid.o): Likewise.
13569
13570         * except.c (emit_eh_context): Don't emit USEs for stupid.
13571         * explow.c (probe_stack_range): Likewise.
13572         * flags.h (obey_regdecls): Remove.
13573         * flow.c (find_basic_blocks): Don't run try_merge_blocks
13574         when not optimizing.
13575         (life_analysis): Limit data collection when not optimizing.
13576         (mark_regs_live_at_end): Always mark the return value registers.
13577         (mark_used_regs): Remove dummy RETURN case.
13578         (print_rtl_with_bb): Don't consult obey_regdecls.
13579         * function.c (use_variable, use_variable_after): Remove.
13580         (assign_parms): Consult optimize not obey_regdecls.
13581         (expand_function_start): Don't emit USEs for stupid.
13582         (expand_function_end): Likewise.
13583         * global.c (build_insn_chain): Export.
13584         * integrate.c (expand_inline_function): Kill return-value USE
13585         handling code.
13586         * jump.c (jump_optimize_1): Do simple jump optimizations and
13587         dead code elimination.
13588         (calculate_can_reach_end): Remove check_deleted argument.
13589         (delete_insn): Patch out insns even when not optimizing.
13590         * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13591         * rtl.h (use_variable, use_variable_after): Remove declarations.
13592         (build_insn_chain): Declare.
13593         * stmt.c (expand_value_return): Don't emit USEs for stupid.
13594         (expand_end_bindings): Likewise.
13595         (expand_decl): Likewise.  Consult optimize not obey_regdecls.
13596         * toplev.c (obey_regdecls): Remove.
13597         (rest_of_compilation): Don't set it.  Kill stupid in favour of
13598         flow1, local-alloc, and reload.
13599         (main): Don't set obey_regdecls.
13600
13601         * config/nextstep.c (handle_pragma): Likewise.
13602
13603         * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13604
13605         * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13606
13607 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13608
13609         * alpha-protos.h: PROTO -> PARAMS.
13610         * alpha.c: Likewise.
13611         * elf.h: Likewise.
13612         * h8300.c: Likewise.
13613         * i386-protos.h: Likewise.
13614         * i386.c: Likewise.
13615         * m32r-protos.h: Likewise.
13616         * m32r.c: Likewise.
13617         * mips.c: Likewise.
13618         * mips.md: Likewise.
13619         * gmon-sol2.c: Likewise.
13620         * sparc.c: Likewise.
13621
13622 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13623
13624         * ns32k-protos.h: New file.
13625
13626         * ns32k.c: Fix compile time warnings.
13627
13628         * ns32k.h: Move prototypes to ns32k-protos.h.  Fix compile time
13629         warnings.
13630
13631         * ns32k.md: Likewise.
13632
13633 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13634
13635         * vax-protos.h: New file.
13636
13637         * vax.c: Fix compile time warnings.
13638
13639         * vax.h: Move prototypes to vax-protos.h.  Fix compile time
13640         warnings.
13641
13642         * vax.md: Likewise.
13643
13644         * vaxv.md: Likewise.
13645
13646 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13647
13648         * romp-protos.h: New file.
13649
13650         * romp.c: Fix compile time warnings.
13651
13652         * romp.h: Move prototypes to romp-protos.h.  Fix compile time
13653         warnings.
13654
13655         * romp.md: Likewise.
13656
13657 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13658
13659         * we32k-protos.h: New file.
13660
13661         * we32k.c: Fix compile time warnings.
13662
13663         * we32k.h: Move prototypes to we32k-protos.h.  Fix compile time
13664         warnings.
13665
13666 2000-01-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13667
13668         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13669
13670         * except.c (eh_regs): Likewise.
13671
13672         * final.c (output_operand): Likewise.
13673
13674         * fold-const.c (target_isinf, target_isnan): Likewise.
13675
13676 Tue Jan 18 16:19:55 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
13677
13678         * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13679         (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13680
13681         * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13682         when optimize_size.
13683         (clrstrsi): Rewrite.
13684         (strsethi, strsetqi): New expanders.
13685         (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13686         (cmpstrsi): Emit compare insn before cmpstrsi_1
13687         (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13688         (strlensi_1): Likewise.
13689         (cmpstrsi_1): Likewise; do not output compare.
13690         (strlen expander): Do not unroll when optimizing for size.
13691         (*subsi3_carry): Rename to subsi3_carry
13692         (addqi3_cc): New pattern.
13693         * i386.h (processor_costs): Add move_ratio field.
13694         (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13695         * i386.c (*_cost): Set move_ratio.
13696         (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13697         (x86_expand_strlensi_1): Rewrite the main loop.
13698
13699 2000-01-17  Richard Henderson  <rth@cygnus.com>
13700
13701         * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13702         * cse.c (find_comparison_args, fold_rtx): Likewise.
13703         * integrate.c (subst_constants): Likewise.
13704         * loop.c (get_condition): Likewise.
13705
13706         * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13707
13708         * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13709
13710 2000-01-18  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
13711
13712         * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13713         (RESTORE_WARN_FLAGS): Unpack it.
13714         Change semantic type of extension to ttype.
13715         * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13716         * c-parse.y, c-parse.c, objc/objc-parse.y,
13717         objc/objc-parse.c: Regenerate.
13718
13719 2000-01-17  Zack Weinberg  <zack@wolery.cumb.org>
13720
13721         * fixinc/fixlib.c: Add copyright notice.
13722         (compile_re): New function.
13723         * fixinc/fixlib.h: Prototype compile_re.
13724
13725         * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13726         Use compile_re to compile regular expressions.
13727
13728         * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13729         where the pattern matched.
13730
13731         * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13732         use 'replace'.
13733         (ultrix_ansi_compat): Likewise.
13734         (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13735         add egrep test.
13736         (interactv_add2, interactv_add3): Delete.
13737         (x11_sprintf): Don't use filename glob.
13738         * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13739         Regenerate.
13740
13741 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13742
13743         * print-rtl.c: PROTO -> PARAMS.
13744         * real.c: Likewise.
13745         * reg-stack.c: Likewise.
13746         * resource.c: Likewise.
13747         * sdbout.h: Likewise.
13748         * simplify-rtx.c: Likewise.
13749         * stor-layout.c: Likewise.
13750         * stupid.c: Likewise.
13751         * xcoffout.c: Likewise.
13752         * xcoffout.h: Likewise.
13753
13754 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13755
13756         * toplev.c: PROTO -> PARAMS.
13757         * toplev.h: Likewise.
13758         * tree.c: Likewise.
13759         * tree.h: Likewise.
13760         * unroll.c: Likewise.
13761         * varasm.c: Likewise.
13762         * varray.c: Likewise.
13763         * varray.h: Likewise.
13764
13765 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13766
13767         * reload.c: PROTO -> PARAMS.
13768         * reload.h: Likewise.
13769         * reload1.c: Likewise.
13770         * reorg.c: Likewise.
13771         * resource.h: Likewise.
13772         * rtl.c: Likewise.
13773         * rtl.h: Likewise.
13774         * rtlanal.c: Likewise.
13775         * sbitmap.h: Likewise.
13776         * sdbout.c: Likewise.
13777         * stack.h: Likewise.
13778         * stmt.c: Likewise.
13779         * system.h: Likewise.
13780
13781 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13782
13783         * machmode.h: PROTO -> PARAMS.
13784         * mbchar.h: Likewise.
13785         * mips-tdump.c: Likewise.
13786         * mips-tfile.c: Likewise.
13787         * optabs.c: Likewise.
13788         * output.h: Likewise.
13789         * prefix.c: Likewise.
13790         * profile.c: Likewise.
13791         * protoize.c: Likewise.
13792         * real.h: Likewise.
13793         * recog.c: Likewise.
13794         * recog.h: Likewise.
13795         * regclass.c: Likewise.
13796         * regmove.c: Likewise.
13797         * regs.h: Likewise.
13798
13799 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13800
13801         * ggc-common.c: PROTO -> PARAMS.
13802         * ggc-page.c: Likewise.
13803         * ggc-simple.c: Likewise.
13804         * ggc.h: Likewise.
13805         * global.c: Likewise.
13806         * graph.c: Likewise.
13807         * gthr-win32.h: Likewise.
13808         * haifa-sched.c: Likewise.
13809         * halfpic.h: Likewise.
13810         * integrate.c: Likewise.
13811         * integrate.h: Likewise.
13812         * jump.c: Likewise.
13813         * lcm.c: Likewise.
13814         * local-alloc.c: Likewise.
13815         * loop.c: Likewise.
13816         * loop.h: Likewise.
13817
13818 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13819
13820         * genattr.c: PROTO -> PARAMS.
13821         * genattrtab.c: Likewise.
13822         * gencheck.c: Likewise.
13823         * gencodes.c: Likewise.
13824         * genconfig.c: Likewise.
13825         * genemit.c: Likewise.
13826         * genextract.c: Likewise.
13827         * genflags.c: Likewise.
13828         * gengenrtl.c: Likewise.
13829         * genopinit.c: Likewise.
13830         * genoutput.c: Likewise.
13831         * genpeep.c: Likewise.
13832         * genrecog.c: Likewise.
13833
13834 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
13835
13836         * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13837
13838 2000-01-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13839
13840         * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13841         * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13842         * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13843         * configure, config.in: Rebuilt.
13844
13845 2000-01-16  Zack Weinberg  <zack@wolery.cumb.org>
13846
13847         * config/i386/i386.md: Add peephole to merge successive stack
13848         adjusts.
13849
13850 Sat Jan 15 15:41:14 EST 2000  John Wehle  (john@feith.com)
13851
13852         * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13853         instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
13854         when walking backwards to find all the parameter loads when
13855         the basic block ends in a call.
13856
13857 2000-01-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13858
13859         * loop.c (this_loop_info): Delete.
13860         (uid_loop): Add in place of uid_loop_num.  All uses updated.
13861         (loop_number_exit_count): Delete and replace with entry in loop
13862         structure.  All uses updated.
13863         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13864         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13865         (loop_outer_loop): Likewise.
13866         (loop_invalid, loop_number_exit_labels): Likewise.
13867         (loop_used_count_register): Delete and replace with entry in
13868         loop_info structure.
13869         (find_and_verify_loops): Add loops argument.
13870         (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13871         loop_end, etc. arguments with loop structure pointer.  All callers
13872         changed.
13873         (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13874         (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13875         (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13876         (insert_bct): Likewise.
13877         (basic_induction_var): New argument level.
13878         * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13879         vtop, and cont.  Add used_count_register.
13880         (uid_loop): Delete declaration.
13881         (loop_number_exit_count): Likewise.
13882         (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13883         (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13884         (loop_outer_loop, loop_used_count_register): Likewise.
13885         (loop_invalid, loop_number_exit_labels): Likewise.
13886         (unroll_loop): Replace loop_start and loop_end arguments
13887         with loop structure pointer.
13888         (loop_precondition_p, loop_iterations): Likewise.
13889         Include basic-block.h.
13890         * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13891         with loop structure pointer.
13892         (loop_precondition_p, loop_iterations): Likewise.
13893         * basic-block.h (struct loop): New entries vtop, cont,
13894         cont_dominator, start, end, top, scan_start, exit_labels,
13895         exit_count.
13896         * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13897
13898 2000-01-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13899
13900         * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13901
13902 2000-01-14  Nathan Sidwell  <sidwell@codesourcery.com>
13903
13904         * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13905
13906 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13907
13908         * pdp11-protos.h: New file.
13909
13910         * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
13911         time warnings.
13912
13913         * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
13914         warnings.
13915
13916         * pdp11.md: Likewise.
13917
13918         * 2bsd.h: Likewise.
13919
13920 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13921
13922         * mn10300-protos.h: New file.
13923
13924         * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
13925         time warnings.
13926
13927         * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
13928         warnings.
13929
13930         * mn10300.md: Likewise.
13931
13932 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13933
13934         * mn10200-protos.h: New file.
13935
13936         * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
13937         time warnings.
13938
13939         * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
13940         warnings.
13941
13942         * mn10200.md: Likewise.
13943
13944 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13945
13946         * h8300-protos.h: New file.
13947
13948         * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
13949         time warnings.
13950
13951         * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
13952         warnings.
13953
13954         * h8300.md: Likewise.
13955
13956 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13957
13958         * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13959         (asm_emit_uninitialised): Likewise.
13960
13961 2000-01-13  Gavin Romig-Koch  <gavin@cygnus.com>
13962
13963         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13964         * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13965
13966 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13967
13968         * config/mips/mips.c (override_options): Don't turn on extra
13969         alignment for mips16.
13970
13971 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13972
13973         * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13974         eabi, and make sure queued POSTINCREMENT rtl is emitted at
13975         the right point.
13976
13977 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
13978
13979         * builtins.c (PAD_VARARGS_DOWN): Define.
13980         (std_expand_builtin_va_arg): Use the above macro.
13981         * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13982         * tm.texi (Register Arguments): Document the above macro.
13983
13984 2000-01-14  Nick Clifton  <nickc@cygnus.com>
13985
13986         * emit-rtl.c (emit_insn): If checking is enabled, make sure
13987         that this function has not been used to emit a jump
13988         instruction.
13989
13990         * jump.c (return_jump_1): Cope with being passed a null rtx.
13991
13992 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13993
13994         * eh-common.h: PROTO -> PARAMS.
13995         * emit-rtl.c: Likewise.
13996         * errors.c: Likewise.
13997         * errors.h: Likewise.
13998         * except.c: Likewise.
13999         * except.h: Likewise.
14000         * explow.c: Likewise.
14001         * expmed.c: Likewise.
14002         * expr.c: Likewise.
14003         * expr.h: Likewise.
14004         * final.c: Likewise.
14005         * fix-header.c: Likewise.
14006         * flow.c: Likewise.
14007         * fold-const.c: Likewise.
14008         * function.c: Likewise.
14009         * function.h: Likewise.
14010         * gcc.c: Likewise.
14011         * gcov-io.h: Likewise.
14012         * gcov.c: Likewise.
14013         * gcse.c: Likewise.
14014
14015 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14016
14017         * sh-protos.h: New file.
14018
14019         * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
14020         Add static prototypes.  Fix compile time warnings.
14021
14022         * sh.h: Move prototypes to sh-protos.h.  Fix compile time warnings.
14023         * sh.md: Likewise.
14024         * elf.h: Likewise.
14025
14026 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14027
14028         * arc-protos.h: New file.
14029
14030         * arc.c: Include tm_p.h.  Add static prototypes.  Fix compile
14031         time warnings.
14032
14033         * arc.h: Move prototypes to arc-protos.h.  Fix compile time
14034         warnings.
14035
14036         * arc.md: Likewise.
14037
14038 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14039
14040         * dsp16xx-protos.h: New file.
14041
14042         * dsp16xx.c: Include tm_p.h.  Add static prototypes.  Fix compile
14043         time warnings.
14044
14045         * dsp16xx.h: Move prototypes to dsp16xx-protos.h.  Fix compile time
14046         warnings.
14047
14048         * dsp16xx.md: Likewise.
14049
14050 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14051
14052         * convex-protos.h: New file.
14053
14054         * convex.c: Include tm_p.h.  Add static prototypes.  Fix compile
14055         time warnings.
14056
14057         * convex.h: Move prototypes to convex-protos.h.  Fix compile time
14058         warnings.
14059
14060 2000-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14061
14062         * elxsi-protos.h: New file.
14063
14064         * elxsi.c: Include tm_p.h.  Add static prototypes.  Fix compile
14065         time warnings.
14066
14067         * elxsi.h: Move prototypes to elxsi-protos.h.  Fix compile time
14068         warnings.
14069
14070         * elxsi.md: Likewise.
14071
14072 2000-01-14  Clinton Popetz  <cpopetz@cygnus.com>
14073
14074         * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
14075         case for moving from HI/LO/HI_LO_REG.  This makes the behavior
14076         match the comment for MIPS16.
14077
14078 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
14079
14080         * flow.c (split_edge): Do not call set_block_for_insn if we
14081         do not have a basic_block_for_insn structure.
14082
14083         * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
14084         and destination functions are 32bit aligned within the trampoline.
14085         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
14086         (TRAMPOLINE_ALIGNMENT): Define.
14087
14088         * cse.c (cse_insn): When changing (set (pc) (reg)) to
14089         (set (pc) (label_ref)), verify the change creates a valid insn.
14090
14091         * fr30.c (call_operand): Tighten and rework to match rules for
14092         call RTL expressions.
14093         * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
14094         * fr30.md (call patterns): Improve constraints.
14095
14096 Thu Jan 13 23:44:03 2000  Richard Henderson  <rth@cygnus.com>
14097
14098         * fr30.c (fr30_expand_epilogue): Revert last change.
14099         Use emit_jump_insn for the return insn.
14100
14101 Thu Jan 13 14:46:03 2000  Jason Eckhardt  <jle@cygnus.com>
14102                           Stan Cox  <scox@cygnus.com>
14103
14104         * predict.c: New file. Preliminary infrastructure work for static
14105         branch prediction and basic block reordering.
14106         * basic-block.h: Add prototype for estimate_probability.
14107         * Makefile.in: Add rules for predict.o.
14108
14109 2000-01-13  Jason Merrill  <jason@yorick.cygnus.com>
14110
14111         * fixincludes (va_list): Use __not_va_list__ for the dummy.
14112         * fixinc/*: Likewise.
14113
14114 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14115
14116         * cccp.c: PROTO -> PARAMS.
14117         * cexp.y: Likewise.
14118         * collect2.c: Likewise.
14119         * combine.c: Likewise.
14120         * convert.h: Likewise.
14121         * cse.c: Likewise.
14122         * dbxout.c: Likewise.
14123         * dbxout.h: Likewise.
14124         * diagnostic.c: Likewise.
14125         * doprint.c: Likewise.
14126         * dwarf2out.c: Likewise.
14127         * dwarf2out.h: Likewise.
14128         * dwarfout.c: Likewise.
14129         * dwarfout.h: Likewise.
14130         * dyn-string.h: Likewise.
14131
14132 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14133
14134         * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
14135         macro conditionals guarding use.
14136
14137         * dwarf2out.c: Include "tm_p.h".
14138
14139         * function.c (locate_and_pad_parm): Mark parameter with
14140         ATTRIBUTE_UNUSED.
14141         (expand_function_end): Likewise for variable `context'.
14142
14143         * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
14144
14145 2000-01-13  Nick Clifton  <nickc@cygnus.com>
14146
14147         * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
14148         register to prevent compile time warnings.
14149
14150 2000-01-13  Zack Weinberg  <zack@wolery.cumb.org>
14151
14152         * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
14153         to avoid -Wtraditional warning.
14154
14155 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14156
14157         * 1750a-protos.h: New file.
14158
14159         * 1750a.c: Include tm_p.h.  Add static prototypes.  Fix compile
14160         time warnings.
14161
14162         * 1750a.h: Move prototypes to 1750a-protos.h.  Fix compile time
14163         warnings.
14164
14165         * 1750a.md: Likewise.
14166
14167 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14168
14169         * a29k-protos.h: New file.
14170
14171         * a29k.c: Include tm_p.h.  Add static prototypes.  Fix compile
14172         time warnings.
14173
14174         * a29k.h: Move prototypes to a29k-protos.h.  Fix compile time
14175         warnings.
14176
14177 2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14178
14179         * clipper-protos.h: New file.
14180
14181         * clipper.c: Include tm_p.h.  Add static prototypes.  Fix compile
14182         time warnings.
14183
14184         * clipper.h: Move prototypes to clipper-protos.h.  Fix compile time
14185         warnings.
14186
14187 Thu Jan 13 16:03:06 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
14188
14189         * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
14190
14191 2000-01-13  Nathan Sidwell  <sidwell@codesourcery.com>
14192
14193         * configure.in (--enable-new-gxx-abi): New option.
14194         * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
14195         * Makefile.in (GXX_ABI_FLAG): New variable.
14196         * configure: Regenerate.
14197
14198 2000-01-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14199
14200         * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
14201         * tm.texi (FORCE_STRUCT_BLK): Document.
14202         * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
14203
14204 Wed Jan 12 23:12:47 2000  Hans-Peter Nilsson  <hp@axis.com>
14205
14206         * config/ns32k/ns32k.md: Revert Jan 9 change.
14207
14208         * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
14209         to a mode-test, if the predicate is address_operand.
14210
14211 Wed Jan 12 22:34:00 2000  Jeffrey A Law  (law@cygnus.com)
14212
14213         * combine.c (if_then_else_cond): Be careful about what kinds
14214         of RTL expressions are passed to operand_subword.
14215
14216         * flow.c (split_edge): If we have to insert a new jump, make
14217         sure to associate it with a basic block.
14218
14219         * flow.c (commit_one_edge_insertion): A block with one successor
14220         can end in a JUMP_INSN that is not a simplejump.
14221
14222 2000-01-12  Robert Lipe  <robertl@sco.com>
14223
14224         * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
14225         (BUILD_VA_LIST_TYPE): Define.
14226         (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
14227         with crtstuff.c.
14228
14229 2000-01-12  Jason Merrill  <jason@casey.cygnus.com>
14230
14231         * cccp.c (do_pragma): Add cast to (char *).
14232
14233 2000-01-12  Richard Henderson  <rth@cygnus.com>
14234             Fred Fish  <fnf@be.com>
14235             Jason Merrill  <jason@cygnus.com>
14236
14237         * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
14238         * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
14239         * i386/beos-elf.h, i386/beos-pe.h: New files.
14240
14241         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
14242         * cross-make (SYSTEM_HEADER_DIR): Define using
14243         CROSS_SYSTEM_HEADER_DIR.
14244
14245         * gcc.c (LIBRARY_PATH_ENV): Provide default.
14246         (process_command): Use it.
14247         (main): Likewise.  Kill trailing = from env vars.
14248         (build_search_list): Put it back.
14249         * collect2.c (main): Use LIBRARY_PATH_ENV.
14250
14251         * configure.in (GCC_NEED_DECLARATIONS): Add environ.
14252         * toplev.c: Use NEED_DECLARATION_ENVIRON.
14253
14254         * tm.texi (Frame Layout): Document SMALL_STACK.
14255         * c-common.c (c_common_nodes_and_builtins): Check it.
14256
14257         * system.h: Undef alloca after including glibc's <stdlib.h>,
14258         if USE_C_ALLOCA is defined.
14259
14260         * gcc.c (set_input): New fn.
14261         (main): After all input files are compiled, reset the input file
14262         info to the first.
14263
14264         * aclocal.m4 (rindex, index): If already defined, don't attempt
14265         to redefine.
14266
14267         * ginclude/varargs.h: (__va_list__): Define ifndef.
14268         * ginclude/stdarg.h: Likewise.
14269
14270         * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
14271         instead of unsigned char.
14272
14273         * hash.h (true, false, boolean): Undef before enum.
14274
14275         * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
14276         proper type of "HOST_WIDE_INT *", rather than their natural type of
14277         "unsigned HOST_WIDE_INT *".
14278
14279 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14280
14281         * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
14282
14283         * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
14284
14285         * regclass.c (choose_hard_reg_mode): Likewise.
14286
14287         * reload.c (find_valid_class, strict_memory_address_p): Likewise.
14288
14289         * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
14290
14291 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14292
14293         * c-common.c: PROTO -> PARAMS.
14294         * c-common.h: Likewise.
14295         * c-decl.c: Likewise.
14296         * c-iterate.c: Likewise.
14297         * c-lang.c: Likewise.
14298         * c-lex.c: Likewise.
14299         * c-lex.h: Likewise.
14300         * c-parse.in: Likewise.
14301         * c-pragma.c: Likewise.
14302         * c-pragma.h: Likewise.
14303         * c-tree.h: Likewise.
14304         * c-typeck.c: Likewise.
14305         * objc/objc-act.c: Likewise.
14306         * objc/objc-act.h: Likewise.
14307
14308 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14309
14310         * m88k-protos.h: New file.
14311
14312         * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
14313         time warnings.
14314
14315         * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.
14316
14317         * m88k.md: Likewise.
14318
14319         * tekXD88.h: Likewise.
14320
14321 2000-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14322
14323         * m68k-protos.h: New file.
14324
14325         * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
14326         time warnings.
14327
14328         * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.
14329
14330         * mot3300.h: Likewise.
14331
14332 2000-01-12  Richard Earnshaw <rearnsha@arm.com>
14333
14334         * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
14335         extract_bitlst.
14336         (extract_bitlist): Declare bitlen.
14337
14338 2000-01-12  Zack Weinberg  <zack@wolery.cumb.org
14339
14340         * cccp.c: Accept and ignore -lang-fortran.
14341
14342         * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
14343         qualifiers don't match at any level of pointerness.
14344
14345 2000-01-12  Robert Lipe  <robertl@sco.com>
14346
14347         * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
14348
14349 2000-01-12  Bernd Schmidt  <bernds@cygnus.co.uk>
14350
14351         * reload1.c (reload_reg_unavailable): New static variable.
14352         (reload_reg_free_p): Test it.
14353         (reload_reg_free_for_value_p): Test it instead of
14354         reload_reg_used.
14355         (choose_reload_regs_init): Compute it.
14356
14357 Wed Jan 12 03:24:41 2000  Toshiyasu Morita (toshi.morita@sega.com)
14358
14359         * reorg.c (fill_slots_from_thread): Check modified_in_p
14360         before replacing.
14361
14362 Wed Jan 12 03:20:31 2000  John Marshall <john_w_marshall@palm.com>
14363
14364         * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
14365         these nodes even if INTERNALS is not set.
14366
14367 Wed Jan 12 09:39:22 2000  Nick Burrett  <nick.burrett@btinternet.com>
14368
14369         * gcse.c (delete_null_pointer_checks_1): Cope when
14370         get_condition cannot determine the condition.
14371
14372 2000-01-12  Gabriel Dos Reis  <gdr@codesourcery.com>
14373
14374         * toplev.h (set_message_length): Declare.
14375
14376         * diagnostic.c (obstack_chunk_alloc): Define macro.
14377         (obstack_chunk_free): Likewise.
14378         (struct output_buffer): New data structure.
14379         (vmessage): Remove.
14380         (output_maximum_width): New variable.
14381         (doing_line_wrapping, set_message_length, init_output_buffer,
14382         get_output_prefix, output_space_left, emit_output_prefix,
14383         output_newline, output_append, output_puts, dump_output,
14384         vbuild_message_string, build_message_string, build_location_prefix,
14385         voutput_notice, output_printf, line_wrapper_printf,
14386         vline_wrapper_message_with_location):  New functions. Implement
14387         automatic line wrapping.
14388         (v_message_with_decl): Make it handle automatic line wrapping.
14389         (v_error_with_file_and_line): Likewise.
14390         (v_warning_with_file_and_line): Likewise.
14391         (announce_function): Likewise.
14392         (default_print_error_function): Likewise.
14393
14394 2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>
14395
14396         * cpplib.h (struct cpp_options): Change lang_asm to char.
14397         Add lang_fortran.
14398         * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
14399         done in cpp_handle_option now.
14400         (initialize_builtins): Take out special case code used only by
14401         __STDC_VERSION__.
14402         (cpp_handle_option): Turn off trigraphs and trigraph warnings
14403         if -traditional.  Recognize -lang-fortran and set
14404         lang_fortran, also turn off cplusplus_comments.
14405         (print_help): Document -lang-fortran.
14406         * cpplib.c (handle_directive): Ignore `# 123 "file"' if
14407         lang_asm. Ignore all directives other than `# 123 "file"' if
14408         CPP_PREPROCESSED.
14409         (cpp_get_token): If -traditional, don't recognize directives
14410         unless the # is in column 1.
14411         (parse_string): If lang_fortran or lang_asm, silently
14412         terminate strings ('' or "") at end of line.
14413         Remove unnecessary braces.
14414
14415 2000-01-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14416             Richard Henderson  <rth@cygnus.com>
14417
14418         * resource.c (mark_referenced_resources): Mark a set strict_low_part
14419         as used.
14420         * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
14421         strict_low_part when possible.
14422
14423 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14424
14425         * alias.c: PROTO -> PARAMS.
14426         * basic-block.h: Likewise.
14427         * bitmap.c: Likewise.
14428         * bitmap.h: Likewise.
14429         * builtins.c: Likewise.
14430         * c-aux-info.c: Likewise.
14431         * caller-save.c: Likewise.
14432         * calls.c: Likewise.
14433
14434 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14435
14436         * Makefile.in (toplev.o): Depend on regs.h.
14437
14438         * output.h (tdesc_section): Prototype.
14439
14440         * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
14441
14442         * sdbout.c: Include "tm_p.h".
14443
14444         * toplev.c: Include "regs.h".
14445
14446 Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
14447
14448         * unroll.c (unroll_loop): Add EH support.
14449
14450 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14451
14452         * pa-protos.h: New file.
14453
14454         * pa.c: Include recog.h and tm_p.h.
14455         (compute_zdepwi_operands, compute_movstrsi_length,
14456         remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
14457         find_addr_reg, import_milli): Add static prototypes.
14458         (pa_cpu_string, pa_arch_string): Constify a char*.
14459         (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
14460         (read_only_operand): Add argument `mode'.
14461         (singlemove_string, output_move_double, output_fp_move_double,
14462         output_block_move, output_and, output_ior, output_ascii,
14463         remove_useless_addtr_insns, milli_names, output_mul_insn,
14464         output_div_insn, output_mod_insn, output_arg_descriptor,
14465         output_cbranch, output_bb, output_bvb, output_dbra, ,
14466         output_millicode_call, output_call, hppa_encode_label,
14467         output_parallel_movb, output_parallel_addb): Constify a char*.
14468         (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
14469         (output_parallel_addb): Remove extra arg to `constrain_operands'
14470
14471         * pa.h:  Move all prototypes to pa-protos.h.
14472         (pa_cpu_string, pa_arch_string): Constify a char*.
14473         (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
14474
14475         * pa.md: Call `function_label_operand' with mode argument.
14476         Likewise for `read_only_operand'.
14477         Fix nesting of parens in call to `symbolic_operand'.
14478
14479 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14480
14481         * i860-protos.h: New file.
14482
14483         * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
14484         time warnings.
14485
14486         * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.
14487
14488         * i860.md: Likewise.
14489
14490 Tue Jan 11 18:59:35 MET 2000  Jan Hubicka <jh@suse.cz>
14491
14492         * i386.md (movstrsi expander): Rewrite.
14493         (movstrsi_1 insn): Deleted.
14494         (strmovhi, strmovqi expander): New expanders.
14495         (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14496         * i386.c (x86_single_stringop): New global variable.
14497         * i386.h (x86_single_stringop): Declare.
14498         (TARGET_SINGLE_STRINGOP): New macro.
14499
14500 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
14501
14502         * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14503         integer vararg POSTINCREMENT before the destination of the jump
14504         for the hard fp case.
14505         (function_arg_pass_by_reference): Pass a copy of CUM to
14506         FUNCTION_ARG.
14507
14508         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14509         for CONSTANT_ADDRESS_P above while loop for subreg.
14510
14511 2000-01-11  Clinton Popetz  <cpopetz@cygnus.com>
14512
14513         * flow.c (propagate_block): When a prologue/epilogue insn
14514         is marked dead, unconditionally clear libcall_is_dead and
14515         insn_is_dead, and only dump rtl if warnings aren't being
14516         suppressed.
14517
14518 Tue Jan 11 16:26:47 MET 2000  Jan Hubicka <jh@suse.cz>
14519
14520         * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14521         * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14522         (FIXED_REGISTERS): Set dirflag as fixed.
14523         (CALL_USED_REGISTERS): Set dirflag as used.
14524         (REG_ALLOC_ORDER): Set dirflag as last one.
14525         (DIRFLAG_REG): New macro.
14526         (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14527         (HI_REGISTER_NAMES): Add dirflag.
14528         (DEBUF_PRINT_REG): Handle dirflag.
14529         * i386.md (type attribute): New cld and str types.
14530         (length_opcode attribute): Set cld and str to 1.
14531         (memory attribute): Set str to unknown - it is not clear from the
14532         patterns.
14533         (pent_np function unit): Prefixed string operations takes 12 cycles
14534         minimally; cld takes 2 cycles.
14535         (ppro_uops attribute): Str is "many" and cld is "few".
14536         (ppro_p0 unit): Handle cld here.
14537         (k6_alux unit): Handle cld and str types.
14538         (k6_load unit): It is ocupied by str opcodes.
14539         (k6_store unit): It is ocupied by str opcodes.
14540         (athlon_decode): Str is vector decoded.
14541         (athlon_ieu): Handle str and cld.
14542         (cld pattern): New.
14543         (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14544         (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14545         cmpstrsi_nz_1 insn): Do not output cld instruction
14546
14547 Tue Jan 11 06:14:39 2000  David Starner <dstarner98@aasaa.ofe.org>
14548
14549         * gcc.texi (G++ and GCC): Add Java and Chill.
14550         (Bug Critera): Don't list languages.
14551
14552         * gcc.texi (Incompatibilities): No longer claim most C compilers
14553         are K&R.
14554
14555         * gcc.texi (G++ and GCC): Update other front-ends list.
14556
14557 Tue Jan 11 05:49:01 2000  Jeffrey A Law  (law@cygnus.com)
14558
14559         * i386.c (ix86_expand_setcc): Fix typo.
14560         (ix86_expand_movcc): Similarly.
14561
14562         * Band-aid until haifa's bitset implementation is nuked.
14563         * haifa-sched.c (extract_bitlst): New parameter for size of the
14564         bitset in bits.  All callers changed.  Avoid looking at undefined
14565         bits in the bitset.
14566         (edgeset_bitsize): New variable.
14567         (schedule_region): Initialize edgeset_bitsize.
14568
14569 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14570
14571         * Makefile.in (optabs.o): Depend on real.h
14572         (resource.o): Depend on insn-attr.h
14573
14574         * builtins.c (result_vector): Wrap prototype in macro conditions
14575         governing definition and use.
14576
14577         * c-common.c: Include tm_p.h.
14578
14579         * c-lex.c: Likewise.
14580
14581         * elfos.h: Constify a char*.
14582
14583         * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14584         (get_attr_length, shorten_branches, profile_after_prologue): Mark
14585         parameter with ATTRIBUTE_UNUSED.
14586
14587         * fold-const.c (exact_real_inverse): Wrap variable `i' in
14588         CHECK_FLOAT_VALUE.
14589
14590         * haifa-sched.c (schedule_insns): Mark parameter with
14591         ATTRIBUTE_UNUSED.
14592
14593         * optabs.c: Include real.h.
14594
14595         * real.h (ereal_atof): Add prototype arguments.
14596
14597         * resource.c: Include insn-attr.h.
14598
14599         * sdbout.c (sdbout_queue_anonymous_type,
14600         sdbout_dequeue_anonymous_types): Wrap in macro
14601         SDB_ALLOW_FORWARD_REFERENCES.
14602         (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14603         ATTRIBUTE_UNUSED.
14604
14605         * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14606
14607         * stupid.c: Include tm_p.h.
14608
14609         * tree.c (real_value_from_int_cst): Mark parameter with
14610         ATTRIBUTE_UNUSED.
14611
14612 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14613
14614         * i960-protos.h: New file.
14615
14616         * i960.c: Include tm_p.h.  Add static prototypes.  Fix compile
14617         time warnings.
14618
14619         * i960.h: Move prototypes to i960-protos.h.  Fix compile time warnings.
14620
14621 2000-01-10  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14622
14623         * combine.c (expand_field_assignment): Do not discard SUBREGs
14624         while computing nonzero_bits.
14625
14626 2000-01-09  Nick Clifton  <nickc@cygnus.com>
14627
14628         * config/arm/arm.c: Fix compile time warnings about signed vs
14629         unsigned constants.
14630         * config/arm/arm.h: Fix compile time warnings about signed vs
14631         unsigned constants.
14632
14633 2000-01-09  Philip Blundell  <philb@gnu.org>
14634
14635         * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14636         than `ldm' with only one register.
14637         * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14638         only one register.
14639
14640         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14641         clobbered.
14642
14643 Sun Jan  9 17:50:23 2000  Hans-Peter Nilsson  <hp@axis.com>
14644
14645         * config/ns32k/ns32k.md (load or push effective address): Operand 1
14646         must have SImode.
14647
14648 2000-01-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14649
14650         * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14651         assignment used as truth value.
14652
14653         * function.c (assign_temp): Mark parameter `dont_promote' with
14654         ATTRIBUTE_UNUSED.  Wrap variable `unsignedp' with macro
14655         PROMOTE_FOR_CALL_ONLY.
14656
14657         * genrecog.c (write_subroutine): Mark variable `operands' with
14658         ATTRIBUTE_UNUSED.
14659
14660         * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14661         ATTRIBUTE_UNUSED.
14662
14663         * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14664         (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14665
14666         * toplev.c (note_deferral_of_defined_inline_function): Likewise
14667         for `decl'.
14668
14669 2000-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14670
14671         * config/c4x.h: Tidy up comments.
14672         * config/c4x.c: Likewise.
14673
14674 Sun Jan  9 01:02:55 EST 2000  John Wehle  (john@feith.com)
14675
14676         * fold-const.c (lshift_double, rshift_double): Handle
14677         shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14678
14679 2000-01-08  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
14680
14681         * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14682         in prepare_function_start().
14683
14684 Sat Jan  8 12:12:46 2000  Nick Clifton  <nickc@cygnus.com>
14685
14686         * config/v850/v850.c (expand_epilogue): Interrupt functions no
14687         longer allocate extra stack for function calls.
14688
14689 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14690
14691         * config/c4x/c4x.md (*subqf3_set): Fix typo.
14692
14693 2000-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14694
14695         * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14696
14697 2000-01-07  David Edelsohn  <edelsohn@gnu.org>
14698
14699         * rs6000.c (processor_target_table): Add power3 as alias for 630.
14700         * aix43.h: Revert Aug 2 change.
14701         (HAS_INIT_SECTION): Define, not visible yet.
14702         (LD_INIT_SWITCH): Define, not visible yet.
14703         * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14704
14705         * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14706
14707         * collect2.c (main): Expand ld2 size further.
14708         (export_object_lst): Cast assignment to avoid warning.
14709         (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14710         (scan_prog_file, COFF): Do not collect initialization or
14711         finalization functions generated for entire shared object if
14712         init/fini support present.
14713
14714 2000-01-07  Nick Clifton  <nickc@cygnus.com>
14715
14716         * config/elfos.h: Tidy up formatting of marcos.  Make sure
14717         that .section directives are always prefixed by a tab.
14718
14719         * config/svr4.h: Add #include "elfos.h" and remove duplicate
14720         definitions.
14721
14722 2000-01-07  Matt Austern  <austern@sgi.com>
14723
14724         * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14725         expon.
14726
14727 Fri Jan  7 01:55:34 2000  Jeffrey A Law  (law@cygnus.com)
14728
14729         * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14730         crtstuff.c.
14731         (crtbegin.o, s-crtS): Likewise.
14732
14733 2000-01-06  Richard Henderson  <rth@cygnus.com>
14734
14735         * alpha.md (adddi_2+1): Limit offset such that it will be
14736         loadable with a single ldah+lda pair.
14737         (adddi_2+2): Explicitly fail split if we can't make it work.
14738
14739 2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>
14740
14741         * protoize.c: Conditionally include unistd.h.
14742         (IS_SAME_PATH_CHAR): New macro.
14743         (IS_SAME_PATH): New macro.
14744         (CPLUS_FILE_SUFFIX): New macro.
14745         (cplus_suffix): New static variable.
14746         (is_abspath): New static function.
14747         (in_system_include_dir): Handle DOS style pathnames.
14748         (file_could_be_converted): Likewise.
14749         (file_normally_convertible): Likewise.
14750         (directory_specified_p): Likewise.
14751         (file_excluded_p): Likewise.
14752         (abspath): Likewise.
14753         (shortpath): Likewise.
14754         (referenced_file_is_newer): Likewise.
14755         (save_def_or_dec): Likewise.
14756         (do_processing): Likewise.
14757         (main): Likewise.
14758         (edit_file): Likewise. Use rename instead of link.
14759         (rename_c_file): Likewise. Don't rename syscalls file.
14760         (munge_compile_params): Define null device for DOS based systems.
14761         (process_aux_info_file): Use binary mode if appliable.
14762         (edit_file): Likewise.
14763         * invoke.texi (Running Protoize): Document C++ suffixes used.
14764
14765         * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14766         IS_DIR_SEPARATOR macros.
14767         * collect2.c: Likewise.
14768         * cppinit.c: Likewise.
14769         * dwarf2out.c: Likewise.
14770         * gcc.c: Likewise.
14771         * gcov.c: Likewise.
14772         * prefix.c: Likewise.
14773         * rtl.c: Likewise.
14774         * toplev.c: Likewise.
14775         * system.h: And move to here.
14776
14777         * prefix.c (update_path): Fix typo in variable name.
14778
14779 2000-01-06  Richard Henderson  <rth@cygnus.com>
14780
14781         * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14782         (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14783         (count_reg_sets_1, count_reg_references): Likewise.
14784         (flow_loops_level_compute): Start counting actual loop depth at 1.
14785         (flow_loops_find): Likewise.
14786         * local-alloc.c (update_equiv_regs): Likewise.
14787         * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14788
14789 2000-01-06  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
14790
14791         * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14792         FIRST_PSEUDO_REGISTER
14793         * dwarf2out.c: Don't include frame.h
14794         * dwarfout.c: Likewise
14795         * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14796         frame.h
14797
14798 Thu Jan  6 13:44:59 CET 2000  Jan Hubicka  <jh@suse.cz>
14799
14800         * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14801         dead registers.
14802
14803         * i386.c (movsf splitter): Fix typo in my last checkin.
14804
14805 2000-01-05  Nick Clifton  <nickc@cygnus.com>
14806
14807         * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14808         own definition of this macro.
14809         (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14810         flag_data_sections or UNIQUE_SECTION_P are true.
14811
14812         * tm.texi (UNIQUE_SECTION): Document that it can be called for
14813         unitialised data decls.
14814
14815         * config/i386/winnt.c (i386_pe_unique_section): Cope with
14816         being called for uninitialised data.
14817
14818         * config/i386/interix.c (i386_pe_unique_section): Cope with
14819         being called for uninitialised data.
14820
14821         * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14822         for uninitialised data.
14823
14824         * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14825         for uninitialised data.
14826
14827         * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14828         for uninitialised data.
14829
14830         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14831         (UNIQUE_SECTION_P): Always generate a unique section if
14832         flag_data_sections is true.
14833         (UNIQUE_SECTION): Also generate unique sections for
14834         uninitialised data.
14835         (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14836         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14837         named_section().
14838
14839 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14840
14841         * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14842         SI, or DI.
14843
14844 2000-01-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14845
14846         * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14847         (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14848         (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14849         (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14850         (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14851
14852         * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14853
14854 2000-01-05 11:25 -0800  Zack Weinberg  <zack@rabi.columbia.edu>
14855
14856         * c-decl.c (finish_enum): Simplify code to determine minimum and
14857         maximum values of the enum, and calculate the type.  Remove check
14858         for FUNCTION_DECLs in the values list, which cannot happen.  Replace
14859         the DECL_INITIAL of each enumeration constant with a copy converted
14860         to the enumeration type.  When updating variant types, don't bother
14861         updating the type itself.
14862
14863         * c-typeck.c (build_binary_op): Simplify conditional expressions
14864         when weeding out spurious signed-unsigned warnings.  Add new
14865         spurious warning category: if the unsigned quantity is an enum
14866         and its maximum value fits in signed_type(result_type).  Update
14867         commentary.
14868         (build_conditional_expr): Warn here if one alternative is signed
14869         and the other is unsigned.
14870
14871 2000-01-05  Nick Clifton  <nickc@cygnus.com>
14872
14873         * config/fr30/fr30.h: Remove extraneous comments.
14874
14875 2000-01-05  Bernd Schmidt  <bernds@cygnus.co.uk>
14876
14877         * reload1.c (choose_reload_regs): When disabling a reload, also
14878         set reload_spill_index to -1.
14879
14880 2000-01-04  Joel Sherrill (joel@OARcorp.com>
14881
14882         * configure.in (m68*-*-rtemscoff*): New target, formal name for
14883         old m68*-*-rtems*.
14884         (m68*-*-rtemself*): New target.
14885         (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14886         (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14887         (sparc*-*-rtemself*): New target.
14888         (sparc*-*-rtems*): Now elf not a.out.
14889         * config/i386/rtems.h: Include config/rtems.h.
14890         * config/i386/rtemself.h: Include config/rtems.h.
14891         * config/i960/rtems.h: Include config/rtems.h.
14892         * config/m68k/rtems.h: Include config/rtems.h.
14893         * config/m68k/rtemself.h: Include config/rtems.h.
14894         * config/mips/rtems64.h: Include config/rtems.h.
14895         * config/pa/rtems.h: Include config/rtems.h.
14896         * config/rs6000/rtems.h: Include config/rtems.h.
14897         * config/sh/rtems.h: Include config/rtems.h.
14898         * config/sh/rtemself.h: Include config/rtems.h.
14899         * config/sparc/rtems.h: Include config/rtems.h.
14900         * config/sparc/rtemself.h: Include config/rtems.h
14901
14902 Tue Jan  4 23:59:26 2000  Denis Chertykov <denisc@overta.ru>
14903
14904         * final.c (shorten_branches): Correctly compute length of
14905         asms without operands.
14906
14907 Tue Jan  4 22:55:41 2000  Steve Chamberlain <sac@pobox.com>
14908
14909         * configure.in: Add pj target.
14910         * configure: Regenerate.
14911         * config/pj: New directory.
14912         * config/pj/lib1funcs.S: New file.
14913         * config/pj/linux.h: New file.
14914         * config/pj/pj.c: New file.
14915         * config/pj/pj.md: New file.
14916         * config/pj/pjl.h: New file.
14917         * config/pj/t-pj: New file.
14918         * config/pj/xm-pj.h: New file
14919
14920 Tue Jan  4 22:30:16 2000  Jeffrey A Law  (law@cygnus.com)
14921
14922         * toplev.c (rest_of_compilation): Run shorten-branches before
14923         reg-stack for now.
14924
14925 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14926
14927         * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14928         macros so that they're consistent with their names.
14929         * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14930         * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14931
14932 2000-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
14933
14934         * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14935         modified inadvertently.
14936
14937 2000-01-04  Joel Sherrill <joel@OARcorp.com>
14938
14939         * configure.in (v850*-*-rtems*): New target.
14940         * configure: Regenerate.
14941         * config/v850/rtems.h: New file.
14942
14943 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
14944
14945         * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14946         (__gthread_key_create): Likewise.
14947         (__gthread_key_dtor):  Likewise.
14948         (__gthread_once): Fix logic.
14949         (__gthread_key_delete): Cast away constness.
14950
14951         * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14952         * invoke.texi: Document.
14953         * i386/mingw32.h (CPP_SPEC): Use.
14954         (LIBGCC_SPEC): Likewise.
14955         * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14956
14957 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
14958
14959         * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14960         (HANDLE_PRAGMA_PACK): Undefine.
14961         (SLOW_UNALIGNED_ACCESS): Define.
14962
14963 2000-01-04  David Edelsohn  <edelsohn@gnu.org>
14964
14965         * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14966         to default definition.
14967         (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14968         (store_fixed_bit_field): Call macro with word_mode and alignment.
14969         (extract_bit_field): Call macro with relevant mode and alignment.
14970         * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14971         to default definition.
14972         (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14973         and alignment.
14974         (move_by_pieces_ninsns): Likewise.
14975         (clear_by_pieces): Likewise.
14976         (emit_push_insn): Likewise.
14977         (store_field): Call macro with relevant mode and alignment.
14978         (expand_expr): Likewise.
14979         (expand_expr_unaligned): Likewise.
14980
14981         * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14982         (SLOW_UNALIGNED_ACCESS): Define.
14983         (CASE_VECTOR_MODE): Always use 32-bit offsets.
14984         (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14985         (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14986         (toc_section): Likewise and .toc pseudo-op.
14987         (ASM_DECLARE_FUNCTION): Likewise.  Align text more strictly in
14988         64-bit mode.
14989         (TEXT_SECTION_ASM_OP): Likewise.
14990         (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14991         32-bit offsets.
14992
14993         * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14994         * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14995         * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14996         * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14997         * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14998
14999 Tue Jan  4 11:44:13 2000  Jeffrey A Law  (law@cygnus.com)
15000
15001         * regclass.c: Revert my Jan 4 change to loop cost computation.
15002
15003 Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
15004
15005         * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
15006         compilation.
15007
15008 2000-01-04  Stan Cox  <scox@cygnus.com>
15009
15010         * haifa-sched.c (build_control_flow): Change unreachable simple
15011         loop test to check if current block has only one predecessor.
15012         (find_rgns): Initialize degree.  Use dest as degree index, not src.
15013
15014 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15015
15016         * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
15017
15018         * calls.c (expand_call): Likewise for
15019         `old_stack_arg_under_construction'.
15020
15021         * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
15022
15023         * function.c (pad_to_arg_alignment): Likewise for `save_var' and
15024         `save_constant'.
15025
15026         * gcc.c (execute): Likewise for `ut' and `st'.
15027
15028         * genattrtab.c (attr_rtx): Likewise for `rt_val'.
15029
15030         * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
15031
15032         * jump.c (jump_optimize_1): Likewise for `temp2'.
15033
15034         * local-alloc.c (block_alloc): Likewise for `r1'.
15035
15036         * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
15037
15038         * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
15039         (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
15040
15041         * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
15042         and `set2'.
15043
15044         * reload.c (find_reloads): Likewise for `goal_alternative_number'
15045         and `goal_earlyclobber'.
15046
15047         * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
15048
15049         * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
15050
15051         * stupid.c (stupid_life_analysis): Likewise for `chain'.
15052
15053         * unroll.c (copy_loop_body): Likewise for `copy'.
15054
15055         * varasm.c (output_constructor): Likewise for `byte'.
15056
15057 Tue Jan  4 15:34:34 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
15058
15059         * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
15060         all FP constants for constant->reg moves.
15061         (ix86_split_to_parts): Try to convert memory address into immediate
15062         when available in the constant pool.
15063         * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
15064         moves.
15065         (LEGITIMATE_CONSTANT_P): Return 1.
15066         * i386.md (pushsf): New splitter to convert constant pool memory
15067         reference to immediate.
15068         (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
15069         reload.
15070
15071 2000-01-04  Bernd Schmidt  <bernds@cygnus.co.uk>
15072
15073         * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
15074         (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
15075         ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
15076         (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
15077         rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
15078
15079 2000-01-04  Martin von Löwis  <loewis@informatik.hu-berlin.de>
15080
15081         * ginclude/stdbool.h:  Support compilation as C++.
15082
15083 Tue Jan  4 01:35:13 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15084
15085         * fold-const.c (make_range): Don't try to reverse an unbounded range.
15086
15087 Tue Jan  4 00:18:46 2000  Jeffrey A Law  (law@cygnus.com)
15088
15089         * regclass.c (regclass): Properly compute loop_cost.  Adjust
15090         comments.
15091
15092         * regclass.c: Fix minor whitespace problems.
15093
15094 2000-01-03  Anthony Green  <green@cygnus.com>
15095
15096         * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
15097         Restore the pic register if required.
15098
15099 2000-01-03  Ulrich Drepper  <drepper@cygnus.com>
15100
15101         * c-common.c (format_char_info): Update comment.
15102         (check_format_info): Recognize 'z' modifier in the same way 'Z'
15103         was recognized.  Emit warning for formats new in ISO C99 only
15104         if flag_isoc9x is not set.
15105
15106 Mon Jan  3 12:59:54 2000  Mark P. Mitchell  <mark@codesourcery.com>
15107
15108         * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
15109
15110 Mon Jan  3 15:33:37 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
15111
15112         * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
15113         SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
15114         (make_compound_operation): Choose cheaper alternative between
15115         ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
15116
15117         * regclass.c (op_costs): Remove global variable.
15118         (record_reg_classes): New parameter "op_costs" and "reg_pref".
15119         (record_operand_costs): Break out from ...
15120         (scan_one_insn): ... here.
15121         (dump_regclass): Make dumps nicer.
15122         (regclass): Dump preferrences choosed and changes done during passes.
15123
15124 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
15125
15126         * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
15127
15128 2000-01-03  Jakub Jelinek  <jakub@redhat.com>
15129
15130         * config/sparc/sparc.c (gen_df_reg): New function.
15131         * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
15132         * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
15133         movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
15134         movtf_cc_reg_sp64+1): Use it.
15135
15136 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
15137
15138         * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
15139         copied LABEL_DECLs.
15140
15141 Mon Jan  3 02:54:40 2000  Hans-Peter Nilsson  <hp@bitrange.com>
15142
15143         * config/i386/i386.c (ix86_expand_unary_operator): Function
15144         definition made void.
15145         (ix86_expand_binary_operator): Update outdated preceding comment.
15146         * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
15147         prototype.
15148
15149         * config/i386/i386.c (override_options): Fix option-name typo.
15150
15151 2000-01-02  Mark Mitchell  <mark@codesourcery.com>
15152
15153         * system.h (CEIL): Define.
15154         * builtins.c (CEIL): Remove.
15155         * expmed.c (CEIL): Likewise.
15156         * expr.c (CEIL): Likewise.
15157         * stor-layout.c (CEIL): Likewise.
15158
15159 2000-01-02  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15160
15161         * expr.c (store_constructor_field): Fix typo introduced with last
15162         gcc2 merge.
15163
15164 2000-01-01  Mark Mitchell  <mark@codesourcery.com>
15165
15166         * tree.h (BINFO_N_BASETYPES): New macro.
15167
15168 2000-01-01  Bernd Schmidt  <bernds@cygnus.co.uk>
15169
15170         * expmed.c (emit_store_flag): Prevent losing a pending stack
15171         adjust the same way we prevent losing queued increments.
15172
15173 See ChangeLog.2 for earlier changes.