]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
configure.in (enable-nls): Enable if build == host, i.e.
[gcc.git] / gcc / ChangeLog
1 2000-05-31 Philipp Thomas <pthomas@suse.de>
2
3 * configure.in (enable-nls): Enable if build == host, i.e. when
4 not building a canadian cross compiler.
5 (enable-maintainer-mode): Added for use with i18n.
6 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
7 cross section of ALL_LINGUAS and LINGUAS.
8 * configure: Rebuild.
9
10 2000-05-31 Bruce Korb <bkorb@gnu.org>
11
12 * fixinc/check.tpl: rework to use test result tree
13 * fixinc/Makefile.in: change invocation of check script
14 * fixinc/check.diff: No longer needed
15 * fixinc/fixincl.x: regenerate
16 * fixinc/inclhack.def: add new tests
17 * fixinc/tests/base/arch/i960/archI960.h: New test result
18 * fixinc/tests/base/curses.h: modified test result
19 * fixinc/tests/base/stdio.h: ditto
20 * fixinc/tests/base/time.h: ditto
21 * fixinc/tests/base/sys/asm.h: ditto
22 * fixinc/tests/base/sys/stat.h: ditto
23 * fixinc/tests/base/sys/wait.h: ditto
24
25 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
26
27 * except.c (clear_function_eh_region): Do not free NULL.
28
29 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30
31 * flow.c (propagate_block): If block has no successors, stores to
32 frame are dead if not used.
33
34 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
35
36 * stmt (expand_end_case): Reorder conversion sequence for jump
37 table to avoid extra truncations.
38
39 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
40
41 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
42 in the block is more than just a simple conditional branch.
43 (noce_process_if_block): Similarly.
44
45 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
46
47 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
48 queue.
49
50 2000-05-30 Michael Meissner <meissner@redhat.com>
51
52 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
53 instructions. Treat LO_SUM operations as loading the full integer
54 constant.
55
56 2000-05-30 Richard Henderson <rth@cygnus.com>
57
58 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
59
60 2000-05-30 Richard Henderson <rth@cygnus.com>
61
62 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
63
64 2000-05-30 Bruce Korb <bkorb@gnu.org>
65
66 * fixinc/tests/*: Added expected result files for fixinc's make check
67 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
68
69 2000-05-30 Richard Henderson <rth@cygnus.com>
70
71 * config/alpha/alpha.md (*setne_internal): Use match_operator
72 instead of working down from insn.
73
74 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
75
76 * invoke.texi (-Wtraditional): Update WRT function macros.
77
78 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
79
80 * except.c (free_exception_table): Do not free NULL.
81
82 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
83
84 * cpplib.c (do_if): Don't save and restore only_seen_white here.
85 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
86 and skipping here.
87
88 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
89
90 * flow.c (mark_used_reg): If a register is unconditionally live,
91 remove any conditional death information.
92
93 2000-05-29 Richard Henderson <rth@cygnus.com>
94
95 * final.c (current_output_insn): New.
96 (final_scan_insn): Set it.
97 * output.h: Declare it.
98
99 2000-05-29 Richard Henderson <rth@cygnus.com>
100
101 * stor-layout.c (finalize_record_size): Fix typo.
102
103 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
104 if nlabel is null.
105
106 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
107
108 * cpplib.h (cpp_reader): Remove if_stack. Change
109 potential_control_macro to a cpp_hashnode *. Add skipping flag.
110 * cpphash.h (struct ihash): Change control_macro to a
111 cpp_hashnode * and shorten name to cmacro.
112 Add NEVER_REINCLUDE constant.
113
114 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
115 Examine the cmacro node directly, no need to call cpp_defined.
116 (_cpp_execute_include, read_include_file): Set cmacro to
117 NEVER_REINCLUDE, not U"".
118 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
119 (cpp_get_token): If pfile->skipping is true, discard text and
120 keep scanning until we hit a directive; don't expand macros.
121
122 * cpplib.c (struct if_stack): Remove if_succeeded, add
123 was_skipping. Change control_macro to a cpp_hashnode * and
124 shorten name to cmacro. Remove typedef IF_STACK.
125 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
126 (conditional_skip, skip_if_group,
127 consider_directive_while_skipping): Delete.
128 (push_conditional): New.
129 (_cpp_handle_directive): Don't process directives other than
130 conditionals if we are skipping.
131
132 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
133 Update to new scheme.
134 (validate_else): Skip rest of line here, unconditionally.
135 (_cpp_unwind_if_stack): The stack is per-buffer. Force
136 pfile->skipping off.
137
138 (all): Remove `scare quotes' from error messages.
139
140 2000-05-29 Richard Henderson <rth@cygnus.com>
141
142 * function.c (emit_return_into_block): New line_note arg; emit it.
143 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
144 for the close brace to accompany HAVE_return. Move all line notes
145 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
146
147 2000-05-29 Richard Henderson <rth@cygnus.com>
148
149 * longlong.h [__alpha] (count_leading_zeros): New.
150 (count_trailing_zeros): New.
151 (COUNT_LEADING_ZEROS_0): New.
152
153 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
154 (alpha_split_conditional_move): New.
155 * config/alpha/alpha-protos.h: Prototype them.
156 * config/alpha/alpha.h (PREDICATE_CODES): Update.
157 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
158 * config/alpha/alpha.md: Update ffs cix commentary.
159 (*ze_and_ne): New.
160 (*nabssf2, *nabsdf2): New.
161 (*mov[qhsd]icc_internal): Use add_operand.
162 (if_then_else constant splitters): New.
163 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
164 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
165
166 2000-05-29 Richard Henderson <rth@cygnus.com>
167
168 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
169 a constant to NEG or NOT when conditions allow.
170
171 * combine.c (combine_simplify_rtx): Don't create an if_then_else
172 unless both args are general_operand. Don't canonicalize plus
173 to ior unless it helps.
174
175 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
176 instead track register_life_up_to_date. Toggle no_new_pseudos
177 around if_convert.
178
179 2000-05-28 Geoff Keating <geoffk@cygnus.com>
180
181 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
182 so output_operand doesn't see them.
183
184 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
185
186 * lcm.c (make_preds_opaque): Fix comment.
187 (optimize_mode_switching): Use NORMAL_MODE instead of
188 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
189 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
190 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
191 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
192 (MODE_USES_IN_EXIT_BLOCK): Delete.
193 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
194 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
195 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
196 (MODE_NEEDED): Don't look for USE.
197 (EPILOGUE_USES): Define.
198
199 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
200
201 * mklibgcc.in (all): Variable initialised to `libgcc'.
202
203 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
204
205 * toplev.h (skip_leading_substring): New macro.
206 * toplev.c (decode_f_option): Use skip_leading_substring instead
207 of strncmp.
208 (decode_W_option): Likewise.
209
210 2000-05-28 Nick Clifton <nickc@cygnus.com>
211
212 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
213 modify reg_names.
214
215 2000-05-28 Richard Henderson <rth@cygnus.com>
216
217 * regclass.c (record_operand_costs): Protect reg_changes_size
218 with CLASS_CANNOT_CHANGE_SIZE.
219
220 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
221
222 2000-05-28 Richard Henderson <rth@cygnus.com>
223
224 * function.c (diddle_return_value): A pcc-style struct return
225 returns a pointer.
226
227 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
228
229 * cppfiles.c: Read files in, using mmap if possible, then
230 prescan them separately.
231 (read_file, read_with_read): New functions.
232 * cpplex.c: Don't define UCHAR_MAX.
233 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
234 the file here.
235
236 * cppinit.c (handle_option): Automatically define __cplusplus,
237 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
238 the respective -lang switch.
239
240 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
241 prototype): Move to...
242 * cpplib.h: ... here. Rename struct hashnode to struct
243 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
244 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
245
246 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
247
248 * config/rs6000/rs6000.md (movsi): Constify 'name'.
249
250 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
251 (class_can_change_size): New variable.
252 (reg_changes_size): New variable.
253 (init_reg_sets_1): Initialise class_can_change_size.
254 (record_operand_costs): Remove subreg_changes_size.
255 Don't pass it around. Instead update reg_changes_size.
256 (regclass): Initialise and free reg_changes_size. If a register
257 changes size, don't preference it to a class that contains
258 registers that can't change size.
259 (record_reg_classes): Don't look at subreg_changes_size.
260
261 2000-05-27 Richard Henderson <rth@cygnus.com>
262
263 * print-rtl.c (reg_names): Remove const.
264 * regclass.c (reg_names): Likewise.
265 * regs.h (reg_names): Likewise.
266 * hard-reg-set.h (reg_names): Likewise.
267
268 2000-05-27 Richard Henderson <rth@cygnus.com>
269
270 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
271
272 2000-05-27 Richard Henderson <rth@cygnus.com>
273
274 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
275 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
276 (alpha_expand_prologue): Emit prologue_mcount if needed.
277 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
278 * config/alpha/alpha.md (prologue_mcount): New.
279 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
280 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
281 * config/alpha/netbsd.h: Likewise.
282
283 2000-05-27 Richard Henderson <rth@cygnus.com>
284
285 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
286 change to config/elfos.h.
287
288 2000-05-27 Richard Henderson <rth@cygnus.com>
289
290 * Makefile.in (resource.o): Depend on except.h.
291 * except.h (output_exception_table_data): Prototype.
292 * genconfig.c (gen_peephole2): Prototype.
293 * genemit.c (main): Include ggc.h.
294 * genoutput.c: Revert parts of last change: include errors.h
295 (main): Set progname.
296 * recog.c: Include hard-reg-set.h before recog.h.
297 * resource.c: Include except.h.
298
299 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
300 with RTX_CODE.
301 (alpha_write_linkage): Protect with BUFSIZ.
302 (alpha_need_linkage): Update prototype.
303 * config/alpha/alpha.c (function_arg): Move VMS code here.
304 (alpha_links_base): Remove.
305 (alpha_links): New.
306 (mark_alpha_links_node, mark_alpha_links): New.
307 (alpha_write_one_linkage): New.
308 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
309 (alpha_write_linkage): Use splay_tree_foreach.
310 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
311 to get the linkage symbol.
312 (call_value_vms): Likewise.
313 * config/alpha/elf.h (output_file_directive): Remove decl.
314 (ctors_section, dtors_section): Prototype.
315 (sbss_section, sdata_section): Prototype.
316 * config/alpha/vms.h (FUNCTION_ARG): Remove.
317 (readonly_section, link_section, literals_section): Prototype.
318 (ctors_section, dtors_section): Prototype.
319 (vms_valid_decl_attribute_p): Remove decl.
320 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
321
322 2000-05-27 Geoff Keating <geoffk@cygnus.com>
323
324 * reload.c (get_secondary_mem): Don't widen floating-point modes.
325
326 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
327 substituting the REG in a (subreg:X (reg:Y ...)).
328
329 2000-05-28 Neil Booth <NeilB@earthling.net>
330
331 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
332 first token of a line BOL. Update EOF code for this.
333 Remove illegal directive check - it appears in the (not
334 yet committed) caller.
335 * cpplib.h (BOL): New flag.
336
337 2000-05-28 Neil Booth <NeilB@earthling.net>
338
339 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
340 (_cpp_free_toklist): No comment space to free.
341 (expand_comment_space): Remove.
342 (save_comment_space): Place the comment in the current token and
343 not in a separate comment space.
344 (_cpp_lex_line): Save comments during plain code and #define
345 directives only.
346 * cpplib.h (struct _cpp_toklist): Remove comment space.
347
348 2000-05-28 Neil Booth <NeilB@earthling.net>
349
350 * cppexp.c (parse_assertion): Supply extra argument to
351 _cpp_init_toklist.
352 * cpplib.c (do_assert, do_unassert): Similarly.
353 * cpphash.h (_cpp_init_toklist) Update.
354 (_cpp_expand_token_space): New.
355 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
356 * cpplex.c (_cpp_init_toklist): New argument.
357 (parse_string2): New argument multiline_ok.
358 (spell_token): Take a const cpp_token *.
359 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
360 (SPELL_ macros): Replace with enum.
361 (expand_token_space): Replace with _cpp_expand_token_space.
362 Take COUNT argument.
363 (IS_DIRECTIVE): Update.
364 (_cpp_lex_line): Update token structure before parsing number.
365 Don't assume start at beginning of token list.
366 (save_comment): Use INIT_TOKEN_NAME.
367
368 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
369
370 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
371 -Wmissing-prototypes.
372 * configure: Regenerate.
373 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
374
375 * builtins.c, calls.c: Change all instances of gen_call_* or
376 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
377 * calls.c (struct_value_size_rtx): Separate definition from
378 initialization to avoid unused variable warning.
379
380 * genflags.c (gen_macro): New function.
381 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
382 (gen_nonproto): Delete.
383 (gen_insn): Put all insns on the same obstack.
384 (main): Generate prototypes for everything unconditionally.
385
386 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
387 out check for wchar_t.
388 * acconfig.h: Add template for ssize_t. Remove @TOP@.
389 * system.h: Add infrastructure for defining missing
390 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
391 definitions of UCHAR_MAX and SSIZE_MAX.
392 * configure: Regenerate.
393 * config.in: Regenerate.
394
395 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
396 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
397 headers.
398 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
399 libgcc2.a, or libgcc1.null.
400
401 2000-05-27 Richard Henderson <rth@cygnus.com>
402
403 * Makefile.in (recog.o): Don't depend on resource.h.
404 * recog.c: Don't include resource.h.
405 (recog_last_allowed_insn): Remove.
406 (recog_next_insn): Remove.
407 (struct peep2_insn_data): New.
408 (peep2_insn_data, peep2_current): New.
409 (peep2_next_insn): New.
410 (peep2_regno_dead_p, peep2_reg_dead_p): New.
411 (peep2_find_free_register): New.
412 (peephole2_optimize): Track life information by insn as we go.
413 * recog.h: Update declarations.
414 * resource.c (find_free_register, reg_dead_p): Remove.
415 * resource.h: Remove their declarations.
416 * toplev.c: Include hard-reg-set.h before recog.h.
417
418 * genconfig.c (max_insns_per_peep2): New.
419 (gen_peephole2): New.
420 (main): Call it.
421 * genemit.c (output_peephole2_scratches): Generate calls to
422 peep2_find_free_register; adjust surrounding code.
423 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
424 * genrecog.c (change_state): Don't track last_insn.
425 (write_action): Write into *_pmatch_len before accepting.
426 (write_tree): Adjust peephole2_insns and subroutines to match.
427
428 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
429
430 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
431 (hard_int_register_operand): New.
432 * config/alpha/alpha-protos.h: Declare it.
433 * config/alpha/alpha.h (PREDICATE_CODES): Update.
434 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
435 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
436
437 2000-05-27 Richard Henderson <rth@cygnus.com>
438
439 * function.c (thread_prologue_epilogue_insns): Don't move the
440 line note at the head of the chain. Only force a lineno note
441 before the end of block 0.
442
443 2000-05-27 Richard Henderson <rth@cygnus.com>
444
445 * gensupport.c (collect_insn_data): Record the maximum number
446 of alternatives, not the last seen.
447
448 * genoutput.c: Don't include errors.h.
449 (struct data): Add lineno member.
450 (have_error): New.
451 (scan_operands): Use message_with_line instead of error.
452 (validate_insn_alternatives): Likewise.
453 (gen_insn): Accept and store the pattern's line number.
454 (gen_peephole, gen_expand, gen_split): Likewise.
455 (main): Don't set progname. Pass line_no to gen_foo.
456
457 2000-05-27 Richard Henderson <rth@cygnus.com>
458
459 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
460 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
461 * config/d30v/d30v.md (attr predicable): New.
462 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
463 (andsi3*): Unify into one pattern.
464 (iorsi3*, xorsi3*): Likewise.
465 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
466 conditional return.
467 (old cond_exec patterns): Remove.
468 (define_cond_exec): New.
469
470 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
471
472 * tree.h (TREE_CODE_LENGTH): New macro.
473 * c-common.c (c_find_base_decl): Use it.
474 * expr.c (safe_from_p): Likewise.
475 * print-tree.c (print_node): Likewise.
476 * tree.c (make_node, copy_node, get_identifier): Likewie.
477 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
478 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
479 * fold-const.c (make_range): Likewise.
480 (fold): Likewise; also use first_rtl_op.
481 * c-iterate.c (collect_iterators): Use first_rtl_op.
482 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
483 Use IS_EXPR_CODE_CLASS.
484 (preexpand_calls): Likewise.
485 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
486 and TREE_CODE_LENGTH.
487 * stmt.c (warn_if_unused_value): If no operands, no unused value.
488
489 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
490
491 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
492 than '%1(%*)'.
493 (movdi_internal64): Likewise.
494
495 * config/rs6000/rs6000.md: Correct order of operands for DImode
496 boolean patterns.
497
498 * config/rs6000/rs6000.c (boolean_or_operator): New function.
499 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
500 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
501 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
502 boolean_operator for the boolean patterns without NOTs.
503
504 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
505 from reg_or_u_cint_operand. Change comment and behaviour.
506 (logical_operand): Clean up, add assertion.
507 (non_logical_cint_operand): Also check for
508 reg_or_logical_cint_operand.
509 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
510 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
511 in the expander.
512 (xorsi3): Likewise.
513 (iordi3): Likewise.
514 (xordi3): Likewise.
515
516 2000-05-26 Mark Mitchell <mark@codesourcery.com>
517
518 * tree.h (struct record_layout_info): Rename to (struct
519 record_layout_info_s).
520 * stor-layout.c (start_record_layout): Replace
521 `record_layout_info' with `record_layout_info_s'.
522
523 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
524
525 * flow.c (find_label_refs): New function.
526 (find_basic_blocks_1): Call it for each alternative of a call
527 placeholder.
528
529 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
530
531 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
532 of get_pc.
533
534 2000-05-25 Richard Henderson <rth@cygnus.com>
535
536 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
537 so strict about DImode.
538 (alpha_swapped_comparison_operator): Likewise.
539 * config/alpha/alpha.md (*setne_internal): Name it. Allow
540 any integer output mode.
541 (*setcc_internal): Likewise.
542 (*setcc_swapped_internal): Likewise.
543 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
544 (*mov[qhs]icc_internal): New.
545 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
546
547 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
548
549 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
550
551 2000-05-25 Richard Henderson <rth@cygnus.com>
552
553 * bb-reorder.c (reorder_block_def): Reorder elements for size.
554 Remove add_jump; add next; replace flags with visited.
555 (rbd_init): Remove.
556 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
557 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
558 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
559 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
560 (RBI): New.
561 (reorder_index, reorder_last_visited): Remove.
562 (skip_insns_after_block): Rewrite to use a switch.
563 (get_common_dest): Remove.
564 (chain_reorder_blocks): Remove.
565 (record_effective_endpoints): Split out from reorder_basic_blocks.
566 (make_reorder_chain): Likewise. Loop until all blocks are placed.
567 (make_reorder_chain_1): Renamed from old make_reorder_chain.
568 Only construct the reorder chain, do not move insns. Try harder
569 to tail recurse.
570 (label_for_bb, emit_jump_to_block_after): New.
571 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
572 and adjust the jump insns appropriately. Fixup basic_block_info.
573 (verify_insn_chain): Always define.
574 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
575 in allocation size.
576 (make_new_scope): Don't write zeros to calloc'd space.
577 (build_scope_forest): Rely on xrealloc to DTRT.
578 (reorder_basic_blocks): Don't build loop nest. Don't fail if
579 profile_arc_flag. Streamline EH test.
580
581 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
582 * basic-block.h: Declare them.
583
584 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
585
586 * emit-rtl.c (reset_used_decls): New function.
587 (unshare_all_rtl_again): Call it.
588
589 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
590
591 * cpplex.c (maybe_macroexpand): Warn about function-like
592 macros used in non-function context, if -Wtraditional.
593
594 2000-05-25 Mark Mitchell <mark@codesourcery.com>
595
596 * recog.c (peephole2_optimize): Use INSN_P.
597
598 2000-05-25 Richard Henderson <rth@cygnus.com>
599
600 * ifcvt.c (seq_contains_jump): New.
601 (noce_try_store_flag_constants): Use it to fail conversion.
602 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
603
604 2000-05-25 Mark Mitchell <mark@codesourcery.com>
605
606 * except.h (can_throw): Declare it.
607 * except.c (can_throw): Give it external linkage.
608 * resource.c (find_dead_or_set_registers): Use can_throw.
609
610 2000-05-25 Richard Henderson <rth@cygnus.com>
611
612 * flow.c (mark_set_1): Don't record conditionally dead memory.
613
614 2000-05-25 Jan Hubicka <jh@suse.cz>
615
616 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
617 and pc_set at the place of simplejump_p and condjump_p.
618 * cse.c (record_jump_equiv): Likewise.
619 * emit-rtl.c (emit): Likewise.
620 * explow.c (find_next_ref): Likewise.
621 * flow.c (tidy_fallthru_edge): Likewise.
622 (init_propagate_block_info): Likewise.
623 * gcse.c (delete_null_pointer_checks): Likewise.
624 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
625 dead_or_predicable): Likewise.
626 * integrate.c (copy_insn_list): Likewise.
627 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
628 for_each_insn_in_loop, check_dbra_loop, get_condition,
629 insert_bct, load_mems): Likewise.
630 * resource.c (find_dead_or_set_registers): Likewise.
631 * sibcalls.c (simplejump_p): Likewise.
632 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
633
634 2000-05-25 David Edelsohn <edelsohn@gnu.org>
635
636 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
637 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
638 when unaligned.
639 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
640 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
641 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
642 * rs6000.md: Name various internal patterns.
643
644 2000-05-25 Jan Hubicka <jh@suse.cz>
645
646 * jump.c (invert_exp_1): Remove first argument, use pc_set
647 to get the expression.
648 (redirect_exp): Make static; redirect only the pc_set expression,
649 remove first argument.
650 (invert_exp): Remove first argument, make static.
651 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
652 any_onlyjump at most places where we originaly did condjump_p
653 and simplejump_p.
654 (jump_back_p, follow_jumps, thread_jumps): Likewise.
655 (delete_barrier_succesors): Use pc_set.
656 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
657 calls of invert_exp and redirect_exp.
658 * rtl.h (redirect_exp, invert_exp): Remove.
659 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
660
661 2000-05-25 Richard Henderson <rth@cygnus.com>
662
663 * stmt.c (expand_end_bindings): Fix thinko last change.
664
665 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
666 Andrew Haley <aph@cygnus.com>
667
668 * except.c (func_eh_entry): Add emitted field.
669 (new_eh_region_entry): Set emitted field to 0;
670 (output_exception_table_entry): Only emit previously un-emitted data,
671 and send it to the eh_data section.
672 (output_exception_table): Break out common parts. Output
673 exception table for entire compilation unit to eh_data section.
674 (output_exception_table_data): Common parts of output_exception_table.
675 Send output to eh_data section.
676 (output_function_exception_table): Output exception table data for
677 a single function to eh_data section.
678 (free_exception_table): New external to free the table.
679 * except.h (free_exception_table): Add prototype.
680 (output_function_exception_table): Add prototype.
681 * final.c (final_end_function): Output function exception table
682 for IA64_UNWIND_INFO.
683 (final_scan_insn): Emit any unwind directives for an insn.
684
685 * frame-dwarf2.c: New file containing all DWARF 2 specific code
686 from frame.c.
687 * frame.c: Remove all DWARF 2 specific code.
688 * config/ia64/frame-ia64.c: New file.
689 (gthread_stuff): Make all gthread available with
690 IA64_UNWIND_INFO.
691 (dwarf_fde): Define an IA64 struct for dwarf_fde.
692 (__register_frame_info, __register_frame): Move to common area of file.
693 (__register_frame_info_table, __register_frame_table): Move to common i
694 area.
695 (__deregister_frame_info, __deregister_frame): Move to common area.
696 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
697 (read_uleb128): New version for ia64.
698 (get_unwind_record): Read the next IA-64 unwind record.
699 (read_R_record): Read a region header record.
700 (process_a_b_reg_code): X record helper.
701 (read_X_record): Read an X format record.
702 (read_B_record): Read a B format record.
703 (P3_record_types): List of record types matching the P3 format.
704 (P7_record_types): List of record types matching the P7 format.
705 (P8_record_types): List of record types matching the P8 format.
706 (read_P_record): Read a P format record.
707 (init_ia64_reg_loc): Set default fields for a register.
708 (init_ia64_unwind_frame): Set defaults for all register records.
709 (execute_one_ia64_descriptor): Execute one descriptor record.
710 (rse_address_add): Calculate the position of a local reg in memory.
711 (normalize_reg_loc): Turn a location descriptor into a memory address.
712 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
713 within a specified PC offset range.
714 (get_real_reg_value): Given a register location, retrieve its value.
715 (set_real_reg_value): Change the value of a register location.
716 (copy_reg_value): Copy reg values, if needed.
717 (copy_saved_reg_state): Copy all registers that need to be copied.
718 (process_state_between): Normalize all frame register records that
719 fall within the specified PC range.
720 (frame_translate): Take a processed frame description, and turn
721 everything into addresses.
722 (build_ia64_frame_state ): Find and create frame state record for a PC.
723 (get_personality): Get the personality routine for a given frame.
724 (get_except_table): Get the exception table for a given frame.
725 (record_name): Unwind record names for debugging.
726 (print_record): Print and unwind record.
727 (print_all_records): Print an entire unwind image.
728 (__ia64_backtrace): Print a backtrace.
729 (ia64_backtrace_helper): New function.
730 (__register_frame_info_aux): New function.
731 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
732
733 * frame.h (enum unw_record_type): New unwind record types.
734 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
735 (struct unw_r_record, unwind_record): New unwind record structs.
736 (struct unwind_info_ptr): Unwind information layout.
737 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
738 descriptors.
739 (struct ia64_reg_loc): Register location description.
740 (struct ia64_frame_state): Location of all registers in a frame.
741 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
742 * libgcc2.c (__ia64_personality_v1): Personality routine.
743 (__calc_caller_bsp): Calculate the bsp register for the caller's
744 frame.
745 (ia64_throw_helper): Figure out who to return to and set up the
746 registers.
747 (__throw): Throw routine.
748
749 * output.h (assemble_eh_align, assemble_eh_label): New functions
750 to generate EH info where we want it.
751 (assemble_eh_integer): New function.
752 * toplev.c (compile_file): Output module level exception table for
753 non-ia64 targets.
754 (main): Set exceptions_via_longjump and flag_new_exceptions based
755 on IA64_UNWIND_INFO too.
756
757 * varasm.c (assemble_eh_label): Generate a label via
758 ASM_OUTPUT_EH_LABEL if it has been specified.
759 (assemble_eh_align): Generate an alignment directive via
760 ASM_OUTPUT_EH_ALIGN if it has been specified.
761 (assemble_eh_label): Generate an integer value via
762 ASM_OUTPUT_EH_type if they have been specified.
763 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
764 (ia64_init_builtins): Add __builtin_ia64_bsp
765 and __builtin_ia64_flushrs.
766 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
767 IA64_BUILTIN_FLUSHRS.
768 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
769 IA64_BUILTIN_FLUSHRS.
770
771 * config/ia64/ia64.md (flushrs): New insn to flush the register
772 stack. Add to unspec list.
773
774 * config/ia64/crtbegin.asm (frame_object): Change size.
775 (__do_frame_setup_aux): New function.
776 * config/ia64/crtend.asm: call __do_frame_setup_aux.
777 * config/ia64/t-ia64 (LIB2ADDEH): Add.
778 * Makefile.in (LIB2ADDEH): Add.
779 (LIB2ADD): Use LIB2ADDEH.
780
781 2000-05-24 Richard Henderson <rth@cygnus.com>
782
783 * recog.c (offsettable_address_p): If mode size is zero, assume
784 BIGGEST_ALIGNMENT.
785
786 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
787
788 * configure.in: Check for -Wno-long-long option support and improve
789 handling of warning CFLAGS for stages 1 and 2.
790 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
791 * configure: Regenerate.
792
793 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
794
795 * gcc.texi: Remove contributor list. Instead include contrib.texi.
796 * contrib.texi: New file.
797
798 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
799
800 * loop.c (basic_induction_var): Avoid double recording of an increment.
801
802 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
803
804 * Back out this patch:
805 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
806 * loop.h (struct induction): Add multi_insn_incr.
807 * loop.c (basic_induction_var): New multi_insn_incr argument.
808 Set it if we search back through previous insns for the biv.
809 (record_biv): New multi_insn_incr argument; fill in struct induction.
810 (strength_reduce): Discard an iv with multiple bivs, any of
811 which require multiple insns to increment.
812
813 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
814
815 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
816
817 * rtl.h (loc_mentioned_in_p): Declare.
818 * reload.c (loc_mentioned_in_p): Moved from here...
819 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
820 Fix loop increment for 'E' handling.
821 * loop.c (strength_reduce): When doing biv->giv conversion,
822 take multi-insn biv increments into account.
823
824 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
825
826 * stmt.c (expand_end_bindings): Look through NOTEs to find a
827 BARRIER.
828
829 2000-05-24 Mark Mitchell <mark@codesourcery.com>
830
831 * calls.c (expand_call): Handle cleanups in tail-recursion
832 arguments analagously to cleanups in sibling calls.
833
834 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
835
836 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
837 All callers changed.
838
839 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
840
841 * expr.c (expand_assignment, store_expr, expand_expr,
842 expand_expr_unaligned): Set in_check_memory_usage while emitting
843 chkr_check_addr libcall.
844
845 2000-05-24 Nick Clifton <nickc@cygnus.com>
846
847 * fold-const.c (extract_muldiv): When constructing a
848 multiplier/divisor, do not expect const_binop to correctly
849 determine if overflow has occured, so check explicitly.
850
851 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
852
853 * c-decl.c (build_enumerator): Don't modify the value's type,
854 convert it.
855
856 2000-05-24 Andreas Jaeger <aj@suse.de>
857
858 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
859
860 2000-05-24 Eric Christopher <echristo@cygnus.com>
861
862 * configure.in: Redefine inhibit_libc conditions.
863 * libgcc2.c: Remove inhibit_libc conditional define.
864 * configure: Regenerate.
865
866 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
867
868 * configure.in: For --enable-languages=LIST, check for empty LIST.
869 * configure: Regenerate.
870
871 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
872
873 * pdp11.h (STACK_BOUNDARY): Define.
874
875 2000-05-24 Jakub Jelinek <jakub@redhat.com>
876
877 * ifcvt.c (if_convert): Update life info globally.
878
879 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
880
881 * emit-rtl.c (unshare_all_decls): New function.
882 (unshare_all_rtl): Call it.
883
884 2000-05-23 Nick Clifton <nickc@cygnus.com>
885
886 * configure.in: Treat 'strongarm' as if it were 'arm' when
887 determining cpu type.
888
889 * configure: Regenerate.
890
891 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
892 where constant strings are involved.
893
894 * config/arm/arm.h (arm_condition_codes): Change type to 'const
895 char *'.
896
897 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
898 cases where constant strings are involved.
899
900 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
901
902 * config/sh/sh.c (gen_far_branch, split_branches): Update
903 to reflect new prototypes for redirect_jump and invert_jump.
904 (sh_insn_length_adjustment): Get rid of const warnings.
905
906 2000-05-23 Kazu Hirata <kazu@hxi.com>
907
908 * invoke.texi (Options for Debugging Your Program or GCC): Update
909 the names of dump files.
910
911 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
912
913 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
914 * configure: Regenerated.
915
916 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
917
918 * simplify-rtx.c (SIGN_EXTEND): New macro.
919 (simplify_unary_operation, simplify_binary_operation,
920 simplify_relational_operation): Use SIGN_EXTEND. Make low
921 halves of (low, high) pairs unsigned if they weren't already.
922 (simplify_ternary_operation): Cast INTVAL to unsigned before
923 comparing to a MODE_BITSIZE.
924
925 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
926
927 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
928 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
929
930 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
931 gcc_AC_NEED_DECLARATIONS.
932
933 * dwarfout.c: Don't prototype time().
934
935 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
936
937 * system.h: Likewise.
938
939 * toplev.c: Likewise.
940
941 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
942
943 * c-decl.c (pushdecl): Invert sense of test for non-global types.
944
945 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
946
947 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
948
949 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
950
951 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
952
953 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
954
955 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
956 (alpha_start_function): Never write ..ng label if VMS or NT.
957 (alpha_align_insns): Remove GP_IN_USE arg.
958 Alignment now unsigned.
959 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
960 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
961 and two define_insn's.
962
963 2000-05-22 Richard Henderson <rth@cygnus.com>
964
965 * combine.c (simplify_comparison): Use trunc_int_for_mode.
966
967 2000-05-22 Richard Henderson <rth@cygnus.com>
968
969 * stor-layout.c (place_field): Change rli->size to rli->offset.
970
971 2000-05-22 Richard Henderson <rth@cygnus.com>
972
973 * function.c (thread_prologue_and_epilogue_insns): Make sure
974 existing line number notes appear after the prologue.
975
976 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
977
978 * config/alpha/alpha.c (alpha_fnname): New static variable.
979 (print_operand, case '~'): New case.
980 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
981 (alpha_start_function): Set alpha_fnname.
982 Write "ng" label if no ldgp; don't write ldgp insn.
983 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
984 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
985
986 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
987
988 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
989 on deleted labels.
990
991 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
992
993 * varasm.c (eh_frame_section): Revert change to argument list.
994
995 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
996
997 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
998 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
999
1000 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
1001 dangling "else" that causes "break" to be conditional.
1002 Also remove unneeded code at start.
1003
1004 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
1005
1006 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
1007 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
1008 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
1009
1010 2000-05-22 Jakub Jelinek <jakub@redhat.com>
1011
1012 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
1013 just one argument.
1014
1015 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1016
1017 * alias.c (record_component_aliases): New function.
1018 * tree.h: Clean up some declarations and comments.
1019 (record_component_aliases): New declaration.
1020 * tree.c (get_alias_set): If type and has alias set, use it.
1021
1022 2000-05-22 Richard Henderson <rth@cygnus.com>
1023
1024 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
1025 IF_THEN_ELSE to a setcc form.
1026 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
1027
1028 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1029
1030 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
1031 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
1032
1033 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1034
1035 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
1036 not a PARALLEL.
1037
1038 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1039
1040 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
1041 * config/mn10300/mn10300.c (print_operand): Likewise.
1042
1043 * final.c (split_double): Right shift of negative values is not
1044 portable.
1045
1046 * ifcvt.c (if_convert): Scan and kill dead code.
1047
1048 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
1049
1050 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
1051
1052 * diagnostic.c: Eliminate implicit int.
1053 * except.c, gcc.c: Add static prototypes.
1054 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
1055 * gensupport.c (process_rtx): Use XVEC to initialize vector
1056 slot of 'split'.
1057
1058 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
1059 debug_reg_names instead of static reg_names. If not, define
1060 global reg_names.
1061 * regclass.c: Don't define global reg_names unless
1062 DEBUG_REGISTER_NAMES is defined.
1063
1064 * reload1.c (order_regs_for_reload): Remove unused variable.
1065 * varasm.c: Include output.h after defaults.h. Define
1066 eh_frame_section as function of no args, not of unspecified args.
1067
1068 * gcc.c: Constify argbuf; arguments to store_arg,
1069 process_command, main; elements of struct command and struct
1070 switchstr; local variables in execute, process_command, main.
1071
1072 2000-05-20 Bruce Korb <bkorb@gnu.org>
1073
1074 * fixinc/inclhack.def: many applications of c_fix=format + tests
1075 * fixinc/check.diff: regenerated
1076 * fixinc/fixincl.x: regenerated
1077
1078 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1079
1080 * alias.c: Clarify some comments.
1081 (record_base_value): REGNO is unsigned.
1082 * rtl.h (record_base_value): Likewise.
1083
1084 * alias.c (aliases_everything_p): Don't special-case QImode here.
1085 * c-common.c (c_get_alias_set): Do it here.
1086 Handle BIT_FIELD_REF by getting alias info for arg.
1087 Use POINTER_TYPE_P.
1088
1089 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
1090
1091 * mklibgcc.in: Restore rule to create ${dir}.
1092
1093 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
1094
1095 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
1096 GCC_FOR_TARGET used by MULTILIBS.
1097 * mklibgcc.in: Make sure each .o file depends on the
1098 directory it will be in.
1099 Make the multilib directory depends libgcc.
1100
1101 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
1102
1103 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
1104
1105 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
1106
1107 * fold-const.c (make_range): Handle degenerated intervals.
1108 Fixes c-torture/execute/991221-1.c
1109
1110 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1111
1112 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
1113 * reload.c (find_equiv_reg): Likewise.
1114 * alias.c (init_alias_analysis): Likewise.
1115 Only call prologue_epilogue_contains on insns.
1116 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
1117 * bb-reorder.c (hard-reg-set.h): Include earlier.
1118 * haifa-sched.c (hard-reg-set.h): Likewise.
1119 * ifcvt.c (hard-reg-set.h): Likewise.
1120 * local-alloc.c (hard-reg-set.h): Likewise.
1121 * loop.c (hard-reg-set.h): Likewise.
1122 * predict.c (hard-reg-set.h): Likewise.
1123 * regrename.c (hard-reg-set.h): Likewise.
1124 * flow.c (hard-reg-set.h): Likewise.
1125 (reg_set_to_hard_reg_set): New function.
1126 * bitmap.c (regs.h, basic-block.h): No longer include.
1127 (bitmap.h): Now include.
1128 * conflict.c (hard-reg-set.h): Include.
1129 * profile.c (hard-reg-set.h): Likewise.
1130 * print-rtl.c (hard-reg-set.h): Likewise.
1131 * sbitmap.c (hard-reg-set.h): Likewise.
1132 * toplev.c (hard-reg-set.h): Likewise.
1133 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
1134 * hard-reg-set.h (reg_names): Now constant.
1135 * regs.h (reg_names): Likewise.
1136 * regclass.c (reg_names): Likewise.
1137 * loop.h (basic-block.h): No longer include.
1138 (bitmap.h): Now include.
1139 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
1140 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
1141 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
1142
1143 2000-05-19 Jan Hubicka <jh@suse.cz>
1144 Richard Henderson <rth@cygnus.com>
1145
1146 * basic-block.h (struct edge_def): New field "count".
1147 (struct basic_block_def): Likewise.
1148 * flow.c (entry_exit_blocks): Add count fileds.
1149 (split_edge): Keep count information up-to-date.
1150 (dump_edge_info, dump_flow_info): Dump count fields.
1151
1152 * final.c (count_instrumented_edges): Rename to edge from arc.
1153 (end_final): Update users.
1154 * profile.c: Include expr.h, basic-block.h.
1155 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
1156 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
1157 (ignore_next_note, return_label_execution_count): Kill.
1158 (bbg_file_name, da_file_name): Kill.
1159 (edge_info, bb_info): New structures.
1160 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
1161 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
1162 (total_num_edges_instrumented): Likewise.
1163 (init_arc, expand_spanning_tree): Kill.
1164 (fill_spanning_tree, tablejump_entry_p): Kill.
1165 (instrument_edges): Rewrite from instrument_arcs to use
1166 commit_edge_insertions infrastructure.
1167 (compute_branch_probabilities): Remove arguments; rewrite for
1168 CFG infrastructure; use rtl_dump_file directly.
1169 (branch_prob, find_spanning_tree): Likewise.
1170 (union_groups, find_group): New.
1171 (init_branch_prob): Make bbg_file_name and da_file_name local.
1172 (end_branch_prob): Use rtl_dump_file directly.
1173 (init_edge_profiler): Rename to edge from arc.
1174 (output_arc_profiler): Kill.
1175 (gen_edge_profiler): New.
1176 (output_func_start_profiler): Turn off profiling. Make the
1177 constructor static when we can.
1178 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
1179
1180 * toplev.c (DFI_flow): Remove.
1181 (DFI_cfg, DFI_life): New.
1182 (dump_file): Update accordingly.
1183 (compile_file): Call end_branch_prob if profile_arc_flag too.
1184 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
1185 profiling after the CFG is built. Move flow1 life analysis to
1186 DFI_life. Always estimate remaining probabilities.
1187
1188 2000-05-19 Richard Henderson <rth@cygnus.com>
1189
1190 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
1191
1192 * flow.c (make_edges): The sibling call edge to exit is abnormal.
1193
1194 2000-05-19 Richard Henderson <rth@cygnus.com>
1195
1196 * jump.c (redirect_jump): Add delete_unused argument. Don't
1197 remove labels and code following when LABEL_NUSES goes to zero.
1198 (invert_jump): Likewise.
1199 (jump_optimize_1): Fix redirect/invert arguments.
1200 (do_cross_jump, thread_jumps): Likewise.
1201 * flow.c (split_edge): Likewise.
1202 * reorg.c (optimize_skip): Likewise.
1203 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
1204 * profile.c (instrument_arcs): Likewise.
1205 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
1206 * rtl.h: Update prototypes.
1207
1208 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
1209
1210 * ssa.c (convert_from_ssa): Tell life_analysis we need death
1211 notes.
1212 (make_regs_equivalent_over_bad_edges): Only look at abnormal
1213 critical edges.
1214
1215 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
1216
1217 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
1218 past l1 when deleting whitespace and markers.
1219
1220 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
1221 * cpplib.c (do_unassert): Put the list to compare against on
1222 the stack.
1223
1224 2000-05-19 Bruce Korb <bkorb@gnu.org>
1225
1226 * fixinc/README: cleaned up old documentation
1227 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
1228 * fixinc/check.tpl: compute the list of needed directories
1229 emit "#if defined(name)" because of conflict
1230 omit machine name differences from output differences
1231 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
1232 (machine_name): change test text to use `sed' markers
1233 * fixinc/fixincl.x: regen
1234
1235 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1236
1237 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
1238 a CONSTRUCTOR.
1239
1240 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1241
1242 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
1243 it to match the current practice.
1244
1245 2000-05-18 Mark Mitchell <mark@codesourcery.com>
1246
1247 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
1248
1249 2000-05-18 Richard Henderson <rth@cygnus.com>
1250
1251 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
1252 * rtl.h (insn_dependant_p): Declare it.
1253 * loop.c (strength_reduce): Use it.
1254
1255 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
1256
1257 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
1258 16-bit and 64-bit clean-up.
1259
1260 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
1261
1262 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
1263 * configure: Rebuilt.
1264
1265 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1266
1267 * genopinit.c: Use $ for escape sequences in optab patterns.
1268 Remove backslashes from optab patterns. Change $A, $B, $C to
1269 expand to (int) whatever instead of just whatever; remove
1270 explicit (int) from all optab patterns.
1271
1272 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
1273 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
1274 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
1275 genrecog.c: Remove private copies of xmalloc, xrealloc, and
1276 xstrdup.
1277
1278 2000-05-18 Richard Henderson <rth@cygnus.com>
1279
1280 * jump.c (jump_optimize_1): Base minimum insn count during
1281 find_cross_jump on BRANCH_COST.
1282
1283 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1284
1285 * print-rtl.c (print_rtx): Only print note line number as string
1286 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
1287 * final.c (final_scan_insn): Do nothing for note line number 0.
1288
1289 2000-05-18 Jakub Jelinek <jakub@redhat.com>
1290
1291 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
1292 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
1293 NOTE_INSN_DELETED_LABEL.
1294
1295 2000-05-18 Nick Clifton <nickc@cygnus.com>
1296
1297 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
1298 uninitialised data in .rodata not .bss, and do not interpret an
1299 error in the initialisation value as meaning that the variable
1300 should be placed in the .bss section.
1301
1302 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
1303
1304 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
1305 not `$ac_cv_prog_cc_cc_c_o'.
1306 * configure: Regenerated.
1307
1308 2000-05-18 Chris Demetriou <cgd@sibyte.com>
1309 Richard Henderson <rth@cygnus.com>
1310
1311 * c-common.h (enum c_tree_index): Add g77 type entries.
1312 (g77_integer_type_node, g77_uinteger_type_node): New.
1313 (g77_longint_type_node, g77_ulongint_type_node): New.
1314 * c-decl.c (init_decl_processing): Initialize them.
1315
1316 2000-05-18 Richard Henderson <rth@cygnus.com>
1317
1318 * config/h8300/h8300.md (subs patterns): Use %G to negate.
1319
1320 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
1321 (small_power_of_two): Likewise; use exact_log2.
1322 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
1323 (output_adds_subs): Remove.
1324 (two_insn_adds_subs_operand): New.
1325 (split_adds_subs): New.
1326 * config/h8300/h8300-protos.h: Update.
1327 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
1328 (CONST_OK_FOR_L): Match strict adds operands.
1329 (CONST_OK_FOR_N): Match struct subs operands.
1330 * config/h8300/h8300.md (adds_subs insns): Remove.
1331 (addhi patterns): Output adds/subs directly.
1332 (addsi_h8300h): Likewise.
1333 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
1334
1335 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1336
1337 * cppexp.c (parse_assertion): New.
1338 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
1339 (_cpp_parse_expr): Remove case '#'. Don't set
1340 parsing_if_directive.
1341 * cpphash.c (collect_objlike_expansion,
1342 collect_funlike_expansion, collect_params,
1343 _cpp_create_definition): The list no longer has a trailing
1344 VSPACE token.
1345 * cpphash.h (enum node_type): Add T_ASSERTION.
1346 (struct hashnode): Remove aschain, add pred.
1347 (struct predicate): New.
1348 Update prototypes.
1349
1350 * cpplex.c (expand_token_space): Handle both offset and
1351 nonoffset lists.
1352 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1353 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1354 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1355 _cpp_equiv_toklists): New.
1356 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1357 stop at any single-character token, not just newline.
1358 (_cpp_lex_token): Remove special cases for #define and #if.
1359 (cpp_get_token): Expect # as a separate token type. Remove
1360 DIRECTIVE case.
1361 (_cpp_get_directive_token): Remove DIRECTIVE case.
1362 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1363
1364 * cpplib.c (_cpp_check_directive): Set dirno and
1365 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1366 (_cpp_handle_directive): Run # <number> through the same logic
1367 as normal directives.
1368 (do_define): Don't set parsing_define_directive. Use
1369 _cpp_scan_until. The list does not have a VSPACE at the end.
1370 (do_if): Save, clear, and restore only_seen_white around
1371 _cpp_parse_expr.
1372 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1373 (do_assert, do_unassert): Rewrite.
1374
1375 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1376 (LIST_OFFSET): New flag.
1377 (struct cpp_toklist): Replace dir_handler and dir_flags with
1378 dirno and flags.
1379 (struct cpp_reader): Remove parsing_if_directive and
1380 parsing_define_directive.
1381
1382 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1383
1384 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1385 following the cabs decl which terminate on the following line.
1386 Add the corresponding test_text case.
1387
1388 2000-05-18 Neil Booth <NeilB@earthling.net>
1389
1390 * cppinit.c (cpp_reader_init): Initialise col_adjust and
1391 default tab stop size.
1392 (no_num, OPT_ftabstop): New.
1393 (handle_option): Handle "ftabstop=" command-line option.
1394 (print_help): Document it.
1395 * cpplex.c (COLUMN): Remove.
1396 (handle_newline): Reset col_adjust.
1397 (skip_whitespace): Update col_adjust as tabs encountered.
1398 (_cpp_lex_line): Update to use col_adjust. Call
1399 skip_whitespace for all whitespace.
1400 * cpplib.h (struct cpp_options): New member tabstop.
1401 (struct cpp_reader): New member col_adjust.
1402 (CPP_BUF_COL): Update.
1403 (CPP_BUF_COLUMN): New.
1404 * cpp.texi: Document "-ftabstop=" command line option.
1405
1406 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
1407
1408 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1409 files.
1410 * configure: Rebuilt.
1411
1412 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
1413
1414 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1415
1416 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1417 HOST_BITS_PER_WIDE_INT is >= 64.
1418
1419 2000-05-17 Richard Henderson <rth@cygnus.com>
1420
1421 * jump.c (jump_optimize_1): Remove inactive but real insns
1422 in jump-to-next-insn optimization.
1423
1424 2000-05-17 Richard Henderson <rth@cygnus.com>
1425
1426 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1427 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
1428 Don't call recompute_reg_usage if no_new_pseudos is true.
1429 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1430 Return true if we did work; update global life information.
1431 * basic-block.h (optimize_mode_switching): Update decl.
1432
1433 2000-05-17 Neil Booth <neilb@earthling.net>
1434
1435 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1436
1437 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
1438
1439 * cpplib.c: New feature, #pragma system_header.
1440 * cpp.texi: Document special treatment of system headers, and
1441 the various mechanisms to get a header that special treatment.
1442
1443 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1444
1445 * system.h (offsetof): Define at the very end, to ensure we prefer
1446 the platform's definition if available.
1447
1448 2000-05-16 Bruce Korb <bkorb@gnu.org>
1449
1450 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1451 * fixinc/server.c: likewise
1452 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1453 + #ifdef debugging code + use #def constant for
1454 sub-pattern count
1455 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1456 on C++ math namespace
1457
1458 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1459
1460 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1461 Don't check the return value of sprintf. Use asprintf to avoid
1462 buffer overflows.
1463
1464 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1465
1466 * flags.h (warn_unused_function, warn_unused_label,
1467 warn_unused_parameter, warn_unused_variable, warn_unused_value):
1468 Replace ``warn_unused''.
1469 (set_Wunused): Add declaration.
1470 * toplev.c (set_Wunused): New function.
1471 (warn_unused_function, warn_unused_label, warn_unused_parameter,
1472 warn_unused_variable, warn_unused_value): New variables.
1473 (W_options): Add -Wunused-function, -Wunused-function,
1474 -Wunused-label, -Wunused-parameter, -Wunused-variable and
1475 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
1476
1477 * toplev.c (decode_W_option): Update -Wunused flags by calling
1478 set_Wunused.
1479 * c-decl.c (c_decode_option): Ditto for -Wall.
1480
1481 * stmt.c (expand_expr_stmt, expand_expr_stmt,
1482 warn_about_unused_variables): Replace warn_unused with more
1483 explicit warn_unused_value et.al.
1484 * function.c (expand_function_end): Ditto.
1485 * c-typeck.c (internal_build_compound_expr,
1486 internal_build_compound_expr): Ditto.
1487 * c-decl.c (poplevel, pop_label_level): Ditto.
1488 * toplev.c (check_global_declarations): Replace warn_unused with
1489 check for either warn_unused_function or warn_unused_variable.
1490
1491 * gcc.1, invoke.texi (Warning Options): Document
1492 -Wunused-function, -Wunused-function, -Wunused-label,
1493 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1494
1495 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
1496
1497 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1498 $(srcdir), not in the current directory.
1499
1500 2000-05-16 Richard Henderson <rth@cygnus.com>
1501
1502 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1503 assembler supports it.
1504 (.fini, .init): Use a gp-relative indirect call.
1505 (__do_global_dtors_aux): Preserve the gp; rebundle.
1506 (__do_frame_setup): Likewise.
1507 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1508 (.init): Use a gp-relative indirect call.
1509 (__do_global_ctors_aux): Preserve the gp.
1510
1511 2000-05-16 Richard Henderson <rth@cygnus.com>
1512
1513 * flow.c (commit_one_edge_insertion): Be prepared for a return
1514 insn to be inserted on the edge with a normal jump.
1515 * jump.c (jump_optimize_1): Don't look to create return isns.
1516
1517 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1518 * jump.c (jump_optimize_1): Likewise.
1519 (returnjump_p): Verify the argument is a JUMP_INSN.
1520 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1521
1522 2000-05-16 Nick Clifton <nickc@cygnus.com>
1523
1524 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1525 GET_RTX_CLASS (GET_CODE ()) == 'i'.
1526 (large_insn_p): Ditto.
1527 (m32r_is_insn): New function: Return true if the insn contains
1528 an executable instruction.
1529 (m32r_adjust_insn): Use m32r_is_insn.
1530 (m32r_sched_reorder): Use m32r_is_insn.
1531 (m32r_sched_variable_issue): Use m32r_is_insn.
1532
1533 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1534
1535 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1536 VAR_DECL.
1537
1538 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1539
1540 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1541 according to given options.
1542
1543 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
1544
1545 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1546 if X has VOIDmode either.
1547 (LIMIT_RELOAD_CLASS): Similarly.
1548
1549 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1550 not "general_operand" to match the processor's capabilities.
1551
1552 2000-05-16 Bruce Korb <bkorb@gnu.org>
1553
1554 * fixinc/README: corrected return address
1555 * fixinc/check.diff: regenerate, now that test works
1556 * fixinc/fixfixes.c(format_fix,format_write): reformatted
1557 (char_macro_def_fix,char_macro_use_fix): corrected and
1558 rewrote to use regex to parse the text
1559 * fixinc/inclhack.def: more testing
1560 * fixinc/fixincl.x: regenerated
1561
1562 * fixinc/inclhack.def: added several "test_text" attributes
1563 changed several fixes to use `c_fix = format'
1564 re-alphabetized the fixes
1565
1566 * fixinc/check.diff: regenerate
1567 * fixinc/fixincl.x: regenerate
1568 * fixinc/check.tpl: added `sparc' and `netinet' to the list
1569 of created dirs
1570
1571
1572 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
1573
1574 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1575
1576 2000-05-15 Richard Henderson <rth@cygnus.com>
1577
1578 * toplev.c (rest_of_compilation): Run full jump pass before
1579 find_basic_blocks of flow2.
1580
1581 2000-05-15 Richard Henderson <rth@cygnus.com>
1582
1583 * jump.c: Fix typos and clarify commentary from last change.
1584 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1585 (safe_to_remove_jump_p): Remove.
1586 (condjump_label): Use pc_set.
1587
1588 2000-05-15 Richard Henderson <rth@cygnus.com>
1589
1590 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1591 that get in the way after reload.
1592 (cond_exec_process_if_block): Skip a label heading THEN block.
1593
1594 2000-05-15 Richard Henderson <rth@cygnus.com>
1595
1596 * varasm.c (output_constant_pool): Abort instead of converting
1597 (improperly) deleted labels to zero.
1598
1599 2000-05-16 Neil Booth <NeilB@earthling.net>
1600
1601 * cpplex.c (parse_string2): Update comment.
1602 (cpp_lex_line): No special assertion treatment for '('.
1603 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1604 * cpplib.h (SYNTAX_ASSERT): Remove.
1605
1606 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1607
1608 * jump.c (condjump_p): Mark as depreached.
1609 (any_condump_p): New.
1610 (any_uncondump_p): New.
1611 (pc_set): New.
1612 (safe_to_remove_jump_p): New.
1613 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1614 safe_to_remove_jump_p): Declare.
1615
1616 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1617
1618 * calls.c: Re-install both patches reverted by last patch.
1619 (struct arg_data): New field tail_call_reg.
1620 (initialize_argument_information): Initialize tail_call_reg
1621 (load_register_parameters): New argument flags, use
1622 tail_call_reg when emiting tail call sequence.
1623 (expand_call): Update call of load_register_parameters;
1624 copy unadjusted_args_size to adjusted_args_size.
1625
1626 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
1627
1628 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1629 and bct_p parameters to flags.
1630 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1631 * rtl.h (loop_optimize): Update prototype.
1632 * toplev.c (rest_of_compilation): Update call of loop_optimize.
1633
1634 2000-05-15 Jakub Jelinek <jakub@redhat.com>
1635
1636 * calls.c (expand_call): Move expand_start_target_temps call after
1637 start_sequence().
1638
1639 2000-05-15 Neil Booth <NeilB@earthling.net>
1640
1641 * cpphash.c (trad_stringify, warn_trad_stringify,
1642 collect_params): Make some pointers pointers to const.
1643 * cpplex.c (auto_expand_name_space) Guaranteed to always
1644 expand by at least one character.
1645 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1646 (struct token_spelling): Use const U_CHAR * rather than PTR.
1647 (expand_name_space): Fix up token pointers if name space
1648 is moved when expanding.
1649 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1650 parse_string2, save_comment, spell_token, cpp_output_list):
1651 Update so the routines handle tokens with a direct pointer to
1652 their text, rather than an offset into the token's list's namebuf.
1653 (_cpp_lex_line): Rearrange for clarity.
1654
1655 * cpplib.c (_cpp_check_directive): Similarly.
1656 (do_define): Make SYM a pointer to const.
1657 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1658 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1659 (TOK_OFFSET): Delete.
1660 (TOK_NAME): Update.
1661
1662 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
1663
1664 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1665 64-bit ABI.
1666
1667 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
1668 into account.
1669 (logical_u_operand): Delete.
1670 (non_logical_cint_operand): Rewrite to take MODE into account.
1671 (non_logical_u_cint_operand): Delete.
1672 (boolean_operator): New function.
1673 (print_operand): Add new %q operand.
1674 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1675 remove logical_u_operand and non_logical_u_cint_operand,
1676 update logical_operand and non_logical_cint_operand.
1677 * config/rs6000/rs6000.md: Rewrite the patterns for performing
1678 logical operations to use %q.
1679
1680 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1681 (movdi): Make similar to movsi.
1682 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1683 is no such thing as a DImode CONST_DOUBLE.
1684 * config/rs6000/rs6000.c (output_toc): Likewise.
1685
1686 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1687 codes when old mnemonics are in use. Print register names
1688 for cc registers when requested.
1689
1690 * optabs.c (expand_float): Don't allow mode widening that causes
1691 double rounding.
1692
1693 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1694 flags to their current names -maix64 and -maix32.
1695
1696 2000-05-14 Bruce Korb <bkorb@gnu.org>
1697
1698 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1699 and/or after current text of file
1700 * fixinc/fixlib.c(must_malloc):
1701 * fixinc/fixlib.h(must_malloc): + reformatting
1702 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1703 with usages of ``c_fix = wrap;''
1704 Add several tests and use the ``c_fix = format'' fixer more.
1705 * fixinc/fixincl.x: regen
1706 * fixinc/check.diff: regen
1707 * fixinc/check.tpl: emit the associated header with the missing
1708 test message
1709
1710 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
1711
1712 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1713 variables $src and $dst.
1714
1715 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
1716
1717 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1718 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1719 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1720 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1721 fields.
1722 (set_message_prefixing_rule): Declare.
1723
1724 * diagnostic.c: (current_prefixing_rule): New variable.
1725 (set_message_prefixing_rule): Define.
1726 (output_set_prefix): Adjust buffer->emitted_prefix_p.
1727 (init_output_buffer): Adjust Initialization.
1728 (output_emit_prefix): Rewrite. Take prefixing rules into account.
1729
1730 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
1731
1732 * ifcvt.c (if_convert): Do not free NULL.
1733
1734 2000-05-12 Nick Clifton <nickc@cygnus.com>
1735
1736 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
1737 to move a double word value.
1738 (di_operand): New function: Return true if the operand is suitbale
1739 for a double word move operation.
1740 (nonimmediate_di_operand): New function: Return true if the
1741 operand is a DImode register or MEM.
1742
1743 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1744 nonimmediate_di_operand.
1745
1746 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1747 nonimmediate_di_operand.
1748
1749 * config/fr30/fr30.md (movdi): New pattern. Required because
1750 other patterns generate DImode results.
1751 (movdi_insn): New pattern.
1752
1753 2000-05-12 Richard Henderson <rth@cygnus.com>
1754
1755 * config/alpha/alpha.c (struct shadow_summary): Define
1756 bitfields as type unsigned int.
1757
1758 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
1759
1760 * config/avr/t-avr: Added definition of FLOAT while generates
1761 fp-bit.c
1762
1763 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1764 peepholes for tst+jump = sbrs/sbrc optimization.
1765
1766 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
1767
1768 * expr.c (emit_push_insn): Do not adjust stack pointer when
1769 preallocating.
1770
1771 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
1772
1773 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1774 * system.h (offsetof): ... to here.
1775
1776 2000-05-12 Richard Henderson <rth@cygnus.com>
1777
1778 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1779 * final.c (final_end_function): Use app_disable. Rearrange note
1780 handling into a switch. Emit deleted labels.
1781 (output_asm_label): Generate label strings for deleted labels.
1782 * flow.c (tail_recursion_label_list): New.
1783 (find_basic_blocks_1): Set label_value_list directly. Collect list
1784 of tail recursion labels from call_placeholders. Don't add deleted
1785 labels to the label value list.
1786 (cleanup_cfg): Use free_EXPR_LIST_list.
1787 (flow_delete_insn_chain): Turn non-removable labels into notes.
1788 (flow_delete_block): Don't disable deleting the block because of
1789 a non-removable label.
1790 (tail_recursion_label_p): New.
1791 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1792 because of a label.
1793 (merge_blocks_move_successor_nojumps): Likewise. Also move a
1794 jump table.
1795 (merge_blocks): Disable a merge because of tail recursion labels.
1796 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1797 Use a more accurate measure of not merging the join block.
1798 (find_if_block): Don't disable conversion because of a label.
1799 (find_if_case_1, find_if_case_2): Likewise.
1800 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1801 element when copying.
1802 (squeeze_notes): Also leave EH notes.
1803 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
1804 REG_LABEL notes.
1805 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1806 deleting a label.
1807 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1808 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
1809 referring to a deleted label. Convert tail handling to a switch.
1810 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1811 for NOTE_INSN_DELETED_LABEL.
1812 (NOTE): Fix commentary.
1813 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1814 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1815 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1816 (LABEL_NUSES, LABEL_REFS): Likewise.
1817 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1818
1819 2000-05-12 Bruce Korb <bkorb@gnu.org>
1820
1821 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1822 * fixinc/check.diff: updated
1823 * fixinc/inclhack.def: corrected & added some test_text-s
1824 * fixinc/genfixes: removed unneeded options to autogen invocation
1825 * fixinc/fixincl.tpl: Specified the output file
1826 * fixinc/fixfixes.c: visual appearance
1827 * fixinc/fixincl.x: regenerate
1828
1829 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
1830
1831 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1832 CTRL_defn_fix): Delete.
1833 (fix_char_macro_defines, fix_char_macro_uses): Rename to
1834 char_macro_def_fix and char_macro_use_fix, respectively. Put
1835 them into the FIXUP_TABLE. Get the string to search for from
1836 a c_fix_arg.
1837
1838 (format_write): New function.
1839 (format_fix): Use it.
1840
1841 (FIX_PROC_HEAD): Constify text parameter.
1842 (machine_name_fix): Constify all char *s.
1843 * fixtests.c (skip_quote): Remove double static.
1844
1845 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
1846 ctrl_use_quotes): Update for new scheme.
1847 * fixincl.x: Regenerate.
1848
1849 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
1850
1851 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
1852 DWARF2_DEBUG.
1853 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
1854 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
1855
1856 2000-05-11 Robert Lipe <robertlipe@usa.net>
1857
1858 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
1859 * fixincl.x: Regenerate.
1860
1861 2000-05-11 Richard Henderson <rth@cygnus.com>
1862
1863 * calls.c: Revert both 05-09 patches.
1864
1865 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
1866
1867 * config/mn10300/mn10300.c (print_operand): Print FP constants in
1868 hexadecimal.
1869 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
1870 for FP values.
1871
1872 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
1873 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
1874
1875 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
1876
1877 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
1878
1879 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1880
1881 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
1882
1883 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
1884
1885 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
1886 * config/avr/avr.c (jump_over_one_insn_p): New function.
1887 * config/avr/avr.md: New peepholes added. Output test and
1888 conditional jump to "sbrc" or "sbrs" command.
1889
1890 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
1891
1892 * cppmain.c (main): Use IS_DIR_SEPARATOR.
1893
1894 2000-05-11 Jakub Jelinek <jakub@redhat.com>
1895
1896 * except.c (find_exception_handler_labels_1): New function.
1897 (find_exception_handler_labels): Split into two functions, dive
1898 into CALL_PLACEHOLDERs when looking for exception handler labels.
1899
1900 2000-05-11 Stan Cox <scox@cygnus.com>
1901
1902 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
1903 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
1904 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
1905
1906 2000-05-11 Bruce Korb <bkorb@gnu.org>
1907
1908 * fixinc/fixfixes.c (double_slash_fix): obsolete
1909 (else_endif_label_fix): obsolete
1910 (format_fix): new, unused as yet
1911 (main): obsolete
1912 * fixinc/fixlib.h: added fix description struct for use by format_fix
1913 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
1914 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
1915 modules. Removed the vestiges of the script version.
1916 Added support for "make check".
1917 * fixinc/check.diff: base diff file (needs work!!)
1918 * fixinc/check.tpl: quiet the fixup output
1919 * fixinc/fixtests.c (main): obsolete
1920 * fixinc/fixincl.sh: don't bother copying fixincl to ..
1921 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
1922
1923 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
1924
1925 * toplev.c (rest_of_compilation): Remove dead code after
1926 combine.
1927
1928 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1929
1930 * cpphash.c (collect_funlike_expansion): Make "# is not
1931 followed by a macro argument name" a pedwarn, not an error.
1932 Preserve the # in the output. Suppress the warning if lang_asm.
1933
1934 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
1935
1936 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
1937 * configure: Rebuilt.
1938
1939 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
1940
1941 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
1942
1943 2000-05-10 Kazu Hirata <kazu@hxi.com>
1944
1945 * combine.c (try_combine): Fix a typo.
1946
1947 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
1948
1949 * config/ia64/ia64.md (insv): Add comment.
1950
1951 2000-05-10 Richard Henderson <rth@cygnus.com>
1952
1953 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
1954 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
1955 dependancies on FPBIT and DPBIT.
1956
1957 2000-05-10 Nick Clifton <nickc@redhat.com>
1958
1959 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
1960 when optimising for size.
1961 (mark_used_regs:) Ditto.
1962 (try_pre_increment_1): Ditto.
1963
1964 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
1965
1966 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
1967 Make error message friendlier.
1968
1969 * cpphash.h (struct hashnode): Use struct hack for name
1970 member.
1971 * cpphash.c (struct hashdummy): New.
1972 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
1973 (make_HASHNODE): No need to set ->name pointer. Correct
1974 setting of p.
1975 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
1976
1977 2000-05-10 Richard Henderson <rth@cygnus.com>
1978
1979 * flow.c (find_basic_blocks_1): Remove any spare bb_note
1980 after completion.
1981
1982 2000-05-10 Bruce Korb <bkorb@gnu.org>
1983
1984 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
1985
1986 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
1987
1988 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
1989 after we enter .debug.
1990
1991 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
1992
1993 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
1994 abstract instance of a nested inline function.
1995
1996 * stor-layout.c (finish_record_layout): finalize_type_size
1997 before laying out the pending_statics.
1998
1999 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
2000
2001 * cpplex.c (spell_token): New function.
2002 (spell_string, spell_comment, spell_name): fold into
2003 spell_token.
2004 (I, S): Add macros.
2005 (E, H): Remove macros.
2006 (save_comment): Save comment opening characters too.
2007 (_cpp_lex_file): Update to use spell_token. Tidy up comment
2008 handling.
2009 * cpplib.h (I, S): Add macros.
2010 (E, H): Remove macros.
2011 (TTYPE_TABLE): Update entries for new speller.
2012 (SYNTAX_ASSERT): Remove.
2013
2014 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
2015
2016 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
2017 when removing escaped newlines. Reverse sense of test for
2018 escaped newline.
2019
2020 2000-05-09 Richard Henderson <rth@cygnus.com>
2021
2022 * flow.c (find_basic_blocks_1): Do not delete the first
2023 bb_note we run across.
2024 (create_basic_block): Use reorder_insns to move an existing
2025 bb_note to the correct place.
2026
2027 2000-05-09 Richard Henderson <rth@cygnus.com>
2028
2029 * calls.c (expand_call): Increment currently_expanding_call
2030 before calling optimize_tail_recursion.
2031
2032 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2033
2034 * reload1.c (reload_combine): Fix errors in last change.
2035
2036 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
2037
2038 * gcc.c (used_arg): Skip over a semicolon at the end of the
2039 split-up loop; don't break out of it.
2040
2041 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
2042 (tree.o): Depend on output.h.
2043
2044 * c-decl.c (pending_invalid_xref_file,
2045 current_function_prototype_file): Constify.
2046 (pushdecl): Constify a local char *.
2047 (define_label): Constify filename parameter.
2048 * c-lex.c (init_parse): Constify parameter and return value.
2049 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
2050 * c-tree.h: Update prototypes.
2051 * c-parse.in: Constify filename member of %union, and if_stmt_file.
2052 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
2053 objc/objc-parse.c: Regenerate.
2054
2055 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
2056 * dwarfout.h: Update prototypes.
2057 * expr.c (expand_expr): Constify a local char *.
2058 * flags.h: Constify main_input_filename.
2059 * function.c (expand_function_end): Constify filename parameter.
2060 * genrecog.c (make_insn_sequence): Use a character array for
2061 c_test_pos.
2062 (main): Remove unused variables.
2063 * input.h: Constify input_filename, main_input_filename, and
2064 file_stack.name. Update prototypes.
2065 * output.h: Declare first_global_object_name and
2066 weak_global_object_name here, as const char *.
2067 * stmt.c (expand_asm_operands): Constify filename parameter.
2068 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
2069 Constify filename parameter.
2070 (input_filename, main_input_filename): Constify.
2071 * toplev.h: Update prototypes.
2072 * tree.c: Include output.h. Don't declare
2073 first_global_object_name or weak_global_object_name. Clean up string
2074 bashing in get_file_function_name_long.
2075 * tree.h (struct tree_decl): Constify filename member.
2076 (input_filename): Constify.
2077 Update prototypes.
2078 * varasm.c (first_global_object_name, weak_global_object_name):
2079 Constify.
2080 (assemble_start_function, assemble_variable): Clean up string bashing.
2081
2082 * gcc.c: Constify all spec-related strings initialized,
2083 transitively, from string constants. Constify all strings
2084 and string variables related to multilibs.
2085 (set_spec, read_specs): Cast argument to free to PTR.
2086 (used_arg): Do not modify multilib_matches. Use strncmp plus
2087 length comparison to compare multilib switches.
2088 * genmultilib: Constify everything declared in multilib.h.
2089
2090 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
2091
2092 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
2093 as deleted.
2094
2095 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
2096
2097 * config/avr/avr-protos.h (extra_constraint): change a type of
2098 second argument from char to int to avoid warnings.
2099 (asm_output_byte): Likewise.
2100
2101 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
2102 (initial_elimination_offset): Handle elimination from
2103 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
2104 (legitimate_address_p): Use MAX_LD_OFFSET.
2105 (legitimize_address): Likewise.
2106 (out_movqi_r_mr): Likewise.
2107 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
2108 (out_movsi_r_mr): Use MAX_LD_OFFSET.
2109 (out_movsi_mr_r): Likewise.
2110 (out_movqi_mr_r): Likewise.
2111 (out_movhi_mr_r): Likewise.
2112 (notice_update_cc): Correct CC for the ashrqi3 with the shift
2113 count as CONST_INT != 6.
2114 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
2115 shift count is a CONSTANT_P, but not a CONST_INT.
2116 (ashlhi3_out): Coding style modifications.
2117 (ashlsi3_out): Likewise.
2118 (ashrhi3_out): Likewise.
2119 (ashrsi3_out): Likewise.
2120 (lshrhi3_out): Likewise.
2121 (lshrsi3_out): Likewise.
2122 (ashrqi3_out): Generate shift for any known constant count without
2123 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
2124 but not a CONST_INT.
2125 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
2126 shift count is a CONSTANT_P, but not a CONST_INT.
2127 (extra_constraint): change a type of
2128 second argument from char to int to avoid warnings.
2129 (asm_output_byte): Likewise.
2130 (asm_file_end): Output size generated commands count as a hex
2131 number too.
2132
2133 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
2134
2135 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
2136 removed.
2137 (ashlqi3): Values of "length" attribute changed. Shift count
2138 uses constraints 'n' instead of 'i'.
2139 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
2140 shifts without clobber register.
2141 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
2142 (call_insn): Correct test for which_alternative == 1 (was 0).
2143 (call_value_insn): Likewise.
2144
2145 * config/avr/t-avr: Remove definition of FLOAT while generates
2146 fp-bit.c
2147
2148 2000-05-09 Bruce Korb <bkorb@gnu.org>
2149
2150 * fixinc/check.tpl: Template for checking fixes
2151 * fixinc/inclhack.def: Added 'test_text' for many fixes
2152 disable hpux8_bogus_inlines on SCO
2153 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
2154
2155 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
2156
2157 * calls.c (expand_call): Reorganize somewhat in order
2158 to avoid unnecesary recalculation inside loop and make
2159 tail call failure code cleaner.
2160
2161 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2162
2163 * alias.c (nonlocal_reference_p): Minor reformatting.
2164 * reload.c (find_equiv_reg): Simplify logic for
2165 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
2166 some some reformatting.
2167 * reload1.c (reload_combine): Don't assume everything in
2168 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
2169
2170 2000-05-08 Richard Henderson <rth@cygnus.com>
2171
2172 * final.c (current_insn_predicate): New.
2173 (final_scan_insn): Set it.
2174 * output.h (current_insn_predicate): Declare.
2175
2176 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
2177 Attach it to call insns.
2178 (cond_exec_process_if_block): Track probability for true and
2179 false branches.
2180 (dead_or_predicable): Likewise.
2181
2182 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
2183 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
2184 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
2185 (estimate_probability, expected_value_to_br_prob): Use them.
2186
2187 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
2188 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
2189 (ia64_expand_prediction): New.
2190 (emit_insn_group_barriers): Don't look at notes. Emit barriers
2191 as needed after calls.
2192 (ia64_epilogue_uses): Mark b0 used.
2193 * config/ia64/ia64.md (beq_true, beq_false): Remove.
2194 (bne_true, bne_false): Remove.
2195 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
2196 (br_true, br_false): New. Use predicate_operator and
2197 ia64_expand_prediction.
2198 (return_true, return_false): Likewise.
2199 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
2200 (call_internal1, call_value_internal): Likewise.
2201 (call_value_internal1, call_multiple_values_internal1): Likewise.
2202
2203 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
2204
2205 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
2206
2207 2000-05-08 Richard Henderson <rth@cygnus.com>
2208
2209 * rtlanal.c (may_trap_p): Consider old-style and volatile
2210 asms to trap.
2211
2212 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
2213
2214 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
2215
2216 2000-05-08 Richard Henderson <rth@cygnus.com>
2217
2218 * config/ia64/ia64.h (predicate_operator): Declare.
2219
2220 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
2221 of existance.
2222
2223 * gensupport.c (process_rtx): Copy and post-process each member
2224 of the define_insn rtvec individually.
2225
2226 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
2227
2228 * cpplex.c (spell_token): New function.
2229 (TOKEN_LEN): Add 1 for whitespace.
2230 (_cpp_lex_file): Update to use spell_token.
2231 * cpplib.h (E): Remove.
2232 (TTYPE_TABLE): Update CPP_VSPACE entry.
2233
2234 2000-05-08 Richard Henderson <rth@cygnus.com>
2235
2236 * flow.c (init_propagate_block_info): Watch out for conditional
2237 branch to next instruction, and thus one outgoing edge.
2238
2239 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
2240 for global register variables; don't special case __[CD]TOR_LIST__;
2241 mind ggc_p for string allocation.
2242
2243 2000-05-08 Nick Clifton <nickc@cygnus.com>
2244
2245 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
2246
2247 2000-05-08 Bruce Korb <bkorb@gnu.org>
2248
2249 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
2250 i?86-*-msdosdjgpp* no longer uses fixincludes
2251 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
2252 * fixinc/inclhack.sh: deleted
2253 * fixinc/hackshell.tpl: deleted
2254 * fixinc/inclhack.tpl: deleted
2255 * fixinc/Makefile.in: Remove dependencies on above
2256 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
2257
2258 2000-05-08 Andreas Jaeger <aj@suse.de>
2259
2260 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
2261 support.
2262
2263 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
2264
2265 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
2266 substitutions.
2267
2268 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
2269
2270 * cpplex.c: Move new lexer definitions and prototypes
2271 to top. Conditional include these and the code if
2272 NEW_LEXER is defined. Rename functions whose names
2273 clash if this code included.
2274
2275 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
2276
2277 * rtl.def (COND_EXEC): Clarify.
2278
2279 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
2280 same fashion as zero_extendsidi2.
2281
2282 2000-05-06 Richard Henderson <rth@cygnus.com>
2283
2284 * config/ia64/ia64.c (predicate_operator): New.
2285 (ia64_print_operand): Handle 'J'.
2286 (rtx_needs_barrier): Handle COND_EXEC.
2287 * config/ia64/ia64.h (BRANCH_COST): Define.
2288 (PREDICATE_CODES): Update.
2289 * config/ia64/ia64.md: Docuement used unspec values.
2290 (attr predicable): New.
2291 (movxf, movxf_internal): New.
2292 (extendsfdf2): Don't comment out nop.
2293 (floatdidf2): Remove.
2294 (truncxfsf2, truncxfdf2, floatdixf2): New.
2295 (abssi2, absdi2): Put the neg in the "true" slot.
2296 (conditional branch instructions): Mark not predicable.
2297 (cmov*_internal): Use predicate_operator. Split to cond_exec.
2298 (abs*_internal): Likewise.
2299 (alloc, set_bsp): Mark not predicable.
2300 (barrier, insn_group_barrier, flush_cache): Likewise.
2301 (define_cond_exec): New.
2302
2303 2000-05-06 Richard Henderson <rth@cygnus.com>
2304
2305 * c-decl.c: Include "tm_p.h".
2306
2307 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
2308 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
2309 (ia64_expand_op_and_fetch): Declare.
2310 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
2311 (setjmp_operand): Constify variables for XSTR.
2312 (ia64_encode_section_info): Likewise.
2313 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
2314 values to int.
2315 (ia64_asm_output_external): Constify name.
2316 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
2317 (process_for_unwind_directive): Provide switch default.
2318 (ia64_expand_compare_and_swap): Remove unused variables.
2319 (ia64_expand_builtin): Likewise.
2320 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
2321 for printing.
2322
2323 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
2324 (symbolic_operand, function_operand, setjmp_operand): Likewise.
2325 (shift_count_operand, shift_32bit_count_operand): Likewise.
2326 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
2327 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
2328 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
2329 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
2330 (ia64_expand_builtin): Likewise.
2331 (call_multiple_values_operation): Make dest_regno unsigned.
2332
2333 2000-05-06 Richard Henderson <rth@cygnus.com>
2334
2335 * rtl.def (DEFINE_COND_EXEC): New.
2336 * md.texi: Document it.
2337
2338 * gensupport.c (input_file): Remove.
2339 (struct queue_elem): Add lineno.
2340 (rtx_ready_queue): Remove.
2341 (errors): New.
2342 (predicable_default): New.
2343 (predicable_true, predicable_false): New.
2344 (define_attr_queue, define_attr_tail): New.
2345 (define_insn_queue, define_insn_tail): New.
2346 (define_cond_exec_queue, define_cond_exec_tail): New.
2347 (other_queue, other_tail): New.
2348 (queue_pattern): New.
2349 (process_rtx): Add patterns to the appropriate queues.
2350 (is_predicable, identify_predicable_attribute): New.
2351 (n_alternatives, collect_insn_data): New.
2352 (alter_predicate_for_insn, alter_test_for_insn): New.
2353 (shift_output_template, alter_output_for_insn): New.
2354 (process_one_cond_exec, process_define_cond_exec): New.
2355 (init_md_reader): Read the entire file. Process define_cond_exec.
2356 (read_md_rtx): Return elements from the queues.
2357
2358 2000-05-06 Richard Henderson <rth@cygnus.com>
2359
2360 * flow.c (mark_set_1): Don't update conditional life info
2361 if the register is not_dead.
2362
2363 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2364
2365 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2366 (mostlyclean): Also delete fixincl, fixinc.sh, and
2367 specs.ready, and make clean in the fixinc subdir.
2368
2369 2000-05-06 Richard Henderson <rth@cygnus.com>
2370
2371 * Makefile.in (gensupport.o): Compile for the host.
2372 (host-prefix gensuuprt.o): Remove.
2373 (genflags.o): Depend on gensupport.h and OBSTACK_H.
2374 (genattrtab.o): Likewise.
2375 (gencodes.o): Depend on gensupport.h.
2376 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2377 (genpeep.o, genattr.o, genoutput.o): Likewise.
2378
2379 * gensupport.c (obstack, rtl_obstack): New.
2380 (init_md_reader): Initialize rtl_obstack.
2381 * gensupport.h (rtl_obstack): Declare.
2382 (message_with_line): Declare.
2383
2384 * genattr.c: Remove all traces of obstack manipulation.
2385 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2386 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2387
2388 * genattrtab.c (obstack, rtl_obstack): Remove.
2389 (main): Don't init rtl_obstack.
2390 * genflags.c: Likewise.
2391
2392 * genrecog.c (message_with_line): Move ...
2393 * gensupport.c: ... here.
2394
2395 2000-05-06 Richard Henderson <rth@cygnus.com>
2396
2397 * c-typeck.c (build_c_cast): Remove dead code.
2398
2399 2000-05-06 Richard Henderson <rth@cygnus.com>
2400
2401 * flow.c (split_edge): Don't allocate global_live_at_start for
2402 the new block unless the old blocks had them as well.
2403
2404 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2405
2406 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2407 test_bb if a or b uses x.
2408
2409 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2410
2411 * cpphash.h: Remove conditional #define of __extension__.
2412 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2413 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2414 (ENABLE_RTL_CHECKING only).
2415 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2416 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2417 (ENABLE_TREE_CHECKING only).
2418 * varray.h: Add __extension__ to VARRAY_CHECK macro
2419 (ENABLE_CHECKING only).
2420
2421 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2422
2423 Use new tail-calling mechanism on ARM.
2424 * arm.md (sibcall, sibcall_value): New expands.
2425 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2426 (tailcalling peepholes): Delete.
2427 (push_multi): Simplify.
2428 * arm.c (lr_save_eliminated): Delete definition.
2429 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2430 (output_return_instruction): Remove checks on lr_save_eliminated.
2431 (output_arm_prologue): Remove old tail-calling code.
2432 (arm_output_epilogue): New parameter, really_return. All callers
2433 changed. Handle tail-calling epilogues.
2434 * arm.h (lr_save_eliminated): Delete declaration.
2435 (frame_pointer_needed): Delete declaration.
2436 * arm-protos.h (arm_output_epilogue): Adjust prototype.
2437
2438 * arm.md (is_thumb): Examine symbol thumb_code, not expression
2439 TARGET_ARM.
2440 * arm.c (thumb_code): Define it.
2441 (arm_override_options): Set it.
2442 * arm.h (thumb_code): Declare it.
2443
2444 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2445
2446 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2447
2448 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2449
2450 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2451 bogus clobber to insns.
2452 (load_multiple_operation, store_mulitple_operation): Don't check
2453 for it.
2454 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2455
2456 * arm.md (and_scc, ior_scc): Add missing mode.
2457
2458 * arm.md (call_value_symbol): Remove predicate from op2.
2459
2460 * arm.h (SPECIAL_MODE_PREDICATES): Define.
2461
2462 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2463
2464 * expr.c (get_subtarget): New function.
2465 (force_operand, expand_expr, do_store_flag): Use it.
2466
2467 * toplev.c (compile_file): Don't take strlen of NAME if null.
2468
2469 2000-05-06 David Edelsohn <edelsohn@gnu.org>
2470
2471 * xcoffout.c (xcoff_current_include_file,
2472 xcoff_current_function_file, xcoff_lastfile): Constify char *.
2473 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2474 char *'.
2475 (xcoffout_declare_function): Make name 'const char *'.
2476 (xcoffout_end_epilogue): Make fname 'const char *'
2477 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2478 xcoffout_declare_function, xcoffout_source_line): Match above.
2479
2480 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2481 -maix64 is error.
2482 * rs6000.c (print_operand): Fix lossage typo.
2483 (output_cbranch): Remove "cr" decoration for now.
2484 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
2485
2486 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
2487
2488 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2489 constant count.
2490
2491 2000-05-05 Bruce Korb <bkorb@gnu.org>
2492
2493 * fixinc/genfixes: Improve the matching for make target names
2494
2495 2000-05-05 Catherine Moore <clm@cygnus.com>
2496
2497 * c-common.c (decl_attributes): For TYPE_DECLs attach the
2498 attribute to the decl.
2499 * c-decl.c (pushdecl): Propagate the USED attribute to the
2500 type copy.
2501
2502 2000-05-05 Richard Henderson <rth@cygnus.com>
2503
2504 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2505 same way emit_group_load does.
2506
2507 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2508
2509 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2510
2511 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2512 (main): Likewise.
2513
2514 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2515
2516 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2517
2518 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
2519
2520 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
2521 to support -shared, on platforms with dynamic libraries.
2522
2523 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
2524
2525 * system.h (S_ISBLK): Provide fallback definition.
2526
2527 2000-05-05 Geoff Berry <geoffb@bops.com>
2528
2529 * extend.texi (Extended Asm): Document inability to give asm
2530 statements access to condition codes.
2531
2532 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
2533
2534 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2535 as arg 2 of UNIQUE_SECTION.
2536
2537 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
2538
2539 * predict.c: Remove May 4 change.
2540 * bb-reorder.c (make_reorder_chain): Do not perform block movement
2541 if we have predicted the branch at 50-50 probability.
2542
2543 2000-05-05 Richard Henderson <rth@cygnus.com>
2544
2545 * flow.c (init_propagate_block_info): Fix merge error
2546 in HAVE_conditional_execution code.
2547
2548 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
2549
2550 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2551 shift cycle for unknown shift count. Also generates dec + brpl.
2552 (ashlqi3_out): Don't generate dec + brpl which now generates by
2553 `out_shift_with_cnt'.
2554 (ashlhi3_out): Likewise.
2555 (ashlsi3_out): Likewise.
2556 (ashrqi3_out): Likewise.
2557 (ashrhi3_out): Likewise.
2558 (ashrsi3_out): Likewise.
2559 (lshrqi3_out): Likewise.
2560 (lshrhi3_out): Likewise.
2561 (lshrsi3_out): Likewise.
2562
2563 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2564
2565 * gcc.c (free_split_directories): Correct typo in explanation
2566 of make_relative_prefix.
2567
2568 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2569
2570 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2571 comparison codes to branch_comparison_operator.
2572
2573 2000-05-04 Richard Henderson <rth@cygnus.com>
2574
2575 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2576
2577 2000-05-04 Richard Henderson <rth@cygnus.com>
2578
2579 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2580 (DPBIT_FUNCS): Remove _sf_to_usi.
2581 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2582
2583 * ifcvt.c (noce_process_if_block): Fail if A or B modified
2584 between condition and jump.
2585
2586 * libgcc2.c (near eh_context_specific): Comment #endif string.
2587 * longlong.h: Don't use strings with embedded newlines.
2588
2589 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2590
2591 * config/rs6000/rs6000-protos.h: Add output_cbranch.
2592 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2593 (print_operand): Delete %t and %T codes.
2594 (output_cbranch): New function. Support branch prediction.
2595 * config/rs6000/rs6000.md: Use output_cbranch for
2596 conditional branches and returns.
2597
2598 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
2599
2600 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2601 * stor-layout.c (place_field): Likewise.
2602 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2603 * expr.c (store_expr): Make align unsigned.
2604 * explow.c (plus_constant_wide): Make low words unsigned.
2605 * expmed.c (choose_multiplier): Likewise.
2606 * fold-const.c (fold): Likewise.
2607 * tree.h (build_int_2): Likewise.
2608 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2609 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2610 (init_emit): Change cast to unsigned char*.
2611 * varasm.c (compare_constant_1): Add cast to char*.
2612 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2613 * reload1.c (reload): Likewise.
2614
2615 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2616
2617 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
2618
2619 * predict.c (estimate_probability): If no prediction was found, then
2620 predict the successor that is the next physical block (if such a
2621 successor exists).
2622
2623 2000-05-04 Richard Henderson <rth@cygnus.com>
2624
2625 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2626
2627 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2628
2629 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2630
2631 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
2632
2633 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
2634 attribute macros from here ...
2635 (CPP_SPEC): to here.
2636 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2637 (CPP_SPEC): Likewise.
2638 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
2639
2640 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2641 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2642
2643 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2644
2645 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2646
2647 * diagnostic (vbuild_message_string, build_message_string,
2648 build_location_prefix, output_get_prefix, init_output_buffer,
2649 output_notice, vline_wrapper_message_with_location,
2650 v_message_with_decl, default_print_error_function): De-constify.
2651 (set_real_maximum_length): Prototype.
2652
2653 * diagnostic.h (struct output_buffer, init_output_buffer,
2654 output_get_prefix, output_set_prefix): De-constify.
2655
2656 * function.c (init_function_start): Constify.
2657
2658 * gensupport.c (remove_constraints, process_rtx): Prototype.
2659
2660 * gthr-posix.h: Indent uses of #pragma.
2661
2662 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2663 Prototype.
2664
2665 * predict.c (find_expected_value): Delete prototype.
2666 (expected_value_to_br_prob): Initialize variable `ev_reg'.
2667
2668 * sbitmap.h (debug_sbitmap): Prototype.
2669
2670 * ssa.c (compute_coalesced_reg_partition): Prototype.
2671
2672 * stor-layout.c (debug_rli): Prototype.
2673
2674 * tree.h (round_down): Prototype.
2675 (init_function_start): Constify.
2676
2677 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
2678
2679 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2680 (overly conservative). Change extern inline wrappers to
2681 static inline, define them always, use PARAMS properly.
2682 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2683 whitespace warnings for \f and \v at the beginning of a line.
2684
2685 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
2686
2687 * haifa-sched.c (schedule_insns): Free the flow edge list when it
2688 is no longer needed
2689
2690 2000-05-04 Bruce Korb <bkorb@gnu.org>
2691
2692 * fixincl/inclhack.def: added broken_cabs -
2693 Remove `extern double cabs' declarations from math.h
2694 * fixincl/inclhack.sh: regen
2695 * fixincl/fixincl.x: regen
2696 * fixincl/fixincl.c: Remove BOGOSITY code
2697 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2698
2699 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2700
2701 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2702 MEM_ALIAS_SET.
2703 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2704 when calling MEM_COPY_ATTRIBUTES.
2705 * emit-rtl.c (operand_subword, change_address): Likewise.
2706 * explow.c (stabilize): Likewise.
2707 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2708 * integrate.c (copy_rtx_and_substitute): Likewise.
2709 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2710 when calling MEM_COPY_ATTRIBUTES.
2711 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2712 Likewise.
2713 * cse.c (gen_lowpart_if_possible): Likewise.
2714 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2715 * optabs.c (gen_move_insn): Likewise.
2716 * recog.c (validate_replace_rtx_1): Likewise.
2717 * simplify-rtx.c (add_mem_for_addr): Likewise.
2718 * stmt.c (expand_anon_union_decl): Likewise.
2719 * config/arm/arm.md: Likewise.
2720 * config/h8300/h7300.c (fix_bit_operand): Likewise.
2721 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2722 (block_move_no_loop, block_move_sequence): Likewise.
2723 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2724 * config/alpha/alpha.c (get_aligned_mem): Likewise.
2725 Clear MEM_ALIAS_SET.
2726 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2727 MEM_COPY_ATTRIBUTES.
2728
2729 2000-05-03 Robert Lipe <robertlipe@usa.net>
2730
2731 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2732 to suppress libgcc1.
2733 (i[34567]86-*-sco3.2v5*) Likewise.
2734 (i[34567]86-*-sco3.2v4*) Likewise.
2735 (i[34567]86-*-sco) Likewise.
2736 (i[34567]86-*-solaris2) Likewise.
2737 (i[34567]86-*-sysv5*) Likewise.
2738 (i[34567]86-*-sysv4*) Likewise.
2739 (i[34567]86-*-udk*) Likewise.
2740 (i[34567]86-*-sysv*) Likewise.
2741
2742 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2743
2744 * cpphash.h (U): New define, to correct type of string constants.
2745 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2746 routines, to do casts when passing unsigned strings to libc.
2747 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2748
2749 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2750 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2751 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2752 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2753 second argument an U_CHAR *.
2754
2755 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2756 length field, clean up initializer.
2757 (ISTABLE): Add __extension__ to designated-
2758 initializers version.
2759 * cpplex.c (CHARTAB): Likewise.
2760
2761 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2762 case so the file won't be empty.
2763
2764 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
2765
2766 * bb-reorder.c (struct reorder_block_def): Member succ removed.
2767 (REORDER_BLOCK_SUCC): Removed.
2768 (enum reorder_skip_type): Removed.
2769 (skip_insns_between_block): Renamed to skip_insns_after_block.
2770 Removed second argument. Removed dead code and cleaned up.
2771 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2772 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2773 second parameter to skip_insns_after_block.
2774
2775 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2776
2777 * tree.c (staticp, case LABEL_DECL): New case.
2778
2779 2000-05-03 Richard Henderson <rth@cygnus.com>
2780
2781 * Makefile.in (start.encap): Do not depend on LIBGCC1.
2782
2783 * mklibgcc1.in: Fix typo last change.
2784
2785 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2786
2787 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2788 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2789 (GCC_CFLAGS): Use it.
2790 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2791 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2792 objc/Make-lang.in: Use it.
2793
2794 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
2795
2796 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2797
2798 2000-05-03 Richard Henderson <rth@cygnus.com>
2799
2800 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
2801 LIBGCC1 empty with libgcc1.null.
2802
2803 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
2804
2805 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2806 change.
2807
2808 2000-05-03 Greg McGary <gkm@gnu.org>
2809
2810 * tree.h (tree_common): Add bounded_flag member. Remove
2811 inaccurate comment about number of remaining bits.
2812 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2813 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2814 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2815 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2816 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2817 (TYPE_QUAL_BOUNDED): New constant.
2818 (TYPE_QUALS): Handle bounded qualifier.
2819 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2820 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2821 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2822 TYPE_AMBIENT_BOUNDEDNESS): New macros.
2823 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2824 (tree_type): Add pointer_depth member. Remove
2825 inaccurate comment about number of remaining bits.
2826 (DECL_POINTER_DEPTH): Add macro.
2827 (tree_decl): Add pointer_depth member.
2828
2829 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
2830
2831 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2832 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2833 (lshrhi3_out): Likewise.
2834 (ashrsi3_out): bugfix in shift by 8.
2835 (test_hard_reg_class): New function.
2836 * config/avr/avr.md: Bugfix inside conditions in peepholes.
2837 (ashlhi3): removed define_expand of this pattern.
2838 (*ashlhi3_insn): renamed to ashlhi3.
2839 (ashlsi3): removed define_expand of this pattern.
2840 (*ashlsi3_insn): renamed to ashlsi3.
2841 (ashrqi3): removed define_expand of this pattern.
2842 (*ashrqi3_insn): renamed to ashrqi3.
2843 (ashrhi3): removed define_expand of this pattern.
2844 (*ashrhi3_insn): renamed to ashrhi3.
2845 (ashrsi3): removed define_expand of this pattern.
2846 (*ashrsi3_insn): renamed to ashrsi3.
2847 (lshrhi3): removed define_expand of this pattern.
2848 (*lshrhi3_insn): renamed to lshrhi3.
2849 (lshrsi3): removed define_expand of this pattern.
2850 (*lshrsi3_insn): renamed to lshrsi3.
2851
2852 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
2853
2854 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
2855 inclusion of "system.h".
2856
2857 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
2858
2859 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
2860 TREE_ASM_WRITTEN.
2861
2862 2000-05-03 David Mosberger <davidm@hpl.hp.com>
2863
2864 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
2865 if -mauto-pic is on.
2866 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
2867 -mconstant-gp is in effect and function-descriptors are being used
2868 to make indirect calls.
2869 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
2870 (MASK_AUTO_PIC): Ditto.
2871 (TARGET_CONST_GP): Ditto.
2872 (TARGET_AUTO_PIC): Ditto.
2873 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
2874 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
2875 -mno-pic is in effect.
2876 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
2877 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
2878 -mauto-pic is in effect.
2879 (gprel64_offset): New pattern.
2880 (load_gprel64): Ditto.
2881 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
2882 -mconstant-gp is in effect, no need to preserve gp around direct
2883 calls.
2884 (call_value): Ditto.
2885 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
2886 (FUNCTION_PROFILER): Define.
2887 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
2888 @fptr() directive when -mno-pic or -mauto-pic is in effect.
2889 (ASM_OUTPUT_DESTRUCTOR): Ditto.
2890
2891 2000-05-03 Richard Henderson <rth@cygnus.com>
2892
2893 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
2894 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
2895 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
2896 (mklibgcc, libgcc.mk): New targets.
2897 (libgcc.a): Use libgcc.mk.
2898 (stmp-multilib): Likewise.
2899 (stmp-multilib-sub): Remove.
2900 (mostlyclean): Don't delete libgcc2 temp files.
2901 * configure.in (AC_PROG_CC_C_O): Add.
2902 (NO_MINUS_C_MINUS_O): Substitute it.
2903 (all_outputs): Add mklibgcc.
2904 * mklibgcc.in: New file.
2905
2906 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2907
2908 * cppexp.c (op_t): Make an int.
2909
2910 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
2911
2912 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
2913
2914 * gensupport.c (process_rtx): Fix macros used.
2915
2916 2000-05-03 Richard Henderson <rth@cygnus.com>
2917
2918 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
2919 call-clobbered registers of a call.
2920
2921 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
2922
2923 * gensupport.c: New file.
2924 * gensupport.h: New file.
2925 * Makefile.in (HOST_RTL): Depend on gensupport.
2926 (gensupport.o) New rule.
2927 * genattr.c: Use gensupport for reading .md files.
2928 * genattrtab.c: Ditto.
2929 * gencodes.c: Ditto.
2930 * genconfig.c: Ditto.
2931 * genemit.c: Ditto.
2932 * genextract.c: Ditto.
2933 * genflags.c: Ditto.
2934 * genopinit.c: Ditto.
2935 * genoutput.c: Ditto.
2936 * genpeep.c: Ditto.
2937 * genrecog.c: Ditto.
2938 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
2939 * md.texi (Insn Splitting): Document define_insn_and_split.
2940
2941 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
2942
2943 * flow.c (verify_flow_info): Added two more sanity checks. The
2944 first checks that the blocks are numbered consecutively. The second
2945 checks that n_basic_blocks is actually equal to the number of
2946 basic blocks in the insn chain.
2947
2948 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2949
2950 * cpplib.h: Add accessor macros for token lists.
2951 * cpplib.c, cpphash.c, cpplex.c: Use them.
2952
2953 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2954
2955 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
2956 memory usage if not in a function.
2957 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
2958 return address if static.
2959
2960 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
2961
2962 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
2963 whether address may trap.
2964
2965 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
2966
2967 * bb-reorder (chain_reorder_blocks): Changed code to test for
2968 EDGE_FALLTHRU rather than making erroneous assumption that the
2969 first outgoing edge is the fall-through edge.
2970
2971 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
2972
2973 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
2974 ABI for varargs, across all MIPS. This is incompatible because the
2975 va_list (__builtin_va_list) structure is different, so a compilation
2976 unit passing a va_list and a compilation unit being passed one, should
2977 both be compiled with the same ABI. (The old structure had two
2978 pointers, now it has three.)
2979
2980 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
2981
2982 * bb-reorder.c (struct reorder_block_def): Remove members end,
2983 block_begin, and block_end.
2984 (REORDER_BLOCK_OLD_END): Delete.
2985 (REORDER_BLOCK_BEGIN): Delete.
2986 (REORDER_BLOCK_END): Delete.
2987 (chain_reorder_blocks): Remove dead code.
2988
2989 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
2990
2991 * bb-reorder.c (remove_scope_notes): Check for both types of scope
2992 notes as the end of a basic block before deleting.
2993
2994 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
2995
2996 * final.c (final_start_function): Fix spelling of "necessary".
2997
2998 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
2999
3000 * toplev.c (debug_ignore_block): Return int.
3001 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
3002 * toplev.h, dwarf2out.h: Adjust.
3003 * emit-rtl.c (remove_unnecessary_notes): Test return value.
3004
3005 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
3006 * toplev.c, final.c, rtl.h: Adjust.
3007
3008 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3009
3010 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
3011 * configure.in: Look for makeinfo in the unified tree, then
3012 for a system makeinfo which is sufficiently new.
3013 * Makefile.in: If configure says makeinfo is too old, don't
3014 build or install Info documentation.
3015
3016 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3017
3018 * cpphash.c (collect_params): Fix off-by-one error.
3019 (dump_hash_helper): Dump all four macro nodetypes.
3020
3021 2000-05-02 Jakub Jelinek <jakub@redhat.com>
3022
3023 * cpphash.c (trad_stringify): Adjust p after stringification as
3024 well.
3025
3026 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
3027
3028 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
3029 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
3030
3031 * cppfiles.c (file_cleanup): Delete.
3032 * cpphash.c (macro_cleanup): Delete.
3033 (collect_objlike_expansion, collect_funlike_expansion,
3034 macarg, scan_arguments): Remove CPP_POP case.
3035
3036 * cpplex.c (null_cleanup): Delete.
3037 (cpp_pop_buffer): Do the work that was done in the cleanups
3038 here. Call _cpp_unwind_if_stack from here.
3039 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
3040 cpp_scan_buffer): Run until we see CPP_EOF and the top of
3041 stack is the buffer _below_ the one we stacked.
3042 (cpp_get_token): Always pop an exhausted buffer. Return
3043 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
3044 * cpplib.c (skip_if_group): Don't call cpp_get_token to
3045 increment the line number.
3046 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
3047
3048 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
3049 we see CPP_EOF and the top of stack is the buffer _below_ the
3050 one we stacked.
3051 * scan-decls.c: Likewise.
3052
3053 2000-05-02 Andrew Haley <aph@cygnus.com>
3054
3055 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
3056 where this function is called for the second time on a decl that
3057 has had its section info changed in such a way as to move it out
3058 of small data/bss.
3059 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
3060
3061 2000-05-01 Richard Henderson <rth@cygnus.com>
3062
3063 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
3064 the sequence we're moving, not to merge_bb->head.
3065
3066 2000-05-01 Richard Henderson <rth@cygnus.com>
3067
3068 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
3069 reference to alpha/t-linux.
3070 (alpha*-*-linux-gnu*): Likewise.
3071 * configure: Rebuild.
3072
3073 * calls.c (expand_call): Don't emit reg notes for a sibcall.
3074
3075 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
3076 if not in SSA form.
3077
3078 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
3079
3080 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
3081
3082 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
3083 TREE_THIS_VOLATILE.
3084
3085 2000-05-01 Richard Henderson <rth@cygnus.com>
3086
3087 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
3088 emit_conditional_move.
3089
3090 2000-05-01 Jakub Jelinek <jakub@redhat.com>
3091
3092 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
3093 as the dynamic linker.
3094
3095 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
3096
3097 * cppfiles.c (open_include_file): Open file in blocking mode.
3098 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
3099 Only exclude block devices and directories.
3100
3101 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
3102 static. Allocate the hashnode and its string in the same
3103 block of memory.
3104 (del_HASHNODE): Don't free h->name.
3105 (_cpp_lookup): If there is no entry for this string, create
3106 one, of type T_VOID.
3107 (_cpp_lookup_slot): Delete.
3108 * cpphash.h: Update prototypes.
3109
3110 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
3111 not hp == NULL.
3112 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
3113 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
3114 node here, just fill in the value field properly. "Delete"
3115 entries by setting the value field to T_VOID. Check for
3116 hp->type == T_VOID, not hp == NULL.
3117
3118 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
3119 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
3120 hashtab.h.
3121
3122 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
3123
3124 * config/mn10300/mn10300.c (print_operand_address): Do not add
3125 zero to SP.
3126
3127 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
3128 adjusted by less than 256 bytes, use ret regardless of having any
3129 callee-saved register to restore.
3130
3131 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
3132
3133 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
3134
3135 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
3136
3137 * config/i386/djgpp.h (INT_ASM_OP): Define.
3138 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
3139 (ASM_WEAKEN_LABEL): Define.
3140 (MASK_BNU210): Define.
3141 (SUBTARGET_SWITCHES): Define.
3142 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
3143 (MAKE_DECL_ONE_ONLY): Define.
3144 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
3145
3146 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
3147
3148 * i386/cygwin.h (INT_ASM_OP): Define.
3149
3150 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
3151
3152 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
3153 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
3154
3155 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
3156
3157 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
3158 __tmp_reg__ and __zero_reg__ initialization.
3159
3160 2000-04-30 Richard Henderson <rth@cygnus.com>
3161
3162 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
3163
3164 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
3165 referenced bewteen the condition and the jump. Don't delete
3166 anything but the jump.
3167
3168 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
3169
3170 * bb-reorder.c (scope_def): New struct.
3171 (scope_forest_info): New struct.
3172 (struct reorder_block_def): New member "scope".
3173 (REORDER_BLOCK_SCOPE): New macro.
3174 (relate_bbs_with_scopes): New function and prototype.
3175 (make_new_scope): Likewise.
3176 (build_scope_forest): Likewise.
3177 (remove_scope_notes): Likewise.
3178 (insert_intra_1): Likewise.
3179 (insert_intra_bb_scope_notes): Likewise.
3180 (insert_inter_bb_scope_notes): Likewise.
3181 (rebuild_scope_notes): Likewise.
3182 (free_scope_forest_1): Likewise.
3183 (free_scope_forest): Likewise.
3184 (dump_scope_forest): Likewise.
3185 (dump_scope_forest_1): Likewise.
3186 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
3187 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
3188 block.
3189 (reorder_basic_blocks): Added calls to build_scope_scope_forest
3190 and remove_scope_notes before reordering is done. Added calls to
3191 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
3192 after reordering is done.
3193
3194 2000-40-30 Bruce Korb <bkorb@gnu.org>
3195
3196 * fixinc/inclhack.def: Added definitions needed by OSR5,
3197 removed two stale entries (defined away with OLD_CPP).
3198 * fixinc/inclhack.sh: regen
3199 * fixinc/fixincl.x: regen
3200
3201 2000-04-30 Richard Henderson <rth@cygnus.com>
3202
3203 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
3204 from the last insn in the sequence.
3205
3206 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
3207
3208 * cpplex.c (cpp_idcmp): New function.
3209 * cpplib.h: Prototype it.
3210 * scan_decls.c (scan_decls): Use it to inspect token names.
3211 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
3212 the file being run through the preprocessor.
3213 (check_macro_names): Provide length of token to cpp_defined.
3214
3215 * Makefile.in: Remove stale warning message.
3216
3217 * cppfiles.c (redundant_include_p): Provide length of token to
3218 cpp_defined.
3219 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
3220 values are unsigned int.
3221 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
3222 (_cpp_lookup_slot): Do not calculate the hash, either.
3223 * cpphash.h: Update prototypes.
3224 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
3225 Hashes are unsigned int. Calculate hash here, pass by value
3226 to _cpp_lookup_slot.
3227
3228 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
3229
3230 * simplify-rtx.c (check_value_useless): Delete function.
3231 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
3232 by hand.
3233 (cselib_invalidate_regno): Likewise.
3234 (cselib_invalidate_mem_1): Likewise.
3235 (references_value_p): Recognize useless values by the fact that they
3236 have no locations.
3237 (discard_useless_values): Likewise.
3238 (cselib_record_set): This may turn a useless value
3239 into a useful one.
3240
3241 2000-04-30 Richard Henderson <rth@cygnus.com>
3242
3243 * config/d30v: New port.
3244
3245 * configure.in (d30v-*): Set fp format.
3246 * configure: Rebuild.
3247
3248 2000-04-30 Richard Henderson <rth@cygnus.com>
3249
3250 * ifcvt.c: New file.
3251 * Makefile.in (OBJS): Add it.
3252 (ifcvt.o): New target.
3253 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
3254 and conditional arithmetic.
3255 (find_insert_position): Remove.
3256 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
3257 * toplev.c (DFI_ce, DFI_ce2): New.
3258 (dump_file): Add ce and ce2 dumps.
3259 (rest_of_compilation): Run if_convert a couple o times. Set
3260 cse_not_expected after cse2. Don't set no_new_pseudos until
3261 after sched1 or recompute_reg_usage.
3262
3263 2000-04-30 Richard Henderson <rth@cygnus.com>
3264
3265 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
3266 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
3267
3268 2000-04-30 Richard Henderson <rth@cygnus.com>
3269
3270 * flow.c (struct reg_cond_life_info): New.
3271 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
3272 (init_propagate_block_info): Initialize them.
3273 (free_propagate_block_info): Destruct them.
3274 (mark_set_1): Consider conditional life before killing a register.
3275 (mark_regno_cond_dead): New.
3276 (free_reg_cond_life_info): New.
3277 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
3278 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
3279 (mark_used_reg): Record conditional life.
3280
3281 * haifa-sched.c (schedule_insns): Disable death counting
3282 sanity check for HAVE_conditional_execution.
3283
3284 2000-04-30 Richard Henderson <rth@cygnus.com>
3285
3286 * Makefile.in (TIMEVAR_H): New.
3287 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
3288 (timevar.h): Remove rule.
3289
3290 2000-04-29 Richard Henderson <rth@cygnus.com>
3291
3292 * config/alpha/crtend.asm: Use C comments instead of #.
3293 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
3294
3295 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
3296
3297 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
3298
3299 * cpphash.h (enum node_type: Take out T_MCONST.
3300 (union hashval): Move into struct hashnode.
3301 (struct hashnode): Pack tighter. Remove file, line, col
3302 members.
3303 * cpphash.c: Constify most of the macro-definition structures.
3304 (struct definition): Replace by struct object_defn
3305 and struct funct_defn. Put file, line, column information
3306 here. All users updated to match.
3307 (_cpp_create_definition, _cpp_macroexpand): Remove special
3308 case for #define WORD OTHERWORD.
3309 * cpplib.c (do_undef): Remove T_MCONST case.
3310
3311 * cpphash.h: Move struct reflist, struct definition, and the
3312 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
3313 union hashval. _cpp_free_definition takes a HASHNODE pointer.
3314 * cpphash.c (_cpp_free_definition): Free data pointed to by
3315 MCONST, XCONST, MACRO, and FMACRO nodes properly.
3316 (_cpp_create_definition, del_HASHNODE): Just call
3317 _cpp_free_definition to clear out a hashnode.
3318 * cpplib.c (do_pragma_poison): Likewise.
3319
3320 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
3321
3322 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
3323 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
3324 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
3325 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
3326 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
3327 REGNO_AM33_P): Redefine in terms of the new macros.
3328 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3329 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
3330 STRUCT_VALUE): Likewise.
3331 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
3332 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
3333
3334 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
3335
3336 * regmove.c (struct record_stack_memrefs_data): New.
3337 (record_stack_memrefs): New function.
3338 (combine_stack_adjustments_for_block): Use it.
3339
3340 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
3341
3342 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
3343 use special_function_p to detect alloca.
3344
3345 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
3346
3347 * gcc.texi: Fixes for makeinfo 4.0 --html.
3348
3349 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
3350
3351 * pcp.h: Delete file.
3352
3353 2000-04-28 Kazu Hirata <kazu@hxi.com>
3354
3355 * h8300.c (function_epilogue): Clean up flags when the last insn
3356 in a function is a barrier.
3357
3358 2000-04-28 Chris Demetriou <cgd@sibyte.com>
3359
3360 * configure.in (sparc-hal-solaris2*): protect [] glob from
3361 my expansion.
3362 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3363 rather than hard-coded constants in target_cpu_default2.
3364 * configure: Regenerate.
3365
3366 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3367
3368 * tree.c (get_callee_fndecl): Extract the initial value from
3369 a readonly decl.
3370
3371 2000-04-28 Richard Henderson <rth@cygnus.com>
3372
3373 * varasm.c (record_constant_1): Record the CODE_LABEL when
3374 taking the address of a LABEL_REF.
3375
3376 2000-04-28 Richard Henderson <rth@cygnus.com>
3377 Jan Hubicka <jh@suse.cz>
3378
3379 * calls.c (combine_pending_stack_adjustment_and_call): Return the
3380 adjustment; don't do the stack adjust.
3381 (expand_call): Call compute_argument_block_size right before
3382 allocating the block; update comment; don't do alignment sanity
3383 checking for sibling call; use args_size instead of
3384 unadjusted_args_size before args_size is adjusted. Use
3385 combine_pending_stack_adjustment_and_call to compute stack adjust
3386 for must_preallocate case.
3387
3388 * expr.c (push_block): Remove shadow `temp' in inner scope.
3389
3390 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3391
3392 * toplev.c (rest_of_compilation): Call
3393 note_deferral_of_defined_inline_function even if the function
3394 can't be inlined.
3395
3396 2000-04-28 Scott Bambrough <scottb@netwinder.org>
3397
3398 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3399
3400 2000-04-28 Richard Henderson <rth@cygnus.com>
3401
3402 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3403
3404 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3405
3406 * timevar.c (init_timevar): DeANSIfy function definition.
3407
3408 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3409
3410 * Makefile.in (timevar.o): Depend on flags.h.
3411 * timevar.c (unused_stack_instances): New variable.
3412 (timevar_push): Take a timevar_stack_def from
3413 unused_stack_instances if available.
3414 (timevar_pop): Push the popped timevar_stack_def onto
3415 unused_stack_instances.
3416 (TIMEVAR_ENABLE): New macro.
3417 (timevar_def): Make standalone a 1-bit field. Add field used.
3418 (get_time): Rename parameter to now. Return after clearing it if
3419 not TIMEVAR_ENABLE.
3420 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3421 (timevar_pop): Likewise.
3422 (timevar_stop): Likewise.
3423 (timevar_push): Likewise. Mark the timing variable as used.
3424 (timevar_start): Likewise.
3425 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
3426 timevars that were never used.
3427
3428 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3429
3430 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3431 always TREE_READONLY.
3432
3433 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
3434
3435 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3436 for call instruction with mode QImode.
3437
3438 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3439
3440 * Makefile.in (OBJS): Add timevar.o.
3441 (toplev.o): Depend on timevar.h.
3442 (ggc-simple.o): Likewise.
3443 (ggc-page.o): Likewise.
3444 (timevar.o): New rule.
3445 (timevar.h): New rule.
3446
3447 * timevar.h: New file.
3448 * timevar.c: Likewise.
3449 * timevar.def: Likewise.
3450
3451 * toplev.h (gc_time, parse_time, varconst_time): Remove.
3452 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3453 throughout.
3454 (TIMEVAR): Remove macro.
3455 (gc_time, parse_time, varconst_time, integration_time, jump_time,
3456 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3457 flow_time, combine_time, regmove_time, sched_time,
3458 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3459 sched2_time, dbr_sched_time, reorder_blocks_time,
3460 rename_registers_time, shorten_branch_time, stack_reg_time,
3461 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3462 all_time): Remove.
3463 (compile_file): Don't initialize time variables. Call
3464 init_timevar and start TV_TOTAL timer. Call timevar_print instead
3465 of many calls to print_time.
3466 (rest_of_compilation): Add timing for reload_cse_regs.
3467 (get_run_time): Removed to timevar.c.
3468 (print_time): Likewise.
3469 (get_run_time): Implement using TV_TOTAL time variable.
3470 (print_time): Get total run time from get_run_time.
3471 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3472 computing elapsed time explicitly.
3473 * ggc-simple.c (ggc_collect): Likewise.
3474 (gc_time): Remove declaration.
3475
3476 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3477
3478 * calls.c (combine_pending_stack_adjustment_and_call): New function.
3479 (expand_call): Use it.
3480
3481 2000-04-27 Jan Hubicka <jh@suse.cz>
3482
3483 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3484 fields.
3485
3486 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
3487
3488 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
3489 registers.
3490
3491 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
3492
3493 * function.c (epilogue_done): Pass whole insn to record_insns.
3494
3495 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
3496
3497 * cse.c (CSE_ADDRESS_COST): Remove.
3498 (find_best_addr): Add new parameter "MODE", use address_cost instead
3499 of CSE_ADDRESS_COST
3500 (address_cost): New.
3501 (fold_rtx): Update call of find_best_addr.
3502 * rtl.h (address_cost): Declare.
3503 * loop.c (general_induction_var): Add new parameter "MODE", use
3504 address_cost instead of ADDRESS_COST
3505 (init_loop): Use address_cost instead of ADDRESS_COST.
3506 (check_insn_for_givs): Update call of general_induction_var.
3507 (find_mem_givs): Likewise.
3508 (consec_sets_giv): Likewise.
3509 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3510 * i386.c (ix86_address_cost): New.
3511 * i386-protos.h (ix86_address_cost): Declare.
3512
3513 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
3514
3515 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
3516 registers.
3517
3518 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
3519
3520 * expr.c (store_expr): Use clear_storage instead of direct memset
3521 libcall.
3522
3523 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
3524
3525 * config/mn10300/mn10300.c (mn10300_address_cost): Test
3526 ASHIFT, AND and LABEL_REF.
3527
3528 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
3529
3530 * invoke.texi (-foptimize-sibling-calls): Fix.
3531
3532 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
3533
3534 * loop.c (load_mems) Don't use hard registers for the hoisting.
3535
3536 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3537 calculation; rename const_equiv array in the preconditioning code
3538 from loop_unroll to loop_unroll_precondition
3539
3540 2000-04-27 Richard Henderson <rth@cygnus.com>
3541
3542 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3543 add new_set.
3544 (propagate_one_insn): Clear it. Don't update reg_live here.
3545 (init_propagate_block_info): Update for pbi member changes.
3546 (free_propagate_block_info): Likewise.
3547 (mark_set_1): Know that zero_extract, sign_extract, and
3548 strict_low_part don't kill their argument. Alter hard subregs.
3549 Update new_set for non-CLOBBER sets. Update reg_live.
3550 (find_auto_inc): Update reg_live, not new_dead.
3551 (mark_used_reg): Update reg_live, not new_live. Examine new_set
3552 to determine if the reg in question was set this insn. Only update
3553 reg info with PROP_REG_INFO.
3554
3555 2000-04-26 Richard Henderson <rth@cygnus.com>
3556
3557 * flow.c (allocate_reg_life_data): Set max_regno here ...
3558 (life_analysis): ... not here.
3559
3560 * flow.c (calculate_global_regs_live): Force stack pointer
3561 live at end.
3562
3563 2000-04-26 Richard Henderson <rth@cygnus.com>
3564
3565 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
3566 commit change group changes.
3567 (invert_exp_1): Similarly.
3568 (redirect_exp, invert_exp): Use them.
3569 (redirect_jump_1): New.
3570 (invert_jump_1): New.
3571 (jump_optimize_1): Remove code subsumed by condexec.c.
3572 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3573
3574 2000-04-26 Richard Henderson <rth@cygnus.com>
3575
3576 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3577
3578 * genconfig.c (main): Set all HAVE_foo to 1.
3579
3580 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3581
3582 2000-04-26 Alex Samuel <samuel@codesourcery.com>
3583
3584 * invoke.texi: Document -fssa flag.
3585
3586 2000-04-26 Richard Henderson <rth@cygnus.com>
3587
3588 * flow.c (count_reg_sets_1): Remove.
3589 (count_reg_sets, count_reg_references): Remove.
3590 (recompute_reg_usage): Implement with update_life_info.
3591 Reallocate life data.
3592
3593 2000-04-26 Richard Henderson <rth@cygnus.com>
3594
3595 * flow.c (update_life_info): Consider blocks null to mean the
3596 universal set.
3597 (calculate_global_regs_live): Likewise.
3598 (life_analysis): Do that instead of collecting all_blocks.
3599
3600 2000-04-26 Richard Henderson <rth@cygnus.com>
3601
3602 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3603 a still-valid conditional jump.
3604
3605 2000-04-26 Richard Henderson <rth@cygnus.com>
3606
3607 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
3608
3609 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3610 * flow.c (calculate_loop_depth): Remove.
3611 * output.h (calculate_loop_depth): Don't declare.
3612 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3613 inline; run estimate_probability at the same time.
3614
3615 2000-04-26 Neil Booth <NeilB@earthling.net>
3616
3617 * cpplib.h: "~=" is not a single pp-token.
3618 * cpplex.c: Correct commentary.
3619
3620 2000-04-26 Richard Henderson <rth@cygnus.com>
3621
3622 * flow.c (mark_set_1): New arguments code and flags; update all
3623 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
3624 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
3625 loop_depth when optimizing for size. Do new_dead update after
3626 emitting REG_UNUSED notes. Merge mark_set_reg code.
3627 (mark_set_reg): Remove.
3628 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3629 arrange to not emit REG_UNUSED notes.
3630
3631 2000-04-26 Richard Henderson <rth@cygnus.com>
3632
3633 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3634 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3635
3636 2000-04-26 Richard Henderson <rth@cygnus.com>
3637
3638 * flow.c (propagate_one_insn): Break out from propagate_block.
3639 (init_propagate_block_info): Likewise.
3640 (free_propagate_block_info): Likewise.
3641 (propagate_block): Use them. Export.
3642 * basic-block.h: Declare them all.
3643
3644 2000-04-26 Richard Henderson <rth@cygnus.com>
3645
3646 * basic-block.h (life_analysis): Declare here ...
3647 * output.h: ... not here.
3648 * flow.c (life_analysis): Remove nregs parameter; replace
3649 remove_dead_code with flags. Remove ssa dead code check.
3650 Only init alias analysis if we'll use it.
3651 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3652 * ssa.c (convert_to_ssa): Likewise.
3653 (convert_from_ssa): Likewise.
3654 * toplev.c (rest_of_compilation): Likewise.
3655
3656 2000-04-26 Richard Henderson <rth@cygnus.com>
3657
3658 * flow.c (flow_delete_block): Rename from delete_block. Export.
3659 * basic-block.h (flow_delete_block): Declare.
3660
3661 2000-04-26 David S. Miller <davem@redhat.com>
3662
3663 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3664 taking a PATTERN of it.
3665
3666 2000-04-26 <NeilB@earthling.net>
3667
3668 * cpplex.c (spell_other, spell_char): Remove.
3669 (SPELL_CHAR): New.
3670 (token_spelling, trigraph_map): Use unsigned chars.
3671 (_cpp_lex_line): Tidy up the switch statement.
3672 * cpplib.h: Implement spell_char with spell_string.
3673 (C): New.
3674
3675 2000-04-26 <RodneyBrown@pmsc.com>
3676
3677 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3678 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3679
3680 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3681
3682 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3683 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3684 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3685 dwarf2out_return_save, dwarf2out_return_reg,
3686 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3687 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3688 gen_compile_unit_die, dwarf2out_init): Constify a char*.
3689
3690 * dwarf2out.h (dwarf2out_init): Likewise.
3691
3692 * dwarfout.c (filename_entry, primary_filename, last_filename,
3693 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3694
3695 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3696 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3697 dwarf2out_return_reg): Likewise.
3698
3699 2000-04-26 Andreas Jaeger <aj@suse.de>
3700
3701 * extend.texi (Function Attributes): Fix description of pure
3702 attribute.
3703
3704 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3705
3706 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3707 before calling rest_of_compilation.
3708
3709 2000-04-26 Andreas Jaeger <aj@suse.de>
3710
3711 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3712 last patch.
3713
3714 2000-04-25 Richard Henderson <rth@cygnus.com>
3715
3716 * cse.c (cse_insn): Emit barrier after unconditional jump.
3717
3718 * calls.c (expand_call): Disable tail call generation once
3719 rtx_equal_function_value_matters is false.
3720
3721 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3722 like EDGE_EH edges.
3723
3724 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
3725
3726 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3727
3728 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3729
3730 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3731 is the primary DIE for a member function.
3732 (gen_decl_die): Call set_decl_origin_self here.
3733 * dwarfout.c (output_decl): And here.
3734 * integrate.c (output_inline_function): Not here.
3735 Don't clear DECL_INLINE until after calling rest_of_compilation.
3736 (set_decl_origin_self): No longer static.
3737 * tree.h: Add prototype.
3738 * toplev.c (note_deferral_of_defined_inline_function): Only write
3739 out abstract instance for actual inlines.
3740
3741 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
3742
3743 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3744 EXTENDED_REGS only if TARGET_AM33.
3745 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3746 SP_REGS to register allocation and reloading unless absolutely
3747 necessary.
3748 (movsi3): Remove special-case of adding non-constants to SP.
3749
3750 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3751
3752 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3753 INCLUDES to search and does not provide any of its own. Also it
3754 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3755 parameters. Also it does not call AC_DEFINE.
3756 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
3757 AC_DEFINE and provides for automatic entries for autoheader.
3758 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3759
3760 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3761 so we can pass -I flags and include gansidecl.h/system.h in this
3762 test.
3763
3764 * acconfig.h: Delete all NEED_DECLARATION_* entries.
3765
3766 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3767
3768 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3769 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3770 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3771
3772 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3773 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3774 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3775 for these macros. Clean up spacing and linewraps.
3776
3777 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3778
3779 * calls.c (expand_call): Use get_callee_fndecl.
3780
3781 * print-tree.c (print_node): Print the chain of an _EXPR.
3782
3783 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
3784 Jim Wilson <wilson@cygnus.com>
3785 Andrew Haley <aph@cygnus.com>
3786
3787 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
3788 and gp save/restore problems.
3789 * config/ia64/crtend.asm: Add IA-64 unwind support.
3790 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3791 in fr_pad_size calculation.
3792 (save_restore_insns): Move PR save area. Correct uses of
3793 RTX_FRAME_RELATED_P.
3794 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3795 (ia64_expand_epilogue): Add eh_epilogue support.
3796 (ia64_function_prologue): Emit .prologue directive.
3797 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3798 (ia64_override_options): Set init_machine_status and
3799 mark_machine_status.
3800 (rtx_needs_barrier): Handle bsp reads and writes.
3801 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3802 New static variables.
3803 (process_set, process_for_unwind_directive): New functions.
3804 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3805 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3806 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3807 macros.
3808 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3809 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3810 (struct machine_function): Define.
3811 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3812
3813 2000-04-25 Bruce Korb <bkorb@gnu.org>
3814
3815 * fixinc/Makefile.in: make the removal of old programs more
3816 robust
3817 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3818 install-bin and install-sh
3819
3820 2000-04-25 Nick Clifton <nickc@cygnus.com>
3821
3822 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3823 defined, define to return zero.
3824 (function_cannot_inline_p): If a function has any target
3825 specific attributes, then use the macro
3826 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3827 whether it can be inlined. If it cannot, issue a suitable
3828 explanation.
3829
3830 * tm.texi: Add a new node 'Inlining' to document the new macro
3831 FUNCTION_ATTRIBUTE_INLINABLE_P.
3832
3833 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
3834
3835 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3836 commentary.
3837
3838 2000-04-25 Neil Booth <NeilB@earthling.net>
3839
3840 Restore previous patch, plus the following fixes:
3841
3842 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
3843 flags, not CPP_OPEN_PAREN.
3844 * cpplex.c (expand_token_space, init_token_list,
3845 cpp_free_token_list): Put the dummy token at list->tokens[-1].
3846 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
3847
3848 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3849
3850 * config/i386/freebsd.h (INT_ASM_OP): Define.
3851
3852 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
3853
3854 * loop.c (strength_reduce): Fix typo in the last checkin.
3855
3856 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3857
3858 * stor-layout.c (finalize_record_size): Simplify to use existing
3859 functions.
3860 (compute_record_mode): No longer static.
3861 * tree.h (compute_record_mode): New declaration.
3862
3863 2000-04-25 Neil Booth <NeilB@earthling.net>
3864
3865 * Revert my patch below until cause of build failures
3866 determined.
3867
3868 2000-04-25 Richard Henderson <rth@cygnus.com>
3869
3870 * combine.c (combine_instructions): Add missing argument
3871 to try_combine.
3872
3873 * toplev.c (rest_of_compilation): Delay sibcall optimization
3874 until after emit_eh_context.
3875
3876 2000-04-24 Nick Clifton <nickc@redhat.com>
3877
3878 * combine.c (combine_instructions): Do not try to combine a
3879 sequence of insns when the second insn has been replaced by a
3880 note.
3881
3882 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
3883
3884 * gcc.c (load_specs): New static function.
3885 (read_specs): Use it.
3886
3887 * gcc.c (lookup_compiler): Make multiple passes for case
3888 insensitive filesystems.
3889
3890 2000-04-24 Neil Booth <NeilB@earthling.net>
3891
3892 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
3893 * cpphash.h (_cpp_check_directive): new.
3894 * cpplex.c (handle_newline, cpp_free_token_list,
3895 init_trigraph_map, trigraph_ok, trigraph_replace,
3896 backslash_start, skip_block_comment, skip_line_comment,
3897 skip_whitespace, parse_name, parse_number, parse_string,
3898 copy_comment, _cpp_lex_line, spell_char, spell_string,
3899 spell_comment, spell_name, spell_other, _cpp_lex_file,
3900 _cpp_output_list): new.
3901 (expand_name_space): take length argument.
3902 (init_token_list): add comment list initialisation.
3903 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
3904 instead of HSPACE_BEFORE.
3905
3906 * cpplib.c (_cpp_check_directive): new
3907 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
3908 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
3909 (HSPACE_BEFORE): delete.
3910 (TTYPE_TABLE): rearrange.
3911 (struct cpp_toklist): update.
3912
3913 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3914
3915 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
3916 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
3917 argument form of AC_DEFINE.
3918
3919 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
3920 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
3921 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
3922 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
3923 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
3924
3925 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
3926
3927 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3928
3929 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
3930 deduced.h): Use -isystem, not -I, for including system headers.
3931
3932 2000-04-24 Nick Clifton <nickc@cygnus.com>
3933
3934 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
3935 the source register is the frame pointer or arg pointer.
3936 (addsi3_small_int): Disallow if source register is the frame
3937 pointer or arg pointer.
3938
3939 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3940
3941 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
3942 call to AC_MSG_RESULT.
3943
3944 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3945
3946 * invoke.texi: Correct grammatical errors, document
3947 -fno-gnu-keywords as identical to -fno-asm for C++.
3948
3949 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3950
3951 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
3952 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
3953 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
3954 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
3955 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
3956
3957 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
3958 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
3959 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
3960 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
3961 new macros names.
3962
3963 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
3964
3965 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
3966 (pop_alignment): Likewise.
3967 (handle_pragma_token): Likewise.
3968
3969 2000-04-24 Robert Lipe <robertlipe@usa.net>
3970
3971 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
3972
3973 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
3974
3975 * combine.c (try_combine): Update reg_nonzero_bits of
3976 newi2pat before newpat.
3977
3978 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
3979
3980 * loop.c (strength_reduce): Simplify test to INSN_P.
3981 (record_giv): Attempt to simplify the add value, use CONSTANT_P
3982 expressions instead of CONST_INT.
3983 (express_from_1): Likewise.
3984
3985 2000-04-24 Mark Mitchell <mark@codesourcery.com>
3986
3987 * regs.h (reg_n_max): Don't declare.
3988 * flow.c (reg_n_max): Don't define.
3989 * regclass.c (renumber): Don't initialize to zero.
3990 (regno_allocated): Likewise.
3991 (reg_n_max): Define.
3992 (allocate_reg_info): Don't initialize unnecessarily.
3993
3994 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
3995
3996 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
3997 and blockage_p in the newly allocated attribute.
3998
3999 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
4000
4001 * config/mn10300/mn10300.md (addsi): `inc4' on address
4002 registers does not modify cc, but `inc' on an extended
4003 register does.
4004
4005 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
4006
4007 * reload.c (find_equiv_reg): Checks all valueno regs
4008 as a reload_reg_p regs.
4009
4010 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
4011
4012 * cpphash.c (collect_objlike_expansion): Add sanity check.
4013 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
4014 the buffer is the empty string, return. Mark __DATE__ and
4015 __TIME__ as XCONST nodes, not MCONST.
4016 (_cpp_macroexpand): Avoid pushing an empty buffer.
4017 (funlike_macroexpand): Don't pop token_buffer here.
4018
4019 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
4020
4021 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
4022 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
4023 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
4024 (REGNO_OK_FOR_BASE_P): Define in terms of them.
4025 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
4026 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
4027 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
4028
4029 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4030
4031 * loop.c (simplify_giv_expr): Be more agressive on simplifying
4032 constant MULT givs.
4033
4034 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
4035
4036 * cpphash.h (struct definition): Move file, line, col members...
4037 (struct hashnode): ... here. Also add 'disabled' flag.
4038 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
4039 T_IDENTITY. Remove T_DISABLED.
4040 Update prototypes.
4041
4042 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
4043 (collect_expansion): Split into collect_objlike_expansion and
4044 collect_funlike_expansion.
4045 (_cpp_macroexpand): Split out scan_arguments, stringify, and
4046 funlike_macroexpand.
4047 (_cpp_compare_defs): Rename compare_defs, make static.
4048 (_cpp_make_hashnode): Initialize hp->disabled.
4049 (macro_cleanup): Adjust for new token types. Clear
4050 m->disabled.
4051 (_cpp_create_definition): Move code here to determine what
4052 sort of macro it is, and code to check for redefinitions, from
4053 do_define. Implement a few simple cases without creating a
4054 full DEFINITION.
4055 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
4056 Handle the simple cases.
4057 (push_macro_expansion): Set buf->has_escapes and hp->disabled
4058 here.
4059
4060 * cppinit.c (builtin_array): Change MCONST to XCONST
4061 everywhere.
4062 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
4063 fix check for disabled and function-like macros.
4064 * cpplib.c (do_define): Move most logic to
4065 _cpp_create_definition.
4066 (do_undef): Handle new special token types.
4067
4068 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
4069
4070 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
4071 of CONSTANT_P for mult_val; always use validate_change to update insn.
4072
4073 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
4074
4075 * cpphash.c (trad_stringify, add_pat): New functions.
4076 (collect_expansion): Restore support for -traditional syntax.
4077 Use trad_stringify and add_pat.
4078 (_cpp_macroexpand): Restore support for -traditional semantics.
4079 * cpplex.c (_cpp_scan_line): Don't change space_before if we
4080 get a COMMENT token.
4081 (_cpp_lex_token): Provide COMMENT tokens to caller if
4082 traditional and parsing_define_directive.
4083 (skip_comment): Warn about // comments if -Wtraditional.
4084 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
4085 proper node type.
4086 (do_undef): Don't warn about undefining EMPTY nodes.
4087
4088 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4089
4090 * loop.c (strength_reduce): Fix biv removal code.
4091
4092 2000-04-22 Richard Henderson <rth@cygnus.com>
4093
4094 * predict.c (estimate_probability): Examine both sides of
4095 a branch for no exits. Use 90% not 50% for predict taken.
4096 Reorg for one copy of note generation code.
4097
4098 2000-04-22 Richard Henderson <rth@cygnus.com>
4099
4100 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
4101
4102 2000-04-22 Richard Henderson <rth@cygnus.com>
4103
4104 * diagnostic.c (init_output_buffer): Don't initialize format_args.
4105 (output_clear): Likewise.
4106 (output_printf): Use va_copy.
4107 (vline_wrapper_message_with_location): Likewise.
4108 (v_message_with_decl): Likewise.
4109 (line_wrapper_printf): VA_START infor buffer.format_args directly.
4110 * system.h (va_copy): Provide default implementation.
4111
4112 2000-04-22 Richard Henderson <rth@cygnus.com>
4113
4114 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
4115 the collected condition is not a constant.
4116
4117 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
4118
4119 * diagnostic.h: New file.
4120
4121 * Makefile.in (diagnostic.o): Depends on diagnostic.h
4122
4123 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
4124 various function prototypes.
4125 (diagnostic.h): #include.
4126 (struct output_buffer): Move into diagnostic.h.
4127 (get_output_prefix): Rename to output_get_prefix. Export.
4128 (init_output_buffer): Export. Break out. Ajust intialization.
4129 (output_space_left, output_append): Export.
4130 (output_newline): Rename to output_add_newline. Export.
4131 (output_clear): Nullify additional output_buffer fields.
4132 (output_puts): Rename to output_add_string. Export.
4133 (dump_output): Rename to output_flush_on. Export.
4134 (build_location_prefix): Constify return-type.
4135 (emit_output_prefix): Rename to output_emit_prefix. Export.
4136 (set_real_maximum_length): New function.
4137 (output_set_maximum_length): Ditto
4138 (output_clear): Ditto.
4139 (output_add_character): Ditto.
4140 (output_add_integer): Ditto.
4141 (output_add_space): Ditto.
4142 (output_format): Ditto.
4143 (output_printf): Adjust buffer initialization.
4144 (vline_wrapper_message_with_location): Ditto.
4145 (v_message_with_decl): Ditto. Adjust call to output_puts
4146 and get_output_prefix.
4147 (default_print_error_function): Adjust buffer intialization.
4148
4149 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4150
4151 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
4152 of VOID_TYPE.
4153
4154 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4155
4156 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
4157 of explicit 0.
4158
4159 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
4160
4161 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
4162 accurate data about SP moves.
4163
4164 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
4165
4166 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
4167 aliases to AM33 registers.
4168
4169 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
4170
4171 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
4172 to all EXTENDED bitmaps.
4173
4174 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
4175
4176 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
4177 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
4178 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
4179
4180 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
4181
4182 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
4183 the operand is not constant.
4184
4185 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
4186
4187 * reload.c (find_equiv_reg): Checks all valueno and regno regs
4188 as a call-clobbered regs.
4189
4190 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4191
4192 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
4193 * rtl.h: Likewise.
4194 * rtl.def: Update comment.
4195 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
4196 * integrate.c (expand_inline_function): Likewise.
4197 * profile.c (branch_prob): Likewise.
4198 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
4199 * print-rtl.c (print_rtx): Likewise.
4200 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
4201 (reemit_notes): Likewise; also use enum insn_note.
4202
4203 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
4204 (place_field): Properly compute know and actual alignment.
4205
4206 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
4207 in proper format.
4208
4209 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
4210 note for REG1.
4211
4212 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
4213
4214 * cpphash.c (struct arg, struct arglist): Const-ify strings.
4215 (warn_trad_stringify, duplicate_arg_p): New helper functions.
4216 (collect_expansion): Rewrite to scan over a token list.
4217 Remove -traditional support.
4218 (collect_formal_parameters): Rename to collect_params; rewrite
4219 to scan over a token list.
4220 (_cpp_create_definition): Adjust to scan a token list.
4221 (_cpp_macroexpand): Remove -traditional support.
4222 (_cpp_compare_defs): Whitespace is now canonicalized.
4223 (comp_def_part): Delete function.
4224
4225 * cpphash.h: Update prototypes.
4226 * cpplex.c (init_token_list): Don't set lineno if there is no
4227 buffer.
4228 (pedantic_whitespace): New function.
4229 (_cpp_scan_line): Mark tokens that had hspace before. Don't
4230 consume a newline. Use pedantic_whitespace.
4231 (_cpp_lex_token): Remove support for -traditional macros.
4232 (_cpp_get_define_token): Delete.
4233 (_cpp_get_directive_token): Do the real work here. Use
4234 pedantic_whitespace.
4235 (_cpp_init_input_buffer): Initialize pfile->directbuf.
4236
4237 * cpplib.c (get_macro_name): Delete.
4238 (do_define): Read the entire line into pfile->directbuf, then
4239 feed the token list to _cpp_create_definition.
4240 * cpplib.h (HSPACE_BEFORE): new define.
4241 (struct cpp_reader): Add a toklist member, "directbuf".
4242
4243 * predict.c (estimate_probability): New heuristic: if a jump
4244 branches around a block with no successors, predict it taken.
4245 Disentangle control flow.
4246
4247 2000-04-20 Richard Henderson <rth@cygnus.com>
4248
4249 * loop.c (emit_iv_add_mult): Revert last change.
4250
4251 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4252
4253 * cpplib.h (enum cpp_ttype): Add token types for all
4254 punctuators. Distinguish pp-numbers from valid C numbers.
4255 Give some tokens better names. Initialize from macro.
4256 (struct cpp_name, cpp_token, cpp_toklist): New data
4257 structures.
4258 Update prototypes.
4259 * cpplex.c (bump_column, expand_name_space,
4260 expand_token_space, init_token_list, cpp_output_list,
4261 _cpp_scan_line): New functions.
4262 (output_line_command): Add third argument, new line number.
4263 * cpphash.h: Update prototypes.
4264 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
4265 token names.
4266
4267 2000-04-20 Richard Henderson <rth@cygnus.com>
4268
4269 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
4270
4271 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
4272
4273 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
4274 object pointed to.
4275
4276 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
4277
4278 * loop.c (emit_iv_add_mult): Simplify it's input and emit
4279 REG_EQUAL note explaining the calculated value.
4280
4281 * calls.c (expand_call): Avoid unnecesary precalculation
4282 and outgoing parameters space guarding for sibling calls.
4283 (store_one_arg): Likewise.
4284
4285 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4286
4287 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
4288 (rest_of_compilation): Write sibling dump file and account
4289 for time as jump time.
4290 * invoke.texi: Update documentation on dump flags.
4291
4292 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
4293
4294 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
4295
4296 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
4297
4298 * cpphash.c (special_symbol): Represent an empty macro with
4299 "\r \r " not just "\r ".
4300 (_cpp_macroexpand): Correct condition for the foo ( ) special
4301 case.
4302 (unsafe_chars): Handle EOF as second argument.
4303 (push_macro_expansion): Simplify test for removing escape at
4304 end. Do not trim both escapes if there is no text in between.
4305
4306 2000-04-19 Jim Blandy <jimb@redhat.com>
4307
4308 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
4309 of PTR_SIZE, when appropriate.
4310
4311 2000-04-19 Mark Mitchell <mark@codesourcery.com>
4312
4313 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
4314 (USE_ENUM_BITFIELDS): Fix typo.
4315
4316 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4317
4318 * stor-layout.c (place_field): Set rli->offset_align properly.
4319
4320 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4321
4322 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
4323 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
4324 PARM_BOUNDARY): Remove unnecessary casts.
4325
4326 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
4327
4328 * calls.c (precompute_arguments): Remove must_preallocate and
4329 args_size calls.
4330 (expand_call): Update call of precompute_arguments.
4331
4332 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
4333 check_insn_for_givs): Break out from ...
4334 (strength_reduce) ... here; use for_every_insn_in_loop to call
4335 check_insn_for_givs.
4336 * loop.h (for_every_insn_in_loop): Declare.
4337 (loop_insn_callback): New type.
4338
4339 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4340
4341 * cpplib.c (do_pragma_poison): Strings in the token buffer are
4342 not nul-terminated.
4343
4344 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
4345
4346 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4347 flag_pic and RELOC.
4348
4349 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4350
4351 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4352
4353 * configure.in: Delete --disable-cpplib option and all
4354 references to cpp_main.
4355 * configure: Regenerate.
4356 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4357 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4358 cccp.o, cccp, or cppmain. Link cppmain.o straight to
4359 cpp$(exeext). Add --no-headers to makeinfo command line when
4360 generating INSTALL. Install and uninstall cpp.1 manpage, not
4361 cccp.1.
4362 * install.texi: Delete all references to cexp.y/cexp.c.
4363 Delete ancient instructions for compiling GCC on 3b1.
4364 * INSTALL: Regenerate.
4365
4366 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4367 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4368 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4369 cexp.c/cexp.y.
4370 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4371 which is no longer tested anywhere.
4372
4373 * cppinit.c (handle_option): Don't run error message through
4374 gettext twice.
4375
4376 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4377
4378 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4379 * cpperror.c (hashtab.h): Now include.
4380 * cppexp.c (hashtab.h): Likewise.
4381 * cpplex.c (hashtab.h): Likewise.
4382 * cppfiles.c (hashtab.h): Likewise.
4383 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4384 to htab_find_slot_with_hash.
4385 * cpphash.c (hashtab.h): Now include.
4386 (_cpp_lookup_slot): INSERT is now enum insert_option.
4387 * cpphash.h (_cpp_lookup_slot): Likewise.
4388 * cppinit.c (hashtab.h): Include earlier.
4389 (initialize_builtins): Pass enum to htab_find_slot.
4390 * cpplib.c (hashtab.h): Now include.
4391 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4392 (do_pragma_poison, do_assert): Likewise.
4393 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4394 htab_find_slot_with_hash.
4395 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4396 * tree.c (type_hash_add): Likewise.
4397 (build1): Minor cleanup.
4398
4399 * ggc-common.c: Add missing blanks.
4400 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4401 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4402
4403 * stmt.c (mark_case_node): New function.
4404 (mark_case_nesting): Call it.
4405
4406 * expmed.c (emit_store_flag): If comparing two-word integer
4407 with zero, can optimize NE, EQ, GE, and LT.
4408
4409 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4410 * conflict.c: Minor cleanups.
4411 * optabs.c: Add blank line
4412 * simplify-rtx.c: Minor cleanups.
4413
4414 2000-04-18 Stan Cox <scox@cygnus.com>
4415
4416 * gengenrtl.c (genlegend): Fix misspelling.
4417
4418 2000-04-18 Robert Lipe <robertlipe@usa.net>
4419
4420 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
4421 bitfields of the host compiler are not signed quantities.
4422 * config.in: Regenerate.
4423 * configure: Regenerate.
4424 * system.h (USE_ENUM_BITFIELDS): Added.
4425 (ENUM_BITFIELDS): Added.
4426 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4427 (SHORT_ENUM_BUG): Deleted.
4428 * tree.h (tree_common): Members `code', `mode', `built_in_class',
4429 now ENUM_BITFIELD.
4430 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4431 (CODE_FIELD_BUG): Likewise.
4432 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4433 (OLD_CC): Likewise.
4434 * config/m68k/x-ccur (X_CFLAGS): Likewise.
4435
4436 2000-04-18 Mark Mitchell <mark@codesourcery.com>
4437
4438 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4439 mark is active.
4440
4441 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4442
4443 * cppexp.c (lex): Don't assume tokens are NUL terminated.
4444 * cpplib.c (do_include, do_import, do_include_next,
4445 read_line_number, detect_if_not_defined): Likewise.
4446 * cpphash.c (collect_expansion): Likewise.
4447 (special_symbol, _cpp_macroexpand): Check return from
4448 cpp_file_buffer.
4449 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4450 macros. Delete all uses.
4451
4452 * gcc.dg/cpp-mi.c: Add two more test cases.
4453 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4454
4455 2000-04-17 Richard Henderson <rth@cygnus.com>
4456
4457 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4458 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4459
4460 2000-04-17 Mark Mitchell <mark@codesourcery.com>
4461
4462 * function.c (expand_function_start): Use hard_function_value to
4463 compute the RTL to use for DECL_RESULT.
4464
4465 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
4466
4467 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4468 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4469 x86_memory_mismatch_stall): New global variables.
4470 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4471 alloved; fix load penalties for Athlon.
4472 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4473 x86_memory_mismatch_stall): Declare.
4474 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4475 TARGET_MEMORY_MISMATCH_STALL): New.
4476 * i386.md (athlon scheduling parameters): Fix latencies according to
4477 Athlon Optimization Manual.
4478 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4479 vector.
4480 (fsqrt instruction patterns): Set athlon_decode to direct.
4481 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4482 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4483 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4484 and TARGET_PARTIAL_REGISTER_STALL machines.
4485 (pushdf_nointeger): New pattern.
4486 (pushdf_integer): Rename from pushdf.
4487 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4488 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4489
4490 2000-04-17 Richard Henderson <rth@cygnus.com>
4491
4492 * loop.c (canonicalize_condition): Add WANT_REG argument.
4493 Stop the search if we match it.
4494 * expr.h (canonicalize_condition): Update decl.
4495 * predict.c (expected_value_to_br_prob): Use it. Track last
4496 expected value note.
4497 (find_expected_value): Remove.
4498
4499 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4500
4501 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4502
4503 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4504 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4505 a plain file.
4506 * configure.in: Call AC_FUNC_MMAP_FILE.
4507 * configure: Regenerate.
4508 * config.in: Regenerate.
4509
4510 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4511 * fixinc/fixincl.c: Likewise.
4512
4513 2000-04-17 Richard Henderson <rth@cygnus.com>
4514
4515 * builtins.c (expand_builtin_expect): New.
4516 (expand_builtin): Call it.
4517 * builtins.def (BUILT_IN_EXPECT): New.
4518 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4519 * extend.texi: Document it.
4520
4521 * predict.c (expected_value_to_br_prob): New.
4522 (find_expected_value): New.
4523 * basic-block.h (expected_value_to_br_prob): Declare.
4524 * toplev.c (rest_of_compilation): Invoke it.
4525
4526 * rtl.h (NOTE_EXPECTED_VALUE): New.
4527 (NOTE_INSN_EXPECTED_VALUE): New.
4528 * rtl.c (note_insn_name): Update.
4529 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4530 cases; handle NOTE_INSN_EXPECTED_VALUE.
4531
4532 2000-04-17 Jakub Jelinek <jakub@redhat.com>
4533
4534 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4535 leaf sibcall delay slot if flag_pic.
4536 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4537
4538 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4539
4540 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4541
4542 * fixproto: If fix-header fails, exit with an error.
4543
4544 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4545
4546 * cse.c (struct check_depdendence_data): New.
4547 (check_dependence): New function.
4548 (invalidate): Use check_depdenence.
4549
4550 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4551
4552 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4553 UNITS_PER_WORD is unsigned.
4554
4555 * tree.h (struct tree_common): Remove misleading comment.
4556
4557 2000-04-16 Dave Pitts <dpitts@cozx.com>
4558
4559 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4560 message in quotes. Otherwise, IBM's make program treats the '#' as the
4561 start of a comment and ignores the remainder of the line.
4562
4563 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4564 upper case.
4565 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4566 * cexp.y (initialize_random_junk): Likewise.
4567 * cppfiles.c (find_include_file): Cast alloca return value.
4568 * cppinit.c (initialize_standard_includes): Likewise.
4569 * cpplib.c (cpp_define, cpp_undef): Likewise.
4570 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4571 * final.c (output_asm_insn): Allow for holes in EBCDIC.
4572 * fold-const.c (CHARMASK): New.
4573 (real_hex_to_f): Use it.
4574 * real.c (CHARMASK): New.
4575 (etoasc, asctoeg): Use it.
4576 (asctoeg): EBCDIC lower case characters preceed upper case.
4577
4578 * i370.c (mvs_add_label): Change spacing for coding conventions.
4579 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4580 outputing case vectors.
4581 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4582 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4583 since vector in in the data CSECT.
4584 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4585 * i370.md (Many patterns): Put the length in the XL directives.
4586 (movdi): Put back STM and MVC in definition.
4587 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4588 pattern using the TCA.
4589 * oe.h (CPP_SPEC): Added to allow trigraphs.
4590 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4591 not support the "long long" type.
4592
4593 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4594
4595 * config/mips/mips-protos.h (mips_legitimate_address_p): New
4596 function.
4597 (mips_reg_mode_ok_for_base_p): Likewise.
4598 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4599 (REG_OK_FOR_INDEX_P): Define unconditionally.
4600 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4601 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4602 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4603 that GET_MODE_SIZE is unsigned.
4604 (mips_reg_mode_ok_for_base_p): Define.
4605 (mips_legitimate_address_p): Likewise. Adjust now
4606 that GET_MODE_SIZE is unsigned.
4607 (block_move_loop): Make the number of bytes unsigned.
4608 (expand_block_move): Likewise.
4609 (function_arg): Make the loop counter unsigned to match the
4610 boundary condition.
4611
4612 2000-04-16 Richard Henderson <rth@cygnus.com>
4613
4614 * rtl.h (enum insn_note): New enumeration. Subsume
4615 NOTE_INSN_DELETED and friends.
4616 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4617 * rtl.c (note_insn_name): Tweak string order.
4618
4619 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
4620
4621 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4622 to offset * 2.
4623
4624 * cpplex.c (output_line_command): Remove debugging prints.
4625 (cpp_output_tokens): Don't write out a zero-length buffer or
4626 try to see if it has a newline in it.
4627 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4628 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4629 the end of the loop. Use memmove. Don't read past the end of
4630 the buffer. Remove trailing newlines from error messages.
4631
4632 2004-04-16 Neil Booth <NeilB@earthling.net>
4633
4634 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4635 * cpplib.c: Add new syntax flags to directive table, and
4636 supporting macros.
4637
4638 2000-04-15 Ulrich Drepper <drepper@redhat.com>
4639
4640 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4641 using ret $N.
4642
4643 2000-04-15 David Edelsohn <edelsohn@gnu.org>
4644
4645 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4646 * haifa-sched.c: Update -fsched-verbose comments to use "=".
4647
4648 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4649
4650 * Makefile.in (ggc-page.o): Now includes toplev.h.
4651 * ggc-page.c (toplev.h): Now included.
4652 (gc_time): Remove declaration.
4653 (ggc_collect): TIME now long.
4654 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4655 others static.
4656 * toplev.h (gc_time, parse_time, gc_time): New declarations.
4657
4658 * toplev.c: Make *_time variable long to reduce chance of overflow.
4659 (TIMEVAR): Likewise for `otime'.
4660 (print_time): Arg is now long; compute percentage in FP and round.
4661 * toplev.h (print_time): Arg is long.
4662
4663 * tree.c: Minor whitespace changes.
4664
4665 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4666 * configure: Rebuilt.
4667 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4668 (__fixunsxfDI): Renamed from __fixunsxfdi.
4669 (__fixunsdfDI): Renamed from __fixunsdfdi.
4670 (__fixunssfDI): Renamed from __fixunssfdi.
4671 (__floatdisf): Use proper type in REP_BIT macro.
4672 (__fixunsxfSI): Renamed from __fixunsxfsi.
4673 (__fixunsdfSI): Renamed from __fixunsdfsi.
4674 (__fixunssfSI): Renamed from __fixunssfsi.
4675 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4676 Change location of macros and upper-case some names as above.
4677 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4678 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4679
4680 * varasm.c (assemble_variable): Add cast to remove warning.
4681 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4682
4683 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4684 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4685 region number to -1.
4686
4687 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
4688
4689 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4690 call unshare_all_rtl.
4691
4692 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4693
4694 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
4695
4696 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4697 Use .s1 not .s0 for all FP instructions.
4698
4699 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
4700
4701 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4702 interfaces.
4703 (safe_fwrite, output_line_command): New static functions.
4704 (cpp_expand_to_buffer): Now private to cpplib.
4705 (cpp_scan_buffer): Take a printer.
4706
4707 * cpphash.h: Update prototypes.
4708 * cpplib.h: Update prototypes.
4709 (cpp_printer): New.
4710 (cpp_buffer): Remove last_nominal_fname.
4711 (cpp_reader): Remove lineno.
4712
4713 * cppmain.c: Use a cpp_printer.
4714 * fix-header.c: No need to inhibit line commands. Call
4715 cpp_start_read with no printer.
4716
4717 * cpperror.c (cpp_notice_from_errno): Provide default name.
4718 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4719 (find_include_file, cpp_read_file): Use make_IHASH.
4720 (file_cleanup): Set control_macro and clear
4721 input_stack_listing_current here.
4722 (_cpp_execute_include): Don't output entering-file marker.
4723 * cpphash.c (special_symbol): Look for the line number in the
4724 buffer, not the reader.
4725 (_cpp_macroexpand): No need to disable line commands.
4726 (_cpp_dump_definition): No need to generate line commands.
4727 (dump_hash_helper): Remove excess newline from output.
4728 * cppinit.c (dump_special_to_buffer): No need to generate line
4729 commands.
4730 (cpp_printer_init): New.
4731 (cpp_start_read): Take a printer, and start it up if it's not
4732 NULL. No need to generate line commands.
4733 (cpp_finish): Expect no buffers stacked at all. Take a
4734 printer argument, and flush the output buffer if it's not
4735 NULL.
4736 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4737 Don't put two hashes at the beginning of an assertion.
4738 (cpp_get_token): Don't increment pfile->lineno or emit line
4739 commands here. Return EOF if there's no buffer when we get
4740 EOF.
4741 * cpplib.c (do_define, skip_if_group):
4742 No need to disable line commands.
4743 (_cpp_output_line_command): Delete function.
4744 (do_line): Don't emit line commands here, but set things up so
4745 they will be emitted if necessary. Use _cpp_fake_ihash to
4746 make unique nominal_fnames if necessary.
4747 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4748 with 0 for column, not -1.
4749 (_cpp_handle_eof): Don't set the control macro here. Don't
4750 clear input_stack_listing_current here. Don't emit line
4751 commands.
4752
4753 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4754
4755 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4756 always, use the default SVR4 start address.
4757
4758 * config/rs6000/linux.h (LINK_SPEC): Don't define.
4759 (LINK_SHLIB_SPEC): Define.
4760 (LINK_START_DEFAULT_SPEC): Define.
4761 (LINK_OS_DEFAULT_SPEC): Define.
4762
4763 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4764
4765 * config/rs6000/eabi.asm (__eabi): Call __init rather than
4766 __do_global_ctors to handle constructors.
4767 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4768 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4769 (STARTFILE_MVME_SPEC): Likewise.
4770 (STARTFILE_SIM_SPEC): Likewise.
4771 (ENDFILE_ADS_SPEC): Use crtend.
4772 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4773 (ENDFILE_MVME_SPEC): Likewise.
4774 (ENDFILE_SIM_SPEC): Likewise.
4775 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4776 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4777 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4778 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4779 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4780 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4781 (CRTSTUFF_T_CFLAGS_S): Define.
4782 * config/rs6000/eabi-ctors.c: Delete.
4783
4784 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4785 boundary.
4786 (__fini): Likewise.
4787 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4788 boundary.
4789 (__fini): Likewise.
4790
4791 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
4792
4793 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4794 plus mask size is smaller or equal to the mode size.
4795
4796 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4797
4798 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4799 not yet set.
4800
4801 * expr.c (reload.h): Now included.
4802 (emit_block_move): Set volatile_ok when checking for movstr.
4803 (emit_move_1): Check for replacements in addresses in multi-word case.
4804 * Makefile.in (expr.o): Now includes reload.h.
4805
4806 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4807 Never have a LIBCALL end a basic block.
4808 (find_basic_blocks_1): Likewise.
4809 Reorganize CALL_INSN cases.
4810
4811 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4812
4813 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
4814
4815 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4816 completers from mov.ret instruction.
4817
4818 2000-04-14 Richard Henderson <rth@cygnus.com>
4819
4820 * fold-const.c (extract_muldiv): Don't distribute and widen
4821 multiply across plus for non-sizetype unsigned types.
4822
4823 2000-04-14 Richard Henderson <rth@cygnus.com>
4824
4825 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4826 If the original source is dead in the incr insn, it's dead now.
4827
4828 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4829
4830 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4831 see if DECL_BIT_FIELD needs to still be set.
4832
4833 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4834
4835 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4836 print_int_cst_octal with something that's not an INTEGER_CST.
4837
4838 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4839 and not a SUBREG to a FLOAT rtl.
4840
4841 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
4842
4843 * emit-rtl.c (try_split): Avoid infinite loop if the split
4844 results in a sequence that contains the original insn.
4845
4846 2000-04-13 Andreas Jaeger <aj@suse.de>
4847
4848 * config/mips/mips.c (expand_block_move): Pass alignment
4849 argument to move_by_pieces in bits, not bytes.
4850
4851 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
4852 __pic__ for little endian.
4853
4854 2000-04-13 Andreas Jaeger <aj@suse.de>
4855
4856 * config/i386/i386-protos.h: Add prototype for
4857 uno_comparison_operator.
4858
4859 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4860
4861 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
4862 * calls.c (ECF_PURE): New flag.
4863 (emit_call_1): Handle ECF_PURE calls.
4864 (initialize_argument_information): Unset ECF_PURE flag too.
4865 (precompute_arguments): Precompute for ECF_PURE too.
4866 (expand_call): Handle ECF_PURE calls too.
4867 (emit_library_call_value_1): Rename no_queue argument to fn_type,
4868 accept value of 2 as pure function.
4869 (emit_library_call_value, emit_library_call): Rename no_queue argument
4870 to fn_type.
4871 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
4872
4873 * tree.h (DECL_IS_PURE): New macro.
4874 (struct tree_decl): Add pure_flag.
4875 * c-common.c (enum attrs): Add attribute "pure".
4876 (init_attributes): Initialize attribute "pure"
4877 (decl_attributes): Handle attribute "pure".
4878 * extend.texi (Attribute "pure"): Document.
4879 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
4880 in pure function.
4881 (flags_from_decl_or_type): Support attribute "pure".
4882
4883 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
4884
4885 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
4886 the token except for numbers and identifiers.
4887
4888 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
4889
4890 * i386.c (ix86_expand_binary_operator,
4891 ix86_expand_unary_operator): Check no_new_pseudos
4892 instead of reload_in_progress and reload_completed.
4893 (ix86_split_ashldi, ix86_split_ashrdi,
4894 ix86_split_lshrdi): Check no_new_pseudos instead
4895 of reload_completed.
4896
4897 2000-04-12 Jeffrey A Law (law@cygnus.com)
4898
4899 * function.c (purge_addressof): Unshare any shared rtl created by
4900 purge_addressof and its children.
4901
4902 2000-04-12 Mark Mitchell <mark@codesourcery.com>
4903
4904 * function.c (aggregate_value_p): VOID_TYPE nodes are never
4905 aggregates.
4906
4907 2000-04-05 Andreas Jaeger <aj@suse.de>
4908
4909 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
4910 not compiling PIC code, add flags for mabi=64.
4911 (SUBTARGET_CPP_SIZE_SPEC): New.
4912 (SUBTARGET_CPP_SPEC): New.
4913 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
4914 for MIPS/Linux and lots of code needs these defines.
4915
4916 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
4917
4918 * reorg.c (fill_slots_from_thread): Check side_effects_p when
4919 trying the "opposite arithmetic" approach.
4920
4921 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4922
4923 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
4924 (struct sh_args): Add new field force_mem.
4925 (INIT_CUMULATIVE_ARGS): Initialize it.
4926 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
4927
4928 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
4929
4930 * calls.c (expand_call): Do not reverse args in "equal from" field.
4931 (emit_library_call_value_1): Emit_libcall_block for const and pure
4932 function.
4933
4934 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4935
4936 * reload1.c (reload_combine): Don't enable optimization for fixed
4937 registers when encountering a BARRIER.
4938
4939 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
4940
4941 * builtins.c (expand_builtin_memcmp): Do expansion even with
4942 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
4943
4944 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
4945 stack is propertly aligned; add sanity checking for aligned
4946 stack pointer.
4947 (expand_library_call_value_1): Add sanity checking for aligned
4948 stack pointer.
4949
4950 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
4951
4952 * calls.c (emit_library_call_value_1): Change 3rd arg to
4953 locate_and_pad_parm to disregard the setting of partial.
4954
4955 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4956
4957 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
4958
4959 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
4960 CALL_INSN from the normal case.
4961
4962 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
4963
4964 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4965 New global variables.
4966 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
4967 adjustment.
4968 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4969 Declare,
4970 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
4971 TARGET_ADD_ESP_8): New macros.
4972 * i386.md: Add peep2s to convert esp adjustments to push and pop
4973 instructions.
4974 (pushsi_prologue, popsi_epilogue): New patterns.
4975
4976 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4977
4978 * real.c (toe64): Remove stale #endif from the last change.
4979
4980 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
4981
4982 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
4983 * real.c (toe64): Revert previous change.
4984
4985 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4986
4987 * objc/objc-act.c: Include ggc.h.
4988 (objc_tree_index, objc_global_trees): Convert most of the
4989 static tree variables into a static array with previous names
4990 as defines.
4991 (objc_ellipsis_node): New variable.
4992 (lang_init): Call objc_act_parse_init and c_parse_init.
4993 Create objc_ellipsis_node.
4994 (build_selector_translation_table): Use objc_ellipsis_node instead
4995 of (tree)1.
4996 (hack_method_prototype): Likewise.
4997 (get_arg_type_list): Likewise.
4998 (start_method_def): Likewise.
4999 (continue_method_def): Likewise.
5000 (gen_method_decl): Likewise.
5001 (ggc_mark_imp_list): New function.
5002 (ggc_mark_hash_table): New function.
5003 (objc_act_parse_init): New function.
5004 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
5005 * c-parse.in (c_parse_init): For objc add roots of objc specific
5006 local tree variables.
5007 * objc/objc-parse.y: Rebuilt.
5008 * objc/objc-parse.c: Rebuilt.
5009 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
5010
5011 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
5012
5013 * cse.c (delete_trivially_dead_insns): Also delete insns
5014 that copy a register to itself where the destination is
5015 a strict_low_part.
5016
5017 2000-04-11 Richard Henderson <rth@cygnus.com>
5018
5019 * flow.c (struct propagate_block_info): Add new_dead, new_live.
5020 (propagate_block): Initialize them. Use them in parallel instead
5021 of one tmp variable, ie revert much of the 0408 and 0407 functional
5022 changes, but keep the structural changes.
5023 (mark_set_regs): Take new_dead from propagate_block_info instead.
5024 (mark_set_1, mark_set_reg): Likewise.
5025 (mark_used_regs): Likewise with new_live.
5026 (mark_used_reg): Likewise. Revert 0408 change.
5027
5028 2000-04-11 Nick Clifton <nickc@cygnus.com>
5029
5030 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
5031 restriction.
5032 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
5033
5034 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5035
5036 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
5037 const section to output a CONSTRUCTOR based on the same conditions
5038 used for VAR_DECLs.
5039
5040 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
5041
5042 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
5043 * pa/pa-protos.h (output_call): Add additional argument indicating
5044 if the call is a sibling/tail call.
5045 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
5046 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
5047 (function_arg, function_arg_partial_nregs): Likewise
5048 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
5049 (emit_move_sequence): Zero extend certain constants as needed
5050 for TARGET_64BIT.
5051 (compute_zdepdi_operands, output_64bit_and): New functions.
5052 (output_64bit_ior, function_arg): Likewise.
5053 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
5054 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
5055 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
5056 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
5057 (output_bvb): Likewise.
5058 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
5059 (output_call): New argument 'sibcall'. Generate sibcall sequences
5060 as needed.
5061 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
5062 (ouput_arg_descriptor): Do not emit argument descriptors for
5063 TARGET_64BIT.
5064 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
5065 defined.
5066 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
5067 (FUNCTION_OK_FOR_SIBALL): Define.
5068 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
5069 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
5070 (CPP_SPEC): Use new spec infrastructure.
5071 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
5072 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
5073 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
5074 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
5075 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
5076 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
5077 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
5078 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
5079 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
5080 (FUNCTION_ARG); Call out to C code.
5081 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
5082 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
5083 (MIN_UNITS_PER_WORD): Likewise.
5084 * pa/pa.md (cmpdi): New expander.
5085 (scc patterns, movstrsi): Not available for TARGET_64BIT.
5086 (64bit conditional arithmetic): New patterns.
5087 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
5088 (movsicc): Not available if modes on all the operands to not match.
5089 (movdicc): New expander and associated patterns.
5090 (64bit branches): New patterns.
5091 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
5092 (pre_ldd, post_std): New patterns.
5093 (64bit addil, load low part): New patterns.
5094 (special movsf constant): Not available for TARGET_64BIT.
5095 (movsf, movdf expanders): Force constants into memory.
5096 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
5097 (64bit movdf/movdi patterns): New patterns.
5098 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
5099 for TARGET_64BIT.
5100 (extendqidi2, extendhidi2, extendsidi2): Similarly.
5101 (adddi3 expander): Allow "arith_operand" for second input.
5102 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
5103 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
5104 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
5105 (muldi3): New expander for TARGET_64BIT.
5106 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
5107 for TARGET_64BIT.
5108 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
5109 patterns for TARGET_64BIT.
5110 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
5111 patterns for TARGET_64BIT.
5112 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
5113 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
5114 (sibcall_epilogue): New expander.
5115 (casesi): Tweak for TARGET_64BIT.
5116 (call expanders): Set & use the outgoing argument pointer. Use the
5117 64bit call patterns as needed. Add additional arg to output_call.
5118 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
5119 (sibcall, sibcall_internal_symref): New expanders.
5120 (sibcall_value, sibcall_value_internal_symref
5121 (interspace_jump): Turn into an expander + matching patterns.
5122 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
5123 * pa/pa64-regs.h: Eliminate trigraph sequences.
5124 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
5125
5126 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
5127
5128 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
5129 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
5130 cpp_token with cpp_ttype everywhere.
5131 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
5132 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
5133 CPP_BUF_COL. Line and column numbers are unsigned int, not
5134 long.
5135 * cpplex.c (cpp_buf_line_and_col): Delete.
5136 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
5137 'long lineno' to 'unsigned int lineno'.
5138 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
5139
5140 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5141
5142 * extend.texi: ISO C99 is not a draft anymore.
5143 * invoke.texi: ISO C++ is not a draft anymore.
5144 * cpp.texi: __cplusplus is required by the ISO standard.
5145
5146 * extend.texi (-fthis-is-variable): Undocument.
5147 * flags.h (warn_template_debugging): Remove declaration.
5148 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
5149 -Wenum-clash, -Wtemplate-debugging): Undocument.
5150
5151 2000-04-10 Nick Clifton <nickc@cygnus.com>
5152
5153 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
5154 integer.
5155 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
5156 integer.
5157 (ARM_SIGN_EXTEND): Use HOST_UINT.
5158 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
5159 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
5160 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
5161 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
5162
5163 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
5164 (arm_gen_constant): Use HOST_UINT.
5165 (arm_canonicalize_constant): Use HOST_UINT.
5166 (arm_reload_in_hi): Use HOST_UINT.
5167 (arm_reload_out_hi): Use HOST_UINT.
5168 (output_multi_immediate): Use HOST_UINT.
5169 (int_log2): Use HOST_UINT.
5170 (arm_poke_function_name): Use HOST_UINT.
5171 (arm_output_epilogue): Use arm_volatile_func().
5172 (output_thumb_prologue): Use arm_strip_name_encoding().
5173
5174 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5175
5176 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
5177 of sequence point problems.
5178
5179 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
5180
5181 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
5182 Recomment.
5183 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
5184
5185 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5186
5187 * sbitmap.h: Whitespace changes and use upper-case macro args.
5188 (struct simple_bitmap_def): All sizes now unsigned.
5189 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
5190 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
5191 (sbitmap_vector_alloc): Parms and local vars now unsigned.
5192 (sbitmap_zero): Cast bzero arg to PTR.
5193 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
5194 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
5195 loop to make structure clearer.
5196 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
5197 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
5198 (sbitmap_a_and_b_or_c): Likewise.
5199 (sbitmap_intersection_of_succs): Minor cleanups.
5200 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
5201 (sbitmap_union_of_preds): Likewise.
5202 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
5203 (debug_sbitmap): New function.
5204
5205 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
5206 * c-typeck.c (convert_for_assignment): Likewise.
5207
5208 * expmed.c (init_expmed): Don't free objects we make.
5209 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
5210
5211 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
5212 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
5213
5214 * gcse.c (expr_hash_table_size): Now unsigned.
5215 (compute_ae_gen): Local variable `i' now unsigned.
5216 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
5217 (compute_transout, hoist_code): Likewise.
5218 (compute_local_properties): Likewise, also hash_table_size.
5219 (alloc_expr_hash_table): N_INSNS now unsigned.
5220 (delete_null_pointer_checks): Mark arg F as unused.
5221
5222 * regrename.c: Minor cleanups, including chang some variables
5223 to unsigned int.
5224
5225 2000-04-10 Neil Booth <NeilB@earthling.net>
5226
5227 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
5228 than GETC ().
5229 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
5230
5231 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5232
5233 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
5234 __classof__, and __headof__ from the list of gnu keywords.
5235 (-ansi): Remove -foperator-names from list of implied options.
5236 Do not call it ANSI C++.
5237 (-foperator-names): Document as -fno-operator-names.
5238
5239 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
5240
5241 * cpphash.c (timestamp): Delete.
5242 (del_HASHNODE): If type is T_MCONST, free value.cpval.
5243 (special_symbol): Remove unnecessary braces. Remove
5244 T_VERSION. Treat T_STDC like T_CONST unless
5245 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
5246 when one is encountered, then convert them into T_MCONST
5247 nodes.
5248 * cppinit.c (builtin_array): version_string is T_MCONST.
5249 __STDC__ has a "1" in its cpval. Don't have a terminator
5250 entry. Clean up which entries are dumped.
5251 (initialize_builtins): Only __STDC__ gets the special
5252 -traditional treatment. Count the length of builtin_array.
5253 Render version_string here.
5254 * cpphash.h: Remove T_VERSION. Add T_MCONST.
5255 * cpplib.h (struct cpp_reader): Remove timebuf.
5256
5257 2000-04-09 Richard Henderson <rth@cygnus.com>
5258
5259 * genrecog.c (pred): Update comparison_operator for the unordered
5260 operators.
5261
5262 * config/i386/i386.c (no_comparison_operator): Disallow unordered
5263 operators.
5264 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
5265 (uno_comparison_operator): New.
5266 (put_condition_code): Handle UNORDERED/ORDERED.
5267 (unsigned_comparison): Likewise.
5268 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
5269 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
5270 (ix86_expand_fp_compare): Use them. Take scratch as argument,
5271 update all callers. Handle all 8 unordered operators.
5272 (ix86_expand_setcc): Lose the unordered argument, update all callers.
5273 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
5274 * config/i386/i386.h (PREDICATE_CODES): Update.
5275 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
5276 (ix86_expand_branch, ix86_expand_setcc): Update.
5277 * config/i386/i386.md (sunordered, sordered): New.
5278 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
5279 (bunordered, bordered): New.
5280 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
5281 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
5282 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
5283
5284 2000-04-09 Philip Blundell <philb@gnu.org>
5285
5286 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
5287
5288 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
5289
5290 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
5291 fix_truncxfhi2): New patterns.
5292 * i386.c (output_fix_trunc): Handle converting to HImode.
5293
5294 2000-04-08 Alex Samuel <samuel@codesourcery.com>
5295
5296 * ssa.c (convert_to_ssa): Eliminate dead code when calling
5297 life_analysis.
5298 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
5299 (for_each_successor_phi): Change parameter to basic_block.
5300 (coalesce_regs_in_successor_phi_nodes): Likewise.
5301 (coalesce_regs_in_copies): Likewise.
5302 (compute_coalesced_reg_partition): Use basic_block instead of index.
5303 * rtl.h (convert_to_ssa): Delete.
5304 (convert_from_ssa): Likewise.
5305 (successor_phi_fn): Likewise.
5306 (for_each_successor_phi): Likewise.
5307 (in_ssa_form): Likewise.
5308 * basic-block.h (convert_to_ssa): Moved from rtl.h.
5309 (convert_from_ssa): Likewise.
5310 (successor_phi_fn): Likewise.
5311 (in_ssa_form): Likewise.
5312 (for_each_successor_phi): Likewise. Change parameter to basic_block.
5313 * flow.c (calculate_global_regs_live): Pass a basic_block to
5314 for_each_successor_phi.
5315
5316 2000-04-08 Richard Henderson <rth@cygnus.com>
5317
5318 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
5319 was modified in the current insn.
5320
5321 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5322
5323 * arm/thumb.md: Delete.
5324 * arm/thumb-protos.h: Delete.
5325
5326 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5327
5328 Merge changes from merged-arm-thumb-backend-branch onto trunk.
5329
5330 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
5331
5332 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
5333 into branch.
5334
5335 * arm.md (nop): Use the standard RTL expression. Don't code as a
5336 define_expand.
5337 (*arm_nop, *thumb_nop): Delete.
5338
5339 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5340 constants. Use casts instead.
5341 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5342 output_multi_immediate, arm_poke_function_name): Likewise.
5343 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5344 MASK_RETURN_ADDDR): Likewise.
5345
5346 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
5347
5348 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5349 into branch.
5350
5351 * arm.md (eh_epilogue): New function.
5352 * arm.h (struct machine_function): Move to here ...
5353 * arm.c: ... from here.
5354 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5355 (thumb_exit): Extra parameter eh_ofs. All callers changed.
5356 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
5357
5358 2000-03-30 Nick Clifton <nickc@cygnus.com>
5359
5360 * config/arm/semi.h (ASM_SPEC): Restore definition.
5361 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5362
5363 * config/arm/elf.h (ASM_SPEC): Restore definition.
5364 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5365
5366 * config/arm/arm.h (ASM_SPEC): Remove definition.
5367 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5368
5369 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
5370
5371 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5372
5373 2000-03-24 Nick Clifton <nickc@cygnus.com>
5374
5375 Various formating tidyups, elimination of compile time
5376 warnings and synchronisation with internal sources:
5377
5378 * config/arm/arm-protos.h (assemble_align): Add prototype.
5379 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5380 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5381 (arm_return_addr_rtx): Rename to arm_return_addr.
5382
5383 * config/arm/arm.c: Include except.h.
5384 Define shorter typenames for strict minipool_node and struct
5385 minipool_fix.
5386 (arm_return_in_memory): For WinCE return all structures <= 32 bits
5387 in memory.
5388 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5389 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5390
5391 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5392 already defined.
5393 (ASM_SPEC): Define if not already defined.
5394 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5395
5396 * config/arm/arm.md: Rename references to gen_rotated_half_load to
5397 arm_gen_rotated_half_load, and references to gen_comapre_reg to
5398 arm_gen_compare_reg.
5399 (indirect_jump): Only accept register operands.
5400 (load_indirect_jump): Keep this pattern since combine can generate
5401 it.
5402
5403 * config/arm/coff.h: Include aout.h.
5404 (MULTILIB_DEFAULTS): Only define if not already defined.
5405
5406 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5407 into arm.h (so that COFF ports can support thumb based aliases).
5408 (ASM_SPEC): Move definition into arm.h
5409
5410 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5411 redundant apcs spec.
5412 (ASM_SPEC): Move definition to arm.h
5413
5414 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5415
5416 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5417 for entries in the .bss section
5418
5419 2000-03-23 Nick Clifton <nickc@cygnus.com>
5420
5421 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5422 to thumb_far_jump_used_p.
5423
5424 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5425 single integer parameter.
5426
5427 * config/arm/arm.c (struct machine_function): Add two new
5428 fields, 'far_jump_used' and 'arg_pointer_live'.
5429 (thumb_far_jump_used_p): Once the decision has been made that
5430 far jumps might be used, always return true.
5431 If being called from the initial elimination offset macro then
5432 do not bother to perform the test if the arg pointer is not
5433 being used.
5434 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5435 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5436
5437 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
5438
5439 * arm.c (output_return_instruction): Handle more cases where we can
5440 return from a function with an ldr instruction.
5441 (arm_output_epilogue): Likewise.
5442
5443 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5444 if we need to push a large stack frame and there are no callee-saved
5445 registers.
5446
5447 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5448 in ARM code if the frame pointer has been eliminated.
5449
5450 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5451 unspec_volatile arguments to avoid duplicates.
5452 (consttable_1, consttable_2): Fixes for big-endian mode.
5453
5454 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5455 as appropriate.
5456
5457 Re-write constant pool code.
5458 * arm.c (minipool_node, minipool_fix): New types.
5459 (minifix): Delete type.
5460 (arm_add_minipool_constant): Delete.
5461 (arm_compute_minipool_offsets, arm_find_barrier,
5462 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5463 (get_jump_table_size): Now returns HOST_WIDE_INT.
5464 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5465 functions.
5466 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5467 (assign_minipool_offsets, arm_print_value): Likewise.
5468 (dump_minipool): Rewrite.
5469 (arm_barrier_cost): New function.
5470 (create_fix_barrier): New function.
5471 (push_minipool_barrier): New function.
5472 (push_minipool_fix): Record additional information about the fixup
5473 required.
5474 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
5475 check the mode of what needs fixing.
5476 (arm_reorg): Rewrite.
5477
5478 2000-03-08 Nick Clifton <nickc@cygnus.com>
5479
5480 * config/arm/arm.md (indirect_jump): Force constant addresses into
5481 a register.
5482
5483 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
5484
5485 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5486
5487 2000-02-24 Nick Clifton <nickc@cygnus.com>
5488
5489 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5490 adjust is word aligned.
5491 (thumb_expand_epilogue): Make sure that stack adjust is word
5492 aligned.
5493
5494 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5495
5496 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
5497
5498 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5499 pointer relative addresses.
5500
5501 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
5502
5503 * arm.c (find_barrier): Find the last barrier within the allowed
5504 range.
5505
5506 2000-02-09 Nick Clifton <nickc@cygnus.com>
5507
5508 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5509
5510 2000-02-09 Nick Clifton <nickc@cygnus.com>
5511
5512 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5513 ARM_FUNCTION_PROFILER.
5514
5515 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5516 ARM_FUNCTION_PROFILER.
5517
5518 * config/arm/linux-oldld.h: Imported from mainline sources.
5519
5520 2000-02-07 Nick Clifton <nickc@cygnus.com>
5521
5522 * config/arm/lib1funcs.asm: Merge in thumb functions from
5523 lib1thumb.asm.
5524
5525 * config/arm/lib1thumb.asm: Delete.
5526
5527 2000-02-04 Nick Clifton <nickc@cygnus.com>
5528
5529 * config/arm/arm.c: Sychronised with current Red hat local
5530 sources.
5531 * config/arm/arm.h: Ditto.
5532 * config/arm/arm-protos.h: Ditto.
5533
5534 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
5535
5536 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5537
5538 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5539 byte stores.
5540
5541 2000-02-02 Nick Clifton <nickc@cygnus.com>
5542
5543 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5544
5545 * config/arm/arm.md (epilogue): Fix rtl checking abort because
5546 (return) was emited using an emit_insn() call.
5547
5548 2000-01-31 Nick Clifton <nickc@cygnus.com>
5549
5550 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5551 thumb stack frame.
5552 (thumb_exit): Move frame pointer back into hard frame pointer
5553 register if backtracing is being used.
5554
5555 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
5556
5557 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5558 into branch.
5559
5560 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
5561
5562 * config/arm/arm.md (neg_pool_offset): Provide default for new
5563 attribute.
5564 (arm_movsi_insn): Add neg_pool_offset attribute.
5565 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5566 rtx for the insn that starts the scan and an unsigned long for its
5567 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
5568 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
5569 instructions in *PINSERTED.
5570 (struct minipool_fixup): Add MIN_ADDRESS elt.
5571 (sort_fixups): Compute it.
5572 (arm_reorg): Changes to support inserting pools before the insn to be
5573 fixed up.
5574
5575 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
5576
5577 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5578 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5579 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5580
5581 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
5582
5583 * config/arm/semi.h (TARGET_VERSION): Do not define if already
5584 defined.
5585 (TARGET_DEFAULT): Do not define if already defined.
5586
5587 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
5588
5589 * config/arm/arm.md (anddi3): Allow disjoint source operands.
5590 (iordi3): Allow disjoint source operands.
5591 (xordi3): Allow disjoint source operands.
5592 (negdi2): Permit construction for ARM and Thumb.
5593 (arm_negdi2): Renamed version of old negdi2 pattern.
5594 (thumb_negdi2): New pattern: Only permit non-overlapping
5595 source and destination.
5596
5597 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
5598
5599 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5600 scratch low register so that it will not be deleted.
5601
5602 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
5603
5604 * config/arm/pe.h (ARM_PE): Define.
5605
5606 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5607 interfacearm attribute if this is a PE toolchain.
5608 (output_return_instruction): Do not emit anything if the function
5609 has the naked attribute set.
5610 (is_called_in_ARM_mode): If the function has the interfacearm
5611 attribute then return true.
5612 (thumb_expand_prologue): Do not generate a prologue for naked
5613 functions.
5614 (thumb_expand_epilogue): Do not generate an epilogie for a naked
5615 function.
5616 (output_thumb_prologue): Do not bother if the function is naked.
5617 Strip PE encoding from function name before emitting.
5618
5619 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
5620
5621 * arm.md (pic_load_addr): Fix constraints.
5622
5623 * arm.md (casesi_insn): Fix mis-applied patch.
5624
5625 * arm.md ("core" function unit): Add rules for single- and
5626 multi-cycle insns.
5627 (All TARGET_THUMB patterns): Add "type" attribute information
5628 where needed.
5629 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5630 the following insn is a CALL.
5631
5632 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5633 pointer.
5634 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5635 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5636 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5637
5638 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
5639
5640 * config/arm/linux-gas.h: oops - this file was missed out when the
5641 branch was created...
5642
5643 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
5644
5645 * thumb.c: Deleted. Move contents to ...
5646 * arm.c: ... here.
5647 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5648 rule for thumb.o
5649 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5650 * configure: Regen.
5651
5652 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
5653 declare a prototype for asm_output_align();
5654
5655 * arm.c (thumb_condition_code): Delete.
5656 (arm_print_operand): Always use arm_condition_code array.
5657
5658 * arm.c (thumb_return_addr_rtx): Delete.
5659 (arm_save_machine_status, arm_restore_machine_status): Delete.
5660 (arm_init_machine_status, arm_mark_machine_status): New functions.
5661 (arm_init_expanders): Update accordingly.
5662 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
5663 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5664 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5665
5666 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
5667
5668 * configure.in : Fix arm-*-aout target to use new t-arm-aout
5669 script.
5670 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5671 targets.
5672
5673 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
5674
5675 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5676 stack backtrace structure.
5677
5678 * config/arm/arm-protos.h: Add prototypes for functions defined in
5679 arm/pe.h.
5680
5681 * config/arm/arm.c (arm_override_options): Fix selection of
5682 attributes of default processor.
5683
5684 * config/arm/coff.h: Delete needless #include.
5685
5686 * config/arm/pe.c: Delete unused code.
5687
5688 * config/arm/pe.h (CPP_DEFINES): Delete
5689 (SUBTARGET_CPP_SPEC): Define.
5690 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5691
5692 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5693
5694 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
5695
5696 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5697 updated.
5698 (CAN_DEBUG_WITHOUT_FP): Define.
5699 (FIXED_REGISTERS): Make r11 call-saved.
5700 (CALL_USED_REGISTERS): Likewise.
5701 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5702 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5703 frame-pointer is required.
5704 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5705 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5706 if the target normally needs a stack frame in non-leaf functions.
5707 (use_return_insn): Correct logic for determining when a return
5708 instruction can be used.
5709 (output_return_instruction): Handle the frame-pointer register as
5710 a normal register when not TARGET_APCS_FRAME.
5711 (arm_output_prologue): Likewise.
5712 (arm_output_epilogue): Likewise.
5713 (output_func_epilogue): Likewise.
5714 (arm_expand_prologue): Likewise.
5715 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5716
5717 * arm.c (use_return_insn): No need to check floating point regs if
5718 TARGET_SOFT_FLOAT.
5719 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5720 the code of value stored in the minipool array.
5721 (arm_add_minipool_constant): Likewise.
5722
5723 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5724
5725 * basic-block.h (conflict_graph_enum_fn): K&R fix.
5726
5727 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5728
5729 * tree.c (tree_expr_nonnegative_p): New function.
5730
5731 * tree.h (tree_expr_nonnegative_p): Declare.
5732
5733 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5734 elide some sign_compare warnings.
5735 (build_conditional_expr): Likewise.
5736
5737 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
5738
5739 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5740
5741 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5742 * i386.c (print_operand): Use the proper suffix for a 387 HImode
5743 operand. Abort if a 387 operand has an unsupported size.
5744
5745 2000-04-08 Neil Booth <NeilB@earthling.net>
5746
5747 * cppexp.c (parse_charconst): Null does not end character
5748 constants.
5749 * cppinit.c (ISTABLE): Null character handled as whitespace.
5750 * cpplex.c (null_warning): new function.
5751 (skip_string): Emit warning if nulls encountered.
5752 (_cpp_skip_hspace): Emit warning if nulls encountered.
5753 (_cpp_lex_token): Emit warning if nulls encountered. Drop
5754 them.
5755 * cpp.texi: Update.
5756
5757 2000-04-07 Richard Henderson <rth@cygnus.com>
5758
5759 * flow.c (loop_depth): Remove.
5760 (reg_next_use, cc0_live, mem_set_list): Replace with ...
5761 (struct propagate_block_info): New.
5762 (life_analysis): Don't allocate reg_next_use.
5763 (propagate_block_delete_insn): Break out of propagate_block.
5764 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5765 (propagate_block_delete_libcall): Likewise.
5766 (propagate_block): Create a propagate_block_info struct to pass
5767 to subroutines. Allocate one not two temporary regsets. Don't
5768 clobber memory for const calls. Look for clobbers in
5769 CALL_INSN_FUNCTION_USAGE.
5770 (mark_set_regs): Recognize COND_EXEC.
5771 (mark_set_reg): Break out of mark_set_1.
5772 (mark_used_reg): Break out of mark_used_regs.
5773 (mark_used_regs): Recognize COND_EXEC.
5774 (insn_dead_p): Use propagate_block_info struct.
5775 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5776 (find_auto_inc, try_pre_increment_1): Likewise.
5777 (print_rtl_with_bb): Dump regs live at end too.
5778 (count_reg_sets_1): Pass in loop_depth.
5779 (count_reg_sets, count_reg_references): Likewise.
5780 (recompute_reg_usage): Provide it.
5781
5782 2000-04-07 Richard Henderson <rth@cygnus.com>
5783
5784 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5785 not the raw files.
5786
5787 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
5788
5789 * cpplib.c (do_elif): Skip the rest of the line if we're
5790 not going to bother evaluating it.
5791 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
5792 to avoid pointless calls to the lexer.
5793
5794 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
5795
5796 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5797
5798 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
5799
5800 * calls.c (expand_call): emit_queue if we're trying a sibcall.
5801
5802 2000-04-07 Jakub Jelinek <jakub@redhat.com>
5803
5804 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5805
5806 2000-04-06 Geoff Keating <geoffk@cygnus.com>
5807
5808 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5809 crtend so they can be multilibbed.
5810 (STAGESTUFF): Remove s-crt and s-crtS.
5811
5812 2000-04-07 Richard Henderson <rth@cygnus.com>
5813
5814 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5815 if we discover we need a pseudo and no_new_pseudos is true.
5816 * config/alpha/alpha.md (ne:DI insn): New.
5817 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5818
5819 2000-04-07 Richard Henderson <rth@cygnus.com>
5820
5821 * rtl.def (COND_EXEC): New.
5822 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5823 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5824
5825 * genconfig.c (have_cond_arith_flag): Remove.
5826 (have_cond_exec_flag): New.
5827 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5828 (main): Print HAVE_conditional_execution.
5829
5830 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5831 (sched_analyze_insn, print_pattern): Likewise.
5832 * reload.c (find_equiv_reg): Likewise.
5833 * rtlanal.c (reg_referenced_p): Likewise.
5834 (note_stores, dead_or_set_regno_p): Likewise.
5835 (reg_overlap_mentioned_p): Rewrite to use a switch.
5836
5837 * ggc.h (struct rtx_def): Forward declare.
5838
5839 * print-rtl.c (debug_rtx_range): New.
5840 * rtl.h (debug_rtx_range): Declare.
5841
5842 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
5843
5844 * gcse.c (gcse_main): Don't rebuild the CFG here.
5845 (delete_null_pointer_checks): Likewise.
5846 * ssa.c (convert_to_ssa): Likewise.
5847 * toplev.c (rest_of_compilation): Do it here instead. Combine
5848 sequential calls to TIMEVAR. Consistently use `insns' instead of
5849 `get_insns()'. Always split insns after reload when optimizing.
5850
5851 * basic-block.h (merge_blocks_nomove): Declare.
5852 (tidy_fallthru_edge): Declare.
5853 * flow.c (merge_blocks_nomove): Document as merging into previous
5854 blocks. Remove cruft from between blocks; remove all edges out of A.
5855 (tidy_fallthru_edge): Export.
5856
5857 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5858
5859 * ssa.c (compute_conservative_reg_partition): Declare with
5860 void arguments.
5861 * toplev.c (clean_dump_file): Remove previously-deleted function
5862 inadvertantly merged back in.
5863 * conflict.c (conflict_graph_add): Use a single call to
5864 htab_find_slot to look up and insert.
5865
5866 2000-04-06 Richard Henderson <rth@cygnus.com>
5867
5868 * genrecog.c (*): Rename _last_insn to last_insn.
5869 (make_insn_sequence): Set the position of the peephole2 C test
5870 to be at the last insn.
5871
5872 2000-04-06 Richard Henderson <rth@cygnus.com>
5873
5874 * flow.c (compute_flow_dominators): Free worklist.
5875
5876 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
5877
5878 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
5879
5880 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5881
5882 * rtl.h (INSN_P): New macro.
5883 (successor_phi_fn): New typedef.
5884 (for_each_successor_phi): New prototype.
5885 (in_ssa_form): New variable.
5886 (PHI_NODE_P): Likewise.
5887 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
5888 phi nodes in successors.
5889 (mark_used_regs): Add PHI case.
5890 (set_phi_alternative_reg): New function.
5891 (life_analysis): Assert that dead code elimination is not selected
5892 when in SSA form.
5893 * toplev.c (to_ssa_time): New variable.
5894 (from_ssa_time): Likewise.
5895 (compile_file): Zero to_ssa_time and from_ssa_time.
5896 Print time to convert to and from SSA.
5897 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
5898 (print_time): Compute percent fraction as integer.
5899 * ssa.c (PHI_NODE_P): Moved to rtl.h.
5900 (convert_to_ssa): Check if we're already in SSA.
5901 Don't eliminate dead code in life_analysis.
5902 Rerun flow and life analysis at bottom.
5903 (eliminate_phi): Use canonical regnos when adding nodes.
5904 (mark_reg_in_phi): New function.
5905 (mark_phi_and_copy_regs): Likewise.
5906 (convert_from_ssa): Rerun life analysis at top.
5907 Use coalesced partition.
5908 Check for removing a phi node at the end of the block.
5909 (compute_coalesced_reg_partition): New function.
5910 (coalesce_regs_in_copies): Likewise.
5911 (coalesce_reg_in_phi): Likewise.
5912 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
5913 (for_each_successor_phi): Likewise.
5914 (rename_context): New struct.
5915 (rename_block): Use a rename_context with rename_insn_1. When
5916 renaming sets of a subreg, emit a copy of the entire reg first.
5917 (rename_insn_1): Treat data as a rename_context *. Save current
5918 insn in set_data.
5919 (rename_set_data): Add field set_insn.
5920 * Makefile.in (HASHTAB_H): Move up in file.
5921 (OBSTACK_H): New macro.
5922 (collect2.o): Use OBSTACK_H in dependencies.
5923 (sdbout.o): Likewise.
5924 (emit-rtl.o): Likewise.
5925 (simplify-rtx.o): Likewise.
5926 (fix-header.o): Likewise.
5927 (OBJS): Add conflict.o.
5928 (conflict.o): New rule.
5929 * basic-block.h: Include partition.h.
5930 (conflict_graph): New typedef.
5931 (conflict_graph_enum_fn): Likewise.
5932 (conflict_graph_new): New prototype.
5933 (conflict_graph_delete): Likewise.
5934 (conflict_graph_add): Likewise.
5935 (conflict_graph_conflict_p): Likewise.
5936 (conflict_graph_enum): Likewise.
5937 (conflict_graph_merge_regs): Likewise.
5938 (conflict_graph_print): Likewise.
5939 (conflict_graph_compute): Likewise.
5940 * conflict.c: New file.
5941
5942 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
5943
5944 * tlink.c (read_repo_files): Don't look for .rpo info for
5945 linker flags.
5946
5947 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5948
5949 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
5950
5951 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5952
5953 * config/sh/lib1funcs.asm (___udivsi3_i4):
5954 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
5955 only depends on FMOVD_WORKS.
5956
5957 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5958
5959 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
5960 make double constant 8-byte aligned.
5961
5962 2000-04-06 Jakub Jelinek <jakub@redhat.com>
5963
5964 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
5965 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
5966 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
5967 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
5968 Accept storing GENERAL_REGS into offsetable memory.
5969 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
5970 building a TFmode constant other than 0.0L into GENERAL_REGS.
5971
5972 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
5973
5974 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
5975
5976 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
5977
5978 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
5979 (macro_cleanup): No need to cast pbuf->macro.
5980 (collect_expansion): Use _cpp_get_define_token. Goto done if
5981 it returns VSPACE. Remove check for trailing space after
5982 CPP_COMMENT.
5983 (_cpp_create_definition): Don't diddle flags here. Return
5984 directly on error.
5985 (unsafe_chars): Handle c1 being EOF.
5986 (push_macro_expansion): Use unsafe_chars for both accidental-paste
5987 checks. Don't push the buffer till after we're done with
5988 them.
5989 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
5990 (PEEKN, FORWARD, GETC, PEEKC): Use them.
5991 (cpp_push_buffer): Don't set new->alimit. Set new->mark
5992 appropriately.
5993 (_cpp_parse_assertion): Don't NUL terminate.
5994 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
5995 hspace before calling _cpp_parse_assertion. Remove all sets
5996 of only_seen_white. Treat '\f' as hspace. Don't do anything
5997 special with '\n' here.
5998 (maybe_macroexpand): Handle T_EMPTY hash entries without
5999 pushing a buffer at all.
6000 (cpp_get_token): Handle clearing only_seen_white here. Handle
6001 incrementing the line number here. Clear
6002 potential_control_macro as well as only_seen_white, if
6003 appropriate.
6004 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
6005 (_cpp_get_define_token): New function, basically like
6006 _cpp_get_directive_token was but doesn't eat horizontal space.
6007 Don't do anything with only_seen_white here.
6008 (_cpp_get_directive_token): Just call _cpp_get_define_token
6009 repeatedly till it returns non-hspace.
6010
6011 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
6012 (conditional_skip, skip_if_group): Return int.
6013 (DIRECTIVE_TABLE): Change origin of all conditional directives
6014 to "COND".
6015 (TRAD_DIRECT_P): New macro.
6016 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
6017 an error for a bogus directive, unless -lang-asm. Use
6018 TRAD_DIRECT_P. Loop calling handler functions till one returns
6019 zero.
6020 (get_macro_name): Don't diddle flags here.
6021 (do_define): Diddle flags here. Use _cpp_get_directive_token.
6022 Create T_EMPTY nodes for #define macro /* nothing */.
6023 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
6024 Use hp->name when calling pass_thru_directive.
6025 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
6026 Return the result of conditional_skip and/or skip_if_group.
6027 Don't call _cpp_output_line_command.
6028 (consider_directive_while_skipping): Use _cpp_get_directive_token.
6029 Issue -Wtraditional warnings as appropriate. Don't complain
6030 about unrecognized directives. If we are to stop skipping,
6031 return the number of the directive that ended the skip.
6032 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
6033 expansion and line commands while skipping. Return the result
6034 of consider_directive_while_skipping, if nonzero.
6035 (do_endif): Just set potential_control_macro here.
6036 (validate_else): Use _cpp_get_directive_token.
6037 (do_assert, do_unassert): Don't save pointers into the
6038 token_buffer across calls to the lexer. Use
6039 _cpp_get_directive_token.
6040
6041 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
6042 pointer, not an offset. Replace 'data', which was a generic
6043 pointer, with 'macro', which points to a struct hashnode.
6044 (cpp_reader): Add 'potential_control_macro' pointer.
6045 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
6046 (CPP_BUF_GET, CPP_FORWARD): Delete.
6047 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
6048 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
6049 ACTIVE_MARK_P): Update.
6050 (_cpp_get_define_token): New internal function.
6051 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
6052
6053 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
6054
6055 * configure.in: And here.
6056 * configure: Regenerate.
6057 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
6058 --enable-libstdcxx-v3 is passed at configure time.
6059 * config.h.in: Regenerate.
6060
6061 2000-04-05 Mark Mitchell <mark@codesourcery.com>
6062
6063 * final.c (final): Use xcalloc to allocate line_note_exists.
6064 * function.c (free_after_compilation): Free the temp_slots.
6065 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
6066 (combine_temp_slot): Free temp_slots when they get combined.
6067 (purge_addressof): Fix typo in comment.
6068 * stmt.c (mark_goto_fixup): Mark the fixup itself.
6069 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
6070
6071 * ggc.h: Include varray.h.
6072 (ggc_pending_trees): Declare.
6073 (ggc_mark_tree_children): Remove declaration.
6074 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
6075 * ggc-common.c (ggc_pending_trees): New variable.
6076 (ggc_mark_roots): Call ggc_mark_trees.
6077 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
6078 the ggc_pending_trees.
6079 * Makefile.in (GGC_H): New variable. Use it throughout in place
6080 of ggc.h.
6081
6082 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6083
6084 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
6085 GET_MODE_SIZE.
6086
6087 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6088
6089 * sh.c (sh_insn_length_adjustment): New function.
6090 * sh-protos.h (sh_insn_length_adjustment): Declare.
6091 * sh.h (ADJUST_INSN_LENGTH): Use it.
6092
6093 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
6094
6095 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
6096 from the insn where REG_RETVAL is added.
6097 (emit_no_conflict_block): Ditto.
6098
6099 * md.texi (Standard Names): Clarify when movX is needed.
6100
6101 * combine.c (simplify_comparison) [MINUS]: Do not replace
6102 all (op (minus A B) 0) with (op A B).
6103
6104 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
6105 J"orn Rennecke <amylaar@cygnus.co.uk>
6106
6107 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
6108 (block_lump_real): Likewise.
6109
6110 2000-04-05 Chris Demetriou <cgd@netbsd.org>
6111
6112 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
6113 remaining non-zero debugging masks.
6114
6115 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
6116
6117 * basic-block.h (verify_flow_info): Declare.
6118 (flow_loop_outside_edge_p): Declare.
6119 * flow.c (verify_flow_info): Remove declaration.
6120 (clear_log_links, flow_loop_outside_edge_p): Likewise.
6121
6122 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
6123
6124 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
6125 not C++ comments.
6126
6127 2000-04-05 Jakub Jelinek <jakub@redhat.com>
6128
6129 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
6130 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
6131 seqdi_zero_trunc+1): Allow splits only if registers are
6132 different.
6133
6134 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
6135
6136 * acconfig.h: Add HAVE_GAS_HIDDEN.
6137 * config.in: Regenerated.
6138 * configure.in: Add test for .hidden pseudo-op in gas.
6139 * configure: Regenerated.
6140 * crtstuff.c: Include auto-host.h.
6141 Emit additional .hidden pseudo-op for __dso_handle if the
6142 assembler knows about it.
6143
6144 2000-04-04 Philippe De Muyter <phdm@macqel.be>
6145
6146 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
6147 before freeing argnames.
6148 * cpplib.c (do_ifndef): Cast return value of xstrdup.
6149
6150 2000-04-05 Michael Meissner <meissner@redhat.com>
6151
6152 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
6153 Walton <jonboy@gordian.com> to make memory references with update
6154 work wtih -mregnames.
6155
6156 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6157
6158 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
6159 (regrename_optimize): Rename variables `def_uses' and
6160 `ext_basic_blocks' to avoid conflicts with similarly named
6161 typedefs in traditional C.
6162
6163 * calls.c (initialize_argument_information): Fix typo in previous
6164 change.
6165
6166 2000-04-04 Richard Henderson <rth@cygnus.com>
6167
6168 * regrename.c (consider_available): Test fixed_regs not
6169 PIC_OFFSET_TABLE_REGNUM.
6170
6171 2000-04-04 Geoff Keating <geoffk@cygnus.com>
6172
6173 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
6174 crtend.
6175 (CRTSTUFF_T_CFLAGS_S): Delete definition.
6176 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
6177 (ENDFILE_LINUX_SPEC): Always use crtend.
6178 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
6179 (powerpc-*-linux-gnu): Likewise.
6180 * configure: Regenerate.
6181
6182 * config/rs6000/eabi.h: Don't include sysv4.h.
6183 (MULTILIB_DEFAULTS): Don't define.
6184 * config/rs6000/eabiaix.h: Don't include eabi.h.
6185 * config/rs6000/eabile.h: Delete.
6186 * config/rs6000/eabilesim.h: Delete.
6187 * config/rs6000/eabisim.h: Don't include eabi.h.
6188 * config/rs6000/linux.h: Don't include sysv4.h.
6189 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
6190 (MULTILIB_DEFAULTS): Don't redefine.
6191 * config/rs6000/rtems.h: Don't include eabi.h.
6192 * config/rs6000/sol2.h: Don't include sysv4le.h.
6193 * config/rs6000/sysv4le.h: Don't include sysv4.h.
6194 * config/rs6000/t-ppc: Delete.
6195 * config/rs6000/t-ppcgas: Correct comment.
6196 * config/rs6000/t-ppcos: Correct comment. Don't build
6197 multilibs for -fPIC, rather use -fPIC -mstrict-align
6198 as default.
6199 * config/rs6000/t-ppc: Delete.
6200 * config/rs6000/vxppc.h: Don't include sysv4.h.
6201 * config/rs6000/vxppcle.h: Delete.
6202 * configure.in: Use multiple header files for p2pc ELF targets
6203 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
6204 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
6205 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
6206 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
6207 always available for these platforms.
6208
6209 2000-04-04 Richard Henderson <rth@cygnus.com>
6210
6211 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
6212
6213 2000-04-04 Stan Cox <scox@cygnus.com>
6214
6215 * Makefile.in: Add rules for regrename.o
6216 * regrename.c: New file.
6217 * rtl.h (regrename_optimize): Add prototype.
6218 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
6219 (compile_file, decode_d_option): Add support for -frename-registers.
6220 (rest_of_compilation): Call regrename_optimize.
6221 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
6222 New macros.
6223
6224 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6225
6226 * Makefile (gccbug): New target.
6227 (doc): Depend on it.
6228 * gcc.texi (Bugs): Link subnodes.
6229 (gccbug): New node.
6230 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
6231 Document severities, priorities, and classes in bug form.
6232
6233 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
6234
6235 * cpplex.c (trigraph_map, speccase): Combine into single
6236 table, chartab.
6237 (NORMAL, NONTRI): New macros.
6238 (_cpp_read_and_prescan): Change to use unified table. Use
6239 is_hspace to test for whitespace.
6240
6241 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
6242 definition that doesn't provoke the "empty body in an
6243 if-statement" warning.
6244
6245 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
6246
6247 * builtins.c (expand_builtin_strlen): Force the source to
6248 be a memory address.
6249
6250 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
6253
6254 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
6255
6256 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
6257 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
6258 (ECF_IS_CONST): Rename to ECF_CONST.
6259 (special_function_p): Make static, change interface.
6260 (flags_from_decl_or_type, try_to_integrate): Break out from ...
6261 (expand_call) ... here; convert number of variables to flags.
6262 (emit_library_call_vlue_1): Likewise.
6263 (setjmp_call_p): New function.
6264 (initialize_argument_information): Accepts flags as argument;
6265 return flags.
6266 (precompute_arguments): Likewise.
6267 * tree.h (special_function_p): Remove.
6268 (setjmp_call_p): Add prototype.
6269
6270 2000-04-04 Jakub Jelinek <jakub@redhat.com>
6271
6272 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
6273 so that addresses are offsetable by up to 16 bytes.
6274 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
6275 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
6276 offsetable.
6277
6278 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
6279 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
6280 (movsf): Don't force any constant to memory if target is integer
6281 hard register.
6282 Move fp_zero_operand check below the const0_rtx check.
6283 (movtf): Likewise. Also allow fp_zero_operand for stores into
6284 memory.
6285 (movdf): Likewise. Also allow fp_zero_operand for stores into
6286 memory and into integer hard registers.
6287 (clear_df, clear_dfp, movdf_const_intreg_sp32,
6288 movdf_const_intreg_sp64): Remove.
6289 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
6290 conditions.
6291 (movdf_no_e_insn_v9_sp32): New pattern.
6292 (movdf_insn_v9only): Remove.
6293 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
6294 (movdf_insn_sp64): Remove.
6295 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
6296 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
6297 (following splits): Rewrite conditions. Add two new splits
6298 for storing 0.0 into memory and registers.
6299 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
6300 (movtf_insn_sp32): Redo constraints and conditions.
6301 (movtf_insn_vis_sp32): New pattern.
6302 (movtf_no_e_insn_sp32): Redo constraints and conditions.
6303 (movtf_insn_hq_sp64): Likewise.
6304 (movtf_insn_hq_vis_sp64): New pattern.
6305 (movtf_insn_sp64): Redo constraints and conditions.
6306 (movtf_insn_vis_sp64): New pattern.
6307 (movtf_no_e_insn_sp64): Redo constraints and conditions.
6308 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
6309 or memory.
6310 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
6311 -mvis or -m64 to take down the number of various reload patterns.
6312
6313 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
6314
6315 * pa/pa-64.h: New file.
6316 * pa/pa64-regs.h: New file.
6317 * pa/pa64-start.h: New file.
6318 * pa/t-pa64: New file.
6319 * pa/xm-pa64hpux.h: New file.
6320
6321 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6322
6323 * sparc.c (output_restore_regs): Prototype.
6324 (sparc_emit_float_lib_cmp): Constification.
6325
6326 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
6327
6328 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
6329 Prototype.
6330
6331 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
6332 (get_value_hash, hash_rtx): Likewise.
6333
6334 * ssa.c (compute_conservative_reg_partition): Prototype.
6335
6336 * tree.c (mark_hash_entry): Prototype.
6337
6338 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
6339
6340 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6341 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6342 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6343
6344 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6345 * objc/lang-specs.h: Likewise.
6346
6347 2000-04-03 Neil Booth <NeilB@earthling.net>
6348
6349 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
6350 and SYNTAX_ERROR2. Replace `' in messages with ''.
6351 (op_to_str): Make re-entrant.
6352 (_cpp_parse_expr): Implement new error macros. Use | rather
6353 than || to logically or 2 boolean integers. Simply expression
6354 checking we have a left operand iff needed.
6355
6356 2000-04-03 Nick Clifton <nickc@cygnus.com>
6357
6358 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6359
6360 2000-04-03 Philip Blundell <philb@gnu.org>
6361
6362 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6363
6364 2000-04-03 Felix Lee <flee@cygnus.com>
6365
6366 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
6367 (run_shell): Use it.
6368
6369 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
6370
6371 * Makefile.in (stmp-int-hdrs): Make include subdir here...
6372 (stmp-fixproto): ...rather than here.
6373
6374 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
6375
6376 * pa.c (print_operand): Compute 'base' only inside the code paths
6377 that use it.
6378
6379 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
6380
6381 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6382 CEIL_DIV_EXPR.
6383
6384 2000-04-03 Philipp Thomas <pthomas@suse.de>
6385
6386 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6387
6388 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
6389
6390 * Makefile.in (alias.o): Depend on $(TREE_H).
6391
6392 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
6393
6394 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6395 processing C++.
6396 * cpplib.c (_cpp_handle_directive): Improve warnings for
6397 traditional C and indented directives.
6398
6399 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6400 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6401 fixinc/inclhack.def: Indent the # of #include_next one space.
6402 * cp/rtti.c: Un-indent #if and #endif.
6403
6404 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6405 syntax error, but an error has already been printed.
6406 * cpplex.c (_cpp_parse_assertion): Give a more specific error
6407 message when called with nothing remaining on the line.
6408 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6409 OTHER token, not an ASSERTION.
6410 * cpplib.c (do_assert): When we create a 'base' node, clear
6411 its aschain pointer.
6412
6413 2000-04-02 Neil Booth <NeilB@earthling.net>
6414
6415 * cppexp.c: New typedef op_t. struct operation and struct
6416 token updated to use it.
6417 (op_to_str): New function.
6418 (_cpp_parse_expr): Error messages modified to use op_to_str.
6419
6420 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6421
6422 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6423 before checking MUST_PASS_IN_STACK.
6424
6425 2000-04-02 Neil Booth <NeilB@earthling.net>
6426
6427 * cppexp.c: New FINISHED dummy token. Combine operator initial
6428 flags and initial priority into a single constant. New
6429 EQUALITY macro. New operator flag SHORT_CIRCUIT.
6430 (_parse_cpp_expr): Implement new constants. Take left operand
6431 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
6432 parse indicated by reducing FINISHED token. Remove new lines
6433 from cpp_error messages.
6434
6435 2000-04-01 Mark Mitchell <mark@codesourcery.com>
6436
6437 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6438 permanent obstack.
6439
6440 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
6441
6442 * cpplib.c: Include symcat.h. Add 'origin' field to struct
6443 directive. Add origin values to DIRECTIVE_TABLE. Generate
6444 the strings and function names on the fly. Take the #sccs
6445 entry out of the table if SCCS_DIRECTIVE is not defined.
6446 (_cpp_handle_directive): Decide if the # was at the beginning
6447 of the line here. Issue -pedantic warnings for extended
6448 directives here. Warn about K+R directives with the #
6449 indented, and C89/extended directives with the # not indented,
6450 here.
6451 (do_import, do_include_next, do_warning, do_ident, do_sccs,
6452 do_assert, do_unassert): Don't issue pedantic warning here.
6453
6454 * cpphash.h: Add CPP_WTRADITIONAL macro.
6455 * cpplib.h (struct cpp_options): Rename warn_stringify to
6456 warn_traditional; update comments.
6457 * cppinit.c (handle_option): Set warn_traditional not
6458 warn_stringify.
6459 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6460 CPP_WTRADITIONAL (pfile).
6461 * cpplex.c (_cpp_lex_token): Don't decide if directives should
6462 be ignored in -traditional mode here.
6463
6464 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6465 to initialize speccase[] and trigraph_map[]. Delete all
6466 references to pfile->input_speccase. Always treat '?' as a
6467 special character. Remove table-initialization code from
6468 _cpp_init_input_buffer.
6469
6470 * cpplib.h (struct cpp_reader): Remove input_speccase field.
6471 * cppinit.c (cpp_cleanup): Don't free input_speccase.
6472
6473 2000-04-01 Richard Henderson <rth@cygnus.com>
6474
6475 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6476 (mostlyclean): Likewise.
6477
6478 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6479 (struct dump_file_info, enum dump_file_index, dump_file): New.
6480 (open_dump_file): Take a dump_file_index not a suffix, and a decl
6481 not a string. Clean out file if we havn't yet done so. Do nothing
6482 if the dump isn't enabled.
6483 (close_dump_file): Do nothing if the dump isn't open. Dump
6484 graph data if requested.
6485 (dump_rtl, clean_dump_file): Remove.
6486 (compile_file): Don't clean the dump files. Only finalize .bp dump
6487 if flag_test_coverage or flag_branch_probabilities. Only finalize
6488 .combine dump if optimizing. Iterate over dump_file to finalize the
6489 graph dumps.
6490 (rest_of_compilation): Update for open_dump_file/close_dump_file.
6491 Convert all uses of dump_rtl.
6492 (decode_d_option): Iterate over dump_file to implement 'a' and to
6493 locate pass-specific dumps.
6494
6495 2000-04-01 Neil Booth <NeilB@earthling.net>
6496
6497 * cppexp.c: Redefine priority constants.
6498 (_cpp_parse_expr): Replace left and right priority scheme with
6499 single priority logic. Move LOGICAL to same place as COMPARE.
6500 Remove bogus check for multiple unary +/- operators.
6501
6502 2000-04-01 Neil Booth <NeilB@earthling.net>
6503
6504 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6505 within the switch statement. Binary operations break out of
6506 the switch naturally. '(' tokens handled by forcing
6507 immediate shift. ')' handled by forcing immediate reduce to
6508 the previous '('. New error messages.
6509
6510 2000-03-31 Geoff Keating <geoffk@cygnus.com>
6511
6512 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6513 part', it's already in use. Use %K instead. Add a return at the
6514 end of what is now %K.
6515 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6516
6517 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
6518
6519 * builtins.c (expand_builtin_apply): Pass proper parameters to
6520 allocate_dynamic_stack_space.
6521 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
6522 update stack_pointer_delta; do not update arg_size_so_far.
6523 (compute_argument_block_size): Use stack_delta instead of
6524 stack_pointer_pending and arg_size_so_far.
6525 (expand_call): Add sanity checking for stack_pointer_delta;
6526 save and restore stack_pointer_delta for SIB, use
6527 stack_pointer_delta for alignment; do not update arg_space_so_far.
6528 (emit_library_call_value): Use stack_pointer_delta for alignment.
6529 (store_one_arg): Do not update arg_space_so_far.
6530 * explow.c (adjust_stack, anti_adjust_stack): Update
6531 stack_pointer_delta.
6532 (allocate_dynamic_stack_space): Add sanity checking for
6533 stack_pointer_delta.
6534 * expr.c (init_expr, clear_pending_stack_adjust): Clear
6535 stack_pointer_delta.
6536 (emit_push_insn): Update stack_pointer_delta.
6537 * function.h (struct expr_status): Add x_stack_pointer_delta;
6538 remove x_arg_space_so_far.
6539 (arg_space_so_far): Remove.
6540 (stack_pointer_delta): New macro.
6541
6542 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
6543
6544 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6545 Reorder struct cpp_options and struct cpp_reader for better
6546 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
6547 takes two args. Change all 'char' flags to 'unsigned char'.
6548 Move show_column flag into struct cpp_options. Don't
6549 prototype cpp_options_init.
6550 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6551 cppinit.c, cpplex.c, cpplib.c:
6552 Replace CPP_OPTIONS (pfile)->whatever with
6553 CPP_OPTION (pfile, whatever), and likewise for
6554 opts = CPP_OPTIONS (pfile); ... opts->whatever;
6555
6556 * cppinit.c (merge_include_chains): Take a cpp_reader *.
6557 Extract CPP_OPTION (pfile, pending) and work with that
6558 directly.
6559 (cpp_options_init): Delete.
6560 (cpp_reader_init): Turn on on-by-default options here.
6561 Allocate the pending structure here.
6562 (cl_options, enum opt_code): Define these from the same table,
6563 kept in a large macro. Add -fshow-column and -fno-show-column
6564 options.
6565
6566 * cpperror.c (v_message): If show_column is off, don't print
6567 the column number.
6568
6569 * cppmain.c: Update for new interface.
6570 * fix-header.c: Likewise.
6571
6572 2000-03-30 Geoff Keating <geoffk@cygnus.com>
6573
6574 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6575 definition.
6576 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6577 are passed to any invocation of AR_FOR_TARGET.
6578 (AR_CREATE_FOR_TARGET): New macro.
6579 (AR_EXTRACT_FOR_TARGET): New macro.
6580 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6581 AR_EXTRACT_FOR_TARGET.
6582 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6583 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6584 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
6585 AR_EXTRACT_FOR_TARGET to sub-makes.
6586
6587 2000-03-31 Neil Booth <NeilB@earthling.net>
6588
6589 * cppexp.c: Delete SKIP_OPERAND. Correct priority
6590 PAREN_INNER_PRIO.
6591 (_cpp_parse_expr): Check for multiple unary +/- operators.
6592 Correct priorities of ':' and '?'. Treat ')' as having a
6593 value. Ensure conditional expression is not void.
6594
6595 2000-03-31 Mark Mitchell <mark@codesourcery.com>
6596
6597 * alias.c (canon_rtx): Make it global.
6598 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6599 equality.
6600 * cse.c (struct table_elt): Add canon_exp.
6601 (insert): Clear it.
6602 (invalidate): Canonicalize expressions only once.
6603 * rtl.h (canon_rtx): Declare.
6604
6605 2000-03-30 Mark Mitchell <mark@codesourcery.com>
6606
6607 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6608 * alias.c (reg_known_value): Add comments.
6609 (init_alias_analysis): Likewise.
6610 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6611 address.
6612 (cse_basic_block): Fix typo in comment.
6613 * emit-rtl.c: Include hashtab.h.
6614 (const_int_htab): New variable.
6615 (const_int_htab_hash): New function.
6616 (const_int_htab_eq): Likewise.
6617 (rtx_htab_mark_1): Likewise.
6618 (rtx_htab_mark): Likewise.
6619 (gen_rtx_CONST_INT): Cache all CONST_INTs.
6620 (unshare_all_rtx): Fix formatting.
6621 (init_emit_once): Initialize const_int_htab.
6622 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6623 address.
6624 * rtl.texi: Document the fact that all CONST_INTs with the same
6625 value are shared.
6626
6627 2000-03-30 Richard Henderson <rth@cygnus.com>
6628
6629 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6630
6631 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
6632
6633 * configure.in: Comment out --enable-c-cpplib stanza.
6634 * configure: Regenerate.
6635
6636 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6637
6638 * expr.c (store_constructor): Properly compute displacement and
6639 alignment when offset is variable.
6640
6641 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6642 cases of alignment in bytes.
6643
6644 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
6645
6646 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6647 since it is used to generate c-parse.y.
6648 * objc-parse.c, objc-parse.y: Regenerated.
6649
6650 * function.c (expand_function_end): Pass alignment argument to
6651 emit_block_move in bits, not bytes.
6652
6653 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6654
6655 * expr.c (move_by_pieces_ninsns): Fix one more missing align
6656 correction.
6657
6658 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6659
6660 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6661 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6662 * function.c (assign_parms): Likewise.
6663 * integrate.c (expand_inline_function): Likewise.
6664 * stmt.c (expand_decl): Likewise.
6665 (copy_rtx_and_substitute): Likewise.
6666 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6667 (clear_by_pieces): Fix error in last change.
6668 * emit-rtl.c (init_emit): Set known registers alignment in bits.
6669 * function.h (regno_pointer_align): Now unsigned.
6670 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6671 is in bits.
6672 * config/i386/i386.c (aligned_operand): Likewise.
6673 * config/sparc/sparc.c (mem_min_alignment): Likewise.
6674 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6675 (unaligned_memory_operand): Likewise.
6676 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6677 Also make alignments and sizes unsigned and some whitespace cleanup.
6678 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6679
6680 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6681 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6682 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6683 (expand_builtin_memset): Likewise, but to clear_storage.
6684 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6685 (restore_fixed_argument_area): Likewise.
6686 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6687 (load_register_parameters): Likewise, to emit_group_load.
6688 (expand_call): Likewise, to emit_group_store and emit_block_move.
6689 (emit_library_call_value_1): Likewise, to emit_block_move.
6690 (store_one_arg): Likewise, and to emit_push_insn.
6691 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6692 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6693 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6694 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6695 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6696 (expand_assigment, store_expr, store_constructor_field): Likewise.
6697 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6698 (store_constructor, store_field, get_inner_reference): Likewise.
6699 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6700 (expand_expr, case COMPONENT_REF): Likewise.
6701 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6702 and positions; reindent code.
6703 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6704 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6705 (assign_parms): Likewise to emit_group_store.
6706 * optabs.c (prepare_cmp_insn): Alignment is in bits.
6707 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6708 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6709 (expand_return): Likewise to {extract,store}_bit_field.
6710 * stor-layout.c (get_mode_alignment): Minor cleanup.
6711 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6712 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6713
6714 2000-03-29 Nick Clifton <nickc@cygnus.com>
6715
6716 * config/arm/arm.h: Undo effects of previous delta:
6717 (ASM_SPEC): Do not define.
6718 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6719
6720 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6721 typo.
6722
6723 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6724
6725 * cppinit.c (cpp_start_read): Call initialize_dependency_output
6726 only after reading in the primary source file.
6727
6728 2000-03-29 Geoff Keating <geoffk@cygnus.com>
6729
6730 * c-common.c (c_common_nodes_and_builtins): The first parameter to
6731 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6732 or a reference to a va_list.
6733 * builtins.c (stabilize_va_list): Simplify now we don't have to
6734 work around C array address decay.
6735 * c-typeck.c (convert_for_assignment): Handle assignment to
6736 a reference parameter by taking the address of the RHS.
6737 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6738 (va_copy): Likewise.
6739 (__va_copy): Likewise.
6740 * ginclude/varargs.h (va_start): Likewise.
6741 (__va_copy): Likewise.
6742
6743 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
6744
6745 * i386/djgpp.h: Remove extraneous "+".
6746
6747 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6748
6749 * calls.c (expand_call): Fix typo in last change.
6750
6751 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
6752
6753 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6754 been expanded.
6755
6756 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6757
6758 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6759 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6760 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6761 * tree.c (bit_position, byte_position): Likewise.
6762 * tree.h: Declare new functions.
6763
6764 2000-03-29 Nick Clifton <nickc@cygnus.com>
6765
6766 * config/arm/arm.c: Minor formatting changes/
6767 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6768 already defined.
6769 (ASM_SPEC): Define if not already defined.
6770
6771 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6772
6773 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6774 _cpp_calc_hash.
6775
6776 2000-03-29 Jakub Jelinek <jakub@redhat.com>
6777
6778 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6779 value, don't output it as unsigned.
6780
6781 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
6782
6783 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6784
6785 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6786
6787 * c-common.c (c_common_nodes_and_builtins): Don't special case
6788 cplus_mode when declaring builtin bzero/bcmp, always avoid
6789 prototype arguments.
6790
6791 2000-03-29 Bruce Korb <bkorb@gnu.org>
6792
6793 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6794 to a non-file
6795
6796 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
6797
6798 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6799 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6800 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6801 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6802 (save_fixed_argument_area, restore_fixed_argument_area):
6803 conditionize by #ifdef REG_PARM_STACK_SPACE only.
6804 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6805 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6806 (precompute_register_parameters): Avoid #ifdefs on
6807 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6808 (stire_one_args): Likewise.
6809 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6810 (emit_library_call_value_1): Likewise.
6811 (compute_argument_block_size): Align to STACK_BOUNDARY only for
6812 ACCUMULATE_OUTGOING_ARGS.
6813 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6814 value.
6815 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6816 (use_crosses_set_p): Likewise.
6817 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6818 #define ACCUMULATE_OUTGOING_ARGS 1.
6819 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6820 frames.
6821 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6822 constants.
6823 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6824 (TARGET_SWITCHES): Add push-args, no-push-args,
6825 accumulate-outgoing-args and no-accumulate-outgoing-args.
6826 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6827 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6828 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6829 and PUSH_ROUNDING.
6830 (emit_push_insn): Likewise.
6831 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6832 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6833 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6834 (STACK_DYNAMIC_OFFSET): Define correctly for both
6835 ACCUMULATE_OUTGOING_ARGS and normal mode.
6836 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6837 * tm.texi (PUSH_ARGS): Document.
6838 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6839
6840 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
6841
6842 * flags.h (flag_optimize_sibling_calls): Declare.
6843 * calls.c (expand_call): Fail sibcall when
6844 !flag_optimize_sibling_calls
6845 * invoke.texi (flag_optimize_sibling_calls): Document.
6846 * toplev.c (flag_optimize_sibling_calls): New global variable.
6847 (f_options): Add flag_optimize_sibling_calls.
6848 (rest_of_compilation): Conditionize
6849 optimize_sibling_and_tail_recursive_calls by
6850 flag_optimize_sibling_calls.
6851 (main): Set flag_optimize_sibling_calls for -O2.
6852 * stmt.c (expand_return): Conditionize tail recursion by
6853 flag_optimize_sibling_calls.
6854
6855 2000-03-29 Richard Henderson <rth@cygnus.com>
6856
6857 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
6858 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
6859
6860 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
6861
6862 * except.c (add_eh_table_entry): Mark type_info's as referenced.
6863
6864 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6865
6866 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
6867 is given.
6868 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
6869 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
6870 * config/rs6000/aix.h: then modified likewise.
6871
6872 2000-03-28 Richard Henderson <rth@cygnus.com>
6873
6874 * rtl.h: Redistribute enum reg_note documentation.
6875 Kill trailing whitespace.
6876 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
6877 Kill trailing whitespace.
6878
6879 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
6880
6881 * cppfiles.c (hash_IHASH): Just return i->hash.
6882 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
6883 htab_find_with_hash.
6884 (cpp_read_file): Likewise.
6885 (find_include_file): Likewise. Properly initialize
6886 ih->nshort. Share ih->name and ih->nshort if possible.
6887 * cpphash.c (_cpp_calc_hash): New function.
6888 (hash_HASHNODE): Just return h->hash.
6889 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
6890 htab_find_with_hash.
6891 * cpphash.h: Prototype _cpp_calc_hash.
6892 * cppinit.c (initialize_builtins): Provide a valid hash
6893 to _cpp_make_hashnode, using _cpp_calc_hash.
6894
6895 * cpphash.c (collect_expansion): # is not a special character
6896 in object-like macros. In -traditional mode, /**/ is not
6897 token paste at the beginning or end of the line.
6898 * cpplib.c (do_include, do_import, do_include_next): If
6899 parse_include fails, return immediately.
6900
6901 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
6902
6903 * config/arm/arm.md (return peepholes): Update to reflect the new
6904 call insn patterns.
6905 * config/arm/arm.c (arm_volatile_func): Also check
6906 current_function_nothrow.
6907 (output_return_instruction, output_func_prologue): Use it.
6908 (arm_output_epilogue, arm_expand_prologue): Likewise.
6909
6910 2000-03-27 Tom Tromey <tromey@cygnus.com>
6911
6912 * gcc.c (handle_braces): In {x*...} case, break out of loop if
6913 switch is found.
6914
6915 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6916
6917 * expr.c (store_constructor): SIZE now signed.
6918 For EXPR_SIZE, don't evaluate size; just needed if constant.
6919 * fold-const.c (fold): Fix a number of cases when folded tree is
6920 wrong type.
6921 * function.c (flush_addressof): Reenable.
6922 * tree.h (flush_addressof): Likewise.
6923 * toplev.c (independent_decode_option): Look at strings_processed.
6924 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
6925
6926 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
6927
6928 * sibcall.c (indentify_call_return_value): Find last call in the chain;
6929 Allow stack adjustment after function call.
6930
6931 * regmove.c (struct csa_memlist): Make mem field rtx *.
6932 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
6933 (try_apply_stack_adjustment): Replace whole MEM rtx.
6934 (combine_stack_adjustments_for_block): Update calls
6935 to record_one_stack_ref.
6936
6937 2000-03-28 Neil Booth <NeilB@earthling.net>
6938
6939 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
6940 '\\' rather than a null character, so nulls are not special. Fix
6941 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
6942 speed trigraph conversion.
6943 (_cpp_init_input_buffer): Initialize trigraph map.
6944
6945 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6946
6947 * config/i386/i386.c (output_387_binary_op): Correct intel
6948 mode assembly output, and add spaces after commas in AT&T
6949 output. Correct Unixware assembler comment. Document input
6950 constraints. Comment fp operations. Reduce profligate buffer
6951 size. Remove extraneous abort. Localize temp var.
6952 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
6953 (output_fix_trunc): Add spaces after commas in assembly output.
6954
6955 2000-03-27 Richard Henderson <rth@cygnus.com>
6956
6957 * i386-protos.h (ix86_match_ccmode): Declare.
6958 * i386.c (ix86_match_ccmode): New.
6959 (ix86_expand_fp_compare): Update for pattern renames.
6960 (ix86_expand_strlensi_unroll_1): Likewise.
6961 * i386.h (EXTRA_CC_MODES): Add CCZ.
6962 (SELECT_CC_MODE): Use it for EQ/NE zero.
6963 * i386.md (cmpsi_ccz_1): New.
6964 (cmpqi_ccz_1): New.
6965 (*testsi_ccz_1): New.
6966 (testqi_ccz_1): New.
6967 (cmpsi_ccno_1): Rename from cmpsi_0.
6968 (testsi_ccno_1): Rename from testsi_1.
6969 (testqi_ccno_1): Rename from testqi_1.
6970 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
6971 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
6972 (*cmphi_0): Use ix86_match_ccmode.
6973 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
6974 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
6975 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
6976 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
6977 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
6978 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
6979 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
6980 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
6981 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
6982 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
6983 (appropriate peepholes): Likewise.
6984 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
6985 (*subsi_3, *subhi_3, *subqi_3): Remove.
6986 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
6987 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
6988 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
6989 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
6990 (x86_shift_adj_1): Use CCZ.
6991 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
6992
6993 2000-03-27 Stan Cox <scox@cygnus.com>
6994
6995 * resource.h (mark_resource_type): New.
6996 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
6997 find_free_register): Use mark_resource_type.
6998 (mark_set_resources): Change include_delayed_effects
6999 to mark_resource_type.
7000 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
7001 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
7002 Use mark_resource_type.
7003
7004 2000-03-27 Richard Henderson <rth@cygnus.com>
7005
7006 * i386.md (call_pop_0, call_value_pop_0): New.
7007 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
7008 (call_value_pop_1): Likewise.
7009 (call_0, call_value_0): New.
7010 (call_1, call_value_1): Remove constraint from unused arg.
7011
7012 2000-03-27 Nick Clifton <nickc@cygnus.com>
7013
7014 * invoke.texi (Spec Files): Document new spec % command created by
7015 Tom Tromey's recent patch.
7016
7017 2000-03-27 Jakub Jelinek <jakub@redhat.com>
7018
7019 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
7020 if not defined.
7021
7022 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7023
7024 * expr.c (expand_assignment): Fix typo in last change.
7025
7026 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
7027
7028 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7029
7030 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
7031 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
7032 and DECL_INLINE if FUNCTION_DECL.
7033 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
7034 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
7035 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
7036 (combine_parm_decls): Likewise.
7037 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
7038 * print-tree.c (print_node): Likewise.
7039 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
7040 DECL_TRANSPARENT_UNION on proper decl types.
7041 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
7042 * stor-layout.c (layout_decl): Only check DECL_PACKED and
7043 DECL_BIT_FIELD of FIELD_DECL.
7044 * tree.h (DECL_RESULT_FLD): New macro.
7045
7046 * expr.c (expand_assignment): Add code to handle variable-sized
7047 BLKmode case.
7048
7049 2000-03-26 Richard Henderson <rth@cygnus.com>
7050
7051 * calls.c (expand_call): Pass parms not original exp to
7052 optimize_tail_recursion. Mind return value instead of looking
7053 for a barrier.
7054 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
7055 call_expr. Move checks for call_expr and current_function_decl ...
7056 (expand_return): ... here.
7057
7058 2000-03-26 Tom Tromey <tromey@cygnus.com>
7059
7060 * gcc.c (handle_braces): Recognize `%{<S}' construct.
7061 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
7062 defines.
7063 (process_command): Use them.
7064 (check_live_switch): Likewise.
7065 (give_switch): Skip ignored switches.
7066
7067 2000-03-26 Jan Hubicka <jh@suse.cz>
7068
7069 * jump.c (jump_optimize_1): Fix typo in elide optimizations
7070 for minimal jump pass test.
7071
7072 2000-03-26 Mark Mitchell <mark@codesourcery.com>
7073
7074 * integrate.c (function_cannot_inline_p): Do inline functions that
7075 return `void'.
7076
7077 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7078
7079 * stor-layout.c (layout_type, set_sizetype): early_type_list is
7080 now a list of TREE_LIST entries, not types.
7081 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
7082
7083 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
7084 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
7085 int_bit_position.
7086 * config/mips/mips.c (function_arg): Likewise; also remove cast
7087 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
7088 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
7089 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
7090 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
7091 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
7092 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
7093 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
7094 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
7095 num_adjusts now unsigned.
7096 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
7097 * config/sparc/sparc.c (struct function_arg_record_value_parms):
7098 NREGS now unsigned.
7099 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
7100 as is BITPOS variable; use host_integerp and int_bit_position.
7101 (function_arg_record_value_2): Likewise.
7102 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
7103 Variable REGNO now unsigned.
7104 (function_arg_record_value): NREGS now unsigned.
7105
7106 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
7107
7108 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
7109
7110 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7111
7112 * Rework fields used to describe positions of bitfields and
7113 modify sizes to be unsigned and use HOST_WIDE_INT.
7114 * alias.c (reg_known_value_size): Now unsigned.
7115 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
7116 (really_start_incremental_init): Use bitsize_zero_node.
7117 (push_init_level, pop_init_level, output_init_element): Likewise.
7118 Use bitsize_unit_node and bitsize_one_node.
7119 (output_pending_init_elements, process_init_element): Likewise.
7120 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
7121 (make_extraction): Position and length HOST_WIDE_INT and unsigned
7122 HOST_WIDE_INT, respectively.
7123 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
7124 (num_sign_bit_copies): Returns unsigned.
7125 BITWIDTH now unsigned; rework arithmetic.
7126 Remove recursive call from arg to MAX.
7127 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
7128 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
7129 REGNO now unsigned.
7130 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
7131 (find_split_point, expand_compound_operation, make_extraction): LEN
7132 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
7133 (make_field_assignment): Likewise.
7134 (combine_simplify_rtx): Add cast.
7135 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
7136 (force_to_mode): WIDTH now unsigned; add cast.
7137 (if_then_else_cond): SIZE now unsigned.
7138 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
7139 (extended_count): Now returns unsigned.
7140 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
7141 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
7142 (simplify_comparison): MODE_WIDTH now unsigned.
7143 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
7144 (mark_used_regs_combine): Likewise; rework arithmetic.
7145 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
7146 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
7147 (record_promoted_value): REGNO now unsigned.
7148 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
7149 (get_last_value): REGNO now unsigned.
7150 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
7151 (reg_dead_regno, reg_dead_endregno): Now unsigned.
7152 (remove_death): Arg REGNO now unsigned.
7153 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
7154 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
7155 now unsigned.
7156 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
7157 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
7158 (struct cse_reg_info): REGNO now unsigned.
7159 (cached_regno): Now unsigned.
7160 (REGNO_QTY_VALID_P): Add cast.
7161 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
7162 (remove_invalid_regs): Likewise.
7163 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
7164 as are variables END and I.
7165 (get_cse_reg_info, insert): Likewise.
7166 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
7167 (canon_hash): Likewise.
7168 (insert_regs, lookup_for_remove): REGNO now unsigned.
7169 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
7170 New variable RN.
7171 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
7172 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
7173 * emit-rtl.c (subreg_realpart_p): Add cast.
7174 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
7175 (operand_subword_force): Arg I is now unsigned.
7176 * except.c (eh_regs): Variable I is now unsigned.
7177 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
7178 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
7179 length is unsigned HOST_WIDE_INT; likewise for internal variables.
7180 (store_split_bit_field, extract_fixed_bit_field): Likewise.
7181 (extract_split_bit_field, store_bit_field, extract_bit_field):
7182 Likewise.
7183 * expr.c (store_constructor_fields, store_constructor, store_field):
7184 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
7185 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
7186 (do_jump): Likewise.
7187 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
7188 MAX_SIZE is now unsigned.
7189 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
7190 (emit_group_store): Likewise.
7191 (emit_move_insn): I now unsigned.
7192 (store_constructor): Use host_integerp, tree_low_cst, and
7193 bitsize_unit_node.
7194 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
7195 Rework all calculations to use trees and new fields.
7196 * expr.h (promoted_input_arg): Regno now unsigned.
7197 (store_bit_field, extract_bit_field): Adjust types of pos and size.
7198 (mark_seen_cases): Arg is HOST_WIDE_INT.
7199 * flow.c (verify_wide_reg_1): REGNO now unsigned.
7200 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
7201 precisions and alignments are unsigned.
7202 (optimize_bit_field_compare, fold_truthop): Likewise.
7203 (int_const_binop): Adjust threshold for size_int_type_wide call.
7204 (fold_convert): Likewise.
7205 (size_int_type_wide): Make table larger and fix thinko that only
7206 had half of table used.
7207 (all_ones_mask_p, fold): Precisions are unsigned.
7208 * function.c (put_reg_info_stack): REGNO is unsigned.
7209 (instantiate_decl): Size is HOST_WIDE_INT.
7210 (instantiate_virtual_regs): I is unsigned.
7211 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
7212 (promoted_input_arg): REGNO is unsigned.
7213 * function.h (struct function): x_max_parm_reg is now unsigned.
7214 * gcse.c (max_gcse_regno): Now unsigned.
7215 (struct null_pointer_info): min_reg and max_reg now unsigned.
7216 (lookup_set, next_set): REGNO arg now unsigned.
7217 (compute_hash_table): REGNO and I now unsigned.
7218 (handle_avail_expr): regnum_for_replacing now unsigned.
7219 (cprop_insn): REGNO now unsigned.
7220 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
7221 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
7222 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
7223 * hard-reg-set.h (reg_class_size): Now unsigned.
7224 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
7225 * jump.c (mark_modified_reg): I now unsigned; add cast.
7226 (rtx_equal_for_thread_p): Add cast.
7227 * loop.c (max_reg_before_loop): Now unsigned.
7228 (struct_movable): REGNO now unsigned.
7229 (try_copy_prop): REGNO arg unsigned.
7230 (regs_match_p): XN and YN now unsigned.
7231 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
7232 (strength_reduce): Likewise; NREGS also unsigned.
7233 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
7234 * loop.h (struct iv_class): REGNO now unsigned.
7235 (max_reg_before_loop, first_increment_giv, last_increment_giv):
7236 Now unsigned.
7237 * machmode.h (mode_size, mode_unit_size): Now unsigned.
7238 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
7239 * optabs.c (expand_binop): I and NWORDS now unsigned.
7240 (expand_unop): I now unsigned.
7241 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
7242 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
7243 * real.c (significand_size): Now returns unsigned.
7244 * real.h (significand_size): Likewise.
7245 * regclass.c (reg_class_size): Now unsigned.
7246 (choose_hard_reg_mode): Both operands now unsigned.
7247 (record_reg_classes): REGNO and NR now unsigned.
7248 (reg_scan): NREGS now unsigned.
7249 (reg_scan_update): old_max_regno now unsigned.
7250 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
7251 * reload.c (find_valid_class): BEST_SIZE now unsigned.
7252 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
7253 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
7254 Likewise for variable R.
7255 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
7256 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
7257 (find_equiv_reg): Add casts.
7258 (regno_clobbered_p): Arg REGNO now unsigned.
7259 * reload.h (struct reload): NREGS now unsigned.
7260 (refers_to_regno_for_reload_p): Regno args are unsigned.
7261 (regno_clobbered_p): Likewise.
7262 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
7263 (compute_use_by_pseudos): REGNO now unsigned.
7264 (find_reg): I and J now unsigned, new variable K, and change loop
7265 variables accordingly; THIS_NREGS now unsigned.
7266 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
7267 (spill_hard_reg): REGNO arg now unsigned; add casts.
7268 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
7269 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
7270 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
7271 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
7272 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
7273 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
7274 (emit_reload_insns): REGNO now unsigned.
7275 (reload_cse_move2add): Add cast.
7276 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
7277 and rework loop.
7278 * resource.c (mark_referenced_resources, mark_set_resources): New
7279 variable R; REGNO and LAST_REGNO now unsigned.
7280 (mark_target_live_regs): J and REGNO now unsigned.
7281 * rtl.c (mode_size, mode_unit_size): Now unsigned.
7282 * rtl.h (union rtunion_def): New field rtuint.
7283 (XCUINT): New macro.
7284 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
7285 (operand_subword, operand_subword_force): Word number is unsigned.
7286 (choose_hard_reg_mode): Operands are unsigned.
7287 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
7288 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
7289 (regno_use_in, combine_instructions, remove_death): Likewise.
7290 (reg_scan, reg_scan_update): Likewise.
7291 (extended_count): Return is unsigned.
7292 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
7293 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
7294 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
7295 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
7296 (reg_reg_last_1): FIRS and LAST now unsigned.
7297 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
7298 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
7299 now unsigned.
7300 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
7301 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
7302 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
7303 (replace_regs): Arg NREGS now unsigned.
7304 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
7305 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
7306 (simplify_binary_operation): Likewise.
7307 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
7308 THIS_LAST now unsigned.
7309 (cselib_record_set): Add cast.
7310 * ssa.c (ssa_max_reg_num): Now unsigned.
7311 (rename_block): REGNO now unsigned.
7312 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
7313 sizes now unsigned.
7314 (all_cases_count): Just return -1 not -2.
7315 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
7316 Rework tests to use trees whenever possible.
7317 Use host_integerp and tree_low_cst.
7318 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
7319 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
7320 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
7321 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
7322 (smallest_mode_for_size): Likewise.
7323 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
7324 KNOWN_ALIGN is now an alignment, so simplify code.
7325 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
7326 (start_record_layout): Renamed from new_record_layout_info.
7327 Update to new fields.
7328 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
7329 New functions.
7330 (place_union_field): Renamed from layout_union_field.
7331 Update to use new fields in rli.
7332 (place_field): Renamed from layout_field.
7333 Major rewrite to use new fields in rli; pass alignment to layout_decl.
7334 (finalize_record_size): Rework to use new fields in rli and handle
7335 union.
7336 (compute_record_mode): Rework to simplify and to use new DECL fields.
7337 (finalize_type_size): Make rounding more consistent.
7338 (finish_union_layout): Deleted.
7339 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7340 (layout_type, case RECORD_TYPE): Call new function names.
7341 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7342 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7343 (get_best_mode): UNIT is now unsigned; remove casts.
7344 * tree.c (bit_position): Compute from new fields.
7345 (byte_position, int_byte_position): New functions.
7346 (print_type_hash_statistics): Cast to remove warning.
7347 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7348 (build_index_type): Likewise; make subtype of sizetype.
7349 (build_index_2_type): Pass sizetype to build_range_type.
7350 (build_common_tree_nodes): Use size_int and bitsize_int to
7351 initialize nodes; add bitsize_{zero,one,unit}_node.
7352 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7353 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7354 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7355 (DECL_FIELD_BITPOS): Deleted.
7356 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7357 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7358 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7359 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7360 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7361 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7362 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7363 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7364 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7365 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7366 (DECL_ALIGN): Adjust to new field in union.
7367 (DECL_OFFSET_ALIGN): New field.
7368 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7369 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7370 (union tree_decl): Add struct for both aligns.
7371 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7372 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7373 (struct record_layout_info): Rework fields to have offset
7374 alignment and byte and bit position.
7375 (start_record_layout, place_field): Renamed from old names.
7376 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7377 (byte_position, int_byte_position): Likewise.
7378 (get_inner_reference): Change types of position and length.
7379 * unroll.c (unroll_loop): New variable R; use for some loops.
7380 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7381 (calculate_giv_inc): Arg REGNO now unsigned.
7382 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7383 * varasm.c (assemble_variable): Clean up handling of size using
7384 host_integerp and tree_low_cst.
7385 (decode_addr_const): Use byte, not bit, position.
7386 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7387 use tree_low_cst and int_bit_position.
7388 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7389
7390 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
7391
7392 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7393 (reorder_block_def): New members eff_head and eff_end.
7394 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7395 (verify_insn_chain): New function.
7396 (skip_insns_between_block): Add code to skip deleted insns.
7397 Check for note before using.
7398 (chain_reorder_blocks): Replace calls to skip_insns_between_block
7399 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7400 Check for note before using.
7401 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7402 (fixup_reorder_chain): Restructure, clean up, defect removal.
7403 (reorder_basic_blocks): Remove last_insn and references to it.
7404 Moved insn chain verification code into a new function (see above).
7405 Delete defective code that sets last insn.
7406 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7407 all blocks.
7408
7409 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7410
7411 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7412
7413 2000-03-24 Richard Henderson <rth@cygnus.com>
7414
7415 * tree.c (lang_safe_for_unsave): Remove.
7416 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7417 allowing for two levels of unsafeness. Remove lang hook.
7418 * tree.h: Update declarations.
7419 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7420 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7421 Always fail sibcalls when there are pending cleanups.
7422
7423 2000-03-24 Geoff Keating <geoffk@cygnus.com>
7424
7425 * flow.c (propagate_block): When we delete an ADDR_VEC,
7426 also delete the BARRIER following it if there is one.
7427
7428 2000-03-24 Richard Henderson <rth@cygnus.com>
7429
7430 * builtins.c (expand_builtin_bzero): Convert `length' argument
7431 to sizetype.
7432
7433 2000-03-24 Jakub Jelinek <jakub@redhat.com>
7434
7435 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7436 comparison if regno's are equal.
7437 * calls.c (initialize_argument_informat): Add ecf_flags argument.
7438 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7439 (expand_call): Update caller.
7440 Avoid making a sibling call if argument size of the callee is larger
7441 than argument size of the caller.
7442 Call hard_function_value with outgoing set if in sibcall pass.
7443 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7444
7445 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7446 Change LEAF_REGISTERS from an array initializer to actual array
7447 identifier. Move static global variable into the function.
7448 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7449 sequences for leaf functions.
7450 * global.c (global_alloc): Likewise.
7451 * tm.texi (LEAF_REGISTERS): Update documentation.
7452
7453 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7454 TARGET_FLAT leaf disabling hack.
7455 (LEAF_REGISTERS): Changed from an array initializer to actual array
7456 identifier to avoid duplication and remove the above hack.
7457 (FUNCTION_OK_FOR_SIBCALL): Define.
7458 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7459 always like call attribute.
7460 (eligible_for_sibcall_delay): New attribute.
7461 (sibcall): New delay type.
7462 (sibcall, sibcall_value, sibcall_epilogue): New expands.
7463 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7464 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7465 * config/sparc/sparc.c (sparc_leaf_regs): New array.
7466 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7467 New functions.
7468 (output_function_epilogue): Move part of the code into
7469 output_restore_regs.
7470 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7471 TYPE_SIBCALL.
7472 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7473 prototypes.
7474
7475 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7476 until infrastructure is finished.
7477
7478 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
7479
7480 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7481 (save_parm_insns): Not here.
7482
7483 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484
7485 * builtins.c (expand_builtin_bzero): New function.
7486 (expand_builtin): Handle bzero.
7487
7488 * builtins.def: Add BUILT_IN_BZERO.
7489
7490 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7491 prototype & function for bzero.
7492
7493 2000-03-23 Michael Meissner <meissner@redhat.com>
7494
7495 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7496 change adding TARGET_FP to the TF floating point insns, except for
7497 trunctfsf2, which generates direct calls to truncdfsf2.
7498
7499 2000-03-23 Geoff Keating <geoffk@cygnus.com>
7500
7501 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7502 try to protect against middle-end changes that break binary
7503 compatibility.
7504 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7505
7506 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7507
7508 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
7509
7510 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7511
7512 * calls.c (expand_call): If TARGET is passed by reference and
7513 is readonly, write a CLOBBER.
7514
7515 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7516
7517 * builtins.c (expand_builtin): Handle bcmp.
7518
7519 * builtins.def: Add BUILT_IN_BCMP.
7520
7521 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7522 prototype & function for bcmp.
7523
7524 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
7525
7526 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7527 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7528 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7529
7530 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
7531
7532 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7533 alternative when using -fp64 -gp32.
7534
7535 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7536
7537 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7538 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7539 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7540
7541 * frame.h (frame_state): Revert last change.
7542 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7543 * libgcc2.c (throw_helper): Revert last change.
7544
7545 2000-03-22 Richard Henderson <rth@cygnus.com>
7546
7547 * stmt.c (expand_asm_operands): Don't promote the temporary.
7548
7549 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7550
7551 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7552 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7553 c_get_alias_set): Likewise.
7554 * c-decl.c (duplicate_decls): Likewise.
7555 * c-typeck.c (default_conversion,build_unary_op): Likewise.
7556 * calls.c (initialize_argument_information): Likewise.
7557 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7558 Likewise.
7559 * dwarfout.c (decl_class_context,output_type): Likewise.
7560 * expr.c (get_inner_reference): Likewise.
7561 * fold-const.c (simple_operand_p,fold): Likewise.
7562 * function.c (aggregate_value_p): Likewise.
7563 * stmt.c (expand_asm_operands): Likewise.
7564 * varasm.c (named_section): Likewise.
7565
7566 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7567
7568 Implement dwarf2 exception handling for the ARM.
7569 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7570 (DWARF_FRAME_RETURN_COLUMN): Define.
7571 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
7572 REG_FRAME_RELATED_EXPR note.
7573 (emit_sfm): Likewise.
7574 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7575 * dwarf2out.c (reg_save): Handle saving a register to itself.
7576 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7577 * except.c (eh_regs): Don't use the static chain reg if it's
7578 callee-saved.
7579 * frame.h (frame_state): Add cfa_saved field.
7580 * frame.c (execute_cfa_insn): Set it.
7581 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7582 the epilogue.
7583 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7584 Now takes a parm.
7585 (instantiate_virtual_regs): Adjust.
7586 * tm.texi: Adjust.
7587 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7588 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7589 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7590
7591 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7592 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7593
7594 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7595
7596 * builtins.def: New file.
7597
7598 * Makefile.in (TREE_H): Depend on builtins.def.
7599
7600 * builtins.c (built_in_names): Use builtins.def.
7601
7602 * tree.h (built_in_function): Likewise.
7603
7604 2000-03-22 Mark Mitchell <mark@codesourcery.com>
7605
7606 * tree.c (size_in_bytes): Return size_zero_node, not
7607 integer_zero_node.
7608
7609 2000-03-22 Geoff Keating <geoffk@cygnus.com>
7610
7611 * config/fp-bit.c (pack_d): Correct the case when a denormal
7612 is rounded up and stops being denormal.
7613
7614 2000-03-21 Richard Henderson <rth@cygnus.com>
7615
7616 * config/alpha/alpha.c (function_arg): Check for void_type_node
7617 before using MUST_PASS_IN_STACK.
7618
7619 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
7620
7621 * regmove.c (combine_stack_adjustments_for_block): Check that
7622 the stack pointer is a valid memory address.
7623
7624 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
7625
7626 * calls.c: re-install Mar 16 emit_library_call merge.
7627
7628 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7629
7630 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7631 we cannot be sure that if reload_completed base register will
7632 be properly aligned.
7633
7634 2000-03-21 Richard Henderson <rth@cygnus.com>
7635
7636 * flow.c (delete_block): Fix typo last change.
7637
7638 2000-03-21 Mark Mitchell <mark@codesourcery.com>
7639
7640 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7641 not COMPLETE_TYPE_P, to check the type of the expression.
7642
7643 2000-03-21 Michael Meissner <meissner@redhat.com>
7644
7645 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7646 all floating point insns that just tested the macro
7647 TARGET_HAS_XFLOATING_LIBS.
7648 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7649 used to only use the gprs.
7650
7651 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
7652
7653 * tree.h (COMPLETE_TYPE_P): New macro.
7654 (COMPLETE_OR_VOID_TYPE_P): New macro.
7655 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7656 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7657 * c-aux-info.c (gen_type): Use them.
7658 * c-common.c (c_expand_expr_stmt): Likewise.
7659 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7660 grokdeclarator, grokparms, finish_struct, start_function,
7661 store_parm_decls, combine_parm_decls): Likewise.
7662 * c-parse.y (cast_expr): Likewise.
7663 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7664 c_size_in_bytes, c_alignof, build_component_ref,
7665 build_indirect_ref, build_array_ref, convert_arguments,
7666 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7667 * calls.c (initialize_argument_information): Likewise.
7668 * convert.c (convert_to_integer): Likewise.
7669 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7670 * dwarfout.c (location_or_const_value_attribute,
7671 output_enumeration_type_die, output_structure_type_die,
7672 output_union_type_die, output_type): Likewise.
7673 * expr.c (safe_from_p, expand_expr): Likewise.
7674 * function.c (assign_parms): Likewise.
7675 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7676 * tree.c (build_array_type, build_function_type,
7677 build_method_type, build_offset_type, build_complex_type): Likewise.
7678 * c-parse.c, c-parse.h: Regenerated.
7679
7680 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7681
7682 * config/c4x/rtems.h: Include config/rtems.h.
7683
7684 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
7685
7686 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7687 decl is a FUNCTION_DECL
7688
7689 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
7690
7691 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7692 function uses output registers. Don't save RP for leaf functions.
7693 Do save RP even if no epilogue.
7694 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7695 (CALL_USED_REGISTERS): Unmark in registers.
7696 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
7697 to near the middle.
7698
7699 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7700
7701 * config/rs6000/rs6000.md (bunordered): New expander.
7702 (bordered): New expander.
7703 (buneq): New expander.
7704 (bunge): New expander.
7705 (bungt): New expander.
7706 (bunle): New expander.
7707 (bunlt): New expander.
7708 (bltgt): New expander.
7709
7710 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7711 (ccr_bit_negated_p): New function.
7712 (print_operand): For %C, generate appropriate cror for UNEQ,
7713 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
7714
7715 2000-03-20 Andreas Jaeger <aj@suse.de>
7716
7717 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7718 warning.
7719
7720 * tree.h (safe_for_unsave): Prototype.
7721
7722 2000-03-20 Richard Henderson <rth@cygnus.com>
7723
7724 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7725 (combine_stack_adjustments_for_block): Don't allow sp references
7726 in the side of a set we're not fixing up.
7727 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7728 after life_analysis.
7729
7730 2000-03-20 Richard Henderson <rth@cygnus.com>
7731
7732 * calls.c (expand_call): Don't bother generating tail call
7733 sequences if there are pending cleanups. Use
7734 expand_start_target_temps/expand_end_target_temps to elide
7735 cleanups created during sibcall expansion.
7736
7737 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7738
7739 * configure.in: Set $IFS to a value if it doesn't already have one
7740 in the --enable-checking handling.
7741 * configure: Regenerate.
7742
7743 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7744
7745 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7746 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7747 Regenerated.
7748
7749 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
7750
7751 * jump.c (delete_noop_moves): Remove code attempting to
7752 combine stack adjustments.
7753
7754 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7755
7756 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7757 * except.c (emit_cleanup_handler): Use them.
7758 (expand_end_all_catch): Likewise.
7759 * function.c (fixup_var_refs): Likewise.
7760 (expand_function_end): Clear catch_clauses_last.
7761 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7762 * except.h (struct eh_status): New field x_catch_clauses_last.
7763 (catch_clauses_last): New define.
7764
7765 * Makefile.in (tree.o): Depend on HASHTAB_H.
7766 * tree.c: Include hashtab.h.
7767 (struct type_hash): Remove next field.
7768 (TYPE_HASH_SIZE): Remove.
7769 (TYPE_HASH_INITIAL_SIZE): New define.
7770 (type_hash_table): Change type to htab_t.
7771 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7772 mark_hash_entry): New functions.
7773 (init_obstacks): Allocate type hash.
7774 (type_hash_lookup): Use htab functions.
7775 (type_hash_add, mark_type_hash): Likewise.
7776 (dump_tree_statistics): Call print_type_hash_statistics.
7777
7778 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7779
7780 * rs6000/t-aix41: New file.
7781
7782 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7783
7784 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
7785
7786 * tm.texi (Driver): Fix typos and tweak entry for
7787 INCLUDE_DEFAULTS.
7788 Move misplaced STRUCT_FORCE_BLK entry ...
7789 (Storage Layout): ... to here.
7790 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7791
7792 2000-03-19 Richard Henderson <rth@cygnus.com>
7793
7794 * flow.c (delete_block): Delete the addr_vec along with the block.
7795 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7796 reference labels.
7797
7798 * fold-const.c (extract_muldiv): Apply type check for defined
7799 overflow to multiply as well as divide.
7800
7801 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7802
7803 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7804
7805 * emit-rtl.c (remove_unncessary_notes): Check that all
7806 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7807 associated NOTE_BLOCK.
7808 * function.h (identify_blocks): Update comments.
7809 (reorder_blocks): Declare.
7810 * function.c (identify_blocks): Don't take paramters.
7811 (reorder_blocks): Don't take parameters.
7812 * loop.h (find_loop_tree_blocks): Remove.
7813 (unroll_block_trees): Likewise.
7814 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
7815 reorder_blocks instead of unroll_block_trees.h
7816 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7817 * stmt.c (find_loop_tree_blocks): Remove.
7818 (unroll_block_trees): Likewise.
7819 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7820 in whole-function mode.
7821 * tree.h (reorder_blocks): Remove declaration.
7822
7823 * expr.c: Include intl.h.
7824 * Makefile.in (expr.o): Depend on intl.h.
7825
7826 2000-03-18 Richard Henderson <rth@cygnus.com>
7827
7828 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7829
7830 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7831
7832 * tree.h (tree_index): Remove enumerals for integer types.
7833 (integer_type_kind): New type.
7834 (integer_types): New variable.
7835 (char_type_node): Adjust.
7836 (signed_char_type_node): Likewise.
7837 (unsigned_char_type_node): Likewise.
7838 (short_integer_type_node): Likewise.
7839 (short_unsigned_type_node): Likewise.
7840 (integer_type_node): Likewise.
7841 (unsigned_type_node): Likewise.
7842 (long_integer_type_node): Likewise.
7843 (long_unsigned_type_node): Likewise.
7844 (long_long_integer_type_node): Likewise.
7845 (long_long_unsigned_type_node): Likewise.
7846 * tree.c (integer_types): New variable.
7847 (init_obstacks): Register it as a root.
7848
7849 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
7850
7851 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
7852 NEXT_INSN. Update last insn in chain.
7853
7854 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
7855
7856 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
7857 with TYPE_DECL_SUPPRESS_DEBUG set.
7858
7859 2000-03-18 Richard Henderson <rth@cygnus.com>
7860
7861 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
7862
7863 2000-03-18 Richard Henderson <rth@cygnus.com>
7864
7865 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
7866 care for HALF_PIC_P.
7867 (expander_call_insn_operand): Remove.
7868 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
7869 * i386.h (PREDICATE_CODES): Update.
7870 * i386.md (all call expanders): Remove predicates, remove special
7871 handling for half-pic.
7872 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
7873 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
7874 (sibcall_epilogue): New.
7875
7876 2000-03-17 Richard Henderson <rth@cygnus.com>
7877
7878 * rtlanal.c (single_set): Reject if the parallel has anything
7879 except SET or USE or CLOBBER.
7880
7881 2000-03-17 Jeff Law <law@cygnus.com>
7882 Richard Henderson <rth@cygnus.com>
7883
7884 * Makefile.in (OBJS): Add sibcall.o.
7885 (sibcall.o): New.
7886 * sibcall.c: New file.
7887 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
7888 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
7889 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
7890 Emit sibcall patterns when requested. Update all callers.
7891 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
7892 elimination seems feasable.
7893 * final.c (leaf_function_p): Sibling calls don't discount being
7894 a leaf function.
7895 * flow.c (HAVE_sibcall_epilogue): Provide default.
7896 (find_basic_blocks_1): Sibling calls don't throw.
7897 (make_edges): Make edge from sibling call to EXIT.
7898 (propagate_block): Don't remove sibcall_epilogue insns.
7899 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
7900 (sibcall_epilogue): New.
7901 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
7902 (identify_blocks_1): Likewise. Break out from ...
7903 (identify_blocks): ... here.
7904 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
7905 (reorder_blocks): ... here.
7906 (init_function_for_compilation): Zap prologue/epilogue as varrays.
7907 (record_insns): Extend a varray instead of mallocing new memory.
7908 (contains): Read a varray not array of ints.
7909 (sibcall_epilogue_contains): New.
7910 (thread_prologue_and_epilogue_insns): Emit and record
7911 sibcall_epilogue patterns.
7912 (init_function_once): Allocate prologue/epilogue varrays.
7913 * genflags.c (gen_insn): Treat sibcall patterns as calls.
7914 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
7915 Broken out from ...
7916 (save_for_inline_nocopy): ... here.
7917 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
7918 Broken out from ...
7919 (expand_inline_function): ... here.
7920 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
7921 (subst_constants): Handle 'n' formats.
7922 * jump.c (jump_optimize_minimal): New.
7923 (jump_optimize_1): New arg `minimal'; update callers. Elide most
7924 optimizations if it's set.
7925 * rtl.c (copy_rtx): Do copy jump & call for insns.
7926 * rtl.h (struct rtx_def): Document use of jump and call for insns.
7927 (SIBLING_CALL_P): New.
7928 (sibcall_use_t): New.
7929 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
7930 Invoke optimize_sibling_and_tail_recursive_calls.
7931 * tree.c (lang_safe_for_unsave): New.
7932 (safe_for_unsave): New.
7933 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
7934
7935 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
7936 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
7937 (*sibcall_osf_1, *sibcall_value_osf_1): New.
7938
7939 2000-03-17 Mark Mitchell <mark@codesourcery.com>
7940
7941 * objc/objc-act.c (encode_method_prototype): Pass types, not
7942 PARM_DECLs, to int_size_in_bytes.
7943
7944 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
7945
7946 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
7947
7948 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7949 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
7950
7951 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7952
7953 * Clean up usages of TREE_INT_CST_LOW.
7954 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
7955 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7956 Regenerated.
7957 * c-tree.h (min_precision): Move declaration to here.
7958 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
7959 (build_unary_op, add_pending_init): Use bit_position.
7960 (pending_init_member, process_init_element): Likewise.
7961 (really_start_incremental_init, push_init_level, pop_init_level):
7962 Don't make copies of nodes or modify them in place, use consistent
7963 types when tracking positions, and use tree routines computations.
7964 (set_init_index, output_init_element): Likewise.
7965 (output_pending_init_elements, process_init_element): Likewise.
7966 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
7967 tree_low_cst and int_bit_position; also minor cleanup.
7968 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
7969 (print_cst_octal): Precision is unsigned.
7970 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
7971 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
7972 (simple_type_align_in_bits): Result is unsigned int.
7973 Use tree_int_low_cst and host_integerp.
7974 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
7975 (field_byte_offset): Result is HOST_WIDE_INT.
7976 Change types of internal variables so alignments are unsigned int,
7977 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
7978 Use host_integerp, tree_low_cst, and int_bit_position.
7979 (add_bit_offset_attribute): Likewise.
7980 (add_data_member_location_attribute): Use tree_cst_low.
7981 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
7982 (add_bit_size_attribute): Use tree_low_cst.
7983 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
7984 * dwarfout.c: Similar changes to dwarf2out.c.
7985 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
7986 * genoutput.c (n_occurences): Return -1 for null string.
7987 (strip_whitespace): Accept null string and make into function.
7988 (scan_operands): Reflect above changes.
7989 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
7990 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
7991 * ssa.c (rename_registers): Add missing cast of arg to bzero.
7992 * tree.c (int_size_in_bytes): Check for too big to represent.
7993 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
7994 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
7995 New declarations.
7996 (min_precision): Delete from here.
7997 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
7998 and int_bit_position.
7999 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
8000 (encode_method_def): Likewise.
8001 (build_ivar_list_initializer): Use int_bit_position.
8002 (generate_shared_structures): Convert size.
8003 (encode_type, encode_complete_bitfield): Use integer_zerop.
8004 (encode_bitfield): Use tree_low_cst and int_bit_position.
8005
8006 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8007
8008 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
8009
8010 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8011
8012 * call.c (special_function_p): It is only malloc if it returns
8013 Pmode.
8014
8015 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8016
8017 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
8018 (C33_FLAG, TARGET_C3X): Add macros.
8019 (TARGET_SWITCHES): Add -m33 option.
8020 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
8021
8022 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8023
8024 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
8025 (PARALLEL_PACK_FLAG): Delete.
8026 (TARGET_SWITCHES): Update.
8027 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
8028
8029 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8030
8031 * fold-const.c (fold): Fix a few cases when the returned result
8032 is not of the same type as the input.
8033
8034 2000-03-16 Nick Clifton <nickc@cygnus.com>
8035
8036 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
8037 warning.
8038
8039 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8040
8041 * libgcc2.h: Move prototypes above macros with the same name.
8042 Wrap some function prototypes in the conditional which indicates
8043 whether they are supported, i.e. "BITS_PER_UNIT == 8".
8044
8045 2000-03-16 Richard Henderson <rth@cygnus.com>
8046
8047 * calls.c: Revert last two changes.
8048
8049 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
8050
8051 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
8052 has exponent 0 is a zero.
8053
8054 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
8055 HASH may already be nonzero. Add code/mode into hash value
8056 immediately after repeat label.
8057 (cselib_lookup): Don't leave the hash table in an inconsistent
8058 state before a hash lookup operation.
8059
8060 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
8061
8062 * i386.md (all HI and QI mode non-move patterns): Conditionize
8063 by TARGET_[HQ]IMODE_MATH.
8064 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8065 x86_promote_qi_regs): Declare.
8066 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
8067 TARGET_PROMOTE_QI_REGS): New macros.
8068 (PROMOTE_MODE): New macro.
8069 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
8070 x86_promote_qi_regs): New global variables.
8071
8072 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
8073
8074 * calls.c (emit_library_call_value_1): Break out from ...; handle
8075 VOIDmode function calls too.
8076 (emit_library_call_value): ... here.
8077 (emit_library_call): Implement by calling emit_library_call_value_1.
8078
8079 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
8080
8081 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
8082 Update arg_space_so_far on stack adjustments.
8083 (emit_library_call, emit_library_call_value): Likewise; take into
8084 account arg_space_so_far and pending_stack_adjust when calculcating
8085 the boundary.
8086
8087 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
8088
8089 * flow.c: Move all basic block reordering code into its own file.
8090 (create_basic_block): Externalize.
8091 * bb-reorder.c: New file. Copy all basic block reordering code from
8092 flow.c to this file.
8093 (reorder_basic_blocks): Fix fencepost error in for-loop.
8094 (reorder_basic_blocks): Remove braces from single statement for-loops.
8095 * basic-block.h: Add declaration for create_basic_block.
8096 * Makefile.in: Add rules for bb-reorder.o.
8097
8098 2000-03-16 Neil Booth <NeilB@earthling.net>
8099
8100 * cppinit.c (handle_option): Implement #unassert directive
8101 as -A- command line option.
8102 (print_help): Update.
8103 * cpptexi.c: Update.
8104
8105 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
8106
8107 * md.texi (Standard Names): Document `jump'.
8108
8109 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8110
8111 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
8112 gotos.
8113
8114 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8115
8116 Merge changes from newppc-branch onto trunk.
8117
8118 2000-03-15 Geoff Keating <geoffk@cygnus.com>
8119
8120 * rs6000.c (toc_hash_table): Update for new hash table functions.
8121 (toc_hash_function): Likewise.
8122 (toc_hash_eq): Likewise.
8123 (toc_hash_mark_entry): Likewise.
8124 (toc_hash_mark_table): Likewise.
8125 (output_toc): Likewise.
8126 (rs6000_add_gc_roots): Likewise.
8127
8128 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8129
8130 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
8131 (AR_FLAGS_FOR_TARGET): here. New macro.
8132
8133 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
8134
8135 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
8136 fpmem_operand) Delete.
8137 (xer_operand) New.
8138 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
8139 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
8140 (rs6000_save_machine_status, rs6000_restore_machine_status,
8141 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
8142 references to above variables.
8143 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
8144 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
8145 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
8146 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
8147 (XER_REGNO_P, XER_REGNO): New.
8148 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
8149 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
8150 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
8151 XER_REGNO_P.
8152 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
8153 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
8154 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
8155
8156 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8157
8158 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
8159 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
8160 * rs6000.h: from here.
8161
8162 * rs6000-protos.h (rs6000_select_section): Provide prototype.
8163 (rs6000_select_rtx_section): Likewise.
8164 (rs6000_encode_section_info): Likewise.
8165 (sdata_section): Likewise.
8166 (sdata2_section): Likewise.
8167 (sbss_section): Likewise.
8168 * sysv4.h (rs6000_select_section): Delete prototype.
8169 (rs6000_select_rtx_section): Likewise.
8170 (rs6000_encode_section_info): Likewise.
8171 (sdata_section): Likewise.
8172 (sdata2_section): Likewise.
8173 (sbss_section): Likewise.
8174 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
8175
8176 * sysv4.h: Delete various unnecessary #undef's and put a comment
8177 on the remaining ones.
8178 Change various comments according to coding standard.
8179
8180 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
8181
8182 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
8183 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
8184 (CR0_REGNO_P) Remove.
8185 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
8186 setup_incoming_varargs, mtcrf_operation, print_operand,
8187 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
8188 Use the above macros.
8189
8190 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
8191
8192 * config/rs6000/rs6000.md: Added a new alternative for each
8193 pattern that had a 'x' alternative but no 'y' alternative.
8194 Added a new split for each of the above patterns.
8195
8196 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8197
8198 * aix41.h (ASM_CPU_SPEC): Delete.
8199 (CPP_CPU_SPEC): Delete.
8200
8201 * aix.h (RS6000_OUTPUT_BASENAME): Define.
8202 (ASM_OUTPUT_LABEL): Define.
8203 (ASM_GLOBALIZE_LABEL): Define.
8204 (STRIP_NAME_ENCODING): Define.
8205 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
8206 (STRIP_NAME_ENCODING): Don't define.
8207 (ASM_OUTPUT_LABEL): Don't define.
8208 (ASM_GLOBALIZE_LABEL): Don't define.
8209 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
8210 names, and ASM_OUTPUT_LABEL to output labels, rather than
8211 asm_fprintf.
8212 (ASM_OUTPUT_LABEL): Define.
8213 (ASM_OUTPUT_INT): Use assemble_name.
8214 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
8215 (STRIP_NAME_ENCODING): Don't undefine first.
8216 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
8217 ELF.
8218 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
8219 specified with 'asm' even with -fleading-underscore.
8220 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
8221 (output_epilog): Likewise.
8222 (output_toc): Likewise.
8223 * tramp.asm: Handle -fleading-underscore correctly.
8224
8225 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
8226 -mminimal-toc.
8227 (nonlocal_goto_receiver): Delete.
8228 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
8229
8230 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
8231 (SET_ASM_OP): Define.
8232 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
8233
8234 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
8235 (ASM_LONG): Define.
8236
8237 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
8238 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
8239
8240 * rs6000.h: Add 'u' to more constants.
8241
8242 2000-02-18 David Edelsohn <edelsohn@gnu.org>
8243
8244 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
8245
8246 2000-02-15 David Edelsohn <edelsohn@gnu.org>
8247
8248 * rs6000.c (reg_or_u_cint_operand): New function.
8249 (logical_operand): Handle 64-bit hosts.
8250 (logical_u_operand): New function.
8251 (non_logical_cint_operand): Handle 64-bit hosts.
8252 (non_logical_u_cint_operand): New function.
8253 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
8254 (PREDICATE_CODES): Define new functions.
8255 * rs6000-protos.h: Declare new functions.
8256 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
8257 (movdi_64): Bracket code intended for 64-bit hosts. Create
8258 CONST_DOUBLE for 32-bit values.
8259 (scc insns): Generate DImode compares.
8260 (mfcr insns): Create DImode versions.
8261 (sge matchers): New patterns.
8262
8263 2000-02-15 Gabriel Paubert <paubert@iram.es>
8264
8265 * rs6000.md: Correct instructions length attributes and
8266 constraints on unsigned compare instructions.
8267 (*ne0): Disable for PowerPC64.
8268
8269 2000-02-11 Geoff Keating <geoffk@cygnus.com>
8270
8271 * rs6000.c (output_function_profiler): Use .long for a 32-bit
8272 quantity, fix profile1.C test failure under -fPIC.
8273
8274 * rs6000.c: Add 'u' to many constants to suppress warnings.
8275 (constant_pool_expr_1): Make static.
8276 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
8277 * rs6000.h: Add 'u' to many constants to suppress warnings.
8278
8279 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
8280 for the start of the TOC, instead of LCTOC..0.
8281 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
8282 of the TOC.
8283 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
8284 (load_toc_aix_di): Use LCTOC..1.
8285
8286 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
8287 * rs6000.c (rs6000_legitimize_address): New function from
8288 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
8289 symbols in the constant pool that really are TOC references.
8290 (print_operand_address): For ELF, write TOC offsets under
8291 -fPIC as subtractions in the insn.
8292 (output_toc): For ELF, define symbols in TOC as normal labels,
8293 to match RTL.
8294 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
8295 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
8296 (create_TOC_reference): Prototype only when RTX_CODE is defined.
8297 * rs6000.md (movsi): Only use create_TOC_reference on
8298 symbols in the constant pool that really are TOC references.
8299
8300 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
8301 * rs6000.c (rs6000_reorg): Delete.
8302 * rs6000-protos.h (rs6000_reorg): Delete.
8303
8304 2000-02-09 Geoff Keating <geoffk@cygnus.com>
8305
8306 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
8307
8308 * aix.h (SETUP_FRAME_ADDRESSES): Define.
8309 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
8310 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
8311 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
8312 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
8313 rs6000_aix_emit_builtin_unwind_init.
8314 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
8315 rs6000_emit_eh_toc_restore on AIX.
8316 (return_eh_si): Use r2.
8317 (return_eh_di): Use r2.
8318
8319 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
8320 since we're breaking binary compatibility anyway.
8321
8322 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8323
8324 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
8325 constant_pool_expr_p): Declare them.
8326 (constant_pool_expr_p): Declare it.
8327 * config/rs6000/rs6000.c (toc_label_name): Define.
8328 (rs6000_override_options): Set toc_label_name.
8329 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
8330 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
8331 uses_TOC): New functions.
8332 (print_operand): Delete old '*' case.
8333 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8334 and strip off rtl for TOC before calling output_addr_const.
8335 (rs6000_emit_load_toc_table): Use toc_label_name.
8336 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8337 the default.
8338 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8339 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8340 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8341 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8342 into explicit TOC_REGISTER offsets.
8343 (TOC_REGISTER): New macro.
8344 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8345 TARGET_TOC to reference TOC_REGISTER.
8346 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8347 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8348 uses_TOC before emitting label references.
8349
8350 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8351
8352 * rs6000.md (stack_tie): Fix warning.
8353
8354 * eabi-ctors.c: Use 'asm' names for the start/end variables,
8355 to handle -fleading-underscore.
8356 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8357 (USER_LABEL_PREFIX): New macro.
8358 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8359 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8360 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8361 call-linux can use the same multilibs.
8362 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8363 and call-linux multilibs. Do multilib with -fleading-underscore.
8364 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8365 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
8366 to call-aix.
8367
8368 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8369 have MASK_SOFT_FLOAT set.
8370 (CPP_FLOAT_DEFAULT_SPEC): New macro.
8371 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8372 CPP_FLOAT_DEFAULT_SPEC.
8373
8374 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8375 * rs6000.md: Whitespace change.
8376 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8377 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8378
8379 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8380
8381 * rs6000.md (eh_epilogue): New expander.
8382 (eh_reg_restore): New expand/split/insn combination.
8383 (return_eh_si): New insn.
8384 (return_eh_di): New insn.
8385
8386 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8387 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8388 * eabi-ctors.c (__do_global_ctors): Register this object's
8389 frame. Clean up. Call atexit() after the constructors.
8390 (__do_global_dtors): Deregister this object's frame. Clean up.
8391 Allow for recursive calls to exit().
8392 * rs6000.c (fixuplabelno): New variable.
8393 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8394 TARGET_RELOCATABLE, it slows down exec() under linux.
8395 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8396
8397 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8398 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8399 (ASM_OUTPUT_DWARF_DELTA2): New macro.
8400 (ASM_OUTPUT_DWARF_DELTA4): New macro.
8401 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8402 (ASM_OUTPUT_DWARF_ADDR): New macro.
8403 (ASM_OUTPUT_DWARF_DATA4): New macro.
8404 (ASM_OUTPUT_DWARF_DATA2): New macro.
8405 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8406 (ASM_OUTPUT_DWARF_OFFSET): New macro.
8407 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8408
8409 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8410
8411 * rs6000.c (rs6000_sr_alias_set): New variable.
8412 (rs6000_override_options): Initialise rs6000_sr_alias_set.
8413 (rs6000_emit_stack_tie): New function.
8414 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8415 in a way that dwarf2out can understand.
8416 (rs6000_frame_related): New function.
8417 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
8418 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8419 Use rs6000_emit_stack_tie when needed.
8420 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
8421 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
8422 * rs6000.md (stack_tie): New insn.
8423 (return_internal_si): Allow return value to be in the count
8424 register.
8425 (return_internal_di): Likewise.
8426
8427 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8428
8429 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8430
8431 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8432
8433 2000-01-31 Geoff Keating <geoffk@cygnus.com>
8434
8435 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8436
8437 * rs6000.md (stmw): Use the right POWER opcode.
8438 (lmw): Likewise.
8439
8440 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8441
8442 * rs6000-protos.h: New file.
8443
8444 * rs6000.c: Include tm_p.h. Fix compile time warnings.
8445
8446 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
8447 warnings.
8448
8449 * sysv4.h: Likewise.
8450
8451 2000-01-28 Geoff Keating <geoffk@cygnus.com>
8452
8453 * ../../configure.in: Delete powerpcle-*-winnt*
8454 and powerpcle-*-pe|powerpcle-*-cygwin*.
8455 * ../../configure: Regenerated.
8456 * cygwin.h: Delete.
8457 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8458 (TARGET_WINDOWS_NT): Delete.
8459 (ABI_NT): Delete.
8460 (CALL_NT_DLLIMPORT): Delete.
8461 Delete NT-specific code.
8462 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8463 * win-nt.h: Delete.
8464 * t-winnt: Delete.
8465 * nt-ci.asm: Delete.
8466 * nt-cn.asm: Delete.
8467 * ntstack.asm: Delete.
8468
8469 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8470
8471 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8472 (ASM_FILE_START): Likewise.
8473 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8474 (ASM_OUTPUT_LABELREF): Likewise.
8475 (ASM_OUTPUT_SKIP): Likewise.
8476 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8477 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8478 (ASM_OUTPUT_CASE_LABEL): Likewise.
8479 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8480 (ASM_OUTPUT_ASCII): Likewise.
8481
8482 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
8483
8484 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8485 reload_toc_labelno for non-prologue TOC reloads. Also, don't
8486 increment rs6000_pic_labelno here.
8487 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8488 and increment rs6000_pic_labelno here.
8489
8490 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
8491
8492 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8493 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8494 allocation knows (reg) is dead before the insn.
8495
8496 2000-01-21 Geoff Keating <geoffk@cygnus.com>
8497
8498 * rs6000.md (movsi_to_cr): Correct typo in output template.
8499
8500 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8501
8502 * rs6000.c (rs6000_pic_labelno): Always define.
8503 (rs6000_pic_func_labelno): Delete.
8504 (lmw_operation): Check for a zero base register,
8505 which doesn't mean what we want.
8506 (stmw_operation): New function.
8507 (print_operand): Define new 'l' modifier.
8508 (rs6000_stack_info): We must save all 64 bits of the registers
8509 if TARGET_POWERPC64.
8510 (rs6000_output_load_toc_table): Delete.
8511 (rs6000_emit_load_toc_table): New function.
8512 (rs6000_allocate_stack_space): Delete.
8513 (rs6000_emit_allocate_stack): New function.
8514 (rs6000_emit_prologue): New function.
8515 (output_prolog): Use rs6000_emit_prologue.
8516 (rs6000_emit_epilogue): Change a few variable names to be
8517 more accurate. Restore all 64 bits of the registers if
8518 TARGET_POWERPC64. Only restore the FP registers which were used
8519 if they are being saved/restored one-at-a-time.
8520 (output_mi_thunk): Delete inefficient code generation.
8521 (output_function_profiler): Don't use rs6000_output_load_toc_table.
8522 * rs6000.h: Declare rs6000_emit_load_toc_table,
8523 rs6000_allocate_stack_space, stmw_operation. Don't declare
8524 rs6000_output_load_toc_table.
8525 * rs6000.md (elf_high): Allow register 0, but discourage it
8526 heavily.
8527 (elf_low): Support loading into register 0.
8528 (load_toc_aix_si): New pattern.
8529 (load_toc_aix_di): New pattern.
8530 (load_toc_v4_pic_si): New pattern.
8531 (load_toc_v4_pic_di): New pattern.
8532 (load_toc_v4_PIC_1): New pattern.
8533 (load_toc_v4_PIC_1b): New pattern.
8534 (load_toc_v4_PIC_2): New pattern.
8535 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8536 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8537 (prologue): New expander.
8538 (movesi_from_cr): New pattern.
8539 (stmw): New pattern.
8540 (save_fpregs_si): New pattern.
8541 (save_fpregs_di): New pattern.
8542
8543 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8544
8545 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8546 (movdi): Likewise.
8547 (movhi): Likewise.
8548 (movqi): Likewise.
8549
8550 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8551
8552 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8553 at present.
8554 (movsi_got_internal): Likewise.
8555 (movsi_got_internal+1): Likewise.
8556 (set_sp): 'unspec 7' does a SImode clobber.
8557
8558 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8559
8560 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8561 allocate a stack temporary.
8562 (floatsidf2_internal): Likewise.
8563 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
8564 with unspec.
8565 (floatunssidf2): Don't use the fpmem "register", just
8566 allocate a stack temporary.
8567 (floatunssidf2_internal): Likewise.
8568 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
8569 with unspec.
8570 (floatsidf2_loadaddr): Delete.
8571 (floatsidf2_store1): Delete.
8572 (floatsidf2_store2): Delete.
8573 (floatsidf2_load): Delete.
8574 (fix_truncdfsi2): Don't use the fpmem "register", just
8575 allocate a stack temporary.
8576 (fix_truncdfsi2_internal_si): Delete.
8577 (fix_truncdfsi2_internal_di): Delete.
8578 (fix_truncdfsi2_internal): New insn.
8579 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8580 (fix_truncdfsi2_store): Delete.
8581 (fix_truncdfsi2_load): Delete.
8582 (fctiwz): Produce gen_fctiwz.
8583
8584 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8585
8586 * eabi.h (INVOKE__main): Define.
8587 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8588 specially.
8589 (rs6000_emit_prologue): Likewise.
8590 * rs6000.h (struct rs6000_stack): Don't keep track of whether
8591 this is the main program.
8592
8593 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8594
8595 * rs6000.c (rs6000_va_arg): Delete some unused variables.
8596
8597 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8598
8599 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8600 goes after the argument.
8601
8602 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8603
8604 * rs6000.md: Document 'unspec' values used.
8605 (epilogue): New expander.
8606 (movesi_to_cr_one): New expander.
8607 (movesi_to_cr and following): New pattern.
8608 (lmw): New pattern.
8609 (return_internal_si): New pattern.
8610 (return_internal_di): New pattern.
8611 (return_and_restore_fpregs_si): New pattern.
8612 (return_and_restore_fpregs_di): New pattern.
8613 * rs6000.h: Declare new functions.
8614 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8615 rather than rs6000_calls_p.
8616 (rs6000_makes_calls): Delete.
8617 (lmw_operation): New function.
8618 (mtcrf_operation): New function.
8619 (rs6000_emit_epilogue): New function.
8620 (output_epilog): Call rs6000_emit_epilogue and final if
8621 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8622
8623 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8624
8625 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8626 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8627 * aix.h (SUBTARGET_SWITCHES): Document switches.
8628 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
8629 sched-prolog and sched-epilog the same. Document all the
8630 switches.
8631 (TARGET_OPTIONS): No longer allow -mdebug-.
8632
8633 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8634
8635 * rs6000.h (ASM_FILE_END): Move to aix.h.
8636 (EXTRA_SECTIONS): Move to aix.h.
8637 (READONLY_DATA_SECTION): Move to aix.h.
8638 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8639 (SELECT_SECTION): Move to aix.h.
8640 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8641 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8642 (LINK_REGISTER_REGNUM): New definition.
8643 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8644 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8645 AIX and SVR4.
8646 * sysv4.h: Delete the code between the inclusion of rs6000.h
8647 and svr4.h.
8648 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8649 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8650 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8651 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8652 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8653 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8654 (fix_truncdfsi2_internal_di): New pattern.
8655 (fix_truncdfsi2_store): The second arg here is Pmode too.
8656 (fix_truncdfsi2_load): The second arg here is Pmode too.
8657 (tablejumpdi): Now that switch tables hold only SImode values,
8658 gcc needs to know how to add them to the pc which is DImode.
8659 * rs6000.c (rs6000_stack_info): Use symbolic name for
8660 LINK_REGISTER_REGNUM.
8661 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8662 (output_toc): Delete unused variables s1 and s2.
8663 (output_ascii): Use fputs not fprintf on a variable string.
8664
8665 2000-01-07 David Edelsohn <edelsohn@gnu.org>
8666
8667 * rs6000.c (processor_target_table): Add power3 as alias for 630.
8668 * aix43.h: Revert Aug 2 change.
8669 (HAS_INIT_SECTION): Define, not visible yet.
8670 (LD_INIT_SWITCH): Define, not visible yet.
8671 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8672
8673 2000-01-04 Joel Sherrill (joel@OARcorp.com>
8674
8675 * config/rs6000/rtems.h: Include config/rtems.h.
8676
8677 2000-01-04 David Edelsohn <edelsohn@gnu.org>
8678
8679 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8680 (SLOW_UNALIGNED_ACCESS): Define.
8681 (CASE_VECTOR_MODE): Always use 32-bit offsets.
8682 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8683 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8684 (toc_section): Likewise and .toc pseudo-op.
8685 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
8686 64-bit mode.
8687 (TEXT_SECTION_ASM_OP): Likewise.
8688 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8689 32-bit offsets.
8690
8691 1999-12-17 Jakub Jelinek <jakub@redhat.com>
8692
8693 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8694 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8695 compiling libgcc2.
8696
8697 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8698
8699 * rs6000.h: Move more stuff from here...
8700 * aix.h: to here.
8701 * sysv4.h: Cleanup accordingly.
8702 * netware.h: Likewise
8703
8704 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8705
8706 * rs6000.h: Continue cleanup.
8707 * aix.h: Likewise.
8708 * lynx.h: Likewise.
8709 * netware.h: Likewise.
8710 * sol2.h: Likewise.
8711 * sysv4.h: Likewise.
8712 * win-nt.h: Likewise.
8713
8714 * rs6000.h (TARGET_SWITCHES): Add descriptions.
8715 (TARGET_OPTIONS): Likewise.
8716
8717 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8718 (SUBTARGET_OPTIONS): Likewise.
8719
8720 * rs6000.md: Fix compile time warnings.
8721
8722 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8723
8724 vxworks patches from the Cygnus tree originally by
8725 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8726 <vmakarov@cygnus.com>.
8727 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8728 (ENDFILE_SPEC): Likewise.
8729 (LIB_VXWORKS_SPEC): New macro.
8730 (STARTFILE_VXWORKS_SPEC): New macro.
8731 (ENDFILE_VXWORKS_SPEC): New macro.
8732 (LINK_START_VXWORKS_SPEC): New macro.
8733 (LINK_OS_VXWORKS_SPEC): New macro.
8734 (CPP_OS_VXWORKS_SPEC): New macro.
8735 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8736 * vxppc.h: Rewrite to use proper configuration method.
8737 * vxppcle.h: New file.
8738 * ../../configure.in: Add powerpcle-wrs-vxworks*.
8739 * ../../configure: Rebuilt.
8740
8741 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8742
8743 Lots of changes to rs6000.h, sysv4.h, aix.h,
8744 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8745 with the aim that rs6000.h is the first header
8746 included and the others override it.
8747 * aix.h: New file.
8748
8749 * x-aix41-gld: Remove.
8750 * x-aix43: Remove.
8751 * x-aix41: Remove target-specific switches, and don't specify
8752 -Wl,-bbigtoc as we don't need it any more.
8753 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8754 Use t-aix43 for AIX 4.3 and above.
8755 * ../../configure: Regenerated.
8756
8757 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8758 options, that don't do anything yet.
8759 (MASK_SCHED_PROLOG): New macro.
8760 (MASK_SCHED_EPILOG): New macro.
8761 (TARGET_SCHED_PROLOG): New macro.
8762 (TARGET_SCHED_EPILOG): New macro.
8763
8764 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8765
8766 * rs6000.c: Correct comment, the `minimal' TOCs are actually
8767 one per translation unit, not one per function.
8768 (output_toc): Also do duplicate constant elimination
8769 for per-translation-unit TOCs.
8770
8771 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
8772 a comment explaining _exactly_ when this pattern gets used.
8773 (builtin_setjmp_receiver): New pattern for better clarity.
8774 (init_v4_pic): Move it into a section dealing with TOC registers.
8775
8776 1999-12-30 Geoff Keating <geoffk@cygnus.com>
8777
8778 * rs6000.c (toc_hash_table): New variable.
8779 (rs6000_hash_constant): New function.
8780 (toc_hash_function): New function.
8781 (toc_hash_eq): New function.
8782 (toc_hash_mark_entry): New function.
8783 (toc_hash_mark_table): New function.
8784 (output_toc): Don't output duplicate TOC entries in
8785 a single file.
8786 (rs6000_add_gc_roots): Add the hash table as a GC root.
8787 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8788 where they clearly shouldn't be. This may need to be fixed
8789 later when there is a GNU ar for AIX.
8790 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8791 Don't define BOOT_LDFLAGS as it is now not necessary.
8792
8793 1999-12-29 Geoff Keating <geoffk@cygnus.com>
8794
8795 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8796 for va_list on AIX. Use unsigned_char_type_node rather than
8797 constructing our own version on svr4.
8798
8799 1999-12-17 Geoff Keating <geoffk@cygnus.com>
8800
8801 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8802 since patently it's not.
8803
8804 1999-12-08 Geoff Keating <geoffk@cygnus.com>
8805
8806 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8807 define_expand/define_insn pair, and handle restore of the
8808 SVR4 -fpic register.
8809
8810 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
8811
8812 * acconfig.h (HAVE_GAS_WEAK): New define.
8813 * configure.in (assembler weak support): Check for .weak support.
8814 * config.in, configure: Rebuilt.
8815 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8816 HAVE_GAS_WEAK is defined.
8817
8818 2000-03-15 Nick Clifton <nickc@cygnus.com>
8819
8820 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8821 asm_fprintf().
8822
8823 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
8824
8825 * cppfiles.c (open_include_file): New function.
8826 (find_include_file, cpp_read_file): Use it.
8827
8828 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8829
8830 * cpphash.c (dump_hash_helper): Take the slot, not the element.
8831
8832 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
8833
8834 * flow.c (verify_flow_info): Check for unconditional return.
8835
8836 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
8837
8838 * config/ia64/ia64.md (restore_stack_nonlocal): New.
8839 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
8840 (__ia64_restore_stack_nonlocal): New.
8841 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
8842
8843 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8844
8845 * cpphash.c (collect_formal_parameters): Do not complain about
8846 parameter names that just start with `__VA_ARGS__'.
8847
8848 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
8849
8850 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
8851 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
8852 * i386.c (pentiumpro_cost): Set mul cost to 4.
8853 (x86_use_movx): Set for PPro.
8854
8855 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
8856
8857 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
8858 STACK_BOUNDARY for empty frames now.
8859
8860 2000-03-14 Mark Mitchell <mark@codesourcery.com>
8861
8862 * stor-layout.c (layout_union): Remove.
8863 (layout_union_field): New function, split out from layout_union.
8864 (finish_union_layout): Likewise.
8865 (layout_field): Handle unions by calling layout_union_field.
8866 (finish_record_layout): Handle unions.
8867 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
8868 QUAL_UNION_TYPE handling.
8869
8870 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
8871
8872 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
8873 end of basic block is jump_insn, not barrier; use create_basic_block
8874 instead of creating basic block by hand.
8875
8876 2000-03-14 Jason Eckhardt <jle@cygnus.com>
8877
8878 * flow.c (reorder_basic_blocks): Account for barriers when writing
8879 over NEXT_INSN (last_bb->end).
8880 (verify_flow_info): Add check for missing barriers.
8881
8882 2000-03-14 Greg McGary <gkm@gnu.org>
8883
8884 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
8885 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
8886 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
8887 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
8888 __unbounded, __unbounded__): New keywords.
8889 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
8890 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
8891 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
8892
8893 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
8894
8895 * cselib.h: New file.
8896 * alias.c: Include "cselib.h".
8897 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
8898 MEMs as two new arguments.
8899 (get_addr): New static function.
8900 (find_base_term): Handle VALUEs.
8901 (memrefs_conflict_p): Likewise.
8902 (true_dependence): Call get_addr on the addresses.
8903 Call fixed_scalar_and_varying_struct_p with addresses that have been
8904 passed through get_addr and canon_rtx.
8905 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
8906 with true_dependence.
8907 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
8908 * loop.c: Include "cselib.h".
8909 (load_mems): Process extended basic block that enters the loop with
8910 cselib. Use that information to change initialization of the shadow
8911 register so that a constant equivalence is seen by later passes.
8912 * reload1.c: Include "cselib.h".
8913 (reload_cse_invalidate_regno): Delete function.
8914 (reload_cse_mem_conflict_p): Likewise.
8915 (reload_cse_invalidate_mem): Likewise.
8916 (reload_cse_invalidate_rtx): Likewise.
8917 (reload_cse_regno_equal_p): Likewise.
8918 (reload_cse_check_clobber): Likewise.
8919 (reload_cse_record_set): Likewise.
8920 (reg_values): Delete static variable.
8921 (invalidate_regno_rtx): Likewise.
8922 (reload_cse_delete_noop_set): New static function.
8923 (reload_cse_simplify): New static function, broken out of
8924 reload_cse_regs_1.
8925 (reload_cse_noop_set_p): Delete unused argument INSN.
8926 Just call rtx_equal_for_cselib_p on set source and destination.
8927 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
8928 reload_cse_delete_noop_set. Delete code to keep track of values; use
8929 cselib functions instead. Delete code to push/pop obstacks.
8930 (reload_cse_simplify_set): Use cselib to find equivalent values.
8931 Delete code to push/pop obstacks.
8932 (reload_cse_simplify_operands): Likewise.
8933 * rtl.def (VALUE): New rtx code.
8934 * rtl.h (union rtunion_def): New elt rt_cselib.
8935 (X0CSELIB, CSELIB_VAL_PTR): New macros.
8936 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
8937 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
8938 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
8939 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
8940 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
8941 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
8942 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
8943 cselib_record_set, cselib_record_sets): New static functions.
8944 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
8945 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
8946 references_value_p): New functions.
8947 (MAX_USELESS_VALUES, REG_VALUES): New macros.
8948 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
8949 n_useless_values, reg_values, callmem, cselib_obstack,
8950 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
8951 New static variables.
8952 * varray.h (union varray_data_tag): New elt te.
8953 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
8954 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
8955 dependencies.
8956
8957 2000-03-14 Nick Clifton <nickc@cygnus.com>
8958
8959 * gcc.c (do_spec_1): Catch the case where %* is used in a
8960 substitution pattern, but it has not been initialised.
8961 Issue a meaningful error message if an unrecognised operator
8962 is encountered in a spec string.
8963
8964 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
8965
8966 * function.c (prepare_function_start): Correctly initialize
8967 cfun->stack_alignment_needed.
8968
8969 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
8970
8971 * cppfiles.c (find_include_file): Don't assume nshort is a
8972 substring of name.
8973
8974 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
8975
8976 * configure.in (hppa configurations): Add pa32-regs.h to the
8977 list of tm files as appropriate.
8978 * configure: Rebuilt.
8979 * pa.c (compute_frame_size): Remove explicit knowledge about FP
8980 register numbering.
8981 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
8982 (fmpyaddoperands, fmpysuboperands): Likewise.
8983 * pa.h: Remove various definitions which depend on knowing
8984 how registers are numbered.
8985 * pa32-regs.h: New file with PA32 register numbering specific
8986 definitions.
8987
8988 2000-03-14 Richard Henderson <rth@cygnus.com>
8989
8990 * regmove.c (combine_stack_adjustments): New.
8991 (stack_memref_p, single_set_for_csa): New.
8992 (free_csa_memlist, record_one_stack_memref): New.
8993 (try_apply_stack_adjustment): New.
8994 (combine_stack_adjustments_for_block): New.
8995 * rtl.h (combine_stack_adjustments): Declare.
8996 * toplev.c (rest_of_compilation): Call it.
8997
8998 * i386.md: Revert 2000-01-16 change.
8999
9000 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9001
9002 * gccbug.in: Add web category, gcc specific classes.
9003
9004 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
9005
9006 * stor-layout.c (finalize_record_size): Fix typo.
9007
9008 2000-03-14 Stan Shebs <shebs@apple.com>
9009
9010 * c-typeck.c (c_alignof): Error on incomplete types.
9011 * extend.texi (Alignment): Document this.
9012
9013 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9014
9015 * cppfiles.c: Include mkdeps.h.
9016 (find_include_file, read_include_file): Remove _cpp_ prefix
9017 from name, make static.
9018 (_cpp_execute_include): New function, broken out of
9019 do_include.
9020
9021 * cpplib.c: Don't include mkdeps.h.
9022 (struct directive): Remove type field. Reorder entries. The
9023 function takes only one argument.
9024 (struct if_stack): Make type field an int.
9025 (directive_table): Rename to dtable. Generate it, the
9026 prototypes of the directive handlers, and the enum for the
9027 directive numbers, from a template macro.
9028 (do_ifndef, do_include_next, do_import): New functions.
9029 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
9030 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
9031 do_ident, do_assert, do_unassert, do_sccs): Take only one
9032 argument.
9033 (do_sccs): Define always, but alter behavior based on
9034 SCCS_DIRECTIVE.
9035 (_cpp_handle_directive, consider_directive_while_skipping):
9036 Restructure for new directive table layout.
9037
9038 (pass_thru_directive): Take a directive number, not a pointer
9039 to a struct directive.
9040 (parse_include): New function, broken out of do_include.
9041 (do_include, do_import, do_include_next): Use parse_include
9042 and _cpp_execute_include.
9043 (do_elif, do_else): Test for T_ELSE specifically when checking
9044 for #elif/#else after #else.
9045 (parse_ifdef): New function, broken out of do_ifdef.
9046 (validate_else): Expect a name arg without a leading #.
9047 (if_directive_name): Delete.
9048 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
9049 directive handlers with only one argument.
9050
9051 * cpphash.h: Update prototypes.
9052 (enum node_type): Remove entries for directives.
9053 * Makefile.in: Update dependencies.
9054
9055 * cpphash.c (dump_hash_helper): Only dump nodes of type
9056 T_MACRO. Emit a newline after each definition.
9057
9058 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9059
9060 * gccbug.in: New file.
9061 * configure.in (all_outputs): Add gccbug.
9062 * Makefile.in (install-common): Install gccbug.
9063 (GCCBUG_INSTALL_NAME): New variable.
9064 * configure: Rebuilt.
9065
9066 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
9067
9068 * function.c (put_var_into_stack): Use type_for_mode to calculate
9069 part_type. Use MEM_SET_IN_STRUCT_P.
9070 * expr.c (store_field): Handle CONCAT.
9071 (store_constructor): Use fields_length.
9072 * tree.c (fields_length): New fn.
9073 * tree.h: Declare it.
9074
9075 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9076
9077 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
9078 (cpplex.o): New target.
9079 * po/POTFILES.in: Add cpplex.c.
9080
9081 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
9082 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
9083 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
9084 skip_block_comment, skip_line_comment, skip_comment,
9085 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
9086 _cpp_parse_name, skip_string, parse_string,
9087 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
9088 _cpp_get_directive_token, find_position,
9089 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
9090 (maybe_macroexpand, _cpp_lex_token): New functions.
9091
9092 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
9093 parse_goto_mark): Delete.
9094 (_cpp_handle_eof): New function.
9095 (_cpp_handle_directive): Rename from handle_directive.
9096 (_cpp_output_line_command): Rename from output_line_command.
9097 (do_if, do_elif): Call _cpp_parse_expr directly.
9098 * cppfiles.c (_cpp_read_include_file): Don't call
9099 init_input_buffer here.
9100 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
9101 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
9102 here; pop the token_buffer and skip the rest of the line here.
9103 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
9104 here.
9105
9106 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
9107 Define here.
9108 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
9109 CPP_GOTO_MARK): New macros.
9110 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
9111 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
9112 _cpp_read_and_prescan, _cpp_init_input_buffer,
9113 _cpp_grow_token_buffer, _cpp_get_directive_token,
9114 _cpp_handle_directive, _cpp_handle_eof,
9115 _cpp_output_line_command): Prototype them here.
9116 * cpplib.h (enum cpp_token): Add CPP_MACRO.
9117 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
9118 quote_string, output_line_command): Remove.
9119
9120 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
9121
9122 * stmt.c (expand_end_case): RANGE may be signed, and when checking
9123 whether it is too large we must also verify that it isn't negative.
9124
9125 2000-03-13 Jakub Jelinek <jakub@redhat.com>
9126
9127 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
9128 (movsi_zero_liveg0): Remove.
9129 (movsf_insn_novis_liveg0): Remove.
9130 (negsi2): Remove.
9131 (negsi2_not_liveg0): Rename to negsi2.
9132 (one_cmplsi2): Remove.
9133 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
9134 (one_cmplsi2_liveg0): Remove.
9135 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
9136 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
9137 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
9138 (PREDICATE_CODES): Remove zero_operand.
9139 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
9140 TARGET_BROKEN_SAVERESTORE.
9141 (zero_operand): Remove.
9142 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
9143 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
9144 options.
9145 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9146 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
9147 TARGET_BROKEN_SAVERESTORE): Remove.
9148 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9149 Remove.
9150 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9151 Remove.
9152 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
9153 Remove.
9154
9155 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
9156
9157 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
9158
9159 * cpplib.c (do_pragma_implementation): Fix off-by-one error
9160 truncating a string. Don't assume tokens are nul terminated.
9161 Problem noted by Andreas Jaeger <aj@suse.de>
9162
9163 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
9164
9165 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
9166 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
9167 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
9168
9169 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
9170
9171 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
9172 STRUCTURE_SIZE_BOUNDARY.
9173
9174 2000-03-13 Mark Mitchell <mark@codesourcery.com>
9175
9176 * tree.h (record_layout_info_s): New structure.
9177 (record_layout_info): New type.
9178 (new_record_layout_info): New function.
9179 (layout_field): Likewise.
9180 (finish_record_layout): Likewise.
9181 * stor-layout.c (layout_record): Remove.
9182 (new_record_layout_info): New function.
9183 (layout_field): New function, broken out from layout_record.
9184 (finalize_record_size): Likewise.
9185 (compute_record_mode): Likewise.
9186 (finalize_type_size): New function, broken out from layout_type.
9187 (finish_record_layout): Likewise.
9188 (layout_type): Use them.
9189
9190 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9191
9192 * cpphash.c: Don't include version.h.
9193 (special_symbol) [case T_VERSION]: Look for the string in
9194 hp->value.cpval; don't use version_string.
9195 * cppinit.c (initialize_builtins): Set hp->value.cpval for
9196 __VERSION__ to version_string.
9197 * Makefile.in (cpphash.o): Update deps.
9198
9199 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
9200
9201 Convert cpplib to use libiberty/hashtab.c.
9202
9203 * cpplib.h (struct cpp_reader): Make hashtab and
9204 all_include_files of type 'struct htab *'. Delete HASHSIZE
9205 and ALL_INCLUDE_HASHSIZE macros.
9206
9207 * cpphash.h: Update prototypes.
9208 (struct hashnode): Remove next, prev, and bucket_hdr members.
9209 Make length a size_t. Add hash member.
9210 (struct ihash): Remove next member. Add hash member. Make
9211 name a flexible array member.
9212
9213 * cppfiles.c: Include hashtab.h.
9214 (include_hash): Delete.
9215 (IHASHSIZE): New macro.
9216 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
9217 (cpp_included): Do the hash lookup here.
9218 (_cpp_find_include_file): Rewrite.
9219 (cpp_read_file): Put the "fake" hash entry into the hash
9220 table. Honor the control_macro, if it turns out we've seen
9221 the file before. Don't push the buffer here.
9222 (_cpp_read_include_file): Push the buffer here.
9223 (OMODES): New macro. Use it whenever we call open(2).
9224
9225 * cpphash.c: Include hashtab.h.
9226 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
9227 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
9228 _cpp_lookup_slot): New functions.
9229 (HASHSIZE): new macro.
9230 (hashf, _cpp_install, _cpp_delete_macro): Delete.
9231 (_cpp_lookup): Use hashtab.h routines.
9232
9233 * cppinit.c: Include hashtab.h.
9234 (cpp_reader_init): Call _cpp_init_macro_hash and
9235 _cpp_init_include_hash. Don't allocate hashtab directly.
9236 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
9237 pfile->all_include_files.
9238 (initialize_builtins): Use _cpp_make_hashnode and
9239 htab_find_slot to add hash entries.
9240 (cpp_finish): Just call _cpp_dump_macro_hash.
9241 * cpplib.c: Include hashtab.h.
9242 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
9243 create hash entries.
9244 (do_pragma_poison, do_assert): Likewise.
9245 (do_include): Don't push the buffer here. Don't increment
9246 system_include_depth unless _cpp_read_include_file succeeds.
9247 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
9248 or htab_remove_elt.
9249 (do_pragma_implementation): Use alloca to create copy.
9250
9251 * Makefile.in: Update dependencies.
9252
9253 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9254
9255 * cppinit.c (cl_directive_handler): More K&R fixing.
9256
9257 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
9258
9259 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
9260 STACK_BOUNDARY.
9261 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
9262
9263 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9264
9265 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
9266 Change from char[] to macros.
9267
9268 2000-03-12 Neil Booth <NeilB@earthling.net>
9269
9270 * cppinit.c (cpp_start_read): Update indirect function
9271 call to K&R C.
9272
9273 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
9274
9275 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
9276 entry.
9277
9278 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9279 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
9280
9281 2000-03-11 Neil Booth <NeilB@earthling.net>
9282
9283 * cppinit.c (struct pending option): Replace undef with a
9284 pointer to a directive handling routine.
9285 (struct cpp_pending): Replace separate assert_ and define_
9286 lists with one directive_ list.
9287 (new_pending_define): Rename new_pending_directive. Extra
9288 argument is the directive's handling routine.
9289 (handle_option): Update to use new_pending_directive.
9290
9291 2000-03-11 Neil Booth <NeilB@earthling.net>
9292
9293 * cppfiles.c (file_cleanup, _cpp_find_include_file,
9294 remap_filename, _cpp_read_include_file, actual_directory,
9295 hack_vms_include_specification): Replace bcopy(), index() etc
9296 calls. Add casts to some allocations. Make some variables
9297 pointers to const [unsigned] char.
9298 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
9299 collect_formal_parameters): Similarly.
9300 * cppinit.c (struct pending_option, append_include_chain,
9301 cpp_options_init, cpp_reader_init, initialize_standard_includes,
9302 cpp_start_read, new_pending_define, handle_option): Similarly.
9303 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
9304 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
9305 do_pragma_implementation, detect_if_not_defined,
9306 do_ifdef, skip_if_group, cpp_get_token, parse_string,
9307 do_assert, do_unassert): Similarly.
9308 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
9309 function prototypes.
9310 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
9311
9312 2000-03-10 Richard Henderson <rth@cygnus.com>
9313
9314 * builtins.c (expand_builtin_strlen): Revert last change.
9315 Use emit_insn_before if we're at the beginning of a sequence.
9316
9317 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
9318
9319 * builtins.c (expand_builtin_strlen): Make sure that we have something
9320 at the beginning of the sequence.
9321
9322 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
9323 deferred inlines.
9324
9325 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
9326
9327 2000-03-10 Richard Henderson <rth@cygnus.com>
9328
9329 * except.c (can_throw): Use INTVAL on a CONST_INT.
9330 (reachable_handlers): Likewise.
9331 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
9332
9333 2000-03-10 Andreas Jaeger <aj@suse.de>
9334
9335 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9336 MD_STARTFILE_PREFIX since those are not needed on linux.
9337 (ASM_FILE_START): New, from mips/gnu.h.
9338
9339 2000-03-09 Richard Henderson <rth@cygnus.com>
9340 Alex Samuel <samuel@codesourcery.com> and others
9341
9342 * Makefile.in (ssa.o): New rule.
9343 (OBJS): Add ssa.o.
9344 (STAGESTUFF): Add *.ssa and *.ussa.
9345 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9346 * rtl.def (PHI): New RTL expression.
9347 * rtl.h (clear_log_links): New declaration.
9348 (convert_to_ssa): Likewise.
9349 (convert_from_ssa): Likewise.
9350 * flow.c (split_edge): If the entry node falls through to the
9351 split edge's source block, split the entry edge.
9352 (clear_log_links): New function.
9353 * toplev.c (ssa_dump): New variable.
9354 (flag_ssa): Likewise.
9355 (f_options): Add "ssa".
9356 (compile_file): Create SSA dump files.
9357 (rest_of_compilation): Go to and from SSA if enabled.
9358 (decide_d_option): Handle -de for SSA dump files.
9359 * ssa.c: New file.
9360
9361 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
9362
9363 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9364 same as VAR_DECL.
9365
9366 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
9367
9368 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9369
9370 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
9371
9372 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9373 (MD_STARTFILE_PREFIX_1): New macro.
9374
9375 2000-03-09 Robert Lipe <robertl@sco.com>
9376
9377 * config/ia64/ia64.c: Include system.h.
9378
9379 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9380
9381 * except.c (nothrow_function_p): If -fno-exceptions, just return.
9382 (init_eh_nesting_info): Likewise.
9383
9384 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9385 (TREE_NOTHROW): Rename from TREE_RAISES.
9386 * toplev.c (rest_of_compilation): Set it.
9387 * print-tree.c (print_node): Adjust.
9388 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9389 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9390 * calls.c (emit_call_1): Add 'nothrow' parm. Add
9391 REG_EH_REGION note as appropriate.
9392 (libfunc_nothrow): New fn.
9393 (emit_library_call, emit_library_call_value): Use it.
9394 (expand_call): Check TREE_NOTHROW.
9395
9396 * varasm.c (make_decl_rtl): Skip initial '*' when setting
9397 DECL_ASSEMBLER_NAME.
9398
9399 2000-03-09 Andreas Jaeger <aj@suse.de>
9400
9401 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9402 (TARGET_MEM_FUNCTIONS): Define.
9403
9404 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9405
9406 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9407
9408 * except.c (can_throw): See through a SEQUENCE.
9409 (nothrow_function_p): New fn.
9410 * except.h: Declare it.
9411 * function.c (current_function_nothrow): New var.
9412 (prepare_function_start): Initialize it.
9413 * output.h: Declare it.
9414 * toplev.c (rest_of_compilation): Set it.
9415 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9416
9417 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
9418
9419 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9420 match. (cpp_compare_defs): Count the nul separator when
9421 advancing over argument names.
9422
9423 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
9424
9425 * recog.c (preprocess_constraints): Matching constraints affect
9426 same alternative/different operand, not same operand/different
9427 alternative.
9428
9429 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9430 register and a constant specially.
9431
9432 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9433
9434 * libgcc2.h: New file.
9435 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9436
9437 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
9438
9439 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9440 * configure: Regenerate.
9441 * config/ia64: New.
9442
9443 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9444
9445 * Makefile.in (LIBCPP_DEPS): New macro.
9446 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9447 it to declare deps.
9448 * cpperror.c: Include cpphash.h.
9449 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
9450 dingleberry.
9451 (lex): Don't use CPP_WARN_UNDEF.
9452 (_cpp_parse_expr): Return an int, the truth value.
9453 * cppfiles.c: Include cpphash.h.
9454 (_cpp_merge_include_chains): Move to cppinit.c and make static.
9455 * cppinit.c (include_defaults_array): Disentangle.
9456 (cpp_cleanup): Don't free the if stack here.
9457 (cpp_finish): Pop off all buffers, not just one.
9458 * cpplib.c (eval_if_expr): Return int.
9459 (do_xifdef): Rename do_ifdef.
9460 (handle_directive): Don't use CPP_PREPROCESSED.
9461 (cpp_get_token): Don't use CPP_C89.
9462 * fix-header.c: Don't use CPP_OPTIONS.
9463
9464 * cpplib.h: Move U_CHAR, enum node_type, struct
9465 file_name_list, struct ihash, is_idchar, is_idstart,
9466 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9467 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9468 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9469 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9470 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9471 of _cpp_simplify_pathname, _cpp_find_include_file,
9472 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9473 Move struct if_stack to cpplib.c. Move struct cpp_pending to
9474 cppinit.c.
9475 Change all uses of U_CHAR to be unsigned char instead.
9476 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9477
9478 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9479
9480 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9481 (dwarf2out_begin_prologue): Set it.
9482 (output_call_frame_info): Don't emit EH unwind info for leaves.
9483
9484 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9485 can occur outside of an EH region.
9486 * except.c: Correct comments about rethrow behavior.
9487 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9488
9489 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
9490
9491 * flow.c (make_edges): Always call make_eh_edge for calls.
9492
9493 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9494
9495 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9496 (struct cpp_buffer): Remove fname and underflow fields.
9497 (struct cpp_reader): Remove get_token field.
9498 (struct include_hash): Rename to struct ihash. Add typedef to
9499 IHASH.
9500 (struct if_stack): Remove fname field.
9501 (IF_STACK_FRAME): Rename to IF_STACK.
9502
9503 * cpperror.c (print_containing_files): Trust that there are no
9504 macro buffers below the top file buffer.
9505 * cppfiles.c: Replace all references to 'struct include_hash'
9506 with 'IHASH'. Rename initialize_input_buffer to
9507 init_input_buffer. Don't set or reference cpp_buffer->fname,
9508 use buffer->ihash->name instead.
9509 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
9510 not CPP_NULL_BUFFER.
9511 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9512 IF_STACK_FRAME, IHASH not struct include_hash.
9513 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
9514 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
9515 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
9516 references to cpp_buffer->fname (delete entirely, or use
9517 ->ihash->name instead) and IF_STACK->fname.
9518 (cpp_push_buffer): Don't set new->underflow.
9519 (do_include): Use cpp_file_buffer.
9520
9521 * cpphash.c (collect_formal_parameters): Remove duplicate
9522 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
9523 used as a macro argument name. Don't append "..." to namebuf
9524 for varargs macros. After we're done scanning, go through
9525 namebuf and make it NUL separated, not comma separated.
9526 (_cpp_compare_defs): Remove register tag from variables.
9527 Expect defn->argnames to be NUL separated.
9528 (_cpp_dump_definition): Expect defn->argnames to be NUL
9529 separated and in forward order.
9530 * cpphash.h: Update documentation of argnames field.
9531
9532 2000-03-08 Richard Henderson <rth@cygnus.com>
9533
9534 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9535 to fail. Don't pre-expand the source operand.
9536
9537 * i386.md (strlensi): Initialize eoschar and align before use.
9538
9539 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9540
9541 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9542 CONSTRUCTOR element.
9543
9544 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
9545
9546 * mips.c (mips_expand_prologue): If the last
9547 named argument is the vararg marker "va_list", treat it as
9548 an unnamed argument.
9549
9550 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
9551
9552 * dbxout.c (dbxout_parms): When correcting for promoted
9553 big-endian parameters, use the mode of the DECL_RTL rather
9554 than UNITS_PER_WORD.
9555
9556 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
9557
9558 * c-common.h (make_fname_decl): Declare.
9559 * c-common.c (make_fname_decl): Define.
9560 (declare_hidden_char_array): Remove.
9561 (declare_function_name): Use make_fname_decl.
9562 * c-decl.c (c_make_fname_decl): New function.
9563 (init_decl_processing): Set make_fname_decl.
9564
9565 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
9566
9567 * cccp.c (handle_directive): Initialize backslash_newlines_p.
9568
9569 2000-03-07 Philipp Thomas <pthomas@suse.de>
9570
9571 * po/POTFILES.in: Remove cppalloc.c from file list.
9572
9573 2000-03-07 Steve Chamberlain <sac@pobox.com>
9574
9575 * pj.c (pj_expand_prologue): current_function->args_info is
9576 now current_function_args_info.
9577
9578 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9579 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9580 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9581
9582 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9583
9584 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9585 output as hexadecimal rather than the default octal.
9586
9587 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9588
9589 * cpphash.c (special_symbol): Fix thinko in previous commit.
9590
9591 2000-03-07 Neil Booth <NeilB@earthling.net>
9592
9593 * cppexp.c (struct operation, left_shift, right_shift,
9594 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9595 "int"s to "unsigned int"s.
9596 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9597 Similarly.
9598 * cpplib.h: Update for above.
9599 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9600 returned from allocations.
9601
9602 * cppinit.c (opt_comp, parse_options): New functions.
9603 (handle_option): Use parse_option to parse a single command
9604 line option, that possibly takes an argument.
9605 (cpp_handle_options): Sort the array of command line options on
9606 first invocation (non-ASCII hosts only).
9607 (print_help): Update.
9608
9609 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9610
9611 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9612 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
9613
9614 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9615 initialized.
9616 * cppinit.c (cpp_cleanup): Free imp->nshort also.
9617
9618 * cpperror.c (cpp_print_containing_files,
9619 cpp_print_file_and_line, v_cpp_message): Rename to
9620 print_containing_files, print_file_and_line, and v_message.
9621 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9622 to _cpp_parse_expr, parse_escape, and lex.
9623 (parse_charconst): Remove broken multibyte support.
9624 * cppfiles.c (include_hash): Make static.
9625 (cpp_included): New function.
9626 (merge_include_chains, find_include_file, finclude,
9627 simplify_pathname): Rename to _cpp_merge_include_chains,
9628 _cpp_find_include_file, _cpp_read_include_file, and
9629 _cpp_simplify_pathname.
9630 * cpphash.c (cpp_lookup, free_definition, delete_macro,
9631 cpp_install, create_definition, macroexpand, compare_defs,
9632 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9633 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9634 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9635 * cppinit.c (cpp_handle_option): Rename to handle_option, make
9636 static.
9637 * cpplib.c: Remove extern prototype of cpp_parse_expr.
9638
9639 * cpphash.h: Update prototypes.
9640 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
9641
9642 2000-03-07 Andrew Haley <aph@cygnus.com>
9643
9644 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9645 PTRDIFF_TYPE should be based solely on Pmode.
9646 (SIZE_TYPE): ditto.
9647
9648 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9649
9650 * rtl.h (rtunion_def): Constify member `rtstr'.
9651 (emit_line_note_after, emit_line_note, emit_line_note_force,
9652 emit_note, decode_asm_operands): Constify.
9653
9654 * cse.c (canon_hash): Likewise.
9655
9656 * dbxout.c (dbxout_block): Likewise.
9657
9658 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9659 v_warning_for_asm): Likewise.
9660
9661 * dwarfout.c (function_start_label): Likewise.
9662
9663 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9664 emit_line_note_force): Likewise.
9665
9666 * final.c (last_filename, asm_insn_count, final_scan_insn,
9667 output_source_line): Likewise.
9668
9669 * function.h (struct emit_status): Likewise.
9670
9671 * gcse.c (hash_expr_1): Likewise.
9672
9673 * genattr.c (gen_attr, main): Likewise.
9674
9675 * genattrtab.c (struct function_unit, current_alternative_string,
9676 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9677 attr_numeral, check_attr_test, check_attr_value,
9678 convert_set_attr_alternative, convert_set_attr,
9679 compute_alternative_mask, simplify_by_exploding, gen_attr,
9680 gen_unit): Likewise.
9681
9682 * genflags.c (gen_insn): Likewise.
9683
9684 * gengenrtl.c (type_from_format): Likewise.
9685
9686 * genopinit.c (gen_insn): Likewise.
9687
9688 * genoutput.c (n_occurrences, process_template, process_template):
9689 Likewise.
9690
9691 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9692 Likewise.
9693
9694 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9695 Likewise.
9696
9697 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9698 ggc_set_mark, ggc_get_size): Likewise.
9699
9700 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9701
9702 * optabs.c (init_one_libfunc): Likewise.
9703
9704 * output.h (assemble_start_function): Likewise.
9705
9706 * recog.c (decode_asm_operands): Likewise.
9707
9708 * toplev.c (rest_of_compilation): Likewise.
9709
9710 * tree.h (emit_line_note_after, emit_line_note,
9711 emit_line_note_force): Likewise.
9712
9713 * varasm.c (asm_output_bss, asm_output_aligned_bss,
9714 asm_emit_uninitialised, assemble_start_function,
9715 assemble_variable, const_hash, compare_constant_1,
9716 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9717
9718 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9719
9720 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9721
9722 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9723
9724 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9725
9726 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9727 arm_dllimport_name_p): Likewise.
9728
9729 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9730 Likewise.
9731
9732 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9733
9734 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9735
9736 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9737 arm_mark_dllexport, arm_mark_dllimport,
9738 arm_pe_encode_section_info): Likewise.
9739
9740 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9741 ASM_FINISH_DECLARE_OBJECT): Likewise.
9742
9743 * arm/thumb.c (thumb_function_prologue): Likewise.
9744
9745 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9746
9747 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9748
9749 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9750
9751 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9752
9753 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9754
9755 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9756
9757 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9758 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9759
9760 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9761
9762 * i386/i386.c (asm_output_function_prefix): Likewise.
9763
9764 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9765
9766 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9767
9768 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9769
9770 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9771 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9772 ASM_OUTPUT_SECTION_NAME): Likewise.
9773
9774 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9775
9776 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9777
9778 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9779
9780 * m32r/m32r.c (m32r_encode_section_info): Likewise.
9781
9782 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9783
9784 * mcore/mcore.c (mcore_encode_section_info): Likewise.
9785
9786 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9787
9788 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9789
9790 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9791
9792 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9793
9794 * mips/mips.md (movdi, movsi): Likewise.
9795
9796 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9797
9798 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9799
9800 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9801
9802 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9803 ASM_OUTPUT_ASCII): Likewise.
9804
9805 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9806 output_mi_thunk, output_toc): Likewise.
9807
9808 * rs6000/rs6000.md (movsi): Likewise.
9809
9810 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9811
9812 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9813
9814 * v850/v850.c (print_operand, print_operand_address,
9815 v850_encode_data_area): Likewise.
9816
9817 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
9818
9819 * config/mips/mips.md (zero_extendsidi2): Always force operand
9820 one to memory for mips16.
9821
9822 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9823
9824 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9825 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9826 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9827 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9828 (min_precision): Result is unsigned.
9829 (add_double, neg_double, mul_double): Low word is unsigned.
9830 (lshift_double, rshift_double, lrotate_double): Likewise.
9831 (rrotate_double, div_and_round_double): Likewise.
9832 (tree_floor_log2, compare_tree_int): New functions.
9833 (preserve_rtl_expr_temps): New declaration.
9834 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9835 (decl_attributes): Use tree_log2 to find alignment.
9836 Check for TREE_INT_CST_HIGH for format args.
9837 (min_precision): Now unsigned.
9838 Use tree_floor_log2.
9839 (truthvalue_conversion): Delete long-disabled code.
9840 * c-decl.c (finish_struct): Clean up tests on field width.
9841 (finish_function): Use compare_tree_int.
9842 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
9843 * c-typeck.c (comptypes): Use tree_int_cst_equal.
9844 (default_conversion, digest_init): Use compare_tree_int.
9845 (build_binary_op): Use integer_all_onesp and compare_tree_int.
9846 Fix type errors in forming masks.
9847 * calls.c (initialize_argument_information): Use compare_tree_int.
9848 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9849 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
9850 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
9851 (store_field): Use compare_tree_int.
9852 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
9853 (expand_expr, case ARRAY_REF): Use compare_tree_int.
9854 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
9855 (do_store_flag): Use compare_tree_int.
9856 * fold-const.c (encode, decode): Low part is always unsigned.
9857 (force_fit_type, add_double, neg_double, mul_double): Likewise.
9858 (lshift_double, rshift_double, lrotate_double): Likewise.
9859 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
9860 (fold_convert): Use compare_tree_int.
9861 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
9862 (invert_truthvalue, case INTEGER_CST): Likewise.
9863 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
9864 * mkdeps.c (deps_dummy_targets): Make I unsigned.
9865 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
9866 (lshift_double, rshift_double, lrotate_double, rrotate_double):
9867 Likewise.
9868 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
9869 (expand_end_case): Use compare_tree_int.
9870 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9871 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
9872 (layout_decl): Likewise.
9873 (layout_record, layout_union): Make sizes unsigned.
9874 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
9875 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
9876 * tree.c (struct type_hash): hashcode is unsigned.
9877 (build_type_attribute_variant, type_hash_list): Likewise.
9878 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
9879 (attribute_hash_list, build_array_type, build_method_type): Likewise.
9880 (build_complex_type): Likewise.
9881 (real_value_from_int_cst): Remove unneeded casts.
9882 (integer_all_onesp): Add casts.
9883 (tree_floor_log2, compare_tree_int): New functions.
9884 (build_index_type): Use tree_int_cst_sgn.
9885 * varasm.c (assemble_variable): Use compare_tree_int.
9886
9887 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
9888
9889 * cpphash.c (collect_expansion): Also catch ## at start of macro.
9890
9891 * varasm.c (make_decl_rtl): Don't add a number to members of
9892 local classes.
9893 (make_function_rtl): Likewise.
9894
9895 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9896
9897 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
9898 patch from 2000-01-28.
9899
9900 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
9901
9902 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
9903 filled with an insn from the jump target.
9904
9905 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9906
9907 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
9908 (c4x_external_ref): Likewise.
9909 * config/c4x/c4x.c (struct name_list): Likewise.
9910
9911 1999-12-16 Ben Collins <bcollins@debian.org>
9912
9913 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
9914 argument to genmultilib.
9915 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
9916 the contents into the multilib.h header.
9917 * gcc.c: Declare multilib_exclusions for the specs file.
9918 (set_multilib_dir): Use it.
9919 (print_multilib_info): Likewise.
9920 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
9921 to pass to genmultilib.
9922
9923 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9924
9925 * builtins.c (built_in_class_names, built_in_names): Constify a
9926 char*.
9927
9928 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
9929 int.
9930 (_mcleanup): Ensure value matches format specifier in sprintf.
9931
9932 * cpphash.c (special_symbol): Don't needlessly cast away
9933 const-ness.
9934
9935 * cppinit.c (base_name): Delete unused prototype.
9936
9937 * mkdeps.c (deps_init): Make definition K&R safe.
9938
9939 * tree.h (built_in_class_names, built_in_names): Constify a
9940 char*.
9941
9942 2000-03-06 Jakub Jelinek <jakub@redhat.com>
9943
9944 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
9945 floating point instructions for epilogue delay.
9946
9947 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
9948 to gas if it supports .register pseudo.
9949
9950 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
9951 LONG_DOUBLE_TYPE_SIZE if not defined.
9952 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
9953 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
9954 * real.c: Likewise.
9955 * gengenrtl.c: Likewise.
9956 * print-rtl.c: Likewise.
9957 * rtl.c: Likewise.
9958 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
9959 MASK_LONG_DOUBLE_128.
9960 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
9961 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
9962 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
9963 (SUBTARGET_SWITCHES): Define.
9964 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
9965 with -mlong-double-128.
9966 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9967 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9968 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9969 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
9970 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
9971 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
9972 with -mlong-double-128.
9973 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9974 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9975 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9976 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
9977 TARGET_LONG_DOUBLE_128): Define.
9978 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
9979 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
9980 long double on TARGET_ARCH64.
9981
9982 2000-03-06 Mark Mitchell <mark@codesourcery.com>
9983
9984 * function.c (free_temps_for_rtl_expr): Don't free slots
9985 that have been pushed into a higher level.
9986
9987 Revert this patch:
9988 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9989
9990 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9991
9992 * basic-block.h (ALLOCA_REG_SET): Remove.
9993 (INITIALIZE_REG_SET): New macro.
9994 * flow.c (update_life_info): Use it.
9995 (calculate_global_regs_live): Likewise.
9996 (propagate_block): Likewise.
9997 * global.c (build_insn_chain): Likewise.
9998 * haifa-sched.c (schedule_region): Likewise.
9999
10000 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
10001
10002 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
10003 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
10004 (DWARF_ARANGES_PAD_SIZE): New define.
10005 (output_aranges): Use it to pad the address range header.
10006 (DWARF_ROUND): Fix for non power of 2 rounding.
10007
10008 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
10009
10010 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
10011
10012 2000-03-05 Mark Mitchell <mark@codesourcery.com>
10013
10014 * tree.def (RTL_EXPR): Update documentation.
10015 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
10016 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
10017 * function.c (preserve_rtl_expr_temp): New function.
10018 (preserve_rtl_expr_temps): Likewise.
10019 (preserve_rtl_expr_result): Use it.
10020
10021 Revert this patch:
10022 2000-03-04 Mark Mitchell <mark@codesourcery.com>
10023
10024 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
10025
10026 * regmove.c (copy_src_to_dest) Do not create src->dest move
10027 for unchanging destination.
10028
10029 2000-03-04 Mark Mitchell <mark@codesourcery.com>
10030
10031 * function.h (struct sequence_stack): Remove rtl_expr.
10032 (struct emit_staus): Likewise.
10033 (seq_rtl_expr): Remove.
10034 * tree.h (free_temps_for_rtl_expr): Don't declare.
10035 (start_sequence_for_rtl_expr): Likewise.
10036 * rtl.h (preserve_rtl_expr_result): Likewise.
10037 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
10038 (start_sequence_for_rtl_expr): Remove.
10039 (push_topmost_sequence): Don't save sequence_rtl_expr.
10040 (pop_topmost_sequence): Remove comment about not restoring it.
10041 (end_sequence): Don't set seq_rtl_expr.
10042 (init_emit): Don't initialize it.
10043 (mark_sequence_stack): Don't mark it.
10044 (mark_emit_status): Likewise.
10045 * except.c (protect_with_terminate): Use
10046 start_sequence_for_rtl_expr, not start_sequence.
10047 * expr.c (expand_expr, case RTL_EXPR): Don't call
10048 preserve_rtl_expr_result or free_temps_for_rtl_expr.
10049 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
10050 (preserve_rtl_expr_result): Remove.
10051 (free_temps_for_rtl_expr): Likewise.
10052 (pop_temp_slots): Likewise.
10053 (mark_temp_slot): Don't mark the rtl_expr.
10054 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
10055 start_sequence_for_rtl_expr.
10056
10057 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
10058
10059 * mkdeps.c, mkdeps.h: New files.
10060 * po/POTFILES.in: Add them.
10061 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
10062 (cpplib.o, cppinit.o): Depend on mkdeps.h.
10063 (mkdeps.o): New target.
10064
10065 * cppfiles.c: Delete deps_output.
10066 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
10067 OBJECT_SUFFIX, and base_name.
10068 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
10069 the include hash.
10070 (initialize_dependency_output): Use deps_init,
10071 deps_add_target, deps_calc_target, and deps_add_dep. Remove
10072 all the unnecessary string bashing.
10073 (cpp_finish): Use deps_write. Remove an unnecessary nesting
10074 level.
10075 * cpplib.c (do_include): Use deps_add_dep.
10076 * cpplib.h (struct cpp_reader): Replace deps_buffer,
10077 deps_allocated_size, deps_size, deps_column members with
10078 single pointer to a struct deps. Delete prototype of
10079 deps_output.
10080
10081 * cppinit.c: Fix thinko in previous patch.
10082
10083 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10084
10085 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
10086 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
10087 (mode_for_size_tree): New function.
10088 (layout_decl, layout_type): Call it and clean up BLKmode checks.
10089 * tree.h (mode_for_size_tree): New declaration.
10090
10091 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
10092
10093 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
10094
10095 * stmt.c (is_body_block): Move...
10096 * dwarfout.c, dwarf2out.c: ...from here.
10097 * tree.h: Declare it.
10098 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
10099 * final.c (final_start_function): Do call remove_unnecessary_notes
10100 when scheduling.
10101
10102 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10103
10104 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
10105
10106 * cpplib.h (_dollar_ok): New macro.
10107 (is_idchar, is_idstart): Use it.
10108 (IStable): Rename to _cpp_IStable. Declare it const if
10109 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
10110 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
10111 is_space): Update for renamed IStable.
10112
10113 * cppinit.c: Delete all references to FAKE_CONST and CAT
10114 macros. Define init_IStable as empty macro if gcc >=2.7 or
10115 C99. Change TABLE() to ISTABLE and hardcode name of table.
10116 (cpp_start_read): Don't change the IStable based on
10117 dollars_in_ident.
10118
10119 * cpphash.c (unsafe_chars): Add pfile argument. All callers
10120 changed. Handle '$' for char1 correctly.
10121 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
10122
10123 * cppexp.c (tokentab2): Make const.
10124 (cpp_lex): Make toktab const.
10125 * cppinit.c (include_defaults_array): Make const.
10126 (initialize_standard_includes): Make default_include const.
10127
10128 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10129
10130 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
10131 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
10132 (gen_decl_die): Likewise.
10133 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
10134 (output_decl): Likewise.
10135
10136 * varasm.c (make_function_rtl): If we change the name used in the
10137 rtl, update DECL_ASSEMBLER_NAME accordingly.
10138 (make_decl_rtl): Likewise.
10139
10140 * toplev.c (rest_of_compilation): Tweak formatting.
10141
10142 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
10143 remove_unnecessary_notes.
10144 (debug_ignore_block): New fn.
10145 * toplev.h: Declare it.
10146 * emit-rtl.c (remove_unncessary_notes): Call it.
10147 * dwarf2out.c (dwarf2out_ignore_block): New fn.
10148 * dwarf2out.h: Declare it.
10149 * final.c (final_start_function): Don't call remove_unnecessary_notes
10150 if we did insn scheduling.
10151
10152 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
10153
10154 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
10155 * cpplib.h: Delete SET_CPP_PEDANTIC.
10156
10157 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10158
10159 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
10160 result is a RECORD_TYPE.
10161
10162 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
10163
10164 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
10165
10166 2000-03-03 Richard Henderson <rth@cygnus.com>
10167
10168 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
10169 addition over compliments over shifts.
10170
10171 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10172
10173 * reload1.c (reload_combine_note_use): Handle return register USEs.
10174 REG case: Handle multi-hard-register hard regs.
10175
10176 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10177
10178 * md.texi: Document use of '*' in insn pattern name.
10179
10180 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
10181
10182 * calls.c (special_function_p): operator new may not be malloc-like.
10183
10184 * gcse.c (dump_hash_table): Really fix error in last change.
10185
10186 2000-03-02 Denis Chertykov <denisc@overta.ru>
10187
10188 * avr.c (print_operand): Use print_operand_address instead of
10189 output_addr_const.
10190 * avr/libgcc.S: Cleanup code.
10191
10192 2000-03-02 Richard Henderson <rth@cygnus.com>
10193
10194 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
10195
10196 2000-03-02 Mark Mitchell <mark@codesourcery.com>
10197
10198 * tree.h (TYPE_ALIGN_UNIT): New macro.
10199
10200 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
10201
10202 * i386.c: (constant_call_address_operand): Reject CONST_INT.
10203
10204 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
10205
10206 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
10207 for the buffer.
10208 (SET_CPP_PEDANTIC): New macro.
10209 * cpplib.c (do_include): Don't bother checking system_header_p.
10210 (do_warning, do_ident, do_assert, do_unassert): Likewise.
10211 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
10212
10213 * function.h (struct expr_status): Add x_arg_space_so_far.
10214 (arg_space_so_far): New macro.
10215 * expr.c (init_expr): Initialize it.
10216 * calls.c (emit_call_1): Reset it.
10217 (compute_argument_block_size, expand_call): Use it.
10218 (expand_call, store_one_arg): Increment it.
10219
10220 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10221
10222 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
10223 a UNION_TYPE.
10224
10225 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
10226
10227 * cppfiles.c (cpp_read_file): New function.
10228
10229 * cpphash.c (collect_expansion): Make sure to reset last_token
10230 to NORM when we hit a string. Handle trailing whitespace
10231 properly when the expansion is empty.
10232 (create_definition): Disable line commands while parsing the
10233 directive line.
10234 (dump_definition): If pfile->lineno == 0, output a line
10235 command ahead of the dump, and add a trailing newline.
10236
10237 * cppinit.c (append_include_chain): Add fifth argument, which
10238 indicates whether or not system headers are C++ aware.
10239 (initialize_standard_includes): New function,
10240 broken out of read_and_prescan. Pass 'cxx_aware' value from
10241 the include_defaults_array on to append_include_chain.
10242 (dump_special_to_buffer): Const-ify char array.
10243 (builtin_array): Don't dump __BASE_FILE__.
10244 (cpp_start_read): Use cpp_read_file. Reorder code for
10245 clarity. Don't output line commands here for -D/-A/-U
10246 switches. Don't call deps_output for files included with
10247 -include or -imacros.
10248
10249 * cpplib.c (do_define): Don't pay any attention to the second
10250 argument.
10251 (cpp_expand_to_buffer): Disable line commands while scanning.
10252 (output_line_command): Work in the file buffer.
10253 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
10254 Fix formatting of comments. Prototype cpp_read_file.
10255
10256 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10257
10258 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
10259 reference the language-equivalent of sizetype.
10260 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
10261 * fold-const.c (size_binop, size_diffop): Put back checks.
10262 * gcse.c (dump_hash_table): Fix minor error in last change.
10263 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
10264 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
10265 all sizetypes.
10266
10267 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
10268
10269 * calls.c (expand_call) Do not attempt to combine stack adjustments
10270 with inhibit_defer_pop set.
10271
10272 2000-03-01 Mark Mitchell <mark@codesourcery.com>
10273
10274 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
10275 the DECL_SIZE for a FIELD_DECL.
10276
10277 2000-03-01 Bruce Korb <bkorb@gnu.org>
10278
10279 * fixinc/inclhack.tpl: remove unused symlinks
10280 * fixinc/README: GCC Maintainer info
10281 * fixinc/inclhack.sh: regen
10282 * fixinc/fixincl.sh: regen
10283
10284 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
10285
10286 * cpphash.c (collect_expansion): Trim trailing white space
10287 from macro definitions, but don't go past the last insertion
10288 point.
10289
10290 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
10291
10292 * i386.md (mulqi3): New pattern.
10293
10294 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
10295
10296 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
10297 token types.
10298 (struct cpp_reader): Add parsing_if_directive and
10299 parsing_define_directive flags.
10300 (struct cpp_options): Remove output_conditionals flag.
10301 (check_macro_name): Delete prototype.
10302
10303 * cpphash.h (struct macrodef): Delete.
10304 (struct reflist): Separate from struct definition.
10305 (struct definition): Remove unused fields. Add column number.
10306 (create_definition): Returns a DEFINITION *. Takes a
10307 cpp_reader * and an int.
10308
10309 * cpphash.c (SKIP_WHITE_SPACE): Delete.
10310 (PEEKC): Copy defn from cpplib.c.
10311 (rest_extension, REST_EXTENSION_LENGTH): Delete.
10312 (struct arg): New.
10313 (struct arglist): Simplify.
10314 (collect_expansion): Rewrite. Get tokens by calling
10315 cpp_get_token. Add more error checking.
10316 (collect_formal_parameters): New function, broken out of
10317 create_definition and reworked to use get_directive_token.
10318 (create_definition): All real work is now in collect_expansion
10319 and collect_formal_parameters. do_define handles finding the
10320 macro name. Return a DEFINITION, not a MACRODEF.
10321 (macroexpand): Replace bcopy with memcpy throughout. Replace
10322 character-at-a-time copy loop with memcpy and pointer increments.
10323 (compare-defs): d1->argnames / d2->argnames might be null.
10324
10325 * cpplib.c (copy_rest_of_line): Delete function.
10326 (skip_rest_of_line): Do all the work ourselves.
10327 (skip_string): New function.
10328 (parse_string): Use skip_string.
10329 (get_macro_name): New function.
10330 (check_macro_name): Delete.
10331 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
10332 (cpp_skip_hspace): Use CPP_BUMP_LINE.
10333 (handle_directive): ICE if we're called on a macro buffer.
10334 (do_define): Determine macro name and type (funlike/objlike)
10335 here. Expunge all uses of MACRODEF.
10336 (cpp_push_buffer): Set line_base to NULL.
10337 (do_undef, read_line_number): Don't worry about getting a POP token.
10338 (eval_if_expression): Set/reset parsing_if_directive around
10339 cpp_parse_expr. Don't clear only_seen_white.
10340 (skip_if_group): Remove output_conditionals logic. Use
10341 skip_rest_of_line.
10342 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10343 tokens under appropriate conditions.
10344 (cpp_unassert): Call do_unassert not do_assert. Oops.
10345
10346 * cppexp.c (parse_defined): New function, break out of
10347 cpp_lex.
10348 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10349 ourselves, with cpp_defined.
10350 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10351
10352 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10353 * gcc.dg/strpaste-2.c: New.
10354
10355 2000-02-29 Mark Mitchell <mark@codesourcery.com>
10356
10357 * fold-const.c (size_binop): Don't asert inputs are the same and
10358 have TYPE_IS_SIZETYPE set.
10359 (size_diffop): Likewise.
10360
10361 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
10362
10363 * dwarfout.c (output_block): Output abstract blocks even if they
10364 don't have TREE_ASM_WRITTEN set.
10365
10366 * calls.c (emit_library_call): Check for null REG.
10367
10368 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
10369
10370 * c-decl.c (current_function_decl): Move to toplev.c.
10371 (init_decl_processing): Don't add current_function_decl as a ggc
10372 root here.
10373 * dbxout.c (dbxout_symbol): Change return type to int.
10374 (dbxout_symbol_location, dbxout_syms): Likewise.
10375 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10376 any locals. Use current_function_func_begin_label if set.
10377 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10378 * dwarf2out.c (dwarf2out_begin_prologue): Set
10379 current_function_func_begin_label.
10380 * final.c (final_start_function): Reset it.
10381 * toplev.c (current_function_decl): Define it here.
10382 (current_function_func_begin_label): New variable.
10383 (main): Add both as ggc roots.
10384 * tree.h (current_function_func_begin_label): Declare.
10385
10386 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10387
10388 * gcse.c: Cleanups throughout: mostly white-space, but also
10389 some minor rearrangement of code.
10390
10391 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
10392
10393 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10394 returns a PARALLEL. Use emit_group_load and use_group_regs
10395 as needed.
10396 (emit_library_call_value): Similarly.
10397
10398 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10399 * pa/quadlib.asm: Remove.
10400 * pa/quadlib.c: New file.
10401
10402 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10403 * configure: Rebuilt.
10404
10405 2000-02-29 Philip Blundell <pb@futuretv.com>
10406
10407 * config/arm/conix-elf.h: New file.
10408 * configure.in (arm*-*-conix*): New configuration.
10409 * configure: Regenerate.
10410
10411 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
10412
10413 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10414 don't have TREE_ASM_WRITTEN set.
10415
10416 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10417
10418 * Eliminate DECL_FIELD_SIZE.
10419 * builtins.c (built_in_class_names, built_in_names): New variables.
10420 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10421 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10422 DECL_SIZE, not DECL_FIELD_SIZE.
10423 * print-tree.c (print_node): Remove code that prints extra blank
10424 lines in some cases.
10425 Properly handle inline and builtin function cases.
10426 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10427 * tree.h (built_in_class_named, built_in_names): New declarations.
10428 (union tree_decl): Rename internal unions to u1 and u2 and change
10429 some of their components.
10430 Add new field built_in_class.
10431 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10432 Reflect above changes.
10433 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10434 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10435 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10436 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10437
10438 2000-02-28 Dmitri Makarov <dim@windriver.com>
10439
10440 * extend.texi: Document ARM's support for long/short calls.
10441
10442 * invoke.texi: Document ARM's -mlong-calls command line switch.
10443
10444 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10445 (arm_encode_call_attribute): Add prototype.
10446 (arm_set_default_type_attribute): Add prototype.
10447 (arm_strip_name_encoding): Add prototype.
10448
10449 * config/arm/arm.c (arm_init_cumulative_args): replace
10450 initialisation og 'long_calls' field with initialisation of
10451 'call_cookie' field.
10452 (enum arm_pragma_enum): New enum.
10453 (arm_pragma_long_calls): New static variable.
10454 (arm_process_pragma): Also process "#pragma long_calls_off".
10455 (arm_valid_type_attribute_p): Accept short_call attribute.
10456 (arm_comp_type_attributes): Check long/short call attributes.
10457 (arm_encode_call_attribute): New function: Encode long_call
10458 or short_call attribute in function name.
10459 (arm_set_default_type_attributes): New function: Assign
10460 default attributes to newly defined type.
10461 (current_file_function_operand): New function: Return true if
10462 the symbol is a function which has already been compiled.
10463 (arm_is_longcall_p): New function: Return true if the
10464 indicated function should be called via a long call.
10465 (arm_get_strip_length): New function. Returns number of
10466 prefix characters to be stripped from a function's name.
10467 (arm_strip_name_encoding): New function. Strip prefix characters
10468 from a function's name.
10469
10470 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10471 with 'call_cookie'.
10472 (SHORT_CALL_FAG_CHAR): Define.
10473 (LONG_CALL_FAG_CHAR): Define.
10474 (ENCODED_SHORT_CALL_ATTR_P): Define.
10475 (ENCODED_LONG_CALL_ATTR_P): Define.
10476 (ARM_NAME_ENCODING_LENGTHS): Define.
10477 (STRIP_NAME_ENCODING): Define.
10478 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10479 (ARM_ENCODE_CALL_TYPE): Define.
10480 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10481 (ARM_DECLARE_FUNCTION_SIZE): Define.
10482 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10483
10484 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10485 if a long call is needed.
10486 (call_value): Ditto.
10487 (call_symbol): Ditto.
10488
10489 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10490 ARM_DECLARE_FUNCTION_SIZE.
10491
10492 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10493 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10494 (ARM_STRIP_NAME_ENCODING): Undefine.
10495 (STRIP_NAME_ENCODING): Undefine.
10496 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10497 (ASM_DECLARE_FUNCTION_NAME): Ditto.
10498 (ASM_OUTPUT_COMMON): Ditto.
10499 (ASM_DECLARE_OBJECT_NAME): Ditto.
10500
10501 * config/arm/pe.c (arm_dllexport_name_p): Check for
10502 ARM_PE_FLAG_CHAR.
10503 (arm_dllimport_name_p): Ditto.
10504 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10505 (arm_mark_dllimport): Ditto.
10506
10507 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10508
10509 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10510
10511 2000-02-28 Mark Mitchell <mark@codesourcery.com>
10512
10513 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10514
10515 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
10516
10517 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10518 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10519 NO_BUILTIN_WCHAR_TYPE is not defined.
10520 (CPP_WCHAR_TYPE): Delete.
10521 * cccp.c (main): Don't change wchar_type if cplusplus.
10522 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10523
10524 2000-02-28 Nick Clifton <nickc@cygnus.com>
10525
10526 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10527
10528 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
10529
10530 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10531 (ASM_WEAKEN_LABEL): Define.
10532
10533 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
10534
10535 * expr.c (store_constructor): Do not emit USE.
10536 * rtl.h (stupid_life_analysis): Remove.
10537
10538 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10539
10540 * function.c (number_blocks): Reset next_block_index based on
10541 what debugging format is used, not what is defined.
10542
10543 * lcm.c: Minor reformatting throughout.
10544 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10545
10546 * toplev.c (rest_of_compilation): Account for time in
10547 optimize_mode_switching.
10548
10549 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10550 if only marking labels.
10551
10552 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
10553
10554 * calls.c (expand_call): Attempt to combine stack adjustments with
10555 pending stack adjustments.
10556
10557 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10558
10559 * loop.c (reg_in_basic_block_p): Don't abort when falling through
10560 to the end of the function.
10561
10562 2000-02-27 Mark Mitchell <mark@codesourcery.com>
10563
10564 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10565 blocks.
10566 * final.c (next_block_index): Remove.
10567 (max_block_depth): Likewise.
10568 (pending_blocks): Likewise.
10569 (init_final): Don't initialize them.
10570 (final_start_function): Don't set next_block_index. Set up
10571 BLOCK_NUMBER.
10572 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10573 * function.h (number_blocks): New function.
10574 * function.c (get_block_vector): New function.
10575 (identify_blocks): Use it.
10576 (reorder_blocks): Set NOTE_BLOCK.
10577 (number_blocks): New function.
10578 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10579 * tree.h (BLOCK_NUMBER): New macro.
10580 (tree_block): Add block_num field.
10581 * dbxout.c (next_block_number): Remove.
10582 (dbxout_init): Don't set it.
10583 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10584 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
10585 block numbers.
10586 * toplev.c (rest_of_compilation): Always call
10587 find_loop_tree_blocks. Fix indentation.
10588 * dwarf2out.c (next_block_number): Remove.
10589 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10590 to determine block numbers.
10591 (gen_inlined_subroutine_die): Likewise.
10592 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10593 (decls_for_scope): Don't increment next_block_number.
10594 * dwarfout.c (next_block_number): Remove.
10595 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10596 to determine block numbers.
10597 (output_inlined_subroutine_die): Likewise.
10598 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10599 (output_decls_for_scope): Don't increment next_block_number.
10600 * sdbout.c (next_block_number): Remove.
10601 (sdbout_block): Use BLOCK_NUMBER.
10602 (sdbout_begin_block): Simplify.
10603 * xcoffout.c (next_block_number): Remove.
10604 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10605 (xcoffout_begin_block): Don't set next_block_number.
10606 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10607 next_block_number.
10608
10609 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10610
10611 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10612 (expand_builtin_strcpy): Pass correct type to size_binop.
10613 (expand_builtin_strcmp): Likewise.
10614 Clean up conditional structure.
10615 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10616 (complete_array_type): Don't use size_binop for MAXINDEX.
10617 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10618 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10619 (c_alignof): Use size_one_node.
10620 (build_unary_op): Pass arg of proper type to size_binop.
10621 (really_start_incremental_init, push_init_level): Use sizetype for
10622 constructor{,_bit,_unfilled}_index.
10623 (pop_init_label, output_init_element): Likewise.
10624 (output_pending_init_elements, process_init_element): Likewise.
10625 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10626 * expr.c (store_expr): Use size_int.
10627 (store_constructor): Use proper types for size_binop args.
10628 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10629 (expand_expr_unaligned): Likewise.
10630 (string_contant): Return object of sizetype.
10631 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10632 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10633 (ARGS_SIZE_TREE): Pass proper types to size_binop.
10634 * fold-const.c (int_const_binop): Refine when size_int is called.
10635 (fold_convert): Likewise.
10636 (size_int_wide): Rework to take KIND as arg, only take low order
10637 bits, handle new sizetype_tab datatype, and chain entries in
10638 size_table.
10639 (size_int_type_wide): New function.
10640 (size_binop): Validate types of arguments.
10641 (ssize_binop): Deleted.
10642 (size_diffop): New function.
10643 (extract_muldiv): Only fold division into multiplication for sizetypes.
10644 * function.c (assign_parms): Use size_diffop and make sure
10645 VAR field is of ssizetype; also pass proper type to size_binop.
10646 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10647 (round_down): Deleted from here.
10648 * store-layout.c (sizetype_tab): Now an array.
10649 (sizetype_set, early_root_list): New variables.
10650 (variable_size): Use size_one_node.
10651 (round_up): Pass proper type to size_binop.
10652 (round_down): Moved to here and corrected as above.
10653 (layout_record): Pass proper arg types to size_binop.
10654 (layout_type): Likewise.
10655 If sizetype_set is zero, record the type just laid out.
10656 (make_unsigned_type): Don't call set_sizetype;
10657 (make_signed_type): Likewise; also, call fixup_signed_type.
10658 (initialize_sizetypes): New function.
10659 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10660 set name of bitsizetype to "bit_size_type".
10661 Fix up type of sizes of all types made before call.
10662 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10663 * tree.c (fix_sizetype): Deleted.
10664 (build_common_tree_nodes): Call initialize_sizetypes.
10665 (build_common_tree_nodes_2): Don't call fix_sizetype.
10666 * tree.h (TYPE_IS_SIZETYPE): New macro.
10667 (initialize_sizetype): New declaration.
10668 (enum size_type_kind): New type.
10669 (struct sizetype_tab): Deleted.
10670 (sizetype_tab): Now array; adjust sizetype macros.
10671 (size_diffop, size_int_type_wide): New functions.
10672 (size_int_wide): Change number of args and type; access macros changed.
10673 (ssize_int, sbitsize_int): New macros.
10674 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10675 (ROUND_TYPE_SIZE_UNIT): New macro.
10676
10677 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
10678
10679 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10680
10681 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10682
10683 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10684 Mark as possibly unused.
10685
10686 * cse.c (cse_insn): Delete dead code involving tablejump.
10687 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10688
10689 * Makefile.in (libcpp.a): Start by deleting it.
10690
10691 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10692
10693 * cpplib.h (enum file_change_code): Added rename_file.
10694 * cpplib.c (do_line): If a filename is given, set file_change to
10695 rename_file.
10696 (output_line_command): If file_change is rename_file, always
10697 output a # directive with the file name.
10698
10699 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10700
10701 2000-02-26 Mark Mitchell <mark@codesourcery.com>
10702
10703 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10704 when copying a PARM_DECL or RESULT_DECL.
10705
10706 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10707
10708 * fix-header.c (recognized_function): Also fix prototypes for
10709 functions taking "void".
10710
10711 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10712
10713 * reload1.c (do_output_reload): Check reg_reloaded_valid before
10714 looking at reg_reloaded_contents.
10715
10716 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
10717
10718 * Makefile.in (STMP_FIXINC): New toggle.
10719 (LIBGCC2_DEPS): Delete all references.
10720 (stmp-headers): Delete target. All references either deleted
10721 or changed to stmp-int-headers.
10722 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10723 (LIBCPP_OBJS): Take out cppalloc.o.
10724 (cppalloc.o): Delete target.
10725 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10726 (gen-protos, fix-header): Link with libiberty.a.
10727 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
10728 to empty.
10729
10730 * configure.in: Remove refs to strerror.
10731 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10732 * system.h: Take out strerror stanza.
10733
10734 * cpperror.c (my_strerror): Delete function.
10735 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10736 * cppmain.c (main): Call xmalloc_set_program_name first thing.
10737 * cppalloc.c: Delete file.
10738 * gen-protos.c: Don't provide xrealloc.
10739
10740 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10741 xstrerror throughout.
10742
10743 2000-02-26 Bruce Korb <bkorb@gnu.org>
10744
10745 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10746 match for DOS headers, too.
10747 * fixinc/inclhack.sh,fixincl.x: Regenerate.
10748
10749 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10750
10751 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
10752 is right for most ELF targets.
10753 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10754 Let the default file use %U properly.
10755 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
10756 default.
10757
10758 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10759 numbers.
10760
10761 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10762
10763 * toplev.c (documented_lang_options): Correct spelling error.
10764 (decode_d_option, decode_f_option, main): Likewise.
10765
10766 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10767
10768 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10769 to tell assembler it is permitted to expand large constants.
10770
10771 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
10772
10773 * protoize.c: (AUX_INFO_SUFFIX): New macro.
10774 (aux_info_suffix): Use.
10775 (SAVE_SUFFIX): New macro.
10776 (save_suffix): Use.
10777 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10778 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10779 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10780
10781 * invoke.texi (Running Protoize): Update documentation.
10782
10783 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10784
10785 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10786
10787 2000-02-25 John Wehle (john@feith.com)
10788
10789 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10790
10791 2000-02-25 Anthony Green <green@cygnus.com>
10792
10793 * toplev.c (rest_of_compilation): Rebuild jump labels if
10794 combine_instructions has created a new direct jump.
10795 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
10796 when appropriate.
10797 (combine_instructions): Call try_combine with new argument.
10798 Return non-null value when new direct jump instruction is created.
10799 * rtl.h: combine_instructions returns an int.
10800
10801 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
10802
10803 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10804 jump when changing a computed jump into a jump to a known
10805 target.
10806
10807 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
10808
10809 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10810 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10811
10812 * i386.md (define_expand "clrstrsi"): Fix typo.
10813
10814 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
10815
10816 * rtl.texi: Fix typo.
10817
10818 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10819
10820 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10821 UNITS_PER_WORD. Change caller initial_elimination_offset.
10822 (rounded_frame_size): Take into account that argument pushed has
10823 changed. Fix TARGET_ALIGN_DOUBLE problem.
10824
10825 2000-02-25 Geoff Keating <geoffk@cygnus.com>
10826
10827 * haifa-sched.c (schedule_block): Explain the real reason
10828 we delete REG_SAVE_NOTEs on the first insn of a block.
10829 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10830
10831 2000-02-24 Mark Mitchell <mark@codesourcery.com>
10832
10833 * input.h (push_srcloc): New function.
10834 (pop_srcloc): Likewise.
10835 * toplev.c (push_srcloc): Define it.
10836 (pop_srcloc): Likewise.
10837
10838 2000-02-24 Richard Henderson <rth@cygnus.com>
10839
10840 * flow.c (life_analysis): When collecting reg info, clear
10841 regs_ever_live.
10842
10843 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10844
10845 Fix bug exposed by reload.c no longer rounding the frame
10846 size to BIGGEST_ALIGNMENT:
10847 * sh.c (rounded_frame_size): New function.
10848 (sh_expand_prologue, sh_expand_epilogue): Use it.
10849 (initial_elimination_offset): Likewise.
10850
10851 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10852
10853 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
10854 * sh-protos.h (sh_need_epilogue): Declare.
10855 * sh.c (sh_need_epilogue_known): New static variable.
10856 (sh_need_epilogue): New function.
10857 (function_epilogue): Clear need_epilogue_known.
10858 * sh.md (return): Split into expander / insn pattern.
10859 Make the expander conditional on ! sh_need_epilogue ().
10860
10861 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
10862
10863 * machmode.h (get_mode_alignment): Declare.
10864 (GET_MODE_ALIGNMENT): Call it.
10865 * stor-layout.c (get_mode_alignment): New function. Make
10866 sure alignment is always power of 2.
10867
10868 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10869
10870 * i386.h: Remove useless definition of "I386" and misleading
10871 comment above it.
10872
10873 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10874
10875 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
10876 under which TREE_PERMANENT will be set.
10877 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
10878 build1): Use TREE_SET_PERMANENT.
10879 * print-tree.c (print_node): Don't report value of
10880 TREE_PERMANENT if ggc_p is true.
10881
10882 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
10883 decide whether to give a type a new alias set.
10884 * objc/objc-act.c (build_objc_string_object): Never copy the string.
10885 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
10886 of value of 'obstack'.
10887
10888
10889 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10890
10891 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
10892
10893 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10894
10895 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
10896 * cpplib.c (cpp_get_token): Produce them.
10897 * cppexp.c (cpp_lex): Handle them.
10898
10899 2000-02-23 Nick Clifton <nickc@cygnus.com>
10900
10901 * config/arm/arm.c (arm_comp_type_attributes): Simply and
10902 comment tests on type attributes.
10903
10904 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10905
10906 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
10907 conform to documentation.
10908 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
10909 to check for special cases.
10910 * sh-protos.h (sh_loop_align): Declare.
10911 * sh.c (sh_loop_align): Define.
10912
10913 2000-02-22 Andrew Haley <aph@cygnus.com>
10914
10915 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
10916 (SIZE_TYPE): Is 32 bits when using -mgp32.
10917 (PTRDIFF_TYPE): Ditto.
10918
10919 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10920
10921 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
10922
10923 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10924
10925 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
10926 BIGGEST_FIELD_ALIGNMENT a constant.
10927
10928 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
10929
10930 * dwarf2out.c (output_line_info): Put the marker for the end of
10931 the line number info at the actual end.
10932 (gen_struct_or_union_type_die): Use decl_function_context
10933 to check for local classes.
10934 * dwarfout.c (output_type): Likewise.
10935
10936 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
10937
10938 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
10939 for arguments with a mode, but no type.
10940 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
10941 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
10942 * pa/long_double.h: New file.
10943 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
10944 both have 128bit wide long doubles.
10945 * configure: Rebuilt.
10946
10947 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10948
10949 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
10950
10951 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
10952 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
10953 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
10954
10955 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
10956
10957 * integrate.c (compare_blocks, find_block): Likewise.
10958
10959 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
10960
10961 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
10962
10963 * stmt.c (stmt_status, set_file_and_line_for_stmt,
10964 expand_asm_operands): Likewise.
10965
10966 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
10967
10968 * predict.c (estimate_probability): Added the pointer heuristic to
10969 the collection of static branch predictors.
10970
10971 2000-02-21 Catherine Moore <clm@cygnus.com>
10972
10973 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
10974 * invoke.texi (-mfix7000): Document.
10975
10976 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
10977
10978 * diagnostic.c (init_output_buffer): Make it possible to output at
10979 least 32 characters if we're given a too long prefix.
10980
10981 2000-02-20 Mark Mitchell <mark@codesourcery.com>
10982
10983 * varasm.c (initializer_constant_valid_p): Call
10984 lang_expand_constant to simplify the constant.
10985
10986 2000-02-20 Bruce Korb <bkorb@gnu.org>
10987
10988 * fixinc/inclhack.def(stdio_va_list):
10989 typedef needs to be disabled.
10990 * fixinc/inclhack.sh: regen
10991 * fixinc/fixincl.x: regen
10992
10993 2000-02-20 Geoff Keating <geoffk@cygnus.com>
10994
10995 * print-rtl.c (print_rtx): Don't print addresses when
10996 flag_dump_unnumbered.
10997
10998 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10999
11000 * sparc.c (sparc_output_scratch_registers): Mark parameter with
11001 ATTRIBUTE_UNUSED.
11002 (sparc_va_arg, sparc_flat_output_function_prologue,
11003 sparc_flat_output_function_epilogue): Cast value to unsigned in
11004 comparison.
11005 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
11006
11007 * sparc.md: Add default case in switch.
11008
11009 2000-02-19 Richard Henderson <rth@cygnus.com>
11010
11011 * c-typeck.c (add_pending_init): Don't abort for multiple
11012 fields at the same offset.
11013 (pending_init_member): Test the correct member.
11014
11015 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11016
11017 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
11018 instead of SImode.
11019 (start_catch_handler) : Same.
11020
11021 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
11022
11023 * Makefile.in: Have flow.o depend on $(EXPR_H)
11024
11025 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11026
11027 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
11028 * c-decl.c (duplicate_decls, finish_enum): Likewise.
11029 (finish_decl): Remove -Wlarger-than code from here.
11030 * flags.h (id_clash_len): Now int.
11031 (larger_than_size): Now HOST_WIDE_INT.
11032 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
11033 Clean up checking to see if in table.
11034 (make_bit_field_ref): Remove extra parm to bitsize_int.
11035 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
11036 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
11037 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
11038 and for computing size of decl.
11039 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
11040 Move -Wlarger-than code to here.
11041 (layout_record): Remove extra arg to bitsize_int.
11042 Set TYPE_BINFO_SIZE_UNIT.
11043 (layout_union): Remove extra arg to bitsize_int.
11044 Use proper type for size of QUAL_UNION.
11045 (layout_type): Remove extra arg to bitsize_int.
11046 * toplev.c (id_clash_len): Now int.
11047 (larger_than_size): Now HOST_WIDE_INT.
11048 (decode_W_option): Clean up id-clash and larger-than- cases.
11049 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
11050 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
11051 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
11052 (struct tree_decl): New field size_unit.
11053 (size_int_wide): No HIGH operand; NUMBER is now signed.
11054 (size_int_2): Deleted.
11055 (size_int, bitsize_int): Don't use it and rework args.
11056 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
11057
11058 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
11059
11060 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
11061
11062 2000-02-18 Geoff Keating <geoffk@cygnus.com>
11063
11064 * invoke.texi (Warning Options): Add an explanation of why
11065 you might want the -Wfloat-equal flag.
11066
11067 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11068
11069 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
11070 * cppinit.c (new_pending_define): Add cast to avoid warning.
11071 * expmed.c (extract_bit_field): Likewise.
11072 * flow.c (enum reorder_skip_type): New type.
11073 (skip_insns_between_blcok): New it.
11074 Rework to avoid warning about possibly undefined variable.
11075 * function.c (assign_parms): Make thisparm_boundary unsigned.
11076 * genrecog.c (write_switch): Cast XWINT result to int.
11077 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
11078 * mips-tfile.c (init_file): Make two versions of FDR intializer:
11079 one for MIPS and one for Alpha.
11080 (get_tag, copy_object): Add casts to avoid warnings.
11081 * optabs.c (init_one_libfunc): Cast NAME to (char *).
11082 * reload.c (find_reloads): Make TYPE enum reload_type.
11083 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
11084 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
11085 * varasm.c (compare_constant_1): Add cast to avoid warning.
11086 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
11087 to (char *).
11088 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
11089 Cast switch operand of size to int.
11090 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
11091 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
11092 in unhandled case.
11093
11094 2000-02-18 Nick Clifton <nickc@cygnus.com>
11095
11096 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
11097 anything for an alignment of zero.
11098
11099 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
11100 anything for an alignment of zero.
11101
11102 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
11103
11104 * gcc.texi (Bug Reporting): Refer to bugs.html.
11105 (Bug Lists): Likewise.
11106 * system.h (GCCBUGURL): New preprocessor define.
11107 * rtl.c (fancy_abort): Use it.
11108 * gcc.c (main): Likewise.
11109
11110 2000-02-18 Richard Henderson <rth@cygnus.com>
11111
11112 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
11113 (life_analysis_1): Subsume into ...
11114 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
11115 Use update_life_info for the relaxation.
11116 (update_life_info): Update REG_BASIC_BLOCK for registers live on
11117 entry and regs_live_at_setjmp.
11118 (set_noop_p): Simplify.
11119 (notice_stack_pointer_modification_1): Renamed from s/_1//.
11120 (record_volatile_insns): Split into ...
11121 (delete_noop_moves): ... here,
11122 (notice_stack_pointer_modification): ... here,
11123 (insn_dead_p): ... and here.
11124 (propagate_block): Don't query INSN_VOLATILE.
11125 (mark_used_regs): Mind !PROP_REG_INFO.
11126 * toplev.c (rest_of_compilation): Call mark_constant_function here,
11127 not in life_analysis.
11128
11129 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
11130
11131 * loop.c (canonicalize_condition): New function,
11132 broken out of get_condition.
11133 (get_condition): Use it.
11134 * expr.h (canonicalize_condition): Prototype it.
11135
11136 * tree.h (tree_int_cst_msb): Declare.
11137 * tree.c (tree_int_cst_msb): New function.
11138
11139 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11140
11141 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
11142 isn't set.
11143
11144 * invoke.texi (-fmessage-length=n): Document.
11145
11146 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
11147
11148 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
11149
11150 2000-02-17 Mark Mitchell <mark@codesourcery.com>
11151
11152 * function.c (thread_prologue_and_epilogue_insns): Put a line note
11153 after the prologue.
11154
11155 2000-02-17 Nick Clifton <nickc@cygnus.com>
11156
11157 * config/arm/thumb.c: Replace includes of system headers with
11158 #include "system.h".
11159
11160 2000-02-16 Richard Henderson <rth@cygnus.com>
11161
11162 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
11163 Add crtbeginS.o and crtendS.o.
11164 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
11165 (ENDFILE_SPEC): Use crtendS.o.
11166 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
11167
11168 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
11169 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
11170 shared and present.
11171 (__dso_handle): New variable.
11172 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
11173 bias to __CTOR_END__.
11174
11175 2000-02-16 Richard Henderson <rth@cygnus.com>
11176
11177 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
11178
11179 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
11180
11181 * longlong.h (__clz_tab): Declare as static to match definition.
11182
11183 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
11184
11185 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
11186 (XREF_FILE_NAME): Define.
11187
11188 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
11189 (EH_FRAME_SECTION_ASM_OP): Define.
11190 (IDENT_ASM_OP): Define.
11191 (TEXT_SECTION_ASM_OP): Define.
11192 (CPP_SPEC): Define.
11193 (CTORS_SECTION_ASM_OP): Define.
11194 (CTOR_SECTION_FUNCTION): Use it.
11195 (DTORS_SECTION_ASM_OP): Define.
11196 (DTOR_SECTION_FUNCTION): Use it.
11197
11198 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
11199
11200 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
11201 NOTE_BASIC_BLOCK.
11202
11203 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
11204 debug_bb_n): New functions.
11205 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
11206 * basic-block.h: Prototype new functions.
11207
11208 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
11209
11210 * configure.in: Add support for avr target.
11211 * configure: Rebuilt.
11212
11213 * invoke.texi: Add AVR invocation docs.
11214 * install.texi: Add information about AVR.
11215 * md.texi: Add AVR constraint letters description.
11216 * extend.texi: Add description for AVR specific attributes.
11217
11218 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
11219
11220 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
11221
11222 2000-02-16 Nick Clifton <nickc@cygnus.com>
11223
11224 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
11225 (make_insn_raw): Move RTL check here.
11226
11227 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11228
11229 * version.c: Include gansidecl.h and version.h.
11230
11231 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
11232
11233 * configure.in (gcc_version): When setting, narrow search to
11234 lines containing `version_string'.
11235
11236 * Makefile.in (mainversion): Likewise.
11237 (GCC_H): New variable.
11238 (gcc.h): Delete target.
11239 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
11240 (version.o): Depend on version.h.
11241 (dbxout.o): Don't depend on gcc.h.
11242
11243 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
11244 Michael Meissner <meissner@cygnus.com>
11245
11246 * md.texi (Simple Constraints): Add item about whitespace.
11247 * genoutput.c (strip_whitespace): New.
11248 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
11249 strip_whitespace for constraints.
11250 Test pointer using NULL, not 0.
11251
11252 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11253
11254 * cpplib.c (do_line): Pedwarn for #line > 32767.
11255
11256 * c-lex.c (readescape): Warn about '\x', but do not reject it.
11257
11258 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
11259
11260 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
11261 to default cpp spec.
11262 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
11263 * cpp.texi: Document __GNUC_PATCHLEVEL__.
11264 * cpp.1: Likewise.
11265
11266 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
11267 default spec.
11268
11269 2000-02-15 Denis Chertykov <denisc@overta.ru>
11270
11271 * configure.in: Add support for avr target.
11272
11273 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11274
11275 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
11276 (sh_addr_diff_vec_mode): Don't declare.
11277 * sh.c (sh_addr_diff_vec_mode): Delete.
11278
11279 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11280
11281 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
11282
11283 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11284
11285 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
11286 (smulsi3_highpart_i): Name.
11287 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
11288 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
11289 (smulsi3_highpart, umulsi3_highpart): Likewise.
11290
11291 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
11292 correctly independent of endianness.
11293 (mulsidi3, umulsidi3): Now define_insn. Hide details that
11294 confuse the optimizers.
11295 (mulsidi3+1, umulsidi3+1): New define_split.
11296
11297 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
11298
11299 * config/sh/sh.md: Guard insn splits against illegal registers.
11300 * config/sh/sh.h: Correct comment about macros.
11301
11302 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11303 Andrew MacLeod <amacleod@cygnus.com>
11304
11305 * Makefile.in (lcm.o): Depend on insn-attr.h.
11306 * basic-block.h (optimize_mode_switching): Declare.
11307 * lcm.c (tm_p.h, insn-attr.h): #include.
11308 (seginfo, bb_info): New structs.
11309 (antic, transp, comp, delete, insert) : New file-scope static variables.
11310 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
11311 (reg_becomes_live, optimize_mode_switching): Likewise.
11312 * tm.texi: Add description of mode switching macros.
11313 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
11314
11315 * sh-protos.h (remove_dead_before_cse): Remove prototype.
11316 (fldi_ok, fpscr_set_from_mem): New prototypes.
11317 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
11318 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
11319 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11320 (sh_flag_remove_dead_before_cse): Remove declaration.
11321 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
11322 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
11323 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11324 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
11325 (barrier_align): Allow for JUMP_INSNS containing a parallel.
11326 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
11327 (fldi_ok): New function.
11328 (get_fpscr_rtx): Add fpscr_rtx as GC root.
11329 (emit_sf_insn): Only generate fpu switches when optimize < 1.
11330 (emit_df_insn): Likewise.
11331 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
11332 (sh_flag_remove_dead_before_cse): Delete.
11333 (get_free_reg, fpscr_set_from_mem): New functions.
11334 * sh.md (movdf, movsf): Remove no_new_pseudos code.
11335 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11336
11337 2000-02-15 Loren Rittle <ljrittle@acm.org>
11338
11339 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11340
11341 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11342
11343 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11344 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11345
11346 * cccp.c: Include version.h and/or don't declare `version_string'.
11347 * collect2.c: Likewise.
11348 * alpha.c: Likewise.
11349 * arm/aof.h: Likewise.
11350 * arm/coff.h: Likewise.
11351 * arm/elf.h: Likewise.
11352 * arm/pe.h: Likewise.
11353 * arm/tcoff.h: Likewise.
11354 * arm/telf.h: Likewise.
11355 * arm/tpe.h: Likewise.
11356 * arm/vxarm.h: Likewise.
11357 * convex/convex.c: Likewise.
11358 * i386/dgux.c: Likewise.
11359 * i386/sun386.h: Likewise.
11360 * m88k/m88k.c: Likewise.
11361 * mcore/mcore-pe.h: Likewise.
11362 * mips/mips.h: Likewise.
11363 * romp/romp.h: Likewise.
11364 * sh/sh.c: Likewise.
11365 * cpphash.c: Likewise.
11366 * cppinit.c: Likewise.
11367 * dwarf2out.c: Likewise.
11368 * dwarfout.c: Likewise.
11369 * gcc.c: Likewise.
11370 * gcc.h: Likewise.
11371 * mips-tfile.c: Likewise.
11372 * protoize.c: Likewise.
11373 * toplev.c: Likewise.
11374 * tree.h: Likewise.
11375
11376 * version.c (version_string): Constify a char*.
11377
11378 * version.h: New file.
11379
11380 2000-02-14 Nick Clifton <nickc@cygnus.com>
11381
11382 * configure.in: Add mcore-elf and mcore-pe targets.
11383 * configure: Regenerate.
11384
11385 * NEWS: Add note that MCore port has been contributed.
11386
11387 * invoke.texi: Document command line switches for MCore port.
11388 * install.texi: Add MCore to list of supported targets.
11389
11390 2000-02-14 Geoff Keating <geoffk@cygnus.com>
11391
11392 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11393 then we will need to import the frame handling functions.
11394 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11395 to import the frames themselves.
11396
11397 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
11398 Jason Eckhardt <jle@cygnus.com>
11399
11400 * basic_block.h: Added prototype for reorder_basic_blocks.
11401 * toplev.c: Changes to add -freorder-blocks and graph dump after
11402 block reordering is done.
11403 * flow.c (reorder_block_def): New structure for use during block
11404 reordering.
11405 (REORDER_BLOCK_*): New macros to access members of above structure.
11406 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11407 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11408 functions for block reordering.
11409
11410 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
11411
11412 * gcc.texi (Passes): Fix typo.
11413 * md.texi (Standard Names): Ditto.
11414 * tm.texi (Storage Layout): Ditto.
11415
11416 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11417
11418 * cpplib.c (do_define): Only free the old definition if it
11419 actually had one.
11420
11421 2000-02-13 Neil Booth <NeilB@earthling.net>
11422
11423 * cppfiles.c (read_and_prescan): When emitting deferred
11424 newlines, test speccase[] again instead of checking each
11425 possible whitespace character in turn. When we encounter \r,
11426 look behind for \n first, then ahead.
11427
11428 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11429
11430 * cse.c (cse_altered): New internal flag.
11431 (cse_insn): Set it if we changed an insn.
11432 (cse_main): Clear cse_altered before each basic block.
11433 Only garbage collect if cse_altered is true afterward.
11434
11435 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11436
11437 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11438
11439 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
11440
11441 * combine.c (simplify_comparison): Fix typo.
11442
11443 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
11444
11445 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11446 consistently.
11447
11448 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11449
11450 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11451 previously inserted node instead of root node. Caller changed.
11452
11453 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11454
11455 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11456
11457 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11458
11459 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11460 __dereg_frame_dtor): Add prototype argument.
11461
11462 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11463
11464 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11465
11466 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11467
11468 * gthr-vxworks.h (__gthread_once): Likewise.
11469
11470 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11471
11472 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
11473
11474 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11475 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11476 stack pointer in functions w/o saved registers, output LEAVE more often
11477 on TARGET_USE_LEAVE machines.
11478
11479 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11480
11481 * config/arm/arm.c (arm_init_cumulative_args); New function:
11482 Initlaise the CUMULATIE_ARGS strcuture for a function
11483 defintion.
11484 (arm_function_arg): New function: Determine where to place a
11485 function's argument. Also handles deciding the function's
11486 call cookie.
11487 (current_file_function_operand): New function: Return true if
11488 the symbol is a function which has already been compiled.
11489 (arm_is_long_call_p): New function: Return true if the
11490 indicated function should be called via a long call.
11491 (arm_valid_type_attribute_p): New function: Return true if the
11492 attribute is a valid, arm specific, attribute.
11493 (arm_comp_type_attribute): New function: Return true if the
11494 two types have compatable, arm specific, attributes.
11495
11496 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11497 structure.
11498 (FUNCTION_ARG): Redefine to call arm_function_arg.
11499 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11500 structure field.
11501 (INIT_CUMULATIVE_ARGS): Redefine to call
11502 arm_init_cumulative_args.
11503 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11504 field.
11505 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11506 field.
11507 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11508 functions.
11509 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11510 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11511 (COMP_TYPE_ATTRIBUTES): Define.
11512
11513 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11514 if a long call is needed.
11515 (call_value): Call arm_is_long_call_p to decide if a long call
11516 is needed.
11517 (call_symbol): Call arm_is_long_call_p to decide if a long call
11518 is needed.
11519
11520 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11521
11522 2000-02-11 Denis Chertykov <denisc@overta.ru>
11523
11524 * README.AVR: New file with information about the avr ports.
11525 * config/avr: New directory with avr port files.
11526
11527 2000-02-11 Andreas Jaeger <aj@suse.de>
11528
11529 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11530
11531 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
11532
11533 * cpphash.c: Fix formatting, update commentary.
11534 (dump_definition): Take three separate arguments instead of a
11535 MACRODEF structure argument.
11536 * cpphash.h: Update prototype of dump_definition.
11537 * cppinit.c (cpp_finish): Update call of dump_definition.
11538
11539 * cpplib.c (do_define): Always create new hash entry with
11540 T_MACRO type. Remove redundant check for redefinition of
11541 poisoned identifier. Update call of dump_definition.
11542 (do_undef): Don't call check_macro_name. Rename sym_length to
11543 len.
11544 (do_error, do_warning): Don't use copy_rest_of_line or
11545 SKIP_WHITE_SPACE.
11546 (do_warning): Don't use pedwarn for the actual warning,
11547 only the notice about its not being in the standard. (Fixes
11548 bug with #warning in system headers.)
11549 (do_ident): Stricter argument checking - accept only a single
11550 string after #ident. Also, macro-expand the line.
11551 (do_xifdef): Use cpp_defined. De-obfuscate.
11552
11553 (do_pragma): Split out specific pragma handling to separate
11554 functions. Use get_directive_token. Update commentary. Do
11555 not pass on #pragma once or #pragma poison to the front end.
11556 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11557 do_pragma_default): New.
11558
11559 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
11560
11561 * jump.c (jump_optimize_1): The first operand in a relational
11562 can be a CONST_INT.
11563 * optabs.c (emit_conditional_move): Handle relationals which
11564 have a known true/false result.
11565
11566 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11567
11568 * function.c (thread_prologue_and_epilogue_insns): Don't insert
11569 a RETURN insn into a block which already ends with a jump.
11570
11571 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11572
11573 * haifa-sched.c (BUF_LEN): Increase a lot.
11574
11575 2000-02-11 Nick Clifton <nickc@cygnus.com>
11576
11577 * configure.in: Add tm_p_file specification for thumb targets.
11578 * configure: Regenerate.
11579
11580 * config/arm/thumb-protos.h: New file: Prototypes for exported
11581 functions defined in thumb.c.
11582
11583 2000-02-11 Robert Lipe <robertl@sco.com>
11584
11585 * Makefile.in (bootstrap-lean): Remove additional files.
11586 (bootstrap2-lean): Likewise.
11587 (VOL_FILES): List of files for above.
11588
11589 2000-02-11 Nathan Sidwell <nathan@acm.org>
11590
11591 * cpphash.c (special_symbol): Remove spurious argument to
11592 cpp_lookup.
11593
11594 2000-02-11 Joel Sherrill (joel@OARcorp.com>
11595
11596 * configure.in: (i*86-*-rtems*): Swapped elf and coff
11597 stanzas.
11598 * configure: Rebuilt.
11599
11600 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
11601
11602 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11603
11604 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
11605
11606 * pa.c, pa.h: Remove trigraph sequences within comments.
11607
11608 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
11609
11610 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11611
11612 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
11613
11614 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11615
11616 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11617
11618 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11619
11620 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11621
11622 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11623 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11624 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11625 (ASM_FILE_END): Use c4x_file_end.
11626 * config/c4x/c4x.c (c4x_global_label): New function.
11627 (c4x_external_ref, c4x_file_end): Likewise.
11628
11629 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11630 (c4x_external_ref, c4x_end_file): Likewise.
11631
11632 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
11633
11634 * cppexp.c: Don't include cpphash.h.
11635 (parse_charconst, cpp_lex): Use cpp_defined.
11636 (cpp_lex): Use get_directive_token throughout. Remove
11637 unnecessary cases from switch. Move assertion-handling code
11638 down to OTHER case.
11639 (cpp_parse_expr): If we see '+' or '-', check the context to
11640 determine if they are unary or binary operators. Streamline
11641 the jumps a bit. Do not call skip_rest_of_line.
11642
11643 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11644 static. Export get_directive_token. Update commentary.
11645 (cpp_defined): New function.
11646 (do_define): Remove reference to T_PCSTRING. Call
11647 free_definition to release memory for old definition, when
11648 redefining a macro.
11649 (eval_if_expression): Set only_seen_white to 0 before calling
11650 cpp_parse_expr. Call skip_rest_of_line after it returns.
11651 (cpp_read_check_assertion): Don't preserve a pointer into the
11652 token buffer across a call to cpp_get_token.
11653
11654 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11655 * cppfiles.c (redundant_include_p): Use cpp_defined.
11656 * cpphash.c (free_definition): New function.
11657 (delete_macro): Use it. Update commentary.
11658 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
11659 free_definition.
11660 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11661 from enum node_type. Prototype cpp_defined and get_directive_token.
11662 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11663
11664 * fix-header.c (check_macro_names): Use cpp_defined.
11665 (read_scan_file): Set inhibit_warnings and inhibit_errors in
11666 the options structure.
11667
11668 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11669
11670 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11671
11672 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
11673
11674 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11675 rather than die->die_tag.
11676
11677 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11678
11679 * combine.c (make_extraction, force_to_mode): Avoid warning on
11680 mixed-signedness conditionals.
11681 (make_field_assignment, nonzero_bits): Likewise.
11682 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11683 (store_split_bit_field, extract_split_bit_field): Likewise.
11684 (extract_fixed_bit_field, store_bit_field,
11685 * expr.c: Change alignment to be unsigned everywhere.
11686 (move_by_pieces, store_constructor_field, store_constructor):
11687 Alignment parm is unsigned.
11688 (emit_block_move, emit_group_load, emit_group_store): Likewise.
11689 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11690 (do_compare_rtx_and_jump): Likewise.
11691 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11692 Compare align with GET_MODE_ALIGNMENT.
11693 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11694 (get_inner_reference): Likewise.
11695 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11696 (expand_assignment): Local vars for alignment now unsigned.
11697 (store_constructor, store_field, expand_expr, do_jump): Likewise.
11698 (do_compare_and_jump): Likewise.
11699 (store_field): Call new function expr_align.
11700 * expr.h (emit_block_move, emit_group_load, emit_group_store):
11701 Alignment arg now unsigned.
11702 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11703 (do_compare_rtx_and_jump, store_bit_field): Likewise.
11704 (extract_bit_field): Likewise.
11705 * fold-const.c (add_double): Add cast to eliminate signedness warning.
11706 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11707 (get_best_mode): Alignment arg is unsigned.
11708 * rtl.h (move_by_pieces): Likewise.
11709 * store-layout.c (maximum_field_alignment, set_alignment):
11710 Now unsigned.
11711 (layout_decl): Alignment arg is now unsigned.
11712 Remove unneeded casts.
11713 (layout_record, layout_union, layout_type): Remove unneeded casts.
11714 Local alignment variables now unsigned.
11715 (get_best_mode): Alignment arg now unsigned.
11716 * tree.c (expr_align): New function.
11717 * tree.h (expr_align): Likewise.
11718 (maximum_field_alignment, set_alignment): Now unsigned.
11719 (get_inner_reference): Alignment argument is now pointer to unsigned.
11720 * varasm.c (assemble_variable): Add cast to eliminate warning.
11721
11722 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
11723
11724 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11725 then store directly into op0.
11726
11727 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11728 the CALL_INSN, and emit the note immediately after it.
11729
11730 2000-02-10 Nick Clifton <nickc@cygnus.com>
11731
11732 * config/arm/thumb.md (epilogue): Include a (return) in the
11733 generated insn, and emit it using emit_jump_insn not
11734 emit_insn.
11735
11736 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
11737
11738 * function.c (assign_temp): Change zero-sized arrays to size 1.
11739 * integrate.c (expand_inline_function): Do not update
11740 stack_alignment_needed
11741 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11742 add some sanity checking, remove optimization for function with
11743 zero frame size.
11744
11745 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11746
11747 * flow.c (mark_regs_live_at_end): Delete unused variables.
11748
11749 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11750
11751 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11752 in macro FRAME_GROWS_DOWNWARD.
11753
11754 * stmt.c (expand_end_bindings): Delete unused variable.
11755
11756 * unroll.c (iteration_info): Mark parameter `loop' with
11757 ATTRIBUTE_UNUSED.
11758
11759 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11760
11761 * fixinc/server.c (load_data): Return NULL if the marker line is
11762 not found.
11763 (run_shell): If load_data returns NULL, retry the command once, in
11764 a new shell.
11765
11766 * configure: Rebuilt.
11767
11768 2000-02-09 Bruce Korb <bkorb@gnu.org>
11769
11770 * gcc/fixincludes: ** DELETED **
11771 * gcc/fixcpp: ** DELETED **
11772 * gcc/fixinc-nt.sed: ** DELETED **
11773 * gcc/just-fixinc: ** DELETED **
11774 * gcc/Makefile.in: Removed out-dated commentary
11775 * gcc/configure.in: Removed fast-fixincludes disablement.
11776 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11777
11778 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11779 * function.c (thread_prologue_and_epilogue_insns): Uncomment
11780 last change.
11781
11782 2000-02-09 Richard Henderson <rth@cygnus.com>
11783
11784 * jump.c (delete_insn): Don't delete user labels at -O0.
11785
11786 2000-02-09 Robert Lipe <robertl@sco.com>
11787
11788 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11789 Don't link with HOST_LIBS.
11790
11791 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11792
11793 * configure.in: Correct --help text for --with-dwarf2.
11794 Put tm-dwarf2.h after other tm files, if it's requested.
11795 * configure: Regenerate.
11796 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11797 defining it.
11798
11799 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11800
11801 * cpplib.h: Provide HASHNODE typedef and forward decl of
11802 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
11803 DEFINITION, struct hashnode, struct macrodef, struct
11804 definition, scan_decls prototype, default defn of
11805 INCLUDE_LEN_FUDGE moved elsewhere.
11806
11807 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11808 definition, and struct hashnode moved here. Remove the unused
11809 'predefined' field from struct definition. Replace the 'args'
11810 union with its sole member. All users updated (cpphash.c).
11811 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
11812 multiple include guard.
11813
11814 * cpphash.c (hashf): Make static; use better algorithm; drop
11815 HASHSIZE parameter; return an unsigned int.
11816 (cpp_lookup): Drop HASH parameter. PFILE parameter is
11817 used. Calculate HASHSIZE modulus here.
11818 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11819 here.
11820 (create_definition): Drop PREDEFINITION parameter.
11821 * cpplib.c (do_define): Don't calculate a hash value here.
11822 Don't pass (keyword == NULL) to create_definition.
11823
11824 * scan.h: Prototype scan_decls here.
11825 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11826 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11827 callers of cpp_lookup and cpp_install updated.
11828
11829 * cpphash.c (macarg): Hoist all the flag diddling out of the
11830 function...
11831 (macroexpand): ... and out of the loop that calls macarg.
11832 Skip over the initial paren before macro arguments with
11833 cpp_get_non_space_token; point may be some distance before
11834 that paren. Abort if it's not there.
11835
11836 * cpplib.c (parse_clear_mark): Delete function.
11837 (parse_set_mark, parse_goto_mark): Make static.
11838 (ACTIVE_MARK_P): New macro.
11839 (skip_block_comment, skip_line_comment): Do not bump the line
11840 if ACTIVE_MARK_P is true.
11841 (cpp_pop_buffer): The buffer to be popped may not have an
11842 active mark.
11843 (cpp_get_token): When looking for the initial paren before
11844 macro arguments, only set a mark in a file buffer, Always
11845 return to that mark before proceeding to call macroexpand or
11846 return a NAME token.
11847
11848 * cpplib.h: Remove prototypes of parse_set_mark,
11849 parse_clear_mark, parse_goto_mark.
11850 (struct cpp_options): Rename 'put_out_comments' to
11851 'discard_comments' and invert its sense.
11852 * cppinit.c, cpphash.c, cpplib.c: All users of
11853 put_out_comments changed to use discard_comments, with
11854 opposite sense.
11855
11856 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11857
11858 * function.c (thread_prologue_and_epilogue_insns): Don't delete
11859 the edge from a block that both jumps and falls through to the
11860 fallthru block.
11861
11862 2000-02-09 Scott Bambrough <scottb@netwinder.org>
11863
11864 * config/arm/arm.md (movsi): In PIC mode, make sure that a
11865 constant source address is legitimate.
11866
11867 2000-02-09 Philip Blundell <pb@futuretv.com>
11868
11869 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
11870 correctly.
11871
11872 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
11873 generating PIC.
11874 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
11875
11876 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11877
11878 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
11879 ends with a newline and a NUL. Don't be so clever manipulating
11880 strings.
11881
11882 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
11883
11884 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
11885 not to BIGGEST_ALIGNMENT.
11886
11887 2000-02-08 Geoff Keating <geoffk@cygnus.com>
11888
11889 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
11890 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
11891 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
11892 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
11893 * frame.c (execute_cfa_insn): Handle
11894 DW_CFA_GNU_negative_offset_extended.
11895
11896 2000-02-08 Richard Henderson <rth@cygnus.com>
11897
11898 * flow.c (tidy_fallthru_edges): Split out from ...
11899 (delete_unreachable_blocks): ... here.
11900 (find_basic_blocks): Use it.
11901
11902 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11903
11904 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
11905
11906 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
11907
11908 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
11909 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
11910 (fix-header.o): Don't depend on cpphash.h.
11911
11912 * scan.c (hashstr): New function.
11913 * scan.h: Prototype it.
11914 * fix-header.c: Don't include cpphash.h. Use hashstr.
11915 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
11916 hashstr. Report hash table statistics. Add private
11917 definition of xrealloc.
11918
11919 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11920
11921 * i386.h (TARGET_SWITCHES): Fix typo in option name.
11922
11923 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
11924
11925 * function.c (thread_prologue_and_epilogue_insns): Don't replace
11926 jumps with returns unless they are jumps to the fallthru block.
11927
11928 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
11929
11930 * i386.md (addqi3_cc): Fix contraints.
11931
11932 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
11933
11934 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
11935
11936 2000-02-07 Mark Mitchell <mark@codesourcery.com>
11937
11938 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
11939 carriage return after a macro name.
11940
11941 2000-02-07 Fred Fish <fnf@be.com>
11942
11943 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
11944 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
11945
11946 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
11947
11948 * cppfiles.c (deps_output): Count spacers in deps_column.
11949
11950 2000-02-07 Neil Booth <NeilB@earthling.net>
11951
11952 * cppinit.c (initialize_dependency_output): If there is no
11953 suffix, don't try to look for known suffixes. Use strrchr.
11954 (cpp_start_read): Remove duplicate initialization.
11955
11956 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
11957
11958 * calls.c (compute_argument_block_size): New argument
11959 preferred_stack_boundary.
11960 (expand_call): update cfun->preferred_stack_boundary, update call of
11961 compute_argument_block_size
11962 (emit_library_call): Increate cfun->preferred_stack_boundary
11963 to PREFERRED_STACK_BOUNDARY
11964 (emit_library_call_value): Likewise.
11965 * explow.c (allocate_dynamic_stack_spave): Likewise.
11966 * function.c (prepare_function_start): Set
11967 cfun->preferred_stack_boundary
11968 * function.h (struct function): Add preferred_stack_boundary field.
11969 * integrate.c (expand_inline_function): Update
11970 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
11971 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
11972 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
11973
11974 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
11975
11976 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
11977 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
11978 cpp_pedwarn, cpp_pedwarn_with_line,
11979 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
11980 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
11981 v_cpp_error_with_line, v_cpp_warning_with_line,
11982 cpp_message_from_errno, cpp_perror_with_name): Delete.
11983
11984 * cpperror.c (cpp_print_containing_files): Take starting
11985 buffer as argument.
11986 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
11987 (v_cpp_message): Now called directly by all entry points.
11988 Remove -1 case.
11989 (cpp_pfatal_with_name, cpp_message): Delete.
11990 (cpp_notice_from_errno, cpp_ice): New functions.
11991 (cpp_notice): Is now for reporting error conditions, just
11992 without an associated file.
11993 (cpp_error, cpp_error_with_line): Don't do anything if
11994 opts->inhibit_errors is on.
11995 (cpp_pedwarn_with_file_and_line): Take column argument also.
11996
11997 * cpplib.h: Update prototypes of exported functions.
11998 (struct cpp_options): Add inhibit_errors.
11999
12000 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
12001 non-error messages. Include intl.h.
12002
12003 * cppinit.c, cppmain.c: Likewise. Also, use
12004 cpp_notice_from_errno instead of cpp_perror_with_name or
12005 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
12006
12007 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
12008 report internal errors.
12009
12010 * cpplib.c (do_define): Switch bcopy to memcpy.
12011 Give cpp_pedwarn_with_file_and_line a dummy column argument.
12012
12013 * cpplib.c (copy_rest_of_line): Revert previous change: don't
12014 bail out early if we hit a line comment.
12015
12016 2000-02-06 Richard Henderson <rth@cygnus.com>
12017
12018 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
12019 * basic-block.h: Declare them.
12020 * emit-rtl.h (active_insn_p): New.
12021 (next_active_insn, prev_active_insn): Use it.
12022 * rtl.h: Declare it.
12023 * function.c (emit_return_into_block): New.
12024 (thread_prologue_and_epilogue_insns): Insert return insns instead
12025 of epilogues when possible.
12026 * jump.c (jump_optimize_1): Remove code to insert a return insn
12027 on the fallthru to the exit block.
12028
12029 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
12030 and for non-empty stack frames.
12031 * i386.md (return): Expand to return-pop as needed.
12032
12033 2000-02-06 Richard Henderson <rth@cygnus.com>
12034
12035 * simplify-rtx.c (simplify_relational_operation): Canonicalize
12036 constant to op1 for testing.
12037
12038 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12039
12040 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
12041 (fixuns_truncqfqi2): Use it.
12042
12043 2000-02-06 Richard Henderson <rth@cygnus.com>
12044
12045 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
12046 as a TYPE_LEA insn.
12047
12048 * i386.md (widening and peepholes): Mask the constant instead of
12049 using gen_lowpart.
12050
12051 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
12052
12053 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
12054 input pointer before possibly branching off to the backslash
12055 code.
12056 * cpphash.c (macroexpand): Correctly delete \r escapes when
12057 stringifying parameters.
12058 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
12059 if we can; bail out early if we hit a line comment.
12060 (handle_directive): Treat '# 123' in an .S file just like
12061 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
12062 Return 1 for '# not_a_directive'.
12063 (get_directive_token): Pop macro buffers here, so that
12064 cpp_get_token can't sneakily move past a newline.
12065 Add sanity checks.
12066 (cpp_get_token): goto randomchar if handle_directive returns 0.
12067
12068 * cppalloc.c: Update copyright.
12069 * cpplib.c: Merge all the static function prototypes into one
12070 block.
12071 * cpplib.h: Remove #if 0 block.
12072
12073 * cpperror.c: Remove #ifdef EMACS block.
12074 * cppmain.c: Likewise.
12075 * cpphash.c: Remove #if 0 blocks.
12076 * cppinit.c: Remove #if 0 blocks, and the -lint option.
12077 * cpplib.c: Remove #if 0 blocks and code referencing
12078 pcp_inside_if or for_lint. Remove duplicate error message.
12079 Fix error messages for #else after #else or #elif. Reformat.
12080 Remove archaic TODO list.
12081 * cpplib.h: Remove pcp_inside_if and for_lint flags.
12082
12083 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
12084
12085 * i386/osf1elf.h: Add missing backslash to multiline string.
12086
12087 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12088
12089 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
12090
12091 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12092
12093 * Makefile.in (c-common.o): Depend on $(EXPR_H).
12094
12095 * c-common.c: Include expr.h.
12096
12097 * c-pragma.c (mark_align_stack): Add prototype.
12098
12099 * caller-save.c (add_stored_regs): Likewise.
12100
12101 * combine.c (record_promoted_value): Likewise.
12102
12103 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
12104 Likewise.
12105
12106 * cppinit.c (new_pending_define): Likewise.
12107
12108 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
12109
12110 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
12111 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
12112 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
12113 class_scope_p): Likewise.
12114
12115 * dwarf2out.h (dwarf2out_set_demangle_name_func,
12116 dwarf2out_add_library_unit_info): Likewise.
12117
12118 * ggc.h (ggc_page_print_statistics): Likewise.
12119
12120 * haifa-sched.c (propagate_deps): Likewise.
12121
12122 * reg-stack.c (next_flags_user, record_label_references): Likewise.
12123
12124 * rtl.h (set_stack_check_libfunc): Likewise.
12125
12126 * toplev.h (set_fatal_function): Likewise.
12127
12128 * toplev.c (set_fatal_function): Delete prototype.
12129
12130 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
12131
12132 2000-02-05 Geoff Keating <geoffk@cygnus.com>
12133
12134 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
12135 (FUNC_END): Likewise.
12136
12137 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12138
12139 * caller-save.c: Include tm_p.h.
12140
12141 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12142
12143 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
12144
12145 2000-02-04 Neil Booth <NeilB@earthling.net>
12146
12147 * cccp.c (main): Check 'dir' for a NULL pointer before passing
12148 it to strcmp.
12149
12150 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
12151
12152 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
12153 * genflags.c: Use the max_operand_1 logic from genemit.c to
12154 calculate how many arguments gen_insn prototypes have. Remove
12155 NO_MD_PROTOTYPES ifdefs from the generated file.
12156 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
12157 file. Cast gen_insn initializers to insn_gen_fn.
12158 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
12159 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
12160
12161 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12162
12163 * fixinc/Makefile.in (HDR): Add machname.h.
12164 (clean): Likewise.
12165
12166 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12167
12168 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
12169 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
12170 (c4x_cpu_version): Ditto.
12171 * config/c4x/c4x-protos.h: ... here.
12172
12173 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
12174
12175 * dwarf2out.c (add_abstract_origin_attribute): Don't call
12176 gen_abstract_function on our context if we're a nested function.
12177
12178 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12179
12180 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
12181 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
12182
12183 2000-02-04 Bruce Korb <bkorb@gnu.org>
12184
12185 * fixinc/genfixes(machname.h):
12186 Move the functionality from gen-machine.h into this file.
12187 UNdef MN_NAME_PAT if there are no names to change.
12188 Also, be a little kinder when AutoGen is not present.
12189
12190 * fixinc/Makefile.in(machname.h):
12191 Change the generation rule to use genfixes.
12192
12193 * fixinc/fixfixes.c(machine_name):
12194 machine_name_fix's functionality now dependent upon whether
12195 MN_NAME_PAT is defined.
12196
12197 * fixinc/fixtests.c(machine_name):
12198 ditto.
12199
12200 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
12201 of MN_NAME_PAT.
12202
12203 * fixinc/fixlib.h(mn_get_regexps):
12204 ditto
12205
12206 * fixinc/gen-machine.h: DELETED
12207
12208 2000-02-04 Jan Hubicka <jh@suse.cz>
12209 Richard Henderson <rth@cygnus.com>
12210
12211 * i386.c (SAVE_REGS_FIRST): Remove.
12212 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
12213 (ix86_compute_frame_size): Likewise.
12214 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
12215 (ix86_emit_restore_regs): Remove.
12216 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
12217 when a frame pointer is in use.
12218 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
12219 instead of pop to restore a register when profitable; emit leave
12220 when profitable.
12221 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
12222 as a TYPE_LEA insn.
12223 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
12224 * i386.md (prologue_allocate_stack): Remove.
12225 (epilogue_deallocate_stack): Remove.
12226 (pro_epilogue_adjust_stack): New.
12227
12228 2000-02-04 Richard Henderson <rth@cygnus.com>
12229
12230 * function.c (diddle_return_value): Rework to use a callback function.
12231 Use current_function_return_rtx if it's been set up.
12232 (do_clobber_return_reg, clobber_return_register): New.
12233 (do_use_return_reg, use_return_register): New.
12234 (expand_function_end): Use them.
12235 * stmt.c (expand_null_return): Likewise.
12236 * function.h: Declare them.
12237 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
12238 (mark_reg): Change arguments as appropriate for callback.
12239 * integrate.c (expand_inline_function): Revert 19 Jan change.
12240
12241 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
12242
12243 * tm.texi (Values in Registers): Fix typo: "fo" "for".
12244 (Misc): Say the scheduler, not the Haifa scheduler.
12245
12246 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
12247
12248 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
12249 when in_mem is set. Update all callers.
12250
12251 2000-02-04 Richard Henderson <rth@cygnus.com>
12252
12253 * i386/openbsd.h (INT_ASM_OP): Define.
12254
12255 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
12256
12257 * tm.texi: Fix various typos.
12258
12259 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
12260
12261 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
12262 (MD_STARTFILE_PREFIX_1): New macro.
12263
12264 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
12265
12266 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
12267 destination when needed.
12268 (strmovsi, strsetsi): New expander.
12269 (strmovsi_1, strsetsi_1): New pattern.
12270 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
12271 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
12272 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
12273 * invoke.texi (align-stringops, inline-all-stringops): Document.
12274
12275 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
12276
12277 * i386/netbsd.h (INT_ASM_OP): Define.
12278
12279 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
12280
12281 * cpplib.h (cpp_reader): Add new flag, no_directives.
12282 * cpphash.c (macarg): Set it.
12283 * cpplib.c (handle_directive): If no_directives is on and we
12284 find a directive, issue an error and discard the line.
12285
12286 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
12287
12288 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
12289 FP constants. Add ! TARGET_FPU check for FP constants.
12290
12291 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
12292
12293 * flow.c (find_basic_blocks): Don't kill label_value_list
12294 here.
12295 (cleanup_cfg): Kill it here.
12296
12297 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12298
12299 * expr.c (store_field): Ensure ALIGN is no stricter than the
12300 alignment of EXP.
12301
12302 2000-02-02 Richard Henderson <rth@cygnus.com>
12303
12304 * jump.c (delete_insn): Partially revert 19 Jan change;
12305 don't convert unused code labels to notes at -O0.
12306
12307 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12308
12309 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
12310 split_all_insns to recreate REG_LABEL notes for flow2 pass.
12311
12312 2000-02-01 Richard Henderson <rth@cygnus.com>
12313
12314 * i386.c (general_no_elim_operand): New.
12315 (nonmemory_no_elim_operand): New.
12316 (ix86_expand_move): Copy eliminable operands before a push.
12317 * i386-protos.h: Declare new functions.
12318 * i386.h (CAN_ELIMINATE): Simplify.
12319 (PREDICATE_CODES): Update.
12320 * i386.md (push insns): Don't allow eliminable register operands.
12321
12322 2000-02-01 Richard Henderson <rth@cygnus.com>
12323
12324 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
12325 replace BLKmode with DECL_RTL's mode.
12326
12327 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
12328
12329 * frame.c (find_fde): Convert for loop to do-while so compiler
12330 sees it's always executed at least once.
12331 * libgcc2.c (BBINBUFSIZE): Kill.
12332 (__bb_init_prg): Use fgets.
12333 (__bb_exit_trace_func): Don't paste strings.
12334 * unroll.c (unroll_loop): Initialize unroll_type, not
12335 unroll_number, and tweak logic to match.
12336
12337 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12338 all failure paths.
12339 (ix86_flags_dependant): Likewise. Disentangle control flow.
12340 (ix86_sched_reorder): Break guts out to
12341 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12342 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12343 any possible use.
12344
12345 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12346 use string concatenation. Don't save and restore esi.
12347
12348 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12349 (machname.h): Remove script to separate file. Use two-step
12350 sequence so target is not created if script fails.
12351 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
12352 identifiers are defined.
12353 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12354 an empty string, machine_name doesn't need to do anything at
12355 all.
12356 (is_cxx_header): Add more cases to regexp.
12357 * fixinc/fixlib.h: Update prototype.
12358 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12359 mn_get_regexps.
12360 * fixinc/fixincl.c: Define NO_BOGOSITY.
12361
12362 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12363 (hp_sysfile): Add missing comma.
12364 (math_exception): Put the wrapper ifdefs at the beginning and
12365 the end of the file.
12366 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12367
12368 2000-02-01 Richard Henderson <rth@cygnus.com>
12369
12370 * sparc.c (fp_zero_operand): Turn into a normal predicate.
12371 Use CONST0_RTX. Update all callers.
12372 * sparc.h, sparc-protos.h: Update accordingly.
12373 * sparc.md (fp mov insns): Use fp_zero_operand directly
12374 where applicable.
12375
12376 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
12377
12378 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12379 example.
12380
12381 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12382
12383 * Makefile.in (specs.ready): New target.
12384 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12385
12386 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12387
12388 * fixinc.irix: Use unique filenames for writing into /tmp,
12389 * fixinc.ptx: Likewise.
12390 * fixinc.sco: Likewise.
12391 * fixinc.svr4: Likewise.
12392 * fixinc.winnt: Likewise.
12393
12394 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12395
12396 * tsystem.h: New file.
12397
12398 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12399 s-crtS): Depend on tsystem.h.
12400
12401 * crtstuff.c: Include tsystem.h.
12402 * frame.c: Likewise.
12403 * libgcc2.c: Likewise.
12404
12405 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
12406
12407 * builtins.c (expand_builtin_memset): Expand for variable sized
12408 lengths too.
12409
12410 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
12411
12412 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12413 on ABI.
12414
12415 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
12416
12417 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12418
12419 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12420
12421 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
12422
12423 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12424 case 3->2 combining (combining with splitting) in which 2 is CC0
12425 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12426 checked at the begining of the function with the aid of calling
12427 function 'can_combine_p'.
12428
12429 2000-01-31 Dave Brolley <brolley@redhat.com>
12430
12431 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12432
12433 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
12434
12435 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12436 new label.
12437
12438 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12439
12440 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12441
12442 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12443 PROTO -> PARAMS.
12444
12445 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12446
12447 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12448 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12449 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12450 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12451 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12452 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12453 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12454 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12455 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12456 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12457
12458 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12459 Add %(cpp_cpu) to CPP_SPEC.
12460
12461 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12462 Add %(cc1_cpu) to CC1_SPEC.
12463
12464 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12465
12466 * c-decl.c (c_decode_option): Accept optional numeric argument to
12467 -Wformat and set warn_format.
12468 * c-common.c: Don't emit warning about non-constant printf format
12469 string unless warn_format > 1.
12470
12471 2000-01-30 Richard Henderson <rth@cygnus.com>
12472
12473 * alpha.md (return_internal): Allow after reload only.
12474
12475 2000-01-30 Richard Henderson <rth@cygnus.com>
12476
12477 * i386.c (ix86_compute_frame_size): Omit padding1 if the
12478 local frame size is zero.
12479
12480 2000-01-30 Richard Henderson <rth@cygnus.com>
12481
12482 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12483 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
12484 * alpha.md (return): Turn into an expander.
12485 (return_internal): Don't use $26.
12486 (epilogue): Emit the return insn.
12487
12488 2000-01-30 Richard Henderson <rth@cygnus.com>
12489
12490 * alpha.md (negtf2, abstf2): Fix word order thinko.
12491 (extendsftf2): New.
12492 (trunctfsf2): Avoid intermediate rounding errors.
12493
12494 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12495
12496 * cppfiles.c (find_position): Drop 'colp' argument, return the
12497 new line base.
12498 (read_and_prescan): Adjust to match. Don't ever manipulate
12499 line or line_base except via find_position.
12500
12501 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12502
12503 * c-parse.in: Apply Ulrich's changes from c-parse.y.
12504 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12505 Regenerate.
12506
12507 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12508
12509 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12510 just print "<command line>". If 'filename' is null or an
12511 empty string, print "<stdin>" for the filename.
12512 * cpplib.c (do_define): Don't print the 'location of the
12513 previous definition' message if we're still parsing the
12514 command line.
12515 (cpp_pedwarn_with_file_and_line): Always call
12516 cpp_file_line_for_message.
12517
12518 2000-01-29 Mark Mitchell <mark@codesourcery.com>
12519
12520 * flow.c (mark_regs_live_at_end): Fix typo.
12521
12522 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12523
12524 * c-common.c: Adjust variable names, comments, help strings to c99.
12525 * c-lex.c: Likewise.
12526 * c-parse.y: Likewise.
12527 * c-tree.h: Likewise.
12528 * cccp.c: Likewise.
12529 * cpplib.h: Likewise.
12530 * c-decl.c: Likewise. Recognize options with names "*99" as well.
12531 * cppinit.c: Likewise.
12532
12533 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12534
12535 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12536 * c4x.c: Define the optab rtx values.
12537 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12538 (c4x_emit_libcall): Use new optab rtx values.
12539 (c4x_emit_libcall3): Likewise.
12540 (c4x_emit_libcall_mulhi): Likewise.
12541 * c4x-protos.h: Add prototypes for optab rtx values and change
12542 prototypes for above c4x_emit_libcall functions.
12543
12544 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12545
12546 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12547 syntax is used.
12548 (c4x_function_prologue): Use regnames intead of float_reg_names when
12549 TI syntax is used.
12550 (c4x_function_epilogue): Likewise.
12551 (c4x_print_operand): Likewise.
12552 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12553 * c4x.md (set_high): Disable for TARGET_TI.
12554
12555 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12556
12557 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12558 of framepointer + constant to ADDR_REGS class.
12559 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12560 * c4x.c (std_or_reg_operand): New function.
12561 * c4x-protos.h (std_or_reg_operand): Prototype it.
12562
12563 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12564
12565 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12566 object names as libgcc2.c.
12567 * libgcc.S: Use newly defined names.
12568
12569 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
12570 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12571 function.
12572 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12573 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12574 (FLOW_LOOP_LAST_BLOCK): Likewise.
12575
12576 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12577
12578 * basic-block.h (struct loop): New fields 'first' and 'last'.
12579 * flow.c (flow_loops_find): Compute loop->first and loop->last.
12580 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12581 and loop->last to check for NOTE_INSN_LOOP_END.
12582
12583 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
12584
12585 * predict.c (estimate_probability): Use the new FIRST and LAST fields
12586 of the loop descriptor rather than HEADER and LATCH. Also added
12587 missing break statements as well making some coding style modifications
12588 as suggested by Michael Hayes.
12589
12590 2000-01-28 Richard Henderson <rth@cygnus.com>
12591
12592 * flow.c (find_basic_blocks): Remove do_cleanup argument.
12593 Break out that code ...
12594 (cleanup_cfg): ... here.
12595 (commit_one_edge_insertion): Detect a return instruction being
12596 emitted to an edge. Emit a barrier following; clear fallthru.
12597 (commit_edge_insertions): Verify CFG consistency.
12598 * function.c (expand_function_start): Kill unused variable.
12599 (expand_function_end): Likewise.
12600 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12601 to insert the epilogue.
12602
12603 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12604 (delete_null_pointer_checks): Likewise.
12605 * output.h: Likewise.
12606 * reg-stack.c (reg_to_stack): Likewise.
12607 * toplev.c (rest_of_compilation): Likewise. Run
12608 thread_prologue_and_epilogue_insns after rebuilding the CFG.
12609
12610 2000-01-28 Richard Henderson <rth@cygnus.com>
12611
12612 * Makefile.in (flow.o): Revert 24 Jan change.
12613 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
12614 FUNCTION_VALUE result to DECL_RESULT's mode.
12615
12616 * haifa-sched.c (schedule_insns): Don't recompute reg info
12617 after reload.
12618
12619 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
12620
12621 * configure.in: Make --enable-cpplib the default.
12622 * configure: Regenerate.
12623 * gcc.dg/990119-1.c: No longer expected to fail.
12624
12625 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
12626
12627 * jump.c (jump_optimize_1): Delete an optimization that is also done
12628 by merge_blocks in flow.
12629
12630 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12631
12632 * diagnostic.c (build_message_string, output_printf,
12633 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12634 (build_location_prefix): Fix non-literal format string.
12635
12636 2000-01-27 Richard Henderson <rth@cygnus.com>
12637
12638 * alpha.md (trunctfsf2): New.
12639
12640 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
12641
12642 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12643
12644 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12645
12646 * cppinit.c (cpp_handle_option): Recognize C++ comments under
12647 -std=gnu89.
12648 * cpplib.c (skip_block_comment, skip_line_comment): Split code
12649 out of...
12650 (skip_comment) ... here. Permit C++ comments in system
12651 headers always. Warn about C++ comments in user code under
12652 -std=gnu89 -pedantic.
12653 (copy_comment): Use skip_comment.
12654 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12655 return EOF.
12656 (consider_directive_while_skipping, do_else, do_endif): Call
12657 validate_else unconditionally.
12658 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
12659 text after the conditional in a system header.
12660 * cpplib.h (struct cpp_buffer): Add flag
12661 warned_cplusplus_comments.
12662
12663 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12664
12665 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12666 Use unshare_all_rtl_1.
12667 (unshare_all_rtl_again): New function.
12668 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12669
12670 * function.c (purge_addressof_1): Use unshare_all_rtl_again
12671 rather than resetting the 'used' flags ourself.
12672
12673 * toplev.c (rest_of_compilation): Add current_function_decl
12674 to the unshare_all_rtl call.
12675 * tree.h: Prototype unshare_all_rtl.
12676 * rtl.h: Prototype unshare_all_rtl_again here.
12677
12678 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12679
12680 * genoutput.c (output_prologue): Include ggc.h in generated
12681 files.
12682 * Makefile.in (insn-output.o): Depends on ggc.h.
12683
12684 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
12685 Hans-Peter Nilsson <hp@bitrange.com>
12686
12687 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12688 Remove redundant include of xm-ns32k.h.
12689 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12690 Remove redundant include of xm-ns32k.h.
12691 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12692 Remove redundant include of xm-ns32k.h.
12693 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12694
12695 * ns32k/ns32k.h: Update comment on multiply-add instructions.
12696 (TARGET_SWITCHES): Add documentation strings.
12697 (DWARF_FRAME_REGNUM): Override default definition.
12698 (REG_CLASS_CONTENTS): Add comments.
12699 (SUBSET_P): Format to reduce line length.
12700 (SMALL_REGISTER_CLASSES): Make a run time option.
12701 (GO_IF_NONINDEXED_ADDRESS): Reformat.
12702 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12703 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
12704 (regclass_map): fix typo in comment.
12705 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12706 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12707 (trace, reg_or_mem_operand): Delete, unused function.
12708 (calc_address_cost): Small offsets are cheaper than large ones.
12709 (expand_block_move): Generate more efficient code when bytes is a
12710 known at compile time.
12711 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12712 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12713 instead of reg_or_mem_operand.
12714
12715 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12716 not general_operand. Similarly use "=rm" or stricter, not "=g".
12717 For input operands, use stricter constraints than "g" if not
12718 general_operand. Similarly use stricter predicate than
12719 "general_operand" when stricter constraints than "g" are present,
12720 except for matching constraints.
12721 (movstrsi): Use "memory_operand" for operands 0 and 1.
12722 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12723 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12724 not reg_or_mem_operand.
12725 (udivmoddisi4): Ditto.
12726 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12727 Use nonimmediate_operand for operand 3, not register_operand.
12728 (udivmoddiqi4_internal): Use register_operand for operand 1, not
12729 reg_or_mem_operand.
12730
12731 2000-01-27 Fred Fish <fnf@be.com>
12732
12733 * gthr-posix.h: Fix typo; compatibily -> compatibility.
12734 * gthr-single.h: Likewise.
12735 * gthr-solaris.h: Likewise.
12736 * gthr-vxworks.h: Likewise.
12737 * gthr-win32.h: Likewise.
12738 * gthr.h: Likewise.
12739
12740 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12741
12742 * cppinit.c: Add " (cpplib)" to end of string printed by
12743 -v / --version.
12744
12745 2000-01-27 Richard Henderson <rth@cygnus.com>
12746
12747 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12748 testing for a signed comparison.
12749 (alpha_emit_floatuns): New.
12750 * alpha-protos.h: Declare it.
12751 * alpha.md (floatunsdisf2, floatunsdidf2): New.
12752 (extendsfdf2): Tidy.
12753
12754 2000-01-27 Jakub Jelinek <jakub@redhat.com>
12755
12756 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12757 no -g option specifying debugging format, default to -gstabs+.
12758
12759 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12760
12761 * calls.c (special_function_p): New argument fork_or_exec.
12762 (expand_call): When profile_arc_flag is set and the function
12763 is in the fork_or_exec group, call __bb_fork_func first.
12764 * libgcc2.c, _bb module (__bb_fork_func): New function.
12765 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12766 output file.
12767 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12768 * tree.h (special_function_p): Update prototype.
12769
12770 2000-01-26 Richard Henderson <rth@cygnus.com>
12771
12772 * alpha.c (alpha_split_tfmode_pair): New.
12773 * alpha-protos.h: Declare it.
12774 * alpha.md (abstf2, negtf2): New.
12775 (movtf insn): Add input G constraint.
12776 (movtf splitter): Use alpha_split_tfmode_pair.
12777
12778 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12779
12780 * i386/cygwin.h: PROTO -> PARAMS.
12781
12782 2000-01-26 Jakub Jelinek <jakub@redhat.com>
12783
12784 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12785 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12786 using _Qp_cmp/_Q_cmp and testing the return value.
12787 (print_operand): Call reverse_condition_maybe_unordered if
12788 we are handling CCFPmode or CCFPEmode.
12789 Handle ORDERED, UN* and LTGT comparisons.
12790 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12791 if not TARGET_HARD_QUAD.
12792 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12793 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12794 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12795 Adjust gen_b* calls so that they reflect return comparison of
12796 sparc_emit_float_lib_cmp.
12797
12798 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12799
12800 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12801 incoming operands array is large enough for one more operand.
12802 (alpha_emit_xfloating_arith): Likewise.
12803
12804 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12805
12806 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12807 file with one line and no trailing newline.
12808 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12809 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12810 checking if the match is on the line.
12811 * fixinc/gnu-regex.c: Provide regerror not __regerror.
12812
12813 2000-01-25 Richard Henderson <rth@cygnus.com>
12814
12815 * sparc.c (output_cbranch): Fix accidental squashing of the
12816 fp branch pre-delay nop.
12817
12818 2000-01-25 Richard Henderson <rth@cygnus.com>
12819
12820 * tree.def (UNNE_EXPR): Remove.
12821 * c-typeck.c (build_binary_op): Don't handle it.
12822 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12823
12824 * rtl.def (UNNE): Remove.
12825 (LTGT): Add.
12826 * jump.c (reverse_condition): Update accordingly.
12827 (swap_condition): Likewise.
12828 (comparison_dominates_p): Handle unordered comparisons.
12829 (reverse_condition_maybe_unordered): New.
12830 * rtl.h (reverse_condition_maybe_unordered): Declare.
12831
12832 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12833 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12834 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
12835 * sparc.md (bltgt): New.
12836
12837 2000-01-25 Nick Clifton <nickc@redhat.com>
12838
12839 * emit-rtl.c (emit_insn): Only check machine class insns for
12840 improper emission of a RETURN.
12841
12842 2000-01-25 Richard Henderson <rth@cygnus.com>
12843
12844 * Makefile.in (flow.o): Depend on $(EXPR_H).
12845 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
12846 duplicate the structure of diddle_return_value for keeping regs live.
12847
12848 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12849
12850 * loop.c (current_loop_info): Delete.
12851 (consec_sets_invariant_p): Add loop argument, update callers.
12852 (get_condition_for_loop): Likewise.
12853 (count_nonfixed_reads, update_giv_derive): Likewise.
12854 (simplify_giv_expr, general_induction_var): Likewise.
12855 (consec_sets_giv, recombine_givs): Likewise.
12856 (move_movables): Delete loop_start and loop_end arguments,
12857 add loop argument, and update callers.
12858 (find_mem_givs, check_final_value): Likewise.
12859 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
12860 (loop_invariant_p): Rename from invariant_p, add loop argument, and
12861 update callers.
12862 (basic_induction_var): Add loop argument, delete loop_level argument,
12863 and update callers.
12864 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
12865 add loop argument, and update callers.
12866 (find_splittable_regs, find_splittable_givs): Likewise.
12867 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
12868 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
12869 (biv_total_increment): Delete loop_start and loop_end arguments;
12870 update callers.
12871 (precondition_loop_p): Delete loop_start and loop_info arguments;
12872 update callers.
12873 * loop.h (get_condition_for_loop): Add loop argument.
12874 (biv_total_increment): Delete loop_start and loop_end arguments.
12875 (precondition_loop_p): Delete loop_start and loop_info arguments;
12876 add loop argument.
12877 (final_biv_value): Delete loop_start and loop_end arguments;
12878 add loop argument.
12879 (final_giv_value, back_branch_in_range_p): Likewise.
12880
12881 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12882
12883 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
12884
12885 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12886
12887 * Makefile.in (c-gperf.h) : Change the "See" pointer to
12888 point to the new "generated_files" doc.
12889
12890 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12891
12892 * config/fp-bit.c (_unord_f2): Fix typo.
12893
12894 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12895
12896 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
12897 c-typeck.c, objc/objc-act.c: Remove all references to obstack
12898 functions obsoleted by GC, such as push_obstacks_nochange,
12899 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
12900 and code which existed only to decide whether or not to call
12901 them. Remove now-unused NESTED argument from start_function;
12902 all callers changed. Do not change behavior based on ggc_p.
12903 The use of the ixp_obstack in c-iterate.c and the util_obstack
12904 in objc/objc-act.c remain; these are not obsoleted by garbage
12905 collection.
12906 * c-tree.h: Update prototype for start_function.
12907
12908 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
12909
12910 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12911
12912 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
12913 mips16.
12914
12915 2000-01-25 Richard Henderson <rth@cygnus.com>
12916
12917 * sparc-protos.h (select_cc_mode): Declare.
12918 * sparc.c (select_cc_mode): New. Handle unordered compares.
12919 (output_cbranch): Always reverse via code change. Handle
12920 unordered compares. Factor tests and string updates.
12921 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
12922 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
12923 * sparc.md (bunordered, bordered): New.
12924 (bungt, bunlt, buneq, bunge, bunle): New.
12925
12926 2000-01-25 Richard Henderson <rth@cygnus.com>
12927
12928 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
12929 * ggc-common.c (ggc_add_rtx_varray_root): New.
12930 (ggc_mark_rtx_varray): New.
12931 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
12932 functions down below ggc_mark_foo.
12933 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
12934
12935 2000-01-25 Richard Henderson <rth@cygnus.com>
12936
12937 * alpha.c (secondary_reload_class): Don't allocate a secondary
12938 for integral mode memories into FLOAT_REGS. Rearrange the more
12939 complicated memory expression inward.
12940
12941 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12942
12943 * inclhack.def: Fixes to play nicer with FreeBSD, and
12944 corrections to comments.
12945 (cxx_unready): Add select expression.
12946 (irix_sockaddr): Add bypass expression.
12947 (machine_ansi_h_va_list): New fix.
12948 (stdio_va_list): No need to edit _BSD_VA_LIST_.
12949 Split out addition of "#include <stdarg.h>" to...
12950 (stdio_stdarg_h): ... here.
12951 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
12952 to stdlib.h also. Do not munge _BSD_SIZE_T_.
12953 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
12954 size_t.
12955 (ultrix_ifdef): Tighten up select expression.
12956
12957 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
12958 re_ct and max_mach to avoid use of shell. Make printed names
12959 match names in inclhack.def. Use static copyright date.
12960 Don't count c_test and test expressions as requiring regex_t
12961 slots. Add some commentary.
12962 * inclhack.tpl: Do not include the 'This script contains N
12963 fixup scripts' line if PROGRAM is defined. Use static
12964 copyright date.
12965
12966 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
12967
12968 * dwarf2out.c: include "varray.h", not dyn-string.h.
12969 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
12970 (addr_const_to_string, addr_to_string): Lose.
12971 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
12972 (struct dw_val_struct): val_addr is now an rtx.
12973 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
12974 (used_rtx_varray): New varray.
12975 (dwarf2out_init): Initialize it.
12976 (save_rtx): New fn.
12977 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
12978 addr_to_string.
12979 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
12980 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
12981 * Makefile.in (dwarf2out.o): Update dependencies.
12982
12983 2000-01-24 Richard Henderson <rth@cygnus.com>
12984
12985 * i386.c (i386_dwarf_output_addr_const): New.
12986 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
12987
12988 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
12989 if defined.
12990 * dwarfout.c (output_mem_loc_descriptor): Likewise.
12991 * i386.c (i386_simplify_dwarf_addr): New.
12992 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
12993
12994 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
12995
12996 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
12997 TYPE_STUB_DECL is NULL.
12998
12999 2000-01-24 Richard Henderson <rth@cygnus.com>
13000
13001 * builtins.c (expand_tree_builtin): Move ...
13002 * c-common.c (expand_tree_builtin): ... here.
13003
13004 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13005
13006 * loop.h (LOOP_INFO): New accessor macro.
13007 * basic-block.h (struct loop): Rename field `info' to `aux'.
13008 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
13009 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
13010 * unroll.c (loop_iterations, unroll_loop): Likewise.
13011
13012 2000-01-24 Christopher Faylor <cgf@cygnus.com>
13013
13014 * config/i386/t-cygwin: Accomodate new winsup directory layout
13015 when searching for include files.
13016
13017 2000-01-24 Richard Henderson <rth@cygnus.com>
13018
13019 * rtl.def: Add unordered fp comparisions.
13020 * tree.def: Likewise.
13021 * tree.h: Add ISO C 9x unordered fp comparision builtins.
13022
13023 * builtins.c (expand_tree_builtin): New function.
13024 * c-typeck.c (build_function_call): Use it.
13025 (build_binary_op): Support unordered compares.
13026 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
13027
13028 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
13029 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
13030 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
13031 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
13032 * jump.c (reverse_condition): Don't abort for UNLE etc, but
13033 return UNKNOWN.
13034 (swap_condition): Handle unordered compares.
13035 (thread_jumps): Check can_reverse before reversing.
13036 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
13037 reversed for FP.
13038
13039 * optabs.c (can_compare_p): New argument CODE. Verify branch or
13040 setcc is present before acking for cmp_optab. Update all callers.
13041 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
13042 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
13043 * expr.c (expand_expr): Likewise. Support unordered compares.
13044 (do_jump, do_store_flag): Likewise.
13045 * expr.h (enum libfunc_index): Add unordered compares.
13046
13047 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
13048 (DPBIT_FUNCS): Add _unord_df.
13049 * config/fp-bit.c (_unord_f2): New.
13050 * fp-test.c (main): Try unordered compare builtins.
13051
13052 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
13053 * alpha.c (alpha_comparison_operator): Check mode properly.
13054 (alpha_swapped_comparison_operator): Likewise.
13055 (signed_comparison_operator): Likewise.
13056 (alpha_fp_comparison_operator): New.
13057 (alpha_emit_conditional_branch): Handle unordered compares.
13058 * alpha.h (PREDICATE_CODES): Update.
13059 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
13060 (bunordered, bordered): New.
13061
13062 2000-01-24 Richard Henderson <rth@cygnus.com>
13063
13064 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
13065 * alpha.md (movtf): New expander, insn, and splitter.
13066
13067 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
13068
13069 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
13070 dead registers.
13071
13072 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
13073
13074 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
13075 (FIXED_REGISTERS, CALL_USED_REGISTERS,
13076 REG_ALLOC_ORDER): Add frame pointer
13077 (FRAME_POINTER_REGNUM): Set to 20
13078 (HARD_FRAME_POINTER_REGNUM): New macro.
13079 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
13080 to HARD_FRAME_POINTER.
13081 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
13082 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
13083 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
13084 (HI_REGISTER_NAMES): Add "frame".
13085 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
13086 (debug_reg): Handle FRAME_POINTER_REGNUM.
13087 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
13088 GENERAL_REGS and INDEX_REGS.
13089 * i386.c (SAVED_REGS_FIRST): new macro.
13090 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
13091 (ix86_decompose_address, memory_address_length): Likewise.
13092 (regclass_map): Add frame pointer.
13093 (call_insn_operand): Handle frame_pointer_rtx.
13094 (reg_no_sp_operand): Likewise.
13095 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
13096 (print_operand, legitimize_pic_address): Fix formating.
13097 (ix86_compute_frame_size): Make static, update prototype, new
13098 parameters padding1, padding2, use ix86_nsaved_regs, use
13099 stack_alignment_needed.
13100 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
13101 to HARD_FRAME_POINTER_REGNUM conversions.
13102 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
13103 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
13104 (print_reg): Abort on FRAME_POINTER_REGNUM
13105
13106 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
13107
13108 * i386.h (PREDICATE_CODES): Add aligned_operand.
13109 * i386.c (aligned_operand): New function.
13110 (ix86_aligned_p): Kill.
13111 * i386.md (movhi_1): Emit mov for aligned operands.
13112 (promoting peep2s): Use aligned_operand.
13113
13114 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
13115
13116 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
13117 expression to allow underscores in macro names.
13118 (fix_char_macro_defines): Increment scanning pointer.
13119
13120 2000-01-23 Richard Henderson <rth@cygnus.com>
13121
13122 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
13123 * alpha/osf5.h: New file.
13124 * configure.in (alpha-*-osf5): Add it to tm_file.
13125
13126 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
13127
13128 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
13129 (alpha_emit_xfloating_cvt, function_arg): Declare.
13130 * alpha.c (alpha_emit_conditional_branch): Call
13131 alpha_emit_xfloating_compare for TFmode compares.
13132 (alpha_lookup_xfloating_lib_func): New.
13133 (alpha_compute_xfloating_mode_arg): New.
13134 (alpha_emit_xfloating_libcall): New.
13135 (alpha_emit_xfloating_arith): New.
13136 (alpha_emit_xfloating_compare): New.
13137 (alpha_emit_xfloating_cvt): New.
13138 (print_operand): Add default abort case.
13139 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
13140 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
13141 (BIGGEST_ALIGNMENT): Increase to 128 bits.
13142 (RETURN_IN_MEMORY): True for TF/TCmode.
13143 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
13144 (FUNCTION_ARG): Move to function_arg.
13145 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
13146 (ASM_OUTPUT_LONG_DOUBLE): New.
13147 (ASM_OUTPUT_DOUBLE): Always output bits.
13148 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
13149 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
13150 (extenddftf2, trunctfdf2): New.
13151
13152 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13153
13154 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
13155 * config/sparc/sol2.h: ... here.
13156
13157 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13158
13159 * basic-block.h (struct loops): New field `levels'.
13160 * flow.c (flow_loops_level_compute): Traverse all outer loops.
13161 (flow_loop_level_compute): Initialise level to 1.
13162 (flow_loops_find): Set loops->levels.
13163 (flow_loops_dump): Print loops->levels.
13164
13165 2000-01-23 Richard Henderson <rth@cygnus.com>
13166
13167 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
13168 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
13169
13170 2000-01-23 Richard Henderson <rth@cygnus.com>
13171
13172 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
13173 * i386.h (DBX_REGISTER_NUMBER): Use them.
13174 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
13175 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
13176 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
13177 * i386/sequent.h: Kill incorrect comment.
13178
13179 2000-01-23 Mark Mitchell <mark@codesourcery.com>
13180
13181 * ggc-page.c (struct page_entry): Make `context_depth' an
13182 `unsigned short'.
13183 (struct globals): Likewise.
13184
13185 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
13186
13187 * loop.c (check_dbra_loop): When checking a loop for
13188 reversability, check the source of any stores to ensure
13189 they don't depend on an initial value.
13190
13191 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13192
13193 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
13194
13195 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
13196
13197 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
13198 'pz_scan' into scope of entire function. Only affects
13199 compiles with -DDEBUG.
13200
13201 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
13202
13203 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
13204 section naming to that prior to 2000-01-07 patch.
13205 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
13206 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
13207 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
13208 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
13209 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
13210
13211 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
13212
13213 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
13214 constant.
13215
13216 2000-01-21 Jim Wilson <wilson@cygnus.com>
13217
13218 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
13219 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
13220
13221 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13222
13223 * cpphash.c (change_newlines): Delete function.
13224 (struct argdata): Delete 'newlines' and 'use_count' fields.
13225 (macroexpand): Remove code referencing those fields.
13226
13227 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13228
13229 * loop.c (loops_info): New variable.
13230 (loop_optimize): Allocate loops->array and free it on exit.
13231 Allocate memory for loops_info and assign to each loop,
13232 replacing alloca.
13233 (find_and_verify_loops): Do not allocate loops->array.
13234
13235 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
13236
13237 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
13238
13239 2000-01-21 Jakub Jelinek <jakub@redhat.com>
13240
13241 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
13242 pseudos if expanded after first flow.
13243 (movdi_pic_label_ref): Likewise.
13244
13245 2000-01-20 Richard Henderson <rth@cygnus.com>
13246
13247 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
13248
13249 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
13250
13251 * Makefile.in (fixinc.sh): Depend on specs.
13252 * fixinc/Makefile.in: Add rule to create machname.h.
13253 (fixlib.o): Depend on machname.h.
13254 * fixinc/fixtests.c (machine_name): New test.
13255 * fixinc/fixfixes.c (machine_name): New fix.
13256 * fixinc/fixlib.c (mn_get_regexps): New helper function for
13257 the machine_name test and fix.
13258 * fixinc/fixlib.h: Prototype it.
13259 * fixinc/inclhack.def (machine_name): Use the C test and fix.
13260 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
13261
13262 * gcc.c (do_spec_1) [case P]: Take care not to create
13263 identifiers with three leading or trailing underscores.
13264
13265 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
13266 (fixincl): Don't specify libraries twice on link line.
13267 (gnu-regex.o): Remove special rule.
13268 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
13269 defined by config.h. Do not define _REGEX_RE_COMP.
13270 (regcomp): Allocate and initialize a fastmap.
13271 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
13272
13273 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
13274
13275 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
13276
13277 2000-01-19 Richard Henderson <rth@cygnus.com>
13278
13279 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
13280 arguments with BB. Update all callers. Tidy line wrapping.
13281
13282 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
13283
13284 * emit-rtl.c (try_split): Return last_insn if we split the
13285 last_insn.
13286
13287 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
13288
13289 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
13290 (ix86_initial_elimination_offset): Declare.
13291 * i386.c (ix86_nsaved_regs): Break out from ...
13292 (ix86_can_use_return_insn_p): ... here.
13293 (ix86_emit_save_regs): Break out from ...
13294 (ix86_expand_prologue): ... here.
13295 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
13296 out from ...
13297 (ix86_expand_epilogue): ... here.
13298 (ix86_compute_frame_size): Make static, add prototype.
13299 (ix86_initial_elimination_offset): Break out from ...
13300 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
13301
13302 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13303
13304 * recog.h (OUT_FCN): Delete.
13305
13306 * vax.md: Call `get_insn_template' instead of OUT_FCN.
13307
13308 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13309
13310 * cppalloc.c: PROTO -> PARAMS.
13311 * cpperror.c: Likewise.
13312 * cppfiles.c: Likewise.
13313 * cpplib.c: Likewise.
13314 * cpplib.h: Likewise.
13315
13316 * config/arm/arm-protos.h: PROTO -> PARAMS.
13317 * config/arm/arm.c: Likewise.
13318 * config/c4x/c4x.c: Likewise.
13319 * config/fr30/fr30-protos.h: Likewise.
13320 * config/nextstep.c: Likewise.
13321 * config/pa/pa.c: Likewise.
13322 * config/pj/pj.c: Likewise.
13323 * config/rs6000/rs6000.c: Likewise.
13324 * config/v850/v850-protos.h: Likewise.
13325 * config/v850/v850.c: Likewise.
13326
13327 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13328
13329 * i370-protos.h: New file.
13330
13331 * i370.c: Include tm_p.h. Fix compile time warnings.
13332
13333 * i370.h: Move prototypes to i370-protos.h. Fix compile time
13334 warnings.
13335
13336 * i370.md: Likewise.
13337
13338 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13339
13340 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13341 (target_isinf, target_isnan, eisnan): Mark parameter with
13342 ATTRIBUTE_UNUSED.
13343 (eiisinf): Wrap in INFINITY.
13344 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13345 (ibmtoe): Remove unused variable `rndsav'.
13346
13347 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13348
13349 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13350 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13351
13352 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
13353
13354 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13355 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13356 (fix_char_macro_defines, fix_char_macro_uses): New functions.
13357
13358 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13359 Recognize Emacs mode markers also.
13360 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13361 C++ comments in C++ headers. Call is_cxx_header only if
13362 necessary.
13363
13364 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13365 bypass for ncurses.
13366 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13367 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13368 ... these, which use the new C fixes.
13369 (math_exception): Escape literal '+' in bypass expression.
13370
13371 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13372 Regenerate.
13373
13374 2000-01-19 Geoff Keating <geoffk@cygnus.com>
13375
13376 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13377 inside the MEM.
13378
13379 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13380
13381 * loop.c (loop_optimize): Allocate loop_info structure for each loop
13382 prior to calling scan_loop.
13383
13384 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13385
13386 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13387 (split_branches, calc_live_regs): Likewise.
13388
13389 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13390
13391 * sh.md (fpu_single, fp_mode): New attributes.
13392
13393 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13394
13395 * loop.c (current_loop_info): Renamed from loop_info_data
13396 and changed to a pointer.
13397 (loop_optimize): Allocate loop_info structure for each loop
13398 and initialise to zero.
13399 (scan_loop): Set current_loop_info.
13400
13401 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13402 on iteration_var.
13403
13404 2000-01-19 Richard Henderson <rth@cygnus.com>
13405
13406 * stupid.c: Die die die.
13407 * Makefile.in (OBJS): Remove stupid.o.
13408 (stupid.o): Likewise.
13409
13410 * except.c (emit_eh_context): Don't emit USEs for stupid.
13411 * explow.c (probe_stack_range): Likewise.
13412 * flags.h (obey_regdecls): Remove.
13413 * flow.c (find_basic_blocks): Don't run try_merge_blocks
13414 when not optimizing.
13415 (life_analysis): Limit data collection when not optimizing.
13416 (mark_regs_live_at_end): Always mark the return value registers.
13417 (mark_used_regs): Remove dummy RETURN case.
13418 (print_rtl_with_bb): Don't consult obey_regdecls.
13419 * function.c (use_variable, use_variable_after): Remove.
13420 (assign_parms): Consult optimize not obey_regdecls.
13421 (expand_function_start): Don't emit USEs for stupid.
13422 (expand_function_end): Likewise.
13423 * global.c (build_insn_chain): Export.
13424 * integrate.c (expand_inline_function): Kill return-value USE
13425 handling code.
13426 * jump.c (jump_optimize_1): Do simple jump optimizations and
13427 dead code elimination.
13428 (calculate_can_reach_end): Remove check_deleted argument.
13429 (delete_insn): Patch out insns even when not optimizing.
13430 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13431 * rtl.h (use_variable, use_variable_after): Remove declarations.
13432 (build_insn_chain): Declare.
13433 * stmt.c (expand_value_return): Don't emit USEs for stupid.
13434 (expand_end_bindings): Likewise.
13435 (expand_decl): Likewise. Consult optimize not obey_regdecls.
13436 * toplev.c (obey_regdecls): Remove.
13437 (rest_of_compilation): Don't set it. Kill stupid in favour of
13438 flow1, local-alloc, and reload.
13439 (main): Don't set obey_regdecls.
13440
13441 * config/nextstep.c (handle_pragma): Likewise.
13442
13443 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13444
13445 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13446
13447 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13448
13449 * alpha-protos.h: PROTO -> PARAMS.
13450 * alpha.c: Likewise.
13451 * elf.h: Likewise.
13452 * h8300.c: Likewise.
13453 * i386-protos.h: Likewise.
13454 * i386.c: Likewise.
13455 * m32r-protos.h: Likewise.
13456 * m32r.c: Likewise.
13457 * mips.c: Likewise.
13458 * mips.md: Likewise.
13459 * gmon-sol2.c: Likewise.
13460 * sparc.c: Likewise.
13461
13462 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13463
13464 * ns32k-protos.h: New file.
13465
13466 * ns32k.c: Fix compile time warnings.
13467
13468 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
13469 warnings.
13470
13471 * ns32k.md: Likewise.
13472
13473 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13474
13475 * vax-protos.h: New file.
13476
13477 * vax.c: Fix compile time warnings.
13478
13479 * vax.h: Move prototypes to vax-protos.h. Fix compile time
13480 warnings.
13481
13482 * vax.md: Likewise.
13483
13484 * vaxv.md: Likewise.
13485
13486 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13487
13488 * romp-protos.h: New file.
13489
13490 * romp.c: Fix compile time warnings.
13491
13492 * romp.h: Move prototypes to romp-protos.h. Fix compile time
13493 warnings.
13494
13495 * romp.md: Likewise.
13496
13497 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13498
13499 * we32k-protos.h: New file.
13500
13501 * we32k.c: Fix compile time warnings.
13502
13503 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
13504 warnings.
13505
13506 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13507
13508 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13509
13510 * except.c (eh_regs): Likewise.
13511
13512 * final.c (output_operand): Likewise.
13513
13514 * fold-const.c (target_isinf, target_isnan): Likewise.
13515
13516 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
13517
13518 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13519 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13520
13521 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13522 when optimize_size.
13523 (clrstrsi): Rewrite.
13524 (strsethi, strsetqi): New expanders.
13525 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13526 (cmpstrsi): Emit compare insn before cmpstrsi_1
13527 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13528 (strlensi_1): Likewise.
13529 (cmpstrsi_1): Likewise; do not output compare.
13530 (strlen expander): Do not unroll when optimizing for size.
13531 (*subsi3_carry): Rename to subsi3_carry
13532 (addqi3_cc): New pattern.
13533 * i386.h (processor_costs): Add move_ratio field.
13534 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13535 * i386.c (*_cost): Set move_ratio.
13536 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13537 (x86_expand_strlensi_1): Rewrite the main loop.
13538
13539 2000-01-17 Richard Henderson <rth@cygnus.com>
13540
13541 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13542 * cse.c (find_comparison_args, fold_rtx): Likewise.
13543 * integrate.c (subst_constants): Likewise.
13544 * loop.c (get_condition): Likewise.
13545
13546 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13547
13548 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13549
13550 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13551
13552 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13553 (RESTORE_WARN_FLAGS): Unpack it.
13554 Change semantic type of extension to ttype.
13555 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13556 * c-parse.y, c-parse.c, objc/objc-parse.y,
13557 objc/objc-parse.c: Regenerate.
13558
13559 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
13560
13561 * fixinc/fixlib.c: Add copyright notice.
13562 (compile_re): New function.
13563 * fixinc/fixlib.h: Prototype compile_re.
13564
13565 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13566 Use compile_re to compile regular expressions.
13567
13568 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13569 where the pattern matched.
13570
13571 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13572 use 'replace'.
13573 (ultrix_ansi_compat): Likewise.
13574 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13575 add egrep test.
13576 (interactv_add2, interactv_add3): Delete.
13577 (x11_sprintf): Don't use filename glob.
13578 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13579 Regenerate.
13580
13581 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13582
13583 * print-rtl.c: PROTO -> PARAMS.
13584 * real.c: Likewise.
13585 * reg-stack.c: Likewise.
13586 * resource.c: Likewise.
13587 * sdbout.h: Likewise.
13588 * simplify-rtx.c: Likewise.
13589 * stor-layout.c: Likewise.
13590 * stupid.c: Likewise.
13591 * xcoffout.c: Likewise.
13592 * xcoffout.h: Likewise.
13593
13594 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13595
13596 * toplev.c: PROTO -> PARAMS.
13597 * toplev.h: Likewise.
13598 * tree.c: Likewise.
13599 * tree.h: Likewise.
13600 * unroll.c: Likewise.
13601 * varasm.c: Likewise.
13602 * varray.c: Likewise.
13603 * varray.h: Likewise.
13604
13605 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13606
13607 * reload.c: PROTO -> PARAMS.
13608 * reload.h: Likewise.
13609 * reload1.c: Likewise.
13610 * reorg.c: Likewise.
13611 * resource.h: Likewise.
13612 * rtl.c: Likewise.
13613 * rtl.h: Likewise.
13614 * rtlanal.c: Likewise.
13615 * sbitmap.h: Likewise.
13616 * sdbout.c: Likewise.
13617 * stack.h: Likewise.
13618 * stmt.c: Likewise.
13619 * system.h: Likewise.
13620
13621 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13622
13623 * machmode.h: PROTO -> PARAMS.
13624 * mbchar.h: Likewise.
13625 * mips-tdump.c: Likewise.
13626 * mips-tfile.c: Likewise.
13627 * optabs.c: Likewise.
13628 * output.h: Likewise.
13629 * prefix.c: Likewise.
13630 * profile.c: Likewise.
13631 * protoize.c: Likewise.
13632 * real.h: Likewise.
13633 * recog.c: Likewise.
13634 * recog.h: Likewise.
13635 * regclass.c: Likewise.
13636 * regmove.c: Likewise.
13637 * regs.h: Likewise.
13638
13639 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13640
13641 * ggc-common.c: PROTO -> PARAMS.
13642 * ggc-page.c: Likewise.
13643 * ggc-simple.c: Likewise.
13644 * ggc.h: Likewise.
13645 * global.c: Likewise.
13646 * graph.c: Likewise.
13647 * gthr-win32.h: Likewise.
13648 * haifa-sched.c: Likewise.
13649 * halfpic.h: Likewise.
13650 * integrate.c: Likewise.
13651 * integrate.h: Likewise.
13652 * jump.c: Likewise.
13653 * lcm.c: Likewise.
13654 * local-alloc.c: Likewise.
13655 * loop.c: Likewise.
13656 * loop.h: Likewise.
13657
13658 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13659
13660 * genattr.c: PROTO -> PARAMS.
13661 * genattrtab.c: Likewise.
13662 * gencheck.c: Likewise.
13663 * gencodes.c: Likewise.
13664 * genconfig.c: Likewise.
13665 * genemit.c: Likewise.
13666 * genextract.c: Likewise.
13667 * genflags.c: Likewise.
13668 * gengenrtl.c: Likewise.
13669 * genopinit.c: Likewise.
13670 * genoutput.c: Likewise.
13671 * genpeep.c: Likewise.
13672 * genrecog.c: Likewise.
13673
13674 2000-01-16 Mark Mitchell <mark@codesourcery.com>
13675
13676 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13677
13678 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13679
13680 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13681 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13682 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13683 * configure, config.in: Rebuilt.
13684
13685 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
13686
13687 * config/i386/i386.md: Add peephole to merge successive stack
13688 adjusts.
13689
13690 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
13691
13692 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13693 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
13694 when walking backwards to find all the parameter loads when
13695 the basic block ends in a call.
13696
13697 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13698
13699 * loop.c (this_loop_info): Delete.
13700 (uid_loop): Add in place of uid_loop_num. All uses updated.
13701 (loop_number_exit_count): Delete and replace with entry in loop
13702 structure. All uses updated.
13703 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13704 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13705 (loop_outer_loop): Likewise.
13706 (loop_invalid, loop_number_exit_labels): Likewise.
13707 (loop_used_count_register): Delete and replace with entry in
13708 loop_info structure.
13709 (find_and_verify_loops): Add loops argument.
13710 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13711 loop_end, etc. arguments with loop structure pointer. All callers
13712 changed.
13713 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13714 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13715 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13716 (insert_bct): Likewise.
13717 (basic_induction_var): New argument level.
13718 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13719 vtop, and cont. Add used_count_register.
13720 (uid_loop): Delete declaration.
13721 (loop_number_exit_count): Likewise.
13722 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13723 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13724 (loop_outer_loop, loop_used_count_register): Likewise.
13725 (loop_invalid, loop_number_exit_labels): Likewise.
13726 (unroll_loop): Replace loop_start and loop_end arguments
13727 with loop structure pointer.
13728 (loop_precondition_p, loop_iterations): Likewise.
13729 Include basic-block.h.
13730 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13731 with loop structure pointer.
13732 (loop_precondition_p, loop_iterations): Likewise.
13733 * basic-block.h (struct loop): New entries vtop, cont,
13734 cont_dominator, start, end, top, scan_start, exit_labels,
13735 exit_count.
13736 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13737
13738 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13739
13740 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13741
13742 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
13743
13744 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13745
13746 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13747
13748 * pdp11-protos.h: New file.
13749
13750 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
13751 time warnings.
13752
13753 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
13754 warnings.
13755
13756 * pdp11.md: Likewise.
13757
13758 * 2bsd.h: Likewise.
13759
13760 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13761
13762 * mn10300-protos.h: New file.
13763
13764 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
13765 time warnings.
13766
13767 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
13768 warnings.
13769
13770 * mn10300.md: Likewise.
13771
13772 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13773
13774 * mn10200-protos.h: New file.
13775
13776 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
13777 time warnings.
13778
13779 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
13780 warnings.
13781
13782 * mn10200.md: Likewise.
13783
13784 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13785
13786 * h8300-protos.h: New file.
13787
13788 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
13789 time warnings.
13790
13791 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
13792 warnings.
13793
13794 * h8300.md: Likewise.
13795
13796 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13797
13798 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13799 (asm_emit_uninitialised): Likewise.
13800
13801 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
13802
13803 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13804 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13805
13806 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13807
13808 * config/mips/mips.c (override_options): Don't turn on extra
13809 alignment for mips16.
13810
13811 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13812
13813 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13814 eabi, and make sure queued POSTINCREMENT rtl is emitted at
13815 the right point.
13816
13817 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13818
13819 * builtins.c (PAD_VARARGS_DOWN): Define.
13820 (std_expand_builtin_va_arg): Use the above macro.
13821 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13822 * tm.texi (Register Arguments): Document the above macro.
13823
13824 2000-01-14 Nick Clifton <nickc@cygnus.com>
13825
13826 * emit-rtl.c (emit_insn): If checking is enabled, make sure
13827 that this function has not been used to emit a jump
13828 instruction.
13829
13830 * jump.c (return_jump_1): Cope with being passed a null rtx.
13831
13832 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13833
13834 * eh-common.h: PROTO -> PARAMS.
13835 * emit-rtl.c: Likewise.
13836 * errors.c: Likewise.
13837 * errors.h: Likewise.
13838 * except.c: Likewise.
13839 * except.h: Likewise.
13840 * explow.c: Likewise.
13841 * expmed.c: Likewise.
13842 * expr.c: Likewise.
13843 * expr.h: Likewise.
13844 * final.c: Likewise.
13845 * fix-header.c: Likewise.
13846 * flow.c: Likewise.
13847 * fold-const.c: Likewise.
13848 * function.c: Likewise.
13849 * function.h: Likewise.
13850 * gcc.c: Likewise.
13851 * gcov-io.h: Likewise.
13852 * gcov.c: Likewise.
13853 * gcse.c: Likewise.
13854
13855 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13856
13857 * sh-protos.h: New file.
13858
13859 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
13860 Add static prototypes. Fix compile time warnings.
13861
13862 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
13863 * sh.md: Likewise.
13864 * elf.h: Likewise.
13865
13866 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13867
13868 * arc-protos.h: New file.
13869
13870 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
13871 time warnings.
13872
13873 * arc.h: Move prototypes to arc-protos.h. Fix compile time
13874 warnings.
13875
13876 * arc.md: Likewise.
13877
13878 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13879
13880 * dsp16xx-protos.h: New file.
13881
13882 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
13883 time warnings.
13884
13885 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
13886 warnings.
13887
13888 * dsp16xx.md: Likewise.
13889
13890 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13891
13892 * convex-protos.h: New file.
13893
13894 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
13895 time warnings.
13896
13897 * convex.h: Move prototypes to convex-protos.h. Fix compile time
13898 warnings.
13899
13900 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13901
13902 * elxsi-protos.h: New file.
13903
13904 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
13905 time warnings.
13906
13907 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
13908 warnings.
13909
13910 * elxsi.md: Likewise.
13911
13912 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13913
13914 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
13915 case for moving from HI/LO/HI_LO_REG. This makes the behavior
13916 match the comment for MIPS16.
13917
13918 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
13919
13920 * flow.c (split_edge): Do not call set_block_for_insn if we
13921 do not have a basic_block_for_insn structure.
13922
13923 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
13924 and destination functions are 32bit aligned within the trampoline.
13925 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
13926 (TRAMPOLINE_ALIGNMENT): Define.
13927
13928 * cse.c (cse_insn): When changing (set (pc) (reg)) to
13929 (set (pc) (label_ref)), verify the change creates a valid insn.
13930
13931 * fr30.c (call_operand): Tighten and rework to match rules for
13932 call RTL expressions.
13933 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
13934 * fr30.md (call patterns): Improve constraints.
13935
13936 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
13937
13938 * fr30.c (fr30_expand_epilogue): Revert last change.
13939 Use emit_jump_insn for the return insn.
13940
13941 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
13942 Stan Cox <scox@cygnus.com>
13943
13944 * predict.c: New file. Preliminary infrastructure work for static
13945 branch prediction and basic block reordering.
13946 * basic-block.h: Add prototype for estimate_probability.
13947 * Makefile.in: Add rules for predict.o.
13948
13949 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
13950
13951 * fixincludes (va_list): Use __not_va_list__ for the dummy.
13952 * fixinc/*: Likewise.
13953
13954 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13955
13956 * cccp.c: PROTO -> PARAMS.
13957 * cexp.y: Likewise.
13958 * collect2.c: Likewise.
13959 * combine.c: Likewise.
13960 * convert.h: Likewise.
13961 * cse.c: Likewise.
13962 * dbxout.c: Likewise.
13963 * dbxout.h: Likewise.
13964 * diagnostic.c: Likewise.
13965 * doprint.c: Likewise.
13966 * dwarf2out.c: Likewise.
13967 * dwarf2out.h: Likewise.
13968 * dwarfout.c: Likewise.
13969 * dwarfout.h: Likewise.
13970 * dyn-string.h: Likewise.
13971
13972 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13973
13974 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
13975 macro conditionals guarding use.
13976
13977 * dwarf2out.c: Include "tm_p.h".
13978
13979 * function.c (locate_and_pad_parm): Mark parameter with
13980 ATTRIBUTE_UNUSED.
13981 (expand_function_end): Likewise for variable `context'.
13982
13983 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
13984
13985 2000-01-13 Nick Clifton <nickc@cygnus.com>
13986
13987 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
13988 register to prevent compile time warnings.
13989
13990 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
13991
13992 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
13993 to avoid -Wtraditional warning.
13994
13995 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13996
13997 * 1750a-protos.h: New file.
13998
13999 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
14000 time warnings.
14001
14002 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
14003 warnings.
14004
14005 * 1750a.md: Likewise.
14006
14007 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14008
14009 * a29k-protos.h: New file.
14010
14011 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
14012 time warnings.
14013
14014 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
14015 warnings.
14016
14017 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14018
14019 * clipper-protos.h: New file.
14020
14021 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
14022 time warnings.
14023
14024 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
14025 warnings.
14026
14027 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14028
14029 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
14030
14031 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
14032
14033 * configure.in (--enable-new-gxx-abi): New option.
14034 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
14035 * Makefile.in (GXX_ABI_FLAG): New variable.
14036 * configure: Regenerate.
14037
14038 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14039
14040 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
14041 * tm.texi (FORCE_STRUCT_BLK): Document.
14042 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
14043
14044 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
14045
14046 * config/ns32k/ns32k.md: Revert Jan 9 change.
14047
14048 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
14049 to a mode-test, if the predicate is address_operand.
14050
14051 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
14052
14053 * combine.c (if_then_else_cond): Be careful about what kinds
14054 of RTL expressions are passed to operand_subword.
14055
14056 * flow.c (split_edge): If we have to insert a new jump, make
14057 sure to associate it with a basic block.
14058
14059 * flow.c (commit_one_edge_insertion): A block with one successor
14060 can end in a JUMP_INSN that is not a simplejump.
14061
14062 2000-01-12 Robert Lipe <robertl@sco.com>
14063
14064 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
14065 (BUILD_VA_LIST_TYPE): Define.
14066 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
14067 with crtstuff.c.
14068
14069 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
14070
14071 * cccp.c (do_pragma): Add cast to (char *).
14072
14073 2000-01-12 Richard Henderson <rth@cygnus.com>
14074 Fred Fish <fnf@be.com>
14075 Jason Merrill <jason@cygnus.com>
14076
14077 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
14078 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
14079 * i386/beos-elf.h, i386/beos-pe.h: New files.
14080
14081 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
14082 * cross-make (SYSTEM_HEADER_DIR): Define using
14083 CROSS_SYSTEM_HEADER_DIR.
14084
14085 * gcc.c (LIBRARY_PATH_ENV): Provide default.
14086 (process_command): Use it.
14087 (main): Likewise. Kill trailing = from env vars.
14088 (build_search_list): Put it back.
14089 * collect2.c (main): Use LIBRARY_PATH_ENV.
14090
14091 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
14092 * toplev.c: Use NEED_DECLARATION_ENVIRON.
14093
14094 * tm.texi (Frame Layout): Document SMALL_STACK.
14095 * c-common.c (c_common_nodes_and_builtins): Check it.
14096
14097 * system.h: Undef alloca after including glibc's <stdlib.h>,
14098 if USE_C_ALLOCA is defined.
14099
14100 * gcc.c (set_input): New fn.
14101 (main): After all input files are compiled, reset the input file
14102 info to the first.
14103
14104 * aclocal.m4 (rindex, index): If already defined, don't attempt
14105 to redefine.
14106
14107 * ginclude/varargs.h: (__va_list__): Define ifndef.
14108 * ginclude/stdarg.h: Likewise.
14109
14110 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
14111 instead of unsigned char.
14112
14113 * hash.h (true, false, boolean): Undef before enum.
14114
14115 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
14116 proper type of "HOST_WIDE_INT *", rather than their natural type of
14117 "unsigned HOST_WIDE_INT *".
14118
14119 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14120
14121 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
14122
14123 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
14124
14125 * regclass.c (choose_hard_reg_mode): Likewise.
14126
14127 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
14128
14129 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
14130
14131 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14132
14133 * c-common.c: PROTO -> PARAMS.
14134 * c-common.h: Likewise.
14135 * c-decl.c: Likewise.
14136 * c-iterate.c: Likewise.
14137 * c-lang.c: Likewise.
14138 * c-lex.c: Likewise.
14139 * c-lex.h: Likewise.
14140 * c-parse.in: Likewise.
14141 * c-pragma.c: Likewise.
14142 * c-pragma.h: Likewise.
14143 * c-tree.h: Likewise.
14144 * c-typeck.c: Likewise.
14145 * objc/objc-act.c: Likewise.
14146 * objc/objc-act.h: Likewise.
14147
14148 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14149
14150 * m88k-protos.h: New file.
14151
14152 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
14153 time warnings.
14154
14155 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
14156
14157 * m88k.md: Likewise.
14158
14159 * tekXD88.h: Likewise.
14160
14161 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14162
14163 * m68k-protos.h: New file.
14164
14165 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
14166 time warnings.
14167
14168 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
14169
14170 * mot3300.h: Likewise.
14171
14172 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
14173
14174 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
14175 extract_bitlst.
14176 (extract_bitlist): Declare bitlen.
14177
14178 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
14179
14180 * cccp.c: Accept and ignore -lang-fortran.
14181
14182 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
14183 qualifiers don't match at any level of pointerness.
14184
14185 2000-01-12 Robert Lipe <robertl@sco.com>
14186
14187 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
14188
14189 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
14190
14191 * reload1.c (reload_reg_unavailable): New static variable.
14192 (reload_reg_free_p): Test it.
14193 (reload_reg_free_for_value_p): Test it instead of
14194 reload_reg_used.
14195 (choose_reload_regs_init): Compute it.
14196
14197 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
14198
14199 * reorg.c (fill_slots_from_thread): Check modified_in_p
14200 before replacing.
14201
14202 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
14203
14204 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
14205 these nodes even if INTERNALS is not set.
14206
14207 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
14208
14209 * gcse.c (delete_null_pointer_checks_1): Cope when
14210 get_condition cannot determine the condition.
14211
14212 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
14213
14214 * toplev.h (set_message_length): Declare.
14215
14216 * diagnostic.c (obstack_chunk_alloc): Define macro.
14217 (obstack_chunk_free): Likewise.
14218 (struct output_buffer): New data structure.
14219 (vmessage): Remove.
14220 (output_maximum_width): New variable.
14221 (doing_line_wrapping, set_message_length, init_output_buffer,
14222 get_output_prefix, output_space_left, emit_output_prefix,
14223 output_newline, output_append, output_puts, dump_output,
14224 vbuild_message_string, build_message_string, build_location_prefix,
14225 voutput_notice, output_printf, line_wrapper_printf,
14226 vline_wrapper_message_with_location): New functions. Implement
14227 automatic line wrapping.
14228 (v_message_with_decl): Make it handle automatic line wrapping.
14229 (v_error_with_file_and_line): Likewise.
14230 (v_warning_with_file_and_line): Likewise.
14231 (announce_function): Likewise.
14232 (default_print_error_function): Likewise.
14233
14234 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
14235
14236 * cpplib.h (struct cpp_options): Change lang_asm to char.
14237 Add lang_fortran.
14238 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
14239 done in cpp_handle_option now.
14240 (initialize_builtins): Take out special case code used only by
14241 __STDC_VERSION__.
14242 (cpp_handle_option): Turn off trigraphs and trigraph warnings
14243 if -traditional. Recognize -lang-fortran and set
14244 lang_fortran, also turn off cplusplus_comments.
14245 (print_help): Document -lang-fortran.
14246 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
14247 lang_asm. Ignore all directives other than `# 123 "file"' if
14248 CPP_PREPROCESSED.
14249 (cpp_get_token): If -traditional, don't recognize directives
14250 unless the # is in column 1.
14251 (parse_string): If lang_fortran or lang_asm, silently
14252 terminate strings ('' or "") at end of line.
14253 Remove unnecessary braces.
14254
14255 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14256 Richard Henderson <rth@cygnus.com>
14257
14258 * resource.c (mark_referenced_resources): Mark a set strict_low_part
14259 as used.
14260 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
14261 strict_low_part when possible.
14262
14263 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14264
14265 * alias.c: PROTO -> PARAMS.
14266 * basic-block.h: Likewise.
14267 * bitmap.c: Likewise.
14268 * bitmap.h: Likewise.
14269 * builtins.c: Likewise.
14270 * c-aux-info.c: Likewise.
14271 * caller-save.c: Likewise.
14272 * calls.c: Likewise.
14273
14274 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14275
14276 * Makefile.in (toplev.o): Depend on regs.h.
14277
14278 * output.h (tdesc_section): Prototype.
14279
14280 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
14281
14282 * sdbout.c: Include "tm_p.h".
14283
14284 * toplev.c: Include "regs.h".
14285
14286 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
14287
14288 * unroll.c (unroll_loop): Add EH support.
14289
14290 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14291
14292 * pa-protos.h: New file.
14293
14294 * pa.c: Include recog.h and tm_p.h.
14295 (compute_zdepwi_operands, compute_movstrsi_length,
14296 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
14297 find_addr_reg, import_milli): Add static prototypes.
14298 (pa_cpu_string, pa_arch_string): Constify a char*.
14299 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
14300 (read_only_operand): Add argument `mode'.
14301 (singlemove_string, output_move_double, output_fp_move_double,
14302 output_block_move, output_and, output_ior, output_ascii,
14303 remove_useless_addtr_insns, milli_names, output_mul_insn,
14304 output_div_insn, output_mod_insn, output_arg_descriptor,
14305 output_cbranch, output_bb, output_bvb, output_dbra, ,
14306 output_millicode_call, output_call, hppa_encode_label,
14307 output_parallel_movb, output_parallel_addb): Constify a char*.
14308 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
14309 (output_parallel_addb): Remove extra arg to `constrain_operands'
14310
14311 * pa.h: Move all prototypes to pa-protos.h.
14312 (pa_cpu_string, pa_arch_string): Constify a char*.
14313 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
14314
14315 * pa.md: Call `function_label_operand' with mode argument.
14316 Likewise for `read_only_operand'.
14317 Fix nesting of parens in call to `symbolic_operand'.
14318
14319 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14320
14321 * i860-protos.h: New file.
14322
14323 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
14324 time warnings.
14325
14326 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
14327
14328 * i860.md: Likewise.
14329
14330 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
14331
14332 * i386.md (movstrsi expander): Rewrite.
14333 (movstrsi_1 insn): Deleted.
14334 (strmovhi, strmovqi expander): New expanders.
14335 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14336 * i386.c (x86_single_stringop): New global variable.
14337 * i386.h (x86_single_stringop): Declare.
14338 (TARGET_SINGLE_STRINGOP): New macro.
14339
14340 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14341
14342 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14343 integer vararg POSTINCREMENT before the destination of the jump
14344 for the hard fp case.
14345 (function_arg_pass_by_reference): Pass a copy of CUM to
14346 FUNCTION_ARG.
14347
14348 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14349 for CONSTANT_ADDRESS_P above while loop for subreg.
14350
14351 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14352
14353 * flow.c (propagate_block): When a prologue/epilogue insn
14354 is marked dead, unconditionally clear libcall_is_dead and
14355 insn_is_dead, and only dump rtl if warnings aren't being
14356 suppressed.
14357
14358 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
14359
14360 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14361 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14362 (FIXED_REGISTERS): Set dirflag as fixed.
14363 (CALL_USED_REGISTERS): Set dirflag as used.
14364 (REG_ALLOC_ORDER): Set dirflag as last one.
14365 (DIRFLAG_REG): New macro.
14366 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14367 (HI_REGISTER_NAMES): Add dirflag.
14368 (DEBUF_PRINT_REG): Handle dirflag.
14369 * i386.md (type attribute): New cld and str types.
14370 (length_opcode attribute): Set cld and str to 1.
14371 (memory attribute): Set str to unknown - it is not clear from the
14372 patterns.
14373 (pent_np function unit): Prefixed string operations takes 12 cycles
14374 minimally; cld takes 2 cycles.
14375 (ppro_uops attribute): Str is "many" and cld is "few".
14376 (ppro_p0 unit): Handle cld here.
14377 (k6_alux unit): Handle cld and str types.
14378 (k6_load unit): It is ocupied by str opcodes.
14379 (k6_store unit): It is ocupied by str opcodes.
14380 (athlon_decode): Str is vector decoded.
14381 (athlon_ieu): Handle str and cld.
14382 (cld pattern): New.
14383 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14384 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14385 cmpstrsi_nz_1 insn): Do not output cld instruction
14386
14387 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
14388
14389 * gcc.texi (G++ and GCC): Add Java and Chill.
14390 (Bug Critera): Don't list languages.
14391
14392 * gcc.texi (Incompatibilities): No longer claim most C compilers
14393 are K&R.
14394
14395 * gcc.texi (G++ and GCC): Update other front-ends list.
14396
14397 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
14398
14399 * i386.c (ix86_expand_setcc): Fix typo.
14400 (ix86_expand_movcc): Similarly.
14401
14402 * Band-aid until haifa's bitset implementation is nuked.
14403 * haifa-sched.c (extract_bitlst): New parameter for size of the
14404 bitset in bits. All callers changed. Avoid looking at undefined
14405 bits in the bitset.
14406 (edgeset_bitsize): New variable.
14407 (schedule_region): Initialize edgeset_bitsize.
14408
14409 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14410
14411 * Makefile.in (optabs.o): Depend on real.h
14412 (resource.o): Depend on insn-attr.h
14413
14414 * builtins.c (result_vector): Wrap prototype in macro conditions
14415 governing definition and use.
14416
14417 * c-common.c: Include tm_p.h.
14418
14419 * c-lex.c: Likewise.
14420
14421 * elfos.h: Constify a char*.
14422
14423 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14424 (get_attr_length, shorten_branches, profile_after_prologue): Mark
14425 parameter with ATTRIBUTE_UNUSED.
14426
14427 * fold-const.c (exact_real_inverse): Wrap variable `i' in
14428 CHECK_FLOAT_VALUE.
14429
14430 * haifa-sched.c (schedule_insns): Mark parameter with
14431 ATTRIBUTE_UNUSED.
14432
14433 * optabs.c: Include real.h.
14434
14435 * real.h (ereal_atof): Add prototype arguments.
14436
14437 * resource.c: Include insn-attr.h.
14438
14439 * sdbout.c (sdbout_queue_anonymous_type,
14440 sdbout_dequeue_anonymous_types): Wrap in macro
14441 SDB_ALLOW_FORWARD_REFERENCES.
14442 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14443 ATTRIBUTE_UNUSED.
14444
14445 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14446
14447 * stupid.c: Include tm_p.h.
14448
14449 * tree.c (real_value_from_int_cst): Mark parameter with
14450 ATTRIBUTE_UNUSED.
14451
14452 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14453
14454 * i960-protos.h: New file.
14455
14456 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
14457 time warnings.
14458
14459 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
14460
14461 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14462
14463 * combine.c (expand_field_assignment): Do not discard SUBREGs
14464 while computing nonzero_bits.
14465
14466 2000-01-09 Nick Clifton <nickc@cygnus.com>
14467
14468 * config/arm/arm.c: Fix compile time warnings about signed vs
14469 unsigned constants.
14470 * config/arm/arm.h: Fix compile time warnings about signed vs
14471 unsigned constants.
14472
14473 2000-01-09 Philip Blundell <philb@gnu.org>
14474
14475 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14476 than `ldm' with only one register.
14477 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14478 only one register.
14479
14480 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14481 clobbered.
14482
14483 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
14484
14485 * config/ns32k/ns32k.md (load or push effective address): Operand 1
14486 must have SImode.
14487
14488 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14489
14490 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14491 assignment used as truth value.
14492
14493 * function.c (assign_temp): Mark parameter `dont_promote' with
14494 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
14495 PROMOTE_FOR_CALL_ONLY.
14496
14497 * genrecog.c (write_subroutine): Mark variable `operands' with
14498 ATTRIBUTE_UNUSED.
14499
14500 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14501 ATTRIBUTE_UNUSED.
14502
14503 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14504 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14505
14506 * toplev.c (note_deferral_of_defined_inline_function): Likewise
14507 for `decl'.
14508
14509 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14510
14511 * config/c4x.h: Tidy up comments.
14512 * config/c4x.c: Likewise.
14513
14514 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
14515
14516 * fold-const.c (lshift_double, rshift_double): Handle
14517 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14518
14519 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14520
14521 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14522 in prepare_function_start().
14523
14524 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
14525
14526 * config/v850/v850.c (expand_epilogue): Interrupt functions no
14527 longer allocate extra stack for function calls.
14528
14529 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14530
14531 * config/c4x/c4x.md (*subqf3_set): Fix typo.
14532
14533 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14534
14535 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14536
14537 2000-01-07 David Edelsohn <edelsohn@gnu.org>
14538
14539 * rs6000.c (processor_target_table): Add power3 as alias for 630.
14540 * aix43.h: Revert Aug 2 change.
14541 (HAS_INIT_SECTION): Define, not visible yet.
14542 (LD_INIT_SWITCH): Define, not visible yet.
14543 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14544
14545 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14546
14547 * collect2.c (main): Expand ld2 size further.
14548 (export_object_lst): Cast assignment to avoid warning.
14549 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14550 (scan_prog_file, COFF): Do not collect initialization or
14551 finalization functions generated for entire shared object if
14552 init/fini support present.
14553
14554 2000-01-07 Nick Clifton <nickc@cygnus.com>
14555
14556 * config/elfos.h: Tidy up formatting of marcos. Make sure
14557 that .section directives are always prefixed by a tab.
14558
14559 * config/svr4.h: Add #include "elfos.h" and remove duplicate
14560 definitions.
14561
14562 2000-01-07 Matt Austern <austern@sgi.com>
14563
14564 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14565 expon.
14566
14567 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
14568
14569 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14570 crtstuff.c.
14571 (crtbegin.o, s-crtS): Likewise.
14572
14573 2000-01-06 Richard Henderson <rth@cygnus.com>
14574
14575 * alpha.md (adddi_2+1): Limit offset such that it will be
14576 loadable with a single ldah+lda pair.
14577 (adddi_2+2): Explicitly fail split if we can't make it work.
14578
14579 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
14580
14581 * protoize.c: Conditionally include unistd.h.
14582 (IS_SAME_PATH_CHAR): New macro.
14583 (IS_SAME_PATH): New macro.
14584 (CPLUS_FILE_SUFFIX): New macro.
14585 (cplus_suffix): New static variable.
14586 (is_abspath): New static function.
14587 (in_system_include_dir): Handle DOS style pathnames.
14588 (file_could_be_converted): Likewise.
14589 (file_normally_convertible): Likewise.
14590 (directory_specified_p): Likewise.
14591 (file_excluded_p): Likewise.
14592 (abspath): Likewise.
14593 (shortpath): Likewise.
14594 (referenced_file_is_newer): Likewise.
14595 (save_def_or_dec): Likewise.
14596 (do_processing): Likewise.
14597 (main): Likewise.
14598 (edit_file): Likewise. Use rename instead of link.
14599 (rename_c_file): Likewise. Don't rename syscalls file.
14600 (munge_compile_params): Define null device for DOS based systems.
14601 (process_aux_info_file): Use binary mode if appliable.
14602 (edit_file): Likewise.
14603 * invoke.texi (Running Protoize): Document C++ suffixes used.
14604
14605 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14606 IS_DIR_SEPARATOR macros.
14607 * collect2.c: Likewise.
14608 * cppinit.c: Likewise.
14609 * dwarf2out.c: Likewise.
14610 * gcc.c: Likewise.
14611 * gcov.c: Likewise.
14612 * prefix.c: Likewise.
14613 * rtl.c: Likewise.
14614 * toplev.c: Likewise.
14615 * system.h: And move to here.
14616
14617 * prefix.c (update_path): Fix typo in variable name.
14618
14619 2000-01-06 Richard Henderson <rth@cygnus.com>
14620
14621 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14622 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14623 (count_reg_sets_1, count_reg_references): Likewise.
14624 (flow_loops_level_compute): Start counting actual loop depth at 1.
14625 (flow_loops_find): Likewise.
14626 * local-alloc.c (update_equiv_regs): Likewise.
14627 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14628
14629 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14630
14631 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14632 FIRST_PSEUDO_REGISTER
14633 * dwarf2out.c: Don't include frame.h
14634 * dwarfout.c: Likewise
14635 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14636 frame.h
14637
14638 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
14639
14640 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14641 dead registers.
14642
14643 * i386.c (movsf splitter): Fix typo in my last checkin.
14644
14645 2000-01-05 Nick Clifton <nickc@cygnus.com>
14646
14647 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14648 own definition of this macro.
14649 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14650 flag_data_sections or UNIQUE_SECTION_P are true.
14651
14652 * tm.texi (UNIQUE_SECTION): Document that it can be called for
14653 unitialised data decls.
14654
14655 * config/i386/winnt.c (i386_pe_unique_section): Cope with
14656 being called for uninitialised data.
14657
14658 * config/i386/interix.c (i386_pe_unique_section): Cope with
14659 being called for uninitialised data.
14660
14661 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14662 for uninitialised data.
14663
14664 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14665 for uninitialised data.
14666
14667 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14668 for uninitialised data.
14669
14670 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14671 (UNIQUE_SECTION_P): Always generate a unique section if
14672 flag_data_sections is true.
14673 (UNIQUE_SECTION): Also generate unique sections for
14674 uninitialised data.
14675 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14676 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14677 named_section().
14678
14679 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14680
14681 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14682 SI, or DI.
14683
14684 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14685
14686 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14687 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14688 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14689 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14690 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14691
14692 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14693
14694 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
14695
14696 * c-decl.c (finish_enum): Simplify code to determine minimum and
14697 maximum values of the enum, and calculate the type. Remove check
14698 for FUNCTION_DECLs in the values list, which cannot happen. Replace
14699 the DECL_INITIAL of each enumeration constant with a copy converted
14700 to the enumeration type. When updating variant types, don't bother
14701 updating the type itself.
14702
14703 * c-typeck.c (build_binary_op): Simplify conditional expressions
14704 when weeding out spurious signed-unsigned warnings. Add new
14705 spurious warning category: if the unsigned quantity is an enum
14706 and its maximum value fits in signed_type(result_type). Update
14707 commentary.
14708 (build_conditional_expr): Warn here if one alternative is signed
14709 and the other is unsigned.
14710
14711 2000-01-05 Nick Clifton <nickc@cygnus.com>
14712
14713 * config/fr30/fr30.h: Remove extraneous comments.
14714
14715 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
14716
14717 * reload1.c (choose_reload_regs): When disabling a reload, also
14718 set reload_spill_index to -1.
14719
14720 2000-01-04 Joel Sherrill (joel@OARcorp.com>
14721
14722 * configure.in (m68*-*-rtemscoff*): New target, formal name for
14723 old m68*-*-rtems*.
14724 (m68*-*-rtemself*): New target.
14725 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14726 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14727 (sparc*-*-rtemself*): New target.
14728 (sparc*-*-rtems*): Now elf not a.out.
14729 * config/i386/rtems.h: Include config/rtems.h.
14730 * config/i386/rtemself.h: Include config/rtems.h.
14731 * config/i960/rtems.h: Include config/rtems.h.
14732 * config/m68k/rtems.h: Include config/rtems.h.
14733 * config/m68k/rtemself.h: Include config/rtems.h.
14734 * config/mips/rtems64.h: Include config/rtems.h.
14735 * config/pa/rtems.h: Include config/rtems.h.
14736 * config/rs6000/rtems.h: Include config/rtems.h.
14737 * config/sh/rtems.h: Include config/rtems.h.
14738 * config/sh/rtemself.h: Include config/rtems.h.
14739 * config/sparc/rtems.h: Include config/rtems.h.
14740 * config/sparc/rtemself.h: Include config/rtems.h
14741
14742 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
14743
14744 * final.c (shorten_branches): Correctly compute length of
14745 asms without operands.
14746
14747 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
14748
14749 * configure.in: Add pj target.
14750 * configure: Regenerate.
14751 * config/pj: New directory.
14752 * config/pj/lib1funcs.S: New file.
14753 * config/pj/linux.h: New file.
14754 * config/pj/pj.c: New file.
14755 * config/pj/pj.md: New file.
14756 * config/pj/pjl.h: New file.
14757 * config/pj/t-pj: New file.
14758 * config/pj/xm-pj.h: New file
14759
14760 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
14761
14762 * toplev.c (rest_of_compilation): Run shorten-branches before
14763 reg-stack for now.
14764
14765 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14766
14767 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14768 macros so that they're consistent with their names.
14769 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14770 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14771
14772 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14773
14774 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14775 modified inadvertently.
14776
14777 2000-01-04 Joel Sherrill <joel@OARcorp.com>
14778
14779 * configure.in (v850*-*-rtems*): New target.
14780 * configure: Regenerate.
14781 * config/v850/rtems.h: New file.
14782
14783 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
14784
14785 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14786 (__gthread_key_create): Likewise.
14787 (__gthread_key_dtor): Likewise.
14788 (__gthread_once): Fix logic.
14789 (__gthread_key_delete): Cast away constness.
14790
14791 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14792 * invoke.texi: Document.
14793 * i386/mingw32.h (CPP_SPEC): Use.
14794 (LIBGCC_SPEC): Likewise.
14795 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14796
14797 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14798
14799 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14800 (HANDLE_PRAGMA_PACK): Undefine.
14801 (SLOW_UNALIGNED_ACCESS): Define.
14802
14803 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14804
14805 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14806 to default definition.
14807 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14808 (store_fixed_bit_field): Call macro with word_mode and alignment.
14809 (extract_bit_field): Call macro with relevant mode and alignment.
14810 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14811 to default definition.
14812 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14813 and alignment.
14814 (move_by_pieces_ninsns): Likewise.
14815 (clear_by_pieces): Likewise.
14816 (emit_push_insn): Likewise.
14817 (store_field): Call macro with relevant mode and alignment.
14818 (expand_expr): Likewise.
14819 (expand_expr_unaligned): Likewise.
14820
14821 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14822 (SLOW_UNALIGNED_ACCESS): Define.
14823 (CASE_VECTOR_MODE): Always use 32-bit offsets.
14824 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14825 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14826 (toc_section): Likewise and .toc pseudo-op.
14827 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
14828 64-bit mode.
14829 (TEXT_SECTION_ASM_OP): Likewise.
14830 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14831 32-bit offsets.
14832
14833 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14834 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14835 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14836 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14837 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14838
14839 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
14840
14841 * regclass.c: Revert my Jan 4 change to loop cost computation.
14842
14843 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14844
14845 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
14846 compilation.
14847
14848 2000-01-04 Stan Cox <scox@cygnus.com>
14849
14850 * haifa-sched.c (build_control_flow): Change unreachable simple
14851 loop test to check if current block has only one predecessor.
14852 (find_rgns): Initialize degree. Use dest as degree index, not src.
14853
14854 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14855
14856 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
14857
14858 * calls.c (expand_call): Likewise for
14859 `old_stack_arg_under_construction'.
14860
14861 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
14862
14863 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
14864 `save_constant'.
14865
14866 * gcc.c (execute): Likewise for `ut' and `st'.
14867
14868 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
14869
14870 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
14871
14872 * jump.c (jump_optimize_1): Likewise for `temp2'.
14873
14874 * local-alloc.c (block_alloc): Likewise for `r1'.
14875
14876 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
14877
14878 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
14879 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
14880
14881 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
14882 and `set2'.
14883
14884 * reload.c (find_reloads): Likewise for `goal_alternative_number'
14885 and `goal_earlyclobber'.
14886
14887 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
14888
14889 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
14890
14891 * stupid.c (stupid_life_analysis): Likewise for `chain'.
14892
14893 * unroll.c (copy_loop_body): Likewise for `copy'.
14894
14895 * varasm.c (output_constructor): Likewise for `byte'.
14896
14897 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14898
14899 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
14900 all FP constants for constant->reg moves.
14901 (ix86_split_to_parts): Try to convert memory address into immediate
14902 when available in the constant pool.
14903 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
14904 moves.
14905 (LEGITIMATE_CONSTANT_P): Return 1.
14906 * i386.md (pushsf): New splitter to convert constant pool memory
14907 reference to immediate.
14908 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
14909 reload.
14910
14911 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
14912
14913 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
14914 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
14915 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
14916 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
14917 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
14918
14919 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
14920
14921 * ginclude/stdbool.h: Support compilation as C++.
14922
14923 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14924
14925 * fold-const.c (make_range): Don't try to reverse an unbounded range.
14926
14927 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
14928
14929 * regclass.c (regclass): Properly compute loop_cost. Adjust
14930 comments.
14931
14932 * regclass.c: Fix minor whitespace problems.
14933
14934 2000-01-03 Anthony Green <green@cygnus.com>
14935
14936 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
14937 Restore the pic register if required.
14938
14939 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
14940
14941 * c-common.c (format_char_info): Update comment.
14942 (check_format_info): Recognize 'z' modifier in the same way 'Z'
14943 was recognized. Emit warning for formats new in ISO C99 only
14944 if flag_isoc9x is not set.
14945
14946 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
14947
14948 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
14949
14950 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14951
14952 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
14953 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
14954 (make_compound_operation): Choose cheaper alternative between
14955 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
14956
14957 * regclass.c (op_costs): Remove global variable.
14958 (record_reg_classes): New parameter "op_costs" and "reg_pref".
14959 (record_operand_costs): Break out from ...
14960 (scan_one_insn): ... here.
14961 (dump_regclass): Make dumps nicer.
14962 (regclass): Dump preferrences choosed and changes done during passes.
14963
14964 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14965
14966 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
14967
14968 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14969
14970 * config/sparc/sparc.c (gen_df_reg): New function.
14971 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
14972 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
14973 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
14974 movtf_cc_reg_sp64+1): Use it.
14975
14976 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14977
14978 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
14979 copied LABEL_DECLs.
14980
14981 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
14982
14983 * config/i386/i386.c (ix86_expand_unary_operator): Function
14984 definition made void.
14985 (ix86_expand_binary_operator): Update outdated preceding comment.
14986 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
14987 prototype.
14988
14989 * config/i386/i386.c (override_options): Fix option-name typo.
14990
14991 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14992
14993 * system.h (CEIL): Define.
14994 * builtins.c (CEIL): Remove.
14995 * expmed.c (CEIL): Likewise.
14996 * expr.c (CEIL): Likewise.
14997 * stor-layout.c (CEIL): Likewise.
14998
14999 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15000
15001 * expr.c (store_constructor_field): Fix typo introduced with last
15002 gcc2 merge.
15003
15004 2000-01-01 Mark Mitchell <mark@codesourcery.com>
15005
15006 * tree.h (BINFO_N_BASETYPES): New macro.
15007
15008 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
15009
15010 * expmed.c (emit_store_flag): Prevent losing a pending stack
15011 adjust the same way we prevent losing queued increments.
15012
15013 See ChangeLog.2 for earlier changes.
This page took 0.74769 seconds and 5 git commands to generate.